UNPKG

quasar

Version:

Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time

6 lines 534 kB
/*! * Quasar Framework v1.15.16 * (c) 2015-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=t||self).Quasar=e(t.Vue)}(this,function(t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;const e="undefined"==typeof window;let i,s=!1,o=e,n=!1;const r=!1===e&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function a(t){const n=t.toLowerCase(),a=function(t,e){const i=/(edge|edga|edgios)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(vivaldi)[\/]([\w.]+)/.exec(t)||/(chrome|crios)[\/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(firefox|fxios)[\/]([\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]||""}}(n,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)||[]}(n)),l={};a.browser&&(l[a.browser]=!0,l.version=a.version,l.versionNumber=parseInt(a.versionNumber,10)),a.platform&&(l[a.platform]=!0);const h=l.android||l.ios||l.bb||l.blackberry||l.ipad||l.iphone||l.ipod||l.kindle||l.playbook||l.silk||l["windows phone"];return!0===h||n.indexOf("mobile")>-1?(l.mobile=!0,l.edga||l.edgios?(l.edge=!0,a.browser="edge"):l.crios?(l.chrome=!0,a.browser="chrome"):l.fxios&&(l.firefox=!0,a.browser="firefox")):l.desktop=!0,(l.ipod||l.ipad||l.iphone)&&(l.ios=!0),l["windows phone"]&&(l.winphone=!0,delete l["windows phone"]),(l.chrome||l.opr||l.safari||l.vivaldi||!0===l.mobile&&!0!==l.ios&&!0!==h)&&(l.webkit=!0),(l.rv||l.iemobile)&&(a.browser="ie",l.ie=!0),(l.safari&&l.blackberry||l.bb)&&(a.browser="blackberry",l.blackberry=!0),l.safari&&l.playbook&&(a.browser="playbook",l.playbook=!0),l.opr&&(a.browser="opera",l.opera=!0),l.safari&&l.android&&(a.browser="android",l.android=!0),l.safari&&l.kindle&&(a.browser="kindle",l.kindle=!0),l.safari&&l.silk&&(a.browser="silk",l.silk=!0),l.vivaldi&&(a.browser="vivaldi",l.vivaldi=!0),l.name=a.browser,l.platform=a.platform,!1===e&&(n.indexOf("electron")>-1?l.electron=!0:document.location.href.indexOf("-extension://")>-1?l.bex=!0:(void 0!==window.Capacitor?(l.capacitor=!0,l.nativeMobile=!0,l.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(l.cordova=!0,l.nativeMobile=!0,l.nativeMobileWrapper="cordova"),!0===r&&!0===l.mac&&(!0===l.desktop&&!0===l.safari||!0===l.nativeMobile&&!0!==l.android&&!0!==l.ios&&!0!==l.ipad)&&function(t){i={is:{...t}},delete t.mac,delete t.desktop;const e=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(t,{mobile:!0,ios:!0,platform:e,[e]:!0})}(l)),!0===(s=void 0===l.nativeMobile&&void 0===l.electron&&null!==document.querySelector("[data-server-rendered]"))&&(o=!0)),l}const l=!0!==e?navigator.userAgent||navigator.vendor||window.opera:"",h={has:{touch:!1,webStorage:!1},within:{iframe:!1}},d=!1===e?{userAgent:l,is:a(l),has:{touch:r,webStorage:(()=>{try{if(window.localStorage)return!0}catch(t){}return!1})()},within:{iframe:window.self!==window.top}}:h,c={install(n,r){!0===e?r.server.push((t,e)=>{t.platform=this.parseSSR(e.ssr)}):!0===s?(Object.assign(this,d,i,h),r.takeover.push(t=>{o=s=!1,Object.assign(t.platform,d),i=void 0}),t.util.defineReactive(n,"platform",this)):(Object.assign(this,d),n.platform=this)}};!0===e?c.parseSSR=(t=>{const e=t.req.headers["user-agent"]||t.req.headers["User-Agent"]||"";return{...d,userAgent:e,is:a(e)}}):n=!0===d.is.ios&&-1===window.navigator.vendor.toLowerCase().indexOf("apple");const u={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{var p=Object.defineProperty({},"passive",{get(){Object.assign(u,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,p),window.removeEventListener("qtest",null,p)}catch(t){}function m(){}function g(t){return 0===t.button}function f(t){return t.touches&&t.touches[0]?t=t.touches[0]:t.changedTouches&&t.changedTouches[0]?t=t.changedTouches[0]:t.targetTouches&&t.targetTouches[0]&&(t=t.targetTouches[0]),{top:t.clientY,left:t.clientX}}function _(t){if(t.path)return t.path;if(t.composedPath)return t.composedPath();const e=[];let i=t.target;for(;i;){if(e.push(i),"HTML"===i.tagName)return e.push(document),e.push(window),e;i=i.parentElement}}const v=40,b=800;function y(t){t.stopPropagation()}function w(t){!1!==t.cancelable&&t.preventDefault()}function S(t){!1!==t.cancelable&&t.preventDefault(),t.stopPropagation()}function x(t,e){if(void 0===t||!0===e&&!0===t.__dragPrevented)return;const i=!0===e?t=>{t.__dragPrevented=!0,t.addEventListener("dragstart",w,u.notPassiveCapture)}:t=>{delete t.__dragPrevented,t.removeEventListener("dragstart",w,u.notPassiveCapture)};t.querySelectorAll("a, img").forEach(i)}function C(t,{bubbles:e=!1,cancelable:i=!1}={}){try{return new CustomEvent(t,{bubbles:e,cancelable:i})}catch(s){const o=document.createEvent("Event");return o.initEvent(t,e,i),o}}function k(t,e,i){const s=`__q_${e}_evt`;t[s]=void 0!==t[s]?t[s].concat(i):i,i.forEach(e=>{e[0].addEventListener(e[1],t[e[2]],u[e[3]])})}function q(t,e){const i=`__q_${e}_evt`;void 0!==t[i]&&(t[i].forEach(e=>{e[0].removeEventListener(e[1],t[e[2]],u[e[3]])}),t[i]=void 0)}var $={listenOpts:u,leftClick:g,middleClick:function(t){return 1===t.button},rightClick:function(t){return 2===t.button},position:f,getEventPath:_,getMouseWheelDistance:function(t){let e=t.deltaX,i=t.deltaY;if((e||i)&&t.deltaMode){const s=1===t.deltaMode?v:b;e*=s,i*=s}return t.shiftKey&&!e&&([i,e]=[e,i]),{x:e,y:i}},stop:y,prevent:w,stopAndPrevent:S,preventDraggable:x,create:C};function T(t,e=250,i){let s;function o(){const o=arguments;clearTimeout(s),!0===i&&void 0===s&&t.apply(this,o),s=setTimeout(()=>{s=void 0,!0!==i&&t.apply(this,o)},e)}return o.cancel=(()=>{clearTimeout(s)}),o}const M=["sm","md","lg","xl"],{passive:L}=u;var B={width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1,setSizes:m,setDebounce:m,install(i,o,n){if(!0===e)return void(i.screen=this);const r=void 0!==n.screen&&!0===n.screen.bodyClasses,a=t=>{const e=window.innerWidth,i=window.innerHeight;if(i!==this.height&&(this.height=i),e!==this.width)this.width=e;else if(!0!==t)return;let s=this.sizes;this.gt.xs=e>=s.sm,this.gt.sm=e>=s.md,this.gt.md=e>=s.lg,this.gt.lg=e>=s.xl,this.lt.sm=e<s.sm,this.lt.md=e<s.md,this.lt.lg=e<s.lg,this.lt.xl=e<s.xl,this.xs=this.lt.sm,this.sm=!0===this.gt.xs&&!0===this.lt.md,this.md=!0===this.gt.sm&&!0===this.lt.lg,this.lg=!0===this.gt.md&&!0===this.lt.xl,this.xl=this.gt.lg,(s=(!0===this.xs?"xs":!0===this.sm&&"sm")||!0===this.md&&"md"||!0===this.lg&&"lg"||"xl")!==this.name&&(!0===r&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${s}`)),this.name=s)};let l,h={},d=16;this.setSizes=(t=>{M.forEach(e=>{void 0!==t[e]&&(h[e]=t[e])})}),this.setDebounce=(t=>{d=t});const c=()=>{const t=getComputedStyle(document.body),e=void 0!==window.visualViewport?window.visualViewport:window;t.getPropertyValue("--q-size-sm")&&M.forEach(e=>{this.sizes[e]=parseInt(t.getPropertyValue(`--q-size-${e}`),10)}),this.setSizes=(t=>{M.forEach(e=>{t[e]&&(this.sizes[e]=t[e])}),a(!0)}),this.setDebounce=(t=>{void 0!==l&&e.removeEventListener("resize",l,L),l=t>0?T(a,t):a,e.addEventListener("resize",l,L)}),this.setDebounce(d),Object.keys(h).length>0?(this.setSizes(h),h=void 0):a(),!0===r&&"xs"===this.name&&document.body.classList.add("screen--xs")};!0===s?o.takeover.push(c):c(),t.util.defineReactive(i,"screen",this)}};const E={isActive:!1,mode:!1,install(i,o,{dark:n}){if(this.isActive=!0===n,!0===e)return o.server.push((t,e)=>{t.dark={isActive:!1,mode:!1,set:i=>{e.ssr.Q_BODY_CLASSES=e.ssr.Q_BODY_CLASSES.replace(" body--light","").replace(" body--dark","")+` body--${!0===i?"dark":"light"}`,t.dark.isActive=!0===i,t.dark.mode=i},toggle:()=>{t.dark.set(!1===t.dark.isActive)}},t.dark.set(n)}),void(this.set=m);const r=void 0!==n&&n;if(!0===s){const t=t=>{this.__fromSSR=t},e=this.set;this.set=t,t(r),o.takeover.push(()=>{this.set=e,this.set(this.__fromSSR)})}else this.set(r);t.util.defineReactive(this,"isActive",this.isActive),t.util.defineReactive(i,"dark",this)},set(t){this.mode=t,"auto"===t?(void 0===this.__media&&(this.__media=window.matchMedia("(prefers-color-scheme: dark)"),this.__updateMedia=(()=>{this.set("auto")}),this.__media.addListener(this.__updateMedia)),t=this.__media.matches):void 0!==this.__media&&(this.__media.removeListener(this.__updateMedia),this.__media=void 0),this.isActive=!0===t,document.body.classList.remove(`body--${!0===t?"light":"dark"}`),document.body.classList.add(`body--${!0===t?"dark":"light"}`)},toggle(){E.set(!1===E.isActive)},__media:void 0},P=()=>!0;function z(t){return"string"==typeof t&&""!==t&&"/"!==t&&"#/"!==t}function A(t){return!0===t.startsWith("#")&&(t=t.substr(1)),!1===t.startsWith("/")&&(t="/"+t),!0===t.endsWith("/")&&(t=t.substr(0,t.length-1)),"#"+t}var O={__history:[],add:m,remove:m,install(t){if(!0===e)return;const{cordova:i,capacitor:s}=d.is;if(!0!==i&&!0!==s)return;const o=t[!0===i?"cordova":"capacitor"];if(void 0!==o&&!1===o.backButton)return;if(!0===s&&(void 0===window.Capacitor||void 0===window.Capacitor.Plugins.App))return;this.add=(t=>{void 0===t.condition&&(t.condition=P),this.__history.push(t)}),this.remove=(t=>{const e=this.__history.indexOf(t);e>=0&&this.__history.splice(e,1)});const n=function(t){if(!1===t.backButtonExit)return()=>!1;if("*"===t.backButtonExit)return P;const e=["#/"];return!0===Array.isArray(t.backButtonExit)&&e.push(...t.backButtonExit.filter(z).map(A)),()=>e.includes(window.location.hash)}(Object.assign({backButtonExit:!0},o)),r=()=>{if(this.__history.length){const t=this.__history[this.__history.length-1];!0===t.condition()&&(this.__history.pop(),t.handler())}else!0===n()?navigator.app.exitApp():window.history.back()};!0===i?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",r,!1)}):window.Capacitor.Plugins.App.addListener("backButton",r)}},D={isoName:"en-us",nativeName:"English (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,pluralDay:"days"},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",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 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",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function I(){if(!0===e)return;const t=navigator.language||navigator.languages[0]||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage;return t?t.toLowerCase():void 0}var R={getLocale:I,install(i,o,n){const r=n||D;this.set=((t=D,o)=>{const n={...t,rtl:!0===t.rtl,getLocale:I};if(!0===e){if(void 0===o)return void console.error("SSR ERROR: second param required: Quasar.lang.set(lang, ssrContext)");const t=!0===n.rtl?"rtl":"ltr",e=`lang=${n.isoName} dir=${t}`;n.set=o.$q.lang.set,o.Q_HTML_ATTRS=void 0!==o.Q_PREV_LANG?o.Q_HTML_ATTRS.replace(o.Q_PREV_LANG,e):e,o.Q_PREV_LANG=e,o.$q.lang=n}else{if(!1===s){const t=document.documentElement;t.setAttribute("dir",!0===n.rtl?"rtl":"ltr"),t.setAttribute("lang",n.isoName)}n.set=this.set,i.lang=this.props=n,this.isoName=n.isoName,this.nativeName=n.nativeName}}),!0===e?(o.server.push((t,e)=>{t.lang={},t.lang.set=(t=>{this.set(t,e.ssr)}),t.lang.set(r)}),this.isoName=r.isoName,this.nativeName=r.nativeName,this.props=r):(t.util.defineReactive(i,"lang",{}),this.set(r))}};const F=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function V({r:t,g:e,b:i,a:s}){const o=void 0!==s;if(t=Math.round(t),e=Math.round(e),i=Math.round(i),t>255||e>255||i>255||o&&s>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return s=o?(256|Math.round(255*s/100)).toString(16).slice(1):"","#"+(i|e<<8|t<<16|1<<24).toString(16).slice(1)+s}function N({r:t,g:e,b:i,a:s}){return`rgb${void 0!==s?"a":""}(${t},${e},${i}${void 0!==s?","+s/100:""})`}function H(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]);const 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 j({h:t,s:e,v:i,a:s}){let o,n,r;e/=100,i/=100,t/=360;const a=Math.floor(6*t),l=6*t-a,h=i*(1-e),d=i*(1-l*e),c=i*(1-(1-l)*e);switch(a%6){case 0:o=i,n=c,r=h;break;case 1:o=d,n=i,r=h;break;case 2:o=h,n=i,r=c;break;case 3:o=h,n=d,r=i;break;case 4:o=c,n=h,r=i;break;case 5:o=i,n=h,r=d}return{r:Math.round(255*o),g:Math.round(255*n),b:Math.round(255*r),a:s}}function Q({r:t,g:e,b:i,a:s}){const o=Math.max(t,e,i),n=Math.min(t,e,i),r=o-n,a=0===o?0:r/o,l=o/255;let h;switch(o){case n:h=0;break;case t:h=e-i+r*(e<i?6:0),h/=6*r;break;case e:h=i-t+2*r,h/=6*r;break;case i:h=t-e+4*r,h/=6*r}return{h:Math.round(360*h),s:Math.round(100*a),v:Math.round(100*l),a:s}}function W(t){if("string"!=typeof t)throw new TypeError("Expected a string");const e=t.replace(/ /g,""),i=F.exec(e);if(null===i)return H(e);const s={r:Math.min(255,parseInt(i[2],10)),g:Math.min(255,parseInt(i[3],10)),b:Math.min(255,parseInt(i[4],10))};if(i[1]){const t=parseFloat(i[5]);s.a=100*Math.min(1,!0===isNaN(t)?1:t)}return s}function Y(t){if("string"!=typeof t&&(!t||void 0===t.r))throw new TypeError("Expected a string or a {r, g, b} object as color");const e="string"==typeof t?W(t):t,i=e.r/255,s=e.g/255,o=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*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}function U(t,e,i=document.body){if("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");i.style.setProperty(`--q-color-${t}`,e)}function K(t,e=document.body){if("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 X={rgbToHex:V,hexToRgb:H,hsvToRgb:j,rgbToHsv:Q,textToRgb:W,lighten:function(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");const i=W(t),s=e<0?0:255,o=Math.abs(e)/100,n=i.r,r=i.g,a=i.b;return"#"+(16777216+65536*(Math.round((s-n)*o)+n)+256*(Math.round((s-r)*o)+r)+(Math.round((s-a)*o)+a)).toString(16).slice(1)},luminosity:Y,brightness: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");const e="string"==typeof t?W(t):t;return(299*e.r+587*e.g+114*e.b)/1e3},blend:function(t,e){if("string"!=typeof t&&(!t||void 0===t.r))throw new TypeError("Expected a string or a {r, g, b[, a]} object as fgColor");if("string"!=typeof e&&(!e||void 0===e.r))throw new TypeError("Expected a string or a {r, g, b[, a]} object as bgColor");const i="string"==typeof t?W(t):t,s=i.r/255,o=i.g/255,n=i.b/255,r=void 0!==i.a?i.a/100:1,a="string"==typeof e?W(e):e,l=a.r/255,h=a.g/255,d=a.b/255,c=void 0!==a.a?a.a/100:1,u=r+c*(1-r),p={r:Math.round((s*r+l*c*(1-r))/u*255),g:Math.round((o*r+h*c*(1-r))/u*255),b:Math.round((n*r+d*c*(1-r))/u*255),a:Math.round(100*u)};return"string"==typeof t?V(p):p},changeAlpha:function(t,e){if("string"!=typeof t)throw new TypeError("Expected a string as color");if(void 0===e||e<-1||e>1)throw new TypeError("Expected offset to be between -1 and 1");const{r:i,g:s,b:o,a:n}=W(t),r=void 0!==n?n/100:0;return V({r:i,g:s,b:o,a:Math.round(100*Math.min(1,Math.max(0,r+e)))})},setBrand:U,getBrand:K,getPaletteColor:function(t){if("string"!=typeof t)throw new TypeError("Expected a string as color");const e=document.createElement("div");e.className=`text-${t} invisible fixed no-pointer-events`,document.body.appendChild(e);const i=getComputedStyle(e).getPropertyValue("color");return e.remove(),V(W(i))}};let G=!1;function Z(t){G=!0===t.isComposing}function J(t){return!0===G||t!==Object(t)||!0===t.isComposing||!0===t.qKeyEvent}function tt(t,e){return!0!==J(t)&&[].concat(e).includes(t.keyCode)}function et({is:t,has:e,within:i},s){const o=[!0===t.desktop?"desktop":"mobile",`${!1===e.touch?"no-":""}touch`];if(!0===t.mobile){const e=function(t){return!0===t.ios?"ios":!0===t.android?"android":void 0}(t);void 0!==e&&o.push("platform-"+e)}if(!0===t.nativeMobile){const e=t.nativeMobileWrapper;o.push(e),o.push("native-mobile"),!0!==t.ios||void 0!==s[e]&&!1===s[e].iosStatusBarPadding||o.push("q-ios-padding")}else!0===t.electron?o.push("electron"):!0===t.bex&&o.push("bex");return!0===i.iframe&&o.push("within-iframe"),o}var it={install(t,o){if(!0!==e){if(!0===s)!function(){const t=document.body.className;let e=t;void 0!==i&&(e=e.replace("desktop","platform-ios mobile")),!0===d.has.touch&&(e=e.replace("no-touch","touch")),!0===d.within.iframe&&(e+=" within-iframe"),t!==e&&(document.body.className=e)}();else{const t=et(d,o);!0===d.is.ie&&11===d.is.versionNumber?t.forEach(t=>document.body.classList.add(t)):document.body.classList.add.apply(document.body.classList,t)}void 0!==o.brand&&function(t){for(const e in t)U(e,t[e])}(o.brand),!0===d.is.ios&&document.body.addEventListener("touchstart",m),window.addEventListener("keydown",Z,!0)}else t.server.push((t,e)=>{const i=et(t.platform,o),s=e.ssr.setBodyClasses;void 0!==o.screen&&!0===o.screen.bodyClass&&i.push("screen--xs"),"function"==typeof s?s(i):e.ssr.Q_BODY_CLASSES=i.join(" ")})}},st={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",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},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",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}},ot={install(i,s,o){const n=o||st;this.set=((t,s)=>{const o={...t};if(!0===e){if(void 0===s)return void console.error("SSR ERROR: second param required: Quasar.iconSet.set(iconSet, ssrContext)");o.set=s.$q.iconSet.set,s.$q.iconSet=o}else o.set=this.set,i.iconSet=o}),!0===e?s.server.push((t,e)=>{t.iconSet={},t.iconSet.set=(t=>{this.set(t,e.ssr)}),t.iconSet.set(n)}):(t.util.defineReactive(i,"iconMapFn",void 0),t.util.defineReactive(i,"iconSet",{}),this.set(n))}};const nt=[c,B,E],rt={server:[],takeover:[]},at={version:"1.15.16",config:{}};const lt=["B","KB","MB","GB","TB","PB"];function ht(t){let e=0;for(;parseInt(t,10)>=1024&&e<lt.length-1;)t/=1024,++e;return`${t.toFixed(1)}${lt[e]}`}function dt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function ct(t,e,i){return i<=e?e:Math.min(i,Math.max(e,t))}function ut(t,e,i){if(i<=e)return e;const s=i-e+1;let o=e+(t-e)%s;return o<e&&(o=s+o),0===o?0:o}function pt(t,e=2,i="0"){if(void 0===t||null===t)return t;const s=""+t;return s.length>=e?s:new Array(e-s.length+1).join(i)+s}var mt={humanStorageSize:ht,capitalize:dt,between:ct,normalizeToInterval:ut,pad:pt};function gt(t,i,s){if(!0===e)return s;const o=`__qcache_${i}`;return void 0===t[o]?t[o]=s:t[o]}function ft(t,i,s){if(!0===e)return s();const o=`__qcache_${i}`;return void 0===t[o]?t[o]=s():t[o]}function _t(t,e){return{data(){const i={},s=this[t];for(const t in s)i[t]=s[t];return{[e]:i}},watch:{[t](t,i){const s=this[e];if(void 0!==i)for(const e in i)void 0===t[e]&&this.$delete(s,e);for(const e in t)s[e]!==t[e]&&this.$set(s,e,t[e])}}}}const vt={"aria-hidden":"true"};var bt=_t("$attrs","qAttrs");const yt=e?null:XMLHttpRequest,wt=e?null:yt.prototype.send,St=[],xt=[];let Ct=0;var kt=t.extend({name:"QAjaxBar",props:{position:{type:String,default:"top",validator:t=>["top","right","bottom","left"].includes(t)},size:{type:String,default:"2px"},color:String,skipHijack:Boolean,reverse:Boolean},data:()=>({calls:0,progress:0,onScreen:!1,animate:!0}),computed:{classes(){return`q-loading-bar q-loading-bar--${this.position}`+(void 0!==this.color?` bg-${this.color}`:"")+(!0===this.animate?"":" no-transition")},style(){const t=this.onScreen,e=function({p:t,pos:e,active:i,horiz:s,reverse:o,dir:n}){let r=1,a=1;return s?(o&&(r=-1),"bottom"===e&&(a=-1),{transform:`translate3d(${r*(t-100)}%,${i?0:-200*a}%,0)`}):(o&&(a=-1),"right"===e&&(r=-1),{transform:`translate3d(${i?0:n*r*-200}%,${a*(t-100)}%,0)`})}({p:this.progress,pos:this.position,active:t,horiz:this.horizontal,reverse:!0===this.$q.lang.rtl&&["top","bottom"].includes(this.position)?!this.reverse:this.reverse,dir:!0===this.$q.lang.rtl?-1:1});return e[this.sizeProp]=this.size,e.opacity=t?1:0,e},horizontal(){return"top"===this.position||"bottom"===this.position},sizeProp(){return this.horizontal?"height":"width"},attrs(){return!0===this.onScreen?{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":this.progress}:vt}},methods:{start(t=300){const e=this.speed;this.speed=Math.max(0,t)||0,this.calls++,this.calls>1?0===e&&t>0?this.__work():e>0&&t<=0&&clearTimeout(this.timer):(clearTimeout(this.timer),this.$emit("start"),this.progress=0,!0!==this.onScreen&&(this.onScreen=!0,this.animate=!1,this.timer=setTimeout(()=>{this.animate=!0,t>0&&this.__work()},100)))},increment(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),ct(t+e,0,100)}(this.progress,t))},stop(){if(this.calls=Math.max(0,this.calls-1),this.calls>0)return;clearTimeout(this.timer),this.$emit("stop");const t=()=>{this.animate=!0,this.progress=100,this.timer=setTimeout(()=>{this.onScreen=!1},1e3)};0===this.progress?this.timer=setTimeout(t,1):t()},__work(){this.progress<100&&(this.timer=setTimeout(()=>{this.increment(),this.__work()},this.speed))}},mounted(){!0!==this.skipHijack&&(this.hijacked=!0,function(t,e){function i(){xt.forEach(t=>{t()})}St.push(t),xt.push(e),++Ct>1||(yt.prototype.send=function(){St.forEach(t=>{t()}),this.addEventListener("loadend",i,!1),wt.apply(this,arguments)})}(this.start,this.stop))},beforeDestroy(){var t,e;clearTimeout(this.timer),!0===this.hijacked&&(t=this.start,e=this.stop,St.splice(St.indexOf(t),1),xt.splice(xt.indexOf(e),1),(Ct=Math.max(0,Ct-1))||(yt.prototype.send=wt))},render(t){return t("div",{class:this.classes,style:this.style,attrs:this.attrs})}});const qt={xs:18,sm:24,md:32,lg:38,xl:46};function $t(t){return{props:{size:String},computed:{sizeStyle(){if(void 0!==this.size)return{fontSize:this.size in t?`${t[this.size]}px`:this.size}}}}}var Tt=$t(qt),Mt={props:{tag:{type:String,default:"div"}}},Lt=_t("$listeners","qListeners");function Bt(t,e,i){return void 0!==t.$scopedSlots[e]?t.$scopedSlots[e]():i}function Et(t,e,i){return void 0!==t.$scopedSlots[e]?t.$scopedSlots[e]().slice():i}function Pt(t,e,i){return void 0!==e.$scopedSlots[i]?t.concat(e.$scopedSlots[i]()):t}function zt(t,e,i){if(void 0===e.$scopedSlots[i])return t;const s=e.$scopedSlots[i]();return void 0!==t?t.concat(s):s}var At=t.extend({name:"QIcon",mixins:[Lt,Tt,Mt],props:{tag:{default:"i"},name:String,color:String,left:Boolean,right:Boolean},computed:{classes(){return"q-icon notranslate"+(!0===this.left?" on-left":"")+(!0===this.right?" on-right":"")+(void 0!==this.color?` text-${this.color}`:"")},type(){let t,e=this.name;if(!e)return{none:!0,cls:this.classes};if(void 0!==this.$q.iconMapFn){const t=this.$q.iconMapFn(e);if(void 0!==t){if(void 0===t.icon)return{cls:t.cls+" "+this.classes,content:void 0!==t.content?t.content:" "};e=t.icon}}if(!0===e.startsWith("M")){const[t,i]=e.split("|");return{svg:!0,cls:this.classes,nodes:t.split("&&").map(t=>{const[e,i,s]=t.split("@@");return this.$createElement("path",{attrs:{d:e,transform:s},style:i})}),viewBox:void 0!==i?i:"0 0 24 24"}}if(!0===e.startsWith("img:"))return{img:!0,cls:this.classes,src:e.substring(4)};if(!0===e.startsWith("svguse:")){const[t,i]=e.split("|");return{svguse:!0,cls:this.classes,src:t.substring(7),viewBox:void 0!==i?i:"0 0 24 24"}}let i=" ";return/^[l|f]a[s|r|l|b|d]{0,1} /.test(e)||!0===e.startsWith("icon-")?t=e:!0===e.startsWith("bt-")?t=`bt ${e}`:!0===e.startsWith("eva-")?t=`eva ${e}`:!0===/^ion-(md|ios|logo)/.test(e)?t=`ionicons ${e}`:!0===e.startsWith("ion-")?t=`ionicons ion-${!0===this.$q.platform.is.ios?"ios":"md"}${e.substr(3)}`:!0===e.startsWith("mdi-")?t=`mdi ${e}`:!0===e.startsWith("iconfont ")?t=`${e}`:!0===e.startsWith("ti-")?t=`themify-icon ${e}`:!0===e.startsWith("bi-")?t=`bootstrap-icons ${e}`:(t="material-icons",!0===e.startsWith("o_")?(e=e.substring(2),t+="-outlined"):!0===e.startsWith("r_")?(e=e.substring(2),t+="-round"):!0===e.startsWith("s_")&&(e=e.substring(2),t+="-sharp"),i=e),{cls:t+" "+this.classes,content:i}}},render(t){const e={class:this.type.cls,style:this.sizeStyle,on:{...this.qListeners},attrs:{"aria-hidden":"true",role:"presentation"}};return!0===this.type.none?t(this.tag,e,Bt(this,"default")):!0===this.type.img?(e.attrs.src=this.type.src,t("img",e)):!0===this.type.svg?(e.attrs.focusable="false",e.attrs.viewBox=this.type.viewBox,t("svg",e,Pt(this.type.nodes,this,"default"))):!0===this.type.svguse?(e.attrs.focusable="false",e.attrs.viewBox=this.type.viewBox,t("svg",e,[t("use",{attrs:{"xlink:href":this.type.src}}),Pt(this.type.nodes,this,"default")])):t(this.tag,e,Pt([this.type.content],this,"default"))}}),Ot=t.extend({name:"QAvatar",mixins:[Lt,Tt],props:{fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},computed:{classes(){return{[`bg-${this.color}`]:this.color,[`text-${this.textColor} q-chip--colored`]:this.textColor,"q-avatar--square":this.square,"rounded-borders":this.rounded}},contentStyle(){if(this.fontSize)return{fontSize:this.fontSize}}},render(t){const e=void 0!==this.icon?[t(At,{props:{name:this.icon}})]:void 0;return t("div",{staticClass:"q-avatar",style:this.sizeStyle,class:this.classes,on:{...this.qListeners}},[t("div",{staticClass:"q-avatar__content row flex-center overflow-hidden",style:this.contentStyle},zt(e,this,"default"))])}}),Dt=t.extend({name:"QBadge",mixins:[Lt],props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:t=>["top","middle","bottom"].includes(t)}},computed:{style(){if(void 0!==this.align)return{verticalAlign:this.align}},classes(){const t=!0===this.outline&&this.color||this.textColor;return"q-badge flex inline items-center no-wrap"+` q-badge--${!0===this.multiLine?"multi":"single"}-line`+(!0===this.outline?" q-badge--outline":void 0!==this.color?` bg-${this.color}`:"")+(void 0!==t?` text-${t}`:"")+(!0===this.floating?" q-badge--floating":"")+(!0===this.rounded?" q-badge--rounded":"")+(!0===this.transparent?" q-badge--transparent":"")},attrs(){return{role:"alert","aria-label":this.label}}},render(t){return t("div",{style:this.style,class:this.classes,attrs:this.attrs,on:{...this.qListeners}},void 0!==this.label?[this.label]:Bt(this,"default"))}}),It={props:{dark:{type:Boolean,default:null}},computed:{isDark(){return null===this.dark?this.$q.dark.isActive:this.dark}}};const Rt={role:"alert"};var Ft=t.extend({name:"QBanner",mixins:[Lt,It],props:{inlineActions:Boolean,dense:Boolean,rounded:Boolean},render(t){const e=Bt(this,"action"),i=[t("div",{staticClass:"q-banner__avatar col-auto row items-center self-start"},Bt(this,"avatar")),t("div",{staticClass:"q-banner__content col text-body2"},Bt(this,"default"))];return void 0!==e&&i.push(t("div",{staticClass:"q-banner__actions row items-center justify-end",class:`col-${!0===this.inlineActions?"auto":"all"}`},e)),t("div",{staticClass:"q-banner row items-center",class:{"q-banner--top-padding":void 0!==e&&!this.inlineActions,"q-banner--dense":this.dense,"q-banner--dark q-dark":this.isDark,"rounded-borders":this.rounded},attrs:Rt,on:{...this.qListeners}},i)}});const Vt={role:"toolbar"};var Nt=t.extend({name:"QBar",mixins:[Lt,It],props:{dense:Boolean},computed:{classes(){return`q-bar--${!0===this.dense?"dense":"standard"} `+`q-bar--${!0===this.isDark?"dark":"light"}`}},render(t){return t("div",{staticClass:"q-bar row no-wrap items-center",class:this.classes,attrs:Vt,on:{...this.qListeners}},Bt(this,"default"))}});const Ht={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},jt=Object.keys(Ht);var Qt={props:{align:{type:String,validator:t=>jt.includes(t)}},computed:{alignClass(){const t=void 0===this.align?!0===this.vertical?"stretch":"left":this.align;return`${!0===this.vertical?"items":"justify"}-${Ht[t]}`}}},Wt=t.extend({name:"QBreadcrumbs",mixins:[Lt,Qt],props:{separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:t=>["none","xs","sm","md","lg","xl"].includes(t),default:"sm"}},computed:{classes(){return`${this.alignClass}${"none"===this.gutter?"":` q-gutter-${this.gutter}`}`},sepClass(){if(this.separatorColor)return`text-${this.separatorColor}`},activeClass(){return`text-${this.activeColor}`}},render(t){const e=Bt(this,"default");if(void 0===e)return;let i=1;const s=[],o=e.filter(t=>void 0!==t.tag&&t.tag.endsWith("-QBreadcrumbsEl")).length,n=void 0!==this.$scopedSlots.separator?this.$scopedSlots.separator:()=>this.separator;return e.forEach(e=>{if(void 0!==e.tag&&e.tag.endsWith("-QBreadcrumbsEl")){const r=i<o;i++,s.push(t("div",{staticClass:"flex items-center",class:r?this.activeClass:"q-breadcrumbs--last"},[e])),r&&s.push(t("div",{staticClass:"q-breadcrumbs__separator",class:this.sepClass},n()))}else s.push(e)}),t("div",{staticClass:"q-breadcrumbs",on:{...this.qListeners}},[t("div",{staticClass:"flex items-center",class:this.classes},s)])}});const Yt={props:{to:[String,Object],exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,disable:Boolean},computed:{hasRouterLink(){return!0!==this.disable&&void 0!==this.to&&null!==this.to&&""!==this.to},routerLinkProps(){return{to:this.to,exact:this.exact,append:this.append,replace:this.replace,activeClass:this.activeClass||"q-router-link--active",exactActiveClass:this.exactActiveClass||"q-router-link--exact-active",event:!0===this.disable?[]:void 0}}}};var Ut=t.extend({name:"QBreadcrumbsEl",mixins:[Lt,Yt],props:{label:String,icon:String},render(t){const e=[];return void 0!==this.icon&&e.push(t(At,{staticClass:"q-breadcrumbs__el-icon",class:void 0!==this.label?"q-breadcrumbs__el-icon--with-label":null,props:{name:this.icon}})),this.label&&e.push(this.label),t(!0===this.hasRouterLink?"router-link":"span",{staticClass:"q-breadcrumbs__el q-link flex inline items-center relative-position",props:!0===this.hasRouterLink?this.routerLinkProps:null,[!0===this.hasRouterLink?"nativeOn":"on"]:{...this.qListeners}},Pt(e,this,"default"))}}),Kt={mixins:[Lt],props:{color:String,size:{type:[Number,String],default:"1em"}},computed:{cSize(){return this.size in qt?`${qt[this.size]}px`:this.size},classes(){if(this.color)return`text-${this.color}`}}},Xt=t.extend({name:"QSpinner",mixins:[Kt],props:{thickness:{type:Number,default:5}},render(t){return t("svg",{staticClass:"q-spinner q-spinner-mat",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"25 25 50 50"}},[t("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":this.thickness,"stroke-miterlimit":"10"}})])}});function Gt(t){if(t===window)return{top:0,left:0};const{top:e,left:i}=t.getBoundingClientRect();return{top:e,left:i}}function Zt(t){return t===window?window.innerHeight:t.getBoundingClientRect().height}function Jt(t,e){const i=t.style;Object.keys(e).forEach(t=>{i[t]=e[t]})}function te(t,e){return!0===t?e===document.documentElement||null===e?document.body:e:document.body}var ee={offset:Gt,style:function(t,e){return window.getComputedStyle(t).getPropertyValue(e)},height:Zt,width:function(t){return t===window?window.innerWidth:t.getBoundingClientRect().width},css:Jt,cssBatch:function(t,e){t.forEach(t=>Jt(t,e))},ready:function(t){if("function"==typeof t)return"loading"!==document.readyState?t():void document.addEventListener("DOMContentLoaded",t,!1)}};function ie(t,e=250){let i,s=!1;return function(){return!1===s&&(s=!0,setTimeout(()=>{s=!1},e),i=t.apply(this,arguments)),i}}function se(t,e,i,s){!0===i.modifiers.stop&&y(t);const o=i.modifiers.color;let n=i.modifiers.center;n=!0===n||!0===s;const r=document.createElement("span"),a=document.createElement("span"),l=f(t),{left:h,top:d,width:c,height:u}=e.getBoundingClientRect(),p=Math.sqrt(c*c+u*u),m=p/2,g=`${(c-p)/2}px`,_=n?g:`${l.left-h-m}px`,v=`${(u-p)/2}px`,b=n?v:`${l.top-d-m}px`;a.className="q-ripple__inner",Jt(a,{height:`${p}px`,width:`${p}px`,transform:`translate3d(${_},${b},0) scale3d(.2,.2,1)`,opacity:0}),r.className=`q-ripple${o?" text-"+o:""}`,r.setAttribute("dir","ltr"),r.appendChild(a),e.appendChild(r);const w=()=>{r.remove(),clearTimeout(S)};i.abort.push(w);let S=setTimeout(()=>{a.classList.add("q-ripple__inner--enter"),a.style.transform=`translate3d(${g},${v},0) scale3d(1,1,1)`,a.style.opacity=.2,S=setTimeout(()=>{a.classList.remove("q-ripple__inner--enter"),a.classList.add("q-ripple__inner--leave"),a.style.opacity=0,S=setTimeout(()=>{r.remove(),i.abort.splice(i.abort.indexOf(w),1)},275)},250)},50)}function oe(t,{modifiers:e,value:i,arg:s}){const o=Object.assign({},at.config.ripple,e,i);t.modifiers={early:!0===o.early,stop:!0===o.stop,center:!0===o.center,color:o.color||s,keyCodes:[].concat(o.keyCodes||13)}}function ne(t){const e=t.__qripple;void 0!==e&&(e.abort.forEach(t=>{t()}),q(e,"main"),delete t._qripple)}var re={name:"ripple",inserted(t,e){void 0!==t.__qripple&&(ne(t),t.__qripple_destroyed=!0);const i={enabled:!1!==e.value,modifiers:{},abort:[],start(e){!0===i.enabled&&!0!==e.qSkipRipple&&(!0!==d.is.ie||e.clientX>=0)&&(!0===i.modifiers.early?!0===["mousedown","touchstart"].includes(e.type):"click"===e.type)&&se(e,t,i,!0===e.qKeyEvent)},keystart:ie(e=>{!0===i.enabled&&!0!==e.qSkipRipple&&!0===tt(e,i.modifiers.keyCodes)&&e.type===`key${!0===i.modifiers.early?"down":"up"}`&&se(e,t,i,!0)},300)};oe(i,e),t.__qripple=i,k(i,"main",[[t,"mousedown","start","passive"],[t,"touchstart","start","passive"],[t,"click","start","passive"],[t,"keydown","keystart","passive"],[t,"keyup","keystart","passive"]])},update(t,e){const i=t.__qripple;void 0!==i&&e.oldValue!==e.value&&(i.enabled=!1!==e.value,!0===i.enabled&&Object(e.value)===e.value&&oe(i,e))},unbind(t){void 0===t.__qripple_destroyed?ne(t):delete t.__qripple_destroyed}},ae={directives:{Ripple:re},props:{ripple:{type:[Boolean,Object],default:!0}}};const le={none:0,xs:4,sm:8,md:16,lg:24,xl:32};var he={mixins:[Lt,ae,Qt,$t({xs:8,sm:10,md:14,lg:20,xl:24})],props:{type:String,to:[Object,String],replace:Boolean,append:Boolean,label:[Number,String],icon:String,iconRight:String,round:Boolean,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],align:{default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},computed:{style(){if(!1===this.fab&&!1===this.fabMini)return this.sizeStyle},isRounded(){return!0===this.rounded||!0===this.fab||!0===this.fabMini},isActionable(){return!0!==this.disable&&!0!==this.loading},computedTabIndex(){return!0===this.isActionable?this.tabindex||0:-1},hasRouterLink(){return!0!==this.disable&&void 0!==this.to&&null!==this.to&&""!==this.to},isLink(){return"a"===this.type||!0===this.hasRouterLink},design(){return!0===this.flat?"flat":!0===this.outline?"outline":!0===this.push?"push":!0===this.unelevated?"unelevated":"standard"},currentLocation(){if(!0===this.hasRouterLink)return!0===this.append?this.$router.resolve(this.to,this.$route,!0):this.$router.resolve(this.to)},attrs(){const t={tabindex:this.computedTabIndex};return"a"!==this.type&&(t.type=this.type||"button"),!0===this.hasRouterLink?(t.href=this.currentLocation.href,t.role="link"):t.role="a"===this.type?"link":"button",!0===this.loading&&void 0!==this.percentage&&(t.role="progressbar",t["aria-valuemin"]=0,t["aria-valuemax"]=100,t["aria-valuenow"]=this.percentage),!0===this.disable&&(t.disabled="",t["aria-disabled"]="true"),t},classes(){let t;return void 0!==this.color?t=!0===this.flat||!0===this.outline?`text-${this.textColor||this.color}`:`bg-${this.color} text-${this.textColor||"white"}`:this.textColor&&(t=`text-${this.textColor}`),`q-btn--${this.design} `+`q-btn--${!0===this.round?"round":`rectangle${!0===this.isRounded?" q-btn--rounded":""}`}`+(void 0!==t?" "+t:"")+(!0===this.isActionable?" q-btn--actionable q-focusable q-hoverable":!0===this.disable?" disabled":"")+(!0===this.fab?" q-btn--fab":!0===this.fabMini?" q-btn--fab-mini":"")+(!0===this.noCaps?" q-btn--no-uppercase":"")+(!0===this.noWrap?"":" q-btn--wrap")+(!0===this.dense?" q-btn--dense":"")+(!0===this.stretch?" no-border-radius self-stretch":"")+(!0===this.glossy?" glossy":"")},innerClasses(){return this.alignClass+(!0===this.stack?" column":" row")+(!0===this.noWrap?" no-wrap text-no-wrap":"")+(!0===this.loading?" q-btn__content--hidden":"")},wrapperStyle(){if(void 0!==this.padding)return{padding:this.padding.split(/\s+/).map(t=>t in le?le[t]+"px":t).join(" "),minWidth:"0",minHeight:"0"}}}};const de=["left","right","up","down","horizontal","vertical"],ce={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0,all:!0};function ue(t){const e={};return de.forEach(i=>{t[i]&&(e[i]=!0)}),0===Object.keys(e).length?ce:(!0===e.horizontal&&(e.left=e.right=!0),!0===e.vertical&&(e.up=e.down=!0),!0===e.left&&!0===e.right&&(e.horizontal=!0),!0===e.up&&!0===e.down&&(e.vertical=!0),!0===e.horizontal&&!0===e.vertical&&(e.all=!0),e)}const pe=!1===e&&!0!==n&&(!0===d.is.ios||window.navigator.vendor.toLowerCase().indexOf("apple")>-1)?()=>document:t=>t;function me(t,e){return void 0===e.event&&void 0!==t.target&&!0!==t.target.draggable&&"function"==typeof e.handler&&"INPUT"!==t.target.nodeName.toUpperCase()&&(void 0===t.qClonedBy||-1===t.qClonedBy.indexOf(e.uid))}const{passiveCapture:ge}=u;let fe=void 0,_e=void 0,ve=void 0;const be={role:"img","aria-hidden":"true"};var ye=t.extend({name:"QBtn",mixins:[he],props:{percentage:Number,darkPercentage:Boolean},computed:{hasLabel(){return void 0!==this.label&&null!==this.label&&""!==this.label},computedRipple(){return!1!==this.ripple&&{keyCodes:!0===this.isLink?[13,32]:[13],...!0===this.ripple?{}:this.ripple}},percentageStyle(){const t=Math.max(0,Math.min(100,this.percentage));if(t>0)return{transition:"transform 0.6s",transform:`translateX(${t-100}%)`}},onEvents(){if(!0===this.loading)return{mousedown:this.__onLoadingEvt,touchstart:this.__onLoadingEvt,click:this.__onLoadingEvt,keydown:this.__onLoadingEvt,keyup:this.__onLoadingEvt};if(!0===this.isActionable){const t={...this.qListeners,click:this.click,keydown:this.__onKeydown,mousedown:this.__onMousedown};return!0===this.$q.platform.has.touch&&(t.touchstart=this.__onTouchstart),t}return{click:S}},directives(){if(!0!==this.disable&&!1!==this.ripple)return[{name:"ripple",value:this.computedRipple,modifiers:{center:this.round}}]}},methods:{click(t){if(void 0!==t){if(!0===t.defaultPrevented)return;const e=document.activeElement;if("submit"===this.type&&(!0===this.$q.platform.is.ie&&(t.clientX<0||t.clientY<0)||e!==document.body&&!1===this.$el.contains(e)&&!1===e.contains(this.$el))){this.$el.focus();const t=()=>{document.removeEventListener("keydown",S,!0),document.removeEventListener("keyup",t,ge),void 0!==this.$el&&this.$el.removeEventListener("blur",t,ge)};document.addEventListener("keydown",S,!0),document.addEventListener("keyup",t,ge),this.$el.addEventListener("blur",t,ge)}if(!0===this.hasRouterLink){if(!0===t.ctrlKey||!0===t.shiftKey||!0===t.altKey||!0===t.metaKey)return;S(t)}}const e=()=>{this.$router[!0===this.replace?"replace":"push"](this.currentLocation.route,void 0,m)};this.$emit("click",t,e),!0===this.hasRouterLink&&!1!==t.navigate&&e()},__onKeydown(t){!0===tt(t,[13,32])&&(S(t),_e!==this.$el&&(void 0!==_e&&this.__cleanup(),this.$el.focus(),_e=this.$el,this.$el.classList.add("q-btn--active"),document.addEventListener("keyup",this.__onPressEnd,!0),this.$el.addEventListener("blur",this.__onPressEnd,ge))),this.$emit("keydown",t)},__onTouchstart(t){if(fe!==this.$el){void 0!==fe&&this.__cleanup(),fe=this.$el;const e=this.touchTargetEl=pe(t.target);e.addEventListener("touchcancel",this.__onPressEnd,ge),e.addEventListener("touchend",this.__onPressEnd,ge)}this.avoidMouseRipple=!0,clearTimeout(this.mouseTimer),this.mouseTimer=setTimeout(()=>{this.avoidMouseRipple=!1},200),this.$emit("touchstart",t)},__onMousedown(t){ve!==this.$el&&(void 0!==ve&&this.__cleanup(),ve=this.$el,this.$el.classList.add("q-btn--active"),document.addEventListener("mouseup",this.__onPressEnd,ge)),t.qSkipRipple=!0===this.avoidMouseRipple,this.$emit("mousedown",t)},__onPressEnd(t){if(void 0===t||"blur"!==t.type||document.activeElement!==this.$el){if(void 0!==t&&"keyup"===t.type){if(_e===this.$el&&!0===tt(t,[13,32])){const e=new MouseEvent("click",t);e.qKeyEvent=!0,!0===t.defaultPrevented&&w(e),!0===t.cancelBubble&&y(e),this.$el.dispatchEvent(e),S(t),t.qKeyEvent=!0}this.$emit("keyup",t)}this.__cleanup()}},__cleanup(t){const e=this.$refs.blurTarget;if(!0===t||fe!==this.$el&&ve!==this.$el||void 0===e||e===document.activeElement||(e.setAttribute("tabindex",-1),e.focus()),fe===this.$el){const t=this.touchTargetEl;t.removeEventListener("touchcancel",this.__onPressEnd,ge),t.removeEventListener("touchend",this.__onPressEnd,ge),fe=this.touchTargetEl=void 0}ve===this.$el&&(document.removeEventListener("mouseup",this.__onPressEnd,ge),ve=void 0),_e===this.$el&&(document.removeEventListener("keyup",this.__onPressEnd,!0),void 0!==this.$el&&this.$el.removeEventListener("blur",this.__onPressEnd,ge),_e=void 0),void 0!==this.$el&&this.$el.classList.remove("q-btn--active")},__onLoadingEvt(t){S(t),t.qSkipRipple=!0}},beforeDestroy(){this.__cleanup(!0)},render(t){let e=[];void 0!==this.icon&&e.push(t(At,{attrs:be,props:{name:this.icon,left:!1===this.stack&&!0===this.hasLabel}})),!0===this.hasLabel&&e.push(t("span",{staticClass:"block"},[this.label])),e=Pt(e,this,"default"),void 0!==this.iconRight&&!1===this.round&&e.push(t(At,{attrs:be,props:{name:this.iconRight,right:!1===this.stack&&!0===this.hasLabel}}));const i=[t("span",{staticClass:"q-focus-helper",ref:"blurTarget"})];return!0===this.loading&&void 0!==this.percentage&&i.push(t("span",{staticClass:"q-btn__progress absolute-full overflow-hidden"},[t("span",{staticClass:"q-btn__progress-indicator fit block",class:!0===this.darkPercentage?"q-btn__progress--dark":"",style:this.percentageStyle})])),i.push(t("span",{staticClass:"q-btn__wrapper col row q-anchor--skip",style:this.wrapperStyle},[t("span",{staticClass:"q-btn__content text-center col items-center q-anchor--skip",class:this.innerClasses},e)])),null!==this.loading&&i.push(t("transition",{props:{name:"q-transition--fade"}},!0===this.loading?[t("span",{key:"loading",staticClass:"absolute-full flex flex-center"},void 0!==this.$scopedSlots.loading?this.$scopedSlots.loading():[t(Xt)])]:void 0)),t(!0===this.isLink?"a":"button",{staticClass:"q-btn q-btn-item non-selectable no-outline",class:this.classes,style:this.style,attrs:this.attrs,on:this.onEvents,directives:this.directives},i)}}),we=t.extend({name:"QBtnGroup",mixin:[Lt],props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},computed:{classes(){return["unelevated","outline","flat","rounded","push","stretch","glossy"].filter(t=>!0===this[t]).map(t=>`q-btn-group--${t}`).join(" ")}},render(t){return t("div",{staticClass:"q-btn-group row no-wrap "+(!0===this.spread?"q-btn-group--spread":"inline"),class:this.classes,on:{...this.qListeners}},Bt(this,"default"))}});function Se(){if(void 0!==window.getSelection){const t=window.getSelection();void 0!==t.empty?t.empty():void 0!==t.removeAllRanges&&(t.removeAllRanges(),!0!==c.is.mobile&&t.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}var xe={props:{target:{default:!0},noParentEvent:Boolean,contextMenu:Boolean},watch:{contextMenu(t){void 0!==this.anchorEl&&(this.__unconfigureAnchorEl(),this.__configureAnchorEl(t))},target(){void 0!==this.anchorEl&&this.__unconfigureAnchorEl(),this.__pickAnchorEl()},noParentEvent(t){void 0!==this.anchorEl&&(!0===t?this.__unconfigureAnchorEl():this.__configureAnchorEl())}},methods:{__showCondition(t){return void 0!==this.anchorEl&&(void 0===t||(void 0===t.touches||t.touches.length<=1))},__contextClick(t){this.hide(t),this.$nextTick(()=>{this.show(t)}),w(t)},__toggleKey(t){!0===tt(t,13)&&this.toggle(t)},__mobileCleanup(t){this.anchorEl.classList.remove("non-selectable"),clearTimeout(this.touchTimer),!0===this.showing&&void 0!==t&&Se()},__mobilePrevent:w,__mobileTouch(t){if(this.__mobileCleanup(t),!0!==this.__showCondition(t))return;this.hide(t),this.anchorEl.classList.add("non-selectable");const e=pe(t.target);k(this,"anchor",[[e,"touchmove","__mobileCleanup","passive"],[e,"touchend","__mobileCleanup","passive"],[e,"touchcancel","__mobileCleanup","passive"],[this.anchorEl,"contextmenu","__mobilePrevent","notPassive"]]),this.touchTimer=setTimeout(()=>{this.show(t)},300)},__unconfigureAnchorEl(){q(this,"anchor")},__configureAnchorEl(t=this.contextMenu){if(!0===this.noParentEvent||void 0===this.anchorEl)return;let e;k(this,"anchor",e=!0===t?!0===this.$q.platform.is.mobile?[[this.anchorEl,"touchstart","__mobileTouch","passive"]]:[[this.anchorEl,"click","hide","passive"],[this.anchorEl,"contextmenu","__contextClick","notPassive"]]:[[this.anchorEl,"click","toggle","passive"],[this.anchorEl,"keyup","__toggleKey","passive"]])},__setAnchorEl(t){for(this.anchorEl=t;this.anchorEl.classList.contains("q-anchor--skip");)this.anchorEl=this.anchorEl.parentNode;this.__configureAnchorEl()},__pickAnchorEl(){if(!1===thi