UNPKG

quasar-framework

Version:

Build responsive SPA, SSR, PWA, Hybrid Mobile Apps and Electron apps, all simultaneously using the same codebase

6 lines 372 kB
/*! * Quasar Framework v0.17.20 * (c) 2016-present Razvan Stoenescu * Released under the MIT License. */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):t.Quasar=e(t.Vue)}(this,function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e,i="undefined"==typeof window,s=!1,n=i;function o(t){var e=function(t,e){var i=/(edge)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(vivaldi)[\/]([\w.]+)/.exec(t)||/(chrome)[\/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:i[5]||i[3]||i[1]||"",version:i[2]||i[4]||"0",versionNumber:i[4]||i[2]||"0",platform:e[0]||""}}(t=(t||navigator.userAgent||navigator.vendor||window.opera).toLowerCase(),function(t){return/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(silk)/.exec(t)||/(android)/.exec(t)||/(win)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||/(playbook)/.exec(t)||/(bb)/.exec(t)||/(blackberry)/.exec(t)||[]}(t)),o={};return e.browser&&(o[e.browser]=!0,o.version=e.version,o.versionNumber=parseInt(e.versionNumber,10)),e.platform&&(o[e.platform]=!0),(o.android||o.bb||o.blackberry||o.ipad||o.iphone||o.ipod||o.kindle||o.playbook||o.silk||o["windows phone"])&&(o.mobile=!0),(o.ipod||o.ipad||o.iphone)&&(o.ios=!0),o["windows phone"]&&(o.winphone=!0,delete o["windows phone"]),(o.cros||o.mac||o.linux||o.win)&&(o.desktop=!0),(o.chrome||o.opr||o.safari||o.vivaldi)&&(o.webkit=!0),(o.rv||o.iemobile)&&(e.browser="ie",o.ie=!0),o.edge&&(e.browser="edge",o.edge=!0),(o.safari&&o.blackberry||o.bb)&&(e.browser="blackberry",o.blackberry=!0),o.safari&&o.playbook&&(e.browser="playbook",o.playbook=!0),o.opr&&(e.browser="opera",o.opera=!0),o.safari&&o.android&&(e.browser="android",o.android=!0),o.safari&&o.kindle&&(e.browser="kindle",o.kindle=!0),o.safari&&o.silk&&(e.browser="silk",o.silk=!0),o.vivaldi&&(e.browser="vivaldi",o.vivaldi=!0),o.name=e.browser,o.platform=e.platform,i||(window.process&&window.process.versions&&window.process.versions.electron?o.electron=!0:0===document.location.href.indexOf("chrome-extension://")?o.chromeExt=!0:(window._cordovaNative||window.cordova)&&(o.cordova=!0),(s=void 0===o.cordova&&void 0===o.electron&&!!document.querySelector("[data-server-rendered]"))&&(n=!0)),o}function r(){if(void 0!==e)return e;try{if(window.localStorage)return e=!0,!0}catch(t){}return e=!1,!1}function a(){return{has:{touch:!!("ontouchstart"in document.documentElement)||window.navigator.msMaxTouchPoints>0,webStorage:r()},within:{iframe:window.self!==window.top}}}var l={has:{touch:!1,webStorage:!1},within:{iframe:!1},parseSSR:function(t){return t?{is:o(t.req.headers["user-agent"]),has:this.has,within:this.within}:Object.assign({},{is:o()},a())},install:function(t,e,r){var l=this;i?e.server.push(function(t,e){t.platform=l.parseSSR(e.ssr)}):(this.is=o(),s?(e.takeover.push(function(t){n=s=!1,Object.assign(t.platform,a())}),r.util.defineReactive(t,"platform",this)):(Object.assign(this,a()),t.platform=this))}};Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var i=arguments;if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var s=Object(t),n=1;n<arguments.length;n++){var o=i[n];if(void 0!==o&&null!==o)for(var r=Object.keys(Object(o)),a=0,l=r.length;a<l;a++){var c=r[a],h=Object.getOwnPropertyDescriptor(o,c);void 0!==h&&h.enumerable&&(s[c]=o[c])}}return s}}),Number.isInteger||(Number.isInteger=function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}),Array.prototype.includes||(Array.prototype.includes=function(t,e){var i=Object(this),s=parseInt(i.length,10)||0;if(0===s)return!1;var n,o,r=parseInt(e,10)||0;for(r>=0?n=r:(n=s+r)<0&&(n=0);n<s;){if(t===(o=i[n])||t!=t&&o!=o)return!0;n++}return!1}),String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var i=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>i.length)&&(e=i.length),e-=t.length;var s=i.indexOf(t,e);return-1!==s&&s===e}),i||("function"!=typeof Element.prototype.matches&&(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),i=0;e[i]&&e[i]!==this;)++i;return Boolean(e[i])}),"function"!=typeof Element.prototype.closest&&(Element.prototype.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(e.matches(t))return e;e=e.parentNode}return null}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})})),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,i=Object(this),s=i.length>>>0,n=arguments[1],o=0;o<s;o++)if(e=i[o],t.call(n,e,o,i))return e}});var c={__history:[],add:function(){},remove:function(){},install:function(t,e){var s=this;if(!i&&t.platform.is.cordova){this.add=function(t){s.__history.push(t)},this.remove=function(t){var e=s.__history.indexOf(t);e>=0&&s.__history.splice(e,1)};var n=void 0===e.cordova||!1!==e.cordova.backButtonExit;document.addEventListener("deviceready",function(){document.addEventListener("backbutton",function(){s.__history.length?s.__history.pop().handler():n&&"#/"===window.location.hash?navigator.app.exitApp():window.history.back()},!1)})}}},h={lang:"en-us",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1},pullToRefresh:{pull:"Pull down to refresh",release:"Release to refresh",refresh:"Refreshing..."},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:function(t){return 1===t?"1 record selected.":(0===t?"No":t)+" records selected."},recordsPerPage:"Records per page:",allRows:"All",pagination:function(t,e,i){return t+"-"+e+" of "+i},columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",header1:"Header 1",header2:"Header 2",header3:"Header 3",header4:"Header 4",header5:"Header 5",header6:"Header 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}},u={install:function(t,e,s,n){var o=this;i&&e.server.push(function(t,e){var i={lang:t.i18n.lang,dir:t.i18n.rtl?"rtl":"ltr"},s=e.ssr.setHtmlAttrs;"function"==typeof s?s(i):e.ssr.Q_HTML_ATTRS=Object.keys(i).map(function(t){return t+"="+i[t]}).join(" ")}),this.set=function(e){if(void 0===e&&(e=h),e.set=o.set,e.getLocale=o.getLocale,e.rtl=e.rtl||!1,!i){var n=document.documentElement;n.setAttribute("dir",e.rtl?"rtl":"ltr"),n.setAttribute("lang",e.lang)}i||t.i18n?t.i18n=e:s.util.defineReactive(t,"i18n",e),o.name=e.lang,o.lang=e},this.set(n)},getLocale:function(){if(!i){var t=navigator.language||navigator.languages[0]||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage;return t?t.toLowerCase():void 0}}};function d(t){var e=t.r,i=t.g,s=t.b,n=t.a,o=void 0!==n;if(e=Math.round(e),i=Math.round(i),s=Math.round(s),e>255||i>255||s>255||o&&n>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return n=o?(256|Math.round(255*n/100)).toString(16).slice(1):"","#"+(s|i<<8|e<<16|1<<24).toString(16).slice(1)+n}function p(t){if("string"!=typeof t)throw new TypeError("Expected a string");3===(t=t.replace(/^#/,"")).length?t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:4===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);var e=parseInt(t,16);return t.length>6?{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:Math.round((255&e)/2.55)}:{r:e>>16,g:e>>8&255,b:255&e}}function f(t){var e,i,s,n,o,r,a,l,c=t.h,h=t.s,u=t.v,d=t.a;switch(r=(u/=100)*(1-(h/=100)),a=u*(1-(o=6*(c/=360)-(n=Math.floor(6*c)))*h),l=u*(1-(1-o)*h),n%6){case 0:e=u,i=l,s=r;break;case 1:e=a,i=u,s=r;break;case 2:e=r,i=u,s=l;break;case 3:e=r,i=a,s=u;break;case 4:e=l,i=r,s=u;break;case 5:e=u,i=r,s=a}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*s),a:d}}function m(t){var e,i=t.r,s=t.g,n=t.b,o=t.a,r=Math.max(i,s,n),a=Math.min(i,s,n),l=r-a,c=0===r?0:l/r,h=r/255;switch(r){case a:e=0;break;case i:e=s-n+l*(s<n?6:0),e/=6*l;break;case s:e=n-i+2*l,e/=6*l;break;case n:e=i-s+4*l,e/=6*l}return{h:Math.round(360*e),s:Math.round(100*c),v:Math.round(100*h),a:o}}var v=/^\s*rgb(a)?\s*\((\s*(\d+)\s*,\s*?){2}(\d+)\s*,?\s*([01]?\.?\d*?)?\s*\)\s*$/;function g(t){if("string"!=typeof t)throw new TypeError("Expected a string");var e=v.exec(t);if(e){var i={r:Math.max(255,parseInt(e[2],10)),g:Math.max(255,parseInt(e[3],10)),b:Math.max(255,parseInt(e[4],10))};return e[1]&&(i.a=Math.max(1,parseFloat(e[5]))),i}return p(t)}function b(t,e){if("string"!=typeof t)throw new TypeError("Expected a string as color");if("number"!=typeof e)throw new TypeError("Expected a numeric percent");var i=g(t),s=e<0?0:255,n=Math.abs(e)/100,o=i.r,r=i.g,a=i.b;return"#"+(16777216+65536*(Math.round((s-o)*n)+o)+256*(Math.round((s-r)*n)+r)+(Math.round((s-a)*n)+a)).toString(16).slice(1)}function _(t,e,i){if(void 0===i&&(i=document.body),"string"!=typeof t)throw new TypeError("Expected a string as color");if("string"!=typeof e)throw new TypeError("Expected a string as value");if(!(i instanceof Element))throw new TypeError("Expected a DOM element");switch(i.style.setProperty("--q-color-"+t,e),t){case"negative":case"warning":i.style.setProperty("--q-color-"+t+"-l",b(e,46));break;case"light":i.style.setProperty("--q-color-"+t+"-d",b(e,-10))}}function y(t,e){if(void 0===e&&(e=document.body),"string"!=typeof t)throw new TypeError("Expected a string as color");if(!(e instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(e).getPropertyValue("--q-color-"+t).trim()||null}var w={rgbToHex:d,hexToRgb:p,hsvToRgb:f,rgbToHsv:m,textToRgb:g,lighten:b,luminosity:function(t){if("string"!=typeof t&&(!t||void 0===t.r))throw new TypeError("Expected a string or a {r, g, b} object as color");var e="string"==typeof t?g(t):t,i=e.r/255,s=e.g/255,n=e.b/255;return.2126*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.7152*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setBrand:_,getBrand:y};function C(t,e){var i=t.is,s=t.has,n=t.within,o=["mat",i.desktop?"desktop":"mobile",s.touch?"touch":"no-touch","platform-"+(i.ios?"ios":"mat")];if(i.cordova&&(o.push("cordova"),i.ios&&(void 0===e.cordova||!1!==e.cordova.iosStatusBarPadding))){var r=window.devicePixelRatio||1,a=window.screen.width*r,l=window.screen.height*r;1125===a&&2436===l&&o.push("q-ios-statusbar-x"),1125===a&&2001===l||o.push("q-ios-statusbar-padding")}return n.iframe&&o.push("within-iframe"),i.electron&&o.push("electron"),o}var k={install:function(t,e,s){i?e.server.push(function(t,e){var i=C(t.platform,s),n=e.ssr.setBodyClasses;"function"==typeof n?n(i):e.ssr.Q_BODY_CLASSES=i.join(" ")}):(s.brand&&function(t){for(var e in t)_(e,t[e])}(s.brand),function(t,e){var i=C(t,e);t.is.ie&&11===t.is.versionNumber?i.forEach(function(t){return document.body.classList.add(t)}):document.body.classList.add.apply(document.body.classList,i),t.is.ios&&document.body.addEventListener("touchstart",function(){})}(t.platform,s))}},x={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back"},chevron:{left:"chevron_left",right:"chevron_right"},pullToRefresh:{arrow:"arrow_downward",refresh:"refresh"},search:{icon:"search",clear:"cancel",clearInverted:"clear"},carousel:{left:"chevron_left",right:"chevron_right",quickNav:"lens",thumbnails:"view_carousel"},checkbox:{checked:{ios:"check_circle",mat:"check_box"},unchecked:{ios:"radio_button_unchecked",mat:"check_box_outline_blank"},indeterminate:{ios:"remove_circle_outline",mat:"indeterminate_check_box"}},chip:{close:"cancel"},chipsInput:{add:"send"},collapsible:{icon:"arrow_drop_down"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",header:"format_size",code:"code",size:"format_size",font:"font_download"},fab:{icon:"add",activeIcon:"close"},input:{showPass:"visibility",hidePass:"visibility_off",showNumber:"keyboard",hideNumber:"keyboard_hide",clear:"cancel",clearInverted:"clear",dropdown:"arrow_drop_down"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},radio:{checked:{ios:"check",mat:"radio_button_checked"},unchecked:{ios:"",mat:"radio_button_unchecked"}},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right"},table:{arrowUp:"arrow_upward",warning:"warning",prevPage:"chevron_left",nextPage:"chevron_right"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"cancel",clearInverted:"clear",add:"add",upload:"cloud_upload",expand:"keyboard_arrow_down",file:"insert_drive_file"}},S={__installed:!1,install:function(t,e,s){var n=this;this.set=function(s){void 0===s&&(s=x),s.set=n.set,i||t.icon?t.icon=s:e.util.defineReactive(t,"icon",s),n.name=s.name,n.def=s},this.set(s)}},q={server:[],takeover:[]},$={version:"0.17.20",theme:"mat"};var T=[],M={__installed:!1,__install:function(){this.__installed=!0,window.addEventListener("keyup",function(t){0!==T.length&&(27!==t.which&&27!==t.keyCode||T[T.length-1]())})},register:function(t){l.is.desktop&&(this.__installed||this.__install(),T.push(t))},pop:function(){l.is.desktop&&T.pop()}},P={props:{value:Boolean},data:function(){return{showing:!1}},watch:{value:function(t){var e=this;this.disable&&t?this.$emit("input",!1):this.$nextTick(function(){e.value!==e.showing&&e[t?"show":"hide"]()})}},methods:{toggle:function(t){return this[this.showing?"hide":"show"](t)},show:function(t){var e=this;return this.disable||this.showing?this.showPromise||Promise.resolve(t):(this.hidePromise&&this.hidePromiseReject(),this.showing=!0,!1===this.value&&this.$emit("input",!0),(void 0===this.$options.modelToggle||this.$options.modelToggle.history)&&(this.__historyEntry={handler:this.hide},c.add(this.__historyEntry)),this.__show?(this.showPromise=new Promise(function(i,s){e.showPromiseResolve=function(){e.showPromise=null,e.$emit("show",t),i(t)},e.showPromiseReject=function(){e.showPromise.catch(function(){}),e.showPromise=null,s(null)}}),this.__show(t),this.showPromise||Promise.resolve(t)):(this.$emit("show",t),Promise.resolve(t)))},hide:function(t){var e=this;return this.disable||!this.showing?this.hidePromise||Promise.resolve(t):(this.showPromise&&this.showPromiseReject(),this.showing=!1,!0===this.value&&this.$emit("input",!1),this.__removeHistory(),this.__hide?(this.hidePromise=new Promise(function(i,s){e.hidePromiseResolve=function(){e.hidePromise=null,e.$emit("hide",t),i()},e.hidePromiseReject=function(){e.hidePromise.catch(function(){}),e.hidePromise=null,s(null)}}),this.__hide(t),this.hidePromise||Promise.resolve(t)):(this.$emit("hide",t),Promise.resolve()))},__removeHistory:function(){this.__historyEntry&&(c.remove(this.__historyEntry),this.__historyEntry=null)}},beforeDestroy:function(){this.showing&&(this.showPromise&&this.showPromiseReject(),this.hidePromise&&this.hidePromiseReject(),this.__removeHistory())}},L={};function B(t){return 0===t.button}function E(t){return t.which||t.keyCode}function N(t){var e,i;if(t.touches&&t.touches[0]?t=t.touches[0]:t.changedTouches&&t.changedTouches[0]&&(t=t.changedTouches[0]),t.clientX||t.clientY)e=t.clientX,i=t.clientY;else if(t.pageX||t.pageY)e=t.pageX-document.body.scrollLeft-document.documentElement.scrollLeft,i=t.pageY-document.body.scrollTop-document.documentElement.scrollTop;else{var s=O(t).getBoundingClientRect();e=(s.right-s.left)/2+s.left,i=(s.bottom-s.top)/2+s.top}return{top:i,left:e}}function O(t){var e;return t.target?e=t.target:t.srcElement&&(e=t.srcElement),3===e.nodeType&&(e=e.parentNode),e}function z(t){if(t.path)return t.path;if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;){if(e.push(i),"HTML"===i.tagName)return e.push(document),e.push(window),e;i=i.parentElement}}Object.defineProperty(L,"passive",{configurable:!0,get:function(){var t;try{var e=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch(t){}return L.passive=t,t},set:function(t){Object.defineProperty(this,"passive",{value:t})}});var D=40,R=800;function I(t){var e,i=t.deltaX,s=t.deltaY;if((i||s)&&t.deltaMode){var n=1===t.deltaMode?D:R;i*=n,s*=n}return t.shiftKey&&!i&&(s=(e=[i,s])[0],i=e[1]),{x:i,y:s}}function H(t){t.preventDefault(),t.stopPropagation()}var F={listenOpts:L,leftClick:B,middleClick:function(t){return 1===t.button},rightClick:function(t){return 2===t.button},getEventKey:E,position:N,targetElement:O,getEventPath:z,getMouseWheelDistance:I,stopAndPrevent:H};function A(t){if(!t||t===window)return{top:0,left:0};var e=t.getBoundingClientRect();return{top:e.top,left:e.left}}function Q(t,e){return window.getComputedStyle(t).getPropertyValue(e)}function V(t){return t===window?window.innerHeight:parseFloat(Q(t,"height"))}function j(t){return t===window?window.innerWidth:parseFloat(Q(t,"width"))}function W(t,e){var i=t.style;Object.keys(e).forEach(function(t){i[t]=e[t]})}var K=["-webkit-","-moz-","-ms-","-o-"];var U,Y={offset:A,style:Q,height:V,width:j,css:W,ready:function(t){if("function"==typeof t)return"loading"!==document.readyState?t():void document.addEventListener("DOMContentLoaded",t,!1)},cssTransform:function(t){var e={transform:t};return K.forEach(function(i){e[i+"transform"]=t}),e}};function J(t){return t.closest(".scroll,.scroll-y,.overflow-auto")||window}function G(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function X(t,e,i){var s=G(t);i<=0?s!==e&&Z(t,e):requestAnimationFrame(function(){var n=s+(e-s)/Math.max(16,i)*16;Z(t,n),n!==e&&X(t,e,i-16)})}function Z(t,e){if(t===window)return document.documentElement.scrollTop=e,void(document.body.scrollTop=e);t.scrollTop=e}function tt(t,e,i){i?X(t,e,i):Z(t,e)}function et(){if(void 0!==U)return U;var t=document.createElement("p"),e=document.createElement("div");W(t,{width:"100%",height:"200px"}),W(e,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var s=t.offsetWidth;return i===s&&(s=e.clientWidth),e.remove(),U=i-s}function it(t,e){return void 0===e&&(e=!0),!(!t||t.nodeType!==Node.ELEMENT_NODE)&&(e?t.scrollHeight>t.clientHeight&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-y"])):t.scrollWidth>t.clientWidth&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-x"])))}var st={getScrollTarget:J,getScrollHeight:function(t){return(t===window?document.body:t).scrollHeight},getScrollPosition:G,animScrollTo:X,setScrollPosition:tt,getScrollbarWidth:et,hasScrollbar:it},nt=0;function ot(t){(function(t){if(t.target===document.body||t.target.classList.contains("q-layout-backdrop"))return!0;for(var e=z(t),i=t.shiftKey&&!t.deltaX,s=!i&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),n=i||s?t.deltaY:t.deltaX,o=0;o<e.length;o++){var r=e[o];if(it(r,s))return s?n<0&&0===r.scrollTop||n>0&&r.scrollTop+r.clientHeight===r.scrollHeight:n<0&&0===r.scrollLeft||n>0&&r.scrollLeft+r.clientWidth===r.scrollWidth}return!0})(t)&&H(t)}function rt(t){if(!((nt+=t?1:-1)>1)){var e=t?"add":"remove";l.is.mobile?document.body.classList[e]("q-body-prevent-scroll"):l.is.desktop&&window[e+"EventListener"]("wheel",ot)}}var at={top:"items-start justify-center with-backdrop",bottom:"items-end justify-center with-backdrop",right:"items-center justify-end with-backdrop",left:"items-center justify-start with-backdrop"},lt={maxHeight:"80vh",height:"auto"};var ct={responsive:0,maximized:0},ht={name:"QModal",mixins:[P],provide:function(){var t=this;return{__qmodal:{register:function(e){t.layout!==e&&(t.layout=e)},unregister:function(e){t.layout===e&&(t.layout=null)}}}},props:{position:{type:String,default:"",validator:function(t){return""===t||["top","bottom","left","right"].includes(t)}},transition:String,enterClass:String,leaveClass:String,positionClasses:{type:String,default:"flex-center"},contentClasses:[Object,Array,String],contentCss:[Object,Array,String],noBackdropDismiss:{type:Boolean,default:!1},noEscDismiss:{type:Boolean,default:!1},noRouteDismiss:Boolean,noRefocus:Boolean,minimized:Boolean,maximized:Boolean},data:function(){return{layout:null}},watch:{$route:function(){this.noRouteDismiss||this.hide()},maximized:function(t,e){this.__register(!1,e),this.__register(!0,t)},minimized:function(t,e){this.__register(!1,this.maximized,e),this.__register(!0,this.maximized,t)}},computed:{modalClasses:function(){var t=this.position?at[this.position]:this.positionClasses;return this.maximized?["maximized",t]:this.minimized?["minimized",t]:t},contentClassesCalc:function(){return this.layout?[this.contentClasses,"column no-wrap"]:this.contentClasses},transitionProps:function(){return this.position?{name:"q-modal-"+this.position}:this.enterClass||this.leaveClass?{enterActiveClass:this.enterClass,leaveActiveClass:this.leaveClass}:{name:this.transition||"q-modal"}},modalCss:function(){if(this.position){var t=Array.isArray(this.contentCss)?this.contentCss:[this.contentCss];return t.unshift(Object.assign({},lt,function(t){var e={};return["left","right"].includes(t)&&(e.maxWidth="90vw"),["left","top"].includes(t)&&(e.borderTopLeftRadius=0),["right","top"].includes(t)&&(e.borderTopRightRadius=0),["left","bottom"].includes(t)&&(e.borderBottomLeftRadius=0),["right","bottom"].includes(t)&&(e.borderBottomRightRadius=0),e}(this.position))),t}return this.contentCss}},methods:{__dismiss:function(){var t=this;this.noBackdropDismiss?this.__shake():this.hide().then(function(){t.$emit("dismiss")})},__show:function(){var t=this;this.noRefocus||(this.__refocusTarget=document.activeElement),document.body.appendChild(this.$el),this.__register(!0),rt(!0),M.register(function(){t.noEscDismiss?t.__shake():(t.$emit("escape-key"),t.hide().then(function(){t.$emit("dismiss")}))});var e=this.$refs.content;this.$q.platform.is.ios&&e.click(),e.scrollTop=0,["modal-scroll","layout-view"].forEach(function(t){[].slice.call(e.getElementsByClassName(t)).forEach(function(t){t.scrollTop=0})}),this.$nextTick(function(){return e&&e.focus()})},__hide:function(){this.__cleanup(),!this.noRefocus&&this.__refocusTarget&&(this.__refocusTarget.focus(),!this.__refocusTarget.classList.contains("q-if")&&this.__refocusTarget.blur())},__cleanup:function(){M.pop(),rt(!1),this.__register(!1)},__stopPropagation:function(t){t.stopPropagation()},__register:function(t,e,i){void 0===e&&(e=this.maximized),void 0===i&&(i=this.minimized);var s=t?{action:"add",step:1}:{action:"remove",step:-1};if(e){if(ct.maximized+=s.step,!t&&ct.maximized>0)return;document.body.classList[s.action]("q-maximized-modal")}else if(!i){if(ct.responsive+=s.step,!t&&ct.responsive>0)return;document.body.classList[s.action]("q-responsive-modal")}},__shake:function(){var t=this;this.$el.classList.remove("animate-shake"),this.$el.classList.add("animate-shake"),clearTimeout(this.shakeTimeout),this.shakeTimeout=setTimeout(function(){t.$el.classList.remove("animate-shake")},150)}},mounted:function(){this.value&&this.show()},beforeDestroy:function(){clearTimeout(this.shakeTimeout),this.$el.remove(),this.showing&&this.__cleanup()},render:function(t){var e=this;return t("transition",{props:this.transitionProps,on:{afterEnter:function(){e.showPromise&&e.showPromiseResolve()},enterCancelled:function(){e.showPromise&&e.showPromiseReject(),e.$el.remove()},afterLeave:function(){e.hidePromise&&e.hidePromiseResolve(),e.$el.remove()},leaveCancelled:function(){e.hidePromise&&e.hidePromiseReject()}}},[t("div",{staticClass:"modal fullscreen row",class:this.modalClasses,directives:[{name:"show",value:this.showing}]},[t("div",{staticClass:"modal-backdrop absolute-full",on:{click:this.__dismiss}}),t("div",{ref:"content",staticClass:"modal-content",style:this.modalCss,class:this.contentClassesCalc,attrs:{tabindex:-1},on:{click:this.__stopPropagation,touchstart:this.__stopPropagation}},this.$slots.default)])])}},ut={name:"QIcon",props:{name:String,color:String,size:String},computed:{classes:function(){var t,e=this.name;return e?(t=/^fa[s|r|l|b]{0,1} /.test(e)||e.startsWith("icon-")?e:e.startsWith("bt-")?"bt "+e:e.startsWith("eva-")?"eva "+e:/^ion-(md|ios|logo)/.test(e)?"ionicons "+e:e.startsWith("ion-")?"ionicons ion-md"+e.substr(3):e.startsWith("mdi-")?"mdi "+e:"material-icons",this.color?t+" text-"+this.color:t):""},content:function(){return this.classes.startsWith("material-icons")?this.name.replace(/ /g,"_"):" "},style:function(){if(this.size)return{fontSize:this.size}}},render:function(t){return t("i",{staticClass:"q-icon",class:this.classes,style:this.style,attrs:{"aria-hidden":!0}},[this.content,this.$slots.default])}},dt={name:"QList",props:{noBorder:Boolean,dark:Boolean,dense:Boolean,sparse:Boolean,striped:Boolean,stripedOdd:Boolean,separator:Boolean,insetSeparator:Boolean,multiline:Boolean,highlight:Boolean,link:Boolean},computed:{classes:function(){return{"no-border":this.noBorder,"q-list-dark":this.dark,"q-list-dense":this.dense,"q-list-sparse":this.sparse,"q-list-striped":this.striped,"q-list-striped-odd":this.stripedOdd,"q-list-separator":this.separator,"q-list-inset-separator":this.insetSeparator,"q-list-multiline":this.multiline,"q-list-highlight":this.highlight,"q-list-link":this.link}}},render:function(t){return t("div",{staticClass:"q-list",class:this.classes},this.$slots.default)}},pt=null;if(!i)try{pt=new Event("qrouterlinkclick")}catch(t){(pt=document.createEvent("Event")).initEvent("qrouterlinkclick",!0,!1)}var ft={to:[String,Object],exact:Boolean,append:Boolean,replace:Boolean,event:[String,Array],activeClass:String,exactActiveClass:String},mt={props:ft,data:function(){return{routerLinkEventName:"qrouterlinkclick"}}};function vt(t){return void 0===t||t<2?{}:{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t}}var gt={icon:String,rightIcon:String,image:String,rightImage:String,avatar:String,rightAvatar:String,letter:String,rightLetter:String,label:String,sublabel:String,labelLines:[String,Number],sublabelLines:[String,Number]},bt={mixins:[{props:ft}],props:{dark:Boolean,link:Boolean,dense:Boolean,sparse:Boolean,separator:Boolean,insetSeparator:Boolean,multiline:Boolean,highlight:Boolean,tag:{type:String,default:"div"}},computed:{itemClasses:function(){return{"q-item":!0,"q-item-division":!0,"relative-position":!0,"q-item-dark":this.dark,"q-item-dense":this.dense,"q-item-sparse":this.sparse,"q-item-separator":this.separator,"q-item-inset-separator":this.insetSeparator,"q-item-multiline":this.multiline,"q-item-highlight":this.highlight,"q-item-link":this.to||this.link}}}},_t={name:"QItem",mixins:[bt],props:{active:Boolean,link:Boolean},computed:{classes:function(){return[void 0!==this.to?"q-link":{active:this.active},this.itemClasses]}},render:function(t){return void 0!==this.to?t("router-link",{props:Object.assign({},this.$props,{tag:"a"}),class:this.classes},this.$slots.default):t(this.tag,{class:this.classes},this.$slots.default)}},yt={name:"QItemSide",props:{right:Boolean,icon:String,letter:{type:String,validator:function(t){return 1===t.length}},inverted:Boolean,avatar:String,image:String,stamp:String,color:String,textColor:String},computed:{type:function(){var t=this;return["icon","image","avatar","letter","stamp"].find(function(e){return t[e]})},classes:function(){var t=["q-item-side-"+(this.right?"right":"left")];return!this.color||this.icon||this.letter||t.push("text-"+this.color),t},typeClasses:function(){var t=["q-item-"+this.type];return this.color&&(this.inverted&&(this.icon||this.letter)?t.push("bg-"+this.color):this.textColor||t.push("text-"+this.color)),this.textColor&&t.push("text-"+this.textColor),this.inverted&&(this.icon||this.letter)&&(t.push("q-item-inverted"),t.push("flex"),t.push("flex-center")),t},imagePath:function(){return this.image||this.avatar}},render:function(t){var e;return this.type&&(this.icon?(e=t(ut,{class:this.inverted?null:this.typeClasses,props:{name:this.icon}}),this.inverted&&(e=t("div",{class:this.typeClasses},[e]))):e=this.imagePath?t("img",{class:this.typeClasses,attrs:{src:this.imagePath}}):t("div",{class:this.typeClasses},[this.stamp||this.letter])),t("div",{staticClass:"q-item-side q-item-section",class:this.classes},[e,this.$slots.default])}};function wt(t,e,i,s){return t("div",{staticClass:"q-item-"+e+(1===(s=parseInt(s,10))?" ellipsis":""),style:vt(s),domProps:{innerHTML:i}})}var Ct={name:"QItemMain",props:{label:String,labelLines:[String,Number],sublabel:String,sublabelLines:[String,Number],inset:Boolean,tag:{type:String,default:"div"}},render:function(t){return t(this.tag,{staticClass:"q-item-main q-item-section",class:{"q-item-main-inset":this.inset}},[this.label?wt(t,"label",this.label,this.labelLines):null,this.sublabel?wt(t,"sublabel",this.sublabel,this.sublabelLines):null,this.$slots.default])}},kt={name:"QItemSeparator",props:{inset:Boolean},render:function(t){return t("div",{staticClass:"q-item-separator-component",class:{"q-item-separator-inset-component":this.inset}},this.$slots.default)}},xt={name:"QActionSheet",props:{value:Boolean,title:String,grid:Boolean,actions:Array,dismissLabel:String},computed:{contentCss:function(){}},render:function(t){var e=this,i=[],s=this.$slots.title||this.title;return s&&i.push(t("div",{staticClass:"q-actionsheet-title column justify-center"},[s])),i.push(t("div",{staticClass:"q-actionsheet-body scroll"},this.actions?[this.grid?t("div",{staticClass:"q-actionsheet-grid row wrap items-center justify-between"},this.__getActions(t)):t(dt,{staticClass:"no-border",props:{link:!0}},this.__getActions(t))]:this.$slots.default)),t(ht,{ref:"modal",props:{value:this.value,position:"bottom",contentCss:this.contentCss},on:{input:function(t){e.$emit("input",t)},show:function(){e.$emit("show")},hide:function(){e.$emit("hide")},dismiss:function(){e.$emit("cancel")},"escape-key":function(){e.$emit("escape-key")}}},i)},methods:{show:function(){return this.$refs.modal.show()},hide:function(){return this.$refs.modal?this.$refs.modal.hide():Promise.resolve()},__getActions:function(t){var e=this;return this.actions.map(function(i){var s;return i.label?t(e.grid?"div":_t,((s={staticClass:e.grid?"q-actionsheet-grid-item cursor-pointer relative-position column inline flex-center":null,class:i.classes,attrs:{tabindex:0}})[e.grid?"on":"nativeOn"]={click:function(){return e.__onOk(i)},keyup:function(t){13===E(t)&&e.__onOk(i)}},s),e.grid?[i.icon?t(ut,{props:{name:i.icon,color:i.color}}):null,i.avatar?t("img",{domProps:{src:i.avatar},staticClass:"avatar"}):null,t("span",[i.label])]:[t(yt,{props:{icon:i.icon,color:i.color,avatar:i.avatar}}),t(Ct,{props:{inset:!0,label:i.label}})]):t(kt,{staticClass:"col-12"})})},__onOk:function(t){var e=this;this.hide().then(function(){"function"==typeof t.handler&&t.handler(),e.$emit("ok",t)})},__onCancel:function(){var t=this;this.hide().then(function(){t.$emit("cancel")})},__onKeyCancel:function(t){13===E(t)&&this.__onCancel()}}},St=["B","kB","MB","GB","TB","PB"];function qt(t){for(var e=0;parseInt(t,10)>=1024&&e<St.length-1;)t/=1024,++e;return t.toFixed(1)+" "+St[e]}function $t(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Tt(t,e,i){return i<=e?e:Math.min(i,Math.max(e,t))}function Mt(t,e,i){if(i<=e)return e;var s=i-e+1,n=e+(t-e)%s;return n<e&&(n=s+n),0===n?0:n}function Pt(t,e,i){void 0===e&&(e=2),void 0===i&&(i="0");var s=""+t;return s.length>=e?s:new Array(e-s.length+1).join(i)+s}var Lt={humanStorageSize:qt,capitalize:$t,between:Tt,normalizeToInterval:Mt,pad:Pt},Bt=i?null:XMLHttpRequest,Et=i?null:Bt.prototype.send,Nt={start:[],stop:[]},Ot=0;var zt={name:"QAjaxBar",props:{position:{type:String,default:"top",validator:function(t){return["top","right","bottom","left"].includes(t)}},size:{type:String,default:"2px"},color:{type:String,default:"red"},skipHijack:Boolean,reverse:Boolean},data:function(){return{calls:0,progress:0,onScreen:!1,animate:!0}},computed:{classes:function(){return[this.position,"bg-"+this.color,this.animate?"":"no-transition"]},style:function(){var t=this.onScreen,e=function(t){var e=t.p,i=t.pos,s=t.active,n=t.horiz,o=t.reverse,r=t.dir,a=1,l=1;return n?(o&&(a=-1),"bottom"===i&&(l=-1),{transform:"translate3d("+a*(e-100)+"%,"+(s?0:-200*l)+"%,0)"}):(o&&(l=-1),"right"===i&&(a=-1),{transform:"translate3d("+(s?0:r*a*-200)+"%,"+l*(e-100)+"%,0)"})}({p:this.progress,pos:this.position,active:t,horiz:this.horizontal,reverse:this.$q.i18n.rtl&&["top","bottom"].includes(this.position)?!this.reverse:this.reverse,dir:this.$q.i18n.rtl?-1:1});return e[this.sizeProp]=this.size,e.opacity=t?1:0,e},horizontal:function(){return"top"===this.position||"bottom"===this.position},sizeProp:function(){return this.horizontal?"height":"width"}},methods:{start:function(t){var e=this;void 0===t&&(t=300),this.calls++,this.calls>1||(clearTimeout(this.timer),this.$emit("start"),this.onScreen||(this.progress=0,this.onScreen=!0,this.animate=!1,this.timer=setTimeout(function(){e.animate=!0,e.__work(t)},100)))},increment:function(t){this.calls>0&&(this.progress=function(t,e){return"number"!=typeof e&&(e=t<25?3*Math.random()+3:t<65?3*Math.random():t<85?2*Math.random():t<99?.6:0),Tt(t+e,0,100)}(this.progress,t))},stop:function(){var t=this;if(this.calls=Math.max(0,this.calls-1),!(this.calls>0)){clearTimeout(this.timer),this.$emit("stop");var e=function(){t.animate=!0,t.progress=100,t.timer=setTimeout(function(){t.onScreen=!1},1e3)};0===this.progress?this.timer=setTimeout(e,1):e()}},__work:function(t){var e=this;this.progress<100&&(this.timer=setTimeout(function(){e.increment(),e.__work(t)},t))}},mounted:function(){this.skipHijack||(this.hijacked=!0,function(t,e){function i(){Nt.stop.map(function(t){t()})}Nt.start.push(t),Nt.stop.push(e),++Ot>1||(Bt.prototype.send=function(){for(var t=this,e=[],s=arguments.length;s--;)e[s]=arguments[s];Nt.start.map(function(t){t()}),this.addEventListener("abort",i,!1),this.addEventListener("readystatechange",function(){4===t.readyState&&i()},!1),Et.apply(this,e)})}(this.start,this.stop))},beforeDestroy:function(){var t,e;clearTimeout(this.timer),this.hijacked&&(t=this.start,e=this.stop,Nt.start=Nt.start.filter(function(e){return e!==t}),Nt.stop=Nt.stop.filter(function(t){return t!==e}),(Ot=Math.max(0,Ot-1))||(Bt.prototype.send=Et))},render:function(t){return t("div",{staticClass:"q-loading-bar",class:this.classes,style:this.style})}};function Dt(t,e,i){var s=i.stop,n=i.center;s&&t.stopPropagation();var o,r,a=document.createElement("span"),l=document.createElement("span"),c=e.clientWidth>e.clientHeight?e.clientWidth:e.clientHeight,h=(n?c:2*c)+"px",u=e.getBoundingClientRect();if(a.appendChild(l),a.className="q-ripple-container",l.className="q-ripple-animation",l.style.width=h,l.style.height=h,e.appendChild(a),n)o=r=0;else{var d=N(t);o=d.left-u.left-c,r=d.top-u.top-c}l.classList.add("q-ripple-animation-enter"),l.classList.add("q-ripple-animation-visible"),l.style.transform="translate("+o+"px, "+r+"px) scale3d(0, 0, 0)",setTimeout(function(){l.classList.remove("q-ripple-animation-enter"),l.style.transform="translate("+o+"px, "+r+"px) scale3d(1, 1, 1)",setTimeout(function(){l.classList.remove("q-ripple-animation-visible"),setTimeout(function(){a.remove()},300)},300)},10)}function Rt(t){t.mat;return t.ios&&!0}var It={name:"ripple",inserted:function(t,e){var i=e.value,s=e.modifiers;if(!Rt(s)){var n={enabled:!1!==i,modifiers:{stop:s.stop,center:s.center},click:function(e){n.enabled&&-1!==e.detail&&Dt(e,t,n.modifiers)},keyup:function(e){n.enabled&&13===e.keyCode&&Dt(e,t,n.modifiers)}};t.__qripple=n,t.addEventListener("click",n.click,!1),t.addEventListener("keyup",n.keyup,!1)}},update:function(t,e){var i=e.value,s=e.modifiers,n=s.stop,o=s.center,r=t.__qripple;r&&(r.enabled=!1!==i,r.modifiers={stop:n,center:o})},unbind:function(t,e){var i=e.modifiers,s=t.__qripple;s&&!Rt(i)&&(t.removeEventListener("click",s.click,!1),t.removeEventListener("keyup",s.keyup,!1),delete t.__qripple)}},Ht={left:"start",center:"center",right:"end",between:"between",around:"around"},Ft=Object.keys(Ht),At={props:{align:{type:String,default:"center",validator:function(t){return Ft.includes(t)}}},computed:{alignClass:function(){return"justify-"+Ht[this.align]}}},Qt={xs:8,sm:10,md:14,lg:20,xl:24,form:14.777,"form-label":21.777,"form-hide-underline":9.333,"form-label-hide-underline":16.333},Vt={mixins:[At],directives:{Ripple:It},props:{type:String,loading:{type:Boolean,default:null},disable:Boolean,label:[Number,String],noCaps:Boolean,noWrap:Boolean,icon:String,iconRight:String,round:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,push:Boolean,size:String,fab:Boolean,fabMini:Boolean,color:String,textColor:String,glossy:Boolean,dense:Boolean,noRipple:Boolean,tabindex:Number,to:[Object,String],replace:Boolean},computed:{style:function(){if(this.size&&!this.fab&&!this.fabMini)return{fontSize:this.size in Qt?Qt[this.size]+"px":this.size}},isRectangle:function(){return!this.isRound},isRound:function(){return this.round||this.fab||this.fabMini},shape:function(){return"q-btn-"+(this.isRound?"round":"rectangle")},isDisabled:function(){return this.disable||this.loading},hasRipple:function(){return!this.noRipple&&!this.isDisabled},computedTabIndex:function(){return this.isDisabled?-1:this.tabindex||0},isLink:function(){return"a"===this.type||void 0!==this.to},attrs:function(){var t={tabindex:this.computedTabIndex};return"a"!==this.type&&(t.type=this.type||"button"),void 0!==this.to&&(t.href=this.$router.resolve(this.to).href),t},classes:function(){var t=[this.shape];return this.fab?t.push("q-btn-fab"):this.fabMini&&t.push("q-btn-fab-mini"),this.flat?t.push("q-btn-flat"):this.outline?t.push("q-btn-outline"):this.push&&t.push("q-btn-push"),this.isDisabled?t.push("disabled"):(t.push("q-focusable q-hoverable"),this.active&&t.push("active")),this.color?this.flat||this.outline?t.push("text-"+(this.textColor||this.color)):(t.push("bg-"+this.color),t.push("text-"+(this.textColor||"white"))):this.textColor&&t.push("text-"+this.textColor),t.push({"q-btn-no-uppercase":this.noCaps,"q-btn-rounded":this.rounded,"q-btn-dense":this.dense,glossy:this.glossy}),t},innerClasses:function(){var t=[this.alignClass];return!0===this.noWrap&&t.push("no-wrap","text-no-wrap"),!0===this.repeating&&t.push("non-selectable"),!0===this.loading&&t.push("q-btn-inner--hidden"),t}}},jt={props:{color:String,size:{type:[Number,String],default:"1em"}},computed:{classes:function(){if(this.color)return"text-"+this.color}}},Wt={name:"QSpinnerMat",mixins:[jt],render:function(t){return t("svg",{staticClass:"q-spinner q-spinner-mat",class:this.classes,attrs:{width:this.size,height:this.size,viewBox:"25 25 50 50"}},[t("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-miterlimit":"10"}})])}},Kt={mixins:[Wt],name:"QSpinner"},Ut={name:"QBtn",mixins:[Vt],props:{percentage:Number,darkPercentage:Boolean,waitForRipple:Boolean,repeatTimeout:[Number,Function]},computed:{hasPercentage:function(){return void 0!==this.percentage},width:function(){return Tt(this.percentage,0,100)+"%"},events:function(){var t=this;return this.isDisabled||!this.repeatTimeout?{click:this.click,keydown:this.__onKeyDown,keyup:this.__onKeyUp}:{mousedown:this.__startRepeat,touchstart:this.__startRepeat,keydown:function(e){t.__onKeyDown(e,!0)},mouseup:this.__endRepeat,touchend:this.__endRepeat,keyup:function(e){t.__onKeyUp(e,!0)},mouseleave:this.__abortRepeat,touchmove:this.__abortRepeat,blur:this.__abortRepeat}}},data:function(){return{repeating:!1,active:!1}},methods:{click:function(t){var e=this;if(this.__cleanup(),void 0===this.to&&!this.isDisabled||(t&&H(t),!this.isDisabled))if(t&&-1!==t.detail&&"submit"===this.type){H(t);var i=new MouseEvent("click",Object.assign({},t,{detail:-1}));this.timer=setTimeout(function(){return e.$el&&e.$el.dispatchEvent(i)},200)}else{var s=function(){e.$router[e.replace?"replace":"push"](e.to)},n=function(){e.isDisabled||(e.$emit("click",t,s),void 0!==e.to&&!1!==t.navigate&&s())};this.waitForRipple&&this.hasRipple?this.timer=setTimeout(n,300):n()}},__cleanup:function(){clearTimeout(this.timer)},__onKeyDown:function(t,e){this.isDisabled||13!==t.keyCode||(this.active=!0,e?this.__startRepeat(t):H(t))},__onKeyUp:function(t,e){this.active&&(this.active=!1,this.isDisabled||13!==t.keyCode||this[e?"__endRepeat":"click"](t))},__startRepeat:function(t){var e=this;if(!this.repeating){var i=function(){e.timer=setTimeout(s,"function"==typeof e.repeatTimeout?e.repeatTimeout(e.repeatCount):e.repeatTimeout)},s=function(){e.isDisabled||(e.repeatCount+=1,t.repeatCount=e.repeatCount,e.$emit("click",t),i())};this.repeatCount=0,this.repeating=!0,i()}},__abortRepeat:function(){this.repeating=!1,this.__cleanup()},__endRepeat:function(t){this.repeating&&(this.repeating=!1,this.repeatCount?this.repeatCount=0:(t.detail||t.keyCode)&&(t.repeatCount=0,this.$emit("click",t)),this.__cleanup())}},beforeDestroy:function(){this.__cleanup()},render:function(t){var e=[].concat(this.$slots.default);return void 0!==this.label&&!0===this.isRectangle&&e.unshift(t("div",[this.label])),void 0!==this.icon&&e.unshift(t(ut,{class:{"on-left":void 0!==this.label&&!0===this.isRectangle},props:{name:this.icon}})),void 0!==this.iconRight&&!1===this.isRound&&e.push(t(ut,{staticClass:"on-right",props:{name:this.iconRight}})),t(this.isLink?"a":"button",{staticClass:"q-btn inline relative-position q-btn-item non-selectable",class:this.classes,style:this.style,attrs:this.attrs,on:this.events,directives:this.hasRipple?[{name:"ripple",value:!0,modifiers:{center:this.isRound}}]:null},[this.$q.platform.is.desktop?t("div",{staticClass:"q-focus-helper"}):null,this.loading&&this.hasPercentage?t("div",{staticClass:"q-btn-progress absolute-full",class:{"q-btn-dark-progress":this.darkPercentage},style:{width:this.width}}):null,t("div",{staticClass:"q-btn-inner row col items-center q-popup--skip",class:this.innerClasses},e),null!==this.loading?t("transition",{props:{name:"q-transition--fade"}},!0===this.loading?[t("div",{key:"loading",staticClass:"absolute-full flex flex-center"},void 0!==this.$slots.loading?this.$slots.loading:[t(Kt)])]:void 0):null])}},Yt={name:"QAlert",props:{type:{type:String,validator:function(t){return["positive","negative","warning","info"].includes(t)}},color:{type:String,default:"negative"},textColor:String,message:String,detail:String,icon:String,avatar:String,actions:Array},computed:{computedIcon:function(){return this.icon?this.icon:this.$q.icon.type[this.type||this.color]},classes:function(){return"bg-"+(this.type||this.color)+" text-"+(this.textColor||"white")}},render:function(t){var e=this,i=[],s=this.$slots.detail||this.detail;return this.avatar?i.push(t("img",{staticClass:"avatar",attrs:{src:this.avatar}})):(this.icon||this.type)&&i.push(t(ut,{props:{name:this.computedIcon}})),t("div",[t("div",{staticClass:"q-alert row no-wrap shadow-2",class:this.classes},[i.length?t("div",{staticClass:"q-alert-side col-auto row flex-center"},i):null,t("div",{staticClass:"q-alert-content col self-center"},[t("div",this.$slots.default||this.message),s?t("div",{staticClass:"q-alert-detail"},[s]):null]),this.actions&&this.actions.length?t("div",{staticClass:"q-alert-actions col-auto gutter-xs column flex-center"},this.actions.map(function(i){return t("div",{staticClass:"full-width"},[t(Ut,{staticClass:"full-width",props:{flat:!0,dense:!0,align:"left",icon:i.icon,label:!0===i.closeBtn?"string"==typeof i.label?i.label:e.$q.i18n.label.close:i.label},on:{click:function(){return i.handler()}}})])})):null])])}};function Jt(t,e){var i=e.field,s=e.list,n=t.toLowerCase();return s.filter(function(t){return(""+t[i]).toLowerCase().startsWith(n)})}function Gt(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}function Xt(){return Gt()+Gt()+"-"+Gt()+"-"+Gt()+"-"+Gt()+"-"+Gt()+Gt()+Gt()}function Zt(t){var e,i=t.el,s=t.animate,n=t.anchorEl,o=t.anchorOrigin,r=t.selfOrigin,a=t.maxHeight,l=t.event,c=t.anchorClick,h=t.touchPosition,u=t.offset,d=t.touchOffset,p=t.cover;if(i.style.maxHeight=a||"65vh",i.style.maxWidth="100vw",!l||c&&!h)if(d){var f=n.getBoundingClientRect(),m=f.top,v=f.left,g=m+d.top,b=v+d.left;e={top:g,left:b,width:1,height:1,right:b+1,center:g,middle:b,bottom:g+1}}else e=function(t,e){var i=t.getBoundingClientRect(),s=i.top,n=i.left,o=i.right,r=i.bottom,a={top:s,left:n,width:t.offsetWidth,height:t.offsetHeight};return e&&(a.top-=e[1],a.left-=e[0],r&&(r+=e[1]),o&&(o+=e[0]),a.width+=e[0],a.height+=e[1]),a.right=o||a.left+a.width,a.bottom=r||a.top+a.height,a.middle=a.left+(a.right-a.left)/2,a.center=a.top+(a.bottom-a.top)/2,a}(n,u);else{var _=N(l),y=_.top,w=_.left;e={top:y,left:w,width:1,height:1,right:w+1,center:y,middle:w,bottom:y+1}}var C=function(t){return{top:0,center:t.offsetHeight/2,bottom:t.offsetHeight,left:0,middle:t.offsetWidth/2,right:t.offsetWidth}}(i),k={top:e[o.vertical]-C[r.vertical],left:e[o.horizontal]-C[r.horizontal]};if(k=function(t,e,i,s,n,o){var r=et(),a=window.innerHeight,l=window.innerWidth;if(a-=r,l-=r,n.top<0||n.top+e.bottom>a)if("center"===i.vertical)n.top=t[i.vertical]>a/2?a-e.bottom:0,n.maxHeight=Math.min(e.bottom,a);else if(t[i.vertical]>a/2){var c=Math.min(a,"center"===s.vertical?t.center:s.vertical===i.vertical?t.bottom:t.top);n.maxHeight=Math.min(e.bottom,c),n.top=Math.max(0,c-n.maxHeight)}else n.top="center"===s.vertical?t.center:s.vertical===i.vertical?t.top:t.bottom,n.maxHeight=Math.min(e.bottom,a-n.top);if(n.left<0||n.left+e.right>l)if(n.maxWidth=Math.min(e.right,l),"middle"===i.horizontal)n.left=t[i.horizontal]>l/2?l-e.right:0;else if(o)n.left=n.left<0?0:l-e.right;else if(t[i.horizontal]>l/2){var h=Math.min(l,"middle"===s.horizontal?t.center:s.horizontal===i.horizontal?t.right:t.left);n.maxWidth=Math.min(e.right,h),n.left=Math.max(0,h-n.maxWidth)}else n.left="middle"===s.horizontal?t.center:s.horizontal===i.horizontal?t.left:t.right,n.maxWidth=Math.min(e.right,l-n.left);return n}(e,C,r,o,k,p),i.style.top=Math.max(0,k.top)+"px",i.style.left=Math.max(0,k.left)+"px",k.maxHeight&&(i.style.maxHeight=k.maxHeight+"px"),k.maxWidth&&(i.style.maxWidth=k.maxWidth+"px"),s){var x=k.top<e.top?["up","down"]:["down","up"];i.classList.add("animate-popup-"+x[0]),i.classList.remove("animate-popup-"+x[1])}}function te(t){var e=t.split(" ");return 2===e.length&&(["top","center","bottom"].includes(e[0])?!!["left","middle","right"].includes(e[1])||(console.error("Anchor/Self position must end with one of left/middle/right"),!1):(console.error("Anchor/Self position must start with one of top/center/bottom"),!1))}function ee(t){return!t||2===t.length&&("number"==typeof t[0]&&"number"==typeof t[1])}function ie(t){var e=t.split(" ");return{vertical:e[0],horizontal:e[1]}}function se(t){var e,i=!1;function s(){for(var s=this,n=[],o=arguments.length;o--;)n[o]=arguments[o];i||(i=!0,e=requestAnimationFrame(function(){t.apply(s,n),i=!1}))}return s.cancel=function(){window.cancelAnimationFrame(e),i=!1},s}var ne={data:function(){return{canRender:!n}},mounted:function(){!1===this.canRender&&(