quasar 1.22.6 → 1.22.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/icon-set/bootstrap-icons.umd.min.js +1 -1
- package/dist/icon-set/eva-icons.umd.min.js +1 -1
- package/dist/icon-set/fontawesome-v5-pro.umd.min.js +1 -1
- package/dist/icon-set/fontawesome-v5.umd.min.js +1 -1
- package/dist/icon-set/fontawesome-v6-pro.umd.min.js +1 -1
- package/dist/icon-set/fontawesome-v6.umd.min.js +1 -1
- package/dist/icon-set/ionicons-v4.umd.min.js +1 -1
- package/dist/icon-set/line-awesome.umd.min.js +1 -1
- package/dist/icon-set/material-icons-outlined.umd.min.js +1 -1
- package/dist/icon-set/material-icons-round.umd.min.js +1 -1
- package/dist/icon-set/material-icons-sharp.umd.min.js +1 -1
- package/dist/icon-set/material-icons.umd.min.js +1 -1
- package/dist/icon-set/material-symbols-outlined.umd.min.js +1 -1
- package/dist/icon-set/material-symbols-rounded.umd.min.js +1 -1
- package/dist/icon-set/material-symbols-sharp.umd.min.js +1 -1
- package/dist/icon-set/mdi-v3.umd.min.js +1 -1
- package/dist/icon-set/mdi-v4.umd.min.js +1 -1
- package/dist/icon-set/mdi-v5.umd.min.js +1 -1
- package/dist/icon-set/mdi-v6.umd.min.js +1 -1
- package/dist/icon-set/mdi-v7.umd.min.js +1 -1
- package/dist/icon-set/svg-bootstrap-icons.umd.min.js +1 -1
- package/dist/icon-set/svg-eva-icons.umd.min.js +1 -1
- package/dist/icon-set/svg-fontawesome-v5.umd.min.js +1 -1
- package/dist/icon-set/svg-fontawesome-v6.umd.min.js +1 -1
- package/dist/icon-set/svg-ionicons-v4.umd.min.js +1 -1
- package/dist/icon-set/svg-ionicons-v5.umd.min.js +1 -1
- package/dist/icon-set/svg-ionicons-v6.umd.min.js +1 -1
- package/dist/icon-set/svg-line-awesome.umd.min.js +1 -1
- package/dist/icon-set/svg-material-icons-outlined.umd.min.js +1 -1
- package/dist/icon-set/svg-material-icons-round.umd.min.js +1 -1
- package/dist/icon-set/svg-material-icons-sharp.umd.min.js +1 -1
- package/dist/icon-set/svg-material-icons.umd.min.js +1 -1
- package/dist/icon-set/svg-material-symbols-outlined.umd.min.js +1 -1
- package/dist/icon-set/svg-material-symbols-rounded.umd.min.js +1 -1
- package/dist/icon-set/svg-material-symbols-sharp.umd.min.js +1 -1
- package/dist/icon-set/svg-mdi-v4.umd.min.js +1 -1
- package/dist/icon-set/svg-mdi-v5.umd.min.js +1 -1
- package/dist/icon-set/svg-mdi-v6.umd.min.js +1 -1
- package/dist/icon-set/svg-mdi-v7.umd.min.js +1 -1
- package/dist/icon-set/svg-themify.umd.min.js +1 -1
- package/dist/icon-set/themify.umd.min.js +1 -1
- package/dist/lang/ar.umd.min.js +1 -1
- package/dist/lang/az-latn.umd.min.js +1 -1
- package/dist/lang/bg.umd.min.js +1 -1
- package/dist/lang/ca.umd.min.js +1 -1
- package/dist/lang/cs.umd.min.js +1 -1
- package/dist/lang/da.umd.min.js +1 -1
- package/dist/lang/de.umd.min.js +1 -1
- package/dist/lang/el.umd.min.js +1 -1
- package/dist/lang/en-gb.umd.min.js +1 -1
- package/dist/lang/en-us.umd.min.js +1 -1
- package/dist/lang/eo.umd.min.js +1 -1
- package/dist/lang/es.umd.min.js +1 -1
- package/dist/lang/et.umd.min.js +1 -1
- package/dist/lang/eu.umd.min.js +1 -1
- package/dist/lang/fa-ir.umd.min.js +1 -1
- package/dist/lang/fa.umd.min.js +1 -1
- package/dist/lang/fi.umd.min.js +1 -1
- package/dist/lang/fr.umd.min.js +1 -1
- package/dist/lang/gn.umd.min.js +1 -1
- package/dist/lang/he.umd.min.js +1 -1
- package/dist/lang/hr.umd.min.js +1 -1
- package/dist/lang/hu.umd.min.js +1 -1
- package/dist/lang/id.umd.min.js +1 -1
- package/dist/lang/is.umd.min.js +1 -1
- package/dist/lang/it.umd.min.js +1 -1
- package/dist/lang/ja.umd.min.js +2 -2
- package/dist/lang/km.umd.min.js +1 -1
- package/dist/lang/ko-kr.umd.min.js +1 -1
- package/dist/lang/kur-ckb.umd.min.js +1 -1
- package/dist/lang/kz.umd.min.js +1 -1
- package/dist/lang/lu.umd.min.js +1 -1
- package/dist/lang/lv.umd.min.js +1 -1
- package/dist/lang/ml.umd.min.js +1 -1
- package/dist/lang/mm.umd.min.js +1 -1
- package/dist/lang/ms.umd.min.js +1 -1
- package/dist/lang/my.umd.min.js +1 -1
- package/dist/lang/nb-no.umd.min.js +1 -1
- package/dist/lang/nl.umd.min.js +1 -1
- package/dist/lang/pl.umd.min.js +1 -1
- package/dist/lang/pt-br.umd.min.js +1 -1
- package/dist/lang/pt.umd.min.js +1 -1
- package/dist/lang/ro.umd.min.js +1 -1
- package/dist/lang/ru.umd.min.js +1 -1
- package/dist/lang/sk.umd.min.js +1 -1
- package/dist/lang/sl.umd.min.js +1 -1
- package/dist/lang/sm.umd.min.js +1 -1
- package/dist/lang/sr.umd.min.js +1 -1
- package/dist/lang/sv.umd.min.js +1 -1
- package/dist/lang/ta.umd.min.js +1 -1
- package/dist/lang/th.umd.min.js +1 -1
- package/dist/lang/tr.umd.min.js +1 -1
- package/dist/lang/ug.umd.min.js +1 -1
- package/dist/lang/uk.umd.min.js +1 -1
- package/dist/lang/uz-Cyrl.umd.min.js +1 -1
- package/dist/lang/uz-Latn.umd.min.js +1 -1
- package/dist/lang/vi.umd.min.js +1 -1
- package/dist/lang/zh-hans.umd.min.js +1 -1
- package/dist/lang/zh-hant.umd.min.js +1 -1
- package/dist/quasar.addon.css +1 -1
- package/dist/quasar.addon.rtl.css +1 -1
- package/dist/quasar.common.js +2 -2
- package/dist/quasar.css +25 -5
- package/dist/quasar.esm.js +2 -2
- package/dist/quasar.ie.polyfills.js +1 -1
- package/dist/quasar.ie.polyfills.umd.min.js +1 -1
- package/dist/quasar.min.css +1 -1
- package/dist/quasar.rtl.css +3 -3
- package/dist/quasar.rtl.min.css +1 -1
- package/dist/quasar.sass +17 -5
- package/dist/quasar.styl +17 -5
- package/dist/quasar.umd.js +96 -56
- package/dist/quasar.umd.min.js +2 -2
- package/dist/quasar.umd.modern.js +95 -56
- package/dist/quasar.umd.modern.min.js +2 -2
- package/dist/web-types/web-types.json +1 -1
- package/lang/ja.js +1 -1
- package/package.json +1 -1
- package/src/components/field/QField.js +5 -1
- package/src/components/field/QField.sass +18 -4
- package/src/components/field/QField.styl +18 -4
- package/src/components/input/QInput.js +17 -4
- package/src/components/table/table-top.js +1 -1
- package/src/mixins/mask.js +70 -48
package/dist/quasar.common.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Quasar Framework v1.22.
|
|
2
|
+
* Quasar Framework v1.22.8
|
|
3
3
|
* (c) 2015-present Razvan Stoenescu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var Vue=_interopDefault(require("vue")),version="1.22.6";const isSSR="undefined"==typeof window;let iosCorrection,fromSSR=!1,onSSR=isSSR,iosEmulated=!1;function getMatch(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]||""}}function getPlatformMatch(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)||[]}const hasTouch=!1===isSSR&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function applyIosCorrection(t){iosCorrection={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})}function getPlatform(t){const e=t.toLowerCase(),i=getMatch(e,getPlatformMatch(e)),s={};i.browser&&(s[i.browser]=!0,s.version=i.version,s.versionNumber=parseInt(i.versionNumber,10)),i.platform&&(s[i.platform]=!0);const o=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];return!0===o||e.indexOf("mobile")>-1?(s.mobile=!0,s.edga||s.edgios?(s.edge=!0,i.browser="edge"):s.crios?(s.chrome=!0,i.browser="chrome"):s.fxios&&(s.firefox=!0,i.browser="firefox")):s.desktop=!0,(s.ipod||s.ipad||s.iphone)&&(s.ios=!0),s["windows phone"]&&(s.winphone=!0,delete s["windows phone"]),(s.chrome||s.opr||s.safari||s.vivaldi||!0===s.mobile&&!0!==s.ios&&!0!==o)&&(s.webkit=!0),(s.rv||s.iemobile)&&(i.browser="ie",s.ie=!0),(s.safari&&s.blackberry||s.bb)&&(i.browser="blackberry",s.blackberry=!0),s.safari&&s.playbook&&(i.browser="playbook",s.playbook=!0),s.opr&&(i.browser="opera",s.opera=!0),s.safari&&s.android&&(i.browser="android",s.android=!0),s.safari&&s.kindle&&(i.browser="kindle",s.kindle=!0),s.safari&&s.silk&&(i.browser="silk",s.silk=!0),s.vivaldi&&(i.browser="vivaldi",s.vivaldi=!0),s.name=i.browser,s.platform=i.platform,!1===isSSR&&(e.indexOf("electron")>-1?s.electron=!0:document.location.href.indexOf("-extension://")>-1?s.bex=!0:(void 0!==window.Capacitor?(s.capacitor=!0,s.nativeMobile=!0,s.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(s.cordova=!0,s.nativeMobile=!0,s.nativeMobileWrapper="cordova"),!0===hasTouch&&!0===s.mac&&(!0===s.desktop&&!0===s.safari||!0===s.nativeMobile&&!0!==s.android&&!0!==s.ios&&!0!==s.ipad)&&applyIosCorrection(s)),!0===(fromSSR=void 0===s.nativeMobile&&void 0===s.electron&&null!==document.querySelector("[data-server-rendered]"))&&(onSSR=!0)),s}const userAgent=!0!==isSSR?navigator.userAgent||navigator.vendor||window.opera:"",ssrClient={has:{touch:!1,webStorage:!1},within:{iframe:!1}},client=!1===isSSR?{userAgent:userAgent,is:getPlatform(userAgent),has:{touch:hasTouch,webStorage:(()=>{try{if(window.localStorage)return!0}catch(t){}return!1})()},within:{iframe:window.self!==window.top}}:ssrClient,Platform={install(t,e){!0===isSSR?e.server.push((t,e)=>{t.platform=this.parseSSR(e.ssr)}):!0===fromSSR?(Object.assign(this,client,iosCorrection,ssrClient),e.takeover.push(t=>{onSSR=fromSSR=!1,Object.assign(t.platform,client),iosCorrection=void 0}),Vue.util.defineReactive(t,"platform",this)):(Object.assign(this,client),t.platform=this)}};!0===isSSR?Platform.parseSSR=(t=>{const e=t.req.headers["user-agent"]||t.req.headers["User-Agent"]||"";return{...client,userAgent:e,is:getPlatform(e)}}):iosEmulated=!0===client.is.ios&&-1===window.navigator.vendor.toLowerCase().indexOf("apple");const listenOpts={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{var opts=Object.defineProperty({},"passive",{get(){Object.assign(listenOpts,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,opts),window.removeEventListener("qtest",null,opts)}catch(t){}function noop(){}function leftClick(t){return 0===t.button}function middleClick(t){return 1===t.button}function rightClick(t){return 2===t.button}function position(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 getEventPath(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 LINE_HEIGHT=40,PAGE_HEIGHT=800;function getMouseWheelDistance(t){let e=t.deltaX,i=t.deltaY;if((e||i)&&t.deltaMode){const s=1===t.deltaMode?LINE_HEIGHT:PAGE_HEIGHT;e*=s,i*=s}return t.shiftKey&&!e&&([i,e]=[e,i]),{x:e,y:i}}function stop(t){t.stopPropagation()}function prevent(t){!1!==t.cancelable&&t.preventDefault()}function stopAndPrevent(t){!1!==t.cancelable&&t.preventDefault(),t.stopPropagation()}function stopAndPreventClick(t){if(stopAndPrevent(t),"mousedown"===t.type){const e=i=>{i.target===t.target&&stopAndPrevent(i),document.removeEventListener("click",e,listenOpts.notPassiveCapture)};document.addEventListener("click",e,listenOpts.notPassiveCapture)}}function preventDraggable(t,e){if(void 0===t||!0===e&&!0===t.__dragPrevented)return;const i=!0===e?t=>{t.__dragPrevented=!0,t.addEventListener("dragstart",prevent,listenOpts.notPassiveCapture)}:t=>{delete t.__dragPrevented,t.removeEventListener("dragstart",prevent,listenOpts.notPassiveCapture)};t.querySelectorAll("a, img").forEach(i)}function create(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 addEvt(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]],listenOpts[e[3]])})}function cleanEvt(t,e){const i=`__q_${e}_evt`;void 0!==t[i]&&(t[i].forEach(e=>{e[0].removeEventListener(e[1],t[e[2]],listenOpts[e[3]])}),t[i]=void 0)}var event={listenOpts:listenOpts,leftClick:leftClick,middleClick:middleClick,rightClick:rightClick,position:position,getEventPath:getEventPath,getMouseWheelDistance:getMouseWheelDistance,stop:stop,prevent:prevent,stopAndPrevent:stopAndPrevent,preventDraggable:preventDraggable,create:create};function debounce(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 SIZE_LIST=["sm","md","lg","xl"],{passive:passive}=listenOpts;var Screen={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:noop,setDebounce:noop,install(t,e,i){if(!0===isSSR)return void(t.screen=this);const{visualViewport:s}=window,o=s||window,n=document.scrollingElement||document.documentElement,r=void 0===s||!0===client.is.mobile?()=>[Math.max(window.innerWidth,n.clientWidth),Math.max(window.innerHeight,n.clientHeight)]:()=>[s.width*s.scale+window.innerWidth-n.clientWidth,s.height*s.scale+window.innerHeight-n.clientHeight],a=void 0!==i.screen&&!0===i.screen.bodyClasses,l=t=>{const[e,i]=r();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===a&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${s}`)),this.name=s)};let h,d={},c=16;this.setSizes=(t=>{SIZE_LIST.forEach(e=>{void 0!==t[e]&&(d[e]=t[e])})}),this.setDebounce=(t=>{c=t});const u=()=>{const t=getComputedStyle(document.body);t.getPropertyValue("--q-size-sm")&&SIZE_LIST.forEach(e=>{this.sizes[e]=parseInt(t.getPropertyValue(`--q-size-${e}`),10)}),this.setSizes=(t=>{SIZE_LIST.forEach(e=>{t[e]&&(this.sizes[e]=t[e])}),l(!0)}),this.setDebounce=(t=>{void 0!==h&&o.removeEventListener("resize",h,passive),h=t>0?debounce(l,t):l,o.addEventListener("resize",h,passive)}),this.setDebounce(c),Object.keys(d).length>0?(this.setSizes(d),d=void 0):l(),!0===a&&"xs"===this.name&&document.body.classList.add("screen--xs")};!0===fromSSR?e.takeover.push(u):u(),Vue.util.defineReactive(t,"screen",this)}};const Dark={isActive:!1,mode:!1,install(t,e,{dark:i}){if(this.isActive=!0===i,!0===isSSR)return e.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(i)}),void(this.set=noop);const s=void 0!==i&&i;if(!0===fromSSR){const t=t=>{this.__fromSSR=t},i=this.set;this.set=t,t(s),e.takeover.push(()=>{this.set=i,this.set(this.__fromSSR)})}else this.set(s);Vue.util.defineReactive(this,"isActive",this.isActive),Vue.util.defineReactive(t,"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(){Dark.set(!1===Dark.isActive)},__media:void 0},getTrue=()=>!0;function filterInvalidPath(t){return"string"==typeof t&&""!==t&&"/"!==t&&"#/"!==t}function normalizeExitPath(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}function getShouldExitFn(t){if(!1===t.backButtonExit)return()=>!1;if("*"===t.backButtonExit)return getTrue;const e=["#/"];return!0===Array.isArray(t.backButtonExit)&&e.push(...t.backButtonExit.filter(filterInvalidPath).map(normalizeExitPath)),()=>e.includes(window.location.hash)}var History={__history:[],add:noop,remove:noop,install(t){if(!0===isSSR)return;const{cordova:e,capacitor:i}=client.is;if(!0!==e&&!0!==i)return;const s=t[!0===e?"cordova":"capacitor"];if(void 0!==s&&!1===s.backButton)return;if(!0===i&&(void 0===window.Capacitor||void 0===window.Capacitor.Plugins.App))return;this.add=(t=>{void 0===t.condition&&(t.condition=getTrue),this.__history.push(t)}),this.remove=(t=>{const e=this.__history.indexOf(t);e>=0&&this.__history.splice(e,1)});const o=getShouldExitFn(Object.assign({backButtonExit:!0},s)),n=()=>{if(this.__history.length){const t=this.__history[this.__history.length-1];!0===t.condition()&&(this.__history.pop(),t.handler())}else!0===o()?navigator.app.exitApp():window.history.back()};!0===e?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",n,!1)}):window.Capacitor.Plugins.App.addListener("backButton",n)}},defaultLang={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",expand:function(t){return t?`Expand "${t}"`:"Expand"},collapse:function(t){return t?`Collapse "${t}"`:"Collapse"}},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 getLocale(){if(!0===isSSR)return;const t=navigator.language||navigator.languages[0]||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage;return t?t.toLowerCase():void 0}const Plugin={getLocale:getLocale,install(t,e,i){const s=i||defaultLang;this.set=((e=defaultLang,i)=>{const s={...e,rtl:!0===e.rtl,getLocale:getLocale};if(!0===isSSR){if(void 0===i)return void console.error("SSR ERROR: second param required: Quasar.lang.set(lang, ssrContext)");const t=!0===s.rtl?"rtl":"ltr",e=`lang=${s.isoName} dir=${t}`;s.set=i.$q.lang.set,i.Q_HTML_ATTRS=void 0!==i.Q_PREV_LANG?i.Q_HTML_ATTRS.replace(i.Q_PREV_LANG,e):e,i.Q_PREV_LANG=e,i.$q.lang=s}else{if(!1===fromSSR){const t=document.documentElement;t.setAttribute("dir",!0===s.rtl?"rtl":"ltr"),t.setAttribute("lang",s.isoName)}s.set=this.set,t.lang=this.props=s,this.isoName=s.isoName,this.nativeName=s.nativeName}}),!0===isSSR?(e.server.push((t,e)=>{t.lang={},t.lang.set=(t=>{this.set(t,e.ssr)}),t.lang.set(s)}),this.isoName=s.isoName,this.nativeName=s.nativeName,this.props=s):(Vue.util.defineReactive(t,"lang",{}),this.set(s))}},reRGBA=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function rgbToHex({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 rgbToString({r:t,g:e,b:i,a:s}){return`rgb${void 0!==s?"a":""}(${t},${e},${i}${void 0!==s?","+s/100:""})`}function hexToRgb(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 hsvToRgb({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 rgbToHsv({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 textToRgb(t){if("string"!=typeof t)throw new TypeError("Expected a string");const e=t.replace(/ /g,""),i=reRGBA.exec(e);if(null===i)return hexToRgb(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 lighten(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=textToRgb(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)}function luminosity(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?textToRgb(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 brightness(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?textToRgb(t):t;return(299*e.r+587*e.g+114*e.b)/1e3}function blend(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?textToRgb(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?textToRgb(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?rgbToHex(p):p}function changeAlpha(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}=textToRgb(t),r=void 0!==n?n/100:0;return rgbToHex({r:i,g:s,b:o,a:Math.round(100*Math.min(1,Math.max(0,r+e)))})}function setBrand(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 getBrand(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}function getPaletteColor(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(),rgbToHex(textToRgb(i))}var colors={rgbToHex:rgbToHex,hexToRgb:hexToRgb,hsvToRgb:hsvToRgb,rgbToHsv:rgbToHsv,textToRgb:textToRgb,lighten:lighten,luminosity:luminosity,brightness:brightness,blend:blend,changeAlpha:changeAlpha,setBrand:setBrand,getBrand:getBrand,getPaletteColor:getPaletteColor};let lastKeyCompositionStatus=!1;function onKeyDownComposition(t){lastKeyCompositionStatus=!0===t.isComposing}function shouldIgnoreKey(t){return!0===lastKeyCompositionStatus||t!==Object(t)||!0===t.isComposing||!0===t.qKeyEvent}function isKeyCode(t,e){return!0!==shouldIgnoreKey(t)&&[].concat(e).includes(t.keyCode)}function getMobilePlatform(t){return!0===t.ios?"ios":!0===t.android?"android":void 0}function getBodyClasses({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=getMobilePlatform(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}function clientUpdate(){const t=document.body.className;let e=t;void 0!==iosCorrection&&(e=e.replace("desktop","platform-ios mobile")),!0===client.has.touch&&(e=e.replace("no-touch","touch")),!0===client.within.iframe&&(e+=" within-iframe"),t!==e&&(document.body.className=e)}function setColors(t){for(const e in t)setBrand(e,t[e])}var Body={install(t,e){if(!0!==isSSR){if(!0===fromSSR)clientUpdate();else{const t=getBodyClasses(client,e);!0===client.is.ie&&11===client.is.versionNumber?t.forEach(t=>document.body.classList.add(t)):document.body.classList.add.apply(document.body.classList,t)}void 0!==e.brand&&setColors(e.brand),!0===client.is.ios&&document.body.addEventListener("touchstart",noop),window.addEventListener("keydown",onKeyDownComposition,!0)}else t.server.push((t,i)=>{const s=getBodyClasses(t.platform,e),o=i.ssr.setBodyClasses;void 0!==e.screen&&!0===e.screen.bodyClass&&s.push("screen--xs"),"function"==typeof o?o(s):i.ssr.Q_BODY_CLASSES=s.join(" ")})}},materialIcons={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"}},iconSet={install(t,e,i){const s=i||materialIcons;this.set=((e,i)=>{const s={...e};if(!0===isSSR){if(void 0===i)return void console.error("SSR ERROR: second param required: Quasar.iconSet.set(iconSet, ssrContext)");s.set=i.$q.iconSet.set,i.$q.iconSet=s}else s.set=this.set,t.iconSet=s}),!0===isSSR?e.server.push((t,e)=>{t.iconSet={},t.iconSet.set=(t=>{this.set(t,e.ssr)}),t.iconSet.set(s)}):(Vue.util.defineReactive(t,"iconMapFn",void 0),Vue.util.defineReactive(t,"iconSet",{}),this.set(s))}};const autoInstalled=[Platform,Screen,Dark],queues={server:[],takeover:[]},$q={version:version,config:{}};function install(t,e={}){if(!0===this.__qInstalled)return;this.__qInstalled=!0;const i=$q.config=Object.freeze(e.config||{});if(Platform.install($q,queues),Body.install(queues,i),Dark.install($q,queues,i),Screen.install($q,queues,i),History.install(i),Plugin.install($q,queues,e.lang),iconSet.install($q,queues,e.iconSet),!0===isSSR?t.mixin({beforeCreate(){this.$q=this.$root.$options.$q}}):t.prototype.$q=$q,e.components&&Object.keys(e.components).forEach(i=>{const s=e.components[i];"function"==typeof s&&t.component(s.options.name,s)}),e.directives&&Object.keys(e.directives).forEach(i=>{const s=e.directives[i];void 0!==s.name&&void 0!==s.unbind&&t.directive(s.name,s)}),e.plugins){const t={$q:$q,queues:queues,cfg:i};Object.keys(e.plugins).forEach(i=>{const s=e.plugins[i];"function"==typeof s.install&&!1===autoInstalled.includes(s)&&s.install(t)})}}const mixin={mounted(){queues.takeover.forEach(t=>{t(this.$q)})}};function ssrUpdate(t){if(t.ssr){const e={...$q,ssrContext:t.ssr};Object.assign(t.ssr,{Q_HEAD_TAGS:"",Q_BODY_ATTRS:"",Q_BODY_TAGS:""}),t.app.$q=t.ssr.$q=e,queues.server.forEach(i=>{i(e,t)})}else{const e=t.app.mixins||[];!1===e.includes(mixin)&&(t.app.mixins=e.concat(mixin))}}var VuePlugin={version:version,install:install,lang:Plugin,iconSet:iconSet,ssrUpdate:ssrUpdate};const units=["B","KB","MB","GB","TB","PB"];function humanStorageSize(t){let e=0;for(;parseInt(t,10)>=1024&&e<units.length-1;)t/=1024,++e;return`${t.toFixed(1)}${units[e]}`}function capitalize(t){return t.charAt(0).toUpperCase()+t.slice(1)}function between(t,e,i){return i<=e?e:Math.min(i,Math.max(e,t))}function normalizeToInterval(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 pad(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 format={humanStorageSize:humanStorageSize,capitalize:capitalize,between:between,normalizeToInterval:normalizeToInterval,pad:pad};function cache(t,e,i){if(!0===isSSR)return i;const s=`__qcache_${e}`;return void 0===t[s]?t[s]=i:t[s]}function cacheWithFn(t,e,i){if(!0===isSSR)return i();const s=`__qcache_${e}`;return void 0===t[s]?t[s]=i():t[s]}function getPropCacheMixin(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 ariaHidden={"aria-hidden":"true"},iconAsButton={tabindex:0,type:"button","aria-hidden":!1,role:null};var AttrsMixin=getPropCacheMixin("$attrs","qAttrs");const xhr=isSSR?null:XMLHttpRequest,open=isSSR?null:xhr.prototype.open,positionValues=["top","right","bottom","left"];let stack=[],highjackCount=0;function translate({p:t,pos:e,active:i,horiz:s,reverse:o,dir:n}){let r=1,a=1;return!0===s?(!0===o&&(r=-1),"bottom"===e&&(a=-1),{transform:`translate3d(${r*(t-100)}%,${i?0:-200*a}%,0)`}):(!0===o&&(a=-1),"right"===e&&(r=-1),{transform:`translate3d(${i?0:n*r*-200}%,${a*(t-100)}%,0)`})}function inc(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),between(t+e,0,100)}function highjackAjax(t){highjackCount++,stack.push(t),highjackCount>1||(xhr.prototype.open=function(t,e){const i=[];this.addEventListener("loadstart",()=>{stack.forEach(t=>{const s=t.getHijackFilter();null!==s&&!0!==s(e)||(t.start(),i.push(t.stop))})},{once:!0}),this.addEventListener("loadend",()=>{i.forEach(t=>{t()})},{once:!0}),open.apply(this,arguments)})}function restoreAjax(t){stack=stack.filter(e=>e.start!==t),(highjackCount=Math.max(0,highjackCount-1))||(xhr.prototype.open=open)}var QAjaxBar=Vue.extend({name:"QAjaxBar",props:{position:{type:String,default:"top",validator:t=>positionValues.includes(t)},size:{type:String,default:"2px"},color:String,reverse:Boolean,skipHijack:Boolean,hijackFilter:Function},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=translate({p:this.progress,pos:this.position,active:t,horiz:this.horizontal,reverse:!0===this.$q.lang.rtl&&["top","bottom"].includes(this.position)?!1===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}:ariaHidden}},methods:{start(t=300){const e=this.speed,i=this.speed=Math.max(0,t)||0;return this.calls++,this.calls>1?(0===e&&i>0?this.__work():e>0&&i<=0&&clearTimeout(this.timer),this.calls):(clearTimeout(this.timer),this.$emit("start"),this.progress=0,this.timer=setTimeout(()=>{this.animate=!0,i>0&&this.__work()},!0===this.onScreen?500:1),!0!==this.onScreen&&(this.onScreen=!0,this.animate=!1),this.calls)},increment(t){return this.calls>0&&(this.progress=inc(this.progress,t)),this.calls},stop(){if(this.calls=Math.max(0,this.calls-1),this.calls>0)return this.calls;clearTimeout(this.timer),this.$emit("stop");const t=()=>{this.animate=!0,this.progress=100,this.timer=setTimeout(()=>{this.onScreen=!1},1e3)};return 0===this.progress?this.timer=setTimeout(t,1):t(),this.calls},__work(){this.progress<100&&(this.timer=setTimeout(()=>{this.increment(),this.__work()},this.speed))}},mounted(){!0!==this.skipHijack&&(this.hijacked=!0,highjackAjax({start:this.start,stop:this.stop,getHijackFilter:()=>this.hijackFilter||null}))},beforeDestroy(){clearTimeout(this.timer),!0===this.hijacked&&restoreAjax(this.start)},render(t){return t("div",{class:this.classes,style:this.style,attrs:this.attrs})}});const sizes={xs:18,sm:24,md:32,lg:38,xl:46};function getSizeMixin(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 SizeMixin=getSizeMixin(sizes),TagMixin={props:{tag:{type:String,default:"div"}}},ListenersMixin=getPropCacheMixin("$listeners","qListeners");function slot(t,e,i){return void 0!==t.$scopedSlots[e]?t.$scopedSlots[e]():i}function uniqueSlot(t,e,i){return void 0!==t.$scopedSlots[e]?[].concat(t.$scopedSlots[e]()):i}function mergeSlot(t,e,i){return void 0!==e.$scopedSlots[i]?t.concat(e.$scopedSlots[i]()):t}function mergeSlotSafely(t,e,i){if(void 0===e.$scopedSlots[i])return t;const s=e.$scopedSlots[i]();return void 0!==t?t.concat(s):s}const defaultViewBox="0 0 24 24",sameFn=t=>t,ionFn=t=>`ionicons ${t}`,libMap={"mdi-":t=>`mdi ${t}`,"icon-":sameFn,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":ionFn,"ion-ios":ionFn,"ion-logo":ionFn,"iconfont ":sameFn,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},matMap={o_:"-outlined",r_:"-round",s_:"-sharp"},symMap={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},libRE=new RegExp("^("+Object.keys(libMap).join("|")+")"),matRE=new RegExp("^("+Object.keys(matMap).join("|")+")"),symRE=new RegExp("^("+Object.keys(symMap).join("|")+")"),mRE=/^[Mm]\s?[-+]?\.?\d/,imgRE=/^img:/,svgUseRE=/^svguse:/,ionRE=/^ion-/,faRE=/^(fa-(solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /;var QIcon=Vue.extend({name:"QIcon",mixins:[ListenersMixin,SizeMixin,TagMixin],props:{tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},computed:{classes(){return"q-icon"+(!0===this.left?" on-left":"")+(!0===this.right?" on-right":"")+(void 0!==this.color?` text-${this.color}`:"")},type(){let t,e=this.name;if("none"===e||!e)return{none:!0};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,content:void 0!==t.content?t.content:" "};if("none"===(e=t.icon)||!e)return{none:!0}}}if(!0===mRE.test(e)){const[t,i=defaultViewBox]=e.split("|");return{svg:!0,viewBox:i,nodes:t.split("&&").map(t=>{const[e,i,s]=t.split("@@");return this.$createElement("path",{attrs:{d:e,transform:s},style:i})})}}if(!0===imgRE.test(e))return{img:!0,src:e.substring(4)};if(!0===svgUseRE.test(e)){const[t,i=defaultViewBox]=e.split("|");return{svguse:!0,src:t.substring(7),viewBox:i}}let i=" ";const s=e.match(libRE);if(null!==s)t=libMap[s[1]](e);else if(!0===faRE.test(e))t=e;else if(!0===ionRE.test(e))t=`ionicons ion-${!0===this.$q.platform.is.ios?"ios":"md"}${e.substr(3)}`;else if(!0===symRE.test(e)){t="notranslate material-symbols";const s=e.match(symRE);null!==s&&(e=e.substring(6),t+=symMap[s[1]]),i=e}else{t="notranslate material-icons";const s=e.match(matRE);null!==s&&(e=e.substring(2),t+=matMap[s[1]]),i=e}return{cls:t,content:i}}},render(t){const e={class:this.classes,style:this.sizeStyle,on:{...this.qListeners},attrs:{"aria-hidden":"true",role:"presentation"}};return!0===this.type.none?t(this.tag,e,slot(this,"default")):!0===this.type.img?t("span",e,mergeSlot([t("img",{attrs:{src:this.type.src}})],this,"default")):!0===this.type.svg?t("span",e,mergeSlot([t("svg",{attrs:{viewBox:this.type.viewBox||"0 0 24 24",focusable:"false"}},this.type.nodes)],this,"default")):!0===this.type.svguse?t("span",e,mergeSlot([t("svg",{attrs:{viewBox:this.type.viewBox,focusable:"false"}},[t("use",{attrs:{"xlink:href":this.type.src}})])],this,"default")):(void 0!==this.type.cls&&(e.class+=" "+this.type.cls),t(this.tag,e,mergeSlot([this.type.content],this,"default")))}}),QAvatar=Vue.extend({name:"QAvatar",mixins:[ListenersMixin,SizeMixin],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(QIcon,{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},mergeSlotSafely(e,this,"default"))])}}),QBadge=Vue.extend({name:"QBadge",mixins:[ListenersMixin],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:"status","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]:slot(this,"default"))}}),DarkMixin={props:{dark:{type:Boolean,default:null}},computed:{isDark(){return null===this.dark?this.$q.dark.isActive:this.dark}}};const attrs={role:"alert"};var QBanner=Vue.extend({name:"QBanner",mixins:[ListenersMixin,DarkMixin],props:{inlineActions:Boolean,dense:Boolean,rounded:Boolean},render(t){const e=slot(this,"action"),i=[t("div",{staticClass:"q-banner__avatar col-auto row items-center self-start"},slot(this,"avatar")),t("div",{staticClass:"q-banner__content col text-body2"},slot(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:attrs,on:{...this.qListeners}},i)}});const attrs$1={role:"toolbar"};var QBar=Vue.extend({name:"QBar",mixins:[ListenersMixin,DarkMixin],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:attrs$1,on:{...this.qListeners}},slot(this,"default"))}});const alignMap={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},alignValues=Object.keys(alignMap);var AlignMixin={props:{align:{type:String,validator:t=>alignValues.includes(t)}},computed:{alignClass(){const t=void 0===this.align?!0===this.vertical?"stretch":"left":this.align;return`${!0===this.vertical?"items":"justify"}-${alignMap[t]}`}}};const disabledValues=[!0,""];var QBreadcrumbs=Vue.extend({name:"QBreadcrumbs",mixins:[ListenersMixin,AlignMixin],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(){return this.separatorColor?` text-${this.separatorColor}`:""},activeClass(){return` text-${this.activeColor}`}},render(t){const e=slot(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,a=disabledValues.includes(e.componentOptions.propsData.disable),l=!0===r?!0!==a?this.activeClass:"":" q-breadcrumbs--last";i++,s.push(t("div",{staticClass:"flex items-center"+l},[e])),!0===r&&s.push(t("div",{staticClass:"q-breadcrumbs__separator"+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 trailingSlashRE=/\/?$/;function equals(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const i in e)if(!(i in t)||String(t[i])!==String(e[i]))return!1;return!0}function includes(t,e){for(const i in e)if(!(i in t))return!1;return!0}function isSameRoute(t,e){return!!e&&(t.path&&e.path?t.path.replace(trailingSlashRE,"")===e.path.replace(trailingSlashRE,"")&&t.hash===e.hash&&equals(t.query,e.query):"string"==typeof t.name&&t.name===e.name&&t.hash===e.hash&&!0===equals(t.query,e.query)&&!0===equals(t.params,e.params))}function isIncludedRoute(t,e){return 0===t.path.replace(trailingSlashRE,"/").indexOf(e.path.replace(trailingSlashRE,"/"))&&("string"!=typeof e.hash||e.hash.length<2||t.hash===e.hash)&&!0===includes(t.query,e.query)}const routerLinkProps={to:[String,Object],exact:Boolean,append:Boolean,replace:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},href:String,target:String,disable:Boolean};var RouterLinkMixin={props:routerLinkProps,computed:{hasHrefLink(){return!0!==this.disable&&void 0!==this.href},hasRouterLinkProps(){return void 0!==this.$router&&!0!==this.disable&&!0!==this.hasHrefLink&&void 0!==this.to&&null!==this.to&&""!==this.to},resolvedLink(){return!0===this.hasRouterLinkProps?this.__getLink(this.to,this.append):null},hasRouterLink(){return null!==this.resolvedLink},hasLink(){return!0===this.hasHrefLink||!0===this.hasRouterLink},linkTag(){return"a"===this.type||!0===this.hasLink?"a":this.tag||this.fallbackTag||"div"},linkAttrs(){return!0===this.hasHrefLink?{href:this.href,target:this.target}:!0===this.hasRouterLink?{href:this.resolvedLink.href,target:this.target}:{}},linkIsActive(){return!0===this.hasRouterLink&&isIncludedRoute(this.$route,this.resolvedLink.route)},linkIsExactActive(){return!0===this.hasRouterLink&&isSameRoute(this.$route,this.resolvedLink.route)},linkClass(){return!0===this.hasRouterLink?!0===this.linkIsExactActive?` ${this.exactActiveClass} ${this.activeClass}`:!0===this.exact?"":!0===this.linkIsActive?` ${this.activeClass}`:"":""}},methods:{__getLink(t,e){try{return!0===e?this.$router.resolve(t,this.$route,!0):this.$router.resolve(t)}catch(t){}return null},__navigateToRouterLink(t,{returnRouterError:e,to:i,replace:s=this.replace,append:o}={}){if(!0===this.disable)return t.preventDefault(),Promise.resolve(!1);if(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||void 0!==t.button&&0!==t.button||"_blank"===this.target)return Promise.resolve(!1);t.preventDefault();const n=void 0===i?this.resolvedLink:this.__getLink(i,o);if(null===n)return Promise[!0===e?"reject":"resolve"](!1);const r=this.$router[!0===s?"replace":"push"](n.location);return!0===e?r:r.catch(()=>{})},__navigateOnClick(t){if(!0===this.hasRouterLink){const e=e=>this.__navigateToRouterLink(t,e);this.$emit("click",t,e),!1===t.navigate&&t.preventDefault(),!0!==t.defaultPrevented&&e()}else this.$emit("click",t)}}},QBreadcrumbsEl=Vue.extend({name:"QBreadcrumbsEl",mixins:[ListenersMixin,RouterLinkMixin],props:{label:String,icon:String},computed:{iconClass(){return"q-breadcrumbs__el-icon"+(void 0!==this.label?" q-breadcrumbs__el-icon--with-label":"")},renderData(){return{staticClass:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(!0!==this.disable?"q-link--focusable"+this.linkClass:"q-breadcrumbs__el--disabled"),attrs:this.linkAttrs,on:{...this.qListeners,click:this.__navigateOnClick}}}},beforeCreate(){this.fallbackTag="span"},render(t){const e=[];return void 0!==this.icon&&e.push(t(QIcon,{class:this.iconClass,props:{name:this.icon}})),void 0!==this.label&&e.push(this.label),t(this.linkTag,this.renderData,mergeSlot(e,this,"default"))}}),mixin$1={mixins:[ListenersMixin],props:{color:String,size:{type:[Number,String],default:"1em"}},computed:{cSize(){return this.size in sizes?`${sizes[this.size]}px`:this.size},classes(){if(this.color)return`text-${this.color}`}}},QSpinner=Vue.extend({name:"QSpinner",mixins:[mixin$1],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 offset(t){if(t===window)return{top:0,left:0};const{top:e,left:i}=t.getBoundingClientRect();return{top:e,left:i}}function style(t,e){return window.getComputedStyle(t).getPropertyValue(e)}function height(t){return t===window?window.innerHeight:t.getBoundingClientRect().height}function width(t){return t===window?window.innerWidth:t.getBoundingClientRect().width}function css(t,e){const i=t.style;Object.keys(e).forEach(t=>{i[t]=e[t]})}function cssBatch(t,e){t.forEach(t=>css(t,e))}function ready(t){if("function"==typeof t)return"loading"!==document.readyState?t():void document.addEventListener("DOMContentLoaded",t,!1)}function getElement(t){const e=typeof t;if("function"===e&&(t=t()),"string"===e)try{t=document.querySelector(t)}catch(t){}return t!==Object(t)?null:!0===t._isVue&&void 0!==t.$el?t.$el:t}function childHasFocus(t,e){if(void 0===t||!0===t.contains(e))return!0;for(let i=t.nextElementSibling;null!==i;i=i.nextElementSibling)if(i.contains(e))return!0;return!1}function getBodyFullscreenElement(t){return t===document.documentElement||null===t?document.body:t}var dom={offset:offset,style:style,height:height,width:width,css:css,cssBatch:cssBatch,ready:ready};function throttle(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 showRipple(t,e,i,s){!0===i.modifiers.stop&&stop(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=position(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`,f=n?g:`${l.left-h-m}px`,v=`${(u-p)/2}px`,_=n?v:`${l.top-d-m}px`;a.className="q-ripple__inner",css(a,{height:`${p}px`,width:`${p}px`,transform:`translate3d(${f},${_},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 b=()=>{r.remove(),clearTimeout(y)};i.abort.push(b);let y=setTimeout(()=>{a.classList.add("q-ripple__inner--enter"),a.style.transform=`translate3d(${g},${v},0) scale3d(1,1,1)`,a.style.opacity=.2,y=setTimeout(()=>{a.classList.remove("q-ripple__inner--enter"),a.classList.add("q-ripple__inner--leave"),a.style.opacity=0,y=setTimeout(()=>{r.remove(),i.abort.splice(i.abort.indexOf(b),1)},275)},250)},50)}function updateModifiers(t,{modifiers:e,value:i,arg:s}){const o=Object.assign({},$q.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 destroy(t){const e=t.__qripple;void 0!==e&&(e.abort.forEach(t=>{t()}),cleanEvt(e,"main"),delete t._qripple)}var Ripple={name:"ripple",inserted(t,e){void 0!==t.__qripple&&(destroy(t),t.__qripple_destroyed=!0);const i={enabled:!1!==e.value,modifiers:{},abort:[],start(e){!0===i.enabled&&!0!==e.qSkipRipple&&(!0!==client.is.ie||e.clientX>=0)&&e.type===(!0===i.modifiers.early?"pointerdown":"click")&&showRipple(e,t,i,!0===e.qKeyEvent)},keystart:throttle(e=>{!0===i.enabled&&!0!==e.qSkipRipple&&!0===isKeyCode(e,i.modifiers.keyCodes)&&e.type===`key${!0===i.modifiers.early?"down":"up"}`&&showRipple(e,t,i,!0)},300)};updateModifiers(i,e),t.__qripple=i,addEvt(i,"main",[[t,"pointerdown","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&&updateModifiers(i,e))},unbind(t){void 0===t.__qripple_destroyed?destroy(t):delete t.__qripple_destroyed}},RippleMixin={directives:{Ripple:Ripple},props:{ripple:{type:[Boolean,Object],default:!0}}};const btnPadding={none:0,xs:4,sm:8,md:16,lg:24,xl:32},formTypes=["button","submit","reset"],mediaTypeRe=/[^\s]\/[^\s]/,btnDesignOptions=["flat","outline","push","unelevated"],getBtnDesign=(t,e)=>!0===t.flat?"flat":!0===t.outline?"outline":!0===t.push?"push":!0===t.unelevated?"unelevated":e;var BtnMixin={mixins:[ListenersMixin,RippleMixin,RouterLinkMixin,AlignMixin,getSizeMixin({xs:8,sm:10,md:14,lg:20,xl:24})],props:{type:{type:String,default:"button"},to:[Object,String],replace:Boolean,append:Boolean,label:[Number,String],icon:String,iconRight:String,...btnDesignOptions.reduce((t,e)=>(t[e]=Boolean)&&t,{}),square:Boolean,round:Boolean,rounded: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},design(){return getBtnDesign(this,"standard")},attrs(){const t={tabindex:this.computedTabIndex};return!0===this.hasLink?Object.assign(t,this.linkAttrs):!0===formTypes.includes(this.type)&&(t.type=this.type),"a"===this.linkTag?(!0===this.disable?t["aria-disabled"]="true":void 0===t.href&&(t.role="button"),!0!==this.hasRouterLink&&!0===mediaTypeRe.test(this.type)&&(t.type=this.type)):!0===this.disable&&(t.disabled="",t["aria-disabled"]="true"),!0===this.loading&&void 0!==this.percentage&&(t.role="progressbar",t["aria-valuemin"]=0,t["aria-valuemax"]=100,t["aria-valuenow"]=this.percentage),t},classes(){let t;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}`);const e=!0===this.round?"round":`rectangle${!0===this.isRounded?" q-btn--rounded":!0===this.square?" q-btn--square":""}`;return`q-btn--${this.design} q-btn--${e}`+(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 btnPadding?btnPadding[t]+"px":t).join(" "),minWidth:"0",minHeight:"0"}}}};const{passiveCapture:passiveCapture}=listenOpts;let touchTarget=void 0,keyboardTarget=void 0,mouseTarget=void 0;const iconAttrs={role:"img","aria-hidden":"true"};var QBtn=Vue.extend({name:"QBtn",mixins:[BtnMixin],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.hasLink?[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[`${void 0===t.touchstart?"&":""}touchstart`]=this.__onTouchstart),t}return{click:stopAndPrevent}},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",stopAndPrevent,!0),document.removeEventListener("keyup",t,passiveCapture),void 0!==this.$el&&this.$el.removeEventListener("blur",t,passiveCapture)};document.addEventListener("keydown",stopAndPrevent,!0),document.addEventListener("keyup",t,passiveCapture),this.$el.addEventListener("blur",t,passiveCapture)}}this.__navigateOnClick(t)},__onKeydown(t){this.$emit("keydown",t),!0===isKeyCode(t,[13,32])&&(keyboardTarget!==this.$el&&(void 0!==keyboardTarget&&this.__cleanup(),!0!==t.defaultPrevented&&(this.$el.focus(),keyboardTarget=this.$el,this.$el.classList.add("q-btn--active"),document.addEventListener("keyup",this.__onPressEnd,!0),this.$el.addEventListener("blur",this.__onPressEnd,passiveCapture))),stopAndPrevent(t))},__onTouchstart(t){if(this.$emit("touchstart",t),touchTarget!==this.$el&&(void 0!==touchTarget&&this.__cleanup(),!0!==t.defaultPrevented)){touchTarget=this.$el;const e=this.touchTargetEl=t.target;e.addEventListener("touchcancel",this.__onPressEnd,passiveCapture),e.addEventListener("touchend",this.__onPressEnd,passiveCapture)}this.avoidMouseRipple=!0,clearTimeout(this.mouseTimer),this.mouseTimer=setTimeout(()=>{this.avoidMouseRipple=!1},200)},__onMousedown(t){t.qSkipRipple=!0===this.avoidMouseRipple,this.$emit("mousedown",t),mouseTarget!==this.$el&&(void 0!==mouseTarget&&this.__cleanup(),!0!==t.defaultPrevented&&(mouseTarget=this.$el,this.$el.classList.add("q-btn--active"),document.addEventListener("mouseup",this.__onPressEnd,passiveCapture)))},__onPressEnd(t){if(void 0===t||"blur"!==t.type||document.activeElement!==this.$el){if(void 0!==t&&"keyup"===t.type){if(keyboardTarget===this.$el&&!0===isKeyCode(t,[13,32])){const e=new MouseEvent("click",t);e.qKeyEvent=!0,!0===t.defaultPrevented&&prevent(e),!0===t.cancelBubble&&stop(e),this.$el.dispatchEvent(e),stopAndPrevent(t),t.qKeyEvent=!0}this.$emit("keyup",t)}this.__cleanup()}},__cleanup(t){const e=this.$refs.blurTarget;if(!0===t||touchTarget!==this.$el&&mouseTarget!==this.$el||void 0===e||e===document.activeElement||!0!==this.$el.contains(document.activeElement)||(e.setAttribute("tabindex",-1),e.focus()),touchTarget===this.$el){const t=this.touchTargetEl;t.removeEventListener("touchcancel",this.__onPressEnd,passiveCapture),t.removeEventListener("touchend",this.__onPressEnd,passiveCapture),touchTarget=this.touchTargetEl=void 0}mouseTarget===this.$el&&(document.removeEventListener("mouseup",this.__onPressEnd,passiveCapture),mouseTarget=void 0),keyboardTarget===this.$el&&(document.removeEventListener("keyup",this.__onPressEnd,!0),void 0!==this.$el&&this.$el.removeEventListener("blur",this.__onPressEnd,passiveCapture),keyboardTarget=void 0),void 0!==this.$el&&this.$el.classList.remove("q-btn--active")},__onLoadingEvt(t){stopAndPrevent(t),t.qSkipRipple=!0}},beforeDestroy(){this.__cleanup(!0)},render(t){let e=[];void 0!==this.icon&&e.push(t(QIcon,{attrs:iconAttrs,props:{name:this.icon,left:!1===this.stack&&!0===this.hasLabel}})),!0===this.hasLabel&&e.push(t("span",{staticClass:"block"},[this.label])),e=mergeSlot(e,this,"default"),void 0!==this.iconRight&&!1===this.round&&e.push(t(QIcon,{attrs:iconAttrs,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",class:!0===this.darkPercentage?"q-btn__progress--dark":""},[t("span",{staticClass:"q-btn__progress-indicator fit block",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(QSpinner)])]:void 0)),t(!0===this.hasLink||"a"===this.type?"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)}}),TransitionMixin={props:{transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"}},computed:{transitionProps(){const t=`q-transition--${this.transitionShow||this.defaultTransitionShow}`,e=`q-transition--${this.transitionHide||this.defaultTransitionHide}`;return{appear:!0,enterClass:`${t}-enter`,enterActiveClass:`${t}-enter-active`,enterToClass:`${t}-enter-to`,leaveClass:`${e}-leave`,leaveActiveClass:`${e}-leave-active`,leaveToClass:`${e}-leave-to`}}}},QBtnGroup=Vue.extend({name:"QBtnGroup",mixin:[ListenersMixin],props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},computed:{classes(){return["unelevated","outline","flat","rounded","square","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}},slot(this,"default"))}});function clearSelection(){if(void 0!==window.getSelection){const t=window.getSelection();void 0!==t.empty?t.empty():void 0!==t.removeAllRanges&&(t.removeAllRanges(),!0!==Platform.is.mobile&&t.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}var AnchorMixin={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)}),prevent(t)},__toggleKey(t){!0===isKeyCode(t,13)&&this.toggle(t)},__mobileCleanup(t){this.anchorEl.classList.remove("non-selectable"),clearTimeout(this.touchTimer),!0===this.showing&&void 0!==t&&clearSelection()},__mobilePrevent:prevent,__mobileTouch(t){if(this.__mobileCleanup(t),!0!==this.__showCondition(t))return;this.hide(t),this.anchorEl.classList.add("non-selectable");const e=t.target;addEvt(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(){cleanEvt(this,"anchor")},__configureAnchorEl(t=this.contextMenu){if(!0===this.noParentEvent||void 0===this.anchorEl)return;let e;addEvt(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(){!1===this.target||""===this.target||null===this.parentEl?this.anchorEl=void 0:!0===this.target?this.__setAnchorEl(this.parentEl):(this.anchorEl=getElement(this.target)||void 0,void 0!==this.anchorEl?this.__configureAnchorEl():console.error(`Anchor: target "${this.target}" not found`,this))},__changeScrollEvent(t,e){const i=`${void 0!==e?"add":"remove"}EventListener`,s=void 0!==e?e:this.__scrollFn;t!==window&&t[i]("scroll",s,listenOpts.passive),window[i]("scroll",s,listenOpts.passive),this.__scrollFn=e}},created(){"function"==typeof this.__configureScrollTarget&&"function"==typeof this.__unconfigureScrollTarget&&(this.noParentEventWatcher=this.$watch("noParentEvent",()=>{void 0!==this.__scrollTarget&&(this.__unconfigureScrollTarget(),this.__configureScrollTarget())}))},mounted(){this.parentEl=this.$el.parentNode,this.__pickAnchorEl(),!0===this.value&&void 0===this.anchorEl&&this.$emit("input",!1)},beforeDestroy(){clearTimeout(this.touchTimer),void 0!==this.noParentEventWatcher&&this.noParentEventWatcher(),void 0!==this.__anchorCleanup&&this.__anchorCleanup(),this.__unconfigureAnchorEl()}},TimeoutMixin={created(){this.__tickFnList=[],this.__timeoutFnList=[]},deactivated(){this.__tickFnList.forEach(t=>{t.removeTick()}),this.__timeoutFnList.forEach(t=>{t.removeTimeout()})},beforeDestroy(){this.__tickFnList.forEach(t=>{t.removeTick()}),this.__tickFnList=void 0,this.__timeoutFnList.forEach(t=>{t.removeTimeout()}),this.__timeoutFnList=void 0},methods:{__useTick(t,e){const i={removeTick(){i.fn=void 0},registerTick:t=>{i.fn=t,this.$nextTick(()=>{i.fn===t&&(!1===this._isDestroyed&&i.fn(),i.fn=void 0)})}};this.__tickFnList.push(i),this[t]=i.registerTick,void 0!==e&&(this[e]=i.removeTick)},__useTimeout(t,e){const i={removeTimeout(){clearTimeout(i.timer)},registerTimeout:(t,e)=>{clearTimeout(i.timer),!1===this._isDestroyed&&(i.timer=setTimeout(t,e))}};this.__timeoutFnList.push(i),this[t]=i.registerTimeout,void 0!==e&&(this[e]=i.removeTimeout)}}},ModelToggleMixin={mixins:[ListenersMixin],props:{value:{type:Boolean,default:void 0}},data:()=>({showing:!1}),watch:{value(t){this.__processModelChange(t)},$route(){!0===this.hideOnRouteChange&&!0===this.showing&&this.hide()}},methods:{toggle(t){this[!0===this.showing?"hide":"show"](t)},show(t){!0===this.disable||void 0!==this.__showCondition&&!0!==this.__showCondition(t)||(void 0!==this.qListeners.input&&!1===isSSR&&(this.$emit("input",!0),this.payload=t,this.$nextTick(()=>{this.payload===t&&(this.payload=void 0)})),void 0!==this.value&&void 0!==this.qListeners.input&&!0!==isSSR||this.__processShow(t))},__processShow(t){!0!==this.showing&&(void 0!==this.__preparePortal&&this.__preparePortal(),this.showing=!0,this.$emit("before-show",t),void 0!==this.__show?this.__show(t):this.$emit("show",t))},hide(t){!0!==this.disable&&(void 0!==this.qListeners.input&&!1===isSSR&&(this.$emit("input",!1),this.payload=t,this.$nextTick(()=>{this.payload===t&&(this.payload=void 0)})),void 0!==this.value&&void 0!==this.qListeners.input&&!0!==isSSR||this.__processHide(t))},__processHide(t){!1!==this.showing&&(this.showing=!1,this.$emit("before-hide",t),void 0!==this.__hide?this.__hide(t):this.$emit("hide",t))},__processModelChange(t){!0===this.disable&&!0===t?void 0!==this.qListeners.input&&this.$emit("input",!1):!0===t!==this.showing&&this[`__process${!0===t?"Show":"Hide"}`](this.payload)}}};let queue=[],waitFlags=[];function clearFlag(t){waitFlags=waitFlags.filter(e=>e!==t)}function addFocusWaitFlag(t){clearFlag(t),waitFlags.push(t)}function removeFocusWaitFlag(t){clearFlag(t),0===waitFlags.length&&queue.length>0&&(queue[queue.length-1](),queue=[])}function addFocusFn(t){0===waitFlags.length?t():queue.push(t)}function removeFocusFn(t){queue=queue.filter(e=>e!==t)}function closePortalMenus(t,e){do{if("QMenu"===t.$options.name){if(t.hide(e),!0===t.separateClosePopup)return t.$parent}else if(void 0!==t.__renderPortal)return void 0!==t.$parent&&"QPopupProxy"===t.$parent.$options.name?(t.hide(e),t.$parent):t;t=t.$parent}while(void 0!==t&&(void 0===t.$el.contains||!0!==t.$el.contains(e.target)))}function closePortals(t,e,i){for(;0!==i&&void 0!==t;){if(void 0!==t.__renderPortal){if(i--,"QMenu"===t.$options.name){t=closePortalMenus(t,e);continue}t.hide(e)}t=t.$parent}}function isOnGlobalDialog(t){for(;void 0!==t;){if("QGlobalDialog"===t.$options.name)return!0;if("QDialog"===t.$options.name)return!1;t=t.$parent}return!1}const Portal={inheritAttrs:!1,props:{contentClass:[Array,String,Object],contentStyle:[Array,String,Object]},methods:{__showPortal(t){if(!0===t)return removeFocusWaitFlag(this.focusObj),void(this.__portalIsAccessible=!0);if(this.__portalIsAccessible=!1,!0!==this.__portalIsActive)if(this.__portalIsActive=!0,void 0===this.focusObj&&(this.focusObj={}),addFocusWaitFlag(this.focusObj),void 0!==this.$q.fullscreen&&!0===this.$q.fullscreen.isCapable){const t=()=>{if(void 0===this.__portal)return;const t=getBodyFullscreenElement(this.$q.fullscreen.activeEl);this.__portal.$el.parentElement!==t&&t.contains(this.$el)===(!1===this.__onGlobalDialog)&&t.appendChild(this.__portal.$el)};this.unwatchFullscreen=this.$watch("$q.fullscreen.activeEl",debounce(t,50)),!1!==this.__onGlobalDialog&&!0!==this.$q.fullscreen.isActive||t()}else void 0!==this.__portal&&!1===this.__onGlobalDialog&&document.body.appendChild(this.__portal.$el)},__hidePortal(t){this.__portalIsAccessible=!1,!0===t&&(this.__portalIsActive=!1,removeFocusWaitFlag(this.focusObj),void 0!==this.__portal&&(void 0!==this.unwatchFullscreen&&(this.unwatchFullscreen(),this.unwatchFullscreen=void 0),!1===this.__onGlobalDialog&&(this.__portal.$destroy(),this.__portal.$el.remove()),this.__portal=void 0))},__preparePortal(){void 0===this.__portal&&(this.__portal=!0===this.__onGlobalDialog?{$el:this.$el,$refs:this.$refs}:new Vue({name:"QPortal",parent:this,inheritAttrs:!1,render:t=>this.__renderPortal(t),components:this.$options.components,directives:this.$options.directives}).$mount())}},render(t){if(!0===this.__onGlobalDialog)return this.__renderPortal(t);void 0!==this.__portal&&this.__portal.$forceUpdate()},beforeDestroy(){this.__hidePortal(!0)}};function getVmOfNode(t){for(let e=t;null!==e;e=e.parentNode)if(void 0!==e.__vue__)return e.__vue__}function isVmChildOf(t,e){if(null===t||null===e)return null;for(let i=t;void 0!==i;i=i.$parent)if(i===e)return!0;return!1}let timer;!1===isSSR&&(Portal.created=function(){this.__onGlobalDialog=isOnGlobalDialog(this.$parent)});const{notPassiveCapture:notPassiveCapture,passiveCapture:passiveCapture$1}=listenOpts,handlers={click:[],focus:[]};function hasModalsAbove(t){for(;null!==(t=t.nextElementSibling);)if(t.classList.contains("q-dialog--modal"))return!0;return!1}function execHandlers(t,e){for(let i=t.length-1;i>=0;i--)if(void 0===t[i](e))return}function globalHandler(t){clearTimeout(timer),"focusin"===t.type&&(!0===client.is.ie&&t.target===document.body||!0===t.target.hasAttribute("tabindex"))?timer=setTimeout(()=>{execHandlers(handlers.focus,t)},!0===client.is.ie?500:200):execHandlers(handlers.click,t)}var ClickOutside={name:"click-outside",bind(t,{value:e,arg:i},s){const o=s.componentInstance||s.context,n={trigger:e,toggleEl:i,handler(e){const i=e.target;if(!(!0===e.qClickOutside||!0!==document.body.contains(i)||8===i.nodeType||i===document.documentElement||!1!==i.classList.contains("no-pointer-events")||!0===hasModalsAbove(t)||void 0!==n.toggleEl&&!1!==n.toggleEl.contains(i)||i!==document.body&&!1!==isVmChildOf(getVmOfNode(i),o)))return e.qClickOutside=!0,n.trigger(e)}};t.__qclickoutside&&(t.__qclickoutside_old=t.__qclickoutside),t.__qclickoutside=n,0===handlers.click.length&&(document.addEventListener("mousedown",globalHandler,notPassiveCapture),document.addEventListener("touchstart",globalHandler,notPassiveCapture),document.addEventListener("focusin",globalHandler,passiveCapture$1)),handlers.click.push(n.handler),n.timerFocusin=setTimeout(()=>{handlers.focus.push(n.handler)},500)},update(t,{value:e,oldValue:i,arg:s}){const o=t.__qclickoutside;e!==i&&(o.trigger=e),s!==o.arg&&(o.toggleEl=s)},unbind(t){const e=t.__qclickoutside_old||t.__qclickoutside;if(void 0!==e){clearTimeout(e.timerFocusin);const i=handlers.click.findIndex(t=>t===e.handler),s=handlers.focus.findIndex(t=>t===e.handler);i>-1&&handlers.click.splice(i,1),s>-1&&handlers.focus.splice(s,1),0===handlers.click.length&&(clearTimeout(timer),document.removeEventListener("mousedown",globalHandler,notPassiveCapture),document.removeEventListener("touchstart",globalHandler,notPassiveCapture),document.removeEventListener("focusin",globalHandler,passiveCapture$1)),delete t[t.__qclickoutside_old?"__qclickoutside_old":"__qclickoutside"]}}};const scrollTargets=!0===isSSR?[]:[null,document,document.body,document.scrollingElement,document.documentElement];let rtlHasScrollBugStatus;function rtlHasScrollBug(){if(!0===isSSR)return!1;if(void 0===rtlHasScrollBugStatus){const t=document.createElement("div"),e=document.createElement("div");Object.assign(t.style,{direction:"rtl",width:"1px",height:"1px",overflow:"auto"}),Object.assign(e.style,{width:"1000px",height:"1px"}),t.appendChild(e),document.body.appendChild(t),t.scrollLeft=-1e3,rtlHasScrollBugStatus=t.scrollLeft>=0,t.remove()}return rtlHasScrollBugStatus}function getScrollTarget(t,e){let i=getElement(e);if(null===i){if(t!==Object(t)||"function"!=typeof t.closest)return window;i=t.closest(".scroll,.scroll-y,.overflow-auto")}return scrollTargets.includes(i)?window:i}function getScrollHeight(t){return(t===window?document.body:t).scrollHeight}function getScrollWidth(t){return(t===window?document.body:t).scrollWidth}function getVerticalScrollPosition(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}const getScrollPosition=getVerticalScrollPosition;function getHorizontalScrollPosition(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}function animVerticalScrollTo(t,e,i=0){const s=void 0===arguments[3]?performance.now():arguments[3],o=getVerticalScrollPosition(t);i<=0?o!==e&&setScroll(t,e):requestAnimationFrame(n=>{const r=n-s,a=o+(e-o)/Math.max(r,i)*r;setScroll(t,a),a!==e&&animVerticalScrollTo(t,e,i-r,n)})}const animScrollTo=animVerticalScrollTo;function animHorizontalScrollTo(t,e,i=0){const s=void 0===arguments[3]?performance.now():arguments[3],o=getHorizontalScrollPosition(t);i<=0?o!==e&&setHorizontalScroll(t,e):requestAnimationFrame(n=>{const r=n-s,a=o+(e-o)/Math.max(r,i)*r;setHorizontalScroll(t,a),a!==e&&animHorizontalScrollTo(t,e,i-r,n)})}function setScroll(t,e){t!==window?t.scrollTop=e:window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,e)}function setHorizontalScroll(t,e){t!==window?t.scrollLeft=e:window.scrollTo(e,window.pageYOffset||window.scrollY||document.body.scrollTop||0)}function setVerticalScrollPosition(t,e,i){i?animVerticalScrollTo(t,e,i):setScroll(t,e)}const setScrollPosition=setVerticalScrollPosition;function setHorizontalScrollPosition(t,e,i){i?animHorizontalScrollTo(t,e,i):setHorizontalScroll(t,e)}let size;function getScrollbarWidth(){if(void 0!==size)return size;const t=document.createElement("p"),e=document.createElement("div");css(t,{width:"100%",height:"200px"}),css(e,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);const i=t.offsetWidth;e.style.overflow="scroll";let s=t.offsetWidth;return i===s&&(s=e.clientWidth),e.remove(),size=i-s}function hasScrollbar(t,e=!0){return!(!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 scroll={getScrollTarget:getScrollTarget,getScrollHeight:getScrollHeight,getScrollWidth:getScrollWidth,getScrollPosition:getScrollPosition,getVerticalScrollPosition:getVerticalScrollPosition,getHorizontalScrollPosition:getHorizontalScrollPosition,rtlHasScrollBug:rtlHasScrollBug,animScrollTo:animScrollTo,animVerticalScrollTo:animVerticalScrollTo,animHorizontalScrollTo:animHorizontalScrollTo,setScrollPosition:setScrollPosition,setVerticalScrollPosition:setVerticalScrollPosition,setHorizontalScrollPosition:setHorizontalScrollPosition,getScrollbarWidth:getScrollbarWidth,hasScrollbar:hasScrollbar};const handlers$1=[];let escDown=!1;var EscapeKey={__install(){this.__installed=!0,window.addEventListener("keydown",t=>{escDown=27===t.keyCode}),window.addEventListener("blur",()=>{!0===escDown&&(escDown=!1)}),window.addEventListener("keyup",t=>{!0===escDown&&(escDown=!1,0!==handlers$1.length&&!0===isKeyCode(t,27)&&handlers$1[handlers$1.length-1].fn(t))})},register(t,e){!0===t.$q.platform.is.desktop&&(!0!==this.__installed&&this.__install(),handlers$1.push({comp:t,fn:e}))},pop(t){if(!0===t.$q.platform.is.desktop){const e=handlers$1.findIndex(e=>e.comp===t);e>-1&&handlers$1.splice(e,1)}}};let vpLeft,vpTop;function validatePosition(t){const e=t.split(" ");return 2===e.length&&(!0!==["top","center","bottom"].includes(e[0])?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):!0===["left","middle","right","start","end"].includes(e[1])||(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1))}function validateOffset(t){return!t||2===t.length&&("number"==typeof t[0]&&"number"==typeof t[1])}const horizontalPos={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};function parsePosition(t,e){const i=t.split(" ");return{vertical:i[0],horizontal:horizontalPos[`${i[1]}#${!0===e?"rtl":"ltr"}`]}}function getAnchorProps(t,e){let{top:i,left:s,right:o,bottom:n,width:r,height:a}=t.getBoundingClientRect();return void 0!==e&&(i-=e[1],s-=e[0],n+=e[1],o+=e[0],r+=e[0],a+=e[1]),{top:i,bottom:n,height:a,left:s,right:o,width:r,middle:s+(o-s)/2,center:i+(n-i)/2}}function getAbsoluteAnchorProps(t,e,i){let{top:s,left:o}=t.getBoundingClientRect();return s+=e.top,o+=e.left,void 0!==i&&(s+=i[1],o+=i[0]),{top:s,bottom:s+1,height:1,left:o,right:o+1,width:1,middle:o,center:s}}function getTargetProps(t){return{top:0,center:t.offsetHeight/2,bottom:t.offsetHeight,left:0,middle:t.offsetWidth/2,right:t.offsetWidth}}function getTopLeftProps(t,e,i){return{top:t[i.anchorOrigin.vertical]-e[i.selfOrigin.vertical],left:t[i.anchorOrigin.horizontal]-e[i.selfOrigin.horizontal]}}function setPosition(t){if(!0===client.is.ios&&void 0!==window.visualViewport){const t=document.body.style,{offsetLeft:e,offsetTop:i}=window.visualViewport;e!==vpLeft&&(t.setProperty("--q-pe-left",e+"px"),vpLeft=e),i!==vpTop&&(t.setProperty("--q-pe-top",i+"px"),vpTop=i)}const{scrollLeft:e,scrollTop:i}=t.el,s=void 0===t.absoluteOffset?getAnchorProps(t.anchorEl,!0===t.cover?[0,0]:t.offset):getAbsoluteAnchorProps(t.anchorEl,t.absoluteOffset,t.offset);let o={maxHeight:t.maxHeight,maxWidth:t.maxWidth,visibility:"visible"};!0!==t.fit&&!0!==t.cover||(o.minWidth=s.width+"px",!0===t.cover&&(o.minHeight=s.height+"px")),Object.assign(t.el.style,o);const n=getTargetProps(t.el);let r=getTopLeftProps(s,n,t);if(void 0===t.absoluteOffset||void 0===t.offset)applyBoundaries(r,s,n,t.anchorOrigin,t.selfOrigin);else{const{top:e,left:i}=r;applyBoundaries(r,s,n,t.anchorOrigin,t.selfOrigin);let o=!1;if(r.top!==e){o=!0;const e=2*t.offset[1];s.center=s.top-=e,s.bottom-=e+2}if(r.left!==i){o=!0;const e=2*t.offset[0];s.middle=s.left-=e,s.right-=e+2}!0===o&&applyBoundaries(r=getTopLeftProps(s,n,t),s,n,t.anchorOrigin,t.selfOrigin)}o={top:r.top+"px",left:r.left+"px"},void 0!==r.maxHeight&&(o.maxHeight=r.maxHeight+"px",s.height>r.maxHeight&&(o.minHeight=o.maxHeight)),void 0!==r.maxWidth&&(o.maxWidth=r.maxWidth+"px",s.width>r.maxWidth&&(o.minWidth=o.maxWidth)),Object.assign(t.el.style,o),t.el.scrollTop!==i&&(t.el.scrollTop=i),t.el.scrollLeft!==e&&(t.el.scrollLeft=e)}function applyBoundaries(t,e,i,s,o){const n=i.bottom,r=i.right,a=getScrollbarWidth(),l=window.innerHeight-a,h=document.body.clientWidth;if(t.top<0||t.top+n>l)if("center"===o.vertical)t.top=e[s.vertical]>l/2?Math.max(0,l-n):0,t.maxHeight=Math.min(n,l);else if(e[s.vertical]>l/2){const i=Math.min(l,"center"===s.vertical?e.center:s.vertical===o.vertical?e.bottom:e.top);t.maxHeight=Math.min(n,i),t.top=Math.max(0,i-n)}else t.top=Math.max(0,"center"===s.vertical?e.center:s.vertical===o.vertical?e.top:e.bottom),t.maxHeight=Math.min(n,l-t.top);if(t.left<0||t.left+r>h)if(t.maxWidth=Math.min(r,h),"middle"===o.horizontal)t.left=e[s.horizontal]>h/2?Math.max(0,h-r):0;else if(e[s.horizontal]>h/2){const i=Math.min(h,"middle"===s.horizontal?e.middle:s.horizontal===o.horizontal?e.right:e.left);t.maxWidth=Math.min(r,i),t.left=Math.max(0,i-t.maxWidth)}else t.left=Math.max(0,"middle"===s.horizontal?e.middle:s.horizontal===o.horizontal?e.left:e.right),t.maxWidth=Math.min(r,h-t.left)}["left","middle","right"].forEach(t=>{horizontalPos[`${t}#ltr`]=t,horizontalPos[`${t}#rtl`]=t});var QMenu=Vue.extend({name:"QMenu",mixins:[AttrsMixin,DarkMixin,AnchorMixin,TimeoutMixin,ModelToggleMixin,Portal,TransitionMixin],directives:{ClickOutside:ClickOutside},props:{persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:validatePosition},self:{type:String,validator:validatePosition},offset:{type:Array,validator:validateOffset},scrollTarget:{default:void 0},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},computed:{anchorOrigin(){return parsePosition(this.anchor||(!0===this.cover?"center middle":"bottom start"),this.$q.lang.rtl)},selfOrigin(){return!0===this.cover?this.anchorOrigin:parsePosition(this.self||"top start",this.$q.lang.rtl)},menuClass(){return(!0===this.square?" q-menu--square":"")+(!0===this.isDark?" q-menu--dark q-dark":"")},hideOnRouteChange(){return!0!==this.persistent&&!0!==this.noRouteDismiss},onEvents(){const t={...this.qListeners,input:stop,"popup-show":stop,"popup-hide":stop};return!0===this.autoClose&&(t.click=this.__onAutoClose),t},attrs(){return{tabindex:-1,role:"menu",...this.qAttrs}}},methods:{focus(){addFocusFn(()=>{let t=void 0!==this.__portal&&void 0!==this.__portal.$refs?this.__portal.$refs.inner:void 0;void 0!==t&&!0!==t.contains(document.activeElement)&&(t=t.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||t.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||t.querySelector("[autofocus], [data-autofocus]")||t).focus({preventScroll:!0})})},__show(t){if(this.__refocusTarget=!0!==client.is.mobile&&!1===this.noRefocus&&null!==document.activeElement?document.activeElement:void 0,EscapeKey.register(this,t=>{!0!==this.persistent&&(this.$emit("escape-key"),this.hide(t))}),this.__showPortal(),this.__configureScrollTarget(),this.absoluteOffset=void 0,void 0!==t&&(this.touchPosition||this.contextMenu)){const e=position(t);if(void 0!==e.left){const{top:t,left:i}=this.anchorEl.getBoundingClientRect();this.absoluteOffset={left:e.left-i,top:e.top-t}}}void 0===this.unwatch&&(this.unwatch=this.$watch(()=>this.$q.screen.width+"|"+this.$q.screen.height+"|"+this.self+"|"+this.anchor+"|"+this.$q.lang.rtl,this.updatePosition)),this.$el.dispatchEvent(create("popup-show",{bubbles:!0})),!0!==this.noFocus&&null!==document.activeElement&&document.activeElement.blur(),this.__registerTick(()=>{this.updatePosition(),!0!==this.noFocus&&this.focus()}),this.__registerTimeout(()=>{!0===this.$q.platform.is.ios&&(this.__avoidAutoClose=this.autoClose,this.__portal.$el.click()),this.updatePosition(),this.__showPortal(!0),this.$emit("show",t)},300)},__hide(t){this.__removeTick(),this.__anchorCleanup(!0),this.__hidePortal(),void 0===this.__refocusTarget||null===this.__refocusTarget||void 0!==t&&!0===t.qClickOutside||(((t&&0===t.type.indexOf("key")?this.__refocusTarget.closest('[tabindex]:not([tabindex^="-"])'):void 0)||this.__refocusTarget).focus(),this.__refocusTarget=void 0),this.$el.dispatchEvent(create("popup-hide",{bubbles:!0})),this.__registerTimeout(()=>{this.__hidePortal(!0),this.$emit("hide",t)},300)},__anchorCleanup(t){this.absoluteOffset=void 0,void 0!==this.unwatch&&(this.unwatch(),this.unwatch=void 0),!0!==t&&!0!==this.showing||(EscapeKey.pop(this),this.__unconfigureScrollTarget())},__unconfigureScrollTarget(){void 0!==this.__scrollTarget&&(this.__changeScrollEvent(this.__scrollTarget),this.__scrollTarget=void 0)},__configureScrollTarget(){void 0===this.anchorEl&&void 0===this.scrollTarget||(this.__scrollTarget=getScrollTarget(this.anchorEl,this.scrollTarget),this.__changeScrollEvent(this.__scrollTarget,this.updatePosition))},__onAutoClose(t){!0!==this.__avoidAutoClose?(closePortalMenus(this,t),void 0!==this.qListeners.click&&this.$emit("click",t)):this.__avoidAutoClose=!1},updatePosition(){if(void 0===this.anchorEl||void 0===this.__portal)return;const t=this.__portal.$el;8!==t.nodeType?setPosition({el:t,offset:this.offset,anchorEl:this.anchorEl,anchorOrigin:this.anchorOrigin,selfOrigin:this.selfOrigin,absoluteOffset:this.absoluteOffset,fit:this.fit,cover:this.cover,maxHeight:this.maxHeight,maxWidth:this.maxWidth}):setTimeout(this.updatePosition,25)},__onClickOutside(t){if(!0!==this.persistent&&!0===this.showing){const e=t.target.classList;return closePortalMenus(this,t),("touchstart"===t.type||e.contains("q-dialog__backdrop"))&&stopAndPreventClick(t),!0}},__renderPortal(t){return t("transition",{props:{...this.transitionProps}},[!0===this.showing?t("div",{ref:"inner",staticClass:"q-menu q-position-engine scroll"+this.menuClass,class:this.contentClass,style:this.contentStyle,attrs:this.attrs,on:this.onEvents,directives:[{name:"click-outside",value:this.__onClickOutside,arg:this.anchorEl}]},slot(this,"default")):null])}},created(){this.__useTick("__registerTick","__removeTick"),this.__useTimeout("__registerTimeout")},mounted(){this.__processModelChange(this.value)},beforeDestroy(){this.__refocusTarget=void 0,!0===this.showing&&void 0!==this.anchorEl&&this.anchorEl.dispatchEvent(create("popup-hide",{bubbles:!0}))}});let buf,bufIdx=0;const hexBytes=new Array(256);for(let t=0;t<256;t++)hexBytes[t]=(t+256).toString(16).substr(1);const randomBytes=(()=>{const t="undefined"!=typeof crypto?crypto:"undefined"!=typeof window?window.msCrypto:void 0;if(void 0!==t){if(void 0!==t.randomBytes)return t.randomBytes;if(void 0!==t.getRandomValues)return e=>{var i=new Uint8Array(e);return t.getRandomValues(i),i}}return t=>{const e=[];for(let i=t;i>0;i--)e.push(Math.floor(256*Math.random()));return e}})(),BUFFER_SIZE=4096;function uid(){(void 0===buf||bufIdx+16>BUFFER_SIZE)&&(bufIdx=0,buf=randomBytes(BUFFER_SIZE));const t=Array.prototype.slice.call(buf,bufIdx,bufIdx+=16);return t[6]=15&t[6]|64,t[8]=63&t[8]|128,hexBytes[t[0]]+hexBytes[t[1]]+hexBytes[t[2]]+hexBytes[t[3]]+"-"+hexBytes[t[4]]+hexBytes[t[5]]+"-"+hexBytes[t[6]]+hexBytes[t[7]]+"-"+hexBytes[t[8]]+hexBytes[t[9]]+"-"+hexBytes[t[10]]+hexBytes[t[11]]+hexBytes[t[12]]+hexBytes[t[13]]+hexBytes[t[14]]+hexBytes[t[15]]}const menuTransitionProps=Object.keys(TransitionMixin.props).reduce((t,e)=>(t[e]={})&&t,{});var QBtnDropdown=Vue.extend({name:"QBtnDropdown",mixins:[BtnMixin,AttrsMixin],inheritAttrs:!1,props:{value:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,menuAnchor:{type:String,default:"bottom end"},menuSelf:{type:String,default:"top end"},menuOffset:Array,...menuTransitionProps,disableMainBtn:Boolean,disableDropdown:Boolean,noIconAnimation:Boolean,toggleAriaLabel:String},data(){return{showing:this.value}},watch:{value(t){void 0!==this.$refs.menu&&this.$refs.menu[t?"show":"hide"]()},split(){this.hide()}},render(t){const e=slot(this,"label",[]),i={"aria-expanded":!0===this.showing?"true":"false","aria-haspopup":"true","aria-controls":this.targetUid,"aria-label":this.toggleAriaLabel||this.$q.lang.label[!0===this.showing?"collapse":"expand"](this.label)};(!0===this.disable||!1===this.split&&!0===this.disableMainBtn||!0===this.disableDropdown)&&(i["aria-disabled"]="true");const s=[t(QIcon,{props:{name:this.dropdownIcon||this.$q.iconSet.arrow.dropdown},class:"q-btn-dropdown__arrow"+(!0===this.showing&&!1===this.noIconAnimation?" rotate-180":"")+(!1===this.split?" q-btn-dropdown__arrow-container":"")})];if(!0!==this.disableDropdown&&s.push(t(QMenu,{ref:"menu",attrs:{id:this.targetUid},props:{cover:this.cover,fit:!0,persistent:this.persistent,noRouteDismiss:this.noRouteDismiss,autoClose:this.autoClose,anchor:this.menuAnchor,self:this.menuSelf,offset:this.menuOffset,contentClass:this.contentClass,contentStyle:this.contentStyle,separateClosePopup:!0,transitionShow:this.transitionShow,transitionHide:this.transitionHide},on:cache(this,"menu",{"before-show":t=>{this.showing=!0,this.$emit("before-show",t)},show:t=>{this.$emit("show",t),this.$emit("input",!0)},"before-hide":t=>{this.showing=!1,this.$emit("before-hide",t)},hide:t=>{this.$emit("hide",t),this.$emit("input",!1)}})},slot(this,"default"))),!1===this.split)return t(QBtn,{class:"q-btn-dropdown q-btn-dropdown--simple",props:{...this.$props,disable:!0===this.disable||!0===this.disableMainBtn,noWrap:!0,round:!1},attrs:{...i,...this.qAttrs},on:cache(this,"nonSpl",{click:t=>{this.$emit("click",t)}}),scopedSlots:{loading:this.$scopedSlots.loading}},e.concat(s));const o=t(QBtn,{class:"q-btn-dropdown--current",props:{...this.$props,disable:!0===this.disable||!0===this.disableMainBtn,noWrap:!0,iconRight:this.iconRight,round:!1},attrs:this.qAttrs,on:cache(this,"spl",{click:t=>{stop(t),this.hide(),this.$emit("click",t)}}),scopedSlots:{loading:this.$scopedSlots.loading}},e);return t(QBtnGroup,{props:{outline:this.outline,flat:this.flat,rounded:this.rounded,square:this.square,push:this.push,unelevated:this.unelevated,glossy:this.glossy,stretch:this.stretch},staticClass:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item"},[o,t(QBtn,{staticClass:"q-btn-dropdown__arrow-container q-anchor--skip",attrs:i,props:{disable:!0===this.disable||!0===this.disableDropdown,outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push,size:this.size,color:this.color,textColor:this.textColor,dense:this.dense,ripple:this.ripple}},s)])},methods:{toggle(t){this.$refs.menu&&this.$refs.menu.toggle(t)},show(t){this.$refs.menu&&this.$refs.menu.show(t)},hide(t){this.$refs.menu&&this.$refs.menu.hide(t)}},created(){this.targetUid=`d_${uid()}`},mounted(){!0===this.value&&this.show()}}),FormMixin={props:{name:String},computed:{formAttrs(){return{type:"hidden",name:this.name,value:this.value}}},methods:{__injectFormInput(t,e,i){t[e](this.$createElement("input",{staticClass:"hidden",class:i,attrs:this.formAttrs,domProps:this.formDomProps}))}}};const FormFieldMixin={props:{name:String},computed:{nameProp(){return this.name||this.for}}};var QBtnToggle=Vue.extend({name:"QBtnToggle",mixins:[ListenersMixin,RippleMixin,FormMixin],props:{value:{required:!0},options:{type:Array,required:!0,validator:t=>t.every(t=>("label"in t||"icon"in t||"slot"in t)&&"value"in t)},color:String,textColor:String,toggleColor:{type:String,default:"primary"},toggleTextColor:String,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,padding:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,readonly:Boolean,disable:Boolean,stack:Boolean,stretch:Boolean,spread:Boolean,clearable:Boolean},computed:{hasActiveValue(){return void 0!==this.options.find(t=>t.value===this.value)},formAttrs(){return{type:"hidden",name:this.name,value:this.value}},btnOptions(){const t=(t,e)=>void 0===t[e]?this[e]:t[e];return this.options.map((e,i)=>({slot:e.slot,options:{key:i,class:e.class,style:e.style,on:{...this.qListeners,click:t=>this.__set(e.value,e,t)},attrs:{"aria-pressed":e.value===this.value?"true":"false",...e.attrs},props:{...e,slot:void 0,class:void 0,style:void 0,value:void 0,attrs:void 0,outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push,unelevated:this.unelevated,dense:this.dense,disable:!0===this.disable||!0===e.disable,color:e.value===this.value?t(e,"toggleColor"):t(e,"color"),textColor:e.value===this.value?t(e,"toggleTextColor"):t(e,"textColor"),noCaps:!0===t(e,"noCaps"),noWrap:!0===t(e,"noWrap"),size:t(e,"size"),padding:t(e,"padding"),ripple:t(e,"ripple"),stack:!0===t(e,"stack"),stretch:!0===t(e,"stretch")}}}))}},methods:{__set(t,e,i){!0!==this.readonly&&(this.value===t?!0===this.clearable&&(this.$emit("input",null,null),this.$emit("clear")):this.$emit("input",t,e),this.$emit("click",i))}},render(t){const e=this.btnOptions.map(e=>t(QBtn,{...e.options},void 0!==e.slot?slot(this,e.slot):void 0));return void 0!==this.name&&!0!==this.disable&&!0===this.hasActiveValue&&this.__injectFormInput(e,"push"),t(QBtnGroup,{staticClass:"q-btn-toggle",props:{outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push,stretch:this.stretch,unelevated:this.unelevated,glossy:this.glossy,spread:this.spread}},mergeSlot(e,this,"default"))}}),QCard=Vue.extend({name:"QCard",mixins:[ListenersMixin,DarkMixin,TagMixin],props:{square:Boolean,flat:Boolean,bordered:Boolean},computed:{classes(){return"q-card"+(!0===this.isDark?" q-card--dark q-dark":"")+(!0===this.bordered?" q-card--bordered":"")+(!0===this.square?" q-card--square no-border-radius":"")+(!0===this.flat?" q-card--flat no-shadow":"")}},render(t){return t(this.tag,{class:this.classes,on:{...this.qListeners}},slot(this,"default"))}}),QCardSection=Vue.extend({name:"QCardSection",mixins:[ListenersMixin,TagMixin],props:{horizontal:Boolean},computed:{classes(){return"q-card__section "+`q-card__section--${!0===this.horizontal?"horiz row no-wrap":"vert"}`}},render(t){return t(this.tag,{class:this.classes,on:{...this.qListeners}},slot(this,"default"))}}),QCardActions=Vue.extend({name:"QCardActions",mixins:[ListenersMixin,AlignMixin],props:{vertical:Boolean},computed:{classes(){return`q-card__actions--${!0===this.vertical?"vert column":"horiz row"} ${this.alignClass}`}},render(t){return t("div",{staticClass:"q-card__actions",class:this.classes,on:{...this.qListeners}},slot(this,"default"))}});const directions=["left","right","up","down","horizontal","vertical"],modifiersAll={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0,all:!0};function getModifierDirections(t){const e={};return directions.forEach(i=>{t[i]&&(e[i]=!0)}),0===Object.keys(e).length?modifiersAll:(!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)}function shouldStart(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))}function parseArg(t){const e=[.06,6,50];return"string"==typeof t&&t.length&&t.split(":").forEach((t,i)=>{const s=parseFloat(t);s&&(e[i]=s)}),e}function destroy$1(t){const e=t.__qtouchswipe;void 0!==e&&(cleanEvt(e,"main"),cleanEvt(e,"temp"),!0===client.is.firefox&&preventDraggable(t,!1),void 0!==e.styleCleanup&&e.styleCleanup(),delete t.__qtouchswipe)}var TouchSwipe={name:"touch-swipe",bind(t,{value:e,arg:i,modifiers:s}){if(void 0!==t.__qtouchswipe&&(destroy$1(t),t.__qtouchswipe_destroyed=!0),!0!==s.mouse&&!0!==client.has.touch)return;const o=!0===s.mouseCapture||!0===s.mousecapture?"Capture":"",n={handler:e,sensitivity:parseArg(i),modifiers:s,direction:getModifierDirections(s),noop:noop,mouseStart(t){shouldStart(t,n)&&leftClick(t)&&(addEvt(n,"temp",[[document,"mousemove","move",`notPassive${o}`],[document,"mouseup","end","notPassiveCapture"]]),n.start(t,!0))},touchStart(t){if(shouldStart(t,n)){const e=t.target;addEvt(n,"temp",[[e,"touchmove","move","notPassiveCapture"],[e,"touchcancel","end","notPassiveCapture"],[e,"touchend","end","notPassiveCapture"]]),n.start(t)}},start(e,i){!0===client.is.firefox&&preventDraggable(t,!0);const s=position(e);n.event={x:s.left,y:s.top,time:Date.now(),mouse:!0===i,dir:!1}},move(t){if(void 0===n.event)return;if(!1!==n.event.dir)return void stopAndPrevent(t);const e=Date.now()-n.event.time;if(0===e)return;const i=position(t),s=i.left-n.event.x,o=Math.abs(s),r=i.top-n.event.y,a=Math.abs(r);if(!0!==n.event.mouse){if(o<n.sensitivity[1]&&a<n.sensitivity[1])return void n.end(t)}else if(o<n.sensitivity[2]&&a<n.sensitivity[2])return;const l=o/e,h=a/e;!0===n.direction.vertical&&o<a&&o<100&&h>n.sensitivity[0]&&(n.event.dir=r<0?"up":"down"),!0===n.direction.horizontal&&o>a&&a<100&&l>n.sensitivity[0]&&(n.event.dir=s<0?"left":"right"),!0===n.direction.up&&o<a&&r<0&&o<100&&h>n.sensitivity[0]&&(n.event.dir="up"),!0===n.direction.down&&o<a&&r>0&&o<100&&h>n.sensitivity[0]&&(n.event.dir="down"),!0===n.direction.left&&o>a&&s<0&&a<100&&l>n.sensitivity[0]&&(n.event.dir="left"),!0===n.direction.right&&o>a&&s>0&&a<100&&l>n.sensitivity[0]&&(n.event.dir="right"),!1!==n.event.dir?(stopAndPrevent(t),!0===n.event.mouse&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),clearSelection(),n.styleCleanup=(t=>{n.styleCleanup=void 0,document.body.classList.remove("non-selectable");const e=()=>{document.body.classList.remove("no-pointer-events--children")};!0===t?setTimeout(e,50):e()})),n.handler({evt:t,touch:!0!==n.event.mouse,mouse:n.event.mouse,direction:n.event.dir,duration:e,distance:{x:o,y:a}})):n.end(t)},end(e){void 0!==n.event&&(cleanEvt(n,"temp"),!0===client.is.firefox&&preventDraggable(t,!1),void 0!==n.styleCleanup&&n.styleCleanup(!0),void 0!==e&&!1!==n.event.dir&&stopAndPrevent(e),n.event=void 0)}};t.__qtouchswipe=n,!0===s.mouse&&addEvt(n,"main",[[t,"mousedown","mouseStart",`passive${o}`]]),!0===client.has.touch&&addEvt(n,"main",[[t,"touchstart","touchStart",`passive${!0===s.capture?"Capture":""}`],[t,"touchmove","noop","notPassiveCapture"]])},update(t,{oldValue:e,value:i}){const s=t.__qtouchswipe;void 0!==s&&e!==i&&("function"!=typeof i&&s.end(),s.handler=i)},unbind(t){void 0===t.__qtouchswipe_destroyed?destroy$1(t):delete t.__qtouchswipe_destroyed}};function getPanelWrapper(t){return t("div",{staticClass:"q-panel scroll",attrs:{role:"tabpanel"},on:cache(this,"stop",{input:stop})},slot(this,"default"))}const PanelWrapper=Vue.extend({render:getPanelWrapper}),PanelParentMixin={mixins:[ListenersMixin],directives:{TouchSwipe:TouchSwipe},props:{value:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},data:()=>({panelIndex:null,panelTransition:null}),computed:{panelDirectives(){if(!0===this.swipeable)return[{name:"touch-swipe",value:this.__swipe,modifiers:{horizontal:!0!==this.vertical,vertical:this.vertical,mouse:!0}}]},contentKey(){return"string"==typeof this.value||"number"==typeof this.value?this.value:String(this.value)},transitionPrevComputed(){return this.transitionPrev||`slide-${!0===this.vertical?"down":"right"}`},transitionNextComputed(){return this.transitionNext||`slide-${!0===this.vertical?"up":"left"}`},keepAliveProps(){return{include:this.keepAliveInclude,exclude:this.keepAliveExclude,max:this.keepAliveMax}},needsUniqueWrapper(){return void 0!==this.keepAliveInclude||void 0!==this.keepAliveExclude}},watch:{value(t,e){const i=!0===this.__isValidPanelName(t)?this.__getPanelIndex(t):-1;!0!==this.__forcedPanelTransition&&this.__updatePanelTransition(-1===i?0:i<this.__getPanelIndex(e)?-1:1),this.panelIndex!==i&&(this.panelIndex=i,this.$emit("before-transition",t,e),this.$nextTick(()=>{this.$emit("transition",t,e)}))}},methods:{next(){this.__go(1)},previous(){this.__go(-1)},goTo(t){this.$emit("input",t)},__isValidPanelName:t=>void 0!==t&&null!==t&&""!==t,__getPanelIndex(t){return this.panels.findIndex(e=>{const i=e.componentOptions.propsData;return i.name===t&&""!==i.disable&&!0!==i.disable})},__getEnabledPanels(){return this.panels.filter(t=>{const e=t.componentOptions.propsData;return""!==e.disable&&!0!==e.disable})},__updatePanelTransition(t){const e=0!==t&&!0===this.animated&&-1!==this.panelIndex?"q-transition--"+(-1===t?this.transitionPrevComputed:this.transitionNextComputed):null;this.panelTransition!==e&&(this.panelTransition=e)},__go(t,e=this.panelIndex){let i=e+t;const s=this.panels;for(;i>-1&&i<s.length;){const e=s[i].componentOptions;if(void 0!==e&&""!==e.propsData.disable&&!0!==e.propsData.disable)return this.__updatePanelTransition(t),this.__forcedPanelTransition=!0,this.$emit("input",s[i].componentOptions.propsData.name),void setTimeout(()=>{this.__forcedPanelTransition=!1});i+=t}!0===this.infinite&&s.length>0&&-1!==e&&e!==s.length&&this.__go(t,-1===t?s.length:-1)},__swipe(t){const e=!0===this.vertical?"up":"left";this.__go((!0===this.$q.lang.rtl?-1:1)*(t.direction===e?1:-1))},__updatePanelIndex(){const t=this.__getPanelIndex(this.value);return this.panelIndex!==t&&(this.panelIndex=t),!0},__getPanelContent(t){if(0===this.panels.length)return;const e=this.__isValidPanelName(this.value)&&this.__updatePanelIndex()&&this.panels[this.panelIndex],i=!0===this.keepAlive?[t("keep-alive",{props:this.keepAliveProps},[t(!0===this.needsUniqueWrapper?cacheWithFn(this,this.contentKey,()=>Vue.extend({name:this.contentKey,render:getPanelWrapper})):PanelWrapper,{key:this.contentKey},[e])])]:[t("div",{staticClass:"q-panel scroll",key:this.contentKey,attrs:{role:"tabpanel"},on:cache(this,"stop",{input:stop})},[e])];return!0===this.animated?[t("transition",{props:{name:this.panelTransition}},i)]:i}},render(t){return this.panels=slot(this,"default",[]).filter(t=>void 0!==t&&void 0!==t.componentOptions&&void 0!==t.componentOptions.propsData&&this.__isValidPanelName(t.componentOptions.propsData.name)),this.__renderPanels(t)}},PanelChildMixin={mixins:[ListenersMixin],props:{name:{required:!0},disable:Boolean}};let fullscreenCounter=0;var FullscreenMixin={props:{fullscreen:Boolean,noRouteFullscreenExit:Boolean},data:()=>({inFullscreen:!1}),watch:{$route(){!0!==this.noRouteFullscreenExit&&this.exitFullscreen()},fullscreen(t){this.inFullscreen!==t&&this.toggleFullscreen()},inFullscreen(t){this.$emit("update:fullscreen",t),this.$emit("fullscreen",t)}},methods:{toggleFullscreen(){!0===this.inFullscreen?this.exitFullscreen():this.setFullscreen()},setFullscreen(){!0!==this.inFullscreen&&(this.inFullscreen=!0,this.container=this.$el.parentNode,this.container.replaceChild(this.fullscreenFillerNode,this.$el),document.body.appendChild(this.$el),1===++fullscreenCounter&&document.body.classList.add("q-body--fullscreen-mixin"),this.__historyFullscreen={handler:this.exitFullscreen},History.add(this.__historyFullscreen))},exitFullscreen(){!0===this.inFullscreen&&(void 0!==this.__historyFullscreen&&(History.remove(this.__historyFullscreen),this.__historyFullscreen=void 0),this.container.replaceChild(this.$el,this.fullscreenFillerNode),this.inFullscreen=!1,0===(fullscreenCounter=Math.max(0,fullscreenCounter-1))&&(document.body.classList.remove("q-body--fullscreen-mixin"),void 0!==this.$el.scrollIntoView&&setTimeout(()=>{this.$el.scrollIntoView()})))}},beforeMount(){this.fullscreenFillerNode=document.createElement("span")},mounted(){!0===this.fullscreen&&this.setFullscreen()},beforeDestroy(){this.exitFullscreen()}};const hasMap="function"==typeof Map,hasSet="function"==typeof Set,hasArrayBuffer="function"==typeof ArrayBuffer;function isDeepEqual(t,e){if(t===e)return!0;if(null!==t&&null!==e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;let i,s;if(t.constructor===Array){if((i=t.length)!==e.length)return!1;for(s=i;0!=s--;)if(!0!==isDeepEqual(t[s],e[s]))return!1;return!0}if(!0===hasMap&&t.constructor===Map){if(t.size!==e.size)return!1;let i=t.entries();for(s=i.next();!0!==s.done;){if(!0!==e.has(s.value[0]))return!1;s=i.next()}for(s=(i=t.entries()).next();!0!==s.done;){if(!0!==isDeepEqual(s.value[1],e.get(s.value[0])))return!1;s=i.next()}return!0}if(!0===hasSet&&t.constructor===Set){if(t.size!==e.size)return!1;const i=t.entries();for(s=i.next();!0!==s.done;){if(!0!==e.has(s.value[0]))return!1;s=i.next()}return!0}if(!0===hasArrayBuffer&&null!=t.buffer&&t.buffer.constructor===ArrayBuffer){if((i=t.length)!==e.length)return!1;for(s=i;0!=s--;)if(t[s]!==e[s])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();const o=Object.keys(t).filter(e=>void 0!==t[e]);if((i=o.length)!==Object.keys(e).filter(t=>void 0!==e[t]).length)return!1;for(s=i;0!=s--;){const i=o[s];if(!0!==isDeepEqual(t[i],e[i]))return!1}return!0}return t!=t&&e!=e}function isObject(t){return null!==t&&"object"==typeof t&&!0!==Array.isArray(t)}function isDate(t){return"[object Date]"===Object.prototype.toString.call(t)}function isRegexp(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function isNumber(t){return"number"==typeof t&&isFinite(t)}var is={deepEqual:isDeepEqual,object:isObject,date:isDate,regexp:isRegexp,number:isNumber},QCarousel=Vue.extend({name:"QCarousel",mixins:[DarkMixin,PanelParentMixin,FullscreenMixin],props:{height:String,padding:Boolean,controlType:{type:String,validator:t=>["regular","flat","outline","push","unelevated"].includes(t),default:"flat"},controlColor:String,controlTextColor:String,autoplay:[Number,Boolean],arrows:Boolean,prevIcon:String,nextIcon:String,navigation:Boolean,navigationPosition:{type:String,validator:t=>["top","right","bottom","left"].includes(t)},navigationIcon:String,navigationActiveIcon:String,thumbnails:Boolean},computed:{style(){if(!0!==this.inFullscreen&&void 0!==this.height)return{height:this.height}},direction(){return!0===this.vertical?"vertical":"horizontal"},classes(){return`q-carousel q-panel-parent q-carousel--with${!0===this.padding?"":"out"}-padding`+(!0===this.inFullscreen?" fullscreen":"")+(!0===this.isDark?" q-carousel--dark q-dark":"")+(!0===this.arrows?` q-carousel--arrows-${this.direction}`:"")+(!0===this.navigation?` q-carousel--navigation-${this.navigationPositionComputed}`:"")},arrowIcons(){const t=[this.prevIcon||this.$q.iconSet.carousel[!0===this.vertical?"up":"left"],this.nextIcon||this.$q.iconSet.carousel[!0===this.vertical?"down":"right"]];return!1===this.vertical&&!0===this.$q.lang.rtl?t.reverse():t},navIcon(){return this.navigationIcon||this.$q.iconSet.carousel.navigationIcon},navActiveIcon(){return this.navigationActiveIcon||this.navIcon},navigationPositionComputed(){return this.navigationPosition||(!0===this.vertical?"right":"bottom")},controlProps(){return{color:this.controlColor,textColor:this.controlTextColor,round:!0,[this.controlType]:!0,dense:!0}},transitionPrevComputed(){return this.transitionPrev||"fade"},transitionNextComputed(){return this.transitionNext||"fade"}},watch:{value(){this.autoplay&&(clearInterval(this.timer),this.__startTimer())},autoplay(t){t?this.__startTimer():clearInterval(this.timer)}},methods:{__startTimer(){const t=!0===isNumber(this.autoplay)?this.autoplay:5e3;this.timer=setTimeout(t>=0?this.next:this.previous,Math.abs(t))},__getNavigationContainer(t,e,i){return t("div",{class:"q-carousel__control q-carousel__navigation no-wrap absolute flex"+` q-carousel__navigation--${e} q-carousel__navigation--${this.navigationPositionComputed}`+(void 0!==this.controlColor?` text-${this.controlColor}`:"")},[t("div",{staticClass:"q-carousel__navigation-inner flex flex-center no-wrap"},this.__getEnabledPanels().map(i))])},__getContent(t){const e=[];if(!0===this.navigation){const i=void 0!==this.$scopedSlots["navigation-icon"]?this.$scopedSlots["navigation-icon"]:e=>t(QBtn,{key:"nav"+e.name,class:`q-carousel__navigation-icon q-carousel__navigation-icon--${!0===e.active?"":"in"}active`,props:e.btnProps,on:cache(this,"nav#"+e.name,{click:e.onClick})}),s=this.panels.length-1;e.push(this.__getNavigationContainer(t,"buttons",(t,e)=>{const o=t.componentOptions.propsData.name,n=this.panelIndex===e;return i({index:e,maxIndex:s,name:o,active:n,btnProps:{icon:!0===n?this.navActiveIcon:this.navIcon,size:"sm",...this.controlProps},onClick:()=>{this.goTo(o)}})}))}else if(!0===this.thumbnails){const i=void 0!==this.controlColor?` text-${this.controlColor}`:"";e.push(this.__getNavigationContainer(t,"thumbnails",e=>{const s=e.componentOptions.propsData;return t("img",{class:`q-carousel__thumbnail q-carousel__thumbnail--${s.name===this.value?"":"in"}active`+i,attrs:{src:s.imgSrc},key:"tmb#"+s.name,on:cache(this,"tmb#"+s.name,{click:()=>{this.goTo(s.name)}})})}))}return!0===this.arrows&&this.panelIndex>=0&&((!0===this.infinite||this.panelIndex>0)&&e.push(t("div",{key:"prev",staticClass:`q-carousel__control q-carousel__arrow q-carousel__prev-arrow q-carousel__prev-arrow--${this.direction} absolute flex flex-center`},[t(QBtn,{props:{icon:this.arrowIcons[0],...this.controlProps},on:cache(this,"prev",{click:this.previous})})])),(!0===this.infinite||this.panelIndex<this.panels.length-1)&&e.push(t("div",{key:"next",staticClass:`q-carousel__control q-carousel__arrow q-carousel__next-arrow q-carousel__next-arrow--${this.direction} absolute flex flex-center`},[t(QBtn,{props:{icon:this.arrowIcons[1],...this.controlProps},on:cache(this,"next",{click:this.next})})]))),mergeSlot(e,this,"control")},__renderPanels(t){return t("div",{style:this.style,class:this.classes,on:{...this.qListeners}},[t("div",{staticClass:"q-carousel__slides-container",directives:this.panelDirectives},this.__getPanelContent(t))].concat(this.__getContent(t)))}},mounted(){this.autoplay&&this.__startTimer()},beforeDestroy(){clearInterval(this.timer)}}),QCarouselSlide=Vue.extend({name:"QCarouselSlide",mixins:[PanelChildMixin],props:{imgSrc:String},computed:{style(){if(this.imgSrc)return{backgroundImage:`url("${this.imgSrc}")`}}},render(t){return t("div",{staticClass:"q-carousel__slide",style:this.style,on:{...this.qListeners}},slot(this,"default"))}}),QCarouselControl=Vue.extend({name:"QCarouselControl",mixins:[ListenersMixin],props:{position:{type:String,default:"bottom-right",validator:t=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(t)},offset:{type:Array,default:()=>[18,18],validator:t=>2===t.length}},computed:{classes(){return`absolute-${this.position}`},style(){return{margin:`${this.offset[1]}px ${this.offset[0]}px`}}},render(t){return t("div",{staticClass:"q-carousel__control absolute",style:this.style,class:this.classes,on:{...this.qListeners}},slot(this,"default"))}}),QChatMessage=Vue.extend({name:"QChatMessage",mixins:[ListenersMixin],props:{sent:Boolean,label:String,bgColor:String,textColor:String,name:String,avatar:String,text:Array,stamp:String,size:String,labelSanitize:Boolean,nameSanitize:Boolean,textSanitize:Boolean,stampSanitize:Boolean},computed:{textClass(){return`q-message-text-content q-message-text-content--${this.op}`+(void 0!==this.textColor?` text-${this.textColor}`:"")},messageClass(){return`q-message-text q-message-text--${this.op}`+(void 0!==this.bgColor?` text-${this.bgColor}`:"")},containerClass(){return"q-message-container row items-end no-wrap"+(!0===this.sent?" reverse":"")},sizeClass(){if(void 0!==this.size)return`col-${this.size}`},op(){return!0===this.sent?"sent":"received"}},methods:{__wrapStamp(t,e){if(void 0!==this.$scopedSlots.stamp)return[e,t("div",{staticClass:"q-message-stamp"},this.$scopedSlots.stamp())];if(this.stamp){return[e,t("div",{staticClass:"q-message-stamp",domProps:{[!0===this.stampSanitize?"textContent":"innerHTML"]:this.stamp}})]}return[e]},__getText(t,e,i){const s=!0===this.textSanitize?"textContent":"innerHTML";if(!0===i&&!0===e.some(t=>void 0===t.tag&&void 0!==t.text))return[t("div",{class:this.messageClass},[t("div",{class:this.textClass},this.__wrapStamp(t,t("div",e)))])];const o=!0!==i?e=>t("div",{domProps:{[s]:e}}):e.length>1?t=>t:e=>t("div",[e]);return e.map((e,i)=>t("div",{key:i,class:this.messageClass},[t("div",{class:this.textClass},this.__wrapStamp(t,o(e)))]))}},render(t){const e=[];void 0!==this.$scopedSlots.avatar?e.push(this.$scopedSlots.avatar()):void 0!==this.avatar&&e.push(t("img",{class:`q-message-avatar q-message-avatar--${this.op}`,attrs:{src:this.avatar,"aria-hidden":"true"}}));const i=[];void 0!==this.$scopedSlots.name?i.push(t("div",{class:`q-message-name q-message-name--${this.op}`},this.$scopedSlots.name())):void 0!==this.name&&i.push(t("div",{class:`q-message-name q-message-name--${this.op}`,domProps:{[!0===this.nameSanitize?"textContent":"innerHTML"]:this.name}})),void 0!==this.text&&i.push(this.__getText(t,this.text)),void 0!==this.$scopedSlots.default&&i.push(this.__getText(t,this.$scopedSlots.default(),!0)),e.push(t("div",{class:this.sizeClass},i));const s=[];return void 0!==this.$scopedSlots.label?s.push(t("div",{staticClass:"q-message-label"},this.$scopedSlots.label())):void 0!==this.label&&s.push(t("div",{staticClass:"q-message-label",domProps:{[!0===this.labelSanitize?"textContent":"innerHTML"]:this.label}})),s.push(t("div",{class:this.containerClass},e)),t("div",{class:`q-message q-message-${this.op}`,on:{...this.qListeners}},s)}}),OptionSizeMixin=getSizeMixin({xs:30,sm:35,md:40,lg:50,xl:60}),RefocusTargetMixin={computed:{__refocusTargetEl(){if(!0!==this.disable)return this.$createElement("span",{ref:"refocusTarget",staticClass:"no-outline",attrs:{tabindex:-1}})}},methods:{__refocusTarget(t){void 0!==t&&0===t.type.indexOf("key")?document.activeElement!==this.$el&&!0===this.$el.contains(document.activeElement)&&this.$el.focus():void 0!==t&&!0!==this.$el.contains(t.target)||void 0===this.$refs.refocusTarget||this.$refs.refocusTarget.focus()}}},CheckboxMixin={mixins:[DarkMixin,OptionSizeMixin,FormMixin,RefocusTargetMixin],props:{value:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:t=>"tf"===t||"ft"===t},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},computed:{isTrue(){return!0===this.modelIsArray?this.index>-1:this.value===this.trueValue},isFalse(){return!0===this.modelIsArray?-1===this.index:this.value===this.falseValue},isIndeterminate(){return!1===this.isTrue&&!1===this.isFalse},index(){if(!0===this.modelIsArray)return this.value.indexOf(this.val)},modelIsArray(){return void 0!==this.val&&Array.isArray(this.value)},computedTabindex(){return!0===this.disable?-1:this.tabindex||0},classes(){return`q-${this.type} cursor-pointer no-outline row inline no-wrap items-center`+(!0===this.disable?" disabled":"")+(!0===this.isDark?` q-${this.type}--dark`:"")+(!0===this.dense?` q-${this.type}--dense`:"")+(!0===this.leftLabel?" reverse":"")},innerClass(){const t=!0===this.isTrue?"truthy":!0===this.isFalse?"falsy":"indet",e=void 0===this.color||!0!==this.keepColor&&("toggle"===this.type?!0!==this.isTrue:!0===this.isFalse)?"":` text-${this.color}`;return`q-${this.type}__inner--${t}${e}`},formAttrs(){const t={type:"checkbox"};return void 0!==this.name&&Object.assign(t,{checked:this.isTrue,name:this.name,value:!0===this.modelIsArray?this.val:this.trueValue}),t},attrs(){const t={tabindex:this.computedTabindex,role:"toggle"===this.type?"switch":"checkbox","aria-label":this.label,"aria-checked":!0===this.isIndeterminate?"mixed":!0===this.isTrue?"true":"false"};return!0===this.disable&&(t["aria-disabled"]="true"),t}},methods:{toggle(t){void 0!==t&&(stopAndPrevent(t),this.__refocusTarget(t)),!0!==this.disable&&this.$emit("input",this.__getNextValue(),t)},__getNextValue(){if(!0===this.modelIsArray){if(!0===this.isTrue){const t=this.value.slice();return t.splice(this.index,1),t}return this.value.concat([this.val])}if(!0===this.isTrue){if("ft"!==this.toggleOrder||!1===this.toggleIndeterminate)return this.falseValue}else{if(!0!==this.isFalse)return"ft"!==this.toggleOrder?this.trueValue:this.falseValue;if("ft"===this.toggleOrder||!1===this.toggleIndeterminate)return this.trueValue}return this.indeterminateValue},__onKeydown(t){13!==t.keyCode&&32!==t.keyCode||stopAndPrevent(t)},__onKeyup(t){13!==t.keyCode&&32!==t.keyCode||this.toggle(t)}},render(t){const e=this.__getInner(t);!0!==this.disable&&this.__injectFormInput(e,"unshift",`q-${this.type}__native absolute q-ma-none q-pa-none`);const i=[t("div",{staticClass:`q-${this.type}__inner relative-position non-selectable`,class:this.innerClass,style:this.sizeStyle,attrs:{"aria-hidden":"true"}},e)];void 0!==this.__refocusTargetEl&&i.push(this.__refocusTargetEl);const s=void 0!==this.label?mergeSlot([this.label],this,"default"):slot(this,"default");return void 0!==s&&i.push(t("div",{staticClass:`q-${this.type}__label q-anchor--skip`},s)),t("div",{class:this.classes,attrs:this.attrs,on:cache(this,"inpExt",{click:this.toggle,keydown:this.__onKeydown,keyup:this.__onKeyup})},i)}},QCheckbox=Vue.extend({name:"QCheckbox",mixins:[CheckboxMixin],computed:{computedIcon(){return!0===this.isTrue?this.checkedIcon:!0===this.isIndeterminate?this.indeterminateIcon:this.uncheckedIcon}},methods:{__getInner(t){return void 0!==this.computedIcon?[t("div",{key:"icon",staticClass:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[t(QIcon,{staticClass:"q-checkbox__icon",props:{name:this.computedIcon}})])]:[t("div",{key:"svg",staticClass:"q-checkbox__bg absolute"},[t("svg",{staticClass:"q-checkbox__svg fit absolute-full",attrs:{focusable:"false",viewBox:"0 0 24 24"}},[t("path",{staticClass:"q-checkbox__truthy",attrs:{fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}}),t("path",{staticClass:"q-checkbox__indet",attrs:{d:"M4,14H20V10H4"}})])])]}},created(){this.type="checkbox"}}),QChip=Vue.extend({name:"QChip",mixins:[RippleMixin,DarkMixin,getSizeMixin({xs:8,sm:10,md:14,lg:20,xl:24})],model:{event:"remove"},props:{dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,value:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean},computed:{classes(){const t=!0===this.outline&&this.color||this.textColor;return{[`bg-${this.color}`]:!1===this.outline&&void 0!==this.color,[`text-${t} q-chip--colored`]:t,disabled:this.disable,"q-chip--dense":this.dense,"q-chip--outline":this.outline,"q-chip--selected":this.selected,"q-chip--clickable cursor-pointer non-selectable q-hoverable":this.isClickable,"q-chip--square":this.square,"q-chip--dark q-dark":this.isDark}},hasLeftIcon(){return!0===this.selected||void 0!==this.icon},leftIcon(){return!0===this.selected?this.iconSelected||this.$q.iconSet.chip.selected:this.icon},removeIcon(){return this.iconRemove||this.$q.iconSet.chip.remove},isClickable(){return!1===this.disable&&(!0===this.clickable||null!==this.selected)},attrs(){const t=!0===this.disable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:this.tabindex||0};return{chip:t,remove:{...t,role:"button","aria-hidden":"false","aria-label":this.removeAriaLabel||this.$q.lang.label.remove}}}},methods:{__onKeyup(t){13===t.keyCode&&this.__onClick(t)},__onClick(t){this.disable||(this.$emit("update:selected",!this.selected),this.$emit("click",t))},__onRemove(t){void 0!==t.keyCode&&13!==t.keyCode||(stopAndPrevent(t),!this.disable&&this.$emit("remove",!1))},__getContent(t){const e=[];!0===this.isClickable&&e.push(t("div",{staticClass:"q-focus-helper"})),!0===this.hasLeftIcon&&e.push(t(QIcon,{staticClass:"q-chip__icon q-chip__icon--left",props:{name:this.leftIcon}}));const i=void 0!==this.label?[t("div",{staticClass:"ellipsis"},[this.label])]:void 0;return e.push(t("div",{staticClass:"q-chip__content col row no-wrap items-center q-anchor--skip"},mergeSlotSafely(i,this,"default"))),this.iconRight&&e.push(t(QIcon,{staticClass:"q-chip__icon q-chip__icon--right",props:{name:this.iconRight}})),!0===this.removable&&e.push(t(QIcon,{staticClass:"q-chip__icon q-chip__icon--remove cursor-pointer",props:{name:this.removeIcon},attrs:this.attrs.remove,on:cache(this,"non",{click:this.__onRemove,keyup:this.__onRemove})})),e}},render(t){if(!1===this.value)return;const e={staticClass:"q-chip row inline no-wrap items-center",class:this.classes,style:this.sizeStyle};return!0===this.isClickable&&Object.assign(e,{attrs:this.attrs.chip,on:cache(this,"click",{click:this.__onClick,keyup:this.__onKeyup}),directives:cache(this,"dir#"+this.ripple,[{name:"ripple",value:this.ripple}])}),t("div",e,this.__getContent(t))}});const radius=50,diameter=100,circumference=100*Math.PI,strokeDashArray=Math.round(1e3*circumference)/1e3;var QCircularProgress=Vue.extend({name:"QCircularProgress",mixins:[ListenersMixin,SizeMixin],props:{value:{type:Number,default:0},min:{type:Number,default:0},max:{type:Number,default:100},color:String,centerColor:String,trackColor:String,fontSize:String,rounded:Boolean,thickness:{type:Number,default:.2,validator:t=>t>=0&&t<=1},angle:{type:Number,default:0},indeterminate:Boolean,showValue:Boolean,reverse:Boolean,instantFeedback:Boolean},computed:{normalizedValue(){return between(this.value,this.min,this.max)},svgStyle(){const t=!0===this.$q.lang.rtl?-this.angle:this.angle;return{transform:this.reverse!==(!0===this.$q.lang.rtl)?`scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${-90-t}deg)`:`rotate3d(0, 0, 1, ${t-90}deg)`}},circleStyle(){if(!0!==this.instantFeedback&&!0!==this.indeterminate)return{transition:"stroke-dashoffset 0.6s ease 0s, stroke 0.6s ease"}},viewBox(){return 100/(1-this.thickness/2)},viewBoxAttr(){return`${this.viewBox/2} ${this.viewBox/2} ${this.viewBox} ${this.viewBox}`},strokeDashOffset(){return(1-(this.normalizedValue-this.min)/(this.max-this.min))*circumference},strokeWidth(){return this.thickness/2*this.viewBox},attrs(){return{role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":!0===this.indeterminate?void 0:this.normalizedValue}}},methods:{__getCircle(t,{thickness:e,offset:i,color:s,cls:o,rounded:n}){return t("circle",{staticClass:"q-circular-progress__"+o,class:void 0!==s?`text-${s}`:null,style:this.circleStyle,attrs:{fill:"transparent",stroke:"currentColor","stroke-width":e,"stroke-dasharray":strokeDashArray,"stroke-dashoffset":i,"stroke-linecap":n,cx:this.viewBox,cy:this.viewBox,r:50}})}},render(t){const e=[];void 0!==this.centerColor&&"transparent"!==this.centerColor&&e.push(t("circle",{staticClass:"q-circular-progress__center",class:`text-${this.centerColor}`,attrs:{fill:"currentColor",r:50-this.strokeWidth/2,cx:this.viewBox,cy:this.viewBox}})),void 0!==this.trackColor&&"transparent"!==this.trackColor&&e.push(this.__getCircle(t,{cls:"track",thickness:this.strokeWidth,offset:0,color:this.trackColor})),e.push(this.__getCircle(t,{cls:"circle",thickness:this.strokeWidth,offset:this.strokeDashOffset,color:this.color,rounded:!0===this.rounded?"round":void 0}));const i=[t("svg",{staticClass:"q-circular-progress__svg",style:this.svgStyle,attrs:{focusable:"false",viewBox:this.viewBoxAttr,"aria-hidden":"true"}},e)];return!0===this.showValue&&i.push(t("div",{staticClass:"q-circular-progress__text absolute-full row flex-center content-center",style:{fontSize:this.fontSize}},void 0!==this.$scopedSlots.default?this.$scopedSlots.default():[t("div",[this.normalizedValue])])),t("div",{staticClass:"q-circular-progress",class:`q-circular-progress--${!0===this.indeterminate?"in":""}determinate`,style:this.sizeStyle,on:{...this.qListeners},attrs:this.attrs},mergeSlotSafely(i,this,"internal"))}});const hex=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,hexa=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,hexOrHexa=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,rgb=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,rgba=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,testPattern={date:t=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(t),time:t=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(t),fulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(t),timeOrFulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(t),email:t=>/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t),hexColor:t=>hex.test(t),hexaColor:t=>hexa.test(t),hexOrHexaColor:t=>hexOrHexa.test(t),rgbColor:t=>rgb.test(t),rgbaColor:t=>rgba.test(t),rgbOrRgbaColor:t=>rgb.test(t)||rgba.test(t),hexOrRgbColor:t=>hex.test(t)||rgb.test(t),hexaOrRgbaColor:t=>hexa.test(t)||rgba.test(t),anyColor:t=>hexOrHexa.test(t)||rgb.test(t)||rgba.test(t)};var patterns={testPattern:testPattern};function getChanges(t,e,i){const s=position(t);let o,n=s.left-e.event.x,r=s.top-e.event.y,a=Math.abs(n),l=Math.abs(r);const h=e.direction;!0===h.horizontal&&!0!==h.vertical?o=n<0?"left":"right":!0!==h.horizontal&&!0===h.vertical?o=r<0?"up":"down":!0===h.up&&r<0?(o="up",a>l&&(!0===h.left&&n<0?o="left":!0===h.right&&n>0&&(o="right"))):!0===h.down&&r>0?(o="down",a>l&&(!0===h.left&&n<0?o="left":!0===h.right&&n>0&&(o="right"))):!0===h.left&&n<0?(o="left",a<l&&(!0===h.up&&r<0?o="up":!0===h.down&&r>0&&(o="down"))):!0===h.right&&n>0&&(o="right",a<l&&(!0===h.up&&r<0?o="up":!0===h.down&&r>0&&(o="down")));let d=!1;if(void 0===o&&!1===i){if(!0===e.event.isFirst||void 0===e.event.lastDir)return{};d=!0,"left"===(o=e.event.lastDir)||"right"===o?(s.left-=n,a=0,n=0):(s.top-=r,l=0,r=0)}return{synthetic:d,payload:{evt:t,touch:!0!==e.event.mouse,mouse:!0===e.event.mouse,position:s,direction:o,isFirst:e.event.isFirst,isFinal:!0===i,duration:Date.now()-e.event.time,distance:{x:a,y:l},offset:{x:n,y:r},delta:{x:s.left-e.event.lastX,y:s.top-e.event.lastY}}}}function destroy$2(t){const e=t.__qtouchpan;void 0!==e&&(void 0!==e.event&&e.end(),cleanEvt(e,"main"),cleanEvt(e,"temp"),!0===client.is.firefox&&preventDraggable(t,!1),void 0!==e.styleCleanup&&e.styleCleanup(),delete t.__qtouchpan)}let uid$1=0;var TouchPan={name:"touch-pan",bind(t,{value:e,modifiers:i}){if(void 0!==t.__qtouchpan&&(destroy$2(t),t.__qtouchpan_destroyed=!0),!0!==i.mouse&&!0!==client.has.touch)return;function s(t,e){!0===i.mouse&&!0===e?stopAndPrevent(t):(!0===i.stop&&stop(t),!0===i.prevent&&prevent(t))}const o={uid:"qvtp_"+uid$1++,handler:e,modifiers:i,direction:getModifierDirections(i),noop:noop,mouseStart(t){shouldStart(t,o)&&leftClick(t)&&(addEvt(o,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),o.start(t,!0))},touchStart(t){if(shouldStart(t,o)){const e=t.target;addEvt(o,"temp",[[e,"touchmove","move","notPassiveCapture"],[e,"touchcancel","end","passiveCapture"],[e,"touchend","end","passiveCapture"]]),o.start(t)}},start(e,s){!0===client.is.firefox&&preventDraggable(t,!0),o.lastEvt=e;const n=position(e);if(!0===s||!0===i.stop){if(!0!==o.direction.all&&(!0!==s||!0!==o.modifiers.mouseAllDir&&!0!==o.modifiers.mousealldir)){const t=e.type.indexOf("mouse")>-1?new MouseEvent(e.type,e):new TouchEvent(e.type,e);!0===e.defaultPrevented&&prevent(t),!0===e.cancelBubble&&stop(t),t.qClonedBy=void 0===e.qClonedBy?[o.uid]:e.qClonedBy.concat(o.uid),t.qKeyEvent=e.qKeyEvent,t.qClickOutside=e.qClickOutside,o.initialEvent={target:e.target,event:t}}stop(e)}o.event={x:n.left,y:n.top,time:Date.now(),mouse:!0===s,detected:!1,isFirst:!0,isFinal:!1,lastX:n.left,lastY:n.top}},move(t){if(void 0===o.event)return;o.lastEvt=t;const e=!0===o.event.mouse,i=()=>{let i;s(t,e),!0!==o.modifiers.preserveCursor&&!0!==o.modifiers.preservecursor&&(i=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),!0===e&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),clearSelection(),o.styleCleanup=(t=>{if(o.styleCleanup=void 0,void 0!==i&&(document.documentElement.style.cursor=i),document.body.classList.remove("non-selectable"),!0===e){const e=()=>{document.body.classList.remove("no-pointer-events--children")};void 0!==t?setTimeout(()=>{e(),t()},50):e()}else void 0!==t&&t()})};if(!0===o.event.detected){!0!==o.event.isFirst&&s(t,o.event.mouse);const{payload:e,synthetic:n}=getChanges(t,o,!1);return void(void 0!==e&&(!1===o.handler(e)?o.end(t):(void 0===o.styleCleanup&&!0===o.event.isFirst&&i(),o.event.lastX=e.position.left,o.event.lastY=e.position.top,o.event.lastDir=!0===n?void 0:e.direction,o.event.isFirst=!1)))}if(!0===o.direction.all||!0===e&&(!0===o.modifiers.mouseAllDir||!0===o.modifiers.mousealldir))return i(),o.event.detected=!0,void o.move(t);const n=position(t),r=n.left-o.event.x,a=n.top-o.event.y,l=Math.abs(r),h=Math.abs(a);l!==h&&(!0===o.direction.horizontal&&l>h||!0===o.direction.vertical&&l<h||!0===o.direction.up&&l<h&&a<0||!0===o.direction.down&&l<h&&a>0||!0===o.direction.left&&l>h&&r<0||!0===o.direction.right&&l>h&&r>0?(o.event.detected=!0,o.move(t)):o.end(t,!0))},end(e,i){if(void 0!==o.event){if(cleanEvt(o,"temp"),!0===client.is.firefox&&preventDraggable(t,!1),!0===i)void 0!==o.styleCleanup&&o.styleCleanup(),!0!==o.event.detected&&void 0!==o.initialEvent&&o.initialEvent.target.dispatchEvent(o.initialEvent.event);else if(!0===o.event.detected){!0===o.event.isFirst&&o.handler(getChanges(void 0===e?o.lastEvt:e,o).payload);const{payload:t}=getChanges(void 0===e?o.lastEvt:e,o,!0),i=()=>{o.handler(t)};void 0!==o.styleCleanup?o.styleCleanup(i):i()}o.event=void 0,o.initialEvent=void 0,o.lastEvt=void 0}}};t.__qtouchpan=o,!0===i.mouse&&addEvt(o,"main",[[t,"mousedown","mouseStart",`passive${!0===i.mouseCapture||!0===i.mousecapture?"Capture":""}`]]),!0===client.has.touch&&addEvt(o,"main",[[t,"touchstart","touchStart",`passive${!0===i.capture?"Capture":""}`],[t,"touchmove","noop","notPassiveCapture"]])},update(t,{oldValue:e,value:i}){const s=t.__qtouchpan;void 0!==s&&e!==i&&("function"!=typeof i&&s.end(),s.handler=i)},unbind(t){void 0===t.__qtouchpan_destroyed?destroy$2(t):delete t.__qtouchpan_destroyed}};const markerPrefixClass="q-slider__marker-labels",defaultMarkerConvertFn=t=>({value:t}),keyCodes=[34,37,40,33,39,38],SliderMixin={mixins:[DarkMixin,FormMixin],directives:{TouchPan:TouchPan},props:{min:{type:Number,default:0},max:{type:Number,default:100},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:t=>t>=0},snap:Boolean,vertical:Boolean,reverse:Boolean,hideSelection:Boolean,color:String,markerLabelsClass:String,label:Boolean,labelColor:String,labelTextColor:String,labelAlways:Boolean,switchLabelSide:Boolean,markers:[Boolean,Number],markerLabels:[Boolean,Array,Object,Function],switchMarkerLabelsSide:Boolean,trackImg:String,trackColor:String,innerTrackImg:String,innerTrackColor:String,selectionColor:String,selectionImg:String,thumbSize:{type:String,default:"20px"},trackSize:{type:String,default:"4px"},disable:Boolean,readonly:Boolean,dense:Boolean,tabindex:[String,Number],thumbColor:String,thumbPath:{type:String,default:"M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"}},data:()=>({active:!1,preventFocus:!1,focus:!1,dragging:!1}),computed:{axis(){return!0===this.vertical?"--v":"--h"},labelSide(){return"-"+(!0===this.switchLabelSide?"switched":"standard")},isReversed(){return!0===this.vertical?!0===this.reverse:this.reverse!==(!0===this.$q.lang.rtl)},computedInnerMin(){return this.__getInnerMin(this.innerMin)},computedInnerMax(){return this.__getInnerMax(this.innerMax)},editable(){return!0!==this.disable&&!0!==this.readonly&&this.computedInnerMin<this.computedInnerMax},computedDecimals(){return(String(this.step).trim("0").split(".")[1]||"").length},computedStep(){return 0===this.step?1:this.step},computedTabindex(){return!0===this.editable?this.tabindex||0:-1},trackLen(){return this.max-this.min},innerBarLen(){return this.computedInnerMax-this.computedInnerMin},innerMinRatio(){return this.__convertModelToRatio(this.computedInnerMin)},innerMaxRatio(){return this.__convertModelToRatio(this.computedInnerMax)},positionProp(){return!0===this.vertical?!0===this.isReversed?"bottom":"top":!0===this.isReversed?"right":"left"},sizeProp(){return!0===this.vertical?"height":"width"},thicknessProp(){return!0===this.vertical?"width":"height"},orientation(){return!0===this.vertical?"vertical":"horizontal"},attributes(){const t={role:"slider","aria-valuemin":this.computedInnerMin,"aria-valuemax":this.computedInnerMax,"aria-orientation":this.orientation,"data-step":this.step};return!0===this.disable?t["aria-disabled"]="true":!0===this.readonly&&(t["aria-readonly"]="true"),t},classes(){return`q-slider q-slider${this.axis} q-slider--${!0===this.active?"":"in"}active inline no-wrap `+(!0===this.vertical?"row":"column")+(!0===this.disable?" disabled":" q-slider--enabled"+(!0===this.editable?" q-slider--editable":""))+("both"===this.focus?" q-slider--focus":"")+(this.label||!0===this.labelAlways?" q-slider--label":"")+(!0===this.labelAlways?" q-slider--label-always":"")+(!0===this.isDark?" q-slider--dark":"")+(!0===this.dense?" q-slider--dense q-slider--dense"+this.axis:"")},selectionBarClass(){const t=this.selectionColor||this.color;return"q-slider__selection absolute"+(void 0!==t?` text-${t}`:"")},markerClass(){return this.__getAxisClass("markers")+" absolute overflow-hidden"},trackContainerClass(){return this.__getAxisClass("track-container")},pinClass(){return this.__getPositionClass("pin")},labelClass(){return this.__getPositionClass("label")},textContainerClass(){return this.__getPositionClass("text-container")},markerLabelsContainerClass(){return this.__getPositionClass("marker-labels-container")+(void 0!==this.markerLabelsClass?` ${this.markerLabelsClass}`:"")},trackClass(){return"q-slider__track relative-position no-outline"+(void 0!==this.trackColor?` bg-${this.trackColor}`:"")},trackStyle(){const t={[this.thicknessProp]:this.trackSize};return void 0!==this.trackImg&&(t.backgroundImage=`url(${this.trackImg}) !important`),t},innerBarClass(){return"q-slider__inner absolute"+(void 0!==this.innerTrackColor?` bg-${this.innerTrackColor}`:"")},innerBarStyle(){const t={[this.positionProp]:`${100*this.innerMinRatio}%`,[this.sizeProp]:`${100*(this.innerMaxRatio-this.innerMinRatio)}%`};return void 0!==this.innerTrackImg&&(t.backgroundImage=`url(${this.innerTrackImg}) !important`),t},markerStep(){return!0===isNumber(this.markers)?this.markers:this.computedStep},markerTicks(){const t=[],e=this.markerStep;let i=this.min;do{t.push(i),i+=e}while(i<this.max);return t.push(this.max),t},markerLabelClass(){const t=` ${markerPrefixClass}${this.axis}-`;return markerPrefixClass+`${t}${!0===this.switchMarkerLabelsSide?"switched":"standard"}`+`${t}${!0===this.isReversed?"rtl":"ltr"}`},markerLabelsList(){return!1===this.markerLabels?null:this.__getMarkerList(this.markerLabels).map((t,e)=>({index:e,value:t.value,label:t.label||t.value,classes:this.markerLabelClass+(void 0!==t.classes?" "+t.classes:""),style:{...this.__getMarkerLabelStyle(t.value),...t.style||{}}}))},markerScope(){return{markerList:this.markerLabelsList,markerMap:this.markerLabelsMap,classes:this.markerLabelClass,getStyle:this.__getMarkerLabelStyle}},markerStyle(){if(0!==this.innerBarLen){const t=100*this.markerStep/this.innerBarLen;return{...this.innerBarStyle,backgroundSize:!0===this.vertical?`2px ${t}%`:`${t}% 2px`}}return null},markerLabelsMap(){if(!1===this.markerLabels)return null;const t={};return this.markerLabelsList.forEach(e=>{t[e.value]=e}),t},panDirectives(){return!0===this.editable?[{name:"touch-pan",value:this.__onPan,modifiers:{[this.orientation]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}}]:null}},methods:{__getInnerMin(t){return!0===isNaN(t)||this.innerMin<this.min?this.min:this.innerMin},__getInnerMax(t){return!0===isNaN(t)||t>this.max?this.max:this.innerMax},__getPositionClass(t){const e="q-slider__"+t;return`${e} ${e}${this.axis} ${e}${this.axis}${this.labelSide}`},__getAxisClass(t){const e="q-slider__"+t;return`${e} ${e}${this.axis}`},__convertRatioToModel(t){let e=this.min+t*(this.max-this.min);if(this.step>0){const t=(e-this.min)%this.step;e+=(Math.abs(t)>=this.step/2?(t<0?-1:1)*this.step:0)-t}return this.computedDecimals>0&&(e=parseFloat(e.toFixed(this.computedDecimals))),between(e,this.computedInnerMin,this.computedInnerMax)},__convertModelToRatio(t){return 0===this.trackLen?0:(t-this.min)/this.trackLen},__getDraggingRatio(t,e){const i=position(t),s=!0===this.vertical?between((i.top-e.top)/e.height,0,1):between((i.left-e.left)/e.width,0,1);return between(!0===this.isReversed?1-s:s,this.innerMinRatio,this.innerMaxRatio)},__getMarkerList(t){if(!1===t)return null;if(!0===t)return this.markerTicks.map(defaultMarkerConvertFn);if("function"==typeof t)return this.markerTicks.map(e=>{const i=t(e);return!0===isObject(i)?{...i,value:e}:{value:e,label:i}});const e=({value:t})=>t>=this.min&&t<=this.max;return!0===Array.isArray(t)?t.map(t=>!0===isObject(t)?t:{value:t}).filter(e):Object.keys(t).map(e=>{const i=t[e],s=Number(e);return!0===isObject(i)?{...i,value:s}:{value:s,label:i}}).filter(e)},__getMarkerLabelStyle(t){return{[this.positionProp]:`${100*(t-this.min)/this.trackLen}%`}},__getMarkerLabelsContent(t){if(void 0!==this.$scopedSlots["marker-label-group"])return this.$scopedSlots["marker-label-group"](this.markerScope);const e=this.$scopedSlots["marker-label"];return void 0!==e?this.markerLabelsList.map(t=>e({marker:t,...this.markerScope})):this.markerLabelsList.map(e=>t("div",{key:e.value,style:e.style,class:e.classes},e.label))},__onPan(t){!0===t.isFinal?(void 0!==this.dragging&&(this.__updatePosition(t.evt),!0===t.touch&&this.__updateValue(!0),this.dragging=void 0,this.$emit("pan","end")),this.active=!1,this.focus=!1):!0===t.isFirst?(this.dragging=this.__getDragging(t.evt),this.__updatePosition(t.evt),this.__updateValue(),this.active=!0,this.$emit("pan","start")):(this.__updatePosition(t.evt),this.__updateValue())},__onBlur(){this.focus=!1},__onActivate(t){this.__updatePosition(t,this.__getDragging(t)),this.__updateValue(),this.preventFocus=!0,this.active=!0,document.addEventListener("mouseup",this.__onDeactivate,!0)},__onDeactivate(){this.preventFocus=!1,this.active=!1,this.__updateValue(!0),this.__onBlur(),document.removeEventListener("mouseup",this.__onDeactivate,!0)},__onMobileClick(t){this.__updatePosition(t,this.__getDragging(t)),this.__updateValue(!0)},__onKeyup(t){keyCodes.includes(t.keyCode)&&this.__updateValue(!0)},__getTextContainerStyle(t){if(!0===this.vertical)return null;const e=this.$q.lang.rtl!==this.reverse?1-t:t;return{transform:`translateX(calc(${2*e-1} * ${this.thumbSize} / 2 + ${50-100*e}%))`}},__getThumb(t,e){const i=[t("svg",{class:"q-slider__thumb-shape absolute-full",attrs:{viewBox:"0 0 20 20","aria-hidden":"true"}},[t("path",{attrs:{d:this.thumbPath}})]),t("div",{class:"q-slider__focus-ring fit"})];return!0!==this.label&&!0!==this.labelAlways||(i.push(t("div",{class:this.pinClass+" absolute fit no-pointer-events"+e.pinColor},[t("div",{class:this.labelClass,style:{minWidth:this.thumbSize}},[t("div",{class:this.textContainerClass,style:e.textContainerStyle},[t("span",{class:e.textClass},e.label)])])])),void 0!==this.name&&!0!==this.disable&&this.__injectFormInput(i,"push")),t("div",{class:e.classes,style:e.style,...e.nodeData},i)},__getContent(t,e){const i=[];"transparent"!==this.innerTrackColor&&i.push(t("div",{key:"inner",class:this.innerBarClass,style:this.innerBarStyle})),"transparent"!==this.selectionColor&&i.push(t("div",{key:"selection",class:this.selectionBarClass,style:this.selectionBarStyle})),!1!==this.markers&&i.push(t("div",{key:"marker",class:this.markerClass,style:this.markerStyle})),e(i);const s=[t("div",{key:"trackC",class:this.trackContainerClass,attrs:this.trackContainerAttrs,on:this.trackContainerEvents,directives:this.panDirectives},[t("div",{class:this.trackClass,style:this.trackStyle},i)])];if(!1!==this.markerLabels){s[!0===this.switchMarkerLabelsSide?"unshift":"push"](t("div",{key:"markerL",class:this.markerLabelsContainerClass},this.__getMarkerLabelsContent(t)))}return s}},beforeDestroy(){document.removeEventListener("mouseup",this.__onDeactivate,!0)}};var QSlider=Vue.extend({name:"QSlider",mixins:[SliderMixin],props:{value:{required:!0,default:null,validator:t=>"number"==typeof t||null===t},labelValue:[String,Number]},data(){const t=this.__getInnerMin(this.innerMin),e=this.__getInnerMax(this.innerMax);return{model:null===this.value?t:between(this.value,t,e),curRatio:0}},computed:{modelRatio(){return this.__convertModelToRatio(this.model)},ratio(){return!0===this.active?this.curRatio:this.modelRatio},selectionBarStyle(){const t={[this.positionProp]:`${100*this.innerMinRatio}%`,[this.sizeProp]:`${100*(this.ratio-this.innerMinRatio)}%`};return void 0!==this.selectionImg&&(t.backgroundImage=`url(${this.selectionImg}) !important`),t},thumbLabel(){return void 0!==this.labelValue?this.labelValue:this.model},thumbClasses(){const t=this.thumbColor||this.color;return`q-slider__thumb q-slider__thumb${this.axis} q-slider__thumb${this.axis}-${!0===this.isReversed?"rtl":"ltr"} absolute non-selectable`+(!1===this.preventFocus&&!0===this.focus?" q-slider--focus":"")+(void 0!==t?` text-${t}`:"")},thumbStyle(){return{width:this.thumbSize,height:this.thumbSize,[this.positionProp]:`${100*this.ratio}%`}},thumbPinColor(){return void 0!==this.labelColor?` text-${this.labelColor}`:""},thumbTextContainerStyle(){return this.__getTextContainerStyle(this.ratio)},thumbTextClass(){return"q-slider__text"+(void 0!==this.labelTextColor?` text-${this.labelTextColor}`:"")},trackContainerEvents(){return!0!==this.editable?{}:!0===this.$q.platform.is.mobile?{click:this.__onMobileClick}:{mousedown:this.__onActivate,focus:this.__onFocus,blur:this.__onBlur,keydown:this.__onKeydown,keyup:this.__onKeyup}},trackContainerAttrs(){return{tabindex:!0!==this.$q.platform.is.mobile?this.computedTabindex:null}},modelUpdate(){return`${this.value}|${this.computedInnerMin}|${this.computedInnerMax}`}},watch:{modelUpdate(){this.model=null===this.value?this.computedInnerMin:between(this.value,this.computedInnerMin,this.computedInnerMax)}},methods:{__updateValue(t){this.model!==this.value&&this.$emit("input",this.model),!0===t&&this.$emit("change",this.model)},__getDragging(){return this.$el.getBoundingClientRect()},__updatePosition(t,e=this.dragging){const i=this.__getDraggingRatio(t,e);this.model=this.__convertRatioToModel(i),this.curRatio=!0!==this.snap||0===this.computedStep?i:this.__convertModelToRatio(this.model)},__onFocus(){this.focus=!0},__onKeydown(t){if(!keyCodes.includes(t.keyCode))return;stopAndPrevent(t);const e=([34,33].includes(t.keyCode)?10:1)*this.computedStep,i=([34,37,40].includes(t.keyCode)?-1:1)*(!0===this.isReversed?-1:1)*(!0===this.vertical?-1:1)*e;this.model=between(parseFloat((this.model+i).toFixed(this.computedDecimals)),this.computedInnerMin,this.computedInnerMax),this.__updateValue()}},render(t){const e=this.__getContent(t,e=>{e.push(this.__getThumb(t,{pinColor:this.thumbPinColor,textContainerStyle:this.thumbTextContainerStyle,textClass:this.thumbTextClass,label:this.thumbLabel,classes:this.thumbClasses,style:this.thumbStyle,nodeData:{}}))});return t("div",{class:this.classes+(null===this.value?" q-slider--no-value":""),attrs:{...this.attributes,"aria-valuenow":this.value}},e)}}),CanRenderMixin={data:()=>({canRender:!onSSR}),mounted(){!1===this.canRender&&(this.canRender=!0)}},QResizeObserver=Vue.extend({name:"QResizeObserver",mixins:[CanRenderMixin],props:{debounce:{type:[String,Number],default:100}},data(){return!0===this.hasObserver?{}:{url:!0===this.$q.platform.is.ie?null:"about:blank"}},methods:{trigger(t){!0===t||0===this.debounce||"0"===this.debounce?this.__emit():null===this.timer&&(this.timer=setTimeout(this.__emit,this.debounce))},__emit(){if(null!==this.timer&&(clearTimeout(this.timer),this.timer=null),!this.$el||!this.$el.parentNode)return;const t=this.$el.parentNode,e={width:t.offsetWidth,height:t.offsetHeight};e.width===this.size.width&&e.height===this.size.height||(this.size=e,this.$emit("resize",this.size))},__cleanup(){void 0!==this.curDocView&&(void 0!==this.curDocView.removeEventListener&&this.curDocView.removeEventListener("resize",this.trigger,listenOpts.passive),this.curDocView=void 0)},__onObjLoad(){this.__cleanup(),this.$el.contentDocument&&(this.curDocView=this.$el.contentDocument.defaultView,this.curDocView.addEventListener("resize",this.trigger,listenOpts.passive)),this.__emit()}},render(t){if(!1!==this.canRender&&!0!==this.hasObserver)return t("object",{style:this.style,attrs:{tabindex:-1,type:"text/html",data:this.url,"aria-hidden":"true"},on:cache(this,"load",{load:this.__onObjLoad})})},beforeCreate(){this.size={width:-1,height:-1},!0!==isSSR&&(this.hasObserver="undefined"!=typeof ResizeObserver,!0!==this.hasObserver&&(this.style=`${this.$q.platform.is.ie?"visibility:hidden;":""}display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;`))},mounted(){if(this.timer=null,!0===this.hasObserver)return this.observer=new ResizeObserver(this.trigger),this.observer.observe(this.$el.parentNode),void this.__emit();!0===this.$q.platform.is.ie?(this.url="about:blank",this.__emit()):this.__onObjLoad()},beforeDestroy(){clearTimeout(this.timer),!0!==this.hasObserver?this.__cleanup():void 0!==this.observer&&this.$el.parentNode&&this.observer.unobserve(this.$el.parentNode)}});function injectProp(t,e,i,s){return Object.defineProperty(t,e,{get:i,set:s,enumerable:!0}),t}function getIndicatorClass(t,e,i){const s=!0===i?["left","right"]:["top","bottom"];return`absolute-${!0===e?s[0]:s[1]}${t?` text-${t}`:""}`}const alignValues$1=["left","center","right","justify"],getDefaultBestScore=()=>({matchedLen:0,queryDiff:9999,hrefLen:0,exact:!1,redirected:!0});function hasQueryIncluded(t,e){for(const i in t)if(t[i]!==e[i])return!1;return!0}var QTabs=Vue.extend({name:"QTabs",mixins:[TimeoutMixin,ListenersMixin],provide(){return{$tabs:this}},props:{value:[Number,String],align:{type:String,default:"center",validator:t=>alignValues$1.includes(t)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String},data(){return{scrollable:!1,leftArrow:!0,rightArrow:!1,justify:!1,tabNameList:[],currentModel:this.value,hasFocus:!1,avoidRouteWatcher:!1}},watch:{isRTL(){this.__localUpdateArrows()},value(t){this.__updateModel({name:t,setCurrent:!0,skipEmit:!0})},outsideArrows(){this.__recalculateScroll()},arrowsEnabled(t){this.__localUpdateArrows=!0===t?this.__updateArrowsFn:noop,this.__recalculateScroll()}},computed:{tabProps(){return{activeClass:this.activeClass,activeColor:this.activeColor,activeBgColor:this.activeBgColor,indicatorClass:getIndicatorClass(this.indicatorColor,this.switchIndicator,this.vertical),narrowIndicator:this.narrowIndicator,inlineLabel:this.inlineLabel,noCaps:this.noCaps}},hasActiveTab(){return this.tabNameList.some(t=>t.name===this.currentModel)},arrowsEnabled(){return!0===this.$q.platform.is.desktop||!0===this.mobileArrows},alignClass(){return`q-tabs__content--align-${!0===this.scrollable?"left":!0===this.justify?"justify":this.align}`},classes(){return"q-tabs row no-wrap items-center"+` q-tabs--${!0===this.scrollable?"":"not-"}scrollable`+` q-tabs--${!0===this.vertical?"vertical":"horizontal"}`+` q-tabs__arrows--${!0===this.arrowsEnabled&&!0===this.outsideArrows?"outside":"inside"}`+(!0===this.dense?" q-tabs--dense":"")+(!0===this.shrink?" col-shrink":"")+(!0===this.stretch?" self-stretch":"")},innerClass(){return"q-tabs__content row no-wrap items-center self-stretch hide-scrollbar relative-position "+this.alignClass+(void 0!==this.contentClass?` ${this.contentClass}`:"")+(!0===this.$q.platform.is.mobile?" scroll":"")},domProps(){return!0===this.vertical?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"}},isRTL(){return!0!==this.vertical&&!0===this.$q.lang.rtl},rtlPosCorrection(){return!1===rtlHasScrollBug()&&!0===this.isRTL},posFn(){return!0===this.rtlPosCorrection?{get:t=>Math.abs(t.scrollLeft),set:(t,e)=>{t.scrollLeft=-e}}:!0===this.vertical?{get:t=>t.scrollTop,set:(t,e)=>{t.scrollTop=e}}:{get:t=>t.scrollLeft,set:(t,e)=>{t.scrollLeft=e}}},onEvents(){return{input:stop,...this.qListeners,focusin:this.__onFocusin,focusout:this.__onFocusout}}},methods:{__updateModel({name:t,setCurrent:e,skipEmit:i}){this.currentModel!==t&&(!0!==i&&void 0!==this.qListeners.input&&this.$emit("input",t),!0!==e&&void 0!==this.qListeners.input||(this.__animate(this.currentModel,t),this.currentModel=t))},__recalculateScroll(){this.__registerScrollTick(()=>{this.__updateContainer({width:this.$el.offsetWidth,height:this.$el.offsetHeight})})},__updateContainer(t){if(void 0===this.domProps||!this.$refs.content)return;const e=t[this.domProps.container],i=Math.min(this.$refs.content[this.domProps.scroll],Array.prototype.reduce.call(this.$refs.content.children,(t,e)=>t+(e[this.domProps.content]||0),0)),s=e>0&&i>e;this.scrollable!==s&&(this.scrollable=s),!0===s&&this.__registerUpdateArrowsTick(this.__localUpdateArrows);const o=e<parseInt(this.breakpoint,10);this.justify!==o&&(this.justify=o)},__animate(t,e){const i=void 0!==t&&null!==t&&""!==t?this.tabVmList.find(e=>e.name===t):null,s=void 0!==e&&null!==e&&""!==e?this.tabVmList.find(t=>t.name===e):null;if(i&&s){const t=i.$refs.tabIndicator,e=s.$refs.tabIndicator;clearTimeout(this.animateTimer),t.style.transition="none",t.style.transform="none",e.style.transition="none",e.style.transform="none";const o=t.getBoundingClientRect(),n=e.getBoundingClientRect();e.style.transform=!0===this.vertical?`translate3d(0,${o.top-n.top}px,0) scale3d(1,${n.height?o.height/n.height:1},1)`:`translate3d(${o.left-n.left}px,0,0) scale3d(${n.width?o.width/n.width:1},1,1)`,this.__registerAnimateTick(()=>{this.animateTimer=setTimeout(()=>{e.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",e.style.transform="none"},70)})}s&&!0===this.scrollable&&this.__scrollToTabEl(s.$el)},__scrollToTabEl(t){const e=this.$refs.content,{left:i,width:s,top:o,height:n}=e.getBoundingClientRect(),r=t.getBoundingClientRect();let a=!0===this.vertical?r.top-o:r.left-i;if(a<0)return e[!0===this.vertical?"scrollTop":"scrollLeft"]+=Math.floor(a),void this.__localUpdateArrows();(a+=!0===this.vertical?r.height-n:r.width-s)>0&&(e[!0===this.vertical?"scrollTop":"scrollLeft"]+=Math.ceil(a),this.__localUpdateArrows())},__updateArrowsFn(){const t=this.$refs.content;if(null!==t){const e=t.getBoundingClientRect(),i=!0===this.vertical?t.scrollTop:Math.abs(t.scrollLeft);!0===this.isRTL?(this.leftArrow=Math.ceil(i+e.width)<t.scrollWidth-1,this.rightArrow=i>0):(this.leftArrow=i>0,this.rightArrow=!0===this.vertical?Math.ceil(i+e.height)<t.scrollHeight:Math.ceil(i+e.width)<t.scrollWidth)}},__animScrollTo(t){this.__stopAnimScroll(),this.scrollTimer=setInterval(()=>{!0===this.__scrollTowards(t)&&this.__stopAnimScroll()},5)},__scrollToStart(){this.__animScrollTo(!0===this.rtlPosCorrection?Number.MAX_SAFE_INTEGER:0)},__scrollToEnd(){this.__animScrollTo(!0===this.rtlPosCorrection?0:Number.MAX_SAFE_INTEGER)},__stopAnimScroll(){clearInterval(this.scrollTimer)},__onKbdNavigate(t,e){const i=Array.prototype.filter.call(this.$refs.content.children,t=>t===e||t.matches&&!0===t.matches(".q-tab.q-focusable")),s=i.length;if(0===s)return;if(36===t)return this.__scrollToTabEl(i[0]),i[0].focus(),!0;if(35===t)return this.__scrollToTabEl(i[s-1]),i[s-1].focus(),!0;const o=t===(!0===this.vertical?38:37),n=t===(!0===this.vertical?40:39),r=!0===o?-1:!0===n?1:void 0;if(void 0!==r){const t=!0===this.isRTL?-1:1,o=i.indexOf(e)+r*t;return o>=0&&o<s&&(this.__scrollToTabEl(i[o]),i[o].focus({preventScroll:!0})),!0}},__scrollTowards(t){const e=this.$refs.content,{get:i,set:s}=this.posFn;let o=!1,n=i(e);const r=t<n?-1:1;return(n+=5*r)<0?(o=!0,n=0):(-1===r&&n<=t||1===r&&n>=t)&&(o=!0,n=t),s(e,n),this.__localUpdateArrows(),o},__updateActiveRoute(){let t=null,e={matchedLen:0,queryDiff:9999,hrefLen:0,exact:!1,redirected:!0};const i=this.tabVmList.filter(t=>!0===t.hasRouterLink),s=i.length,{query:o}=this.$route,n=Object.keys(o).length;for(let r=0;r<s;r++){const s=i[r],a=!0===s.exact;if(!0!==s[!0===a?"linkIsExactActive":"linkIsActive"]||!0===e.exact&&!0!==a)continue;const{route:l,href:h}=s.resolvedLink,{matched:d,query:c,hash:u}=l,p=void 0!==l.redirectedFrom;if(!0===a){if(!1===p){t=s.name;break}!1===e.exact&&(e={matchedLen:0,queryDiff:9999,hrefLen:0,exact:!1,redirected:!0})}if(!1===e.redirected&&!0===p)continue;const m=Object.keys(c).length;if(!1===a&&0!==m&&!1===hasQueryIncluded(c,o))continue;const g={exact:a,redirected:p,matchedLen:d.length,queryDiff:!0===a?0:n-m,hrefLen:h.length-u.length};g.matchedLen>e.matchedLen?(t=s.name,e=g):g.matchedLen===e.matchedLen&&(g.queryDiff<e.queryDiff?(t=s.name,e=g):g.queryDiff===e.queryDiff&&g.hrefLen>e.hrefLen&&(t=s.name,e=g))}null===t&&!0===this.tabVmList.some(t=>void 0===t.hasRouterLink&&t.name===this.currentModel)||this.__updateModel({name:t,setCurrent:!0})},__onFocusin(t){if(this.__removeFocusTimeout(),!0!==this.hasFocus&&this.$el&&t.target&&"function"==typeof t.target.closest){const e=t.target.closest(".q-tab");e&&!0===this.$el.contains(e)&&(this.hasFocus=!0,!0===this.scrollable&&this.__scrollToTabEl(e))}void 0!==this.qListeners.focusin&&this.$emit("focusin",t)},__onFocusout(t){this.__registerFocusTimeout(()=>{this.hasFocus=!1},30),void 0!==this.qListeners.focusout&&this.$emit("focusout",t)},__verifyRouteModel(){!1===this.avoidRouteWatcher?this.__registerScrollToTabTimeout(this.__updateActiveRoute):this.__removeScrollToTabTimeout()},__watchRoute(){if(void 0===this.unwatchRoute){const t=this.$watch(()=>this.$route.fullPath,this.__verifyRouteModel);this.unwatchRoute=(()=>{t(),this.unwatchRoute=void 0})}},__registerTab(t){this.tabVmList.push(t),this.tabNameList.push(injectProp({},"name",()=>t.name)),this.__recalculateScroll(),void 0===t.hasRouterLink||void 0===this.$route?this.__registerScrollToTabTimeout(()=>{if(!0===this.scrollable){const t=this.currentModel,e=void 0!==t&&null!==t&&""!==t?this.tabVmList.find(e=>e.name===t):null;e&&this.__scrollToTabEl(e.$el)}}):(this.__watchRoute(),!0===t.hasRouterLink&&this.__verifyRouteModel())},__unregisterTab(t){const e=this.tabVmList.indexOf(t);this.tabVmList.splice(e,1),this.tabNameList.splice(e,1),this.__recalculateScroll(),void 0!==this.unwatchRoute&&void 0!==t.hasRouterLink&&(!0===this.tabVmList.every(t=>void 0===t.hasRouterLink)&&this.unwatchRoute(),this.__verifyRouteModel())},__cleanup(){clearTimeout(this.animateTimer),this.__stopAnimScroll(),void 0!==this.unwatchRoute&&this.unwatchRoute()}},created(){this.__useTick("__registerScrollTick"),this.__useTick("__registerUpdateArrowsTick"),this.__useTick("__registerAnimateTick"),this.__useTimeout("__registerFocusTimeout","__removeFocusTimeout"),this.__useTimeout("__registerScrollToTabTimeout","__removeScrollToTabTimeout"),Object.assign(this,{tabVmList:[],__localUpdateArrows:!0===this.arrowsEnabled?this.__updateArrowsFn:noop})},activated(){!0===this.hadRouteWatcher&&this.__watchRoute(),this.__recalculateScroll()},deactivated(){this.hadRouteWatcher=void 0!==this.unwatchRoute,this.__cleanup()},beforeDestroy(){this.__cleanup()},render(t){const e=[t(QResizeObserver,{on:cache(this,"resize",{resize:this.__updateContainer})}),t("div",{ref:"content",class:this.innerClass,on:!0===this.arrowsEnabled?cache(this,"scroll",{scroll:this.__updateArrowsFn}):void 0},slot(this,"default"))];return!0===this.arrowsEnabled&&e.push(t(QIcon,{class:"q-tabs__arrow q-tabs__arrow--start absolute q-tab__icon"+(!0===this.leftArrow?"":" q-tabs__arrow--faded"),props:{name:this.leftIcon||this.$q.iconSet.tabs[!0===this.vertical?"up":"left"]},on:cache(this,"onS",{"&mousedown":this.__scrollToStart,"&touchstart":this.__scrollToStart,"&mouseup":this.__stopAnimScroll,"&mouseleave":this.__stopAnimScroll,"&touchend":this.__stopAnimScroll})}),t(QIcon,{class:"q-tabs__arrow q-tabs__arrow--end absolute q-tab__icon"+(!0===this.rightArrow?"":" q-tabs__arrow--faded"),props:{name:this.rightIcon||this.$q.iconSet.tabs[!0===this.vertical?"down":"right"]},on:cache(this,"onE",{"&mousedown":this.__scrollToEnd,"&touchstart":this.__scrollToEnd,"&mouseup":this.__stopAnimScroll,"&mouseleave":this.__stopAnimScroll,"&touchend":this.__stopAnimScroll})})),t("div",{class:this.classes,on:this.onEvents,attrs:{role:"tablist"}},e)}});let id=0;var QTab=Vue.extend({name:"QTab",mixins:[RippleMixin,ListenersMixin],inject:{$tabs:{default(){console.error("QTab/QRouteTab components need to be child of QTabs")}}},props:{icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>`t_${id++}`},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String},computed:{isActive(){return this.$tabs.currentModel===this.name},classes(){return"q-tab relative-position self-stretch flex flex-center text-center"+(!0===this.isActive?" q-tab--active"+(this.$tabs.tabProps.activeClass?" "+this.$tabs.tabProps.activeClass:"")+(this.$tabs.tabProps.activeColor?` text-${this.$tabs.tabProps.activeColor}`:"")+(this.$tabs.tabProps.activeBgColor?` bg-${this.$tabs.tabProps.activeBgColor}`:""):" q-tab--inactive")+(this.icon&&this.label&&!1===this.$tabs.tabProps.inlineLabel?" q-tab--full":"")+(!0===this.noCaps||!0===this.$tabs.tabProps.noCaps?" q-tab--no-caps":"")+(!0===this.disable?" disabled":" q-focusable q-hoverable cursor-pointer")+(void 0!==this.hasRouterLinkProps?this.linkClass:"")},innerClass(){return"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(!0===this.$tabs.tabProps.inlineLabel?"row no-wrap q-tab__content--inline":"column")+(void 0!==this.contentClass?` ${this.contentClass}`:"")},computedTabIndex(){return!0===this.disable||!0===this.$tabs.hasFocus||!1===this.isActive&&!0===this.$tabs.hasActiveTab?-1:this.tabindex||0},computedRipple(){return!1!==this.ripple&&Object.assign({keyCodes:[13,32],early:!0},!0===this.ripple?{}:this.ripple)},onEvents(){return{input:stop,...this.qListeners,click:this.__onClick,keydown:this.__onKeydown}},attrs(){const t={...this.linkAttrs,tabindex:this.computedTabIndex,role:"tab","aria-selected":!0===this.isActive?"true":"false"};return!0===this.disable&&(t["aria-disabled"]="true"),t}},methods:{__onClick(t,e){if(!0!==e&&void 0!==this.$refs.blurTarget&&this.$refs.blurTarget.focus({preventScroll:!0}),!0!==this.disable){if(void 0===this.hasRouterLinkProps)return this.$tabs.__updateModel({name:this.name}),void(void 0!==this.qListeners.click&&this.$emit("click",t));if(!0===this.hasRouterLink){const e=(e,i,s)=>{const{to:o,replace:n,append:r,returnRouterError:a}=!1===t.navigate?{to:e,replace:i,append:s}:e||{};let l;const h=void 0===o||r===this.append&&!0===isDeepEqual(o,this.to)?this.$tabs.avoidRouteWatcher=uid():null;return this.__navigateToRouterLink(t,{to:o,replace:n,append:r,returnRouterError:!0}).catch(t=>{l=t}).then(t=>(h===this.$tabs.avoidRouteWatcher&&(this.$tabs.avoidRouteWatcher=!1,void 0!==l&&!0!==l.message.startsWith("Avoided redundant navigation")||this.$tabs.__updateModel({name:this.name})),void 0!==l&&!0===a?Promise.reject(l):t))};return void 0!==this.qListeners.click&&this.$emit("click",t,e),!1===t.navigate&&t.preventDefault(),void(!0!==t.defaultPrevented&&e())}void 0!==this.qListeners.click&&this.$emit("click",t)}else!0===this.hasRouterLink&&stopAndPrevent(t)},__onKeydown(t){isKeyCode(t,[13,32])?this.__onClick(t,!0):!0!==shouldIgnoreKey(t)&&t.keyCode>=35&&t.keyCode<=40&&!0!==t.altKey&&!0!==t.metaKey&&!0===this.$tabs.__onKbdNavigate(t.keyCode,this.$el)&&stopAndPrevent(t),void 0!==this.qListeners.keydown&&this.$emit("keydown",t)},__getContent(t){const e=this.$tabs.tabProps.narrowIndicator,i=[],s=t("div",{ref:"tabIndicator",staticClass:"q-tab__indicator",class:this.$tabs.tabProps.indicatorClass});void 0!==this.icon&&i.push(t(QIcon,{staticClass:"q-tab__icon",props:{name:this.icon}})),void 0!==this.label&&i.push(t("div",{staticClass:"q-tab__label"},[this.label])),!1!==this.alert&&i.push(void 0!==this.alertIcon?t(QIcon,{staticClass:"q-tab__alert-icon",props:{color:!0!==this.alert?this.alert:void 0,name:this.alertIcon}}):t("div",{staticClass:"q-tab__alert",class:!0!==this.alert?`text-${this.alert}`:null})),!0===e&&i.push(s);const o=[t("div",{staticClass:"q-focus-helper",attrs:{tabindex:-1},ref:"blurTarget"}),t("div",{class:this.innerClass},mergeSlot(i,this,"default"))];return!1===e&&o.push(s),o},__renderTab(t,e){return t(e,{class:this.classes,attrs:this.attrs,on:this.onEvents,directives:!1===this.ripple||!0===this.disable?null:[{name:"ripple",value:this.computedRipple}]},this.__getContent(t))}},mounted(){this.$tabs.__registerTab(this)},beforeDestroy(){this.$tabs.__unregisterTab(this)},render(t){return this.__renderTab(t,"div")}}),QTabPanels=Vue.extend({name:"QTabPanels",mixins:[DarkMixin,PanelParentMixin],computed:{classes(){return"q-tab-panels q-panel-parent"+(!0===this.isDark?" q-tab-panels--dark q-dark":"")}},methods:{__renderPanels(t){return t("div",{class:this.classes,directives:this.panelDirectives,on:{...this.qListeners}},this.__getPanelContent(t))}}});const attrs$2={role:"tabpanel"};var QTabPanel=Vue.extend({name:"QTabPanel",mixins:[PanelChildMixin],render(t){return t("div",{staticClass:"q-tab-panel",attrs:attrs$2,on:{...this.qListeners}},slot(this,"default"))}});const palette=["rgb(255,204,204)","rgb(255,230,204)","rgb(255,255,204)","rgb(204,255,204)","rgb(204,255,230)","rgb(204,255,255)","rgb(204,230,255)","rgb(204,204,255)","rgb(230,204,255)","rgb(255,204,255)","rgb(255,153,153)","rgb(255,204,153)","rgb(255,255,153)","rgb(153,255,153)","rgb(153,255,204)","rgb(153,255,255)","rgb(153,204,255)","rgb(153,153,255)","rgb(204,153,255)","rgb(255,153,255)","rgb(255,102,102)","rgb(255,179,102)","rgb(255,255,102)","rgb(102,255,102)","rgb(102,255,179)","rgb(102,255,255)","rgb(102,179,255)","rgb(102,102,255)","rgb(179,102,255)","rgb(255,102,255)","rgb(255,51,51)","rgb(255,153,51)","rgb(255,255,51)","rgb(51,255,51)","rgb(51,255,153)","rgb(51,255,255)","rgb(51,153,255)","rgb(51,51,255)","rgb(153,51,255)","rgb(255,51,255)","rgb(255,0,0)","rgb(255,128,0)","rgb(255,255,0)","rgb(0,255,0)","rgb(0,255,128)","rgb(0,255,255)","rgb(0,128,255)","rgb(0,0,255)","rgb(128,0,255)","rgb(255,0,255)","rgb(245,0,0)","rgb(245,123,0)","rgb(245,245,0)","rgb(0,245,0)","rgb(0,245,123)","rgb(0,245,245)","rgb(0,123,245)","rgb(0,0,245)","rgb(123,0,245)","rgb(245,0,245)","rgb(214,0,0)","rgb(214,108,0)","rgb(214,214,0)","rgb(0,214,0)","rgb(0,214,108)","rgb(0,214,214)","rgb(0,108,214)","rgb(0,0,214)","rgb(108,0,214)","rgb(214,0,214)","rgb(163,0,0)","rgb(163,82,0)","rgb(163,163,0)","rgb(0,163,0)","rgb(0,163,82)","rgb(0,163,163)","rgb(0,82,163)","rgb(0,0,163)","rgb(82,0,163)","rgb(163,0,163)","rgb(92,0,0)","rgb(92,46,0)","rgb(92,92,0)","rgb(0,92,0)","rgb(0,92,46)","rgb(0,92,92)","rgb(0,46,92)","rgb(0,0,92)","rgb(46,0,92)","rgb(92,0,92)","rgb(255,255,255)","rgb(205,205,205)","rgb(178,178,178)","rgb(153,153,153)","rgb(127,127,127)","rgb(102,102,102)","rgb(76,76,76)","rgb(51,51,51)","rgb(25,25,25)","rgb(0,0,0)"],thumbPath="M5 5 h10 v10 h-10 v-10 z",alphaTrackImg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAH0lEQVQoU2NkYGAwZkAFZ5G5jPRRgOYEVDeB3EBjBQBOZwTVugIGyAAAAABJRU5ErkJggg==";var QColor=Vue.extend({name:"QColor",mixins:[ListenersMixin,DarkMixin,FormMixin],directives:{TouchPan:TouchPan},props:{value:String,defaultValue:String,defaultView:{type:String,default:"spectrum",validator:t=>["spectrum","tune","palette"].includes(t)},formatModel:{type:String,default:"auto",validator:t=>["auto","hex","rgb","hexa","rgba"].includes(t)},palette:Array,noHeader:Boolean,noHeaderTabs:Boolean,noFooter:Boolean,square:Boolean,flat:Boolean,bordered:Boolean,disable:Boolean,readonly:Boolean},data(){return{topView:"auto"===this.formatModel?void 0===this.value||null===this.value||""===this.value||this.value.startsWith("#")?"hex":"rgb":this.formatModel.startsWith("hex")?"hex":"rgb",view:this.defaultView,model:this.__parseModel(this.value||this.defaultValue)}},watch:{value(t){const e=this.__parseModel(t||this.defaultValue);e.hex!==this.model.hex&&(this.model=e)},defaultValue(t){if(!this.value&&t){const e=this.__parseModel(t);e.hex!==this.model.hex&&(this.model=e)}}},computed:{editable(){return!0!==this.disable&&!0!==this.readonly},forceHex(){return"auto"===this.formatModel?null:this.formatModel.indexOf("hex")>-1},forceAlpha(){return"auto"===this.formatModel?null:this.formatModel.indexOf("a")>-1},isHex(){return void 0===this.value||null===this.value||""===this.value||this.value.startsWith("#")},isOutputHex(){return null!==this.forceHex?this.forceHex:this.isHex},formAttrs(){return{type:"hidden",name:this.name,value:this.model[!0===this.isOutputHex?"hex":"rgb"]}},hasAlpha(){return null!==this.forceAlpha?this.forceAlpha:void 0!==this.model.a},currentBgColor(){return{backgroundColor:this.model.rgb||"#000"}},headerClass(){return`q-color-picker__header-content--${void 0!==this.model.a&&this.model.a<65||luminosity(this.model)>.4?"light":"dark"}`},spectrumStyle(){return{background:`hsl(${this.model.h},100%,50%)`}},spectrumPointerStyle(){return{top:`${100-this.model.v}%`,[!0===this.$q.lang.rtl?"right":"left"]:`${this.model.s}%`}},computedPalette(){return void 0!==this.palette&&this.palette.length>0?this.palette:palette},classes(){return"q-color-picker"+(!0===this.bordered?" q-color-picker--bordered":"")+(!0===this.square?" q-color-picker--square no-border-radius":"")+(!0===this.flat?" q-color-picker--flat no-shadow":"")+(!0===this.disable?" disabled":"")+(!0===this.isDark?" q-color-picker--dark q-dark":"")},attrs(){return!0===this.disable?{"aria-disabled":"true"}:!0===this.readonly?{"aria-readonly":"true"}:void 0}},created(){this.__spectrumChange=throttle(this.__spectrumChange,20)},render(t){const e=[this.__getContent(t)];return void 0!==this.name&&!0!==this.disable&&this.__injectFormInput(e,"push"),!0!==this.noHeader&&e.unshift(this.__getHeader(t)),!0!==this.noFooter&&e.push(this.__getFooter(t)),t("div",{class:this.classes,attrs:this.attrs,on:{...this.qListeners}},e)},methods:{__getHeader(t){const e=[];return!0!==this.noHeaderTabs&&e.push(t(QTabs,{class:"q-color-picker__header-tabs",props:{value:this.topView,dense:!0,align:"justify"},on:cache(this,"topVTab",{input:t=>{this.topView=t}})},[t(QTab,{props:{label:"HEX"+(!0===this.hasAlpha?"A":""),name:"hex",ripple:!1}}),t(QTab,{props:{label:"RGB"+(!0===this.hasAlpha?"A":""),name:"rgb",ripple:!1}})])),e.push(t("div",{staticClass:"q-color-picker__header-banner row flex-center no-wrap"},[t("input",{staticClass:"fit",domProps:{value:this.model[this.topView]},attrs:!0!==this.editable?{readonly:!0}:null,on:cache(this,"topIn",{input:t=>{this.__updateErrorIcon(!0===this.__onEditorChange(t))},change:stop,blur:t=>{!0===this.__onEditorChange(t,!0)&&this.$forceUpdate(),this.__updateErrorIcon(!1)}})}),t(QIcon,{ref:"errorIcon",staticClass:"q-color-picker__error-icon absolute no-pointer-events",props:{name:this.$q.iconSet.type.negative}})])),t("div",{staticClass:"q-color-picker__header relative-position overflow-hidden"},[t("div",{staticClass:"q-color-picker__header-bg absolute-full"}),t("div",{staticClass:"q-color-picker__header-content",class:this.headerClass,style:this.currentBgColor},e)])},__getContent(t){return t(QTabPanels,{props:{value:this.view,animated:!0}},[t(QTabPanel,{staticClass:"q-color-picker__spectrum-tab overflow-hidden",props:{name:"spectrum"}},this.__getSpectrumTab(t)),t(QTabPanel,{staticClass:"q-pa-md q-color-picker__tune-tab",props:{name:"tune"}},this.__getTuneTab(t)),t(QTabPanel,{staticClass:"q-color-picker__palette-tab",props:{name:"palette"}},this.__getPaletteTab(t))])},__getFooter(t){return t("div",{staticClass:"q-color-picker__footer relative-position overflow-hidden"},[t(QTabs,{staticClass:"absolute-full",props:{value:this.view,dense:!0,align:"justify"},on:cache(this,"ftIn",{input:t=>{this.view=t}})},[t(QTab,{props:{icon:this.$q.iconSet.colorPicker.spectrum,name:"spectrum",ripple:!1}}),t(QTab,{props:{icon:this.$q.iconSet.colorPicker.tune,name:"tune",ripple:!1}}),t(QTab,{props:{icon:this.$q.iconSet.colorPicker.palette,name:"palette",ripple:!1}})])])},__getSpectrumTab(t){return[t("div",{ref:"spectrum",staticClass:"q-color-picker__spectrum non-selectable relative-position cursor-pointer",style:this.spectrumStyle,class:{readonly:!0!==this.editable},on:!0===this.editable?cache(this,"spectrT",{click:this.__spectrumClick,mousedown:this.__activate}):null,directives:!0===this.editable?cache(this,"spectrDir",[{name:"touch-pan",modifiers:{prevent:!0,stop:!0,mouse:!0},value:this.__spectrumPan}]):null},[t("div",{style:{paddingBottom:"100%"}}),t("div",{staticClass:"q-color-picker__spectrum-white absolute-full"}),t("div",{staticClass:"q-color-picker__spectrum-black absolute-full"}),t("div",{staticClass:"absolute",style:this.spectrumPointerStyle},[void 0!==this.model.hex?t("div",{staticClass:"q-color-picker__spectrum-circle"}):null])]),t("div",{staticClass:"q-color-picker__sliders"},[t(QSlider,{staticClass:"q-color-picker__hue non-selectable",props:{value:this.model.h,min:0,max:360,trackSize:"8px",innerTrackColor:"transparent",selectionColor:"transparent",readonly:!0!==this.editable,thumbPath:thumbPath},on:cache(this,"hueSlide",{input:this.__onHueChange,change:t=>this.__onHueChange(t,!0)})}),!0===this.hasAlpha?t(QSlider,{staticClass:"q-color-picker__alpha non-selectable",props:{value:this.model.a,min:0,max:100,trackSize:"8px",trackColor:"white",innerTrackColor:"transparent",selectionColor:"transparent",trackImg:alphaTrackImg,readonly:!0!==this.editable,hideSelection:!0,thumbPath:thumbPath},on:cache(this,"alphaSlide",{input:t=>this.__onNumericChange(t,"a",100),change:t=>this.__onNumericChange(t,"a",100,void 0,!0)})}):null])]},__getTuneTab(t){const e={inputmode:"numeric",maxlength:3,readonly:!0!==this.editable};return[t("div",{staticClass:"row items-center no-wrap"},[t("div",["R"]),t(QSlider,{props:{value:this.model.r,min:0,max:255,color:"red",dark:this.isDark,readonly:!0!==this.editable},on:cache(this,"rSlide",{input:t=>this.__onNumericChange(t,"r",255),change:t=>this.__onNumericChange(t,"r",255,void 0,!0)})}),t("input",{domProps:{value:this.model.r},attrs:e,on:cache(this,"rIn",{input:t=>this.__onNumericChange(t.target.value,"r",255,t),change:stop,blur:t=>this.__onNumericChange(t.target.value,"r",255,t,!0)})})]),t("div",{staticClass:"row items-center no-wrap"},[t("div",["G"]),t(QSlider,{props:{value:this.model.g,min:0,max:255,color:"green",dark:this.isDark,readonly:!0!==this.editable},on:cache(this,"gSlide",{input:t=>this.__onNumericChange(t,"g",255),change:t=>this.__onNumericChange(t,"g",255,void 0,!0)})}),t("input",{domProps:{value:this.model.g},attrs:e,on:cache(this,"gIn",{input:t=>this.__onNumericChange(t.target.value,"g",255,t),change:stop,blur:t=>this.__onNumericChange(t.target.value,"g",255,t,!0)})})]),t("div",{staticClass:"row items-center no-wrap"},[t("div",["B"]),t(QSlider,{props:{value:this.model.b,min:0,max:255,color:"blue",readonly:!0!==this.editable,dark:this.isDark},on:cache(this,"bSlide",{input:t=>this.__onNumericChange(t,"b",255),change:t=>this.__onNumericChange(t,"b",255,void 0,!0)})}),t("input",{domProps:{value:this.model.b},attrs:e,on:cache(this,"bIn",{input:t=>this.__onNumericChange(t.target.value,"b",255,t),change:stop,blur:t=>this.__onNumericChange(t.target.value,"b",255,t,!0)})})]),!0===this.hasAlpha?t("div",{staticClass:"row items-center no-wrap"},[t("div",["A"]),t(QSlider,{props:{value:this.model.a,color:"grey",readonly:!0!==this.editable,dark:this.isDark},on:cache(this,"aSlide",{input:t=>this.__onNumericChange(t,"a",100),change:t=>this.__onNumericChange(t,"a",100,void 0,!0)})}),t("input",{domProps:{value:this.model.a},attrs:e,on:cache(this,"aIn",{input:t=>this.__onNumericChange(t.target.value,"a",100,t),change:stop,blur:t=>this.__onNumericChange(t.target.value,"a",100,t,!0)})})]):null]},__getPaletteTab(t){return[t("div",{staticClass:"row items-center q-color-picker__palette-rows",class:!0===this.editable?"q-color-picker__palette-rows--editable":""},this.computedPalette.map(e=>t("div",{staticClass:"q-color-picker__cube col-auto",style:{backgroundColor:e},on:!0===this.editable?cache(this,"palette#"+e,{click:()=>{this.__onPalettePick(e)}}):null})))]},__onSpectrumChange(t,e,i){const s=this.$refs.spectrum;if(void 0===s)return;const o=s.clientWidth,n=s.clientHeight,r=s.getBoundingClientRect();let a=Math.min(o,Math.max(0,t-r.left));!0===this.$q.lang.rtl&&(a=o-a);const l=Math.min(n,Math.max(0,e-r.top)),h=Math.round(100*a/o),d=Math.round(100*Math.max(0,Math.min(1,-l/n+1))),c=hsvToRgb({h:this.model.h,s:h,v:d,a:!0===this.hasAlpha?this.model.a:void 0});this.model.s=h,this.model.v=d,this.__update(c,i)},__onHueChange(t,e){const i=hsvToRgb({h:t=Math.round(t),s:this.model.s,v:this.model.v,a:!0===this.hasAlpha?this.model.a:void 0});this.model.h=t,this.__update(i,e)},__onNumericChange(t,e,i,s,o){if(void 0!==s&&stop(s),!/^[0-9]+$/.test(t))return void(!0===o&&this.$forceUpdate());const n=Math.floor(Number(t));if(n<0||n>i)return void(!0===o&&this.$forceUpdate());const r={r:"r"===e?n:this.model.r,g:"g"===e?n:this.model.g,b:"b"===e?n:this.model.b,a:!0===this.hasAlpha?"a"===e?n:this.model.a:void 0};if("a"!==e){const t=rgbToHsv(r);this.model.h=t.h,this.model.s=t.s,this.model.v=t.v}if(this.__update(r,o),void 0!==s&&!0!==o&&void 0!==s.target.selectionEnd){const t=s.target.selectionEnd;this.$nextTick(()=>{s.target.setSelectionRange(t,t)})}},__onEditorChange(t,e){let i;const s=t.target.value;if(stop(t),"hex"===this.topView){if(s.length!==(!0===this.hasAlpha?9:7)||!/^#[0-9A-Fa-f]+$/.test(s))return!0;i=hexToRgb(s)}else{let t;if(!s.endsWith(")"))return!0;if(!0!==this.hasAlpha&&s.startsWith("rgb(")){if(3!==(t=s.substring(4,s.length-1).split(",").map(t=>parseInt(t,10))).length||!/^rgb\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3}\)$/.test(s))return!0}else{if(!0!==this.hasAlpha||!s.startsWith("rgba("))return!0;{if(4!==(t=s.substring(5,s.length-1).split(",")).length||!/^rgba\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/.test(s))return!0;for(let e=0;e<3;e++){const i=parseInt(t[e],10);if(i<0||i>255)return!0;t[e]=i}const e=parseFloat(t[3]);if(e<0||e>1)return!0;t[3]=e}}if(t[0]<0||t[0]>255||t[1]<0||t[1]>255||t[2]<0||t[2]>255||!0===this.hasAlpha&&(t[3]<0||t[3]>1))return!0;i={r:t[0],g:t[1],b:t[2],a:!0===this.hasAlpha?100*t[3]:void 0}}const o=rgbToHsv(i);if(this.model.h=o.h,this.model.s=o.s,this.model.v=o.v,this.__update(i,e),!0!==e){const e=t.target.selectionEnd;this.$nextTick(()=>{t.target.setSelectionRange(e,e)})}},__onPalettePick(t){const e=this.__parseModel(t),i={r:e.r,g:e.g,b:e.b,a:e.a};void 0===i.a&&(i.a=this.model.a),this.model.h=e.h,this.model.s=e.s,this.model.v=e.v,this.__update(i,!0)},__update(t,e){this.model.hex=rgbToHex(t),this.model.rgb=rgbToString(t),this.model.r=t.r,this.model.g=t.g,this.model.b=t.b,this.model.a=t.a;const i=this.model[!0===this.isOutputHex?"hex":"rgb"];this.$emit("input",i),!0===e&&this.$emit("change",i)},__updateErrorIcon(t){void 0!==this.$refs.errorIcon&&(this.$refs.errorIcon.$el.style.opacity=t?1:0)},__parseModel(t){const e=void 0!==this.forceAlpha?this.forceAlpha:"auto"===this.formatModel?null:this.formatModel.indexOf("a")>-1;if("string"!=typeof t||0===t.length||!0!==testPattern.anyColor(t.replace(/ /g,"")))return{h:0,s:0,v:0,r:0,g:0,b:0,a:!0===e?100:void 0,hex:void 0,rgb:void 0};const i=textToRgb(t);return!0===e&&void 0===i.a&&(i.a=100),i.hex=rgbToHex(i),i.rgb=rgbToString(i),Object.assign(i,rgbToHsv(i))},__spectrumPan(t){t.isFinal?this.__onSpectrumChange(t.position.left,t.position.top,!0):this.__spectrumChange(t)},__spectrumChange(t){this.__onSpectrumChange(t.position.left,t.position.top)},__spectrumClick(t){this.__onSpectrumChange(t.pageX-window.pageXOffset,t.pageY-window.pageYOffset,!0)},__activate(t){this.__onSpectrumChange(t.pageX-window.pageXOffset,t.pageY-window.pageYOffset)}}});const breaks=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function toJalaali(t,e,i){return"[object Date]"===Object.prototype.toString.call(t)&&(i=t.getDate(),e=t.getMonth()+1,t=t.getFullYear()),d2j(g2d(t,e,i))}function toGregorian(t,e,i){return d2g(j2d(t,e,i))}function isLeapJalaaliYear(t){return 0===jalCalLeap(t)}function jalaaliMonthLength(t,e){return e<=6?31:e<=11?30:isLeapJalaaliYear(t)?30:29}function jalCalLeap(t){const e=breaks.length;let i,s,o,n,r,a=breaks[0];if(t<a||t>=breaks[e-1])throw new Error("Invalid Jalaali year "+t);for(r=1;r<e&&(s=(i=breaks[r])-a,!(t<i));r+=1)a=i;return s-(n=t-a)<6&&(n=n-s+33*div(s+4,33)),-1===(o=mod(mod(n+1,33)-1,4))&&(o=4),o}function jalCal(t,e){const i=breaks.length,s=t+621;let o,n,r,a,l,h=-14,d=breaks[0];if(t<d||t>=breaks[i-1])throw new Error("Invalid Jalaali year "+t);for(l=1;l<i&&(n=(o=breaks[l])-d,!(t<o));l+=1)h=h+8*div(n,33)+div(mod(n,33),4),d=o;h=h+8*div(a=t-d,33)+div(mod(a,33)+3,4),4===mod(n,33)&&n-a==4&&(h+=1);const c=20+h-(div(s,4)-div(3*(div(s,100)+1),4)-150);return e||(n-a<6&&(a=a-n+33*div(n+4,33)),-1===(r=mod(mod(a+1,33)-1,4))&&(r=4)),{leap:r,gy:s,march:c}}function j2d(t,e,i){const s=jalCal(t,!0);return g2d(s.gy,3,s.march)+31*(e-1)-div(e,7)*(e-7)+i-1}function d2j(t){const e=d2g(t).gy;let i,s,o,n=e-621;const r=jalCal(n,!1);if((o=t-g2d(e,3,r.march))>=0){if(o<=185)return{jy:n,jm:s=1+div(o,31),jd:i=mod(o,31)+1};o-=186}else n-=1,o+=179,1===r.leap&&(o+=1);return{jy:n,jm:s=7+div(o,30),jd:i=mod(o,30)+1}}function g2d(t,e,i){let s=div(1461*(t+div(e-8,6)+100100),4)+div(153*mod(e+9,12)+2,5)+i-34840408;return s=s-div(3*div(t+100100+div(e-8,6),100),4)+752}function d2g(t){let e=4*t+139361631;const i=5*div(mod(e=e+4*div(3*div(4*t+183187720,146097),4)-3908,1461),4)+308,s=div(mod(i,153),5)+1,o=mod(div(i,153),12)+1;return{gy:div(e,1461)-100100+div(8-o,6),gm:o,gd:s}}function div(t,e){return~~(t/e)}function mod(t,e){return t-~~(t/e)*e}const calendars=["gregorian","persian"];var DateTimeMixin={mixins:[DarkMixin,FormMixin,ListenersMixin],props:{value:{required:!0},mask:{type:String},locale:Object,calendar:{type:String,validator:t=>calendars.includes(t),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},computed:{computedMask(){return this.__getMask()},computedLocale(){return this.__getLocale()},editable(){return!0!==this.disable&&!0!==this.readonly},computedColor(){return this.color||"primary"},computedTextColor(){return this.textColor||"white"},computedTabindex(){return!0===this.editable?0:-1},headerClass(){const t=[];return void 0!==this.color&&t.push(`bg-${this.color}`),void 0!==this.textColor&&t.push(`text-${this.textColor}`),t.join(" ")}},methods:{__getLocale(){return void 0!==this.locale?{...this.$q.lang.date,...this.locale}:this.$q.lang.date},__getCurrentDate(t){const e=new Date,i=!0===t?null:0;if("persian"===this.calendar){const t=toJalaali(e);return{year:t.jy,month:t.jm,day:t.jd}}return{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:i,minute:i,second:i,millisecond:i}},__getCurrentTime(){const t=new Date;return{hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}},__getDayHash:t=>t.year+"/"+pad(t.month)+"/"+pad(t.day)}};const MILLISECONDS_IN_DAY=864e5,MILLISECONDS_IN_HOUR=36e5,MILLISECONDS_IN_MINUTE=6e4,defaultMask="YYYY-MM-DDTHH:mm:ss.SSSZ",token=/\[((?:[^\]\\]|\\]|\\)*)\]|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g,reverseToken=/(\[[^\]]*\])|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g,regexStore={};function getRegexData(t,e){const i="("+e.days.join("|")+")",s=t+i;if(void 0!==regexStore[s])return regexStore[s];const o="("+e.daysShort.join("|")+")",n="("+e.months.join("|")+")",r="("+e.monthsShort.join("|")+")",a={};let l=0;const h=t.replace(reverseToken,t=>{switch(l++,t){case"YY":return a.YY=l,"(-?\\d{1,2})";case"YYYY":return a.YYYY=l,"(-?\\d{1,4})";case"M":return a.M=l,"(\\d{1,2})";case"MM":return a.M=l,"(\\d{2})";case"MMM":return a.MMM=l,r;case"MMMM":return a.MMMM=l,n;case"D":return a.D=l,"(\\d{1,2})";case"Do":return a.D=l++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return a.D=l,"(\\d{2})";case"H":return a.H=l,"(\\d{1,2})";case"HH":return a.H=l,"(\\d{2})";case"h":return a.h=l,"(\\d{1,2})";case"hh":return a.h=l,"(\\d{2})";case"m":return a.m=l,"(\\d{1,2})";case"mm":return a.m=l,"(\\d{2})";case"s":return a.s=l,"(\\d{1,2})";case"ss":return a.s=l,"(\\d{2})";case"S":return a.S=l,"(\\d{1})";case"SS":return a.S=l,"(\\d{2})";case"SSS":return a.S=l,"(\\d{3})";case"A":return a.A=l,"(AM|PM)";case"a":return a.a=l,"(am|pm)";case"aa":return a.aa=l,"(a\\.m\\.|p\\.m\\.)";case"ddd":return o;case"dddd":return i;case"Q":case"d":case"E":return"(\\d{1})";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"w":return"(\\d{1,2})";case"ww":return"(\\d{2})";case"Z":return a.Z=l,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return a.ZZ=l,"(Z|[+-]\\d{2}\\d{2})";case"X":return a.X=l,"(-?\\d+)";case"x":return a.x=l,"(-?\\d{4,})";default:return l--,"["===t[0]&&(t=t.substring(1,t.length-1)),t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),d={map:a,regex:new RegExp("^"+h)};return regexStore[s]=d,d}function getDateLocale(t,e){return void 0!==t?t:void 0!==e?e.date:defaultLang.date}function formatTimezone(t,e=""){const i=t>0?"-":"+",s=Math.abs(t),o=s%60;return i+pad(Math.floor(s/60))+e+pad(o)}function applyYearMonthDayChange(t,e,i){let s=t.getFullYear(),o=t.getMonth();const n=t.getDate();return void 0!==e.year&&(s+=i*e.year,delete e.year),void 0!==e.month&&(o+=i*e.month,delete e.month),t.setDate(1),t.setMonth(2),t.setFullYear(s),t.setMonth(o),t.setDate(Math.min(n,daysInMonth(t))),void 0!==e.date&&(t.setDate(t.getDate()+i*e.date),delete e.date),t}function applyYearMonthDay(t,e,i){const s=void 0!==e.year?e.year:t[`get${i}FullYear`](),o=void 0!==e.month?e.month-1:t[`get${i}Month`](),n=new Date(s,o+1,0).getDate(),r=Math.min(n,void 0!==e.date?e.date:t[`get${i}Date`]());return t[`set${i}Date`](1),t[`set${i}Month`](2),t[`set${i}FullYear`](s),t[`set${i}Month`](o),t[`set${i}Date`](r),delete e.year,delete e.month,delete e.date,t}function getChange(t,e,i){const s=normalizeMod(e),o=new Date(t),n=void 0!==s.year||void 0!==s.month||void 0!==s.date?applyYearMonthDayChange(o,s,i):o;for(const t in s){const e=capitalize(t);n[`set${e}`](n[`get${e}`]()+i*s[t])}return n}function normalizeMod(t){const e={...t};return void 0!==t.years&&(e.year=t.years,delete e.years),void 0!==t.months&&(e.month=t.months,delete e.months),void 0!==t.days&&(e.date=t.days,delete e.days),void 0!==t.day&&(e.date=t.day,delete e.day),void 0!==t.hour&&(e.hours=t.hour,delete e.hour),void 0!==t.minute&&(e.minutes=t.minute,delete e.minute),void 0!==t.second&&(e.seconds=t.second,delete e.second),void 0!==t.millisecond&&(e.milliseconds=t.millisecond,delete e.millisecond),e}function adjustDate(t,e,i){const s=normalizeMod(e),o=!0===i?"UTC":"",n=new Date(t),r=void 0!==s.year||void 0!==s.month||void 0!==s.date?applyYearMonthDay(n,s,o):n;for(const t in s){r[`set${o}${t.charAt(0).toUpperCase()+t.slice(1)}`](s[t])}return r}function extractDate(t,e,i){const s=__splitDate(t,e,i),o=new Date(s.year,null===s.month?null:s.month-1,null===s.day?1:s.day,s.hour,s.minute,s.second,s.millisecond),n=o.getTimezoneOffset();return null===s.timezoneOffset||s.timezoneOffset===n?o:getChange(o,{minutes:s.timezoneOffset-n},1)}function __splitDate(t,e,i,s,o){const n={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(void 0!==o&&Object.assign(n,o),void 0===t||null===t||""===t||"string"!=typeof t)return n;void 0===e&&(e=defaultMask);const r=getDateLocale(i,Plugin.props),a=r.months,l=r.monthsShort,{regex:h,map:d}=getRegexData(e,r),c=t.match(h);if(null===c)return n;let u="";if(void 0!==d.X||void 0!==d.x){const t=parseInt(c[void 0!==d.X?d.X:d.x],10);if(!0===isNaN(t)||t<0)return n;const e=new Date(t*(void 0!==d.X?1e3:1));n.year=e.getFullYear(),n.month=e.getMonth()+1,n.day=e.getDate(),n.hour=e.getHours(),n.minute=e.getMinutes(),n.second=e.getSeconds(),n.millisecond=e.getMilliseconds()}else{if(void 0!==d.YYYY)n.year=parseInt(c[d.YYYY],10);else if(void 0!==d.YY){const t=parseInt(c[d.YY],10);n.year=t<0?t:2e3+t}if(void 0!==d.M){if(n.month=parseInt(c[d.M],10),n.month<1||n.month>12)return n}else void 0!==d.MMM?n.month=l.indexOf(c[d.MMM])+1:void 0!==d.MMMM&&(n.month=a.indexOf(c[d.MMMM])+1);if(void 0!==d.D){if(n.day=parseInt(c[d.D],10),null===n.year||null===n.month||n.day<1)return n;const t="persian"!==s?new Date(n.year,n.month,0).getDate():jalaaliMonthLength(n.year,n.month);if(n.day>t)return n}void 0!==d.H?n.hour=parseInt(c[d.H],10)%24:void 0!==d.h&&(n.hour=parseInt(c[d.h],10)%12,(d.A&&"PM"===c[d.A]||d.a&&"pm"===c[d.a]||d.aa&&"p.m."===c[d.aa])&&(n.hour+=12),n.hour=n.hour%24),void 0!==d.m&&(n.minute=parseInt(c[d.m],10)%60),void 0!==d.s&&(n.second=parseInt(c[d.s],10)%60),void 0!==d.S&&(n.millisecond=parseInt(c[d.S],10)*10**(3-c[d.S].length)),void 0===d.Z&&void 0===d.ZZ||(u=void 0!==d.Z?c[d.Z].replace(":",""):c[d.ZZ],n.timezoneOffset=("+"===u[0]?-1:1)*(60*u.slice(1,3)+1*u.slice(3,5)))}return n.dateHash=pad(n.year,6)+"/"+pad(n.month)+"/"+pad(n.day),n.timeHash=pad(n.hour)+":"+pad(n.minute)+":"+pad(n.second)+u,n}function isValid(t){return"number"==typeof t||!1===isNaN(Date.parse(t))}function buildDate(t,e){return adjustDate(new Date,t,e)}function getDayOfWeek(t){const e=new Date(t).getDay();return 0===e?7:e}function getWeekOfYear(t){const e=new Date(t.getFullYear(),t.getMonth(),t.getDate());e.setDate(e.getDate()-(e.getDay()+6)%7+3);const i=new Date(e.getFullYear(),0,4);i.setDate(i.getDate()-(i.getDay()+6)%7+3);const s=e.getTimezoneOffset()-i.getTimezoneOffset();e.setHours(e.getHours()-s);const o=(e-i)/(7*MILLISECONDS_IN_DAY);return 1+Math.floor(o)}function getDayIdentifier(t){return 1e4*t.getFullYear()+100*t.getMonth()+t.getDate()}function getDateIdentifier(t,e){const i=new Date(t);return!0===e?getDayIdentifier(i):i.getTime()}function isBetweenDates(t,e,i,s={}){const o=getDateIdentifier(e,s.onlyDate),n=getDateIdentifier(i,s.onlyDate),r=getDateIdentifier(t,s.onlyDate);return(r>o||!0===s.inclusiveFrom&&r===o)&&(r<n||!0===s.inclusiveTo&&r===n)}function addToDate(t,e){return getChange(t,e,1)}function subtractFromDate(t,e){return getChange(t,e,-1)}function startOfDate(t,e,i){const s=new Date(t),o=`set${!0===i?"UTC":""}`;switch(e){case"year":case"years":s[`${o}Month`](0);case"month":case"months":s[`${o}Date`](1);case"day":case"days":case"date":s[`${o}Hours`](0);case"hour":case"hours":s[`${o}Minutes`](0);case"minute":case"minutes":s[`${o}Seconds`](0);case"second":case"seconds":s[`${o}Milliseconds`](0)}return s}function endOfDate(t,e,i){const s=new Date(t),o=`set${!0===i?"UTC":""}`;switch(e){case"year":case"years":s[`${o}Month`](11);case"month":case"months":s[`${o}Date`](daysInMonth(s));case"day":case"days":case"date":s[`${o}Hours`](23);case"hour":case"hours":s[`${o}Minutes`](59);case"minute":case"minutes":s[`${o}Seconds`](59);case"second":case"seconds":s[`${o}Milliseconds`](999)}return s}function getMaxDate(t){let e=new Date(t);return Array.prototype.slice.call(arguments,1).forEach(t=>{e=Math.max(e,new Date(t))}),e}function getMinDate(t){let e=new Date(t);return Array.prototype.slice.call(arguments,1).forEach(t=>{e=Math.min(e,new Date(t))}),e}function getDiff(t,e,i){return(t.getTime()-t.getTimezoneOffset()*MILLISECONDS_IN_MINUTE-(e.getTime()-e.getTimezoneOffset()*MILLISECONDS_IN_MINUTE))/i}function getDateDiff(t,e,i="days"){const s=new Date(t),o=new Date(e);switch(i){case"years":case"year":return s.getFullYear()-o.getFullYear();case"months":case"month":return 12*(s.getFullYear()-o.getFullYear())+s.getMonth()-o.getMonth();case"days":case"day":case"date":return getDiff(startOfDate(s,"day"),startOfDate(o,"day"),MILLISECONDS_IN_DAY);case"hours":case"hour":return getDiff(startOfDate(s,"hour"),startOfDate(o,"hour"),MILLISECONDS_IN_HOUR);case"minutes":case"minute":return getDiff(startOfDate(s,"minute"),startOfDate(o,"minute"),MILLISECONDS_IN_MINUTE);case"seconds":case"second":return getDiff(startOfDate(s,"second"),startOfDate(o,"second"),1e3)}}function getDayOfYear(t){return getDateDiff(t,startOfDate(t,"year"),"days")+1}function inferDateFormat(t){return!0===isDate(t)?"date":"number"==typeof t?"number":"string"}function getDateBetween(t,e,i){const s=new Date(t);if(e){const t=new Date(e);if(s<t)return t}if(i){const t=new Date(i);if(s>t)return t}return s}function isSameDate(t,e,i){const s=new Date(t),o=new Date(e);if(void 0===i)return s.getTime()===o.getTime();switch(i){case"second":case"seconds":if(s.getSeconds()!==o.getSeconds())return!1;case"minute":case"minutes":if(s.getMinutes()!==o.getMinutes())return!1;case"hour":case"hours":if(s.getHours()!==o.getHours())return!1;case"day":case"days":case"date":if(s.getDate()!==o.getDate())return!1;case"month":case"months":if(s.getMonth()!==o.getMonth())return!1;case"year":case"years":if(s.getFullYear()!==o.getFullYear())return!1;break;default:throw new Error(`date isSameDate unknown unit ${i}`)}return!0}function daysInMonth(t){return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}function getOrdinal(t){if(t>=11&&t<=13)return`${t}th`;switch(t%10){case 1:return`${t}st`;case 2:return`${t}nd`;case 3:return`${t}rd`}return`${t}th`}const formatter={YY(t,e,i){const s=this.YYYY(t,e,i)%100;return s>=0?pad(s):"-"+pad(Math.abs(s))},YYYY:(t,e,i)=>void 0!==i&&null!==i?i:t.getFullYear(),M:t=>t.getMonth()+1,MM:t=>pad(t.getMonth()+1),MMM:(t,e)=>e.monthsShort[t.getMonth()],MMMM:(t,e)=>e.months[t.getMonth()],Q:t=>Math.ceil((t.getMonth()+1)/3),Qo(t){return getOrdinal(this.Q(t))},D:t=>t.getDate(),Do:t=>getOrdinal(t.getDate()),DD:t=>pad(t.getDate()),DDD:t=>getDayOfYear(t),DDDD:t=>pad(getDayOfYear(t),3),d:t=>t.getDay(),dd(t,e){return this.dddd(t,e).slice(0,2)},ddd:(t,e)=>e.daysShort[t.getDay()],dddd:(t,e)=>e.days[t.getDay()],E:t=>t.getDay()||7,w:t=>getWeekOfYear(t),ww:t=>pad(getWeekOfYear(t)),H:t=>t.getHours(),HH:t=>pad(t.getHours()),h(t){const e=t.getHours();return 0===e?12:e>12?e%12:e},hh(t){return pad(this.h(t))},m:t=>t.getMinutes(),mm:t=>pad(t.getMinutes()),s:t=>t.getSeconds(),ss:t=>pad(t.getSeconds()),S:t=>Math.floor(t.getMilliseconds()/100),SS:t=>pad(Math.floor(t.getMilliseconds()/10)),SSS:t=>pad(t.getMilliseconds(),3),A(t){return this.H(t)<12?"AM":"PM"},a(t){return this.H(t)<12?"am":"pm"},aa(t){return this.H(t)<12?"a.m.":"p.m."},Z:(t,e,i,s)=>formatTimezone(void 0===s||null===s?t.getTimezoneOffset():s,":"),ZZ:(t,e,i,s)=>formatTimezone(void 0===s||null===s?t.getTimezoneOffset():s),X:t=>Math.floor(t.getTime()/1e3),x:t=>t.getTime()};function formatDate(t,e,i,s,o){if(0!==t&&!t||t===1/0||t===-1/0)return;const n=new Date(t);if(isNaN(n))return;void 0===e&&(e=defaultMask);const r=getDateLocale(i,Plugin.props);return e.replace(token,(t,e)=>t in formatter?formatter[t](n,r,s,o):void 0===e?t:e.split("\\]").join("]"))}function clone(t){return!0===isDate(t)?new Date(t.getTime()):t}var date={isValid:isValid,extractDate:extractDate,buildDate:buildDate,getDayOfWeek:getDayOfWeek,getWeekOfYear:getWeekOfYear,isBetweenDates:isBetweenDates,addToDate:addToDate,subtractFromDate:subtractFromDate,adjustDate:adjustDate,startOfDate:startOfDate,endOfDate:endOfDate,getMaxDate:getMaxDate,getMinDate:getMinDate,getDateDiff:getDateDiff,getDayOfYear:getDayOfYear,inferDateFormat:inferDateFormat,getDateBetween:getDateBetween,isSameDate:isSameDate,daysInMonth:daysInMonth,formatDate:formatDate,clone:clone};const yearsInterval=20,views=["Calendar","Years","Months"],viewIsValid=t=>views.includes(t),yearMonthValidator=t=>/^-?[\d]+\/[0-1]\d$/.test(t),lineStr=" — ";var QDate=Vue.extend({name:"QDate",mixins:[DateTimeMixin],props:{multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:yearMonthValidator},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:yearMonthValidator},navigationMaxYearMonth:{type:String,validator:yearMonthValidator},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:viewIsValid}},data(){const t=this.__getMask(),e=this.__getLocale(),i=this.__getViewModel(t,e),s=i.year,o=!0===this.$q.lang.rtl?"right":"left";return{view:this.defaultView,monthDirection:o,yearDirection:o,startYear:s-s%20-(s<0?20:0),editRange:void 0,innerMask:t,innerLocale:e,viewModel:i}},watch:{value(t){if(this.lastEmitValue===t)this.lastEmitValue=0;else{const t=this.__getViewModel(this.innerMask,this.innerLocale);this.__updateViewModel(t.year,t.month,t)}},view(){void 0!==this.$refs.blurTarget&&!0===this.$el.contains(document.activeElement)&&this.$refs.blurTarget.focus()},"viewModel.year"(t){this.$emit("navigation",{year:t,month:this.viewModel.month})},"viewModel.month"(t){this.$emit("navigation",{year:this.viewModel.year,month:t})},computedMask(t){this.__updateValue(t,this.innerLocale,"mask"),this.innerMask=t},computedLocale(t){this.__updateValue(this.innerMask,t,"locale"),this.innerLocale=t}},computed:{classes(){const t=!0===this.landscape?"landscape":"portrait";return`q-date q-date--${t} q-date--${t}-${!0===this.minimal?"minimal":"standard"}`+(!0===this.isDark?" q-date--dark q-dark":"")+(!0===this.bordered?" q-date--bordered":"")+(!0===this.square?" q-date--square no-border-radius":"")+(!0===this.flat?" q-date--flat no-shadow":"")+(!0===this.disable?" disabled":!0===this.readonly?" q-date--readonly":"")},isImmediate(){return!0===this.emitImmediately&&!0!==this.multiple&&!0!==this.range},normalizedModel(){return!0===Array.isArray(this.value)?this.value:null!==this.value&&void 0!==this.value?[this.value]:[]},daysModel(){return this.normalizedModel.filter(t=>"string"==typeof t).map(t=>this.__decodeString(t,this.innerMask,this.innerLocale)).filter(t=>null!==t.dateHash&&null!==t.day&&null!==t.month&&null!==t.year)},rangeModel(){const t=t=>this.__decodeString(t,this.innerMask,this.innerLocale);return this.normalizedModel.filter(t=>!0===isObject(t)&&void 0!==t.from&&void 0!==t.to).map(e=>({from:t(e.from),to:t(e.to)})).filter(t=>null!==t.from.dateHash&&null!==t.to.dateHash&&t.from.dateHash<t.to.dateHash)},getNativeDateFn(){return"persian"!==this.calendar?t=>new Date(t.year,t.month-1,t.day):t=>{const e=toGregorian(t.year,t.month,t.day);return new Date(e.gy,e.gm-1,e.gd)}},encodeObjectFn(){return"persian"===this.calendar?this.__getDayHash:(t,e,i)=>formatDate(new Date(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond),void 0===e?this.innerMask:e,void 0===i?this.innerLocale:i,t.year,t.timezoneOffset)},daysInModel(){return this.daysModel.length+this.rangeModel.reduce((t,e)=>t+1+getDateDiff(this.getNativeDateFn(e.to),this.getNativeDateFn(e.from)),0)},headerTitle(){if(void 0!==this.title&&null!==this.title&&this.title.length>0)return this.title;if(void 0!==this.editRange){const t=this.editRange.init,e=this.getNativeDateFn(t);return this.innerLocale.daysShort[e.getDay()]+", "+this.innerLocale.monthsShort[t.month-1]+" "+t.day+" — ?"}if(0===this.daysInModel)return" — ";if(this.daysInModel>1)return`${this.daysInModel} ${this.innerLocale.pluralDay}`;const t=this.daysModel[0],e=this.getNativeDateFn(t);return!0===isNaN(e.valueOf())?" — ":void 0!==this.innerLocale.headerTitle?this.innerLocale.headerTitle(e,t):this.innerLocale.daysShort[e.getDay()]+", "+this.innerLocale.monthsShort[t.month-1]+" "+t.day},headerSubtitle(){if(void 0!==this.subtitle&&null!==this.subtitle&&this.subtitle.length>0)return this.subtitle;if(0===this.daysInModel)return" — ";if(this.daysInModel>1){const t=this.minSelectedModel,e=this.maxSelectedModel,i=this.innerLocale.monthsShort;return i[t.month-1]+(t.year!==e.year?" "+t.year+" — "+i[e.month-1]+" ":t.month!==e.month?" — "+i[e.month-1]:"")+" "+e.year}return this.daysModel[0].year},minSelectedModel(){return this.daysModel.concat(this.rangeModel.map(t=>t.from)).sort((t,e)=>t.year-e.year||t.month-e.month)[0]},maxSelectedModel(){return this.daysModel.concat(this.rangeModel.map(t=>t.to)).sort((t,e)=>e.year-t.year||e.month-t.month)[0]},dateArrow(){const t=[this.$q.iconSet.datetime.arrowLeft,this.$q.iconSet.datetime.arrowRight];return!0===this.$q.lang.rtl?t.reverse():t},computedFirstDayOfWeek(){return void 0!==this.firstDayOfWeek?Number(this.firstDayOfWeek):this.innerLocale.firstDayOfWeek},daysOfWeek(){const t=this.innerLocale.daysShort,e=this.computedFirstDayOfWeek;return e>0?t.slice(e,7).concat(t.slice(0,e)):t},daysInMonth(){const t=this.viewModel;return"persian"!==this.calendar?new Date(t.year,t.month,0).getDate():jalaaliMonthLength(t.year,t.month)},today(){return this.__getCurrentDate()},evtColor(){return"function"==typeof this.eventColor?this.eventColor:()=>this.eventColor},minNav(){if(void 0!==this.navigationMinYearMonth){const t=this.navigationMinYearMonth.split("/");return{year:parseInt(t[0],10),month:parseInt(t[1],10)}}},maxNav(){if(void 0!==this.navigationMaxYearMonth){const t=this.navigationMaxYearMonth.split("/");return{year:parseInt(t[0],10),month:parseInt(t[1],10)}}},navBoundaries(){const t={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return void 0!==this.minNav&&this.minNav.year>=this.viewModel.year&&(t.year.prev=!1,this.minNav.year===this.viewModel.year&&this.minNav.month>=this.viewModel.month&&(t.month.prev=!1)),void 0!==this.maxNav&&this.maxNav.year<=this.viewModel.year&&(t.year.next=!1,this.maxNav.year===this.viewModel.year&&this.maxNav.month<=this.viewModel.month&&(t.month.next=!1)),t},daysMap(){const t={};return this.daysModel.forEach(e=>{const i=this.__getMonthHash(e);void 0===t[i]&&(t[i]=[]),t[i].push(e.day)}),t},rangeMap(){const t={};return this.rangeModel.forEach(e=>{const i=this.__getMonthHash(e.from),s=this.__getMonthHash(e.to);if(void 0===t[i]&&(t[i]=[]),t[i].push({from:e.from.day,to:i===s?e.to.day:void 0,range:e}),i<s){let i;const{year:o,month:n}=e.from,r=n<12?{year:o,month:n+1}:{year:o+1,month:1};for(;(i=this.__getMonthHash(r))<=s;)void 0===t[i]&&(t[i]=[]),t[i].push({from:void 0,to:i===s?e.to.day:void 0,range:e}),r.month++,r.month>12&&(r.year++,r.month=1)}}),t},rangeView(){if(void 0===this.editRange)return;const{init:t,initHash:e,final:i,finalHash:s}=this.editRange,[o,n]=e<=s?[t,i]:[i,t],r=this.__getMonthHash(o),a=this.__getMonthHash(n);if(r!==this.viewMonthHash&&a!==this.viewMonthHash)return;const l={};return r===this.viewMonthHash?(l.from=o.day,l.includeFrom=!0):l.from=1,a===this.viewMonthHash?(l.to=n.day,l.includeTo=!0):l.to=this.daysInMonth,l},viewMonthHash(){return this.__getMonthHash(this.viewModel)},selectionDaysMap(){const t={};if(void 0===this.options){for(let e=1;e<=this.daysInMonth;e++)t[e]=!0;return t}const e="function"==typeof this.options?this.options:t=>this.options.includes(t);for(let i=1;i<=this.daysInMonth;i++){const s=this.viewMonthHash+"/"+pad(i);t[i]=e(s)}return t},eventDaysMap(){const t={};if(void 0===this.events)for(let e=1;e<=this.daysInMonth;e++)t[e]=!1;else{const e="function"==typeof this.events?this.events:t=>this.events.includes(t);for(let i=1;i<=this.daysInMonth;i++){const s=this.viewMonthHash+"/"+pad(i);t[i]=!0===e(s)&&this.evtColor(s)}}return t},viewDays(){let t,e;const{year:i,month:s}=this.viewModel;if("persian"!==this.calendar)t=new Date(i,s-1,1),e=new Date(i,s-1,0).getDate();else{const o=toGregorian(i,s,1);t=new Date(o.gy,o.gm-1,o.gd);let n=s-1,r=i;0===n&&(n=12,r--),e=jalaaliMonthLength(r,n)}return{days:t.getDay()-this.computedFirstDayOfWeek-1,endDay:e}},days(){const t=[],{days:e,endDay:i}=this.viewDays,s=e<0?e+7:e;if(s<6)for(let e=i-s;e<=i;e++)t.push({i:e,fill:!0});const o=t.length;for(let e=1;e<=this.daysInMonth;e++){const i={i:e,event:this.eventDaysMap[e],classes:[]};!0===this.selectionDaysMap[e]&&(i.in=!0,i.flat=!0),t.push(i)}if(void 0!==this.daysMap[this.viewMonthHash]&&this.daysMap[this.viewMonthHash].forEach(e=>{const i=o+e-1;Object.assign(t[i],{selected:!0,unelevated:!0,flat:!1,color:this.computedColor,textColor:this.computedTextColor})}),void 0!==this.rangeMap[this.viewMonthHash]&&this.rangeMap[this.viewMonthHash].forEach(e=>{if(void 0!==e.from){const i=o+e.from-1,s=o+(e.to||this.daysInMonth)-1;for(let o=i;o<=s;o++)Object.assign(t[o],{range:e.range,unelevated:!0,color:this.computedColor,textColor:this.computedTextColor});Object.assign(t[i],{rangeFrom:!0,flat:!1}),void 0!==e.to&&Object.assign(t[s],{rangeTo:!0,flat:!1})}else if(void 0!==e.to){const i=o+e.to-1;for(let s=o;s<=i;s++)Object.assign(t[s],{range:e.range,unelevated:!0,color:this.computedColor,textColor:this.computedTextColor});Object.assign(t[i],{flat:!1,rangeTo:!0})}else{const i=o+this.daysInMonth-1;for(let s=o;s<=i;s++)Object.assign(t[s],{range:e.range,unelevated:!0,color:this.computedColor,textColor:this.computedTextColor})}}),void 0!==this.rangeView){const e=o+this.rangeView.from-1,i=o+this.rangeView.to-1;for(let s=e;s<=i;s++)t[s].color=this.computedColor,t[s].editRange=!0;!0===this.rangeView.includeFrom&&(t[e].editRangeFrom=!0),!0===this.rangeView.includeTo&&(t[i].editRangeTo=!0)}this.viewModel.year===this.today.year&&this.viewModel.month===this.today.month&&(t[o+this.today.day-1].today=!0);const n=t.length%7;if(n>0){const e=7-n;for(let i=1;i<=e;i++)t.push({i:i,fill:!0})}return t.forEach(t=>{let e="q-date__calendar-item ";!0===t.fill?e+="q-date__calendar-item--fill":(e+=`q-date__calendar-item--${!0===t.in?"in":"out"}`,void 0!==t.range&&(e+=` q-date__range${!0===t.rangeTo?"-to":!0===t.rangeFrom?"-from":""}`),!0===t.editRange&&(e+=` q-date__edit-range${!0===t.editRangeFrom?"-from":""}${!0===t.editRangeTo?"-to":""}`),void 0===t.range&&!0!==t.editRange||(e+=` text-${t.color}`)),t.classes=e}),t},attrs(){return!0===this.disable?{"aria-disabled":"true"}:!0===this.readonly?{"aria-readonly":"true"}:void 0}},methods:{setToday(){const t=this.today,e=this.daysMap[this.__getMonthHash(t)];void 0!==e&&!1!==e.includes(t.day)||this.__addToModel(t),this.setCalendarTo(this.today.year,this.today.month)},setView(t){!0===viewIsValid(t)&&(this.view=t)},offsetCalendar(t,e){["month","year"].includes(t)&&this[`__goTo${"month"===t?"Month":"Year"}`](!0===e?-1:1)},setCalendarTo(t,e){this.view="Calendar",this.__updateViewModel(t,e)},setEditingRange(t,e){if(!1===this.range||!t)return void(this.editRange=void 0);const i=Object.assign({...this.viewModel},t),s=void 0!==e?Object.assign({...this.viewModel},e):i;this.editRange={init:i,initHash:this.__getDayHash(i),final:s,finalHash:this.__getDayHash(s)},this.setCalendarTo(i.year,i.month)},__getMask(){return"persian"===this.calendar?"YYYY/MM/DD":this.mask},__decodeString(t,e,i){return __splitDate(t,e,i,this.calendar,{hour:0,minute:0,second:0,millisecond:0})},__getViewModel(t,e){const i=!0===Array.isArray(this.value)?this.value:this.value?[this.value]:[];if(0===i.length)return this.__getDefaultViewModel();const s=this.__decodeString(void 0!==i[0].from?i[0].from:i[0],t,e);return null===s.dateHash?this.__getDefaultViewModel():s},__getDefaultViewModel(){let t,e;if(void 0!==this.defaultYearMonth){const i=this.defaultYearMonth.split("/");t=parseInt(i[0],10),e=parseInt(i[1],10)}else{const i=void 0!==this.today?this.today:this.__getCurrentDate();t=i.year,e=i.month}return{year:t,month:e,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:t+"/"+pad(e)+"/01"}},__getHeader(t){if(!0!==this.minimal)return t("div",{staticClass:"q-date__header",class:this.headerClass},[t("div",{staticClass:"relative-position"},[t("transition",{props:{name:"q-transition--fade"}},[t("div",{key:"h-yr-"+this.headerSubtitle,staticClass:"q-date__header-subtitle q-date__header-link",class:"Years"===this.view?"q-date__header-link--active":"cursor-pointer",attrs:{tabindex:this.computedTabindex},on:cache(this,"vY",{click:()=>{this.view="Years"},keyup:t=>{13===t.keyCode&&(this.view="Years")}})},[this.headerSubtitle])])]),t("div",{staticClass:"q-date__header-title relative-position flex no-wrap"},[t("div",{staticClass:"relative-position col"},[t("transition",{props:{name:"q-transition--fade"}},[t("div",{key:"h-sub"+this.headerTitle,staticClass:"q-date__header-title-label q-date__header-link",class:"Calendar"===this.view?"q-date__header-link--active":"cursor-pointer",attrs:{tabindex:this.computedTabindex},on:cache(this,"vC",{click:()=>{this.view="Calendar"},keyup:t=>{13===t.keyCode&&(this.view="Calendar")}})},[this.headerTitle])])]),!0===this.todayBtn?t(QBtn,{staticClass:"q-date__header-today self-start",props:{icon:this.$q.iconSet.datetime.today,flat:!0,size:"sm",round:!0,tabindex:this.computedTabindex},on:cache(this,"today",{click:this.setToday})}):null])])},__getNavigation(t,{label:e,view:i,key:s,dir:o,goTo:n,boundaries:r,cls:a}){return[t("div",{staticClass:"row items-center q-date__arrow"},[t(QBtn,{props:{round:!0,dense:!0,size:"sm",flat:!0,icon:this.dateArrow[0],tabindex:this.computedTabindex,disable:!1===r.prev},on:cache(this,"go-#"+i,{click(){n(-1)}})})]),t("div",{staticClass:"relative-position overflow-hidden flex flex-center"+a},[t("transition",{props:{name:"q-transition--jump-"+o}},[t("div",{key:s},[t(QBtn,{props:{flat:!0,dense:!0,noCaps:!0,label:e,tabindex:this.computedTabindex},on:cache(this,"view#"+i,{click:()=>{this.view=i}})})])])]),t("div",{staticClass:"row items-center q-date__arrow"},[t(QBtn,{props:{round:!0,dense:!0,size:"sm",flat:!0,icon:this.dateArrow[1],tabindex:this.computedTabindex,disable:!1===r.next},on:cache(this,"go+#"+i,{click(){n(1)}})})])]},__getCalendarView(t){return[t("div",{key:"calendar-view",staticClass:"q-date__view q-date__calendar"},[t("div",{staticClass:"q-date__navigation row items-center no-wrap"},this.__getNavigation(t,{label:this.innerLocale.months[this.viewModel.month-1],view:"Months",key:this.viewModel.month,dir:this.monthDirection,goTo:this.__goToMonth,boundaries:this.navBoundaries.month,cls:" col"}).concat(this.__getNavigation(t,{label:this.viewModel.year,view:"Years",key:this.viewModel.year,dir:this.yearDirection,goTo:this.__goToYear,boundaries:this.navBoundaries.year,cls:""}))),t("div",{staticClass:"q-date__calendar-weekdays row items-center no-wrap"},this.daysOfWeek.map(e=>t("div",{staticClass:"q-date__calendar-item"},[t("div",[e])]))),t("div",{staticClass:"q-date__calendar-days-container relative-position overflow-hidden"},[t("transition",{props:{name:"q-transition--slide-"+this.monthDirection}},[t("div",{key:this.viewMonthHash,staticClass:"q-date__calendar-days fit"},this.days.map(e=>t("div",{staticClass:e.classes},[!0===e.in?t(QBtn,{staticClass:!0===e.today?"q-date__today":null,props:{dense:!0,flat:e.flat,unelevated:e.unelevated,color:e.color,textColor:e.textColor,label:e.i,tabindex:this.computedTabindex},on:cache(this,"day#"+e.i,{click:()=>{this.__onDayClick(e.i)},mouseover:()=>{this.__onDayMouseover(e.i)}})},!1!==e.event?[t("div",{staticClass:"q-date__event bg-"+e.event})]:null):t("div",[e.i])])))])])])]},__getMonthsView(t){const e=this.viewModel.year===this.today.year,i=t=>void 0!==this.minNav&&this.viewModel.year===this.minNav.year&&this.minNav.month>t||void 0!==this.maxNav&&this.viewModel.year===this.maxNav.year&&this.maxNav.month<t,s=this.innerLocale.monthsShort.map((s,o)=>{const n=this.viewModel.month===o+1;return t("div",{staticClass:"q-date__months-item flex flex-center"},[t(QBtn,{staticClass:!0===e&&this.today.month===o+1?"q-date__today":null,props:{flat:!0!==n,label:s,unelevated:n,color:!0===n?this.computedColor:null,textColor:!0===n?this.computedTextColor:null,tabindex:this.computedTabindex,disable:i(o+1)},on:cache(this,"month#"+o,{click:()=>{this.__setMonth(o+1)}})})])});return!0===this.yearsInMonthView&&s.unshift(t("div",{staticClass:"row no-wrap full-width"},[this.__getNavigation(t,{label:this.viewModel.year,view:"Years",key:this.viewModel.year,dir:this.yearDirection,goTo:this.__goToYear,boundaries:this.navBoundaries.year,cls:" col"})])),t("div",{key:"months-view",staticClass:"q-date__view q-date__months flex flex-center"},s)},__getYearsView(t){const e=this.startYear,i=e+20,s=[],o=t=>void 0!==this.minNav&&this.minNav.year>t||void 0!==this.maxNav&&this.maxNav.year<t;for(let n=e;n<=i;n++){const e=this.viewModel.year===n;s.push(t("div",{staticClass:"q-date__years-item flex flex-center"},[t(QBtn,{key:"yr"+n,staticClass:this.today.year===n?"q-date__today":null,props:{flat:!e,label:n,dense:!0,unelevated:e,color:!0===e?this.computedColor:null,textColor:!0===e?this.computedTextColor:null,tabindex:this.computedTabindex,disable:o(n)},on:cache(this,"yr#"+n,{click:()=>{this.__setYear(n)}})})]))}return t("div",{staticClass:"q-date__view q-date__years flex flex-center"},[t("div",{staticClass:"col-auto"},[t(QBtn,{props:{round:!0,dense:!0,flat:!0,icon:this.dateArrow[0],tabindex:this.computedTabindex,disable:o(e)},on:cache(this,"y-",{click:()=>{this.startYear-=20}})})]),t("div",{staticClass:"q-date__years-content col self-stretch row items-center"},s),t("div",{staticClass:"col-auto"},[t(QBtn,{props:{round:!0,dense:!0,flat:!0,icon:this.dateArrow[1],tabindex:this.computedTabindex,disable:o(i)},on:cache(this,"y+",{click:()=>{this.startYear+=20}})})])])},__goToMonth(t){let e=this.viewModel.year,i=Number(this.viewModel.month)+t;13===i?(i=1,e++):0===i&&(i=12,e--),this.__updateViewModel(e,i),!0===this.isImmediate&&this.__emitImmediately("month")},__goToYear(t){const e=Number(this.viewModel.year)+t;this.__updateViewModel(e,this.viewModel.month),!0===this.isImmediate&&this.__emitImmediately("year")},__setYear(t){this.__updateViewModel(t,this.viewModel.month),this.view="Years"===this.defaultView?"Months":"Calendar",!0===this.isImmediate&&this.__emitImmediately("year")},__setMonth(t){this.__updateViewModel(this.viewModel.year,t),this.view="Calendar",!0===this.isImmediate&&this.__emitImmediately("month")},__getMonthHash:t=>t.year+"/"+pad(t.month),__toggleDate(t,e){const i=this.daysMap[e];(void 0!==i&&!0===i.includes(t.day)?this.__removeFromModel:this.__addToModel)(t)},__getShortDate:t=>({year:t.year,month:t.month,day:t.day}),__onDayClick(t){const e={...this.viewModel,day:t};if(!1!==this.range)if(void 0===this.editRange){const i=this.days.find(e=>!0!==e.fill&&e.i===t);if(void 0!==i.range)return void this.__removeFromModel({target:e,from:i.range.from,to:i.range.to});if(!0===i.selected)return void this.__removeFromModel(e);const s=this.__getDayHash(e);this.editRange={init:e,initHash:s,final:e,finalHash:s},this.$emit("range-start",this.__getShortDate(e))}else{const t=this.editRange.initHash,i=this.__getDayHash(e),s=t<=i?{from:this.editRange.init,to:e}:{from:e,to:this.editRange.init};this.editRange=void 0,this.__addToModel(t===i?e:{target:e,...s}),this.$emit("range-end",{from:this.__getShortDate(s.from),to:this.__getShortDate(s.to)})}else this.__toggleDate(e,this.viewMonthHash)},__onDayMouseover(t){if(void 0!==this.editRange){const e={...this.viewModel,day:t};Object.assign(this.editRange,{final:e,finalHash:this.__getDayHash(e)})}},__updateViewModel(t,e,i){if(void 0!==this.minNav&&t<=this.minNav.year&&(t=this.minNav.year,e<this.minNav.month&&(e=this.minNav.month)),void 0!==this.maxNav&&t>=this.maxNav.year&&(t=this.maxNav.year,e>this.maxNav.month&&(e=this.maxNav.month)),void 0!==i){const{hour:t,minute:e,second:s,millisecond:o,timezoneOffset:n,timeHash:r}=i;Object.assign(this.viewModel,{hour:t,minute:e,second:s,millisecond:o,timezoneOffset:n,timeHash:r})}const s=t+"/"+pad(e)+"/01";s!==this.viewModel.dateHash&&(this.monthDirection=this.viewModel.dateHash<s==(!0!==this.$q.lang.rtl)?"left":"right",t!==this.viewModel.year&&(this.yearDirection=this.monthDirection),this.$nextTick(()=>{this.startYear=t-t%20-(t<0?20:0),Object.assign(this.viewModel,{year:t,month:e,day:1,dateHash:s})}))},__emitValue(t,e,i){const s=null!==t&&1===t.length&&!1===this.multiple?t[0]:t;this.lastEmitValue=s;const{reason:o,details:n}=this.__getEmitParams(e,i);this.$emit("input",s,o,n)},__emitImmediately(t){const e=void 0!==this.daysModel[0]&&null!==this.daysModel[0].dateHash?{...this.daysModel[0]}:{...this.viewModel};this.$nextTick(()=>{e.year=this.viewModel.year,e.month=this.viewModel.month;const i="persian"!==this.calendar?new Date(e.year,e.month,0).getDate():jalaaliMonthLength(e.year,e.month);e.day=Math.min(Math.max(1,e.day),i);const s=this.__encodeEntry(e);this.lastEmitValue=s;const{details:o}=this.__getEmitParams("",e);this.$emit("input",s,t,o)})},__getEmitParams(t,e){return void 0!==e.from?{reason:`${t}-range`,details:{...this.__getShortDate(e.target),from:this.__getShortDate(e.from),to:this.__getShortDate(e.to),changed:!0}}:{reason:`${t}-day`,details:{...this.__getShortDate(e),changed:!0}}},__encodeEntry(t,e,i){return void 0!==t.from?{from:this.encodeObjectFn(t.from,e,i),to:this.encodeObjectFn(t.to,e,i)}:this.encodeObjectFn(t,e,i)},__addToModel(t){let e;if(!0===this.multiple)if(void 0!==t.from){const i=this.__getDayHash(t.from),s=this.__getDayHash(t.to),o=this.daysModel.filter(t=>t.dateHash<i||t.dateHash>s),n=this.rangeModel.filter(({from:t,to:e})=>e.dateHash<i||t.dateHash>s);e=o.concat(n).concat(t).map(t=>this.__encodeEntry(t))}else{const i=this.normalizedModel.slice();i.push(this.__encodeEntry(t)),e=i}else e=this.__encodeEntry(t);this.__emitValue(e,"add",t)},__removeFromModel(t){if(!0===this.noUnset)return;let e=null;if(!0===this.multiple&&!0===Array.isArray(this.value)){const i=this.__encodeEntry(t);0===(e=void 0!==t.from?this.value.filter(t=>void 0===t.from||t.from!==i.from&&t.to!==i.to):this.value.filter(t=>t!==i)).length&&(e=null)}this.__emitValue(e,"remove",t)},__updateValue(t,e,i){const s=this.daysModel.concat(this.rangeModel).map(i=>this.__encodeEntry(i,t,e)).filter(t=>void 0!==t.from?null!==t.from.dateHash&&null!==t.to.dateHash:null!==t.dateHash);this.$emit("input",(!0===this.multiple?s:s[0])||null,i)}},render(t){const e=[t("div",{staticClass:"q-date__content col relative-position"},[t("transition",{props:{name:"q-transition--fade"}},[this[`__get${this.view}View`](t)])])],i=slot(this,"default");return void 0!==i&&e.push(t("div",{staticClass:"q-date__actions"},i)),void 0!==this.name&&!0!==this.disable&&this.__injectFormInput(e,"push"),t("div",{class:this.classes,attrs:this.attrs,on:{...this.qListeners}},[this.__getHeader(t),t("div",{staticClass:"q-date__main col column",attrs:{tabindex:-1},ref:"blurTarget"},e)])}}),HistoryMixin={methods:{__addHistory(){this.__historyEntry={condition:()=>!0===this.hideOnRouteChange,handler:this.hide},History.add(this.__historyEntry)},__removeHistory(){void 0!==this.__historyEntry&&(History.remove(this.__historyEntry),this.__historyEntry=void 0)}},beforeDestroy(){!0===this.showing&&this.__removeHistory()}};let scrollPositionX,scrollPositionY,maxScrollTop,bodyLeft,bodyTop,href,closeTimer,registered=0,vpPendingUpdate=!1;function onWheel(t){shouldPreventScroll(t)&&stopAndPrevent(t)}function shouldPreventScroll(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const e=getEventPath(t),i=t.shiftKey&&!t.deltaX,s=!i&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),o=i||s?t.deltaY:t.deltaX;for(let t=0;t<e.length;t++){const i=e[t];if(hasScrollbar(i,s))return s?o<0&&0===i.scrollTop||o>0&&i.scrollTop+i.clientHeight===i.scrollHeight:o<0&&0===i.scrollLeft||o>0&&i.scrollLeft+i.clientWidth===i.scrollWidth}return!0}function onAppleScroll(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function onAppleResize(t){!0!==vpPendingUpdate&&(vpPendingUpdate=!0,requestAnimationFrame(()=>{vpPendingUpdate=!1;const{height:e}=t.target,{clientHeight:i,scrollTop:s}=document.scrollingElement;void 0!==maxScrollTop&&e===window.innerHeight||(maxScrollTop=i-e,document.scrollingElement.scrollTop=s),s>maxScrollTop&&(document.scrollingElement.scrollTop-=Math.ceil((s-maxScrollTop)/8))}))}function apply(t){const e=document.body,i=void 0!==window.visualViewport;if("add"===t){const t=window.getComputedStyle(e).overflowY;scrollPositionX=getHorizontalScrollPosition(window),scrollPositionY=getScrollPosition(window),bodyLeft=e.style.left,bodyTop=e.style.top,href=window.location.href,e.style.left=`-${scrollPositionX}px`,e.style.top=`-${scrollPositionY}px`,"hidden"!==t&&("scroll"===t||e.scrollHeight>window.innerHeight)&&e.classList.add("q-body--force-scrollbar"),e.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,!0===client.is.ios&&(!0===i?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",onAppleResize,listenOpts.passiveCapture),window.visualViewport.addEventListener("scroll",onAppleResize,listenOpts.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",onAppleScroll,listenOpts.passiveCapture))}!0===client.is.desktop&&!0===client.is.mac&&window[`${t}EventListener`]("wheel",onWheel,listenOpts.notPassive),"remove"===t&&(!0===client.is.ios&&(!0===i?(window.visualViewport.removeEventListener("resize",onAppleResize,listenOpts.passiveCapture),window.visualViewport.removeEventListener("scroll",onAppleResize,listenOpts.passiveCapture)):window.removeEventListener("scroll",onAppleScroll,listenOpts.passiveCapture)),e.classList.remove("q-body--prevent-scroll"),e.classList.remove("q-body--force-scrollbar"),document.qScrollPrevented=!1,e.style.left=bodyLeft,e.style.top=bodyTop,window.location.href===href&&window.scrollTo(scrollPositionX,scrollPositionY),maxScrollTop=void 0)}function preventScroll(t){let e="add";if(!0===t){if(registered++,void 0!==closeTimer)return clearTimeout(closeTimer),void(closeTimer=void 0);if(registered>1)return}else{if(0===registered)return;if(--registered>0)return;if(e="remove",!0===client.is.ios&&!0===client.is.nativeMobile)return clearTimeout(closeTimer),void(closeTimer=setTimeout(()=>{apply(e),closeTimer=void 0},100))}apply(e)}var PreventScrollMixin={methods:{__preventScroll(t){t===this.preventedScroll||void 0===this.preventedScroll&&!0!==t||(this.preventedScroll=t,preventScroll(t))}}};let maximizedModals=0;const positionClass={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},defaultTransitions={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},backdropAttrs={...ariaHidden,tabindex:-1};var QDialog=Vue.extend({name:"QDialog",mixins:[AttrsMixin,TransitionMixin,HistoryMixin,TimeoutMixin,ModelToggleMixin,Portal,PreventScrollMixin],props:{persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,position:{type:String,default:"standard",validator:t=>"standard"===t||["top","bottom","left","right"].includes(t)},transitionShow:String,transitionHide:String},data:()=>({animating:!1}),watch:{maximized(t){!0===this.showing&&this.__updateMaximized(t)},useBackdrop(t){this.__preventScroll(t),this.__preventFocusout(t)}},computed:{classes(){return`q-dialog__inner--${!0===this.maximized?"maximized":"minimized"} `+`q-dialog__inner--${this.position} ${positionClass[this.position]}`+(!0===this.animating?" q-dialog__inner--animating":"")+(!0===this.fullWidth?" q-dialog__inner--fullwidth":"")+(!0===this.fullHeight?" q-dialog__inner--fullheight":"")+(!0===this.square?" q-dialog__inner--square":"")},defaultTransitionShow(){return defaultTransitions[this.position][0]},defaultTransitionHide(){return defaultTransitions[this.position][1]},useBackdrop(){return!0===this.showing&&!0!==this.seamless},hideOnRouteChange(){return!0!==this.persistent&&!0!==this.noRouteDismiss&&!0!==this.seamless},onEvents(){const t={...this.qListeners,input:stop,"popup-show":stop,"popup-hide":stop};return!0===this.autoClose&&(t.click=this.__onAutoClose),t},attrs(){return{role:"dialog","aria-modal":!0===this.useBackdrop?"true":"false",...this.qAttrs}}},methods:{focus(t){addFocusFn(()=>{let e=this.__getInnerNode();void 0!==e&&!0!==e.contains(document.activeElement)&&(e=(""!==t?e.querySelector(t):null)||e.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||e.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||e.querySelector("[autofocus], [data-autofocus]")||e).focus({preventScroll:!0})})},shake(t){t&&"function"==typeof t.focus?t.focus({preventScroll:!0}):this.focus(),this.$emit("shake");const e=this.__getInnerNode();void 0!==e&&(e.classList.remove("q-animate--scale"),e.classList.add("q-animate--scale"),clearTimeout(this.shakeTimeout),this.shakeTimeout=setTimeout(()=>{e.classList.remove("q-animate--scale")},170))},__getInnerNode(){return void 0!==this.__portal&&void 0!==this.__portal.$refs?this.__portal.$refs.inner:void 0},__show(t){this.__addHistory(),this.__refocusTarget=!0!==client.is.mobile&&!1===this.noRefocus&&null!==document.activeElement?document.activeElement:void 0,this.$el.dispatchEvent(create("popup-show",{bubbles:!0})),this.__updateMaximized(this.maximized),EscapeKey.register(this,t=>{!0!==this.seamless&&(!0===this.persistent||!0===this.noEscDismiss?!0!==this.maximized&&!0!==this.noShake&&this.shake():(this.$emit("escape-key"),this.hide(t)))}),this.__showPortal(),this.animating=!0,!0!==this.noFocus?(null!==document.activeElement&&document.activeElement.blur(),this.__registerTick(this.focus)):this.__removeTick(),this.__registerTimeout(()=>{if(!0===this.$q.platform.is.ios){if(!0!==this.seamless&&document.activeElement){const{top:t,bottom:e}=document.activeElement.getBoundingClientRect(),{innerHeight:i}=window,s=void 0!==window.visualViewport?window.visualViewport.height:i;t>0&&e>s/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-s,e>=i?1/0:Math.ceil(document.scrollingElement.scrollTop+e-s/2))),document.activeElement.scrollIntoView()}this.__portal.$el.click()}this.animating=!1,this.__showPortal(!0),this.$emit("show",t)},300)},__hide(t){this.__removeTick(),this.__removeHistory(),this.__cleanup(!0),this.__hidePortal(),this.animating=!0,void 0!==this.__refocusTarget&&null!==this.__refocusTarget&&(((t&&0===t.type.indexOf("key")?this.__refocusTarget.closest('[tabindex]:not([tabindex^="-"])'):void 0)||this.__refocusTarget).focus(),this.__refocusTarget=void 0),this.$el.dispatchEvent(create("popup-hide",{bubbles:!0})),this.__registerTimeout(()=>{this.__hidePortal(!0),this.animating=!1,this.$emit("hide",t)},300)},__cleanup(t){clearTimeout(this.shakeTimeout),!0!==t&&!0!==this.showing||(EscapeKey.pop(this),this.__updateMaximized(!1),!0!==this.seamless&&(this.__preventScroll(!1),this.__preventFocusout(!1)))},__updateMaximized(t){!0===t?!0!==this.isMaximized&&(maximizedModals<1&&document.body.classList.add("q-body--dialog"),maximizedModals++,this.isMaximized=!0):!0===this.isMaximized&&(maximizedModals<2&&document.body.classList.remove("q-body--dialog"),maximizedModals--,this.isMaximized=!1)},__preventFocusout(t){if(!0===this.$q.platform.is.desktop){const e=`${!0===t?"add":"remove"}EventListener`;document.body[e]("focusin",this.__onFocusChange)}},__onAutoClose(t){this.hide(t),void 0!==this.qListeners.click&&this.$emit("click",t)},__onBackdropClick(t){!0!==this.persistent&&!0!==this.noBackdropDismiss?this.hide(t):!0!==this.noShake&&this.shake(t.relatedTarget)},__onFocusChange(t){!0!==this.allowFocusOutside&&!0===this.__portalIsAccessible&&!0!==childHasFocus(this.__portal.$el,t.target)&&this.focus('[tabindex]:not([tabindex="-1"])')},__renderPortal(t){return t("div",{staticClass:`q-dialog fullscreen no-pointer-events q-dialog--${!0===this.useBackdrop?"modal":"seamless"}`,class:this.contentClass,style:this.contentStyle,attrs:this.attrs},[t("transition",{props:{name:"q-transition--fade"}},!0===this.useBackdrop?[t("div",{staticClass:"q-dialog__backdrop fixed-full",attrs:backdropAttrs,on:cache(this,"bkdrop",{[this.backdropEvt]:this.__onBackdropClick})})]:null),t("transition",{props:{...this.transitionProps}},[!0===this.showing?t("div",{ref:"inner",staticClass:"q-dialog__inner flex no-pointer-events",class:this.classes,attrs:{tabindex:-1},on:this.onEvents},slot(this,"default")):null])])}},created(){this.__useTick("__registerTick","__removeTick"),this.__useTimeout("__registerTimeout"),this.backdropEvt=!0===this.$q.platform.is.ios||this.$q.platform.is.safari?"click":"focusin"},mounted(){this.__processModelChange(this.value)},beforeDestroy(){this.__cleanup(),this.__refocusTarget=void 0}});const duration=150,mouseEvents=["mouseover","mouseout","mouseenter","mouseleave"];var QDrawer=Vue.extend({name:"QDrawer",inject:{layout:{default(){console.error("QDrawer needs to be child of QLayout")}}},mixins:[DarkMixin,HistoryMixin,TimeoutMixin,ModelToggleMixin,PreventScrollMixin],directives:{TouchPan:TouchPan},props:{side:{type:String,default:"left",validator:t=>["left","right"].includes(t)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:t=>["default","desktop","mobile"].includes(t),default:"default"},bordered:Boolean,elevated:Boolean,contentStyle:[String,Object,Array],contentClass:[String,Object,Array],overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},data(){const t="mobile"===this.behavior||"desktop"!==this.behavior&&this.layout.totalWidth<=this.breakpoint;return{belowBreakpoint:t,showing:!0===this.showIfAbove&&!1===t||!0===this.value}},watch:{belowBreakpoint(t){!0===t?(this.lastDesktopState=this.showing,!0===this.showing&&this.hide(!1)):!1===this.overlay&&"mobile"!==this.behavior&&!1!==this.lastDesktopState&&(!0===this.showing?(this.__applyPosition(0),this.__applyBackdrop(0),this.__cleanup()):this.show(!1))},"layout.totalWidth"(){!0!==this.layout.container&&!0===document.qScrollPrevented||this.__updateBelowBreakpoint()},side(t,e){this.layout.instances[e]===this&&(this.layout.instances[e]=void 0,this.layout[e].space=!1,this.layout[e].offset=0),this.layout.instances[t]=this,this.layout[t].size=this.size,this.layout[t].space=this.onLayout,this.layout[t].offset=this.offset},behavior(){this.__updateBelowBreakpoint()},breakpoint(){this.__updateBelowBreakpoint()},"layout.container"(t){!0===this.showing&&this.__preventScroll(!0!==t),!0===t&&this.__updateBelowBreakpoint()},"layout.scrollbarWidth"(){this.__applyPosition(!0===this.showing?0:void 0)},offset(t){this.__update("offset",t)},onLayout(t){this.$emit("on-layout",t),this.__update("space",t)},rightSide(){this.__applyPosition()},size(t){this.__applyPosition(),this.__updateSizeOnLayout(this.miniToOverlay,t)},miniToOverlay(t){this.__updateSizeOnLayout(t,this.size)},"$q.lang.rtl"(){this.__applyPosition()},mini(){!0===this.value&&(this.__animateMini(),this.layout.__animate())},isMini(t){this.$emit("mini-state",t)}},computed:{rightSide(){return"right"===this.side},otherSide(){return!0===this.rightSide?"left":"right"},offset(){return!0===this.showing&&!1===this.belowBreakpoint&&!1===this.overlay?!0===this.miniToOverlay?this.miniWidth:this.size:0},size(){return!0===this.isMini?this.miniWidth:this.width},fixed(){return!0===this.overlay||!0===this.miniToOverlay||this.layout.view.indexOf(this.rightSide?"R":"L")>-1||this.$q.platform.is.ios&&!0===this.layout.container},onLayout(){return!0===this.showing&&!1===this.belowBreakpoint&&!1===this.overlay},onScreenOverlay(){return!0===this.showing&&!1===this.belowBreakpoint&&!0===this.overlay},backdropClass(){return!1===this.showing?"hidden":null},headerSlot(){return!0===this.rightSide?"r"===this.layout.rows.top[2]:"l"===this.layout.rows.top[0]},footerSlot(){return!0===this.rightSide?"r"===this.layout.rows.bottom[2]:"l"===this.layout.rows.bottom[0]},aboveStyle(){const t={};return!0===this.layout.header.space&&!1===this.headerSlot&&(!0===this.fixed?t.top=`${this.layout.header.offset}px`:!0===this.layout.header.space&&(t.top=`${this.layout.header.size}px`)),!0===this.layout.footer.space&&!1===this.footerSlot&&(!0===this.fixed?t.bottom=`${this.layout.footer.offset}px`:!0===this.layout.footer.space&&(t.bottom=`${this.layout.footer.size}px`)),t},style(){const t={width:`${this.size}px`};return!0===this.belowBreakpoint?t:Object.assign(t,this.aboveStyle)},classes(){return`q-drawer--${this.side}`+(!0===this.bordered?" q-drawer--bordered":"")+(!0===this.isDark?" q-drawer--dark q-dark":"")+(!0!==this.showing?" q-layout--prevent-focus":"")+(!0===this.belowBreakpoint?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${!0===this.isMini?"mini":"standard"}`+(!0===this.fixed||!0!==this.onLayout?" fixed":"")+(!0===this.overlay||!0===this.miniToOverlay?" q-drawer--on-top":"")+(!0===this.headerSlot?" q-drawer--top-padding":""))},stateDirection(){return(!0===this.$q.lang.rtl?-1:1)*(!0===this.rightSide?1:-1)},isMini(){return!0===this.mini&&!0!==this.belowBreakpoint},onNativeEvents(){if(!0!==this.belowBreakpoint){const t={"!click":t=>{this.$emit("click",t)}};return mouseEvents.forEach(e=>{t[e]=(t=>{void 0!==this.qListeners[e]&&this.$emit(e,t)})}),t}},hideOnRouteChange(){return!0!==this.persistent&&(!0===this.belowBreakpoint||!0===this.onScreenOverlay)},openDirective(){const t=!0===this.$q.lang.rtl?this.side:this.otherSide;return[{name:"touch-pan",value:this.__openByTouch,modifiers:{[t]:!0,mouse:!0}}]},contentCloseDirective(){if(!0!==this.noSwipeClose){const t=!0===this.$q.lang.rtl?this.otherSide:this.side;return[{name:"touch-pan",value:this.__closeByTouch,modifiers:{[t]:!0,mouse:!0}}]}},backdropCloseDirective(){if(!0!==this.noSwipeBackdrop){const t=!0===this.$q.lang.rtl?this.otherSide:this.side;return[{name:"touch-pan",value:this.__closeByTouch,modifiers:{[t]:!0,mouse:!0,mouseAllDir:!0}}]}}},methods:{__applyPosition(t){void 0===t?this.$nextTick(()=>{t=!0===this.showing?0:this.size,this.__applyPosition(this.stateDirection*t)}):void 0!==this.$refs.content&&(!0!==this.layout.container||!0!==this.rightSide||!0!==this.belowBreakpoint&&Math.abs(t)!==this.size||(t+=this.stateDirection*this.layout.scrollbarWidth),this.__lastPosition!==t&&(this.$refs.content.style.transform=`translateX(${t}px)`,this.__lastPosition=t))},__applyBackdrop(t,e){void 0!==this.$refs.backdrop?this.$refs.backdrop.style.backgroundColor=this.lastBackdropBg=`rgba(0,0,0,${.4*t})`:!0!==e&&this.$nextTick(()=>{this.__applyBackdrop(t,!0)})},__setBackdropVisible(t){void 0!==this.$refs.backdrop&&this.$refs.backdrop.classList[!0===t?"remove":"add"]("hidden")},__setScrollable(t){const e=!0===t?"remove":!0!==this.layout.container?"add":"";""!==e&&document.body.classList[e]("q-body--drawer-toggle")},__animateMini(){void 0!==this.timerMini?clearTimeout(this.timerMini):void 0!==this.$el&&this.$el.classList.add("q-drawer--mini-animate"),this.timerMini=setTimeout(()=>{void 0!==this.$el&&this.$el.classList.remove("q-drawer--mini-animate"),this.timerMini=void 0},150)},__openByTouch(t){if(!1!==this.showing)return;const e=this.size,i=between(t.distance.x,0,e);if(!0===t.isFinal){const t=this.$refs.content,s=i>=Math.min(75,e);return t.classList.remove("no-transition"),void(!0===s?this.show():(this.layout.__animate(),this.__applyBackdrop(0),this.__applyPosition(this.stateDirection*e),t.classList.remove("q-drawer--delimiter"),t.classList.add("q-layout--prevent-focus"),this.__setBackdropVisible(!1)))}if(this.__applyPosition((!0===this.$q.lang.rtl?!0!==this.rightSide:this.rightSide)?Math.max(e-i,0):Math.min(0,i-e)),this.__applyBackdrop(between(i/e,0,1)),!0===t.isFirst){const t=this.$refs.content;t.classList.add("no-transition"),t.classList.add("q-drawer--delimiter"),t.classList.remove("q-layout--prevent-focus"),this.__setBackdropVisible(!0)}},__closeByTouch(t){if(!0!==this.showing)return;const e=this.size,i=t.direction===this.side,s=(!0===this.$q.lang.rtl?!0!==i:i)?between(t.distance.x,0,e):0;if(!0===t.isFinal){const t=Math.abs(s)<Math.min(75,e);return this.$refs.content.classList.remove("no-transition"),void(!0===t?(this.layout.__animate(),this.__applyBackdrop(1),this.__applyPosition(0)):this.hide())}this.__applyPosition(this.stateDirection*s),this.__applyBackdrop(between(1-s/e,0,1)),!0===t.isFirst&&this.$refs.content.classList.add("no-transition")},__show(t,e){if(this.__addHistory(),this.__setBackdropVisible(!0),!1!==t&&this.layout.__animate(),this.__applyPosition(0),!0===this.belowBreakpoint){const t=this.layout.instances[this.otherSide];void 0!==t&&!0===t.belowBreakpoint&&t.hide(!1),this.__applyBackdrop(1),!0!==this.layout.container&&this.__preventScroll(!0)}else this.__applyBackdrop(0),!1!==t&&this.__setScrollable(!1);this.__registerTimeout(()=>{!1!==t&&this.__setScrollable(!0),!0!==e&&this.$emit("show",t)},150)},__hide(t,e){this.__removeHistory(),!1!==t&&this.layout.__animate(),this.__applyBackdrop(0),this.__applyPosition(this.stateDirection*this.size),this.__setBackdropVisible(!1),this.__cleanup(),!0!==e?this.__registerTimeout(()=>{this.$emit("hide",t)},150):this.__removeTimeout()},__cleanup(){this.__preventScroll(!1),this.__setScrollable(!0)},__update(t,e){this.layout[this.side][t]!==e&&(this.layout[this.side][t]=e)},__updateLocal(t,e){this[t]!==e&&(this[t]=e)},__updateSizeOnLayout(t,e){this.__update("size",!0===t?this.miniWidth:e)},__updateBelowBreakpoint(){this.__updateLocal("belowBreakpoint","mobile"===this.behavior||"desktop"!==this.behavior&&this.layout.totalWidth<=this.breakpoint)}},created(){this.__useTimeout("__registerTimeout","__removeTimeout"),this.layout.instances[this.side]=this,this.__updateSizeOnLayout(this.miniToOverlay,this.size),this.__update("space",this.onLayout),this.__update("offset",this.offset),!0===this.showIfAbove&&!0!==this.value&&!0===this.showing&&void 0!==this.qListeners.input&&this.$emit("input",!0)},mounted(){this.$emit("on-layout",this.onLayout),this.$emit("mini-state",this.isMini),this.lastDesktopState=!0===this.showIfAbove;const t=()=>{this[`__${!0===this.showing?"show":"hide"}`](!1,!0)};0===this.layout.totalWidth?this.watcher=this.$watch("layout.totalWidth",()=>{this.watcher(),this.watcher=void 0,!1===this.showing&&!0===this.showIfAbove&&!1===this.belowBreakpoint?this.show(!1):t()}):this.$nextTick(t)},beforeDestroy(){void 0!==this.watcher&&this.watcher(),clearTimeout(this.timerMini),!0===this.showing&&this.__cleanup(),this.layout.instances[this.side]===this&&(this.layout.instances[this.side]=void 0,this.__update("size",0),this.__update("offset",0),this.__update("space",!1))},render(t){const e=[];!0===this.belowBreakpoint&&(!0!==this.noSwipeOpen&&e.push(t("div",{staticClass:`q-drawer__opener fixed-${this.side}`,attrs:ariaHidden,directives:this.openDirective})),e.push(t("div",{ref:"backdrop",staticClass:"fullscreen q-drawer__backdrop",class:this.backdropClass,attrs:ariaHidden,style:void 0!==this.lastBackdropBg?{backgroundColor:this.lastBackdropBg}:null,on:cache(this,"bkdrop",{click:this.hide}),directives:!1===this.showing?void 0:this.backdropCloseDirective})));const i=[t("div",{staticClass:"q-drawer__content fit "+(!0===this.layout.container?"overflow-auto":"scroll"),class:this.contentClass,style:this.contentStyle},!0===this.isMini&&void 0!==this.$scopedSlots.mini?this.$scopedSlots.mini():slot(this,"default"))];return!0===this.elevated&&!0===this.showing&&i.push(t("div",{staticClass:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),e.push(t("aside",{ref:"content",staticClass:"q-drawer",class:this.classes,style:this.style,on:this.onNativeEvents,directives:!0===this.belowBreakpoint?this.contentCloseDirective:void 0},i)),t("div",{staticClass:"q-drawer-container"},e)}});const attrs$3={role:"tooltip"};var QTooltip=Vue.extend({name:"QTooltip",mixins:[AnchorMixin,TimeoutMixin,ModelToggleMixin,Portal,TransitionMixin],props:{maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{default:"jump-down"},transitionHide:{default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:validatePosition},self:{type:String,default:"top middle",validator:validatePosition},offset:{type:Array,default:()=>[14,14],validator:validateOffset},scrollTarget:{default:void 0},delay:{type:Number,default:0},hideDelay:{type:Number,default:0}},computed:{anchorOrigin(){return parsePosition(this.anchor,this.$q.lang.rtl)},selfOrigin(){return parsePosition(this.self,this.$q.lang.rtl)},hideOnRouteChange(){return!0!==this.persistent}},methods:{__show(t){this.__showPortal(),this.__registerTick(()=>{this.observer=new MutationObserver(()=>this.updatePosition()),this.observer.observe(this.__portal.$el,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),this.updatePosition(),this.__configureScrollTarget()}),void 0===this.unwatch&&(this.unwatch=this.$watch(()=>this.$q.screen.width+"|"+this.$q.screen.height+"|"+this.self+"|"+this.anchor+"|"+this.$q.lang.rtl,this.updatePosition)),this.__registerTimeout(()=>{this.__showPortal(!0),this.$emit("show",t)},300)},__hide(t){this.__removeTick(),this.__anchorCleanup(),this.__hidePortal(),this.__registerTimeout(()=>{this.__hidePortal(!0),this.$emit("hide",t)},300)},__anchorCleanup(){void 0!==this.observer&&(this.observer.disconnect(),this.observer=void 0),void 0!==this.unwatch&&(this.unwatch(),this.unwatch=void 0),this.__unconfigureScrollTarget(),cleanEvt(this,"tooltipTemp")},updatePosition(){if(void 0===this.anchorEl||void 0===this.__portal)return;const t=this.__portal.$el;8!==t.nodeType?setPosition({el:t,offset:this.offset,anchorEl:this.anchorEl,anchorOrigin:this.anchorOrigin,selfOrigin:this.selfOrigin,maxHeight:this.maxHeight,maxWidth:this.maxWidth}):setTimeout(this.updatePosition,25)},__delayShow(t){if(!0===this.$q.platform.is.mobile){clearSelection(),document.body.classList.add("non-selectable");const t=this.anchorEl;addEvt(this,"tooltipTemp",["touchmove","touchcancel","touchend","click"].map(e=>[t,e,"__delayHide","passiveCapture"]))}this.__registerTimeout(()=>{this.show(t)},this.delay)},__delayHide(t){!0===this.$q.platform.is.mobile&&(cleanEvt(this,"tooltipTemp"),clearSelection(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),this.__registerTimeout(()=>{this.hide(t)},this.hideDelay)},__configureAnchorEl(){if(!0===this.noParentEvent||void 0===this.anchorEl)return;addEvt(this,"anchor",!0===this.$q.platform.is.mobile?[[this.anchorEl,"touchstart","__delayShow","passive"]]:[[this.anchorEl,"mouseenter","__delayShow","passive"],[this.anchorEl,"mouseleave","__delayHide","passive"]])},__unconfigureScrollTarget(){void 0!==this.__scrollTarget&&(this.__changeScrollEvent(this.__scrollTarget),this.__scrollTarget=void 0)},__configureScrollTarget(){if(void 0!==this.anchorEl||void 0!==this.scrollTarget){this.__scrollTarget=getScrollTarget(this.anchorEl,this.scrollTarget);const t=!0===this.noParentEvent?this.updatePosition:this.hide;this.__changeScrollEvent(this.__scrollTarget,t)}},__renderPortal(t){return t("transition",{props:{...this.transitionProps}},[!0===this.showing?t("div",{staticClass:"q-tooltip q-tooltip--style q-position-engine no-pointer-events",class:this.contentClass,style:this.contentStyle,attrs:attrs$3},slot(this,"default")):null])}},created(){this.__useTick("__registerTick","__removeTick"),this.__useTimeout("__registerTimeout")},mounted(){this.__processModelChange(this.value)}}),QList=Vue.extend({name:"QList",mixins:[ListenersMixin,DarkMixin],props:{bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},computed:{classes(){return"q-list"+(!0===this.bordered?" q-list--bordered":"")+(!0===this.dense?" q-list--dense":"")+(!0===this.separator?" q-list--separator":"")+(!0===this.isDark?" q-list--dark":"")+(!0===this.padding?" q-list--padding":"")}},render(t){return t(this.tag,{class:this.classes,on:{...this.qListeners}},slot(this,"default"))}}),QItem=Vue.extend({name:"QItem",mixins:[DarkMixin,RouterLinkMixin,TagMixin,ListenersMixin],props:{active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},computed:{isActionable(){return!0===this.clickable||!0===this.hasLink||"label"===this.tag},isClickable(){return!0!==this.disable&&!0===this.isActionable},classes(){return"q-item q-item-type row no-wrap"+(!0===this.dense?" q-item--dense":"")+(!0===this.isDark?" q-item--dark":"")+(!0===this.hasLink&&null===this.active?this.linkClass:!0===this.active?` q-item--active${void 0!==this.activeClass?` ${this.activeClass}`:""} `:"")+(!0===this.disable?" disabled":"")+(!0===this.isClickable?" q-item--clickable q-link cursor-pointer "+(!0===this.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(!0===this.focused?" q-manual-focusable--focused":""):"")},style(){if(void 0!==this.insetLevel){return{["padding"+(!0===this.$q.lang.rtl?"Right":"Left")]:16+56*this.insetLevel+"px"}}},onEvents(){return{...this.qListeners,click:this.__onClick,keyup:this.__onKeyup}}},methods:{__onClick(t){!0===this.isClickable&&(void 0!==this.$refs.blurTarget&&(!0!==t.qKeyEvent&&document.activeElement===this.$el?this.$refs.blurTarget.focus():document.activeElement===this.$refs.blurTarget&&this.$el.focus()),this.__navigateOnClick(t))},__onKeyup(t){if(!0===this.isClickable&&!0===isKeyCode(t,13)){stopAndPrevent(t),t.qKeyEvent=!0;const e=new MouseEvent("click",t);e.qKeyEvent=!0,this.$el.dispatchEvent(e)}this.$emit("keyup",t)},__getContent(t){const e=uniqueSlot(this,"default",[]);return!0===this.isClickable&&e.unshift(t("div",{staticClass:"q-focus-helper",attrs:{tabindex:-1},ref:"blurTarget"})),e}},render(t){const e={class:this.classes,style:this.style,attrs:{role:"listitem"},on:this.onEvents};return!0===this.isClickable?(e.attrs.tabindex=this.tabindex||"0",Object.assign(e.attrs,this.linkAttrs)):!0===this.isActionable&&(e.attrs["aria-disabled"]="true"),t(this.linkTag,e,this.__getContent(t))}}),QItemSection=Vue.extend({name:"QItemSection",mixins:[ListenersMixin],props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},computed:{classes(){const t=this.avatar||this.side||this.thumbnail;return{"q-item__section--top":this.top,"q-item__section--avatar":this.avatar,"q-item__section--thumbnail":this.thumbnail,"q-item__section--side":t,"q-item__section--nowrap":this.noWrap,"q-item__section--main":!t,[`justify-${this.top?"start":"center"}`]:!0}}},render(t){return t("div",{staticClass:"q-item__section column",class:this.classes,on:{...this.qListeners}},slot(this,"default"))}});function run(t,e,i){e.handler?e.handler(t,i,i.caret):i.runCmd(e.cmd,e.param)}function __getGroup(t,e){return t("div",{staticClass:"q-editor__toolbar-group"},e)}function getBtn(t,e,i,s,o=!1){const n=o||"toggle"===i.type&&(i.toggled?i.toggled(e):i.cmd&&e.caret.is(i.cmd,i.param)),r=[],a={click(t){s&&s(),run(t,i,e)}};if(i.tip&&e.$q.platform.is.desktop){const e=i.key?t("div",[t("small",`(CTRL + ${String.fromCharCode(i.key)})`)]):null;r.push(t(QTooltip,{props:{delay:1e3}},[t("div",{domProps:{innerHTML:i.tip}}),e]))}return t(QBtn,{props:{...e.buttonProps,icon:null!==i.icon?i.icon:void 0,color:n?i.toggleColor||e.toolbarToggleColor:i.color||e.toolbarColor,textColor:n&&!e.toolbarPush?null:i.textColor||e.toolbarTextColor,label:i.label,disable:!!i.disable&&("function"!=typeof i.disable||i.disable(e)),size:"sm"},on:a},r)}function getDropdown(t,e,i){const s="only-icons"===i.list;let o,n,r=i.label,a=null!==i.icon?i.icon:void 0;function l(){d.componentInstance.hide()}if(s)n=i.options.map(i=>{const s=void 0===i.type&&e.caret.is(i.cmd,i.param);return s&&(r=i.tip,a=null!==i.icon?i.icon:void 0),getBtn(t,e,i,l,s)}),o=e.toolbarBackgroundClass,n=[__getGroup(t,n)];else{const s=void 0!==e.toolbarToggleColor?`text-${e.toolbarToggleColor}`:null,h=void 0!==e.toolbarTextColor?`text-${e.toolbarTextColor}`:null,d="no-icons"===i.list;n=i.options.map(i=>{const o=!!i.disable&&i.disable(e),n=void 0===i.type&&e.caret.is(i.cmd,i.param);n&&(r=i.tip,a=null!==i.icon?i.icon:void 0);const c=i.htmlTip;return t(QItem,{props:{active:n,activeClass:s,clickable:!0,disable:o,dense:!0},on:{click(t){l(),e.$refs.content&&e.$refs.content.focus(),e.caret.restore(),run(t,i,e)}}},[!0===d?null:t(QItemSection,{class:n?s:h,props:{side:!0}},[t(QIcon,{props:{name:null!==i.icon?i.icon:void 0}})]),t(QItemSection,[c?t("div",{staticClass:"text-no-wrap",domProps:{innerHTML:i.htmlTip}}):i.tip?t("div",{staticClass:"text-no-wrap"},[i.tip]):null])])}),o=[e.toolbarBackgroundClass,h],n=[t(QList,[n])]}const h=i.highlight&&r!==i.label,d=t(QBtnDropdown,{props:{...e.buttonProps,noCaps:!0,noWrap:!0,color:h?e.toolbarToggleColor:e.toolbarColor,textColor:h&&!e.toolbarPush?null:e.toolbarTextColor,label:i.fixedLabel?i.label:r,icon:i.fixedIcon?null!==i.icon?i.icon:void 0:a,contentClass:o}},n);return d}function getToolbar(t,e){if(e.caret)return e.buttons.filter(t=>!e.isViewingSource||t.find(t=>"viewsource"===t.cmd)).map(i=>__getGroup(t,i.map(i=>(!e.isViewingSource||"viewsource"===i.cmd)&&("slot"===i.type?slot(e,i.slot):"dropdown"===i.type?getDropdown(t,e,i):getBtn(t,e,i)))))}function getFonts(t,e,i,s={}){const o=Object.keys(s);if(0===o.length)return{};const n={default_font:{cmd:"fontName",param:t,icon:i,tip:e}};return o.forEach(t=>{const e=s[t];n[t]={cmd:"fontName",param:e,icon:i,tip:e,htmlTip:`<font face="${e}">${e}</font>`}}),n}function getLinkEditor(t,e,i){if(e.caret){const s=e.toolbarColor||e.toolbarTextColor;let o=e.editLinkUrl;const n=()=>{e.caret.restore(),o!==e.editLinkUrl&&document.execCommand("createLink",!1,""===o?" ":o),e.editLinkUrl=null,!0===i&&e.$nextTick(e.__onInput)};return[t("div",{staticClass:"q-mx-xs",class:`text-${s}`},[`${e.$q.lang.editor.url}: `]),t("input",{key:"qedt_btm_input",staticClass:"col q-editor__link-input",domProps:{value:o},on:{input:t=>{stop(t),o=t.target.value},keydown:t=>{if(!0!==shouldIgnoreKey(t))switch(t.keyCode){case 13:return prevent(t),n();case 27:prevent(t),e.caret.restore(),e.editLinkUrl&&"https://"!==e.editLinkUrl||document.execCommand("unlink"),e.editLinkUrl=null}}}}),__getGroup(t,[t(QBtn,{key:"qedt_btm_rem",attrs:{tabindex:-1},props:{...e.buttonProps,label:e.$q.lang.label.remove,noCaps:!0},on:{click:()=>{e.caret.restore(),document.execCommand("unlink"),e.editLinkUrl=null,!0===i&&e.$nextTick(e.__onInput)}}}),t(QBtn,{key:"qedt_btm_upd",props:{...e.buttonProps,label:e.$q.lang.label.update,noCaps:!0},on:{click:n}})])]}}function getBlockElement(t,e){if(e&&t===e)return null;const i=t.nodeName.toLowerCase();if(!0===["div","li","ul","ol","blockquote"].includes(i))return t;const s=(window.getComputedStyle?window.getComputedStyle(t):t.currentStyle).display;return"block"===s||"table"===s?t:getBlockElement(t.parentNode)}function isChildOf(t,e,i){return!(!t||t===document.body)&&(!0===i&&t===e||(e===document?document.body:e).contains(t.parentNode))}function createRange(t,e,i){if(i||((i=document.createRange()).selectNode(t),i.setStart(t,0)),0===e.count)i.setEnd(t,e.count);else if(e.count>0)if(t.nodeType===Node.TEXT_NODE)t.textContent.length<e.count?e.count-=t.textContent.length:(i.setEnd(t,e.count),e.count=0);else for(let s=0;0!==e.count&&s<t.childNodes.length;s++)i=createRange(t.childNodes[s],e,i);return i}const urlRegex=/^https?:\/\//;class Caret{constructor(t,e){this.el=t,this.vm=e,this._range=null}get selection(){if(this.el){const t=document.getSelection();if(isChildOf(t.anchorNode,this.el,!0)&&isChildOf(t.focusNode,this.el,!0))return t}return null}get hasSelection(){return null!==this.selection&&this.selection.toString().length>0}get range(){const t=this.selection;return null!==t&&t.rangeCount?t.getRangeAt(0):this._range}get parent(){const t=this.range;if(null!==t){const e=t.startContainer;return e.nodeType===document.ELEMENT_NODE?e:e.parentNode}return null}get blockParent(){const t=this.parent;return null!==t?getBlockElement(t,this.el):null}save(t=this.range){null!==t&&(this._range=t)}restore(t=this._range){const e=document.createRange(),i=document.getSelection();null!==t?(e.setStart(t.startContainer,t.startOffset),e.setEnd(t.endContainer,t.endOffset),i.removeAllRanges(),i.addRange(e)):(i.selectAllChildren(this.el),i.collapseToEnd())}savePosition(){let t,e=-1;const i=document.getSelection(),s=this.el.parentNode;if(i.focusNode&&isChildOf(i.focusNode,s))for(t=i.focusNode,e=i.focusOffset;t&&t!==s;)t!==this.el&&t.previousSibling?e+=(t=t.previousSibling).textContent.length:t=t.parentNode;this.savedPos=e}restorePosition(t=0){if(this.savedPos>0&&this.savedPos<t){const t=window.getSelection(),e=createRange(this.el,{count:this.savedPos});e&&(e.collapse(!1),t.removeAllRanges(),t.addRange(e))}}hasParent(t,e){const i=e?this.parent:this.blockParent;return null!==i&&i.nodeName.toLowerCase()===t.toLowerCase()}hasParents(t,e,i=this.parent){return null!==i&&(!0===t.includes(i.nodeName.toLowerCase())||!0===e&&this.hasParents(t,e,i.parentNode))}is(t,e){if(null===this.selection)return!1;switch(t){case"formatBlock":return"DIV"===e&&this.parent===this.el||this.hasParent(e,"PRE"===e);case"link":return this.hasParent("A",!0);case"fontSize":return document.queryCommandValue(t)===e;case"fontName":const i=document.queryCommandValue(t);return i===`"${e}"`||i===e;case"fullscreen":return this.vm.inFullscreen;case"viewsource":return this.vm.isViewingSource;case void 0:return!1;default:const s=document.queryCommandState(t);return void 0!==e?s===e:s}}getParentAttribute(t){return null!==this.parent?this.parent.getAttribute(t):null}can(t){return"outdent"===t?this.hasParents(["blockquote","li"],!0):"indent"===t?this.hasParents(["li"],!0):"link"===t?null!==this.selection||this.is("link"):void 0}apply(t,e,i=noop){if("formatBlock"===t)["BLOCKQUOTE","H1","H2","H3","H4","H5","H6"].includes(e)&&this.is(t,e)&&(t="outdent",e=null),"PRE"===e&&this.is(t,"PRE")&&(e="P");else{if("print"===t){i();const t=window.open();return t.document.write(`\n <!doctype html>\n <html>\n <head>\n <title>Print - ${document.title}</title>\n </head>\n <body>\n <div>${this.el.innerHTML}</div>\n </body>\n </html>\n `),t.print(),void t.close()}if("link"===t){const t=this.getParentAttribute("href");if(null===t){const t=this.selectWord(this.selection),e=t?t.toString():"";if(!(e.length||this.range&&this.range.cloneContents().querySelector("img")))return;this.vm.editLinkUrl=urlRegex.test(e)?e:"https://",document.execCommand("createLink",!1,this.vm.editLinkUrl),this.save(t.getRangeAt(0))}else this.vm.editLinkUrl=t,this.range.selectNodeContents(this.parent),this.save();return}if("fullscreen"===t)return this.vm.toggleFullscreen(),void i();if("viewsource"===t)return this.vm.isViewingSource=!1===this.vm.isViewingSource,this.vm.__setContent(this.vm.value),void i()}document.execCommand(t,!1,e),i()}selectWord(t){if(null===t||!0!==t.isCollapsed||void 0===t.modify)return t;const e=document.createRange();e.setStart(t.anchorNode,t.anchorOffset),e.setEnd(t.focusNode,t.focusOffset);const i=e.collapsed?["backward","forward"]:["forward","backward"];e.detach();const s=t.focusNode,o=t.focusOffset;return t.collapse(t.anchorNode,t.anchorOffset),t.modify("move",i[0],"character"),t.modify("move",i[1],"word"),t.extend(s,o),t.modify("extend",i[1],"character"),t.modify("extend",i[0],"word"),t}}const toString=Object.prototype.toString,hasOwn=Object.prototype.hasOwnProperty,notPlainObject=new Set(["Boolean","Number","String","Function","Array","Date","RegExp"].map(t=>"[object "+t+"]"));function isPlainObject(t){if(t!==Object(t)||!0===notPlainObject.has(toString.call(t)))return!1;if(t.constructor&&!1===hasOwn.call(t,"constructor")&&!1===hasOwn.call(t.constructor.prototype,"isPrototypeOf"))return!1;let e;for(e in t);return void 0===e||hasOwn.call(t,e)}function extend(){let t,e,i,s,o,n,r=arguments[0]||{},a=1,l=!1;const h=arguments.length;for("boolean"==typeof r&&(l=r,r=arguments[1]||{},a=2),Object(r)!==r&&"function"!=typeof r&&(r={}),h===a&&(r=this,a--);a<h;a++)if(null!==(t=arguments[a]))for(e in t)i=r[e],r!==(s=t[e])&&(!0===l&&s&&((o=Array.isArray(s))||!0===isPlainObject(s))?(n=!0===o?!0===Array.isArray(i)?i:[]:!0===isPlainObject(i)?i:{},r[e]=extend(l,n,s)):void 0!==s&&(r[e]=s));return r}var QEditor=Vue.extend({name:"QEditor",mixins:[ListenersMixin,FullscreenMixin,DarkMixin],props:{value:{type:String,required:!0},readonly:Boolean,disable:Boolean,minHeight:{type:String,default:"10rem"},maxHeight:String,height:String,definitions:Object,fonts:Object,placeholder:String,toolbar:{type:Array,validator:t=>0===t.length||t.every(t=>t.length),default:()=>[["left","center","right","justify"],["bold","italic","underline","strike"],["undo","redo"]]},toolbarColor:String,toolbarBg:String,toolbarTextColor:String,toolbarToggleColor:{type:String,default:"primary"},toolbarOutline:Boolean,toolbarPush:Boolean,toolbarRounded:Boolean,paragraphTag:{type:String,validator:t=>["div","p"].includes(t),default:"div"},contentStyle:Object,contentClass:[Object,Array,String],square:Boolean,flat:Boolean,dense:Boolean},computed:{editable(){return!this.readonly&&!this.disable},hasToolbar(){return this.toolbar&&this.toolbar.length>0},toolbarBackgroundClass(){if(this.toolbarBg)return`bg-${this.toolbarBg}`},buttonProps(){return{type:"a",flat:!0!==this.toolbarOutline&&!0!==this.toolbarPush,noWrap:!0,outline:this.toolbarOutline,push:this.toolbarPush,rounded:this.toolbarRounded,dense:!0,color:this.toolbarColor,disable:!this.editable,size:"sm"}},buttonDef(){const t=this.$q.lang.editor,e=this.$q.iconSet.editor;return{bold:{cmd:"bold",icon:e.bold,tip:t.bold,key:66},italic:{cmd:"italic",icon:e.italic,tip:t.italic,key:73},strike:{cmd:"strikeThrough",icon:e.strikethrough,tip:t.strikethrough,key:83},underline:{cmd:"underline",icon:e.underline,tip:t.underline,key:85},unordered:{cmd:"insertUnorderedList",icon:e.unorderedList,tip:t.unorderedList},ordered:{cmd:"insertOrderedList",icon:e.orderedList,tip:t.orderedList},subscript:{cmd:"subscript",icon:e.subscript,tip:t.subscript,htmlTip:"x<subscript>2</subscript>"},superscript:{cmd:"superscript",icon:e.superscript,tip:t.superscript,htmlTip:"x<superscript>2</superscript>"},link:{cmd:"link",disable:t=>t.caret&&!t.caret.can("link"),icon:e.hyperlink,tip:t.hyperlink,key:76},fullscreen:{cmd:"fullscreen",icon:e.toggleFullscreen,tip:t.toggleFullscreen,key:70},viewsource:{cmd:"viewsource",icon:e.viewSource,tip:t.viewSource},quote:{cmd:"formatBlock",param:"BLOCKQUOTE",icon:e.quote,tip:t.quote,key:81},left:{cmd:"justifyLeft",icon:e.left,tip:t.left},center:{cmd:"justifyCenter",icon:e.center,tip:t.center},right:{cmd:"justifyRight",icon:e.right,tip:t.right},justify:{cmd:"justifyFull",icon:e.justify,tip:t.justify},print:{type:"no-state",cmd:"print",icon:e.print,tip:t.print,key:80},outdent:{type:"no-state",disable:t=>t.caret&&!t.caret.can("outdent"),cmd:"outdent",icon:e.outdent,tip:t.outdent},indent:{type:"no-state",disable:t=>t.caret&&!t.caret.can("indent"),cmd:"indent",icon:e.indent,tip:t.indent},removeFormat:{type:"no-state",cmd:"removeFormat",icon:e.removeFormat,tip:t.removeFormat},hr:{type:"no-state",cmd:"insertHorizontalRule",icon:e.hr,tip:t.hr},undo:{type:"no-state",cmd:"undo",icon:e.undo,tip:t.undo,key:90},redo:{type:"no-state",cmd:"redo",icon:e.redo,tip:t.redo,key:89},h1:{cmd:"formatBlock",param:"H1",icon:e.heading1||e.heading,tip:t.heading1,htmlTip:`<h1 class="q-ma-none">${t.heading1}</h1>`},h2:{cmd:"formatBlock",param:"H2",icon:e.heading2||e.heading,tip:t.heading2,htmlTip:`<h2 class="q-ma-none">${t.heading2}</h2>`},h3:{cmd:"formatBlock",param:"H3",icon:e.heading3||e.heading,tip:t.heading3,htmlTip:`<h3 class="q-ma-none">${t.heading3}</h3>`},h4:{cmd:"formatBlock",param:"H4",icon:e.heading4||e.heading,tip:t.heading4,htmlTip:`<h4 class="q-ma-none">${t.heading4}</h4>`},h5:{cmd:"formatBlock",param:"H5",icon:e.heading5||e.heading,tip:t.heading5,htmlTip:`<h5 class="q-ma-none">${t.heading5}</h5>`},h6:{cmd:"formatBlock",param:"H6",icon:e.heading6||e.heading,tip:t.heading6,htmlTip:`<h6 class="q-ma-none">${t.heading6}</h6>`},p:{cmd:"formatBlock",param:this.paragraphTag.toUpperCase(),icon:e.heading,tip:t.paragraph},code:{cmd:"formatBlock",param:"PRE",icon:e.code,htmlTip:`<code>${t.code}</code>`},"size-1":{cmd:"fontSize",param:"1",icon:e.size1||e.size,tip:t.size1,htmlTip:`<font size="1">${t.size1}</font>`},"size-2":{cmd:"fontSize",param:"2",icon:e.size2||e.size,tip:t.size2,htmlTip:`<font size="2">${t.size2}</font>`},"size-3":{cmd:"fontSize",param:"3",icon:e.size3||e.size,tip:t.size3,htmlTip:`<font size="3">${t.size3}</font>`},"size-4":{cmd:"fontSize",param:"4",icon:e.size4||e.size,tip:t.size4,htmlTip:`<font size="4">${t.size4}</font>`},"size-5":{cmd:"fontSize",param:"5",icon:e.size5||e.size,tip:t.size5,htmlTip:`<font size="5">${t.size5}</font>`},"size-6":{cmd:"fontSize",param:"6",icon:e.size6||e.size,tip:t.size6,htmlTip:`<font size="6">${t.size6}</font>`},"size-7":{cmd:"fontSize",param:"7",icon:e.size7||e.size,tip:t.size7,htmlTip:`<font size="7">${t.size7}</font>`}}},buttons(){const t=this.definitions||{},e=this.definitions||this.fonts?extend(!0,{},this.buttonDef,t,getFonts(this.defaultFont,this.$q.lang.editor.defaultFont,this.$q.iconSet.editor.font,this.fonts)):this.buttonDef;return this.toolbar.map(i=>i.map(i=>{if(i.options)return{type:"dropdown",icon:i.icon,label:i.label,size:"sm",dense:!0,fixedLabel:i.fixedLabel,fixedIcon:i.fixedIcon,highlight:i.highlight,list:i.list,options:i.options.map(t=>e[t])};const s=e[i];return s?"no-state"===s.type||t[i]&&(void 0===s.cmd||this.buttonDef[s.cmd]&&"no-state"===this.buttonDef[s.cmd].type)?s:Object.assign({type:"toggle"},s):{type:"slot",slot:i}}))},keys(){const t={},e=e=>{e.key&&(t[e.key]={cmd:e.cmd,param:e.param})};return this.buttons.forEach(t=>{t.forEach(t=>{t.options?t.options.forEach(e):e(t)})}),t},innerStyle(){return this.inFullscreen?this.contentStyle:[{minHeight:this.minHeight,height:this.height,maxHeight:this.maxHeight},this.contentStyle]},classes(){return`q-editor q-editor--${!0===this.isViewingSource?"source":"default"}`+(!0===this.disable?" disabled":"")+(!0===this.inFullscreen?" fullscreen column":"")+(!0===this.square?" q-editor--square no-border-radius":"")+(!0===this.flat?" q-editor--flat":"")+(!0===this.dense?" q-editor--dense":"")+(!0===this.isDark?" q-editor--dark q-dark":"")},innerClass(){return[this.contentClass,{col:this.inFullscreen,"overflow-auto":this.inFullscreen||this.maxHeight}]},attrs(){return!0===this.disable?{"aria-disabled":"true"}:!0===this.readonly?{"aria-readonly":"true"}:void 0},onEditor(){return{focusin:this.__onFocusin,focusout:this.__onFocusout}}},data(){return{lastEmit:this.value,editLinkUrl:null,isViewingSource:!1}},watch:{value(t){this.lastEmit!==t&&(this.lastEmit=t,this.__setContent(t,!0))}},methods:{__onInput(){if(void 0!==this.$refs.content){const t=!0===this.isViewingSource?this.$refs.content.innerText:this.$refs.content.innerHTML;t!==this.value&&(this.lastEmit=t,this.$emit("input",t))}},__onKeydown(t){if(this.$emit("keydown",t),!0!==t.ctrlKey||!0===shouldIgnoreKey(t))return this.refreshToolbar(),void(this.$q.platform.is.ie&&this.$nextTick(this.__onInput));const e=t.keyCode,i=this.keys[e];if(void 0!==i){const{cmd:e,param:s}=i;stopAndPrevent(t),this.runCmd(e,s,!1)}},__onClick(t){this.refreshToolbar(),this.$emit("click",t)},__onBlur(t){if(void 0!==this.$refs.content){const{scrollTop:t,scrollHeight:e}=this.$refs.content;this.__offsetBottom=e-t}!0!==this.$q.platform.is.ie&&this.caret.save(),this.$emit("blur",t)},__onFocus(t){this.$nextTick(()=>{void 0!==this.$refs.content&&void 0!==this.__offsetBottom&&(this.$refs.content.scrollTop=this.$refs.content.scrollHeight-this.__offsetBottom)}),this.$emit("focus",t)},__onFocusin(t){if(!0===this.$el.contains(t.target)&&(null===t.relatedTarget||!0!==this.$el.contains(t.relatedTarget))){const t=`inner${!0===this.isViewingSource?"Text":"HTML"}`;this.caret.restorePosition(this.$refs.content[t].length),this.refreshToolbar()}},__onFocusout(t){!0!==this.$el.contains(t.target)||null!==t.relatedTarget&&!0===this.$el.contains(t.relatedTarget)||(this.caret.savePosition(),this.refreshToolbar())},__onPointerStart(t){this.__offsetBottom=void 0,void 0!==this.qListeners[t.type]&&this.$emit(t.type,t)},__onSelectionchange(){this.caret.save()},runCmd(t,e,i=!0){this.focus(),this.caret.restore(),this.caret.apply(t,e,()=>{this.focus(),this.caret.save(),!0!==this.$q.platform.is.ie&&!0!==this.$q.platform.is.edge||this.$nextTick(this.__onInput),i&&this.refreshToolbar()})},refreshToolbar(){setTimeout(()=>{this.editLinkUrl=null,this.$forceUpdate()},1)},focus(){addFocusFn(()=>{void 0!==this.$refs.content&&this.$refs.content.focus({preventScroll:!0})})},getContentEl(){return this.$refs.content},__setContent(t,e){if(void 0!==this.$refs.content){!0===e&&this.caret.savePosition();const i=`inner${!0===this.isViewingSource?"Text":"HTML"}`;this.$refs.content[i]=t,!0===e&&(this.caret.restorePosition(this.$refs.content[i].length),this.refreshToolbar())}}},created(){!1===isSSR&&(document.execCommand("defaultParagraphSeparator",!1,this.paragraphTag),this.defaultFont=window.getComputedStyle(document.body).fontFamily)},mounted(){this.caret=new Caret(this.$refs.content,this),this.__setContent(this.value),this.refreshToolbar(),document.addEventListener("selectionchange",this.__onSelectionchange)},beforeDestroy(){document.removeEventListener("selectionchange",this.__onSelectionchange)},render(t){let e;if(this.hasToolbar){const i=[t("div",{key:"qedt_top",staticClass:"q-editor__toolbar row no-wrap scroll-x",class:this.toolbarBackgroundClass},getToolbar(t,this))];null!==this.editLinkUrl&&i.push(t("div",{key:"qedt_btm",staticClass:"q-editor__toolbar row no-wrap items-center scroll-x",class:this.toolbarBackgroundClass},getLinkEditor(t,this,this.$q.platform.is.ie))),e=t("div",{key:"toolbar_ctainer",staticClass:"q-editor__toolbars-container"},i)}const i={...this.qListeners,input:this.__onInput,keydown:this.__onKeydown,click:this.__onClick,blur:this.__onBlur,focus:this.__onFocus,mousedown:this.__onPointerStart,touchstart:this.__onPointerStart};return t("div",{style:{height:!0===this.inFullscreen?"100%":null},class:this.classes,attrs:this.attrs,on:this.onEditor},[e,t("div",{ref:"content",staticClass:"q-editor__content",style:this.innerStyle,class:this.innerClass,attrs:{contenteditable:this.editable,placeholder:this.placeholder},domProps:isSSR?{innerHTML:this.value}:void 0,on:i})])}}),QItemLabel=Vue.extend({name:"QItemLabel",mixins:[ListenersMixin],props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},computed:{classes(){return{"q-item__label--overline text-overline":this.overline,"q-item__label--caption text-caption":this.caption,"q-item__label--header":this.header,ellipsis:1===parseInt(this.lines,10)}},style(){if(void 0!==this.lines&&parseInt(this.lines,10)>1)return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":this.lines}}},render(t){return t("div",{staticClass:"q-item__label",style:this.style,class:this.classes,on:{...this.qListeners}},slot(this,"default"))}}),QSlideTransition=Vue.extend({name:"QSlideTransition",props:{appear:Boolean,duration:{type:Number,default:300}},methods:{__begin(t,e,i){void 0!==e&&(t.style.height=`${e}px`),t.style.transition=`height ${this.duration}ms cubic-bezier(.25, .8, .50, 1)`,this.animating=!0,this.done=i},__end(t,e){t.style.overflowY=null,t.style.height=null,t.style.transition=null,this.__cleanup(),e!==this.lastEvent&&this.$emit(e)},__cleanup(){this.done&&this.done(),this.done=null,this.animating=!1,clearTimeout(this.timer),clearTimeout(this.timerFallback),void 0!==this.el&&this.el.removeEventListener("transitionend",this.animListener),this.animListener=null}},beforeDestroy(){this.animating&&this.__cleanup()},render(t){return t("transition",{props:{css:!1,appear:this.appear},on:cache(this,"tr",{enter:(t,e)=>{let i=0;this.el=t,!0===this.animating?(this.__cleanup(),i=t.offsetHeight===t.scrollHeight?0:void 0):(this.lastEvent="hide",t.style.overflowY="hidden"),this.__begin(t,i,e),this.timer=setTimeout(()=>{t.style.height=`${t.scrollHeight}px`,this.animListener=(e=>{Object(e)===e&&e.target!==t||this.__end(t,"show")}),t.addEventListener("transitionend",this.animListener),this.timerFallback=setTimeout(this.animListener,1.1*this.duration)},100)},leave:(t,e)=>{let i;this.el=t,!0===this.animating?this.__cleanup():(this.lastEvent="show",t.style.overflowY="hidden",i=t.scrollHeight),this.__begin(t,i,e),this.timer=setTimeout(()=>{t.style.height=0,this.animListener=(e=>{Object(e)===e&&e.target!==t||this.__end(t,"hide")}),t.addEventListener("transitionend",this.animListener),this.timerFallback=setTimeout(this.animListener,1.1*this.duration)},100)}})},slot(this,"default"))}});const insetMap={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},margins={xs:2,sm:4,md:8,lg:16,xl:24};var QSeparator=Vue.extend({name:"QSeparator",mixins:[DarkMixin,ListenersMixin],props:{spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},computed:{orientation(){return!0===this.vertical?"vertical":"horizontal"},classPrefix(){return` q-separator--${this.orientation}`},insetClass(){return!1!==this.inset?`${this.classPrefix}-${insetMap[this.inset]}`:""},classes(){return`q-separator${this.classPrefix}${this.insetClass}`+(void 0!==this.color?` bg-${this.color}`:"")+(!0===this.isDark?" q-separator--dark":"")},style(){const t={};if(void 0!==this.size&&(t[!0===this.vertical?"width":"height"]=this.size),!1!==this.spaced){const e=!0===this.spaced?`${margins.md}px`:this.spaced in margins?`${margins[this.spaced]}px`:this.spaced,i=!0===this.vertical?["Left","Right"]:["Top","Bottom"];t[`margin${i[0]}`]=t[`margin${i[1]}`]=e}return t},attrs(){return{"aria-orientation":this.orientation}}},render(t){return t("hr",{staticClass:"q-separator",class:this.classes,style:this.style,attrs:this.attrs,on:{...this.qListeners}})}});const eventName="q:expansion-item:close",LINK_PROPS=Object.keys(routerLinkProps);var QExpansionItem=Vue.extend({name:"QExpansionItem",mixins:[DarkMixin,TimeoutMixin,ModelToggleMixin],props:{...routerLinkProps,icon:String,label:String,labelLines:[Number,String],caption:String,captionLines:[Number,String],dense:Boolean,toggleAriaLabel:String,expandIcon:String,expandedIcon:String,expandIconClass:[Array,String,Object],duration:Number,headerInsetLevel:Number,contentInsetLevel:Number,expandSeparator:Boolean,defaultOpened:Boolean,hideExpandIcon:Boolean,expandIconToggle:Boolean,switchToggleSide:Boolean,denseToggle:Boolean,group:String,popup:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},data(){return{showing:void 0!==this.value?this.value:this.defaultOpened}},watch:{showing(t){!0===t&&void 0!==this.group&&this.$root.$emit(eventName,this)},group(t,e){void 0!==t&&void 0===e?this.$root.$on(eventName,this.__eventHandler):void 0===t&&void 0!==e&&this.$root.$off(eventName,this.__eventHandler)}},computed:{classes(){return`q-expansion-item--${!0===this.showing?"expanded":"collapsed"}`+` q-expansion-item--${!0===this.popup?"popup":"standard"}`},contentStyle(){if(void 0!==this.contentInsetLevel){return{["padding"+(!0===this.$q.lang.rtl?"Right":"Left")]:56*this.contentInsetLevel+"px"}}},hasLink(){return!0!==this.disable&&(void 0!==this.href||void 0!==this.to&&null!==this.to&&""!==this.to)},linkProps(){const t={};return LINK_PROPS.forEach(e=>{t[e]=this[e]}),t},isClickable(){return!0===this.hasLink||!0!==this.expandIconToggle},expansionIcon(){return void 0!==this.expandedIcon&&!0===this.showing?this.expandedIcon:this.expandIcon||this.$q.iconSet.expansionItem[!0===this.denseToggle?"denseIcon":"icon"]},activeToggleIcon(){return!0!==this.disable&&(!0===this.hasLink||!0===this.expandIconToggle)},headerSlotScope(){return{expanded:!0===this.showing,detailsId:this.targetUid,toggle:this.toggle,show:this.show,hide:this.hide}},toggleAriaAttrs(){const t=void 0!==this.toggleAriaLabel?this.toggleAriaLabel:this.$q.lang.label[!0===this.showing?"collapse":"expand"](this.label);return{role:"button","aria-expanded":!0===this.showing?"true":"false","aria-controls":this.targetUid,"aria-label":t}}},methods:{__onHeaderClick(t){!0!==this.hasLink&&this.toggle(t),this.$emit("click",t)},__toggleIconKeyboard(t){13===t.keyCode&&this.__toggleIcon(t,!0)},__toggleIcon(t,e){!0!==e&&void 0!==this.$refs.blurTarget&&this.$refs.blurTarget.focus(),this.toggle(t),stopAndPrevent(t)},__eventHandler(t){this!==t&&this.group===t.group&&this.hide()},__getToggleIcon(t){const e={staticClass:`q-focusable relative-position cursor-pointer${!0===this.denseToggle&&!0===this.switchToggleSide?" items-end":""}`,class:this.expandIconClass,props:{side:!0!==this.switchToggleSide,avatar:this.switchToggleSide}},i=[t(QIcon,{staticClass:"q-expansion-item__toggle-icon",class:void 0===this.expandedIcon&&!0===this.showing?"q-expansion-item__toggle-icon--rotated":void 0,props:{name:this.expansionIcon}})];return!0===this.activeToggleIcon&&(Object.assign(e,{attrs:{tabindex:0,...this.toggleAriaAttrs},on:cache(this,"inpExt",{click:this.__toggleIcon,keyup:this.__toggleIconKeyboard})}),i.unshift(t("div",{ref:"blurTarget",staticClass:"q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",attrs:{tabindex:-1}}))),t(QItemSection,e,i)},__getHeader(t){let e;void 0!==this.$scopedSlots.header?e=[].concat(this.$scopedSlots.header(this.headerSlotScope)):(e=[t(QItemSection,[t(QItemLabel,{props:{lines:this.labelLines}},[this.label||""]),this.caption?t(QItemLabel,{props:{lines:this.captionLines,caption:!0}},[this.caption]):null])],this.icon&&e[!0===this.switchToggleSide?"push":"unshift"](t(QItemSection,{props:{side:!0===this.switchToggleSide,avatar:!0!==this.switchToggleSide}},[t(QIcon,{props:{name:this.icon}})]))),!0!==this.disable&&!0!==this.hideExpandIcon&&e[!0===this.switchToggleSide?"unshift":"push"](this.__getToggleIcon(t));const i={ref:"item",style:this.headerStyle,class:this.headerClass,props:{dark:this.isDark,disable:this.disable,dense:this.dense,insetLevel:this.headerInsetLevel}};return!0===this.isClickable&&(i.props.clickable=!0,!0===this.hasLink?Object.assign(i.props,this.linkProps):i.attrs=this.toggleAriaAttrs,i.on={...this.qListeners,click:this.__onHeaderClick}),t(QItem,i,e)},__getContent(t){const e=[this.__getHeader(t),t(QSlideTransition,{props:{duration:this.duration},on:cache(this,"slide",{show:()=>{this.$emit("after-show")},hide:()=>{this.$emit("after-hide")}})},[t("div",{staticClass:"q-expansion-item__content relative-position",style:this.contentStyle,attrs:{id:this.targetUid},directives:[{name:"show",value:this.showing}]},slot(this,"default"))])];return this.expandSeparator&&e.push(t(QSeparator,{staticClass:"q-expansion-item__border q-expansion-item__border--top absolute-top",props:{dark:this.isDark}}),t(QSeparator,{staticClass:"q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",props:{dark:this.isDark}})),e}},render(t){return t("div",{staticClass:"q-expansion-item q-item-type",class:this.classes},[t("div",{staticClass:"q-expansion-item__container relative-position"},this.__getContent(t))])},created(){void 0!==this.group&&this.$root.$on(eventName,this.__eventHandler),this.targetUid=`e_${uid()}`},beforeDestroy(){void 0!==this.group&&this.$root.$off(eventName,this.__eventHandler)}});const labelPositions=["top","right","bottom","left"];var FabMixin={mixins:[ListenersMixin],props:{type:{type:String,default:"a"},outline:Boolean,push:Boolean,flat:Boolean,unelevated:Boolean,color:String,textColor:String,glossy:Boolean,square:Boolean,padding:String,label:{type:[String,Number],default:""},labelPosition:{type:String,default:"right",validator:t=>labelPositions.includes(t)},externalLabel:Boolean,hideLabel:{type:Boolean},labelClass:[Array,String,Object],labelStyle:[Array,String,Object],disable:Boolean,tabindex:[Number,String]},computed:{formClass(){return`q-fab--form-${!0===this.square?"square":"rounded"}`},stacked(){return!1===this.externalLabel&&["top","bottom"].includes(this.labelPosition)},labelProps(){if(!0===this.externalLabel){const t=null===this.hideLabel?!1===this.showing:this.hideLabel;return{action:"push",data:{staticClass:"q-fab__label q-tooltip--style q-fab__label--external"+` q-fab__label--external-${this.labelPosition}`+(!0===t?" q-fab__label--external-hidden":""),style:this.labelStyle,class:this.labelClass}}}return{action:["left","top"].includes(this.labelPosition)?"unshift":"push",data:{staticClass:`q-fab__label q-fab__label--internal q-fab__label--internal-${this.labelPosition}`+(!0===this.hideLabel?" q-fab__label--internal-hidden":""),style:this.labelStyle,class:this.labelClass}}}}};const directions$1=["up","right","down","left"],alignValues$2=["left","center","right"];var QFab=Vue.extend({name:"QFab",inheritAttrs:!1,mixins:[FabMixin,AttrsMixin,ModelToggleMixin],provide(){return{__qFab:this}},props:{icon:String,activeIcon:String,hideIcon:Boolean,hideLabel:{default:null},direction:{type:String,default:"right",validator:t=>directions$1.includes(t)},persistent:Boolean,verticalActionsAlign:{type:String,default:"center",validator:t=>alignValues$2.includes(t)}},data(){return{showing:!0===this.value}},computed:{hideOnRouteChange(){return!0!==this.persistent},classes(){return`q-fab--align-${this.verticalActionsAlign} ${this.formClass}`+(!0===this.showing?" q-fab--opened":"")},actionsClasses(){return`q-fab__actions--${this.direction}`+(!0===this.showing?" q-fab__actions--opened":"")},actionsAttrs(){const t={id:this.targetUid,role:"menu"};return!0!==this.showing&&(t["aria-hidden"]="true"),t},iconHolderClasses(){return!0===this.showing?"q-fab__icon-holder--opened":""},attrs(){return{"aria-expanded":!0===this.showing?"true":"false","aria-haspopup":"true","aria-controls":this.targetUid,...this.qAttrs}},slotScope(){return{opened:this.showing}}},methods:{__onChildClick(t){this.hide(t),this.$refs.trigger&&this.$refs.trigger.$el&&this.$refs.trigger.$el.focus()},__getIcon(t,e,i){const s=this.$scopedSlots[e],o=`q-fab__${e} absolute-full`;return void 0===s?t(QIcon,{staticClass:o,props:{name:this[i]||this.$q.iconSet.fab[i]}}):t("div",{staticClass:o},s(this.slotScope))}},render(t){const e=[];return!0!==this.hideIcon&&e.push(t("div",{staticClass:"q-fab__icon-holder",class:this.iconHolderClasses},[this.__getIcon(t,"icon","icon"),this.__getIcon(t,"active-icon","activeIcon")])),""===this.label&&void 0===this.$scopedSlots.label||e[this.labelProps.action](t("div",this.labelProps.data,void 0!==this.$scopedSlots.label?this.$scopedSlots.label(this.slotScope):[this.label])),t("div",{staticClass:"q-fab z-fab row inline justify-center",class:this.classes,on:{...this.qListeners}},[t(QBtn,{ref:"trigger",class:this.formClass,props:{...this.$props,noWrap:!0,stack:this.stacked,align:void 0,icon:void 0,label:void 0,noCaps:!0,fab:!0},attrs:this.attrs,on:cache(this,"tog",{click:this.toggle})},mergeSlot(e,this,"tooltip")),t("div",{staticClass:"q-fab__actions flex no-wrap inline",class:this.actionsClasses,attrs:this.actionsAttrs},slot(this,"default"))])},created(){this.targetUid=`fb_${uid()}`}});const anchorMap={start:"self-end",center:"self-center",end:"self-start"},anchorValues=Object.keys(anchorMap);var QFabAction=Vue.extend({name:"QFabAction",mixins:[FabMixin],props:{icon:{type:String,default:""},anchor:{type:String,validator:t=>anchorValues.includes(t)},to:[String,Object],replace:Boolean},inject:{__qFab:{default:()=>({showing:!0,__onChildClick:noop})}},computed:{classes(){const t=anchorMap[this.anchor];return this.formClass+(void 0!==t?` ${t}`:"")},onEvents(){return{...this.qListeners,click:this.click}},isDisabled(){return!0!==this.__qFab.showing||!0===this.disable}},methods:{click(t){this.__qFab.__onChildClick(t),this.$emit("click",t)}},render(t){const e=[];return void 0!==this.$scopedSlots.icon?e.push(this.$scopedSlots.icon()):""!==this.icon&&e.push(t(QIcon,{props:{name:this.icon}})),""===this.label&&void 0===this.$scopedSlots.label||e[this.labelProps.action](t("div",this.labelProps.data,void 0!==this.$scopedSlots.label?this.$scopedSlots.label():[this.label])),t(QBtn,{class:this.classes,props:{...this.$props,noWrap:!0,stack:this.stacked,icon:void 0,label:void 0,noCaps:!0,fabMini:!0,disable:this.isDisabled},on:this.onEvents},mergeSlot(e,this,"default"))}});const lazyRulesValues=[!0,!1,"ondemand"];var ValidateMixin={props:{value:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],validator:t=>lazyRulesValues.includes(t)}},data:()=>({isDirty:null,innerError:!1,innerErrorMessage:void 0}),watch:{value(){this.__validateIfNeeded()},disable(t){!0===t?this.__resetValidation():this.__validateIfNeeded(!0)},reactiveRules:{handler(t){!0===t?void 0===this.unwatchRules&&(this.unwatchRules=this.$watch("rules",()=>{this.__validateIfNeeded(!0)})):void 0!==this.unwatchRules&&(this.unwatchRules(),this.unwatchRules=void 0)},immediate:!0},focused(t){!0===t?null===this.isDirty&&(this.isDirty=!1):!1===this.isDirty&&(this.isDirty=!0,!0===this.hasActiveRules&&"ondemand"!==this.lazyRules&&!1===this.innerLoading&&this.debouncedValidate())},hasError(t){const e=document.getElementById(this.targetUid);null!==e&&e.setAttribute("aria-invalid",!0===t)}},computed:{hasRules(){return void 0!==this.rules&&null!==this.rules&&this.rules.length>0},hasActiveRules(){return!0!==this.disable&&!0===this.hasRules},hasError(){return!0===this.error||!0===this.innerError},computedErrorMessage(){return"string"==typeof this.errorMessage&&this.errorMessage.length>0?this.errorMessage:this.innerErrorMessage}},created(){this.debouncedValidate=debounce(this.validate,0)},mounted(){this.validateIndex=0},beforeDestroy(){void 0!==this.unwatchRules&&this.unwatchRules(),this.debouncedValidate.cancel()},methods:{resetValidation(){this.isDirty=null,this.__resetValidation()},validate(t=this.value){if(!0!==this.hasActiveRules)return!0;const e=++this.validateIndex,i=!0!==this.innerLoading?()=>!0!==this.isDirty&&(this.isDirty=!0):()=>{},s=(t,e)=>{!0===t&&i(),this.innerError!==t&&(this.innerError=t);const s=e||void 0;this.innerErrorMessage!==s&&(this.innerErrorMessage=s),!1!==this.innerLoading&&(this.innerLoading=!1)},o=[];for(let e=0;e<this.rules.length;e++){const i=this.rules[e];let n;if("function"==typeof i?n=i(t,testPattern):"string"==typeof i&&void 0!==testPattern[i]&&(n=testPattern[i](t)),!1===n||"string"==typeof n)return s(!0,n),!1;!0!==n&&void 0!==n&&o.push(n)}return 0===o.length?(s(!1),!0):(!0!==this.innerLoading&&(this.innerLoading=!0),Promise.all(o).then(t=>{if(void 0===t||!1===Array.isArray(t)||0===t.length)return e===this.validateIndex&&s(!1),!0;const i=t.find(t=>!1===t||"string"==typeof t);return e===this.validateIndex&&s(void 0!==i,i),void 0===i},t=>(e===this.validateIndex&&(console.error(t),s(!0)),!1)))},__resetValidation(){this.debouncedValidate.cancel(),this.validateIndex++,this.innerLoading=!1,this.innerError=!1,this.innerErrorMessage=void 0},__validateIfNeeded(t){!0===this.hasActiveRules&&"ondemand"!==this.lazyRules&&(!0===this.isDirty||!0!==this.lazyRules&&!0!==t)&&this.debouncedValidate()}}};function getTargetUid(t){return void 0===t?`f_${uid()}`:t}var QField=Vue.extend({name:"QField",mixins:[DarkMixin,ValidateMixin,AttrsMixin],inheritAttrs:!1,props:{label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String,maxlength:[Number,String],maxValues:[Number,String]},data(){return{focused:!1,targetUid:getTargetUid(this.for),innerLoading:!1}},watch:{for(t){this.targetUid=getTargetUid(t)}},computed:{editable(){return!0!==this.disable&&!0!==this.readonly},hasValue(){const t=void 0===this.__getControl?this.value:this.innerValue;return void 0!==t&&null!==t&&(""+t).length>0},computedCounter(){if(!1!==this.counter){const t="string"==typeof this.value||"number"==typeof this.value?(""+this.value).length:!0===Array.isArray(this.value)?this.value.length:0,e=void 0!==this.maxlength?this.maxlength:this.maxValues;return t+(void 0!==e?" / "+e:"")}},floatingLabel(){return!0===this.stackLabel||!0===this.focused||"number"==typeof this.inputValue||"string"==typeof this.inputValue&&this.inputValue.length>0||!0!==this.hideSelected&&!0===this.hasValue||void 0!==this.displayValue&&null!==this.displayValue&&(""+this.displayValue).length>0},shouldRenderBottom(){return!0===this.bottomSlots||void 0!==this.hint||!0===this.hasRules||!0===this.counter||null!==this.error},classes(){return{[this.fieldClass]:void 0!==this.fieldClass,[`q-field--${this.styleType}`]:!0,"q-field--rounded":this.rounded,"q-field--square":this.square,"q-field--focused":!0===this.focused,"q-field--highlighted":!0===this.focused||!0===this.hasError,"q-field--float":this.floatingLabel,"q-field--labeled":this.hasLabel,"q-field--dense":this.dense,"q-field--item-aligned q-item-type":this.itemAligned,"q-field--dark":this.isDark,"q-field--auto-height":void 0===this.__getControl,"q-field--with-bottom":!0!==this.hideBottomSpace&&!0===this.shouldRenderBottom,"q-field--error":this.hasError,"q-field--readonly":!0===this.readonly&&!0!==this.disable,"q-field--disabled":!0===this.disable}},styleType(){return!0===this.filled?"filled":!0===this.outlined?"outlined":!0===this.borderless?"borderless":this.standout?"standout":"standard"},contentClass(){const t=[];if(!0===this.hasError)t.push("text-negative");else{if("string"==typeof this.standout&&this.standout.length>0&&!0===this.focused)return this.standout;void 0!==this.color&&t.push("text-"+this.color)}return void 0!==this.bgColor&&t.push(`bg-${this.bgColor}`),t},hasLabel(){return!0===this.labelSlot||void 0!==this.label},labelClass(){if(void 0!==this.labelColor&&!0!==this.hasError)return"text-"+this.labelColor},controlSlotScope(){return{id:this.targetUid,field:this.$el,editable:this.editable,focused:this.focused,floatingLabel:this.floatingLabel,value:this.value,emitValue:this.__emitValue}},bottomSlotScope(){return{id:this.targetUid,field:this.$el,editable:this.editable,focused:this.focused,value:this.value,errorMessage:this.computedErrorMessage}},attrs(){const t={for:this.targetUid};return!0===this.disable?t["aria-disabled"]="true":!0===this.readonly&&(t["aria-readonly"]="true"),t}},methods:{focus(){addFocusFn(this.__focus)},blur(){removeFocusFn(this.__focus);const t=document.activeElement;null!==t&&this.$el.contains(t)&&t.blur()},__focus(){const t=document.activeElement;let e=this.$refs.target;void 0===e||null!==t&&t.id===this.targetUid||(!0===e.hasAttribute("tabindex")||(e=e.querySelector("[tabindex]")),null!==e&&e!==t&&e.focus({preventScroll:!0}))},__getContent(t){const e=[];return void 0!==this.$scopedSlots.prepend&&e.push(t("div",{staticClass:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",on:this.slotsEvents},this.$scopedSlots.prepend())),e.push(t("div",{staticClass:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},this.__getControlContainer(t))),!0===this.hasError&&!1===this.noErrorIcon&&e.push(this.__getInnerAppendNode(t,"error",[t(QIcon,{props:{name:this.$q.iconSet.field.error,color:"negative"}})])),!0===this.loading||!0===this.innerLoading?e.push(this.__getInnerAppendNode(t,"inner-loading-append",void 0!==this.$scopedSlots.loading?this.$scopedSlots.loading():[t(QSpinner,{props:{color:this.color}})])):!0===this.clearable&&!0===this.hasValue&&!0===this.editable&&e.push(this.__getInnerAppendNode(t,"inner-clearable-append",[t(QIcon,{staticClass:"q-field__focusable-action",props:{tag:"button",name:this.clearIcon||this.$q.iconSet.field.clear},attrs:iconAsButton,on:this.clearableEvents})])),void 0!==this.$scopedSlots.append&&e.push(t("div",{staticClass:"q-field__append q-field__marginal row no-wrap items-center",key:"append",on:this.slotsEvents},this.$scopedSlots.append())),void 0!==this.__getInnerAppend&&e.push(this.__getInnerAppendNode(t,"inner-append",this.__getInnerAppend(t))),void 0!==this.__getControlChild&&e.push(this.__getControlChild(t)),e},__getControlContainer(t){const e=[];return void 0!==this.prefix&&null!==this.prefix&&e.push(t("div",{staticClass:"q-field__prefix no-pointer-events row items-center"},[this.prefix])),!0===this.hasShadow&&void 0!==this.__getShadowControl&&e.push(this.__getShadowControl(t)),void 0!==this.__getControl?e.push(this.__getControl(t)):void 0!==this.$scopedSlots.rawControl?e.push(this.$scopedSlots.rawControl()):void 0!==this.$scopedSlots.control&&e.push(t("div",{ref:"target",staticClass:"q-field__native row",attrs:{tabindex:-1,...this.qAttrs,"data-autofocus":this.autofocus||void 0}},this.$scopedSlots.control(this.controlSlotScope))),!0===this.hasLabel&&e.push(t("div",{staticClass:"q-field__label no-pointer-events absolute ellipsis",class:this.labelClass},[slot(this,"label",this.label)])),void 0!==this.suffix&&null!==this.suffix&&e.push(t("div",{staticClass:"q-field__suffix no-pointer-events row items-center"},[this.suffix])),e.concat(void 0!==this.__getDefaultSlot?this.__getDefaultSlot(t):slot(this,"default"))},__getBottom(t){let e,i;!0===this.hasError?(i="q--slot-error",void 0!==this.$scopedSlots.error?e=this.$scopedSlots.error(this.bottomSlotScope):void 0!==this.computedErrorMessage&&(e=[t("div",{attrs:{role:"alert"}},[this.computedErrorMessage])],i=this.computedErrorMessage)):!0===this.hideHint&&!0!==this.focused||(i="q--slot-hint",void 0!==this.$scopedSlots.hint?e=this.$scopedSlots.hint(this.bottomSlotScope):void 0!==this.hint&&(e=[t("div",[this.hint])],i=this.hint));const s=!0===this.counter||void 0!==this.$scopedSlots.counter;if(!0===this.hideBottomSpace&&!1===s&&void 0===e)return;const o=t("div",{key:i,staticClass:"q-field__messages col"},e);return t("div",{staticClass:"q-field__bottom row items-start q-field__bottom--"+(!0!==this.hideBottomSpace?"animated":"stale"),on:{click:prevent}},[!0===this.hideBottomSpace?o:t("transition",{props:{name:"q-transition--field-message"}},[o]),!0===s?t("div",{staticClass:"q-field__counter"},void 0!==this.$scopedSlots.counter?this.$scopedSlots.counter():[this.computedCounter]):null])},__getInnerAppendNode:(t,e,i)=>null===i?null:t("div",{staticClass:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip",key:e},i),__onControlPopupShow(t){void 0!==t&&stop(t),this.$emit("popup-show",t),this.hasPopupOpen=!0,this.__onControlFocusin(t)},__onControlPopupHide(t){void 0!==t&&stop(t),this.$emit("popup-hide",t),this.hasPopupOpen=!1,this.__onControlFocusout(t)},__onControlFocusin(t){clearTimeout(this.focusoutTimer),!0===this.editable&&!1===this.focused&&(this.focused=!0,this.$emit("focus",t))},__onControlFocusout(t,e){clearTimeout(this.focusoutTimer),this.focusoutTimer=setTimeout(()=>{(!0!==document.hasFocus()||!0!==this.hasPopupOpen&&void 0!==this.$refs&&void 0!==this.$refs.control&&!1===this.$refs.control.contains(document.activeElement))&&(!0===this.focused&&(this.focused=!1,this.$emit("blur",t)),void 0!==e&&e())})},__clearValue(t){if(stopAndPrevent(t),!0!==this.$q.platform.is.mobile){(this.$refs.target||this.$el).focus()}else!0===this.$el.contains(document.activeElement)&&document.activeElement.blur();"file"===this.type&&(this.$refs.input.value=null),this.$emit("input",null),this.$emit("clear",this.value),this.$nextTick(()=>{this.resetValidation(),!0!==this.$q.platform.is.mobile&&(this.isDirty=!1)})},__emitValue(t){this.$emit("input",t)}},render(t){void 0!==this.__onPreRender&&this.__onPreRender(),void 0!==this.__onPostRender&&this.$nextTick(this.__onPostRender);const e=void 0===this.__getControl&&void 0===this.$scopedSlots.control?{...this.qAttrs,"data-autofocus":this.autofocus||void 0,...this.attrs}:this.attrs;return t("label",{staticClass:"q-field q-validation-component row no-wrap items-start",class:this.classes,attrs:e},[void 0!==this.$scopedSlots.before?t("div",{staticClass:"q-field__before q-field__marginal row no-wrap items-center",on:this.slotsEvents},this.$scopedSlots.before()):null,t("div",{staticClass:"q-field__inner relative-position col self-stretch"},[t("div",{ref:"control",staticClass:"q-field__control relative-position row no-wrap",class:this.contentClass,attrs:{tabindex:-1},on:this.controlEvents},this.__getContent(t)),!0===this.shouldRenderBottom?this.__getBottom(t):null]),void 0!==this.$scopedSlots.after?t("div",{staticClass:"q-field__after q-field__marginal row no-wrap items-center",on:this.slotsEvents},this.$scopedSlots.after()):null])},created(){void 0!==this.__onPreRender&&this.__onPreRender(),this.slotsEvents={click:prevent},this.clearableEvents={click:this.__clearValue},this.controlEvents=void 0!==this.__getControlEvents?this.__getControlEvents():{focusin:this.__onControlFocusin,focusout:this.__onControlFocusout,"popup-show":this.__onControlPopupShow,"popup-hide":this.__onControlPopupHide}},mounted(){!0===fromSSR&&void 0===this.for&&(this.targetUid=getTargetUid()),!0===this.autofocus&&this.focus()},activated(){!0===this.shouldActivate&&!0===this.autofocus&&this.focus()},deactivated(){this.shouldActivate=!0},beforeDestroy(){clearTimeout(this.focusoutTimer)}});function filterFiles(t,e,i,s){const o=[];return t.forEach(t=>{!0===s(t)?o.push(t):e.push({failedPropValidation:i,file:t})}),o}function stopAndPreventDrag(t){t&&t.dataTransfer&&(t.dataTransfer.dropEffect="copy"),stopAndPrevent(t)}var FileMixin={props:{multiple:Boolean,accept:String,capture:String,maxFileSize:[Number,String],maxTotalSize:[Number,String],maxFiles:[Number,String],filter:Function},computed:{extensions(){if(void 0!==this.accept)return this.accept.split(",").map(t=>"*"===(t=t.trim())?"*/":(t.endsWith("/*")&&(t=t.slice(0,t.length-1)),t.toUpperCase()))},maxFilesNumber(){return parseInt(this.maxFiles,10)},maxTotalSizeNumber(){return parseInt(this.maxTotalSize,10)}},methods:{pickFiles(t){if(!0===this.editable)if(t!==Object(t)&&(t={target:null}),null!==t.target&&!0===t.target.matches('input[type="file"]'))0===t.clientX&&0===t.clientY&&stop(t);else{const e=this.__getFileInput();e&&e!==t.target&&e.click(t)}},addFiles(t){this.editable&&t&&this.__addFiles(null,t)},__processFiles(t,e,i,s){let o=Array.from(e||t.target.files);const n=[],r=()=>{n.length>0&&this.$emit("rejected",n)};if(void 0!==this.accept&&-1===this.extensions.indexOf("*/")&&0===(o=filterFiles(o,n,"accept",t=>this.extensions.some(e=>t.type.toUpperCase().startsWith(e)||t.name.toUpperCase().endsWith(e)))).length)return r();if(void 0!==this.maxFileSize){const t=parseInt(this.maxFileSize,10);if(0===(o=filterFiles(o,n,"max-file-size",e=>e.size<=t)).length)return r()}if(!0!==this.multiple&&o.length>0&&(o=[o[0]]),o.forEach(t=>{t.__key=t.webkitRelativePath+t.lastModified+t.name+t.size}),!0===s){const t=i.map(t=>t.__key);o=filterFiles(o,n,"duplicate",e=>!1===t.includes(e.__key))}if(0===o.length)return r();if(void 0!==this.maxTotalSize){let t=!0===s?i.reduce((t,e)=>t+e.size,0):0;if(0===(o=filterFiles(o,n,"max-total-size",e=>(t+=e.size)<=this.maxTotalSizeNumber)).length)return r()}if("function"==typeof this.filter){const t=this.filter(o);o=filterFiles(o,n,"filter",e=>t.includes(e))}if(void 0!==this.maxFiles){let t=!0===s?i.length:0;if(0===(o=filterFiles(o,n,"max-files",()=>++t<=this.maxFilesNumber)).length)return r()}return r(),o.length>0?o:void 0},__onDragOver(t){stopAndPreventDrag(t),!0!==this.dnd&&(this.dnd=!0)},__onDragLeave(t){stopAndPrevent(t),!0===(null!==t.relatedTarget||!0!==Platform.is.safari?t.relatedTarget!==this.$refs.dnd:!1===document.elementsFromPoint(t.clientX,t.clientY).includes(this.$refs.dnd))&&(this.dnd=!1)},__onDrop(t){stopAndPreventDrag(t);const e=t.dataTransfer.files;e.length>0&&this.__addFiles(null,e),this.dnd=!1},__getDnd(t,e){if(!0===this.dnd)return t("div",{staticClass:`q-${e}__dnd absolute-full`,ref:"dnd",on:cache(this,"dnd",{dragenter:stopAndPreventDrag,dragover:stopAndPreventDrag,dragleave:this.__onDragLeave,drop:this.__onDrop})})}}};const FileValueMixin={computed:{formDomProps(){if("file"===this.type)try{const t="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(this.value)===this.value&&("length"in this.value?Array.from(this.value):[this.value]).forEach(e=>{t.items.add(e)}),{files:t.files}}catch(t){return{files:void 0}}}}};var QFile=Vue.extend({name:"QFile",mixins:[QField,FileMixin,FormFieldMixin,FileValueMixin],props:{value:!0===isSSR?{}:[File,FileList,Array],append:Boolean,useChips:Boolean,displayValue:[String,Number],tabindex:{type:[String,Number],default:0},counterLabel:Function,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},data:()=>({dnd:!1}),computed:{innerValue(){return Object(this.value)===this.value?"length"in this.value?Array.from(this.value):[this.value]:[]},selectedString(){return this.innerValue.map(t=>t.name).join(", ")},totalSize(){return humanStorageSize(this.innerValue.reduce((t,e)=>t+e.size,0))},counterProps(){return{totalSize:this.totalSize,filesNumber:this.innerValue.length,maxFiles:this.maxFiles}},computedCounter(){if(void 0!==this.counterLabel)return this.counterLabel(this.counterProps);const t=this.maxFiles;return`${this.innerValue.length}${void 0!==t?" / "+t:""} (${this.totalSize})`},inputAttrs(){return{tabindex:-1,type:"file",title:"",accept:this.accept,capture:this.capture,name:this.nameProp,...this.qAttrs,id:this.targetUid,disabled:!0!==this.editable}},isAppending(){return!0===this.multiple&&!0===this.append},fieldClass(){return"q-file q-field--auto-height"+(!0===this.dnd?" q-file--dnd":"")}},methods:{removeAtIndex(t){const e=this.innerValue.slice();e.splice(t,1),this.__emitValue(e)},removeFile(t){const e=this.innerValue.findIndex(t);e>-1&&this.removeAtIndex(e)},__emitValue(t){this.$emit("input",!0===this.multiple?t:t[0])},__onKeydown(t){13===t.keyCode&&prevent(t)},__onKeyup(t){13!==t.keyCode&&32!==t.keyCode||this.pickFiles(t)},__getFileInput(){return this.$refs.input},__addFiles(t,e){const i=this.__processFiles(t,e,this.innerValue,this.isAppending),s=this.__getFileInput();void 0!==s&&(s.value=""),void 0!==i&&((!0===this.multiple?this.value&&i.every(t=>this.innerValue.includes(t)):this.value===i[0])||this.__emitValue(!0===this.isAppending?this.innerValue.concat(i):i))},__getControl(t){const e={ref:"target",staticClass:"q-field__native row items-center cursor-pointer",attrs:{tabindex:this.tabindex}};return!0===this.editable&&(e.on=cache(this,"native",{dragover:this.__onDragOver,dragleave:this.__onDragLeave,keydown:this.__onKeydown,keyup:this.__onKeyup})),t("div",e,[this.__getInput(t)].concat(this.__getSelection(t)))},__getControlChild(t){return this.__getDnd(t,"file")},__getFiller(t){return[t("input",{class:[this.inputClass,"q-file__filler"],style:this.inputStyle})]},__getSelection(t){if(void 0!==this.$scopedSlots.file)return 0===this.innerValue.length?this.__getFiller(t):this.innerValue.map((t,e)=>this.$scopedSlots.file({index:e,file:t,ref:this}));if(void 0!==this.$scopedSlots.selected)return 0===this.innerValue.length?this.__getFiller(t):this.$scopedSlots.selected({files:this.innerValue,ref:this});if(!0===this.useChips)return 0===this.innerValue.length?this.__getFiller(t):this.innerValue.map((e,i)=>t(QChip,{key:"file-"+i,props:{removable:this.editable,dense:!0,textColor:this.color,tabindex:this.tabindex},on:cache(this,"rem#"+i,{remove:()=>{this.removeAtIndex(i)}})},[t("span",{staticClass:"ellipsis",domProps:{textContent:e.name}})]));const e=void 0!==this.displayValue?this.displayValue:this.selectedString;return e.length>0?[t("div",{style:this.inputStyle,class:this.inputClass,domProps:{textContent:e}})]:this.__getFiller(t)},__getInput(t){const e={ref:"input",staticClass:"q-field__input fit absolute-full cursor-pointer",attrs:this.inputAttrs,domProps:this.formDomProps,on:cache(this,"input",{change:this.__addFiles})};return!0===this.multiple&&(e.attrs.multiple=!0),t("input",e)}},created(){this.type="file"}}),QFooter=Vue.extend({name:"QFooter",mixins:[ListenersMixin],inject:{layout:{default(){console.error("QFooter needs to be child of QLayout")}}},props:{value:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},data(){return{size:parseInt(this.heightHint,10),revealed:!0,windowHeight:onSSR||this.layout.container?0:window.innerHeight}},watch:{value(t){this.__update("space",t),this.__updateLocal("revealed",!0),this.layout.__animate()},offset(t){this.__update("offset",t)},reveal(t){!1===t&&this.__updateLocal("revealed",this.value)},revealed(t){this.layout.__animate(),this.$emit("reveal",t)},"layout.scroll"(){this.__updateRevealed()},"layout.height"(){this.__updateRevealed()},size(){this.__updateRevealed()},"$q.screen.height"(t){!0!==this.layout.container&&this.__updateLocal("windowHeight",t)}},computed:{fixed(){return!0===this.reveal||this.layout.view.indexOf("F")>-1||this.$q.platform.is.ios&&!0===this.layout.container},containerHeight(){return!0===this.layout.container?this.layout.containerHeight:this.windowHeight},offset(){if(!0!==this.value)return 0;if(!0===this.fixed)return!0===this.revealed?this.size:0;const t=this.layout.scroll.position+this.containerHeight+this.size-this.layout.height;return t>0?t:0},hidden(){return!0!==this.value||!0===this.fixed&&!0!==this.revealed},revealOnFocus(){return!0===this.value&&!0===this.hidden&&!0===this.reveal},classes(){return(!0===this.fixed?"fixed":"absolute")+"-bottom"+(!0===this.bordered?" q-footer--bordered":"")+(!0===this.hidden?" q-footer--hidden":"")+(!0!==this.value?" q-layout--prevent-focus":"")+(!0!==this.value&&!0!==this.fixed?" hidden":"")},style(){const t=this.layout.rows.bottom,e={};return"l"===t[0]&&!0===this.layout.left.space&&(e[!0===this.$q.lang.rtl?"right":"left"]=`${this.layout.left.size}px`),"r"===t[2]&&!0===this.layout.right.space&&(e[!0===this.$q.lang.rtl?"left":"right"]=`${this.layout.right.size}px`),e},onEvents(){return{...this.qListeners,focusin:this.__onFocusin,input:stop}}},render(t){const e=mergeSlot([t(QResizeObserver,{props:{debounce:0},on:cache(this,"resize",{resize:this.__onResize})})],this,"default");return!0===this.elevated&&e.push(t("div",{staticClass:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),t("footer",{staticClass:"q-footer q-layout__section--marginal",class:this.classes,style:this.style,on:this.onEvents},e)},created(){this.layout.instances.footer=this,!0===this.value&&this.__update("size",this.size),this.__update("space",this.value),this.__update("offset",this.offset)},beforeDestroy(){this.layout.instances.footer===this&&(this.layout.instances.footer=void 0,this.__update("size",0),this.__update("offset",0),this.__update("space",!1))},methods:{__onResize({height:t}){this.__updateLocal("size",t),this.__update("size",t)},__update(t,e){this.layout.footer[t]!==e&&(this.layout.footer[t]=e)},__updateLocal(t,e){this[t]!==e&&(this[t]=e)},__updateRevealed(){if(!0!==this.reveal)return;const{direction:t,position:e,inflexionPosition:i}=this.layout.scroll;this.__updateLocal("revealed","up"===t||e-i<100||this.layout.height-this.containerHeight-e-this.size<300)},__onFocusin(t){!0===this.revealOnFocus&&this.__updateLocal("revealed",!0),this.$emit("focusin",t)}}}),QForm=Vue.extend({name:"QForm",mixins:[ListenersMixin],props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean},computed:{onEvents(){return{...this.qListeners,submit:this.submit,reset:this.reset}}},mounted(){this.validateIndex=0,!0===this.autofocus&&this.focus()},activated(){!0===this.shouldActivate&&!0===this.autofocus&&this.focus()},deactivated(){this.shouldActivate=!0},methods:{validate(t){const e="boolean"==typeof t?t:!0!==this.noErrorFocus,i=++this.validateIndex,s=this.getValidationComponents().filter(t=>!0!==t.disable),o=(t,e)=>{this.$emit("validation-"+(!0===t?"success":"error"),e)},n=t=>{const e=t.validate();return"function"==typeof e.then?e.then(e=>({valid:e,comp:t}),e=>({valid:!1,comp:t,err:e})):Promise.resolve({valid:e,comp:t})};return(!0===this.greedy?Promise.all(s.map(n)).then(t=>t.filter(t=>!0!==t.valid)):s.reduce((t,e)=>t.then(()=>n(e).then(t=>{if(!1===t.valid)return Promise.reject(t)})),Promise.resolve()).catch(t=>[t])).then(t=>{if(void 0===t||0===t.length)return i===this.validateIndex&&o(!0),!0;if(i===this.validateIndex){const{comp:i,err:s}=t[0];if(void 0!==s&&console.error(s),o(!1,i),!0===e){const e=t.find(({comp:t})=>"function"==typeof t.focus&&!0!==t._isBeingDestroyed&&!0!==t._isDestroyed&&!0!==t._inactive);void 0!==e&&e.comp.focus()}}return!1})},resetValidation(){this.validateIndex++,this.getValidationComponents().forEach(t=>{"function"==typeof t.resetValidation&&t.resetValidation()})},submit(t){void 0!==t&&stopAndPrevent(t);const e=this.validateIndex+1;this.validate().then(i=>{e===this.validateIndex&&!0===i&&(void 0!==this.qListeners.submit?this.$emit("submit",t):void 0!==t&&void 0!==t.target&&"function"==typeof t.target.submit&&t.target.submit())})},reset(t){void 0!==t&&stopAndPrevent(t),this.$emit("reset"),this.$nextTick(()=>{this.resetValidation(),!0===this.autofocus&&!0!==this.noResetFocus&&this.focus()})},focus(){addFocusFn(()=>{if(!this.$el)return;const t=this.$el.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||this.$el.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||this.$el.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(this.$el.querySelectorAll("[tabindex]"),t=>t.tabIndex>-1);null!==t&&void 0!==t&&t.focus({preventScroll:!0})})},getValidationComponents(){return Array.prototype.map.call(this.$el.getElementsByClassName("q-validation-component"),t=>t.__vue__).filter(t=>void 0!==t&&"function"==typeof t.validate)}},render(t){return t("form",{staticClass:"q-form",on:this.onEvents},slot(this,"default"))}}),QHeader=Vue.extend({name:"QHeader",mixins:[ListenersMixin],inject:{layout:{default(){console.error("QHeader needs to be child of QLayout")}}},props:{value:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},data(){return{size:parseInt(this.heightHint,10),revealed:!0}},watch:{value(t){this.__update("space",t),this.__updateLocal("revealed",!0),this.layout.__animate()},offset(t){this.__update("offset",t)},reveal(t){!1===t&&this.__updateLocal("revealed",this.value)},revealed(t){this.layout.__animate(),this.$emit("reveal",t)},"layout.scroll"(t){!0===this.reveal&&this.__updateLocal("revealed","up"===t.direction||t.position<=this.revealOffset||t.position-t.inflexionPosition<100)}},computed:{fixed(){return!0===this.reveal||this.layout.view.indexOf("H")>-1||this.$q.platform.is.ios&&!0===this.layout.container},offset(){if(!0!==this.value)return 0;if(!0===this.fixed)return!0===this.revealed?this.size:0;const t=this.size-this.layout.scroll.position;return t>0?t:0},hidden(){return!0!==this.value||!0===this.fixed&&!0!==this.revealed},revealOnFocus(){return!0===this.value&&!0===this.hidden&&!0===this.reveal},classes(){return(!0===this.fixed?"fixed":"absolute")+"-top"+(!0===this.bordered?" q-header--bordered":"")+(!0===this.hidden?" q-header--hidden":"")+(!0!==this.value?" q-layout--prevent-focus":"")},style(){const t=this.layout.rows.top,e={};return"l"===t[0]&&!0===this.layout.left.space&&(e[!0===this.$q.lang.rtl?"right":"left"]=`${this.layout.left.size}px`),"r"===t[2]&&!0===this.layout.right.space&&(e[!0===this.$q.lang.rtl?"left":"right"]=`${this.layout.right.size}px`),e},onEvents(){return{...this.qListeners,focusin:this.__onFocusin,input:stop}}},render(t){const e=uniqueSlot(this,"default",[]);return!0===this.elevated&&e.push(t("div",{staticClass:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),e.push(t(QResizeObserver,{props:{debounce:0},on:cache(this,"resize",{resize:this.__onResize})})),t("header",{staticClass:"q-header q-layout__section--marginal",class:this.classes,style:this.style,on:this.onEvents},e)},created(){this.layout.instances.header=this,!0===this.value&&this.__update("size",this.size),this.__update("space",this.value),this.__update("offset",this.offset)},beforeDestroy(){this.layout.instances.header===this&&(this.layout.instances.header=void 0,this.__update("size",0),this.__update("offset",0),this.__update("space",!1))},methods:{__onResize({height:t}){this.__updateLocal("size",t),this.__update("size",t)},__update(t,e){this.layout.header[t]!==e&&(this.layout.header[t]=e)},__updateLocal(t,e){this[t]!==e&&(this[t]=e)},__onFocusin(t){!0===this.revealOnFocus&&this.__updateLocal("revealed",!0),this.$emit("focusin",t)}}}),RatioMixin={props:{ratio:[String,Number]},computed:{ratioStyle(){const t=this.ratio||this.naturalRatio;if(void 0!==t)return{paddingBottom:`${100/t}%`}}}},QImg=Vue.extend({name:"QImg",mixins:[ListenersMixin,RatioMixin],props:{src:String,srcset:String,sizes:String,alt:String,width:String,height:String,placeholderSrc:String,basic:Boolean,contain:Boolean,position:{type:String,default:"50% 50%"},transition:{type:String,default:"fade"},imgClass:[Array,String,Object],imgStyle:Object,nativeContextMenu:Boolean,notDraggable:Boolean,noDefaultSpinner:Boolean,spinnerColor:String,spinnerSize:String},data(){return{currentSrc:"",image:null,isLoading:!!this.src,hasError:!1,naturalRatio:void 0}},watch:{src(){this.__load()},srcset(t){this.__updateWatcher(t)}},computed:{url(){return this.currentSrc||this.placeholderSrc||void 0},attrs(){const t={role:"img"};return void 0!==this.alt&&(t["aria-label"]=this.alt),t},imgAttrs(){const t={src:this.url,"aria-hidden":"true"};return!0===this.notDraggable&&(t.draggable=!1),t},imgContainerStyle(){return Object.assign({backgroundSize:!0===this.contain?"contain":"cover",backgroundPosition:this.position},this.imgStyle,{backgroundImage:`url("${this.url}")`})},style(){return{width:this.width,height:this.height}},classes(){return"q-img overflow-hidden"+(!0===this.nativeContextMenu?" q-img--menu":"")}},methods:{__onLoad(t){this.isLoading=!1,this.hasError=!1,this.__computeRatio(t),this.__updateSrc(),this.__updateWatcher(this.srcset),this.$emit("load",this.currentSrc)},__onError(t){clearTimeout(this.ratioTimer),this.isLoading=!1,this.hasError=!0,this.currentSrc="",this.$emit("error",t)},__updateSrc(){if(void 0!==this.image&&!1===this.isLoading){const t=this.image.currentSrc||this.image.src;this.currentSrc!==t&&(this.currentSrc=t)}},__updateWatcher(t){t?void 0===this.unwatch&&(this.unwatch=this.$watch("$q.screen.width",this.__updateSrc)):void 0!==this.unwatch&&(this.unwatch(),this.unwatch=void 0)},__load(){if(clearTimeout(this.ratioTimer),this.hasError=!1,!this.src)return this.isLoading=!1,this.image=void 0,void(this.currentSrc="");this.isLoading=!0;const t=new Image;this.image=t,t.onerror=(e=>{this.image===t&&!0!==this.destroyed&&this.__onError(e)}),t.onload=(()=>{!0!==this.destroyed&&this.image===t&&(void 0!==t.decode?t.decode().catch(e=>{this.image===t&&!0!==this.destroyed&&this.__onError(e)}).then(()=>{this.image===t&&!0!==this.destroyed&&this.__onLoad(t)}):this.__onLoad(t))}),t.src=this.src,this.srcset&&(t.srcset=this.srcset),void 0!==this.sizes?t.sizes=this.sizes:Object.assign(t,{height:this.height,width:this.width})},__computeRatio(t){const{naturalHeight:e,naturalWidth:i}=t;e||i?this.naturalRatio=0===e?1:i/e:this.ratioTimer=setTimeout(()=>{this.image===t&&!0!==this.destroyed&&this.__computeRatio(t)},100)},__getImage(t){const e=!0===this.nativeContextMenu?[t("img",{staticClass:"absolute-full fit",attrs:this.imgAttrs})]:void 0,i=void 0!==this.url?t("div",{key:this.url,staticClass:"q-img__image absolute-full",class:this.imgClass,style:this.imgContainerStyle},e):null;return!0===this.basic?i:t("transition",{props:{name:"q-transition--"+this.transition}},[i])},__getContent(t){const e=slot(this,!0===this.hasError?"error":"default");return!0===this.basic?t("div",{key:"content",staticClass:"q-img__content absolute-full"},e):t("transition",{props:{name:"q-transition--fade"}},[!0===this.isLoading?t("div",{key:"placeholder",staticClass:"q-img__loading absolute-full flex flex-center"},void 0!==this.$scopedSlots.loading?this.$scopedSlots.loading():!1===this.noDefaultSpinner?[t(QSpinner,{props:{color:this.spinnerColor,size:this.spinnerSize}})]:void 0):t("div",{key:"content",staticClass:"q-img__content absolute-full"},e)])}},render(t){return t("div",{class:this.classes,style:this.style,attrs:this.attrs,on:{...this.qListeners}},[t("div",{style:this.ratioStyle}),this.__getImage(t),this.__getContent(t)])},beforeMount(){if(void 0!==this.placeholderSrc&&void 0===this.ratio){const t=new Image;t.src=this.placeholderSrc,this.__computeRatio(t)}!0===this.isLoading&&this.__load()},beforeDestroy(){this.destroyed=!0,clearTimeout(this.ratioTimer),void 0!==this.unwatch&&this.unwatch()}});const{passive:passive$1}=listenOpts;var QInfiniteScroll=Vue.extend({name:"QInfiniteScroll",mixins:[ListenersMixin],props:{offset:{type:Number,default:500},debounce:{type:[String,Number],default:100},scrollTarget:{default:void 0},initialIndex:Number,disable:Boolean,reverse:Boolean},data(){return{index:this.initialIndex||0,isFetching:!1,isWorking:!0}},computed:{renderLoadingSlot(){return!0!==this.disable&&!0===this.isWorking}},watch:{disable(t){!0===t?this.stop():this.resume()},reverse(){!1===this.isFetching&&!0===this.isWorking&&this.immediatePoll()},scrollTarget(){this.updateScrollTarget()},debounce(t){this.__setDebounce(t)},isFetching(){this.__updateSvgAnimations()},renderLoadingSlot(){this.__updateSvgAnimations()}},methods:{poll(){if(!0===this.disable||!0===this.isFetching||!1===this.isWorking)return;const t=getScrollHeight(this.__scrollTarget),e=getScrollPosition(this.__scrollTarget),i=height(this.__scrollTarget);!1===this.reverse?Math.round(e+i+this.offset)>=Math.round(t)&&this.trigger():Math.round(e)<this.offset&&this.trigger()},trigger(){if(!0===this.disable||!0===this.isFetching||!1===this.isWorking)return;this.index++,this.isFetching=!0;const t=getScrollHeight(this.__scrollTarget);this.$emit("load",this.index,e=>{!0===this.isWorking&&(this.isFetching=!1,this.$nextTick(()=>{if(!0===this.reverse){const e=getScrollHeight(this.__scrollTarget),i=getScrollPosition(this.__scrollTarget),s=e-t;setScrollPosition(this.__scrollTarget,i+s)}!0===e?this.stop():this.$el.closest("body")&&this.poll()}))})},reset(){this.index=0},resume(){!1===this.isWorking&&(this.isWorking=!0,this.__scrollTarget.addEventListener("scroll",this.poll,passive$1)),this.immediatePoll()},stop(){!0===this.isWorking&&(this.isWorking=!1,this.isFetching=!1,this.__scrollTarget.removeEventListener("scroll",this.poll,passive$1),"function"==typeof this.poll.cancel&&this.poll.cancel())},updateScrollTarget(){if(this.__scrollTarget&&!0===this.isWorking&&this.__scrollTarget.removeEventListener("scroll",this.poll,passive$1),this.__scrollTarget=getScrollTarget(this.$el,this.scrollTarget),!0===this.isWorking){if(this.__scrollTarget.addEventListener("scroll",this.poll,passive$1),!0===this.reverse){const t=getScrollHeight(this.__scrollTarget),e=height(this.__scrollTarget);setScrollPosition(this.__scrollTarget,t-e)}this.immediatePoll()}},setIndex(t){this.index=t},__setDebounce(t){t=parseInt(t,10);const e=this.poll;this.poll=t<=0?this.immediatePoll:debounce(this.immediatePoll,!0===isNaN(t)?100:t),this.__scrollTarget&&!0===this.isWorking&&(void 0!==e&&this.__scrollTarget.removeEventListener("scroll",e,passive$1),this.__scrollTarget.addEventListener("scroll",this.poll,passive$1))},__updateSvgAnimations(t){if(!0===this.renderLoadingSlot){const e=this.$refs.loading;if(!e)return void(!0!==t&&this.$nextTick(()=>{this.__updateSvgAnimations(!0)}));const i=`${!0===this.isFetching?"un":""}pauseAnimations`;Array.from(e.getElementsByTagName("svg")).forEach(t=>{t[i]()})}}},mounted(){this.immediatePoll=this.poll,this.__setDebounce(this.debounce),this.updateScrollTarget(),!1===this.isFetching&&this.__updateSvgAnimations()},activated(){void 0!==this.__scrollPosition&&this.__scrollTarget&&setScrollPosition(this.__scrollTarget,this.__scrollPosition)},deactivated(){this.__scrollPosition=this.__scrollTarget?getScrollPosition(this.__scrollTarget):void 0},beforeDestroy(){this.stop()},render(t){const e=uniqueSlot(this,"default",[]);return!0===this.renderLoadingSlot&&e[!1===this.reverse?"push":"unshift"](t("div",{ref:"loading",staticClass:"q-infinite-scroll__loading",class:!0===this.isFetching?"":"invisible"},slot(this,"loading"))),t("div",{staticClass:"q-infinite-scroll",on:{...this.qListeners}},e)}}),QInnerLoading=Vue.extend({name:"QInnerLoading",mixins:[ListenersMixin,DarkMixin,TransitionMixin],props:{showing:Boolean,color:String,size:{type:[String,Number],default:42},label:String,labelClass:String,labelStyle:[String,Array,Object]},computed:{classes(){return"q-inner-loading absolute-full column flex-center"+(!0===this.isDark?" q-inner-loading--dark":"")},labelClasses(){return"q-inner-loading__label"+(void 0!==this.labelClass?` ${this.labelClass}`:"")}},methods:{__getInner(t){const e=[t(QSpinner,{props:{size:this.size,color:this.color}})];return void 0!==this.label&&e.push(t("div",{class:this.labelClasses,style:this.labelStyle},[this.label])),e},__getContent(t){return!0===this.showing?[t("div",{staticClass:this.classes,on:{...this.qListeners}},void 0!==this.$scopedSlots.default?this.$scopedSlots.default():this.__getInner(t))]:void 0}},render(t){return t("transition",{props:{...this.transitionProps}},this.__getContent(t))}});const NAMED_MASKS={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},TOKENS={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleLowerCase()}},KEYS=Object.keys(TOKENS);KEYS.forEach(t=>{TOKENS[t].regex=new RegExp(TOKENS[t].pattern)});const tokenRegexMask=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+KEYS.join("")+"])|(.)","g"),escRegex=/[.*+?^${}()|[\]\\]/g,MARKER=String.fromCharCode(1);var MaskMixin={props:{mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean},watch:{type(){this.__updateMaskInternals()},autogrow(){this.__updateMaskInternals()},mask(t){if(void 0!==t)this.__updateMaskValue(this.innerValue,!0);else{const t=this.__unmask(this.innerValue);this.__updateMaskInternals(),this.value!==t&&this.$emit("input",t)}},fillMask(){!0===this.hasMask&&this.__updateMaskValue(this.innerValue,!0)},reverseFillMask(){!0===this.hasMask&&this.__updateMaskValue(this.innerValue,!0)},unmaskedValue(){!0===this.hasMask&&this.__updateMaskValue(this.innerValue)}},methods:{__getInitialMaskedValue(){if(this.__updateMaskInternals(),!0===this.hasMask){const t=this.__mask(this.__unmask(this.value));return!1!==this.fillMask?this.__fillWithMask(t):t}return this.value},__getPaddedMaskMarked(t){if(t<this.maskMarked.length)return this.maskMarked.slice(-t);let e=this.maskMarked,i="";const s=e.indexOf(MARKER);if(s>-1){for(let s=t-e.length;s>0;s--)i+=MARKER;e=e.slice(0,s)+i+e.slice(s)}return e},__updateMaskInternals(){if(this.hasMask=void 0!==this.mask&&this.mask.length>0&&(!0===this.autogrow||["textarea","text","search","url","tel","password"].includes(this.type)),!1===this.hasMask)return this.computedUnmask=void 0,this.maskMarked="",void(this.maskReplaced="");const t=void 0===NAMED_MASKS[this.mask]?this.mask:NAMED_MASKS[this.mask],e="string"==typeof this.fillMask&&this.fillMask.length>0?this.fillMask.slice(0,1):"_",i=e.replace(escRegex,"\\$&"),s=[],o=[],n=[];let r=!0===this.reverseFillMask,a="",l="";t.replace(tokenRegexMask,(t,e,i,h,d)=>{if(void 0!==h){const t=TOKENS[h];n.push(t),l=t.negate,!0===r&&(o.push("(?:"+l+"+)?("+t.pattern+"+)?(?:"+l+"+)?("+t.pattern+"+)?"),r=!1),o.push("(?:"+l+"+)?("+t.pattern+")?")}else if(void 0!==i)a="\\"+("\\"===i?"":i),n.push(i),s.push("([^"+a+"]+)?"+a+"?");else{const t=void 0!==e?e:d;a="\\"===t?"\\\\\\\\":t.replace(escRegex,"\\\\$&"),n.push(t),s.push("([^"+a+"]+)?"+a+"?")}});const h=new RegExp("^"+s.join("")+"("+(""===a?".":"[^"+a+"]")+"+)?"+(""===a?"":"["+a+"]*")+"$"),d=o.length-1,c=o.map((t,e)=>0===e&&!0===this.reverseFillMask?new RegExp("^"+i+"*"+t):e===d?new RegExp("^"+t+"("+(""===l?".":l)+"+)?"+(!0===this.reverseFillMask?"$":i+"*")):new RegExp("^"+t));this.computedMask=n,this.computedUnmask=(t=>{const e=h.exec(!0===this.reverseFillMask?t:t.slice(0,n.length+1));null!==e&&(t=e.slice(1).join(""));const i=[],s=c.length;for(let e=0,o=t;e<s;e++){const t=c[e].exec(o);if(null===t)break;o=o.slice(t.shift().length),i.push(...t)}return i.length>0?i.join(""):t}),this.maskMarked=n.map(t=>"string"==typeof t?t:MARKER).join(""),this.maskReplaced=this.maskMarked.split(MARKER).join(e)},__updateMaskValue(t,e,i){const s=this.$refs.input,o=s.selectionEnd,n=s.value.length-o,r=this.__unmask(t);!0===e&&this.__updateMaskInternals();const a=this.__mask(r),l=!1!==this.fillMask?this.__fillWithMask(a):a,h=this.innerValue!==l;s.value!==l&&(s.value=l),!0===h&&(this.innerValue=l),document.activeElement===s&&this.$nextTick(()=>{if(l!==this.maskReplaced)if("insertFromPaste"!==i||!0===this.reverseFillMask)if(["deleteContentBackward","deleteContentForward"].indexOf(i)>-1){const t=!0===this.reverseFillMask?0===o?l.length>a.length?1:0:Math.max(0,l.length-(l===this.maskReplaced?0:Math.min(a.length,n)+1))+1:o;s.setSelectionRange(t,t,"forward")}else if(!0===this.reverseFillMask)if(!0===h){const t=Math.max(0,l.length-(l===this.maskReplaced?0:Math.min(a.length,n+1)));1===t&&1===o?s.setSelectionRange(t,t,"forward"):this.__moveCursorRightReverse(s,t,t)}else{const t=l.length-n;s.setSelectionRange(t,t,"backward")}else if(!0===h){const t=Math.max(0,this.maskMarked.indexOf(MARKER),Math.min(a.length,o)-1);this.__moveCursorRight(s,t,t)}else{const t=o-1;this.__moveCursorRight(s,t,t)}else{const t=o-1;this.__moveCursorRight(s,t,t)}else{const t=!0===this.reverseFillMask?this.maskReplaced.length:0;s.setSelectionRange(t,t,"forward")}});const d=!0===this.unmaskedValue?this.__unmask(l):l;String(this.value)!==d&&this.__emitValue(d,!0)},__moveCursorForPaste(t,e,i){const s=this.__mask(this.__unmask(t.value));e=Math.max(0,this.maskMarked.indexOf(MARKER),Math.min(s.length,e)),t.setSelectionRange(e,i,"forward")},__moveCursorLeft(t,e,i,s){const o=-1===this.maskMarked.slice(e-1).indexOf(MARKER);let n=Math.max(0,e-1);for(;n>=0;n--)if(this.maskMarked[n]===MARKER){e=n,!0===o&&e++;break}if(n<0&&void 0!==this.maskMarked[e]&&this.maskMarked[e]!==MARKER)return this.__moveCursorRight(t,0,0);e>=0&&t.setSelectionRange(e,!0===s?i:e,"backward")},__moveCursorRight(t,e,i,s){const o=t.value.length;let n=Math.min(o,i+1);for(;n<=o;n++){if(this.maskMarked[n]===MARKER){i=n;break}this.maskMarked[n-1]===MARKER&&(i=n)}if(n>o&&void 0!==this.maskMarked[i-1]&&this.maskMarked[i-1]!==MARKER)return this.__moveCursorLeft(t,o,o);t.setSelectionRange(s?e:i,i,"forward")},__moveCursorLeftReverse(t,e,i,s){const o=this.__getPaddedMaskMarked(t.value.length);let n=Math.max(0,e-1);for(;n>=0;n--){if(o[n-1]===MARKER){e=n;break}if(o[n]===MARKER&&(e=n,0===n))break}if(n<0&&void 0!==o[e]&&o[e]!==MARKER)return this.__moveCursorRightReverse(t,0,0);e>=0&&t.setSelectionRange(e,!0===s?i:e,"backward")},__moveCursorRightReverse(t,e,i,s){const o=t.value.length,n=this.__getPaddedMaskMarked(o),r=-1===n.slice(0,i+1).indexOf(MARKER);let a=Math.min(o,i+1);for(;a<=o;a++)if(n[a-1]===MARKER){(i=a)>0&&!0===r&&i--;break}if(a>o&&void 0!==n[i-1]&&n[i-1]!==MARKER)return this.__moveCursorLeftReverse(t,o,o);t.setSelectionRange(!0===s?e:i,i,"forward")},__onMaskedKeydown(t){if(void 0!==this.qListeners.keydown&&this.$emit("keydown",t),!0===shouldIgnoreKey(t))return;const e=this.$refs.input,i=e.selectionStart,s=e.selectionEnd;if(37===t.keyCode||39===t.keyCode){const o=this["__moveCursor"+(39===t.keyCode?"Right":"Left")+(!0===this.reverseFillMask?"Reverse":"")];t.preventDefault(),o(e,i,s,t.shiftKey)}else 8===t.keyCode&&!0!==this.reverseFillMask&&i===s?this.__moveCursorLeft(e,i,s,!0):46===t.keyCode&&!0===this.reverseFillMask&&i===s&&this.__moveCursorRightReverse(e,i,s,!0);this.$emit("keydown",t)},__mask(t){if(void 0===t||null===t||""===t)return"";if(!0===this.reverseFillMask)return this.__maskReverse(t);const e=this.computedMask;let i=0,s="";for(let o=0;o<e.length;o++){const n=t[i],r=e[o];if("string"==typeof r)s+=r,n===r&&i++;else{if(void 0===n||!r.regex.test(n))return s;s+=void 0!==r.transform?r.transform(n):n,i++}}return s},__maskReverse(t){const e=this.computedMask,i=this.maskMarked.indexOf(MARKER);let s=t.length-1,o="";for(let n=e.length-1;n>=0&&s>-1;n--){const r=e[n];let a=t[s];if("string"==typeof r)o=r+o,a===r&&s--;else{if(void 0===a||!r.regex.test(a))return o;do{o=(void 0!==r.transform?r.transform(a):a)+o,a=t[--s]}while(i===n&&void 0!==a&&r.regex.test(a))}}return o},__unmask(t){return"string"!=typeof t||void 0===this.computedUnmask?"number"==typeof t?this.computedUnmask(""+t):t:this.computedUnmask(t)},__fillWithMask(t){return this.maskReplaced.length-t.length<=0?t:!0===this.reverseFillMask&&t.length>0?this.maskReplaced.slice(0,-t.length)+t:t+this.maskReplaced.slice(t.length)}}};const isJapanese=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,isChinese=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,isKorean=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,isPlainText=/[a-z0-9_ -]$/i;var CompositionMixin={methods:{__onComposition(t){if("compositionend"===t.type||"change"===t.type){if(!0!==t.target.qComposing)return;t.target.qComposing=!1,this.__onInput(t)}else if("compositionupdate"===t.type&&!0!==t.target.qComposing&&"string"==typeof t.data){!0===(!0===client.is.firefox?!1===isPlainText.test(t.data):!0===isJapanese.test(t.data)||!0===isChinese.test(t.data)||!0===isKorean.test(t.data))&&(t.target.qComposing=!0)}}}},QInput=Vue.extend({name:"QInput",mixins:[QField,MaskMixin,CompositionMixin,FormFieldMixin,FileValueMixin,ListenersMixin],props:{value:{required:!1},shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},watch:{value(t){if(!0===this.hasMask){if(!0===this.stopValueWatcher&&(this.stopValueWatcher=!1,String(t)===this.emitCachedValue))return;this.__updateMaskValue(t)}else this.innerValue!==t&&(this.innerValue=t,"number"===this.type&&!0===this.hasOwnProperty("tempValue")&&(!0===this.typedNumber?this.typedNumber=!1:delete this.tempValue));!0===this.autogrow&&this.$nextTick(this.__adjustHeight)},type(){this.$refs.input&&(this.$refs.input.value=this.value)},autogrow(t){if(!0===t)this.$nextTick(this.__adjustHeight);else if(this.qAttrs.rows>0&&void 0!==this.$refs.input){this.$refs.input.style.height="auto"}},dense(){!0===this.autogrow&&this.$nextTick(this.__adjustHeight)}},data(){return{innerValue:this.__getInitialMaskedValue()}},computed:{isTextarea(){return"textarea"===this.type||!0===this.autogrow},isTypeText(){return!0===this.isTextarea||["text","search","url","tel","password"].includes(this.type)},fieldClass(){return`q-${!0===this.isTextarea?"textarea":"input"}`+(!0===this.autogrow?" q-textarea--autogrow":"")},hasShadow(){return"file"!==this.type&&"string"==typeof this.shadowText&&this.shadowText.length>0},onEvents(){const t={...this.qListeners,input:this.__onInput,paste:this.__onPaste,change:this.__onChange,blur:this.__onFinishEditing,focus:stop};return t.compositionstart=t.compositionupdate=t.compositionend=this.__onComposition,!0===this.hasMask&&(t.keydown=this.__onMaskedKeydown),!0===this.autogrow&&(t.animationend=this.__onAnimationend),t},inputAttrs(){const t={tabindex:0,"data-autofocus":this.autofocus||void 0,rows:"textarea"===this.type?6:void 0,"aria-label":this.label,name:this.nameProp,...this.qAttrs,id:this.targetUid,type:this.type,maxlength:this.maxlength,disabled:!0===this.disable,readonly:!0===this.readonly};return!0===this.autogrow&&(t.rows=1),t}},methods:{focus(){addFocusFn(()=>{const t=document.activeElement;void 0===this.$refs.input||this.$refs.input===t||null!==t&&t.id===this.targetUid||this.$refs.input.focus({preventScroll:!0})})},select(){void 0!==this.$refs.input&&this.$refs.input.select()},getNativeElement(){return this.$refs.input},__onPaste(t){if(!0===this.hasMask&&!0!==this.reverseFillMask){const e=t.target;this.__moveCursorForPaste(e,e.selectionStart,e.selectionEnd)}this.$emit("paste",t)},__onInput(t){if(!t||!t.target||!0===t.target.qComposing)return;if("file"===this.type)return void this.$emit("input",t.target.files);const e=t.target.value;if(!0===this.hasMask)this.__updateMaskValue(e,!1,t.inputType);else if(this.__emitValue(e),!0===this.isTypeText&&t.target===document.activeElement){const{selectionStart:i,selectionEnd:s}=t.target;void 0!==i&&void 0!==s&&this.$nextTick(()=>{t.target===document.activeElement&&0===e.indexOf(t.target.value)&&t.target.setSelectionRange(i,s)})}!0===this.autogrow&&this.__adjustHeight()},__onAnimationend(t){void 0!==this.qListeners.animationend&&this.$emit("animationend",t),this.__adjustHeight()},__emitValue(t,e){this.emitValueFn=(()=>{"number"!==this.type&&!0===this.hasOwnProperty("tempValue")&&delete this.tempValue,this.value!==t&&this.emitCachedValue!==t&&(this.emitCachedValue=t,!0===e&&(this.stopValueWatcher=!0),this.$emit("input",t),this.$nextTick(()=>{this.emitCachedValue===t&&(this.emitCachedValue=NaN)})),this.emitValueFn=void 0}),"number"===this.type&&(this.typedNumber=!0,this.tempValue=t),void 0!==this.debounce?(clearTimeout(this.emitTimer),this.tempValue=t,this.emitTimer=setTimeout(this.emitValueFn,this.debounce)):this.emitValueFn()},__adjustHeight(){requestAnimationFrame(()=>{const t=this.$refs.input;if(void 0!==t){const e=t.parentNode.style,{overflow:i}=t.style;!0!==this.$q.platform.is.firefox&&(t.style.overflow="hidden"),e.marginBottom=t.scrollHeight-1+"px",t.style.height="1px",t.style.height=t.scrollHeight+"px",t.style.overflow=i,e.marginBottom=""}})},__onChange(t){this.__onComposition(t),clearTimeout(this.emitTimer),void 0!==this.emitValueFn&&this.emitValueFn(),this.$emit("change",t)},__onFinishEditing(t){void 0!==t&&stop(t),clearTimeout(this.emitTimer),void 0!==this.emitValueFn&&this.emitValueFn(),this.typedNumber=!1,this.stopValueWatcher=!1,delete this.tempValue,"file"!==this.type&&setTimeout(()=>{void 0!==this.$refs.input&&(this.$refs.input.value=void 0!==this.innerValue?this.innerValue:"")})},__getCurValue(){return!0===this.hasOwnProperty("tempValue")?this.tempValue:void 0!==this.innerValue?this.innerValue:""},__getShadowControl(t){return t("div",{staticClass:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(!0===this.isTextarea?"":" text-no-wrap")},[t("span",{staticClass:"invisible"},this.__getCurValue()),t("span",this.shadowText)])},__getControl(t){return t(!0===this.isTextarea?"textarea":"input",{ref:"input",staticClass:"q-field__native q-placeholder",style:this.inputStyle,class:this.inputClass,attrs:this.inputAttrs,on:this.onEvents,domProps:"file"!==this.type?{value:this.__getCurValue()}:this.formDomProps})}},created(){this.emitCachedValue=NaN},mounted(){!0===this.autogrow&&this.__adjustHeight()},beforeDestroy(){this.__onFinishEditing()}});const defaultCfg={threshold:0,root:null,rootMargin:"0px"};function update(t,e,i){let s,o,n;"function"==typeof i?(s=i,o=defaultCfg,n=void 0===e.cfg):(s=i.handler,o=Object.assign({},defaultCfg,i.cfg),n=void 0===e.cfg||!1===isDeepEqual(e.cfg,o)),e.handler!==s&&(e.handler=s),!0===n&&(e.cfg=o,void 0!==e.observer&&e.observer.unobserve(t),e.observer=new IntersectionObserver(([i])=>{if("function"==typeof e.handler){if(null===i.rootBounds&&(void 0!==t.__vue__?!0!==t.__vue__._inactive:!0===document.body.contains(t)))return e.observer.unobserve(t),void e.observer.observe(t);(!1===e.handler(i,e.observer)||!0===e.once&&!0===i.isIntersecting)&&destroy$3(t)}},o),e.observer.observe(t))}function destroy$3(t){const e=t.__qvisible;void 0!==e&&(void 0!==e.observer&&e.observer.unobserve(t),delete t.__qvisible)}var Intersection={name:"intersection",inserted(t,{modifiers:e,value:i}){void 0!==t.__qvisible&&(destroy$3(t),t.__qvisible_destroyed=!0);const s={once:!0===e.once};update(t,s,i),t.__qvisible=s},update(t,e){const i=t.__qvisible;void 0!==i&&update(t,i,e.value)},unbind(t){void 0===t.__qvisible_destroyed?destroy$3(t):delete t.__qvisible_destroyed}},QIntersection=Vue.extend({name:"QIntersection",mixins:[TagMixin,ListenersMixin],directives:{Intersection:Intersection},props:{once:Boolean,transition:String,ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean},data(){return{showing:!0===onSSR&&this.ssrPrerender}},computed:{value(){return void 0!==this.root||void 0!==this.margin||void 0!==this.threshold?{handler:this.__trigger,cfg:{root:this.root,rootMargin:this.margin,threshold:this.threshold}}:this.__trigger},directives(){if(!0!==this.disable&&(!0!==onSSR||!0!==this.once||!0!==this.ssrPrerender))return[{name:"intersection",value:this.value,modifiers:{once:this.once}}]}},methods:{__trigger(t){this.showing!==t.isIntersecting&&(this.showing=t.isIntersecting,void 0!==this.qListeners.visibility&&this.$emit("visibility",this.showing))}},render(t){const e=!0===this.showing?[t("div",{key:"content"},slot(this,"default"))]:void 0;return t(this.tag,{staticClass:"q-intersection",on:{...this.qListeners},directives:this.directives},this.transition?[t("transition",{props:{name:"q-transition--"+this.transition}},e)]:e)}});const keyCodes$1=[34,37,40,33,39,38];var QKnob=Vue.extend({name:"QKnob",mixins:[{props:QCircularProgress.options.props},FormMixin],directives:{TouchPan:TouchPan},props:{innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:t=>t>=0},tabindex:{type:[Number,String],default:0},disable:Boolean,readonly:Boolean},data(){const t=this.__getInnerMin(this.innerMin),e=this.__getInnerMax(this.innerMax);return{model:null===this.value?t:between(this.value,t,e),dragging:!1}},watch:{modelUpdate(){this.model=null===this.value?this.computedInnerMin:between(this.value,this.computedInnerMin,this.computedInnerMax),this.__updateValue(!0)}},computed:{classes(){return"q-knob non-selectable"+(!0===this.editable?" q-knob--editable":!0===this.disable?" disabled":"")},computedInnerMin(){return this.__getInnerMin(this.innerMin)},computedInnerMax(){return this.__getInnerMax(this.innerMax)},modelUpdate(){return`${this.value}|${this.computedInnerMin}|${this.computedInnerMax}`},editable(){return!1===this.disable&&!1===this.readonly},decimals(){return(String(this.step).trim("0").split(".")[1]||"").length},computedStep(){return 0===this.step?1:this.step},computedInstantFeedback(){return!0===this.instantFeedback||!0===this.dragging},onEvents(){return!0===this.$q.platform.is.mobile?{click:this.__click}:{mousedown:this.__activate,click:this.__click,keydown:this.__keydown,keyup:this.__keyup}},attrs(){const t={role:"slider","aria-valuemin":this.computedInnerMin,"aria-valuemax":this.computedInnerMax,"aria-valuenow":this.value};return!0===this.editable?t.tabindex=this.tabindex:t[`aria-${!0===this.disable?"disabled":"readonly"}`]="",t}},methods:{__getInnerMin(t){return!0===isNaN(t)||this.innerMin<this.min?this.min:this.innerMin},__getInnerMax(t){return!0===isNaN(t)||t>this.max?this.max:this.innerMax},__updateCenterPosition(){const{top:t,left:e,width:i,height:s}=this.$el.getBoundingClientRect();this.centerPosition={top:t+s/2,left:e+i/2}},__pan(t){t.isFinal?(this.__updatePosition(t.evt,!0),this.dragging=!1):t.isFirst?(this.__updateCenterPosition(),this.dragging=!0,this.__updatePosition(t.evt)):this.__updatePosition(t.evt)},__click(t){this.__updateCenterPosition(),this.__updatePosition(t,!0)},__keydown(t){if(!keyCodes$1.includes(t.keyCode))return;stopAndPrevent(t);const e=([34,33].includes(t.keyCode)?10:1)*this.computedStep,i=[34,37,40].includes(t.keyCode)?-e:e;this.model=between(parseFloat((this.model+i).toFixed(this.decimals)),this.computedInnerMin,this.computedInnerMax),this.__updateValue()},__keyup(t){keyCodes$1.includes(t.keyCode)&&this.__updateValue(!0)},__activate(t){this.__updateCenterPosition(),this.__updatePosition(t)},__updatePosition(t,e){const i=this.centerPosition,s=position(t),o=Math.abs(s.top-i.top),n=Math.sqrt(o**2+Math.abs(s.left-i.left)**2);let r=Math.asin(o/n)*(180/Math.PI);r=s.top<i.top?i.left<s.left?90-r:270+r:i.left<s.left?r+90:270-r,!0===this.$q.lang.rtl?r=normalizeToInterval(-r-this.angle,0,360):this.angle&&(r=normalizeToInterval(r-this.angle,0,360)),!0===this.reverse&&(r=360-r);let a=this.min+r/360*(this.max-this.min);if(0!==this.step){const t=this.computedStep,e=a%t;a=a-e+(Math.abs(e)>=t/2?(e<0?-1:1)*t:0),a=parseFloat(a.toFixed(this.decimals))}a=between(a,this.computedInnerMin,this.computedInnerMax),this.$emit("drag-value",a),this.model!==a&&(this.model=a),this.__updateValue(e)},__updateValue(t){this.value!==this.model&&this.$emit("input",this.model),!0===t&&this.$emit("change",this.model)},__getNameInput(){return this.$createElement("input",{attrs:this.formAttrs})}},render(t){const e={class:this.classes,attrs:this.attrs,props:{...this.$props,value:this.model,instantFeedback:this.computedInstantFeedback}};return!0===this.editable&&(e.on=this.onEvents,e.directives=cache(this,"dir",[{name:"touch-pan",value:this.__pan,modifiers:{prevent:!0,stop:!0,mouse:!0}}]),void 0!==this.name&&(e.scopedSlots={internal:this.__getNameInput})),t(QCircularProgress,e,slot(this,"default"))}});const{passive:passive$2}=listenOpts;var QScrollObserver=Vue.extend({name:"QScrollObserver",props:{debounce:[String,Number],horizontal:Boolean,scrollTarget:{default:void 0}},render:noop,data(){return{pos:0,dir:!0===this.horizontal?"right":"down",dirChanged:!1,dirChangePos:0}},watch:{scrollTarget(){this.__unconfigureScrollTarget(),this.__configureScrollTarget()},"$q.lang.rtl"(){this.__emit()}},methods:{getPosition(){return{position:this.pos,direction:this.dir,directionChanged:this.dirChanged,inflexionPosition:this.dirChangePos}},trigger(t){if(!0===t||0===this.debounce||"0"===this.debounce)this.__emit();else if(void 0===this.clearTimer){const[t,e]=this.debounce?[setTimeout(this.__emit,this.debounce),clearTimeout]:[requestAnimationFrame(this.__emit),cancelAnimationFrame];this.clearTimer=(()=>{e(t),this.clearTimer=void 0})}},__emit(){void 0!==this.clearTimer&&this.clearTimer();const t=!0===this.horizontal?getHorizontalScrollPosition:getScrollPosition,e=Math.max(0,t(this.__scrollTarget)),i=e-this.pos,s=!0===this.horizontal?i<0?"left":"right":i<0?"up":"down";this.dirChanged=this.dir!==s,this.dirChanged&&(this.dir=s,this.dirChangePos=this.pos),this.pos=e,this.$emit("scroll",this.getPosition())},__configureScrollTarget(){this.__scrollTarget=getScrollTarget(this.$el.parentNode,this.scrollTarget),this.__scrollTarget.addEventListener("scroll",this.trigger,passive$2),this.trigger(!0)},__unconfigureScrollTarget(){void 0!==this.__scrollTarget&&(this.__scrollTarget.removeEventListener("scroll",this.trigger,passive$2),this.__scrollTarget=void 0)}},mounted(){this.__configureScrollTarget()},beforeDestroy(){void 0!==this.clearTimer&&this.clearTimer(),this.__unconfigureScrollTarget()}}),QLayout=Vue.extend({name:"QLayout",mixins:[ListenersMixin],provide(){return{layout:this}},props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:t=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(t.toLowerCase())}},data(){return{height:this.$q.screen.height,width:!0===this.container?0:this.$q.screen.width,containerHeight:0,scrollbarWidth:!0===onSSR?0:getScrollbarWidth(),header:{size:0,offset:0,space:!1},right:{size:300,offset:0,space:!1},footer:{size:0,offset:0,space:!1},left:{size:300,offset:0,space:!1},scroll:{position:0,direction:"down"}}},computed:{rows(){const t=this.view.toLowerCase().split(" ");return{top:t[0].split(""),middle:t[1].split(""),bottom:t[2].split("")}},style(){return!0===this.container?null:{minHeight:this.$q.screen.height+"px"}},targetStyle(){if(0!==this.scrollbarWidth)return{[!0===this.$q.lang.rtl?"left":"right"]:`${this.scrollbarWidth}px`}},targetChildStyle(){if(0!==this.scrollbarWidth)return{[!0===this.$q.lang.rtl?"right":"left"]:0,[!0===this.$q.lang.rtl?"left":"right"]:`-${this.scrollbarWidth}px`,width:`calc(100% + ${this.scrollbarWidth}px)`}},totalWidth(){return this.width+this.scrollbarWidth},classes(){return"q-layout q-layout--"+(!0===this.container?"containerized":"standard")},scrollbarEvtAction(){return!0!==this.container&&this.scrollbarWidth>0?"add":"remove"}},watch:{scrollbarEvtAction:"__updateScrollEvent"},created(){this.instances={}},mounted(){"add"===this.scrollbarEvtAction&&this.__updateScrollEvent("add")},beforeDestroy(){"add"===this.scrollbarEvtAction&&this.__updateScrollEvent("remove")},render(t){const e=t("div",{class:this.classes,style:this.style,attrs:{tabindex:-1},on:{...this.qListeners}},mergeSlot([t(QScrollObserver,{on:cache(this,"scroll",{scroll:this.__onPageScroll})}),t(QResizeObserver,{on:cache(this,"resizeOut",{resize:this.__onPageResize})})],this,"default"));return!0===this.container?t("div",{staticClass:"q-layout-container overflow-hidden"},[t(QResizeObserver,{on:cache(this,"resizeIn",{resize:this.__onContainerResize})}),t("div",{staticClass:"absolute-full",style:this.targetStyle},[t("div",{staticClass:"scroll",style:this.targetChildStyle},[e])])]):e},methods:{__animate(){void 0!==this.timer?clearTimeout(this.timer):document.body.classList.add("q-body--layout-animate"),this.timer=setTimeout(()=>{document.body.classList.remove("q-body--layout-animate"),this.timer=void 0},150)},__onPageScroll(t){!0!==this.container&&!0===document.qScrollPrevented||(this.scroll=t),void 0!==this.qListeners.scroll&&this.$emit("scroll",t)},__onPageResize({height:t,width:e}){let i=!1;this.height!==t&&(i=!0,this.height=t,void 0!==this.qListeners["scroll-height"]&&this.$emit("scroll-height",t),this.__updateScrollbarWidth()),this.width!==e&&(i=!0,this.width=e),!0===i&&void 0!==this.qListeners.resize&&this.$emit("resize",{height:t,width:e})},__onContainerResize({height:t}){this.containerHeight!==t&&(this.containerHeight=t,this.__updateScrollbarWidth())},__updateScrollbarWidth(){if(!0===this.container){const t=this.height>this.containerHeight?getScrollbarWidth():0;this.scrollbarWidth!==t&&(this.scrollbarWidth=t)}},__updateScrollEvent(t){void 0!==this.timerScrollbar&&"remove"===t&&(clearTimeout(this.timerScrollbar),this.__restoreScrollbar()),window[`${t}EventListener`]("resize",this.__hideScrollbar)},__hideScrollbar(){if(void 0===this.timerScrollbar){const t=document.body;if(t.scrollHeight>this.$q.screen.height)return;t.classList.add("hide-scrollbar")}else clearTimeout(this.timerScrollbar);this.timerScrollbar=setTimeout(this.__restoreScrollbar,200)},__restoreScrollbar(){this.timerScrollbar=void 0,document.body.classList.remove("hide-scrollbar")}}}),QMarkupTable=Vue.extend({name:"QMarkupTable",mixins:[DarkMixin,ListenersMixin],props:{dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:t=>["horizontal","vertical","cell","none"].includes(t)},wrapCells:Boolean},computed:{classes(){return`q-table--${this.separator}-separator`+(!0===this.isDark?" q-table--dark q-table__card--dark q-dark":"")+(!0===this.dense?" q-table--dense":"")+(!0===this.flat?" q-table--flat":"")+(!0===this.bordered?" q-table--bordered":"")+(!0===this.square?" q-table--square":"")+(!1===this.wrapCells?" q-table--no-wrap":"")}},render(t){return t("div",{staticClass:"q-markup-table q-table__container q-table__card",class:this.classes,on:{...this.qListeners}},[t("table",{staticClass:"q-table"},slot(this,"default"))])}}),QNoSsr=Vue.extend({name:"QNoSsr",mixins:[CanRenderMixin,TagMixin,ListenersMixin],props:{placeholder:String},render(t){const e={on:{...this.qListeners}};if(!0===this.canRender){const i=slot(this,"default");return void 0===i?i:i.length>1?t(this.tag,e,i):i[0]}e.staticClass="q-no-ssr-placeholder";const i=slot(this,"placeholder");return void 0!==i?i.length>1?t(this.tag,e,i):i[0]:void 0!==this.placeholder?t(this.tag,e,[this.placeholder]):void 0}}),QRadio=Vue.extend({name:"QRadio",mixins:[DarkMixin,OptionSizeMixin,FormMixin,RefocusTargetMixin],props:{value:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,checkedIcon:String,uncheckedIcon:String,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},computed:{isTrue(){return this.value===this.val},classes(){return"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(!0===this.disable?" disabled":"")+(!0===this.isDark?" q-radio--dark":"")+(!0===this.dense?" q-radio--dense":"")+(!0===this.leftLabel?" reverse":"")},innerClass(){const t=void 0===this.color||!0!==this.keepColor&&!0!==this.isTrue?"":` text-${this.color}`;return`q-radio__inner--${!0===this.isTrue?"truthy":"falsy"}${t}`},computedIcon(){return!0===this.isTrue?this.checkedIcon:this.uncheckedIcon},computedTabindex(){return!0===this.disable?-1:this.tabindex||0},formAttrs(){const t={type:"radio"};return void 0!==this.name&&Object.assign(t,{name:this.name,value:this.val}),t},formDomProps(){if(void 0!==this.name&&!0===this.isTrue)return{checked:!0}},attrs(){const t={tabindex:this.computedTabindex,role:"radio","aria-label":this.label,"aria-checked":!0===this.isTrue?"true":"false"};return!0===this.disable&&(t["aria-disabled"]="true"),t}},methods:{set(t){void 0!==t&&(stopAndPrevent(t),this.__refocusTarget(t)),!0!==this.disable&&!0!==this.isTrue&&this.$emit("input",this.val,t)}},render(t){const e=void 0!==this.computedIcon?[t("div",{key:"icon",staticClass:"q-radio__icon-container absolute-full flex flex-center no-wrap"},[t(QIcon,{staticClass:"q-radio__icon",props:{name:this.computedIcon}})])]:[t("svg",{key:"svg",staticClass:"q-radio__bg absolute non-selectable",attrs:{focusable:"false",viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,22a10,10 0 0 1 -10,-10a10,10 0 0 1 10,-10a10,10 0 0 1 10,10a10,10 0 0 1 -10,10m0,-22a12,12 0 0 0 -12,12a12,12 0 0 0 12,12a12,12 0 0 0 12,-12a12,12 0 0 0 -12,-12"}}),t("path",{staticClass:"q-radio__check",attrs:{d:"M12,6a6,6 0 0 0 -6,6a6,6 0 0 0 6,6a6,6 0 0 0 6,-6a6,6 0 0 0 -6,-6"}})])];!0!==this.disable&&this.__injectFormInput(e,"unshift","q-radio__native q-ma-none q-pa-none");const i=[t("div",{staticClass:"q-radio__inner relative-position",class:this.innerClass,style:this.sizeStyle,attrs:{"aria-hidden":"true"}},e)];void 0!==this.__refocusTargetEl&&i.push(this.__refocusTargetEl);const s=void 0!==this.label?mergeSlot([this.label],this,"default"):slot(this,"default");return void 0!==s&&i.push(t("div",{staticClass:"q-radio__label q-anchor--skip"},s)),t("div",{class:this.classes,attrs:this.attrs,on:cache(this,"inpExt",{click:this.set,keydown:t=>{13!==t.keyCode&&32!==t.keyCode||stopAndPrevent(t)},keyup:t=>{13!==t.keyCode&&32!==t.keyCode||this.set(t)}})},i)}}),QToggle=Vue.extend({name:"QToggle",mixins:[CheckboxMixin],props:{icon:String,iconColor:String},computed:{computedIcon(){return(!0===this.isTrue?this.checkedIcon:!0===this.isIndeterminate?this.indeterminateIcon:this.uncheckedIcon)||this.icon},computedIconColor(){if(!0===this.isTrue)return this.iconColor}},methods:{__getInner(t){return[t("div",{staticClass:"q-toggle__track"}),t("div",{staticClass:"q-toggle__thumb absolute flex flex-center no-wrap"},void 0!==this.computedIcon?[t(QIcon,{props:{name:this.computedIcon,color:this.computedIconColor}})]:void 0)]}},created(){this.type="toggle"}});const components={radio:QRadio,checkbox:QCheckbox,toggle:QToggle},typeValues=Object.keys(components);var QOptionGroup=Vue.extend({name:"QOptionGroup",mixins:[DarkMixin,ListenersMixin],props:{value:{required:!0},options:{type:Array,validator:t=>t.every(t=>"value"in t&&"label"in t)},name:String,type:{default:"radio",validator:t=>typeValues.includes(t)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},computed:{component(){return components[this.type]},model(){return Array.isArray(this.value)?this.value.slice():this.value},classes(){return"q-option-group q-gutter-x-sm"+(!0===this.inline?" q-option-group--inline":"")},attrs(){if("radio"===this.type){const t={role:"radiogroup"};return!0===this.disable&&(t["aria-disabled"]="true"),t}return{role:"group"}}},methods:{__update(t){this.$emit("input",t)}},created(){const t=Array.isArray(this.value);"radio"===this.type?t&&console.error("q-option-group: model should not be array"):!1===t&&console.error("q-option-group: model should be array in your case")},render(t){return t("div",{class:this.classes,attrs:this.attrs,on:{...this.qListeners}},this.options.map((e,i)=>{const s=void 0!==this.$scopedSlots["label-"+i]?this.$scopedSlots["label-"+i](e):void 0!==this.$scopedSlots.label?this.$scopedSlots.label(e):void 0;return t("div",[t(this.component,{props:{value:this.value,val:e.value,name:void 0===e.name?this.name:e.name,disable:this.disable||e.disable,label:void 0===s?e.label:void 0,leftLabel:void 0===e.leftLabel?this.leftLabel:e.leftLabel,color:void 0===e.color?this.color:e.color,checkedIcon:e.checkedIcon,uncheckedIcon:e.uncheckedIcon,dark:e.dark||this.isDark,size:void 0===e.size?this.size:e.size,dense:this.dense,keepColor:void 0===e.keepColor?this.keepColor:e.keepColor},on:cache(this,"inp",{input:this.__update})},s)])}))}}),QPage=Vue.extend({name:"QPage",mixins:[ListenersMixin],inject:{pageContainer:{default(){console.error("QPage needs to be child of QPageContainer")}},layout:{}},props:{padding:Boolean,styleFn:Function},computed:{style(){const t=(!0===this.layout.header.space?this.layout.header.size:0)+(!0===this.layout.footer.space?this.layout.footer.size:0);if("function"==typeof this.styleFn){const e=!0===this.layout.container?this.layout.containerHeight:this.$q.screen.height;return this.styleFn(t,e)}return{minHeight:!0===this.layout.container?this.layout.containerHeight-t+"px":0===this.$q.screen.height?`calc(100vh - ${t}px)`:this.$q.screen.height-t+"px"}},classes(){if(!0===this.padding)return"q-layout-padding"}},render(t){return t("main",{staticClass:"q-page",style:this.style,class:this.classes,on:{...this.qListeners}},slot(this,"default"))}}),QPageContainer=Vue.extend({name:"QPageContainer",mixins:[ListenersMixin],inject:{layout:{default(){console.error("QPageContainer needs to be child of QLayout")}}},provide:{pageContainer:!0},computed:{style(){const t={};return!0===this.layout.header.space&&(t.paddingTop=`${this.layout.header.size}px`),!0===this.layout.right.space&&(t[`padding${!0===this.$q.lang.rtl?"Left":"Right"}`]=`${this.layout.right.size}px`),!0===this.layout.footer.space&&(t.paddingBottom=`${this.layout.footer.size}px`),!0===this.layout.left.space&&(t[`padding${!0===this.$q.lang.rtl?"Right":"Left"}`]=`${this.layout.left.size}px`),t}},render(t){return t("div",{staticClass:"q-page-container",style:this.style,on:{...this.qListeners}},slot(this,"default"))}}),QPageSticky=Vue.extend({name:"QPageSticky",mixins:[ListenersMixin],inject:{layout:{default(){console.error("QPageSticky needs to be child of QLayout")}}},props:{position:{type:String,default:"bottom-right",validator:t=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(t)},offset:{type:Array,validator:t=>2===t.length},expand:Boolean},computed:{attach(){const t=this.position;return{top:t.indexOf("top")>-1,right:t.indexOf("right")>-1,bottom:t.indexOf("bottom")>-1,left:t.indexOf("left")>-1,vertical:"top"===t||"bottom"===t,horizontal:"left"===t||"right"===t}},top(){return this.layout.header.offset},right(){return this.layout.right.offset},bottom(){return this.layout.footer.offset},left(){return this.layout.left.offset},style(){let t=0,e=0;const i=this.attach,s=!0===this.$q.lang.rtl?-1:1;!0===i.top&&0!==this.top?e=`${this.top}px`:!0===i.bottom&&0!==this.bottom&&(e=`${-this.bottom}px`),!0===i.left&&0!==this.left?t=`${s*this.left}px`:!0===i.right&&0!==this.right&&(t=`${-s*this.right}px`);const o={transform:`translate(${t}, ${e})`};return this.offset&&(o.margin=`${this.offset[1]}px ${this.offset[0]}px`),!0===i.vertical?(0!==this.left&&(o[!0===this.$q.lang.rtl?"right":"left"]=`${this.left}px`),0!==this.right&&(o[!0===this.$q.lang.rtl?"left":"right"]=`${this.right}px`)):!0===i.horizontal&&(0!==this.top&&(o.top=`${this.top}px`),0!==this.bottom&&(o.bottom=`${this.bottom}px`)),o},classes(){return`fixed-${this.position} q-page-sticky--${!0===this.expand?"expand":"shrink"}`}},render(t){const e=slot(this,"default");return t("div",{staticClass:"q-page-sticky row flex-center",class:this.classes,style:this.style,on:{...this.qListeners}},!0===this.expand?e:[t("div",e)])}}),QPageScroller=Vue.extend({name:"QPageScroller",mixins:[QPageSticky],props:{scrollOffset:{type:Number,default:1e3},reverse:Boolean,duration:{type:Number,default:300},offset:{default:()=>[18,18]}},inject:{layout:{default(){console.error("QPageScroller needs to be used within a QLayout")}}},data(){return{showing:this.__isVisible()}},computed:{scrollHeight(){return this.layout.height-(!0===this.layout.container?this.layout.containerHeight:this.$q.screen.height)},onEvents(){return{...this.qListeners,click:this.__onClick}}},watch:{"layout.scroll.position"(){this.__updateVisibility()},reverse:{handler(t){!0===t?void 0===this.heightWatcher&&(this.heightWatcher=this.$watch("scrollHeight",this.__updateVisibility)):void 0!==this.heightWatcher&&this.__cleanup()},immediate:!0}},methods:{__isVisible(){return!0===this.reverse?this.scrollHeight-this.layout.scroll.position>this.scrollOffset:this.layout.scroll.position>this.scrollOffset},__onClick(t){const e=getScrollTarget(!0===this.layout.container?this.$el:this.layout.$el);setScrollPosition(e,!0===this.reverse?this.layout.height:0,this.duration),this.$emit("click",t)},__updateVisibility(){const t=this.__isVisible();this.showing!==t&&(this.showing=t)},__cleanup(){this.heightWatcher(),this.heightWatcher=void 0}},render(t){return t("transition",{props:{name:"q-transition--fade"}},!0===this.showing?[t("div",{staticClass:"q-page-scroller",on:this.onEvents},[QPageSticky.options.render.call(this,t)])]:null)},beforeDestroy(){void 0!==this.heightWatcher&&this.__cleanup()}});function getBool(t,e){return[!0,!1].includes(t)?t:e}var QPagination=Vue.extend({name:"QPagination",mixins:[DarkMixin,ListenersMixin],props:{value:{type:Number,required:!0},min:{type:[Number,String],default:1},max:{type:[Number,String],required:!0},maxPages:{type:[Number,String],default:0,validator:t=>("string"==typeof t?parseInt(t,10):t)>=0},inputStyle:[Array,String,Object],inputClass:[Array,String,Object],size:String,disable:Boolean,input:Boolean,iconPrev:String,iconNext:String,iconFirst:String,iconLast:String,toFn:Function,boundaryLinks:{type:Boolean,default:null},boundaryNumbers:{type:Boolean,default:null},directionLinks:{type:Boolean,default:null},ellipses:{type:Boolean,default:null},ripple:{type:[Boolean,Object],default:null},round:Boolean,rounded:Boolean,flat:Boolean,outline:Boolean,unelevated:Boolean,push:Boolean,glossy:Boolean,color:{type:String,default:"primary"},textColor:String,activeDesign:{type:String,default:"",values:t=>""===t||btnDesignOptions.includes(t)},activeColor:String,activeTextColor:String,padding:{type:String,default:"3px 2px"}},data:()=>({newPage:null}),watch:{min(){this.model=this.value},max(){this.model=this.value}},computed:{model:{get(){return this.value},set(t){if(t=parseInt(t,10),this.disable||isNaN(t))return;const e=between(t,this.__min,this.__max);this.$emit("input",e)}},inputPlaceholder(){return this.model+" / "+this.__max},__min(){return parseInt(this.min,10)},__max(){return parseInt(this.max,10)},__maxPages(){return parseInt(this.maxPages,10)},__boundaryLinks(){return getBool(this.boundaryLinks,this.input)},__boundaryNumbers(){return getBool(this.boundaryNumbers,!this.input)},__directionLinks(){return getBool(this.directionLinks,this.input)},__ellipses(){return getBool(this.ellipses,!this.input)},__btnDesign(){return getBtnDesign(this,"flat")},__btnActiveDesign(){const t={[this.__btnDesign]:!1};return""!==this.activeDesign&&(t[this.activeDesign]=!0),t},icons(){const t=[this.iconFirst||this.$q.iconSet.pagination.first,this.iconPrev||this.$q.iconSet.pagination.prev,this.iconNext||this.$q.iconSet.pagination.next,this.iconLast||this.$q.iconSet.pagination.last];return!0===this.$q.lang.rtl?t.reverse():t},attrs(){const t={role:"navigation"};return!0===this.disable&&(t["aria-disabled"]="true"),t},btnProps(){return{[this.__btnDesign]:!0,round:this.round,rounded:this.rounded,padding:this.padding,color:this.color,textColor:this.textColor,size:this.size,ripple:null===this.ripple||this.ripple}},activeBtnProps(){return{...this.__btnActiveDesign,color:this.activeColor||this.color,textColor:this.activeTextColor||this.textColor}},btnConfig(){let t=Math.max(this.__maxPages,1+(this.__ellipses?2:0)+(this.__boundaryNumbers?2:0));const e={pgFrom:this.__min,pgTo:this.__max,ellipsesStart:!1,ellipsesEnd:!1,boundaryStart:!1,boundaryEnd:!1,marginalStyle:{minWidth:`${Math.max(2,String(this.__max).length)}em`}};return this.__maxPages&&t<this.__max-this.__min+1&&(t=1+2*Math.floor(t/2),e.pgFrom=Math.max(this.__min,Math.min(this.__max-t+1,this.value-Math.floor(t/2))),e.pgTo=Math.min(this.__max,e.pgFrom+t-1),this.__boundaryNumbers&&(e.boundaryStart=!0,e.pgFrom++),this.__ellipses&&e.pgFrom>this.__min+(this.__boundaryNumbers?1:0)&&(e.ellipsesStart=!0,e.pgFrom++),this.__boundaryNumbers&&(e.boundaryEnd=!0,e.pgTo--),this.__ellipses&&e.pgTo<this.__max-(this.__boundaryNumbers?1:0)&&(e.ellipsesEnd=!0,e.pgTo--)),e},inputEvents(){const t=()=>{this.model=this.newPage,this.newPage=null};return{input:t=>{this.newPage=t},keyup:e=>{!0===isKeyCode(e,13)&&t()},blur:t}}},methods:{set(t){this.model=t},setByOffset(t){this.model=this.model+t},__getBtn(t,e,i,s,o){return e.props={...this.btnProps,...i},e.attrs={"aria-label":s,"aria-current":"false",...e.attrs},!0===o&&(Object.assign(e.props,this.activeBtnProps),e.attrs["aria-current"]="true"),void 0!==s&&(void 0!==this.toFn?e.props.to=this.toFn(s):e.on={click:()=>{this.set(s)}}),t(QBtn,e)}},render(t){const e=[],i=[];let s;if(!0===this.__boundaryLinks&&(e.push(this.__getBtn(t,{key:"bls"},{disable:this.disable||this.value<=this.__min,icon:this.icons[0]},this.__min)),i.unshift(this.__getBtn(t,{key:"ble"},{disable:this.disable||this.value>=this.__max,icon:this.icons[3]},this.__max))),!0===this.__directionLinks&&(e.push(this.__getBtn(t,{key:"bdp"},{disable:this.disable||this.value<=this.__min,icon:this.icons[1]},this.value-1)),i.unshift(this.__getBtn(t,{key:"bdn"},{disable:this.disable||this.value>=this.__max,icon:this.icons[2]},this.value+1))),!0!==this.input){s=[];const{pgFrom:o,pgTo:n,marginalStyle:r}=this.btnConfig;if(!0===this.btnConfig.boundaryStart){const i=this.__min===this.value;e.push(this.__getBtn(t,{key:"bns",style:r},{disable:this.disable,label:this.__min},this.__min,i))}if(!0===this.btnConfig.boundaryEnd){const e=this.__max===this.value;i.unshift(this.__getBtn(t,{key:"bne",style:r},{disable:this.disable,label:this.__max},this.__max,e))}!0===this.btnConfig.ellipsesStart&&e.push(this.__getBtn(t,{key:"bes",style:r},{disable:this.disable,label:"…",ripple:!1},o-1)),!0===this.btnConfig.ellipsesEnd&&i.unshift(this.__getBtn(t,{key:"bee",style:r},{disable:this.disable,label:"…",ripple:!1},n+1));for(let e=o;e<=n;e++)s.push(this.__getBtn(t,{key:`bpg${e}`,style:r},{disable:this.disable,label:e},e,e===this.value))}return t("div",{staticClass:"q-pagination row no-wrap items-center",class:{disabled:this.disable},attrs:this.attrs,on:{...this.qListeners}},[t("div",{staticClass:"q-pagination__content row no-wrap items-center"},[...e,t("div",{staticClass:"q-pagination__middle row justify-center",on:!0===this.input?cache(this,"stop",{input:stop}):null},!0===this.input?[t(QInput,{staticClass:"inline",style:{width:`${this.inputPlaceholder.length/1.5}em`},props:{type:"number",dense:!0,value:this.newPage,disable:this.disable,dark:this.isDark,borderless:!0,inputClass:this.inputClass,inputStyle:this.inputStyle},attrs:{placeholder:this.inputPlaceholder,min:this.__min,max:this.__max},on:{...this.inputEvents}})]:s),...i])])}});function frameDebounce(t){let e,i,s=!1;function o(){i=arguments,!0!==s&&(s=!0,e=requestAnimationFrame(()=>{t.apply(this,i),i=void 0,s=!1}))}return o.cancel=(()=>{window.cancelAnimationFrame(e),s=!1}),o}const{passive:passive$3}=listenOpts;var QParallax=Vue.extend({name:"QParallax",mixins:[ListenersMixin],props:{src:String,height:{type:Number,default:500},speed:{type:Number,default:1,validator:t=>t>=0&&t<=1},scrollTarget:{default:void 0}},data:()=>({scrolling:!1,percentScrolled:0}),watch:{height(){!0===this.working&&this.__updatePos()},scrollTarget(){!0===this.working&&(this.__stop(),this.__start())}},methods:{__update(t){this.percentScrolled=t,void 0!==this.qListeners.scroll&&this.$emit("scroll",t)},__updatePos(){let t,e,i;this.__scrollTarget===window?(t=0,i=e=window.innerHeight):i=(t=offset(this.__scrollTarget).top)+(e=height(this.__scrollTarget));const s=offset(this.$el).top,o=s+this.height;if(void 0!==this.observer||o>t&&s<i){const t=(i-s)/(this.height+e);this.__setPos((this.mediaHeight-this.height)*t*this.speed),this.__update(t)}},__setPos(t){this.media.style.transform=`translate3d(-50%,${Math.round(t)}px,0)`},__onResize(){this.mediaHeight=this.media.naturalHeight||this.media.videoHeight||height(this.media),!0===this.working&&this.__updatePos()},__start(){this.working=!0,this.__scrollTarget=getScrollTarget(this.$el,this.scrollTarget),this.__scrollTarget.addEventListener("scroll",this.__updatePos,passive$3),window.addEventListener("resize",this.__resizeHandler,passive$3),this.__updatePos()},__stop(){!0===this.working&&(this.working=!1,this.__setPos.cancel(),this.__update.cancel(),this.__resizeHandler.cancel(),this.__scrollTarget.removeEventListener("scroll",this.__updatePos,passive$3),window.removeEventListener("resize",this.__resizeHandler,passive$3),this.__scrollTarget=void 0)}},render(t){return t("div",{staticClass:"q-parallax",style:{height:`${this.height}px`},on:{...this.qListeners}},[t("div",{ref:"mediaParent",staticClass:"q-parallax__media absolute-full"},void 0!==this.$scopedSlots.media?this.$scopedSlots.media():[t("img",{ref:"media",attrs:{src:this.src}})]),t("div",{staticClass:"q-parallax__content absolute-full column flex-center"},void 0!==this.$scopedSlots.content?this.$scopedSlots.content({percentScrolled:this.percentScrolled}):slot(this,"default"))])},mounted(){this.__setPos=frameDebounce(this.__setPos),this.__update=frameDebounce(this.__update),this.__resizeHandler=frameDebounce(this.__onResize),this.media=void 0!==this.$scopedSlots.media?this.$refs.mediaParent.children[0]:this.$refs.media,this.media.onload=this.media.onloadstart=this.media.loadedmetadata=this.__onResize,this.__onResize(),this.media.style.display="initial",void 0!==window.IntersectionObserver?(this.observer=new IntersectionObserver(t=>{this[!0===t[0].isIntersecting?"__start":"__stop"]()}),this.observer.observe(this.$el)):this.__start()},beforeDestroy(){this.__stop(),void 0!==this.observer&&this.observer.disconnect(),this.media.onload=this.media.onloadstart=this.media.loadedmetadata=null}});function cloneDeep(t,e=new WeakMap){if(Object(t)!==t)return t;if(e.has(t))return e.get(t);const i=t instanceof Date?new Date(t):t instanceof RegExp?new RegExp(t.source,t.flags):t instanceof Set?new Set:t instanceof Map?new Map:"function"!=typeof t.constructor?Object.create(null):void 0!==t.prototype&&"function"==typeof t.prototype.constructor?t:new t.constructor;if("function"==typeof t.constructor&&"function"==typeof t.valueOf){const i=t.valueOf();if(Object(i)!==i){const s=new t.constructor(i);return e.set(t,s),s}}return e.set(t,i),t instanceof Set?t.forEach(t=>{i.add(cloneDeep(t,e))}):t instanceof Map&&t.forEach((t,s)=>{i.set(s,cloneDeep(t,e))}),Object.assign(i,...Object.keys(t).map(i=>({[i]:cloneDeep(t[i],e)})))}var QPopupEdit=Vue.extend({name:"QPopupEdit",mixins:[AttrsMixin],props:{value:{required:!0},title:String,buttons:Boolean,labelSet:String,labelCancel:String,color:{type:String,default:"primary"},validate:{type:Function,default:()=>!0},autoSave:Boolean,cover:{type:Boolean,default:!0},contentClass:String,disable:Boolean},data:()=>({modelChanged:!1,model:null}),computed:{classes(){return"q-popup-edit"+(void 0!==this.contentClass?` ${this.contentClass}`:"")},modelValue(){return!0===this.modelChanged?this.model:this.value},initialValue(){return!0!==this.modelChanged?this.model:this.value},defaultSlotScope(){return injectProp({initialValue:this.initialValue,updatePosition:this.__reposition,emitValue:this.__changeModel,validate:this.validate,set:this.set,cancel:this.cancel},"value",()=>this.modelValue,this.__changeModel)},menuProps(){return{...this.qAttrs,cover:this.cover,contentClass:this.classes}}},methods:{set(){!0===this.validate(this.modelValue)&&(!0===this.__hasChanged()&&(this.$emit("save",this.modelValue,this.initialValue),!0===this.modelChanged&&this.$emit("input",this.modelValue)),this.__close())},cancel(){!0===this.__hasChanged()&&(this.$emit("cancel",this.modelValue,this.initialValue),!0!==this.modelChanged&&this.$emit("input",this.initialValue)),this.__close()},show(t){void 0!==this.$refs.menu&&this.$refs.menu.show(t)},hide(t){void 0!==this.$refs.menu&&this.$refs.menu.hide(t)},__hasChanged(){return!1===isDeepEqual(this.modelValue,this.initialValue)},__changeModel(t){!0!==this.disable&&(this.model=t,this.modelChanged=!0)},__close(){this.validated=!0,!0===this.$refs.menu.showing&&this.$refs.menu.hide()},__reposition(){this.$nextTick(()=>{this.$refs.menu.updatePosition()})},__getContent(t){const e=slot(this,"title",this.title),i=void 0===this.$scopedSlots.default?[]:[].concat(this.$scopedSlots.default(this.defaultSlotScope));return e&&i.unshift(t("div",{staticClass:"q-dialog__title q-mt-sm q-mb-sm"},[e])),!0===this.buttons&&i.push(t("div",{staticClass:"q-popup-edit__buttons row justify-center no-wrap"},[t(QBtn,{props:{flat:!0,color:this.color,label:this.labelCancel||this.$q.lang.label.cancel},on:cache(this,"cancel",{click:this.cancel})}),t(QBtn,{props:{flat:!0,color:this.color,label:this.labelSet||this.$q.lang.label.set},on:cache(this,"ok",{click:this.set})})])),i}},render(t){if(!0!==this.disable)return t(QMenu,{ref:"menu",props:this.menuProps,on:cache(this,"menu",{"before-show":()=>{this.validated=!1,this.modelChanged=!1,this.model=cloneDeep(this.value),this.watcher=this.$watch("value",this.__reposition),this.$emit("before-show")},show:()=>{this.$emit("show")},"escape-key":this.cancel,"before-hide":()=>{this.watcher(),!1===this.validated&&!0===this.__hasChanged()&&(!0===this.autoSave&&!0===this.validate(this.model)?(this.$emit("save",this.modelValue,this.initialValue),!0===this.modelChanged&&this.$emit("input",this.modelValue)):(this.$emit("cancel",this.modelValue,this.initialValue),!0!==this.modelChanged&&this.$emit("input",this.initialValue))),this.$emit("before-hide")},hide:()=>{this.$emit("hide")},keyup:t=>{!0===isKeyCode(t,13)&&this.set()}})},this.__getContent(t))}}),QPopupProxy=Vue.extend({name:"QPopupProxy",mixins:[AttrsMixin,ListenersMixin,AnchorMixin],props:{breakpoint:{type:[String,Number],default:450}},data(){const t=parseInt(this.breakpoint,10);return{type:this.$q.screen.width<t||this.$q.screen.height<t?"dialog":"menu"}},computed:{parsedBreakpoint(){return parseInt(this.breakpoint,10)},onEvents(){return{...this.qListeners,hide:this.__onHide}}},watch:{"$q.screen.width"(t){!0!==this.$refs.popup.showing&&this.__updateType(t,this.$q.screen.height,this.parsedBreakpoint)},"$q.screen.height"(t){!0!==this.$refs.popup.showing&&this.__updateType(this.$q.screen.width,t,this.parsedBreakpoint)},breakpoint(t){!0!==this.$refs.popup.showing&&this.__updateType(this.$q.screen.width,this.$q.screen.height,parseInt(t,10))}},methods:{toggle(t){this.$refs.popup.toggle(t)},show(t){this.$refs.popup.show(t)},hide(t){this.$refs.popup.hide(t)},__onHide(t){this.__updateType(this.$q.screen.width,this.$q.screen.height,this.parsedBreakpoint),this.$emit("hide",t)},__updateType(t,e,i){const s=t<i||e<i?"dialog":"menu";this.type!==s&&(this.type=s)}},render(t){const e=slot(this,"default"),i={ref:"popup",props:{..."menu"===this.type&&void 0!==e&&void 0!==e[0]&&void 0!==e[0].componentOptions&&void 0!==e[0].componentOptions.Ctor&&void 0!==e[0].componentOptions.Ctor.sealedOptions&&["QDate","QTime","QCarousel","QColor"].includes(e[0].componentOptions.Ctor.sealedOptions.name)?{cover:!0,maxHeight:"99vh"}:{},...this.qAttrs},on:this.onEvents};let s;return"dialog"===this.type?s=QDialog:(s=QMenu,i.props.target=this.target,i.props.contextMenu=this.contextMenu,i.props.noParentEvent=!0,i.props.separateClosePopup=!0),t(s,i,e)}});function width$1(t,e,i){return{transform:!0===e?`translateX(${!0===i.lang.rtl?"-":""}100%) scale3d(${-t},1,1)`:`scale3d(${t},1,1)`}}var QLinearProgress=Vue.extend({name:"QLinearProgress",mixins:[ListenersMixin,DarkMixin,getSizeMixin({xs:2,sm:4,md:6,lg:10,xl:14})],props:{value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,instantFeedback:Boolean},computed:{motion(){return!0===this.indeterminate||!0===this.query},widthReverse(){return this.reverse!==this.query},classes(){return"q-linear-progress"+(void 0!==this.color?` text-${this.color}`:"")+(!0===this.reverse||!0===this.query?" q-linear-progress--reverse":"")+(!0===this.rounded?" rounded-borders":"")},trackStyle(){return width$1(void 0!==this.buffer?this.buffer:1,this.widthReverse,this.$q)},transitionSuffix(){return`with${!0===this.instantFeedback?"out":""}-transition`},trackClass(){return`q-linear-progress__track absolute-full q-linear-progress__track--${this.transitionSuffix}`+` q-linear-progress__track--${!0===this.isDark?"dark":"light"}`+(void 0!==this.trackColor?` bg-${this.trackColor}`:"")},modelStyle(){return width$1(!0===this.motion?1:this.value,this.widthReverse,this.$q)},modelClasses(){return`q-linear-progress__model absolute-full q-linear-progress__model--${this.transitionSuffix}`+` q-linear-progress__model--${!0===this.motion?"in":""}determinate`},stripeStyle(){return{width:100*this.value+"%"}},stripeClass(){return`q-linear-progress__stripe q-linear-progress__stripe--${this.transitionSuffix}`+` absolute-${!0===this.reverse?"right":"left"}`},attrs(){return{role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":!0===this.indeterminate?void 0:this.value}}},render(t){const e=[t("div",{style:this.trackStyle,class:this.trackClass}),t("div",{style:this.modelStyle,class:this.modelClasses})];return!0===this.stripe&&!1===this.motion&&e.push(t("div",{style:this.stripeStyle,class:this.stripeClass})),t("div",{style:this.sizeStyle,class:this.classes,attrs:this.attrs,on:{...this.qListeners}},mergeSlot(e,this,"default"))}});const PULLER_HEIGHT=40,OFFSET_TOP=20;var QPullToRefresh=Vue.extend({name:"QPullToRefresh",mixins:[ListenersMixin],directives:{TouchPan:TouchPan},props:{color:String,bgColor:String,icon:String,noMouse:Boolean,disable:Boolean,scrollTarget:{default:void 0}},data:()=>({state:"pull",pullRatio:0,pulling:!1,pullPosition:-40,animating:!1,positionCSS:{}}),computed:{style(){return{opacity:this.pullRatio,transform:`translateY(${this.pullPosition}px) rotate(${360*this.pullRatio}deg)`}},classes(){return"q-pull-to-refresh__puller row flex-center"+(!0===this.animating?" q-pull-to-refresh__puller--animating":"")+(void 0!==this.bgColor?` bg-${this.bgColor}`:"")},directives(){if(!0!==this.disable){const t={down:!0};return!0!==this.noMouse&&(t.mouse=!0),[{name:"touch-pan",modifiers:t,value:this.__pull}]}},contentClass(){return`q-pull-to-refresh__content${!0===this.pulling?" no-pointer-events":""}`}},watch:{scrollTarget(){this.updateScrollTarget()}},methods:{trigger(){this.$emit("refresh",()=>{this.__animateTo({pos:-40,ratio:0},()=>{this.state="pull"})})},updateScrollTarget(){this.__scrollTarget=getScrollTarget(this.$el,this.scrollTarget)},__pull(t){if(!0===t.isFinal)return void(!0===this.pulling&&(this.pulling=!1,"pulled"===this.state?(this.state="refreshing",this.__animateTo({pos:20}),this.trigger()):"pull"===this.state&&this.__animateTo({pos:-40,ratio:0})));if(!0===this.animating||"refreshing"===this.state)return!1;if(!0===t.isFirst){if(0!==getScrollPosition(this.__scrollTarget)||"down"!==t.direction)return!0===this.pulling&&(this.pulling=!1,this.state="pull",this.__animateTo({pos:-40,ratio:0})),!1;this.pulling=!0;const{top:e,left:i}=this.$el.getBoundingClientRect();this.positionCSS={top:e+"px",left:i+"px",width:window.getComputedStyle(this.$el).getPropertyValue("width")}}prevent(t.evt);const e=Math.min(140,Math.max(0,t.distance.y));this.pullPosition=e-40,this.pullRatio=between(e/60,0,1);const i=this.pullPosition>20?"pulled":"pull";this.state!==i&&(this.state=i)},__animateTo({pos:t,ratio:e},i){this.animating=!0,this.pullPosition=t,void 0!==e&&(this.pullRatio=e),clearTimeout(this.timer),this.timer=setTimeout(()=>{this.animating=!1,i&&i()},300)}},mounted(){this.updateScrollTarget()},beforeDestroy(){clearTimeout(this.timer)},render(t){return t("div",{staticClass:"q-pull-to-refresh",on:{...this.qListeners},directives:this.directives},[t("div",{class:this.contentClass},slot(this,"default")),t("div",{staticClass:"q-pull-to-refresh__puller-container fixed row flex-center no-pointer-events z-top",style:this.positionCSS},[t("div",{style:this.style,class:this.classes},["refreshing"!==this.state?t(QIcon,{props:{name:this.icon||this.$q.iconSet.pullToRefresh.icon,color:this.color,size:"32px"}}):t(QSpinner,{props:{size:"24px",color:this.color}})])])])}});const dragType={MIN:0,RANGE:1,MAX:2};var QRange=Vue.extend({name:"QRange",mixins:[SliderMixin],props:{value:{type:Object,default:()=>({min:null,max:null}),validator:t=>"min"in t&&"max"in t},dragRange:Boolean,dragOnlyRange:Boolean,leftLabelColor:String,leftLabelTextColor:String,rightLabelColor:String,rightLabelTextColor:String,leftLabelValue:[String,Number],rightLabelValue:[String,Number],leftThumbColor:String,rightThumbColor:String},data(){const t=this.__getInnerMin(this.innerMin),e=this.__getInnerMax(this.innerMax);return{model:{min:null===this.value.min?t:between(this.value.min,t,e),max:null===this.value.max?e:between(this.value.max,t,e)},curMinRatio:0,curMaxRatio:0}},computed:{modelMinRatio(){return this.__convertModelToRatio(this.model.min)},modelMaxRatio(){return this.__convertModelToRatio(this.model.max)},ratioMin(){return!0===this.active?this.curMinRatio:this.modelMinRatio},ratioMax(){return!0===this.active?this.curMaxRatio:this.modelMaxRatio},selectionBarStyle(){const t={[this.positionProp]:`${100*this.ratioMin}%`,[this.sizeProp]:`${100*(this.ratioMax-this.ratioMin)}%`};return void 0!==this.selectionImg&&(t.backgroundImage=`url(${this.selectionImg}) !important`),t},trackContainerEvents(){if(!0!==this.editable)return{};if(!0===this.$q.platform.is.mobile)return{click:this.__onMobileClick};const t={mousedown:this.__onActivate};return!0!==this.dragRange&&!0!==this.dragOnlyRange||Object.assign(t,{focus:()=>{this.focus="both"},blur:this.__onBlur,keydown:this.__onKeydown,keyup:this.__onKeyup}),t},trackContainerAttrs(){return{tabindex:!0===this.$q.platform.is.mobile||!this.dragRange&&!0!==this.dragOnlyRange?null:this.computedTabindex}},thumbAttrs(){return{tabindex:!0!==this.dragOnlyRange?this.computedTabindex:null}},thumbMinEvents(){return this.__getEvents("min")},thumbMaxEvents(){return this.__getEvents("max")},thumbMinLabel(){return void 0!==this.leftLabelValue?this.leftLabelValue:this.model.min},thumbMaxLabel(){return void 0!==this.rightLabelValue?this.rightLabelValue:this.model.max},thumbMinClasses(){const t=this.leftThumbColor||this.thumbColor||this.color;return`q-slider__thumb q-slider__thumb${this.axis} q-slider__thumb${this.axis}-${!0===this.isReversed?"rtl":"ltr"} absolute non-selectable`+(!1!==this.preventFocus||"min"!==this.focus&&"both"!==this.focus?"":" q-slider--focus")+(void 0!==t?` text-${t}`:"")},thumbMaxClasses(){const t=this.rightThumbColor||this.thumbColor||this.color;return`q-slider__thumb q-slider__thumb${this.axis} q-slider__thumb${this.axis}-${!0===this.isReversed?"rtl":"ltr"} absolute non-selectable`+(!1!==this.preventFocus||"max"!==this.focus&&"both"!==this.focus?"":" q-slider--focus")+(void 0!==t?` text-${t}`:"")},thumbMinStyle(){return{width:this.thumbSize,height:this.thumbSize,[this.positionProp]:`${100*this.ratioMin}%`,zIndex:"min"===this.focus?2:void 0}},thumbMaxStyle(){return{width:this.thumbSize,height:this.thumbSize,[this.positionProp]:`${100*this.ratioMax}%`,zIndex:"max"===this.focus?2:void 0}},thumbMinPinColor(){const t=this.leftLabelColor||this.labelColor;return void 0!==t?` text-${t}`:""},thumbMaxPinColor(){const t=this.rightLabelColor||this.labelColor;return void 0!==t?` text-${t}`:""},thumbMinTextContainerStyle(){return this.__getTextContainerStyle(this.ratioMin)},thumbMaxTextContainerStyle(){return this.__getTextContainerStyle(this.ratioMax)},thumbMinTextClass(){const t=this.leftLabelTextColor||this.labelTextColor;return"q-slider__text"+(void 0!==t?` text-${t}`:"")},thumbMaxTextClass(){const t=this.rightLabelTextColor||this.labelTextColor;return"q-slider__text"+(void 0!==t?` text-${t}`:"")},formAttrs(){return{type:"hidden",name:this.name,value:`${this.value.min}|${this.value.max}`}},modelUpdate(){return`${this.value.min}|${this.value.max}|${this.computedInnerMin}|${this.computedInnerMax}`}},watch:{modelUpdate(){this.model.min=null===this.value.min?this.computedInnerMin:between(this.value.min,this.computedInnerMin,this.computedInnerMax),this.model.max=null===this.value.max?this.computedInnerMax:between(this.value.max,this.computedInnerMin,this.computedInnerMax)}},methods:{__updateValue(t){this.model.min===this.value.min&&this.model.max===this.value.max||this.$emit("input",{...this.model}),!0===t&&this.$emit("change",{...this.model})},__getDragging(t){const{left:e,top:i,width:s,height:o}=this.$el.getBoundingClientRect(),n=!0===this.dragOnlyRange?0:!0===this.vertical?this.$refs.minThumb.offsetHeight/(2*o):this.$refs.minThumb.offsetWidth/(2*s),r={left:e,top:i,width:s,height:o,valueMin:this.model.min,valueMax:this.model.max,ratioMin:this.modelMinRatio,ratioMax:this.modelMaxRatio},a=this.__getDraggingRatio(t,r);return!0!==this.dragOnlyRange&&a<r.ratioMin+n?r.type=dragType.MIN:!0===this.dragOnlyRange||a<r.ratioMax-n?!0===this.dragRange||!0===this.dragOnlyRange?(r.type=dragType.RANGE,Object.assign(r,{offsetRatio:a,offsetModel:this.__convertRatioToModel(a),rangeValue:r.valueMax-r.valueMin,rangeRatio:r.ratioMax-r.ratioMin})):r.type=r.ratioMax-a<a-r.ratioMin?dragType.MAX:dragType.MIN:r.type=dragType.MAX,r},__updatePosition(t,e=this.dragging){let i;const s=this.__getDraggingRatio(t,e),o=this.__convertRatioToModel(s);switch(e.type){case dragType.MIN:s<=e.ratioMax?(i={minR:s,maxR:e.ratioMax,min:o,max:e.valueMax},this.focus="min"):(i={minR:e.ratioMax,maxR:s,min:e.valueMax,max:o},this.focus="max");break;case dragType.MAX:s>=e.ratioMin?(i={minR:e.ratioMin,maxR:s,min:e.valueMin,max:o},this.focus="max"):(i={minR:s,maxR:e.ratioMin,min:o,max:e.valueMin},this.focus="min");break;case dragType.RANGE:const t=s-e.offsetRatio,n=between(e.ratioMin+t,0,1-e.rangeRatio),r=o-e.offsetModel,a=between(e.valueMin+r,this.min,this.max-e.rangeValue);i={minR:n,maxR:n+e.rangeRatio,min:parseFloat(a.toFixed(this.computedDecimals)),max:parseFloat((a+e.rangeValue).toFixed(this.computedDecimals))},this.focus="both"}this.model=null===this.model.min||null===this.model.max?{min:i.min||this.min,max:i.max||this.max}:{min:i.min,max:i.max},!0!==this.snap||0===this.step?(this.curMinRatio=i.minR,this.curMaxRatio=i.maxR):(this.curMinRatio=this.__convertModelToRatio(this.model.min),this.curMaxRatio=this.__convertModelToRatio(this.model.max))},__getEvents(t){return!0!==this.$q.platform.is.mobile&&!0===this.editable&&!0!==this.dragOnlyRange?{focus:()=>{this.focus=t},blur:this.__onBlur,keydown:this.__onKeydown,keyup:this.__onKeyup}:{}},__onKeydown(t){if(!keyCodes.includes(t.keyCode))return;stopAndPrevent(t);const e=([34,33].includes(t.keyCode)?10:1)*this.computedStep,i=([34,37,40].includes(t.keyCode)?-1:1)*(!0===this.isReversed?-1:1)*(!0===this.vertical?-1:1)*e;if("both"===this.focus){const t=this.model.max-this.model.min,e=between(parseFloat((this.model.min+i).toFixed(this.computedDecimals)),this.computedInnerMin,this.computedInnerMax-t);this.model={min:e,max:parseFloat((e+t).toFixed(this.computedDecimals))}}else{if(!1===this.focus)return;{const t=this.focus;this.model={...this.model,[t]:between(parseFloat((this.model[t]+i).toFixed(this.computedDecimals)),"min"===t?this.computedInnerMin:this.model.min,"max"===t?this.computedInnerMax:this.model.max)}}}this.__updateValue()}},render(t){const e=this.__getContent(t,e=>{e.push(this.__getThumb(t,{pinColor:this.thumbMinPinColor,textContainerStyle:this.thumbMinTextContainerStyle,textClass:this.thumbMinTextClass,label:this.thumbMinLabel,classes:this.thumbMinClasses,style:this.thumbMinStyle,nodeData:{ref:"minThumb",key:"tmin",on:this.thumbMinEvents,attrs:this.thumbAttrs}}),this.__getThumb(t,{pinColor:this.thumbMaxPinColor,textContainerStyle:this.thumbMaxTextContainerStyle,textClass:this.thumbMaxTextClass,label:this.thumbMaxLabel,classes:this.thumbMaxClasses,style:this.thumbMaxStyle,nodeData:{key:"tmax",on:this.thumbMaxEvents,attrs:this.thumbAttrs}}))});return t("div",{class:"q-range "+this.classes+(null===this.value.min||null===this.value.max?" q-slider--no-value":""),attrs:{...this.attributes,"aria-valuenow":this.value.min+"|"+this.value.max}},e)}}),QRating=Vue.extend({name:"QRating",mixins:[SizeMixin,FormMixin,ListenersMixin],props:{value:{type:Number,required:!0},max:{type:[String,Number],default:5},icon:[String,Array],iconHalf:[String,Array],iconSelected:[String,Array],iconAriaLabel:[String,Array],color:[String,Array],colorHalf:[String,Array],colorSelected:[String,Array],noReset:Boolean,noDimming:Boolean,readonly:Boolean,disable:Boolean},data:()=>({mouseModel:0}),computed:{editable(){return!0!==this.readonly&&!0!==this.disable},classes(){return`q-rating--${!0===this.editable?"":"non-"}editable`+(!0===this.noDimming?" q-rating--no-dimming":"")+(!0===this.disable?" disabled":"")+(void 0!==this.color&&!1===Array.isArray(this.color)?` text-${this.color}`:"")},iconData(){const t=!0===Array.isArray(this.icon)?this.icon.length:0,e=!0===Array.isArray(this.iconSelected)?this.iconSelected.length:0,i=!0===Array.isArray(this.iconHalf)?this.iconHalf.length:0,s=!0===Array.isArray(this.color)?this.color.length:0,o=!0===Array.isArray(this.colorSelected)?this.colorSelected.length:0,n=!0===Array.isArray(this.colorHalf)?this.colorHalf.length:0;return{iconLen:t,icon:t>0?this.icon[t-1]:this.icon,selIconLen:e,selIcon:e>0?this.iconSelected[e-1]:this.iconSelected,halfIconLen:i,halfIcon:i>0?this.iconHalf[e-1]:this.iconHalf,colorLen:s,color:s>0?this.color[s-1]:this.color,selColorLen:o,selColor:o>0?this.colorSelected[o-1]:this.colorSelected,halfColorLen:n,halfColor:n>0?this.colorHalf[n-1]:this.colorHalf}},iconLabel(){if("string"==typeof this.iconAriaLabel){const t=this.iconAriaLabel.length>0?`${this.iconAriaLabel} `:"";return e=>`${t}${e}`}if(!0===Array.isArray(this.iconAriaLabel)){const t=this.iconAriaLabel.length;if(t>0)return e=>this.iconAriaLabel[Math.min(e,t)-1]}return(t,e)=>`${e} ${t}`},stars(){const t=[],e=this.iconData,i=Math.ceil(this.value),s=!0===this.editable?0:null,o=void 0===this.iconHalf||i===this.value?-1:i;for(let n=1;n<=this.max;n++){const r=0===this.mouseModel&&this.value>=n||this.mouseModel>0&&this.mouseModel>=n,a=o===n&&this.mouseModel<n,l=this.mouseModel>0&&(!0===a?i:this.value)>=n&&this.mouseModel<n,h=!0===a?n<=e.halfColorLen?this.colorHalf[n-1]:e.halfColor:void 0!==e.selColor&&!0===r?n<=e.selColorLen?this.colorSelected[n-1]:e.selColor:n<=e.colorLen?this.color[n-1]:e.color,d=(!0===a?n<=e.halfIconLen?this.iconHalf[n-1]:e.halfIcon:void 0===e.selIcon||!0!==r&&!0!==l?n<=e.iconLen?this.icon[n-1]:e.icon:n<=e.selIconLen?this.iconSelected[n-1]:e.selIcon)||this.$q.iconSet.rating.icon;t.push({name:d,attrs:{tabindex:s,role:"radio","aria-checked":this.value===n?"true":"false","aria-label":this.iconLabel(n,d)},classes:"q-rating__icon"+(!0===r||!0===a?" q-rating__icon--active":"")+(!0===l?" q-rating__icon--exselected":"")+(this.mouseModel===n?" q-rating__icon--hovered":"")+(void 0!==h?` text-${h}`:"")})}return t},attrs(){const t={role:"radiogroup"};return!0===this.disable&&(t["aria-disabled"]="true"),!0===this.readonly&&(t["aria-readonly"]="true"),t}},methods:{__set(t){if(!0===this.editable){const e=between(parseInt(t,10),1,parseInt(this.max,10)),i=!0!==this.noReset&&this.value===e?0:e;i!==this.value&&this.$emit("input",i),this.mouseModel=0}},__setHoverValue(t){!0===this.editable&&(this.mouseModel=t)},__keyup(t,e){switch(t.keyCode){case 13:case 32:return this.__set(e),stopAndPrevent(t);case 37:case 40:return this.$refs[`rt${e-1}`]&&this.$refs[`rt${e-1}`].focus(),stopAndPrevent(t);case 39:case 38:return this.$refs[`rt${e+1}`]&&this.$refs[`rt${e+1}`].focus(),stopAndPrevent(t)}}},render(t){const e=[];return this.stars.forEach(({classes:i,name:s,attrs:o},n)=>{const r=n+1;e.push(t("div",{key:r,ref:`rt${r}`,class:"q-rating__icon-container flex flex-center",attrs:o,on:cache(this,"i#"+r,{click:()=>{this.__set(r)},mouseover:()=>{this.__setHoverValue(r)},mouseout:()=>{this.mouseModel=0},focus:()=>{this.__setHoverValue(r)},blur:()=>{this.mouseModel=0},keyup:t=>{this.__keyup(t,r)}})},mergeSlot([t(QIcon,{class:i,props:{name:s}})],this,`tip-${r}`)))}),void 0!==this.name&&!0!==this.disable&&this.__injectFormInput(e,"push"),t("div",{staticClass:"q-rating row inline items-center",class:this.classes,style:this.sizeStyle,attrs:this.attrs,on:{...this.qListeners}},e)}}),QResponsive=Vue.extend({name:"QResponsive",mixins:[RatioMixin,ListenersMixin],render(t){return t("div",{staticClass:"q-responsive",on:{...this.qListeners}},[t("div",{staticClass:"q-responsive__filler overflow-hidden"},[t("div",{style:this.ratioStyle})]),t("div",{staticClass:"q-responsive__content absolute-full fit"},slot(this,"default"))])}});const getMinThumbSize=t=>t>=250?50:Math.ceil(t/5),axisList=["vertical","horizontal"],dirProps={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}};var QScrollArea=Vue.extend({name:"QScrollArea",mixins:[DarkMixin],directives:{TouchPan:TouchPan},props:{thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},horizontal:Boolean,tabindex:[String,Number]},data:()=>({tempShowing:!1,panning:!1,hover:!1,container:{vertical:0,horizontal:0},scroll:{vertical:{position:0,size:0},horizontal:{position:0,size:0}}}),computed:{classes(){return"q-scrollarea"+(!0===this.isDark?" q-scrollarea--dark":"")},verticalScrollPercentage(){const t=this.scroll.vertical.size-this.container.vertical;if(t<=0)return 0;const e=between(this.scroll.vertical.position/t,0,1);return Math.round(1e4*e)/1e4},horizontalScrollPercentage(){const t=this.scroll.horizontal.size-this.container.horizontal;if(t<=0)return 0;const e=between(Math.abs(this.scroll.horizontal.position)/t,0,1);return Math.round(1e4*e)/1e4},verticalThumbHidden(){return!0!==(null===this.visible?this.hover:this.visible)&&!1===this.tempShowing&&!1===this.panning||this.scroll.vertical.size<=this.container.vertical+1},horizontalThumbHidden(){return!0!==(null===this.visible?this.hover:this.visible)&&!1===this.tempShowing&&!1===this.panning||this.scroll.horizontal.size<=this.container.horizontal+1},verticalThumbStart(){return this.verticalScrollPercentage*(this.container.vertical-this.verticalThumbSize)},horizontalThumbStart(){return this.horizontalScrollPercentage*(this.container.horizontal-this.horizontalThumbSize)},verticalThumbSize(){return Math.round(between(this.container.vertical*this.container.vertical/this.scroll.vertical.size,getMinThumbSize(this.container.vertical),this.container.vertical))},horizontalThumbSize(){return Math.round(between(this.container.horizontal*this.container.horizontal/this.scroll.horizontal.size,getMinThumbSize(this.container.horizontal),this.container.horizontal))},verticalStyle(){return{...this.thumbStyle,...this.verticalThumbStyle,top:`${this.verticalThumbStart}px`,height:`${this.verticalThumbSize}px`}},horizontalStyle(){return{...this.thumbStyle,...this.horizontalThumbStyle,[!0===this.$q.lang.rtl?"right":"left"]:`${this.horizontalThumbStart}px`,width:`${this.horizontalThumbSize}px`}},verticalThumbClass(){return"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(!0===this.verticalThumbHidden?" q-scrollarea__thumb--invisible":"")},horizontalThumbClass(){return"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(!0===this.horizontalThumbHidden?" q-scrollarea__thumb--invisible":"")},verticalBarClass(){return"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(!0===this.verticalThumbHidden?" q-scrollarea__bar--invisible":"")},horizontalBarClass(){return"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(!0===this.horizontalThumbHidden?" q-scrollarea__bar--invisible":"")},scrollComputed(){return{vertical:{...this.scroll.vertical,percentage:this.verticalScrollPercentage,thumbHidden:this.verticalThumbHidden,thumbStart:this.verticalThumbStart,thumbSize:this.verticalThumbSize,style:this.verticalStyle,thumbClass:this.verticalThumbClass,barClass:this.verticalBarClass},horizontal:{...this.scroll.horizontal,percentage:this.horizontalScrollPercentage,thumbHidden:this.horizontalThumbHidden,thumbStart:this.horizontalThumbStart,thumbSize:this.horizontalThumbSize,style:this.horizontalStyle,thumbClass:this.horizontalThumbClass,barClass:this.horizontalBarClass}}},mainStyle(){return!0===this.verticalThumbHidden&&!0===this.horizontalThumbHidden?this.contentStyle:this.contentActiveStyle},verticalThumbDirectives(){return[{name:"touch-pan",modifiers:{vertical:!0,prevent:!0,mouse:!0,mouseAllDir:!0},value:t=>{this.__panThumb(t,"vertical")}}]},horizontalThumbDirectives(){return[{name:"touch-pan",modifiers:{horizontal:!0,prevent:!0,mouse:!0,mouseAllDir:!0},value:t=>{this.__panThumb(t,"horizontal")}}]},scrollAttrs(){if(void 0!==this.tabindex)return{tabindex:this.tabindex}}},watch:{"$q.lang.rtl"(t){this.setScrollPosition("horizontal",Math.abs(this.scroll.horizontal.position)*(!0===t?-1:1))}},methods:{getScrollTarget(){return this.$refs.target},getScroll(){const t={};return axisList.forEach(e=>{const i=this.scrollComputed[e];t[e+"Position"]=i.position,t[e+"Percentage"]=i.percentage,t[e+"Size"]=i.size,t[e+"ContainerSize"]=this.container[e]}),t},getScrollPosition(t){return"both"===t?{top:this.scroll.vertical.position,left:this.scroll.horizontal.position}:(!0!==axisList.includes(t)&&(t=!0===this.horizontal?"horizontal":"vertical"),this.scroll[t].position)},getScrollPercentage(t){return"both"===t?{top:this.verticalScrollPercentage,left:this.horizontalScrollPercentage}:(!0!==axisList.includes(t)&&(t=!0===this.horizontal?"horizontal":"vertical"),this[`${t}ScrollPercentage`])},setScrollPosition(t,e,i){if(!1===axisList.includes(t)){if(!0===isNaN(t))return void console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");[t,e,i]=[!0===this.horizontal?"horizontal":"vertical",t,e]}("vertical"===t?setVerticalScrollPosition:setHorizontalScrollPosition)(this.$refs.target,e,i)},setScrollPercentage(t,e,i){if(!1===axisList.includes(t)){if(!0===isNaN(t))return void console.error("[QScrollArea]: wrong first param of setScrollPercentage (vertical/horizontal)");[t,e,i]=[!0===this.horizontal?"horizontal":"vertical",t,e]}this.setScrollPosition(t,e*(this.scroll[t].size-this.container[t])*("horizontal"===t&&!0===this.$q.lang.rtl?-1:1),i)},__updateContainer({height:t,width:e}){let i=!1;this.container.vertical!==t&&(this.container.vertical=t,i=!0),this.container.horizontal!==e&&(this.container.horizontal=e,i=!0),!0===i&&this.__startTimer()},__updateVerticalScroll({position:t}){this.scroll.vertical.position!==t&&(this.scroll.vertical.position=t,this.__startTimer())},__updateHorizontalScroll({position:t}){this.scroll.horizontal.position!==t&&(this.scroll.horizontal.position=t,this.__startTimer())},__updateScrollSize({height:t,width:e}){let i=!1;this.scroll.horizontal.size!==e&&(this.scroll.horizontal.size=e,i=!0),this.scroll.vertical.size!==t&&(this.scroll.vertical.size=t,i=!0),!0===i&&this.__startTimer()},__panThumb(t,e){const i=this.scrollComputed[e];if(!0===t.isFinal){if(!0!==this.panning)return;this.panning=!1}else if(!0===t.isFirst){if(!0===i.thumbHidden)return;this.refPos=i.position,this.panning=!0}else if(!0!==this.panning)return;const s=dirProps[e],o=this.container[e],n=(i.size-o)/(o-i.thumbSize),r=t.distance[s.dist],a=this.refPos+(t.direction===s.dir?1:-1)*r*n;this.__setScroll(a,e)},__mouseDown(t,e){const i=this.scrollComputed[e];if(!0!==i.thumbHidden){const s=t[dirProps[e].offset];if(s<i.thumbStart||s>i.thumbStart+i.thumbSize){const t=s-i.thumbSize/2;this.__setScroll(t/this.container[e]*i.size,e)}const o="vertical"===e?this.$refs.verticalThumb:this.$refs.horizontalThumb;void 0!==o&&o.dispatchEvent(new MouseEvent(t.type,t))}},__verticalMouseDown(t){this.__mouseDown(t,"vertical")},__horizontalMouseDown(t){this.__mouseDown(t,"horizontal")},__startTimer(){!0===this.tempShowing?clearTimeout(this.timer):this.tempShowing=!0,this.timer=setTimeout(()=>{this.tempShowing=!1},this.delay),void 0!==this.$listeners.scroll&&this.__emitScroll()},__setScroll(t,e){this.$refs.target[dirProps[e].scroll]=t},__mouseEnter(){this.hover=!0},__mouseLeave(){this.hover=!1}},render(t){return t("div",{class:this.classes,on:cache(this,"desk",{mouseenter:this.__mouseEnter,mouseleave:this.__mouseLeave})},[t("div",{ref:"target",staticClass:"q-scrollarea__container scroll relative-position fit hide-scrollbar",attrs:this.scrollAttrs},[t("div",{staticClass:"q-scrollarea__content absolute",style:this.mainStyle},mergeSlot([t(QResizeObserver,{props:{debounce:0},on:cache(this,"resizeIn",{resize:this.__updateScrollSize})})],this,"default")),t(QScrollObserver,{on:cache(this,"scrollV",{scroll:this.__updateVerticalScroll})}),t(QScrollObserver,{props:{horizontal:!0},on:cache(this,"scrollH",{scroll:this.__updateHorizontalScroll})})]),t(QResizeObserver,{props:{debounce:0},on:cache(this,"resizeOut",{resize:this.__updateContainer})}),t("div",{class:this.verticalBarClass,style:[this.barStyle,this.verticalBarStyle],attrs:ariaHidden,on:cache(this,"barV",{mousedown:this.__verticalMouseDown})}),t("div",{class:this.horizontalBarClass,style:[this.barStyle,this.horizontalBarStyle],attrs:ariaHidden,on:cache(this,"barH",{mousedown:this.__horizontalMouseDown})}),t("div",{ref:"verticalThumb",class:this.verticalThumbClass,style:this.verticalStyle,attrs:ariaHidden,directives:this.verticalThumbDirectives}),t("div",{ref:"horizontalThumb",class:this.horizontalThumbClass,style:this.horizontalStyle,attrs:ariaHidden,directives:this.horizontalThumbDirectives})])},created(){this.__emitScroll=debounce(()=>{const t=this.getScroll();t.ref=this,this.$emit("scroll",t)},0)},activated(){if(void 0===this.__scrollPosition)return;const t=this.getScrollTarget();void 0!==t&&(setHorizontalScrollPosition(t,this.__scrollPosition.left),setVerticalScrollPosition(t,this.__scrollPosition.top))},deactivated(){this.__scrollPosition=this.getScrollPosition("both")},beforeDestroy(){this.__emitScroll.cancel(),clearTimeout(this.timer)}});const aggBucketSize=1e3,scrollToEdges=["start","center","end","start-force","center-force","end-force"],filterProto=Array.prototype.filter;function sumFn(t,e){return t+e}function getScrollDetails(t,e,i,s,o,n,r,a){const l=t===window?document.scrollingElement||document.documentElement:t,h=!0===o?"offsetWidth":"offsetHeight",d={scrollStart:0,scrollViewSize:-r-a,scrollMaxSize:0,offsetStart:-r,offsetEnd:-a};if(!0===o?(t===window?(d.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,d.scrollViewSize+=document.documentElement.clientWidth):(d.scrollStart=l.scrollLeft,d.scrollViewSize+=l.clientWidth),d.scrollMaxSize=l.scrollWidth,!0===n&&(d.scrollStart=(!0===rtlHasScrollBug()?d.scrollMaxSize-d.scrollViewSize:0)-d.scrollStart)):(t===window?(d.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,d.scrollViewSize+=document.documentElement.clientHeight):(d.scrollStart=l.scrollTop,d.scrollViewSize+=l.clientHeight),d.scrollMaxSize=l.scrollHeight),void 0!==i)for(let t=i.previousElementSibling;null!==t;t=t.previousElementSibling)!1===t.classList.contains("q-virtual-scroll--skip")&&(d.offsetStart+=t[h]);if(void 0!==s)for(let t=s.nextElementSibling;null!==t;t=t.nextElementSibling)!1===t.classList.contains("q-virtual-scroll--skip")&&(d.offsetEnd+=t[h]);if(e!==t){const i=l.getBoundingClientRect(),s=e.getBoundingClientRect();!0===o?(d.offsetStart+=s.left-i.left,d.offsetEnd-=s.width):(d.offsetStart+=s.top-i.top,d.offsetEnd-=s.height),t!==window&&(d.offsetStart+=d.scrollStart),d.offsetEnd+=d.scrollMaxSize-d.offsetStart}return d}function setScroll$1(t,e,i,s){"end"===e&&(e=(t===window?document.body:t)[!0===i?"scrollWidth":"scrollHeight"]),t===window?!0===i?(!0===s&&(e=(!0===rtlHasScrollBug()?document.body.scrollWidth-document.documentElement.clientWidth:0)-e),window.scrollTo(e,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,e):!0===i?(!0===s&&(e=(!0===rtlHasScrollBug()?t.scrollWidth-t.offsetWidth:0)-e),t.scrollLeft=e):t.scrollTop=e}function sumSize(t,e,i,s){if(i>=s)return 0;const o=e.length,n=Math.floor(i/aggBucketSize),r=Math.floor((s-1)/aggBucketSize)+1;let a=t.slice(n,r).reduce(sumFn,0);return i%aggBucketSize!=0&&(a-=e.slice(n*aggBucketSize,i).reduce(sumFn,0)),s%aggBucketSize!=0&&s!==o&&(a-=e.slice(s,r*aggBucketSize).reduce(sumFn,0)),a}const commonVirtScrollProps={virtualScrollSliceSize:{type:[Number,String],default:null},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]};function setOverflowAnchor(t,e){void 0===setOverflowAnchor.isSupported&&(setOverflowAnchor.isSupported=void 0!==window.getComputedStyle(document.body).overflowAnchor),!1!==setOverflowAnchor.isSupported&&void 0!==t&&(cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(void 0===t)return;const i=t.children||[];filterProto.call(i,t=>t.dataset&&void 0!==t.dataset.qVsAnchor).forEach(t=>{delete t.dataset.qVsAnchor});const s=i[e];s&&s.dataset&&(s.dataset.qVsAnchor="")}))}const commonVirtPropsList=Object.keys(commonVirtScrollProps);var VirtualScroll={props:{virtualScrollHorizontal:Boolean,...commonVirtScrollProps},data:()=>({virtualScrollSliceRange:{from:0,to:0}}),watch:{needsSliceRecalc(){this.__setVirtualScrollSize()},needsReset(){this.reset()}},computed:{needsReset(){return["virtualScrollItemSizeComputed","virtualScrollHorizontal"].map(t=>this[t]).join(";")},needsSliceRecalc(){return this.needsReset+";"+["virtualScrollSliceRatioBefore","virtualScrollSliceRatioAfter"].map(t=>this[t]).join(";")},colspanAttr(){return void 0!==this.tableColspan?{colspan:this.tableColspan}:{colspan:100}},virtualScrollItemSizeComputed(){return this.virtualScrollItemSize}},methods:{reset(){this.__resetVirtualScroll(this.prevToIndex,!0)},refresh(t){this.__resetVirtualScroll(void 0===t?this.prevToIndex:t)},scrollTo(t,e){const i=this.__getVirtualScrollTarget();if(void 0===i||null===i||8===i.nodeType)return;const s=getScrollDetails(i,this.__getVirtualScrollEl(),this.$refs.before,this.$refs.after,this.virtualScrollHorizontal,this.$q.lang.rtl,this.virtualScrollStickySizeStart,this.virtualScrollStickySizeEnd);this.__scrollViewSize!==s.scrollViewSize&&this.__setVirtualScrollSize(s.scrollViewSize),this.__setVirtualScrollSliceRange(i,s,Math.min(this.virtualScrollLength-1,Math.max(0,parseInt(t,10)||0)),0,scrollToEdges.indexOf(e)>-1?e:this.prevToIndex>-1&&t>this.prevToIndex?"end":"start")},__onVirtualScrollEvt(){const t=this.__getVirtualScrollTarget();if(void 0===t||null===t||8===t.nodeType)return;const e=getScrollDetails(t,this.__getVirtualScrollEl(),this.$refs.before,this.$refs.after,this.virtualScrollHorizontal,this.$q.lang.rtl,this.virtualScrollStickySizeStart,this.virtualScrollStickySizeEnd),i=this.virtualScrollLength-1,s=e.scrollMaxSize-e.offsetStart-e.offsetEnd-this.virtualScrollPaddingAfter;if(this.prevScrollStart===e.scrollStart)return;if(e.scrollMaxSize<=0)return void this.__setVirtualScrollSliceRange(t,e,0,0);this.__scrollViewSize!==e.scrollViewSize&&this.__setVirtualScrollSize(e.scrollViewSize),this.__updateVirtualScrollSizes(this.virtualScrollSliceRange.from);const o=Math.floor(e.scrollMaxSize-Math.max(e.scrollViewSize,e.offsetEnd)-Math.min(this.virtualScrollSizes[i],e.scrollViewSize/2));if(o>0&&Math.ceil(e.scrollStart)>=o)return void this.__setVirtualScrollSliceRange(t,e,i,e.scrollMaxSize-e.offsetEnd-this.virtualScrollSizesAgg.reduce(sumFn,0));let n=0,r=e.scrollStart-e.offsetStart,a=r;if(r<=s&&r+e.scrollViewSize>=this.virtualScrollPaddingBefore)r-=this.virtualScrollPaddingBefore,n=this.virtualScrollSliceRange.from,a=r;else for(let t=0;r>=this.virtualScrollSizesAgg[t]&&n<i;t++)r-=this.virtualScrollSizesAgg[t],n+=aggBucketSize;for(;r>0&&n<i;)(r-=this.virtualScrollSizes[n])>-e.scrollViewSize?(n++,a=r):a=this.virtualScrollSizes[n]+r;this.__setVirtualScrollSliceRange(t,e,n,a)},__setVirtualScrollSliceRange(t,e,i,s,o){const n="string"==typeof o&&o.indexOf("-force")>-1,r=!0===n?o.replace("-force",""):o,a=void 0!==r?r:"start";let l=Math.max(0,i-this.virtualScrollSliceSizeComputed[a]),h=l+this.virtualScrollSliceSizeComputed.total;h>this.virtualScrollLength&&(h=this.virtualScrollLength,l=Math.max(0,h-this.virtualScrollSliceSizeComputed.total)),this.prevScrollStart=e.scrollStart;const d=l!==this.virtualScrollSliceRange.from||h!==this.virtualScrollSliceRange.to;if(!1===d&&void 0===r)return void this.__emitScroll(i);const{activeElement:c}=document,u=this.$refs.content;!0===d&&void 0!==u&&u!==c&&!0===u.contains(c)&&(u.addEventListener("focusout",this.__onBlurRefocusFn),setTimeout(()=>{void 0!==u&&u.removeEventListener("focusout",this.__onBlurRefocusFn)})),setOverflowAnchor(u,i-l);const p=void 0!==r?this.virtualScrollSizes.slice(l,i).reduce(sumFn,0):0;if(!0===d){const t=h>=this.virtualScrollSliceRange.from&&l<=this.virtualScrollSliceRange.to?this.virtualScrollSliceRange.to:h;this.virtualScrollSliceRange={from:l,to:t},this.virtualScrollPaddingBefore=sumSize(this.virtualScrollSizesAgg,this.virtualScrollSizes,0,l),this.virtualScrollPaddingAfter=sumSize(this.virtualScrollSizesAgg,this.virtualScrollSizes,this.virtualScrollSliceRange.to,this.virtualScrollLength),requestAnimationFrame(()=>{this.virtualScrollSliceRange.to!==h&&this.prevScrollStart===e.scrollStart&&(this.virtualScrollSliceRange={from:this.virtualScrollSliceRange.from,to:h},this.virtualScrollPaddingAfter=sumSize(this.virtualScrollSizesAgg,this.virtualScrollSizes,h,this.virtualScrollLength))})}requestAnimationFrame(()=>{if(this.prevScrollStart!==e.scrollStart)return;!0===d&&this.__updateVirtualScrollSizes(l);const o=this.virtualScrollSizes.slice(l,i).reduce(sumFn,0),a=o+e.offsetStart+this.virtualScrollPaddingBefore,h=a+this.virtualScrollSizes[i];let c=a+s;if(void 0!==r){const t=o-p,s=e.scrollStart+t;c=!0!==n&&s<a&&h<s+e.scrollViewSize?s:"end"===r?h-e.scrollViewSize:a-("start"===r?0:Math.round((e.scrollViewSize-this.virtualScrollSizes[i])/2))}this.prevScrollStart=c,setScroll$1(t,c,this.virtualScrollHorizontal,this.$q.lang.rtl),this.__emitScroll(i)})},__updateVirtualScrollSizes(t){const e=this.$refs.content;if(void 0!==e){const i=filterProto.call(e.children||[],t=>t.classList&&!1===t.classList.contains("q-virtual-scroll--skip")),s=i.length,o=!0===this.virtualScrollHorizontal?t=>t.getBoundingClientRect().width:t=>t.offsetHeight;let n,r,a=t;for(let t=0;t<s;){for(n=o(i[t]),t++;t<s&&!0===i[t].classList.contains("q-virtual-scroll--with-prev");)n+=o(i[t]),t++;0!==(r=n-this.virtualScrollSizes[a])&&(this.virtualScrollSizes[a]+=r,this.virtualScrollSizesAgg[Math.floor(a/aggBucketSize)]+=r),a++}}},__resetVirtualScroll(t,e){const i=1*this.virtualScrollItemSizeComputed;!0!==e&&!1!==Array.isArray(this.virtualScrollSizes)||(this.virtualScrollSizes=[]);const s=this.virtualScrollSizes.length;this.virtualScrollSizes.length=this.virtualScrollLength;for(let t=this.virtualScrollLength-1;t>=s;t--)this.virtualScrollSizes[t]=i;const o=Math.floor((this.virtualScrollLength-1)/aggBucketSize);this.virtualScrollSizesAgg=[];for(let t=0;t<=o;t++){let e=0;const i=Math.min((t+1)*aggBucketSize,this.virtualScrollLength);for(let s=t*aggBucketSize;s<i;s++)e+=this.virtualScrollSizes[s];this.virtualScrollSizesAgg.push(e)}this.prevToIndex=-1,this.prevScrollStart=void 0,this.virtualScrollPaddingBefore=sumSize(this.virtualScrollSizesAgg,this.virtualScrollSizes,0,this.virtualScrollSliceRange.from),this.virtualScrollPaddingAfter=sumSize(this.virtualScrollSizesAgg,this.virtualScrollSizes,this.virtualScrollSliceRange.to,this.virtualScrollLength),t>=0?(this.__updateVirtualScrollSizes(this.virtualScrollSliceRange.from),this.$nextTick(()=>{this.scrollTo(t)})):this.__onVirtualScrollEvt()},__setVirtualScrollSize(t){if(void 0===t&&"undefined"!=typeof window){const e=this.__getVirtualScrollTarget();void 0!==e&&null!==e&&8!==e.nodeType&&(t=getScrollDetails(e,this.__getVirtualScrollEl(),this.$refs.before,this.$refs.after,this.virtualScrollHorizontal,this.$q.lang.rtl,this.virtualScrollStickySizeStart,this.virtualScrollStickySizeEnd).scrollViewSize)}this.__scrollViewSize=t;const e=parseFloat(this.virtualScrollSliceRatioBefore)||0,i=1+e+(parseFloat(this.virtualScrollSliceRatioAfter)||0),s=void 0===t||t<=0?1:Math.ceil(t/this.virtualScrollItemSizeComputed),o=Math.max(1,s,Math.ceil((this.virtualScrollSliceSize>0?this.virtualScrollSliceSize:10)/i));this.virtualScrollSliceSizeComputed={total:Math.ceil(o*i),start:Math.ceil(o*e),center:Math.ceil(o*(.5+e)),end:Math.ceil(o*(1+e)),view:s}},__padVirtualScroll(t,e,i){const s=!0===this.virtualScrollHorizontal?"width":"height",o={["--q-virtual-scroll-item-"+s]:this.virtualScrollItemSizeComputed+"px"};return["tbody"===e?t(e,{staticClass:"q-virtual-scroll__padding",key:"before",ref:"before"},[t("tr",[t("td",{style:{[s]:`${this.virtualScrollPaddingBefore}px`,...o},attrs:this.colspanAttr})])]):t(e,{staticClass:"q-virtual-scroll__padding",key:"before",ref:"before",style:{[s]:`${this.virtualScrollPaddingBefore}px`,...o}}),t(e,{staticClass:"q-virtual-scroll__content",key:"content",ref:"content",attrs:{tabindex:-1}},i),"tbody"===e?t(e,{staticClass:"q-virtual-scroll__padding",key:"after",ref:"after"},[t("tr",[t("td",{style:{[s]:`${this.virtualScrollPaddingAfter}px`,...o},attrs:this.colspanAttr})])]):t(e,{staticClass:"q-virtual-scroll__padding",key:"after",ref:"after",style:{[s]:`${this.virtualScrollPaddingAfter}px`,...o}})]},__emitScroll(t){this.prevToIndex!==t&&(void 0!==this.qListeners["virtual-scroll"]&&this.$emit("virtual-scroll",{index:t,from:this.virtualScrollSliceRange.from,to:this.virtualScrollSliceRange.to-1,direction:t<this.prevToIndex?"decrease":"increase",ref:this}),this.prevToIndex=t)},__onBlurRefocusFn(){void 0!==this.$refs.content&&this.$refs.content.focus()}},created(){this.__setVirtualScrollSize()},activated(){if(!0!==this.shouldActivate)return;const t=this.__getVirtualScrollTarget();void 0!==this.prevScrollStart&&void 0!==t&&null!==t&&8!==t.nodeType?setScroll$1(t,this.prevScrollStart,this.virtualScrollHorizontal,this.$q.lang.rtl):this.scrollTo(this.prevToIndex)},deactivated(){this.shouldActivate=!0},beforeMount(){this.__onVirtualScrollEvt=debounce(this.__onVirtualScrollEvt,!0===this.$q.platform.is.ios?120:35),this.__setVirtualScrollSize()},beforeDestroy(){this.__onVirtualScrollEvt.cancel()}};const validateNewValueMode=t=>["add","add-unique","toggle"].includes(t),reEscapeList=".*+?^${}()|[]\\";var QSelect=Vue.extend({name:"QSelect",mixins:[QField,VirtualScroll,CompositionMixin,FormFieldMixin,ListenersMixin],props:{value:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueSanitize:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsSanitize:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:validateNewValueMode},mapOptions:Boolean,emitValue:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:String,transitionHide:String,behavior:{type:String,validator:t=>["default","menu","dialog"].includes(t),default:"default"},virtualScrollItemSize:{type:[Number,String],default:void 0}},data:()=>({menu:!1,dialog:!1,optionIndex:-1,inputValue:"",dialogFieldFocused:!1}),watch:{innerValue:{handler(t){this.innerValueCache=t,!0===this.useInput&&!0===this.fillInput&&!0!==this.multiple&&!0!==this.innerLoading&&(!0!==this.dialog&&!0!==this.menu||!0!==this.hasValue)&&(!0!==this.userInputValue&&this.__resetInputValue(),!0!==this.dialog&&!0!==this.menu||this.filter(""))},immediate:!0},fillInput(){this.__resetInputValue()},menu(t){this.__updateMenu(t)},virtualScrollLength(t,e){!0===this.menu&&!1===this.innerLoading&&(this.__resetVirtualScroll(-1,!0),this.$nextTick(()=>{!0===this.menu&&!1===this.innerLoading&&(t>e?this.__resetVirtualScroll():this.__updateMenu(!0))}))}},computed:{isOptionsDark(){return null===this.optionsDark?this.isDark:this.optionsDark},virtualScrollLength(){return Array.isArray(this.options)?this.options.length:0},fieldClass(){return`q-select q-field--auto-height q-select--with${!0!==this.useInput?"out":""}-input`+` q-select--with${!0!==this.useChips?"out":""}-chips`+` q-select--${!0===this.multiple?"multiple":"single"}`},computedInputClass(){return!0===this.hideSelected||0===this.innerValue.length?this.inputClass:void 0===this.inputClass?"q-field__input--padding":[this.inputClass,"q-field__input--padding"]},menuContentClass(){return(!0===this.virtualScrollHorizontal?"q-virtual-scroll--horizontal":"")+(this.popupContentClass?" "+this.popupContentClass:"")},innerValue(){const t=!0===this.mapOptions&&!0!==this.multiple,e=void 0===this.value||null===this.value&&!0!==t?[]:!0===this.multiple&&Array.isArray(this.value)?this.value:[this.value];if(!0===this.mapOptions&&!0===Array.isArray(this.options)){const i=!0===this.mapOptions&&void 0!==this.innerValueCache?this.innerValueCache:[],s=e.map(t=>this.__getOption(t,i));return null===this.value&&!0===t?s.filter(t=>null!==t):s}return e},noOptions(){return 0===this.virtualScrollLength},selectedString(){return this.innerValue.map(t=>this.getOptionLabel(t)).join(", ")},ariaCurrentValue(){return void 0!==this.displayValue?this.displayValue:this.selectedString},sanitizeFn(){return!0===this.optionsSanitize?()=>!0:t=>void 0!==t&&null!==t&&!0===t.sanitize},displayAsText(){return!0===this.displayValueSanitize||void 0===this.displayValue&&(!0===this.optionsSanitize||this.innerValue.some(this.sanitizeFn))},computedTabindex(){return!0===this.focused?this.tabindex:-1},selectedScope(){return this.innerValue.map((t,e)=>({index:e,opt:t,sanitize:this.sanitizeFn(t),selected:!0,removeAtIndex:this.__removeAtIndexAndFocus,toggleOption:this.toggleOption,tabindex:this.computedTabindex}))},optionScope(){if(0===this.virtualScrollLength)return[];const{from:t,to:e}=this.virtualScrollSliceRange,{options:i,optionEls:s}=this.__optionScopeCache;return this.options.slice(t,e).map((e,o)=>{const n=this.isOptionDisabled(e),r=t+o,a={clickable:!0,active:!1,activeClass:this.computedOptionsSelectedClass,manualFocus:!0,focused:!1,disable:n,tabindex:-1,dense:this.optionsDense,dark:this.isOptionsDark},l={role:"option",id:`${this.targetUid}_${r}`};!0!==n&&(!0===this.isOptionSelected(e)&&(a.active=!0),l["aria-selected"]=!0===a.active?"true":"false",this.optionIndex===r&&(a.focused=!0));const h={click:()=>{this.toggleOption(e)}};!0===this.$q.platform.is.desktop&&(h.mousemove=(()=>{!0===this.menu&&this.setOptionIndex(r)}));const d={index:r,opt:e,sanitize:this.sanitizeFn(e),selected:a.active,focused:a.focused,toggleOption:this.toggleOption,setOptionIndex:this.setOptionIndex,itemProps:a,itemAttrs:l};return void 0!==i[o]&&!0===isDeepEqual(d,i[o])||(i[o]=d,s[o]=void 0),{...d,itemEvents:h}})},dropdownArrowIcon(){return void 0!==this.dropdownIcon?this.dropdownIcon:this.$q.iconSet.arrow.dropdown},squaredMenu(){return!1===this.optionsCover&&!0!==this.outlined&&!0!==this.standout&&!0!==this.borderless&&!0!==this.rounded},computedOptionsSelectedClass(){return void 0!==this.optionsSelectedClass?this.optionsSelectedClass:void 0!==this.color?`text-${this.color}`:""},innerOptionsValue(){return this.innerValue.map(t=>this.getOptionValue(t))},getOptionValue(){return this.__getPropValueFn("optionValue","value")},getOptionLabel(){return this.__getPropValueFn("optionLabel","label")},isOptionDisabled(){const t=this.__getPropValueFn("optionDisable","disable");return(...e)=>!0===t.apply(null,e)},inputControlEvents(){const t={input:this.__onInput,change:this.__onChange,keydown:this.__onTargetKeydown,keyup:this.__onTargetAutocomplete,keypress:this.__onTargetKeypress,focus:this.__selectInputText,click:t=>{!0===this.hasDialog&&stop(t)}};return t.compositionstart=t.compositionupdate=t.compositionend=this.__onComposition,t},virtualScrollItemSizeComputed(){return void 0===this.virtualScrollItemSize?!0===this.optionsDense?24:48:this.virtualScrollItemSize},comboboxAttrs(){const t={tabindex:this.tabindex,role:"combobox","aria-label":this.label,"aria-readonly":!0===this.readonly?"true":"false","aria-autocomplete":!0===this.useInput?"list":"none","aria-expanded":!0===this.menu?"true":"false","aria-controls":`${this.targetUid}_lb`};return this.optionIndex>=0&&(t["aria-activedescendant"]=`${this.targetUid}_${this.optionIndex}`),t},listboxAttrs(){return{id:`${this.targetUid}_lb`,role:"listbox","aria-multiselectable":!0===this.multiple?"true":"false"}}},methods:{getEmittingOptionValue(t){return!0===this.emitValue?this.getOptionValue(t):t},removeAtIndex(t){if(t>-1&&t<this.innerValue.length)if(!0===this.multiple){const e=this.value.slice();this.$emit("remove",{index:t,value:e.splice(t,1)[0]}),this.$emit("input",e)}else this.$emit("input",null)},__removeAtIndexAndFocus(t){this.removeAtIndex(t),this.__focus()},add(t,e){const i=this.getEmittingOptionValue(t);if(!0!==this.multiple)return!0===this.fillInput&&this.updateInputValue(this.getOptionLabel(t),!0,!0),void this.$emit("input",i);if(0===this.innerValue.length)return this.$emit("add",{index:0,value:i}),void this.$emit("input",!0===this.multiple?[i]:i);if(!0===e&&!0===this.isOptionSelected(t))return;if(void 0!==this.maxValues&&this.value.length>=this.maxValues)return;const s=this.value.slice();this.$emit("add",{index:s.length,value:i}),s.push(i),this.$emit("input",s)},toggleOption(t,e){if(!0!==this.editable||void 0===t||!0===this.isOptionDisabled(t))return;const i=this.getOptionValue(t);if(!0!==this.multiple)return!0!==e&&(this.updateInputValue(!0===this.fillInput?this.getOptionLabel(t):"",!0,!0),this.dialogFieldFocused=!1,document.activeElement.blur(),this.hidePopup()),void 0!==this.$refs.target&&this.$refs.target.focus(),void(0!==this.innerValue.length&&!0===isDeepEqual(this.getOptionValue(this.innerValue[0]),i)||this.$emit("input",!0===this.emitValue?i:t));if((!0!==this.hasDialog||!0===this.dialogFieldFocused)&&this.__focus(),this.__selectInputText(),0===this.innerValue.length){const e=!0===this.emitValue?i:t;return this.$emit("add",{index:0,value:e}),void this.$emit("input",!0===this.multiple?[e]:e)}const s=this.value.slice(),o=this.innerOptionsValue.findIndex(t=>isDeepEqual(t,i));if(o>-1)this.$emit("remove",{index:o,value:s.splice(o,1)[0]});else{if(void 0!==this.maxValues&&s.length>=this.maxValues)return;const e=!0===this.emitValue?i:t;this.$emit("add",{index:s.length,value:e}),s.push(e)}this.$emit("input",s)},setOptionIndex(t){if(!0!==this.$q.platform.is.desktop)return;const e=t>-1&&t<this.virtualScrollLength?t:-1;this.optionIndex!==e&&(this.optionIndex=e)},moveOptionSelection(t=1,e){if(!0===this.menu){let i=this.optionIndex;do{i=normalizeToInterval(i+t,-1,this.virtualScrollLength-1)}while(-1!==i&&i!==this.optionIndex&&!0===this.isOptionDisabled(this.options[i]));this.optionIndex!==i&&(cancelAnimationFrame(this.moveAnimationFrame),this.moveAnimationFrame=requestAnimationFrame(()=>{this.setOptionIndex(i),this.scrollTo(i),!0!==e&&!0===this.useInput&&!0===this.fillInput&&this.__setInputValue(i>=0?this.getOptionLabel(this.options[i]):this.defaultInputValue)}))}},__getOption(t,e){const i=e=>isDeepEqual(this.getOptionValue(e),t);return this.options.find(i)||e.find(i)||t},__getPropValueFn(t,e){const i=void 0!==this[t]?this[t]:e;return"function"==typeof i?i:t=>null!==t&&"object"==typeof t&&i in t?t[i]:t},isOptionSelected(t){const e=this.getOptionValue(t);return void 0!==this.innerOptionsValue.find(t=>isDeepEqual(t,e))},__selectInputText(t){!0===this.useInput&&void 0!==this.$refs.target&&(void 0===t||this.$refs.target===t.target&&t.target.value===this.selectedString)&&this.$refs.target.select()},__onTargetKeyup(t){!0===isKeyCode(t,27)&&!0===this.menu&&(stop(t),this.hidePopup(),this.__resetInputValue()),this.$emit("keyup",t)},__onTargetAutocomplete(t){const{value:e}=t.target;if(void 0===t.keyCode)if(t.target.value="",clearTimeout(this.inputTimer),this.__resetInputValue(),"string"==typeof e&&e.length>0){const t=e.toLocaleLowerCase(),i=e=>{const i=this.options.find(i=>e(i).toLocaleLowerCase()===t);return void 0!==i&&(-1===this.innerValue.indexOf(i)?this.toggleOption(i):this.hidePopup(),!0)},s=t=>{!0!==i(this.getOptionValue)&&!0!==i(this.getOptionLabel)&&!0!==t&&this.filter(e,!0,()=>s(!0))};s()}else this.__clearValue(t);else this.__onTargetKeyup(t)},__onTargetKeypress(t){this.$emit("keypress",t)},__onTargetKeydown(t){if(this.$emit("keydown",t),!0===shouldIgnoreKey(t))return;const e=this.inputValue.length>0&&(void 0!==this.newValueMode||void 0!==this.qListeners["new-value"]),i=!0!==t.shiftKey&&!0!==this.multiple&&(this.optionIndex>-1||!0===e);if(27===t.keyCode)return void prevent(t);if(9===t.keyCode&&!1===i)return void this.__closeMenu();if(void 0===t.target||t.target.id!==this.targetUid)return;if(40===t.keyCode&&!0!==this.innerLoading&&!1===this.menu)return stopAndPrevent(t),void this.showPopup();if(8===t.keyCode&&!0!==this.hideSelected&&0===this.inputValue.length)return void(!0===this.multiple&&Array.isArray(this.value)?this.removeAtIndex(this.value.length-1):!0!==this.multiple&&null!==this.value&&this.$emit("input",null));35!==t.keyCode&&36!==t.keyCode||"string"==typeof this.inputValue&&0!==this.inputValue.length||(stopAndPrevent(t),this.optionIndex=-1,this.moveOptionSelection(36===t.keyCode?1:-1,this.multiple)),33!==t.keyCode&&34!==t.keyCode||void 0===this.virtualScrollSliceSizeComputed||(stopAndPrevent(t),this.optionIndex=Math.max(-1,Math.min(this.virtualScrollLength,this.optionIndex+(33===t.keyCode?-1:1)*this.virtualScrollSliceSizeComputed.view)),this.moveOptionSelection(33===t.keyCode?1:-1,this.multiple)),38!==t.keyCode&&40!==t.keyCode||(stopAndPrevent(t),this.moveOptionSelection(38===t.keyCode?-1:1,this.multiple));const s=this.virtualScrollLength;if((void 0===this.searchBuffer||this.searchBufferExp<Date.now())&&(this.searchBuffer=""),s>0&&!0!==this.useInput&&void 0!==t.key&&1===t.key.length&&!1===t.altKey&&!1===t.ctrlKey&&!1===t.metaKey&&(32!==t.keyCode||this.searchBuffer.length>0)){!0!==this.menu&&this.showPopup(t);const e=t.key.toLocaleLowerCase(),i=1===this.searchBuffer.length&&this.searchBuffer[0]===e;this.searchBufferExp=Date.now()+1500,!1===i&&(stopAndPrevent(t),this.searchBuffer+=e);const o=new RegExp("^"+this.searchBuffer.split("").map(t=>reEscapeList.indexOf(t)>-1?"\\"+t:t).join(".*"),"i");let n=this.optionIndex;if(!0===i||n<0||!0!==o.test(this.getOptionLabel(this.options[n])))do{n=normalizeToInterval(n+1,-1,s-1)}while(n!==this.optionIndex&&(!0===this.isOptionDisabled(this.options[n])||!0!==o.test(this.getOptionLabel(this.options[n]))));this.optionIndex!==n&&this.$nextTick(()=>{this.setOptionIndex(n),this.scrollTo(n),n>=0&&!0===this.useInput&&!0===this.fillInput&&this.__setInputValue(this.getOptionLabel(this.options[n]))})}else if(13===t.keyCode||32===t.keyCode&&!0!==this.useInput&&""===this.searchBuffer||9===t.keyCode&&!1!==i)if(9!==t.keyCode&&stopAndPrevent(t),this.optionIndex>-1&&this.optionIndex<s)this.toggleOption(this.options[this.optionIndex]);else{if(!0===e){const t=(t,e)=>{if(e){if(!0!==validateNewValueMode(e))return}else e=this.newValueMode;void 0!==t&&null!==t&&(this.updateInputValue("",!0!==this.multiple,!0),this["toggle"===e?"toggleOption":"add"](t,"add-unique"===e),!0!==this.multiple&&(void 0!==this.$refs.target&&this.$refs.target.focus(),this.hidePopup()))};if(void 0!==this.qListeners["new-value"]?this.$emit("new-value",this.inputValue,t):t(this.inputValue),!0!==this.multiple)return}!0===this.menu?this.__closeMenu():!0!==this.innerLoading&&this.showPopup()}},__getVirtualScrollEl(){return!0===this.hasDialog?this.$refs.menuContent:void 0!==this.$refs.menu&&void 0!==this.$refs.menu.__portal?this.$refs.menu.__portal.$el:void 0},__getVirtualScrollTarget(){return this.__getVirtualScrollEl()},__getSelection(t){return!0===this.hideSelected?[]:void 0!==this.$scopedSlots["selected-item"]?this.selectedScope.map(t=>this.$scopedSlots["selected-item"](t)).slice():void 0!==this.$scopedSlots.selected?[].concat(this.$scopedSlots.selected()):!0===this.useChips?this.selectedScope.map((e,i)=>t(QChip,{key:"rem#"+i,props:{removable:!0===this.editable&&!0!==this.isOptionDisabled(e.opt),dense:!0,textColor:this.color,tabindex:this.computedTabindex},on:cache(this,"rem#"+i,{remove(){e.removeAtIndex(i)}})},[t("span",{staticClass:"ellipsis",domProps:{[!0===e.sanitize?"textContent":"innerHTML"]:this.getOptionLabel(e.opt)}})])):[t("span",{domProps:{[this.displayAsText?"textContent":"innerHTML"]:this.ariaCurrentValue}})]},__getControl(t,e){const i=this.__getSelection(t),s=!0===e||!0!==this.dialog||!0!==this.hasDialog;if(!0===this.useInput)i.push(this.__getInput(t,e,s));else if(!0===this.editable){const o=!0===s?this.comboboxAttrs:void 0;i.push(t("input",{ref:!0===s?"target":void 0,key:"d_t",staticClass:"q-select__focus-target",attrs:{id:!0===s?this.targetUid:void 0,readonly:!0,"data-autofocus":(!0===e?!0===s:this.autofocus)||void 0,...o},on:cache(this,"f-tget",{keydown:this.__onTargetKeydown,keyup:this.__onTargetKeyup,keypress:this.__onTargetKeypress})})),!0===s&&"string"==typeof this.autocomplete&&this.autocomplete.length>0&&i.push(t("input",{key:"autoinp",staticClass:"q-select__autocomplete-input",domProps:{value:this.ariaCurrentValue},attrs:{autocomplete:this.autocomplete,tabindex:-1},on:cache(this,"autoinp",{keyup:this.__onTargetAutocomplete})}))}if(void 0!==this.nameProp&&!0!==this.disable&&this.innerOptionsValue.length>0){const e=this.innerOptionsValue.map(e=>t("option",{attrs:{value:e,selected:!0}}));i.push(t("select",{staticClass:"hidden",attrs:{name:this.nameProp,multiple:this.multiple}},e))}const o=!0===this.useInput||!0!==s?void 0:this.qAttrs;return t("div",{staticClass:"q-field__native row items-center",attrs:o},i)},__getOptions(t){if(!0!==this.menu)return;if(!0===this.noOptions)return void 0!==this.$scopedSlots["no-option"]?this.$scopedSlots["no-option"]({inputValue:this.inputValue}):void 0;void 0!==this.$scopedSlots.option&&this.__optionScopeCache.optionSlot!==this.$scopedSlots.option&&(this.__optionScopeCache.optionSlot=this.$scopedSlots.option,this.__optionScopeCache.optionEls=[]);const e=void 0!==this.$scopedSlots.option?this.$scopedSlots.option:e=>t(QItem,{key:e.index,props:e.itemProps,attrs:e.itemAttrs,on:e.itemEvents},[t(QItemSection,[t(QItemLabel,{domProps:{[!0===e.sanitize?"textContent":"innerHTML"]:this.getOptionLabel(e.opt)}})])]),{optionEls:i}=this.__optionScopeCache;let s=this.__padVirtualScroll(t,"div",this.optionScope.map((t,s)=>(void 0===i[s]&&(i[s]=e(t)),i[s])));return void 0!==this.$scopedSlots["before-options"]&&(s=this.$scopedSlots["before-options"]().concat(s)),mergeSlot(s,this,"after-options")},__getInnerAppend(t){return!0!==this.loading&&!0!==this.innerLoadingIndicator&&!0!==this.hideDropdownIcon?[t(QIcon,{staticClass:"q-select__dropdown-icon"+(!0===this.menu?" rotate-180":""),props:{name:this.dropdownArrowIcon}})]:null},__getInput(t,e,i){const s=!0===i?{...this.comboboxAttrs,...this.qAttrs}:void 0,o={ref:!0===i?"target":void 0,key:"i_t",staticClass:"q-field__input q-placeholder col",style:this.inputStyle,class:this.computedInputClass,domProps:{value:void 0!==this.inputValue?this.inputValue:""},attrs:{type:"search",...s,id:!0===i?this.targetUid:void 0,maxlength:this.maxlength,autocomplete:this.autocomplete,"data-autofocus":(!0===e?!0===i:this.autofocus)||void 0,disabled:!0===this.disable,readonly:!0===this.readonly},on:this.inputControlEvents};return!0!==e&&!0===this.hasDialog&&(o.staticClass+=" no-pointer-events"),t("input",o)},__onChange(t){this.__onComposition(t)},__onInput(t){clearTimeout(this.inputTimer),t&&t.target&&!0===t.target.qComposing||(this.__setInputValue(t.target.value||""),this.userInputValue=!0,this.defaultInputValue=this.inputValue,!0===this.focused||!0===this.hasDialog&&!0!==this.dialogFieldFocused||this.__focus(),void 0!==this.qListeners.filter&&(this.inputTimer=setTimeout(()=>{this.filter(this.inputValue)},this.inputDebounce)))},__setInputValue(t){this.inputValue!==t&&(this.inputValue=t,this.$emit("input-value",t))},updateInputValue(t,e,i){this.userInputValue=!0!==i,!0===this.useInput&&(this.__setInputValue(t),!0!==e&&!0===i||(this.defaultInputValue=t),!0!==e&&this.filter(t))},filter(t,e,i){if(void 0===this.qListeners.filter||!0!==e&&!0!==this.focused)return;!0===this.innerLoading?this.$emit("filter-abort"):(this.innerLoading=!0,this.innerLoadingIndicator=!0),""!==t&&!0!==this.multiple&&this.innerValue.length>0&&!0!==this.userInputValue&&t===this.getOptionLabel(this.innerValue[0])&&(t="");const s=setTimeout(()=>{!0===this.menu&&(this.menu=!1)},10);clearTimeout(this.filterId),this.filterId=s,this.$emit("filter",t,(t,o)=>{!0!==e&&!0!==this.focused||this.filterId!==s||(clearTimeout(this.filterId),"function"==typeof t&&t(),this.innerLoadingIndicator=!1,this.$nextTick(()=>{this.innerLoading=!1,!0===this.editable&&(!0===e?!0===this.menu&&this.hidePopup():!0===this.menu?this.__updateMenu(!0):(this.menu=!0,!0===this.hasDialog&&(this.dialog=!0))),"function"==typeof o&&this.$nextTick(()=>{o(this)}),"function"==typeof i&&this.$nextTick(()=>{i(this)})}))},()=>{!0===this.focused&&this.filterId===s&&(clearTimeout(this.filterId),this.innerLoading=!1,this.innerLoadingIndicator=!1),!0===this.menu&&(this.menu=!1)})},__getControlEvents(){const t=t=>{this.__onControlFocusout(t,()=>{this.__resetInputValue(),this.__closeMenu()})};return{focusin:this.__onControlFocusin,focusout:t,"popup-show":this.__onControlPopupShow,"popup-hide":e=>{void 0!==e&&stop(e),this.$emit("popup-hide",e),this.hasPopupOpen=!1,t(e)},click:t=>{if(prevent(t),!0!==this.hasDialog&&!0===this.menu)return this.__closeMenu(),void(void 0!==this.$refs.target&&this.$refs.target.focus());this.showPopup(t)}}},__getControlChild(t){if(!1!==this.editable&&(!0===this.dialog||!0!==this.noOptions||void 0!==this.$scopedSlots["no-option"]))return this[`__get${!0===this.hasDialog?"Dialog":"Menu"}`](t)},__getMenu(t){return t(QMenu,{key:"menu",ref:"menu",props:{value:this.menu,fit:!0!==this.menuShrink,cover:!0===this.optionsCover&&!0!==this.noOptions&&!0!==this.useInput,anchor:this.menuAnchor,self:this.menuSelf,offset:this.menuOffset,contentClass:this.menuContentClass,contentStyle:this.popupContentStyle,dark:this.isOptionsDark,noParentEvent:!0,noRefocus:!0,noFocus:!0,square:this.squaredMenu,transitionShow:this.transitionShow,transitionHide:this.transitionHide,separateClosePopup:!0},attrs:this.listboxAttrs,on:cache(this,"menu",{"&scroll":this.__onVirtualScrollEvt,"before-hide":this.__closeMenu,show:this.__onMenuShow})},this.__getOptions(t))},__onMenuShow(){this.__setVirtualScrollSize()},__onDialogFieldFocus(t){stop(t),void 0!==this.$refs.target&&this.$refs.target.focus(),this.dialogFieldFocused=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)},__onDialogFieldBlur(t){stop(t),this.$nextTick(()=>{this.dialogFieldFocused=!1})},__getDialog(t){const e=[t(QField,{staticClass:`col-auto ${this.fieldClass}`,props:{...this.$props,for:this.targetUid,dark:this.isOptionsDark,square:!0,filled:!0,itemAligned:!1,loading:this.innerLoadingIndicator,stackLabel:this.inputValue.length>0},on:{...this.qListeners,focus:this.__onDialogFieldFocus,blur:this.__onDialogFieldBlur},scopedSlots:{...this.$scopedSlots,rawControl:()=>this.__getControl(t,!0),before:void 0,after:void 0}})];return!0===this.menu&&e.push(t("div",{key:"virtMenu",ref:"menuContent",staticClass:"col scroll",class:this.menuContentClass,style:this.popupContentStyle,attrs:this.listboxAttrs,on:cache(this,"virtMenu",{click:prevent,"&scroll":this.__onVirtualScrollEvt})},this.__getOptions(t))),t(QDialog,{key:"dialog",ref:"dialog",props:{value:this.dialog,dark:this.isOptionsDark,position:!0===this.useInput?"top":void 0,transitionShow:this.transitionShowComputed,transitionHide:this.transitionHide},on:cache(this,"dialog",{"before-hide":this.__onDialogBeforeHide,hide:this.__onDialogHide,show:this.__onDialogShow})},[t("div",{staticClass:"q-select__dialog"+(!0===this.isOptionsDark?" q-select__dialog--dark q-dark":"")+(!0===this.dialogFieldFocused?" q-select__dialog--focused":"")},e)])},__onDialogBeforeHide(){!0===this.useInput&&!0!==this.$q.platform.is.desktop||(this.$refs.dialog.__refocusTarget=this.$el.querySelector(".q-field__native > [tabindex]:last-child")),this.focused=!1,this.dialogFieldFocused=!1},__onDialogHide(t){!0!==this.$q.platform.is.desktop&&document.activeElement.blur(),this.hidePopup(),!1===this.focused&&this.$emit("blur",t),this.__resetInputValue()},__onDialogShow(){const t=document.activeElement;null!==t&&t.id===this.targetUid||this.$refs.target===t||void 0===this.$refs.target||this.$refs.target.focus(),this.__setVirtualScrollSize()},__closeMenu(){void 0!==this.__optionScopeCache&&(this.__optionScopeCache.optionEls=[]),!0!==this.dialog&&(this.optionIndex=-1,!0===this.menu&&(this.menu=!1),!1===this.focused&&(clearTimeout(this.filterId),this.filterId=void 0,!0===this.innerLoading&&(this.$emit("filter-abort"),this.innerLoading=!1,this.innerLoadingIndicator=!1)))},showPopup(t){!0===this.editable&&(!0===this.hasDialog?(this.__onControlFocusin(t),this.dialog=!0,this.$nextTick(()=>{this.__focus()})):this.__focus(),void 0!==this.qListeners.filter?this.filter(this.inputValue):!0===this.noOptions&&void 0===this.$scopedSlots["no-option"]||(this.menu=!0))},hidePopup(){this.dialog=!1,this.__closeMenu()},__resetInputValue(){!0===this.useInput&&this.updateInputValue(!0!==this.multiple&&!0===this.fillInput&&this.innerValue.length>0&&this.getOptionLabel(this.innerValue[0])||"",!0,!0)},__updateMenu(t){let e=-1;if(!0===t){if(this.innerValue.length>0){const t=this.getOptionValue(this.innerValue[0]);e=this.options.findIndex(e=>isDeepEqual(this.getOptionValue(e),t))}this.__resetVirtualScroll(e)}this.setOptionIndex(e)},__onPreRender(){this.hasDialog=(!0===this.$q.platform.is.mobile||"dialog"===this.behavior)&&("menu"!==this.behavior&&(!0!==this.useInput||(void 0!==this.$scopedSlots["no-option"]||void 0!==this.qListeners.filter||!1===this.noOptions))),this.transitionShowComputed=!0===this.hasDialog&&!0===this.useInput&&!0===this.$q.platform.is.ios?"fade":this.transitionShow},__onPostRender(){!1===this.dialog&&void 0!==this.$refs.menu&&this.$refs.menu.updatePosition()},updateMenuPosition(){this.__onPostRender()}},beforeMount(){this.__optionScopeCache={optionSlot:this.$scopedSlots.option,options:[],optionEls:[]}},beforeDestroy(){this.__optionScopeCache=void 0,clearTimeout(this.inputTimer)}});const skeletonTypes=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],skeletonAnimations=["wave","pulse","pulse-x","pulse-y","fade","blink","none"];var QSkeleton=Vue.extend({name:"QSkeleton",mixins:[DarkMixin,TagMixin,ListenersMixin],props:{type:{type:String,validator:t=>skeletonTypes.includes(t),default:"rect"},animation:{type:String,validator:t=>skeletonAnimations.includes(t),default:"wave"},square:Boolean,bordered:Boolean,size:String,width:String,height:String},computed:{style(){return void 0!==this.size?{width:this.size,height:this.size}:{width:this.width,height:this.height}},classes(){return`q-skeleton--${!0===this.isDark?"dark":"light"} q-skeleton--type-${this.type}`+("none"!==this.animation?` q-skeleton--anim q-skeleton--anim-${this.animation}`:"")+(!0===this.square?" q-skeleton--square":"")+(!0===this.bordered?" q-skeleton--bordered":"")}},render(t){return t(this.tag,{staticClass:"q-skeleton",class:this.classes,style:this.style,on:{...this.qListeners}},slot(this,"default"))}});const slotsDef=[["left","center","start","width"],["right","center","end","width"],["top","start","center","height"],["bottom","end","center","height"]];var QSlideItem=Vue.extend({name:"QSlideItem",mixins:[DarkMixin,ListenersMixin],props:{leftColor:String,rightColor:String,topColor:String,bottomColor:String},directives:{TouchPan:TouchPan},computed:{langDir(){return!0===this.$q.lang.rtl?{left:"right",right:"left"}:{left:"left",right:"right"}}},methods:{reset(){this.$refs.content.style.transform="translate(0,0)",this.__emitSlide(this.__showing,0,!0)},__emitSlide(t,e,i){void 0!==this.qListeners.slide&&this.$emit("slide",{side:t,ratio:e,isReset:i})},__pan(t){const e=this.$refs.content;if(t.isFirst)this.__dir=null,this.__size={left:0,right:0,top:0,bottom:0},this.__scale=0,e.classList.add("no-transition"),slotsDef.forEach(t=>{if(void 0!==this.$scopedSlots[t[0]]){const e=this.$refs[t[0]+"Content"];e.style.transform="scale(1)",this.__size[t[0]]=e.getBoundingClientRect()[t[3]]}}),this.__axis="up"===t.direction||"down"===t.direction?"Y":"X";else{if(t.isFinal)return e.classList.remove("no-transition"),void(1===this.__scale?(e.style.transform=`translate${this.__axis}(${100*this.__dir}%)`,this.timer=setTimeout(()=>{this.$emit(this.__showing,{reset:this.reset}),this.$emit("action",{side:this.__showing,reset:this.reset})},230)):(e.style.transform="translate(0,0)",this.__emitSlide(this.__showing,0,!0)));t.direction="X"===this.__axis?t.offset.x<0?"left":"right":t.offset.y<0?"up":"down"}if(void 0===this.$scopedSlots.left&&t.direction===this.langDir.right||void 0===this.$scopedSlots.right&&t.direction===this.langDir.left||void 0===this.$scopedSlots.top&&"down"===t.direction||void 0===this.$scopedSlots.bottom&&"up"===t.direction)return void(e.style.transform="translate(0,0)");let i,s,o;"X"===this.__axis?(s="left"===t.direction?-1:1,i=1===s?this.langDir.left:this.langDir.right,o=t.distance.x):(s="up"===t.direction?-2:2,i=2===s?"top":"bottom",o=t.distance.y),null!==this.__dir&&Math.abs(s)!==Math.abs(this.__dir)||(this.__dir!==s&&(["left","right","top","bottom"].forEach(t=>{void 0!==this.$refs[t]&&(this.$refs[t].style.visibility=i===t?"visible":"hidden")}),this.__showing=i,this.__dir=s),this.__scale=Math.max(0,Math.min(1,(o-40)/this.__size[i])),e.style.transform=`translate${this.__axis}(${o*s/Math.abs(s)}px)`,this.$refs[`${i}Content`].style.transform=`scale(${this.__scale})`,this.__emitSlide(i,this.__scale,!1))}},render(t){const e=[],i={left:void 0!==this.$scopedSlots[this.langDir.right],right:void 0!==this.$scopedSlots[this.langDir.left],up:void 0!==this.$scopedSlots.bottom,down:void 0!==this.$scopedSlots.top},s=Object.keys(i).filter(t=>!0===i[t]);return slotsDef.forEach(i=>{const s=i[0];void 0!==this.$scopedSlots[s]&&e.push(t("div",{ref:s,class:`q-slide-item__${s} absolute-full row no-wrap items-${i[1]} justify-${i[2]}`+(void 0!==this[s+"Color"]?` bg-${this[s+"Color"]}`:"")},[t("div",{ref:s+"Content"},this.$scopedSlots[s]())]))}),e.push(t("div",{ref:"content",key:"content",staticClass:"q-slide-item__content",directives:s.length>0?cacheWithFn(this,"dir#"+s.join(""),()=>{const t={prevent:!0,stop:!0,mouse:!0};return s.forEach(e=>{t[e]=!0}),[{name:"touch-pan",value:this.__pan,modifiers:t}]}):null},slot(this,"default"))),t("div",{staticClass:"q-slide-item q-item-type overflow-hidden",class:!0===this.isDark?"q-slide-item--dark q-dark":"",on:{...this.qListeners}},e)},beforeDestroy(){clearTimeout(this.timer)}}),QSpace=Vue.extend({name:"QSpace",mixins:[ListenersMixin],render(t){return t("div",{staticClass:"q-space",on:{...this.qListeners}})}}),QSpinnerAudio=Vue.extend({name:"QSpinnerAudio",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",fill:"currentColor",width:this.cSize,height:this.cSize,viewBox:"0 0 55 80",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{transform:"matrix(1 0 0 -1 0 80)"}},[t("rect",{attrs:{width:"10",height:"20",rx:"3"}},[t("animate",{attrs:{attributeName:"height",begin:"0s",dur:"4.3s",values:"20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"15",width:"10",height:"80",rx:"3"}},[t("animate",{attrs:{attributeName:"height",begin:"0s",dur:"2s",values:"80;55;33;5;75;23;73;33;12;14;60;80",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"30",width:"10",height:"50",rx:"3"}},[t("animate",{attrs:{attributeName:"height",begin:"0s",dur:"1.4s",values:"50;34;78;23;56;23;34;76;80;54;21;50",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"45",width:"10",height:"30",rx:"3"}},[t("animate",{attrs:{attributeName:"height",begin:"0s",dur:"2s",values:"30;45;13;80;56;72;45;76;34;23;67;30",calcMode:"linear",repeatCount:"indefinite"}})])])])}}),QSpinnerBall=Vue.extend({name:"QSpinnerBall",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",stroke:"currentColor",width:this.cSize,height:this.cSize,viewBox:"0 0 57 57",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{transform:"translate(1 1)","stroke-width":"2",fill:"none","fill-rule":"evenodd"}},[t("circle",{attrs:{cx:"5",cy:"50",r:"5"}},[t("animate",{attrs:{attributeName:"cy",begin:"0s",dur:"2.2s",values:"50;5;50;50",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"cx",begin:"0s",dur:"2.2s",values:"5;27;49;5",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"27",cy:"5",r:"5"}},[t("animate",{attrs:{attributeName:"cy",begin:"0s",dur:"2.2s",from:"5",to:"5",values:"5;50;50;5",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"cx",begin:"0s",dur:"2.2s",from:"27",to:"27",values:"27;49;5;27",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"49",cy:"50",r:"5"}},[t("animate",{attrs:{attributeName:"cy",begin:"0s",dur:"2.2s",values:"50;50;5;50",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"cx",from:"49",to:"49",begin:"0s",dur:"2.2s",values:"49;5;27;49",calcMode:"linear",repeatCount:"indefinite"}})])])])}}),QSpinnerBars=Vue.extend({name:"QSpinnerBars",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",fill:"currentColor",width:this.cSize,height:this.cSize,viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg"}},[t("rect",{attrs:{y:"10",width:"15",height:"120",rx:"6"}},[t("animate",{attrs:{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"30",y:"10",width:"15",height:"120",rx:"6"}},[t("animate",{attrs:{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"60",width:"15",height:"140",rx:"6"}},[t("animate",{attrs:{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"90",y:"10",width:"15",height:"120",rx:"6"}},[t("animate",{attrs:{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"120",y:"10",width:"15",height:"120",rx:"6"}},[t("animate",{attrs:{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"}})])])}}),QSpinnerBox=Vue.extend({name:"QSpinnerBox",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[t("rect",{attrs:{x:"25",y:"25",width:"50",height:"50",fill:"none","stroke-width":"4",stroke:"currentColor"}},[t("animateTransform",{attrs:{id:"spinnerBox",attributeName:"transform",type:"rotate",from:"0 50 50",to:"180 50 50",dur:"0.5s",begin:"rectBox.end"}})]),t("rect",{attrs:{x:"27",y:"27",width:"46",height:"50",fill:"currentColor"}},[t("animate",{attrs:{id:"rectBox",attributeName:"height",begin:"0s;spinnerBox.end",dur:"1.3s",from:"50",to:"0",fill:"freeze"}})])])}}),QSpinnerClock=Vue.extend({name:"QSpinnerClock",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"48",fill:"none","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor"}}),t("line",{attrs:{"stroke-linecap":"round","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor",x1:"50",y1:"50",x2:"85",y2:"50.5"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"2s",repeatCount:"indefinite"}})]),t("line",{attrs:{"stroke-linecap":"round","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor",x1:"50",y1:"50",x2:"49.5",y2:"74"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"15s",repeatCount:"indefinite"}})])])}}),QSpinnerComment=Vue.extend({name:"QSpinnerComment",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[t("rect",{attrs:{x:"0",y:"0",width:"100",height:"100",fill:"none"}}),t("path",{attrs:{d:"M78,19H22c-6.6,0-12,5.4-12,12v31c0,6.6,5.4,12,12,12h37.2c0.4,3,1.8,5.6,3.7,7.6c2.4,2.5,5.1,4.1,9.1,4 c-1.4-2.1-2-7.2-2-10.3c0-0.4,0-0.8,0-1.3h8c6.6,0,12-5.4,12-12V31C90,24.4,84.6,19,78,19z",fill:"currentColor"}}),t("circle",{attrs:{cx:"30",cy:"47",r:"5",fill:"#fff"}},[t("animate",{attrs:{attributeName:"opacity",from:"0",to:"1",values:"0;1;1",keyTimes:"0;0.2;1",dur:"1s",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"50",cy:"47",r:"5",fill:"#fff"}},[t("animate",{attrs:{attributeName:"opacity",from:"0",to:"1",values:"0;0;1;1",keyTimes:"0;0.2;0.4;1",dur:"1s",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"70",cy:"47",r:"5",fill:"#fff"}},[t("animate",{attrs:{attributeName:"opacity",from:"0",to:"1",values:"0;0;1;1",keyTimes:"0;0.4;0.6;1",dur:"1s",repeatCount:"indefinite"}})])])}}),QSpinnerCube=Vue.extend({name:"QSpinnerCube",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[t("rect",{attrs:{x:"0",y:"0",width:"100",height:"100",fill:"none"}}),t("g",{attrs:{transform:"translate(25 25)"}},[t("rect",{attrs:{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.9"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"}})])]),t("g",{attrs:{transform:"translate(75 25)"}},[t("rect",{attrs:{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.8"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.1s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"}})])]),t("g",{attrs:{transform:"translate(25 75)"}},[t("rect",{staticClass:"cube",attrs:{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.7"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.3s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"}})])]),t("g",{attrs:{transform:"translate(75 75)"}},[t("rect",{staticClass:"cube",attrs:{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.6"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.2s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"}})])])])}}),QSpinnerDots=Vue.extend({name:"QSpinnerDots",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",fill:"currentColor",width:this.cSize,height:this.cSize,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg"}},[t("circle",{attrs:{cx:"15",cy:"15",r:"15"}},[t("animate",{attrs:{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"60",cy:"15",r:"9","fill-opacity":".3"}},[t("animate",{attrs:{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"fill-opacity",from:".5",to:".5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"105",cy:"15",r:"15"}},[t("animate",{attrs:{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}})])])}}),QSpinnerFacebook=Vue.extend({name:"QSpinnerFacebook",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"}},[t("g",{attrs:{transform:"translate(20 50)"}},[t("rect",{attrs:{x:"-10",y:"-30",width:"20",height:"60",fill:"currentColor",opacity:"0.6"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"}})])]),t("g",{attrs:{transform:"translate(50 50)"}},[t("rect",{attrs:{x:"-10",y:"-30",width:"20",height:"60",fill:"currentColor",opacity:"0.8"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0.1s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"}})])]),t("g",{attrs:{transform:"translate(80 50)"}},[t("rect",{attrs:{x:"-10",y:"-30",width:"20",height:"60",fill:"currentColor",opacity:"0.9"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0.2s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"}})])])])}}),QSpinnerGears=Vue.extend({name:"QSpinnerGears",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{transform:"translate(-20,-20)"}},[t("path",{attrs:{d:"M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z",fill:"currentColor"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"90 50 50",to:"0 50 50",dur:"1s",repeatCount:"indefinite"}})])]),t("g",{attrs:{transform:"translate(20,20) rotate(15 50 50)"}},[t("path",{attrs:{d:"M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z",fill:"currentColor"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"90 50 50",dur:"1s",repeatCount:"indefinite"}})])])])}}),QSpinnerGrid=Vue.extend({name:"QSpinnerGrid",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",fill:"currentColor",width:this.cSize,height:this.cSize,viewBox:"0 0 105 105",xmlns:"http://www.w3.org/2000/svg"}},[t("circle",{attrs:{cx:"12.5",cy:"12.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"12.5",cy:"52.5",r:"12.5","fill-opacity":".5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"52.5",cy:"12.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"52.5",cy:"52.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"92.5",cy:"12.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"92.5",cy:"52.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"12.5",cy:"92.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"52.5",cy:"92.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"92.5",cy:"92.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})])])}}),QSpinnerHearts=Vue.extend({name:"QSpinnerHearts",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",fill:"currentColor",width:this.cSize,height:this.cSize,viewBox:"0 0 140 64",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M30.262 57.02L7.195 40.723c-5.84-3.976-7.56-12.06-3.842-18.063 3.715-6 11.467-7.65 17.306-3.68l4.52 3.76 2.6-5.274c3.716-6.002 11.47-7.65 17.304-3.68 5.84 3.97 7.56 12.054 3.842 18.062L34.49 56.118c-.897 1.512-2.793 1.915-4.228.9z","fill-opacity":".5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"0s",dur:"1.4s",values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"}})]),t("path",{attrs:{d:"M105.512 56.12l-14.44-24.272c-3.716-6.008-1.996-14.093 3.843-18.062 5.835-3.97 13.588-2.322 17.306 3.68l2.6 5.274 4.52-3.76c5.84-3.97 13.593-2.32 17.308 3.68 3.718 6.003 1.998 14.088-3.842 18.064L109.74 57.02c-1.434 1.014-3.33.61-4.228-.9z","fill-opacity":".5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"0.7s",dur:"1.4s",values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"}})]),t("path",{attrs:{d:"M67.408 57.834l-23.01-24.98c-5.864-6.15-5.864-16.108 0-22.248 5.86-6.14 15.37-6.14 21.234 0L70 16.168l4.368-5.562c5.863-6.14 15.375-6.14 21.235 0 5.863 6.14 5.863 16.098 0 22.247l-23.007 24.98c-1.43 1.556-3.757 1.556-5.188 0z"}})])}}),QSpinnerHourglass=Vue.extend({name:"QSpinnerHourglass",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"}},[t("g",[t("path",{staticClass:"glass",attrs:{fill:"none",stroke:"currentColor","stroke-width":"5","stroke-miterlimit":"10",d:"M58.4,51.7c-0.9-0.9-1.4-2-1.4-2.3s0.5-0.4,1.4-1.4 C70.8,43.8,79.8,30.5,80,15.5H70H30H20c0.2,15,9.2,28.1,21.6,32.3c0.9,0.9,1.4,1.2,1.4,1.5s-0.5,1.6-1.4,2.5 C29.2,56.1,20.2,69.5,20,85.5h10h40h10C79.8,69.5,70.8,55.9,58.4,51.7z"}}),t("clipPath",{attrs:{id:"uil-hourglass-clip1"}},[t("rect",{staticClass:"clip",attrs:{x:"15",y:"20",width:"70",height:"25"}},[t("animate",{attrs:{attributeName:"height",from:"25",to:"0",dur:"1s",repeatCount:"indefinite",values:"25;0;0",keyTimes:"0;0.5;1"}}),t("animate",{attrs:{attributeName:"y",from:"20",to:"45",dur:"1s",repeatCount:"indefinite",values:"20;45;45",keyTimes:"0;0.5;1"}})])]),t("clipPath",{attrs:{id:"uil-hourglass-clip2"}},[t("rect",{staticClass:"clip",attrs:{x:"15",y:"55",width:"70",height:"25"}},[t("animate",{attrs:{attributeName:"height",from:"0",to:"25",dur:"1s",repeatCount:"indefinite",values:"0;25;25",keyTimes:"0;0.5;1"}}),t("animate",{attrs:{attributeName:"y",from:"80",to:"55",dur:"1s",repeatCount:"indefinite",values:"80;55;55",keyTimes:"0;0.5;1"}})])]),t("path",{staticClass:"sand",attrs:{d:"M29,23c3.1,11.4,11.3,19.5,21,19.5S67.9,34.4,71,23H29z","clip-path":"url(#uil-hourglass-clip1)",fill:"currentColor"}}),t("path",{staticClass:"sand",attrs:{d:"M71.6,78c-3-11.6-11.5-20-21.5-20s-18.5,8.4-21.5,20H71.6z","clip-path":"url(#uil-hourglass-clip2)",fill:"currentColor"}}),t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"180 50 50",repeatCount:"indefinite",dur:"1s",values:"0 50 50;0 50 50;180 50 50",keyTimes:"0;0.7;1"}})])])}}),QSpinnerInfinity=Vue.extend({name:"QSpinnerInfinity",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[t("path",{attrs:{d:"M24.3,30C11.4,30,5,43.3,5,50s6.4,20,19.3,20c19.3,0,32.1-40,51.4-40C88.6,30,95,43.3,95,50s-6.4,20-19.3,20C56.4,70,43.6,30,24.3,30z",fill:"none",stroke:"currentColor","stroke-width":"8","stroke-dasharray":"10.691205342610678 10.691205342610678","stroke-dashoffset":"0"}},[t("animate",{attrs:{attributeName:"stroke-dashoffset",from:"0",to:"21.382410685221355",begin:"0",dur:"2s",repeatCount:"indefinite",fill:"freeze"}})])])}}),QSpinnerIos=Vue.extend({name:"QSpinnerIos",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,stroke:"currentColor",fill:"currentColor",viewBox:"0 0 64 64"}},[t("g",{attrs:{"stroke-width":"4","stroke-linecap":"round"}},[t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(180)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:"1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(210)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:"0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(240)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".1;0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(270)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".15;.1;0;1;.85;.7;.65;.55;.45;.35;.25;.15",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(300)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".25;.15;.1;0;1;.85;.7;.65;.55;.45;.35;.25",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(330)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".35;.25;.15;.1;0;1;.85;.7;.65;.55;.45;.35",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(0)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".45;.35;.25;.15;.1;0;1;.85;.7;.65;.55;.45",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(30)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".55;.45;.35;.25;.15;.1;0;1;.85;.7;.65;.55",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(60)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".65;.55;.45;.35;.25;.15;.1;0;1;.85;.7;.65",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(90)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".7;.65;.55;.45;.35;.25;.15;.1;0;1;.85;.7",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(120)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".85;.7;.65;.55;.45;.35;.25;.15;.1;0;1;.85",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(150)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:"1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1",repeatCount:"indefinite"}})])])])}}),QSpinnerOrbit=Vue.extend({name:"QSpinnerOrbit",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"44",fill:"none","stroke-width":"4","stroke-opacity":".5",stroke:"currentColor"}}),t("circle",{attrs:{cx:"8",cy:"54",r:"6",fill:"currentColor","stroke-width":"3",stroke:"currentColor"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 48",to:"360 50 52",dur:"2s",repeatCount:"indefinite"}})])])}}),QSpinnerOval=Vue.extend({name:"QSpinnerOval",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",stroke:"currentColor",width:this.cSize,height:this.cSize,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{transform:"translate(1 1)","stroke-width":"2",fill:"none","fill-rule":"evenodd"}},[t("circle",{attrs:{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}}),t("path",{attrs:{d:"M36 18c0-9.94-8.06-18-18-18"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}})])])])}}),QSpinnerPie=Vue.extend({name:"QSpinnerPie",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M0 50A50 50 0 0 1 50 0L50 50L0 50",fill:"currentColor",opacity:"0.5"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"0.8s",repeatCount:"indefinite"}})]),t("path",{attrs:{d:"M50 0A50 50 0 0 1 100 50L50 50L50 0",fill:"currentColor",opacity:"0.5"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"1.6s",repeatCount:"indefinite"}})]),t("path",{attrs:{d:"M100 50A50 50 0 0 1 50 100L50 50L100 50",fill:"currentColor",opacity:"0.5"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"2.4s",repeatCount:"indefinite"}})]),t("path",{attrs:{d:"M50 100A50 50 0 0 1 0 50L50 50L50 100",fill:"currentColor",opacity:"0.5"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"3.2s",repeatCount:"indefinite"}})])])}}),QSpinnerPuff=Vue.extend({name:"QSpinnerPuff",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",stroke:"currentColor",width:this.cSize,height:this.cSize,viewBox:"0 0 44 44",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{fill:"none","fill-rule":"evenodd","stroke-width":"2"}},[t("circle",{attrs:{cx:"22",cy:"22",r:"1"}},[t("animate",{attrs:{attributeName:"r",begin:"0s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke-opacity",begin:"0s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"22",cy:"22",r:"1"}},[t("animate",{attrs:{attributeName:"r",begin:"-0.9s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke-opacity",begin:"-0.9s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"}})])])])}}),QSpinnerRadio=Vue.extend({name:"QSpinnerRadio",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{transform:"scale(0.55)"}},[t("circle",{attrs:{cx:"30",cy:"150",r:"30",fill:"currentColor"}},[t("animate",{attrs:{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"}})]),t("path",{attrs:{d:"M90,150h30c0-49.7-40.3-90-90-90v30C63.1,90,90,116.9,90,150z",fill:"currentColor"}},[t("animate",{attrs:{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0.1",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"}})]),t("path",{attrs:{d:"M150,150h30C180,67.2,112.8,0,30,0v30C96.3,30,150,83.7,150,150z",fill:"currentColor"}},[t("animate",{attrs:{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0.2",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"}})])])])}}),QSpinnerRings=Vue.extend({name:"QSpinnerRings",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",stroke:"currentColor",width:this.cSize,height:this.cSize,viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(1 1)","stroke-width":"2"}},[t("circle",{attrs:{cx:"22",cy:"22",r:"6"}},[t("animate",{attrs:{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"22",cy:"22",r:"6"}},[t("animate",{attrs:{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"22",cy:"22",r:"8"}},[t("animate",{attrs:{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"}})])])])}}),QSpinnerTail=Vue.extend({name:"QSpinnerTail",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"}},[t("defs",[t("linearGradient",{attrs:{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"}},[t("stop",{attrs:{"stop-color":"currentColor","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"currentColor","stop-opacity":".631",offset:"63.146%"}}),t("stop",{attrs:{"stop-color":"currentColor",offset:"100%"}})])]),t("g",{attrs:{transform:"translate(1 1)",fill:"none","fill-rule":"evenodd"}},[t("path",{attrs:{d:"M36 18c0-9.94-8.06-18-18-18",stroke:"url(#a)","stroke-width":"2"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}})]),t("circle",{attrs:{fill:"currentColor",cx:"36",cy:"18",r:"1"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}})])])])}}),QSplitter=Vue.extend({name:"QSplitter",mixins:[DarkMixin,ListenersMixin],directives:{TouchPan:TouchPan},props:{value:{type:Number,required:!0},reverse:Boolean,unit:{type:String,default:"%",validator:t=>["%","px"].includes(t)},limits:{type:Array,validator:t=>2===t.length&&("number"==typeof t[0]&&"number"==typeof t[1]&&(t[0]>=0&&t[0]<=t[1]))},emitImmediately:Boolean,horizontal:Boolean,disable:Boolean,beforeClass:[Array,String,Object],afterClass:[Array,String,Object],separatorClass:[Array,String,Object],separatorStyle:[Array,String,Object]},watch:{value:{immediate:!0,handler(t){this.__normalize(t,this.computedLimits)}},limits:{deep:!0,handler(){this.$nextTick(()=>{this.__normalize(this.value,this.computedLimits)})}}},computed:{classes(){return(!0===this.horizontal?"column":"row")+` q-splitter--${!0===this.horizontal?"horizontal":"vertical"}`+` q-splitter--${!0===this.disable?"disabled":"workable"}`+(!0===this.isDark?" q-splitter--dark":"")},prop(){return!0===this.horizontal?"height":"width"},side(){return!0!==this.reverse?"before":"after"},computedLimits(){return void 0!==this.limits?this.limits:"%"===this.unit?[10,90]:[50,1/0]},styles(){return{[this.side]:{[this.prop]:this.__getCSSValue(this.value)}}},separatorDirectives(){if(!0!==this.disable)return[{name:"touch-pan",value:this.__pan,modifiers:{[!0===this.horizontal?"vertical":"horizontal"]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}}]}},methods:{__pan(t){if(!0===t.isFirst){const t=this.$el.getBoundingClientRect()[this.prop];return this.__dir=!0===this.horizontal?"up":"left",this.__maxValue="%"===this.unit?100:t,this.__value=Math.min(this.__maxValue,this.computedLimits[1],Math.max(this.computedLimits[0],this.value)),this.__multiplier=(!0!==this.reverse?1:-1)*(!0===this.horizontal?1:!0===this.$q.lang.rtl?-1:1)*("%"===this.unit?0===t?0:100/t:1),void this.$el.classList.add("q-splitter--active")}if(!0===t.isFinal)return this.__normalized!==this.value&&this.$emit("input",this.__normalized),void this.$el.classList.remove("q-splitter--active");const e=this.__value+this.__multiplier*(t.direction===this.__dir?-1:1)*t.distance[!0===this.horizontal?"y":"x"];this.__normalized=Math.min(this.__maxValue,this.computedLimits[1],Math.max(this.computedLimits[0],e)),this.$refs[this.side].style[this.prop]=this.__getCSSValue(this.__normalized),!0===this.emitImmediately&&this.value!==this.__normalized&&this.$emit("input",this.__normalized)},__normalize(t,e){t<e[0]?this.$emit("input",e[0]):t>e[1]&&this.$emit("input",e[1])},__getCSSValue(t){return("%"===this.unit?t:Math.round(t))+this.unit}},render(t){const e=!0===this.disable?{"aria-disabled":"true"}:void 0,i=[t("div",{ref:"before",staticClass:"q-splitter__panel q-splitter__before"+(!0===this.reverse?" col":""),style:this.styles.before,class:this.beforeClass,on:cache(this,"stop",{input:stop})},slot(this,"before")),t("div",{staticClass:"q-splitter__separator",style:this.separatorStyle,class:this.separatorClass,attrs:e},[t("div",{staticClass:"absolute-full q-splitter__separator-area",directives:this.separatorDirectives},slot(this,"separator"))]),t("div",{ref:"after",staticClass:"q-splitter__panel q-splitter__after"+(!0===this.reverse?"":" col"),style:this.styles.after,class:this.afterClass,on:cache(this,"stop",{input:stop})},slot(this,"after"))];return t("div",{staticClass:"q-splitter no-wrap",class:this.classes,on:{...this.qListeners}},mergeSlot(i,this,"default"))}}),StepHeader=Vue.extend({name:"StepHeader",mixins:[AttrsMixin],directives:{Ripple:Ripple},props:{stepper:{},step:{}},computed:{isActive(){return this.stepper.value===this.step.name},isDisable(){const t=this.step.disable;return!0===t||""===t},isError(){const t=this.step.error;return!0===t||""===t},isDone(){const t=this.step.done;return!1===this.isDisable&&(!0===t||""===t)},headerNav(){const t=this.step.headerNav,e=!0===t||""===t||void 0===t;return!1===this.isDisable&&this.stepper.headerNav&&e},hasPrefix(){return this.step.prefix&&(!1===this.isActive||"none"===this.stepper.activeIcon)&&(!1===this.isError||"none"===this.stepper.errorIcon)&&(!1===this.isDone||"none"===this.stepper.doneIcon)},icon(){const t=this.step.icon||this.stepper.inactiveIcon;if(!0===this.isActive){const e=this.step.activeIcon||this.stepper.activeIcon;return"none"===e?t:e||this.$q.iconSet.stepper.active}if(!0===this.isError){const e=this.step.errorIcon||this.stepper.errorIcon;return"none"===e?t:e||this.$q.iconSet.stepper.error}if(!1===this.isDisable&&!0===this.isDone){const e=this.step.doneIcon||this.stepper.doneIcon;return"none"===e?t:e||this.$q.iconSet.stepper.done}return t},color(){const t=!0===this.isError?this.step.errorColor||this.stepper.errorColor:void 0;if(!0===this.isActive){const e=this.step.activeColor||this.stepper.activeColor||this.step.color;return void 0!==e?e:t}return void 0!==t?t:!1===this.isDisable&&!0===this.isDone?this.step.doneColor||this.stepper.doneColor||this.step.color||this.stepper.inactiveColor:this.step.color||this.stepper.inactiveColor},classes(){return"q-stepper__tab col-grow flex items-center no-wrap relative-position"+(void 0!==this.color?` text-${this.color}`:"")+(!0===this.isError?" q-stepper__tab--error q-stepper__tab--error-with-"+(!0===this.hasPrefix?"prefix":"icon"):"")+(!0===this.isActive?" q-stepper__tab--active":"")+(!0===this.isDone?" q-stepper__tab--done":"")+(!0===this.headerNav?" q-stepper__tab--navigation q-focusable q-hoverable":"")+(!0===this.isDisable?" q-stepper__tab--disabled":"")}},methods:{activate(){void 0!==this.$refs.blurTarget&&this.$refs.blurTarget.focus(),!1===this.isActive&&this.stepper.goTo(this.step.name)},keyup(t){13===t.keyCode&&!1===this.isActive&&this.stepper.goTo(this.step.name)}},render(t){const e={class:this.classes};!0===this.stepper.headerNav&&(e.directives=[{name:"ripple",value:this.headerNav}]),!0===this.headerNav&&Object.assign(e,{on:cache(this,"headnavon",{click:this.activate,keyup:this.keyup}),attrs:!0===this.isDisable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:this.qAttrs.tabindex||0}});const i=[t("div",{staticClass:"q-focus-helper",attrs:{tabindex:-1},ref:"blurTarget"}),t("div",{staticClass:"q-stepper__dot row flex-center q-stepper__line relative-position"},[t("span",{staticClass:"row flex-center"},[!0===this.hasPrefix?this.step.prefix:t(QIcon,{props:{name:this.icon}})])])];if(void 0!==this.step.title&&null!==this.step.title){const e=[t("div",{staticClass:"q-stepper__title"},[this.step.title])];void 0!==this.step.caption&&null!==this.step.caption&&e.push(t("div",{staticClass:"q-stepper__caption"},[this.step.caption])),i.push(t("div",{staticClass:"q-stepper__label q-stepper__line relative-position"},e))}return t("div",e,i)}});const attrs$4={role:"tabpanel"},StepWrapper=Vue.extend({name:"QStepWrapper",render(t){return t("div",{staticClass:"q-stepper__step-content"},[t("div",{staticClass:"q-stepper__step-inner"},slot(this,"default"))])}});var QStep=Vue.extend({name:"QStep",inject:{stepper:{default(){console.error("QStep needs to be child of QStepper")}}},mixins:[PanelChildMixin],props:{icon:String,color:String,title:{type:String,required:!0},caption:String,prefix:[String,Number],doneIcon:String,doneColor:String,activeIcon:String,activeColor:String,errorIcon:String,errorColor:String,headerNav:{type:Boolean,default:!0},done:Boolean,error:Boolean},computed:{isActive(){return this.stepper.value===this.name},onEvents(){return!0!==this.isActive||!0!==this.stepper.vertical||!0!==this.$q.platform.is.ios&&!0===this.$q.platform.is.chrome?{...this.qListeners}:{...this.qListeners,scroll:this.__keepScroll}}},methods:{__keepScroll(t){const{target:e}=t;e.scrollTop>0&&(e.scrollTop=0),void 0!==this.qListeners.scroll&&this.$emit("scroll",t)}},render(t){const e=this.stepper.vertical,i=!0===e&&!0===this.stepper.keepAlive?t("keep-alive",!0===this.isActive?[t(StepWrapper,{key:this.name},slot(this,"default"))]:void 0):!0!==e||!0===this.isActive?StepWrapper.options.render.call(this,t):void 0;return t("div",{staticClass:"q-stepper__step",attrs:attrs$4,on:this.onEvents},!0===e?[t(StepHeader,{props:{stepper:this.stepper,step:this}}),!0===this.stepper.animated?t(QSlideTransition,[i]):i]:[i])}}),QStepper=Vue.extend({name:"QStepper",provide(){return{stepper:this}},mixins:[DarkMixin,PanelParentMixin],props:{flat:Boolean,bordered:Boolean,alternativeLabels:Boolean,headerNav:Boolean,contracted:Boolean,headerClass:String,inactiveColor:String,inactiveIcon:String,doneIcon:String,doneColor:String,activeIcon:String,activeColor:String,errorIcon:String,errorColor:String},computed:{classes(){return`q-stepper q-stepper--${!0===this.vertical?"vertical":"horizontal"}`+(!0===this.flat||!0===this.isDark?" q-stepper--flat no-shadow":"")+(!0===this.bordered||!0===this.isDark&&!1===this.flat?" q-stepper--bordered":"")+(!0===this.isDark?" q-stepper--dark q-dark":"")},headerClasses(){return"q-stepper__header row items-stretch justify-between"+` q-stepper__header--${!0===this.alternativeLabels?"alternative":"standard"}-labels`+(!1===this.flat||!0===this.bordered?" q-stepper__header--border":"")+(!0===this.contracted?" q-stepper__header--contracted":"")+(void 0!==this.headerClass?` ${this.headerClass}`:"")}},methods:{__getContent(t){const e=slot(this,"message",[]);if(!0===this.vertical){this.__isValidPanelName(this.value)&&this.__updatePanelIndex();const i=t("div",{staticClass:"q-stepper__content",on:cache(this,"stop",{input:stop})},slot(this,"default"));return void 0===e?[i]:e.concat(i)}return[t("div",{class:this.headerClasses},this.panels.map(e=>{const i=e.componentOptions.propsData;return t(StepHeader,{key:i.name,props:{stepper:this,step:i}})}))].concat(e,t("div",{staticClass:"q-stepper__content q-panel-parent",directives:this.panelDirectives},this.__getPanelContent(t)))},__renderPanels(t){return t("div",{class:this.classes,on:{...this.qListeners}},mergeSlot(this.__getContent(t),this,"navigation"))}}}),QStepperNavigation=Vue.extend({name:"QStepperNavigation",mixins:[ListenersMixin],render(t){return t("div",{staticClass:"q-stepper__nav",on:{...this.qListeners}},slot(this,"default"))}}),Top={computed:{marginalsScope(){return{pagination:this.computedPagination,pagesNumber:this.pagesNumber,isFirstPage:this.isFirstPage,isLastPage:this.isLastPage,firstPage:this.firstPage,prevPage:this.prevPage,nextPage:this.nextPage,lastPage:this.lastPage,inFullscreen:this.inFullscreen,toggleFullscreen:this.toggleFullscreen}}},methods:{__getTopDiv(t){const e=this.$scopedSlots.top,i=this.$scopedSlots["top-left"],s=this.$scopedSlots["top-right"],o=this.$scopedSlots["top-selection"],n=!0===this.hasSelectionMode&&void 0!==o&&this.rowsSelectedNumber>0,r="q-table__top relative-position row items-center";if(void 0!==e)return t("div",{staticClass:r},[e(this.marginalsScope)]);let a;return!0===n?a=o(this.marginalsScope).slice():(a=[],void 0!==i?a.push(t("div",{staticClass:"q-table-control"},[i(this.marginalsScope)])):this.title&&a.push(t("div",{staticClass:"q-table__control"},[t("div",{staticClass:"q-table__title",class:this.titleClass},this.title)]))),void 0!==s&&(a.push(t("div",{staticClass:"q-table__separator col"})),a.push(t("div",{staticClass:"q-table__control"},[s(this.marginalsScope)]))),0!==a.length?t("div",{staticClass:r},a):void 0}}},QTh=Vue.extend({name:"QTh",mixins:[ListenersMixin],props:{props:Object,autoWidth:Boolean},render(t){const e={...this.qListeners};if(void 0===this.props)return t("th",{on:e,class:!0===this.autoWidth?"q-table--col-auto-width":null},slot(this,"default"));let i,s;const o=this.$vnode.key;if(o){if(void 0===(i=this.props.colsMap[o]))return}else i=this.props.col;if(!0===i.sortable){const e="right"===i.align?"unshift":"push";(s=uniqueSlot(this,"default",[]))[e](t(QIcon,{props:{name:this.$q.iconSet.table.arrowUp},staticClass:i.__iconClass}))}else s=slot(this,"default");const n=!0===i.sortable?{click:t=>{this.props.sort(i),this.$emit("click",t)}}:{};return t("th",{on:{...e,...n},style:i.headerStyle,class:i.__thClass+(!0===this.autoWidth?" q-table--col-auto-width":"")},s)}}),TableHeader={computed:{headerSelectedValue(){return!0===this.someRowsSelected?null:this.allRowsSelected}},methods:{__getTHead(t){const e=this.__getTHeadTR(t);return!0===this.loading&&void 0===this.$scopedSlots.loading&&e.push(t("tr",{staticClass:"q-table__progress"},[t("th",{staticClass:"relative-position",attrs:{colspan:this.computedColspan}},this.__getProgress(t))])),t("thead",e)},__getTHeadTR(t){const e=this.$scopedSlots.header,i=this.$scopedSlots["header-cell"];if(void 0!==e)return e(this.__getHeaderScope({header:!0})).slice();const s=this.computedCols.map(e=>{const s=this.$scopedSlots[`header-cell-${e.name}`],o=void 0!==s?s:i,n=this.__getHeaderScope({col:e});return void 0!==o?o(n):t(QTh,{key:e.name,props:{props:n}},e.label)});if(!0===this.singleSelection&&!0!==this.grid)s.unshift(t("th",{staticClass:"q-table--col-auto-width"},[" "]));else if(!0===this.multipleSelection){const e=this.$scopedSlots["header-selection"],i=void 0!==e?e(this.__getHeaderScope({})):[t(QCheckbox,{props:{color:this.color,value:this.headerSelectedValue,dark:this.isDark,dense:this.dense},on:cache(this,"inp",{input:this.__onMultipleSelectionSet})})];s.unshift(t("th",{staticClass:"q-table--col-auto-width"},i))}return[t("tr",{style:this.tableHeaderStyle,class:this.tableHeaderClass},s)]},__getHeaderScope(t){return Object.assign(t,{cols:this.computedCols,sort:this.sort,colsMap:this.computedColsMap,color:this.color,dark:this.isDark,dense:this.dense}),!0===this.multipleSelection&&(injectProp(t,"selected",()=>this.headerSelectedValue,this.__onMultipleSelectionSet),t.partialSelected=this.someRowsSelected,t.multipleSelect=!0),t},__onMultipleSelectionSet(t){!0===this.someRowsSelected&&(t=!1),this.__updateSelection(this.computedRows.map(this.getRowKey),this.computedRows,t)}}},TableBody={methods:{__getTBodyTR(t,e,i,s){const o=this.getRowKey(e),n=this.isRowSelected(o);if(void 0!==i)return i(this.__getBodyScope({key:o,row:e,pageIndex:s,__trClass:n?"selected":""}));const r=this.$scopedSlots["body-cell"],a=this.computedCols.map(i=>{const n=this.$scopedSlots[`body-cell-${i.name}`],a=void 0!==n?n:r;return void 0!==a?a(this.__getBodyCellScope({key:o,row:e,pageIndex:s,col:i})):t("td",{class:i.__tdClass(e),style:i.__tdStyle(e)},this.getCellValue(i,e))});if(!0===this.hasSelectionMode){const i=this.$scopedSlots["body-selection"],r=void 0!==i?i(this.__getBodySelectionScope({key:o,row:e,pageIndex:s})):[t(QCheckbox,{props:{value:n,color:this.color,dark:this.isDark,dense:this.dense},on:{input:(t,i)=>{this.__updateSelection([o],[e],t,i)}}})];a.unshift(t("td",{staticClass:"q-table--col-auto-width"},r))}const l={key:o,class:{selected:n},on:{}};return void 0!==this.qListeners["row-click"]&&(l.class["cursor-pointer"]=!0,l.on.click=(t=>{this.$emit("row-click",t,e,s)})),void 0!==this.qListeners["row-dblclick"]&&(l.class["cursor-pointer"]=!0,l.on.dblclick=(t=>{this.$emit("row-dblclick",t,e,s)})),void 0!==this.qListeners["row-contextmenu"]&&(l.class["cursor-pointer"]=!0,l.on.contextmenu=(t=>{this.$emit("row-contextmenu",t,e,s)})),t("tr",l,a)},__getTBody(t){const e=this.$scopedSlots.body,i=this.$scopedSlots["top-row"],s=this.$scopedSlots["bottom-row"];let o=this.computedRows.map((i,s)=>this.__getTBodyTR(t,i,e,s));return void 0!==i&&(o=i({cols:this.computedCols}).concat(o)),void 0!==s&&(o=o.concat(s({cols:this.computedCols}))),t("tbody",o)},__getVirtualTBodyTR(t){const e=this.$scopedSlots.body;return i=>this.__getTBodyTR(t,i.item,e,i.index)},__getBodyScope(t){return this.__injectBodyCommonScope(t),t.cols=t.cols.map(e=>injectProp({...e},"value",()=>this.getCellValue(e,t.row))),t},__getBodyCellScope(t){return this.__injectBodyCommonScope(t),injectProp(t,"value",()=>this.getCellValue(t.col,t.row))},__getBodySelectionScope(t){return this.__injectBodyCommonScope(t),t},__injectBodyCommonScope(t){Object.assign(t,{cols:this.computedCols,colsMap:this.computedColsMap,sort:this.sort,rowIndex:this.firstRowIndex+t.pageIndex,color:this.color,dark:this.isDark,dense:this.dense}),!0===this.hasSelectionMode&&injectProp(t,"selected",()=>this.isRowSelected(t.key),(e,i)=>{this.__updateSelection([t.key],[t.row],e,i)}),injectProp(t,"expand",()=>this.isRowExpanded(t.key),e=>{this.__updateExpanded(t.key,e)})},getCellValue(t,e){const i="function"==typeof t.field?t.field(e):e[t.field];return void 0!==t.format?t.format(i,e):i}}};const staticClass="q-table__bottom row items-center";var Bottom={props:{hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean},computed:{navIcon(){const t=[this.iconFirstPage||this.$q.iconSet.table.firstPage,this.iconPrevPage||this.$q.iconSet.table.prevPage,this.iconNextPage||this.$q.iconSet.table.nextPage,this.iconLastPage||this.$q.iconSet.table.lastPage];return!0===this.$q.lang.rtl?t.reverse():t}},methods:{__getBottomDiv(t){if(!0===this.hideBottom)return;if(!0===this.nothingToDisplay){if(!0===this.hideNoData)return;const e=!0===this.loading?this.loadingLabel||this.$q.lang.table.loading:this.filter?this.noResultsLabel||this.$q.lang.table.noResults:this.noDataLabel||this.$q.lang.table.noData,i=this.$scopedSlots["no-data"],s=void 0!==i?[i({message:e,icon:this.$q.iconSet.table.warning,filter:this.filter})]:[t(QIcon,{staticClass:"q-table__bottom-nodata-icon",props:{name:this.$q.iconSet.table.warning}}),e];return t("div",{staticClass:staticClass+" q-table__bottom--nodata"},s)}const e=this.$scopedSlots.bottom;if(void 0!==e)return t("div",{staticClass:staticClass},[e(this.marginalsScope)]);const i=!0!==this.hideSelectedBanner&&!0===this.hasSelectionMode&&this.rowsSelectedNumber>0?[t("div",{staticClass:"q-table__control"},[t("div",[(this.selectedRowsLabel||this.$q.lang.table.selectedRecords)(this.rowsSelectedNumber)])])]:[];return!0!==this.hidePagination?t("div",{staticClass:staticClass+" justify-end"},this.__getPaginationDiv(t,i)):i.length>0?t("div",{staticClass:staticClass},i):void 0},__getPaginationDiv(t,e){let i;const{rowsPerPage:s}=this.computedPagination,o=this.paginationLabel||this.$q.lang.table.pagination,n=this.$scopedSlots.pagination,r=this.rowsPerPageOptions.length>1;if(e.push(t("div",{staticClass:"q-table__separator col"})),!0===r&&e.push(t("div",{staticClass:"q-table__control"},[t("span",{staticClass:"q-table__bottom-item"},[this.rowsPerPageLabel||this.$q.lang.table.recordsPerPage]),t(QSelect,{staticClass:"q-table__select inline q-table__bottom-item",props:{color:this.color,value:s,options:this.computedRowsPerPageOptions,displayValue:0===s?this.$q.lang.table.allRows:s,dark:this.isDark,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0},on:cache(this,"pgSize",{input:t=>{this.setPagination({page:1,rowsPerPage:t.value})}})})])),void 0!==n)i=n(this.marginalsScope);else if(i=[t("span",0!==s?{staticClass:"q-table__bottom-item"}:{},[s?o(this.firstRowIndex+1,Math.min(this.lastRowIndex,this.computedRowsNumber),this.computedRowsNumber):o(1,this.filteredSortedRowsNumber,this.computedRowsNumber)])],0!==s&&this.pagesNumber>1){const e={color:this.color,round:!0,dense:!0,flat:!0};!0===this.dense&&(e.size="sm"),this.pagesNumber>2&&i.push(t(QBtn,{key:"pgFirst",props:{...e,icon:this.navIcon[0],disable:this.isFirstPage},on:cache(this,"pgFirst",{click:this.firstPage})})),i.push(t(QBtn,{key:"pgPrev",props:{...e,icon:this.navIcon[1],disable:this.isFirstPage},on:cache(this,"pgPrev",{click:this.prevPage})}),t(QBtn,{key:"pgNext",props:{...e,icon:this.navIcon[2],disable:this.isLastPage},on:cache(this,"pgNext",{click:this.nextPage})})),this.pagesNumber>2&&i.push(t(QBtn,{key:"pgLast",props:{...e,icon:this.navIcon[3],disable:this.isLastPage},on:cache(this,"pgLast",{click:this.lastPage})}))}return e.push(t("div",{staticClass:"q-table__control"},i)),e}}},TableGrid={methods:{__getGridHeader(t){return t("div",{staticClass:"q-table__middle"},!0===this.gridHeader?[t("table",{staticClass:"q-table"},[this.__getTHead(t)])]:!0===this.loading&&void 0===this.$scopedSlots.loading?this.__getProgress(t):void 0)},__getGridBody(t){const e=void 0!==this.$scopedSlots.item?this.$scopedSlots.item:e=>{const i=e.cols.map(e=>t("div",{staticClass:"q-table__grid-item-row"},[t("div",{staticClass:"q-table__grid-item-title"},[e.label]),t("div",{staticClass:"q-table__grid-item-value"},[e.value])]));if(!0===this.hasSelectionMode){const s=this.$scopedSlots["body-selection"],o=void 0!==s?s(e):[t(QCheckbox,{props:{value:e.selected,color:this.color,dark:this.isDark,dense:this.dense},on:{input:(t,i)=>{this.__updateSelection([e.key],[e.row],t,i)}}})];i.unshift(t("div",{staticClass:"q-table__grid-item-row"},o),t(QSeparator,{props:{dark:this.isDark}}))}const s={staticClass:"q-table__grid-item-card"+this.cardDefaultClass,class:this.cardClass,style:this.cardStyle,on:{}};return void 0===this.qListeners["row-click"]&&void 0===this.qListeners["row-dblclick"]||(s.staticClass+=" cursor-pointer"),void 0!==this.qListeners["row-click"]&&(s.on.click=(t=>{this.$emit("row-click",t,e.row,e.pageIndex)})),void 0!==this.qListeners["row-dblclick"]&&(s.on.dblclick=(t=>{this.$emit("row-dblclick",t,e.row,e.pageIndex)})),t("div",{staticClass:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3",class:!0===e.selected?"q-table__grid-item--selected":""},[t("div",s,i)])};return t("div",{staticClass:"q-table__grid-content row",class:this.cardContainerClass,style:this.cardContainerStyle},this.computedRows.map((t,i)=>e(this.__getBodyScope({key:this.getRowKey(t),row:t,pageIndex:i}))))}}};function getTableMiddle(t,e,i){return t("div",{...e,staticClass:"q-table__middle"+(void 0!==e.staticClass?" "+e.staticClass:"")},[t("table",{staticClass:"q-table"},i)])}const comps={list:QList,table:QMarkupTable};var QVirtualScroll=Vue.extend({name:"QVirtualScroll",mixins:[AttrsMixin,ListenersMixin,VirtualScroll],props:{type:{type:String,default:"list",validator:t=>["list","table","__qtable"].includes(t)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:{default:void 0}},computed:{virtualScrollLength(){return this.itemsSize>=0&&void 0!==this.itemsFn?parseInt(this.itemsSize,10):Array.isArray(this.items)?this.items.length:0},virtualScrollScope(){if(0===this.virtualScrollLength)return[];const t=(t,e)=>({index:this.virtualScrollSliceRange.from+e,item:t});return void 0===this.itemsFn?this.items.slice(this.virtualScrollSliceRange.from,this.virtualScrollSliceRange.to).map(t):this.itemsFn(this.virtualScrollSliceRange.from,this.virtualScrollSliceRange.to-this.virtualScrollSliceRange.from).map(t)},classes(){return"q-virtual-scroll q-virtual-scroll"+(!0===this.virtualScrollHorizontal?"--horizontal":"--vertical")+(void 0!==this.scrollTarget?"":" scroll")},attrs(){return void 0!==this.scrollTarget?void 0:{tabindex:0}}},watch:{virtualScrollLength(){this.__resetVirtualScroll()},scrollTarget(){this.__unconfigureScrollTarget(),this.__configureScrollTarget()}},methods:{__getVirtualScrollEl(){return this.$el},__getVirtualScrollTarget(){return this.__scrollTarget},__configureScrollTarget(){this.__scrollTarget=getScrollTarget(this.$el,this.scrollTarget),this.__scrollTarget.addEventListener("scroll",this.__onVirtualScrollEvt,listenOpts.passive)},__unconfigureScrollTarget(){void 0!==this.__scrollTarget&&(this.__scrollTarget.removeEventListener("scroll",this.__onVirtualScrollEvt,listenOpts.passive),this.__scrollTarget=void 0)}},beforeMount(){this.__resetVirtualScroll()},mounted(){this.__configureScrollTarget()},activated(){this.__configureScrollTarget()},deactivated(){this.__unconfigureScrollTarget()},beforeDestroy(){this.__unconfigureScrollTarget()},render(t){if(void 0===this.$scopedSlots.default)return void console.error("QVirtualScroll: default scoped slot is required for rendering",this);let e=this.__padVirtualScroll(t,"list"===this.type?"div":"tbody",this.virtualScrollScope.map(this.$scopedSlots.default));return void 0!==this.$scopedSlots.before&&(e=this.$scopedSlots.before().concat(e)),e=mergeSlot(e,this,"after"),"__qtable"===this.type?getTableMiddle(t,{staticClass:this.classes},e):t(comps[this.type],{class:this.classes,attrs:this.attrs,props:this.qAttrs,on:{...this.qListeners}},e)}});function sortDate(t,e){return new Date(t)-new Date(e)}var Sort={props:{sortMethod:{type:Function,default(t,e,i){const s=this.colList.find(t=>t.name===e);if(void 0===s||void 0===s.field)return t;const o=!0===i?-1:1,n="function"==typeof s.field?t=>s.field(t):t=>t[s.field];return t.sort((t,e)=>{let i=n(t),r=n(e);return null===i||void 0===i?-1*o:null===r||void 0===r?1*o:void 0!==s.sort?s.sort(i,r,t,e)*o:!0===isNumber(i)&&!0===isNumber(r)?(i-r)*o:!0===isDate(i)&&!0===isDate(r)?sortDate(i,r)*o:"boolean"==typeof i&&"boolean"==typeof r?(i-r)*o:([i,r]=[i,r].map(t=>(t+"").toLocaleString().toLowerCase()),i<r?-1*o:i===r?0:o)})}},columnSortOrder:{type:String,validator:t=>"ad"===t||"da"===t,default:"ad"}},computed:{columnToSort(){const{sortBy:t}=this.computedPagination;if(t)return this.colList.find(e=>e.name===t)||null}},methods:{sort(t){let e=this.columnSortOrder;if(!0===isObject(t))t.sortOrder&&(e=t.sortOrder),t=t.name;else{const i=this.colList.find(e=>e.name===t);void 0!==i&&i.sortOrder&&(e=i.sortOrder)}let{sortBy:i,descending:s}=this.computedPagination;i!==t?(i=t,s="da"===e):!0===this.binaryStateSort?s=!s:!0===s?"ad"===e?i=null:s=!1:"ad"===e?s=!0:i=null,this.setPagination({sortBy:i,descending:s,page:1})}}},Filter={props:{filter:[String,Object],filterMethod:{type:Function,default(t,e,i=this.computedCols,s=this.getCellValue){const o=e?e.toLowerCase():"";return t.filter(t=>i.some(e=>{const i=s(e,t)+"";return-1!==("undefined"===i||"null"===i?"":i.toLowerCase()).indexOf(o)}))}}},watch:{filter:{handler(){this.$nextTick(()=>{this.setPagination({page:1},!0)})},deep:!0}}};function samePagination(t,e){for(const i in e)if(e[i]!==t[i])return!1;return!0}function fixPagination(t){return t.page<1&&(t.page=1),void 0!==t.rowsPerPage&&t.rowsPerPage<1&&(t.rowsPerPage=0),t}var Pagination={props:{pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]}},computed:{computedPagination(){return fixPagination(void 0!==this.qListeners["update:pagination"]?{...this.innerPagination,...this.pagination}:this.innerPagination)},firstRowIndex(){const{page:t,rowsPerPage:e}=this.computedPagination;return(t-1)*e},lastRowIndex(){const{page:t,rowsPerPage:e}=this.computedPagination;return t*e},isFirstPage(){return 1===this.computedPagination.page},pagesNumber(){return 0===this.computedPagination.rowsPerPage?1:Math.max(1,Math.ceil(this.computedRowsNumber/this.computedPagination.rowsPerPage))},isLastPage(){return 0===this.lastRowIndex||this.computedPagination.page>=this.pagesNumber},computedRowsPerPageOptions(){return(this.rowsPerPageOptions.includes(this.innerPagination.rowsPerPage)?this.rowsPerPageOptions:[this.innerPagination.rowsPerPage].concat(this.rowsPerPageOptions)).map(t=>({label:0===t?this.$q.lang.table.allRows:""+t,value:t}))}},watch:{pagesNumber(t,e){if(t===e)return;const i=this.computedPagination.page;t&&!i?this.setPagination({page:1}):t<i&&this.setPagination({page:t})}},methods:{__sendServerRequest(t){this.requestServerInteraction({pagination:t,filter:this.filter})},setPagination(t,e){const i=fixPagination({...this.computedPagination,...t});samePagination(this.computedPagination,i)?!0===this.isServerSide&&!0===e&&this.__sendServerRequest(i):!0!==this.isServerSide?void 0!==this.pagination&&void 0!==this.qListeners["update:pagination"]?this.$emit("update:pagination",i):this.innerPagination=i:this.__sendServerRequest(i)},firstPage(){this.setPagination({page:1})},prevPage(){const{page:t}=this.computedPagination;t>1&&this.setPagination({page:t-1})},nextPage(){const{page:t,rowsPerPage:e}=this.computedPagination;this.lastRowIndex>0&&t*e<this.computedRowsNumber&&this.setPagination({page:t+1})},lastPage(){this.setPagination({page:this.pagesNumber})}},created(){void 0!==this.qListeners["update:pagination"]&&this.$emit("update:pagination",{...this.computedPagination})}},RowSelection={props:{selection:{type:String,default:"none",validator:t=>["single","multiple","none"].includes(t)},selected:{type:Array,default:()=>[]}},computed:{selectedKeys(){const t={};return this.selected.map(this.getRowKey).forEach(e=>{t[e]=!0}),t},hasSelectionMode(){return"none"!==this.selection},singleSelection(){return"single"===this.selection},multipleSelection(){return"multiple"===this.selection},allRowsSelected(){return this.computedRows.length>0&&this.computedRows.every(t=>!0===this.selectedKeys[this.getRowKey(t)])},someRowsSelected(){return!0!==this.allRowsSelected&&this.computedRows.some(t=>!0===this.selectedKeys[this.getRowKey(t)])},rowsSelectedNumber(){return this.selected.length}},methods:{isRowSelected(t){return!0===this.selectedKeys[t]},clearSelection(){this.$emit("update:selected",[])},__updateSelection(t,e,i,s){this.$emit("selection",{rows:e,added:i,keys:t,evt:s});const o=!0===this.singleSelection?!0===i?e:[]:!0===i?this.selected.concat(e):this.selected.filter(e=>!1===t.includes(this.getRowKey(e)));this.$emit("update:selected",o)}}};function getVal(t){return Array.isArray(t)?t.slice():[]}var RowExpand={props:{expanded:Array},data(){return{innerExpanded:getVal(this.expanded)}},watch:{expanded(t){this.innerExpanded=getVal(t)}},methods:{isRowExpanded(t){return this.innerExpanded.includes(t)},setExpanded(t){void 0!==this.expanded?this.$emit("update:expanded",t):this.innerExpanded=t},__updateExpanded(t,e){const i=this.innerExpanded.slice(),s=i.indexOf(t);!0===e?-1===s&&(i.push(t),this.setExpanded(i)):-1!==s&&(i.splice(s,1),this.setExpanded(i))}}},ColumnSelection={props:{visibleColumns:Array},computed:{colList(){if(void 0!==this.columns)return this.columns;const t=this.data[0];return void 0!==t?Object.keys(t).map(e=>({name:e,label:e.toUpperCase(),field:e,align:isNumber(t[e])?"right":"left",sortable:!0})):[]},computedCols(){const{sortBy:t,descending:e}=this.computedPagination;return(void 0!==this.visibleColumns?this.colList.filter(t=>!0===t.required||!0===this.visibleColumns.includes(t.name)):this.colList).map(i=>{const s=i.align||"right",o=`text-${s}`;return{...i,align:s,__iconClass:`q-table__sort-icon q-table__sort-icon--${s}`,__thClass:o+(void 0!==i.headerClasses?" "+i.headerClasses:"")+(!0===i.sortable?" sortable":"")+(i.name===t?` sorted ${!0===e?"sort-desc":""}`:""),__tdStyle:void 0!==i.style?"function"!=typeof i.style?()=>i.style:i.style:()=>null,__tdClass:void 0!==i.classes?"function"!=typeof i.classes?()=>o+" "+i.classes:t=>o+" "+i.classes(t):()=>o}})},computedColsMap(){const t={};return this.computedCols.forEach(e=>{t[e.name]=e}),t},computedColspan(){return void 0!==this.tableColspan?this.tableColspan:this.computedCols.length+(!0===this.hasSelectionMode?1:0)}}};const commonVirtPropsObj={};commonVirtPropsList.forEach(t=>{commonVirtPropsObj[t]={}});var QTable=Vue.extend({name:"QTable",mixins:[DarkMixin,ListenersMixin,FullscreenMixin,Top,TableHeader,TableBody,Bottom,TableGrid,Sort,Filter,Pagination,RowSelection,RowExpand,ColumnSelection],props:{data:{type:Array,default:()=>[]},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,binaryStateSort:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:t=>["horizontal","vertical","cell","none"].includes(t)},wrapCells:Boolean,virtualScroll:Boolean,...commonVirtPropsObj,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object]},data(){return{innerPagination:Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:this.rowsPerPageOptions.length>0?this.rowsPerPageOptions[0]:5},this.pagination)}},watch:{needsReset(){!0===this.hasVirtScroll&&void 0!==this.$refs.virtScroll&&this.$refs.virtScroll.reset()}},computed:{getRowKey(){return"function"==typeof this.rowKey?this.rowKey:t=>t[this.rowKey]},hasVirtScroll(){return!0!==this.grid&&!0===this.virtualScroll},needsReset(){return["tableStyle","tableClass","tableHeaderStyle","tableHeaderClass","__containerClass"].map(t=>this[t]).join(";")},filteredSortedRows(){let t=this.data;if(!0===this.isServerSide||0===t.length)return t;const{sortBy:e,descending:i}=this.computedPagination;return this.filter&&(t=this.filterMethod(t,this.filter,this.computedCols,this.getCellValue)),void 0!==this.columnToSort&&(t=this.sortMethod(this.data===t?t.slice():t,e,i)),t},filteredSortedRowsNumber(){return this.filteredSortedRows.length},computedRows(){let t=this.filteredSortedRows;if(!0===this.isServerSide)return t;const{rowsPerPage:e}=this.computedPagination;return 0!==e&&(0===this.firstRowIndex&&this.data!==t?t.length>this.lastRowIndex&&(t=t.slice(0,this.lastRowIndex)):t=t.slice(this.firstRowIndex,this.lastRowIndex)),t},computedRowsNumber(){return!0===this.isServerSide?this.computedPagination.rowsNumber||0:this.filteredSortedRowsNumber},nothingToDisplay(){return 0===this.computedRows.length},isServerSide(){return void 0!==this.computedPagination.rowsNumber},cardDefaultClass(){return" q-table__card"+(!0===this.isDark?" q-table__card--dark q-dark":"")+(!0===this.square?" q-table--square":"")+(!0===this.flat?" q-table--flat":"")+(!0===this.bordered?" q-table--bordered":"")},__containerClass(){return`q-table__container q-table--${this.separator}-separator column no-wrap`+(!0===this.grid?" q-table--grid":this.cardDefaultClass)+(!0===this.isDark?" q-table--dark":"")+(!0===this.dense?" q-table--dense":"")+(!1===this.wrapCells?" q-table--no-wrap":"")+(!0===this.inFullscreen?" fullscreen scroll":"")},containerClass(){return this.__containerClass+(!0===this.loading?" q-table--loading":"")},virtProps(){const t={};return commonVirtPropsList.forEach(e=>{t[e]=this[e]}),void 0===t.virtualScrollItemSize&&(t.virtualScrollItemSize=!0===this.dense?28:48),t}},render(t){const e=[this.__getTopDiv(t)],i={staticClass:this.containerClass};return!0===this.grid?e.push(this.__getGridHeader(t)):Object.assign(i,{class:this.cardClass,style:this.cardStyle}),e.push(this.__getBody(t),this.__getBottomDiv(t)),!0===this.loading&&void 0!==this.$scopedSlots.loading&&e.push(this.$scopedSlots.loading()),t("div",i,e)},methods:{requestServerInteraction(t={}){this.$nextTick(()=>{this.$emit("request",{pagination:t.pagination||this.computedPagination,filter:t.filter||this.filter,getCellValue:this.getCellValue})})},resetVirtualScroll(){!0===this.hasVirtScroll&&this.$refs.virtScroll.reset()},__getBody(t){if(!0===this.grid)return this.__getGridBody(t);const e=!0!==this.hideHeader?this.__getTHead(t):null;if(!0===this.hasVirtScroll){const i=this.$scopedSlots["top-row"],s=this.$scopedSlots["bottom-row"],o={default:this.__getVirtualTBodyTR(t)};if(void 0!==i){const s=t("tbody",i({cols:this.computedCols}));o.before=null===e?()=>[s]:()=>[e].concat(s)}else null!==e&&(o.before=(()=>e));return void 0!==s&&(o.after=(()=>t("tbody",s({cols:this.computedCols})))),t(QVirtualScroll,{ref:"virtScroll",props:{...this.virtProps,items:this.computedRows,type:"__qtable",tableColspan:this.computedColspan},on:cache(this,"vs",{"virtual-scroll":this.__onVScroll}),class:this.tableClass,style:this.tableStyle,scopedSlots:o})}return getTableMiddle(t,{staticClass:"scroll",class:this.tableClass,style:this.tableStyle},[e,this.__getTBody(t)])},scrollTo(t,e){if(void 0!==this.$refs.virtScroll)return void this.$refs.virtScroll.scrollTo(t,e);t=parseInt(t,10);const i=this.$el.querySelector(`tbody tr:nth-of-type(${t+1})`);if(null!==i){const e=this.$el.querySelector(".q-table__middle.scroll"),s=i.offsetTop-this.virtualScrollStickySizeStart,o=s<e.scrollTop?"decrease":"increase";e.scrollTop=s,this.$emit("virtual-scroll",{index:t,from:0,to:this.pagination.rowsPerPage-1,direction:o})}},__onVScroll(t){this.$emit("virtual-scroll",t)},__getProgress(t){return[t(QLinearProgress,{staticClass:"q-table__linear-progress",props:{color:this.color,dark:this.isDark,indeterminate:!0,trackColor:"transparent"}})]}}}),QTr=Vue.extend({name:"QTr",mixins:[ListenersMixin],props:{props:Object,noHover:Boolean},computed:{classes(){return"q-tr"+(void 0===this.props||!0===this.props.header?"":" "+this.props.__trClass)+(!0===this.noHover?" q-tr--no-hover":"")}},render(t){return t("tr",{on:{...this.qListeners},class:this.classes},slot(this,"default"))}}),QTd=Vue.extend({name:"QTd",mixins:[ListenersMixin],props:{props:Object,autoWidth:Boolean,noHover:Boolean},computed:{classes(){return"q-td"+(!0===this.autoWidth?" q-table--col-auto-width":"")+(!0===this.noHover?" q-td--no-hover":"")+" "}},render(t){const e=this.qListeners;if(void 0===this.props)return t("td",{on:e,class:this.classes},slot(this,"default"));const i=this.$vnode.key,s=void 0!==this.props.colsMap&&i?this.props.colsMap[i]:this.props.col;if(void 0===s)return;const o=this.props.row;return t("td",{on:e,style:s.__tdStyle(o),class:this.classes+s.__tdClass(o)},slot(this,"default"))}}),QRouteTab=Vue.extend({name:"QRouteTab",mixins:[QTab,RouterLinkMixin],watch:{routeModel(){this.$tabs.__verifyRouteModel()}},computed:{routeModel(){return`${this.name} | ${this.exact} | ${(this.resolvedLink||{}).href}`},hasRouterLinkProps(){return void 0!==this.$router&&!0!==this.hasHrefLink&&void 0!==this.to&&null!==this.to&&""!==this.to}},render(t){return this.__renderTab(t,this.linkTag)}}),QTime=Vue.extend({name:"QTime",mixins:[DateTimeMixin],directives:{TouchPan:TouchPan},props:{mask:{default:null},format24h:{type:Boolean,default:null},defaultDate:{type:String,validator:t=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(t)},options:Function,hourOptions:Array,minuteOptions:Array,secondOptions:Array,withSeconds:Boolean,nowBtn:Boolean},data(){const t=__splitDate(this.value,this.__getMask(),this.__getLocale(),this.calendar,this.__getDefaultDateModel());let e="Hour";return null!==t.hour&&(null===t.minute?e="Minute":!0===this.withSeconds&&null===t.second&&(e="Second")),{view:e,isAM:null===t.hour||t.hour<12,innerModel:t}},watch:{value(t){const e=__splitDate(t,this.computedMask,this.computedLocale,this.calendar,this.defaultDateModel);e.dateHash===this.innerModel.dateHash&&e.timeHash===this.innerModel.timeHash||(this.innerModel=e,null===e.hour?this.view="Hour":this.isAM=e.hour<12)},computedMask(){this.$nextTick(()=>{this.__updateValue()})},computedLocale(){this.$nextTick(()=>{this.__updateValue()})}},computed:{classes(){return`q-time q-time--${!0===this.landscape?"landscape":"portrait"}`+(!0===this.isDark?" q-time--dark q-dark":"")+(!0===this.disable?" disabled":!0===this.readonly?" q-time--readonly":"")+(!0===this.bordered?" q-time--bordered":"")+(!0===this.square?" q-time--square no-border-radius":"")+(!0===this.flat?" q-time--flat no-shadow":"")},stringModel(){const t=this.innerModel;return{hour:null===t.hour?"--":!0===this.computedFormat24h?pad(t.hour):String(!0===this.isAM?0===t.hour?12:t.hour:t.hour>12?t.hour-12:t.hour),minute:null===t.minute?"--":pad(t.minute),second:null===t.second?"--":pad(t.second)}},defaultDateModel(){return this.__getDefaultDateModel()},computedFormat24h(){return null!==this.format24h?this.format24h:this.$q.lang.date.format24h},pointerStyle(){const t="Hour"===this.view,e=!0===t?12:60,i=this.innerModel[this.view.toLowerCase()];let s=`rotate(${Math.round(i*(360/e))-180}deg) translateX(-50%)`;return!0===t&&!0===this.computedFormat24h&&this.innerModel.hour>=12&&(s+=" scale(.7)"),{transform:s}},minLink(){return null!==this.innerModel.hour},secLink(){return!0===this.minLink&&null!==this.innerModel.minute},hourInSelection(){return void 0!==this.hourOptions?t=>this.hourOptions.includes(t):void 0!==this.options?t=>this.options(t,null,null):void 0},minuteInSelection(){return void 0!==this.minuteOptions?t=>this.minuteOptions.includes(t):void 0!==this.options?t=>this.options(this.innerModel.hour,t,null):void 0},secondInSelection(){return void 0!==this.secondOptions?t=>this.secondOptions.includes(t):void 0!==this.options?t=>this.options(this.innerModel.hour,this.innerModel.minute,t):void 0},validHours(){if(void 0!==this.hourInSelection){const t=this.__getValidValues(0,11,this.hourInSelection),e=this.__getValidValues(12,11,this.hourInSelection);return{am:t,pm:e,values:t.values.concat(e.values)}}},validMinutes(){if(void 0!==this.minuteInSelection)return this.__getValidValues(0,59,this.minuteInSelection)},validSeconds(){if(void 0!==this.secondInSelection)return this.__getValidValues(0,59,this.secondInSelection)},viewValidOptions(){switch(this.view){case"Hour":return this.validHours;case"Minute":return this.validMinutes;case"Second":return this.validSeconds}},positions(){let t,e,i=0,s=1;const o=void 0!==this.viewValidOptions?this.viewValidOptions.values:void 0;"Hour"===this.view?!0===this.computedFormat24h?(t=0,e=23):(t=0,e=11,!1===this.isAM&&(i=12)):(t=0,e=55,s=5);const n=[];for(let r=t,a=t;r<=e;r+=s,a++){const t=r+i,e=void 0!==o&&!1===o.includes(t),s="Hour"===this.view&&0===r?!0===this.computedFormat24h?"00":"12":r;n.push({val:t,index:a,disable:e,label:s})}return n}},methods:{setNow(){const t={...this.__getCurrentDate(),...this.__getCurrentTime()};this.__updateValue(t),Object.assign(this.innerModel,t),this.view="Hour"},__getValidValues(t,e,i){const s=Array.apply(null,{length:e+1}).map((e,s)=>{const o=s+t;return{index:o,val:!0===i(o)}}).filter(t=>!0===t.val).map(t=>t.index);return{min:s[0],max:s[s.length-1],values:s,threshold:e+1}},__getWheelDist(t,e,i){const s=Math.abs(t-e);return Math.min(s,i-s)},__getNormalizedClockValue(t,{min:e,max:i,values:s,threshold:o}){if(t===e)return e;if(t<e||t>i)return this.__getWheelDist(t,e,o)<=this.__getWheelDist(t,i,o)?e:i;const n=s.findIndex(e=>t<=e),r=s[n-1],a=s[n];return t-r<=a-t?r:a},__getMask(){return"persian"!==this.calendar&&null!==this.mask?this.mask:`HH:mm${!0===this.withSeconds?":ss":""}`},__getDefaultDateModel(){if("string"!=typeof this.defaultDate){const t=this.__getCurrentDate(!0);return t.dateHash=this.__getDayHash(t),t}return __splitDate(this.defaultDate,"YYYY/MM/DD",void 0,this.calendar)},__click(t){!0!==this.__shouldAbortInteraction()&&(!0!==this.$q.platform.is.desktop&&this.__updateClock(t,this.__getClockRect()),this.__goToNextView())},__activate(t){!0!==this.__shouldAbortInteraction()&&this.__updateClock(t,this.__getClockRect())},__shouldAbortInteraction(){return!0===this._isBeingDestroyed||!0===this._isDestroyed||void 0!==this.viewValidOptions&&(0===this.viewValidOptions.values.length||"Hour"===this.view&&!0!==this.computedFormat24h&&0===this.validHours[!0===this.isAM?"am":"pm"].values.length)},__getClockRect(){const t=this.$refs.clock,{top:e,left:i,width:s}=t.getBoundingClientRect(),o=s/2;return{top:e+o,left:i+o,dist:.7*o}},__goToNextView(){"Hour"===this.view?this.view="Minute":this.withSeconds&&"Minute"===this.view&&(this.view="Second")},__drag(t){if(!0!==this.__shouldAbortInteraction()){if(!0===t.isFirst)return this.draggingClockRect=this.__getClockRect(),void(this.dragCache=this.__updateClock(t.evt,this.draggingClockRect));this.dragCache=this.__updateClock(t.evt,this.draggingClockRect,this.dragCache),!0===t.isFinal&&(this.draggingClockRect=!1,this.dragCache=null,this.__goToNextView())}},__updateClock(t,e,i){const s=position(t),o=Math.abs(s.top-e.top),n=Math.sqrt(Math.pow(Math.abs(s.top-e.top),2)+Math.pow(Math.abs(s.left-e.left),2));let r,a=Math.asin(o/n)*(180/Math.PI);if(a=s.top<e.top?e.left<s.left?90-a:270+a:e.left<s.left?a+90:270-a,"Hour"===this.view){if(r=a/30,void 0!==this.validHours){const t=!0!==this.computedFormat24h?!0===this.isAM:this.validHours.am.values.length>0&&this.validHours.pm.values.length>0?n>=e.dist:this.validHours.am.values.length>0;r=this.__getNormalizedClockValue(r+(!0===t?0:12),this.validHours[!0===t?"am":"pm"])}else r=Math.round(r),!0===this.computedFormat24h?n<e.dist?r<12&&(r+=12):12===r&&(r=0):!0===this.isAM&&12===r?r=0:!1===this.isAM&&12!==r&&(r+=12);!0===this.computedFormat24h&&(this.isAM=r<12)}else r=Math.round(a/6)%60,"Minute"===this.view&&void 0!==this.validMinutes?r=this.__getNormalizedClockValue(r,this.validMinutes):"Second"===this.view&&void 0!==this.validSeconds&&(r=this.__getNormalizedClockValue(r,this.validSeconds));return i!==r&&this[`__set${this.view}`](r),r},__onKeyupHour(t){if(13===t.keyCode)this.view="Hour";else if([37,39].includes(t.keyCode)){const e=37===t.keyCode?-1:1;if(void 0!==this.validHours){const t=!0===this.computedFormat24h?this.validHours.values:this.validHours[!0===this.isAM?"am":"pm"].values;if(0===t.length)return;if(null===this.innerModel.hour)this.__setHour(t[0]);else{const i=(t.length+t.indexOf(this.innerModel.hour)+e)%t.length;this.__setHour(t[i])}}else{const t=!0===this.computedFormat24h?24:12,i=!0!==this.computedFormat24h&&!1===this.isAM?12:0,s=null===this.innerModel.hour?-e:this.innerModel.hour;this.__setHour(i+(24+s+e)%t)}}},__onKeyupMinute(t){if(13===t.keyCode)this.view="Minute";else if([37,39].includes(t.keyCode)){const e=37===t.keyCode?-1:1;if(void 0!==this.validMinutes){const t=this.validMinutes.values;if(0===t.length)return;if(null===this.innerModel.minute)this.__setMinute(t[0]);else{const i=(t.length+t.indexOf(this.innerModel.minute)+e)%t.length;this.__setMinute(t[i])}}else{const t=null===this.innerModel.minute?-e:this.innerModel.minute;this.__setMinute((60+t+e)%60)}}},__onKeyupSecond(t){if(13===t.keyCode)this.view="Second";else if([37,39].includes(t.keyCode)){const e=37===t.keyCode?-1:1;if(void 0!==this.validSeconds){const t=this.validSeconds.values;if(0===t.length)return;if(null===this.innerModel.seconds)this.__setSecond(t[0]);else{const i=(t.length+t.indexOf(this.innerModel.second)+e)%t.length;this.__setSecond(t[i])}}else{const t=null===this.innerModel.second?-e:this.innerModel.second;this.__setSecond((60+t+e)%60)}}},__getHeader(t){const e=[t("div",{staticClass:"q-time__link",class:"Hour"===this.view?"q-time__link--active":"cursor-pointer",attrs:{tabindex:this.computedTabindex},on:cache(this,"vH",{click:()=>{this.view="Hour"},keyup:this.__onKeyupHour})},[this.stringModel.hour]),t("div",[":"]),t("div",!0===this.minLink?{staticClass:"q-time__link",class:"Minute"===this.view?"q-time__link--active":"cursor-pointer",attrs:{tabindex:this.computedTabindex},on:cache(this,"vM",{click:()=>{this.view="Minute"},keyup:this.__onKeyupMinute})}:{staticClass:"q-time__link"},[this.stringModel.minute])];return!0===this.withSeconds&&e.push(t("div",[":"]),t("div",!0===this.secLink?{staticClass:"q-time__link",class:"Second"===this.view?"q-time__link--active":"cursor-pointer",attrs:{tabindex:this.computedTabindex},on:cache(this,"vS",{click:()=>{this.view="Second"},keyup:this.__onKeyupSecond})}:{staticClass:"q-time__link"},[this.stringModel.second])),t("div",{staticClass:"q-time__header flex flex-center no-wrap",class:this.headerClass},[t("div",{staticClass:"q-time__header-label row items-center no-wrap",attrs:{dir:"ltr"}},e),!1===this.computedFormat24h?t("div",{staticClass:"q-time__header-ampm column items-between no-wrap"},[t("div",{staticClass:"q-time__link",class:!0===this.isAM?"q-time__link--active":"cursor-pointer",attrs:{tabindex:this.computedTabindex},on:cache(this,"AM",{click:this.__setAm,keyup:t=>{13===t.keyCode&&this.__setAm()}})},["AM"]),t("div",{staticClass:"q-time__link",class:!0!==this.isAM?"q-time__link--active":"cursor-pointer",attrs:{tabindex:this.computedTabindex},on:cache(this,"PM",{click:this.__setPm,keyup:t=>{13===t.keyCode&&this.__setPm()}})},["PM"])]):null])},__getClock(t){const e=this.view.toLowerCase(),i=this.innerModel[e];return t("div",{staticClass:"q-time__content col relative-position"},[t("transition",{props:{name:"q-transition--scale"}},[t("div",{key:"clock"+this.view,staticClass:"q-time__container-parent absolute-full"},[t("div",{ref:"clock",staticClass:"q-time__container-child fit overflow-hidden"},[t("div",{staticClass:"q-time__clock cursor-pointer non-selectable",on:cache(this,"click",{click:this.__click,mousedown:this.__activate}),directives:cache(this,"touch",[{name:"touch-pan",value:this.__drag,modifiers:{stop:!0,prevent:!0,mouse:!0}}])},[t("div",{staticClass:"q-time__clock-circle fit"},[t("div",{staticClass:"q-time__clock-pointer",style:this.pointerStyle,class:null===this.innerModel[e]?"hidden":void 0!==this.color?`text-${this.color}`:""}),this.positions.map(e=>t("div",{staticClass:`q-time__clock-position row flex-center q-time__clock-pos-${e.index}`,class:e.val===i?this.headerClass.concat(" q-time__clock-position--active"):!0===e.disable?"q-time__clock-position--disable":null},[t("span",[e.label])]))])])])])]),!0===this.nowBtn?t(QBtn,{staticClass:"q-time__now-button absolute",props:{icon:this.$q.iconSet.datetime.now,unelevated:!0,size:"sm",round:!0,color:this.color,textColor:this.textColor,tabindex:this.computedTabindex},on:cache(this,"now",{click:this.setNow})}):null])},__setHour(t){this.innerModel.hour!==t&&(this.innerModel.hour=t,this.innerModel.minute=null,this.innerModel.second=null)},__setMinute(t){this.innerModel.minute!==t&&(this.innerModel.minute=t,this.innerModel.second=null,!0!==this.withSeconds&&this.__updateValue({minute:t}))},__setSecond(t){this.innerModel.second!==t&&this.__updateValue({second:t})},__setAm(){!1===this.isAM&&(this.isAM=!0,null!==this.innerModel.hour&&(this.innerModel.hour-=12,this.__verifyAndUpdate()))},__setPm(){!0===this.isAM&&(this.isAM=!1,null!==this.innerModel.hour&&(this.innerModel.hour+=12,this.__verifyAndUpdate()))},__verifyAndUpdate(){return void 0!==this.hourInSelection&&!0!==this.hourInSelection(this.innerModel.hour)?(this.innerModel=__splitDate(),void(this.view="Hour")):void 0!==this.minuteInSelection&&!0!==this.minuteInSelection(this.innerModel.minute)?(this.innerModel.minute=null,this.innerModel.second=null,void(this.view="Minute")):!0===this.withSeconds&&void 0!==this.secondInSelection&&!0!==this.secondInSelection(this.innerModel.second)?(this.innerModel.second=null,void(this.view="Second")):void(null===this.innerModel.hour||null===this.innerModel.minute||!0===this.withSeconds&&null===this.innerModel.second||this.__updateValue())},__updateValue(t){const e=Object.assign({...this.innerModel},t),i="persian"===this.calendar?pad(e.hour)+":"+pad(e.minute)+(!0===this.withSeconds?":"+pad(e.second):""):formatDate(new Date(e.year,null===e.month?null:e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond),this.computedMask,this.computedLocale,e.year,e.timezoneOffset);e.changed=i!==this.value,this.$emit("input",i,e)}},render(t){const e=[this.__getClock(t)],i=slot(this,"default");return void 0!==i&&e.push(t("div",{staticClass:"q-time__actions"},i)),void 0!==this.name&&!0!==this.disable&&this.__injectFormInput(e,"push"),t("div",{class:this.classes,on:{...this.qListeners},attrs:{tabindex:-1}},[this.__getHeader(t),t("div",{staticClass:"q-time__main col overflow-auto"},e)])}}),QTimeline=Vue.extend({name:"QTimeline",mixins:[DarkMixin,ListenersMixin],provide(){return{__timeline:this}},props:{color:{type:String,default:"primary"},side:{type:String,default:"right",validator:t=>["left","right"].includes(t)},layout:{type:String,default:"dense",validator:t=>["dense","comfortable","loose"].includes(t)}},computed:{classes(){return`q-timeline--${this.layout} q-timeline--${this.layout}--${this.side}`+(!0===this.isDark?" q-timeline--dark":"")}},render(t){return t("ul",{staticClass:"q-timeline",class:this.classes,on:{...this.qListeners}},slot(this,"default"))}}),QTimelineEntry=Vue.extend({name:"QTimelineEntry",inject:{__timeline:{default(){console.error("QTimelineEntry needs to be child of QTimeline")}}},mixins:[ListenersMixin],props:{heading:Boolean,tag:{type:String,default:"h3"},side:{type:String,default:"right",validator:t=>["left","right"].includes(t)},icon:String,avatar:String,color:String,title:String,subtitle:String,body:String},computed:{colorClass(){return`text-${this.color||this.__timeline.color}`},classes(){return`q-timeline__entry--${this.side}`+(void 0!==this.icon||void 0!==this.avatar?" q-timeline__entry--icon":"")},reverse(){return"comfortable"===this.__timeline.layout&&"left"===this.__timeline.side}},render(t){const e=uniqueSlot(this,"default",[]);if(void 0!==this.body&&e.unshift(this.body),!0===this.heading){const i=[t("div"),t("div"),t(this.tag,{staticClass:"q-timeline__heading-title"},e)];return t("div",{staticClass:"q-timeline__heading",on:{...this.qListeners}},!0===this.reverse?i.reverse():i)}let i;void 0!==this.icon?i=[t(QIcon,{staticClass:"row items-center justify-center",props:{name:this.icon}})]:void 0!==this.avatar&&(i=[t("img",{staticClass:"q-timeline__dot-img",domProps:{src:this.avatar}})]);const s=[t("div",{staticClass:"q-timeline__subtitle"},[t("span",slot(this,"subtitle",[this.subtitle]))]),t("div",{staticClass:"q-timeline__dot",class:this.colorClass},i),t("div",{staticClass:"q-timeline__content"},[t("h6",{staticClass:"q-timeline__title"},slot(this,"title",[this.title]))].concat(e))];return t("li",{staticClass:"q-timeline__entry",class:this.classes,on:{...this.qListeners}},!0===this.reverse?s.reverse():s)}});const attrs$5={role:"toolbar"};var QToolbar=Vue.extend({name:"QToolbar",mixins:[ListenersMixin],props:{inset:Boolean},render(t){return t("div",{staticClass:"q-toolbar row no-wrap items-center",class:this.inset?"q-toolbar--inset":null,attrs:attrs$5,on:{...this.qListeners}},slot(this,"default"))}}),QToolbarTitle=Vue.extend({name:"QToolbarTitle",mixins:[ListenersMixin],props:{shrink:Boolean},computed:{classes(){return"q-toolbar__title ellipsis"+(!0===this.shrink?" col-shrink":"")}},render(t){return t("div",{class:this.classes,on:{...this.qListeners}},slot(this,"default"))}});const tickStrategyOptions=["none","strict","leaf","leaf-filtered"];var QTree=Vue.extend({name:"QTree",mixins:[DarkMixin],props:{nodes:{type:Array,required:!0},nodeKey:{type:String,required:!0},labelKey:{type:String,default:"label"},childrenKey:{type:String,default:"children"},dense:Boolean,color:String,controlColor:String,textColor:String,selectedColor:String,icon:String,tickStrategy:{type:String,default:"none",validator:t=>tickStrategyOptions.includes(t)},ticked:Array,expanded:Array,selected:{},noSelectionUnset:Boolean,defaultExpandAll:Boolean,accordion:Boolean,filter:String,filterMethod:{type:Function,default(t,e){const i=e.toLowerCase();return t[this.labelKey]&&t[this.labelKey].toLowerCase().indexOf(i)>-1}},duration:Number,noConnectors:Boolean,noTransition:Boolean,noNodesLabel:String,noResultsLabel:String},computed:{classes(){return`q-tree q-tree--${!0===this.dense?"dense":"standard"}`+(!0===this.noConnectors?" q-tree--no-connectors":"")+(!0===this.isDark?" q-tree--dark":"")+(void 0!==this.color?` text-${this.color}`:"")},hasSelection(){return void 0!==this.selected},computedIcon(){return this.icon||this.$q.iconSet.tree.icon},computedControlColor(){return this.controlColor||this.color},textColorClass(){if(void 0!==this.textColor)return`text-${this.textColor}`},selectedColorClass(){const t=this.selectedColor||this.color;if(t)return`text-${t}`},meta(){const t={},e=(i,s)=>{const o=i.tickStrategy||(s?s.tickStrategy:this.tickStrategy),n=i[this.nodeKey],r=i[this.childrenKey]&&i[this.childrenKey].length>0,a=!0!==i.disabled&&!0===this.hasSelection&&!1!==i.selectable,l=!0!==i.disabled&&!1!==i.expandable,h="none"!==o,d="strict"===o,c="leaf-filtered"===o,u="leaf"===o||"leaf-filtered"===o;let p=!0!==i.disabled&&!1!==i.tickable;!0===u&&!0===p&&s&&!0!==s.tickable&&(p=!1);let m=i.lazy;!0===m&&void 0!==this.lazy[n]&&!0===Array.isArray(i[this.childrenKey])&&(m=this.lazy[n]);const g={key:n,parent:s,isParent:r,lazy:m,disabled:i.disabled,link:!0!==i.disabled&&(!0===a||!0===l&&(!0===r||!0===m)),children:[],matchesFilter:!this.filter||this.filterMethod(i,this.filter),selected:n===this.selected&&!0===a,selectable:a,expanded:!0===r&&this.innerExpanded.includes(n),expandable:l,noTick:!0===i.noTick||!0!==d&&m&&"loaded"!==m,tickable:p,tickStrategy:o,hasTicking:h,strictTicking:d,leafFilteredTicking:c,leafTicking:u,ticked:!0===d?this.innerTicked.includes(n):!0!==r&&this.innerTicked.includes(n)};if(t[n]=g,!0===r&&(g.children=i[this.childrenKey].map(t=>e(t,g)),this.filter&&(!0!==g.matchesFilter?g.matchesFilter=g.children.some(t=>t.matchesFilter):!0!==g.noTick&&!0!==g.disabled&&!0===g.tickable&&!0===c&&!0===g.children.every(t=>!0!==t.matchesFilter||!0===t.noTick||!0!==t.tickable)&&(g.tickable=!1)),!0===g.matchesFilter&&(!0!==g.noTick&&!0!==d&&!0===g.children.every(t=>t.noTick)&&(g.noTick=!0),u))){if(g.ticked=!1,g.indeterminate=g.children.some(t=>!0===t.indeterminate),g.tickable=!0===g.tickable&&g.children.some(t=>t.tickable),!0!==g.indeterminate){const t=g.children.reduce((t,e)=>!0===e.ticked?t+1:t,0);t===g.children.length?g.ticked=!0:t>0&&(g.indeterminate=!0)}!0===g.indeterminate&&(g.indeterminateNextState=g.children.every(t=>!0!==t.tickable||!0!==t.ticked))}return g};return this.nodes.forEach(t=>e(t,null)),t}},data(){return{lazy:{},innerTicked:this.ticked||[],innerExpanded:this.expanded||[]}},watch:{ticked(t){this.innerTicked=t},expanded(t){this.innerExpanded=t}},methods:{getNodeByKey(t){const e=[].reduce,i=(s,o)=>s||!o?s:!0===Array.isArray(o)?e.call(Object(o),i,s):o[this.nodeKey]===t?o:o[this.childrenKey]?i(null,o[this.childrenKey]):void 0;return i(null,this.nodes)},getTickedNodes(){return this.innerTicked.map(t=>this.getNodeByKey(t))},getExpandedNodes(){return this.innerExpanded.map(t=>this.getNodeByKey(t))},isExpanded(t){return!(!t||!this.meta[t])&&this.meta[t].expanded},collapseAll(){void 0!==this.expanded?this.$emit("update:expanded",[]):this.innerExpanded=[]},expandAll(){const t=this.innerExpanded,e=i=>{i[this.childrenKey]&&i[this.childrenKey].length>0&&!1!==i.expandable&&!0!==i.disabled&&(t.push(i[this.nodeKey]),i[this.childrenKey].forEach(e))};this.nodes.forEach(e),void 0!==this.expanded?this.$emit("update:expanded",t):this.innerExpanded=t},setExpanded(t,e,i=this.getNodeByKey(t),s=this.meta[t]){if(s.lazy&&"loaded"!==s.lazy){if("loading"===s.lazy)return;this.$set(this.lazy,t,"loading"),!0!==Array.isArray(i[this.childrenKey])&&this.$set(i,this.childrenKey,[]),this.$emit("lazy-load",{node:i,key:t,done:e=>{this.lazy[t]="loaded",this.$set(i,this.childrenKey,!0===Array.isArray(e)?e:[]),this.$nextTick(()=>{const e=this.meta[t];e&&!0===e.isParent&&this.__setExpanded(t,!0)})},fail:()=>{this.$delete(this.lazy,t),0===i[this.childrenKey].length&&this.$delete(i,this.childrenKey)}})}else!0===s.isParent&&!0===s.expandable&&this.__setExpanded(t,e)},__setExpanded(t,e){let i=this.innerExpanded;const s=void 0!==this.expanded;if(!0===s&&(i=i.slice()),e){if(this.accordion&&this.meta[t]){const e=[];this.meta[t].parent?this.meta[t].parent.children.forEach(i=>{i.key!==t&&!0===i.expandable&&e.push(i.key)}):this.nodes.forEach(i=>{const s=i[this.nodeKey];s!==t&&e.push(s)}),e.length>0&&(i=i.filter(t=>!1===e.includes(t)))}i=i.concat([t]).filter((t,e,i)=>i.indexOf(t)===e)}else i=i.filter(e=>e!==t);!0===s?this.$emit("update:expanded",i):this.innerExpanded=i},isTicked(t){return!(!t||!this.meta[t])&&this.meta[t].ticked},setTicked(t,e){let i=this.innerTicked;const s=void 0!==this.ticked;!0===s&&(i=i.slice()),i=e?i.concat(t).filter((t,e,i)=>i.indexOf(t)===e):i.filter(e=>!1===t.includes(e)),!0===s&&this.$emit("update:ticked",i)},__getSlotScope(t,e,i){const s={tree:this,node:t,key:i,color:this.color,dark:this.isDark};return injectProp(s,"expanded",()=>e.expanded,t=>{t!==e.expanded&&this.setExpanded(i,t)}),injectProp(s,"ticked",()=>e.ticked,t=>{t!==e.ticked&&this.setTicked([i],t)}),s},__getChildren(t,e){return(this.filter?e.filter(t=>this.meta[t[this.nodeKey]].matchesFilter):e).map(e=>this.__getNode(t,e))},__getNodeMedia(t,e){if(void 0!==e.icon)return t(QIcon,{staticClass:"q-tree__icon q-mr-sm",props:{name:e.icon,color:e.iconColor}});const i=e.img||e.avatar;return i?t("img",{staticClass:`q-tree__${e.img?"img":"avatar"} q-mr-sm`,attrs:{src:i}}):void 0},__getNode(t,e){const i=e[this.nodeKey],s=this.meta[i],o=e.header&&this.$scopedSlots[`header-${e.header}`]||this.$scopedSlots["default-header"],n=!0===s.isParent?this.__getChildren(t,e[this.childrenKey]):[],r=n.length>0||s.lazy&&"loaded"!==s.lazy;let a=e.body&&this.$scopedSlots[`body-${e.body}`]||this.$scopedSlots["default-body"];const l=void 0!==o||void 0!==a?this.__getSlotScope(e,s,i):null;return void 0!==a&&(a=t("div",{staticClass:"q-tree__node-body relative-position"},[t("div",{class:this.textColorClass},[a(l)])])),t("div",{key:i,staticClass:"q-tree__node relative-position",class:{"q-tree__node--parent":r,"q-tree__node--child":!r}},[t("div",{staticClass:"q-tree__node-header relative-position row no-wrap items-center",class:{"q-tree__node--link q-hoverable q-focusable":s.link,"q-tree__node--selected":s.selected,"q-tree__node--disabled":s.disabled},attrs:{tabindex:s.link?0:-1},on:{click:t=>{this.__onClick(e,s,t)},keypress:t=>{!0!==shouldIgnoreKey(t)&&(13===t.keyCode?this.__onClick(e,s,t,!0):32===t.keyCode&&this.__onExpandClick(e,s,t,!0))}}},[t("div",{staticClass:"q-focus-helper",attrs:{tabindex:-1},ref:`blurTarget_${s.key}`}),"loading"===s.lazy?t(QSpinner,{staticClass:"q-tree__spinner",props:{color:this.computedControlColor}}):!0===r?t(QIcon,{staticClass:"q-tree__arrow",class:{"q-tree__arrow--rotate":s.expanded},props:{name:this.computedIcon},on:{click:t=>{this.__onExpandClick(e,s,t)}}}):null,!0===s.hasTicking&&!0!==s.noTick?t(QCheckbox,{staticClass:"q-tree__tickbox",props:{value:!0===s.indeterminate?null:s.ticked,color:this.computedControlColor,dark:this.isDark,dense:!0,keepColor:!0,disable:!0!==s.tickable},on:{keydown:stopAndPrevent,input:t=>{this.__onTickedClick(s,t)}}}):null,t("div",{staticClass:"q-tree__node-header-content col row no-wrap items-center",class:s.selected?this.selectedColorClass:this.textColorClass},[o?o(l):[this.__getNodeMedia(t,e),t("div",e[this.labelKey])]])]),!0===r?!0===this.noTransition?t("div",{staticClass:"q-tree__node-collapsible",class:this.textColorClass,directives:[{name:"show",value:s.expanded}]},[a,t("div",{staticClass:"q-tree__children",class:{"q-tree__node--disabled":s.disabled}},n)]):t(QSlideTransition,{props:{duration:this.duration},on:cache(this,"slide",{show:()=>{this.$emit("after-show")},hide:()=>{this.$emit("after-hide")}})},[t("div",{staticClass:"q-tree__node-collapsible",class:this.textColorClass,directives:[{name:"show",value:s.expanded}]},[a,t("div",{staticClass:"q-tree__children",class:{"q-tree__node--disabled":s.disabled}},n)])]):a])},__blur(t){const e=this.$refs[`blurTarget_${t}`];void 0!==e&&e.focus()},__onClick(t,e,i,s){!0!==s&&this.__blur(e.key),this.hasSelection&&e.selectable?!1===this.noSelectionUnset?this.$emit("update:selected",e.key!==this.selected?e.key:null):e.key!==this.selected&&this.$emit("update:selected",void 0===e.key?null:e.key):this.__onExpandClick(t,e,i,s),"function"==typeof t.handler&&t.handler(t)},__onExpandClick(t,e,i,s){void 0!==i&&stopAndPrevent(i),!0!==s&&this.__blur(e.key),this.setExpanded(e.key,!e.expanded,t,e)},__onTickedClick(t,e){if(!0===t.indeterminate&&(e=t.indeterminateNextState),t.strictTicking)this.setTicked([t.key],e);else if(t.leafTicking){const i=[],s=t=>{t.isParent?(!0!==e&&!0!==t.noTick&&!0===t.tickable&&i.push(t.key),!0===t.leafTicking&&t.children.forEach(s)):!0===t.noTick||!0!==t.tickable||!0===t.leafFilteredTicking&&!0!==t.matchesFilter||i.push(t.key)};s(t),this.setTicked(i,e)}}},render(t){const e=this.__getChildren(t,this.nodes);return t("div",{class:this.classes},0===e.length?this.filter?this.noResultsLabel||this.$q.lang.tree.noResults:this.noNodesLabel||this.$q.lang.tree.noNodes:e)},created(){!0===this.defaultExpandAll&&this.expandAll()}}),QUploaderBase=Vue.extend({name:"QUploaderBase",mixins:[DarkMixin,FileMixin],props:{label:String,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,noThumbnails:Boolean,autoUpload:Boolean,hideUploadBtn:Boolean,disable:Boolean,readonly:Boolean},provide(){return{__qUploaderGetInput:this.__getInputControl}},data:()=>({files:[],queuedFiles:[],uploadedFiles:[],dnd:!1,expanded:!1,uploadSize:0,uploadedSize:0}),watch:{isUploading(t,e){!1===e&&!0===t?this.$emit("start"):!0===e&&!1===t&&this.$emit("finish")}},computed:{canUpload(){return!0===this.editable&&!0!==this.isBusy&&!0!==this.isUploading&&this.queuedFiles.length>0},canAddFiles(){return!0===this.editable&&!0!==this.isUploading&&(!0===this.multiple||0===this.queuedFiles.length)&&(void 0===this.maxFiles||this.files.length<this.maxFilesNumber)&&(void 0===this.maxTotalSize||this.uploadSize<this.maxTotalSizeNumber)},uploadProgress(){return 0===this.uploadSize?0:this.uploadedSize/this.uploadSize},uploadProgressLabel(){return this.__getProgressLabel(this.uploadProgress)},uploadedSizeLabel(){return humanStorageSize(this.uploadedSize)},uploadSizeLabel(){return humanStorageSize(this.uploadSize)},colorClass(){const t=[];return void 0!==this.color&&t.push(`bg-${this.color}`),void 0!==this.textColor&&t.push(`text-${this.textColor}`),t.join(" ")},editable(){return!0!==this.disable&&!0!==this.readonly}},methods:{reset(){this.disable||(this.abort(),this.uploadedSize=0,this.uploadSize=0,this.__revokeImgURLs(),this.files=[],this.queuedFiles=[],this.uploadedFiles=[])},removeUploadedFiles(){this.__removeFiles(["uploaded"],()=>{this.uploadedFiles=[]})},removeQueuedFiles(){this.__removeFiles(["idle","failed"],({size:t})=>{this.uploadSize-=t,this.queuedFiles=[]})},__removeFiles(t,e){if(!0===this.disable)return;const i={files:[],size:0},s=this.files.filter(e=>-1===t.indexOf(e.__status)||(i.size+=e.size,i.files.push(e),void 0!==e.__img&&window.URL.revokeObjectURL(e.__img.src),!1));i.files.length>0&&(this.files=s,void 0!==e&&e(i),this.$emit("removed",i.files))},removeFile(t){this.disable||("uploaded"===t.__status?this.uploadedFiles=this.uploadedFiles.filter(e=>e.__key!==t.__key):"uploading"===t.__status?t.__abort():this.uploadSize-=t.size,this.files=this.files.filter(e=>e.__key!==t.__key||(void 0!==e.__img&&window.URL.revokeObjectURL(e.__img.src),!1)),this.queuedFiles=this.queuedFiles.filter(e=>e.__key!==t.__key),this.$emit("removed",[t]))},__revokeImgURLs(){this.files.forEach(t=>{void 0!==t.__img&&window.URL.revokeObjectURL(t.__img.src)})},__getFileInput(){return this.$refs.input||this.$el.getElementsByClassName("q-uploader__input")[0]},__getProgressLabel:t=>(100*t).toFixed(2)+"%",__updateFile(t,e,i){if(t.__status=e,"idle"===e)return t.__uploaded=0,t.__progress=0,t.__sizeLabel=humanStorageSize(t.size),void(t.__progressLabel="0.00%");"failed"!==e?(t.__uploaded="uploaded"===e?t.size:i,t.__progress="uploaded"===e?1:Math.min(.9999,t.__uploaded/t.size),t.__progressLabel=this.__getProgressLabel(t.__progress),this.$forceUpdate()):this.$forceUpdate()},__addFiles(t,e){const i=this.__processFiles(t,e,this.files,!0),s=this.__getFileInput();void 0!==s&&(s.value=""),void 0!==i&&(i.forEach(t=>{if(this.__updateFile(t,"idle"),this.uploadSize+=t.size,!0!==this.noThumbnails&&t.type.toUpperCase().startsWith("IMAGE")){const e=new Image;e.src=window.URL.createObjectURL(t),t.__img=e}}),this.files=this.files.concat(i),this.queuedFiles=this.queuedFiles.concat(i),this.$emit("added",i),!0===this.autoUpload&&this.upload())},__getBtn(t,e,i,s){if(!0===e)return t(QBtn,{props:{type:"a",icon:this.$q.iconSet.uploader[i],flat:!0,dense:!0},on:{click:"add"===i?this.pickFiles:s}},"add"===i?this.__getInputControl(t):null)},__getInputControl(t){return[t("input",{ref:"input",staticClass:"q-uploader__input overflow-hidden absolute-full",attrs:{tabindex:-1,type:"file",title:"",accept:this.accept,capture:this.capture,...!0===this.multiple?{multiple:!0}:{}},on:cache(this,"input",{mousedown:stop,click:this.pickFiles,change:this.__addFiles})})]},__getHeader(t){return void 0!==this.$scopedSlots.header?this.$scopedSlots.header(this):[t("div",{staticClass:"q-uploader__header-content column"},[t("div",{staticClass:"flex flex-center no-wrap q-gutter-xs"},[this.__getBtn(t,this.queuedFiles.length>0,"removeQueue",this.removeQueuedFiles),this.__getBtn(t,this.uploadedFiles.length>0,"removeUploaded",this.removeUploadedFiles),!0===this.isUploading?t(QSpinner,{staticClass:"q-uploader__spinner"}):null,t("div",{staticClass:"col column justify-center"},[void 0!==this.label?t("div",{staticClass:"q-uploader__title"},[this.label]):null,t("div",{staticClass:"q-uploader__subtitle"},[this.uploadSizeLabel+" / "+this.uploadProgressLabel])]),this.__getBtn(t,this.canAddFiles,"add",this.pickFiles),this.__getBtn(t,!1===this.hideUploadBtn&&!0===this.canUpload,"upload",this.upload),this.__getBtn(t,this.isUploading,"clear",this.abort)])])]},__getList(t){return void 0!==this.$scopedSlots.list?this.$scopedSlots.list(this):this.files.map(e=>t("div",{key:e.__key,staticClass:"q-uploader__file relative-position",class:{"q-uploader__file--img":!0!==this.noThumbnails&&void 0!==e.__img,"q-uploader__file--failed":"failed"===e.__status,"q-uploader__file--uploaded":"uploaded"===e.__status},style:!0!==this.noThumbnails&&void 0!==e.__img?{backgroundImage:'url("'+e.__img.src+'")'}:null},[t("div",{staticClass:"q-uploader__file-header row flex-center no-wrap"},["failed"===e.__status?t(QIcon,{staticClass:"q-uploader__file-status",props:{name:this.$q.iconSet.type.negative,color:"negative"}}):null,t("div",{staticClass:"q-uploader__file-header-content col"},[t("div",{staticClass:"q-uploader__title"},[e.name]),t("div",{staticClass:"q-uploader__subtitle row items-center no-wrap"},[e.__sizeLabel+" / "+e.__progressLabel])]),"uploading"===e.__status?t(QCircularProgress,{props:{value:e.__progress,min:0,max:1,indeterminate:0===e.__progress}}):t(QBtn,{props:{round:!0,dense:!0,flat:!0,icon:this.$q.iconSet.uploader["uploaded"===e.__status?"done":"clear"]},on:{click:()=>{this.removeFile(e)}}})])]))}},beforeDestroy(){!0===this.isUploading&&this.abort(),this.files.length>0&&this.__revokeImgURLs()},render(t){const e=[t("div",{staticClass:"q-uploader__header",class:this.colorClass},this.__getHeader(t)),t("div",{staticClass:"q-uploader__list scroll"},this.__getList(t)),this.__getDnd(t,"uploader")];return!0===this.isBusy&&e.push(t("div",{staticClass:"q-uploader__overlay absolute-full flex flex-center"},[t(QSpinner)])),t("div",{staticClass:"q-uploader column no-wrap",class:{"q-uploader--dark q-dark":this.isDark,"q-uploader--bordered":this.bordered,"q-uploader--square no-border-radius":this.square,"q-uploader--flat no-shadow":this.flat,"disabled q-uploader--disable":this.disable,"q-uploader--dnd":this.dnd},on:!0===this.canAddFiles?cache(this,"drag",{dragover:this.__onDragOver,dragleave:this.__onDragLeave}):null},e)}});function getFn(t){return"function"==typeof t?t:()=>t}var UploaderXHRMixin={props:{url:[Function,String],method:{type:[Function,String],default:"POST"},fieldName:{type:[Function,String],default:t=>t.name},headers:[Function,Array],formFields:[Function,Array],withCredentials:[Function,Boolean],sendRaw:[Function,Boolean],batch:[Function,Boolean],factory:Function},data:()=>({xhrs:[],promises:[],workingThreads:0}),computed:{xhrProps(){return{url:getFn(this.url),method:getFn(this.method),headers:getFn(this.headers),formFields:getFn(this.formFields),fieldName:getFn(this.fieldName),withCredentials:getFn(this.withCredentials),sendRaw:getFn(this.sendRaw),batch:getFn(this.batch)}},isUploading(){return this.workingThreads>0},isBusy(){return this.promises.length>0}},methods:{abort(){this.xhrs.forEach(t=>{t.abort()}),this.promises.length>0&&(this.abortPromises=!0)},upload(){if(!1===this.canUpload)return;const t=this.queuedFiles.slice(0);this.queuedFiles=[],this.xhrProps.batch(t)?this.__runFactory(t):t.forEach(t=>{this.__runFactory([t])})},__runFactory(t){if(this.workingThreads++,"function"!=typeof this.factory)return void this.__uploadFiles(t,{});const e=this.factory(t);if(e)if("function"==typeof e.catch&&"function"==typeof e.then){this.promises.push(e);const i=i=>{!0!==this._isBeingDestroyed&&!0!==this._isDestroyed&&(this.promises=this.promises.filter(t=>t!==e),0===this.promises.length&&(this.abortPromises=!1),this.queuedFiles=this.queuedFiles.concat(t),t.forEach(t=>{this.__updateFile(t,"failed")}),this.$emit("factory-failed",i,t),this.workingThreads--)};e.then(s=>{!0===this.abortPromises?i(new Error("Aborted")):!0!==this._isBeingDestroyed&&!0!==this._isDestroyed&&(this.promises=this.promises.filter(t=>t!==e),this.__uploadFiles(t,s))}).catch(i)}else this.__uploadFiles(t,e||{});else this.$emit("factory-failed",new Error("QUploader: factory() does not return properly"),t),this.workingThreads--},__uploadFiles(t,e){const i=new FormData,s=new XMLHttpRequest,o=(t,i)=>void 0!==e[t]?getFn(e[t])(i):this.xhrProps[t](i),n=o("url",t);if(!n)return console.error("q-uploader: invalid or no URL specified"),void this.workingThreads--;const r=o("formFields",t);void 0!==r&&r.forEach(t=>{i.append(t.name,t.value)});let a,l=0,h=0,d=0,c=0;s.upload.addEventListener("progress",e=>{if(!0===a)return;const i=Math.min(c,e.loaded);this.uploadedSize+=i-d;let s=(d=i)-h;for(let e=l;s>0&&e<t.length;e++){const i=t[e];if(!(s>i.size))return void this.__updateFile(i,"uploading",s);s-=i.size,l++,h+=i.size,this.__updateFile(i,"uploading",i.size)}},!1),s.onreadystatechange=(()=>{s.readyState<4||(s.status&&s.status<400?(this.uploadedFiles=this.uploadedFiles.concat(t),t.forEach(t=>{this.__updateFile(t,"uploaded")}),this.$emit("uploaded",{files:t,xhr:s})):(a=!0,this.uploadedSize-=d,this.queuedFiles=this.queuedFiles.concat(t),t.forEach(t=>{this.__updateFile(t,"failed")}),this.$emit("failed",{files:t,xhr:s})),this.workingThreads--,this.xhrs=this.xhrs.filter(t=>t!==s))}),s.open(o("method",t),n),!0===o("withCredentials",t)&&(s.withCredentials=!0);const u=o("headers",t);void 0!==u&&u.forEach(t=>{s.setRequestHeader(t.name,t.value)});const p=o("sendRaw",t);t.forEach(t=>{this.__updateFile(t,"uploading",0),!0!==p&&i.append(o("fieldName",t),t,t.name),t.xhr=s,t.__abort=(()=>{s.abort()}),c+=t.size}),this.$emit("uploading",{files:t,xhr:s}),this.xhrs.push(s),!0===p?s.send(new Blob(t)):s.send(i)}}},QUploader=Vue.extend({name:"QUploader",mixins:[QUploaderBase,UploaderXHRMixin]}),QUploaderAddTrigger=Vue.extend({name:"QUploaderAddTrigger",inject:{__qUploaderGetInput:{default(){console.error("QUploaderAddTrigger needs to be child of QUploader")}}},render(t){return this.__qUploaderGetInput(t)}}),QVideo=Vue.extend({name:"QVideo",mixins:[RatioMixin,ListenersMixin],props:{src:{type:String,required:!0},title:String,fetchpriority:{type:String,default:"auto"},loading:{type:String,default:"eager"},referrerpolicy:{type:String,default:"strict-origin-when-cross-origin"}},computed:{iframeData(){return{attrs:{src:this.src,frameborder:"0",title:this.title,allowfullscreen:!0,fetchpriority:this.fetchpriority,loading:this.loading,referrerpolicy:this.referrerpolicy}}},classes(){return"q-video"+(void 0!==this.ratio?" q-video--responsive":"")}},render(t){return t("div",{class:this.classes,style:this.ratioStyle,on:{...this.qListeners}},[t("iframe",this.iframeData)])}}),components$1=Object.freeze({__proto__:null,QAjaxBar:QAjaxBar,QAvatar:QAvatar,QBadge:QBadge,QBanner:QBanner,QBar:QBar,QBreadcrumbs:QBreadcrumbs,QBreadcrumbsEl:QBreadcrumbsEl,QBtn:QBtn,QBtnDropdown:QBtnDropdown,QBtnGroup:QBtnGroup,QBtnToggle:QBtnToggle,QCard:QCard,QCardSection:QCardSection,QCardActions:QCardActions,QCarousel:QCarousel,QCarouselSlide:QCarouselSlide,QCarouselControl:QCarouselControl,QChatMessage:QChatMessage,QCheckbox:QCheckbox,QChip:QChip,QCircularProgress:QCircularProgress,QColor:QColor,QDate:QDate,QDialog:QDialog,QDrawer:QDrawer,QEditor:QEditor,QExpansionItem:QExpansionItem,QFab:QFab,QFabAction:QFabAction,QField:QField,QFile:QFile,QFooter:QFooter,QForm:QForm,QHeader:QHeader,QIcon:QIcon,QImg:QImg,QInfiniteScroll:QInfiniteScroll,QInnerLoading:QInnerLoading,QInput:QInput,QIntersection:QIntersection,QList:QList,QItem:QItem,QItemSection:QItemSection,QItemLabel:QItemLabel,QKnob:QKnob,QLayout:QLayout,QMarkupTable:QMarkupTable,QMenu:QMenu,QNoSsr:QNoSsr,QOptionGroup:QOptionGroup,QPage:QPage,QPageContainer:QPageContainer,QPageScroller:QPageScroller,QPageSticky:QPageSticky,QPagination:QPagination,QParallax:QParallax,QPopupEdit:QPopupEdit,QPopupProxy:QPopupProxy,QLinearProgress:QLinearProgress,QPullToRefresh:QPullToRefresh,QRadio:QRadio,QRange:QRange,QRating:QRating,QResizeObserver:QResizeObserver,QResponsive:QResponsive,QScrollArea:QScrollArea,QScrollObserver:QScrollObserver,QSelect:QSelect,QSeparator:QSeparator,QSkeleton:QSkeleton,QSlideItem:QSlideItem,QSlideTransition:QSlideTransition,QSlider:QSlider,QSpace:QSpace,QSpinner:QSpinner,QSpinnerAudio:QSpinnerAudio,QSpinnerBall:QSpinnerBall,QSpinnerBars:QSpinnerBars,QSpinnerBox:QSpinnerBox,QSpinnerClock:QSpinnerClock,QSpinnerComment:QSpinnerComment,QSpinnerCube:QSpinnerCube,QSpinnerDots:QSpinnerDots,QSpinnerFacebook:QSpinnerFacebook,QSpinnerGears:QSpinnerGears,QSpinnerGrid:QSpinnerGrid,QSpinnerHearts:QSpinnerHearts,QSpinnerHourglass:QSpinnerHourglass,QSpinnerInfinity:QSpinnerInfinity,QSpinnerIos:QSpinnerIos,QSpinnerOrbit:QSpinnerOrbit,QSpinnerOval:QSpinnerOval,QSpinnerPie:QSpinnerPie,QSpinnerPuff:QSpinnerPuff,QSpinnerRadio:QSpinnerRadio,QSpinnerRings:QSpinnerRings,QSpinnerTail:QSpinnerTail,QSplitter:QSplitter,QStep:QStep,QStepper:QStepper,QStepperNavigation:QStepperNavigation,QTabPanels:QTabPanels,QTabPanel:QTabPanel,QTable:QTable,QTh:QTh,QTr:QTr,QTd:QTd,QTabs:QTabs,QTab:QTab,QRouteTab:QRouteTab,QTime:QTime,QTimeline:QTimeline,QTimelineEntry:QTimelineEntry,QToggle:QToggle,QToolbar:QToolbar,QToolbarTitle:QToolbarTitle,QTooltip:QTooltip,QTree:QTree,QUploader:QUploader,QUploaderBase:QUploaderBase,QUploaderAddTrigger:QUploaderAddTrigger,QVideo:QVideo,QVirtualScroll:QVirtualScroll});function getDepth(t){if(!1===t)return 0;if(!0===t||void 0===t)return 1;const e=parseInt(t,10);return isNaN(e)?0:e}function destroy$4(t){const e=t.__qclosepopup;void 0!==e&&(t.removeEventListener("click",e.handler),t.removeEventListener("keyup",e.handlerKey),delete t.__qclosepopup)}var ClosePopup={name:"close-popup",bind(t,{value:e},i){void 0!==t.__qclosepopup&&(destroy$4(t),t.__qclosepopup_destroyed=!0);const s={depth:getDepth(e),handler(t){0!==s.depth&&setTimeout(()=>{closePortals(i.componentInstance||i.context,t,s.depth)})},handlerKey(t){!0===isKeyCode(t,13)&&s.handler(t)}};t.__qclosepopup=s,t.addEventListener("click",s.handler),t.addEventListener("keyup",s.handlerKey)},update(t,{value:e,oldValue:i}){void 0!==t.__qclosepopup&&e!==i&&(t.__qclosepopup.depth=getDepth(e))},unbind(t){void 0===t.__qclosepopup_destroyed?destroy$4(t):delete t.__qclosepopup_destroyed}};function destroy$5(t){const e=t.__qgoback;void 0!==e&&(t.removeEventListener("click",e.goBack),t.removeEventListener("keyup",e.goBackKey),delete t.__qgoback)}var GoBack={name:"go-back",bind(t,{value:e,modifiers:i},s){void 0!==t.__qgoback&&(destroy$5(t),t.__qgoback_destroyed=!0);const o={value:e,position:window.history.length-1,single:i.single,goBack(){const t=s.context.$router;!0===o.single?t.go(-1):!0===client.is.nativeMobile?t.go(o.position-window.history.length):t.replace(o.value)},goBackKey(t){!0===isKeyCode(t,13)&&o.goBack()}};t.__qgoback=o,t.addEventListener("click",o.goBack),t.addEventListener("keyup",o.goBackKey)},update(t,{value:e,oldValue:i}){const s=t.__qgoback;void 0!==s&&e!==i&&(s.value=e)},unbind(t){void 0===t.__qgoback_destroyed?destroy$5(t):delete t.__qgoback_destroyed}};let id$1=0,offsetBase=void 0;function getAbsolutePosition(t,e){void 0===offsetBase&&((offsetBase=document.createElement("div")).style.cssText="position: absolute; left: 0; top: 0",document.body.appendChild(offsetBase));const i=t.getBoundingClientRect(),s=offsetBase.getBoundingClientRect(),{marginLeft:o,marginRight:n,marginTop:r,marginBottom:a}=window.getComputedStyle(t),l=parseInt(o,10)+parseInt(n,10),h=parseInt(r,10)+parseInt(a,10);return{left:i.left-s.left,top:i.top-s.top,width:i.right-i.left,height:i.bottom-i.top,widthM:i.right-i.left+(!0===e?0:l),heightM:i.bottom-i.top+(!0===e?0:h),marginH:!0===e?l:0,marginV:!0===e?h:0}}function getAbsoluteSize(t){return{width:t.scrollWidth,height:t.scrollHeight}}const styleEdges=["Top","Right","Bottom","Left"],styleBorderRadiuses=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],reStyleSkipKey=/-block|-inline|block-|inline-/,reStyleSkipRule=/(-block|-inline|block-|inline-).*:/;function getComputedStyle$1(t,e){const i=window.getComputedStyle(t),s={};for(let t=0;t<e.length;t++){const o=e[t];if(""===i[o])if("cssText"===o){const t=i.length;let e="";for(let s=0;s<t;s++)!0!==reStyleSkipKey.test(i[s])&&(e+=i[s]+": "+i[i[s]]+"; ");s[o]=e}else if(["borderWidth","borderStyle","borderColor"].indexOf(o)>-1){const t=o.replace("border","");let e="";for(let s=0;s<styleEdges.length;s++){e+=i["border"+styleEdges[s]+t]+" "}s[o]=e}else if("borderRadius"===o){let t="",e="";for(let s=0;s<styleBorderRadiuses.length;s++){const o=i[styleBorderRadiuses[s]].split(" ");t+=o[0]+" ",e+=(void 0===o[1]?o[0]:o[1])+" "}s[o]=t+"/ "+e}else s[o]=i[o];else s[o]="cssText"===o?i[o].split(";").filter(t=>!0!==reStyleSkipRule.test(t)).join(";"):i[o]}return s}const zIndexPositions=["absolute","fixed","relative","sticky"];function getMaxZIndex(t){let e=t,i=0;for(;null!==e&&e!==document;){const{position:s,zIndex:o}=window.getComputedStyle(e),n=Number(o);n>i&&(e===t||!0===zIndexPositions.includes(s))&&(i=n),e=e.parentNode}return i}function normalizeElements(t){return{from:t.from,to:void 0!==t.to?t.to:t.from}}function normalizeOptions(t){return"number"==typeof t?t={duration:t}:"function"==typeof t&&(t={onEnd:t}),{...t,waitFor:void 0===t.waitFor?0:t.waitFor,duration:!0===isNaN(t.duration)?300:parseInt(t.duration,10),easing:"string"==typeof t.easing&&t.easing.length>0?t.easing:"ease-in-out",delay:!0===isNaN(t.delay)?0:parseInt(t.delay,10),fill:"string"==typeof t.fill&&t.fill.length>0?t.fill:"none",resize:!0===t.resize,useCSS:!0===t.useCSS||!0===t.usecss,hideFromClone:!0===t.hideFromClone||!0===t.hidefromclone,keepToClone:!0===t.keepToClone||!0===t.keeptoclone,tween:!0===t.tween,tweenFromOpacity:!0===isNaN(t.tweenFromOpacity)?.6:parseFloat(t.tweenFromOpacity),tweenToOpacity:!0===isNaN(t.tweenToOpacity)?.5:parseFloat(t.tweenToOpacity)}}function isValidElement(t){return t&&t.ownerDocument===document&&null!==t.parentNode}function morph(t){let e=()=>!1,i=!1,s=!0;const o=normalizeElements(t),n=normalizeOptions(t),r=getElement(o.from);if(!0!==isValidElement(r))return e;"function"==typeof r.qMorphCancel&&r.qMorphCancel();let a=void 0,l=void 0,h=void 0,d=void 0;const c=r.parentNode,u=r.nextElementSibling,p=getAbsolutePosition(r,n.resize),{width:m,height:g}=getAbsoluteSize(c),{borderWidth:f,borderStyle:v,borderColor:_,borderRadius:b,backgroundColor:y,transform:S,position:x,cssText:C}=getComputedStyle$1(r,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),w=r.classList.toString(),k=r.style.cssText,$=r.cloneNode(!0),q=!0===n.tween?r.cloneNode(!0):void 0;void 0!==q&&(q.className=q.classList.toString().split(" ").filter(t=>!1===/^bg-/.test(t)).join(" ")),!0===n.hideFromClone&&$.classList.add("q-morph--internal"),$.setAttribute("aria-hidden","true"),$.style.transition="none",$.style.animation="none",$.style.pointerEvents="none",c.insertBefore($,u),r.qMorphCancel=(()=>{i=!0,$.remove(),void 0!==q&&q.remove(),!0===n.hideFromClone&&$.classList.remove("q-morph--internal"),r.qMorphCancel=void 0});return"function"==typeof t.onToggle&&t.onToggle(),requestAnimationFrame(()=>{const t=getElement(o.to);if(!0===i||!0!==isValidElement(t))return void("function"==typeof r.qMorphCancel&&r.qMorphCancel());r!==t&&"function"==typeof t.qMorphCancel&&t.qMorphCancel(),!0!==n.keepToClone&&t.classList.add("q-morph--internal"),$.classList.add("q-morph--internal");const{width:u,height:M}=getAbsoluteSize(c),{width:T,height:L}=getAbsoluteSize(t.parentNode);!0!==n.hideFromClone&&$.classList.remove("q-morph--internal"),t.qMorphCancel=(()=>{i=!0,$.remove(),void 0!==q&&q.remove(),!0===n.hideFromClone&&$.classList.remove("q-morph--internal"),!0!==n.keepToClone&&t.classList.remove("q-morph--internal"),r.qMorphCancel=void 0,t.qMorphCancel=void 0});const P=()=>{if(!0===i)return void("function"==typeof t.qMorphCancel&&t.qMorphCancel());!0!==n.hideFromClone&&($.classList.add("q-morph--internal"),$.innerHTML="",$.style.left=0,$.style.right="unset",$.style.top=0,$.style.bottom="unset",$.style.transform="none"),!0!==n.keepToClone&&t.classList.remove("q-morph--internal");const o=t.parentNode,{width:P,height:E}=getAbsoluteSize(o),B=t.cloneNode(n.keepToClone);B.setAttribute("aria-hidden","true"),!0!==n.keepToClone&&(B.style.left=0,B.style.right="unset",B.style.top=0,B.style.bottom="unset",B.style.transform="none",B.style.pointerEvents="none"),B.classList.add("q-morph--internal");const A=t===r&&c===o?$:t.nextElementSibling;o.insertBefore(B,A);const{borderWidth:z,borderStyle:D,borderColor:I,borderRadius:R,backgroundColor:O,transform:V,position:F,cssText:Q}=getComputedStyle$1(t,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),N=t.classList.toString(),H=t.style.cssText;t.style.cssText=Q,t.style.transform="none",t.style.animation="none",t.style.transition="none",t.className=N.split(" ").filter(t=>!1===/^bg-/.test(t)).join(" ");const j=getAbsolutePosition(t,n.resize),W=p.left-j.left,K=p.top-j.top,U=p.width/(j.width>0?j.width:10),Y=p.height/(j.height>0?j.height:100),G=m-u,X=g-M,Z=P-T,J=E-L,tt=Math.max(p.widthM,G),et=Math.max(p.heightM,X),it=Math.max(j.widthM,Z),st=Math.max(j.heightM,J),ot=r===t&&!1===["absolute","fixed"].includes(F)&&!1===["absolute","fixed"].includes(x);let nt="fixed"===F,rt=o;for(;!0!==nt&&rt!==document;)nt="fixed"===window.getComputedStyle(rt).position,rt=rt.parentNode;if(!0!==n.hideFromClone&&($.style.display="block",$.style.flex="0 0 auto",$.style.opacity=0,$.style.minWidth="unset",$.style.maxWidth="unset",$.style.minHeight="unset",$.style.maxHeight="unset",$.classList.remove("q-morph--internal")),!0!==n.keepToClone&&(B.style.display="block",B.style.flex="0 0 auto",B.style.opacity=0,B.style.minWidth="unset",B.style.maxWidth="unset",B.style.minHeight="unset",B.style.maxHeight="unset"),B.classList.remove("q-morph--internal"),"string"==typeof n.classes&&(t.className+=" "+n.classes),"string"==typeof n.style)t.style.cssText+=" "+n.style;else if(!0===isObject(n.style))for(const e in n.style)t.style[e]=n.style[e];const at=getMaxZIndex($),lt=getMaxZIndex(t),ht=!0===nt?document.documentElement:{scrollLeft:0,scrollTop:0};t.style.position=!0===nt?"fixed":"absolute",t.style.left=`${j.left-ht.scrollLeft}px`,t.style.right="unset",t.style.top=`${j.top-ht.scrollTop}px`,t.style.margin=0,!0===n.resize&&(t.style.minWidth="unset",t.style.maxWidth="unset",t.style.minHeight="unset",t.style.maxHeight="unset",t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"),document.body.appendChild(t),void 0!==q&&(q.style.cssText=C,q.style.transform="none",q.style.animation="none",q.style.transition="none",q.style.position=t.style.position,q.style.left=`${p.left-ht.scrollLeft}px`,q.style.right="unset",q.style.top=`${p.top-ht.scrollTop}px`,q.style.margin=0,q.style.pointerEvents="none",!0===n.resize&&(q.style.minWidth="unset",q.style.maxWidth="unset",q.style.minHeight="unset",q.style.maxHeight="unset",q.style.overflow="hidden",q.style.overflowX="hidden",q.style.overflowY="hidden"),document.body.appendChild(q));const dt=i=>{r===t&&!0!==s?(t.style.cssText=k,t.className=w):(t.style.cssText=H,t.className=N),B.parentNode===o&&o.insertBefore(t,B),$.remove(),B.remove(),void 0!==q&&q.remove(),e=(()=>!1),r.qMorphCancel=void 0,t.qMorphCancel=void 0,"function"==typeof n.onEnd&&n.onEnd(!0===s?"to":"from",!0===i)};if(!0!==n.useCSS&&"function"==typeof t.animate){const o=!0===n.resize?{transform:`translate(${W}px, ${K}px)`,width:`${tt}px`,height:`${et}px`}:{transform:`translate(${W}px, ${K}px) scale(${U}, ${Y})`},c=!0===n.resize?{width:`${it}px`,height:`${st}px`}:{},u=!0===n.resize?{width:`${tt}px`,height:`${et}px`}:{},m=!0===n.resize?{transform:`translate(${-1*W}px, ${-1*K}px)`,width:`${it}px`,height:`${st}px`}:{transform:`translate(${-1*W}px, ${-1*K}px) scale(${1/U}, ${1/Y})`},g=void 0!==q?{opacity:n.tweenToOpacity}:{backgroundColor:y},x=void 0!==q?{opacity:1}:{backgroundColor:O};d=t.animate([{margin:0,borderWidth:f,borderStyle:v,borderColor:_,borderRadius:b,zIndex:at,transformOrigin:"0 0",...o,...g},{margin:0,borderWidth:z,borderStyle:D,borderColor:I,borderRadius:R,zIndex:lt,transformOrigin:"0 0",transform:V,...c,...x}],{duration:n.duration,easing:n.easing,fill:n.fill,delay:n.delay}),l=void 0===q?void 0:q.animate([{opacity:n.tweenFromOpacity,margin:0,borderWidth:f,borderStyle:v,borderColor:_,borderRadius:b,zIndex:at,transformOrigin:"0 0",transform:S,...u},{opacity:0,margin:0,borderWidth:z,borderStyle:D,borderColor:I,borderRadius:R,zIndex:lt,transformOrigin:"0 0",...m}],{duration:n.duration,easing:n.easing,fill:n.fill,delay:n.delay}),a=!0===n.hideFromClone||!0===ot?void 0:$.animate([{margin:`${X<0?X/2:0}px ${G<0?G/2:0}px`,width:`${tt+p.marginH}px`,height:`${et+p.marginV}px`},{margin:0,width:0,height:0}],{duration:n.duration,easing:n.easing,fill:n.fill,delay:n.delay}),h=!0===n.keepToClone?void 0:B.animate([!0===ot?{margin:`${X<0?X/2:0}px ${G<0?G/2:0}px`,width:`${tt+p.marginH}px`,height:`${et+p.marginV}px`}:{margin:0,width:0,height:0},{margin:`${J<0?J/2:0}px ${Z<0?Z/2:0}px`,width:`${it+j.marginH}px`,height:`${st+j.marginV}px`}],{duration:n.duration,easing:n.easing,fill:n.fill,delay:n.delay});const C=t=>{void 0!==a&&a.cancel(),void 0!==l&&l.cancel(),void 0!==h&&h.cancel(),d.cancel(),d.removeEventListener("finish",C),d.removeEventListener("cancel",C),dt(t),a=void 0,l=void 0,h=void 0,d=void 0};r.qMorphCancel=(()=>{r.qMorphCancel=void 0,i=!0,C()}),t.qMorphCancel=(()=>{t.qMorphCancel=void 0,i=!0,C()}),d.addEventListener("finish",C),d.addEventListener("cancel",C),e=(t=>!0!==i&&void 0!==d&&(!0===t?(C(!0),!0):(s=!0!==s,void 0!==a&&a.reverse(),void 0!==l&&l.reverse(),void 0!==h&&h.reverse(),d.reverse(),!0)))}else{const o=`q-morph-anim-${++id$1}`,a=document.createElement("style"),l=!0===n.resize?`\n transform: translate(${W}px, ${K}px);\n width: ${tt}px;\n height: ${et}px;\n `:`transform: translate(${W}px, ${K}px) scale(${U}, ${Y});`,h=!0===n.resize?`\n width: ${it}px;\n height: ${st}px;\n `:"",d=!0===n.resize?`\n width: ${tt}px;\n height: ${et}px;\n `:"",c=!0===n.resize?`\n transform: translate(${-1*W}px, ${-1*K}px);\n width: ${it}px;\n height: ${st}px;\n `:`transform: translate(${-1*W}px, ${-1*K}px) scale(${1/U}, ${1/Y});`,u=void 0!==q?`opacity: ${n.tweenToOpacity};`:`background-color: ${y};`,m=void 0!==q?"opacity: 1;":`background-color: ${O};`,g=void 0===q?"":`\n @keyframes ${o}-from-tween {\n 0% {\n opacity: ${n.tweenFromOpacity};\n margin: 0;\n border-width: ${f};\n border-style: ${v};\n border-color: ${_};\n border-radius: ${b};\n z-index: ${at};\n transform-origin: 0 0;\n transform: ${S};\n ${d}\n }\n\n 100% {\n opacity: 0;\n margin: 0;\n border-width: ${z};\n border-style: ${D};\n border-color: ${I};\n border-radius: ${R};\n z-index: ${lt};\n transform-origin: 0 0;\n ${c}\n }\n }\n `,x=!0===n.hideFromClone||!0===ot?"":`\n @keyframes ${o}-from {\n 0% {\n margin: ${X<0?X/2:0}px ${G<0?G/2:0}px;\n width: ${tt+p.marginH}px;\n height: ${et+p.marginV}px;\n }\n\n 100% {\n margin: 0;\n width: 0;\n height: 0;\n }\n }\n `,C=!0===ot?`\n margin: ${X<0?X/2:0}px ${G<0?G/2:0}px;\n width: ${tt+p.marginH}px;\n height: ${et+p.marginV}px;\n `:"\n margin: 0;\n width: 0;\n height: 0;\n ",w=!0===n.keepToClone?"":`\n @keyframes ${o}-to {\n 0% {\n ${C}\n }\n\n 100% {\n margin: ${J<0?J/2:0}px ${Z<0?Z/2:0}px;\n width: ${it+j.marginH}px;\n height: ${st+j.marginV}px;\n }\n }\n `;a.innerHTML=`\n @keyframes ${o} {\n 0% {\n margin: 0;\n border-width: ${f};\n border-style: ${v};\n border-color: ${_};\n border-radius: ${b};\n background-color: ${y};\n z-index: ${at};\n transform-origin: 0 0;\n ${l}\n ${u}\n }\n\n 100% {\n margin: 0;\n border-width: ${z};\n border-style: ${D};\n border-color: ${I};\n border-radius: ${R};\n background-color: ${O};\n z-index: ${lt};\n transform-origin: 0 0;\n transform: ${V};\n ${h}\n ${m}\n }\n }\n\n ${x}\n\n ${g}\n\n ${w}\n `,document.head.appendChild(a);let k="normal";$.style.animation=`${n.duration}ms ${n.easing} ${n.delay}ms ${k} ${n.fill} ${o}-from`,void 0!==q&&(q.style.animation=`${n.duration}ms ${n.easing} ${n.delay}ms ${k} ${n.fill} ${o}-from-tween`),B.style.animation=`${n.duration}ms ${n.easing} ${n.delay}ms ${k} ${n.fill} ${o}-to`,t.style.animation=`${n.duration}ms ${n.easing} ${n.delay}ms ${k} ${n.fill} ${o}`;const M=e=>{e===Object(e)&&e.animationName!==o||(t.removeEventListener("animationend",M),t.removeEventListener("animationcancel",M),dt(),a.remove())};r.qMorphCancel=(()=>{r.qMorphCancel=void 0,i=!0,M()}),t.qMorphCancel=(()=>{t.qMorphCancel=void 0,i=!0,M()}),t.addEventListener("animationend",M),t.addEventListener("animationcancel",M),e=(e=>!!(!0!==i&&t&&$&&B)&&(!0===e?(M(),!0):(s=!0!==s,k="normal"===k?"reverse":"normal",$.style.animationDirection=k,q.style.animationDirection=k,B.style.animationDirection=k,t.style.animationDirection=k,!0)))}};n.waitFor>0||"transitionend"===n.waitFor||n.waitFor===Object(n.waitFor)&&"function"==typeof n.waitFor.then?(n.waitFor>0?new Promise(t=>setTimeout(t,n.waitFor)):"transitionend"===n.waitFor?new Promise(e=>{const i=setTimeout(()=>{s()},400),s=o=>{clearTimeout(i),t&&(t.removeEventListener("transitionend",s),t.removeEventListener("transitioncancel",s)),e()};t.addEventListener("transitionend",s),t.addEventListener("transitioncancel",s)}):n.waitFor).then(P).catch(()=>{"function"==typeof t.qMorphCancel&&t.qMorphCancel()}):P()}),t=>e(t)}const morphGroups={},props=["duration","delay","easing","fill","classes","style","duration","resize","useCSS","hideFromClone","keepToClone","tween","tweenFromOpacity","tweenToOpacity","waitFor","onEnd"],mods=["resize","useCSS","hideFromClone","keepToClone","tween"];function changeClass(t,e){t.clsAction!==e&&(t.clsAction=e,t.el.classList[e]("q-morph--invisible"))}function trigger(t){if(!0===t.animating||t.queue.length<2)return;const[e,i]=t.queue;t.animating=!0,e.animating=!0,i.animating=!0,changeClass(e,"remove"),changeClass(i,"remove");const s=morph({from:e.el,to:i.el,onToggle(){changeClass(e,"add"),changeClass(i,"remove")},...i.opts,onEnd(s,o){void 0!==i.opts.onEnd&&i.opts.onEnd(s,o),!0!==o&&(e.animating=!1,i.animating=!1,t.animating=!1,t.cancel=void 0,t.queue.shift(),trigger(t))}});t.cancel=(()=>{s(!0),t.cancel=void 0})}function updateModifiers$1(t,e){const i=e.opts;mods.forEach(e=>{i[e]=!0===t[e]})}function insertArgs(t,e){const i="string"==typeof t&&t.length>0?t.split(":"):[];e.name=i[0],e.group=i[1],Object.assign(e.opts,{duration:!0===isNaN(i[2])?300:parseFloat(i[2]),waitFor:i[3]})}function updateArgs(t,e){void 0!==t.group&&(e.group=t.group),void 0!==t.name&&(e.name=t.name);const i=e.opts;props.forEach(e=>{void 0!==t[e]&&(i[e]=t[e])})}function updateModel(t,e){if(e.name!==t)!1===e.animating&&changeClass(e,"add");else{const i=morphGroups[e.group];void 0===i?(morphGroups[e.group]={name:e.group,model:t,queue:[e],animating:!1},changeClass(e,"remove")):i.model!==t&&(i.model=t,i.queue.push(e),!1===i.animating&&2===i.queue.length&&trigger(i))}}function updateValue(t,e){let i;Object(e)===e?(i=""+e.model,updateArgs(e,t),updateModifiers$1(e,t)):i=""+e,i!==t.model?(t.model=i,updateModel(i,t)):!1===t.animating&&void 0!==t.clsAction&&t.el.classList[t.clsAction]("q-morph--invisible")}function destroy$6(t){const e=t.__qmorph;if(void 0!==e){const i=morphGroups[e.group];if(void 0!==i){-1!==i.queue.indexOf(e)&&(i.queue=i.queue.filter(t=>t!==e),0===i.queue.length&&(void 0!==i.cancel&&i.cancel(),delete morphGroups[e.group]))}"add"===e.clsAction&&t.classList.remove("q-morph--invisible"),delete t.__qmorph}}var Morph={name:"morph",inserted(t,e){void 0!==t.__qmorph&&(destroy$6(t),t.__qmorph_destroyed=!0);const i={el:t,animating:!1,opts:{}};updateModifiers$1(e.modifiers,i),insertArgs(e.arg,i),updateValue(i,e.value),t.__qmorph=i},update(t,e){const i=t.__qmorph;void 0!==i&&updateValue(i,e.value)},unbind(t){void 0===t.__qmorph_destroyed?destroy$6(t):delete t.__qmorph_destroyed}};const defaultCfg$1={childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0};function update$1(t,e,i){e.handler=i,void 0!==e.observer&&e.observer.disconnect(),e.observer=new MutationObserver(i=>{if("function"==typeof e.handler){!1!==e.handler(i)&&!0!==e.once||destroy$7(t)}}),e.observer.observe(t,e.opts)}function destroy$7(t){const e=t.__qmutation;void 0!==e&&(void 0!==e.observer&&e.observer.disconnect(),delete t.__qmutation)}var Mutation={name:"mutation",inserted(t,{modifiers:{once:e,...i},value:s}){void 0!==t.__qmutation&&(destroy$7(t),t.__qmutation_destroyed=!0);const o={once:e,opts:0===Object.keys(i).length?defaultCfg$1:i};update$1(t,o,s),t.__qmutation=o},update(t,{oldValue:e,value:i}){const s=t.__qmutation;void 0!==s&&e!==i&&update$1(t,s,i)},unbind(t){void 0===t.__qmutation_destroyed?destroy$7(t):delete t.__qmutation_destroyed}};function update$2(t,{value:e,oldValue:i}){"function"==typeof e?(t.handler=e,"function"!=typeof i&&(t.scrollTarget.addEventListener("scroll",t.scroll,listenOpts.passive),t.scroll())):t.scrollTarget.removeEventListener("scroll",t.scroll,listenOpts.passive)}function destroy$8(t){const e=t.__qscrollfire;void 0!==e&&(e.scrollTarget.removeEventListener("scroll",e.scroll,listenOpts.passive),e.scroll.cancel(),delete t.__qscrollfire)}var ScrollFire={name:"scroll-fire",inserted(t,e){void 0!==t.__qscrollfire&&(destroy$8(t),t.__qscrollfire_destroyed=!0);const i={scrollTarget:getScrollTarget(t),scroll:debounce(()=>{let e,s;i.scrollTarget===window?(s=t.getBoundingClientRect().bottom,e=window.innerHeight):(s=offset(t).top+height(t),e=offset(i.scrollTarget).top+height(i.scrollTarget)),s>0&&s<e&&(i.scrollTarget.removeEventListener("scroll",i.scroll,listenOpts.passive),i.handler(t))},25)};update$2(i,e),t.__qscrollfire=i},update(t,e){void 0!==t.__qscrollfire&&e.value!==e.oldValue&&update$2(t.__qscrollfire,e)},unbind(t){void 0===t.__qscrollfire_destroyed?destroy$8(t):delete t.__qscrollfire_destroyed}};function update$3(t,{value:e,oldValue:i}){"function"==typeof e?(t.handler=e,"function"!=typeof i&&t.scrollTarget.addEventListener("scroll",t.scroll,listenOpts.passive)):t.scrollTarget.removeEventListener("scroll",t.scroll,listenOpts.passive)}function destroy$9(t){const e=t.__qscroll;void 0!==e&&(e.scrollTarget.removeEventListener("scroll",e.scroll,listenOpts.passive),delete t.__qscroll)}var Scroll={name:"scroll",inserted(t,e){void 0!==t.__qscroll&&(destroy$9(t),t.__qscroll_destroyed=!0);const i={scrollTarget:getScrollTarget(t),scroll(){i.handler(getVerticalScrollPosition(i.scrollTarget),getHorizontalScrollPosition(i.scrollTarget))}};update$3(i,e),t.__qscroll=i},update(t,e){void 0!==t.__qscroll&&e.oldValue!==e.value&&update$3(t.__qscroll,e)},unbind(t){void 0===t.__qscroll_destroyed?destroy$9(t):delete t.__qscroll_destroyed}};function destroy$a(t){const e=t.__qtouchhold;void 0!==e&&(cleanEvt(e,"main"),cleanEvt(e,"temp"),clearTimeout(e.timer),void 0!==e.styleCleanup&&e.styleCleanup(),delete t.__qtouchhold)}var TouchHold={name:"touch-hold",bind(t,e){void 0!==t.__qtouchhold&&(destroy$a(t),t.__qtouchhold_destroyed=!0);const{modifiers:i}=e;if(!0!==i.mouse&&!0!==client.has.touch)return;const s={handler:e.value,noop:noop,mouseStart(t){"function"==typeof s.handler&&!0===leftClick(t)&&(addEvt(s,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),s.start(t,!0))},touchStart(t){if(void 0!==t.target&&"function"==typeof s.handler){const e=t.target;addEvt(s,"temp",[[e,"touchmove","move","passiveCapture"],[e,"touchcancel","end","notPassiveCapture"],[e,"touchend","end","notPassiveCapture"]]),s.start(t)}},start(t,e){s.origin=position(t);const i=Date.now();!0===client.is.mobile&&(document.body.classList.add("non-selectable"),clearSelection(),s.styleCleanup=(t=>{s.styleCleanup=void 0;const e=()=>{document.body.classList.remove("non-selectable")};!0===t?(clearSelection(),setTimeout(e,10)):e()})),s.triggered=!1,s.sensitivity=!0===e?s.mouseSensitivity:s.touchSensitivity,s.timer=setTimeout(()=>{clearSelection(),s.triggered=!0,s.handler({evt:t,touch:!0!==e,mouse:!0===e,position:s.origin,duration:Date.now()-i})},s.duration)},move(t){const{top:e,left:i}=position(t);(Math.abs(i-s.origin.left)>=s.sensitivity||Math.abs(e-s.origin.top)>=s.sensitivity)&&clearTimeout(s.timer)},end(t){cleanEvt(s,"temp"),void 0!==s.styleCleanup&&s.styleCleanup(s.triggered),!0===s.triggered?void 0!==t&&stopAndPrevent(t):clearTimeout(s.timer)}},o=[600,5,7];"string"==typeof e.arg&&e.arg.length>0&&e.arg.split(":").forEach((t,e)=>{const i=parseInt(t,10);i&&(o[e]=i)}),[s.duration,s.touchSensitivity,s.mouseSensitivity]=o,t.__qtouchhold=s,!0===i.mouse&&addEvt(s,"main",[[t,"mousedown","mouseStart",`passive${!0===i.mouseCapture||!0===i.mousecapture?"Capture":""}`]]),!0===client.has.touch&&addEvt(s,"main",[[t,"touchstart","touchStart",`passive${!0===i.capture?"Capture":""}`],[t,"touchend","noop","passiveCapture"]])},update(t,e){const i=t.__qtouchhold;void 0!==i&&e.oldValue!==e.value&&("function"!=typeof e.value&&i.end(),i.handler=e.value)},unbind(t){void 0===t.__qtouchhold_destroyed?destroy$a(t):delete t.__qtouchhold_destroyed}};const keyCodes$2={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},keyRegex=new RegExp(`^([\\d+]+|${Object.keys(keyCodes$2).join("|")})$`,"i");function shouldEnd(t,e){const{top:i,left:s}=position(t);return Math.abs(s-e.left)>=7||Math.abs(i-e.top)>=7}function destroy$b(t){const e=t.__qtouchrepeat;void 0!==e&&(clearTimeout(e.timer),cleanEvt(e,"main"),cleanEvt(e,"temp"),void 0!==e.styleCleanup&&e.styleCleanup(),delete t.__qtouchrepeat)}var TouchRepeat={name:"touch-repeat",bind(t,{modifiers:e,value:i,arg:s}){void 0!==t.__qtouchrepeat&&(destroy$b(t),t.__qtouchrepeat_destroyed=!0);const o=Object.keys(e).reduce((t,e)=>{if(!0===keyRegex.test(e)){const i=isNaN(parseInt(e,10))?keyCodes$2[e.toLowerCase()]:parseInt(e,10);i>=0&&t.push(i)}return t},[]);if(!0!==e.mouse&&!0!==client.has.touch&&0===o.length)return;const n="string"==typeof s&&s.length>0?s.split(":").map(t=>parseInt(t,10)):[0,600,300],r=n.length-1,a={keyboard:o,handler:i,noop:noop,mouseStart(t){void 0===a.event&&"function"==typeof a.handler&&!0===leftClick(t)&&(addEvt(a,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),a.start(t,!0))},keyboardStart(e){if("function"==typeof a.handler&&!0===isKeyCode(e,o)){if((0===n[0]||void 0!==a.event)&&(stopAndPrevent(e),t.focus(),void 0!==a.event))return;addEvt(a,"temp",[[document,"keyup","end","notPassiveCapture"],[document,"click","end","notPassiveCapture"]]),a.start(e,!1,!0)}},touchStart(t){if(void 0!==t.target&&"function"==typeof a.handler){const e=t.target;addEvt(a,"temp",[[e,"touchmove","move","passiveCapture"],[e,"touchcancel","end","notPassiveCapture"],[e,"touchend","end","notPassiveCapture"]]),a.start(t)}},start(t,e,i){function s(t){a.styleCleanup=void 0,document.documentElement.style.cursor="";const e=()=>{document.body.classList.remove("non-selectable")};!0===t?(clearSelection(),setTimeout(e,10)):e()}!0!==i&&(a.origin=position(t)),!0===client.is.mobile&&(document.body.classList.add("non-selectable"),clearSelection(),a.styleCleanup=s),a.event={touch:!0!==e&&!0!==i,mouse:!0===e,keyboard:!0===i,startTime:Date.now(),repeatCount:0};const o=()=>{if(void 0===a.event)return;0===a.event.repeatCount&&(a.event.evt=t,!0===i?a.event.keyCode=t.keyCode:a.event.position=position(t),!0!==client.is.mobile&&(document.documentElement.style.cursor="pointer",document.body.classList.add("non-selectable"),clearSelection(),a.styleCleanup=s)),a.event.duration=Date.now()-a.event.startTime,a.event.repeatCount+=1,a.handler(a.event);const e=r<a.event.repeatCount?r:a.event.repeatCount;a.timer=setTimeout(o,n[e])};0===n[0]?o():a.timer=setTimeout(o,n[0])},move(t){void 0!==a.event&&!0===shouldEnd(t,a.origin)&&clearTimeout(a.timer)},end(t){void 0!==a.event&&(void 0!==a.styleCleanup&&a.styleCleanup(!0),void 0!==t&&a.event.repeatCount>0&&stopAndPrevent(t),cleanEvt(a,"temp"),clearTimeout(a.timer),a.event=void 0)}};t.__qtouchrepeat=a,!0===e.mouse&&addEvt(a,"main",[[t,"mousedown","mouseStart",`passive${!0===e.mouseCapture||!0===e.mousecapture?"Capture":""}`]]),!0===client.has.touch&&addEvt(a,"main",[[t,"touchstart","touchStart",`passive${!0===e.capture?"Capture":""}`],[t,"touchend","noop","passiveCapture"]]),o.length>0&&addEvt(a,"main",[[t,"keydown","keyboardStart",`notPassive${!0===e.keyCapture||!0===e.keycapture?"Capture":""}`]])},update(t,{oldValue:e,value:i}){const s=t.__qtouchrepeat;void 0!==s&&e!==i&&("function"!=typeof i&&s.end(),s.handler=i)},unbind(t){void 0===t.__qtouchrepeat_destroyed?destroy$b(t):delete t.__qtouchrepeat_destroyed}},directives=Object.freeze({__proto__:null,ClosePopup:ClosePopup,GoBack:GoBack,Intersection:Intersection,Morph:Morph,Mutation:Mutation,Ripple:Ripple,ScrollFire:ScrollFire,Scroll:Scroll,TouchHold:TouchHold,TouchPan:TouchPan,TouchRepeat:TouchRepeat,TouchSwipe:TouchSwipe});let metaValue;function getProp(){return Platform.is.winphone?"msapplication-navbutton-color":Platform.is.safari?"apple-mobile-web-app-status-bar-style":"theme-color"}function getMetaTag(t){const e=document.getElementsByTagName("META");for(const i in e)if(e[i].name===t)return e[i]}function setColor(t){void 0===metaValue&&(metaValue=getProp());let e=getMetaTag(metaValue);const i=void 0===e;i&&(e=document.createElement("meta")).setAttribute("name",metaValue),e.setAttribute("content",t),i&&document.head.appendChild(e)}var AddressbarColor={install({$q:t,cfg:e}){this.set=!1!==isSSR||!0!==Platform.is.mobile||!0!==Platform.is.nativeMobile&&!0!==Platform.is.winphone&&!0!==Platform.is.safari&&!0!==Platform.is.webkit&&!0!==Platform.is.vivaldi?noop:t=>{const e=t||getBrand("primary");!0===Platform.is.nativeMobile&&window.StatusBar?window.StatusBar.backgroundColorByHexString(e):setColor(e)},t.addressbarColor=this,e.addressbarColor&&this.set(e.addressbarColor)}};const prefixes={};function promisify(t,e){try{const i=t[e]();return void 0===i?Promise.resolve():i}catch(t){return Promise.reject(t)}}function checkActive(t){t.activeEl=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||null,t.isActive=null!==t.activeEl}var AppFullscreen={isCapable:!1,isActive:!1,activeEl:null,request(t){if(!0===this.isCapable){const e=t||document.documentElement;if(e!==this.activeEl){return(!0===client.is.ie&&null!==this.activeEl&&e.contains(this.activeEl)?this.exit():Promise.resolve()).then(()=>promisify(e,prefixes.request)).catch(t=>null!==this.activeEl?this.exit().then(()=>promisify(e,prefixes.request)):Promise.reject(t)).then(t=>(checkActive(this),t))}}return this.__getErr()},exit(){return!0===this.isCapable&&!0===this.isActive?promisify(document,prefixes.exit).then(t=>(checkActive(this),this.isActive?this.exit():t)):this.__getErr()},toggle(t){const e=t||document.documentElement;return this.activeEl===e?this.exit():this.request(e)},install({$q:t}){t.fullscreen=this,this.__getErr=(()=>Promise.resolve()),!0!==isSSR&&(prefixes.request=["requestFullscreen","msRequestFullscreen","mozRequestFullScreen","webkitRequestFullscreen"].find(t=>void 0!==document.documentElement[t]),this.isCapable=void 0!==prefixes.request,!1!==this.isCapable?(prefixes.exit=["exitFullscreen","msExitFullscreen","mozCancelFullScreen","webkitExitFullscreen"].find(t=>document[t]),checkActive(this),["onfullscreenchange","onmsfullscreenchange","onwebkitfullscreenchange"].forEach(t=>{document[t]=(()=>{checkActive(this)})}),Vue.util.defineReactive(this,"isActive",this.isActive),Vue.util.defineReactive(this,"activeEl",this.activeEl)):this.__getErr=(()=>Promise.reject("Not capable")))}},AppVisibility={appVisible:!1,install({$q:t}){if(!0===isSSR)return void(this.appVisible=t.appVisible=!0);let e,i;void 0!==document.hidden?(e="hidden",i="visibilitychange"):void 0!==document.msHidden?(e="msHidden",i="msvisibilitychange"):void 0!==document.webkitHidden&&(e="webkitHidden",i="webkitvisibilitychange");const s=()=>{this.appVisible=t.appVisible=!document[e]};s(),i&&void 0!==document[e]&&(Vue.util.defineReactive(t,"appVisible",this.appVisible),document.addEventListener(i,s,!1))}};const optsGrid={staticClass:"row items-stretch justify-start",attrs:{role:"list"}},optsList={attrs:{role:"list"}},attrsGridItem={tabindex:0,role:"listitem"};var BottomSheet=Vue.extend({name:"BottomSheetPlugin",mixins:[DarkMixin,AttrsMixin],inheritAttrs:!1,props:{title:String,message:String,actions:Array,grid:Boolean,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},computed:{dialogProps(){return{...this.qAttrs,position:"bottom"}}},methods:{show(){this.$refs.dialog.show()},hide(){this.$refs.dialog.hide()},onOk(t){this.$emit("ok",t),this.hide()},__getGrid(t){return this.actions.map(e=>{const i=e.avatar||e.img;return void 0===e.label?t(QSeparator,{staticClass:"col-all",props:{dark:this.isDark}}):t("div",{staticClass:"q-bottom-sheet__item q-hoverable q-focusable cursor-pointer relative-position",class:e.classes,style:e.style,attrs:attrsGridItem,on:{click:()=>{this.onOk(e)},keyup:t=>{13===t.keyCode&&this.onOk(e)}}},[t("div",{staticClass:"q-focus-helper"}),e.icon?t(QIcon,{props:{name:e.icon,color:e.color}}):i?t("img",{attrs:{src:i},staticClass:e.avatar?"q-bottom-sheet__avatar":null}):t("div",{staticClass:"q-bottom-sheet__empty-icon"}),t("div",[e.label])])})},__getList(t){return this.actions.map(e=>{const i=e.avatar||e.img;return void 0===e.label?t(QSeparator,{props:{spaced:!0,dark:this.isDark}}):t(QItem,{staticClass:"q-bottom-sheet__item",class:e.classes,style:e.style,props:{tabindex:0,clickable:!0,dark:this.isDark},on:{click:()=>{this.onOk(e)}}},[t(QItemSection,{props:{avatar:!0}},[e.icon?t(QIcon,{props:{name:e.icon,color:e.color}}):i?t("img",{attrs:{src:i},staticClass:e.avatar?"q-bottom-sheet__avatar":null}):null]),t(QItemSection,[e.label])])})}},render(t){const e=[];return this.title&&e.push(t(QCardSection,{staticClass:"q-dialog__title"},[this.title])),this.message&&e.push(t(QCardSection,{staticClass:"q-dialog__message"},[this.message])),e.push(!0===this.grid?t("div",optsGrid,this.__getGrid(t)):t("div",optsList,this.__getList(t))),t(QDialog,{ref:"dialog",props:this.dialogProps,on:cache(this,"hide",{hide:()=>{this.$emit("hide")}})},[t(QCard,{staticClass:`q-bottom-sheet q-bottom-sheet--${!0===this.grid?"grid":"list"}`+(!0===this.isDark?" q-bottom-sheet--dark q-dark":""),style:this.cardStyle,class:this.cardClass},e)])}});const ssrAPI={onOk:()=>ssrAPI,okCancel:()=>ssrAPI,hide:()=>ssrAPI,update:()=>ssrAPI};function merge(t,e){for(const i in e)"spinner"!==i&&Object(e[i])===e[i]?(t[i]=Object(t[i])!==t[i]?{}:{...t[i]},merge(t[i],e[i])):t[i]=e[i]}let appRoot;function getDialogParent(t,e){if(void 0!==t)return t;if(void 0!==e)return e;if(void 0===appRoot){const t=document.getElementById("q-app");t&&t.__vue__&&(appRoot=t.__vue__.$root)}return appRoot}function globalDialog(t){return({className:e,class:i,style:s,component:o,root:n,parent:r,...a})=>{if(!0===isSSR)return ssrAPI;void 0!==i&&(a.cardClass=i),void 0!==s&&(a.cardStyle=s);const l=void 0!==o;let h,d;!0===l?h=o:(h=t,d=a);const c=[],u=[],p={onOk:t=>(c.push(t),p),onCancel:t=>(u.push(t),p),onDismiss:t=>(c.push(t),u.push(t),p),hide:()=>(v.$refs.dialog.hide(),p),update:({className:t,class:e,style:i,component:s,root:o,parent:n,...r})=>(null!==v&&(void 0!==e&&(r.cardClass=e),void 0!==i&&(r.cardStyle=i),!0===l?Object.assign(a,r):(merge(a,r),d={...a}),v.$forceUpdate()),p)},m=document.createElement("div");document.body.appendChild(m);let g=!1;const f={ok:t=>{g=!0,c.forEach(e=>{e(t)})},hide:()=>{v.$destroy(),v.$el.remove(),v=null,!0!==g&&u.forEach(t=>{t()})}};let v=new Vue({name:"QGlobalDialog",el:m,parent:getDialogParent(r,n),render:t=>t(h,{ref:"dialog",props:a,attrs:d,on:f}),mounted(){void 0!==this.$refs.dialog?this.$refs.dialog.show():f["hook:mounted"]=(()=>{void 0!==this.$refs.dialog&&this.$refs.dialog.show()})}});return p}}var BottomSheet$1={install({$q:t}){this.create=t.bottomSheet=globalDialog(BottomSheet)}};function encode(t){return encodeURIComponent(t)}function decode(t){return decodeURIComponent(t)}function stringifyCookieValue(t){return encode(t===Object(t)?JSON.stringify(t):""+t)}function read(t){if(""===t)return t;0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),t=decode(t.replace(/\+/g," "));try{t=JSON.parse(t)}catch(t){}return t}function getString(t){const e=new Date;return e.setMilliseconds(e.getMilliseconds()+t),e.toUTCString()}function parseExpireString(t){let e=0;const i=t.match(/(\d+)d/),s=t.match(/(\d+)h/),o=t.match(/(\d+)m/),n=t.match(/(\d+)s/);return i&&(e+=864e5*i[1]),s&&(e+=36e5*s[1]),o&&(e+=6e4*o[1]),n&&(e+=1e3*n[1]),0===e?t:getString(e)}function set(t,e,i={},s){let o,n;void 0!==i.expires&&("[object Date]"===Object.prototype.toString.call(i.expires)?o=i.expires.toUTCString():"string"==typeof i.expires?o=parseExpireString(i.expires):(n=parseFloat(i.expires),o=!1===isNaN(n)?getString(864e5*n):i.expires));const r=`${encode(t)}=${stringifyCookieValue(e)}`,a=[r,void 0!==o?"; Expires="+o:"",i.path?"; Path="+i.path:"",i.domain?"; Domain="+i.domain:"",i.sameSite?"; SameSite="+i.sameSite:"",i.httpOnly?"; HttpOnly":"",i.secure?"; Secure":"",i.other?"; "+i.other:""].join("");if(s){s.req.qCookies?s.req.qCookies.push(a):s.req.qCookies=[a],s.res.setHeader("Set-Cookie",s.req.qCookies);let e=s.req.headers.cookie||"";if(void 0!==o&&n<0){const i=get(t,s);void 0!==i&&(e=e.replace(`${t}=${i}; `,"").replace(`; ${t}=${i}`,"").replace(`${t}=${i}`,""))}else e=e?`${r}; ${e}`:a;s.req.headers.cookie=e}else document.cookie=a}function get(t,e){const i=e?e.req.headers:document,s=i.cookie?i.cookie.split("; "):[],o=s.length;let n,r,a,l=t?null:{},h=0;for(;h<o;h++)if(r=decode((n=s[h].split("=")).shift()),a=n.join("="),t){if(t===r){l=read(a);break}}else l[r]=a;return l}function remove(t,e,i){set(t,"",{expires:-1,...e},i)}function has(t,e){return null!==get(t,e)}function getObject(t){return{get:e=>get(e,t),set:(e,i,s)=>set(e,i,s,t),has:e=>has(e,t),remove:(e,i)=>remove(e,i,t),getAll:()=>get(null,t)}}var Cookies={parseSSR(t){return void 0!==t?getObject(t):this},install({$q:t,queues:e}){!0===isSSR?e.server.push((t,e)=>{t.cookies=getObject(e.ssr)}):(Object.assign(this,getObject()),t.cookies=this)}},DialogPlugin=Vue.extend({name:"DialogPlugin",mixins:[DarkMixin,AttrsMixin],inheritAttrs:!1,props:{title:String,message:String,prompt:Object,options:Object,progress:[Boolean,Object],html:Boolean,ok:{type:[String,Object,Boolean],default:!0},cancel:[String,Object,Boolean],focus:{type:String,default:"ok",validator:t=>["ok","cancel","none"].includes(t)},stackButtons:Boolean,color:String,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},computed:{classes(){return"q-dialog-plugin"+(!0===this.isDark?" q-dialog-plugin--dark q-dark":"")+(!1!==this.progress?" q-dialog-plugin--progress":"")},spinner(){if(!1!==this.progress)return!0===isObject(this.progress)?{component:this.progress.spinner||QSpinner,props:{color:this.progress.color||this.vmColor}}:{component:QSpinner,props:{color:this.vmColor}}},hasForm(){return void 0!==this.prompt||void 0!==this.options},okLabel(){return!0===isObject(this.ok)?this.$q.lang.label.ok:!0===this.ok?this.$q.lang.label.ok:this.ok},cancelLabel(){return!0===isObject(this.cancel)?this.$q.lang.label.cancel:!0===this.cancel?this.$q.lang.label.cancel:this.cancel},vmColor(){return this.color||(!0===this.isDark?"amber":"primary")},okDisabled(){return void 0!==this.prompt?void 0!==this.prompt.isValid&&!0!==this.prompt.isValid(this.prompt.model):void 0!==this.options?void 0!==this.options.isValid&&!0!==this.options.isValid(this.options.model):void 0},okProps(){return{color:this.vmColor,label:this.okLabel,ripple:!1,disable:this.okDisabled,...!0===isObject(this.ok)?this.ok:{flat:!0}}},cancelProps(){return{color:this.vmColor,label:this.cancelLabel,ripple:!1,...!0===isObject(this.cancel)?this.cancel:{flat:!0}}}},methods:{show(){this.$refs.dialog.show()},hide(){this.$refs.dialog.hide()},getPrompt(t){return[t(QInput,{props:{value:this.prompt.model,type:this.prompt.type,label:this.prompt.label,stackLabel:this.prompt.stackLabel,outlined:this.prompt.outlined,filled:this.prompt.filled,standout:this.prompt.standout,rounded:this.prompt.rounded,square:this.prompt.square,counter:this.prompt.counter,maxlength:this.prompt.maxlength,prefix:this.prompt.prefix,suffix:this.prompt.suffix,color:this.vmColor,dense:!0,autofocus:!0,dark:this.isDark},attrs:this.prompt.attrs,on:cache(this,"prompt",{input:t=>{this.prompt.model=t},keyup:t=>{!0!==this.okDisabled&&"textarea"!==this.prompt.type&&!0===isKeyCode(t,13)&&this.onOk()}})})]},getOptions(t){return[t(QOptionGroup,{props:{value:this.options.model,type:this.options.type,color:this.vmColor,inline:this.options.inline,options:this.options.items,dark:this.isDark},on:cache(this,"opts",{input:t=>{this.options.model=t}})})]},getButtons(t){const e=[];if(this.cancel&&e.push(t(QBtn,{props:this.cancelProps,attrs:{"data-autofocus":"cancel"===this.focus&&!0!==this.hasForm},on:cache(this,"cancel",{click:this.onCancel})})),this.ok&&e.push(t(QBtn,{props:this.okProps,attrs:{"data-autofocus":"ok"===this.focus&&!0!==this.hasForm},on:cache(this,"ok",{click:this.onOk})})),e.length>0)return t(QCardActions,{staticClass:!0===this.stackButtons?"items-end":null,props:{vertical:this.stackButtons,align:"right"}},e)},onOk(){this.$emit("ok",cloneDeep(this.getData())),this.hide()},onCancel(){this.hide()},getData(){return void 0!==this.prompt?this.prompt.model:void 0!==this.options?this.options.model:void 0},getSection(t,e,i){return!0===this.html?t(QCardSection,{staticClass:e,domProps:{innerHTML:i}}):t(QCardSection,{staticClass:e},[i])}},render(t){const e=[];return this.title&&e.push(this.getSection(t,"q-dialog__title",this.title)),!1!==this.progress&&e.push(t(QCardSection,{staticClass:"q-dialog__progress"},[t(this.spinner.component,{props:this.spinner.props})])),this.message&&e.push(this.getSection(t,"q-dialog__message",this.message)),void 0!==this.prompt?e.push(t(QCardSection,{staticClass:"scroll q-dialog-plugin__form"},this.getPrompt(t))):void 0!==this.options&&e.push(t(QSeparator,{props:{dark:this.isDark}}),t(QCardSection,{staticClass:"scroll q-dialog-plugin__form"},this.getOptions(t)),t(QSeparator,{props:{dark:this.isDark}})),(this.ok||this.cancel)&&e.push(this.getButtons(t)),t(QDialog,{ref:"dialog",props:{...this.qAttrs,value:this.value},on:cache(this,"hide",{hide:()=>{this.$emit("hide")}})},[t(QCard,{staticClass:this.classes,style:this.cardStyle,class:this.cardClass,props:{dark:this.isDark}},e)])}}),Dialog={install({$q:t}){this.create=t.dialog=globalDialog(DialogPlugin)}},LoadingBar={isActive:!1,start:noop,stop:noop,increment:noop,setDefaults:noop,install({$q:t,cfg:e}){if(t.loadingBar=this,!0===isSSR)return;const i=void 0!==e.loadingBar?{...e.loadingBar}:{},s={start:()=>{this.isActive=!0},stop:()=>{this.isActive=!1}},o=new Vue({name:"LoadingBar",devtools:{hide:!0},beforeCreate(){void 0===this._routerRoot&&(this._routerRoot={})},render:t=>t(QAjaxBar,{ref:"bar",props:i,on:s})}).$mount().$refs.bar;Object.assign(this,{start:o.start,stop:o.stop,increment:o.increment,setDefaults:t=>{!0===isObject(t)&&Object.assign(i,t),o.$parent.$forceUpdate()}}),Vue.util.defineReactive(this,"isActive",this.isActive),Vue.util.defineReactive(o,"isActive",this.isActive),o.setDefaults=this.setDefaults,document.body.appendChild(o.$parent.$el)}};let vm,timeout,uid$2=0,props$1={},activeGroups={};const originalDefaults={group:"__default_quasar_group__",delay:0,message:!1,spinnerSize:80,spinnerColor:"white",messageColor:"white",backgroundColor:"black",spinner:QSpinner,customClass:""},defaults={...originalDefaults};function registerProps(t){if(t&&void 0!==t.group&&void 0!==activeGroups[t.group])return Object.assign(activeGroups[t.group],t);const e=!0===isObject(t)&&!0===t.ignoreDefaults?{...originalDefaults,...t}:{...defaults,...t};return activeGroups[e.group]=e,e}const Loading={isActive:!1,show(t){if(!0===isSSR)return;props$1=registerProps(t);const{group:e}=props$1;return props$1.customClass+=` text-${props$1.backgroundColor}`,this.isActive=!0,void 0!==vm?(props$1.uid=uid$2,vm.$forceUpdate()):(props$1.uid=++uid$2,clearTimeout(timeout),timeout=setTimeout(()=>{timeout=void 0;const t=document.createElement("div");document.body.appendChild(t),vm=new Vue({name:"QLoading",devtools:{hide:!0},beforeCreate(){void 0===this._routerRoot&&(this._routerRoot={})},el:t,mounted(){preventScroll(!0)},render:t=>t("transition",{props:{name:"q-transition--fade",appear:!0},on:cache(this,"tr",{"after-leave":()=>{!0!==this.isActive&&void 0!==vm&&(preventScroll(!1),vm.$destroy(),vm.$el.remove(),vm=void 0)}})},[!0===this.isActive?t("div",{staticClass:"q-loading fullscreen column flex-center z-max",key:props$1.uid,class:props$1.customClass.trim()},[t(props$1.spinner,{props:{color:props$1.spinnerColor,size:props$1.spinnerSize}}),props$1.message&&t("div",{class:`text-${props$1.messageColor}`,domProps:{[!0===props$1.sanitize?"textContent":"innerHTML"]:props$1.message}})||void 0]):null])})},props$1.delay)),t=>{void 0!==t&&Object(t)===t?this.show({...t,group:e}):this.hide(e)}},hide(t){if(!0===this.isActive){if(void 0===t)activeGroups={};else{if(void 0===activeGroups[t])return;{delete activeGroups[t];const e=Object.keys(activeGroups);if(0!==e.length){const t=e[e.length-1];return void this.show({group:t})}}}void 0!==timeout&&(clearTimeout(timeout),timeout=void 0),this.isActive=!1}},setDefaults(t){!0===isObject(t)&&Object.assign(defaults,t)},install({$q:t,cfg:{loading:e}}){this.setDefaults(e),t.loading=this}};let updateId,ssrTakeover;function normalize(t){t.title&&(t.title=t.titleTemplate?t.titleTemplate(t.title):t.title,delete t.titleTemplate),[["meta","content"],["link","href"]].forEach(e=>{const i=t[e[0]],s=e[1];for(const t in i){const e=i[t];e.template&&(1===Object.keys(e).length?delete i[t]:(e[s]=e.template(e[s]||""),delete e.template))}})}function changed(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!0;for(const i in t)if(t[i]!==e[i])return!0}function bodyFilter(t){return!1===["class","style"].includes(t)}function htmlFilter(t){return!1===["lang","dir"].includes(t)}function diff(t,e){const i={},s={};return void 0===t?{add:e,remove:s}:(t.title!==e.title&&(i.title=e.title),["meta","link","script","htmlAttr","bodyAttr"].forEach(o=>{const n=t[o],r=e[o];if(s[o]=[],void 0!==n&&null!==n){i[o]={};for(const t in n)!1===r.hasOwnProperty(t)&&s[o].push(t);for(const t in r)!1===n.hasOwnProperty(t)?i[o][t]=r[t]:!0===changed(n[t],r[t])&&(s[o].push(t),i[o][t]=r[t])}else i[o]=r}),{add:i,remove:s})}function apply$1({add:t,remove:e}){t.title&&(document.title=t.title),Object.keys(e).length>0&&(["meta","link","script"].forEach(t=>{e[t].forEach(e=>{document.head.querySelector(`${t}[data-qmeta="${e}"]`).remove()})}),e.htmlAttr.filter(htmlFilter).forEach(t=>{document.documentElement.removeAttribute(t)}),e.bodyAttr.filter(bodyFilter).forEach(t=>{document.body.removeAttribute(t)})),["meta","link","script"].forEach(e=>{const i=t[e];for(const t in i){const s=document.createElement(e);for(const e in i[t])"innerHTML"!==e&&s.setAttribute(e,i[t][e]);s.setAttribute("data-qmeta",t),"script"===e&&(s.innerHTML=i[t].innerHTML||""),document.head.appendChild(s)}}),Object.keys(t.htmlAttr).filter(htmlFilter).forEach(e=>{document.documentElement.setAttribute(e,t.htmlAttr[e]||"")}),Object.keys(t.bodyAttr).filter(bodyFilter).forEach(e=>{document.body.setAttribute(e,t.bodyAttr[e]||"")})}function parseMeta(t,e){!0!==t._inactive&&(!0===hasMeta(t)&&(extend(!0,e,t.__qMeta),!0===t.$options.meta.stopPropagation)||t.$children.forEach(t=>{parseMeta(t,e)}))}function updateClient(){!0===ssrTakeover&&(ssrTakeover=!1,this.$root.__currentMeta=window.__Q_META__);const t={title:"",titleTemplate:null,meta:{},link:{},script:{},htmlAttr:{},bodyAttr:{}};parseMeta(this.$root,t),normalize(t),apply$1(diff(this.$root.__currentMeta,t)),this.$root.__currentMeta=t}function getAttr(t){return e=>{const i=t[e];return e+(!0!==i&&void 0!==i?`="${i}"`:"")}}function getHead(t){let e="";return t.title&&(e+=`<title>${t.title}</title>`),["meta","link","script"].forEach(i=>{const s=t[i];for(const t in s){const o=Object.keys(s[t]).filter(t=>"innerHTML"!==t).map(getAttr(s[t]));e+=`<${i} ${o.join(" ")} data-qmeta="${t}">`,"script"===i&&(e+=`${s[t].innerHTML||""}<\/script>`)}}),e}function getServerMeta(t,e,i){const s={title:"",titleTemplate:null,meta:{},link:{},htmlAttr:{},bodyAttr:{},noscript:{}};parseMeta(t,s),normalize(s);const o=void 0!==i&&void 0!==i.nonce?` nonce="${i.nonce}"`:"",n={"%%Q_HTML_ATTRS%%":Object.keys(s.htmlAttr).filter(htmlFilter).map(getAttr(s.htmlAttr)).join(" "),"%%Q_HEAD_TAGS%%":getHead(s),"%%Q_BODY_ATTRS%%":Object.keys(s.bodyAttr).filter(bodyFilter).map(getAttr(s.bodyAttr)).join(" "),"%%Q_BODY_TAGS%%":Object.keys(s.noscript).map(t=>`<noscript data-qmeta="${t}">${s.noscript[t]}</noscript>`).join("")+`<script${o}>window.__Q_META__=${delete s.noscript&&JSON.stringify(s)}<\/script>`};return Object.keys(n).forEach(t=>{e=e.replace(t,n[t])}),e}function beforeCreate(){"function"==typeof this.$options.meta?(void 0===this.$options.computed&&(this.$options.computed={}),this.$options.computed.__qMeta=this.$options.meta):!0===hasMeta(this)&&(this.__qMeta=this.$options.meta)}function hasMeta(t){return void 0!==t.$options.meta&&null!==t.$options.meta}function triggerMeta(){!0===hasMeta(this)&&this.__qMetaUpdate()}!1===isSSR&&Vue.util.defineReactive(Loading,"isActive",Loading.isActive);var Meta={install({queues:t}){!0===isSSR?(Vue.prototype.$getMetaHTML=(t=>(e,i)=>getServerMeta(t,e,i)),Vue.mixin({beforeCreate:beforeCreate}),t.server.push((t,e)=>{e.ssr.Q_HTML_ATTRS+=" %%Q_HTML_ATTRS%%",Object.assign(e.ssr,{Q_HEAD_TAGS:"%%Q_HEAD_TAGS%%",Q_BODY_ATTRS:"%%Q_BODY_ATTRS%%",Q_BODY_TAGS:"%%Q_BODY_TAGS%%"})})):(ssrTakeover=fromSSR,Vue.mixin({beforeCreate:beforeCreate,created(){!0===hasMeta(this)&&(this.__qMetaUnwatch=this.$watch("__qMeta",this.__qMetaUpdate))},activated:triggerMeta,deactivated:triggerMeta,beforeMount:triggerMeta,destroyed(){!0===hasMeta(this)&&(this.__qMetaUnwatch(),this.__qMetaUpdate())},methods:{__qMetaUpdate(){clearTimeout(updateId),updateId=setTimeout(updateClient.bind(this),50)}}}))}};let vm$1,uid$3=0;const defaults$1={},groups={},notificationsList={},positionClass$1={},emptyRE=/^\s*$/,positionList=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],badgePositions=["top-left","top-right","bottom-left","bottom-right"],notifTypes={positive:{icon:t=>t.iconSet.type.positive,color:"positive"},negative:{icon:t=>t.iconSet.type.negative,color:"negative"},warning:{icon:t=>t.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:t=>t.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}};function addNotification(t,e,i){if(!t)return logError("parameter required");let s;const o={textColor:"white"};if(!0!==t.ignoreDefaults&&Object.assign(o,defaults$1),!1===isObject(t)&&(o.type&&Object.assign(o,notifTypes[o.type]),t={message:t}),Object.assign(o,notifTypes[t.type||o.type],t),"function"==typeof o.icon&&(o.icon=o.icon(e.$q)),o.spinner?!0===o.spinner&&(o.spinner=QSpinner):o.spinner=!1,o.meta={hasMedia:Boolean(!1!==o.spinner||o.icon||o.avatar),hasText:hasContent(o.message)||hasContent(o.caption)},o.position){if(!1===positionList.includes(o.position))return logError("wrong position",t)}else o.position="bottom";if(void 0===o.timeout)o.timeout=5e3;else{const e=parseInt(o.timeout,10);if(isNaN(e)||e<0)return logError("wrong timeout",t);o.timeout=e}0===o.timeout?o.progress=!1:!0===o.progress&&(o.meta.progressClass="q-notification__progress"+(o.progressClass?` ${o.progressClass}`:""),o.meta.progressStyle={animationDuration:`${o.timeout+1e3}ms`});const n=(!0===Array.isArray(t.actions)?t.actions:[]).concat(!0!==t.ignoreDefaults&&!0===Array.isArray(defaults$1.actions)?defaults$1.actions:[]).concat(void 0!==notifTypes[t.type]&&!0===Array.isArray(notifTypes[t.type].actions)?notifTypes[t.type].actions:[]),{closeBtn:r}=o;if(r&&n.push({label:"string"==typeof r?r:e.$q.lang.label.close}),o.actions=n.map(({handler:t,noDismiss:e,style:i,class:s,attrs:o,...n})=>({staticClass:s,style:i,props:{flat:!0,...n},attrs:o,on:{click:"function"==typeof t?()=>{t(),!0!==e&&a()}:()=>{a()}}})),void 0===o.multiLine&&(o.multiLine=o.actions.length>1),Object.assign(o.meta,{staticClass:"q-notification row items-stretch"+` q-notification--${!0===o.multiLine?"multi-line":"standard"}`+(void 0!==o.color?` bg-${o.color}`:"")+(void 0!==o.textColor?` text-${o.textColor}`:"")+(void 0!==o.classes?` ${o.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(!0===o.multiLine?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(!0===o.multiLine?"":" col"),leftClass:!0===o.meta.hasText?"additional":"single",attrs:{role:"alert",...o.attrs}}),!1===o.group?(o.group=void 0,o.meta.group=void 0):(void 0!==o.group&&!0!==o.group||(o.group=[o.message,o.caption,o.multiline].concat(o.actions.map(({props:t})=>`${t.label}*${t.icon}`)).join("|")),o.meta.group=o.group+"|"+o.position),0===o.actions.length?o.actions=void 0:o.meta.actionsClass="q-notification__actions row items-center "+(!0===o.multiLine?"justify-end":"col-auto")+(!0===o.meta.hasMedia?" q-notification__actions--with-media":""),void 0!==i){clearTimeout(i.notif.meta.timer),o.meta.uid=i.notif.meta.uid;const t=notificationsList[o.position].indexOf(i.notif);notificationsList[o.position][t]=o}else{const e=groups[o.meta.group];if(void 0===e){if(o.meta.uid=uid$3++,o.meta.badge=1,-1!==["left","right","center"].indexOf(o.position))notificationsList[o.position].splice(Math.floor(notificationsList[o.position].length/2),0,o);else{const t=o.position.indexOf("top")>-1?"unshift":"push";notificationsList[o.position][t](o)}void 0!==o.group&&(groups[o.meta.group]=o)}else{if(clearTimeout(e.meta.timer),void 0!==o.badgePosition){if(!1===badgePositions.includes(o.badgePosition))return logError("wrong badgePosition",t)}else o.badgePosition=`top-${o.position.indexOf("left")>-1?"right":"left"}`;o.meta.uid=e.meta.uid,o.meta.badge=e.meta.badge+1,o.meta.badgeClass=`q-notification__badge q-notification__badge--${o.badgePosition}`+(void 0!==o.badgeColor?` bg-${o.badgeColor}`:"")+(void 0!==o.badgeTextColor?` text-${o.badgeTextColor}`:"")+(o.badgeClass?` ${o.badgeClass}`:"");const i=notificationsList[o.position].indexOf(e);notificationsList[o.position][i]=groups[o.meta.group]=o}}const a=()=>{removeNotification(o,e),s=void 0};return e.$forceUpdate(),o.timeout>0&&(o.meta.timer=setTimeout(()=>{a()},o.timeout+1e3)),void 0!==o.group?e=>{void 0!==e?logError("trying to update a grouped one which is forbidden",t):a()}:(s={dismiss:a,config:t,notif:o},void 0===i?t=>{if(void 0!==s)if(void 0===t)s.dismiss();else{addNotification(Object.assign({},s.config,t,{group:!1,position:o.position}),e,s)}}:void Object.assign(i,s))}function removeNotification(t,e){clearTimeout(t.meta.timer);const i=notificationsList[t.position].indexOf(t);if(-1!==i){void 0!==t.group&&delete groups[t.meta.group];const s=e.$refs[""+t.meta.uid];if(s){const{width:t,height:e}=getComputedStyle(s);s.style.left=`${s.offsetLeft}px`,s.style.width=t,s.style.height=e}notificationsList[t.position].splice(i,1),e.$forceUpdate(),"function"==typeof t.onDismiss&&t.onDismiss()}}function hasContent(t){return void 0!==t&&null!==t&&!0!==emptyRE.test(t)}function logError(t,e){return console.error(`Notify: ${t}`,e),!1}const Notifications={name:"QNotifications",devtools:{hide:!0},beforeCreate(){void 0===this._routerRoot&&(this._routerRoot={})},render:t=>t("div",{staticClass:"q-notifications"},positionList.map(e=>t("transition-group",{key:e,staticClass:positionClass$1[e],tag:"div",props:{name:`q-notification--${e}`,mode:"out-in"}},notificationsList[e].map(e=>{const{meta:i}=e,s=[];if(!0===i.hasMedia&&(!1!==e.spinner?s.push(t(e.spinner,{staticClass:"q-notification__spinner q-notification__spinner--"+i.leftClass,props:{color:e.spinnerColor,size:e.spinnerSize}})):e.icon?s.push(t(QIcon,{staticClass:"q-notification__icon q-notification__icon--"+i.leftClass,attrs:{role:"img"},props:{name:e.icon,color:e.iconColor,size:e.iconSize}})):e.avatar&&s.push(t(QAvatar,{staticClass:"q-notification__avatar q-notification__avatar--"+i.leftClass},[t("img",{attrs:{src:e.avatar,"aria-hidden":"true"}})]))),!0===i.hasText){let i;const o={staticClass:"q-notification__message col"};if(!0===e.html)o.domProps={innerHTML:e.caption?`<div>${e.message}</div><div class="q-notification__caption">${e.caption}</div>`:e.message};else{const s=[e.message];i=e.caption?[t("div",s),t("div",{staticClass:"q-notification__caption"},[e.caption])]:s}s.push(t("div",o,i))}const o=[t("div",{staticClass:i.contentClass},s)];return!0===e.progress&&o.push(t("div",{key:`${i.uid}|p|${i.badge}`,staticClass:i.progressClass,style:i.progressStyle})),void 0!==e.actions&&o.push(t("div",{staticClass:i.actionsClass},e.actions.map(e=>t(QBtn,{...e})))),i.badge>1&&o.push(t("div",{key:`${i.uid}|${i.badge}`,staticClass:i.badgeClass,style:e.badgeStyle},[i.badge])),t("div",{ref:""+i.uid,key:i.uid,staticClass:i.staticClass,attrs:i.attrs},[t("div",{staticClass:i.wrapperClass},o)])})))),mounted(){if(void 0!==this.$q.fullscreen&&!0===this.$q.fullscreen.isCapable){const t=()=>{const t=getBodyFullscreenElement(this.$q.fullscreen.activeEl);this.$el.parentElement!==t&&t.appendChild(this.$el)};this.unwatchFullscreen=this.$watch("$q.fullscreen.activeEl",debounce(t,50)),!0===this.$q.fullscreen.isActive&&t()}},beforeDestroy(){void 0!==this.unwatchFullscreen&&this.unwatchFullscreen()}};var Notify={setDefaults(t){!0!==isSSR&&!0===isObject(t)&&Object.assign(defaults$1,t)},registerType(t,e){!0!==isSSR&&!0===isObject(e)&&(notifTypes[t]=e)},install({$q:t}){if(t.notify=this.create=!0===isSSR?noop:t=>addNotification(t,vm$1),t.notify.setDefaults=this.setDefaults,t.notify.registerType=this.registerType,void 0!==t.config.notify&&this.setDefaults(t.config.notify),!0!==isSSR){positionList.forEach(t=>{notificationsList[t]=[];const e=!0===["left","center","right"].includes(t)?"center":t.indexOf("top")>-1?"top":"bottom",i=t.indexOf("left")>-1?"start":t.indexOf("right")>-1?"end":"center",s=["left","right"].includes(t)?`items-${"left"===t?"start":"end"} justify-center`:"center"===t?"flex-center":`items-${i}`;positionClass$1[t]=`q-notifications__list q-notifications__list--${e} fixed column no-wrap ${s}`});const t=document.createElement("div");document.body.appendChild(t),(vm$1=new Vue(Notifications)).$mount(t)}}};function encode$1(t){return!0===isDate(t)?"__q_date|"+t.toUTCString():!0===isRegexp(t)?"__q_expr|"+t.source:"number"==typeof t?"__q_numb|"+t:"boolean"==typeof t?"__q_bool|"+(t?"1":"0"):"string"==typeof t?"__q_strn|"+t:"function"==typeof t?"__q_strn|"+t.toString():t===Object(t)?"__q_objt|"+JSON.stringify(t):t}function decode$1(t){if(t.length<9)return t;const e=t.substr(0,8),i=t.substring(9);switch(e){case"__q_date":return new Date(i);case"__q_expr":return new RegExp(i);case"__q_numb":return Number(i);case"__q_bool":return Boolean("1"===i);case"__q_strn":return""+i;case"__q_objt":return JSON.parse(i);default:return t}}function getEmptyStorage(){const t=()=>null;return{has:()=>!1,getLength:()=>0,getItem:t,getIndex:t,getKey:t,getAll:()=>{},getAllKeys:()=>[],set:noop,remove:noop,clear:noop,isEmpty:()=>!0}}function getStorage(t){const e=window[t+"Storage"],i=t=>{const i=e.getItem(t);return i?decode$1(i):null};return{has:t=>null!==e.getItem(t),getLength:()=>e.length,getItem:i,getIndex:t=>t<e.length?i(e.key(t)):null,getKey:t=>t<e.length?e.key(t):null,getAll:()=>{let t;const s={},o=e.length;for(let n=0;n<o;n++)s[t=e.key(n)]=i(t);return s},getAllKeys:()=>{const t=[],i=e.length;for(let s=0;s<i;s++)t.push(e.key(s));return t},set:(t,i)=>{e.setItem(t,encode$1(i))},remove:t=>{e.removeItem(t)},clear:()=>{e.clear()},isEmpty:()=>0===e.length}}var LocalStorage={install({$q:t}){const e=!0===isSSR||!1===client.has.webStorage?getEmptyStorage():getStorage("local");t.localStorage=e,Object.assign(this,e)}},SessionStorage={install({$q:t}){const e=!0===isSSR||!1===client.has.webStorage?getEmptyStorage():getStorage("session");t.sessionStorage=e,Object.assign(this,e)}},plugins=Object.freeze({__proto__:null,AddressbarColor:AddressbarColor,AppFullscreen:AppFullscreen,AppVisibility:AppVisibility,BottomSheet:BottomSheet$1,Cookies:Cookies,Dark:Dark,Dialog:Dialog,LoadingBar:LoadingBar,Loading:Loading,Meta:Meta,Notify:Notify,Platform:Platform,Screen:Screen,LocalStorage:LocalStorage,SessionStorage:SessionStorage});function fallback(t){const e=document.createElement("textarea");e.value=t,e.contentEditable=!0,e.style.position="fixed",document.body.appendChild(e),e.focus(),e.select();const i=document.execCommand("copy");return e.remove(),i}function copyToClipboard(t){return void 0!==navigator.clipboard?navigator.clipboard.writeText(t):new Promise((e,i)=>{const s=fallback(t);s?e(!0):i(s)})}function clean(t){setTimeout(()=>{window.URL.revokeObjectURL(t.href)},1e4),t.remove()}function exportFile(t,e,i){const s=new Blob([e],{type:i||"text/plain"});if(window.navigator.msSaveOrOpenBlob)return window.navigator.msSaveOrOpenBlob(s,t);const o=document.createElement("a");o.download=t,o.href=window.URL.createObjectURL(s),o.classList.add("hidden"),o.style.position="fixed",document.body.appendChild(o);try{return o.click(),clean(o),!0}catch(t){return clean(o),t}}function parseFeatures(t){const e=Object.assign({noopener:!0},t),i=[];return Object.keys(e).forEach(t=>{!0===e[t]&&i.push(t)}),i.join(",")}function openWindow(t,e,i){let s=window.open;if(!0===Platform.is.cordova){if(void 0!==cordova&&void 0!==cordova.InAppBrowser&&void 0!==cordova.InAppBrowser.open)s=cordova.InAppBrowser.open;else if(void 0!==navigator&&void 0!==navigator.app)return navigator.app.loadUrl(t,{openExternal:!0})}else if(void 0!==Vue.prototype.$q.electron)return Vue.prototype.$q.electron.shell.openExternal(t);const o=s(t,"_blank",parseFeatures(i));if(o)return Platform.is.desktop&&o.focus(),o;e&&e()}var openUrl=(t,e,i)=>{if(!0!==Platform.is.ios||void 0===window.SafariViewController)return openWindow(t,e,i);window.SafariViewController.isAvailable(s=>{s?window.SafariViewController.show({url:t},noop,e):openWindow(t,e,i)})};function parsePromises(t){const e=Array.isArray(t);if(!0===e){const i=t.length;return{isList:e,totalJobs:i,resultAggregator:Array(i).fill(null)}}const i=Object.keys(t),s={};return i.forEach(t=>{s[t]=null}),{isList:e,totalJobs:i.length,resultAggregator:s,resultKeys:i}}function runSequentialPromises(t,{threadsNumber:e=1,abortOnFail:i=!0}={}){let s=-1,o=!1;const{isList:n,totalJobs:r,resultAggregator:a,resultKeys:l}=parsePromises(t),h=Array(e).fill((()=>new Promise((e,h)=>{!function d(){const c=++s;if(!0===o||c>=r)return void e();const u=!0===n?c:l[c];t[u](a).then(t=>{!0!==o?(a[u]={key:u,status:"fulfilled",value:t},setTimeout(d)):e()}).catch(t=>{if(!0===o)return void e();const s={key:u,status:"rejected",reason:t};if(a[u]=s,!0===i)return o=!0,void h({...s,resultAggregator:a});setTimeout(d)})}()}))());return Promise.all(h).then(()=>a)}var utils=Object.freeze({__proto__:null,clone:cloneDeep,colors:colors,copyToClipboard:copyToClipboard,date:date,debounce:debounce,dom:dom,event:event,noop:noop,exportFile:exportFile,extend:extend,format:format,frameDebounce:frameDebounce,is:is,morph:morph,openURL:openUrl,patterns:patterns,runSequentialPromises:runSequentialPromises,scroll:scroll,throttle:throttle,uid:uid}),index_common={...VuePlugin,install(t,e){VuePlugin.install(t,{components:components$1,directives:directives,plugins:plugins,...e})},Quasar:VuePlugin,...components$1,...directives,...plugins,...utils};module.exports=index_common;
|
|
6
|
+
"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var Vue=_interopDefault(require("vue")),version="1.22.8";const isSSR="undefined"==typeof window;let iosCorrection,fromSSR=!1,onSSR=isSSR,iosEmulated=!1;function getMatch(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]||""}}function getPlatformMatch(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)||[]}const hasTouch=!1===isSSR&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function applyIosCorrection(t){iosCorrection={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})}function getPlatform(t){const e=t.toLowerCase(),i=getMatch(e,getPlatformMatch(e)),s={};i.browser&&(s[i.browser]=!0,s.version=i.version,s.versionNumber=parseInt(i.versionNumber,10)),i.platform&&(s[i.platform]=!0);const o=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];return!0===o||e.indexOf("mobile")>-1?(s.mobile=!0,s.edga||s.edgios?(s.edge=!0,i.browser="edge"):s.crios?(s.chrome=!0,i.browser="chrome"):s.fxios&&(s.firefox=!0,i.browser="firefox")):s.desktop=!0,(s.ipod||s.ipad||s.iphone)&&(s.ios=!0),s["windows phone"]&&(s.winphone=!0,delete s["windows phone"]),(s.chrome||s.opr||s.safari||s.vivaldi||!0===s.mobile&&!0!==s.ios&&!0!==o)&&(s.webkit=!0),(s.rv||s.iemobile)&&(i.browser="ie",s.ie=!0),(s.safari&&s.blackberry||s.bb)&&(i.browser="blackberry",s.blackberry=!0),s.safari&&s.playbook&&(i.browser="playbook",s.playbook=!0),s.opr&&(i.browser="opera",s.opera=!0),s.safari&&s.android&&(i.browser="android",s.android=!0),s.safari&&s.kindle&&(i.browser="kindle",s.kindle=!0),s.safari&&s.silk&&(i.browser="silk",s.silk=!0),s.vivaldi&&(i.browser="vivaldi",s.vivaldi=!0),s.name=i.browser,s.platform=i.platform,!1===isSSR&&(e.indexOf("electron")>-1?s.electron=!0:document.location.href.indexOf("-extension://")>-1?s.bex=!0:(void 0!==window.Capacitor?(s.capacitor=!0,s.nativeMobile=!0,s.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(s.cordova=!0,s.nativeMobile=!0,s.nativeMobileWrapper="cordova"),!0===hasTouch&&!0===s.mac&&(!0===s.desktop&&!0===s.safari||!0===s.nativeMobile&&!0!==s.android&&!0!==s.ios&&!0!==s.ipad)&&applyIosCorrection(s)),!0===(fromSSR=void 0===s.nativeMobile&&void 0===s.electron&&null!==document.querySelector("[data-server-rendered]"))&&(onSSR=!0)),s}const userAgent=!0!==isSSR?navigator.userAgent||navigator.vendor||window.opera:"",ssrClient={has:{touch:!1,webStorage:!1},within:{iframe:!1}},client=!1===isSSR?{userAgent:userAgent,is:getPlatform(userAgent),has:{touch:hasTouch,webStorage:(()=>{try{if(window.localStorage)return!0}catch(t){}return!1})()},within:{iframe:window.self!==window.top}}:ssrClient,Platform={install(t,e){!0===isSSR?e.server.push((t,e)=>{t.platform=this.parseSSR(e.ssr)}):!0===fromSSR?(Object.assign(this,client,iosCorrection,ssrClient),e.takeover.push(t=>{onSSR=fromSSR=!1,Object.assign(t.platform,client),iosCorrection=void 0}),Vue.util.defineReactive(t,"platform",this)):(Object.assign(this,client),t.platform=this)}};!0===isSSR?Platform.parseSSR=(t=>{const e=t.req.headers["user-agent"]||t.req.headers["User-Agent"]||"";return{...client,userAgent:e,is:getPlatform(e)}}):iosEmulated=!0===client.is.ios&&-1===window.navigator.vendor.toLowerCase().indexOf("apple");const listenOpts={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{var opts=Object.defineProperty({},"passive",{get(){Object.assign(listenOpts,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,opts),window.removeEventListener("qtest",null,opts)}catch(t){}function noop(){}function leftClick(t){return 0===t.button}function middleClick(t){return 1===t.button}function rightClick(t){return 2===t.button}function position(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 getEventPath(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 LINE_HEIGHT=40,PAGE_HEIGHT=800;function getMouseWheelDistance(t){let e=t.deltaX,i=t.deltaY;if((e||i)&&t.deltaMode){const s=1===t.deltaMode?LINE_HEIGHT:PAGE_HEIGHT;e*=s,i*=s}return t.shiftKey&&!e&&([i,e]=[e,i]),{x:e,y:i}}function stop(t){t.stopPropagation()}function prevent(t){!1!==t.cancelable&&t.preventDefault()}function stopAndPrevent(t){!1!==t.cancelable&&t.preventDefault(),t.stopPropagation()}function stopAndPreventClick(t){if(stopAndPrevent(t),"mousedown"===t.type){const e=i=>{i.target===t.target&&stopAndPrevent(i),document.removeEventListener("click",e,listenOpts.notPassiveCapture)};document.addEventListener("click",e,listenOpts.notPassiveCapture)}}function preventDraggable(t,e){if(void 0===t||!0===e&&!0===t.__dragPrevented)return;const i=!0===e?t=>{t.__dragPrevented=!0,t.addEventListener("dragstart",prevent,listenOpts.notPassiveCapture)}:t=>{delete t.__dragPrevented,t.removeEventListener("dragstart",prevent,listenOpts.notPassiveCapture)};t.querySelectorAll("a, img").forEach(i)}function create(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 addEvt(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]],listenOpts[e[3]])})}function cleanEvt(t,e){const i=`__q_${e}_evt`;void 0!==t[i]&&(t[i].forEach(e=>{e[0].removeEventListener(e[1],t[e[2]],listenOpts[e[3]])}),t[i]=void 0)}var event={listenOpts:listenOpts,leftClick:leftClick,middleClick:middleClick,rightClick:rightClick,position:position,getEventPath:getEventPath,getMouseWheelDistance:getMouseWheelDistance,stop:stop,prevent:prevent,stopAndPrevent:stopAndPrevent,preventDraggable:preventDraggable,create:create};function debounce(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 SIZE_LIST=["sm","md","lg","xl"],{passive:passive}=listenOpts;var Screen={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:noop,setDebounce:noop,install(t,e,i){if(!0===isSSR)return void(t.screen=this);const{visualViewport:s}=window,o=s||window,n=document.scrollingElement||document.documentElement,r=void 0===s||!0===client.is.mobile?()=>[Math.max(window.innerWidth,n.clientWidth),Math.max(window.innerHeight,n.clientHeight)]:()=>[s.width*s.scale+window.innerWidth-n.clientWidth,s.height*s.scale+window.innerHeight-n.clientHeight],a=void 0!==i.screen&&!0===i.screen.bodyClasses,l=t=>{const[e,i]=r();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===a&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${s}`)),this.name=s)};let h,d={},c=16;this.setSizes=(t=>{SIZE_LIST.forEach(e=>{void 0!==t[e]&&(d[e]=t[e])})}),this.setDebounce=(t=>{c=t});const u=()=>{const t=getComputedStyle(document.body);t.getPropertyValue("--q-size-sm")&&SIZE_LIST.forEach(e=>{this.sizes[e]=parseInt(t.getPropertyValue(`--q-size-${e}`),10)}),this.setSizes=(t=>{SIZE_LIST.forEach(e=>{t[e]&&(this.sizes[e]=t[e])}),l(!0)}),this.setDebounce=(t=>{void 0!==h&&o.removeEventListener("resize",h,passive),h=t>0?debounce(l,t):l,o.addEventListener("resize",h,passive)}),this.setDebounce(c),Object.keys(d).length>0?(this.setSizes(d),d=void 0):l(),!0===a&&"xs"===this.name&&document.body.classList.add("screen--xs")};!0===fromSSR?e.takeover.push(u):u(),Vue.util.defineReactive(t,"screen",this)}};const Dark={isActive:!1,mode:!1,install(t,e,{dark:i}){if(this.isActive=!0===i,!0===isSSR)return e.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(i)}),void(this.set=noop);const s=void 0!==i&&i;if(!0===fromSSR){const t=t=>{this.__fromSSR=t},i=this.set;this.set=t,t(s),e.takeover.push(()=>{this.set=i,this.set(this.__fromSSR)})}else this.set(s);Vue.util.defineReactive(this,"isActive",this.isActive),Vue.util.defineReactive(t,"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(){Dark.set(!1===Dark.isActive)},__media:void 0},getTrue=()=>!0;function filterInvalidPath(t){return"string"==typeof t&&""!==t&&"/"!==t&&"#/"!==t}function normalizeExitPath(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}function getShouldExitFn(t){if(!1===t.backButtonExit)return()=>!1;if("*"===t.backButtonExit)return getTrue;const e=["#/"];return!0===Array.isArray(t.backButtonExit)&&e.push(...t.backButtonExit.filter(filterInvalidPath).map(normalizeExitPath)),()=>e.includes(window.location.hash)}var History={__history:[],add:noop,remove:noop,install(t){if(!0===isSSR)return;const{cordova:e,capacitor:i}=client.is;if(!0!==e&&!0!==i)return;const s=t[!0===e?"cordova":"capacitor"];if(void 0!==s&&!1===s.backButton)return;if(!0===i&&(void 0===window.Capacitor||void 0===window.Capacitor.Plugins.App))return;this.add=(t=>{void 0===t.condition&&(t.condition=getTrue),this.__history.push(t)}),this.remove=(t=>{const e=this.__history.indexOf(t);e>=0&&this.__history.splice(e,1)});const o=getShouldExitFn(Object.assign({backButtonExit:!0},s)),n=()=>{if(this.__history.length){const t=this.__history[this.__history.length-1];!0===t.condition()&&(this.__history.pop(),t.handler())}else!0===o()?navigator.app.exitApp():window.history.back()};!0===e?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",n,!1)}):window.Capacitor.Plugins.App.addListener("backButton",n)}},defaultLang={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",expand:function(t){return t?`Expand "${t}"`:"Expand"},collapse:function(t){return t?`Collapse "${t}"`:"Collapse"}},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 getLocale(){if(!0===isSSR)return;const t=navigator.language||navigator.languages[0]||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage;return t?t.toLowerCase():void 0}const Plugin={getLocale:getLocale,install(t,e,i){const s=i||defaultLang;this.set=((e=defaultLang,i)=>{const s={...e,rtl:!0===e.rtl,getLocale:getLocale};if(!0===isSSR){if(void 0===i)return void console.error("SSR ERROR: second param required: Quasar.lang.set(lang, ssrContext)");const t=!0===s.rtl?"rtl":"ltr",e=`lang=${s.isoName} dir=${t}`;s.set=i.$q.lang.set,i.Q_HTML_ATTRS=void 0!==i.Q_PREV_LANG?i.Q_HTML_ATTRS.replace(i.Q_PREV_LANG,e):e,i.Q_PREV_LANG=e,i.$q.lang=s}else{if(!1===fromSSR){const t=document.documentElement;t.setAttribute("dir",!0===s.rtl?"rtl":"ltr"),t.setAttribute("lang",s.isoName)}s.set=this.set,t.lang=this.props=s,this.isoName=s.isoName,this.nativeName=s.nativeName}}),!0===isSSR?(e.server.push((t,e)=>{t.lang={},t.lang.set=(t=>{this.set(t,e.ssr)}),t.lang.set(s)}),this.isoName=s.isoName,this.nativeName=s.nativeName,this.props=s):(Vue.util.defineReactive(t,"lang",{}),this.set(s))}},reRGBA=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function rgbToHex({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 rgbToString({r:t,g:e,b:i,a:s}){return`rgb${void 0!==s?"a":""}(${t},${e},${i}${void 0!==s?","+s/100:""})`}function hexToRgb(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 hsvToRgb({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 rgbToHsv({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 textToRgb(t){if("string"!=typeof t)throw new TypeError("Expected a string");const e=t.replace(/ /g,""),i=reRGBA.exec(e);if(null===i)return hexToRgb(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 lighten(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=textToRgb(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)}function luminosity(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?textToRgb(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 brightness(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?textToRgb(t):t;return(299*e.r+587*e.g+114*e.b)/1e3}function blend(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?textToRgb(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?textToRgb(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?rgbToHex(p):p}function changeAlpha(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}=textToRgb(t),r=void 0!==n?n/100:0;return rgbToHex({r:i,g:s,b:o,a:Math.round(100*Math.min(1,Math.max(0,r+e)))})}function setBrand(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 getBrand(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}function getPaletteColor(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(),rgbToHex(textToRgb(i))}var colors={rgbToHex:rgbToHex,hexToRgb:hexToRgb,hsvToRgb:hsvToRgb,rgbToHsv:rgbToHsv,textToRgb:textToRgb,lighten:lighten,luminosity:luminosity,brightness:brightness,blend:blend,changeAlpha:changeAlpha,setBrand:setBrand,getBrand:getBrand,getPaletteColor:getPaletteColor};let lastKeyCompositionStatus=!1;function onKeyDownComposition(t){lastKeyCompositionStatus=!0===t.isComposing}function shouldIgnoreKey(t){return!0===lastKeyCompositionStatus||t!==Object(t)||!0===t.isComposing||!0===t.qKeyEvent}function isKeyCode(t,e){return!0!==shouldIgnoreKey(t)&&[].concat(e).includes(t.keyCode)}function getMobilePlatform(t){return!0===t.ios?"ios":!0===t.android?"android":void 0}function getBodyClasses({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=getMobilePlatform(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}function clientUpdate(){const t=document.body.className;let e=t;void 0!==iosCorrection&&(e=e.replace("desktop","platform-ios mobile")),!0===client.has.touch&&(e=e.replace("no-touch","touch")),!0===client.within.iframe&&(e+=" within-iframe"),t!==e&&(document.body.className=e)}function setColors(t){for(const e in t)setBrand(e,t[e])}var Body={install(t,e){if(!0!==isSSR){if(!0===fromSSR)clientUpdate();else{const t=getBodyClasses(client,e);!0===client.is.ie&&11===client.is.versionNumber?t.forEach(t=>document.body.classList.add(t)):document.body.classList.add.apply(document.body.classList,t)}void 0!==e.brand&&setColors(e.brand),!0===client.is.ios&&document.body.addEventListener("touchstart",noop),window.addEventListener("keydown",onKeyDownComposition,!0)}else t.server.push((t,i)=>{const s=getBodyClasses(t.platform,e),o=i.ssr.setBodyClasses;void 0!==e.screen&&!0===e.screen.bodyClass&&s.push("screen--xs"),"function"==typeof o?o(s):i.ssr.Q_BODY_CLASSES=s.join(" ")})}},materialIcons={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"}},iconSet={install(t,e,i){const s=i||materialIcons;this.set=((e,i)=>{const s={...e};if(!0===isSSR){if(void 0===i)return void console.error("SSR ERROR: second param required: Quasar.iconSet.set(iconSet, ssrContext)");s.set=i.$q.iconSet.set,i.$q.iconSet=s}else s.set=this.set,t.iconSet=s}),!0===isSSR?e.server.push((t,e)=>{t.iconSet={},t.iconSet.set=(t=>{this.set(t,e.ssr)}),t.iconSet.set(s)}):(Vue.util.defineReactive(t,"iconMapFn",void 0),Vue.util.defineReactive(t,"iconSet",{}),this.set(s))}};const autoInstalled=[Platform,Screen,Dark],queues={server:[],takeover:[]},$q={version:version,config:{}};function install(t,e={}){if(!0===this.__qInstalled)return;this.__qInstalled=!0;const i=$q.config=Object.freeze(e.config||{});if(Platform.install($q,queues),Body.install(queues,i),Dark.install($q,queues,i),Screen.install($q,queues,i),History.install(i),Plugin.install($q,queues,e.lang),iconSet.install($q,queues,e.iconSet),!0===isSSR?t.mixin({beforeCreate(){this.$q=this.$root.$options.$q}}):t.prototype.$q=$q,e.components&&Object.keys(e.components).forEach(i=>{const s=e.components[i];"function"==typeof s&&t.component(s.options.name,s)}),e.directives&&Object.keys(e.directives).forEach(i=>{const s=e.directives[i];void 0!==s.name&&void 0!==s.unbind&&t.directive(s.name,s)}),e.plugins){const t={$q:$q,queues:queues,cfg:i};Object.keys(e.plugins).forEach(i=>{const s=e.plugins[i];"function"==typeof s.install&&!1===autoInstalled.includes(s)&&s.install(t)})}}const mixin={mounted(){queues.takeover.forEach(t=>{t(this.$q)})}};function ssrUpdate(t){if(t.ssr){const e={...$q,ssrContext:t.ssr};Object.assign(t.ssr,{Q_HEAD_TAGS:"",Q_BODY_ATTRS:"",Q_BODY_TAGS:""}),t.app.$q=t.ssr.$q=e,queues.server.forEach(i=>{i(e,t)})}else{const e=t.app.mixins||[];!1===e.includes(mixin)&&(t.app.mixins=e.concat(mixin))}}var VuePlugin={version:version,install:install,lang:Plugin,iconSet:iconSet,ssrUpdate:ssrUpdate};const units=["B","KB","MB","GB","TB","PB"];function humanStorageSize(t){let e=0;for(;parseInt(t,10)>=1024&&e<units.length-1;)t/=1024,++e;return`${t.toFixed(1)}${units[e]}`}function capitalize(t){return t.charAt(0).toUpperCase()+t.slice(1)}function between(t,e,i){return i<=e?e:Math.min(i,Math.max(e,t))}function normalizeToInterval(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 pad(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 format={humanStorageSize:humanStorageSize,capitalize:capitalize,between:between,normalizeToInterval:normalizeToInterval,pad:pad};function cache(t,e,i){if(!0===isSSR)return i;const s=`__qcache_${e}`;return void 0===t[s]?t[s]=i:t[s]}function cacheWithFn(t,e,i){if(!0===isSSR)return i();const s=`__qcache_${e}`;return void 0===t[s]?t[s]=i():t[s]}function getPropCacheMixin(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 ariaHidden={"aria-hidden":"true"},iconAsButton={tabindex:0,type:"button","aria-hidden":!1,role:null};var AttrsMixin=getPropCacheMixin("$attrs","qAttrs");const xhr=isSSR?null:XMLHttpRequest,open=isSSR?null:xhr.prototype.open,positionValues=["top","right","bottom","left"];let stack=[],highjackCount=0;function translate({p:t,pos:e,active:i,horiz:s,reverse:o,dir:n}){let r=1,a=1;return!0===s?(!0===o&&(r=-1),"bottom"===e&&(a=-1),{transform:`translate3d(${r*(t-100)}%,${i?0:-200*a}%,0)`}):(!0===o&&(a=-1),"right"===e&&(r=-1),{transform:`translate3d(${i?0:n*r*-200}%,${a*(t-100)}%,0)`})}function inc(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),between(t+e,0,100)}function highjackAjax(t){highjackCount++,stack.push(t),highjackCount>1||(xhr.prototype.open=function(t,e){const i=[];this.addEventListener("loadstart",()=>{stack.forEach(t=>{const s=t.getHijackFilter();null!==s&&!0!==s(e)||(t.start(),i.push(t.stop))})},{once:!0}),this.addEventListener("loadend",()=>{i.forEach(t=>{t()})},{once:!0}),open.apply(this,arguments)})}function restoreAjax(t){stack=stack.filter(e=>e.start!==t),(highjackCount=Math.max(0,highjackCount-1))||(xhr.prototype.open=open)}var QAjaxBar=Vue.extend({name:"QAjaxBar",props:{position:{type:String,default:"top",validator:t=>positionValues.includes(t)},size:{type:String,default:"2px"},color:String,reverse:Boolean,skipHijack:Boolean,hijackFilter:Function},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=translate({p:this.progress,pos:this.position,active:t,horiz:this.horizontal,reverse:!0===this.$q.lang.rtl&&["top","bottom"].includes(this.position)?!1===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}:ariaHidden}},methods:{start(t=300){const e=this.speed,i=this.speed=Math.max(0,t)||0;return this.calls++,this.calls>1?(0===e&&i>0?this.__work():e>0&&i<=0&&clearTimeout(this.timer),this.calls):(clearTimeout(this.timer),this.$emit("start"),this.progress=0,this.timer=setTimeout(()=>{this.animate=!0,i>0&&this.__work()},!0===this.onScreen?500:1),!0!==this.onScreen&&(this.onScreen=!0,this.animate=!1),this.calls)},increment(t){return this.calls>0&&(this.progress=inc(this.progress,t)),this.calls},stop(){if(this.calls=Math.max(0,this.calls-1),this.calls>0)return this.calls;clearTimeout(this.timer),this.$emit("stop");const t=()=>{this.animate=!0,this.progress=100,this.timer=setTimeout(()=>{this.onScreen=!1},1e3)};return 0===this.progress?this.timer=setTimeout(t,1):t(),this.calls},__work(){this.progress<100&&(this.timer=setTimeout(()=>{this.increment(),this.__work()},this.speed))}},mounted(){!0!==this.skipHijack&&(this.hijacked=!0,highjackAjax({start:this.start,stop:this.stop,getHijackFilter:()=>this.hijackFilter||null}))},beforeDestroy(){clearTimeout(this.timer),!0===this.hijacked&&restoreAjax(this.start)},render(t){return t("div",{class:this.classes,style:this.style,attrs:this.attrs})}});const sizes={xs:18,sm:24,md:32,lg:38,xl:46};function getSizeMixin(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 SizeMixin=getSizeMixin(sizes),TagMixin={props:{tag:{type:String,default:"div"}}},ListenersMixin=getPropCacheMixin("$listeners","qListeners");function slot(t,e,i){return void 0!==t.$scopedSlots[e]?t.$scopedSlots[e]():i}function uniqueSlot(t,e,i){return void 0!==t.$scopedSlots[e]?[].concat(t.$scopedSlots[e]()):i}function mergeSlot(t,e,i){return void 0!==e.$scopedSlots[i]?t.concat(e.$scopedSlots[i]()):t}function mergeSlotSafely(t,e,i){if(void 0===e.$scopedSlots[i])return t;const s=e.$scopedSlots[i]();return void 0!==t?t.concat(s):s}const defaultViewBox="0 0 24 24",sameFn=t=>t,ionFn=t=>`ionicons ${t}`,libMap={"mdi-":t=>`mdi ${t}`,"icon-":sameFn,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":ionFn,"ion-ios":ionFn,"ion-logo":ionFn,"iconfont ":sameFn,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},matMap={o_:"-outlined",r_:"-round",s_:"-sharp"},symMap={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},libRE=new RegExp("^("+Object.keys(libMap).join("|")+")"),matRE=new RegExp("^("+Object.keys(matMap).join("|")+")"),symRE=new RegExp("^("+Object.keys(symMap).join("|")+")"),mRE=/^[Mm]\s?[-+]?\.?\d/,imgRE=/^img:/,svgUseRE=/^svguse:/,ionRE=/^ion-/,faRE=/^(fa-(solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /;var QIcon=Vue.extend({name:"QIcon",mixins:[ListenersMixin,SizeMixin,TagMixin],props:{tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},computed:{classes(){return"q-icon"+(!0===this.left?" on-left":"")+(!0===this.right?" on-right":"")+(void 0!==this.color?` text-${this.color}`:"")},type(){let t,e=this.name;if("none"===e||!e)return{none:!0};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,content:void 0!==t.content?t.content:" "};if("none"===(e=t.icon)||!e)return{none:!0}}}if(!0===mRE.test(e)){const[t,i=defaultViewBox]=e.split("|");return{svg:!0,viewBox:i,nodes:t.split("&&").map(t=>{const[e,i,s]=t.split("@@");return this.$createElement("path",{attrs:{d:e,transform:s},style:i})})}}if(!0===imgRE.test(e))return{img:!0,src:e.substring(4)};if(!0===svgUseRE.test(e)){const[t,i=defaultViewBox]=e.split("|");return{svguse:!0,src:t.substring(7),viewBox:i}}let i=" ";const s=e.match(libRE);if(null!==s)t=libMap[s[1]](e);else if(!0===faRE.test(e))t=e;else if(!0===ionRE.test(e))t=`ionicons ion-${!0===this.$q.platform.is.ios?"ios":"md"}${e.substr(3)}`;else if(!0===symRE.test(e)){t="notranslate material-symbols";const s=e.match(symRE);null!==s&&(e=e.substring(6),t+=symMap[s[1]]),i=e}else{t="notranslate material-icons";const s=e.match(matRE);null!==s&&(e=e.substring(2),t+=matMap[s[1]]),i=e}return{cls:t,content:i}}},render(t){const e={class:this.classes,style:this.sizeStyle,on:{...this.qListeners},attrs:{"aria-hidden":"true",role:"presentation"}};return!0===this.type.none?t(this.tag,e,slot(this,"default")):!0===this.type.img?t("span",e,mergeSlot([t("img",{attrs:{src:this.type.src}})],this,"default")):!0===this.type.svg?t("span",e,mergeSlot([t("svg",{attrs:{viewBox:this.type.viewBox||"0 0 24 24",focusable:"false"}},this.type.nodes)],this,"default")):!0===this.type.svguse?t("span",e,mergeSlot([t("svg",{attrs:{viewBox:this.type.viewBox,focusable:"false"}},[t("use",{attrs:{"xlink:href":this.type.src}})])],this,"default")):(void 0!==this.type.cls&&(e.class+=" "+this.type.cls),t(this.tag,e,mergeSlot([this.type.content],this,"default")))}}),QAvatar=Vue.extend({name:"QAvatar",mixins:[ListenersMixin,SizeMixin],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(QIcon,{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},mergeSlotSafely(e,this,"default"))])}}),QBadge=Vue.extend({name:"QBadge",mixins:[ListenersMixin],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:"status","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]:slot(this,"default"))}}),DarkMixin={props:{dark:{type:Boolean,default:null}},computed:{isDark(){return null===this.dark?this.$q.dark.isActive:this.dark}}};const attrs={role:"alert"};var QBanner=Vue.extend({name:"QBanner",mixins:[ListenersMixin,DarkMixin],props:{inlineActions:Boolean,dense:Boolean,rounded:Boolean},render(t){const e=slot(this,"action"),i=[t("div",{staticClass:"q-banner__avatar col-auto row items-center self-start"},slot(this,"avatar")),t("div",{staticClass:"q-banner__content col text-body2"},slot(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:attrs,on:{...this.qListeners}},i)}});const attrs$1={role:"toolbar"};var QBar=Vue.extend({name:"QBar",mixins:[ListenersMixin,DarkMixin],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:attrs$1,on:{...this.qListeners}},slot(this,"default"))}});const alignMap={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},alignValues=Object.keys(alignMap);var AlignMixin={props:{align:{type:String,validator:t=>alignValues.includes(t)}},computed:{alignClass(){const t=void 0===this.align?!0===this.vertical?"stretch":"left":this.align;return`${!0===this.vertical?"items":"justify"}-${alignMap[t]}`}}};const disabledValues=[!0,""];var QBreadcrumbs=Vue.extend({name:"QBreadcrumbs",mixins:[ListenersMixin,AlignMixin],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(){return this.separatorColor?` text-${this.separatorColor}`:""},activeClass(){return` text-${this.activeColor}`}},render(t){const e=slot(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,a=disabledValues.includes(e.componentOptions.propsData.disable),l=!0===r?!0!==a?this.activeClass:"":" q-breadcrumbs--last";i++,s.push(t("div",{staticClass:"flex items-center"+l},[e])),!0===r&&s.push(t("div",{staticClass:"q-breadcrumbs__separator"+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 trailingSlashRE=/\/?$/;function equals(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const i in e)if(!(i in t)||String(t[i])!==String(e[i]))return!1;return!0}function includes(t,e){for(const i in e)if(!(i in t))return!1;return!0}function isSameRoute(t,e){return!!e&&(t.path&&e.path?t.path.replace(trailingSlashRE,"")===e.path.replace(trailingSlashRE,"")&&t.hash===e.hash&&equals(t.query,e.query):"string"==typeof t.name&&t.name===e.name&&t.hash===e.hash&&!0===equals(t.query,e.query)&&!0===equals(t.params,e.params))}function isIncludedRoute(t,e){return 0===t.path.replace(trailingSlashRE,"/").indexOf(e.path.replace(trailingSlashRE,"/"))&&("string"!=typeof e.hash||e.hash.length<2||t.hash===e.hash)&&!0===includes(t.query,e.query)}const routerLinkProps={to:[String,Object],exact:Boolean,append:Boolean,replace:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},href:String,target:String,disable:Boolean};var RouterLinkMixin={props:routerLinkProps,computed:{hasHrefLink(){return!0!==this.disable&&void 0!==this.href},hasRouterLinkProps(){return void 0!==this.$router&&!0!==this.disable&&!0!==this.hasHrefLink&&void 0!==this.to&&null!==this.to&&""!==this.to},resolvedLink(){return!0===this.hasRouterLinkProps?this.__getLink(this.to,this.append):null},hasRouterLink(){return null!==this.resolvedLink},hasLink(){return!0===this.hasHrefLink||!0===this.hasRouterLink},linkTag(){return"a"===this.type||!0===this.hasLink?"a":this.tag||this.fallbackTag||"div"},linkAttrs(){return!0===this.hasHrefLink?{href:this.href,target:this.target}:!0===this.hasRouterLink?{href:this.resolvedLink.href,target:this.target}:{}},linkIsActive(){return!0===this.hasRouterLink&&isIncludedRoute(this.$route,this.resolvedLink.route)},linkIsExactActive(){return!0===this.hasRouterLink&&isSameRoute(this.$route,this.resolvedLink.route)},linkClass(){return!0===this.hasRouterLink?!0===this.linkIsExactActive?` ${this.exactActiveClass} ${this.activeClass}`:!0===this.exact?"":!0===this.linkIsActive?` ${this.activeClass}`:"":""}},methods:{__getLink(t,e){try{return!0===e?this.$router.resolve(t,this.$route,!0):this.$router.resolve(t)}catch(t){}return null},__navigateToRouterLink(t,{returnRouterError:e,to:i,replace:s=this.replace,append:o}={}){if(!0===this.disable)return t.preventDefault(),Promise.resolve(!1);if(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||void 0!==t.button&&0!==t.button||"_blank"===this.target)return Promise.resolve(!1);t.preventDefault();const n=void 0===i?this.resolvedLink:this.__getLink(i,o);if(null===n)return Promise[!0===e?"reject":"resolve"](!1);const r=this.$router[!0===s?"replace":"push"](n.location);return!0===e?r:r.catch(()=>{})},__navigateOnClick(t){if(!0===this.hasRouterLink){const e=e=>this.__navigateToRouterLink(t,e);this.$emit("click",t,e),!1===t.navigate&&t.preventDefault(),!0!==t.defaultPrevented&&e()}else this.$emit("click",t)}}},QBreadcrumbsEl=Vue.extend({name:"QBreadcrumbsEl",mixins:[ListenersMixin,RouterLinkMixin],props:{label:String,icon:String},computed:{iconClass(){return"q-breadcrumbs__el-icon"+(void 0!==this.label?" q-breadcrumbs__el-icon--with-label":"")},renderData(){return{staticClass:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(!0!==this.disable?"q-link--focusable"+this.linkClass:"q-breadcrumbs__el--disabled"),attrs:this.linkAttrs,on:{...this.qListeners,click:this.__navigateOnClick}}}},beforeCreate(){this.fallbackTag="span"},render(t){const e=[];return void 0!==this.icon&&e.push(t(QIcon,{class:this.iconClass,props:{name:this.icon}})),void 0!==this.label&&e.push(this.label),t(this.linkTag,this.renderData,mergeSlot(e,this,"default"))}}),mixin$1={mixins:[ListenersMixin],props:{color:String,size:{type:[Number,String],default:"1em"}},computed:{cSize(){return this.size in sizes?`${sizes[this.size]}px`:this.size},classes(){if(this.color)return`text-${this.color}`}}},QSpinner=Vue.extend({name:"QSpinner",mixins:[mixin$1],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 offset(t){if(t===window)return{top:0,left:0};const{top:e,left:i}=t.getBoundingClientRect();return{top:e,left:i}}function style(t,e){return window.getComputedStyle(t).getPropertyValue(e)}function height(t){return t===window?window.innerHeight:t.getBoundingClientRect().height}function width(t){return t===window?window.innerWidth:t.getBoundingClientRect().width}function css(t,e){const i=t.style;Object.keys(e).forEach(t=>{i[t]=e[t]})}function cssBatch(t,e){t.forEach(t=>css(t,e))}function ready(t){if("function"==typeof t)return"loading"!==document.readyState?t():void document.addEventListener("DOMContentLoaded",t,!1)}function getElement(t){const e=typeof t;if("function"===e&&(t=t()),"string"===e)try{t=document.querySelector(t)}catch(t){}return t!==Object(t)?null:!0===t._isVue&&void 0!==t.$el?t.$el:t}function childHasFocus(t,e){if(void 0===t||!0===t.contains(e))return!0;for(let i=t.nextElementSibling;null!==i;i=i.nextElementSibling)if(i.contains(e))return!0;return!1}function getBodyFullscreenElement(t){return t===document.documentElement||null===t?document.body:t}var dom={offset:offset,style:style,height:height,width:width,css:css,cssBatch:cssBatch,ready:ready};function throttle(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 showRipple(t,e,i,s){!0===i.modifiers.stop&&stop(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=position(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`,f=n?g:`${l.left-h-m}px`,v=`${(u-p)/2}px`,_=n?v:`${l.top-d-m}px`;a.className="q-ripple__inner",css(a,{height:`${p}px`,width:`${p}px`,transform:`translate3d(${f},${_},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 b=()=>{r.remove(),clearTimeout(y)};i.abort.push(b);let y=setTimeout(()=>{a.classList.add("q-ripple__inner--enter"),a.style.transform=`translate3d(${g},${v},0) scale3d(1,1,1)`,a.style.opacity=.2,y=setTimeout(()=>{a.classList.remove("q-ripple__inner--enter"),a.classList.add("q-ripple__inner--leave"),a.style.opacity=0,y=setTimeout(()=>{r.remove(),i.abort.splice(i.abort.indexOf(b),1)},275)},250)},50)}function updateModifiers(t,{modifiers:e,value:i,arg:s}){const o=Object.assign({},$q.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 destroy(t){const e=t.__qripple;void 0!==e&&(e.abort.forEach(t=>{t()}),cleanEvt(e,"main"),delete t._qripple)}var Ripple={name:"ripple",inserted(t,e){void 0!==t.__qripple&&(destroy(t),t.__qripple_destroyed=!0);const i={enabled:!1!==e.value,modifiers:{},abort:[],start(e){!0===i.enabled&&!0!==e.qSkipRipple&&(!0!==client.is.ie||e.clientX>=0)&&e.type===(!0===i.modifiers.early?"pointerdown":"click")&&showRipple(e,t,i,!0===e.qKeyEvent)},keystart:throttle(e=>{!0===i.enabled&&!0!==e.qSkipRipple&&!0===isKeyCode(e,i.modifiers.keyCodes)&&e.type===`key${!0===i.modifiers.early?"down":"up"}`&&showRipple(e,t,i,!0)},300)};updateModifiers(i,e),t.__qripple=i,addEvt(i,"main",[[t,"pointerdown","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&&updateModifiers(i,e))},unbind(t){void 0===t.__qripple_destroyed?destroy(t):delete t.__qripple_destroyed}},RippleMixin={directives:{Ripple:Ripple},props:{ripple:{type:[Boolean,Object],default:!0}}};const btnPadding={none:0,xs:4,sm:8,md:16,lg:24,xl:32},formTypes=["button","submit","reset"],mediaTypeRe=/[^\s]\/[^\s]/,btnDesignOptions=["flat","outline","push","unelevated"],getBtnDesign=(t,e)=>!0===t.flat?"flat":!0===t.outline?"outline":!0===t.push?"push":!0===t.unelevated?"unelevated":e;var BtnMixin={mixins:[ListenersMixin,RippleMixin,RouterLinkMixin,AlignMixin,getSizeMixin({xs:8,sm:10,md:14,lg:20,xl:24})],props:{type:{type:String,default:"button"},to:[Object,String],replace:Boolean,append:Boolean,label:[Number,String],icon:String,iconRight:String,...btnDesignOptions.reduce((t,e)=>(t[e]=Boolean)&&t,{}),square:Boolean,round:Boolean,rounded: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},design(){return getBtnDesign(this,"standard")},attrs(){const t={tabindex:this.computedTabIndex};return!0===this.hasLink?Object.assign(t,this.linkAttrs):!0===formTypes.includes(this.type)&&(t.type=this.type),"a"===this.linkTag?(!0===this.disable?t["aria-disabled"]="true":void 0===t.href&&(t.role="button"),!0!==this.hasRouterLink&&!0===mediaTypeRe.test(this.type)&&(t.type=this.type)):!0===this.disable&&(t.disabled="",t["aria-disabled"]="true"),!0===this.loading&&void 0!==this.percentage&&(t.role="progressbar",t["aria-valuemin"]=0,t["aria-valuemax"]=100,t["aria-valuenow"]=this.percentage),t},classes(){let t;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}`);const e=!0===this.round?"round":`rectangle${!0===this.isRounded?" q-btn--rounded":!0===this.square?" q-btn--square":""}`;return`q-btn--${this.design} q-btn--${e}`+(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 btnPadding?btnPadding[t]+"px":t).join(" "),minWidth:"0",minHeight:"0"}}}};const{passiveCapture:passiveCapture}=listenOpts;let touchTarget=void 0,keyboardTarget=void 0,mouseTarget=void 0;const iconAttrs={role:"img","aria-hidden":"true"};var QBtn=Vue.extend({name:"QBtn",mixins:[BtnMixin],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.hasLink?[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[`${void 0===t.touchstart?"&":""}touchstart`]=this.__onTouchstart),t}return{click:stopAndPrevent}},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",stopAndPrevent,!0),document.removeEventListener("keyup",t,passiveCapture),void 0!==this.$el&&this.$el.removeEventListener("blur",t,passiveCapture)};document.addEventListener("keydown",stopAndPrevent,!0),document.addEventListener("keyup",t,passiveCapture),this.$el.addEventListener("blur",t,passiveCapture)}}this.__navigateOnClick(t)},__onKeydown(t){this.$emit("keydown",t),!0===isKeyCode(t,[13,32])&&(keyboardTarget!==this.$el&&(void 0!==keyboardTarget&&this.__cleanup(),!0!==t.defaultPrevented&&(this.$el.focus(),keyboardTarget=this.$el,this.$el.classList.add("q-btn--active"),document.addEventListener("keyup",this.__onPressEnd,!0),this.$el.addEventListener("blur",this.__onPressEnd,passiveCapture))),stopAndPrevent(t))},__onTouchstart(t){if(this.$emit("touchstart",t),touchTarget!==this.$el&&(void 0!==touchTarget&&this.__cleanup(),!0!==t.defaultPrevented)){touchTarget=this.$el;const e=this.touchTargetEl=t.target;e.addEventListener("touchcancel",this.__onPressEnd,passiveCapture),e.addEventListener("touchend",this.__onPressEnd,passiveCapture)}this.avoidMouseRipple=!0,clearTimeout(this.mouseTimer),this.mouseTimer=setTimeout(()=>{this.avoidMouseRipple=!1},200)},__onMousedown(t){t.qSkipRipple=!0===this.avoidMouseRipple,this.$emit("mousedown",t),mouseTarget!==this.$el&&(void 0!==mouseTarget&&this.__cleanup(),!0!==t.defaultPrevented&&(mouseTarget=this.$el,this.$el.classList.add("q-btn--active"),document.addEventListener("mouseup",this.__onPressEnd,passiveCapture)))},__onPressEnd(t){if(void 0===t||"blur"!==t.type||document.activeElement!==this.$el){if(void 0!==t&&"keyup"===t.type){if(keyboardTarget===this.$el&&!0===isKeyCode(t,[13,32])){const e=new MouseEvent("click",t);e.qKeyEvent=!0,!0===t.defaultPrevented&&prevent(e),!0===t.cancelBubble&&stop(e),this.$el.dispatchEvent(e),stopAndPrevent(t),t.qKeyEvent=!0}this.$emit("keyup",t)}this.__cleanup()}},__cleanup(t){const e=this.$refs.blurTarget;if(!0===t||touchTarget!==this.$el&&mouseTarget!==this.$el||void 0===e||e===document.activeElement||!0!==this.$el.contains(document.activeElement)||(e.setAttribute("tabindex",-1),e.focus()),touchTarget===this.$el){const t=this.touchTargetEl;t.removeEventListener("touchcancel",this.__onPressEnd,passiveCapture),t.removeEventListener("touchend",this.__onPressEnd,passiveCapture),touchTarget=this.touchTargetEl=void 0}mouseTarget===this.$el&&(document.removeEventListener("mouseup",this.__onPressEnd,passiveCapture),mouseTarget=void 0),keyboardTarget===this.$el&&(document.removeEventListener("keyup",this.__onPressEnd,!0),void 0!==this.$el&&this.$el.removeEventListener("blur",this.__onPressEnd,passiveCapture),keyboardTarget=void 0),void 0!==this.$el&&this.$el.classList.remove("q-btn--active")},__onLoadingEvt(t){stopAndPrevent(t),t.qSkipRipple=!0}},beforeDestroy(){this.__cleanup(!0)},render(t){let e=[];void 0!==this.icon&&e.push(t(QIcon,{attrs:iconAttrs,props:{name:this.icon,left:!1===this.stack&&!0===this.hasLabel}})),!0===this.hasLabel&&e.push(t("span",{staticClass:"block"},[this.label])),e=mergeSlot(e,this,"default"),void 0!==this.iconRight&&!1===this.round&&e.push(t(QIcon,{attrs:iconAttrs,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",class:!0===this.darkPercentage?"q-btn__progress--dark":""},[t("span",{staticClass:"q-btn__progress-indicator fit block",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(QSpinner)])]:void 0)),t(!0===this.hasLink||"a"===this.type?"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)}}),TransitionMixin={props:{transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"}},computed:{transitionProps(){const t=`q-transition--${this.transitionShow||this.defaultTransitionShow}`,e=`q-transition--${this.transitionHide||this.defaultTransitionHide}`;return{appear:!0,enterClass:`${t}-enter`,enterActiveClass:`${t}-enter-active`,enterToClass:`${t}-enter-to`,leaveClass:`${e}-leave`,leaveActiveClass:`${e}-leave-active`,leaveToClass:`${e}-leave-to`}}}},QBtnGroup=Vue.extend({name:"QBtnGroup",mixin:[ListenersMixin],props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},computed:{classes(){return["unelevated","outline","flat","rounded","square","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}},slot(this,"default"))}});function clearSelection(){if(void 0!==window.getSelection){const t=window.getSelection();void 0!==t.empty?t.empty():void 0!==t.removeAllRanges&&(t.removeAllRanges(),!0!==Platform.is.mobile&&t.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}var AnchorMixin={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)}),prevent(t)},__toggleKey(t){!0===isKeyCode(t,13)&&this.toggle(t)},__mobileCleanup(t){this.anchorEl.classList.remove("non-selectable"),clearTimeout(this.touchTimer),!0===this.showing&&void 0!==t&&clearSelection()},__mobilePrevent:prevent,__mobileTouch(t){if(this.__mobileCleanup(t),!0!==this.__showCondition(t))return;this.hide(t),this.anchorEl.classList.add("non-selectable");const e=t.target;addEvt(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(){cleanEvt(this,"anchor")},__configureAnchorEl(t=this.contextMenu){if(!0===this.noParentEvent||void 0===this.anchorEl)return;let e;addEvt(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(){!1===this.target||""===this.target||null===this.parentEl?this.anchorEl=void 0:!0===this.target?this.__setAnchorEl(this.parentEl):(this.anchorEl=getElement(this.target)||void 0,void 0!==this.anchorEl?this.__configureAnchorEl():console.error(`Anchor: target "${this.target}" not found`,this))},__changeScrollEvent(t,e){const i=`${void 0!==e?"add":"remove"}EventListener`,s=void 0!==e?e:this.__scrollFn;t!==window&&t[i]("scroll",s,listenOpts.passive),window[i]("scroll",s,listenOpts.passive),this.__scrollFn=e}},created(){"function"==typeof this.__configureScrollTarget&&"function"==typeof this.__unconfigureScrollTarget&&(this.noParentEventWatcher=this.$watch("noParentEvent",()=>{void 0!==this.__scrollTarget&&(this.__unconfigureScrollTarget(),this.__configureScrollTarget())}))},mounted(){this.parentEl=this.$el.parentNode,this.__pickAnchorEl(),!0===this.value&&void 0===this.anchorEl&&this.$emit("input",!1)},beforeDestroy(){clearTimeout(this.touchTimer),void 0!==this.noParentEventWatcher&&this.noParentEventWatcher(),void 0!==this.__anchorCleanup&&this.__anchorCleanup(),this.__unconfigureAnchorEl()}},TimeoutMixin={created(){this.__tickFnList=[],this.__timeoutFnList=[]},deactivated(){this.__tickFnList.forEach(t=>{t.removeTick()}),this.__timeoutFnList.forEach(t=>{t.removeTimeout()})},beforeDestroy(){this.__tickFnList.forEach(t=>{t.removeTick()}),this.__tickFnList=void 0,this.__timeoutFnList.forEach(t=>{t.removeTimeout()}),this.__timeoutFnList=void 0},methods:{__useTick(t,e){const i={removeTick(){i.fn=void 0},registerTick:t=>{i.fn=t,this.$nextTick(()=>{i.fn===t&&(!1===this._isDestroyed&&i.fn(),i.fn=void 0)})}};this.__tickFnList.push(i),this[t]=i.registerTick,void 0!==e&&(this[e]=i.removeTick)},__useTimeout(t,e){const i={removeTimeout(){clearTimeout(i.timer)},registerTimeout:(t,e)=>{clearTimeout(i.timer),!1===this._isDestroyed&&(i.timer=setTimeout(t,e))}};this.__timeoutFnList.push(i),this[t]=i.registerTimeout,void 0!==e&&(this[e]=i.removeTimeout)}}},ModelToggleMixin={mixins:[ListenersMixin],props:{value:{type:Boolean,default:void 0}},data:()=>({showing:!1}),watch:{value(t){this.__processModelChange(t)},$route(){!0===this.hideOnRouteChange&&!0===this.showing&&this.hide()}},methods:{toggle(t){this[!0===this.showing?"hide":"show"](t)},show(t){!0===this.disable||void 0!==this.__showCondition&&!0!==this.__showCondition(t)||(void 0!==this.qListeners.input&&!1===isSSR&&(this.$emit("input",!0),this.payload=t,this.$nextTick(()=>{this.payload===t&&(this.payload=void 0)})),void 0!==this.value&&void 0!==this.qListeners.input&&!0!==isSSR||this.__processShow(t))},__processShow(t){!0!==this.showing&&(void 0!==this.__preparePortal&&this.__preparePortal(),this.showing=!0,this.$emit("before-show",t),void 0!==this.__show?this.__show(t):this.$emit("show",t))},hide(t){!0!==this.disable&&(void 0!==this.qListeners.input&&!1===isSSR&&(this.$emit("input",!1),this.payload=t,this.$nextTick(()=>{this.payload===t&&(this.payload=void 0)})),void 0!==this.value&&void 0!==this.qListeners.input&&!0!==isSSR||this.__processHide(t))},__processHide(t){!1!==this.showing&&(this.showing=!1,this.$emit("before-hide",t),void 0!==this.__hide?this.__hide(t):this.$emit("hide",t))},__processModelChange(t){!0===this.disable&&!0===t?void 0!==this.qListeners.input&&this.$emit("input",!1):!0===t!==this.showing&&this[`__process${!0===t?"Show":"Hide"}`](this.payload)}}};let queue=[],waitFlags=[];function clearFlag(t){waitFlags=waitFlags.filter(e=>e!==t)}function addFocusWaitFlag(t){clearFlag(t),waitFlags.push(t)}function removeFocusWaitFlag(t){clearFlag(t),0===waitFlags.length&&queue.length>0&&(queue[queue.length-1](),queue=[])}function addFocusFn(t){0===waitFlags.length?t():queue.push(t)}function removeFocusFn(t){queue=queue.filter(e=>e!==t)}function closePortalMenus(t,e){do{if("QMenu"===t.$options.name){if(t.hide(e),!0===t.separateClosePopup)return t.$parent}else if(void 0!==t.__renderPortal)return void 0!==t.$parent&&"QPopupProxy"===t.$parent.$options.name?(t.hide(e),t.$parent):t;t=t.$parent}while(void 0!==t&&(void 0===t.$el.contains||!0!==t.$el.contains(e.target)))}function closePortals(t,e,i){for(;0!==i&&void 0!==t;){if(void 0!==t.__renderPortal){if(i--,"QMenu"===t.$options.name){t=closePortalMenus(t,e);continue}t.hide(e)}t=t.$parent}}function isOnGlobalDialog(t){for(;void 0!==t;){if("QGlobalDialog"===t.$options.name)return!0;if("QDialog"===t.$options.name)return!1;t=t.$parent}return!1}const Portal={inheritAttrs:!1,props:{contentClass:[Array,String,Object],contentStyle:[Array,String,Object]},methods:{__showPortal(t){if(!0===t)return removeFocusWaitFlag(this.focusObj),void(this.__portalIsAccessible=!0);if(this.__portalIsAccessible=!1,!0!==this.__portalIsActive)if(this.__portalIsActive=!0,void 0===this.focusObj&&(this.focusObj={}),addFocusWaitFlag(this.focusObj),void 0!==this.$q.fullscreen&&!0===this.$q.fullscreen.isCapable){const t=()=>{if(void 0===this.__portal)return;const t=getBodyFullscreenElement(this.$q.fullscreen.activeEl);this.__portal.$el.parentElement!==t&&t.contains(this.$el)===(!1===this.__onGlobalDialog)&&t.appendChild(this.__portal.$el)};this.unwatchFullscreen=this.$watch("$q.fullscreen.activeEl",debounce(t,50)),!1!==this.__onGlobalDialog&&!0!==this.$q.fullscreen.isActive||t()}else void 0!==this.__portal&&!1===this.__onGlobalDialog&&document.body.appendChild(this.__portal.$el)},__hidePortal(t){this.__portalIsAccessible=!1,!0===t&&(this.__portalIsActive=!1,removeFocusWaitFlag(this.focusObj),void 0!==this.__portal&&(void 0!==this.unwatchFullscreen&&(this.unwatchFullscreen(),this.unwatchFullscreen=void 0),!1===this.__onGlobalDialog&&(this.__portal.$destroy(),this.__portal.$el.remove()),this.__portal=void 0))},__preparePortal(){void 0===this.__portal&&(this.__portal=!0===this.__onGlobalDialog?{$el:this.$el,$refs:this.$refs}:new Vue({name:"QPortal",parent:this,inheritAttrs:!1,render:t=>this.__renderPortal(t),components:this.$options.components,directives:this.$options.directives}).$mount())}},render(t){if(!0===this.__onGlobalDialog)return this.__renderPortal(t);void 0!==this.__portal&&this.__portal.$forceUpdate()},beforeDestroy(){this.__hidePortal(!0)}};function getVmOfNode(t){for(let e=t;null!==e;e=e.parentNode)if(void 0!==e.__vue__)return e.__vue__}function isVmChildOf(t,e){if(null===t||null===e)return null;for(let i=t;void 0!==i;i=i.$parent)if(i===e)return!0;return!1}let timer;!1===isSSR&&(Portal.created=function(){this.__onGlobalDialog=isOnGlobalDialog(this.$parent)});const{notPassiveCapture:notPassiveCapture,passiveCapture:passiveCapture$1}=listenOpts,handlers={click:[],focus:[]};function hasModalsAbove(t){for(;null!==(t=t.nextElementSibling);)if(t.classList.contains("q-dialog--modal"))return!0;return!1}function execHandlers(t,e){for(let i=t.length-1;i>=0;i--)if(void 0===t[i](e))return}function globalHandler(t){clearTimeout(timer),"focusin"===t.type&&(!0===client.is.ie&&t.target===document.body||!0===t.target.hasAttribute("tabindex"))?timer=setTimeout(()=>{execHandlers(handlers.focus,t)},!0===client.is.ie?500:200):execHandlers(handlers.click,t)}var ClickOutside={name:"click-outside",bind(t,{value:e,arg:i},s){const o=s.componentInstance||s.context,n={trigger:e,toggleEl:i,handler(e){const i=e.target;if(!(!0===e.qClickOutside||!0!==document.body.contains(i)||8===i.nodeType||i===document.documentElement||!1!==i.classList.contains("no-pointer-events")||!0===hasModalsAbove(t)||void 0!==n.toggleEl&&!1!==n.toggleEl.contains(i)||i!==document.body&&!1!==isVmChildOf(getVmOfNode(i),o)))return e.qClickOutside=!0,n.trigger(e)}};t.__qclickoutside&&(t.__qclickoutside_old=t.__qclickoutside),t.__qclickoutside=n,0===handlers.click.length&&(document.addEventListener("mousedown",globalHandler,notPassiveCapture),document.addEventListener("touchstart",globalHandler,notPassiveCapture),document.addEventListener("focusin",globalHandler,passiveCapture$1)),handlers.click.push(n.handler),n.timerFocusin=setTimeout(()=>{handlers.focus.push(n.handler)},500)},update(t,{value:e,oldValue:i,arg:s}){const o=t.__qclickoutside;e!==i&&(o.trigger=e),s!==o.arg&&(o.toggleEl=s)},unbind(t){const e=t.__qclickoutside_old||t.__qclickoutside;if(void 0!==e){clearTimeout(e.timerFocusin);const i=handlers.click.findIndex(t=>t===e.handler),s=handlers.focus.findIndex(t=>t===e.handler);i>-1&&handlers.click.splice(i,1),s>-1&&handlers.focus.splice(s,1),0===handlers.click.length&&(clearTimeout(timer),document.removeEventListener("mousedown",globalHandler,notPassiveCapture),document.removeEventListener("touchstart",globalHandler,notPassiveCapture),document.removeEventListener("focusin",globalHandler,passiveCapture$1)),delete t[t.__qclickoutside_old?"__qclickoutside_old":"__qclickoutside"]}}};const scrollTargets=!0===isSSR?[]:[null,document,document.body,document.scrollingElement,document.documentElement];let rtlHasScrollBugStatus;function rtlHasScrollBug(){if(!0===isSSR)return!1;if(void 0===rtlHasScrollBugStatus){const t=document.createElement("div"),e=document.createElement("div");Object.assign(t.style,{direction:"rtl",width:"1px",height:"1px",overflow:"auto"}),Object.assign(e.style,{width:"1000px",height:"1px"}),t.appendChild(e),document.body.appendChild(t),t.scrollLeft=-1e3,rtlHasScrollBugStatus=t.scrollLeft>=0,t.remove()}return rtlHasScrollBugStatus}function getScrollTarget(t,e){let i=getElement(e);if(null===i){if(t!==Object(t)||"function"!=typeof t.closest)return window;i=t.closest(".scroll,.scroll-y,.overflow-auto")}return scrollTargets.includes(i)?window:i}function getScrollHeight(t){return(t===window?document.body:t).scrollHeight}function getScrollWidth(t){return(t===window?document.body:t).scrollWidth}function getVerticalScrollPosition(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}const getScrollPosition=getVerticalScrollPosition;function getHorizontalScrollPosition(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}function animVerticalScrollTo(t,e,i=0){const s=void 0===arguments[3]?performance.now():arguments[3],o=getVerticalScrollPosition(t);i<=0?o!==e&&setScroll(t,e):requestAnimationFrame(n=>{const r=n-s,a=o+(e-o)/Math.max(r,i)*r;setScroll(t,a),a!==e&&animVerticalScrollTo(t,e,i-r,n)})}const animScrollTo=animVerticalScrollTo;function animHorizontalScrollTo(t,e,i=0){const s=void 0===arguments[3]?performance.now():arguments[3],o=getHorizontalScrollPosition(t);i<=0?o!==e&&setHorizontalScroll(t,e):requestAnimationFrame(n=>{const r=n-s,a=o+(e-o)/Math.max(r,i)*r;setHorizontalScroll(t,a),a!==e&&animHorizontalScrollTo(t,e,i-r,n)})}function setScroll(t,e){t!==window?t.scrollTop=e:window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,e)}function setHorizontalScroll(t,e){t!==window?t.scrollLeft=e:window.scrollTo(e,window.pageYOffset||window.scrollY||document.body.scrollTop||0)}function setVerticalScrollPosition(t,e,i){i?animVerticalScrollTo(t,e,i):setScroll(t,e)}const setScrollPosition=setVerticalScrollPosition;function setHorizontalScrollPosition(t,e,i){i?animHorizontalScrollTo(t,e,i):setHorizontalScroll(t,e)}let size;function getScrollbarWidth(){if(void 0!==size)return size;const t=document.createElement("p"),e=document.createElement("div");css(t,{width:"100%",height:"200px"}),css(e,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);const i=t.offsetWidth;e.style.overflow="scroll";let s=t.offsetWidth;return i===s&&(s=e.clientWidth),e.remove(),size=i-s}function hasScrollbar(t,e=!0){return!(!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 scroll={getScrollTarget:getScrollTarget,getScrollHeight:getScrollHeight,getScrollWidth:getScrollWidth,getScrollPosition:getScrollPosition,getVerticalScrollPosition:getVerticalScrollPosition,getHorizontalScrollPosition:getHorizontalScrollPosition,rtlHasScrollBug:rtlHasScrollBug,animScrollTo:animScrollTo,animVerticalScrollTo:animVerticalScrollTo,animHorizontalScrollTo:animHorizontalScrollTo,setScrollPosition:setScrollPosition,setVerticalScrollPosition:setVerticalScrollPosition,setHorizontalScrollPosition:setHorizontalScrollPosition,getScrollbarWidth:getScrollbarWidth,hasScrollbar:hasScrollbar};const handlers$1=[];let escDown=!1;var EscapeKey={__install(){this.__installed=!0,window.addEventListener("keydown",t=>{escDown=27===t.keyCode}),window.addEventListener("blur",()=>{!0===escDown&&(escDown=!1)}),window.addEventListener("keyup",t=>{!0===escDown&&(escDown=!1,0!==handlers$1.length&&!0===isKeyCode(t,27)&&handlers$1[handlers$1.length-1].fn(t))})},register(t,e){!0===t.$q.platform.is.desktop&&(!0!==this.__installed&&this.__install(),handlers$1.push({comp:t,fn:e}))},pop(t){if(!0===t.$q.platform.is.desktop){const e=handlers$1.findIndex(e=>e.comp===t);e>-1&&handlers$1.splice(e,1)}}};let vpLeft,vpTop;function validatePosition(t){const e=t.split(" ");return 2===e.length&&(!0!==["top","center","bottom"].includes(e[0])?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):!0===["left","middle","right","start","end"].includes(e[1])||(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1))}function validateOffset(t){return!t||2===t.length&&("number"==typeof t[0]&&"number"==typeof t[1])}const horizontalPos={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};function parsePosition(t,e){const i=t.split(" ");return{vertical:i[0],horizontal:horizontalPos[`${i[1]}#${!0===e?"rtl":"ltr"}`]}}function getAnchorProps(t,e){let{top:i,left:s,right:o,bottom:n,width:r,height:a}=t.getBoundingClientRect();return void 0!==e&&(i-=e[1],s-=e[0],n+=e[1],o+=e[0],r+=e[0],a+=e[1]),{top:i,bottom:n,height:a,left:s,right:o,width:r,middle:s+(o-s)/2,center:i+(n-i)/2}}function getAbsoluteAnchorProps(t,e,i){let{top:s,left:o}=t.getBoundingClientRect();return s+=e.top,o+=e.left,void 0!==i&&(s+=i[1],o+=i[0]),{top:s,bottom:s+1,height:1,left:o,right:o+1,width:1,middle:o,center:s}}function getTargetProps(t){return{top:0,center:t.offsetHeight/2,bottom:t.offsetHeight,left:0,middle:t.offsetWidth/2,right:t.offsetWidth}}function getTopLeftProps(t,e,i){return{top:t[i.anchorOrigin.vertical]-e[i.selfOrigin.vertical],left:t[i.anchorOrigin.horizontal]-e[i.selfOrigin.horizontal]}}function setPosition(t){if(!0===client.is.ios&&void 0!==window.visualViewport){const t=document.body.style,{offsetLeft:e,offsetTop:i}=window.visualViewport;e!==vpLeft&&(t.setProperty("--q-pe-left",e+"px"),vpLeft=e),i!==vpTop&&(t.setProperty("--q-pe-top",i+"px"),vpTop=i)}const{scrollLeft:e,scrollTop:i}=t.el,s=void 0===t.absoluteOffset?getAnchorProps(t.anchorEl,!0===t.cover?[0,0]:t.offset):getAbsoluteAnchorProps(t.anchorEl,t.absoluteOffset,t.offset);let o={maxHeight:t.maxHeight,maxWidth:t.maxWidth,visibility:"visible"};!0!==t.fit&&!0!==t.cover||(o.minWidth=s.width+"px",!0===t.cover&&(o.minHeight=s.height+"px")),Object.assign(t.el.style,o);const n=getTargetProps(t.el);let r=getTopLeftProps(s,n,t);if(void 0===t.absoluteOffset||void 0===t.offset)applyBoundaries(r,s,n,t.anchorOrigin,t.selfOrigin);else{const{top:e,left:i}=r;applyBoundaries(r,s,n,t.anchorOrigin,t.selfOrigin);let o=!1;if(r.top!==e){o=!0;const e=2*t.offset[1];s.center=s.top-=e,s.bottom-=e+2}if(r.left!==i){o=!0;const e=2*t.offset[0];s.middle=s.left-=e,s.right-=e+2}!0===o&&applyBoundaries(r=getTopLeftProps(s,n,t),s,n,t.anchorOrigin,t.selfOrigin)}o={top:r.top+"px",left:r.left+"px"},void 0!==r.maxHeight&&(o.maxHeight=r.maxHeight+"px",s.height>r.maxHeight&&(o.minHeight=o.maxHeight)),void 0!==r.maxWidth&&(o.maxWidth=r.maxWidth+"px",s.width>r.maxWidth&&(o.minWidth=o.maxWidth)),Object.assign(t.el.style,o),t.el.scrollTop!==i&&(t.el.scrollTop=i),t.el.scrollLeft!==e&&(t.el.scrollLeft=e)}function applyBoundaries(t,e,i,s,o){const n=i.bottom,r=i.right,a=getScrollbarWidth(),l=window.innerHeight-a,h=document.body.clientWidth;if(t.top<0||t.top+n>l)if("center"===o.vertical)t.top=e[s.vertical]>l/2?Math.max(0,l-n):0,t.maxHeight=Math.min(n,l);else if(e[s.vertical]>l/2){const i=Math.min(l,"center"===s.vertical?e.center:s.vertical===o.vertical?e.bottom:e.top);t.maxHeight=Math.min(n,i),t.top=Math.max(0,i-n)}else t.top=Math.max(0,"center"===s.vertical?e.center:s.vertical===o.vertical?e.top:e.bottom),t.maxHeight=Math.min(n,l-t.top);if(t.left<0||t.left+r>h)if(t.maxWidth=Math.min(r,h),"middle"===o.horizontal)t.left=e[s.horizontal]>h/2?Math.max(0,h-r):0;else if(e[s.horizontal]>h/2){const i=Math.min(h,"middle"===s.horizontal?e.middle:s.horizontal===o.horizontal?e.right:e.left);t.maxWidth=Math.min(r,i),t.left=Math.max(0,i-t.maxWidth)}else t.left=Math.max(0,"middle"===s.horizontal?e.middle:s.horizontal===o.horizontal?e.left:e.right),t.maxWidth=Math.min(r,h-t.left)}["left","middle","right"].forEach(t=>{horizontalPos[`${t}#ltr`]=t,horizontalPos[`${t}#rtl`]=t});var QMenu=Vue.extend({name:"QMenu",mixins:[AttrsMixin,DarkMixin,AnchorMixin,TimeoutMixin,ModelToggleMixin,Portal,TransitionMixin],directives:{ClickOutside:ClickOutside},props:{persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:validatePosition},self:{type:String,validator:validatePosition},offset:{type:Array,validator:validateOffset},scrollTarget:{default:void 0},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},computed:{anchorOrigin(){return parsePosition(this.anchor||(!0===this.cover?"center middle":"bottom start"),this.$q.lang.rtl)},selfOrigin(){return!0===this.cover?this.anchorOrigin:parsePosition(this.self||"top start",this.$q.lang.rtl)},menuClass(){return(!0===this.square?" q-menu--square":"")+(!0===this.isDark?" q-menu--dark q-dark":"")},hideOnRouteChange(){return!0!==this.persistent&&!0!==this.noRouteDismiss},onEvents(){const t={...this.qListeners,input:stop,"popup-show":stop,"popup-hide":stop};return!0===this.autoClose&&(t.click=this.__onAutoClose),t},attrs(){return{tabindex:-1,role:"menu",...this.qAttrs}}},methods:{focus(){addFocusFn(()=>{let t=void 0!==this.__portal&&void 0!==this.__portal.$refs?this.__portal.$refs.inner:void 0;void 0!==t&&!0!==t.contains(document.activeElement)&&(t=t.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||t.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||t.querySelector("[autofocus], [data-autofocus]")||t).focus({preventScroll:!0})})},__show(t){if(this.__refocusTarget=!0!==client.is.mobile&&!1===this.noRefocus&&null!==document.activeElement?document.activeElement:void 0,EscapeKey.register(this,t=>{!0!==this.persistent&&(this.$emit("escape-key"),this.hide(t))}),this.__showPortal(),this.__configureScrollTarget(),this.absoluteOffset=void 0,void 0!==t&&(this.touchPosition||this.contextMenu)){const e=position(t);if(void 0!==e.left){const{top:t,left:i}=this.anchorEl.getBoundingClientRect();this.absoluteOffset={left:e.left-i,top:e.top-t}}}void 0===this.unwatch&&(this.unwatch=this.$watch(()=>this.$q.screen.width+"|"+this.$q.screen.height+"|"+this.self+"|"+this.anchor+"|"+this.$q.lang.rtl,this.updatePosition)),this.$el.dispatchEvent(create("popup-show",{bubbles:!0})),!0!==this.noFocus&&null!==document.activeElement&&document.activeElement.blur(),this.__registerTick(()=>{this.updatePosition(),!0!==this.noFocus&&this.focus()}),this.__registerTimeout(()=>{!0===this.$q.platform.is.ios&&(this.__avoidAutoClose=this.autoClose,this.__portal.$el.click()),this.updatePosition(),this.__showPortal(!0),this.$emit("show",t)},300)},__hide(t){this.__removeTick(),this.__anchorCleanup(!0),this.__hidePortal(),void 0===this.__refocusTarget||null===this.__refocusTarget||void 0!==t&&!0===t.qClickOutside||(((t&&0===t.type.indexOf("key")?this.__refocusTarget.closest('[tabindex]:not([tabindex^="-"])'):void 0)||this.__refocusTarget).focus(),this.__refocusTarget=void 0),this.$el.dispatchEvent(create("popup-hide",{bubbles:!0})),this.__registerTimeout(()=>{this.__hidePortal(!0),this.$emit("hide",t)},300)},__anchorCleanup(t){this.absoluteOffset=void 0,void 0!==this.unwatch&&(this.unwatch(),this.unwatch=void 0),!0!==t&&!0!==this.showing||(EscapeKey.pop(this),this.__unconfigureScrollTarget())},__unconfigureScrollTarget(){void 0!==this.__scrollTarget&&(this.__changeScrollEvent(this.__scrollTarget),this.__scrollTarget=void 0)},__configureScrollTarget(){void 0===this.anchorEl&&void 0===this.scrollTarget||(this.__scrollTarget=getScrollTarget(this.anchorEl,this.scrollTarget),this.__changeScrollEvent(this.__scrollTarget,this.updatePosition))},__onAutoClose(t){!0!==this.__avoidAutoClose?(closePortalMenus(this,t),void 0!==this.qListeners.click&&this.$emit("click",t)):this.__avoidAutoClose=!1},updatePosition(){if(void 0===this.anchorEl||void 0===this.__portal)return;const t=this.__portal.$el;8!==t.nodeType?setPosition({el:t,offset:this.offset,anchorEl:this.anchorEl,anchorOrigin:this.anchorOrigin,selfOrigin:this.selfOrigin,absoluteOffset:this.absoluteOffset,fit:this.fit,cover:this.cover,maxHeight:this.maxHeight,maxWidth:this.maxWidth}):setTimeout(this.updatePosition,25)},__onClickOutside(t){if(!0!==this.persistent&&!0===this.showing){const e=t.target.classList;return closePortalMenus(this,t),("touchstart"===t.type||e.contains("q-dialog__backdrop"))&&stopAndPreventClick(t),!0}},__renderPortal(t){return t("transition",{props:{...this.transitionProps}},[!0===this.showing?t("div",{ref:"inner",staticClass:"q-menu q-position-engine scroll"+this.menuClass,class:this.contentClass,style:this.contentStyle,attrs:this.attrs,on:this.onEvents,directives:[{name:"click-outside",value:this.__onClickOutside,arg:this.anchorEl}]},slot(this,"default")):null])}},created(){this.__useTick("__registerTick","__removeTick"),this.__useTimeout("__registerTimeout")},mounted(){this.__processModelChange(this.value)},beforeDestroy(){this.__refocusTarget=void 0,!0===this.showing&&void 0!==this.anchorEl&&this.anchorEl.dispatchEvent(create("popup-hide",{bubbles:!0}))}});let buf,bufIdx=0;const hexBytes=new Array(256);for(let t=0;t<256;t++)hexBytes[t]=(t+256).toString(16).substr(1);const randomBytes=(()=>{const t="undefined"!=typeof crypto?crypto:"undefined"!=typeof window?window.msCrypto:void 0;if(void 0!==t){if(void 0!==t.randomBytes)return t.randomBytes;if(void 0!==t.getRandomValues)return e=>{var i=new Uint8Array(e);return t.getRandomValues(i),i}}return t=>{const e=[];for(let i=t;i>0;i--)e.push(Math.floor(256*Math.random()));return e}})(),BUFFER_SIZE=4096;function uid(){(void 0===buf||bufIdx+16>BUFFER_SIZE)&&(bufIdx=0,buf=randomBytes(BUFFER_SIZE));const t=Array.prototype.slice.call(buf,bufIdx,bufIdx+=16);return t[6]=15&t[6]|64,t[8]=63&t[8]|128,hexBytes[t[0]]+hexBytes[t[1]]+hexBytes[t[2]]+hexBytes[t[3]]+"-"+hexBytes[t[4]]+hexBytes[t[5]]+"-"+hexBytes[t[6]]+hexBytes[t[7]]+"-"+hexBytes[t[8]]+hexBytes[t[9]]+"-"+hexBytes[t[10]]+hexBytes[t[11]]+hexBytes[t[12]]+hexBytes[t[13]]+hexBytes[t[14]]+hexBytes[t[15]]}const menuTransitionProps=Object.keys(TransitionMixin.props).reduce((t,e)=>(t[e]={})&&t,{});var QBtnDropdown=Vue.extend({name:"QBtnDropdown",mixins:[BtnMixin,AttrsMixin],inheritAttrs:!1,props:{value:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,menuAnchor:{type:String,default:"bottom end"},menuSelf:{type:String,default:"top end"},menuOffset:Array,...menuTransitionProps,disableMainBtn:Boolean,disableDropdown:Boolean,noIconAnimation:Boolean,toggleAriaLabel:String},data(){return{showing:this.value}},watch:{value(t){void 0!==this.$refs.menu&&this.$refs.menu[t?"show":"hide"]()},split(){this.hide()}},render(t){const e=slot(this,"label",[]),i={"aria-expanded":!0===this.showing?"true":"false","aria-haspopup":"true","aria-controls":this.targetUid,"aria-label":this.toggleAriaLabel||this.$q.lang.label[!0===this.showing?"collapse":"expand"](this.label)};(!0===this.disable||!1===this.split&&!0===this.disableMainBtn||!0===this.disableDropdown)&&(i["aria-disabled"]="true");const s=[t(QIcon,{props:{name:this.dropdownIcon||this.$q.iconSet.arrow.dropdown},class:"q-btn-dropdown__arrow"+(!0===this.showing&&!1===this.noIconAnimation?" rotate-180":"")+(!1===this.split?" q-btn-dropdown__arrow-container":"")})];if(!0!==this.disableDropdown&&s.push(t(QMenu,{ref:"menu",attrs:{id:this.targetUid},props:{cover:this.cover,fit:!0,persistent:this.persistent,noRouteDismiss:this.noRouteDismiss,autoClose:this.autoClose,anchor:this.menuAnchor,self:this.menuSelf,offset:this.menuOffset,contentClass:this.contentClass,contentStyle:this.contentStyle,separateClosePopup:!0,transitionShow:this.transitionShow,transitionHide:this.transitionHide},on:cache(this,"menu",{"before-show":t=>{this.showing=!0,this.$emit("before-show",t)},show:t=>{this.$emit("show",t),this.$emit("input",!0)},"before-hide":t=>{this.showing=!1,this.$emit("before-hide",t)},hide:t=>{this.$emit("hide",t),this.$emit("input",!1)}})},slot(this,"default"))),!1===this.split)return t(QBtn,{class:"q-btn-dropdown q-btn-dropdown--simple",props:{...this.$props,disable:!0===this.disable||!0===this.disableMainBtn,noWrap:!0,round:!1},attrs:{...i,...this.qAttrs},on:cache(this,"nonSpl",{click:t=>{this.$emit("click",t)}}),scopedSlots:{loading:this.$scopedSlots.loading}},e.concat(s));const o=t(QBtn,{class:"q-btn-dropdown--current",props:{...this.$props,disable:!0===this.disable||!0===this.disableMainBtn,noWrap:!0,iconRight:this.iconRight,round:!1},attrs:this.qAttrs,on:cache(this,"spl",{click:t=>{stop(t),this.hide(),this.$emit("click",t)}}),scopedSlots:{loading:this.$scopedSlots.loading}},e);return t(QBtnGroup,{props:{outline:this.outline,flat:this.flat,rounded:this.rounded,square:this.square,push:this.push,unelevated:this.unelevated,glossy:this.glossy,stretch:this.stretch},staticClass:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item"},[o,t(QBtn,{staticClass:"q-btn-dropdown__arrow-container q-anchor--skip",attrs:i,props:{disable:!0===this.disable||!0===this.disableDropdown,outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push,size:this.size,color:this.color,textColor:this.textColor,dense:this.dense,ripple:this.ripple}},s)])},methods:{toggle(t){this.$refs.menu&&this.$refs.menu.toggle(t)},show(t){this.$refs.menu&&this.$refs.menu.show(t)},hide(t){this.$refs.menu&&this.$refs.menu.hide(t)}},created(){this.targetUid=`d_${uid()}`},mounted(){!0===this.value&&this.show()}}),FormMixin={props:{name:String},computed:{formAttrs(){return{type:"hidden",name:this.name,value:this.value}}},methods:{__injectFormInput(t,e,i){t[e](this.$createElement("input",{staticClass:"hidden",class:i,attrs:this.formAttrs,domProps:this.formDomProps}))}}};const FormFieldMixin={props:{name:String},computed:{nameProp(){return this.name||this.for}}};var QBtnToggle=Vue.extend({name:"QBtnToggle",mixins:[ListenersMixin,RippleMixin,FormMixin],props:{value:{required:!0},options:{type:Array,required:!0,validator:t=>t.every(t=>("label"in t||"icon"in t||"slot"in t)&&"value"in t)},color:String,textColor:String,toggleColor:{type:String,default:"primary"},toggleTextColor:String,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,padding:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,readonly:Boolean,disable:Boolean,stack:Boolean,stretch:Boolean,spread:Boolean,clearable:Boolean},computed:{hasActiveValue(){return void 0!==this.options.find(t=>t.value===this.value)},formAttrs(){return{type:"hidden",name:this.name,value:this.value}},btnOptions(){const t=(t,e)=>void 0===t[e]?this[e]:t[e];return this.options.map((e,i)=>({slot:e.slot,options:{key:i,class:e.class,style:e.style,on:{...this.qListeners,click:t=>this.__set(e.value,e,t)},attrs:{"aria-pressed":e.value===this.value?"true":"false",...e.attrs},props:{...e,slot:void 0,class:void 0,style:void 0,value:void 0,attrs:void 0,outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push,unelevated:this.unelevated,dense:this.dense,disable:!0===this.disable||!0===e.disable,color:e.value===this.value?t(e,"toggleColor"):t(e,"color"),textColor:e.value===this.value?t(e,"toggleTextColor"):t(e,"textColor"),noCaps:!0===t(e,"noCaps"),noWrap:!0===t(e,"noWrap"),size:t(e,"size"),padding:t(e,"padding"),ripple:t(e,"ripple"),stack:!0===t(e,"stack"),stretch:!0===t(e,"stretch")}}}))}},methods:{__set(t,e,i){!0!==this.readonly&&(this.value===t?!0===this.clearable&&(this.$emit("input",null,null),this.$emit("clear")):this.$emit("input",t,e),this.$emit("click",i))}},render(t){const e=this.btnOptions.map(e=>t(QBtn,{...e.options},void 0!==e.slot?slot(this,e.slot):void 0));return void 0!==this.name&&!0!==this.disable&&!0===this.hasActiveValue&&this.__injectFormInput(e,"push"),t(QBtnGroup,{staticClass:"q-btn-toggle",props:{outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push,stretch:this.stretch,unelevated:this.unelevated,glossy:this.glossy,spread:this.spread}},mergeSlot(e,this,"default"))}}),QCard=Vue.extend({name:"QCard",mixins:[ListenersMixin,DarkMixin,TagMixin],props:{square:Boolean,flat:Boolean,bordered:Boolean},computed:{classes(){return"q-card"+(!0===this.isDark?" q-card--dark q-dark":"")+(!0===this.bordered?" q-card--bordered":"")+(!0===this.square?" q-card--square no-border-radius":"")+(!0===this.flat?" q-card--flat no-shadow":"")}},render(t){return t(this.tag,{class:this.classes,on:{...this.qListeners}},slot(this,"default"))}}),QCardSection=Vue.extend({name:"QCardSection",mixins:[ListenersMixin,TagMixin],props:{horizontal:Boolean},computed:{classes(){return"q-card__section "+`q-card__section--${!0===this.horizontal?"horiz row no-wrap":"vert"}`}},render(t){return t(this.tag,{class:this.classes,on:{...this.qListeners}},slot(this,"default"))}}),QCardActions=Vue.extend({name:"QCardActions",mixins:[ListenersMixin,AlignMixin],props:{vertical:Boolean},computed:{classes(){return`q-card__actions--${!0===this.vertical?"vert column":"horiz row"} ${this.alignClass}`}},render(t){return t("div",{staticClass:"q-card__actions",class:this.classes,on:{...this.qListeners}},slot(this,"default"))}});const directions=["left","right","up","down","horizontal","vertical"],modifiersAll={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0,all:!0};function getModifierDirections(t){const e={};return directions.forEach(i=>{t[i]&&(e[i]=!0)}),0===Object.keys(e).length?modifiersAll:(!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)}function shouldStart(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))}function parseArg(t){const e=[.06,6,50];return"string"==typeof t&&t.length&&t.split(":").forEach((t,i)=>{const s=parseFloat(t);s&&(e[i]=s)}),e}function destroy$1(t){const e=t.__qtouchswipe;void 0!==e&&(cleanEvt(e,"main"),cleanEvt(e,"temp"),!0===client.is.firefox&&preventDraggable(t,!1),void 0!==e.styleCleanup&&e.styleCleanup(),delete t.__qtouchswipe)}var TouchSwipe={name:"touch-swipe",bind(t,{value:e,arg:i,modifiers:s}){if(void 0!==t.__qtouchswipe&&(destroy$1(t),t.__qtouchswipe_destroyed=!0),!0!==s.mouse&&!0!==client.has.touch)return;const o=!0===s.mouseCapture||!0===s.mousecapture?"Capture":"",n={handler:e,sensitivity:parseArg(i),modifiers:s,direction:getModifierDirections(s),noop:noop,mouseStart(t){shouldStart(t,n)&&leftClick(t)&&(addEvt(n,"temp",[[document,"mousemove","move",`notPassive${o}`],[document,"mouseup","end","notPassiveCapture"]]),n.start(t,!0))},touchStart(t){if(shouldStart(t,n)){const e=t.target;addEvt(n,"temp",[[e,"touchmove","move","notPassiveCapture"],[e,"touchcancel","end","notPassiveCapture"],[e,"touchend","end","notPassiveCapture"]]),n.start(t)}},start(e,i){!0===client.is.firefox&&preventDraggable(t,!0);const s=position(e);n.event={x:s.left,y:s.top,time:Date.now(),mouse:!0===i,dir:!1}},move(t){if(void 0===n.event)return;if(!1!==n.event.dir)return void stopAndPrevent(t);const e=Date.now()-n.event.time;if(0===e)return;const i=position(t),s=i.left-n.event.x,o=Math.abs(s),r=i.top-n.event.y,a=Math.abs(r);if(!0!==n.event.mouse){if(o<n.sensitivity[1]&&a<n.sensitivity[1])return void n.end(t)}else if(o<n.sensitivity[2]&&a<n.sensitivity[2])return;const l=o/e,h=a/e;!0===n.direction.vertical&&o<a&&o<100&&h>n.sensitivity[0]&&(n.event.dir=r<0?"up":"down"),!0===n.direction.horizontal&&o>a&&a<100&&l>n.sensitivity[0]&&(n.event.dir=s<0?"left":"right"),!0===n.direction.up&&o<a&&r<0&&o<100&&h>n.sensitivity[0]&&(n.event.dir="up"),!0===n.direction.down&&o<a&&r>0&&o<100&&h>n.sensitivity[0]&&(n.event.dir="down"),!0===n.direction.left&&o>a&&s<0&&a<100&&l>n.sensitivity[0]&&(n.event.dir="left"),!0===n.direction.right&&o>a&&s>0&&a<100&&l>n.sensitivity[0]&&(n.event.dir="right"),!1!==n.event.dir?(stopAndPrevent(t),!0===n.event.mouse&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),clearSelection(),n.styleCleanup=(t=>{n.styleCleanup=void 0,document.body.classList.remove("non-selectable");const e=()=>{document.body.classList.remove("no-pointer-events--children")};!0===t?setTimeout(e,50):e()})),n.handler({evt:t,touch:!0!==n.event.mouse,mouse:n.event.mouse,direction:n.event.dir,duration:e,distance:{x:o,y:a}})):n.end(t)},end(e){void 0!==n.event&&(cleanEvt(n,"temp"),!0===client.is.firefox&&preventDraggable(t,!1),void 0!==n.styleCleanup&&n.styleCleanup(!0),void 0!==e&&!1!==n.event.dir&&stopAndPrevent(e),n.event=void 0)}};t.__qtouchswipe=n,!0===s.mouse&&addEvt(n,"main",[[t,"mousedown","mouseStart",`passive${o}`]]),!0===client.has.touch&&addEvt(n,"main",[[t,"touchstart","touchStart",`passive${!0===s.capture?"Capture":""}`],[t,"touchmove","noop","notPassiveCapture"]])},update(t,{oldValue:e,value:i}){const s=t.__qtouchswipe;void 0!==s&&e!==i&&("function"!=typeof i&&s.end(),s.handler=i)},unbind(t){void 0===t.__qtouchswipe_destroyed?destroy$1(t):delete t.__qtouchswipe_destroyed}};function getPanelWrapper(t){return t("div",{staticClass:"q-panel scroll",attrs:{role:"tabpanel"},on:cache(this,"stop",{input:stop})},slot(this,"default"))}const PanelWrapper=Vue.extend({render:getPanelWrapper}),PanelParentMixin={mixins:[ListenersMixin],directives:{TouchSwipe:TouchSwipe},props:{value:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},data:()=>({panelIndex:null,panelTransition:null}),computed:{panelDirectives(){if(!0===this.swipeable)return[{name:"touch-swipe",value:this.__swipe,modifiers:{horizontal:!0!==this.vertical,vertical:this.vertical,mouse:!0}}]},contentKey(){return"string"==typeof this.value||"number"==typeof this.value?this.value:String(this.value)},transitionPrevComputed(){return this.transitionPrev||`slide-${!0===this.vertical?"down":"right"}`},transitionNextComputed(){return this.transitionNext||`slide-${!0===this.vertical?"up":"left"}`},keepAliveProps(){return{include:this.keepAliveInclude,exclude:this.keepAliveExclude,max:this.keepAliveMax}},needsUniqueWrapper(){return void 0!==this.keepAliveInclude||void 0!==this.keepAliveExclude}},watch:{value(t,e){const i=!0===this.__isValidPanelName(t)?this.__getPanelIndex(t):-1;!0!==this.__forcedPanelTransition&&this.__updatePanelTransition(-1===i?0:i<this.__getPanelIndex(e)?-1:1),this.panelIndex!==i&&(this.panelIndex=i,this.$emit("before-transition",t,e),this.$nextTick(()=>{this.$emit("transition",t,e)}))}},methods:{next(){this.__go(1)},previous(){this.__go(-1)},goTo(t){this.$emit("input",t)},__isValidPanelName:t=>void 0!==t&&null!==t&&""!==t,__getPanelIndex(t){return this.panels.findIndex(e=>{const i=e.componentOptions.propsData;return i.name===t&&""!==i.disable&&!0!==i.disable})},__getEnabledPanels(){return this.panels.filter(t=>{const e=t.componentOptions.propsData;return""!==e.disable&&!0!==e.disable})},__updatePanelTransition(t){const e=0!==t&&!0===this.animated&&-1!==this.panelIndex?"q-transition--"+(-1===t?this.transitionPrevComputed:this.transitionNextComputed):null;this.panelTransition!==e&&(this.panelTransition=e)},__go(t,e=this.panelIndex){let i=e+t;const s=this.panels;for(;i>-1&&i<s.length;){const e=s[i].componentOptions;if(void 0!==e&&""!==e.propsData.disable&&!0!==e.propsData.disable)return this.__updatePanelTransition(t),this.__forcedPanelTransition=!0,this.$emit("input",s[i].componentOptions.propsData.name),void setTimeout(()=>{this.__forcedPanelTransition=!1});i+=t}!0===this.infinite&&s.length>0&&-1!==e&&e!==s.length&&this.__go(t,-1===t?s.length:-1)},__swipe(t){const e=!0===this.vertical?"up":"left";this.__go((!0===this.$q.lang.rtl?-1:1)*(t.direction===e?1:-1))},__updatePanelIndex(){const t=this.__getPanelIndex(this.value);return this.panelIndex!==t&&(this.panelIndex=t),!0},__getPanelContent(t){if(0===this.panels.length)return;const e=this.__isValidPanelName(this.value)&&this.__updatePanelIndex()&&this.panels[this.panelIndex],i=!0===this.keepAlive?[t("keep-alive",{props:this.keepAliveProps},[t(!0===this.needsUniqueWrapper?cacheWithFn(this,this.contentKey,()=>Vue.extend({name:this.contentKey,render:getPanelWrapper})):PanelWrapper,{key:this.contentKey},[e])])]:[t("div",{staticClass:"q-panel scroll",key:this.contentKey,attrs:{role:"tabpanel"},on:cache(this,"stop",{input:stop})},[e])];return!0===this.animated?[t("transition",{props:{name:this.panelTransition}},i)]:i}},render(t){return this.panels=slot(this,"default",[]).filter(t=>void 0!==t&&void 0!==t.componentOptions&&void 0!==t.componentOptions.propsData&&this.__isValidPanelName(t.componentOptions.propsData.name)),this.__renderPanels(t)}},PanelChildMixin={mixins:[ListenersMixin],props:{name:{required:!0},disable:Boolean}};let fullscreenCounter=0;var FullscreenMixin={props:{fullscreen:Boolean,noRouteFullscreenExit:Boolean},data:()=>({inFullscreen:!1}),watch:{$route(){!0!==this.noRouteFullscreenExit&&this.exitFullscreen()},fullscreen(t){this.inFullscreen!==t&&this.toggleFullscreen()},inFullscreen(t){this.$emit("update:fullscreen",t),this.$emit("fullscreen",t)}},methods:{toggleFullscreen(){!0===this.inFullscreen?this.exitFullscreen():this.setFullscreen()},setFullscreen(){!0!==this.inFullscreen&&(this.inFullscreen=!0,this.container=this.$el.parentNode,this.container.replaceChild(this.fullscreenFillerNode,this.$el),document.body.appendChild(this.$el),1===++fullscreenCounter&&document.body.classList.add("q-body--fullscreen-mixin"),this.__historyFullscreen={handler:this.exitFullscreen},History.add(this.__historyFullscreen))},exitFullscreen(){!0===this.inFullscreen&&(void 0!==this.__historyFullscreen&&(History.remove(this.__historyFullscreen),this.__historyFullscreen=void 0),this.container.replaceChild(this.$el,this.fullscreenFillerNode),this.inFullscreen=!1,0===(fullscreenCounter=Math.max(0,fullscreenCounter-1))&&(document.body.classList.remove("q-body--fullscreen-mixin"),void 0!==this.$el.scrollIntoView&&setTimeout(()=>{this.$el.scrollIntoView()})))}},beforeMount(){this.fullscreenFillerNode=document.createElement("span")},mounted(){!0===this.fullscreen&&this.setFullscreen()},beforeDestroy(){this.exitFullscreen()}};const hasMap="function"==typeof Map,hasSet="function"==typeof Set,hasArrayBuffer="function"==typeof ArrayBuffer;function isDeepEqual(t,e){if(t===e)return!0;if(null!==t&&null!==e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;let i,s;if(t.constructor===Array){if((i=t.length)!==e.length)return!1;for(s=i;0!=s--;)if(!0!==isDeepEqual(t[s],e[s]))return!1;return!0}if(!0===hasMap&&t.constructor===Map){if(t.size!==e.size)return!1;let i=t.entries();for(s=i.next();!0!==s.done;){if(!0!==e.has(s.value[0]))return!1;s=i.next()}for(s=(i=t.entries()).next();!0!==s.done;){if(!0!==isDeepEqual(s.value[1],e.get(s.value[0])))return!1;s=i.next()}return!0}if(!0===hasSet&&t.constructor===Set){if(t.size!==e.size)return!1;const i=t.entries();for(s=i.next();!0!==s.done;){if(!0!==e.has(s.value[0]))return!1;s=i.next()}return!0}if(!0===hasArrayBuffer&&null!=t.buffer&&t.buffer.constructor===ArrayBuffer){if((i=t.length)!==e.length)return!1;for(s=i;0!=s--;)if(t[s]!==e[s])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();const o=Object.keys(t).filter(e=>void 0!==t[e]);if((i=o.length)!==Object.keys(e).filter(t=>void 0!==e[t]).length)return!1;for(s=i;0!=s--;){const i=o[s];if(!0!==isDeepEqual(t[i],e[i]))return!1}return!0}return t!=t&&e!=e}function isObject(t){return null!==t&&"object"==typeof t&&!0!==Array.isArray(t)}function isDate(t){return"[object Date]"===Object.prototype.toString.call(t)}function isRegexp(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function isNumber(t){return"number"==typeof t&&isFinite(t)}var is={deepEqual:isDeepEqual,object:isObject,date:isDate,regexp:isRegexp,number:isNumber},QCarousel=Vue.extend({name:"QCarousel",mixins:[DarkMixin,PanelParentMixin,FullscreenMixin],props:{height:String,padding:Boolean,controlType:{type:String,validator:t=>["regular","flat","outline","push","unelevated"].includes(t),default:"flat"},controlColor:String,controlTextColor:String,autoplay:[Number,Boolean],arrows:Boolean,prevIcon:String,nextIcon:String,navigation:Boolean,navigationPosition:{type:String,validator:t=>["top","right","bottom","left"].includes(t)},navigationIcon:String,navigationActiveIcon:String,thumbnails:Boolean},computed:{style(){if(!0!==this.inFullscreen&&void 0!==this.height)return{height:this.height}},direction(){return!0===this.vertical?"vertical":"horizontal"},classes(){return`q-carousel q-panel-parent q-carousel--with${!0===this.padding?"":"out"}-padding`+(!0===this.inFullscreen?" fullscreen":"")+(!0===this.isDark?" q-carousel--dark q-dark":"")+(!0===this.arrows?` q-carousel--arrows-${this.direction}`:"")+(!0===this.navigation?` q-carousel--navigation-${this.navigationPositionComputed}`:"")},arrowIcons(){const t=[this.prevIcon||this.$q.iconSet.carousel[!0===this.vertical?"up":"left"],this.nextIcon||this.$q.iconSet.carousel[!0===this.vertical?"down":"right"]];return!1===this.vertical&&!0===this.$q.lang.rtl?t.reverse():t},navIcon(){return this.navigationIcon||this.$q.iconSet.carousel.navigationIcon},navActiveIcon(){return this.navigationActiveIcon||this.navIcon},navigationPositionComputed(){return this.navigationPosition||(!0===this.vertical?"right":"bottom")},controlProps(){return{color:this.controlColor,textColor:this.controlTextColor,round:!0,[this.controlType]:!0,dense:!0}},transitionPrevComputed(){return this.transitionPrev||"fade"},transitionNextComputed(){return this.transitionNext||"fade"}},watch:{value(){this.autoplay&&(clearInterval(this.timer),this.__startTimer())},autoplay(t){t?this.__startTimer():clearInterval(this.timer)}},methods:{__startTimer(){const t=!0===isNumber(this.autoplay)?this.autoplay:5e3;this.timer=setTimeout(t>=0?this.next:this.previous,Math.abs(t))},__getNavigationContainer(t,e,i){return t("div",{class:"q-carousel__control q-carousel__navigation no-wrap absolute flex"+` q-carousel__navigation--${e} q-carousel__navigation--${this.navigationPositionComputed}`+(void 0!==this.controlColor?` text-${this.controlColor}`:"")},[t("div",{staticClass:"q-carousel__navigation-inner flex flex-center no-wrap"},this.__getEnabledPanels().map(i))])},__getContent(t){const e=[];if(!0===this.navigation){const i=void 0!==this.$scopedSlots["navigation-icon"]?this.$scopedSlots["navigation-icon"]:e=>t(QBtn,{key:"nav"+e.name,class:`q-carousel__navigation-icon q-carousel__navigation-icon--${!0===e.active?"":"in"}active`,props:e.btnProps,on:cache(this,"nav#"+e.name,{click:e.onClick})}),s=this.panels.length-1;e.push(this.__getNavigationContainer(t,"buttons",(t,e)=>{const o=t.componentOptions.propsData.name,n=this.panelIndex===e;return i({index:e,maxIndex:s,name:o,active:n,btnProps:{icon:!0===n?this.navActiveIcon:this.navIcon,size:"sm",...this.controlProps},onClick:()=>{this.goTo(o)}})}))}else if(!0===this.thumbnails){const i=void 0!==this.controlColor?` text-${this.controlColor}`:"";e.push(this.__getNavigationContainer(t,"thumbnails",e=>{const s=e.componentOptions.propsData;return t("img",{class:`q-carousel__thumbnail q-carousel__thumbnail--${s.name===this.value?"":"in"}active`+i,attrs:{src:s.imgSrc},key:"tmb#"+s.name,on:cache(this,"tmb#"+s.name,{click:()=>{this.goTo(s.name)}})})}))}return!0===this.arrows&&this.panelIndex>=0&&((!0===this.infinite||this.panelIndex>0)&&e.push(t("div",{key:"prev",staticClass:`q-carousel__control q-carousel__arrow q-carousel__prev-arrow q-carousel__prev-arrow--${this.direction} absolute flex flex-center`},[t(QBtn,{props:{icon:this.arrowIcons[0],...this.controlProps},on:cache(this,"prev",{click:this.previous})})])),(!0===this.infinite||this.panelIndex<this.panels.length-1)&&e.push(t("div",{key:"next",staticClass:`q-carousel__control q-carousel__arrow q-carousel__next-arrow q-carousel__next-arrow--${this.direction} absolute flex flex-center`},[t(QBtn,{props:{icon:this.arrowIcons[1],...this.controlProps},on:cache(this,"next",{click:this.next})})]))),mergeSlot(e,this,"control")},__renderPanels(t){return t("div",{style:this.style,class:this.classes,on:{...this.qListeners}},[t("div",{staticClass:"q-carousel__slides-container",directives:this.panelDirectives},this.__getPanelContent(t))].concat(this.__getContent(t)))}},mounted(){this.autoplay&&this.__startTimer()},beforeDestroy(){clearInterval(this.timer)}}),QCarouselSlide=Vue.extend({name:"QCarouselSlide",mixins:[PanelChildMixin],props:{imgSrc:String},computed:{style(){if(this.imgSrc)return{backgroundImage:`url("${this.imgSrc}")`}}},render(t){return t("div",{staticClass:"q-carousel__slide",style:this.style,on:{...this.qListeners}},slot(this,"default"))}}),QCarouselControl=Vue.extend({name:"QCarouselControl",mixins:[ListenersMixin],props:{position:{type:String,default:"bottom-right",validator:t=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(t)},offset:{type:Array,default:()=>[18,18],validator:t=>2===t.length}},computed:{classes(){return`absolute-${this.position}`},style(){return{margin:`${this.offset[1]}px ${this.offset[0]}px`}}},render(t){return t("div",{staticClass:"q-carousel__control absolute",style:this.style,class:this.classes,on:{...this.qListeners}},slot(this,"default"))}}),QChatMessage=Vue.extend({name:"QChatMessage",mixins:[ListenersMixin],props:{sent:Boolean,label:String,bgColor:String,textColor:String,name:String,avatar:String,text:Array,stamp:String,size:String,labelSanitize:Boolean,nameSanitize:Boolean,textSanitize:Boolean,stampSanitize:Boolean},computed:{textClass(){return`q-message-text-content q-message-text-content--${this.op}`+(void 0!==this.textColor?` text-${this.textColor}`:"")},messageClass(){return`q-message-text q-message-text--${this.op}`+(void 0!==this.bgColor?` text-${this.bgColor}`:"")},containerClass(){return"q-message-container row items-end no-wrap"+(!0===this.sent?" reverse":"")},sizeClass(){if(void 0!==this.size)return`col-${this.size}`},op(){return!0===this.sent?"sent":"received"}},methods:{__wrapStamp(t,e){if(void 0!==this.$scopedSlots.stamp)return[e,t("div",{staticClass:"q-message-stamp"},this.$scopedSlots.stamp())];if(this.stamp){return[e,t("div",{staticClass:"q-message-stamp",domProps:{[!0===this.stampSanitize?"textContent":"innerHTML"]:this.stamp}})]}return[e]},__getText(t,e,i){const s=!0===this.textSanitize?"textContent":"innerHTML";if(!0===i&&!0===e.some(t=>void 0===t.tag&&void 0!==t.text))return[t("div",{class:this.messageClass},[t("div",{class:this.textClass},this.__wrapStamp(t,t("div",e)))])];const o=!0!==i?e=>t("div",{domProps:{[s]:e}}):e.length>1?t=>t:e=>t("div",[e]);return e.map((e,i)=>t("div",{key:i,class:this.messageClass},[t("div",{class:this.textClass},this.__wrapStamp(t,o(e)))]))}},render(t){const e=[];void 0!==this.$scopedSlots.avatar?e.push(this.$scopedSlots.avatar()):void 0!==this.avatar&&e.push(t("img",{class:`q-message-avatar q-message-avatar--${this.op}`,attrs:{src:this.avatar,"aria-hidden":"true"}}));const i=[];void 0!==this.$scopedSlots.name?i.push(t("div",{class:`q-message-name q-message-name--${this.op}`},this.$scopedSlots.name())):void 0!==this.name&&i.push(t("div",{class:`q-message-name q-message-name--${this.op}`,domProps:{[!0===this.nameSanitize?"textContent":"innerHTML"]:this.name}})),void 0!==this.text&&i.push(this.__getText(t,this.text)),void 0!==this.$scopedSlots.default&&i.push(this.__getText(t,this.$scopedSlots.default(),!0)),e.push(t("div",{class:this.sizeClass},i));const s=[];return void 0!==this.$scopedSlots.label?s.push(t("div",{staticClass:"q-message-label"},this.$scopedSlots.label())):void 0!==this.label&&s.push(t("div",{staticClass:"q-message-label",domProps:{[!0===this.labelSanitize?"textContent":"innerHTML"]:this.label}})),s.push(t("div",{class:this.containerClass},e)),t("div",{class:`q-message q-message-${this.op}`,on:{...this.qListeners}},s)}}),OptionSizeMixin=getSizeMixin({xs:30,sm:35,md:40,lg:50,xl:60}),RefocusTargetMixin={computed:{__refocusTargetEl(){if(!0!==this.disable)return this.$createElement("span",{ref:"refocusTarget",staticClass:"no-outline",attrs:{tabindex:-1}})}},methods:{__refocusTarget(t){void 0!==t&&0===t.type.indexOf("key")?document.activeElement!==this.$el&&!0===this.$el.contains(document.activeElement)&&this.$el.focus():void 0!==t&&!0!==this.$el.contains(t.target)||void 0===this.$refs.refocusTarget||this.$refs.refocusTarget.focus()}}},CheckboxMixin={mixins:[DarkMixin,OptionSizeMixin,FormMixin,RefocusTargetMixin],props:{value:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:t=>"tf"===t||"ft"===t},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},computed:{isTrue(){return!0===this.modelIsArray?this.index>-1:this.value===this.trueValue},isFalse(){return!0===this.modelIsArray?-1===this.index:this.value===this.falseValue},isIndeterminate(){return!1===this.isTrue&&!1===this.isFalse},index(){if(!0===this.modelIsArray)return this.value.indexOf(this.val)},modelIsArray(){return void 0!==this.val&&Array.isArray(this.value)},computedTabindex(){return!0===this.disable?-1:this.tabindex||0},classes(){return`q-${this.type} cursor-pointer no-outline row inline no-wrap items-center`+(!0===this.disable?" disabled":"")+(!0===this.isDark?` q-${this.type}--dark`:"")+(!0===this.dense?` q-${this.type}--dense`:"")+(!0===this.leftLabel?" reverse":"")},innerClass(){const t=!0===this.isTrue?"truthy":!0===this.isFalse?"falsy":"indet",e=void 0===this.color||!0!==this.keepColor&&("toggle"===this.type?!0!==this.isTrue:!0===this.isFalse)?"":` text-${this.color}`;return`q-${this.type}__inner--${t}${e}`},formAttrs(){const t={type:"checkbox"};return void 0!==this.name&&Object.assign(t,{checked:this.isTrue,name:this.name,value:!0===this.modelIsArray?this.val:this.trueValue}),t},attrs(){const t={tabindex:this.computedTabindex,role:"toggle"===this.type?"switch":"checkbox","aria-label":this.label,"aria-checked":!0===this.isIndeterminate?"mixed":!0===this.isTrue?"true":"false"};return!0===this.disable&&(t["aria-disabled"]="true"),t}},methods:{toggle(t){void 0!==t&&(stopAndPrevent(t),this.__refocusTarget(t)),!0!==this.disable&&this.$emit("input",this.__getNextValue(),t)},__getNextValue(){if(!0===this.modelIsArray){if(!0===this.isTrue){const t=this.value.slice();return t.splice(this.index,1),t}return this.value.concat([this.val])}if(!0===this.isTrue){if("ft"!==this.toggleOrder||!1===this.toggleIndeterminate)return this.falseValue}else{if(!0!==this.isFalse)return"ft"!==this.toggleOrder?this.trueValue:this.falseValue;if("ft"===this.toggleOrder||!1===this.toggleIndeterminate)return this.trueValue}return this.indeterminateValue},__onKeydown(t){13!==t.keyCode&&32!==t.keyCode||stopAndPrevent(t)},__onKeyup(t){13!==t.keyCode&&32!==t.keyCode||this.toggle(t)}},render(t){const e=this.__getInner(t);!0!==this.disable&&this.__injectFormInput(e,"unshift",`q-${this.type}__native absolute q-ma-none q-pa-none`);const i=[t("div",{staticClass:`q-${this.type}__inner relative-position non-selectable`,class:this.innerClass,style:this.sizeStyle,attrs:{"aria-hidden":"true"}},e)];void 0!==this.__refocusTargetEl&&i.push(this.__refocusTargetEl);const s=void 0!==this.label?mergeSlot([this.label],this,"default"):slot(this,"default");return void 0!==s&&i.push(t("div",{staticClass:`q-${this.type}__label q-anchor--skip`},s)),t("div",{class:this.classes,attrs:this.attrs,on:cache(this,"inpExt",{click:this.toggle,keydown:this.__onKeydown,keyup:this.__onKeyup})},i)}},QCheckbox=Vue.extend({name:"QCheckbox",mixins:[CheckboxMixin],computed:{computedIcon(){return!0===this.isTrue?this.checkedIcon:!0===this.isIndeterminate?this.indeterminateIcon:this.uncheckedIcon}},methods:{__getInner(t){return void 0!==this.computedIcon?[t("div",{key:"icon",staticClass:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[t(QIcon,{staticClass:"q-checkbox__icon",props:{name:this.computedIcon}})])]:[t("div",{key:"svg",staticClass:"q-checkbox__bg absolute"},[t("svg",{staticClass:"q-checkbox__svg fit absolute-full",attrs:{focusable:"false",viewBox:"0 0 24 24"}},[t("path",{staticClass:"q-checkbox__truthy",attrs:{fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}}),t("path",{staticClass:"q-checkbox__indet",attrs:{d:"M4,14H20V10H4"}})])])]}},created(){this.type="checkbox"}}),QChip=Vue.extend({name:"QChip",mixins:[RippleMixin,DarkMixin,getSizeMixin({xs:8,sm:10,md:14,lg:20,xl:24})],model:{event:"remove"},props:{dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,value:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean},computed:{classes(){const t=!0===this.outline&&this.color||this.textColor;return{[`bg-${this.color}`]:!1===this.outline&&void 0!==this.color,[`text-${t} q-chip--colored`]:t,disabled:this.disable,"q-chip--dense":this.dense,"q-chip--outline":this.outline,"q-chip--selected":this.selected,"q-chip--clickable cursor-pointer non-selectable q-hoverable":this.isClickable,"q-chip--square":this.square,"q-chip--dark q-dark":this.isDark}},hasLeftIcon(){return!0===this.selected||void 0!==this.icon},leftIcon(){return!0===this.selected?this.iconSelected||this.$q.iconSet.chip.selected:this.icon},removeIcon(){return this.iconRemove||this.$q.iconSet.chip.remove},isClickable(){return!1===this.disable&&(!0===this.clickable||null!==this.selected)},attrs(){const t=!0===this.disable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:this.tabindex||0};return{chip:t,remove:{...t,role:"button","aria-hidden":"false","aria-label":this.removeAriaLabel||this.$q.lang.label.remove}}}},methods:{__onKeyup(t){13===t.keyCode&&this.__onClick(t)},__onClick(t){this.disable||(this.$emit("update:selected",!this.selected),this.$emit("click",t))},__onRemove(t){void 0!==t.keyCode&&13!==t.keyCode||(stopAndPrevent(t),!this.disable&&this.$emit("remove",!1))},__getContent(t){const e=[];!0===this.isClickable&&e.push(t("div",{staticClass:"q-focus-helper"})),!0===this.hasLeftIcon&&e.push(t(QIcon,{staticClass:"q-chip__icon q-chip__icon--left",props:{name:this.leftIcon}}));const i=void 0!==this.label?[t("div",{staticClass:"ellipsis"},[this.label])]:void 0;return e.push(t("div",{staticClass:"q-chip__content col row no-wrap items-center q-anchor--skip"},mergeSlotSafely(i,this,"default"))),this.iconRight&&e.push(t(QIcon,{staticClass:"q-chip__icon q-chip__icon--right",props:{name:this.iconRight}})),!0===this.removable&&e.push(t(QIcon,{staticClass:"q-chip__icon q-chip__icon--remove cursor-pointer",props:{name:this.removeIcon},attrs:this.attrs.remove,on:cache(this,"non",{click:this.__onRemove,keyup:this.__onRemove})})),e}},render(t){if(!1===this.value)return;const e={staticClass:"q-chip row inline no-wrap items-center",class:this.classes,style:this.sizeStyle};return!0===this.isClickable&&Object.assign(e,{attrs:this.attrs.chip,on:cache(this,"click",{click:this.__onClick,keyup:this.__onKeyup}),directives:cache(this,"dir#"+this.ripple,[{name:"ripple",value:this.ripple}])}),t("div",e,this.__getContent(t))}});const radius=50,diameter=100,circumference=100*Math.PI,strokeDashArray=Math.round(1e3*circumference)/1e3;var QCircularProgress=Vue.extend({name:"QCircularProgress",mixins:[ListenersMixin,SizeMixin],props:{value:{type:Number,default:0},min:{type:Number,default:0},max:{type:Number,default:100},color:String,centerColor:String,trackColor:String,fontSize:String,rounded:Boolean,thickness:{type:Number,default:.2,validator:t=>t>=0&&t<=1},angle:{type:Number,default:0},indeterminate:Boolean,showValue:Boolean,reverse:Boolean,instantFeedback:Boolean},computed:{normalizedValue(){return between(this.value,this.min,this.max)},svgStyle(){const t=!0===this.$q.lang.rtl?-this.angle:this.angle;return{transform:this.reverse!==(!0===this.$q.lang.rtl)?`scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${-90-t}deg)`:`rotate3d(0, 0, 1, ${t-90}deg)`}},circleStyle(){if(!0!==this.instantFeedback&&!0!==this.indeterminate)return{transition:"stroke-dashoffset 0.6s ease 0s, stroke 0.6s ease"}},viewBox(){return 100/(1-this.thickness/2)},viewBoxAttr(){return`${this.viewBox/2} ${this.viewBox/2} ${this.viewBox} ${this.viewBox}`},strokeDashOffset(){return(1-(this.normalizedValue-this.min)/(this.max-this.min))*circumference},strokeWidth(){return this.thickness/2*this.viewBox},attrs(){return{role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":!0===this.indeterminate?void 0:this.normalizedValue}}},methods:{__getCircle(t,{thickness:e,offset:i,color:s,cls:o,rounded:n}){return t("circle",{staticClass:"q-circular-progress__"+o,class:void 0!==s?`text-${s}`:null,style:this.circleStyle,attrs:{fill:"transparent",stroke:"currentColor","stroke-width":e,"stroke-dasharray":strokeDashArray,"stroke-dashoffset":i,"stroke-linecap":n,cx:this.viewBox,cy:this.viewBox,r:50}})}},render(t){const e=[];void 0!==this.centerColor&&"transparent"!==this.centerColor&&e.push(t("circle",{staticClass:"q-circular-progress__center",class:`text-${this.centerColor}`,attrs:{fill:"currentColor",r:50-this.strokeWidth/2,cx:this.viewBox,cy:this.viewBox}})),void 0!==this.trackColor&&"transparent"!==this.trackColor&&e.push(this.__getCircle(t,{cls:"track",thickness:this.strokeWidth,offset:0,color:this.trackColor})),e.push(this.__getCircle(t,{cls:"circle",thickness:this.strokeWidth,offset:this.strokeDashOffset,color:this.color,rounded:!0===this.rounded?"round":void 0}));const i=[t("svg",{staticClass:"q-circular-progress__svg",style:this.svgStyle,attrs:{focusable:"false",viewBox:this.viewBoxAttr,"aria-hidden":"true"}},e)];return!0===this.showValue&&i.push(t("div",{staticClass:"q-circular-progress__text absolute-full row flex-center content-center",style:{fontSize:this.fontSize}},void 0!==this.$scopedSlots.default?this.$scopedSlots.default():[t("div",[this.normalizedValue])])),t("div",{staticClass:"q-circular-progress",class:`q-circular-progress--${!0===this.indeterminate?"in":""}determinate`,style:this.sizeStyle,on:{...this.qListeners},attrs:this.attrs},mergeSlotSafely(i,this,"internal"))}});const hex=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,hexa=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,hexOrHexa=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,rgb=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,rgba=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,testPattern={date:t=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(t),time:t=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(t),fulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(t),timeOrFulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(t),email:t=>/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t),hexColor:t=>hex.test(t),hexaColor:t=>hexa.test(t),hexOrHexaColor:t=>hexOrHexa.test(t),rgbColor:t=>rgb.test(t),rgbaColor:t=>rgba.test(t),rgbOrRgbaColor:t=>rgb.test(t)||rgba.test(t),hexOrRgbColor:t=>hex.test(t)||rgb.test(t),hexaOrRgbaColor:t=>hexa.test(t)||rgba.test(t),anyColor:t=>hexOrHexa.test(t)||rgb.test(t)||rgba.test(t)};var patterns={testPattern:testPattern};function getChanges(t,e,i){const s=position(t);let o,n=s.left-e.event.x,r=s.top-e.event.y,a=Math.abs(n),l=Math.abs(r);const h=e.direction;!0===h.horizontal&&!0!==h.vertical?o=n<0?"left":"right":!0!==h.horizontal&&!0===h.vertical?o=r<0?"up":"down":!0===h.up&&r<0?(o="up",a>l&&(!0===h.left&&n<0?o="left":!0===h.right&&n>0&&(o="right"))):!0===h.down&&r>0?(o="down",a>l&&(!0===h.left&&n<0?o="left":!0===h.right&&n>0&&(o="right"))):!0===h.left&&n<0?(o="left",a<l&&(!0===h.up&&r<0?o="up":!0===h.down&&r>0&&(o="down"))):!0===h.right&&n>0&&(o="right",a<l&&(!0===h.up&&r<0?o="up":!0===h.down&&r>0&&(o="down")));let d=!1;if(void 0===o&&!1===i){if(!0===e.event.isFirst||void 0===e.event.lastDir)return{};d=!0,"left"===(o=e.event.lastDir)||"right"===o?(s.left-=n,a=0,n=0):(s.top-=r,l=0,r=0)}return{synthetic:d,payload:{evt:t,touch:!0!==e.event.mouse,mouse:!0===e.event.mouse,position:s,direction:o,isFirst:e.event.isFirst,isFinal:!0===i,duration:Date.now()-e.event.time,distance:{x:a,y:l},offset:{x:n,y:r},delta:{x:s.left-e.event.lastX,y:s.top-e.event.lastY}}}}function destroy$2(t){const e=t.__qtouchpan;void 0!==e&&(void 0!==e.event&&e.end(),cleanEvt(e,"main"),cleanEvt(e,"temp"),!0===client.is.firefox&&preventDraggable(t,!1),void 0!==e.styleCleanup&&e.styleCleanup(),delete t.__qtouchpan)}let uid$1=0;var TouchPan={name:"touch-pan",bind(t,{value:e,modifiers:i}){if(void 0!==t.__qtouchpan&&(destroy$2(t),t.__qtouchpan_destroyed=!0),!0!==i.mouse&&!0!==client.has.touch)return;function s(t,e){!0===i.mouse&&!0===e?stopAndPrevent(t):(!0===i.stop&&stop(t),!0===i.prevent&&prevent(t))}const o={uid:"qvtp_"+uid$1++,handler:e,modifiers:i,direction:getModifierDirections(i),noop:noop,mouseStart(t){shouldStart(t,o)&&leftClick(t)&&(addEvt(o,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),o.start(t,!0))},touchStart(t){if(shouldStart(t,o)){const e=t.target;addEvt(o,"temp",[[e,"touchmove","move","notPassiveCapture"],[e,"touchcancel","end","passiveCapture"],[e,"touchend","end","passiveCapture"]]),o.start(t)}},start(e,s){!0===client.is.firefox&&preventDraggable(t,!0),o.lastEvt=e;const n=position(e);if(!0===s||!0===i.stop){if(!0!==o.direction.all&&(!0!==s||!0!==o.modifiers.mouseAllDir&&!0!==o.modifiers.mousealldir)){const t=e.type.indexOf("mouse")>-1?new MouseEvent(e.type,e):new TouchEvent(e.type,e);!0===e.defaultPrevented&&prevent(t),!0===e.cancelBubble&&stop(t),t.qClonedBy=void 0===e.qClonedBy?[o.uid]:e.qClonedBy.concat(o.uid),t.qKeyEvent=e.qKeyEvent,t.qClickOutside=e.qClickOutside,o.initialEvent={target:e.target,event:t}}stop(e)}o.event={x:n.left,y:n.top,time:Date.now(),mouse:!0===s,detected:!1,isFirst:!0,isFinal:!1,lastX:n.left,lastY:n.top}},move(t){if(void 0===o.event)return;o.lastEvt=t;const e=!0===o.event.mouse,i=()=>{let i;s(t,e),!0!==o.modifiers.preserveCursor&&!0!==o.modifiers.preservecursor&&(i=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),!0===e&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),clearSelection(),o.styleCleanup=(t=>{if(o.styleCleanup=void 0,void 0!==i&&(document.documentElement.style.cursor=i),document.body.classList.remove("non-selectable"),!0===e){const e=()=>{document.body.classList.remove("no-pointer-events--children")};void 0!==t?setTimeout(()=>{e(),t()},50):e()}else void 0!==t&&t()})};if(!0===o.event.detected){!0!==o.event.isFirst&&s(t,o.event.mouse);const{payload:e,synthetic:n}=getChanges(t,o,!1);return void(void 0!==e&&(!1===o.handler(e)?o.end(t):(void 0===o.styleCleanup&&!0===o.event.isFirst&&i(),o.event.lastX=e.position.left,o.event.lastY=e.position.top,o.event.lastDir=!0===n?void 0:e.direction,o.event.isFirst=!1)))}if(!0===o.direction.all||!0===e&&(!0===o.modifiers.mouseAllDir||!0===o.modifiers.mousealldir))return i(),o.event.detected=!0,void o.move(t);const n=position(t),r=n.left-o.event.x,a=n.top-o.event.y,l=Math.abs(r),h=Math.abs(a);l!==h&&(!0===o.direction.horizontal&&l>h||!0===o.direction.vertical&&l<h||!0===o.direction.up&&l<h&&a<0||!0===o.direction.down&&l<h&&a>0||!0===o.direction.left&&l>h&&r<0||!0===o.direction.right&&l>h&&r>0?(o.event.detected=!0,o.move(t)):o.end(t,!0))},end(e,i){if(void 0!==o.event){if(cleanEvt(o,"temp"),!0===client.is.firefox&&preventDraggable(t,!1),!0===i)void 0!==o.styleCleanup&&o.styleCleanup(),!0!==o.event.detected&&void 0!==o.initialEvent&&o.initialEvent.target.dispatchEvent(o.initialEvent.event);else if(!0===o.event.detected){!0===o.event.isFirst&&o.handler(getChanges(void 0===e?o.lastEvt:e,o).payload);const{payload:t}=getChanges(void 0===e?o.lastEvt:e,o,!0),i=()=>{o.handler(t)};void 0!==o.styleCleanup?o.styleCleanup(i):i()}o.event=void 0,o.initialEvent=void 0,o.lastEvt=void 0}}};t.__qtouchpan=o,!0===i.mouse&&addEvt(o,"main",[[t,"mousedown","mouseStart",`passive${!0===i.mouseCapture||!0===i.mousecapture?"Capture":""}`]]),!0===client.has.touch&&addEvt(o,"main",[[t,"touchstart","touchStart",`passive${!0===i.capture?"Capture":""}`],[t,"touchmove","noop","notPassiveCapture"]])},update(t,{oldValue:e,value:i}){const s=t.__qtouchpan;void 0!==s&&e!==i&&("function"!=typeof i&&s.end(),s.handler=i)},unbind(t){void 0===t.__qtouchpan_destroyed?destroy$2(t):delete t.__qtouchpan_destroyed}};const markerPrefixClass="q-slider__marker-labels",defaultMarkerConvertFn=t=>({value:t}),keyCodes=[34,37,40,33,39,38],SliderMixin={mixins:[DarkMixin,FormMixin],directives:{TouchPan:TouchPan},props:{min:{type:Number,default:0},max:{type:Number,default:100},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:t=>t>=0},snap:Boolean,vertical:Boolean,reverse:Boolean,hideSelection:Boolean,color:String,markerLabelsClass:String,label:Boolean,labelColor:String,labelTextColor:String,labelAlways:Boolean,switchLabelSide:Boolean,markers:[Boolean,Number],markerLabels:[Boolean,Array,Object,Function],switchMarkerLabelsSide:Boolean,trackImg:String,trackColor:String,innerTrackImg:String,innerTrackColor:String,selectionColor:String,selectionImg:String,thumbSize:{type:String,default:"20px"},trackSize:{type:String,default:"4px"},disable:Boolean,readonly:Boolean,dense:Boolean,tabindex:[String,Number],thumbColor:String,thumbPath:{type:String,default:"M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"}},data:()=>({active:!1,preventFocus:!1,focus:!1,dragging:!1}),computed:{axis(){return!0===this.vertical?"--v":"--h"},labelSide(){return"-"+(!0===this.switchLabelSide?"switched":"standard")},isReversed(){return!0===this.vertical?!0===this.reverse:this.reverse!==(!0===this.$q.lang.rtl)},computedInnerMin(){return this.__getInnerMin(this.innerMin)},computedInnerMax(){return this.__getInnerMax(this.innerMax)},editable(){return!0!==this.disable&&!0!==this.readonly&&this.computedInnerMin<this.computedInnerMax},computedDecimals(){return(String(this.step).trim("0").split(".")[1]||"").length},computedStep(){return 0===this.step?1:this.step},computedTabindex(){return!0===this.editable?this.tabindex||0:-1},trackLen(){return this.max-this.min},innerBarLen(){return this.computedInnerMax-this.computedInnerMin},innerMinRatio(){return this.__convertModelToRatio(this.computedInnerMin)},innerMaxRatio(){return this.__convertModelToRatio(this.computedInnerMax)},positionProp(){return!0===this.vertical?!0===this.isReversed?"bottom":"top":!0===this.isReversed?"right":"left"},sizeProp(){return!0===this.vertical?"height":"width"},thicknessProp(){return!0===this.vertical?"width":"height"},orientation(){return!0===this.vertical?"vertical":"horizontal"},attributes(){const t={role:"slider","aria-valuemin":this.computedInnerMin,"aria-valuemax":this.computedInnerMax,"aria-orientation":this.orientation,"data-step":this.step};return!0===this.disable?t["aria-disabled"]="true":!0===this.readonly&&(t["aria-readonly"]="true"),t},classes(){return`q-slider q-slider${this.axis} q-slider--${!0===this.active?"":"in"}active inline no-wrap `+(!0===this.vertical?"row":"column")+(!0===this.disable?" disabled":" q-slider--enabled"+(!0===this.editable?" q-slider--editable":""))+("both"===this.focus?" q-slider--focus":"")+(this.label||!0===this.labelAlways?" q-slider--label":"")+(!0===this.labelAlways?" q-slider--label-always":"")+(!0===this.isDark?" q-slider--dark":"")+(!0===this.dense?" q-slider--dense q-slider--dense"+this.axis:"")},selectionBarClass(){const t=this.selectionColor||this.color;return"q-slider__selection absolute"+(void 0!==t?` text-${t}`:"")},markerClass(){return this.__getAxisClass("markers")+" absolute overflow-hidden"},trackContainerClass(){return this.__getAxisClass("track-container")},pinClass(){return this.__getPositionClass("pin")},labelClass(){return this.__getPositionClass("label")},textContainerClass(){return this.__getPositionClass("text-container")},markerLabelsContainerClass(){return this.__getPositionClass("marker-labels-container")+(void 0!==this.markerLabelsClass?` ${this.markerLabelsClass}`:"")},trackClass(){return"q-slider__track relative-position no-outline"+(void 0!==this.trackColor?` bg-${this.trackColor}`:"")},trackStyle(){const t={[this.thicknessProp]:this.trackSize};return void 0!==this.trackImg&&(t.backgroundImage=`url(${this.trackImg}) !important`),t},innerBarClass(){return"q-slider__inner absolute"+(void 0!==this.innerTrackColor?` bg-${this.innerTrackColor}`:"")},innerBarStyle(){const t={[this.positionProp]:`${100*this.innerMinRatio}%`,[this.sizeProp]:`${100*(this.innerMaxRatio-this.innerMinRatio)}%`};return void 0!==this.innerTrackImg&&(t.backgroundImage=`url(${this.innerTrackImg}) !important`),t},markerStep(){return!0===isNumber(this.markers)?this.markers:this.computedStep},markerTicks(){const t=[],e=this.markerStep;let i=this.min;do{t.push(i),i+=e}while(i<this.max);return t.push(this.max),t},markerLabelClass(){const t=` ${markerPrefixClass}${this.axis}-`;return markerPrefixClass+`${t}${!0===this.switchMarkerLabelsSide?"switched":"standard"}`+`${t}${!0===this.isReversed?"rtl":"ltr"}`},markerLabelsList(){return!1===this.markerLabels?null:this.__getMarkerList(this.markerLabels).map((t,e)=>({index:e,value:t.value,label:t.label||t.value,classes:this.markerLabelClass+(void 0!==t.classes?" "+t.classes:""),style:{...this.__getMarkerLabelStyle(t.value),...t.style||{}}}))},markerScope(){return{markerList:this.markerLabelsList,markerMap:this.markerLabelsMap,classes:this.markerLabelClass,getStyle:this.__getMarkerLabelStyle}},markerStyle(){if(0!==this.innerBarLen){const t=100*this.markerStep/this.innerBarLen;return{...this.innerBarStyle,backgroundSize:!0===this.vertical?`2px ${t}%`:`${t}% 2px`}}return null},markerLabelsMap(){if(!1===this.markerLabels)return null;const t={};return this.markerLabelsList.forEach(e=>{t[e.value]=e}),t},panDirectives(){return!0===this.editable?[{name:"touch-pan",value:this.__onPan,modifiers:{[this.orientation]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}}]:null}},methods:{__getInnerMin(t){return!0===isNaN(t)||this.innerMin<this.min?this.min:this.innerMin},__getInnerMax(t){return!0===isNaN(t)||t>this.max?this.max:this.innerMax},__getPositionClass(t){const e="q-slider__"+t;return`${e} ${e}${this.axis} ${e}${this.axis}${this.labelSide}`},__getAxisClass(t){const e="q-slider__"+t;return`${e} ${e}${this.axis}`},__convertRatioToModel(t){let e=this.min+t*(this.max-this.min);if(this.step>0){const t=(e-this.min)%this.step;e+=(Math.abs(t)>=this.step/2?(t<0?-1:1)*this.step:0)-t}return this.computedDecimals>0&&(e=parseFloat(e.toFixed(this.computedDecimals))),between(e,this.computedInnerMin,this.computedInnerMax)},__convertModelToRatio(t){return 0===this.trackLen?0:(t-this.min)/this.trackLen},__getDraggingRatio(t,e){const i=position(t),s=!0===this.vertical?between((i.top-e.top)/e.height,0,1):between((i.left-e.left)/e.width,0,1);return between(!0===this.isReversed?1-s:s,this.innerMinRatio,this.innerMaxRatio)},__getMarkerList(t){if(!1===t)return null;if(!0===t)return this.markerTicks.map(defaultMarkerConvertFn);if("function"==typeof t)return this.markerTicks.map(e=>{const i=t(e);return!0===isObject(i)?{...i,value:e}:{value:e,label:i}});const e=({value:t})=>t>=this.min&&t<=this.max;return!0===Array.isArray(t)?t.map(t=>!0===isObject(t)?t:{value:t}).filter(e):Object.keys(t).map(e=>{const i=t[e],s=Number(e);return!0===isObject(i)?{...i,value:s}:{value:s,label:i}}).filter(e)},__getMarkerLabelStyle(t){return{[this.positionProp]:`${100*(t-this.min)/this.trackLen}%`}},__getMarkerLabelsContent(t){if(void 0!==this.$scopedSlots["marker-label-group"])return this.$scopedSlots["marker-label-group"](this.markerScope);const e=this.$scopedSlots["marker-label"];return void 0!==e?this.markerLabelsList.map(t=>e({marker:t,...this.markerScope})):this.markerLabelsList.map(e=>t("div",{key:e.value,style:e.style,class:e.classes},e.label))},__onPan(t){!0===t.isFinal?(void 0!==this.dragging&&(this.__updatePosition(t.evt),!0===t.touch&&this.__updateValue(!0),this.dragging=void 0,this.$emit("pan","end")),this.active=!1,this.focus=!1):!0===t.isFirst?(this.dragging=this.__getDragging(t.evt),this.__updatePosition(t.evt),this.__updateValue(),this.active=!0,this.$emit("pan","start")):(this.__updatePosition(t.evt),this.__updateValue())},__onBlur(){this.focus=!1},__onActivate(t){this.__updatePosition(t,this.__getDragging(t)),this.__updateValue(),this.preventFocus=!0,this.active=!0,document.addEventListener("mouseup",this.__onDeactivate,!0)},__onDeactivate(){this.preventFocus=!1,this.active=!1,this.__updateValue(!0),this.__onBlur(),document.removeEventListener("mouseup",this.__onDeactivate,!0)},__onMobileClick(t){this.__updatePosition(t,this.__getDragging(t)),this.__updateValue(!0)},__onKeyup(t){keyCodes.includes(t.keyCode)&&this.__updateValue(!0)},__getTextContainerStyle(t){if(!0===this.vertical)return null;const e=this.$q.lang.rtl!==this.reverse?1-t:t;return{transform:`translateX(calc(${2*e-1} * ${this.thumbSize} / 2 + ${50-100*e}%))`}},__getThumb(t,e){const i=[t("svg",{class:"q-slider__thumb-shape absolute-full",attrs:{viewBox:"0 0 20 20","aria-hidden":"true"}},[t("path",{attrs:{d:this.thumbPath}})]),t("div",{class:"q-slider__focus-ring fit"})];return!0!==this.label&&!0!==this.labelAlways||(i.push(t("div",{class:this.pinClass+" absolute fit no-pointer-events"+e.pinColor},[t("div",{class:this.labelClass,style:{minWidth:this.thumbSize}},[t("div",{class:this.textContainerClass,style:e.textContainerStyle},[t("span",{class:e.textClass},e.label)])])])),void 0!==this.name&&!0!==this.disable&&this.__injectFormInput(i,"push")),t("div",{class:e.classes,style:e.style,...e.nodeData},i)},__getContent(t,e){const i=[];"transparent"!==this.innerTrackColor&&i.push(t("div",{key:"inner",class:this.innerBarClass,style:this.innerBarStyle})),"transparent"!==this.selectionColor&&i.push(t("div",{key:"selection",class:this.selectionBarClass,style:this.selectionBarStyle})),!1!==this.markers&&i.push(t("div",{key:"marker",class:this.markerClass,style:this.markerStyle})),e(i);const s=[t("div",{key:"trackC",class:this.trackContainerClass,attrs:this.trackContainerAttrs,on:this.trackContainerEvents,directives:this.panDirectives},[t("div",{class:this.trackClass,style:this.trackStyle},i)])];if(!1!==this.markerLabels){s[!0===this.switchMarkerLabelsSide?"unshift":"push"](t("div",{key:"markerL",class:this.markerLabelsContainerClass},this.__getMarkerLabelsContent(t)))}return s}},beforeDestroy(){document.removeEventListener("mouseup",this.__onDeactivate,!0)}};var QSlider=Vue.extend({name:"QSlider",mixins:[SliderMixin],props:{value:{required:!0,default:null,validator:t=>"number"==typeof t||null===t},labelValue:[String,Number]},data(){const t=this.__getInnerMin(this.innerMin),e=this.__getInnerMax(this.innerMax);return{model:null===this.value?t:between(this.value,t,e),curRatio:0}},computed:{modelRatio(){return this.__convertModelToRatio(this.model)},ratio(){return!0===this.active?this.curRatio:this.modelRatio},selectionBarStyle(){const t={[this.positionProp]:`${100*this.innerMinRatio}%`,[this.sizeProp]:`${100*(this.ratio-this.innerMinRatio)}%`};return void 0!==this.selectionImg&&(t.backgroundImage=`url(${this.selectionImg}) !important`),t},thumbLabel(){return void 0!==this.labelValue?this.labelValue:this.model},thumbClasses(){const t=this.thumbColor||this.color;return`q-slider__thumb q-slider__thumb${this.axis} q-slider__thumb${this.axis}-${!0===this.isReversed?"rtl":"ltr"} absolute non-selectable`+(!1===this.preventFocus&&!0===this.focus?" q-slider--focus":"")+(void 0!==t?` text-${t}`:"")},thumbStyle(){return{width:this.thumbSize,height:this.thumbSize,[this.positionProp]:`${100*this.ratio}%`}},thumbPinColor(){return void 0!==this.labelColor?` text-${this.labelColor}`:""},thumbTextContainerStyle(){return this.__getTextContainerStyle(this.ratio)},thumbTextClass(){return"q-slider__text"+(void 0!==this.labelTextColor?` text-${this.labelTextColor}`:"")},trackContainerEvents(){return!0!==this.editable?{}:!0===this.$q.platform.is.mobile?{click:this.__onMobileClick}:{mousedown:this.__onActivate,focus:this.__onFocus,blur:this.__onBlur,keydown:this.__onKeydown,keyup:this.__onKeyup}},trackContainerAttrs(){return{tabindex:!0!==this.$q.platform.is.mobile?this.computedTabindex:null}},modelUpdate(){return`${this.value}|${this.computedInnerMin}|${this.computedInnerMax}`}},watch:{modelUpdate(){this.model=null===this.value?this.computedInnerMin:between(this.value,this.computedInnerMin,this.computedInnerMax)}},methods:{__updateValue(t){this.model!==this.value&&this.$emit("input",this.model),!0===t&&this.$emit("change",this.model)},__getDragging(){return this.$el.getBoundingClientRect()},__updatePosition(t,e=this.dragging){const i=this.__getDraggingRatio(t,e);this.model=this.__convertRatioToModel(i),this.curRatio=!0!==this.snap||0===this.computedStep?i:this.__convertModelToRatio(this.model)},__onFocus(){this.focus=!0},__onKeydown(t){if(!keyCodes.includes(t.keyCode))return;stopAndPrevent(t);const e=([34,33].includes(t.keyCode)?10:1)*this.computedStep,i=([34,37,40].includes(t.keyCode)?-1:1)*(!0===this.isReversed?-1:1)*(!0===this.vertical?-1:1)*e;this.model=between(parseFloat((this.model+i).toFixed(this.computedDecimals)),this.computedInnerMin,this.computedInnerMax),this.__updateValue()}},render(t){const e=this.__getContent(t,e=>{e.push(this.__getThumb(t,{pinColor:this.thumbPinColor,textContainerStyle:this.thumbTextContainerStyle,textClass:this.thumbTextClass,label:this.thumbLabel,classes:this.thumbClasses,style:this.thumbStyle,nodeData:{}}))});return t("div",{class:this.classes+(null===this.value?" q-slider--no-value":""),attrs:{...this.attributes,"aria-valuenow":this.value}},e)}}),CanRenderMixin={data:()=>({canRender:!onSSR}),mounted(){!1===this.canRender&&(this.canRender=!0)}},QResizeObserver=Vue.extend({name:"QResizeObserver",mixins:[CanRenderMixin],props:{debounce:{type:[String,Number],default:100}},data(){return!0===this.hasObserver?{}:{url:!0===this.$q.platform.is.ie?null:"about:blank"}},methods:{trigger(t){!0===t||0===this.debounce||"0"===this.debounce?this.__emit():null===this.timer&&(this.timer=setTimeout(this.__emit,this.debounce))},__emit(){if(null!==this.timer&&(clearTimeout(this.timer),this.timer=null),!this.$el||!this.$el.parentNode)return;const t=this.$el.parentNode,e={width:t.offsetWidth,height:t.offsetHeight};e.width===this.size.width&&e.height===this.size.height||(this.size=e,this.$emit("resize",this.size))},__cleanup(){void 0!==this.curDocView&&(void 0!==this.curDocView.removeEventListener&&this.curDocView.removeEventListener("resize",this.trigger,listenOpts.passive),this.curDocView=void 0)},__onObjLoad(){this.__cleanup(),this.$el.contentDocument&&(this.curDocView=this.$el.contentDocument.defaultView,this.curDocView.addEventListener("resize",this.trigger,listenOpts.passive)),this.__emit()}},render(t){if(!1!==this.canRender&&!0!==this.hasObserver)return t("object",{style:this.style,attrs:{tabindex:-1,type:"text/html",data:this.url,"aria-hidden":"true"},on:cache(this,"load",{load:this.__onObjLoad})})},beforeCreate(){this.size={width:-1,height:-1},!0!==isSSR&&(this.hasObserver="undefined"!=typeof ResizeObserver,!0!==this.hasObserver&&(this.style=`${this.$q.platform.is.ie?"visibility:hidden;":""}display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;`))},mounted(){if(this.timer=null,!0===this.hasObserver)return this.observer=new ResizeObserver(this.trigger),this.observer.observe(this.$el.parentNode),void this.__emit();!0===this.$q.platform.is.ie?(this.url="about:blank",this.__emit()):this.__onObjLoad()},beforeDestroy(){clearTimeout(this.timer),!0!==this.hasObserver?this.__cleanup():void 0!==this.observer&&this.$el.parentNode&&this.observer.unobserve(this.$el.parentNode)}});function injectProp(t,e,i,s){return Object.defineProperty(t,e,{get:i,set:s,enumerable:!0}),t}function getIndicatorClass(t,e,i){const s=!0===i?["left","right"]:["top","bottom"];return`absolute-${!0===e?s[0]:s[1]}${t?` text-${t}`:""}`}const alignValues$1=["left","center","right","justify"],getDefaultBestScore=()=>({matchedLen:0,queryDiff:9999,hrefLen:0,exact:!1,redirected:!0});function hasQueryIncluded(t,e){for(const i in t)if(t[i]!==e[i])return!1;return!0}var QTabs=Vue.extend({name:"QTabs",mixins:[TimeoutMixin,ListenersMixin],provide(){return{$tabs:this}},props:{value:[Number,String],align:{type:String,default:"center",validator:t=>alignValues$1.includes(t)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String},data(){return{scrollable:!1,leftArrow:!0,rightArrow:!1,justify:!1,tabNameList:[],currentModel:this.value,hasFocus:!1,avoidRouteWatcher:!1}},watch:{isRTL(){this.__localUpdateArrows()},value(t){this.__updateModel({name:t,setCurrent:!0,skipEmit:!0})},outsideArrows(){this.__recalculateScroll()},arrowsEnabled(t){this.__localUpdateArrows=!0===t?this.__updateArrowsFn:noop,this.__recalculateScroll()}},computed:{tabProps(){return{activeClass:this.activeClass,activeColor:this.activeColor,activeBgColor:this.activeBgColor,indicatorClass:getIndicatorClass(this.indicatorColor,this.switchIndicator,this.vertical),narrowIndicator:this.narrowIndicator,inlineLabel:this.inlineLabel,noCaps:this.noCaps}},hasActiveTab(){return this.tabNameList.some(t=>t.name===this.currentModel)},arrowsEnabled(){return!0===this.$q.platform.is.desktop||!0===this.mobileArrows},alignClass(){return`q-tabs__content--align-${!0===this.scrollable?"left":!0===this.justify?"justify":this.align}`},classes(){return"q-tabs row no-wrap items-center"+` q-tabs--${!0===this.scrollable?"":"not-"}scrollable`+` q-tabs--${!0===this.vertical?"vertical":"horizontal"}`+` q-tabs__arrows--${!0===this.arrowsEnabled&&!0===this.outsideArrows?"outside":"inside"}`+(!0===this.dense?" q-tabs--dense":"")+(!0===this.shrink?" col-shrink":"")+(!0===this.stretch?" self-stretch":"")},innerClass(){return"q-tabs__content row no-wrap items-center self-stretch hide-scrollbar relative-position "+this.alignClass+(void 0!==this.contentClass?` ${this.contentClass}`:"")+(!0===this.$q.platform.is.mobile?" scroll":"")},domProps(){return!0===this.vertical?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"}},isRTL(){return!0!==this.vertical&&!0===this.$q.lang.rtl},rtlPosCorrection(){return!1===rtlHasScrollBug()&&!0===this.isRTL},posFn(){return!0===this.rtlPosCorrection?{get:t=>Math.abs(t.scrollLeft),set:(t,e)=>{t.scrollLeft=-e}}:!0===this.vertical?{get:t=>t.scrollTop,set:(t,e)=>{t.scrollTop=e}}:{get:t=>t.scrollLeft,set:(t,e)=>{t.scrollLeft=e}}},onEvents(){return{input:stop,...this.qListeners,focusin:this.__onFocusin,focusout:this.__onFocusout}}},methods:{__updateModel({name:t,setCurrent:e,skipEmit:i}){this.currentModel!==t&&(!0!==i&&void 0!==this.qListeners.input&&this.$emit("input",t),!0!==e&&void 0!==this.qListeners.input||(this.__animate(this.currentModel,t),this.currentModel=t))},__recalculateScroll(){this.__registerScrollTick(()=>{this.__updateContainer({width:this.$el.offsetWidth,height:this.$el.offsetHeight})})},__updateContainer(t){if(void 0===this.domProps||!this.$refs.content)return;const e=t[this.domProps.container],i=Math.min(this.$refs.content[this.domProps.scroll],Array.prototype.reduce.call(this.$refs.content.children,(t,e)=>t+(e[this.domProps.content]||0),0)),s=e>0&&i>e;this.scrollable!==s&&(this.scrollable=s),!0===s&&this.__registerUpdateArrowsTick(this.__localUpdateArrows);const o=e<parseInt(this.breakpoint,10);this.justify!==o&&(this.justify=o)},__animate(t,e){const i=void 0!==t&&null!==t&&""!==t?this.tabVmList.find(e=>e.name===t):null,s=void 0!==e&&null!==e&&""!==e?this.tabVmList.find(t=>t.name===e):null;if(i&&s){const t=i.$refs.tabIndicator,e=s.$refs.tabIndicator;clearTimeout(this.animateTimer),t.style.transition="none",t.style.transform="none",e.style.transition="none",e.style.transform="none";const o=t.getBoundingClientRect(),n=e.getBoundingClientRect();e.style.transform=!0===this.vertical?`translate3d(0,${o.top-n.top}px,0) scale3d(1,${n.height?o.height/n.height:1},1)`:`translate3d(${o.left-n.left}px,0,0) scale3d(${n.width?o.width/n.width:1},1,1)`,this.__registerAnimateTick(()=>{this.animateTimer=setTimeout(()=>{e.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",e.style.transform="none"},70)})}s&&!0===this.scrollable&&this.__scrollToTabEl(s.$el)},__scrollToTabEl(t){const e=this.$refs.content,{left:i,width:s,top:o,height:n}=e.getBoundingClientRect(),r=t.getBoundingClientRect();let a=!0===this.vertical?r.top-o:r.left-i;if(a<0)return e[!0===this.vertical?"scrollTop":"scrollLeft"]+=Math.floor(a),void this.__localUpdateArrows();(a+=!0===this.vertical?r.height-n:r.width-s)>0&&(e[!0===this.vertical?"scrollTop":"scrollLeft"]+=Math.ceil(a),this.__localUpdateArrows())},__updateArrowsFn(){const t=this.$refs.content;if(null!==t){const e=t.getBoundingClientRect(),i=!0===this.vertical?t.scrollTop:Math.abs(t.scrollLeft);!0===this.isRTL?(this.leftArrow=Math.ceil(i+e.width)<t.scrollWidth-1,this.rightArrow=i>0):(this.leftArrow=i>0,this.rightArrow=!0===this.vertical?Math.ceil(i+e.height)<t.scrollHeight:Math.ceil(i+e.width)<t.scrollWidth)}},__animScrollTo(t){this.__stopAnimScroll(),this.scrollTimer=setInterval(()=>{!0===this.__scrollTowards(t)&&this.__stopAnimScroll()},5)},__scrollToStart(){this.__animScrollTo(!0===this.rtlPosCorrection?Number.MAX_SAFE_INTEGER:0)},__scrollToEnd(){this.__animScrollTo(!0===this.rtlPosCorrection?0:Number.MAX_SAFE_INTEGER)},__stopAnimScroll(){clearInterval(this.scrollTimer)},__onKbdNavigate(t,e){const i=Array.prototype.filter.call(this.$refs.content.children,t=>t===e||t.matches&&!0===t.matches(".q-tab.q-focusable")),s=i.length;if(0===s)return;if(36===t)return this.__scrollToTabEl(i[0]),i[0].focus(),!0;if(35===t)return this.__scrollToTabEl(i[s-1]),i[s-1].focus(),!0;const o=t===(!0===this.vertical?38:37),n=t===(!0===this.vertical?40:39),r=!0===o?-1:!0===n?1:void 0;if(void 0!==r){const t=!0===this.isRTL?-1:1,o=i.indexOf(e)+r*t;return o>=0&&o<s&&(this.__scrollToTabEl(i[o]),i[o].focus({preventScroll:!0})),!0}},__scrollTowards(t){const e=this.$refs.content,{get:i,set:s}=this.posFn;let o=!1,n=i(e);const r=t<n?-1:1;return(n+=5*r)<0?(o=!0,n=0):(-1===r&&n<=t||1===r&&n>=t)&&(o=!0,n=t),s(e,n),this.__localUpdateArrows(),o},__updateActiveRoute(){let t=null,e={matchedLen:0,queryDiff:9999,hrefLen:0,exact:!1,redirected:!0};const i=this.tabVmList.filter(t=>!0===t.hasRouterLink),s=i.length,{query:o}=this.$route,n=Object.keys(o).length;for(let r=0;r<s;r++){const s=i[r],a=!0===s.exact;if(!0!==s[!0===a?"linkIsExactActive":"linkIsActive"]||!0===e.exact&&!0!==a)continue;const{route:l,href:h}=s.resolvedLink,{matched:d,query:c,hash:u}=l,p=void 0!==l.redirectedFrom;if(!0===a){if(!1===p){t=s.name;break}!1===e.exact&&(e={matchedLen:0,queryDiff:9999,hrefLen:0,exact:!1,redirected:!0})}if(!1===e.redirected&&!0===p)continue;const m=Object.keys(c).length;if(!1===a&&0!==m&&!1===hasQueryIncluded(c,o))continue;const g={exact:a,redirected:p,matchedLen:d.length,queryDiff:!0===a?0:n-m,hrefLen:h.length-u.length};g.matchedLen>e.matchedLen?(t=s.name,e=g):g.matchedLen===e.matchedLen&&(g.queryDiff<e.queryDiff?(t=s.name,e=g):g.queryDiff===e.queryDiff&&g.hrefLen>e.hrefLen&&(t=s.name,e=g))}null===t&&!0===this.tabVmList.some(t=>void 0===t.hasRouterLink&&t.name===this.currentModel)||this.__updateModel({name:t,setCurrent:!0})},__onFocusin(t){if(this.__removeFocusTimeout(),!0!==this.hasFocus&&this.$el&&t.target&&"function"==typeof t.target.closest){const e=t.target.closest(".q-tab");e&&!0===this.$el.contains(e)&&(this.hasFocus=!0,!0===this.scrollable&&this.__scrollToTabEl(e))}void 0!==this.qListeners.focusin&&this.$emit("focusin",t)},__onFocusout(t){this.__registerFocusTimeout(()=>{this.hasFocus=!1},30),void 0!==this.qListeners.focusout&&this.$emit("focusout",t)},__verifyRouteModel(){!1===this.avoidRouteWatcher?this.__registerScrollToTabTimeout(this.__updateActiveRoute):this.__removeScrollToTabTimeout()},__watchRoute(){if(void 0===this.unwatchRoute){const t=this.$watch(()=>this.$route.fullPath,this.__verifyRouteModel);this.unwatchRoute=(()=>{t(),this.unwatchRoute=void 0})}},__registerTab(t){this.tabVmList.push(t),this.tabNameList.push(injectProp({},"name",()=>t.name)),this.__recalculateScroll(),void 0===t.hasRouterLink||void 0===this.$route?this.__registerScrollToTabTimeout(()=>{if(!0===this.scrollable){const t=this.currentModel,e=void 0!==t&&null!==t&&""!==t?this.tabVmList.find(e=>e.name===t):null;e&&this.__scrollToTabEl(e.$el)}}):(this.__watchRoute(),!0===t.hasRouterLink&&this.__verifyRouteModel())},__unregisterTab(t){const e=this.tabVmList.indexOf(t);this.tabVmList.splice(e,1),this.tabNameList.splice(e,1),this.__recalculateScroll(),void 0!==this.unwatchRoute&&void 0!==t.hasRouterLink&&(!0===this.tabVmList.every(t=>void 0===t.hasRouterLink)&&this.unwatchRoute(),this.__verifyRouteModel())},__cleanup(){clearTimeout(this.animateTimer),this.__stopAnimScroll(),void 0!==this.unwatchRoute&&this.unwatchRoute()}},created(){this.__useTick("__registerScrollTick"),this.__useTick("__registerUpdateArrowsTick"),this.__useTick("__registerAnimateTick"),this.__useTimeout("__registerFocusTimeout","__removeFocusTimeout"),this.__useTimeout("__registerScrollToTabTimeout","__removeScrollToTabTimeout"),Object.assign(this,{tabVmList:[],__localUpdateArrows:!0===this.arrowsEnabled?this.__updateArrowsFn:noop})},activated(){!0===this.hadRouteWatcher&&this.__watchRoute(),this.__recalculateScroll()},deactivated(){this.hadRouteWatcher=void 0!==this.unwatchRoute,this.__cleanup()},beforeDestroy(){this.__cleanup()},render(t){const e=[t(QResizeObserver,{on:cache(this,"resize",{resize:this.__updateContainer})}),t("div",{ref:"content",class:this.innerClass,on:!0===this.arrowsEnabled?cache(this,"scroll",{scroll:this.__updateArrowsFn}):void 0},slot(this,"default"))];return!0===this.arrowsEnabled&&e.push(t(QIcon,{class:"q-tabs__arrow q-tabs__arrow--start absolute q-tab__icon"+(!0===this.leftArrow?"":" q-tabs__arrow--faded"),props:{name:this.leftIcon||this.$q.iconSet.tabs[!0===this.vertical?"up":"left"]},on:cache(this,"onS",{"&mousedown":this.__scrollToStart,"&touchstart":this.__scrollToStart,"&mouseup":this.__stopAnimScroll,"&mouseleave":this.__stopAnimScroll,"&touchend":this.__stopAnimScroll})}),t(QIcon,{class:"q-tabs__arrow q-tabs__arrow--end absolute q-tab__icon"+(!0===this.rightArrow?"":" q-tabs__arrow--faded"),props:{name:this.rightIcon||this.$q.iconSet.tabs[!0===this.vertical?"down":"right"]},on:cache(this,"onE",{"&mousedown":this.__scrollToEnd,"&touchstart":this.__scrollToEnd,"&mouseup":this.__stopAnimScroll,"&mouseleave":this.__stopAnimScroll,"&touchend":this.__stopAnimScroll})})),t("div",{class:this.classes,on:this.onEvents,attrs:{role:"tablist"}},e)}});let id=0;var QTab=Vue.extend({name:"QTab",mixins:[RippleMixin,ListenersMixin],inject:{$tabs:{default(){console.error("QTab/QRouteTab components need to be child of QTabs")}}},props:{icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>`t_${id++}`},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String},computed:{isActive(){return this.$tabs.currentModel===this.name},classes(){return"q-tab relative-position self-stretch flex flex-center text-center"+(!0===this.isActive?" q-tab--active"+(this.$tabs.tabProps.activeClass?" "+this.$tabs.tabProps.activeClass:"")+(this.$tabs.tabProps.activeColor?` text-${this.$tabs.tabProps.activeColor}`:"")+(this.$tabs.tabProps.activeBgColor?` bg-${this.$tabs.tabProps.activeBgColor}`:""):" q-tab--inactive")+(this.icon&&this.label&&!1===this.$tabs.tabProps.inlineLabel?" q-tab--full":"")+(!0===this.noCaps||!0===this.$tabs.tabProps.noCaps?" q-tab--no-caps":"")+(!0===this.disable?" disabled":" q-focusable q-hoverable cursor-pointer")+(void 0!==this.hasRouterLinkProps?this.linkClass:"")},innerClass(){return"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(!0===this.$tabs.tabProps.inlineLabel?"row no-wrap q-tab__content--inline":"column")+(void 0!==this.contentClass?` ${this.contentClass}`:"")},computedTabIndex(){return!0===this.disable||!0===this.$tabs.hasFocus||!1===this.isActive&&!0===this.$tabs.hasActiveTab?-1:this.tabindex||0},computedRipple(){return!1!==this.ripple&&Object.assign({keyCodes:[13,32],early:!0},!0===this.ripple?{}:this.ripple)},onEvents(){return{input:stop,...this.qListeners,click:this.__onClick,keydown:this.__onKeydown}},attrs(){const t={...this.linkAttrs,tabindex:this.computedTabIndex,role:"tab","aria-selected":!0===this.isActive?"true":"false"};return!0===this.disable&&(t["aria-disabled"]="true"),t}},methods:{__onClick(t,e){if(!0!==e&&void 0!==this.$refs.blurTarget&&this.$refs.blurTarget.focus({preventScroll:!0}),!0!==this.disable){if(void 0===this.hasRouterLinkProps)return this.$tabs.__updateModel({name:this.name}),void(void 0!==this.qListeners.click&&this.$emit("click",t));if(!0===this.hasRouterLink){const e=(e,i,s)=>{const{to:o,replace:n,append:r,returnRouterError:a}=!1===t.navigate?{to:e,replace:i,append:s}:e||{};let l;const h=void 0===o||r===this.append&&!0===isDeepEqual(o,this.to)?this.$tabs.avoidRouteWatcher=uid():null;return this.__navigateToRouterLink(t,{to:o,replace:n,append:r,returnRouterError:!0}).catch(t=>{l=t}).then(t=>(h===this.$tabs.avoidRouteWatcher&&(this.$tabs.avoidRouteWatcher=!1,void 0!==l&&!0!==l.message.startsWith("Avoided redundant navigation")||this.$tabs.__updateModel({name:this.name})),void 0!==l&&!0===a?Promise.reject(l):t))};return void 0!==this.qListeners.click&&this.$emit("click",t,e),!1===t.navigate&&t.preventDefault(),void(!0!==t.defaultPrevented&&e())}void 0!==this.qListeners.click&&this.$emit("click",t)}else!0===this.hasRouterLink&&stopAndPrevent(t)},__onKeydown(t){isKeyCode(t,[13,32])?this.__onClick(t,!0):!0!==shouldIgnoreKey(t)&&t.keyCode>=35&&t.keyCode<=40&&!0!==t.altKey&&!0!==t.metaKey&&!0===this.$tabs.__onKbdNavigate(t.keyCode,this.$el)&&stopAndPrevent(t),void 0!==this.qListeners.keydown&&this.$emit("keydown",t)},__getContent(t){const e=this.$tabs.tabProps.narrowIndicator,i=[],s=t("div",{ref:"tabIndicator",staticClass:"q-tab__indicator",class:this.$tabs.tabProps.indicatorClass});void 0!==this.icon&&i.push(t(QIcon,{staticClass:"q-tab__icon",props:{name:this.icon}})),void 0!==this.label&&i.push(t("div",{staticClass:"q-tab__label"},[this.label])),!1!==this.alert&&i.push(void 0!==this.alertIcon?t(QIcon,{staticClass:"q-tab__alert-icon",props:{color:!0!==this.alert?this.alert:void 0,name:this.alertIcon}}):t("div",{staticClass:"q-tab__alert",class:!0!==this.alert?`text-${this.alert}`:null})),!0===e&&i.push(s);const o=[t("div",{staticClass:"q-focus-helper",attrs:{tabindex:-1},ref:"blurTarget"}),t("div",{class:this.innerClass},mergeSlot(i,this,"default"))];return!1===e&&o.push(s),o},__renderTab(t,e){return t(e,{class:this.classes,attrs:this.attrs,on:this.onEvents,directives:!1===this.ripple||!0===this.disable?null:[{name:"ripple",value:this.computedRipple}]},this.__getContent(t))}},mounted(){this.$tabs.__registerTab(this)},beforeDestroy(){this.$tabs.__unregisterTab(this)},render(t){return this.__renderTab(t,"div")}}),QTabPanels=Vue.extend({name:"QTabPanels",mixins:[DarkMixin,PanelParentMixin],computed:{classes(){return"q-tab-panels q-panel-parent"+(!0===this.isDark?" q-tab-panels--dark q-dark":"")}},methods:{__renderPanels(t){return t("div",{class:this.classes,directives:this.panelDirectives,on:{...this.qListeners}},this.__getPanelContent(t))}}});const attrs$2={role:"tabpanel"};var QTabPanel=Vue.extend({name:"QTabPanel",mixins:[PanelChildMixin],render(t){return t("div",{staticClass:"q-tab-panel",attrs:attrs$2,on:{...this.qListeners}},slot(this,"default"))}});const palette=["rgb(255,204,204)","rgb(255,230,204)","rgb(255,255,204)","rgb(204,255,204)","rgb(204,255,230)","rgb(204,255,255)","rgb(204,230,255)","rgb(204,204,255)","rgb(230,204,255)","rgb(255,204,255)","rgb(255,153,153)","rgb(255,204,153)","rgb(255,255,153)","rgb(153,255,153)","rgb(153,255,204)","rgb(153,255,255)","rgb(153,204,255)","rgb(153,153,255)","rgb(204,153,255)","rgb(255,153,255)","rgb(255,102,102)","rgb(255,179,102)","rgb(255,255,102)","rgb(102,255,102)","rgb(102,255,179)","rgb(102,255,255)","rgb(102,179,255)","rgb(102,102,255)","rgb(179,102,255)","rgb(255,102,255)","rgb(255,51,51)","rgb(255,153,51)","rgb(255,255,51)","rgb(51,255,51)","rgb(51,255,153)","rgb(51,255,255)","rgb(51,153,255)","rgb(51,51,255)","rgb(153,51,255)","rgb(255,51,255)","rgb(255,0,0)","rgb(255,128,0)","rgb(255,255,0)","rgb(0,255,0)","rgb(0,255,128)","rgb(0,255,255)","rgb(0,128,255)","rgb(0,0,255)","rgb(128,0,255)","rgb(255,0,255)","rgb(245,0,0)","rgb(245,123,0)","rgb(245,245,0)","rgb(0,245,0)","rgb(0,245,123)","rgb(0,245,245)","rgb(0,123,245)","rgb(0,0,245)","rgb(123,0,245)","rgb(245,0,245)","rgb(214,0,0)","rgb(214,108,0)","rgb(214,214,0)","rgb(0,214,0)","rgb(0,214,108)","rgb(0,214,214)","rgb(0,108,214)","rgb(0,0,214)","rgb(108,0,214)","rgb(214,0,214)","rgb(163,0,0)","rgb(163,82,0)","rgb(163,163,0)","rgb(0,163,0)","rgb(0,163,82)","rgb(0,163,163)","rgb(0,82,163)","rgb(0,0,163)","rgb(82,0,163)","rgb(163,0,163)","rgb(92,0,0)","rgb(92,46,0)","rgb(92,92,0)","rgb(0,92,0)","rgb(0,92,46)","rgb(0,92,92)","rgb(0,46,92)","rgb(0,0,92)","rgb(46,0,92)","rgb(92,0,92)","rgb(255,255,255)","rgb(205,205,205)","rgb(178,178,178)","rgb(153,153,153)","rgb(127,127,127)","rgb(102,102,102)","rgb(76,76,76)","rgb(51,51,51)","rgb(25,25,25)","rgb(0,0,0)"],thumbPath="M5 5 h10 v10 h-10 v-10 z",alphaTrackImg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAH0lEQVQoU2NkYGAwZkAFZ5G5jPRRgOYEVDeB3EBjBQBOZwTVugIGyAAAAABJRU5ErkJggg==";var QColor=Vue.extend({name:"QColor",mixins:[ListenersMixin,DarkMixin,FormMixin],directives:{TouchPan:TouchPan},props:{value:String,defaultValue:String,defaultView:{type:String,default:"spectrum",validator:t=>["spectrum","tune","palette"].includes(t)},formatModel:{type:String,default:"auto",validator:t=>["auto","hex","rgb","hexa","rgba"].includes(t)},palette:Array,noHeader:Boolean,noHeaderTabs:Boolean,noFooter:Boolean,square:Boolean,flat:Boolean,bordered:Boolean,disable:Boolean,readonly:Boolean},data(){return{topView:"auto"===this.formatModel?void 0===this.value||null===this.value||""===this.value||this.value.startsWith("#")?"hex":"rgb":this.formatModel.startsWith("hex")?"hex":"rgb",view:this.defaultView,model:this.__parseModel(this.value||this.defaultValue)}},watch:{value(t){const e=this.__parseModel(t||this.defaultValue);e.hex!==this.model.hex&&(this.model=e)},defaultValue(t){if(!this.value&&t){const e=this.__parseModel(t);e.hex!==this.model.hex&&(this.model=e)}}},computed:{editable(){return!0!==this.disable&&!0!==this.readonly},forceHex(){return"auto"===this.formatModel?null:this.formatModel.indexOf("hex")>-1},forceAlpha(){return"auto"===this.formatModel?null:this.formatModel.indexOf("a")>-1},isHex(){return void 0===this.value||null===this.value||""===this.value||this.value.startsWith("#")},isOutputHex(){return null!==this.forceHex?this.forceHex:this.isHex},formAttrs(){return{type:"hidden",name:this.name,value:this.model[!0===this.isOutputHex?"hex":"rgb"]}},hasAlpha(){return null!==this.forceAlpha?this.forceAlpha:void 0!==this.model.a},currentBgColor(){return{backgroundColor:this.model.rgb||"#000"}},headerClass(){return`q-color-picker__header-content--${void 0!==this.model.a&&this.model.a<65||luminosity(this.model)>.4?"light":"dark"}`},spectrumStyle(){return{background:`hsl(${this.model.h},100%,50%)`}},spectrumPointerStyle(){return{top:`${100-this.model.v}%`,[!0===this.$q.lang.rtl?"right":"left"]:`${this.model.s}%`}},computedPalette(){return void 0!==this.palette&&this.palette.length>0?this.palette:palette},classes(){return"q-color-picker"+(!0===this.bordered?" q-color-picker--bordered":"")+(!0===this.square?" q-color-picker--square no-border-radius":"")+(!0===this.flat?" q-color-picker--flat no-shadow":"")+(!0===this.disable?" disabled":"")+(!0===this.isDark?" q-color-picker--dark q-dark":"")},attrs(){return!0===this.disable?{"aria-disabled":"true"}:!0===this.readonly?{"aria-readonly":"true"}:void 0}},created(){this.__spectrumChange=throttle(this.__spectrumChange,20)},render(t){const e=[this.__getContent(t)];return void 0!==this.name&&!0!==this.disable&&this.__injectFormInput(e,"push"),!0!==this.noHeader&&e.unshift(this.__getHeader(t)),!0!==this.noFooter&&e.push(this.__getFooter(t)),t("div",{class:this.classes,attrs:this.attrs,on:{...this.qListeners}},e)},methods:{__getHeader(t){const e=[];return!0!==this.noHeaderTabs&&e.push(t(QTabs,{class:"q-color-picker__header-tabs",props:{value:this.topView,dense:!0,align:"justify"},on:cache(this,"topVTab",{input:t=>{this.topView=t}})},[t(QTab,{props:{label:"HEX"+(!0===this.hasAlpha?"A":""),name:"hex",ripple:!1}}),t(QTab,{props:{label:"RGB"+(!0===this.hasAlpha?"A":""),name:"rgb",ripple:!1}})])),e.push(t("div",{staticClass:"q-color-picker__header-banner row flex-center no-wrap"},[t("input",{staticClass:"fit",domProps:{value:this.model[this.topView]},attrs:!0!==this.editable?{readonly:!0}:null,on:cache(this,"topIn",{input:t=>{this.__updateErrorIcon(!0===this.__onEditorChange(t))},change:stop,blur:t=>{!0===this.__onEditorChange(t,!0)&&this.$forceUpdate(),this.__updateErrorIcon(!1)}})}),t(QIcon,{ref:"errorIcon",staticClass:"q-color-picker__error-icon absolute no-pointer-events",props:{name:this.$q.iconSet.type.negative}})])),t("div",{staticClass:"q-color-picker__header relative-position overflow-hidden"},[t("div",{staticClass:"q-color-picker__header-bg absolute-full"}),t("div",{staticClass:"q-color-picker__header-content",class:this.headerClass,style:this.currentBgColor},e)])},__getContent(t){return t(QTabPanels,{props:{value:this.view,animated:!0}},[t(QTabPanel,{staticClass:"q-color-picker__spectrum-tab overflow-hidden",props:{name:"spectrum"}},this.__getSpectrumTab(t)),t(QTabPanel,{staticClass:"q-pa-md q-color-picker__tune-tab",props:{name:"tune"}},this.__getTuneTab(t)),t(QTabPanel,{staticClass:"q-color-picker__palette-tab",props:{name:"palette"}},this.__getPaletteTab(t))])},__getFooter(t){return t("div",{staticClass:"q-color-picker__footer relative-position overflow-hidden"},[t(QTabs,{staticClass:"absolute-full",props:{value:this.view,dense:!0,align:"justify"},on:cache(this,"ftIn",{input:t=>{this.view=t}})},[t(QTab,{props:{icon:this.$q.iconSet.colorPicker.spectrum,name:"spectrum",ripple:!1}}),t(QTab,{props:{icon:this.$q.iconSet.colorPicker.tune,name:"tune",ripple:!1}}),t(QTab,{props:{icon:this.$q.iconSet.colorPicker.palette,name:"palette",ripple:!1}})])])},__getSpectrumTab(t){return[t("div",{ref:"spectrum",staticClass:"q-color-picker__spectrum non-selectable relative-position cursor-pointer",style:this.spectrumStyle,class:{readonly:!0!==this.editable},on:!0===this.editable?cache(this,"spectrT",{click:this.__spectrumClick,mousedown:this.__activate}):null,directives:!0===this.editable?cache(this,"spectrDir",[{name:"touch-pan",modifiers:{prevent:!0,stop:!0,mouse:!0},value:this.__spectrumPan}]):null},[t("div",{style:{paddingBottom:"100%"}}),t("div",{staticClass:"q-color-picker__spectrum-white absolute-full"}),t("div",{staticClass:"q-color-picker__spectrum-black absolute-full"}),t("div",{staticClass:"absolute",style:this.spectrumPointerStyle},[void 0!==this.model.hex?t("div",{staticClass:"q-color-picker__spectrum-circle"}):null])]),t("div",{staticClass:"q-color-picker__sliders"},[t(QSlider,{staticClass:"q-color-picker__hue non-selectable",props:{value:this.model.h,min:0,max:360,trackSize:"8px",innerTrackColor:"transparent",selectionColor:"transparent",readonly:!0!==this.editable,thumbPath:thumbPath},on:cache(this,"hueSlide",{input:this.__onHueChange,change:t=>this.__onHueChange(t,!0)})}),!0===this.hasAlpha?t(QSlider,{staticClass:"q-color-picker__alpha non-selectable",props:{value:this.model.a,min:0,max:100,trackSize:"8px",trackColor:"white",innerTrackColor:"transparent",selectionColor:"transparent",trackImg:alphaTrackImg,readonly:!0!==this.editable,hideSelection:!0,thumbPath:thumbPath},on:cache(this,"alphaSlide",{input:t=>this.__onNumericChange(t,"a",100),change:t=>this.__onNumericChange(t,"a",100,void 0,!0)})}):null])]},__getTuneTab(t){const e={inputmode:"numeric",maxlength:3,readonly:!0!==this.editable};return[t("div",{staticClass:"row items-center no-wrap"},[t("div",["R"]),t(QSlider,{props:{value:this.model.r,min:0,max:255,color:"red",dark:this.isDark,readonly:!0!==this.editable},on:cache(this,"rSlide",{input:t=>this.__onNumericChange(t,"r",255),change:t=>this.__onNumericChange(t,"r",255,void 0,!0)})}),t("input",{domProps:{value:this.model.r},attrs:e,on:cache(this,"rIn",{input:t=>this.__onNumericChange(t.target.value,"r",255,t),change:stop,blur:t=>this.__onNumericChange(t.target.value,"r",255,t,!0)})})]),t("div",{staticClass:"row items-center no-wrap"},[t("div",["G"]),t(QSlider,{props:{value:this.model.g,min:0,max:255,color:"green",dark:this.isDark,readonly:!0!==this.editable},on:cache(this,"gSlide",{input:t=>this.__onNumericChange(t,"g",255),change:t=>this.__onNumericChange(t,"g",255,void 0,!0)})}),t("input",{domProps:{value:this.model.g},attrs:e,on:cache(this,"gIn",{input:t=>this.__onNumericChange(t.target.value,"g",255,t),change:stop,blur:t=>this.__onNumericChange(t.target.value,"g",255,t,!0)})})]),t("div",{staticClass:"row items-center no-wrap"},[t("div",["B"]),t(QSlider,{props:{value:this.model.b,min:0,max:255,color:"blue",readonly:!0!==this.editable,dark:this.isDark},on:cache(this,"bSlide",{input:t=>this.__onNumericChange(t,"b",255),change:t=>this.__onNumericChange(t,"b",255,void 0,!0)})}),t("input",{domProps:{value:this.model.b},attrs:e,on:cache(this,"bIn",{input:t=>this.__onNumericChange(t.target.value,"b",255,t),change:stop,blur:t=>this.__onNumericChange(t.target.value,"b",255,t,!0)})})]),!0===this.hasAlpha?t("div",{staticClass:"row items-center no-wrap"},[t("div",["A"]),t(QSlider,{props:{value:this.model.a,color:"grey",readonly:!0!==this.editable,dark:this.isDark},on:cache(this,"aSlide",{input:t=>this.__onNumericChange(t,"a",100),change:t=>this.__onNumericChange(t,"a",100,void 0,!0)})}),t("input",{domProps:{value:this.model.a},attrs:e,on:cache(this,"aIn",{input:t=>this.__onNumericChange(t.target.value,"a",100,t),change:stop,blur:t=>this.__onNumericChange(t.target.value,"a",100,t,!0)})})]):null]},__getPaletteTab(t){return[t("div",{staticClass:"row items-center q-color-picker__palette-rows",class:!0===this.editable?"q-color-picker__palette-rows--editable":""},this.computedPalette.map(e=>t("div",{staticClass:"q-color-picker__cube col-auto",style:{backgroundColor:e},on:!0===this.editable?cache(this,"palette#"+e,{click:()=>{this.__onPalettePick(e)}}):null})))]},__onSpectrumChange(t,e,i){const s=this.$refs.spectrum;if(void 0===s)return;const o=s.clientWidth,n=s.clientHeight,r=s.getBoundingClientRect();let a=Math.min(o,Math.max(0,t-r.left));!0===this.$q.lang.rtl&&(a=o-a);const l=Math.min(n,Math.max(0,e-r.top)),h=Math.round(100*a/o),d=Math.round(100*Math.max(0,Math.min(1,-l/n+1))),c=hsvToRgb({h:this.model.h,s:h,v:d,a:!0===this.hasAlpha?this.model.a:void 0});this.model.s=h,this.model.v=d,this.__update(c,i)},__onHueChange(t,e){const i=hsvToRgb({h:t=Math.round(t),s:this.model.s,v:this.model.v,a:!0===this.hasAlpha?this.model.a:void 0});this.model.h=t,this.__update(i,e)},__onNumericChange(t,e,i,s,o){if(void 0!==s&&stop(s),!/^[0-9]+$/.test(t))return void(!0===o&&this.$forceUpdate());const n=Math.floor(Number(t));if(n<0||n>i)return void(!0===o&&this.$forceUpdate());const r={r:"r"===e?n:this.model.r,g:"g"===e?n:this.model.g,b:"b"===e?n:this.model.b,a:!0===this.hasAlpha?"a"===e?n:this.model.a:void 0};if("a"!==e){const t=rgbToHsv(r);this.model.h=t.h,this.model.s=t.s,this.model.v=t.v}if(this.__update(r,o),void 0!==s&&!0!==o&&void 0!==s.target.selectionEnd){const t=s.target.selectionEnd;this.$nextTick(()=>{s.target.setSelectionRange(t,t)})}},__onEditorChange(t,e){let i;const s=t.target.value;if(stop(t),"hex"===this.topView){if(s.length!==(!0===this.hasAlpha?9:7)||!/^#[0-9A-Fa-f]+$/.test(s))return!0;i=hexToRgb(s)}else{let t;if(!s.endsWith(")"))return!0;if(!0!==this.hasAlpha&&s.startsWith("rgb(")){if(3!==(t=s.substring(4,s.length-1).split(",").map(t=>parseInt(t,10))).length||!/^rgb\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3}\)$/.test(s))return!0}else{if(!0!==this.hasAlpha||!s.startsWith("rgba("))return!0;{if(4!==(t=s.substring(5,s.length-1).split(",")).length||!/^rgba\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/.test(s))return!0;for(let e=0;e<3;e++){const i=parseInt(t[e],10);if(i<0||i>255)return!0;t[e]=i}const e=parseFloat(t[3]);if(e<0||e>1)return!0;t[3]=e}}if(t[0]<0||t[0]>255||t[1]<0||t[1]>255||t[2]<0||t[2]>255||!0===this.hasAlpha&&(t[3]<0||t[3]>1))return!0;i={r:t[0],g:t[1],b:t[2],a:!0===this.hasAlpha?100*t[3]:void 0}}const o=rgbToHsv(i);if(this.model.h=o.h,this.model.s=o.s,this.model.v=o.v,this.__update(i,e),!0!==e){const e=t.target.selectionEnd;this.$nextTick(()=>{t.target.setSelectionRange(e,e)})}},__onPalettePick(t){const e=this.__parseModel(t),i={r:e.r,g:e.g,b:e.b,a:e.a};void 0===i.a&&(i.a=this.model.a),this.model.h=e.h,this.model.s=e.s,this.model.v=e.v,this.__update(i,!0)},__update(t,e){this.model.hex=rgbToHex(t),this.model.rgb=rgbToString(t),this.model.r=t.r,this.model.g=t.g,this.model.b=t.b,this.model.a=t.a;const i=this.model[!0===this.isOutputHex?"hex":"rgb"];this.$emit("input",i),!0===e&&this.$emit("change",i)},__updateErrorIcon(t){void 0!==this.$refs.errorIcon&&(this.$refs.errorIcon.$el.style.opacity=t?1:0)},__parseModel(t){const e=void 0!==this.forceAlpha?this.forceAlpha:"auto"===this.formatModel?null:this.formatModel.indexOf("a")>-1;if("string"!=typeof t||0===t.length||!0!==testPattern.anyColor(t.replace(/ /g,"")))return{h:0,s:0,v:0,r:0,g:0,b:0,a:!0===e?100:void 0,hex:void 0,rgb:void 0};const i=textToRgb(t);return!0===e&&void 0===i.a&&(i.a=100),i.hex=rgbToHex(i),i.rgb=rgbToString(i),Object.assign(i,rgbToHsv(i))},__spectrumPan(t){t.isFinal?this.__onSpectrumChange(t.position.left,t.position.top,!0):this.__spectrumChange(t)},__spectrumChange(t){this.__onSpectrumChange(t.position.left,t.position.top)},__spectrumClick(t){this.__onSpectrumChange(t.pageX-window.pageXOffset,t.pageY-window.pageYOffset,!0)},__activate(t){this.__onSpectrumChange(t.pageX-window.pageXOffset,t.pageY-window.pageYOffset)}}});const breaks=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function toJalaali(t,e,i){return"[object Date]"===Object.prototype.toString.call(t)&&(i=t.getDate(),e=t.getMonth()+1,t=t.getFullYear()),d2j(g2d(t,e,i))}function toGregorian(t,e,i){return d2g(j2d(t,e,i))}function isLeapJalaaliYear(t){return 0===jalCalLeap(t)}function jalaaliMonthLength(t,e){return e<=6?31:e<=11?30:isLeapJalaaliYear(t)?30:29}function jalCalLeap(t){const e=breaks.length;let i,s,o,n,r,a=breaks[0];if(t<a||t>=breaks[e-1])throw new Error("Invalid Jalaali year "+t);for(r=1;r<e&&(s=(i=breaks[r])-a,!(t<i));r+=1)a=i;return s-(n=t-a)<6&&(n=n-s+33*div(s+4,33)),-1===(o=mod(mod(n+1,33)-1,4))&&(o=4),o}function jalCal(t,e){const i=breaks.length,s=t+621;let o,n,r,a,l,h=-14,d=breaks[0];if(t<d||t>=breaks[i-1])throw new Error("Invalid Jalaali year "+t);for(l=1;l<i&&(n=(o=breaks[l])-d,!(t<o));l+=1)h=h+8*div(n,33)+div(mod(n,33),4),d=o;h=h+8*div(a=t-d,33)+div(mod(a,33)+3,4),4===mod(n,33)&&n-a==4&&(h+=1);const c=20+h-(div(s,4)-div(3*(div(s,100)+1),4)-150);return e||(n-a<6&&(a=a-n+33*div(n+4,33)),-1===(r=mod(mod(a+1,33)-1,4))&&(r=4)),{leap:r,gy:s,march:c}}function j2d(t,e,i){const s=jalCal(t,!0);return g2d(s.gy,3,s.march)+31*(e-1)-div(e,7)*(e-7)+i-1}function d2j(t){const e=d2g(t).gy;let i,s,o,n=e-621;const r=jalCal(n,!1);if((o=t-g2d(e,3,r.march))>=0){if(o<=185)return{jy:n,jm:s=1+div(o,31),jd:i=mod(o,31)+1};o-=186}else n-=1,o+=179,1===r.leap&&(o+=1);return{jy:n,jm:s=7+div(o,30),jd:i=mod(o,30)+1}}function g2d(t,e,i){let s=div(1461*(t+div(e-8,6)+100100),4)+div(153*mod(e+9,12)+2,5)+i-34840408;return s=s-div(3*div(t+100100+div(e-8,6),100),4)+752}function d2g(t){let e=4*t+139361631;const i=5*div(mod(e=e+4*div(3*div(4*t+183187720,146097),4)-3908,1461),4)+308,s=div(mod(i,153),5)+1,o=mod(div(i,153),12)+1;return{gy:div(e,1461)-100100+div(8-o,6),gm:o,gd:s}}function div(t,e){return~~(t/e)}function mod(t,e){return t-~~(t/e)*e}const calendars=["gregorian","persian"];var DateTimeMixin={mixins:[DarkMixin,FormMixin,ListenersMixin],props:{value:{required:!0},mask:{type:String},locale:Object,calendar:{type:String,validator:t=>calendars.includes(t),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},computed:{computedMask(){return this.__getMask()},computedLocale(){return this.__getLocale()},editable(){return!0!==this.disable&&!0!==this.readonly},computedColor(){return this.color||"primary"},computedTextColor(){return this.textColor||"white"},computedTabindex(){return!0===this.editable?0:-1},headerClass(){const t=[];return void 0!==this.color&&t.push(`bg-${this.color}`),void 0!==this.textColor&&t.push(`text-${this.textColor}`),t.join(" ")}},methods:{__getLocale(){return void 0!==this.locale?{...this.$q.lang.date,...this.locale}:this.$q.lang.date},__getCurrentDate(t){const e=new Date,i=!0===t?null:0;if("persian"===this.calendar){const t=toJalaali(e);return{year:t.jy,month:t.jm,day:t.jd}}return{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:i,minute:i,second:i,millisecond:i}},__getCurrentTime(){const t=new Date;return{hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}},__getDayHash:t=>t.year+"/"+pad(t.month)+"/"+pad(t.day)}};const MILLISECONDS_IN_DAY=864e5,MILLISECONDS_IN_HOUR=36e5,MILLISECONDS_IN_MINUTE=6e4,defaultMask="YYYY-MM-DDTHH:mm:ss.SSSZ",token=/\[((?:[^\]\\]|\\]|\\)*)\]|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g,reverseToken=/(\[[^\]]*\])|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g,regexStore={};function getRegexData(t,e){const i="("+e.days.join("|")+")",s=t+i;if(void 0!==regexStore[s])return regexStore[s];const o="("+e.daysShort.join("|")+")",n="("+e.months.join("|")+")",r="("+e.monthsShort.join("|")+")",a={};let l=0;const h=t.replace(reverseToken,t=>{switch(l++,t){case"YY":return a.YY=l,"(-?\\d{1,2})";case"YYYY":return a.YYYY=l,"(-?\\d{1,4})";case"M":return a.M=l,"(\\d{1,2})";case"MM":return a.M=l,"(\\d{2})";case"MMM":return a.MMM=l,r;case"MMMM":return a.MMMM=l,n;case"D":return a.D=l,"(\\d{1,2})";case"Do":return a.D=l++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return a.D=l,"(\\d{2})";case"H":return a.H=l,"(\\d{1,2})";case"HH":return a.H=l,"(\\d{2})";case"h":return a.h=l,"(\\d{1,2})";case"hh":return a.h=l,"(\\d{2})";case"m":return a.m=l,"(\\d{1,2})";case"mm":return a.m=l,"(\\d{2})";case"s":return a.s=l,"(\\d{1,2})";case"ss":return a.s=l,"(\\d{2})";case"S":return a.S=l,"(\\d{1})";case"SS":return a.S=l,"(\\d{2})";case"SSS":return a.S=l,"(\\d{3})";case"A":return a.A=l,"(AM|PM)";case"a":return a.a=l,"(am|pm)";case"aa":return a.aa=l,"(a\\.m\\.|p\\.m\\.)";case"ddd":return o;case"dddd":return i;case"Q":case"d":case"E":return"(\\d{1})";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"w":return"(\\d{1,2})";case"ww":return"(\\d{2})";case"Z":return a.Z=l,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return a.ZZ=l,"(Z|[+-]\\d{2}\\d{2})";case"X":return a.X=l,"(-?\\d+)";case"x":return a.x=l,"(-?\\d{4,})";default:return l--,"["===t[0]&&(t=t.substring(1,t.length-1)),t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),d={map:a,regex:new RegExp("^"+h)};return regexStore[s]=d,d}function getDateLocale(t,e){return void 0!==t?t:void 0!==e?e.date:defaultLang.date}function formatTimezone(t,e=""){const i=t>0?"-":"+",s=Math.abs(t),o=s%60;return i+pad(Math.floor(s/60))+e+pad(o)}function applyYearMonthDayChange(t,e,i){let s=t.getFullYear(),o=t.getMonth();const n=t.getDate();return void 0!==e.year&&(s+=i*e.year,delete e.year),void 0!==e.month&&(o+=i*e.month,delete e.month),t.setDate(1),t.setMonth(2),t.setFullYear(s),t.setMonth(o),t.setDate(Math.min(n,daysInMonth(t))),void 0!==e.date&&(t.setDate(t.getDate()+i*e.date),delete e.date),t}function applyYearMonthDay(t,e,i){const s=void 0!==e.year?e.year:t[`get${i}FullYear`](),o=void 0!==e.month?e.month-1:t[`get${i}Month`](),n=new Date(s,o+1,0).getDate(),r=Math.min(n,void 0!==e.date?e.date:t[`get${i}Date`]());return t[`set${i}Date`](1),t[`set${i}Month`](2),t[`set${i}FullYear`](s),t[`set${i}Month`](o),t[`set${i}Date`](r),delete e.year,delete e.month,delete e.date,t}function getChange(t,e,i){const s=normalizeMod(e),o=new Date(t),n=void 0!==s.year||void 0!==s.month||void 0!==s.date?applyYearMonthDayChange(o,s,i):o;for(const t in s){const e=capitalize(t);n[`set${e}`](n[`get${e}`]()+i*s[t])}return n}function normalizeMod(t){const e={...t};return void 0!==t.years&&(e.year=t.years,delete e.years),void 0!==t.months&&(e.month=t.months,delete e.months),void 0!==t.days&&(e.date=t.days,delete e.days),void 0!==t.day&&(e.date=t.day,delete e.day),void 0!==t.hour&&(e.hours=t.hour,delete e.hour),void 0!==t.minute&&(e.minutes=t.minute,delete e.minute),void 0!==t.second&&(e.seconds=t.second,delete e.second),void 0!==t.millisecond&&(e.milliseconds=t.millisecond,delete e.millisecond),e}function adjustDate(t,e,i){const s=normalizeMod(e),o=!0===i?"UTC":"",n=new Date(t),r=void 0!==s.year||void 0!==s.month||void 0!==s.date?applyYearMonthDay(n,s,o):n;for(const t in s){r[`set${o}${t.charAt(0).toUpperCase()+t.slice(1)}`](s[t])}return r}function extractDate(t,e,i){const s=__splitDate(t,e,i),o=new Date(s.year,null===s.month?null:s.month-1,null===s.day?1:s.day,s.hour,s.minute,s.second,s.millisecond),n=o.getTimezoneOffset();return null===s.timezoneOffset||s.timezoneOffset===n?o:getChange(o,{minutes:s.timezoneOffset-n},1)}function __splitDate(t,e,i,s,o){const n={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(void 0!==o&&Object.assign(n,o),void 0===t||null===t||""===t||"string"!=typeof t)return n;void 0===e&&(e=defaultMask);const r=getDateLocale(i,Plugin.props),a=r.months,l=r.monthsShort,{regex:h,map:d}=getRegexData(e,r),c=t.match(h);if(null===c)return n;let u="";if(void 0!==d.X||void 0!==d.x){const t=parseInt(c[void 0!==d.X?d.X:d.x],10);if(!0===isNaN(t)||t<0)return n;const e=new Date(t*(void 0!==d.X?1e3:1));n.year=e.getFullYear(),n.month=e.getMonth()+1,n.day=e.getDate(),n.hour=e.getHours(),n.minute=e.getMinutes(),n.second=e.getSeconds(),n.millisecond=e.getMilliseconds()}else{if(void 0!==d.YYYY)n.year=parseInt(c[d.YYYY],10);else if(void 0!==d.YY){const t=parseInt(c[d.YY],10);n.year=t<0?t:2e3+t}if(void 0!==d.M){if(n.month=parseInt(c[d.M],10),n.month<1||n.month>12)return n}else void 0!==d.MMM?n.month=l.indexOf(c[d.MMM])+1:void 0!==d.MMMM&&(n.month=a.indexOf(c[d.MMMM])+1);if(void 0!==d.D){if(n.day=parseInt(c[d.D],10),null===n.year||null===n.month||n.day<1)return n;const t="persian"!==s?new Date(n.year,n.month,0).getDate():jalaaliMonthLength(n.year,n.month);if(n.day>t)return n}void 0!==d.H?n.hour=parseInt(c[d.H],10)%24:void 0!==d.h&&(n.hour=parseInt(c[d.h],10)%12,(d.A&&"PM"===c[d.A]||d.a&&"pm"===c[d.a]||d.aa&&"p.m."===c[d.aa])&&(n.hour+=12),n.hour=n.hour%24),void 0!==d.m&&(n.minute=parseInt(c[d.m],10)%60),void 0!==d.s&&(n.second=parseInt(c[d.s],10)%60),void 0!==d.S&&(n.millisecond=parseInt(c[d.S],10)*10**(3-c[d.S].length)),void 0===d.Z&&void 0===d.ZZ||(u=void 0!==d.Z?c[d.Z].replace(":",""):c[d.ZZ],n.timezoneOffset=("+"===u[0]?-1:1)*(60*u.slice(1,3)+1*u.slice(3,5)))}return n.dateHash=pad(n.year,6)+"/"+pad(n.month)+"/"+pad(n.day),n.timeHash=pad(n.hour)+":"+pad(n.minute)+":"+pad(n.second)+u,n}function isValid(t){return"number"==typeof t||!1===isNaN(Date.parse(t))}function buildDate(t,e){return adjustDate(new Date,t,e)}function getDayOfWeek(t){const e=new Date(t).getDay();return 0===e?7:e}function getWeekOfYear(t){const e=new Date(t.getFullYear(),t.getMonth(),t.getDate());e.setDate(e.getDate()-(e.getDay()+6)%7+3);const i=new Date(e.getFullYear(),0,4);i.setDate(i.getDate()-(i.getDay()+6)%7+3);const s=e.getTimezoneOffset()-i.getTimezoneOffset();e.setHours(e.getHours()-s);const o=(e-i)/(7*MILLISECONDS_IN_DAY);return 1+Math.floor(o)}function getDayIdentifier(t){return 1e4*t.getFullYear()+100*t.getMonth()+t.getDate()}function getDateIdentifier(t,e){const i=new Date(t);return!0===e?getDayIdentifier(i):i.getTime()}function isBetweenDates(t,e,i,s={}){const o=getDateIdentifier(e,s.onlyDate),n=getDateIdentifier(i,s.onlyDate),r=getDateIdentifier(t,s.onlyDate);return(r>o||!0===s.inclusiveFrom&&r===o)&&(r<n||!0===s.inclusiveTo&&r===n)}function addToDate(t,e){return getChange(t,e,1)}function subtractFromDate(t,e){return getChange(t,e,-1)}function startOfDate(t,e,i){const s=new Date(t),o=`set${!0===i?"UTC":""}`;switch(e){case"year":case"years":s[`${o}Month`](0);case"month":case"months":s[`${o}Date`](1);case"day":case"days":case"date":s[`${o}Hours`](0);case"hour":case"hours":s[`${o}Minutes`](0);case"minute":case"minutes":s[`${o}Seconds`](0);case"second":case"seconds":s[`${o}Milliseconds`](0)}return s}function endOfDate(t,e,i){const s=new Date(t),o=`set${!0===i?"UTC":""}`;switch(e){case"year":case"years":s[`${o}Month`](11);case"month":case"months":s[`${o}Date`](daysInMonth(s));case"day":case"days":case"date":s[`${o}Hours`](23);case"hour":case"hours":s[`${o}Minutes`](59);case"minute":case"minutes":s[`${o}Seconds`](59);case"second":case"seconds":s[`${o}Milliseconds`](999)}return s}function getMaxDate(t){let e=new Date(t);return Array.prototype.slice.call(arguments,1).forEach(t=>{e=Math.max(e,new Date(t))}),e}function getMinDate(t){let e=new Date(t);return Array.prototype.slice.call(arguments,1).forEach(t=>{e=Math.min(e,new Date(t))}),e}function getDiff(t,e,i){return(t.getTime()-t.getTimezoneOffset()*MILLISECONDS_IN_MINUTE-(e.getTime()-e.getTimezoneOffset()*MILLISECONDS_IN_MINUTE))/i}function getDateDiff(t,e,i="days"){const s=new Date(t),o=new Date(e);switch(i){case"years":case"year":return s.getFullYear()-o.getFullYear();case"months":case"month":return 12*(s.getFullYear()-o.getFullYear())+s.getMonth()-o.getMonth();case"days":case"day":case"date":return getDiff(startOfDate(s,"day"),startOfDate(o,"day"),MILLISECONDS_IN_DAY);case"hours":case"hour":return getDiff(startOfDate(s,"hour"),startOfDate(o,"hour"),MILLISECONDS_IN_HOUR);case"minutes":case"minute":return getDiff(startOfDate(s,"minute"),startOfDate(o,"minute"),MILLISECONDS_IN_MINUTE);case"seconds":case"second":return getDiff(startOfDate(s,"second"),startOfDate(o,"second"),1e3)}}function getDayOfYear(t){return getDateDiff(t,startOfDate(t,"year"),"days")+1}function inferDateFormat(t){return!0===isDate(t)?"date":"number"==typeof t?"number":"string"}function getDateBetween(t,e,i){const s=new Date(t);if(e){const t=new Date(e);if(s<t)return t}if(i){const t=new Date(i);if(s>t)return t}return s}function isSameDate(t,e,i){const s=new Date(t),o=new Date(e);if(void 0===i)return s.getTime()===o.getTime();switch(i){case"second":case"seconds":if(s.getSeconds()!==o.getSeconds())return!1;case"minute":case"minutes":if(s.getMinutes()!==o.getMinutes())return!1;case"hour":case"hours":if(s.getHours()!==o.getHours())return!1;case"day":case"days":case"date":if(s.getDate()!==o.getDate())return!1;case"month":case"months":if(s.getMonth()!==o.getMonth())return!1;case"year":case"years":if(s.getFullYear()!==o.getFullYear())return!1;break;default:throw new Error(`date isSameDate unknown unit ${i}`)}return!0}function daysInMonth(t){return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}function getOrdinal(t){if(t>=11&&t<=13)return`${t}th`;switch(t%10){case 1:return`${t}st`;case 2:return`${t}nd`;case 3:return`${t}rd`}return`${t}th`}const formatter={YY(t,e,i){const s=this.YYYY(t,e,i)%100;return s>=0?pad(s):"-"+pad(Math.abs(s))},YYYY:(t,e,i)=>void 0!==i&&null!==i?i:t.getFullYear(),M:t=>t.getMonth()+1,MM:t=>pad(t.getMonth()+1),MMM:(t,e)=>e.monthsShort[t.getMonth()],MMMM:(t,e)=>e.months[t.getMonth()],Q:t=>Math.ceil((t.getMonth()+1)/3),Qo(t){return getOrdinal(this.Q(t))},D:t=>t.getDate(),Do:t=>getOrdinal(t.getDate()),DD:t=>pad(t.getDate()),DDD:t=>getDayOfYear(t),DDDD:t=>pad(getDayOfYear(t),3),d:t=>t.getDay(),dd(t,e){return this.dddd(t,e).slice(0,2)},ddd:(t,e)=>e.daysShort[t.getDay()],dddd:(t,e)=>e.days[t.getDay()],E:t=>t.getDay()||7,w:t=>getWeekOfYear(t),ww:t=>pad(getWeekOfYear(t)),H:t=>t.getHours(),HH:t=>pad(t.getHours()),h(t){const e=t.getHours();return 0===e?12:e>12?e%12:e},hh(t){return pad(this.h(t))},m:t=>t.getMinutes(),mm:t=>pad(t.getMinutes()),s:t=>t.getSeconds(),ss:t=>pad(t.getSeconds()),S:t=>Math.floor(t.getMilliseconds()/100),SS:t=>pad(Math.floor(t.getMilliseconds()/10)),SSS:t=>pad(t.getMilliseconds(),3),A(t){return this.H(t)<12?"AM":"PM"},a(t){return this.H(t)<12?"am":"pm"},aa(t){return this.H(t)<12?"a.m.":"p.m."},Z:(t,e,i,s)=>formatTimezone(void 0===s||null===s?t.getTimezoneOffset():s,":"),ZZ:(t,e,i,s)=>formatTimezone(void 0===s||null===s?t.getTimezoneOffset():s),X:t=>Math.floor(t.getTime()/1e3),x:t=>t.getTime()};function formatDate(t,e,i,s,o){if(0!==t&&!t||t===1/0||t===-1/0)return;const n=new Date(t);if(isNaN(n))return;void 0===e&&(e=defaultMask);const r=getDateLocale(i,Plugin.props);return e.replace(token,(t,e)=>t in formatter?formatter[t](n,r,s,o):void 0===e?t:e.split("\\]").join("]"))}function clone(t){return!0===isDate(t)?new Date(t.getTime()):t}var date={isValid:isValid,extractDate:extractDate,buildDate:buildDate,getDayOfWeek:getDayOfWeek,getWeekOfYear:getWeekOfYear,isBetweenDates:isBetweenDates,addToDate:addToDate,subtractFromDate:subtractFromDate,adjustDate:adjustDate,startOfDate:startOfDate,endOfDate:endOfDate,getMaxDate:getMaxDate,getMinDate:getMinDate,getDateDiff:getDateDiff,getDayOfYear:getDayOfYear,inferDateFormat:inferDateFormat,getDateBetween:getDateBetween,isSameDate:isSameDate,daysInMonth:daysInMonth,formatDate:formatDate,clone:clone};const yearsInterval=20,views=["Calendar","Years","Months"],viewIsValid=t=>views.includes(t),yearMonthValidator=t=>/^-?[\d]+\/[0-1]\d$/.test(t),lineStr=" — ";var QDate=Vue.extend({name:"QDate",mixins:[DateTimeMixin],props:{multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:yearMonthValidator},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:yearMonthValidator},navigationMaxYearMonth:{type:String,validator:yearMonthValidator},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:viewIsValid}},data(){const t=this.__getMask(),e=this.__getLocale(),i=this.__getViewModel(t,e),s=i.year,o=!0===this.$q.lang.rtl?"right":"left";return{view:this.defaultView,monthDirection:o,yearDirection:o,startYear:s-s%20-(s<0?20:0),editRange:void 0,innerMask:t,innerLocale:e,viewModel:i}},watch:{value(t){if(this.lastEmitValue===t)this.lastEmitValue=0;else{const t=this.__getViewModel(this.innerMask,this.innerLocale);this.__updateViewModel(t.year,t.month,t)}},view(){void 0!==this.$refs.blurTarget&&!0===this.$el.contains(document.activeElement)&&this.$refs.blurTarget.focus()},"viewModel.year"(t){this.$emit("navigation",{year:t,month:this.viewModel.month})},"viewModel.month"(t){this.$emit("navigation",{year:this.viewModel.year,month:t})},computedMask(t){this.__updateValue(t,this.innerLocale,"mask"),this.innerMask=t},computedLocale(t){this.__updateValue(this.innerMask,t,"locale"),this.innerLocale=t}},computed:{classes(){const t=!0===this.landscape?"landscape":"portrait";return`q-date q-date--${t} q-date--${t}-${!0===this.minimal?"minimal":"standard"}`+(!0===this.isDark?" q-date--dark q-dark":"")+(!0===this.bordered?" q-date--bordered":"")+(!0===this.square?" q-date--square no-border-radius":"")+(!0===this.flat?" q-date--flat no-shadow":"")+(!0===this.disable?" disabled":!0===this.readonly?" q-date--readonly":"")},isImmediate(){return!0===this.emitImmediately&&!0!==this.multiple&&!0!==this.range},normalizedModel(){return!0===Array.isArray(this.value)?this.value:null!==this.value&&void 0!==this.value?[this.value]:[]},daysModel(){return this.normalizedModel.filter(t=>"string"==typeof t).map(t=>this.__decodeString(t,this.innerMask,this.innerLocale)).filter(t=>null!==t.dateHash&&null!==t.day&&null!==t.month&&null!==t.year)},rangeModel(){const t=t=>this.__decodeString(t,this.innerMask,this.innerLocale);return this.normalizedModel.filter(t=>!0===isObject(t)&&void 0!==t.from&&void 0!==t.to).map(e=>({from:t(e.from),to:t(e.to)})).filter(t=>null!==t.from.dateHash&&null!==t.to.dateHash&&t.from.dateHash<t.to.dateHash)},getNativeDateFn(){return"persian"!==this.calendar?t=>new Date(t.year,t.month-1,t.day):t=>{const e=toGregorian(t.year,t.month,t.day);return new Date(e.gy,e.gm-1,e.gd)}},encodeObjectFn(){return"persian"===this.calendar?this.__getDayHash:(t,e,i)=>formatDate(new Date(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond),void 0===e?this.innerMask:e,void 0===i?this.innerLocale:i,t.year,t.timezoneOffset)},daysInModel(){return this.daysModel.length+this.rangeModel.reduce((t,e)=>t+1+getDateDiff(this.getNativeDateFn(e.to),this.getNativeDateFn(e.from)),0)},headerTitle(){if(void 0!==this.title&&null!==this.title&&this.title.length>0)return this.title;if(void 0!==this.editRange){const t=this.editRange.init,e=this.getNativeDateFn(t);return this.innerLocale.daysShort[e.getDay()]+", "+this.innerLocale.monthsShort[t.month-1]+" "+t.day+" — ?"}if(0===this.daysInModel)return" — ";if(this.daysInModel>1)return`${this.daysInModel} ${this.innerLocale.pluralDay}`;const t=this.daysModel[0],e=this.getNativeDateFn(t);return!0===isNaN(e.valueOf())?" — ":void 0!==this.innerLocale.headerTitle?this.innerLocale.headerTitle(e,t):this.innerLocale.daysShort[e.getDay()]+", "+this.innerLocale.monthsShort[t.month-1]+" "+t.day},headerSubtitle(){if(void 0!==this.subtitle&&null!==this.subtitle&&this.subtitle.length>0)return this.subtitle;if(0===this.daysInModel)return" — ";if(this.daysInModel>1){const t=this.minSelectedModel,e=this.maxSelectedModel,i=this.innerLocale.monthsShort;return i[t.month-1]+(t.year!==e.year?" "+t.year+" — "+i[e.month-1]+" ":t.month!==e.month?" — "+i[e.month-1]:"")+" "+e.year}return this.daysModel[0].year},minSelectedModel(){return this.daysModel.concat(this.rangeModel.map(t=>t.from)).sort((t,e)=>t.year-e.year||t.month-e.month)[0]},maxSelectedModel(){return this.daysModel.concat(this.rangeModel.map(t=>t.to)).sort((t,e)=>e.year-t.year||e.month-t.month)[0]},dateArrow(){const t=[this.$q.iconSet.datetime.arrowLeft,this.$q.iconSet.datetime.arrowRight];return!0===this.$q.lang.rtl?t.reverse():t},computedFirstDayOfWeek(){return void 0!==this.firstDayOfWeek?Number(this.firstDayOfWeek):this.innerLocale.firstDayOfWeek},daysOfWeek(){const t=this.innerLocale.daysShort,e=this.computedFirstDayOfWeek;return e>0?t.slice(e,7).concat(t.slice(0,e)):t},daysInMonth(){const t=this.viewModel;return"persian"!==this.calendar?new Date(t.year,t.month,0).getDate():jalaaliMonthLength(t.year,t.month)},today(){return this.__getCurrentDate()},evtColor(){return"function"==typeof this.eventColor?this.eventColor:()=>this.eventColor},minNav(){if(void 0!==this.navigationMinYearMonth){const t=this.navigationMinYearMonth.split("/");return{year:parseInt(t[0],10),month:parseInt(t[1],10)}}},maxNav(){if(void 0!==this.navigationMaxYearMonth){const t=this.navigationMaxYearMonth.split("/");return{year:parseInt(t[0],10),month:parseInt(t[1],10)}}},navBoundaries(){const t={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return void 0!==this.minNav&&this.minNav.year>=this.viewModel.year&&(t.year.prev=!1,this.minNav.year===this.viewModel.year&&this.minNav.month>=this.viewModel.month&&(t.month.prev=!1)),void 0!==this.maxNav&&this.maxNav.year<=this.viewModel.year&&(t.year.next=!1,this.maxNav.year===this.viewModel.year&&this.maxNav.month<=this.viewModel.month&&(t.month.next=!1)),t},daysMap(){const t={};return this.daysModel.forEach(e=>{const i=this.__getMonthHash(e);void 0===t[i]&&(t[i]=[]),t[i].push(e.day)}),t},rangeMap(){const t={};return this.rangeModel.forEach(e=>{const i=this.__getMonthHash(e.from),s=this.__getMonthHash(e.to);if(void 0===t[i]&&(t[i]=[]),t[i].push({from:e.from.day,to:i===s?e.to.day:void 0,range:e}),i<s){let i;const{year:o,month:n}=e.from,r=n<12?{year:o,month:n+1}:{year:o+1,month:1};for(;(i=this.__getMonthHash(r))<=s;)void 0===t[i]&&(t[i]=[]),t[i].push({from:void 0,to:i===s?e.to.day:void 0,range:e}),r.month++,r.month>12&&(r.year++,r.month=1)}}),t},rangeView(){if(void 0===this.editRange)return;const{init:t,initHash:e,final:i,finalHash:s}=this.editRange,[o,n]=e<=s?[t,i]:[i,t],r=this.__getMonthHash(o),a=this.__getMonthHash(n);if(r!==this.viewMonthHash&&a!==this.viewMonthHash)return;const l={};return r===this.viewMonthHash?(l.from=o.day,l.includeFrom=!0):l.from=1,a===this.viewMonthHash?(l.to=n.day,l.includeTo=!0):l.to=this.daysInMonth,l},viewMonthHash(){return this.__getMonthHash(this.viewModel)},selectionDaysMap(){const t={};if(void 0===this.options){for(let e=1;e<=this.daysInMonth;e++)t[e]=!0;return t}const e="function"==typeof this.options?this.options:t=>this.options.includes(t);for(let i=1;i<=this.daysInMonth;i++){const s=this.viewMonthHash+"/"+pad(i);t[i]=e(s)}return t},eventDaysMap(){const t={};if(void 0===this.events)for(let e=1;e<=this.daysInMonth;e++)t[e]=!1;else{const e="function"==typeof this.events?this.events:t=>this.events.includes(t);for(let i=1;i<=this.daysInMonth;i++){const s=this.viewMonthHash+"/"+pad(i);t[i]=!0===e(s)&&this.evtColor(s)}}return t},viewDays(){let t,e;const{year:i,month:s}=this.viewModel;if("persian"!==this.calendar)t=new Date(i,s-1,1),e=new Date(i,s-1,0).getDate();else{const o=toGregorian(i,s,1);t=new Date(o.gy,o.gm-1,o.gd);let n=s-1,r=i;0===n&&(n=12,r--),e=jalaaliMonthLength(r,n)}return{days:t.getDay()-this.computedFirstDayOfWeek-1,endDay:e}},days(){const t=[],{days:e,endDay:i}=this.viewDays,s=e<0?e+7:e;if(s<6)for(let e=i-s;e<=i;e++)t.push({i:e,fill:!0});const o=t.length;for(let e=1;e<=this.daysInMonth;e++){const i={i:e,event:this.eventDaysMap[e],classes:[]};!0===this.selectionDaysMap[e]&&(i.in=!0,i.flat=!0),t.push(i)}if(void 0!==this.daysMap[this.viewMonthHash]&&this.daysMap[this.viewMonthHash].forEach(e=>{const i=o+e-1;Object.assign(t[i],{selected:!0,unelevated:!0,flat:!1,color:this.computedColor,textColor:this.computedTextColor})}),void 0!==this.rangeMap[this.viewMonthHash]&&this.rangeMap[this.viewMonthHash].forEach(e=>{if(void 0!==e.from){const i=o+e.from-1,s=o+(e.to||this.daysInMonth)-1;for(let o=i;o<=s;o++)Object.assign(t[o],{range:e.range,unelevated:!0,color:this.computedColor,textColor:this.computedTextColor});Object.assign(t[i],{rangeFrom:!0,flat:!1}),void 0!==e.to&&Object.assign(t[s],{rangeTo:!0,flat:!1})}else if(void 0!==e.to){const i=o+e.to-1;for(let s=o;s<=i;s++)Object.assign(t[s],{range:e.range,unelevated:!0,color:this.computedColor,textColor:this.computedTextColor});Object.assign(t[i],{flat:!1,rangeTo:!0})}else{const i=o+this.daysInMonth-1;for(let s=o;s<=i;s++)Object.assign(t[s],{range:e.range,unelevated:!0,color:this.computedColor,textColor:this.computedTextColor})}}),void 0!==this.rangeView){const e=o+this.rangeView.from-1,i=o+this.rangeView.to-1;for(let s=e;s<=i;s++)t[s].color=this.computedColor,t[s].editRange=!0;!0===this.rangeView.includeFrom&&(t[e].editRangeFrom=!0),!0===this.rangeView.includeTo&&(t[i].editRangeTo=!0)}this.viewModel.year===this.today.year&&this.viewModel.month===this.today.month&&(t[o+this.today.day-1].today=!0);const n=t.length%7;if(n>0){const e=7-n;for(let i=1;i<=e;i++)t.push({i:i,fill:!0})}return t.forEach(t=>{let e="q-date__calendar-item ";!0===t.fill?e+="q-date__calendar-item--fill":(e+=`q-date__calendar-item--${!0===t.in?"in":"out"}`,void 0!==t.range&&(e+=` q-date__range${!0===t.rangeTo?"-to":!0===t.rangeFrom?"-from":""}`),!0===t.editRange&&(e+=` q-date__edit-range${!0===t.editRangeFrom?"-from":""}${!0===t.editRangeTo?"-to":""}`),void 0===t.range&&!0!==t.editRange||(e+=` text-${t.color}`)),t.classes=e}),t},attrs(){return!0===this.disable?{"aria-disabled":"true"}:!0===this.readonly?{"aria-readonly":"true"}:void 0}},methods:{setToday(){const t=this.today,e=this.daysMap[this.__getMonthHash(t)];void 0!==e&&!1!==e.includes(t.day)||this.__addToModel(t),this.setCalendarTo(this.today.year,this.today.month)},setView(t){!0===viewIsValid(t)&&(this.view=t)},offsetCalendar(t,e){["month","year"].includes(t)&&this[`__goTo${"month"===t?"Month":"Year"}`](!0===e?-1:1)},setCalendarTo(t,e){this.view="Calendar",this.__updateViewModel(t,e)},setEditingRange(t,e){if(!1===this.range||!t)return void(this.editRange=void 0);const i=Object.assign({...this.viewModel},t),s=void 0!==e?Object.assign({...this.viewModel},e):i;this.editRange={init:i,initHash:this.__getDayHash(i),final:s,finalHash:this.__getDayHash(s)},this.setCalendarTo(i.year,i.month)},__getMask(){return"persian"===this.calendar?"YYYY/MM/DD":this.mask},__decodeString(t,e,i){return __splitDate(t,e,i,this.calendar,{hour:0,minute:0,second:0,millisecond:0})},__getViewModel(t,e){const i=!0===Array.isArray(this.value)?this.value:this.value?[this.value]:[];if(0===i.length)return this.__getDefaultViewModel();const s=this.__decodeString(void 0!==i[0].from?i[0].from:i[0],t,e);return null===s.dateHash?this.__getDefaultViewModel():s},__getDefaultViewModel(){let t,e;if(void 0!==this.defaultYearMonth){const i=this.defaultYearMonth.split("/");t=parseInt(i[0],10),e=parseInt(i[1],10)}else{const i=void 0!==this.today?this.today:this.__getCurrentDate();t=i.year,e=i.month}return{year:t,month:e,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:t+"/"+pad(e)+"/01"}},__getHeader(t){if(!0!==this.minimal)return t("div",{staticClass:"q-date__header",class:this.headerClass},[t("div",{staticClass:"relative-position"},[t("transition",{props:{name:"q-transition--fade"}},[t("div",{key:"h-yr-"+this.headerSubtitle,staticClass:"q-date__header-subtitle q-date__header-link",class:"Years"===this.view?"q-date__header-link--active":"cursor-pointer",attrs:{tabindex:this.computedTabindex},on:cache(this,"vY",{click:()=>{this.view="Years"},keyup:t=>{13===t.keyCode&&(this.view="Years")}})},[this.headerSubtitle])])]),t("div",{staticClass:"q-date__header-title relative-position flex no-wrap"},[t("div",{staticClass:"relative-position col"},[t("transition",{props:{name:"q-transition--fade"}},[t("div",{key:"h-sub"+this.headerTitle,staticClass:"q-date__header-title-label q-date__header-link",class:"Calendar"===this.view?"q-date__header-link--active":"cursor-pointer",attrs:{tabindex:this.computedTabindex},on:cache(this,"vC",{click:()=>{this.view="Calendar"},keyup:t=>{13===t.keyCode&&(this.view="Calendar")}})},[this.headerTitle])])]),!0===this.todayBtn?t(QBtn,{staticClass:"q-date__header-today self-start",props:{icon:this.$q.iconSet.datetime.today,flat:!0,size:"sm",round:!0,tabindex:this.computedTabindex},on:cache(this,"today",{click:this.setToday})}):null])])},__getNavigation(t,{label:e,view:i,key:s,dir:o,goTo:n,boundaries:r,cls:a}){return[t("div",{staticClass:"row items-center q-date__arrow"},[t(QBtn,{props:{round:!0,dense:!0,size:"sm",flat:!0,icon:this.dateArrow[0],tabindex:this.computedTabindex,disable:!1===r.prev},on:cache(this,"go-#"+i,{click(){n(-1)}})})]),t("div",{staticClass:"relative-position overflow-hidden flex flex-center"+a},[t("transition",{props:{name:"q-transition--jump-"+o}},[t("div",{key:s},[t(QBtn,{props:{flat:!0,dense:!0,noCaps:!0,label:e,tabindex:this.computedTabindex},on:cache(this,"view#"+i,{click:()=>{this.view=i}})})])])]),t("div",{staticClass:"row items-center q-date__arrow"},[t(QBtn,{props:{round:!0,dense:!0,size:"sm",flat:!0,icon:this.dateArrow[1],tabindex:this.computedTabindex,disable:!1===r.next},on:cache(this,"go+#"+i,{click(){n(1)}})})])]},__getCalendarView(t){return[t("div",{key:"calendar-view",staticClass:"q-date__view q-date__calendar"},[t("div",{staticClass:"q-date__navigation row items-center no-wrap"},this.__getNavigation(t,{label:this.innerLocale.months[this.viewModel.month-1],view:"Months",key:this.viewModel.month,dir:this.monthDirection,goTo:this.__goToMonth,boundaries:this.navBoundaries.month,cls:" col"}).concat(this.__getNavigation(t,{label:this.viewModel.year,view:"Years",key:this.viewModel.year,dir:this.yearDirection,goTo:this.__goToYear,boundaries:this.navBoundaries.year,cls:""}))),t("div",{staticClass:"q-date__calendar-weekdays row items-center no-wrap"},this.daysOfWeek.map(e=>t("div",{staticClass:"q-date__calendar-item"},[t("div",[e])]))),t("div",{staticClass:"q-date__calendar-days-container relative-position overflow-hidden"},[t("transition",{props:{name:"q-transition--slide-"+this.monthDirection}},[t("div",{key:this.viewMonthHash,staticClass:"q-date__calendar-days fit"},this.days.map(e=>t("div",{staticClass:e.classes},[!0===e.in?t(QBtn,{staticClass:!0===e.today?"q-date__today":null,props:{dense:!0,flat:e.flat,unelevated:e.unelevated,color:e.color,textColor:e.textColor,label:e.i,tabindex:this.computedTabindex},on:cache(this,"day#"+e.i,{click:()=>{this.__onDayClick(e.i)},mouseover:()=>{this.__onDayMouseover(e.i)}})},!1!==e.event?[t("div",{staticClass:"q-date__event bg-"+e.event})]:null):t("div",[e.i])])))])])])]},__getMonthsView(t){const e=this.viewModel.year===this.today.year,i=t=>void 0!==this.minNav&&this.viewModel.year===this.minNav.year&&this.minNav.month>t||void 0!==this.maxNav&&this.viewModel.year===this.maxNav.year&&this.maxNav.month<t,s=this.innerLocale.monthsShort.map((s,o)=>{const n=this.viewModel.month===o+1;return t("div",{staticClass:"q-date__months-item flex flex-center"},[t(QBtn,{staticClass:!0===e&&this.today.month===o+1?"q-date__today":null,props:{flat:!0!==n,label:s,unelevated:n,color:!0===n?this.computedColor:null,textColor:!0===n?this.computedTextColor:null,tabindex:this.computedTabindex,disable:i(o+1)},on:cache(this,"month#"+o,{click:()=>{this.__setMonth(o+1)}})})])});return!0===this.yearsInMonthView&&s.unshift(t("div",{staticClass:"row no-wrap full-width"},[this.__getNavigation(t,{label:this.viewModel.year,view:"Years",key:this.viewModel.year,dir:this.yearDirection,goTo:this.__goToYear,boundaries:this.navBoundaries.year,cls:" col"})])),t("div",{key:"months-view",staticClass:"q-date__view q-date__months flex flex-center"},s)},__getYearsView(t){const e=this.startYear,i=e+20,s=[],o=t=>void 0!==this.minNav&&this.minNav.year>t||void 0!==this.maxNav&&this.maxNav.year<t;for(let n=e;n<=i;n++){const e=this.viewModel.year===n;s.push(t("div",{staticClass:"q-date__years-item flex flex-center"},[t(QBtn,{key:"yr"+n,staticClass:this.today.year===n?"q-date__today":null,props:{flat:!e,label:n,dense:!0,unelevated:e,color:!0===e?this.computedColor:null,textColor:!0===e?this.computedTextColor:null,tabindex:this.computedTabindex,disable:o(n)},on:cache(this,"yr#"+n,{click:()=>{this.__setYear(n)}})})]))}return t("div",{staticClass:"q-date__view q-date__years flex flex-center"},[t("div",{staticClass:"col-auto"},[t(QBtn,{props:{round:!0,dense:!0,flat:!0,icon:this.dateArrow[0],tabindex:this.computedTabindex,disable:o(e)},on:cache(this,"y-",{click:()=>{this.startYear-=20}})})]),t("div",{staticClass:"q-date__years-content col self-stretch row items-center"},s),t("div",{staticClass:"col-auto"},[t(QBtn,{props:{round:!0,dense:!0,flat:!0,icon:this.dateArrow[1],tabindex:this.computedTabindex,disable:o(i)},on:cache(this,"y+",{click:()=>{this.startYear+=20}})})])])},__goToMonth(t){let e=this.viewModel.year,i=Number(this.viewModel.month)+t;13===i?(i=1,e++):0===i&&(i=12,e--),this.__updateViewModel(e,i),!0===this.isImmediate&&this.__emitImmediately("month")},__goToYear(t){const e=Number(this.viewModel.year)+t;this.__updateViewModel(e,this.viewModel.month),!0===this.isImmediate&&this.__emitImmediately("year")},__setYear(t){this.__updateViewModel(t,this.viewModel.month),this.view="Years"===this.defaultView?"Months":"Calendar",!0===this.isImmediate&&this.__emitImmediately("year")},__setMonth(t){this.__updateViewModel(this.viewModel.year,t),this.view="Calendar",!0===this.isImmediate&&this.__emitImmediately("month")},__getMonthHash:t=>t.year+"/"+pad(t.month),__toggleDate(t,e){const i=this.daysMap[e];(void 0!==i&&!0===i.includes(t.day)?this.__removeFromModel:this.__addToModel)(t)},__getShortDate:t=>({year:t.year,month:t.month,day:t.day}),__onDayClick(t){const e={...this.viewModel,day:t};if(!1!==this.range)if(void 0===this.editRange){const i=this.days.find(e=>!0!==e.fill&&e.i===t);if(void 0!==i.range)return void this.__removeFromModel({target:e,from:i.range.from,to:i.range.to});if(!0===i.selected)return void this.__removeFromModel(e);const s=this.__getDayHash(e);this.editRange={init:e,initHash:s,final:e,finalHash:s},this.$emit("range-start",this.__getShortDate(e))}else{const t=this.editRange.initHash,i=this.__getDayHash(e),s=t<=i?{from:this.editRange.init,to:e}:{from:e,to:this.editRange.init};this.editRange=void 0,this.__addToModel(t===i?e:{target:e,...s}),this.$emit("range-end",{from:this.__getShortDate(s.from),to:this.__getShortDate(s.to)})}else this.__toggleDate(e,this.viewMonthHash)},__onDayMouseover(t){if(void 0!==this.editRange){const e={...this.viewModel,day:t};Object.assign(this.editRange,{final:e,finalHash:this.__getDayHash(e)})}},__updateViewModel(t,e,i){if(void 0!==this.minNav&&t<=this.minNav.year&&(t=this.minNav.year,e<this.minNav.month&&(e=this.minNav.month)),void 0!==this.maxNav&&t>=this.maxNav.year&&(t=this.maxNav.year,e>this.maxNav.month&&(e=this.maxNav.month)),void 0!==i){const{hour:t,minute:e,second:s,millisecond:o,timezoneOffset:n,timeHash:r}=i;Object.assign(this.viewModel,{hour:t,minute:e,second:s,millisecond:o,timezoneOffset:n,timeHash:r})}const s=t+"/"+pad(e)+"/01";s!==this.viewModel.dateHash&&(this.monthDirection=this.viewModel.dateHash<s==(!0!==this.$q.lang.rtl)?"left":"right",t!==this.viewModel.year&&(this.yearDirection=this.monthDirection),this.$nextTick(()=>{this.startYear=t-t%20-(t<0?20:0),Object.assign(this.viewModel,{year:t,month:e,day:1,dateHash:s})}))},__emitValue(t,e,i){const s=null!==t&&1===t.length&&!1===this.multiple?t[0]:t;this.lastEmitValue=s;const{reason:o,details:n}=this.__getEmitParams(e,i);this.$emit("input",s,o,n)},__emitImmediately(t){const e=void 0!==this.daysModel[0]&&null!==this.daysModel[0].dateHash?{...this.daysModel[0]}:{...this.viewModel};this.$nextTick(()=>{e.year=this.viewModel.year,e.month=this.viewModel.month;const i="persian"!==this.calendar?new Date(e.year,e.month,0).getDate():jalaaliMonthLength(e.year,e.month);e.day=Math.min(Math.max(1,e.day),i);const s=this.__encodeEntry(e);this.lastEmitValue=s;const{details:o}=this.__getEmitParams("",e);this.$emit("input",s,t,o)})},__getEmitParams(t,e){return void 0!==e.from?{reason:`${t}-range`,details:{...this.__getShortDate(e.target),from:this.__getShortDate(e.from),to:this.__getShortDate(e.to),changed:!0}}:{reason:`${t}-day`,details:{...this.__getShortDate(e),changed:!0}}},__encodeEntry(t,e,i){return void 0!==t.from?{from:this.encodeObjectFn(t.from,e,i),to:this.encodeObjectFn(t.to,e,i)}:this.encodeObjectFn(t,e,i)},__addToModel(t){let e;if(!0===this.multiple)if(void 0!==t.from){const i=this.__getDayHash(t.from),s=this.__getDayHash(t.to),o=this.daysModel.filter(t=>t.dateHash<i||t.dateHash>s),n=this.rangeModel.filter(({from:t,to:e})=>e.dateHash<i||t.dateHash>s);e=o.concat(n).concat(t).map(t=>this.__encodeEntry(t))}else{const i=this.normalizedModel.slice();i.push(this.__encodeEntry(t)),e=i}else e=this.__encodeEntry(t);this.__emitValue(e,"add",t)},__removeFromModel(t){if(!0===this.noUnset)return;let e=null;if(!0===this.multiple&&!0===Array.isArray(this.value)){const i=this.__encodeEntry(t);0===(e=void 0!==t.from?this.value.filter(t=>void 0===t.from||t.from!==i.from&&t.to!==i.to):this.value.filter(t=>t!==i)).length&&(e=null)}this.__emitValue(e,"remove",t)},__updateValue(t,e,i){const s=this.daysModel.concat(this.rangeModel).map(i=>this.__encodeEntry(i,t,e)).filter(t=>void 0!==t.from?null!==t.from.dateHash&&null!==t.to.dateHash:null!==t.dateHash);this.$emit("input",(!0===this.multiple?s:s[0])||null,i)}},render(t){const e=[t("div",{staticClass:"q-date__content col relative-position"},[t("transition",{props:{name:"q-transition--fade"}},[this[`__get${this.view}View`](t)])])],i=slot(this,"default");return void 0!==i&&e.push(t("div",{staticClass:"q-date__actions"},i)),void 0!==this.name&&!0!==this.disable&&this.__injectFormInput(e,"push"),t("div",{class:this.classes,attrs:this.attrs,on:{...this.qListeners}},[this.__getHeader(t),t("div",{staticClass:"q-date__main col column",attrs:{tabindex:-1},ref:"blurTarget"},e)])}}),HistoryMixin={methods:{__addHistory(){this.__historyEntry={condition:()=>!0===this.hideOnRouteChange,handler:this.hide},History.add(this.__historyEntry)},__removeHistory(){void 0!==this.__historyEntry&&(History.remove(this.__historyEntry),this.__historyEntry=void 0)}},beforeDestroy(){!0===this.showing&&this.__removeHistory()}};let scrollPositionX,scrollPositionY,maxScrollTop,bodyLeft,bodyTop,href,closeTimer,registered=0,vpPendingUpdate=!1;function onWheel(t){shouldPreventScroll(t)&&stopAndPrevent(t)}function shouldPreventScroll(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const e=getEventPath(t),i=t.shiftKey&&!t.deltaX,s=!i&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),o=i||s?t.deltaY:t.deltaX;for(let t=0;t<e.length;t++){const i=e[t];if(hasScrollbar(i,s))return s?o<0&&0===i.scrollTop||o>0&&i.scrollTop+i.clientHeight===i.scrollHeight:o<0&&0===i.scrollLeft||o>0&&i.scrollLeft+i.clientWidth===i.scrollWidth}return!0}function onAppleScroll(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function onAppleResize(t){!0!==vpPendingUpdate&&(vpPendingUpdate=!0,requestAnimationFrame(()=>{vpPendingUpdate=!1;const{height:e}=t.target,{clientHeight:i,scrollTop:s}=document.scrollingElement;void 0!==maxScrollTop&&e===window.innerHeight||(maxScrollTop=i-e,document.scrollingElement.scrollTop=s),s>maxScrollTop&&(document.scrollingElement.scrollTop-=Math.ceil((s-maxScrollTop)/8))}))}function apply(t){const e=document.body,i=void 0!==window.visualViewport;if("add"===t){const t=window.getComputedStyle(e).overflowY;scrollPositionX=getHorizontalScrollPosition(window),scrollPositionY=getScrollPosition(window),bodyLeft=e.style.left,bodyTop=e.style.top,href=window.location.href,e.style.left=`-${scrollPositionX}px`,e.style.top=`-${scrollPositionY}px`,"hidden"!==t&&("scroll"===t||e.scrollHeight>window.innerHeight)&&e.classList.add("q-body--force-scrollbar"),e.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,!0===client.is.ios&&(!0===i?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",onAppleResize,listenOpts.passiveCapture),window.visualViewport.addEventListener("scroll",onAppleResize,listenOpts.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",onAppleScroll,listenOpts.passiveCapture))}!0===client.is.desktop&&!0===client.is.mac&&window[`${t}EventListener`]("wheel",onWheel,listenOpts.notPassive),"remove"===t&&(!0===client.is.ios&&(!0===i?(window.visualViewport.removeEventListener("resize",onAppleResize,listenOpts.passiveCapture),window.visualViewport.removeEventListener("scroll",onAppleResize,listenOpts.passiveCapture)):window.removeEventListener("scroll",onAppleScroll,listenOpts.passiveCapture)),e.classList.remove("q-body--prevent-scroll"),e.classList.remove("q-body--force-scrollbar"),document.qScrollPrevented=!1,e.style.left=bodyLeft,e.style.top=bodyTop,window.location.href===href&&window.scrollTo(scrollPositionX,scrollPositionY),maxScrollTop=void 0)}function preventScroll(t){let e="add";if(!0===t){if(registered++,void 0!==closeTimer)return clearTimeout(closeTimer),void(closeTimer=void 0);if(registered>1)return}else{if(0===registered)return;if(--registered>0)return;if(e="remove",!0===client.is.ios&&!0===client.is.nativeMobile)return clearTimeout(closeTimer),void(closeTimer=setTimeout(()=>{apply(e),closeTimer=void 0},100))}apply(e)}var PreventScrollMixin={methods:{__preventScroll(t){t===this.preventedScroll||void 0===this.preventedScroll&&!0!==t||(this.preventedScroll=t,preventScroll(t))}}};let maximizedModals=0;const positionClass={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},defaultTransitions={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},backdropAttrs={...ariaHidden,tabindex:-1};var QDialog=Vue.extend({name:"QDialog",mixins:[AttrsMixin,TransitionMixin,HistoryMixin,TimeoutMixin,ModelToggleMixin,Portal,PreventScrollMixin],props:{persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,position:{type:String,default:"standard",validator:t=>"standard"===t||["top","bottom","left","right"].includes(t)},transitionShow:String,transitionHide:String},data:()=>({animating:!1}),watch:{maximized(t){!0===this.showing&&this.__updateMaximized(t)},useBackdrop(t){this.__preventScroll(t),this.__preventFocusout(t)}},computed:{classes(){return`q-dialog__inner--${!0===this.maximized?"maximized":"minimized"} `+`q-dialog__inner--${this.position} ${positionClass[this.position]}`+(!0===this.animating?" q-dialog__inner--animating":"")+(!0===this.fullWidth?" q-dialog__inner--fullwidth":"")+(!0===this.fullHeight?" q-dialog__inner--fullheight":"")+(!0===this.square?" q-dialog__inner--square":"")},defaultTransitionShow(){return defaultTransitions[this.position][0]},defaultTransitionHide(){return defaultTransitions[this.position][1]},useBackdrop(){return!0===this.showing&&!0!==this.seamless},hideOnRouteChange(){return!0!==this.persistent&&!0!==this.noRouteDismiss&&!0!==this.seamless},onEvents(){const t={...this.qListeners,input:stop,"popup-show":stop,"popup-hide":stop};return!0===this.autoClose&&(t.click=this.__onAutoClose),t},attrs(){return{role:"dialog","aria-modal":!0===this.useBackdrop?"true":"false",...this.qAttrs}}},methods:{focus(t){addFocusFn(()=>{let e=this.__getInnerNode();void 0!==e&&!0!==e.contains(document.activeElement)&&(e=(""!==t?e.querySelector(t):null)||e.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||e.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||e.querySelector("[autofocus], [data-autofocus]")||e).focus({preventScroll:!0})})},shake(t){t&&"function"==typeof t.focus?t.focus({preventScroll:!0}):this.focus(),this.$emit("shake");const e=this.__getInnerNode();void 0!==e&&(e.classList.remove("q-animate--scale"),e.classList.add("q-animate--scale"),clearTimeout(this.shakeTimeout),this.shakeTimeout=setTimeout(()=>{e.classList.remove("q-animate--scale")},170))},__getInnerNode(){return void 0!==this.__portal&&void 0!==this.__portal.$refs?this.__portal.$refs.inner:void 0},__show(t){this.__addHistory(),this.__refocusTarget=!0!==client.is.mobile&&!1===this.noRefocus&&null!==document.activeElement?document.activeElement:void 0,this.$el.dispatchEvent(create("popup-show",{bubbles:!0})),this.__updateMaximized(this.maximized),EscapeKey.register(this,t=>{!0!==this.seamless&&(!0===this.persistent||!0===this.noEscDismiss?!0!==this.maximized&&!0!==this.noShake&&this.shake():(this.$emit("escape-key"),this.hide(t)))}),this.__showPortal(),this.animating=!0,!0!==this.noFocus?(null!==document.activeElement&&document.activeElement.blur(),this.__registerTick(this.focus)):this.__removeTick(),this.__registerTimeout(()=>{if(!0===this.$q.platform.is.ios){if(!0!==this.seamless&&document.activeElement){const{top:t,bottom:e}=document.activeElement.getBoundingClientRect(),{innerHeight:i}=window,s=void 0!==window.visualViewport?window.visualViewport.height:i;t>0&&e>s/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-s,e>=i?1/0:Math.ceil(document.scrollingElement.scrollTop+e-s/2))),document.activeElement.scrollIntoView()}this.__portal.$el.click()}this.animating=!1,this.__showPortal(!0),this.$emit("show",t)},300)},__hide(t){this.__removeTick(),this.__removeHistory(),this.__cleanup(!0),this.__hidePortal(),this.animating=!0,void 0!==this.__refocusTarget&&null!==this.__refocusTarget&&(((t&&0===t.type.indexOf("key")?this.__refocusTarget.closest('[tabindex]:not([tabindex^="-"])'):void 0)||this.__refocusTarget).focus(),this.__refocusTarget=void 0),this.$el.dispatchEvent(create("popup-hide",{bubbles:!0})),this.__registerTimeout(()=>{this.__hidePortal(!0),this.animating=!1,this.$emit("hide",t)},300)},__cleanup(t){clearTimeout(this.shakeTimeout),!0!==t&&!0!==this.showing||(EscapeKey.pop(this),this.__updateMaximized(!1),!0!==this.seamless&&(this.__preventScroll(!1),this.__preventFocusout(!1)))},__updateMaximized(t){!0===t?!0!==this.isMaximized&&(maximizedModals<1&&document.body.classList.add("q-body--dialog"),maximizedModals++,this.isMaximized=!0):!0===this.isMaximized&&(maximizedModals<2&&document.body.classList.remove("q-body--dialog"),maximizedModals--,this.isMaximized=!1)},__preventFocusout(t){if(!0===this.$q.platform.is.desktop){const e=`${!0===t?"add":"remove"}EventListener`;document.body[e]("focusin",this.__onFocusChange)}},__onAutoClose(t){this.hide(t),void 0!==this.qListeners.click&&this.$emit("click",t)},__onBackdropClick(t){!0!==this.persistent&&!0!==this.noBackdropDismiss?this.hide(t):!0!==this.noShake&&this.shake(t.relatedTarget)},__onFocusChange(t){!0!==this.allowFocusOutside&&!0===this.__portalIsAccessible&&!0!==childHasFocus(this.__portal.$el,t.target)&&this.focus('[tabindex]:not([tabindex="-1"])')},__renderPortal(t){return t("div",{staticClass:`q-dialog fullscreen no-pointer-events q-dialog--${!0===this.useBackdrop?"modal":"seamless"}`,class:this.contentClass,style:this.contentStyle,attrs:this.attrs},[t("transition",{props:{name:"q-transition--fade"}},!0===this.useBackdrop?[t("div",{staticClass:"q-dialog__backdrop fixed-full",attrs:backdropAttrs,on:cache(this,"bkdrop",{[this.backdropEvt]:this.__onBackdropClick})})]:null),t("transition",{props:{...this.transitionProps}},[!0===this.showing?t("div",{ref:"inner",staticClass:"q-dialog__inner flex no-pointer-events",class:this.classes,attrs:{tabindex:-1},on:this.onEvents},slot(this,"default")):null])])}},created(){this.__useTick("__registerTick","__removeTick"),this.__useTimeout("__registerTimeout"),this.backdropEvt=!0===this.$q.platform.is.ios||this.$q.platform.is.safari?"click":"focusin"},mounted(){this.__processModelChange(this.value)},beforeDestroy(){this.__cleanup(),this.__refocusTarget=void 0}});const duration=150,mouseEvents=["mouseover","mouseout","mouseenter","mouseleave"];var QDrawer=Vue.extend({name:"QDrawer",inject:{layout:{default(){console.error("QDrawer needs to be child of QLayout")}}},mixins:[DarkMixin,HistoryMixin,TimeoutMixin,ModelToggleMixin,PreventScrollMixin],directives:{TouchPan:TouchPan},props:{side:{type:String,default:"left",validator:t=>["left","right"].includes(t)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:t=>["default","desktop","mobile"].includes(t),default:"default"},bordered:Boolean,elevated:Boolean,contentStyle:[String,Object,Array],contentClass:[String,Object,Array],overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},data(){const t="mobile"===this.behavior||"desktop"!==this.behavior&&this.layout.totalWidth<=this.breakpoint;return{belowBreakpoint:t,showing:!0===this.showIfAbove&&!1===t||!0===this.value}},watch:{belowBreakpoint(t){!0===t?(this.lastDesktopState=this.showing,!0===this.showing&&this.hide(!1)):!1===this.overlay&&"mobile"!==this.behavior&&!1!==this.lastDesktopState&&(!0===this.showing?(this.__applyPosition(0),this.__applyBackdrop(0),this.__cleanup()):this.show(!1))},"layout.totalWidth"(){!0!==this.layout.container&&!0===document.qScrollPrevented||this.__updateBelowBreakpoint()},side(t,e){this.layout.instances[e]===this&&(this.layout.instances[e]=void 0,this.layout[e].space=!1,this.layout[e].offset=0),this.layout.instances[t]=this,this.layout[t].size=this.size,this.layout[t].space=this.onLayout,this.layout[t].offset=this.offset},behavior(){this.__updateBelowBreakpoint()},breakpoint(){this.__updateBelowBreakpoint()},"layout.container"(t){!0===this.showing&&this.__preventScroll(!0!==t),!0===t&&this.__updateBelowBreakpoint()},"layout.scrollbarWidth"(){this.__applyPosition(!0===this.showing?0:void 0)},offset(t){this.__update("offset",t)},onLayout(t){this.$emit("on-layout",t),this.__update("space",t)},rightSide(){this.__applyPosition()},size(t){this.__applyPosition(),this.__updateSizeOnLayout(this.miniToOverlay,t)},miniToOverlay(t){this.__updateSizeOnLayout(t,this.size)},"$q.lang.rtl"(){this.__applyPosition()},mini(){!0===this.value&&(this.__animateMini(),this.layout.__animate())},isMini(t){this.$emit("mini-state",t)}},computed:{rightSide(){return"right"===this.side},otherSide(){return!0===this.rightSide?"left":"right"},offset(){return!0===this.showing&&!1===this.belowBreakpoint&&!1===this.overlay?!0===this.miniToOverlay?this.miniWidth:this.size:0},size(){return!0===this.isMini?this.miniWidth:this.width},fixed(){return!0===this.overlay||!0===this.miniToOverlay||this.layout.view.indexOf(this.rightSide?"R":"L")>-1||this.$q.platform.is.ios&&!0===this.layout.container},onLayout(){return!0===this.showing&&!1===this.belowBreakpoint&&!1===this.overlay},onScreenOverlay(){return!0===this.showing&&!1===this.belowBreakpoint&&!0===this.overlay},backdropClass(){return!1===this.showing?"hidden":null},headerSlot(){return!0===this.rightSide?"r"===this.layout.rows.top[2]:"l"===this.layout.rows.top[0]},footerSlot(){return!0===this.rightSide?"r"===this.layout.rows.bottom[2]:"l"===this.layout.rows.bottom[0]},aboveStyle(){const t={};return!0===this.layout.header.space&&!1===this.headerSlot&&(!0===this.fixed?t.top=`${this.layout.header.offset}px`:!0===this.layout.header.space&&(t.top=`${this.layout.header.size}px`)),!0===this.layout.footer.space&&!1===this.footerSlot&&(!0===this.fixed?t.bottom=`${this.layout.footer.offset}px`:!0===this.layout.footer.space&&(t.bottom=`${this.layout.footer.size}px`)),t},style(){const t={width:`${this.size}px`};return!0===this.belowBreakpoint?t:Object.assign(t,this.aboveStyle)},classes(){return`q-drawer--${this.side}`+(!0===this.bordered?" q-drawer--bordered":"")+(!0===this.isDark?" q-drawer--dark q-dark":"")+(!0!==this.showing?" q-layout--prevent-focus":"")+(!0===this.belowBreakpoint?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${!0===this.isMini?"mini":"standard"}`+(!0===this.fixed||!0!==this.onLayout?" fixed":"")+(!0===this.overlay||!0===this.miniToOverlay?" q-drawer--on-top":"")+(!0===this.headerSlot?" q-drawer--top-padding":""))},stateDirection(){return(!0===this.$q.lang.rtl?-1:1)*(!0===this.rightSide?1:-1)},isMini(){return!0===this.mini&&!0!==this.belowBreakpoint},onNativeEvents(){if(!0!==this.belowBreakpoint){const t={"!click":t=>{this.$emit("click",t)}};return mouseEvents.forEach(e=>{t[e]=(t=>{void 0!==this.qListeners[e]&&this.$emit(e,t)})}),t}},hideOnRouteChange(){return!0!==this.persistent&&(!0===this.belowBreakpoint||!0===this.onScreenOverlay)},openDirective(){const t=!0===this.$q.lang.rtl?this.side:this.otherSide;return[{name:"touch-pan",value:this.__openByTouch,modifiers:{[t]:!0,mouse:!0}}]},contentCloseDirective(){if(!0!==this.noSwipeClose){const t=!0===this.$q.lang.rtl?this.otherSide:this.side;return[{name:"touch-pan",value:this.__closeByTouch,modifiers:{[t]:!0,mouse:!0}}]}},backdropCloseDirective(){if(!0!==this.noSwipeBackdrop){const t=!0===this.$q.lang.rtl?this.otherSide:this.side;return[{name:"touch-pan",value:this.__closeByTouch,modifiers:{[t]:!0,mouse:!0,mouseAllDir:!0}}]}}},methods:{__applyPosition(t){void 0===t?this.$nextTick(()=>{t=!0===this.showing?0:this.size,this.__applyPosition(this.stateDirection*t)}):void 0!==this.$refs.content&&(!0!==this.layout.container||!0!==this.rightSide||!0!==this.belowBreakpoint&&Math.abs(t)!==this.size||(t+=this.stateDirection*this.layout.scrollbarWidth),this.__lastPosition!==t&&(this.$refs.content.style.transform=`translateX(${t}px)`,this.__lastPosition=t))},__applyBackdrop(t,e){void 0!==this.$refs.backdrop?this.$refs.backdrop.style.backgroundColor=this.lastBackdropBg=`rgba(0,0,0,${.4*t})`:!0!==e&&this.$nextTick(()=>{this.__applyBackdrop(t,!0)})},__setBackdropVisible(t){void 0!==this.$refs.backdrop&&this.$refs.backdrop.classList[!0===t?"remove":"add"]("hidden")},__setScrollable(t){const e=!0===t?"remove":!0!==this.layout.container?"add":"";""!==e&&document.body.classList[e]("q-body--drawer-toggle")},__animateMini(){void 0!==this.timerMini?clearTimeout(this.timerMini):void 0!==this.$el&&this.$el.classList.add("q-drawer--mini-animate"),this.timerMini=setTimeout(()=>{void 0!==this.$el&&this.$el.classList.remove("q-drawer--mini-animate"),this.timerMini=void 0},150)},__openByTouch(t){if(!1!==this.showing)return;const e=this.size,i=between(t.distance.x,0,e);if(!0===t.isFinal){const t=this.$refs.content,s=i>=Math.min(75,e);return t.classList.remove("no-transition"),void(!0===s?this.show():(this.layout.__animate(),this.__applyBackdrop(0),this.__applyPosition(this.stateDirection*e),t.classList.remove("q-drawer--delimiter"),t.classList.add("q-layout--prevent-focus"),this.__setBackdropVisible(!1)))}if(this.__applyPosition((!0===this.$q.lang.rtl?!0!==this.rightSide:this.rightSide)?Math.max(e-i,0):Math.min(0,i-e)),this.__applyBackdrop(between(i/e,0,1)),!0===t.isFirst){const t=this.$refs.content;t.classList.add("no-transition"),t.classList.add("q-drawer--delimiter"),t.classList.remove("q-layout--prevent-focus"),this.__setBackdropVisible(!0)}},__closeByTouch(t){if(!0!==this.showing)return;const e=this.size,i=t.direction===this.side,s=(!0===this.$q.lang.rtl?!0!==i:i)?between(t.distance.x,0,e):0;if(!0===t.isFinal){const t=Math.abs(s)<Math.min(75,e);return this.$refs.content.classList.remove("no-transition"),void(!0===t?(this.layout.__animate(),this.__applyBackdrop(1),this.__applyPosition(0)):this.hide())}this.__applyPosition(this.stateDirection*s),this.__applyBackdrop(between(1-s/e,0,1)),!0===t.isFirst&&this.$refs.content.classList.add("no-transition")},__show(t,e){if(this.__addHistory(),this.__setBackdropVisible(!0),!1!==t&&this.layout.__animate(),this.__applyPosition(0),!0===this.belowBreakpoint){const t=this.layout.instances[this.otherSide];void 0!==t&&!0===t.belowBreakpoint&&t.hide(!1),this.__applyBackdrop(1),!0!==this.layout.container&&this.__preventScroll(!0)}else this.__applyBackdrop(0),!1!==t&&this.__setScrollable(!1);this.__registerTimeout(()=>{!1!==t&&this.__setScrollable(!0),!0!==e&&this.$emit("show",t)},150)},__hide(t,e){this.__removeHistory(),!1!==t&&this.layout.__animate(),this.__applyBackdrop(0),this.__applyPosition(this.stateDirection*this.size),this.__setBackdropVisible(!1),this.__cleanup(),!0!==e?this.__registerTimeout(()=>{this.$emit("hide",t)},150):this.__removeTimeout()},__cleanup(){this.__preventScroll(!1),this.__setScrollable(!0)},__update(t,e){this.layout[this.side][t]!==e&&(this.layout[this.side][t]=e)},__updateLocal(t,e){this[t]!==e&&(this[t]=e)},__updateSizeOnLayout(t,e){this.__update("size",!0===t?this.miniWidth:e)},__updateBelowBreakpoint(){this.__updateLocal("belowBreakpoint","mobile"===this.behavior||"desktop"!==this.behavior&&this.layout.totalWidth<=this.breakpoint)}},created(){this.__useTimeout("__registerTimeout","__removeTimeout"),this.layout.instances[this.side]=this,this.__updateSizeOnLayout(this.miniToOverlay,this.size),this.__update("space",this.onLayout),this.__update("offset",this.offset),!0===this.showIfAbove&&!0!==this.value&&!0===this.showing&&void 0!==this.qListeners.input&&this.$emit("input",!0)},mounted(){this.$emit("on-layout",this.onLayout),this.$emit("mini-state",this.isMini),this.lastDesktopState=!0===this.showIfAbove;const t=()=>{this[`__${!0===this.showing?"show":"hide"}`](!1,!0)};0===this.layout.totalWidth?this.watcher=this.$watch("layout.totalWidth",()=>{this.watcher(),this.watcher=void 0,!1===this.showing&&!0===this.showIfAbove&&!1===this.belowBreakpoint?this.show(!1):t()}):this.$nextTick(t)},beforeDestroy(){void 0!==this.watcher&&this.watcher(),clearTimeout(this.timerMini),!0===this.showing&&this.__cleanup(),this.layout.instances[this.side]===this&&(this.layout.instances[this.side]=void 0,this.__update("size",0),this.__update("offset",0),this.__update("space",!1))},render(t){const e=[];!0===this.belowBreakpoint&&(!0!==this.noSwipeOpen&&e.push(t("div",{staticClass:`q-drawer__opener fixed-${this.side}`,attrs:ariaHidden,directives:this.openDirective})),e.push(t("div",{ref:"backdrop",staticClass:"fullscreen q-drawer__backdrop",class:this.backdropClass,attrs:ariaHidden,style:void 0!==this.lastBackdropBg?{backgroundColor:this.lastBackdropBg}:null,on:cache(this,"bkdrop",{click:this.hide}),directives:!1===this.showing?void 0:this.backdropCloseDirective})));const i=[t("div",{staticClass:"q-drawer__content fit "+(!0===this.layout.container?"overflow-auto":"scroll"),class:this.contentClass,style:this.contentStyle},!0===this.isMini&&void 0!==this.$scopedSlots.mini?this.$scopedSlots.mini():slot(this,"default"))];return!0===this.elevated&&!0===this.showing&&i.push(t("div",{staticClass:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),e.push(t("aside",{ref:"content",staticClass:"q-drawer",class:this.classes,style:this.style,on:this.onNativeEvents,directives:!0===this.belowBreakpoint?this.contentCloseDirective:void 0},i)),t("div",{staticClass:"q-drawer-container"},e)}});const attrs$3={role:"tooltip"};var QTooltip=Vue.extend({name:"QTooltip",mixins:[AnchorMixin,TimeoutMixin,ModelToggleMixin,Portal,TransitionMixin],props:{maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{default:"jump-down"},transitionHide:{default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:validatePosition},self:{type:String,default:"top middle",validator:validatePosition},offset:{type:Array,default:()=>[14,14],validator:validateOffset},scrollTarget:{default:void 0},delay:{type:Number,default:0},hideDelay:{type:Number,default:0}},computed:{anchorOrigin(){return parsePosition(this.anchor,this.$q.lang.rtl)},selfOrigin(){return parsePosition(this.self,this.$q.lang.rtl)},hideOnRouteChange(){return!0!==this.persistent}},methods:{__show(t){this.__showPortal(),this.__registerTick(()=>{this.observer=new MutationObserver(()=>this.updatePosition()),this.observer.observe(this.__portal.$el,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),this.updatePosition(),this.__configureScrollTarget()}),void 0===this.unwatch&&(this.unwatch=this.$watch(()=>this.$q.screen.width+"|"+this.$q.screen.height+"|"+this.self+"|"+this.anchor+"|"+this.$q.lang.rtl,this.updatePosition)),this.__registerTimeout(()=>{this.__showPortal(!0),this.$emit("show",t)},300)},__hide(t){this.__removeTick(),this.__anchorCleanup(),this.__hidePortal(),this.__registerTimeout(()=>{this.__hidePortal(!0),this.$emit("hide",t)},300)},__anchorCleanup(){void 0!==this.observer&&(this.observer.disconnect(),this.observer=void 0),void 0!==this.unwatch&&(this.unwatch(),this.unwatch=void 0),this.__unconfigureScrollTarget(),cleanEvt(this,"tooltipTemp")},updatePosition(){if(void 0===this.anchorEl||void 0===this.__portal)return;const t=this.__portal.$el;8!==t.nodeType?setPosition({el:t,offset:this.offset,anchorEl:this.anchorEl,anchorOrigin:this.anchorOrigin,selfOrigin:this.selfOrigin,maxHeight:this.maxHeight,maxWidth:this.maxWidth}):setTimeout(this.updatePosition,25)},__delayShow(t){if(!0===this.$q.platform.is.mobile){clearSelection(),document.body.classList.add("non-selectable");const t=this.anchorEl;addEvt(this,"tooltipTemp",["touchmove","touchcancel","touchend","click"].map(e=>[t,e,"__delayHide","passiveCapture"]))}this.__registerTimeout(()=>{this.show(t)},this.delay)},__delayHide(t){!0===this.$q.platform.is.mobile&&(cleanEvt(this,"tooltipTemp"),clearSelection(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),this.__registerTimeout(()=>{this.hide(t)},this.hideDelay)},__configureAnchorEl(){if(!0===this.noParentEvent||void 0===this.anchorEl)return;addEvt(this,"anchor",!0===this.$q.platform.is.mobile?[[this.anchorEl,"touchstart","__delayShow","passive"]]:[[this.anchorEl,"mouseenter","__delayShow","passive"],[this.anchorEl,"mouseleave","__delayHide","passive"]])},__unconfigureScrollTarget(){void 0!==this.__scrollTarget&&(this.__changeScrollEvent(this.__scrollTarget),this.__scrollTarget=void 0)},__configureScrollTarget(){if(void 0!==this.anchorEl||void 0!==this.scrollTarget){this.__scrollTarget=getScrollTarget(this.anchorEl,this.scrollTarget);const t=!0===this.noParentEvent?this.updatePosition:this.hide;this.__changeScrollEvent(this.__scrollTarget,t)}},__renderPortal(t){return t("transition",{props:{...this.transitionProps}},[!0===this.showing?t("div",{staticClass:"q-tooltip q-tooltip--style q-position-engine no-pointer-events",class:this.contentClass,style:this.contentStyle,attrs:attrs$3},slot(this,"default")):null])}},created(){this.__useTick("__registerTick","__removeTick"),this.__useTimeout("__registerTimeout")},mounted(){this.__processModelChange(this.value)}}),QList=Vue.extend({name:"QList",mixins:[ListenersMixin,DarkMixin],props:{bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},computed:{classes(){return"q-list"+(!0===this.bordered?" q-list--bordered":"")+(!0===this.dense?" q-list--dense":"")+(!0===this.separator?" q-list--separator":"")+(!0===this.isDark?" q-list--dark":"")+(!0===this.padding?" q-list--padding":"")}},render(t){return t(this.tag,{class:this.classes,on:{...this.qListeners}},slot(this,"default"))}}),QItem=Vue.extend({name:"QItem",mixins:[DarkMixin,RouterLinkMixin,TagMixin,ListenersMixin],props:{active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},computed:{isActionable(){return!0===this.clickable||!0===this.hasLink||"label"===this.tag},isClickable(){return!0!==this.disable&&!0===this.isActionable},classes(){return"q-item q-item-type row no-wrap"+(!0===this.dense?" q-item--dense":"")+(!0===this.isDark?" q-item--dark":"")+(!0===this.hasLink&&null===this.active?this.linkClass:!0===this.active?` q-item--active${void 0!==this.activeClass?` ${this.activeClass}`:""} `:"")+(!0===this.disable?" disabled":"")+(!0===this.isClickable?" q-item--clickable q-link cursor-pointer "+(!0===this.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(!0===this.focused?" q-manual-focusable--focused":""):"")},style(){if(void 0!==this.insetLevel){return{["padding"+(!0===this.$q.lang.rtl?"Right":"Left")]:16+56*this.insetLevel+"px"}}},onEvents(){return{...this.qListeners,click:this.__onClick,keyup:this.__onKeyup}}},methods:{__onClick(t){!0===this.isClickable&&(void 0!==this.$refs.blurTarget&&(!0!==t.qKeyEvent&&document.activeElement===this.$el?this.$refs.blurTarget.focus():document.activeElement===this.$refs.blurTarget&&this.$el.focus()),this.__navigateOnClick(t))},__onKeyup(t){if(!0===this.isClickable&&!0===isKeyCode(t,13)){stopAndPrevent(t),t.qKeyEvent=!0;const e=new MouseEvent("click",t);e.qKeyEvent=!0,this.$el.dispatchEvent(e)}this.$emit("keyup",t)},__getContent(t){const e=uniqueSlot(this,"default",[]);return!0===this.isClickable&&e.unshift(t("div",{staticClass:"q-focus-helper",attrs:{tabindex:-1},ref:"blurTarget"})),e}},render(t){const e={class:this.classes,style:this.style,attrs:{role:"listitem"},on:this.onEvents};return!0===this.isClickable?(e.attrs.tabindex=this.tabindex||"0",Object.assign(e.attrs,this.linkAttrs)):!0===this.isActionable&&(e.attrs["aria-disabled"]="true"),t(this.linkTag,e,this.__getContent(t))}}),QItemSection=Vue.extend({name:"QItemSection",mixins:[ListenersMixin],props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},computed:{classes(){const t=this.avatar||this.side||this.thumbnail;return{"q-item__section--top":this.top,"q-item__section--avatar":this.avatar,"q-item__section--thumbnail":this.thumbnail,"q-item__section--side":t,"q-item__section--nowrap":this.noWrap,"q-item__section--main":!t,[`justify-${this.top?"start":"center"}`]:!0}}},render(t){return t("div",{staticClass:"q-item__section column",class:this.classes,on:{...this.qListeners}},slot(this,"default"))}});function run(t,e,i){e.handler?e.handler(t,i,i.caret):i.runCmd(e.cmd,e.param)}function __getGroup(t,e){return t("div",{staticClass:"q-editor__toolbar-group"},e)}function getBtn(t,e,i,s,o=!1){const n=o||"toggle"===i.type&&(i.toggled?i.toggled(e):i.cmd&&e.caret.is(i.cmd,i.param)),r=[],a={click(t){s&&s(),run(t,i,e)}};if(i.tip&&e.$q.platform.is.desktop){const e=i.key?t("div",[t("small",`(CTRL + ${String.fromCharCode(i.key)})`)]):null;r.push(t(QTooltip,{props:{delay:1e3}},[t("div",{domProps:{innerHTML:i.tip}}),e]))}return t(QBtn,{props:{...e.buttonProps,icon:null!==i.icon?i.icon:void 0,color:n?i.toggleColor||e.toolbarToggleColor:i.color||e.toolbarColor,textColor:n&&!e.toolbarPush?null:i.textColor||e.toolbarTextColor,label:i.label,disable:!!i.disable&&("function"!=typeof i.disable||i.disable(e)),size:"sm"},on:a},r)}function getDropdown(t,e,i){const s="only-icons"===i.list;let o,n,r=i.label,a=null!==i.icon?i.icon:void 0;function l(){d.componentInstance.hide()}if(s)n=i.options.map(i=>{const s=void 0===i.type&&e.caret.is(i.cmd,i.param);return s&&(r=i.tip,a=null!==i.icon?i.icon:void 0),getBtn(t,e,i,l,s)}),o=e.toolbarBackgroundClass,n=[__getGroup(t,n)];else{const s=void 0!==e.toolbarToggleColor?`text-${e.toolbarToggleColor}`:null,h=void 0!==e.toolbarTextColor?`text-${e.toolbarTextColor}`:null,d="no-icons"===i.list;n=i.options.map(i=>{const o=!!i.disable&&i.disable(e),n=void 0===i.type&&e.caret.is(i.cmd,i.param);n&&(r=i.tip,a=null!==i.icon?i.icon:void 0);const c=i.htmlTip;return t(QItem,{props:{active:n,activeClass:s,clickable:!0,disable:o,dense:!0},on:{click(t){l(),e.$refs.content&&e.$refs.content.focus(),e.caret.restore(),run(t,i,e)}}},[!0===d?null:t(QItemSection,{class:n?s:h,props:{side:!0}},[t(QIcon,{props:{name:null!==i.icon?i.icon:void 0}})]),t(QItemSection,[c?t("div",{staticClass:"text-no-wrap",domProps:{innerHTML:i.htmlTip}}):i.tip?t("div",{staticClass:"text-no-wrap"},[i.tip]):null])])}),o=[e.toolbarBackgroundClass,h],n=[t(QList,[n])]}const h=i.highlight&&r!==i.label,d=t(QBtnDropdown,{props:{...e.buttonProps,noCaps:!0,noWrap:!0,color:h?e.toolbarToggleColor:e.toolbarColor,textColor:h&&!e.toolbarPush?null:e.toolbarTextColor,label:i.fixedLabel?i.label:r,icon:i.fixedIcon?null!==i.icon?i.icon:void 0:a,contentClass:o}},n);return d}function getToolbar(t,e){if(e.caret)return e.buttons.filter(t=>!e.isViewingSource||t.find(t=>"viewsource"===t.cmd)).map(i=>__getGroup(t,i.map(i=>(!e.isViewingSource||"viewsource"===i.cmd)&&("slot"===i.type?slot(e,i.slot):"dropdown"===i.type?getDropdown(t,e,i):getBtn(t,e,i)))))}function getFonts(t,e,i,s={}){const o=Object.keys(s);if(0===o.length)return{};const n={default_font:{cmd:"fontName",param:t,icon:i,tip:e}};return o.forEach(t=>{const e=s[t];n[t]={cmd:"fontName",param:e,icon:i,tip:e,htmlTip:`<font face="${e}">${e}</font>`}}),n}function getLinkEditor(t,e,i){if(e.caret){const s=e.toolbarColor||e.toolbarTextColor;let o=e.editLinkUrl;const n=()=>{e.caret.restore(),o!==e.editLinkUrl&&document.execCommand("createLink",!1,""===o?" ":o),e.editLinkUrl=null,!0===i&&e.$nextTick(e.__onInput)};return[t("div",{staticClass:"q-mx-xs",class:`text-${s}`},[`${e.$q.lang.editor.url}: `]),t("input",{key:"qedt_btm_input",staticClass:"col q-editor__link-input",domProps:{value:o},on:{input:t=>{stop(t),o=t.target.value},keydown:t=>{if(!0!==shouldIgnoreKey(t))switch(t.keyCode){case 13:return prevent(t),n();case 27:prevent(t),e.caret.restore(),e.editLinkUrl&&"https://"!==e.editLinkUrl||document.execCommand("unlink"),e.editLinkUrl=null}}}}),__getGroup(t,[t(QBtn,{key:"qedt_btm_rem",attrs:{tabindex:-1},props:{...e.buttonProps,label:e.$q.lang.label.remove,noCaps:!0},on:{click:()=>{e.caret.restore(),document.execCommand("unlink"),e.editLinkUrl=null,!0===i&&e.$nextTick(e.__onInput)}}}),t(QBtn,{key:"qedt_btm_upd",props:{...e.buttonProps,label:e.$q.lang.label.update,noCaps:!0},on:{click:n}})])]}}function getBlockElement(t,e){if(e&&t===e)return null;const i=t.nodeName.toLowerCase();if(!0===["div","li","ul","ol","blockquote"].includes(i))return t;const s=(window.getComputedStyle?window.getComputedStyle(t):t.currentStyle).display;return"block"===s||"table"===s?t:getBlockElement(t.parentNode)}function isChildOf(t,e,i){return!(!t||t===document.body)&&(!0===i&&t===e||(e===document?document.body:e).contains(t.parentNode))}function createRange(t,e,i){if(i||((i=document.createRange()).selectNode(t),i.setStart(t,0)),0===e.count)i.setEnd(t,e.count);else if(e.count>0)if(t.nodeType===Node.TEXT_NODE)t.textContent.length<e.count?e.count-=t.textContent.length:(i.setEnd(t,e.count),e.count=0);else for(let s=0;0!==e.count&&s<t.childNodes.length;s++)i=createRange(t.childNodes[s],e,i);return i}const urlRegex=/^https?:\/\//;class Caret{constructor(t,e){this.el=t,this.vm=e,this._range=null}get selection(){if(this.el){const t=document.getSelection();if(isChildOf(t.anchorNode,this.el,!0)&&isChildOf(t.focusNode,this.el,!0))return t}return null}get hasSelection(){return null!==this.selection&&this.selection.toString().length>0}get range(){const t=this.selection;return null!==t&&t.rangeCount?t.getRangeAt(0):this._range}get parent(){const t=this.range;if(null!==t){const e=t.startContainer;return e.nodeType===document.ELEMENT_NODE?e:e.parentNode}return null}get blockParent(){const t=this.parent;return null!==t?getBlockElement(t,this.el):null}save(t=this.range){null!==t&&(this._range=t)}restore(t=this._range){const e=document.createRange(),i=document.getSelection();null!==t?(e.setStart(t.startContainer,t.startOffset),e.setEnd(t.endContainer,t.endOffset),i.removeAllRanges(),i.addRange(e)):(i.selectAllChildren(this.el),i.collapseToEnd())}savePosition(){let t,e=-1;const i=document.getSelection(),s=this.el.parentNode;if(i.focusNode&&isChildOf(i.focusNode,s))for(t=i.focusNode,e=i.focusOffset;t&&t!==s;)t!==this.el&&t.previousSibling?e+=(t=t.previousSibling).textContent.length:t=t.parentNode;this.savedPos=e}restorePosition(t=0){if(this.savedPos>0&&this.savedPos<t){const t=window.getSelection(),e=createRange(this.el,{count:this.savedPos});e&&(e.collapse(!1),t.removeAllRanges(),t.addRange(e))}}hasParent(t,e){const i=e?this.parent:this.blockParent;return null!==i&&i.nodeName.toLowerCase()===t.toLowerCase()}hasParents(t,e,i=this.parent){return null!==i&&(!0===t.includes(i.nodeName.toLowerCase())||!0===e&&this.hasParents(t,e,i.parentNode))}is(t,e){if(null===this.selection)return!1;switch(t){case"formatBlock":return"DIV"===e&&this.parent===this.el||this.hasParent(e,"PRE"===e);case"link":return this.hasParent("A",!0);case"fontSize":return document.queryCommandValue(t)===e;case"fontName":const i=document.queryCommandValue(t);return i===`"${e}"`||i===e;case"fullscreen":return this.vm.inFullscreen;case"viewsource":return this.vm.isViewingSource;case void 0:return!1;default:const s=document.queryCommandState(t);return void 0!==e?s===e:s}}getParentAttribute(t){return null!==this.parent?this.parent.getAttribute(t):null}can(t){return"outdent"===t?this.hasParents(["blockquote","li"],!0):"indent"===t?this.hasParents(["li"],!0):"link"===t?null!==this.selection||this.is("link"):void 0}apply(t,e,i=noop){if("formatBlock"===t)["BLOCKQUOTE","H1","H2","H3","H4","H5","H6"].includes(e)&&this.is(t,e)&&(t="outdent",e=null),"PRE"===e&&this.is(t,"PRE")&&(e="P");else{if("print"===t){i();const t=window.open();return t.document.write(`\n <!doctype html>\n <html>\n <head>\n <title>Print - ${document.title}</title>\n </head>\n <body>\n <div>${this.el.innerHTML}</div>\n </body>\n </html>\n `),t.print(),void t.close()}if("link"===t){const t=this.getParentAttribute("href");if(null===t){const t=this.selectWord(this.selection),e=t?t.toString():"";if(!(e.length||this.range&&this.range.cloneContents().querySelector("img")))return;this.vm.editLinkUrl=urlRegex.test(e)?e:"https://",document.execCommand("createLink",!1,this.vm.editLinkUrl),this.save(t.getRangeAt(0))}else this.vm.editLinkUrl=t,this.range.selectNodeContents(this.parent),this.save();return}if("fullscreen"===t)return this.vm.toggleFullscreen(),void i();if("viewsource"===t)return this.vm.isViewingSource=!1===this.vm.isViewingSource,this.vm.__setContent(this.vm.value),void i()}document.execCommand(t,!1,e),i()}selectWord(t){if(null===t||!0!==t.isCollapsed||void 0===t.modify)return t;const e=document.createRange();e.setStart(t.anchorNode,t.anchorOffset),e.setEnd(t.focusNode,t.focusOffset);const i=e.collapsed?["backward","forward"]:["forward","backward"];e.detach();const s=t.focusNode,o=t.focusOffset;return t.collapse(t.anchorNode,t.anchorOffset),t.modify("move",i[0],"character"),t.modify("move",i[1],"word"),t.extend(s,o),t.modify("extend",i[1],"character"),t.modify("extend",i[0],"word"),t}}const toString=Object.prototype.toString,hasOwn=Object.prototype.hasOwnProperty,notPlainObject=new Set(["Boolean","Number","String","Function","Array","Date","RegExp"].map(t=>"[object "+t+"]"));function isPlainObject(t){if(t!==Object(t)||!0===notPlainObject.has(toString.call(t)))return!1;if(t.constructor&&!1===hasOwn.call(t,"constructor")&&!1===hasOwn.call(t.constructor.prototype,"isPrototypeOf"))return!1;let e;for(e in t);return void 0===e||hasOwn.call(t,e)}function extend(){let t,e,i,s,o,n,r=arguments[0]||{},a=1,l=!1;const h=arguments.length;for("boolean"==typeof r&&(l=r,r=arguments[1]||{},a=2),Object(r)!==r&&"function"!=typeof r&&(r={}),h===a&&(r=this,a--);a<h;a++)if(null!==(t=arguments[a]))for(e in t)i=r[e],r!==(s=t[e])&&(!0===l&&s&&((o=Array.isArray(s))||!0===isPlainObject(s))?(n=!0===o?!0===Array.isArray(i)?i:[]:!0===isPlainObject(i)?i:{},r[e]=extend(l,n,s)):void 0!==s&&(r[e]=s));return r}var QEditor=Vue.extend({name:"QEditor",mixins:[ListenersMixin,FullscreenMixin,DarkMixin],props:{value:{type:String,required:!0},readonly:Boolean,disable:Boolean,minHeight:{type:String,default:"10rem"},maxHeight:String,height:String,definitions:Object,fonts:Object,placeholder:String,toolbar:{type:Array,validator:t=>0===t.length||t.every(t=>t.length),default:()=>[["left","center","right","justify"],["bold","italic","underline","strike"],["undo","redo"]]},toolbarColor:String,toolbarBg:String,toolbarTextColor:String,toolbarToggleColor:{type:String,default:"primary"},toolbarOutline:Boolean,toolbarPush:Boolean,toolbarRounded:Boolean,paragraphTag:{type:String,validator:t=>["div","p"].includes(t),default:"div"},contentStyle:Object,contentClass:[Object,Array,String],square:Boolean,flat:Boolean,dense:Boolean},computed:{editable(){return!this.readonly&&!this.disable},hasToolbar(){return this.toolbar&&this.toolbar.length>0},toolbarBackgroundClass(){if(this.toolbarBg)return`bg-${this.toolbarBg}`},buttonProps(){return{type:"a",flat:!0!==this.toolbarOutline&&!0!==this.toolbarPush,noWrap:!0,outline:this.toolbarOutline,push:this.toolbarPush,rounded:this.toolbarRounded,dense:!0,color:this.toolbarColor,disable:!this.editable,size:"sm"}},buttonDef(){const t=this.$q.lang.editor,e=this.$q.iconSet.editor;return{bold:{cmd:"bold",icon:e.bold,tip:t.bold,key:66},italic:{cmd:"italic",icon:e.italic,tip:t.italic,key:73},strike:{cmd:"strikeThrough",icon:e.strikethrough,tip:t.strikethrough,key:83},underline:{cmd:"underline",icon:e.underline,tip:t.underline,key:85},unordered:{cmd:"insertUnorderedList",icon:e.unorderedList,tip:t.unorderedList},ordered:{cmd:"insertOrderedList",icon:e.orderedList,tip:t.orderedList},subscript:{cmd:"subscript",icon:e.subscript,tip:t.subscript,htmlTip:"x<subscript>2</subscript>"},superscript:{cmd:"superscript",icon:e.superscript,tip:t.superscript,htmlTip:"x<superscript>2</superscript>"},link:{cmd:"link",disable:t=>t.caret&&!t.caret.can("link"),icon:e.hyperlink,tip:t.hyperlink,key:76},fullscreen:{cmd:"fullscreen",icon:e.toggleFullscreen,tip:t.toggleFullscreen,key:70},viewsource:{cmd:"viewsource",icon:e.viewSource,tip:t.viewSource},quote:{cmd:"formatBlock",param:"BLOCKQUOTE",icon:e.quote,tip:t.quote,key:81},left:{cmd:"justifyLeft",icon:e.left,tip:t.left},center:{cmd:"justifyCenter",icon:e.center,tip:t.center},right:{cmd:"justifyRight",icon:e.right,tip:t.right},justify:{cmd:"justifyFull",icon:e.justify,tip:t.justify},print:{type:"no-state",cmd:"print",icon:e.print,tip:t.print,key:80},outdent:{type:"no-state",disable:t=>t.caret&&!t.caret.can("outdent"),cmd:"outdent",icon:e.outdent,tip:t.outdent},indent:{type:"no-state",disable:t=>t.caret&&!t.caret.can("indent"),cmd:"indent",icon:e.indent,tip:t.indent},removeFormat:{type:"no-state",cmd:"removeFormat",icon:e.removeFormat,tip:t.removeFormat},hr:{type:"no-state",cmd:"insertHorizontalRule",icon:e.hr,tip:t.hr},undo:{type:"no-state",cmd:"undo",icon:e.undo,tip:t.undo,key:90},redo:{type:"no-state",cmd:"redo",icon:e.redo,tip:t.redo,key:89},h1:{cmd:"formatBlock",param:"H1",icon:e.heading1||e.heading,tip:t.heading1,htmlTip:`<h1 class="q-ma-none">${t.heading1}</h1>`},h2:{cmd:"formatBlock",param:"H2",icon:e.heading2||e.heading,tip:t.heading2,htmlTip:`<h2 class="q-ma-none">${t.heading2}</h2>`},h3:{cmd:"formatBlock",param:"H3",icon:e.heading3||e.heading,tip:t.heading3,htmlTip:`<h3 class="q-ma-none">${t.heading3}</h3>`},h4:{cmd:"formatBlock",param:"H4",icon:e.heading4||e.heading,tip:t.heading4,htmlTip:`<h4 class="q-ma-none">${t.heading4}</h4>`},h5:{cmd:"formatBlock",param:"H5",icon:e.heading5||e.heading,tip:t.heading5,htmlTip:`<h5 class="q-ma-none">${t.heading5}</h5>`},h6:{cmd:"formatBlock",param:"H6",icon:e.heading6||e.heading,tip:t.heading6,htmlTip:`<h6 class="q-ma-none">${t.heading6}</h6>`},p:{cmd:"formatBlock",param:this.paragraphTag.toUpperCase(),icon:e.heading,tip:t.paragraph},code:{cmd:"formatBlock",param:"PRE",icon:e.code,htmlTip:`<code>${t.code}</code>`},"size-1":{cmd:"fontSize",param:"1",icon:e.size1||e.size,tip:t.size1,htmlTip:`<font size="1">${t.size1}</font>`},"size-2":{cmd:"fontSize",param:"2",icon:e.size2||e.size,tip:t.size2,htmlTip:`<font size="2">${t.size2}</font>`},"size-3":{cmd:"fontSize",param:"3",icon:e.size3||e.size,tip:t.size3,htmlTip:`<font size="3">${t.size3}</font>`},"size-4":{cmd:"fontSize",param:"4",icon:e.size4||e.size,tip:t.size4,htmlTip:`<font size="4">${t.size4}</font>`},"size-5":{cmd:"fontSize",param:"5",icon:e.size5||e.size,tip:t.size5,htmlTip:`<font size="5">${t.size5}</font>`},"size-6":{cmd:"fontSize",param:"6",icon:e.size6||e.size,tip:t.size6,htmlTip:`<font size="6">${t.size6}</font>`},"size-7":{cmd:"fontSize",param:"7",icon:e.size7||e.size,tip:t.size7,htmlTip:`<font size="7">${t.size7}</font>`}}},buttons(){const t=this.definitions||{},e=this.definitions||this.fonts?extend(!0,{},this.buttonDef,t,getFonts(this.defaultFont,this.$q.lang.editor.defaultFont,this.$q.iconSet.editor.font,this.fonts)):this.buttonDef;return this.toolbar.map(i=>i.map(i=>{if(i.options)return{type:"dropdown",icon:i.icon,label:i.label,size:"sm",dense:!0,fixedLabel:i.fixedLabel,fixedIcon:i.fixedIcon,highlight:i.highlight,list:i.list,options:i.options.map(t=>e[t])};const s=e[i];return s?"no-state"===s.type||t[i]&&(void 0===s.cmd||this.buttonDef[s.cmd]&&"no-state"===this.buttonDef[s.cmd].type)?s:Object.assign({type:"toggle"},s):{type:"slot",slot:i}}))},keys(){const t={},e=e=>{e.key&&(t[e.key]={cmd:e.cmd,param:e.param})};return this.buttons.forEach(t=>{t.forEach(t=>{t.options?t.options.forEach(e):e(t)})}),t},innerStyle(){return this.inFullscreen?this.contentStyle:[{minHeight:this.minHeight,height:this.height,maxHeight:this.maxHeight},this.contentStyle]},classes(){return`q-editor q-editor--${!0===this.isViewingSource?"source":"default"}`+(!0===this.disable?" disabled":"")+(!0===this.inFullscreen?" fullscreen column":"")+(!0===this.square?" q-editor--square no-border-radius":"")+(!0===this.flat?" q-editor--flat":"")+(!0===this.dense?" q-editor--dense":"")+(!0===this.isDark?" q-editor--dark q-dark":"")},innerClass(){return[this.contentClass,{col:this.inFullscreen,"overflow-auto":this.inFullscreen||this.maxHeight}]},attrs(){return!0===this.disable?{"aria-disabled":"true"}:!0===this.readonly?{"aria-readonly":"true"}:void 0},onEditor(){return{focusin:this.__onFocusin,focusout:this.__onFocusout}}},data(){return{lastEmit:this.value,editLinkUrl:null,isViewingSource:!1}},watch:{value(t){this.lastEmit!==t&&(this.lastEmit=t,this.__setContent(t,!0))}},methods:{__onInput(){if(void 0!==this.$refs.content){const t=!0===this.isViewingSource?this.$refs.content.innerText:this.$refs.content.innerHTML;t!==this.value&&(this.lastEmit=t,this.$emit("input",t))}},__onKeydown(t){if(this.$emit("keydown",t),!0!==t.ctrlKey||!0===shouldIgnoreKey(t))return this.refreshToolbar(),void(this.$q.platform.is.ie&&this.$nextTick(this.__onInput));const e=t.keyCode,i=this.keys[e];if(void 0!==i){const{cmd:e,param:s}=i;stopAndPrevent(t),this.runCmd(e,s,!1)}},__onClick(t){this.refreshToolbar(),this.$emit("click",t)},__onBlur(t){if(void 0!==this.$refs.content){const{scrollTop:t,scrollHeight:e}=this.$refs.content;this.__offsetBottom=e-t}!0!==this.$q.platform.is.ie&&this.caret.save(),this.$emit("blur",t)},__onFocus(t){this.$nextTick(()=>{void 0!==this.$refs.content&&void 0!==this.__offsetBottom&&(this.$refs.content.scrollTop=this.$refs.content.scrollHeight-this.__offsetBottom)}),this.$emit("focus",t)},__onFocusin(t){if(!0===this.$el.contains(t.target)&&(null===t.relatedTarget||!0!==this.$el.contains(t.relatedTarget))){const t=`inner${!0===this.isViewingSource?"Text":"HTML"}`;this.caret.restorePosition(this.$refs.content[t].length),this.refreshToolbar()}},__onFocusout(t){!0!==this.$el.contains(t.target)||null!==t.relatedTarget&&!0===this.$el.contains(t.relatedTarget)||(this.caret.savePosition(),this.refreshToolbar())},__onPointerStart(t){this.__offsetBottom=void 0,void 0!==this.qListeners[t.type]&&this.$emit(t.type,t)},__onSelectionchange(){this.caret.save()},runCmd(t,e,i=!0){this.focus(),this.caret.restore(),this.caret.apply(t,e,()=>{this.focus(),this.caret.save(),!0!==this.$q.platform.is.ie&&!0!==this.$q.platform.is.edge||this.$nextTick(this.__onInput),i&&this.refreshToolbar()})},refreshToolbar(){setTimeout(()=>{this.editLinkUrl=null,this.$forceUpdate()},1)},focus(){addFocusFn(()=>{void 0!==this.$refs.content&&this.$refs.content.focus({preventScroll:!0})})},getContentEl(){return this.$refs.content},__setContent(t,e){if(void 0!==this.$refs.content){!0===e&&this.caret.savePosition();const i=`inner${!0===this.isViewingSource?"Text":"HTML"}`;this.$refs.content[i]=t,!0===e&&(this.caret.restorePosition(this.$refs.content[i].length),this.refreshToolbar())}}},created(){!1===isSSR&&(document.execCommand("defaultParagraphSeparator",!1,this.paragraphTag),this.defaultFont=window.getComputedStyle(document.body).fontFamily)},mounted(){this.caret=new Caret(this.$refs.content,this),this.__setContent(this.value),this.refreshToolbar(),document.addEventListener("selectionchange",this.__onSelectionchange)},beforeDestroy(){document.removeEventListener("selectionchange",this.__onSelectionchange)},render(t){let e;if(this.hasToolbar){const i=[t("div",{key:"qedt_top",staticClass:"q-editor__toolbar row no-wrap scroll-x",class:this.toolbarBackgroundClass},getToolbar(t,this))];null!==this.editLinkUrl&&i.push(t("div",{key:"qedt_btm",staticClass:"q-editor__toolbar row no-wrap items-center scroll-x",class:this.toolbarBackgroundClass},getLinkEditor(t,this,this.$q.platform.is.ie))),e=t("div",{key:"toolbar_ctainer",staticClass:"q-editor__toolbars-container"},i)}const i={...this.qListeners,input:this.__onInput,keydown:this.__onKeydown,click:this.__onClick,blur:this.__onBlur,focus:this.__onFocus,mousedown:this.__onPointerStart,touchstart:this.__onPointerStart};return t("div",{style:{height:!0===this.inFullscreen?"100%":null},class:this.classes,attrs:this.attrs,on:this.onEditor},[e,t("div",{ref:"content",staticClass:"q-editor__content",style:this.innerStyle,class:this.innerClass,attrs:{contenteditable:this.editable,placeholder:this.placeholder},domProps:isSSR?{innerHTML:this.value}:void 0,on:i})])}}),QItemLabel=Vue.extend({name:"QItemLabel",mixins:[ListenersMixin],props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},computed:{classes(){return{"q-item__label--overline text-overline":this.overline,"q-item__label--caption text-caption":this.caption,"q-item__label--header":this.header,ellipsis:1===parseInt(this.lines,10)}},style(){if(void 0!==this.lines&&parseInt(this.lines,10)>1)return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":this.lines}}},render(t){return t("div",{staticClass:"q-item__label",style:this.style,class:this.classes,on:{...this.qListeners}},slot(this,"default"))}}),QSlideTransition=Vue.extend({name:"QSlideTransition",props:{appear:Boolean,duration:{type:Number,default:300}},methods:{__begin(t,e,i){void 0!==e&&(t.style.height=`${e}px`),t.style.transition=`height ${this.duration}ms cubic-bezier(.25, .8, .50, 1)`,this.animating=!0,this.done=i},__end(t,e){t.style.overflowY=null,t.style.height=null,t.style.transition=null,this.__cleanup(),e!==this.lastEvent&&this.$emit(e)},__cleanup(){this.done&&this.done(),this.done=null,this.animating=!1,clearTimeout(this.timer),clearTimeout(this.timerFallback),void 0!==this.el&&this.el.removeEventListener("transitionend",this.animListener),this.animListener=null}},beforeDestroy(){this.animating&&this.__cleanup()},render(t){return t("transition",{props:{css:!1,appear:this.appear},on:cache(this,"tr",{enter:(t,e)=>{let i=0;this.el=t,!0===this.animating?(this.__cleanup(),i=t.offsetHeight===t.scrollHeight?0:void 0):(this.lastEvent="hide",t.style.overflowY="hidden"),this.__begin(t,i,e),this.timer=setTimeout(()=>{t.style.height=`${t.scrollHeight}px`,this.animListener=(e=>{Object(e)===e&&e.target!==t||this.__end(t,"show")}),t.addEventListener("transitionend",this.animListener),this.timerFallback=setTimeout(this.animListener,1.1*this.duration)},100)},leave:(t,e)=>{let i;this.el=t,!0===this.animating?this.__cleanup():(this.lastEvent="show",t.style.overflowY="hidden",i=t.scrollHeight),this.__begin(t,i,e),this.timer=setTimeout(()=>{t.style.height=0,this.animListener=(e=>{Object(e)===e&&e.target!==t||this.__end(t,"hide")}),t.addEventListener("transitionend",this.animListener),this.timerFallback=setTimeout(this.animListener,1.1*this.duration)},100)}})},slot(this,"default"))}});const insetMap={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},margins={xs:2,sm:4,md:8,lg:16,xl:24};var QSeparator=Vue.extend({name:"QSeparator",mixins:[DarkMixin,ListenersMixin],props:{spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},computed:{orientation(){return!0===this.vertical?"vertical":"horizontal"},classPrefix(){return` q-separator--${this.orientation}`},insetClass(){return!1!==this.inset?`${this.classPrefix}-${insetMap[this.inset]}`:""},classes(){return`q-separator${this.classPrefix}${this.insetClass}`+(void 0!==this.color?` bg-${this.color}`:"")+(!0===this.isDark?" q-separator--dark":"")},style(){const t={};if(void 0!==this.size&&(t[!0===this.vertical?"width":"height"]=this.size),!1!==this.spaced){const e=!0===this.spaced?`${margins.md}px`:this.spaced in margins?`${margins[this.spaced]}px`:this.spaced,i=!0===this.vertical?["Left","Right"]:["Top","Bottom"];t[`margin${i[0]}`]=t[`margin${i[1]}`]=e}return t},attrs(){return{"aria-orientation":this.orientation}}},render(t){return t("hr",{staticClass:"q-separator",class:this.classes,style:this.style,attrs:this.attrs,on:{...this.qListeners}})}});const eventName="q:expansion-item:close",LINK_PROPS=Object.keys(routerLinkProps);var QExpansionItem=Vue.extend({name:"QExpansionItem",mixins:[DarkMixin,TimeoutMixin,ModelToggleMixin],props:{...routerLinkProps,icon:String,label:String,labelLines:[Number,String],caption:String,captionLines:[Number,String],dense:Boolean,toggleAriaLabel:String,expandIcon:String,expandedIcon:String,expandIconClass:[Array,String,Object],duration:Number,headerInsetLevel:Number,contentInsetLevel:Number,expandSeparator:Boolean,defaultOpened:Boolean,hideExpandIcon:Boolean,expandIconToggle:Boolean,switchToggleSide:Boolean,denseToggle:Boolean,group:String,popup:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},data(){return{showing:void 0!==this.value?this.value:this.defaultOpened}},watch:{showing(t){!0===t&&void 0!==this.group&&this.$root.$emit(eventName,this)},group(t,e){void 0!==t&&void 0===e?this.$root.$on(eventName,this.__eventHandler):void 0===t&&void 0!==e&&this.$root.$off(eventName,this.__eventHandler)}},computed:{classes(){return`q-expansion-item--${!0===this.showing?"expanded":"collapsed"}`+` q-expansion-item--${!0===this.popup?"popup":"standard"}`},contentStyle(){if(void 0!==this.contentInsetLevel){return{["padding"+(!0===this.$q.lang.rtl?"Right":"Left")]:56*this.contentInsetLevel+"px"}}},hasLink(){return!0!==this.disable&&(void 0!==this.href||void 0!==this.to&&null!==this.to&&""!==this.to)},linkProps(){const t={};return LINK_PROPS.forEach(e=>{t[e]=this[e]}),t},isClickable(){return!0===this.hasLink||!0!==this.expandIconToggle},expansionIcon(){return void 0!==this.expandedIcon&&!0===this.showing?this.expandedIcon:this.expandIcon||this.$q.iconSet.expansionItem[!0===this.denseToggle?"denseIcon":"icon"]},activeToggleIcon(){return!0!==this.disable&&(!0===this.hasLink||!0===this.expandIconToggle)},headerSlotScope(){return{expanded:!0===this.showing,detailsId:this.targetUid,toggle:this.toggle,show:this.show,hide:this.hide}},toggleAriaAttrs(){const t=void 0!==this.toggleAriaLabel?this.toggleAriaLabel:this.$q.lang.label[!0===this.showing?"collapse":"expand"](this.label);return{role:"button","aria-expanded":!0===this.showing?"true":"false","aria-controls":this.targetUid,"aria-label":t}}},methods:{__onHeaderClick(t){!0!==this.hasLink&&this.toggle(t),this.$emit("click",t)},__toggleIconKeyboard(t){13===t.keyCode&&this.__toggleIcon(t,!0)},__toggleIcon(t,e){!0!==e&&void 0!==this.$refs.blurTarget&&this.$refs.blurTarget.focus(),this.toggle(t),stopAndPrevent(t)},__eventHandler(t){this!==t&&this.group===t.group&&this.hide()},__getToggleIcon(t){const e={staticClass:`q-focusable relative-position cursor-pointer${!0===this.denseToggle&&!0===this.switchToggleSide?" items-end":""}`,class:this.expandIconClass,props:{side:!0!==this.switchToggleSide,avatar:this.switchToggleSide}},i=[t(QIcon,{staticClass:"q-expansion-item__toggle-icon",class:void 0===this.expandedIcon&&!0===this.showing?"q-expansion-item__toggle-icon--rotated":void 0,props:{name:this.expansionIcon}})];return!0===this.activeToggleIcon&&(Object.assign(e,{attrs:{tabindex:0,...this.toggleAriaAttrs},on:cache(this,"inpExt",{click:this.__toggleIcon,keyup:this.__toggleIconKeyboard})}),i.unshift(t("div",{ref:"blurTarget",staticClass:"q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",attrs:{tabindex:-1}}))),t(QItemSection,e,i)},__getHeader(t){let e;void 0!==this.$scopedSlots.header?e=[].concat(this.$scopedSlots.header(this.headerSlotScope)):(e=[t(QItemSection,[t(QItemLabel,{props:{lines:this.labelLines}},[this.label||""]),this.caption?t(QItemLabel,{props:{lines:this.captionLines,caption:!0}},[this.caption]):null])],this.icon&&e[!0===this.switchToggleSide?"push":"unshift"](t(QItemSection,{props:{side:!0===this.switchToggleSide,avatar:!0!==this.switchToggleSide}},[t(QIcon,{props:{name:this.icon}})]))),!0!==this.disable&&!0!==this.hideExpandIcon&&e[!0===this.switchToggleSide?"unshift":"push"](this.__getToggleIcon(t));const i={ref:"item",style:this.headerStyle,class:this.headerClass,props:{dark:this.isDark,disable:this.disable,dense:this.dense,insetLevel:this.headerInsetLevel}};return!0===this.isClickable&&(i.props.clickable=!0,!0===this.hasLink?Object.assign(i.props,this.linkProps):i.attrs=this.toggleAriaAttrs,i.on={...this.qListeners,click:this.__onHeaderClick}),t(QItem,i,e)},__getContent(t){const e=[this.__getHeader(t),t(QSlideTransition,{props:{duration:this.duration},on:cache(this,"slide",{show:()=>{this.$emit("after-show")},hide:()=>{this.$emit("after-hide")}})},[t("div",{staticClass:"q-expansion-item__content relative-position",style:this.contentStyle,attrs:{id:this.targetUid},directives:[{name:"show",value:this.showing}]},slot(this,"default"))])];return this.expandSeparator&&e.push(t(QSeparator,{staticClass:"q-expansion-item__border q-expansion-item__border--top absolute-top",props:{dark:this.isDark}}),t(QSeparator,{staticClass:"q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",props:{dark:this.isDark}})),e}},render(t){return t("div",{staticClass:"q-expansion-item q-item-type",class:this.classes},[t("div",{staticClass:"q-expansion-item__container relative-position"},this.__getContent(t))])},created(){void 0!==this.group&&this.$root.$on(eventName,this.__eventHandler),this.targetUid=`e_${uid()}`},beforeDestroy(){void 0!==this.group&&this.$root.$off(eventName,this.__eventHandler)}});const labelPositions=["top","right","bottom","left"];var FabMixin={mixins:[ListenersMixin],props:{type:{type:String,default:"a"},outline:Boolean,push:Boolean,flat:Boolean,unelevated:Boolean,color:String,textColor:String,glossy:Boolean,square:Boolean,padding:String,label:{type:[String,Number],default:""},labelPosition:{type:String,default:"right",validator:t=>labelPositions.includes(t)},externalLabel:Boolean,hideLabel:{type:Boolean},labelClass:[Array,String,Object],labelStyle:[Array,String,Object],disable:Boolean,tabindex:[Number,String]},computed:{formClass(){return`q-fab--form-${!0===this.square?"square":"rounded"}`},stacked(){return!1===this.externalLabel&&["top","bottom"].includes(this.labelPosition)},labelProps(){if(!0===this.externalLabel){const t=null===this.hideLabel?!1===this.showing:this.hideLabel;return{action:"push",data:{staticClass:"q-fab__label q-tooltip--style q-fab__label--external"+` q-fab__label--external-${this.labelPosition}`+(!0===t?" q-fab__label--external-hidden":""),style:this.labelStyle,class:this.labelClass}}}return{action:["left","top"].includes(this.labelPosition)?"unshift":"push",data:{staticClass:`q-fab__label q-fab__label--internal q-fab__label--internal-${this.labelPosition}`+(!0===this.hideLabel?" q-fab__label--internal-hidden":""),style:this.labelStyle,class:this.labelClass}}}}};const directions$1=["up","right","down","left"],alignValues$2=["left","center","right"];var QFab=Vue.extend({name:"QFab",inheritAttrs:!1,mixins:[FabMixin,AttrsMixin,ModelToggleMixin],provide(){return{__qFab:this}},props:{icon:String,activeIcon:String,hideIcon:Boolean,hideLabel:{default:null},direction:{type:String,default:"right",validator:t=>directions$1.includes(t)},persistent:Boolean,verticalActionsAlign:{type:String,default:"center",validator:t=>alignValues$2.includes(t)}},data(){return{showing:!0===this.value}},computed:{hideOnRouteChange(){return!0!==this.persistent},classes(){return`q-fab--align-${this.verticalActionsAlign} ${this.formClass}`+(!0===this.showing?" q-fab--opened":"")},actionsClasses(){return`q-fab__actions--${this.direction}`+(!0===this.showing?" q-fab__actions--opened":"")},actionsAttrs(){const t={id:this.targetUid,role:"menu"};return!0!==this.showing&&(t["aria-hidden"]="true"),t},iconHolderClasses(){return!0===this.showing?"q-fab__icon-holder--opened":""},attrs(){return{"aria-expanded":!0===this.showing?"true":"false","aria-haspopup":"true","aria-controls":this.targetUid,...this.qAttrs}},slotScope(){return{opened:this.showing}}},methods:{__onChildClick(t){this.hide(t),this.$refs.trigger&&this.$refs.trigger.$el&&this.$refs.trigger.$el.focus()},__getIcon(t,e,i){const s=this.$scopedSlots[e],o=`q-fab__${e} absolute-full`;return void 0===s?t(QIcon,{staticClass:o,props:{name:this[i]||this.$q.iconSet.fab[i]}}):t("div",{staticClass:o},s(this.slotScope))}},render(t){const e=[];return!0!==this.hideIcon&&e.push(t("div",{staticClass:"q-fab__icon-holder",class:this.iconHolderClasses},[this.__getIcon(t,"icon","icon"),this.__getIcon(t,"active-icon","activeIcon")])),""===this.label&&void 0===this.$scopedSlots.label||e[this.labelProps.action](t("div",this.labelProps.data,void 0!==this.$scopedSlots.label?this.$scopedSlots.label(this.slotScope):[this.label])),t("div",{staticClass:"q-fab z-fab row inline justify-center",class:this.classes,on:{...this.qListeners}},[t(QBtn,{ref:"trigger",class:this.formClass,props:{...this.$props,noWrap:!0,stack:this.stacked,align:void 0,icon:void 0,label:void 0,noCaps:!0,fab:!0},attrs:this.attrs,on:cache(this,"tog",{click:this.toggle})},mergeSlot(e,this,"tooltip")),t("div",{staticClass:"q-fab__actions flex no-wrap inline",class:this.actionsClasses,attrs:this.actionsAttrs},slot(this,"default"))])},created(){this.targetUid=`fb_${uid()}`}});const anchorMap={start:"self-end",center:"self-center",end:"self-start"},anchorValues=Object.keys(anchorMap);var QFabAction=Vue.extend({name:"QFabAction",mixins:[FabMixin],props:{icon:{type:String,default:""},anchor:{type:String,validator:t=>anchorValues.includes(t)},to:[String,Object],replace:Boolean},inject:{__qFab:{default:()=>({showing:!0,__onChildClick:noop})}},computed:{classes(){const t=anchorMap[this.anchor];return this.formClass+(void 0!==t?` ${t}`:"")},onEvents(){return{...this.qListeners,click:this.click}},isDisabled(){return!0!==this.__qFab.showing||!0===this.disable}},methods:{click(t){this.__qFab.__onChildClick(t),this.$emit("click",t)}},render(t){const e=[];return void 0!==this.$scopedSlots.icon?e.push(this.$scopedSlots.icon()):""!==this.icon&&e.push(t(QIcon,{props:{name:this.icon}})),""===this.label&&void 0===this.$scopedSlots.label||e[this.labelProps.action](t("div",this.labelProps.data,void 0!==this.$scopedSlots.label?this.$scopedSlots.label():[this.label])),t(QBtn,{class:this.classes,props:{...this.$props,noWrap:!0,stack:this.stacked,icon:void 0,label:void 0,noCaps:!0,fabMini:!0,disable:this.isDisabled},on:this.onEvents},mergeSlot(e,this,"default"))}});const lazyRulesValues=[!0,!1,"ondemand"];var ValidateMixin={props:{value:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],validator:t=>lazyRulesValues.includes(t)}},data:()=>({isDirty:null,innerError:!1,innerErrorMessage:void 0}),watch:{value(){this.__validateIfNeeded()},disable(t){!0===t?this.__resetValidation():this.__validateIfNeeded(!0)},reactiveRules:{handler(t){!0===t?void 0===this.unwatchRules&&(this.unwatchRules=this.$watch("rules",()=>{this.__validateIfNeeded(!0)})):void 0!==this.unwatchRules&&(this.unwatchRules(),this.unwatchRules=void 0)},immediate:!0},focused(t){!0===t?null===this.isDirty&&(this.isDirty=!1):!1===this.isDirty&&(this.isDirty=!0,!0===this.hasActiveRules&&"ondemand"!==this.lazyRules&&!1===this.innerLoading&&this.debouncedValidate())},hasError(t){const e=document.getElementById(this.targetUid);null!==e&&e.setAttribute("aria-invalid",!0===t)}},computed:{hasRules(){return void 0!==this.rules&&null!==this.rules&&this.rules.length>0},hasActiveRules(){return!0!==this.disable&&!0===this.hasRules},hasError(){return!0===this.error||!0===this.innerError},computedErrorMessage(){return"string"==typeof this.errorMessage&&this.errorMessage.length>0?this.errorMessage:this.innerErrorMessage}},created(){this.debouncedValidate=debounce(this.validate,0)},mounted(){this.validateIndex=0},beforeDestroy(){void 0!==this.unwatchRules&&this.unwatchRules(),this.debouncedValidate.cancel()},methods:{resetValidation(){this.isDirty=null,this.__resetValidation()},validate(t=this.value){if(!0!==this.hasActiveRules)return!0;const e=++this.validateIndex,i=!0!==this.innerLoading?()=>!0!==this.isDirty&&(this.isDirty=!0):()=>{},s=(t,e)=>{!0===t&&i(),this.innerError!==t&&(this.innerError=t);const s=e||void 0;this.innerErrorMessage!==s&&(this.innerErrorMessage=s),!1!==this.innerLoading&&(this.innerLoading=!1)},o=[];for(let e=0;e<this.rules.length;e++){const i=this.rules[e];let n;if("function"==typeof i?n=i(t,testPattern):"string"==typeof i&&void 0!==testPattern[i]&&(n=testPattern[i](t)),!1===n||"string"==typeof n)return s(!0,n),!1;!0!==n&&void 0!==n&&o.push(n)}return 0===o.length?(s(!1),!0):(!0!==this.innerLoading&&(this.innerLoading=!0),Promise.all(o).then(t=>{if(void 0===t||!1===Array.isArray(t)||0===t.length)return e===this.validateIndex&&s(!1),!0;const i=t.find(t=>!1===t||"string"==typeof t);return e===this.validateIndex&&s(void 0!==i,i),void 0===i},t=>(e===this.validateIndex&&(console.error(t),s(!0)),!1)))},__resetValidation(){this.debouncedValidate.cancel(),this.validateIndex++,this.innerLoading=!1,this.innerError=!1,this.innerErrorMessage=void 0},__validateIfNeeded(t){!0===this.hasActiveRules&&"ondemand"!==this.lazyRules&&(!0===this.isDirty||!0!==this.lazyRules&&!0!==t)&&this.debouncedValidate()}}};function getTargetUid(t){return void 0===t?`f_${uid()}`:t}var QField=Vue.extend({name:"QField",mixins:[DarkMixin,ValidateMixin,AttrsMixin],inheritAttrs:!1,props:{label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String,maxlength:[Number,String],maxValues:[Number,String]},data(){return{focused:!1,targetUid:getTargetUid(this.for),innerLoading:!1}},watch:{for(t){this.targetUid=getTargetUid(t)}},computed:{editable(){return!0!==this.disable&&!0!==this.readonly},hasValue(){const t=void 0===this.__getControl?this.value:this.innerValue;return void 0!==t&&null!==t&&(""+t).length>0},computedCounter(){if(!1!==this.counter){const t="string"==typeof this.value||"number"==typeof this.value?(""+this.value).length:!0===Array.isArray(this.value)?this.value.length:0,e=void 0!==this.maxlength?this.maxlength:this.maxValues;return t+(void 0!==e?" / "+e:"")}},floatingLabel(){return!0===this.stackLabel||!0===this.focused||"number"==typeof this.inputValue||"string"==typeof this.inputValue&&this.inputValue.length>0||!0!==this.hideSelected&&!0===this.hasValue&&("number"!==this.type||!1===isNaN(this.value))||void 0!==this.displayValue&&null!==this.displayValue&&(""+this.displayValue).length>0},shouldRenderBottom(){return!0===this.bottomSlots||void 0!==this.hint||!0===this.hasRules||!0===this.counter||null!==this.error},classes(){return{[this.fieldClass]:void 0!==this.fieldClass,[`q-field--${this.styleType}`]:!0,"q-field--rounded":this.rounded,"q-field--square":this.square,"q-field--focused":!0===this.focused,"q-field--highlighted":!0===this.focused||!0===this.hasError,"q-field--float":this.floatingLabel,"q-field--labeled":this.hasLabel,"q-field--dense":this.dense,"q-field--item-aligned q-item-type":this.itemAligned,"q-field--dark":this.isDark,"q-field--auto-height":void 0===this.__getControl,"q-field--with-bottom":!0!==this.hideBottomSpace&&!0===this.shouldRenderBottom,"q-field--error":this.hasError,"q-field--readonly":!0===this.readonly&&!0!==this.disable,"q-field--disabled":!0===this.disable}},styleType(){return!0===this.filled?"filled":!0===this.outlined?"outlined":!0===this.borderless?"borderless":this.standout?"standout":"standard"},contentClass(){const t=[];if(!0===this.hasError)t.push("text-negative");else{if("string"==typeof this.standout&&this.standout.length>0&&!0===this.focused)return this.standout;void 0!==this.color&&t.push("text-"+this.color)}return void 0!==this.bgColor&&t.push(`bg-${this.bgColor}`),t},hasLabel(){return!0===this.labelSlot||void 0!==this.label},labelClass(){if(void 0!==this.labelColor&&!0!==this.hasError)return"text-"+this.labelColor},controlSlotScope(){return{id:this.targetUid,field:this.$el,editable:this.editable,focused:this.focused,floatingLabel:this.floatingLabel,value:this.value,emitValue:this.__emitValue}},bottomSlotScope(){return{id:this.targetUid,field:this.$el,editable:this.editable,focused:this.focused,value:this.value,errorMessage:this.computedErrorMessage}},attrs(){const t={for:this.targetUid};return!0===this.disable?t["aria-disabled"]="true":!0===this.readonly&&(t["aria-readonly"]="true"),t}},methods:{focus(){addFocusFn(this.__focus)},blur(){removeFocusFn(this.__focus);const t=document.activeElement;null!==t&&this.$el.contains(t)&&t.blur()},__focus(){const t=document.activeElement;let e=this.$refs.target;void 0===e||null!==t&&t.id===this.targetUid||(!0===e.hasAttribute("tabindex")||(e=e.querySelector("[tabindex]")),null!==e&&e!==t&&e.focus({preventScroll:!0}))},__getContent(t){const e=[];return void 0!==this.$scopedSlots.prepend&&e.push(t("div",{staticClass:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",on:this.slotsEvents},this.$scopedSlots.prepend())),e.push(t("div",{staticClass:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},this.__getControlContainer(t))),!0===this.hasError&&!1===this.noErrorIcon&&e.push(this.__getInnerAppendNode(t,"error",[t(QIcon,{props:{name:this.$q.iconSet.field.error,color:"negative"}})])),!0===this.loading||!0===this.innerLoading?e.push(this.__getInnerAppendNode(t,"inner-loading-append",void 0!==this.$scopedSlots.loading?this.$scopedSlots.loading():[t(QSpinner,{props:{color:this.color}})])):!0===this.clearable&&!0===this.hasValue&&!0===this.editable&&e.push(this.__getInnerAppendNode(t,"inner-clearable-append",[t(QIcon,{staticClass:"q-field__focusable-action",props:{tag:"button",name:this.clearIcon||this.$q.iconSet.field.clear},attrs:iconAsButton,on:this.clearableEvents})])),void 0!==this.$scopedSlots.append&&e.push(t("div",{staticClass:"q-field__append q-field__marginal row no-wrap items-center",key:"append",on:this.slotsEvents},this.$scopedSlots.append())),void 0!==this.__getInnerAppend&&e.push(this.__getInnerAppendNode(t,"inner-append",this.__getInnerAppend(t))),void 0!==this.__getControlChild&&e.push(this.__getControlChild(t)),e},__getControlContainer(t){const e=[];return void 0!==this.prefix&&null!==this.prefix&&e.push(t("div",{staticClass:"q-field__prefix no-pointer-events row items-center"},[this.prefix])),!0===this.hasShadow&&void 0!==this.__getShadowControl&&e.push(this.__getShadowControl(t)),void 0!==this.__getControl?e.push(this.__getControl(t)):void 0!==this.$scopedSlots.rawControl?e.push(this.$scopedSlots.rawControl()):void 0!==this.$scopedSlots.control&&e.push(t("div",{ref:"target",staticClass:"q-field__native row",attrs:{tabindex:-1,...this.qAttrs,"data-autofocus":this.autofocus||void 0}},this.$scopedSlots.control(this.controlSlotScope))),!0===this.hasLabel&&e.push(t("div",{staticClass:"q-field__label no-pointer-events absolute ellipsis",class:this.labelClass},[slot(this,"label",this.label)])),void 0!==this.suffix&&null!==this.suffix&&e.push(t("div",{staticClass:"q-field__suffix no-pointer-events row items-center"},[this.suffix])),e.concat(void 0!==this.__getDefaultSlot?this.__getDefaultSlot(t):slot(this,"default"))},__getBottom(t){let e,i;!0===this.hasError?(i="q--slot-error",void 0!==this.$scopedSlots.error?e=this.$scopedSlots.error(this.bottomSlotScope):void 0!==this.computedErrorMessage&&(e=[t("div",{attrs:{role:"alert"}},[this.computedErrorMessage])],i=this.computedErrorMessage)):!0===this.hideHint&&!0!==this.focused||(i="q--slot-hint",void 0!==this.$scopedSlots.hint?e=this.$scopedSlots.hint(this.bottomSlotScope):void 0!==this.hint&&(e=[t("div",[this.hint])],i=this.hint));const s=!0===this.counter||void 0!==this.$scopedSlots.counter;if(!0===this.hideBottomSpace&&!1===s&&void 0===e)return;const o=t("div",{key:i,staticClass:"q-field__messages col"},e);return t("div",{staticClass:"q-field__bottom row items-start q-field__bottom--"+(!0!==this.hideBottomSpace?"animated":"stale"),on:{click:prevent}},[!0===this.hideBottomSpace?o:t("transition",{props:{name:"q-transition--field-message"}},[o]),!0===s?t("div",{staticClass:"q-field__counter"},void 0!==this.$scopedSlots.counter?this.$scopedSlots.counter():[this.computedCounter]):null])},__getInnerAppendNode:(t,e,i)=>null===i?null:t("div",{staticClass:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip",key:e},i),__onControlPopupShow(t){void 0!==t&&stop(t),this.$emit("popup-show",t),this.hasPopupOpen=!0,this.__onControlFocusin(t)},__onControlPopupHide(t){void 0!==t&&stop(t),this.$emit("popup-hide",t),this.hasPopupOpen=!1,this.__onControlFocusout(t)},__onControlFocusin(t){clearTimeout(this.focusoutTimer),!0===this.editable&&!1===this.focused&&(this.focused=!0,this.$emit("focus",t))},__onControlFocusout(t,e){clearTimeout(this.focusoutTimer),this.focusoutTimer=setTimeout(()=>{(!0!==document.hasFocus()||!0!==this.hasPopupOpen&&void 0!==this.$refs&&void 0!==this.$refs.control&&!1===this.$refs.control.contains(document.activeElement))&&(!0===this.focused&&(this.focused=!1,this.$emit("blur",t)),void 0!==e&&e())})},__clearValue(t){if(stopAndPrevent(t),!0!==this.$q.platform.is.mobile){(this.$refs.target||this.$el).focus()}else!0===this.$el.contains(document.activeElement)&&document.activeElement.blur();"file"===this.type&&(this.$refs.input.value=null),this.$emit("input",null),this.$emit("clear",this.value),this.$nextTick(()=>{this.resetValidation(),!0!==this.$q.platform.is.mobile&&(this.isDirty=!1)})},__emitValue(t){this.$emit("input",t)}},render(t){void 0!==this.__onPreRender&&this.__onPreRender(),void 0!==this.__onPostRender&&this.$nextTick(this.__onPostRender);const e=void 0===this.__getControl&&void 0===this.$scopedSlots.control?{...this.qAttrs,"data-autofocus":this.autofocus||void 0,...this.attrs}:this.attrs;return t("label",{staticClass:"q-field q-validation-component row no-wrap items-start",class:this.classes,attrs:e},[void 0!==this.$scopedSlots.before?t("div",{staticClass:"q-field__before q-field__marginal row no-wrap items-center",on:this.slotsEvents},this.$scopedSlots.before()):null,t("div",{staticClass:"q-field__inner relative-position col self-stretch"},[t("div",{ref:"control",staticClass:"q-field__control relative-position row no-wrap",class:this.contentClass,attrs:{tabindex:-1},on:this.controlEvents},this.__getContent(t)),!0===this.shouldRenderBottom?this.__getBottom(t):null]),void 0!==this.$scopedSlots.after?t("div",{staticClass:"q-field__after q-field__marginal row no-wrap items-center",on:this.slotsEvents},this.$scopedSlots.after()):null])},created(){void 0!==this.__onPreRender&&this.__onPreRender(),this.slotsEvents={click:prevent},this.clearableEvents={click:this.__clearValue},this.controlEvents=void 0!==this.__getControlEvents?this.__getControlEvents():{focusin:this.__onControlFocusin,focusout:this.__onControlFocusout,"popup-show":this.__onControlPopupShow,"popup-hide":this.__onControlPopupHide}},mounted(){!0===fromSSR&&void 0===this.for&&(this.targetUid=getTargetUid()),!0===this.autofocus&&this.focus()},activated(){!0===this.shouldActivate&&!0===this.autofocus&&this.focus()},deactivated(){this.shouldActivate=!0},beforeDestroy(){clearTimeout(this.focusoutTimer)}});function filterFiles(t,e,i,s){const o=[];return t.forEach(t=>{!0===s(t)?o.push(t):e.push({failedPropValidation:i,file:t})}),o}function stopAndPreventDrag(t){t&&t.dataTransfer&&(t.dataTransfer.dropEffect="copy"),stopAndPrevent(t)}var FileMixin={props:{multiple:Boolean,accept:String,capture:String,maxFileSize:[Number,String],maxTotalSize:[Number,String],maxFiles:[Number,String],filter:Function},computed:{extensions(){if(void 0!==this.accept)return this.accept.split(",").map(t=>"*"===(t=t.trim())?"*/":(t.endsWith("/*")&&(t=t.slice(0,t.length-1)),t.toUpperCase()))},maxFilesNumber(){return parseInt(this.maxFiles,10)},maxTotalSizeNumber(){return parseInt(this.maxTotalSize,10)}},methods:{pickFiles(t){if(!0===this.editable)if(t!==Object(t)&&(t={target:null}),null!==t.target&&!0===t.target.matches('input[type="file"]'))0===t.clientX&&0===t.clientY&&stop(t);else{const e=this.__getFileInput();e&&e!==t.target&&e.click(t)}},addFiles(t){this.editable&&t&&this.__addFiles(null,t)},__processFiles(t,e,i,s){let o=Array.from(e||t.target.files);const n=[],r=()=>{n.length>0&&this.$emit("rejected",n)};if(void 0!==this.accept&&-1===this.extensions.indexOf("*/")&&0===(o=filterFiles(o,n,"accept",t=>this.extensions.some(e=>t.type.toUpperCase().startsWith(e)||t.name.toUpperCase().endsWith(e)))).length)return r();if(void 0!==this.maxFileSize){const t=parseInt(this.maxFileSize,10);if(0===(o=filterFiles(o,n,"max-file-size",e=>e.size<=t)).length)return r()}if(!0!==this.multiple&&o.length>0&&(o=[o[0]]),o.forEach(t=>{t.__key=t.webkitRelativePath+t.lastModified+t.name+t.size}),!0===s){const t=i.map(t=>t.__key);o=filterFiles(o,n,"duplicate",e=>!1===t.includes(e.__key))}if(0===o.length)return r();if(void 0!==this.maxTotalSize){let t=!0===s?i.reduce((t,e)=>t+e.size,0):0;if(0===(o=filterFiles(o,n,"max-total-size",e=>(t+=e.size)<=this.maxTotalSizeNumber)).length)return r()}if("function"==typeof this.filter){const t=this.filter(o);o=filterFiles(o,n,"filter",e=>t.includes(e))}if(void 0!==this.maxFiles){let t=!0===s?i.length:0;if(0===(o=filterFiles(o,n,"max-files",()=>++t<=this.maxFilesNumber)).length)return r()}return r(),o.length>0?o:void 0},__onDragOver(t){stopAndPreventDrag(t),!0!==this.dnd&&(this.dnd=!0)},__onDragLeave(t){stopAndPrevent(t),!0===(null!==t.relatedTarget||!0!==Platform.is.safari?t.relatedTarget!==this.$refs.dnd:!1===document.elementsFromPoint(t.clientX,t.clientY).includes(this.$refs.dnd))&&(this.dnd=!1)},__onDrop(t){stopAndPreventDrag(t);const e=t.dataTransfer.files;e.length>0&&this.__addFiles(null,e),this.dnd=!1},__getDnd(t,e){if(!0===this.dnd)return t("div",{staticClass:`q-${e}__dnd absolute-full`,ref:"dnd",on:cache(this,"dnd",{dragenter:stopAndPreventDrag,dragover:stopAndPreventDrag,dragleave:this.__onDragLeave,drop:this.__onDrop})})}}};const FileValueMixin={computed:{formDomProps(){if("file"===this.type)try{const t="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(this.value)===this.value&&("length"in this.value?Array.from(this.value):[this.value]).forEach(e=>{t.items.add(e)}),{files:t.files}}catch(t){return{files:void 0}}}}};var QFile=Vue.extend({name:"QFile",mixins:[QField,FileMixin,FormFieldMixin,FileValueMixin],props:{value:!0===isSSR?{}:[File,FileList,Array],append:Boolean,useChips:Boolean,displayValue:[String,Number],tabindex:{type:[String,Number],default:0},counterLabel:Function,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},data:()=>({dnd:!1}),computed:{innerValue(){return Object(this.value)===this.value?"length"in this.value?Array.from(this.value):[this.value]:[]},selectedString(){return this.innerValue.map(t=>t.name).join(", ")},totalSize(){return humanStorageSize(this.innerValue.reduce((t,e)=>t+e.size,0))},counterProps(){return{totalSize:this.totalSize,filesNumber:this.innerValue.length,maxFiles:this.maxFiles}},computedCounter(){if(void 0!==this.counterLabel)return this.counterLabel(this.counterProps);const t=this.maxFiles;return`${this.innerValue.length}${void 0!==t?" / "+t:""} (${this.totalSize})`},inputAttrs(){return{tabindex:-1,type:"file",title:"",accept:this.accept,capture:this.capture,name:this.nameProp,...this.qAttrs,id:this.targetUid,disabled:!0!==this.editable}},isAppending(){return!0===this.multiple&&!0===this.append},fieldClass(){return"q-file q-field--auto-height"+(!0===this.dnd?" q-file--dnd":"")}},methods:{removeAtIndex(t){const e=this.innerValue.slice();e.splice(t,1),this.__emitValue(e)},removeFile(t){const e=this.innerValue.findIndex(t);e>-1&&this.removeAtIndex(e)},__emitValue(t){this.$emit("input",!0===this.multiple?t:t[0])},__onKeydown(t){13===t.keyCode&&prevent(t)},__onKeyup(t){13!==t.keyCode&&32!==t.keyCode||this.pickFiles(t)},__getFileInput(){return this.$refs.input},__addFiles(t,e){const i=this.__processFiles(t,e,this.innerValue,this.isAppending),s=this.__getFileInput();void 0!==s&&(s.value=""),void 0!==i&&((!0===this.multiple?this.value&&i.every(t=>this.innerValue.includes(t)):this.value===i[0])||this.__emitValue(!0===this.isAppending?this.innerValue.concat(i):i))},__getControl(t){const e={ref:"target",staticClass:"q-field__native row items-center cursor-pointer",attrs:{tabindex:this.tabindex}};return!0===this.editable&&(e.on=cache(this,"native",{dragover:this.__onDragOver,dragleave:this.__onDragLeave,keydown:this.__onKeydown,keyup:this.__onKeyup})),t("div",e,[this.__getInput(t)].concat(this.__getSelection(t)))},__getControlChild(t){return this.__getDnd(t,"file")},__getFiller(t){return[t("input",{class:[this.inputClass,"q-file__filler"],style:this.inputStyle})]},__getSelection(t){if(void 0!==this.$scopedSlots.file)return 0===this.innerValue.length?this.__getFiller(t):this.innerValue.map((t,e)=>this.$scopedSlots.file({index:e,file:t,ref:this}));if(void 0!==this.$scopedSlots.selected)return 0===this.innerValue.length?this.__getFiller(t):this.$scopedSlots.selected({files:this.innerValue,ref:this});if(!0===this.useChips)return 0===this.innerValue.length?this.__getFiller(t):this.innerValue.map((e,i)=>t(QChip,{key:"file-"+i,props:{removable:this.editable,dense:!0,textColor:this.color,tabindex:this.tabindex},on:cache(this,"rem#"+i,{remove:()=>{this.removeAtIndex(i)}})},[t("span",{staticClass:"ellipsis",domProps:{textContent:e.name}})]));const e=void 0!==this.displayValue?this.displayValue:this.selectedString;return e.length>0?[t("div",{style:this.inputStyle,class:this.inputClass,domProps:{textContent:e}})]:this.__getFiller(t)},__getInput(t){const e={ref:"input",staticClass:"q-field__input fit absolute-full cursor-pointer",attrs:this.inputAttrs,domProps:this.formDomProps,on:cache(this,"input",{change:this.__addFiles})};return!0===this.multiple&&(e.attrs.multiple=!0),t("input",e)}},created(){this.type="file"}}),QFooter=Vue.extend({name:"QFooter",mixins:[ListenersMixin],inject:{layout:{default(){console.error("QFooter needs to be child of QLayout")}}},props:{value:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},data(){return{size:parseInt(this.heightHint,10),revealed:!0,windowHeight:onSSR||this.layout.container?0:window.innerHeight}},watch:{value(t){this.__update("space",t),this.__updateLocal("revealed",!0),this.layout.__animate()},offset(t){this.__update("offset",t)},reveal(t){!1===t&&this.__updateLocal("revealed",this.value)},revealed(t){this.layout.__animate(),this.$emit("reveal",t)},"layout.scroll"(){this.__updateRevealed()},"layout.height"(){this.__updateRevealed()},size(){this.__updateRevealed()},"$q.screen.height"(t){!0!==this.layout.container&&this.__updateLocal("windowHeight",t)}},computed:{fixed(){return!0===this.reveal||this.layout.view.indexOf("F")>-1||this.$q.platform.is.ios&&!0===this.layout.container},containerHeight(){return!0===this.layout.container?this.layout.containerHeight:this.windowHeight},offset(){if(!0!==this.value)return 0;if(!0===this.fixed)return!0===this.revealed?this.size:0;const t=this.layout.scroll.position+this.containerHeight+this.size-this.layout.height;return t>0?t:0},hidden(){return!0!==this.value||!0===this.fixed&&!0!==this.revealed},revealOnFocus(){return!0===this.value&&!0===this.hidden&&!0===this.reveal},classes(){return(!0===this.fixed?"fixed":"absolute")+"-bottom"+(!0===this.bordered?" q-footer--bordered":"")+(!0===this.hidden?" q-footer--hidden":"")+(!0!==this.value?" q-layout--prevent-focus":"")+(!0!==this.value&&!0!==this.fixed?" hidden":"")},style(){const t=this.layout.rows.bottom,e={};return"l"===t[0]&&!0===this.layout.left.space&&(e[!0===this.$q.lang.rtl?"right":"left"]=`${this.layout.left.size}px`),"r"===t[2]&&!0===this.layout.right.space&&(e[!0===this.$q.lang.rtl?"left":"right"]=`${this.layout.right.size}px`),e},onEvents(){return{...this.qListeners,focusin:this.__onFocusin,input:stop}}},render(t){const e=mergeSlot([t(QResizeObserver,{props:{debounce:0},on:cache(this,"resize",{resize:this.__onResize})})],this,"default");return!0===this.elevated&&e.push(t("div",{staticClass:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),t("footer",{staticClass:"q-footer q-layout__section--marginal",class:this.classes,style:this.style,on:this.onEvents},e)},created(){this.layout.instances.footer=this,!0===this.value&&this.__update("size",this.size),this.__update("space",this.value),this.__update("offset",this.offset)},beforeDestroy(){this.layout.instances.footer===this&&(this.layout.instances.footer=void 0,this.__update("size",0),this.__update("offset",0),this.__update("space",!1))},methods:{__onResize({height:t}){this.__updateLocal("size",t),this.__update("size",t)},__update(t,e){this.layout.footer[t]!==e&&(this.layout.footer[t]=e)},__updateLocal(t,e){this[t]!==e&&(this[t]=e)},__updateRevealed(){if(!0!==this.reveal)return;const{direction:t,position:e,inflexionPosition:i}=this.layout.scroll;this.__updateLocal("revealed","up"===t||e-i<100||this.layout.height-this.containerHeight-e-this.size<300)},__onFocusin(t){!0===this.revealOnFocus&&this.__updateLocal("revealed",!0),this.$emit("focusin",t)}}}),QForm=Vue.extend({name:"QForm",mixins:[ListenersMixin],props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean},computed:{onEvents(){return{...this.qListeners,submit:this.submit,reset:this.reset}}},mounted(){this.validateIndex=0,!0===this.autofocus&&this.focus()},activated(){!0===this.shouldActivate&&!0===this.autofocus&&this.focus()},deactivated(){this.shouldActivate=!0},methods:{validate(t){const e="boolean"==typeof t?t:!0!==this.noErrorFocus,i=++this.validateIndex,s=this.getValidationComponents().filter(t=>!0!==t.disable),o=(t,e)=>{this.$emit("validation-"+(!0===t?"success":"error"),e)},n=t=>{const e=t.validate();return"function"==typeof e.then?e.then(e=>({valid:e,comp:t}),e=>({valid:!1,comp:t,err:e})):Promise.resolve({valid:e,comp:t})};return(!0===this.greedy?Promise.all(s.map(n)).then(t=>t.filter(t=>!0!==t.valid)):s.reduce((t,e)=>t.then(()=>n(e).then(t=>{if(!1===t.valid)return Promise.reject(t)})),Promise.resolve()).catch(t=>[t])).then(t=>{if(void 0===t||0===t.length)return i===this.validateIndex&&o(!0),!0;if(i===this.validateIndex){const{comp:i,err:s}=t[0];if(void 0!==s&&console.error(s),o(!1,i),!0===e){const e=t.find(({comp:t})=>"function"==typeof t.focus&&!0!==t._isBeingDestroyed&&!0!==t._isDestroyed&&!0!==t._inactive);void 0!==e&&e.comp.focus()}}return!1})},resetValidation(){this.validateIndex++,this.getValidationComponents().forEach(t=>{"function"==typeof t.resetValidation&&t.resetValidation()})},submit(t){void 0!==t&&stopAndPrevent(t);const e=this.validateIndex+1;this.validate().then(i=>{e===this.validateIndex&&!0===i&&(void 0!==this.qListeners.submit?this.$emit("submit",t):void 0!==t&&void 0!==t.target&&"function"==typeof t.target.submit&&t.target.submit())})},reset(t){void 0!==t&&stopAndPrevent(t),this.$emit("reset"),this.$nextTick(()=>{this.resetValidation(),!0===this.autofocus&&!0!==this.noResetFocus&&this.focus()})},focus(){addFocusFn(()=>{if(!this.$el)return;const t=this.$el.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||this.$el.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||this.$el.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(this.$el.querySelectorAll("[tabindex]"),t=>t.tabIndex>-1);null!==t&&void 0!==t&&t.focus({preventScroll:!0})})},getValidationComponents(){return Array.prototype.map.call(this.$el.getElementsByClassName("q-validation-component"),t=>t.__vue__).filter(t=>void 0!==t&&"function"==typeof t.validate)}},render(t){return t("form",{staticClass:"q-form",on:this.onEvents},slot(this,"default"))}}),QHeader=Vue.extend({name:"QHeader",mixins:[ListenersMixin],inject:{layout:{default(){console.error("QHeader needs to be child of QLayout")}}},props:{value:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},data(){return{size:parseInt(this.heightHint,10),revealed:!0}},watch:{value(t){this.__update("space",t),this.__updateLocal("revealed",!0),this.layout.__animate()},offset(t){this.__update("offset",t)},reveal(t){!1===t&&this.__updateLocal("revealed",this.value)},revealed(t){this.layout.__animate(),this.$emit("reveal",t)},"layout.scroll"(t){!0===this.reveal&&this.__updateLocal("revealed","up"===t.direction||t.position<=this.revealOffset||t.position-t.inflexionPosition<100)}},computed:{fixed(){return!0===this.reveal||this.layout.view.indexOf("H")>-1||this.$q.platform.is.ios&&!0===this.layout.container},offset(){if(!0!==this.value)return 0;if(!0===this.fixed)return!0===this.revealed?this.size:0;const t=this.size-this.layout.scroll.position;return t>0?t:0},hidden(){return!0!==this.value||!0===this.fixed&&!0!==this.revealed},revealOnFocus(){return!0===this.value&&!0===this.hidden&&!0===this.reveal},classes(){return(!0===this.fixed?"fixed":"absolute")+"-top"+(!0===this.bordered?" q-header--bordered":"")+(!0===this.hidden?" q-header--hidden":"")+(!0!==this.value?" q-layout--prevent-focus":"")},style(){const t=this.layout.rows.top,e={};return"l"===t[0]&&!0===this.layout.left.space&&(e[!0===this.$q.lang.rtl?"right":"left"]=`${this.layout.left.size}px`),"r"===t[2]&&!0===this.layout.right.space&&(e[!0===this.$q.lang.rtl?"left":"right"]=`${this.layout.right.size}px`),e},onEvents(){return{...this.qListeners,focusin:this.__onFocusin,input:stop}}},render(t){const e=uniqueSlot(this,"default",[]);return!0===this.elevated&&e.push(t("div",{staticClass:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),e.push(t(QResizeObserver,{props:{debounce:0},on:cache(this,"resize",{resize:this.__onResize})})),t("header",{staticClass:"q-header q-layout__section--marginal",class:this.classes,style:this.style,on:this.onEvents},e)},created(){this.layout.instances.header=this,!0===this.value&&this.__update("size",this.size),this.__update("space",this.value),this.__update("offset",this.offset)},beforeDestroy(){this.layout.instances.header===this&&(this.layout.instances.header=void 0,this.__update("size",0),this.__update("offset",0),this.__update("space",!1))},methods:{__onResize({height:t}){this.__updateLocal("size",t),this.__update("size",t)},__update(t,e){this.layout.header[t]!==e&&(this.layout.header[t]=e)},__updateLocal(t,e){this[t]!==e&&(this[t]=e)},__onFocusin(t){!0===this.revealOnFocus&&this.__updateLocal("revealed",!0),this.$emit("focusin",t)}}}),RatioMixin={props:{ratio:[String,Number]},computed:{ratioStyle(){const t=this.ratio||this.naturalRatio;if(void 0!==t)return{paddingBottom:`${100/t}%`}}}},QImg=Vue.extend({name:"QImg",mixins:[ListenersMixin,RatioMixin],props:{src:String,srcset:String,sizes:String,alt:String,width:String,height:String,placeholderSrc:String,basic:Boolean,contain:Boolean,position:{type:String,default:"50% 50%"},transition:{type:String,default:"fade"},imgClass:[Array,String,Object],imgStyle:Object,nativeContextMenu:Boolean,notDraggable:Boolean,noDefaultSpinner:Boolean,spinnerColor:String,spinnerSize:String},data(){return{currentSrc:"",image:null,isLoading:!!this.src,hasError:!1,naturalRatio:void 0}},watch:{src(){this.__load()},srcset(t){this.__updateWatcher(t)}},computed:{url(){return this.currentSrc||this.placeholderSrc||void 0},attrs(){const t={role:"img"};return void 0!==this.alt&&(t["aria-label"]=this.alt),t},imgAttrs(){const t={src:this.url,"aria-hidden":"true"};return!0===this.notDraggable&&(t.draggable=!1),t},imgContainerStyle(){return Object.assign({backgroundSize:!0===this.contain?"contain":"cover",backgroundPosition:this.position},this.imgStyle,{backgroundImage:`url("${this.url}")`})},style(){return{width:this.width,height:this.height}},classes(){return"q-img overflow-hidden"+(!0===this.nativeContextMenu?" q-img--menu":"")}},methods:{__onLoad(t){this.isLoading=!1,this.hasError=!1,this.__computeRatio(t),this.__updateSrc(),this.__updateWatcher(this.srcset),this.$emit("load",this.currentSrc)},__onError(t){clearTimeout(this.ratioTimer),this.isLoading=!1,this.hasError=!0,this.currentSrc="",this.$emit("error",t)},__updateSrc(){if(void 0!==this.image&&!1===this.isLoading){const t=this.image.currentSrc||this.image.src;this.currentSrc!==t&&(this.currentSrc=t)}},__updateWatcher(t){t?void 0===this.unwatch&&(this.unwatch=this.$watch("$q.screen.width",this.__updateSrc)):void 0!==this.unwatch&&(this.unwatch(),this.unwatch=void 0)},__load(){if(clearTimeout(this.ratioTimer),this.hasError=!1,!this.src)return this.isLoading=!1,this.image=void 0,void(this.currentSrc="");this.isLoading=!0;const t=new Image;this.image=t,t.onerror=(e=>{this.image===t&&!0!==this.destroyed&&this.__onError(e)}),t.onload=(()=>{!0!==this.destroyed&&this.image===t&&(void 0!==t.decode?t.decode().catch(e=>{this.image===t&&!0!==this.destroyed&&this.__onError(e)}).then(()=>{this.image===t&&!0!==this.destroyed&&this.__onLoad(t)}):this.__onLoad(t))}),t.src=this.src,this.srcset&&(t.srcset=this.srcset),void 0!==this.sizes?t.sizes=this.sizes:Object.assign(t,{height:this.height,width:this.width})},__computeRatio(t){const{naturalHeight:e,naturalWidth:i}=t;e||i?this.naturalRatio=0===e?1:i/e:this.ratioTimer=setTimeout(()=>{this.image===t&&!0!==this.destroyed&&this.__computeRatio(t)},100)},__getImage(t){const e=!0===this.nativeContextMenu?[t("img",{staticClass:"absolute-full fit",attrs:this.imgAttrs})]:void 0,i=void 0!==this.url?t("div",{key:this.url,staticClass:"q-img__image absolute-full",class:this.imgClass,style:this.imgContainerStyle},e):null;return!0===this.basic?i:t("transition",{props:{name:"q-transition--"+this.transition}},[i])},__getContent(t){const e=slot(this,!0===this.hasError?"error":"default");return!0===this.basic?t("div",{key:"content",staticClass:"q-img__content absolute-full"},e):t("transition",{props:{name:"q-transition--fade"}},[!0===this.isLoading?t("div",{key:"placeholder",staticClass:"q-img__loading absolute-full flex flex-center"},void 0!==this.$scopedSlots.loading?this.$scopedSlots.loading():!1===this.noDefaultSpinner?[t(QSpinner,{props:{color:this.spinnerColor,size:this.spinnerSize}})]:void 0):t("div",{key:"content",staticClass:"q-img__content absolute-full"},e)])}},render(t){return t("div",{class:this.classes,style:this.style,attrs:this.attrs,on:{...this.qListeners}},[t("div",{style:this.ratioStyle}),this.__getImage(t),this.__getContent(t)])},beforeMount(){if(void 0!==this.placeholderSrc&&void 0===this.ratio){const t=new Image;t.src=this.placeholderSrc,this.__computeRatio(t)}!0===this.isLoading&&this.__load()},beforeDestroy(){this.destroyed=!0,clearTimeout(this.ratioTimer),void 0!==this.unwatch&&this.unwatch()}});const{passive:passive$1}=listenOpts;var QInfiniteScroll=Vue.extend({name:"QInfiniteScroll",mixins:[ListenersMixin],props:{offset:{type:Number,default:500},debounce:{type:[String,Number],default:100},scrollTarget:{default:void 0},initialIndex:Number,disable:Boolean,reverse:Boolean},data(){return{index:this.initialIndex||0,isFetching:!1,isWorking:!0}},computed:{renderLoadingSlot(){return!0!==this.disable&&!0===this.isWorking}},watch:{disable(t){!0===t?this.stop():this.resume()},reverse(){!1===this.isFetching&&!0===this.isWorking&&this.immediatePoll()},scrollTarget(){this.updateScrollTarget()},debounce(t){this.__setDebounce(t)},isFetching(){this.__updateSvgAnimations()},renderLoadingSlot(){this.__updateSvgAnimations()}},methods:{poll(){if(!0===this.disable||!0===this.isFetching||!1===this.isWorking)return;const t=getScrollHeight(this.__scrollTarget),e=getScrollPosition(this.__scrollTarget),i=height(this.__scrollTarget);!1===this.reverse?Math.round(e+i+this.offset)>=Math.round(t)&&this.trigger():Math.round(e)<this.offset&&this.trigger()},trigger(){if(!0===this.disable||!0===this.isFetching||!1===this.isWorking)return;this.index++,this.isFetching=!0;const t=getScrollHeight(this.__scrollTarget);this.$emit("load",this.index,e=>{!0===this.isWorking&&(this.isFetching=!1,this.$nextTick(()=>{if(!0===this.reverse){const e=getScrollHeight(this.__scrollTarget),i=getScrollPosition(this.__scrollTarget),s=e-t;setScrollPosition(this.__scrollTarget,i+s)}!0===e?this.stop():this.$el.closest("body")&&this.poll()}))})},reset(){this.index=0},resume(){!1===this.isWorking&&(this.isWorking=!0,this.__scrollTarget.addEventListener("scroll",this.poll,passive$1)),this.immediatePoll()},stop(){!0===this.isWorking&&(this.isWorking=!1,this.isFetching=!1,this.__scrollTarget.removeEventListener("scroll",this.poll,passive$1),"function"==typeof this.poll.cancel&&this.poll.cancel())},updateScrollTarget(){if(this.__scrollTarget&&!0===this.isWorking&&this.__scrollTarget.removeEventListener("scroll",this.poll,passive$1),this.__scrollTarget=getScrollTarget(this.$el,this.scrollTarget),!0===this.isWorking){if(this.__scrollTarget.addEventListener("scroll",this.poll,passive$1),!0===this.reverse){const t=getScrollHeight(this.__scrollTarget),e=height(this.__scrollTarget);setScrollPosition(this.__scrollTarget,t-e)}this.immediatePoll()}},setIndex(t){this.index=t},__setDebounce(t){t=parseInt(t,10);const e=this.poll;this.poll=t<=0?this.immediatePoll:debounce(this.immediatePoll,!0===isNaN(t)?100:t),this.__scrollTarget&&!0===this.isWorking&&(void 0!==e&&this.__scrollTarget.removeEventListener("scroll",e,passive$1),this.__scrollTarget.addEventListener("scroll",this.poll,passive$1))},__updateSvgAnimations(t){if(!0===this.renderLoadingSlot){const e=this.$refs.loading;if(!e)return void(!0!==t&&this.$nextTick(()=>{this.__updateSvgAnimations(!0)}));const i=`${!0===this.isFetching?"un":""}pauseAnimations`;Array.from(e.getElementsByTagName("svg")).forEach(t=>{t[i]()})}}},mounted(){this.immediatePoll=this.poll,this.__setDebounce(this.debounce),this.updateScrollTarget(),!1===this.isFetching&&this.__updateSvgAnimations()},activated(){void 0!==this.__scrollPosition&&this.__scrollTarget&&setScrollPosition(this.__scrollTarget,this.__scrollPosition)},deactivated(){this.__scrollPosition=this.__scrollTarget?getScrollPosition(this.__scrollTarget):void 0},beforeDestroy(){this.stop()},render(t){const e=uniqueSlot(this,"default",[]);return!0===this.renderLoadingSlot&&e[!1===this.reverse?"push":"unshift"](t("div",{ref:"loading",staticClass:"q-infinite-scroll__loading",class:!0===this.isFetching?"":"invisible"},slot(this,"loading"))),t("div",{staticClass:"q-infinite-scroll",on:{...this.qListeners}},e)}}),QInnerLoading=Vue.extend({name:"QInnerLoading",mixins:[ListenersMixin,DarkMixin,TransitionMixin],props:{showing:Boolean,color:String,size:{type:[String,Number],default:42},label:String,labelClass:String,labelStyle:[String,Array,Object]},computed:{classes(){return"q-inner-loading absolute-full column flex-center"+(!0===this.isDark?" q-inner-loading--dark":"")},labelClasses(){return"q-inner-loading__label"+(void 0!==this.labelClass?` ${this.labelClass}`:"")}},methods:{__getInner(t){const e=[t(QSpinner,{props:{size:this.size,color:this.color}})];return void 0!==this.label&&e.push(t("div",{class:this.labelClasses,style:this.labelStyle},[this.label])),e},__getContent(t){return!0===this.showing?[t("div",{staticClass:this.classes,on:{...this.qListeners}},void 0!==this.$scopedSlots.default?this.$scopedSlots.default():this.__getInner(t))]:void 0}},render(t){return t("transition",{props:{...this.transitionProps}},this.__getContent(t))}});const NAMED_MASKS={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},TOKENS={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleLowerCase()}},KEYS=Object.keys(TOKENS);KEYS.forEach(t=>{TOKENS[t].regex=new RegExp(TOKENS[t].pattern)});const tokenRegexMask=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+KEYS.join("")+"])|(.)","g"),escRegex=/[.*+?^${}()|[\]\\]/g,MARKER=String.fromCharCode(1);var MaskMixin={props:{mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean},watch:{type(){this.__updateMaskInternals()},autogrow(){this.__updateMaskInternals()},mask(t){if(void 0!==t)this.__updateMaskValue(this.innerValue,!0);else{const t=this.__unmask(this.innerValue);this.__updateMaskInternals(),this.value!==t&&this.$emit("input",t)}},fillMask(){!0===this.hasMask&&this.__updateMaskValue(this.innerValue,!0)},reverseFillMask(){!0===this.hasMask&&this.__updateMaskValue(this.innerValue,!0)},unmaskedValue(){!0===this.hasMask&&this.__updateMaskValue(this.innerValue)}},methods:{__getInitialMaskedValue(){if(this.__updateMaskInternals(),!0===this.hasMask){const t=this.__mask(this.__unmask(this.value));return!1!==this.fillMask?this.__fillWithMask(t):t}return this.value},__getPaddedMaskMarked(t){if(t<this.maskMarked.length)return this.maskMarked.slice(-t);let e=this.maskMarked,i="";const s=e.indexOf(MARKER);if(s>-1){for(let s=t-e.length;s>0;s--)i+=MARKER;e=e.slice(0,s)+i+e.slice(s)}return e},__updateMaskInternals(){if(this.hasMask=void 0!==this.mask&&this.mask.length>0&&(!0===this.autogrow||["textarea","text","search","url","tel","password"].includes(this.type)),!1===this.hasMask)return this.computedUnmask=void 0,this.maskMarked="",void(this.maskReplaced="");const t=void 0===NAMED_MASKS[this.mask]?this.mask:NAMED_MASKS[this.mask],e="string"==typeof this.fillMask&&this.fillMask.length>0?this.fillMask.slice(0,1):"_",i=e.replace(escRegex,"\\$&"),s=[],o=[],n=[];let r=!0===this.reverseFillMask,a="",l="";t.replace(tokenRegexMask,(t,e,i,h,d)=>{if(void 0!==h){const t=TOKENS[h];n.push(t),l=t.negate,!0===r&&(o.push("(?:"+l+"+)?("+t.pattern+"+)?(?:"+l+"+)?("+t.pattern+"+)?"),r=!1),o.push("(?:"+l+"+)?("+t.pattern+")?")}else if(void 0!==i)a="\\"+("\\"===i?"":i),n.push(i),s.push("([^"+a+"]+)?"+a+"?");else{const t=void 0!==e?e:d;a="\\"===t?"\\\\\\\\":t.replace(escRegex,"\\\\$&"),n.push(t),s.push("([^"+a+"]+)?"+a+"?")}});const h=new RegExp("^"+s.join("")+"("+(""===a?".":"[^"+a+"]")+"+)?"+(""===a?"":"["+a+"]*")+"$"),d=o.length-1,c=o.map((t,e)=>0===e&&!0===this.reverseFillMask?new RegExp("^"+i+"*"+t):e===d?new RegExp("^"+t+"("+(""===l?".":l)+"+)?"+(!0===this.reverseFillMask?"$":i+"*")):new RegExp("^"+t));this.computedMask=n,this.computedUnmask=(t=>{const e=h.exec(!0===this.reverseFillMask?t:t.slice(0,n.length+1));null!==e&&(t=e.slice(1).join(""));const i=[],s=c.length;for(let e=0,o=t;e<s;e++){const t=c[e].exec(o);if(null===t)break;o=o.slice(t.shift().length),i.push(...t)}return i.length>0?i.join(""):t}),this.maskMarked=n.map(t=>"string"==typeof t?t:MARKER).join(""),this.maskReplaced=this.maskMarked.split(MARKER).join(e)},__updateMaskValue(t,e,i){const s=this.$refs.input,o=s.selectionEnd,n=s.value.length-o,r=this.__unmask(t);!0===e&&this.__updateMaskInternals();const a=this.__mask(r),l=!1!==this.fillMask?this.__fillWithMask(a):a,h=this.innerValue!==l;s.value!==l&&(s.value=l),!0===h&&(this.innerValue=l),document.activeElement===s&&this.$nextTick(()=>{if(l!==this.maskReplaced)if("insertFromPaste"!==i||!0===this.reverseFillMask)if(["deleteContentBackward","deleteContentForward"].indexOf(i)>-1){const t=!0===this.reverseFillMask?0===o?l.length>a.length?1:0:Math.max(0,l.length-(l===this.maskReplaced?0:Math.min(a.length,n)+1))+1:o;s.setSelectionRange(t,t,"forward")}else if(!0===this.reverseFillMask)if(!0===h){const t=Math.max(0,l.length-(l===this.maskReplaced?0:Math.min(a.length,n+1)));1===t&&1===o?s.setSelectionRange(t,t,"forward"):this.__moveCursorRightReverse(s,t)}else{const t=l.length-n;s.setSelectionRange(t,t,"backward")}else if(!0===h){const t=Math.max(0,this.maskMarked.indexOf(MARKER),Math.min(a.length,o)-1);this.__moveCursorRight(s,t)}else{const t=o-1;this.__moveCursorRight(s,t)}else{const t=s.selectionEnd;let e=o-1;for(let i=this.__pastedTextStart;i<=e&&i<t;i++)this.maskMarked[i]!==MARKER&&e++;this.__moveCursorRight(s,e)}else{const t=!0===this.reverseFillMask?this.maskReplaced.length:0;s.setSelectionRange(t,t,"forward")}});const d=!0===this.unmaskedValue?this.__unmask(l):l;String(this.value)!==d&&this.__emitValue(d,!0)},__moveCursorForPaste(t,e,i){const s=this.__mask(this.__unmask(t.value));e=Math.max(0,this.maskMarked.indexOf(MARKER),Math.min(s.length,e)),this.__pastedTextStart=e,t.setSelectionRange(e,i,"forward")},__moveCursorLeft(t,e){const i=-1===this.maskMarked.slice(e-1).indexOf(MARKER);let s=Math.max(0,e-1);for(;s>=0;s--)if(this.maskMarked[s]===MARKER){e=s,!0===i&&e++;break}if(s<0&&void 0!==this.maskMarked[e]&&this.maskMarked[e]!==MARKER)return this.__moveCursorRight(t,0);e>=0&&t.setSelectionRange(e,e,"backward")},__moveCursorRight(t,e){const i=t.value.length;let s=Math.min(i,e+1);for(;s<=i;s++){if(this.maskMarked[s]===MARKER){e=s;break}this.maskMarked[s-1]===MARKER&&(e=s)}if(s>i&&void 0!==this.maskMarked[e-1]&&this.maskMarked[e-1]!==MARKER)return this.__moveCursorLeft(t,i);t.setSelectionRange(e,e,"forward")},__moveCursorLeftReverse(t,e){const i=this.__getPaddedMaskMarked(t.value.length);let s=Math.max(0,e-1);for(;s>=0;s--){if(i[s-1]===MARKER){e=s;break}if(i[s]===MARKER&&(e=s,0===s))break}if(s<0&&void 0!==i[e]&&i[e]!==MARKER)return this.__moveCursorRightReverse(t,0);e>=0&&t.setSelectionRange(e,e,"backward")},__moveCursorRightReverse(t,e){const i=t.value.length,s=this.__getPaddedMaskMarked(i),o=-1===s.slice(0,e+1).indexOf(MARKER);let n=Math.min(i,e+1);for(;n<=i;n++)if(s[n-1]===MARKER){(e=n)>0&&!0===o&&e--;break}if(n>i&&void 0!==s[e-1]&&s[e-1]!==MARKER)return this.__moveCursorLeftReverse(t,i);t.setSelectionRange(e,e,"forward")},__onMaskedClick(t){void 0!==this.qListeners.click&&this.$emit("click",t),this.__selectionAnchor=void 0},__onMaskedKeydown(t){if(void 0!==this.qListeners.keydown&&this.$emit("keydown",t),!0===shouldIgnoreKey(t))return;const e=this.$refs.input,i=e.selectionStart,s=e.selectionEnd;if(t.shiftKey||(this.__selectionAnchor=void 0),37===t.keyCode||39===t.keyCode){t.shiftKey&&void 0===this.__selectionAnchor&&(this.__selectionAnchor="forward"===e.selectionDirection?i:s);const o=this["__moveCursor"+(39===t.keyCode?"Right":"Left")+(!0===this.reverseFillMask?"Reverse":"")];if(t.preventDefault(),o(e,this.__selectionAnchor===i?s:i),t.shiftKey){const t=this.__selectionAnchor,i=e.selectionStart;e.setSelectionRange(Math.min(t,i),Math.max(t,i),"forward")}}else 8===t.keyCode&&!0!==this.reverseFillMask&&i===s?this.__moveCursorLeft(e,i):46===t.keyCode&&!0===this.reverseFillMask&&i===s&&this.__moveCursorRightReverse(e,s);this.$emit("keydown",t)},__mask(t){if(void 0===t||null===t||""===t)return"";if(!0===this.reverseFillMask)return this.__maskReverse(t);const e=this.computedMask;let i=0,s="";for(let o=0;o<e.length;o++){const n=t[i],r=e[o];if("string"==typeof r)s+=r,n===r&&i++;else{if(void 0===n||!r.regex.test(n))return s;s+=void 0!==r.transform?r.transform(n):n,i++}}return s},__maskReverse(t){const e=this.computedMask,i=this.maskMarked.indexOf(MARKER);let s=t.length-1,o="";for(let n=e.length-1;n>=0&&s>-1;n--){const r=e[n];let a=t[s];if("string"==typeof r)o=r+o,a===r&&s--;else{if(void 0===a||!r.regex.test(a))return o;do{o=(void 0!==r.transform?r.transform(a):a)+o,a=t[--s]}while(i===n&&void 0!==a&&r.regex.test(a))}}return o},__unmask(t){return"string"!=typeof t||void 0===this.computedUnmask?"number"==typeof t?this.computedUnmask(""+t):t:this.computedUnmask(t)},__fillWithMask(t){return this.maskReplaced.length-t.length<=0?t:!0===this.reverseFillMask&&t.length>0?this.maskReplaced.slice(0,-t.length)+t:t+this.maskReplaced.slice(t.length)}}};const isJapanese=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,isChinese=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,isKorean=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,isPlainText=/[a-z0-9_ -]$/i;var CompositionMixin={methods:{__onComposition(t){if("compositionend"===t.type||"change"===t.type){if(!0!==t.target.qComposing)return;t.target.qComposing=!1,this.__onInput(t)}else if("compositionupdate"===t.type&&!0!==t.target.qComposing&&"string"==typeof t.data){!0===(!0===client.is.firefox?!1===isPlainText.test(t.data):!0===isJapanese.test(t.data)||!0===isChinese.test(t.data)||!0===isKorean.test(t.data))&&(t.target.qComposing=!0)}}}},QInput=Vue.extend({name:"QInput",mixins:[QField,MaskMixin,CompositionMixin,FormFieldMixin,FileValueMixin,ListenersMixin],props:{value:{required:!1},shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},watch:{value(t){if(!0===this.hasMask){if(!0===this.stopValueWatcher&&(this.stopValueWatcher=!1,String(t)===this.emitCachedValue))return;this.__updateMaskValue(t)}else this.innerValue!==t&&(this.innerValue=t,"number"===this.type&&!0===this.hasOwnProperty("tempValue")&&(!0===this.typedNumber?this.typedNumber=!1:delete this.tempValue));!0===this.autogrow&&this.$nextTick(this.__adjustHeight)},type(){this.$refs.input&&(this.$refs.input.value=this.value)},autogrow(t){if(!0===t)this.$nextTick(this.__adjustHeight);else if(this.qAttrs.rows>0&&void 0!==this.$refs.input){this.$refs.input.style.height="auto"}},dense(){!0===this.autogrow&&this.$nextTick(this.__adjustHeight)}},data(){return{innerValue:this.__getInitialMaskedValue()}},computed:{isTextarea(){return"textarea"===this.type||!0===this.autogrow},isTypeText(){return!0===this.isTextarea||["text","search","url","tel","password"].includes(this.type)},fieldClass(){return`q-${!0===this.isTextarea?"textarea":"input"}`+(!0===this.autogrow?" q-textarea--autogrow":"")},hasShadow(){return"file"!==this.type&&"string"==typeof this.shadowText&&this.shadowText.length>0},onEvents(){const t={...this.qListeners,input:this.__onInput,paste:this.__onPaste,change:this.__onChange,blur:this.__onFinishEditing,focus:stop};return t.compositionstart=t.compositionupdate=t.compositionend=this.__onComposition,!0===this.hasMask&&(t.keydown=this.__onMaskedKeydown,t.click=this.__onMaskedClick),!0===this.autogrow&&(t.animationend=this.__onAnimationend),t},inputAttrs(){const t={tabindex:0,"data-autofocus":this.autofocus||void 0,rows:"textarea"===this.type?6:void 0,"aria-label":this.label,name:this.nameProp,...this.qAttrs,id:this.targetUid,type:this.type,maxlength:this.maxlength,disabled:!0===this.disable,readonly:!0===this.readonly};return!0===this.autogrow&&(t.rows=1),t}},methods:{focus(){addFocusFn(()=>{const t=document.activeElement;void 0===this.$refs.input||this.$refs.input===t||null!==t&&t.id===this.targetUid||this.$refs.input.focus({preventScroll:!0})})},select(){void 0!==this.$refs.input&&this.$refs.input.select()},getNativeElement(){return this.$refs.input},__onPaste(t){if(!0===this.hasMask&&!0!==this.reverseFillMask){const e=t.target;this.__moveCursorForPaste(e,e.selectionStart,e.selectionEnd)}this.$emit("paste",t)},__onInput(t){if(!t||!t.target||!0===t.target.qComposing)return;if("file"===this.type)return void this.$emit("input",t.target.files);const e=t.target.value;if(!0===this.hasMask)this.__updateMaskValue(e,!1,t.inputType);else if(this.__emitValue(e),!0===this.isTypeText&&t.target===document.activeElement){const{selectionStart:i,selectionEnd:s}=t.target;void 0!==i&&void 0!==s&&this.$nextTick(()=>{t.target===document.activeElement&&0===e.indexOf(t.target.value)&&t.target.setSelectionRange(i,s)})}!0===this.autogrow&&this.__adjustHeight()},__onAnimationend(t){void 0!==this.qListeners.animationend&&this.$emit("animationend",t),this.__adjustHeight()},__emitValue(t,e){this.emitValueFn=(()=>{"number"!==this.type&&!0===this.hasOwnProperty("tempValue")&&delete this.tempValue,this.value!==t&&this.emitCachedValue!==t&&(this.emitCachedValue=t,!0===e&&(this.stopValueWatcher=!0),this.$emit("input",t),this.$nextTick(()=>{this.emitCachedValue===t&&(this.emitCachedValue=NaN)})),this.emitValueFn=void 0}),"number"===this.type&&(this.typedNumber=!0,this.tempValue=t),void 0!==this.debounce?(clearTimeout(this.emitTimer),this.tempValue=t,this.emitTimer=setTimeout(this.emitValueFn,this.debounce)):this.emitValueFn()},__adjustHeight(){requestAnimationFrame(()=>{const t=this.$refs.input;if(void 0!==t){const e=t.parentNode.style,{scrollTop:i}=t,{overflowY:s,maxHeight:o}=!0===this.$q.platform.is.firefox?{}:window.getComputedStyle(t),n=void 0!==s&&"scroll"!==s;!0===n&&(t.style.overflowY="hidden"),e.marginBottom=t.scrollHeight-1+"px",t.style.height="1px",t.style.height=t.scrollHeight+"px",!0===n&&(t.style.overflowY=parseInt(o,10)<t.scrollHeight?"auto":"hidden"),e.marginBottom="",t.scrollTop=i}})},__onChange(t){this.__onComposition(t),clearTimeout(this.emitTimer),void 0!==this.emitValueFn&&this.emitValueFn(),this.$emit("change",t)},__onFinishEditing(t){void 0!==t&&stop(t),clearTimeout(this.emitTimer),void 0!==this.emitValueFn&&this.emitValueFn(),this.typedNumber=!1,this.stopValueWatcher=!1,delete this.tempValue,"file"!==this.type&&setTimeout(()=>{void 0!==this.$refs.input&&(this.$refs.input.value=void 0!==this.innerValue?this.innerValue:"")})},__getCurValue(){return!0===this.hasOwnProperty("tempValue")?this.tempValue:void 0!==this.innerValue?this.innerValue:""},__getShadowControl(t){return t("div",{staticClass:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(!0===this.isTextarea?"":" text-no-wrap")},[t("span",{staticClass:"invisible"},this.__getCurValue()),t("span",this.shadowText)])},__getControl(t){return t(!0===this.isTextarea?"textarea":"input",{ref:"input",staticClass:"q-field__native q-placeholder",style:this.inputStyle,class:this.inputClass,attrs:this.inputAttrs,on:this.onEvents,domProps:"file"!==this.type?{value:this.__getCurValue()}:this.formDomProps})}},created(){this.emitCachedValue=NaN},mounted(){!0===this.autogrow&&this.__adjustHeight()},beforeDestroy(){this.__onFinishEditing()}});const defaultCfg={threshold:0,root:null,rootMargin:"0px"};function update(t,e,i){let s,o,n;"function"==typeof i?(s=i,o=defaultCfg,n=void 0===e.cfg):(s=i.handler,o=Object.assign({},defaultCfg,i.cfg),n=void 0===e.cfg||!1===isDeepEqual(e.cfg,o)),e.handler!==s&&(e.handler=s),!0===n&&(e.cfg=o,void 0!==e.observer&&e.observer.unobserve(t),e.observer=new IntersectionObserver(([i])=>{if("function"==typeof e.handler){if(null===i.rootBounds&&(void 0!==t.__vue__?!0!==t.__vue__._inactive:!0===document.body.contains(t)))return e.observer.unobserve(t),void e.observer.observe(t);(!1===e.handler(i,e.observer)||!0===e.once&&!0===i.isIntersecting)&&destroy$3(t)}},o),e.observer.observe(t))}function destroy$3(t){const e=t.__qvisible;void 0!==e&&(void 0!==e.observer&&e.observer.unobserve(t),delete t.__qvisible)}var Intersection={name:"intersection",inserted(t,{modifiers:e,value:i}){void 0!==t.__qvisible&&(destroy$3(t),t.__qvisible_destroyed=!0);const s={once:!0===e.once};update(t,s,i),t.__qvisible=s},update(t,e){const i=t.__qvisible;void 0!==i&&update(t,i,e.value)},unbind(t){void 0===t.__qvisible_destroyed?destroy$3(t):delete t.__qvisible_destroyed}},QIntersection=Vue.extend({name:"QIntersection",mixins:[TagMixin,ListenersMixin],directives:{Intersection:Intersection},props:{once:Boolean,transition:String,ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean},data(){return{showing:!0===onSSR&&this.ssrPrerender}},computed:{value(){return void 0!==this.root||void 0!==this.margin||void 0!==this.threshold?{handler:this.__trigger,cfg:{root:this.root,rootMargin:this.margin,threshold:this.threshold}}:this.__trigger},directives(){if(!0!==this.disable&&(!0!==onSSR||!0!==this.once||!0!==this.ssrPrerender))return[{name:"intersection",value:this.value,modifiers:{once:this.once}}]}},methods:{__trigger(t){this.showing!==t.isIntersecting&&(this.showing=t.isIntersecting,void 0!==this.qListeners.visibility&&this.$emit("visibility",this.showing))}},render(t){const e=!0===this.showing?[t("div",{key:"content"},slot(this,"default"))]:void 0;return t(this.tag,{staticClass:"q-intersection",on:{...this.qListeners},directives:this.directives},this.transition?[t("transition",{props:{name:"q-transition--"+this.transition}},e)]:e)}});const keyCodes$1=[34,37,40,33,39,38];var QKnob=Vue.extend({name:"QKnob",mixins:[{props:QCircularProgress.options.props},FormMixin],directives:{TouchPan:TouchPan},props:{innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:t=>t>=0},tabindex:{type:[Number,String],default:0},disable:Boolean,readonly:Boolean},data(){const t=this.__getInnerMin(this.innerMin),e=this.__getInnerMax(this.innerMax);return{model:null===this.value?t:between(this.value,t,e),dragging:!1}},watch:{modelUpdate(){this.model=null===this.value?this.computedInnerMin:between(this.value,this.computedInnerMin,this.computedInnerMax),this.__updateValue(!0)}},computed:{classes(){return"q-knob non-selectable"+(!0===this.editable?" q-knob--editable":!0===this.disable?" disabled":"")},computedInnerMin(){return this.__getInnerMin(this.innerMin)},computedInnerMax(){return this.__getInnerMax(this.innerMax)},modelUpdate(){return`${this.value}|${this.computedInnerMin}|${this.computedInnerMax}`},editable(){return!1===this.disable&&!1===this.readonly},decimals(){return(String(this.step).trim("0").split(".")[1]||"").length},computedStep(){return 0===this.step?1:this.step},computedInstantFeedback(){return!0===this.instantFeedback||!0===this.dragging},onEvents(){return!0===this.$q.platform.is.mobile?{click:this.__click}:{mousedown:this.__activate,click:this.__click,keydown:this.__keydown,keyup:this.__keyup}},attrs(){const t={role:"slider","aria-valuemin":this.computedInnerMin,"aria-valuemax":this.computedInnerMax,"aria-valuenow":this.value};return!0===this.editable?t.tabindex=this.tabindex:t[`aria-${!0===this.disable?"disabled":"readonly"}`]="",t}},methods:{__getInnerMin(t){return!0===isNaN(t)||this.innerMin<this.min?this.min:this.innerMin},__getInnerMax(t){return!0===isNaN(t)||t>this.max?this.max:this.innerMax},__updateCenterPosition(){const{top:t,left:e,width:i,height:s}=this.$el.getBoundingClientRect();this.centerPosition={top:t+s/2,left:e+i/2}},__pan(t){t.isFinal?(this.__updatePosition(t.evt,!0),this.dragging=!1):t.isFirst?(this.__updateCenterPosition(),this.dragging=!0,this.__updatePosition(t.evt)):this.__updatePosition(t.evt)},__click(t){this.__updateCenterPosition(),this.__updatePosition(t,!0)},__keydown(t){if(!keyCodes$1.includes(t.keyCode))return;stopAndPrevent(t);const e=([34,33].includes(t.keyCode)?10:1)*this.computedStep,i=[34,37,40].includes(t.keyCode)?-e:e;this.model=between(parseFloat((this.model+i).toFixed(this.decimals)),this.computedInnerMin,this.computedInnerMax),this.__updateValue()},__keyup(t){keyCodes$1.includes(t.keyCode)&&this.__updateValue(!0)},__activate(t){this.__updateCenterPosition(),this.__updatePosition(t)},__updatePosition(t,e){const i=this.centerPosition,s=position(t),o=Math.abs(s.top-i.top),n=Math.sqrt(o**2+Math.abs(s.left-i.left)**2);let r=Math.asin(o/n)*(180/Math.PI);r=s.top<i.top?i.left<s.left?90-r:270+r:i.left<s.left?r+90:270-r,!0===this.$q.lang.rtl?r=normalizeToInterval(-r-this.angle,0,360):this.angle&&(r=normalizeToInterval(r-this.angle,0,360)),!0===this.reverse&&(r=360-r);let a=this.min+r/360*(this.max-this.min);if(0!==this.step){const t=this.computedStep,e=a%t;a=a-e+(Math.abs(e)>=t/2?(e<0?-1:1)*t:0),a=parseFloat(a.toFixed(this.decimals))}a=between(a,this.computedInnerMin,this.computedInnerMax),this.$emit("drag-value",a),this.model!==a&&(this.model=a),this.__updateValue(e)},__updateValue(t){this.value!==this.model&&this.$emit("input",this.model),!0===t&&this.$emit("change",this.model)},__getNameInput(){return this.$createElement("input",{attrs:this.formAttrs})}},render(t){const e={class:this.classes,attrs:this.attrs,props:{...this.$props,value:this.model,instantFeedback:this.computedInstantFeedback}};return!0===this.editable&&(e.on=this.onEvents,e.directives=cache(this,"dir",[{name:"touch-pan",value:this.__pan,modifiers:{prevent:!0,stop:!0,mouse:!0}}]),void 0!==this.name&&(e.scopedSlots={internal:this.__getNameInput})),t(QCircularProgress,e,slot(this,"default"))}});const{passive:passive$2}=listenOpts;var QScrollObserver=Vue.extend({name:"QScrollObserver",props:{debounce:[String,Number],horizontal:Boolean,scrollTarget:{default:void 0}},render:noop,data(){return{pos:0,dir:!0===this.horizontal?"right":"down",dirChanged:!1,dirChangePos:0}},watch:{scrollTarget(){this.__unconfigureScrollTarget(),this.__configureScrollTarget()},"$q.lang.rtl"(){this.__emit()}},methods:{getPosition(){return{position:this.pos,direction:this.dir,directionChanged:this.dirChanged,inflexionPosition:this.dirChangePos}},trigger(t){if(!0===t||0===this.debounce||"0"===this.debounce)this.__emit();else if(void 0===this.clearTimer){const[t,e]=this.debounce?[setTimeout(this.__emit,this.debounce),clearTimeout]:[requestAnimationFrame(this.__emit),cancelAnimationFrame];this.clearTimer=(()=>{e(t),this.clearTimer=void 0})}},__emit(){void 0!==this.clearTimer&&this.clearTimer();const t=!0===this.horizontal?getHorizontalScrollPosition:getScrollPosition,e=Math.max(0,t(this.__scrollTarget)),i=e-this.pos,s=!0===this.horizontal?i<0?"left":"right":i<0?"up":"down";this.dirChanged=this.dir!==s,this.dirChanged&&(this.dir=s,this.dirChangePos=this.pos),this.pos=e,this.$emit("scroll",this.getPosition())},__configureScrollTarget(){this.__scrollTarget=getScrollTarget(this.$el.parentNode,this.scrollTarget),this.__scrollTarget.addEventListener("scroll",this.trigger,passive$2),this.trigger(!0)},__unconfigureScrollTarget(){void 0!==this.__scrollTarget&&(this.__scrollTarget.removeEventListener("scroll",this.trigger,passive$2),this.__scrollTarget=void 0)}},mounted(){this.__configureScrollTarget()},beforeDestroy(){void 0!==this.clearTimer&&this.clearTimer(),this.__unconfigureScrollTarget()}}),QLayout=Vue.extend({name:"QLayout",mixins:[ListenersMixin],provide(){return{layout:this}},props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:t=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(t.toLowerCase())}},data(){return{height:this.$q.screen.height,width:!0===this.container?0:this.$q.screen.width,containerHeight:0,scrollbarWidth:!0===onSSR?0:getScrollbarWidth(),header:{size:0,offset:0,space:!1},right:{size:300,offset:0,space:!1},footer:{size:0,offset:0,space:!1},left:{size:300,offset:0,space:!1},scroll:{position:0,direction:"down"}}},computed:{rows(){const t=this.view.toLowerCase().split(" ");return{top:t[0].split(""),middle:t[1].split(""),bottom:t[2].split("")}},style(){return!0===this.container?null:{minHeight:this.$q.screen.height+"px"}},targetStyle(){if(0!==this.scrollbarWidth)return{[!0===this.$q.lang.rtl?"left":"right"]:`${this.scrollbarWidth}px`}},targetChildStyle(){if(0!==this.scrollbarWidth)return{[!0===this.$q.lang.rtl?"right":"left"]:0,[!0===this.$q.lang.rtl?"left":"right"]:`-${this.scrollbarWidth}px`,width:`calc(100% + ${this.scrollbarWidth}px)`}},totalWidth(){return this.width+this.scrollbarWidth},classes(){return"q-layout q-layout--"+(!0===this.container?"containerized":"standard")},scrollbarEvtAction(){return!0!==this.container&&this.scrollbarWidth>0?"add":"remove"}},watch:{scrollbarEvtAction:"__updateScrollEvent"},created(){this.instances={}},mounted(){"add"===this.scrollbarEvtAction&&this.__updateScrollEvent("add")},beforeDestroy(){"add"===this.scrollbarEvtAction&&this.__updateScrollEvent("remove")},render(t){const e=t("div",{class:this.classes,style:this.style,attrs:{tabindex:-1},on:{...this.qListeners}},mergeSlot([t(QScrollObserver,{on:cache(this,"scroll",{scroll:this.__onPageScroll})}),t(QResizeObserver,{on:cache(this,"resizeOut",{resize:this.__onPageResize})})],this,"default"));return!0===this.container?t("div",{staticClass:"q-layout-container overflow-hidden"},[t(QResizeObserver,{on:cache(this,"resizeIn",{resize:this.__onContainerResize})}),t("div",{staticClass:"absolute-full",style:this.targetStyle},[t("div",{staticClass:"scroll",style:this.targetChildStyle},[e])])]):e},methods:{__animate(){void 0!==this.timer?clearTimeout(this.timer):document.body.classList.add("q-body--layout-animate"),this.timer=setTimeout(()=>{document.body.classList.remove("q-body--layout-animate"),this.timer=void 0},150)},__onPageScroll(t){!0!==this.container&&!0===document.qScrollPrevented||(this.scroll=t),void 0!==this.qListeners.scroll&&this.$emit("scroll",t)},__onPageResize({height:t,width:e}){let i=!1;this.height!==t&&(i=!0,this.height=t,void 0!==this.qListeners["scroll-height"]&&this.$emit("scroll-height",t),this.__updateScrollbarWidth()),this.width!==e&&(i=!0,this.width=e),!0===i&&void 0!==this.qListeners.resize&&this.$emit("resize",{height:t,width:e})},__onContainerResize({height:t}){this.containerHeight!==t&&(this.containerHeight=t,this.__updateScrollbarWidth())},__updateScrollbarWidth(){if(!0===this.container){const t=this.height>this.containerHeight?getScrollbarWidth():0;this.scrollbarWidth!==t&&(this.scrollbarWidth=t)}},__updateScrollEvent(t){void 0!==this.timerScrollbar&&"remove"===t&&(clearTimeout(this.timerScrollbar),this.__restoreScrollbar()),window[`${t}EventListener`]("resize",this.__hideScrollbar)},__hideScrollbar(){if(void 0===this.timerScrollbar){const t=document.body;if(t.scrollHeight>this.$q.screen.height)return;t.classList.add("hide-scrollbar")}else clearTimeout(this.timerScrollbar);this.timerScrollbar=setTimeout(this.__restoreScrollbar,200)},__restoreScrollbar(){this.timerScrollbar=void 0,document.body.classList.remove("hide-scrollbar")}}}),QMarkupTable=Vue.extend({name:"QMarkupTable",mixins:[DarkMixin,ListenersMixin],props:{dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:t=>["horizontal","vertical","cell","none"].includes(t)},wrapCells:Boolean},computed:{classes(){return`q-table--${this.separator}-separator`+(!0===this.isDark?" q-table--dark q-table__card--dark q-dark":"")+(!0===this.dense?" q-table--dense":"")+(!0===this.flat?" q-table--flat":"")+(!0===this.bordered?" q-table--bordered":"")+(!0===this.square?" q-table--square":"")+(!1===this.wrapCells?" q-table--no-wrap":"")}},render(t){return t("div",{staticClass:"q-markup-table q-table__container q-table__card",class:this.classes,on:{...this.qListeners}},[t("table",{staticClass:"q-table"},slot(this,"default"))])}}),QNoSsr=Vue.extend({name:"QNoSsr",mixins:[CanRenderMixin,TagMixin,ListenersMixin],props:{placeholder:String},render(t){const e={on:{...this.qListeners}};if(!0===this.canRender){const i=slot(this,"default");return void 0===i?i:i.length>1?t(this.tag,e,i):i[0]}e.staticClass="q-no-ssr-placeholder";const i=slot(this,"placeholder");return void 0!==i?i.length>1?t(this.tag,e,i):i[0]:void 0!==this.placeholder?t(this.tag,e,[this.placeholder]):void 0}}),QRadio=Vue.extend({name:"QRadio",mixins:[DarkMixin,OptionSizeMixin,FormMixin,RefocusTargetMixin],props:{value:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,checkedIcon:String,uncheckedIcon:String,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},computed:{isTrue(){return this.value===this.val},classes(){return"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(!0===this.disable?" disabled":"")+(!0===this.isDark?" q-radio--dark":"")+(!0===this.dense?" q-radio--dense":"")+(!0===this.leftLabel?" reverse":"")},innerClass(){const t=void 0===this.color||!0!==this.keepColor&&!0!==this.isTrue?"":` text-${this.color}`;return`q-radio__inner--${!0===this.isTrue?"truthy":"falsy"}${t}`},computedIcon(){return!0===this.isTrue?this.checkedIcon:this.uncheckedIcon},computedTabindex(){return!0===this.disable?-1:this.tabindex||0},formAttrs(){const t={type:"radio"};return void 0!==this.name&&Object.assign(t,{name:this.name,value:this.val}),t},formDomProps(){if(void 0!==this.name&&!0===this.isTrue)return{checked:!0}},attrs(){const t={tabindex:this.computedTabindex,role:"radio","aria-label":this.label,"aria-checked":!0===this.isTrue?"true":"false"};return!0===this.disable&&(t["aria-disabled"]="true"),t}},methods:{set(t){void 0!==t&&(stopAndPrevent(t),this.__refocusTarget(t)),!0!==this.disable&&!0!==this.isTrue&&this.$emit("input",this.val,t)}},render(t){const e=void 0!==this.computedIcon?[t("div",{key:"icon",staticClass:"q-radio__icon-container absolute-full flex flex-center no-wrap"},[t(QIcon,{staticClass:"q-radio__icon",props:{name:this.computedIcon}})])]:[t("svg",{key:"svg",staticClass:"q-radio__bg absolute non-selectable",attrs:{focusable:"false",viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,22a10,10 0 0 1 -10,-10a10,10 0 0 1 10,-10a10,10 0 0 1 10,10a10,10 0 0 1 -10,10m0,-22a12,12 0 0 0 -12,12a12,12 0 0 0 12,12a12,12 0 0 0 12,-12a12,12 0 0 0 -12,-12"}}),t("path",{staticClass:"q-radio__check",attrs:{d:"M12,6a6,6 0 0 0 -6,6a6,6 0 0 0 6,6a6,6 0 0 0 6,-6a6,6 0 0 0 -6,-6"}})])];!0!==this.disable&&this.__injectFormInput(e,"unshift","q-radio__native q-ma-none q-pa-none");const i=[t("div",{staticClass:"q-radio__inner relative-position",class:this.innerClass,style:this.sizeStyle,attrs:{"aria-hidden":"true"}},e)];void 0!==this.__refocusTargetEl&&i.push(this.__refocusTargetEl);const s=void 0!==this.label?mergeSlot([this.label],this,"default"):slot(this,"default");return void 0!==s&&i.push(t("div",{staticClass:"q-radio__label q-anchor--skip"},s)),t("div",{class:this.classes,attrs:this.attrs,on:cache(this,"inpExt",{click:this.set,keydown:t=>{13!==t.keyCode&&32!==t.keyCode||stopAndPrevent(t)},keyup:t=>{13!==t.keyCode&&32!==t.keyCode||this.set(t)}})},i)}}),QToggle=Vue.extend({name:"QToggle",mixins:[CheckboxMixin],props:{icon:String,iconColor:String},computed:{computedIcon(){return(!0===this.isTrue?this.checkedIcon:!0===this.isIndeterminate?this.indeterminateIcon:this.uncheckedIcon)||this.icon},computedIconColor(){if(!0===this.isTrue)return this.iconColor}},methods:{__getInner(t){return[t("div",{staticClass:"q-toggle__track"}),t("div",{staticClass:"q-toggle__thumb absolute flex flex-center no-wrap"},void 0!==this.computedIcon?[t(QIcon,{props:{name:this.computedIcon,color:this.computedIconColor}})]:void 0)]}},created(){this.type="toggle"}});const components={radio:QRadio,checkbox:QCheckbox,toggle:QToggle},typeValues=Object.keys(components);var QOptionGroup=Vue.extend({name:"QOptionGroup",mixins:[DarkMixin,ListenersMixin],props:{value:{required:!0},options:{type:Array,validator:t=>t.every(t=>"value"in t&&"label"in t)},name:String,type:{default:"radio",validator:t=>typeValues.includes(t)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},computed:{component(){return components[this.type]},model(){return Array.isArray(this.value)?this.value.slice():this.value},classes(){return"q-option-group q-gutter-x-sm"+(!0===this.inline?" q-option-group--inline":"")},attrs(){if("radio"===this.type){const t={role:"radiogroup"};return!0===this.disable&&(t["aria-disabled"]="true"),t}return{role:"group"}}},methods:{__update(t){this.$emit("input",t)}},created(){const t=Array.isArray(this.value);"radio"===this.type?t&&console.error("q-option-group: model should not be array"):!1===t&&console.error("q-option-group: model should be array in your case")},render(t){return t("div",{class:this.classes,attrs:this.attrs,on:{...this.qListeners}},this.options.map((e,i)=>{const s=void 0!==this.$scopedSlots["label-"+i]?this.$scopedSlots["label-"+i](e):void 0!==this.$scopedSlots.label?this.$scopedSlots.label(e):void 0;return t("div",[t(this.component,{props:{value:this.value,val:e.value,name:void 0===e.name?this.name:e.name,disable:this.disable||e.disable,label:void 0===s?e.label:void 0,leftLabel:void 0===e.leftLabel?this.leftLabel:e.leftLabel,color:void 0===e.color?this.color:e.color,checkedIcon:e.checkedIcon,uncheckedIcon:e.uncheckedIcon,dark:e.dark||this.isDark,size:void 0===e.size?this.size:e.size,dense:this.dense,keepColor:void 0===e.keepColor?this.keepColor:e.keepColor},on:cache(this,"inp",{input:this.__update})},s)])}))}}),QPage=Vue.extend({name:"QPage",mixins:[ListenersMixin],inject:{pageContainer:{default(){console.error("QPage needs to be child of QPageContainer")}},layout:{}},props:{padding:Boolean,styleFn:Function},computed:{style(){const t=(!0===this.layout.header.space?this.layout.header.size:0)+(!0===this.layout.footer.space?this.layout.footer.size:0);if("function"==typeof this.styleFn){const e=!0===this.layout.container?this.layout.containerHeight:this.$q.screen.height;return this.styleFn(t,e)}return{minHeight:!0===this.layout.container?this.layout.containerHeight-t+"px":0===this.$q.screen.height?`calc(100vh - ${t}px)`:this.$q.screen.height-t+"px"}},classes(){if(!0===this.padding)return"q-layout-padding"}},render(t){return t("main",{staticClass:"q-page",style:this.style,class:this.classes,on:{...this.qListeners}},slot(this,"default"))}}),QPageContainer=Vue.extend({name:"QPageContainer",mixins:[ListenersMixin],inject:{layout:{default(){console.error("QPageContainer needs to be child of QLayout")}}},provide:{pageContainer:!0},computed:{style(){const t={};return!0===this.layout.header.space&&(t.paddingTop=`${this.layout.header.size}px`),!0===this.layout.right.space&&(t[`padding${!0===this.$q.lang.rtl?"Left":"Right"}`]=`${this.layout.right.size}px`),!0===this.layout.footer.space&&(t.paddingBottom=`${this.layout.footer.size}px`),!0===this.layout.left.space&&(t[`padding${!0===this.$q.lang.rtl?"Right":"Left"}`]=`${this.layout.left.size}px`),t}},render(t){return t("div",{staticClass:"q-page-container",style:this.style,on:{...this.qListeners}},slot(this,"default"))}}),QPageSticky=Vue.extend({name:"QPageSticky",mixins:[ListenersMixin],inject:{layout:{default(){console.error("QPageSticky needs to be child of QLayout")}}},props:{position:{type:String,default:"bottom-right",validator:t=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(t)},offset:{type:Array,validator:t=>2===t.length},expand:Boolean},computed:{attach(){const t=this.position;return{top:t.indexOf("top")>-1,right:t.indexOf("right")>-1,bottom:t.indexOf("bottom")>-1,left:t.indexOf("left")>-1,vertical:"top"===t||"bottom"===t,horizontal:"left"===t||"right"===t}},top(){return this.layout.header.offset},right(){return this.layout.right.offset},bottom(){return this.layout.footer.offset},left(){return this.layout.left.offset},style(){let t=0,e=0;const i=this.attach,s=!0===this.$q.lang.rtl?-1:1;!0===i.top&&0!==this.top?e=`${this.top}px`:!0===i.bottom&&0!==this.bottom&&(e=`${-this.bottom}px`),!0===i.left&&0!==this.left?t=`${s*this.left}px`:!0===i.right&&0!==this.right&&(t=`${-s*this.right}px`);const o={transform:`translate(${t}, ${e})`};return this.offset&&(o.margin=`${this.offset[1]}px ${this.offset[0]}px`),!0===i.vertical?(0!==this.left&&(o[!0===this.$q.lang.rtl?"right":"left"]=`${this.left}px`),0!==this.right&&(o[!0===this.$q.lang.rtl?"left":"right"]=`${this.right}px`)):!0===i.horizontal&&(0!==this.top&&(o.top=`${this.top}px`),0!==this.bottom&&(o.bottom=`${this.bottom}px`)),o},classes(){return`fixed-${this.position} q-page-sticky--${!0===this.expand?"expand":"shrink"}`}},render(t){const e=slot(this,"default");return t("div",{staticClass:"q-page-sticky row flex-center",class:this.classes,style:this.style,on:{...this.qListeners}},!0===this.expand?e:[t("div",e)])}}),QPageScroller=Vue.extend({name:"QPageScroller",mixins:[QPageSticky],props:{scrollOffset:{type:Number,default:1e3},reverse:Boolean,duration:{type:Number,default:300},offset:{default:()=>[18,18]}},inject:{layout:{default(){console.error("QPageScroller needs to be used within a QLayout")}}},data(){return{showing:this.__isVisible()}},computed:{scrollHeight(){return this.layout.height-(!0===this.layout.container?this.layout.containerHeight:this.$q.screen.height)},onEvents(){return{...this.qListeners,click:this.__onClick}}},watch:{"layout.scroll.position"(){this.__updateVisibility()},reverse:{handler(t){!0===t?void 0===this.heightWatcher&&(this.heightWatcher=this.$watch("scrollHeight",this.__updateVisibility)):void 0!==this.heightWatcher&&this.__cleanup()},immediate:!0}},methods:{__isVisible(){return!0===this.reverse?this.scrollHeight-this.layout.scroll.position>this.scrollOffset:this.layout.scroll.position>this.scrollOffset},__onClick(t){const e=getScrollTarget(!0===this.layout.container?this.$el:this.layout.$el);setScrollPosition(e,!0===this.reverse?this.layout.height:0,this.duration),this.$emit("click",t)},__updateVisibility(){const t=this.__isVisible();this.showing!==t&&(this.showing=t)},__cleanup(){this.heightWatcher(),this.heightWatcher=void 0}},render(t){return t("transition",{props:{name:"q-transition--fade"}},!0===this.showing?[t("div",{staticClass:"q-page-scroller",on:this.onEvents},[QPageSticky.options.render.call(this,t)])]:null)},beforeDestroy(){void 0!==this.heightWatcher&&this.__cleanup()}});function getBool(t,e){return[!0,!1].includes(t)?t:e}var QPagination=Vue.extend({name:"QPagination",mixins:[DarkMixin,ListenersMixin],props:{value:{type:Number,required:!0},min:{type:[Number,String],default:1},max:{type:[Number,String],required:!0},maxPages:{type:[Number,String],default:0,validator:t=>("string"==typeof t?parseInt(t,10):t)>=0},inputStyle:[Array,String,Object],inputClass:[Array,String,Object],size:String,disable:Boolean,input:Boolean,iconPrev:String,iconNext:String,iconFirst:String,iconLast:String,toFn:Function,boundaryLinks:{type:Boolean,default:null},boundaryNumbers:{type:Boolean,default:null},directionLinks:{type:Boolean,default:null},ellipses:{type:Boolean,default:null},ripple:{type:[Boolean,Object],default:null},round:Boolean,rounded:Boolean,flat:Boolean,outline:Boolean,unelevated:Boolean,push:Boolean,glossy:Boolean,color:{type:String,default:"primary"},textColor:String,activeDesign:{type:String,default:"",values:t=>""===t||btnDesignOptions.includes(t)},activeColor:String,activeTextColor:String,padding:{type:String,default:"3px 2px"}},data:()=>({newPage:null}),watch:{min(){this.model=this.value},max(){this.model=this.value}},computed:{model:{get(){return this.value},set(t){if(t=parseInt(t,10),this.disable||isNaN(t))return;const e=between(t,this.__min,this.__max);this.$emit("input",e)}},inputPlaceholder(){return this.model+" / "+this.__max},__min(){return parseInt(this.min,10)},__max(){return parseInt(this.max,10)},__maxPages(){return parseInt(this.maxPages,10)},__boundaryLinks(){return getBool(this.boundaryLinks,this.input)},__boundaryNumbers(){return getBool(this.boundaryNumbers,!this.input)},__directionLinks(){return getBool(this.directionLinks,this.input)},__ellipses(){return getBool(this.ellipses,!this.input)},__btnDesign(){return getBtnDesign(this,"flat")},__btnActiveDesign(){const t={[this.__btnDesign]:!1};return""!==this.activeDesign&&(t[this.activeDesign]=!0),t},icons(){const t=[this.iconFirst||this.$q.iconSet.pagination.first,this.iconPrev||this.$q.iconSet.pagination.prev,this.iconNext||this.$q.iconSet.pagination.next,this.iconLast||this.$q.iconSet.pagination.last];return!0===this.$q.lang.rtl?t.reverse():t},attrs(){const t={role:"navigation"};return!0===this.disable&&(t["aria-disabled"]="true"),t},btnProps(){return{[this.__btnDesign]:!0,round:this.round,rounded:this.rounded,padding:this.padding,color:this.color,textColor:this.textColor,size:this.size,ripple:null===this.ripple||this.ripple}},activeBtnProps(){return{...this.__btnActiveDesign,color:this.activeColor||this.color,textColor:this.activeTextColor||this.textColor}},btnConfig(){let t=Math.max(this.__maxPages,1+(this.__ellipses?2:0)+(this.__boundaryNumbers?2:0));const e={pgFrom:this.__min,pgTo:this.__max,ellipsesStart:!1,ellipsesEnd:!1,boundaryStart:!1,boundaryEnd:!1,marginalStyle:{minWidth:`${Math.max(2,String(this.__max).length)}em`}};return this.__maxPages&&t<this.__max-this.__min+1&&(t=1+2*Math.floor(t/2),e.pgFrom=Math.max(this.__min,Math.min(this.__max-t+1,this.value-Math.floor(t/2))),e.pgTo=Math.min(this.__max,e.pgFrom+t-1),this.__boundaryNumbers&&(e.boundaryStart=!0,e.pgFrom++),this.__ellipses&&e.pgFrom>this.__min+(this.__boundaryNumbers?1:0)&&(e.ellipsesStart=!0,e.pgFrom++),this.__boundaryNumbers&&(e.boundaryEnd=!0,e.pgTo--),this.__ellipses&&e.pgTo<this.__max-(this.__boundaryNumbers?1:0)&&(e.ellipsesEnd=!0,e.pgTo--)),e},inputEvents(){const t=()=>{this.model=this.newPage,this.newPage=null};return{input:t=>{this.newPage=t},keyup:e=>{!0===isKeyCode(e,13)&&t()},blur:t}}},methods:{set(t){this.model=t},setByOffset(t){this.model=this.model+t},__getBtn(t,e,i,s,o){return e.props={...this.btnProps,...i},e.attrs={"aria-label":s,"aria-current":"false",...e.attrs},!0===o&&(Object.assign(e.props,this.activeBtnProps),e.attrs["aria-current"]="true"),void 0!==s&&(void 0!==this.toFn?e.props.to=this.toFn(s):e.on={click:()=>{this.set(s)}}),t(QBtn,e)}},render(t){const e=[],i=[];let s;if(!0===this.__boundaryLinks&&(e.push(this.__getBtn(t,{key:"bls"},{disable:this.disable||this.value<=this.__min,icon:this.icons[0]},this.__min)),i.unshift(this.__getBtn(t,{key:"ble"},{disable:this.disable||this.value>=this.__max,icon:this.icons[3]},this.__max))),!0===this.__directionLinks&&(e.push(this.__getBtn(t,{key:"bdp"},{disable:this.disable||this.value<=this.__min,icon:this.icons[1]},this.value-1)),i.unshift(this.__getBtn(t,{key:"bdn"},{disable:this.disable||this.value>=this.__max,icon:this.icons[2]},this.value+1))),!0!==this.input){s=[];const{pgFrom:o,pgTo:n,marginalStyle:r}=this.btnConfig;if(!0===this.btnConfig.boundaryStart){const i=this.__min===this.value;e.push(this.__getBtn(t,{key:"bns",style:r},{disable:this.disable,label:this.__min},this.__min,i))}if(!0===this.btnConfig.boundaryEnd){const e=this.__max===this.value;i.unshift(this.__getBtn(t,{key:"bne",style:r},{disable:this.disable,label:this.__max},this.__max,e))}!0===this.btnConfig.ellipsesStart&&e.push(this.__getBtn(t,{key:"bes",style:r},{disable:this.disable,label:"…",ripple:!1},o-1)),!0===this.btnConfig.ellipsesEnd&&i.unshift(this.__getBtn(t,{key:"bee",style:r},{disable:this.disable,label:"…",ripple:!1},n+1));for(let e=o;e<=n;e++)s.push(this.__getBtn(t,{key:`bpg${e}`,style:r},{disable:this.disable,label:e},e,e===this.value))}return t("div",{staticClass:"q-pagination row no-wrap items-center",class:{disabled:this.disable},attrs:this.attrs,on:{...this.qListeners}},[t("div",{staticClass:"q-pagination__content row no-wrap items-center"},[...e,t("div",{staticClass:"q-pagination__middle row justify-center",on:!0===this.input?cache(this,"stop",{input:stop}):null},!0===this.input?[t(QInput,{staticClass:"inline",style:{width:`${this.inputPlaceholder.length/1.5}em`},props:{type:"number",dense:!0,value:this.newPage,disable:this.disable,dark:this.isDark,borderless:!0,inputClass:this.inputClass,inputStyle:this.inputStyle},attrs:{placeholder:this.inputPlaceholder,min:this.__min,max:this.__max},on:{...this.inputEvents}})]:s),...i])])}});function frameDebounce(t){let e,i,s=!1;function o(){i=arguments,!0!==s&&(s=!0,e=requestAnimationFrame(()=>{t.apply(this,i),i=void 0,s=!1}))}return o.cancel=(()=>{window.cancelAnimationFrame(e),s=!1}),o}const{passive:passive$3}=listenOpts;var QParallax=Vue.extend({name:"QParallax",mixins:[ListenersMixin],props:{src:String,height:{type:Number,default:500},speed:{type:Number,default:1,validator:t=>t>=0&&t<=1},scrollTarget:{default:void 0}},data:()=>({scrolling:!1,percentScrolled:0}),watch:{height(){!0===this.working&&this.__updatePos()},scrollTarget(){!0===this.working&&(this.__stop(),this.__start())}},methods:{__update(t){this.percentScrolled=t,void 0!==this.qListeners.scroll&&this.$emit("scroll",t)},__updatePos(){let t,e,i;this.__scrollTarget===window?(t=0,i=e=window.innerHeight):i=(t=offset(this.__scrollTarget).top)+(e=height(this.__scrollTarget));const s=offset(this.$el).top,o=s+this.height;if(void 0!==this.observer||o>t&&s<i){const t=(i-s)/(this.height+e);this.__setPos((this.mediaHeight-this.height)*t*this.speed),this.__update(t)}},__setPos(t){this.media.style.transform=`translate3d(-50%,${Math.round(t)}px,0)`},__onResize(){this.mediaHeight=this.media.naturalHeight||this.media.videoHeight||height(this.media),!0===this.working&&this.__updatePos()},__start(){this.working=!0,this.__scrollTarget=getScrollTarget(this.$el,this.scrollTarget),this.__scrollTarget.addEventListener("scroll",this.__updatePos,passive$3),window.addEventListener("resize",this.__resizeHandler,passive$3),this.__updatePos()},__stop(){!0===this.working&&(this.working=!1,this.__setPos.cancel(),this.__update.cancel(),this.__resizeHandler.cancel(),this.__scrollTarget.removeEventListener("scroll",this.__updatePos,passive$3),window.removeEventListener("resize",this.__resizeHandler,passive$3),this.__scrollTarget=void 0)}},render(t){return t("div",{staticClass:"q-parallax",style:{height:`${this.height}px`},on:{...this.qListeners}},[t("div",{ref:"mediaParent",staticClass:"q-parallax__media absolute-full"},void 0!==this.$scopedSlots.media?this.$scopedSlots.media():[t("img",{ref:"media",attrs:{src:this.src}})]),t("div",{staticClass:"q-parallax__content absolute-full column flex-center"},void 0!==this.$scopedSlots.content?this.$scopedSlots.content({percentScrolled:this.percentScrolled}):slot(this,"default"))])},mounted(){this.__setPos=frameDebounce(this.__setPos),this.__update=frameDebounce(this.__update),this.__resizeHandler=frameDebounce(this.__onResize),this.media=void 0!==this.$scopedSlots.media?this.$refs.mediaParent.children[0]:this.$refs.media,this.media.onload=this.media.onloadstart=this.media.loadedmetadata=this.__onResize,this.__onResize(),this.media.style.display="initial",void 0!==window.IntersectionObserver?(this.observer=new IntersectionObserver(t=>{this[!0===t[0].isIntersecting?"__start":"__stop"]()}),this.observer.observe(this.$el)):this.__start()},beforeDestroy(){this.__stop(),void 0!==this.observer&&this.observer.disconnect(),this.media.onload=this.media.onloadstart=this.media.loadedmetadata=null}});function cloneDeep(t,e=new WeakMap){if(Object(t)!==t)return t;if(e.has(t))return e.get(t);const i=t instanceof Date?new Date(t):t instanceof RegExp?new RegExp(t.source,t.flags):t instanceof Set?new Set:t instanceof Map?new Map:"function"!=typeof t.constructor?Object.create(null):void 0!==t.prototype&&"function"==typeof t.prototype.constructor?t:new t.constructor;if("function"==typeof t.constructor&&"function"==typeof t.valueOf){const i=t.valueOf();if(Object(i)!==i){const s=new t.constructor(i);return e.set(t,s),s}}return e.set(t,i),t instanceof Set?t.forEach(t=>{i.add(cloneDeep(t,e))}):t instanceof Map&&t.forEach((t,s)=>{i.set(s,cloneDeep(t,e))}),Object.assign(i,...Object.keys(t).map(i=>({[i]:cloneDeep(t[i],e)})))}var QPopupEdit=Vue.extend({name:"QPopupEdit",mixins:[AttrsMixin],props:{value:{required:!0},title:String,buttons:Boolean,labelSet:String,labelCancel:String,color:{type:String,default:"primary"},validate:{type:Function,default:()=>!0},autoSave:Boolean,cover:{type:Boolean,default:!0},contentClass:String,disable:Boolean},data:()=>({modelChanged:!1,model:null}),computed:{classes(){return"q-popup-edit"+(void 0!==this.contentClass?` ${this.contentClass}`:"")},modelValue(){return!0===this.modelChanged?this.model:this.value},initialValue(){return!0!==this.modelChanged?this.model:this.value},defaultSlotScope(){return injectProp({initialValue:this.initialValue,updatePosition:this.__reposition,emitValue:this.__changeModel,validate:this.validate,set:this.set,cancel:this.cancel},"value",()=>this.modelValue,this.__changeModel)},menuProps(){return{...this.qAttrs,cover:this.cover,contentClass:this.classes}}},methods:{set(){!0===this.validate(this.modelValue)&&(!0===this.__hasChanged()&&(this.$emit("save",this.modelValue,this.initialValue),!0===this.modelChanged&&this.$emit("input",this.modelValue)),this.__close())},cancel(){!0===this.__hasChanged()&&(this.$emit("cancel",this.modelValue,this.initialValue),!0!==this.modelChanged&&this.$emit("input",this.initialValue)),this.__close()},show(t){void 0!==this.$refs.menu&&this.$refs.menu.show(t)},hide(t){void 0!==this.$refs.menu&&this.$refs.menu.hide(t)},__hasChanged(){return!1===isDeepEqual(this.modelValue,this.initialValue)},__changeModel(t){!0!==this.disable&&(this.model=t,this.modelChanged=!0)},__close(){this.validated=!0,!0===this.$refs.menu.showing&&this.$refs.menu.hide()},__reposition(){this.$nextTick(()=>{this.$refs.menu.updatePosition()})},__getContent(t){const e=slot(this,"title",this.title),i=void 0===this.$scopedSlots.default?[]:[].concat(this.$scopedSlots.default(this.defaultSlotScope));return e&&i.unshift(t("div",{staticClass:"q-dialog__title q-mt-sm q-mb-sm"},[e])),!0===this.buttons&&i.push(t("div",{staticClass:"q-popup-edit__buttons row justify-center no-wrap"},[t(QBtn,{props:{flat:!0,color:this.color,label:this.labelCancel||this.$q.lang.label.cancel},on:cache(this,"cancel",{click:this.cancel})}),t(QBtn,{props:{flat:!0,color:this.color,label:this.labelSet||this.$q.lang.label.set},on:cache(this,"ok",{click:this.set})})])),i}},render(t){if(!0!==this.disable)return t(QMenu,{ref:"menu",props:this.menuProps,on:cache(this,"menu",{"before-show":()=>{this.validated=!1,this.modelChanged=!1,this.model=cloneDeep(this.value),this.watcher=this.$watch("value",this.__reposition),this.$emit("before-show")},show:()=>{this.$emit("show")},"escape-key":this.cancel,"before-hide":()=>{this.watcher(),!1===this.validated&&!0===this.__hasChanged()&&(!0===this.autoSave&&!0===this.validate(this.model)?(this.$emit("save",this.modelValue,this.initialValue),!0===this.modelChanged&&this.$emit("input",this.modelValue)):(this.$emit("cancel",this.modelValue,this.initialValue),!0!==this.modelChanged&&this.$emit("input",this.initialValue))),this.$emit("before-hide")},hide:()=>{this.$emit("hide")},keyup:t=>{!0===isKeyCode(t,13)&&this.set()}})},this.__getContent(t))}}),QPopupProxy=Vue.extend({name:"QPopupProxy",mixins:[AttrsMixin,ListenersMixin,AnchorMixin],props:{breakpoint:{type:[String,Number],default:450}},data(){const t=parseInt(this.breakpoint,10);return{type:this.$q.screen.width<t||this.$q.screen.height<t?"dialog":"menu"}},computed:{parsedBreakpoint(){return parseInt(this.breakpoint,10)},onEvents(){return{...this.qListeners,hide:this.__onHide}}},watch:{"$q.screen.width"(t){!0!==this.$refs.popup.showing&&this.__updateType(t,this.$q.screen.height,this.parsedBreakpoint)},"$q.screen.height"(t){!0!==this.$refs.popup.showing&&this.__updateType(this.$q.screen.width,t,this.parsedBreakpoint)},breakpoint(t){!0!==this.$refs.popup.showing&&this.__updateType(this.$q.screen.width,this.$q.screen.height,parseInt(t,10))}},methods:{toggle(t){this.$refs.popup.toggle(t)},show(t){this.$refs.popup.show(t)},hide(t){this.$refs.popup.hide(t)},__onHide(t){this.__updateType(this.$q.screen.width,this.$q.screen.height,this.parsedBreakpoint),this.$emit("hide",t)},__updateType(t,e,i){const s=t<i||e<i?"dialog":"menu";this.type!==s&&(this.type=s)}},render(t){const e=slot(this,"default"),i={ref:"popup",props:{..."menu"===this.type&&void 0!==e&&void 0!==e[0]&&void 0!==e[0].componentOptions&&void 0!==e[0].componentOptions.Ctor&&void 0!==e[0].componentOptions.Ctor.sealedOptions&&["QDate","QTime","QCarousel","QColor"].includes(e[0].componentOptions.Ctor.sealedOptions.name)?{cover:!0,maxHeight:"99vh"}:{},...this.qAttrs},on:this.onEvents};let s;return"dialog"===this.type?s=QDialog:(s=QMenu,i.props.target=this.target,i.props.contextMenu=this.contextMenu,i.props.noParentEvent=!0,i.props.separateClosePopup=!0),t(s,i,e)}});function width$1(t,e,i){return{transform:!0===e?`translateX(${!0===i.lang.rtl?"-":""}100%) scale3d(${-t},1,1)`:`scale3d(${t},1,1)`}}var QLinearProgress=Vue.extend({name:"QLinearProgress",mixins:[ListenersMixin,DarkMixin,getSizeMixin({xs:2,sm:4,md:6,lg:10,xl:14})],props:{value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,instantFeedback:Boolean},computed:{motion(){return!0===this.indeterminate||!0===this.query},widthReverse(){return this.reverse!==this.query},classes(){return"q-linear-progress"+(void 0!==this.color?` text-${this.color}`:"")+(!0===this.reverse||!0===this.query?" q-linear-progress--reverse":"")+(!0===this.rounded?" rounded-borders":"")},trackStyle(){return width$1(void 0!==this.buffer?this.buffer:1,this.widthReverse,this.$q)},transitionSuffix(){return`with${!0===this.instantFeedback?"out":""}-transition`},trackClass(){return`q-linear-progress__track absolute-full q-linear-progress__track--${this.transitionSuffix}`+` q-linear-progress__track--${!0===this.isDark?"dark":"light"}`+(void 0!==this.trackColor?` bg-${this.trackColor}`:"")},modelStyle(){return width$1(!0===this.motion?1:this.value,this.widthReverse,this.$q)},modelClasses(){return`q-linear-progress__model absolute-full q-linear-progress__model--${this.transitionSuffix}`+` q-linear-progress__model--${!0===this.motion?"in":""}determinate`},stripeStyle(){return{width:100*this.value+"%"}},stripeClass(){return`q-linear-progress__stripe q-linear-progress__stripe--${this.transitionSuffix}`+` absolute-${!0===this.reverse?"right":"left"}`},attrs(){return{role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":!0===this.indeterminate?void 0:this.value}}},render(t){const e=[t("div",{style:this.trackStyle,class:this.trackClass}),t("div",{style:this.modelStyle,class:this.modelClasses})];return!0===this.stripe&&!1===this.motion&&e.push(t("div",{style:this.stripeStyle,class:this.stripeClass})),t("div",{style:this.sizeStyle,class:this.classes,attrs:this.attrs,on:{...this.qListeners}},mergeSlot(e,this,"default"))}});const PULLER_HEIGHT=40,OFFSET_TOP=20;var QPullToRefresh=Vue.extend({name:"QPullToRefresh",mixins:[ListenersMixin],directives:{TouchPan:TouchPan},props:{color:String,bgColor:String,icon:String,noMouse:Boolean,disable:Boolean,scrollTarget:{default:void 0}},data:()=>({state:"pull",pullRatio:0,pulling:!1,pullPosition:-40,animating:!1,positionCSS:{}}),computed:{style(){return{opacity:this.pullRatio,transform:`translateY(${this.pullPosition}px) rotate(${360*this.pullRatio}deg)`}},classes(){return"q-pull-to-refresh__puller row flex-center"+(!0===this.animating?" q-pull-to-refresh__puller--animating":"")+(void 0!==this.bgColor?` bg-${this.bgColor}`:"")},directives(){if(!0!==this.disable){const t={down:!0};return!0!==this.noMouse&&(t.mouse=!0),[{name:"touch-pan",modifiers:t,value:this.__pull}]}},contentClass(){return`q-pull-to-refresh__content${!0===this.pulling?" no-pointer-events":""}`}},watch:{scrollTarget(){this.updateScrollTarget()}},methods:{trigger(){this.$emit("refresh",()=>{this.__animateTo({pos:-40,ratio:0},()=>{this.state="pull"})})},updateScrollTarget(){this.__scrollTarget=getScrollTarget(this.$el,this.scrollTarget)},__pull(t){if(!0===t.isFinal)return void(!0===this.pulling&&(this.pulling=!1,"pulled"===this.state?(this.state="refreshing",this.__animateTo({pos:20}),this.trigger()):"pull"===this.state&&this.__animateTo({pos:-40,ratio:0})));if(!0===this.animating||"refreshing"===this.state)return!1;if(!0===t.isFirst){if(0!==getScrollPosition(this.__scrollTarget)||"down"!==t.direction)return!0===this.pulling&&(this.pulling=!1,this.state="pull",this.__animateTo({pos:-40,ratio:0})),!1;this.pulling=!0;const{top:e,left:i}=this.$el.getBoundingClientRect();this.positionCSS={top:e+"px",left:i+"px",width:window.getComputedStyle(this.$el).getPropertyValue("width")}}prevent(t.evt);const e=Math.min(140,Math.max(0,t.distance.y));this.pullPosition=e-40,this.pullRatio=between(e/60,0,1);const i=this.pullPosition>20?"pulled":"pull";this.state!==i&&(this.state=i)},__animateTo({pos:t,ratio:e},i){this.animating=!0,this.pullPosition=t,void 0!==e&&(this.pullRatio=e),clearTimeout(this.timer),this.timer=setTimeout(()=>{this.animating=!1,i&&i()},300)}},mounted(){this.updateScrollTarget()},beforeDestroy(){clearTimeout(this.timer)},render(t){return t("div",{staticClass:"q-pull-to-refresh",on:{...this.qListeners},directives:this.directives},[t("div",{class:this.contentClass},slot(this,"default")),t("div",{staticClass:"q-pull-to-refresh__puller-container fixed row flex-center no-pointer-events z-top",style:this.positionCSS},[t("div",{style:this.style,class:this.classes},["refreshing"!==this.state?t(QIcon,{props:{name:this.icon||this.$q.iconSet.pullToRefresh.icon,color:this.color,size:"32px"}}):t(QSpinner,{props:{size:"24px",color:this.color}})])])])}});const dragType={MIN:0,RANGE:1,MAX:2};var QRange=Vue.extend({name:"QRange",mixins:[SliderMixin],props:{value:{type:Object,default:()=>({min:null,max:null}),validator:t=>"min"in t&&"max"in t},dragRange:Boolean,dragOnlyRange:Boolean,leftLabelColor:String,leftLabelTextColor:String,rightLabelColor:String,rightLabelTextColor:String,leftLabelValue:[String,Number],rightLabelValue:[String,Number],leftThumbColor:String,rightThumbColor:String},data(){const t=this.__getInnerMin(this.innerMin),e=this.__getInnerMax(this.innerMax);return{model:{min:null===this.value.min?t:between(this.value.min,t,e),max:null===this.value.max?e:between(this.value.max,t,e)},curMinRatio:0,curMaxRatio:0}},computed:{modelMinRatio(){return this.__convertModelToRatio(this.model.min)},modelMaxRatio(){return this.__convertModelToRatio(this.model.max)},ratioMin(){return!0===this.active?this.curMinRatio:this.modelMinRatio},ratioMax(){return!0===this.active?this.curMaxRatio:this.modelMaxRatio},selectionBarStyle(){const t={[this.positionProp]:`${100*this.ratioMin}%`,[this.sizeProp]:`${100*(this.ratioMax-this.ratioMin)}%`};return void 0!==this.selectionImg&&(t.backgroundImage=`url(${this.selectionImg}) !important`),t},trackContainerEvents(){if(!0!==this.editable)return{};if(!0===this.$q.platform.is.mobile)return{click:this.__onMobileClick};const t={mousedown:this.__onActivate};return!0!==this.dragRange&&!0!==this.dragOnlyRange||Object.assign(t,{focus:()=>{this.focus="both"},blur:this.__onBlur,keydown:this.__onKeydown,keyup:this.__onKeyup}),t},trackContainerAttrs(){return{tabindex:!0===this.$q.platform.is.mobile||!this.dragRange&&!0!==this.dragOnlyRange?null:this.computedTabindex}},thumbAttrs(){return{tabindex:!0!==this.dragOnlyRange?this.computedTabindex:null}},thumbMinEvents(){return this.__getEvents("min")},thumbMaxEvents(){return this.__getEvents("max")},thumbMinLabel(){return void 0!==this.leftLabelValue?this.leftLabelValue:this.model.min},thumbMaxLabel(){return void 0!==this.rightLabelValue?this.rightLabelValue:this.model.max},thumbMinClasses(){const t=this.leftThumbColor||this.thumbColor||this.color;return`q-slider__thumb q-slider__thumb${this.axis} q-slider__thumb${this.axis}-${!0===this.isReversed?"rtl":"ltr"} absolute non-selectable`+(!1!==this.preventFocus||"min"!==this.focus&&"both"!==this.focus?"":" q-slider--focus")+(void 0!==t?` text-${t}`:"")},thumbMaxClasses(){const t=this.rightThumbColor||this.thumbColor||this.color;return`q-slider__thumb q-slider__thumb${this.axis} q-slider__thumb${this.axis}-${!0===this.isReversed?"rtl":"ltr"} absolute non-selectable`+(!1!==this.preventFocus||"max"!==this.focus&&"both"!==this.focus?"":" q-slider--focus")+(void 0!==t?` text-${t}`:"")},thumbMinStyle(){return{width:this.thumbSize,height:this.thumbSize,[this.positionProp]:`${100*this.ratioMin}%`,zIndex:"min"===this.focus?2:void 0}},thumbMaxStyle(){return{width:this.thumbSize,height:this.thumbSize,[this.positionProp]:`${100*this.ratioMax}%`,zIndex:"max"===this.focus?2:void 0}},thumbMinPinColor(){const t=this.leftLabelColor||this.labelColor;return void 0!==t?` text-${t}`:""},thumbMaxPinColor(){const t=this.rightLabelColor||this.labelColor;return void 0!==t?` text-${t}`:""},thumbMinTextContainerStyle(){return this.__getTextContainerStyle(this.ratioMin)},thumbMaxTextContainerStyle(){return this.__getTextContainerStyle(this.ratioMax)},thumbMinTextClass(){const t=this.leftLabelTextColor||this.labelTextColor;return"q-slider__text"+(void 0!==t?` text-${t}`:"")},thumbMaxTextClass(){const t=this.rightLabelTextColor||this.labelTextColor;return"q-slider__text"+(void 0!==t?` text-${t}`:"")},formAttrs(){return{type:"hidden",name:this.name,value:`${this.value.min}|${this.value.max}`}},modelUpdate(){return`${this.value.min}|${this.value.max}|${this.computedInnerMin}|${this.computedInnerMax}`}},watch:{modelUpdate(){this.model.min=null===this.value.min?this.computedInnerMin:between(this.value.min,this.computedInnerMin,this.computedInnerMax),this.model.max=null===this.value.max?this.computedInnerMax:between(this.value.max,this.computedInnerMin,this.computedInnerMax)}},methods:{__updateValue(t){this.model.min===this.value.min&&this.model.max===this.value.max||this.$emit("input",{...this.model}),!0===t&&this.$emit("change",{...this.model})},__getDragging(t){const{left:e,top:i,width:s,height:o}=this.$el.getBoundingClientRect(),n=!0===this.dragOnlyRange?0:!0===this.vertical?this.$refs.minThumb.offsetHeight/(2*o):this.$refs.minThumb.offsetWidth/(2*s),r={left:e,top:i,width:s,height:o,valueMin:this.model.min,valueMax:this.model.max,ratioMin:this.modelMinRatio,ratioMax:this.modelMaxRatio},a=this.__getDraggingRatio(t,r);return!0!==this.dragOnlyRange&&a<r.ratioMin+n?r.type=dragType.MIN:!0===this.dragOnlyRange||a<r.ratioMax-n?!0===this.dragRange||!0===this.dragOnlyRange?(r.type=dragType.RANGE,Object.assign(r,{offsetRatio:a,offsetModel:this.__convertRatioToModel(a),rangeValue:r.valueMax-r.valueMin,rangeRatio:r.ratioMax-r.ratioMin})):r.type=r.ratioMax-a<a-r.ratioMin?dragType.MAX:dragType.MIN:r.type=dragType.MAX,r},__updatePosition(t,e=this.dragging){let i;const s=this.__getDraggingRatio(t,e),o=this.__convertRatioToModel(s);switch(e.type){case dragType.MIN:s<=e.ratioMax?(i={minR:s,maxR:e.ratioMax,min:o,max:e.valueMax},this.focus="min"):(i={minR:e.ratioMax,maxR:s,min:e.valueMax,max:o},this.focus="max");break;case dragType.MAX:s>=e.ratioMin?(i={minR:e.ratioMin,maxR:s,min:e.valueMin,max:o},this.focus="max"):(i={minR:s,maxR:e.ratioMin,min:o,max:e.valueMin},this.focus="min");break;case dragType.RANGE:const t=s-e.offsetRatio,n=between(e.ratioMin+t,0,1-e.rangeRatio),r=o-e.offsetModel,a=between(e.valueMin+r,this.min,this.max-e.rangeValue);i={minR:n,maxR:n+e.rangeRatio,min:parseFloat(a.toFixed(this.computedDecimals)),max:parseFloat((a+e.rangeValue).toFixed(this.computedDecimals))},this.focus="both"}this.model=null===this.model.min||null===this.model.max?{min:i.min||this.min,max:i.max||this.max}:{min:i.min,max:i.max},!0!==this.snap||0===this.step?(this.curMinRatio=i.minR,this.curMaxRatio=i.maxR):(this.curMinRatio=this.__convertModelToRatio(this.model.min),this.curMaxRatio=this.__convertModelToRatio(this.model.max))},__getEvents(t){return!0!==this.$q.platform.is.mobile&&!0===this.editable&&!0!==this.dragOnlyRange?{focus:()=>{this.focus=t},blur:this.__onBlur,keydown:this.__onKeydown,keyup:this.__onKeyup}:{}},__onKeydown(t){if(!keyCodes.includes(t.keyCode))return;stopAndPrevent(t);const e=([34,33].includes(t.keyCode)?10:1)*this.computedStep,i=([34,37,40].includes(t.keyCode)?-1:1)*(!0===this.isReversed?-1:1)*(!0===this.vertical?-1:1)*e;if("both"===this.focus){const t=this.model.max-this.model.min,e=between(parseFloat((this.model.min+i).toFixed(this.computedDecimals)),this.computedInnerMin,this.computedInnerMax-t);this.model={min:e,max:parseFloat((e+t).toFixed(this.computedDecimals))}}else{if(!1===this.focus)return;{const t=this.focus;this.model={...this.model,[t]:between(parseFloat((this.model[t]+i).toFixed(this.computedDecimals)),"min"===t?this.computedInnerMin:this.model.min,"max"===t?this.computedInnerMax:this.model.max)}}}this.__updateValue()}},render(t){const e=this.__getContent(t,e=>{e.push(this.__getThumb(t,{pinColor:this.thumbMinPinColor,textContainerStyle:this.thumbMinTextContainerStyle,textClass:this.thumbMinTextClass,label:this.thumbMinLabel,classes:this.thumbMinClasses,style:this.thumbMinStyle,nodeData:{ref:"minThumb",key:"tmin",on:this.thumbMinEvents,attrs:this.thumbAttrs}}),this.__getThumb(t,{pinColor:this.thumbMaxPinColor,textContainerStyle:this.thumbMaxTextContainerStyle,textClass:this.thumbMaxTextClass,label:this.thumbMaxLabel,classes:this.thumbMaxClasses,style:this.thumbMaxStyle,nodeData:{key:"tmax",on:this.thumbMaxEvents,attrs:this.thumbAttrs}}))});return t("div",{class:"q-range "+this.classes+(null===this.value.min||null===this.value.max?" q-slider--no-value":""),attrs:{...this.attributes,"aria-valuenow":this.value.min+"|"+this.value.max}},e)}}),QRating=Vue.extend({name:"QRating",mixins:[SizeMixin,FormMixin,ListenersMixin],props:{value:{type:Number,required:!0},max:{type:[String,Number],default:5},icon:[String,Array],iconHalf:[String,Array],iconSelected:[String,Array],iconAriaLabel:[String,Array],color:[String,Array],colorHalf:[String,Array],colorSelected:[String,Array],noReset:Boolean,noDimming:Boolean,readonly:Boolean,disable:Boolean},data:()=>({mouseModel:0}),computed:{editable(){return!0!==this.readonly&&!0!==this.disable},classes(){return`q-rating--${!0===this.editable?"":"non-"}editable`+(!0===this.noDimming?" q-rating--no-dimming":"")+(!0===this.disable?" disabled":"")+(void 0!==this.color&&!1===Array.isArray(this.color)?` text-${this.color}`:"")},iconData(){const t=!0===Array.isArray(this.icon)?this.icon.length:0,e=!0===Array.isArray(this.iconSelected)?this.iconSelected.length:0,i=!0===Array.isArray(this.iconHalf)?this.iconHalf.length:0,s=!0===Array.isArray(this.color)?this.color.length:0,o=!0===Array.isArray(this.colorSelected)?this.colorSelected.length:0,n=!0===Array.isArray(this.colorHalf)?this.colorHalf.length:0;return{iconLen:t,icon:t>0?this.icon[t-1]:this.icon,selIconLen:e,selIcon:e>0?this.iconSelected[e-1]:this.iconSelected,halfIconLen:i,halfIcon:i>0?this.iconHalf[e-1]:this.iconHalf,colorLen:s,color:s>0?this.color[s-1]:this.color,selColorLen:o,selColor:o>0?this.colorSelected[o-1]:this.colorSelected,halfColorLen:n,halfColor:n>0?this.colorHalf[n-1]:this.colorHalf}},iconLabel(){if("string"==typeof this.iconAriaLabel){const t=this.iconAriaLabel.length>0?`${this.iconAriaLabel} `:"";return e=>`${t}${e}`}if(!0===Array.isArray(this.iconAriaLabel)){const t=this.iconAriaLabel.length;if(t>0)return e=>this.iconAriaLabel[Math.min(e,t)-1]}return(t,e)=>`${e} ${t}`},stars(){const t=[],e=this.iconData,i=Math.ceil(this.value),s=!0===this.editable?0:null,o=void 0===this.iconHalf||i===this.value?-1:i;for(let n=1;n<=this.max;n++){const r=0===this.mouseModel&&this.value>=n||this.mouseModel>0&&this.mouseModel>=n,a=o===n&&this.mouseModel<n,l=this.mouseModel>0&&(!0===a?i:this.value)>=n&&this.mouseModel<n,h=!0===a?n<=e.halfColorLen?this.colorHalf[n-1]:e.halfColor:void 0!==e.selColor&&!0===r?n<=e.selColorLen?this.colorSelected[n-1]:e.selColor:n<=e.colorLen?this.color[n-1]:e.color,d=(!0===a?n<=e.halfIconLen?this.iconHalf[n-1]:e.halfIcon:void 0===e.selIcon||!0!==r&&!0!==l?n<=e.iconLen?this.icon[n-1]:e.icon:n<=e.selIconLen?this.iconSelected[n-1]:e.selIcon)||this.$q.iconSet.rating.icon;t.push({name:d,attrs:{tabindex:s,role:"radio","aria-checked":this.value===n?"true":"false","aria-label":this.iconLabel(n,d)},classes:"q-rating__icon"+(!0===r||!0===a?" q-rating__icon--active":"")+(!0===l?" q-rating__icon--exselected":"")+(this.mouseModel===n?" q-rating__icon--hovered":"")+(void 0!==h?` text-${h}`:"")})}return t},attrs(){const t={role:"radiogroup"};return!0===this.disable&&(t["aria-disabled"]="true"),!0===this.readonly&&(t["aria-readonly"]="true"),t}},methods:{__set(t){if(!0===this.editable){const e=between(parseInt(t,10),1,parseInt(this.max,10)),i=!0!==this.noReset&&this.value===e?0:e;i!==this.value&&this.$emit("input",i),this.mouseModel=0}},__setHoverValue(t){!0===this.editable&&(this.mouseModel=t)},__keyup(t,e){switch(t.keyCode){case 13:case 32:return this.__set(e),stopAndPrevent(t);case 37:case 40:return this.$refs[`rt${e-1}`]&&this.$refs[`rt${e-1}`].focus(),stopAndPrevent(t);case 39:case 38:return this.$refs[`rt${e+1}`]&&this.$refs[`rt${e+1}`].focus(),stopAndPrevent(t)}}},render(t){const e=[];return this.stars.forEach(({classes:i,name:s,attrs:o},n)=>{const r=n+1;e.push(t("div",{key:r,ref:`rt${r}`,class:"q-rating__icon-container flex flex-center",attrs:o,on:cache(this,"i#"+r,{click:()=>{this.__set(r)},mouseover:()=>{this.__setHoverValue(r)},mouseout:()=>{this.mouseModel=0},focus:()=>{this.__setHoverValue(r)},blur:()=>{this.mouseModel=0},keyup:t=>{this.__keyup(t,r)}})},mergeSlot([t(QIcon,{class:i,props:{name:s}})],this,`tip-${r}`)))}),void 0!==this.name&&!0!==this.disable&&this.__injectFormInput(e,"push"),t("div",{staticClass:"q-rating row inline items-center",class:this.classes,style:this.sizeStyle,attrs:this.attrs,on:{...this.qListeners}},e)}}),QResponsive=Vue.extend({name:"QResponsive",mixins:[RatioMixin,ListenersMixin],render(t){return t("div",{staticClass:"q-responsive",on:{...this.qListeners}},[t("div",{staticClass:"q-responsive__filler overflow-hidden"},[t("div",{style:this.ratioStyle})]),t("div",{staticClass:"q-responsive__content absolute-full fit"},slot(this,"default"))])}});const getMinThumbSize=t=>t>=250?50:Math.ceil(t/5),axisList=["vertical","horizontal"],dirProps={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}};var QScrollArea=Vue.extend({name:"QScrollArea",mixins:[DarkMixin],directives:{TouchPan:TouchPan},props:{thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},horizontal:Boolean,tabindex:[String,Number]},data:()=>({tempShowing:!1,panning:!1,hover:!1,container:{vertical:0,horizontal:0},scroll:{vertical:{position:0,size:0},horizontal:{position:0,size:0}}}),computed:{classes(){return"q-scrollarea"+(!0===this.isDark?" q-scrollarea--dark":"")},verticalScrollPercentage(){const t=this.scroll.vertical.size-this.container.vertical;if(t<=0)return 0;const e=between(this.scroll.vertical.position/t,0,1);return Math.round(1e4*e)/1e4},horizontalScrollPercentage(){const t=this.scroll.horizontal.size-this.container.horizontal;if(t<=0)return 0;const e=between(Math.abs(this.scroll.horizontal.position)/t,0,1);return Math.round(1e4*e)/1e4},verticalThumbHidden(){return!0!==(null===this.visible?this.hover:this.visible)&&!1===this.tempShowing&&!1===this.panning||this.scroll.vertical.size<=this.container.vertical+1},horizontalThumbHidden(){return!0!==(null===this.visible?this.hover:this.visible)&&!1===this.tempShowing&&!1===this.panning||this.scroll.horizontal.size<=this.container.horizontal+1},verticalThumbStart(){return this.verticalScrollPercentage*(this.container.vertical-this.verticalThumbSize)},horizontalThumbStart(){return this.horizontalScrollPercentage*(this.container.horizontal-this.horizontalThumbSize)},verticalThumbSize(){return Math.round(between(this.container.vertical*this.container.vertical/this.scroll.vertical.size,getMinThumbSize(this.container.vertical),this.container.vertical))},horizontalThumbSize(){return Math.round(between(this.container.horizontal*this.container.horizontal/this.scroll.horizontal.size,getMinThumbSize(this.container.horizontal),this.container.horizontal))},verticalStyle(){return{...this.thumbStyle,...this.verticalThumbStyle,top:`${this.verticalThumbStart}px`,height:`${this.verticalThumbSize}px`}},horizontalStyle(){return{...this.thumbStyle,...this.horizontalThumbStyle,[!0===this.$q.lang.rtl?"right":"left"]:`${this.horizontalThumbStart}px`,width:`${this.horizontalThumbSize}px`}},verticalThumbClass(){return"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(!0===this.verticalThumbHidden?" q-scrollarea__thumb--invisible":"")},horizontalThumbClass(){return"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(!0===this.horizontalThumbHidden?" q-scrollarea__thumb--invisible":"")},verticalBarClass(){return"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(!0===this.verticalThumbHidden?" q-scrollarea__bar--invisible":"")},horizontalBarClass(){return"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(!0===this.horizontalThumbHidden?" q-scrollarea__bar--invisible":"")},scrollComputed(){return{vertical:{...this.scroll.vertical,percentage:this.verticalScrollPercentage,thumbHidden:this.verticalThumbHidden,thumbStart:this.verticalThumbStart,thumbSize:this.verticalThumbSize,style:this.verticalStyle,thumbClass:this.verticalThumbClass,barClass:this.verticalBarClass},horizontal:{...this.scroll.horizontal,percentage:this.horizontalScrollPercentage,thumbHidden:this.horizontalThumbHidden,thumbStart:this.horizontalThumbStart,thumbSize:this.horizontalThumbSize,style:this.horizontalStyle,thumbClass:this.horizontalThumbClass,barClass:this.horizontalBarClass}}},mainStyle(){return!0===this.verticalThumbHidden&&!0===this.horizontalThumbHidden?this.contentStyle:this.contentActiveStyle},verticalThumbDirectives(){return[{name:"touch-pan",modifiers:{vertical:!0,prevent:!0,mouse:!0,mouseAllDir:!0},value:t=>{this.__panThumb(t,"vertical")}}]},horizontalThumbDirectives(){return[{name:"touch-pan",modifiers:{horizontal:!0,prevent:!0,mouse:!0,mouseAllDir:!0},value:t=>{this.__panThumb(t,"horizontal")}}]},scrollAttrs(){if(void 0!==this.tabindex)return{tabindex:this.tabindex}}},watch:{"$q.lang.rtl"(t){this.setScrollPosition("horizontal",Math.abs(this.scroll.horizontal.position)*(!0===t?-1:1))}},methods:{getScrollTarget(){return this.$refs.target},getScroll(){const t={};return axisList.forEach(e=>{const i=this.scrollComputed[e];t[e+"Position"]=i.position,t[e+"Percentage"]=i.percentage,t[e+"Size"]=i.size,t[e+"ContainerSize"]=this.container[e]}),t},getScrollPosition(t){return"both"===t?{top:this.scroll.vertical.position,left:this.scroll.horizontal.position}:(!0!==axisList.includes(t)&&(t=!0===this.horizontal?"horizontal":"vertical"),this.scroll[t].position)},getScrollPercentage(t){return"both"===t?{top:this.verticalScrollPercentage,left:this.horizontalScrollPercentage}:(!0!==axisList.includes(t)&&(t=!0===this.horizontal?"horizontal":"vertical"),this[`${t}ScrollPercentage`])},setScrollPosition(t,e,i){if(!1===axisList.includes(t)){if(!0===isNaN(t))return void console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");[t,e,i]=[!0===this.horizontal?"horizontal":"vertical",t,e]}("vertical"===t?setVerticalScrollPosition:setHorizontalScrollPosition)(this.$refs.target,e,i)},setScrollPercentage(t,e,i){if(!1===axisList.includes(t)){if(!0===isNaN(t))return void console.error("[QScrollArea]: wrong first param of setScrollPercentage (vertical/horizontal)");[t,e,i]=[!0===this.horizontal?"horizontal":"vertical",t,e]}this.setScrollPosition(t,e*(this.scroll[t].size-this.container[t])*("horizontal"===t&&!0===this.$q.lang.rtl?-1:1),i)},__updateContainer({height:t,width:e}){let i=!1;this.container.vertical!==t&&(this.container.vertical=t,i=!0),this.container.horizontal!==e&&(this.container.horizontal=e,i=!0),!0===i&&this.__startTimer()},__updateVerticalScroll({position:t}){this.scroll.vertical.position!==t&&(this.scroll.vertical.position=t,this.__startTimer())},__updateHorizontalScroll({position:t}){this.scroll.horizontal.position!==t&&(this.scroll.horizontal.position=t,this.__startTimer())},__updateScrollSize({height:t,width:e}){let i=!1;this.scroll.horizontal.size!==e&&(this.scroll.horizontal.size=e,i=!0),this.scroll.vertical.size!==t&&(this.scroll.vertical.size=t,i=!0),!0===i&&this.__startTimer()},__panThumb(t,e){const i=this.scrollComputed[e];if(!0===t.isFinal){if(!0!==this.panning)return;this.panning=!1}else if(!0===t.isFirst){if(!0===i.thumbHidden)return;this.refPos=i.position,this.panning=!0}else if(!0!==this.panning)return;const s=dirProps[e],o=this.container[e],n=(i.size-o)/(o-i.thumbSize),r=t.distance[s.dist],a=this.refPos+(t.direction===s.dir?1:-1)*r*n;this.__setScroll(a,e)},__mouseDown(t,e){const i=this.scrollComputed[e];if(!0!==i.thumbHidden){const s=t[dirProps[e].offset];if(s<i.thumbStart||s>i.thumbStart+i.thumbSize){const t=s-i.thumbSize/2;this.__setScroll(t/this.container[e]*i.size,e)}const o="vertical"===e?this.$refs.verticalThumb:this.$refs.horizontalThumb;void 0!==o&&o.dispatchEvent(new MouseEvent(t.type,t))}},__verticalMouseDown(t){this.__mouseDown(t,"vertical")},__horizontalMouseDown(t){this.__mouseDown(t,"horizontal")},__startTimer(){!0===this.tempShowing?clearTimeout(this.timer):this.tempShowing=!0,this.timer=setTimeout(()=>{this.tempShowing=!1},this.delay),void 0!==this.$listeners.scroll&&this.__emitScroll()},__setScroll(t,e){this.$refs.target[dirProps[e].scroll]=t},__mouseEnter(){this.hover=!0},__mouseLeave(){this.hover=!1}},render(t){return t("div",{class:this.classes,on:cache(this,"desk",{mouseenter:this.__mouseEnter,mouseleave:this.__mouseLeave})},[t("div",{ref:"target",staticClass:"q-scrollarea__container scroll relative-position fit hide-scrollbar",attrs:this.scrollAttrs},[t("div",{staticClass:"q-scrollarea__content absolute",style:this.mainStyle},mergeSlot([t(QResizeObserver,{props:{debounce:0},on:cache(this,"resizeIn",{resize:this.__updateScrollSize})})],this,"default")),t(QScrollObserver,{on:cache(this,"scrollV",{scroll:this.__updateVerticalScroll})}),t(QScrollObserver,{props:{horizontal:!0},on:cache(this,"scrollH",{scroll:this.__updateHorizontalScroll})})]),t(QResizeObserver,{props:{debounce:0},on:cache(this,"resizeOut",{resize:this.__updateContainer})}),t("div",{class:this.verticalBarClass,style:[this.barStyle,this.verticalBarStyle],attrs:ariaHidden,on:cache(this,"barV",{mousedown:this.__verticalMouseDown})}),t("div",{class:this.horizontalBarClass,style:[this.barStyle,this.horizontalBarStyle],attrs:ariaHidden,on:cache(this,"barH",{mousedown:this.__horizontalMouseDown})}),t("div",{ref:"verticalThumb",class:this.verticalThumbClass,style:this.verticalStyle,attrs:ariaHidden,directives:this.verticalThumbDirectives}),t("div",{ref:"horizontalThumb",class:this.horizontalThumbClass,style:this.horizontalStyle,attrs:ariaHidden,directives:this.horizontalThumbDirectives})])},created(){this.__emitScroll=debounce(()=>{const t=this.getScroll();t.ref=this,this.$emit("scroll",t)},0)},activated(){if(void 0===this.__scrollPosition)return;const t=this.getScrollTarget();void 0!==t&&(setHorizontalScrollPosition(t,this.__scrollPosition.left),setVerticalScrollPosition(t,this.__scrollPosition.top))},deactivated(){this.__scrollPosition=this.getScrollPosition("both")},beforeDestroy(){this.__emitScroll.cancel(),clearTimeout(this.timer)}});const aggBucketSize=1e3,scrollToEdges=["start","center","end","start-force","center-force","end-force"],filterProto=Array.prototype.filter;function sumFn(t,e){return t+e}function getScrollDetails(t,e,i,s,o,n,r,a){const l=t===window?document.scrollingElement||document.documentElement:t,h=!0===o?"offsetWidth":"offsetHeight",d={scrollStart:0,scrollViewSize:-r-a,scrollMaxSize:0,offsetStart:-r,offsetEnd:-a};if(!0===o?(t===window?(d.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,d.scrollViewSize+=document.documentElement.clientWidth):(d.scrollStart=l.scrollLeft,d.scrollViewSize+=l.clientWidth),d.scrollMaxSize=l.scrollWidth,!0===n&&(d.scrollStart=(!0===rtlHasScrollBug()?d.scrollMaxSize-d.scrollViewSize:0)-d.scrollStart)):(t===window?(d.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,d.scrollViewSize+=document.documentElement.clientHeight):(d.scrollStart=l.scrollTop,d.scrollViewSize+=l.clientHeight),d.scrollMaxSize=l.scrollHeight),void 0!==i)for(let t=i.previousElementSibling;null!==t;t=t.previousElementSibling)!1===t.classList.contains("q-virtual-scroll--skip")&&(d.offsetStart+=t[h]);if(void 0!==s)for(let t=s.nextElementSibling;null!==t;t=t.nextElementSibling)!1===t.classList.contains("q-virtual-scroll--skip")&&(d.offsetEnd+=t[h]);if(e!==t){const i=l.getBoundingClientRect(),s=e.getBoundingClientRect();!0===o?(d.offsetStart+=s.left-i.left,d.offsetEnd-=s.width):(d.offsetStart+=s.top-i.top,d.offsetEnd-=s.height),t!==window&&(d.offsetStart+=d.scrollStart),d.offsetEnd+=d.scrollMaxSize-d.offsetStart}return d}function setScroll$1(t,e,i,s){"end"===e&&(e=(t===window?document.body:t)[!0===i?"scrollWidth":"scrollHeight"]),t===window?!0===i?(!0===s&&(e=(!0===rtlHasScrollBug()?document.body.scrollWidth-document.documentElement.clientWidth:0)-e),window.scrollTo(e,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,e):!0===i?(!0===s&&(e=(!0===rtlHasScrollBug()?t.scrollWidth-t.offsetWidth:0)-e),t.scrollLeft=e):t.scrollTop=e}function sumSize(t,e,i,s){if(i>=s)return 0;const o=e.length,n=Math.floor(i/aggBucketSize),r=Math.floor((s-1)/aggBucketSize)+1;let a=t.slice(n,r).reduce(sumFn,0);return i%aggBucketSize!=0&&(a-=e.slice(n*aggBucketSize,i).reduce(sumFn,0)),s%aggBucketSize!=0&&s!==o&&(a-=e.slice(s,r*aggBucketSize).reduce(sumFn,0)),a}const commonVirtScrollProps={virtualScrollSliceSize:{type:[Number,String],default:null},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]};function setOverflowAnchor(t,e){void 0===setOverflowAnchor.isSupported&&(setOverflowAnchor.isSupported=void 0!==window.getComputedStyle(document.body).overflowAnchor),!1!==setOverflowAnchor.isSupported&&void 0!==t&&(cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(void 0===t)return;const i=t.children||[];filterProto.call(i,t=>t.dataset&&void 0!==t.dataset.qVsAnchor).forEach(t=>{delete t.dataset.qVsAnchor});const s=i[e];s&&s.dataset&&(s.dataset.qVsAnchor="")}))}const commonVirtPropsList=Object.keys(commonVirtScrollProps);var VirtualScroll={props:{virtualScrollHorizontal:Boolean,...commonVirtScrollProps},data:()=>({virtualScrollSliceRange:{from:0,to:0}}),watch:{needsSliceRecalc(){this.__setVirtualScrollSize()},needsReset(){this.reset()}},computed:{needsReset(){return["virtualScrollItemSizeComputed","virtualScrollHorizontal"].map(t=>this[t]).join(";")},needsSliceRecalc(){return this.needsReset+";"+["virtualScrollSliceRatioBefore","virtualScrollSliceRatioAfter"].map(t=>this[t]).join(";")},colspanAttr(){return void 0!==this.tableColspan?{colspan:this.tableColspan}:{colspan:100}},virtualScrollItemSizeComputed(){return this.virtualScrollItemSize}},methods:{reset(){this.__resetVirtualScroll(this.prevToIndex,!0)},refresh(t){this.__resetVirtualScroll(void 0===t?this.prevToIndex:t)},scrollTo(t,e){const i=this.__getVirtualScrollTarget();if(void 0===i||null===i||8===i.nodeType)return;const s=getScrollDetails(i,this.__getVirtualScrollEl(),this.$refs.before,this.$refs.after,this.virtualScrollHorizontal,this.$q.lang.rtl,this.virtualScrollStickySizeStart,this.virtualScrollStickySizeEnd);this.__scrollViewSize!==s.scrollViewSize&&this.__setVirtualScrollSize(s.scrollViewSize),this.__setVirtualScrollSliceRange(i,s,Math.min(this.virtualScrollLength-1,Math.max(0,parseInt(t,10)||0)),0,scrollToEdges.indexOf(e)>-1?e:this.prevToIndex>-1&&t>this.prevToIndex?"end":"start")},__onVirtualScrollEvt(){const t=this.__getVirtualScrollTarget();if(void 0===t||null===t||8===t.nodeType)return;const e=getScrollDetails(t,this.__getVirtualScrollEl(),this.$refs.before,this.$refs.after,this.virtualScrollHorizontal,this.$q.lang.rtl,this.virtualScrollStickySizeStart,this.virtualScrollStickySizeEnd),i=this.virtualScrollLength-1,s=e.scrollMaxSize-e.offsetStart-e.offsetEnd-this.virtualScrollPaddingAfter;if(this.prevScrollStart===e.scrollStart)return;if(e.scrollMaxSize<=0)return void this.__setVirtualScrollSliceRange(t,e,0,0);this.__scrollViewSize!==e.scrollViewSize&&this.__setVirtualScrollSize(e.scrollViewSize),this.__updateVirtualScrollSizes(this.virtualScrollSliceRange.from);const o=Math.floor(e.scrollMaxSize-Math.max(e.scrollViewSize,e.offsetEnd)-Math.min(this.virtualScrollSizes[i],e.scrollViewSize/2));if(o>0&&Math.ceil(e.scrollStart)>=o)return void this.__setVirtualScrollSliceRange(t,e,i,e.scrollMaxSize-e.offsetEnd-this.virtualScrollSizesAgg.reduce(sumFn,0));let n=0,r=e.scrollStart-e.offsetStart,a=r;if(r<=s&&r+e.scrollViewSize>=this.virtualScrollPaddingBefore)r-=this.virtualScrollPaddingBefore,n=this.virtualScrollSliceRange.from,a=r;else for(let t=0;r>=this.virtualScrollSizesAgg[t]&&n<i;t++)r-=this.virtualScrollSizesAgg[t],n+=aggBucketSize;for(;r>0&&n<i;)(r-=this.virtualScrollSizes[n])>-e.scrollViewSize?(n++,a=r):a=this.virtualScrollSizes[n]+r;this.__setVirtualScrollSliceRange(t,e,n,a)},__setVirtualScrollSliceRange(t,e,i,s,o){const n="string"==typeof o&&o.indexOf("-force")>-1,r=!0===n?o.replace("-force",""):o,a=void 0!==r?r:"start";let l=Math.max(0,i-this.virtualScrollSliceSizeComputed[a]),h=l+this.virtualScrollSliceSizeComputed.total;h>this.virtualScrollLength&&(h=this.virtualScrollLength,l=Math.max(0,h-this.virtualScrollSliceSizeComputed.total)),this.prevScrollStart=e.scrollStart;const d=l!==this.virtualScrollSliceRange.from||h!==this.virtualScrollSliceRange.to;if(!1===d&&void 0===r)return void this.__emitScroll(i);const{activeElement:c}=document,u=this.$refs.content;!0===d&&void 0!==u&&u!==c&&!0===u.contains(c)&&(u.addEventListener("focusout",this.__onBlurRefocusFn),setTimeout(()=>{void 0!==u&&u.removeEventListener("focusout",this.__onBlurRefocusFn)})),setOverflowAnchor(u,i-l);const p=void 0!==r?this.virtualScrollSizes.slice(l,i).reduce(sumFn,0):0;if(!0===d){const t=h>=this.virtualScrollSliceRange.from&&l<=this.virtualScrollSliceRange.to?this.virtualScrollSliceRange.to:h;this.virtualScrollSliceRange={from:l,to:t},this.virtualScrollPaddingBefore=sumSize(this.virtualScrollSizesAgg,this.virtualScrollSizes,0,l),this.virtualScrollPaddingAfter=sumSize(this.virtualScrollSizesAgg,this.virtualScrollSizes,this.virtualScrollSliceRange.to,this.virtualScrollLength),requestAnimationFrame(()=>{this.virtualScrollSliceRange.to!==h&&this.prevScrollStart===e.scrollStart&&(this.virtualScrollSliceRange={from:this.virtualScrollSliceRange.from,to:h},this.virtualScrollPaddingAfter=sumSize(this.virtualScrollSizesAgg,this.virtualScrollSizes,h,this.virtualScrollLength))})}requestAnimationFrame(()=>{if(this.prevScrollStart!==e.scrollStart)return;!0===d&&this.__updateVirtualScrollSizes(l);const o=this.virtualScrollSizes.slice(l,i).reduce(sumFn,0),a=o+e.offsetStart+this.virtualScrollPaddingBefore,h=a+this.virtualScrollSizes[i];let c=a+s;if(void 0!==r){const t=o-p,s=e.scrollStart+t;c=!0!==n&&s<a&&h<s+e.scrollViewSize?s:"end"===r?h-e.scrollViewSize:a-("start"===r?0:Math.round((e.scrollViewSize-this.virtualScrollSizes[i])/2))}this.prevScrollStart=c,setScroll$1(t,c,this.virtualScrollHorizontal,this.$q.lang.rtl),this.__emitScroll(i)})},__updateVirtualScrollSizes(t){const e=this.$refs.content;if(void 0!==e){const i=filterProto.call(e.children||[],t=>t.classList&&!1===t.classList.contains("q-virtual-scroll--skip")),s=i.length,o=!0===this.virtualScrollHorizontal?t=>t.getBoundingClientRect().width:t=>t.offsetHeight;let n,r,a=t;for(let t=0;t<s;){for(n=o(i[t]),t++;t<s&&!0===i[t].classList.contains("q-virtual-scroll--with-prev");)n+=o(i[t]),t++;0!==(r=n-this.virtualScrollSizes[a])&&(this.virtualScrollSizes[a]+=r,this.virtualScrollSizesAgg[Math.floor(a/aggBucketSize)]+=r),a++}}},__resetVirtualScroll(t,e){const i=1*this.virtualScrollItemSizeComputed;!0!==e&&!1!==Array.isArray(this.virtualScrollSizes)||(this.virtualScrollSizes=[]);const s=this.virtualScrollSizes.length;this.virtualScrollSizes.length=this.virtualScrollLength;for(let t=this.virtualScrollLength-1;t>=s;t--)this.virtualScrollSizes[t]=i;const o=Math.floor((this.virtualScrollLength-1)/aggBucketSize);this.virtualScrollSizesAgg=[];for(let t=0;t<=o;t++){let e=0;const i=Math.min((t+1)*aggBucketSize,this.virtualScrollLength);for(let s=t*aggBucketSize;s<i;s++)e+=this.virtualScrollSizes[s];this.virtualScrollSizesAgg.push(e)}this.prevToIndex=-1,this.prevScrollStart=void 0,this.virtualScrollPaddingBefore=sumSize(this.virtualScrollSizesAgg,this.virtualScrollSizes,0,this.virtualScrollSliceRange.from),this.virtualScrollPaddingAfter=sumSize(this.virtualScrollSizesAgg,this.virtualScrollSizes,this.virtualScrollSliceRange.to,this.virtualScrollLength),t>=0?(this.__updateVirtualScrollSizes(this.virtualScrollSliceRange.from),this.$nextTick(()=>{this.scrollTo(t)})):this.__onVirtualScrollEvt()},__setVirtualScrollSize(t){if(void 0===t&&"undefined"!=typeof window){const e=this.__getVirtualScrollTarget();void 0!==e&&null!==e&&8!==e.nodeType&&(t=getScrollDetails(e,this.__getVirtualScrollEl(),this.$refs.before,this.$refs.after,this.virtualScrollHorizontal,this.$q.lang.rtl,this.virtualScrollStickySizeStart,this.virtualScrollStickySizeEnd).scrollViewSize)}this.__scrollViewSize=t;const e=parseFloat(this.virtualScrollSliceRatioBefore)||0,i=1+e+(parseFloat(this.virtualScrollSliceRatioAfter)||0),s=void 0===t||t<=0?1:Math.ceil(t/this.virtualScrollItemSizeComputed),o=Math.max(1,s,Math.ceil((this.virtualScrollSliceSize>0?this.virtualScrollSliceSize:10)/i));this.virtualScrollSliceSizeComputed={total:Math.ceil(o*i),start:Math.ceil(o*e),center:Math.ceil(o*(.5+e)),end:Math.ceil(o*(1+e)),view:s}},__padVirtualScroll(t,e,i){const s=!0===this.virtualScrollHorizontal?"width":"height",o={["--q-virtual-scroll-item-"+s]:this.virtualScrollItemSizeComputed+"px"};return["tbody"===e?t(e,{staticClass:"q-virtual-scroll__padding",key:"before",ref:"before"},[t("tr",[t("td",{style:{[s]:`${this.virtualScrollPaddingBefore}px`,...o},attrs:this.colspanAttr})])]):t(e,{staticClass:"q-virtual-scroll__padding",key:"before",ref:"before",style:{[s]:`${this.virtualScrollPaddingBefore}px`,...o}}),t(e,{staticClass:"q-virtual-scroll__content",key:"content",ref:"content",attrs:{tabindex:-1}},i),"tbody"===e?t(e,{staticClass:"q-virtual-scroll__padding",key:"after",ref:"after"},[t("tr",[t("td",{style:{[s]:`${this.virtualScrollPaddingAfter}px`,...o},attrs:this.colspanAttr})])]):t(e,{staticClass:"q-virtual-scroll__padding",key:"after",ref:"after",style:{[s]:`${this.virtualScrollPaddingAfter}px`,...o}})]},__emitScroll(t){this.prevToIndex!==t&&(void 0!==this.qListeners["virtual-scroll"]&&this.$emit("virtual-scroll",{index:t,from:this.virtualScrollSliceRange.from,to:this.virtualScrollSliceRange.to-1,direction:t<this.prevToIndex?"decrease":"increase",ref:this}),this.prevToIndex=t)},__onBlurRefocusFn(){void 0!==this.$refs.content&&this.$refs.content.focus()}},created(){this.__setVirtualScrollSize()},activated(){if(!0!==this.shouldActivate)return;const t=this.__getVirtualScrollTarget();void 0!==this.prevScrollStart&&void 0!==t&&null!==t&&8!==t.nodeType?setScroll$1(t,this.prevScrollStart,this.virtualScrollHorizontal,this.$q.lang.rtl):this.scrollTo(this.prevToIndex)},deactivated(){this.shouldActivate=!0},beforeMount(){this.__onVirtualScrollEvt=debounce(this.__onVirtualScrollEvt,!0===this.$q.platform.is.ios?120:35),this.__setVirtualScrollSize()},beforeDestroy(){this.__onVirtualScrollEvt.cancel()}};const validateNewValueMode=t=>["add","add-unique","toggle"].includes(t),reEscapeList=".*+?^${}()|[]\\";var QSelect=Vue.extend({name:"QSelect",mixins:[QField,VirtualScroll,CompositionMixin,FormFieldMixin,ListenersMixin],props:{value:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueSanitize:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsSanitize:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:validateNewValueMode},mapOptions:Boolean,emitValue:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:String,transitionHide:String,behavior:{type:String,validator:t=>["default","menu","dialog"].includes(t),default:"default"},virtualScrollItemSize:{type:[Number,String],default:void 0}},data:()=>({menu:!1,dialog:!1,optionIndex:-1,inputValue:"",dialogFieldFocused:!1}),watch:{innerValue:{handler(t){this.innerValueCache=t,!0===this.useInput&&!0===this.fillInput&&!0!==this.multiple&&!0!==this.innerLoading&&(!0!==this.dialog&&!0!==this.menu||!0!==this.hasValue)&&(!0!==this.userInputValue&&this.__resetInputValue(),!0!==this.dialog&&!0!==this.menu||this.filter(""))},immediate:!0},fillInput(){this.__resetInputValue()},menu(t){this.__updateMenu(t)},virtualScrollLength(t,e){!0===this.menu&&!1===this.innerLoading&&(this.__resetVirtualScroll(-1,!0),this.$nextTick(()=>{!0===this.menu&&!1===this.innerLoading&&(t>e?this.__resetVirtualScroll():this.__updateMenu(!0))}))}},computed:{isOptionsDark(){return null===this.optionsDark?this.isDark:this.optionsDark},virtualScrollLength(){return Array.isArray(this.options)?this.options.length:0},fieldClass(){return`q-select q-field--auto-height q-select--with${!0!==this.useInput?"out":""}-input`+` q-select--with${!0!==this.useChips?"out":""}-chips`+` q-select--${!0===this.multiple?"multiple":"single"}`},computedInputClass(){return!0===this.hideSelected||0===this.innerValue.length?this.inputClass:void 0===this.inputClass?"q-field__input--padding":[this.inputClass,"q-field__input--padding"]},menuContentClass(){return(!0===this.virtualScrollHorizontal?"q-virtual-scroll--horizontal":"")+(this.popupContentClass?" "+this.popupContentClass:"")},innerValue(){const t=!0===this.mapOptions&&!0!==this.multiple,e=void 0===this.value||null===this.value&&!0!==t?[]:!0===this.multiple&&Array.isArray(this.value)?this.value:[this.value];if(!0===this.mapOptions&&!0===Array.isArray(this.options)){const i=!0===this.mapOptions&&void 0!==this.innerValueCache?this.innerValueCache:[],s=e.map(t=>this.__getOption(t,i));return null===this.value&&!0===t?s.filter(t=>null!==t):s}return e},noOptions(){return 0===this.virtualScrollLength},selectedString(){return this.innerValue.map(t=>this.getOptionLabel(t)).join(", ")},ariaCurrentValue(){return void 0!==this.displayValue?this.displayValue:this.selectedString},sanitizeFn(){return!0===this.optionsSanitize?()=>!0:t=>void 0!==t&&null!==t&&!0===t.sanitize},displayAsText(){return!0===this.displayValueSanitize||void 0===this.displayValue&&(!0===this.optionsSanitize||this.innerValue.some(this.sanitizeFn))},computedTabindex(){return!0===this.focused?this.tabindex:-1},selectedScope(){return this.innerValue.map((t,e)=>({index:e,opt:t,sanitize:this.sanitizeFn(t),selected:!0,removeAtIndex:this.__removeAtIndexAndFocus,toggleOption:this.toggleOption,tabindex:this.computedTabindex}))},optionScope(){if(0===this.virtualScrollLength)return[];const{from:t,to:e}=this.virtualScrollSliceRange,{options:i,optionEls:s}=this.__optionScopeCache;return this.options.slice(t,e).map((e,o)=>{const n=this.isOptionDisabled(e),r=t+o,a={clickable:!0,active:!1,activeClass:this.computedOptionsSelectedClass,manualFocus:!0,focused:!1,disable:n,tabindex:-1,dense:this.optionsDense,dark:this.isOptionsDark},l={role:"option",id:`${this.targetUid}_${r}`};!0!==n&&(!0===this.isOptionSelected(e)&&(a.active=!0),l["aria-selected"]=!0===a.active?"true":"false",this.optionIndex===r&&(a.focused=!0));const h={click:()=>{this.toggleOption(e)}};!0===this.$q.platform.is.desktop&&(h.mousemove=(()=>{!0===this.menu&&this.setOptionIndex(r)}));const d={index:r,opt:e,sanitize:this.sanitizeFn(e),selected:a.active,focused:a.focused,toggleOption:this.toggleOption,setOptionIndex:this.setOptionIndex,itemProps:a,itemAttrs:l};return void 0!==i[o]&&!0===isDeepEqual(d,i[o])||(i[o]=d,s[o]=void 0),{...d,itemEvents:h}})},dropdownArrowIcon(){return void 0!==this.dropdownIcon?this.dropdownIcon:this.$q.iconSet.arrow.dropdown},squaredMenu(){return!1===this.optionsCover&&!0!==this.outlined&&!0!==this.standout&&!0!==this.borderless&&!0!==this.rounded},computedOptionsSelectedClass(){return void 0!==this.optionsSelectedClass?this.optionsSelectedClass:void 0!==this.color?`text-${this.color}`:""},innerOptionsValue(){return this.innerValue.map(t=>this.getOptionValue(t))},getOptionValue(){return this.__getPropValueFn("optionValue","value")},getOptionLabel(){return this.__getPropValueFn("optionLabel","label")},isOptionDisabled(){const t=this.__getPropValueFn("optionDisable","disable");return(...e)=>!0===t.apply(null,e)},inputControlEvents(){const t={input:this.__onInput,change:this.__onChange,keydown:this.__onTargetKeydown,keyup:this.__onTargetAutocomplete,keypress:this.__onTargetKeypress,focus:this.__selectInputText,click:t=>{!0===this.hasDialog&&stop(t)}};return t.compositionstart=t.compositionupdate=t.compositionend=this.__onComposition,t},virtualScrollItemSizeComputed(){return void 0===this.virtualScrollItemSize?!0===this.optionsDense?24:48:this.virtualScrollItemSize},comboboxAttrs(){const t={tabindex:this.tabindex,role:"combobox","aria-label":this.label,"aria-readonly":!0===this.readonly?"true":"false","aria-autocomplete":!0===this.useInput?"list":"none","aria-expanded":!0===this.menu?"true":"false","aria-controls":`${this.targetUid}_lb`};return this.optionIndex>=0&&(t["aria-activedescendant"]=`${this.targetUid}_${this.optionIndex}`),t},listboxAttrs(){return{id:`${this.targetUid}_lb`,role:"listbox","aria-multiselectable":!0===this.multiple?"true":"false"}}},methods:{getEmittingOptionValue(t){return!0===this.emitValue?this.getOptionValue(t):t},removeAtIndex(t){if(t>-1&&t<this.innerValue.length)if(!0===this.multiple){const e=this.value.slice();this.$emit("remove",{index:t,value:e.splice(t,1)[0]}),this.$emit("input",e)}else this.$emit("input",null)},__removeAtIndexAndFocus(t){this.removeAtIndex(t),this.__focus()},add(t,e){const i=this.getEmittingOptionValue(t);if(!0!==this.multiple)return!0===this.fillInput&&this.updateInputValue(this.getOptionLabel(t),!0,!0),void this.$emit("input",i);if(0===this.innerValue.length)return this.$emit("add",{index:0,value:i}),void this.$emit("input",!0===this.multiple?[i]:i);if(!0===e&&!0===this.isOptionSelected(t))return;if(void 0!==this.maxValues&&this.value.length>=this.maxValues)return;const s=this.value.slice();this.$emit("add",{index:s.length,value:i}),s.push(i),this.$emit("input",s)},toggleOption(t,e){if(!0!==this.editable||void 0===t||!0===this.isOptionDisabled(t))return;const i=this.getOptionValue(t);if(!0!==this.multiple)return!0!==e&&(this.updateInputValue(!0===this.fillInput?this.getOptionLabel(t):"",!0,!0),this.dialogFieldFocused=!1,document.activeElement.blur(),this.hidePopup()),void 0!==this.$refs.target&&this.$refs.target.focus(),void(0!==this.innerValue.length&&!0===isDeepEqual(this.getOptionValue(this.innerValue[0]),i)||this.$emit("input",!0===this.emitValue?i:t));if((!0!==this.hasDialog||!0===this.dialogFieldFocused)&&this.__focus(),this.__selectInputText(),0===this.innerValue.length){const e=!0===this.emitValue?i:t;return this.$emit("add",{index:0,value:e}),void this.$emit("input",!0===this.multiple?[e]:e)}const s=this.value.slice(),o=this.innerOptionsValue.findIndex(t=>isDeepEqual(t,i));if(o>-1)this.$emit("remove",{index:o,value:s.splice(o,1)[0]});else{if(void 0!==this.maxValues&&s.length>=this.maxValues)return;const e=!0===this.emitValue?i:t;this.$emit("add",{index:s.length,value:e}),s.push(e)}this.$emit("input",s)},setOptionIndex(t){if(!0!==this.$q.platform.is.desktop)return;const e=t>-1&&t<this.virtualScrollLength?t:-1;this.optionIndex!==e&&(this.optionIndex=e)},moveOptionSelection(t=1,e){if(!0===this.menu){let i=this.optionIndex;do{i=normalizeToInterval(i+t,-1,this.virtualScrollLength-1)}while(-1!==i&&i!==this.optionIndex&&!0===this.isOptionDisabled(this.options[i]));this.optionIndex!==i&&(cancelAnimationFrame(this.moveAnimationFrame),this.moveAnimationFrame=requestAnimationFrame(()=>{this.setOptionIndex(i),this.scrollTo(i),!0!==e&&!0===this.useInput&&!0===this.fillInput&&this.__setInputValue(i>=0?this.getOptionLabel(this.options[i]):this.defaultInputValue)}))}},__getOption(t,e){const i=e=>isDeepEqual(this.getOptionValue(e),t);return this.options.find(i)||e.find(i)||t},__getPropValueFn(t,e){const i=void 0!==this[t]?this[t]:e;return"function"==typeof i?i:t=>null!==t&&"object"==typeof t&&i in t?t[i]:t},isOptionSelected(t){const e=this.getOptionValue(t);return void 0!==this.innerOptionsValue.find(t=>isDeepEqual(t,e))},__selectInputText(t){!0===this.useInput&&void 0!==this.$refs.target&&(void 0===t||this.$refs.target===t.target&&t.target.value===this.selectedString)&&this.$refs.target.select()},__onTargetKeyup(t){!0===isKeyCode(t,27)&&!0===this.menu&&(stop(t),this.hidePopup(),this.__resetInputValue()),this.$emit("keyup",t)},__onTargetAutocomplete(t){const{value:e}=t.target;if(void 0===t.keyCode)if(t.target.value="",clearTimeout(this.inputTimer),this.__resetInputValue(),"string"==typeof e&&e.length>0){const t=e.toLocaleLowerCase(),i=e=>{const i=this.options.find(i=>e(i).toLocaleLowerCase()===t);return void 0!==i&&(-1===this.innerValue.indexOf(i)?this.toggleOption(i):this.hidePopup(),!0)},s=t=>{!0!==i(this.getOptionValue)&&!0!==i(this.getOptionLabel)&&!0!==t&&this.filter(e,!0,()=>s(!0))};s()}else this.__clearValue(t);else this.__onTargetKeyup(t)},__onTargetKeypress(t){this.$emit("keypress",t)},__onTargetKeydown(t){if(this.$emit("keydown",t),!0===shouldIgnoreKey(t))return;const e=this.inputValue.length>0&&(void 0!==this.newValueMode||void 0!==this.qListeners["new-value"]),i=!0!==t.shiftKey&&!0!==this.multiple&&(this.optionIndex>-1||!0===e);if(27===t.keyCode)return void prevent(t);if(9===t.keyCode&&!1===i)return void this.__closeMenu();if(void 0===t.target||t.target.id!==this.targetUid)return;if(40===t.keyCode&&!0!==this.innerLoading&&!1===this.menu)return stopAndPrevent(t),void this.showPopup();if(8===t.keyCode&&!0!==this.hideSelected&&0===this.inputValue.length)return void(!0===this.multiple&&Array.isArray(this.value)?this.removeAtIndex(this.value.length-1):!0!==this.multiple&&null!==this.value&&this.$emit("input",null));35!==t.keyCode&&36!==t.keyCode||"string"==typeof this.inputValue&&0!==this.inputValue.length||(stopAndPrevent(t),this.optionIndex=-1,this.moveOptionSelection(36===t.keyCode?1:-1,this.multiple)),33!==t.keyCode&&34!==t.keyCode||void 0===this.virtualScrollSliceSizeComputed||(stopAndPrevent(t),this.optionIndex=Math.max(-1,Math.min(this.virtualScrollLength,this.optionIndex+(33===t.keyCode?-1:1)*this.virtualScrollSliceSizeComputed.view)),this.moveOptionSelection(33===t.keyCode?1:-1,this.multiple)),38!==t.keyCode&&40!==t.keyCode||(stopAndPrevent(t),this.moveOptionSelection(38===t.keyCode?-1:1,this.multiple));const s=this.virtualScrollLength;if((void 0===this.searchBuffer||this.searchBufferExp<Date.now())&&(this.searchBuffer=""),s>0&&!0!==this.useInput&&void 0!==t.key&&1===t.key.length&&!1===t.altKey&&!1===t.ctrlKey&&!1===t.metaKey&&(32!==t.keyCode||this.searchBuffer.length>0)){!0!==this.menu&&this.showPopup(t);const e=t.key.toLocaleLowerCase(),i=1===this.searchBuffer.length&&this.searchBuffer[0]===e;this.searchBufferExp=Date.now()+1500,!1===i&&(stopAndPrevent(t),this.searchBuffer+=e);const o=new RegExp("^"+this.searchBuffer.split("").map(t=>reEscapeList.indexOf(t)>-1?"\\"+t:t).join(".*"),"i");let n=this.optionIndex;if(!0===i||n<0||!0!==o.test(this.getOptionLabel(this.options[n])))do{n=normalizeToInterval(n+1,-1,s-1)}while(n!==this.optionIndex&&(!0===this.isOptionDisabled(this.options[n])||!0!==o.test(this.getOptionLabel(this.options[n]))));this.optionIndex!==n&&this.$nextTick(()=>{this.setOptionIndex(n),this.scrollTo(n),n>=0&&!0===this.useInput&&!0===this.fillInput&&this.__setInputValue(this.getOptionLabel(this.options[n]))})}else if(13===t.keyCode||32===t.keyCode&&!0!==this.useInput&&""===this.searchBuffer||9===t.keyCode&&!1!==i)if(9!==t.keyCode&&stopAndPrevent(t),this.optionIndex>-1&&this.optionIndex<s)this.toggleOption(this.options[this.optionIndex]);else{if(!0===e){const t=(t,e)=>{if(e){if(!0!==validateNewValueMode(e))return}else e=this.newValueMode;void 0!==t&&null!==t&&(this.updateInputValue("",!0!==this.multiple,!0),this["toggle"===e?"toggleOption":"add"](t,"add-unique"===e),!0!==this.multiple&&(void 0!==this.$refs.target&&this.$refs.target.focus(),this.hidePopup()))};if(void 0!==this.qListeners["new-value"]?this.$emit("new-value",this.inputValue,t):t(this.inputValue),!0!==this.multiple)return}!0===this.menu?this.__closeMenu():!0!==this.innerLoading&&this.showPopup()}},__getVirtualScrollEl(){return!0===this.hasDialog?this.$refs.menuContent:void 0!==this.$refs.menu&&void 0!==this.$refs.menu.__portal?this.$refs.menu.__portal.$el:void 0},__getVirtualScrollTarget(){return this.__getVirtualScrollEl()},__getSelection(t){return!0===this.hideSelected?[]:void 0!==this.$scopedSlots["selected-item"]?this.selectedScope.map(t=>this.$scopedSlots["selected-item"](t)).slice():void 0!==this.$scopedSlots.selected?[].concat(this.$scopedSlots.selected()):!0===this.useChips?this.selectedScope.map((e,i)=>t(QChip,{key:"rem#"+i,props:{removable:!0===this.editable&&!0!==this.isOptionDisabled(e.opt),dense:!0,textColor:this.color,tabindex:this.computedTabindex},on:cache(this,"rem#"+i,{remove(){e.removeAtIndex(i)}})},[t("span",{staticClass:"ellipsis",domProps:{[!0===e.sanitize?"textContent":"innerHTML"]:this.getOptionLabel(e.opt)}})])):[t("span",{domProps:{[this.displayAsText?"textContent":"innerHTML"]:this.ariaCurrentValue}})]},__getControl(t,e){const i=this.__getSelection(t),s=!0===e||!0!==this.dialog||!0!==this.hasDialog;if(!0===this.useInput)i.push(this.__getInput(t,e,s));else if(!0===this.editable){const o=!0===s?this.comboboxAttrs:void 0;i.push(t("input",{ref:!0===s?"target":void 0,key:"d_t",staticClass:"q-select__focus-target",attrs:{id:!0===s?this.targetUid:void 0,readonly:!0,"data-autofocus":(!0===e?!0===s:this.autofocus)||void 0,...o},on:cache(this,"f-tget",{keydown:this.__onTargetKeydown,keyup:this.__onTargetKeyup,keypress:this.__onTargetKeypress})})),!0===s&&"string"==typeof this.autocomplete&&this.autocomplete.length>0&&i.push(t("input",{key:"autoinp",staticClass:"q-select__autocomplete-input",domProps:{value:this.ariaCurrentValue},attrs:{autocomplete:this.autocomplete,tabindex:-1},on:cache(this,"autoinp",{keyup:this.__onTargetAutocomplete})}))}if(void 0!==this.nameProp&&!0!==this.disable&&this.innerOptionsValue.length>0){const e=this.innerOptionsValue.map(e=>t("option",{attrs:{value:e,selected:!0}}));i.push(t("select",{staticClass:"hidden",attrs:{name:this.nameProp,multiple:this.multiple}},e))}const o=!0===this.useInput||!0!==s?void 0:this.qAttrs;return t("div",{staticClass:"q-field__native row items-center",attrs:o},i)},__getOptions(t){if(!0!==this.menu)return;if(!0===this.noOptions)return void 0!==this.$scopedSlots["no-option"]?this.$scopedSlots["no-option"]({inputValue:this.inputValue}):void 0;void 0!==this.$scopedSlots.option&&this.__optionScopeCache.optionSlot!==this.$scopedSlots.option&&(this.__optionScopeCache.optionSlot=this.$scopedSlots.option,this.__optionScopeCache.optionEls=[]);const e=void 0!==this.$scopedSlots.option?this.$scopedSlots.option:e=>t(QItem,{key:e.index,props:e.itemProps,attrs:e.itemAttrs,on:e.itemEvents},[t(QItemSection,[t(QItemLabel,{domProps:{[!0===e.sanitize?"textContent":"innerHTML"]:this.getOptionLabel(e.opt)}})])]),{optionEls:i}=this.__optionScopeCache;let s=this.__padVirtualScroll(t,"div",this.optionScope.map((t,s)=>(void 0===i[s]&&(i[s]=e(t)),i[s])));return void 0!==this.$scopedSlots["before-options"]&&(s=this.$scopedSlots["before-options"]().concat(s)),mergeSlot(s,this,"after-options")},__getInnerAppend(t){return!0!==this.loading&&!0!==this.innerLoadingIndicator&&!0!==this.hideDropdownIcon?[t(QIcon,{staticClass:"q-select__dropdown-icon"+(!0===this.menu?" rotate-180":""),props:{name:this.dropdownArrowIcon}})]:null},__getInput(t,e,i){const s=!0===i?{...this.comboboxAttrs,...this.qAttrs}:void 0,o={ref:!0===i?"target":void 0,key:"i_t",staticClass:"q-field__input q-placeholder col",style:this.inputStyle,class:this.computedInputClass,domProps:{value:void 0!==this.inputValue?this.inputValue:""},attrs:{type:"search",...s,id:!0===i?this.targetUid:void 0,maxlength:this.maxlength,autocomplete:this.autocomplete,"data-autofocus":(!0===e?!0===i:this.autofocus)||void 0,disabled:!0===this.disable,readonly:!0===this.readonly},on:this.inputControlEvents};return!0!==e&&!0===this.hasDialog&&(o.staticClass+=" no-pointer-events"),t("input",o)},__onChange(t){this.__onComposition(t)},__onInput(t){clearTimeout(this.inputTimer),t&&t.target&&!0===t.target.qComposing||(this.__setInputValue(t.target.value||""),this.userInputValue=!0,this.defaultInputValue=this.inputValue,!0===this.focused||!0===this.hasDialog&&!0!==this.dialogFieldFocused||this.__focus(),void 0!==this.qListeners.filter&&(this.inputTimer=setTimeout(()=>{this.filter(this.inputValue)},this.inputDebounce)))},__setInputValue(t){this.inputValue!==t&&(this.inputValue=t,this.$emit("input-value",t))},updateInputValue(t,e,i){this.userInputValue=!0!==i,!0===this.useInput&&(this.__setInputValue(t),!0!==e&&!0===i||(this.defaultInputValue=t),!0!==e&&this.filter(t))},filter(t,e,i){if(void 0===this.qListeners.filter||!0!==e&&!0!==this.focused)return;!0===this.innerLoading?this.$emit("filter-abort"):(this.innerLoading=!0,this.innerLoadingIndicator=!0),""!==t&&!0!==this.multiple&&this.innerValue.length>0&&!0!==this.userInputValue&&t===this.getOptionLabel(this.innerValue[0])&&(t="");const s=setTimeout(()=>{!0===this.menu&&(this.menu=!1)},10);clearTimeout(this.filterId),this.filterId=s,this.$emit("filter",t,(t,o)=>{!0!==e&&!0!==this.focused||this.filterId!==s||(clearTimeout(this.filterId),"function"==typeof t&&t(),this.innerLoadingIndicator=!1,this.$nextTick(()=>{this.innerLoading=!1,!0===this.editable&&(!0===e?!0===this.menu&&this.hidePopup():!0===this.menu?this.__updateMenu(!0):(this.menu=!0,!0===this.hasDialog&&(this.dialog=!0))),"function"==typeof o&&this.$nextTick(()=>{o(this)}),"function"==typeof i&&this.$nextTick(()=>{i(this)})}))},()=>{!0===this.focused&&this.filterId===s&&(clearTimeout(this.filterId),this.innerLoading=!1,this.innerLoadingIndicator=!1),!0===this.menu&&(this.menu=!1)})},__getControlEvents(){const t=t=>{this.__onControlFocusout(t,()=>{this.__resetInputValue(),this.__closeMenu()})};return{focusin:this.__onControlFocusin,focusout:t,"popup-show":this.__onControlPopupShow,"popup-hide":e=>{void 0!==e&&stop(e),this.$emit("popup-hide",e),this.hasPopupOpen=!1,t(e)},click:t=>{if(prevent(t),!0!==this.hasDialog&&!0===this.menu)return this.__closeMenu(),void(void 0!==this.$refs.target&&this.$refs.target.focus());this.showPopup(t)}}},__getControlChild(t){if(!1!==this.editable&&(!0===this.dialog||!0!==this.noOptions||void 0!==this.$scopedSlots["no-option"]))return this[`__get${!0===this.hasDialog?"Dialog":"Menu"}`](t)},__getMenu(t){return t(QMenu,{key:"menu",ref:"menu",props:{value:this.menu,fit:!0!==this.menuShrink,cover:!0===this.optionsCover&&!0!==this.noOptions&&!0!==this.useInput,anchor:this.menuAnchor,self:this.menuSelf,offset:this.menuOffset,contentClass:this.menuContentClass,contentStyle:this.popupContentStyle,dark:this.isOptionsDark,noParentEvent:!0,noRefocus:!0,noFocus:!0,square:this.squaredMenu,transitionShow:this.transitionShow,transitionHide:this.transitionHide,separateClosePopup:!0},attrs:this.listboxAttrs,on:cache(this,"menu",{"&scroll":this.__onVirtualScrollEvt,"before-hide":this.__closeMenu,show:this.__onMenuShow})},this.__getOptions(t))},__onMenuShow(){this.__setVirtualScrollSize()},__onDialogFieldFocus(t){stop(t),void 0!==this.$refs.target&&this.$refs.target.focus(),this.dialogFieldFocused=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)},__onDialogFieldBlur(t){stop(t),this.$nextTick(()=>{this.dialogFieldFocused=!1})},__getDialog(t){const e=[t(QField,{staticClass:`col-auto ${this.fieldClass}`,props:{...this.$props,for:this.targetUid,dark:this.isOptionsDark,square:!0,filled:!0,itemAligned:!1,loading:this.innerLoadingIndicator,stackLabel:this.inputValue.length>0},on:{...this.qListeners,focus:this.__onDialogFieldFocus,blur:this.__onDialogFieldBlur},scopedSlots:{...this.$scopedSlots,rawControl:()=>this.__getControl(t,!0),before:void 0,after:void 0}})];return!0===this.menu&&e.push(t("div",{key:"virtMenu",ref:"menuContent",staticClass:"col scroll",class:this.menuContentClass,style:this.popupContentStyle,attrs:this.listboxAttrs,on:cache(this,"virtMenu",{click:prevent,"&scroll":this.__onVirtualScrollEvt})},this.__getOptions(t))),t(QDialog,{key:"dialog",ref:"dialog",props:{value:this.dialog,dark:this.isOptionsDark,position:!0===this.useInput?"top":void 0,transitionShow:this.transitionShowComputed,transitionHide:this.transitionHide},on:cache(this,"dialog",{"before-hide":this.__onDialogBeforeHide,hide:this.__onDialogHide,show:this.__onDialogShow})},[t("div",{staticClass:"q-select__dialog"+(!0===this.isOptionsDark?" q-select__dialog--dark q-dark":"")+(!0===this.dialogFieldFocused?" q-select__dialog--focused":"")},e)])},__onDialogBeforeHide(){!0===this.useInput&&!0!==this.$q.platform.is.desktop||(this.$refs.dialog.__refocusTarget=this.$el.querySelector(".q-field__native > [tabindex]:last-child")),this.focused=!1,this.dialogFieldFocused=!1},__onDialogHide(t){!0!==this.$q.platform.is.desktop&&document.activeElement.blur(),this.hidePopup(),!1===this.focused&&this.$emit("blur",t),this.__resetInputValue()},__onDialogShow(){const t=document.activeElement;null!==t&&t.id===this.targetUid||this.$refs.target===t||void 0===this.$refs.target||this.$refs.target.focus(),this.__setVirtualScrollSize()},__closeMenu(){void 0!==this.__optionScopeCache&&(this.__optionScopeCache.optionEls=[]),!0!==this.dialog&&(this.optionIndex=-1,!0===this.menu&&(this.menu=!1),!1===this.focused&&(clearTimeout(this.filterId),this.filterId=void 0,!0===this.innerLoading&&(this.$emit("filter-abort"),this.innerLoading=!1,this.innerLoadingIndicator=!1)))},showPopup(t){!0===this.editable&&(!0===this.hasDialog?(this.__onControlFocusin(t),this.dialog=!0,this.$nextTick(()=>{this.__focus()})):this.__focus(),void 0!==this.qListeners.filter?this.filter(this.inputValue):!0===this.noOptions&&void 0===this.$scopedSlots["no-option"]||(this.menu=!0))},hidePopup(){this.dialog=!1,this.__closeMenu()},__resetInputValue(){!0===this.useInput&&this.updateInputValue(!0!==this.multiple&&!0===this.fillInput&&this.innerValue.length>0&&this.getOptionLabel(this.innerValue[0])||"",!0,!0)},__updateMenu(t){let e=-1;if(!0===t){if(this.innerValue.length>0){const t=this.getOptionValue(this.innerValue[0]);e=this.options.findIndex(e=>isDeepEqual(this.getOptionValue(e),t))}this.__resetVirtualScroll(e)}this.setOptionIndex(e)},__onPreRender(){this.hasDialog=(!0===this.$q.platform.is.mobile||"dialog"===this.behavior)&&("menu"!==this.behavior&&(!0!==this.useInput||(void 0!==this.$scopedSlots["no-option"]||void 0!==this.qListeners.filter||!1===this.noOptions))),this.transitionShowComputed=!0===this.hasDialog&&!0===this.useInput&&!0===this.$q.platform.is.ios?"fade":this.transitionShow},__onPostRender(){!1===this.dialog&&void 0!==this.$refs.menu&&this.$refs.menu.updatePosition()},updateMenuPosition(){this.__onPostRender()}},beforeMount(){this.__optionScopeCache={optionSlot:this.$scopedSlots.option,options:[],optionEls:[]}},beforeDestroy(){this.__optionScopeCache=void 0,clearTimeout(this.inputTimer)}});const skeletonTypes=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],skeletonAnimations=["wave","pulse","pulse-x","pulse-y","fade","blink","none"];var QSkeleton=Vue.extend({name:"QSkeleton",mixins:[DarkMixin,TagMixin,ListenersMixin],props:{type:{type:String,validator:t=>skeletonTypes.includes(t),default:"rect"},animation:{type:String,validator:t=>skeletonAnimations.includes(t),default:"wave"},square:Boolean,bordered:Boolean,size:String,width:String,height:String},computed:{style(){return void 0!==this.size?{width:this.size,height:this.size}:{width:this.width,height:this.height}},classes(){return`q-skeleton--${!0===this.isDark?"dark":"light"} q-skeleton--type-${this.type}`+("none"!==this.animation?` q-skeleton--anim q-skeleton--anim-${this.animation}`:"")+(!0===this.square?" q-skeleton--square":"")+(!0===this.bordered?" q-skeleton--bordered":"")}},render(t){return t(this.tag,{staticClass:"q-skeleton",class:this.classes,style:this.style,on:{...this.qListeners}},slot(this,"default"))}});const slotsDef=[["left","center","start","width"],["right","center","end","width"],["top","start","center","height"],["bottom","end","center","height"]];var QSlideItem=Vue.extend({name:"QSlideItem",mixins:[DarkMixin,ListenersMixin],props:{leftColor:String,rightColor:String,topColor:String,bottomColor:String},directives:{TouchPan:TouchPan},computed:{langDir(){return!0===this.$q.lang.rtl?{left:"right",right:"left"}:{left:"left",right:"right"}}},methods:{reset(){this.$refs.content.style.transform="translate(0,0)",this.__emitSlide(this.__showing,0,!0)},__emitSlide(t,e,i){void 0!==this.qListeners.slide&&this.$emit("slide",{side:t,ratio:e,isReset:i})},__pan(t){const e=this.$refs.content;if(t.isFirst)this.__dir=null,this.__size={left:0,right:0,top:0,bottom:0},this.__scale=0,e.classList.add("no-transition"),slotsDef.forEach(t=>{if(void 0!==this.$scopedSlots[t[0]]){const e=this.$refs[t[0]+"Content"];e.style.transform="scale(1)",this.__size[t[0]]=e.getBoundingClientRect()[t[3]]}}),this.__axis="up"===t.direction||"down"===t.direction?"Y":"X";else{if(t.isFinal)return e.classList.remove("no-transition"),void(1===this.__scale?(e.style.transform=`translate${this.__axis}(${100*this.__dir}%)`,this.timer=setTimeout(()=>{this.$emit(this.__showing,{reset:this.reset}),this.$emit("action",{side:this.__showing,reset:this.reset})},230)):(e.style.transform="translate(0,0)",this.__emitSlide(this.__showing,0,!0)));t.direction="X"===this.__axis?t.offset.x<0?"left":"right":t.offset.y<0?"up":"down"}if(void 0===this.$scopedSlots.left&&t.direction===this.langDir.right||void 0===this.$scopedSlots.right&&t.direction===this.langDir.left||void 0===this.$scopedSlots.top&&"down"===t.direction||void 0===this.$scopedSlots.bottom&&"up"===t.direction)return void(e.style.transform="translate(0,0)");let i,s,o;"X"===this.__axis?(s="left"===t.direction?-1:1,i=1===s?this.langDir.left:this.langDir.right,o=t.distance.x):(s="up"===t.direction?-2:2,i=2===s?"top":"bottom",o=t.distance.y),null!==this.__dir&&Math.abs(s)!==Math.abs(this.__dir)||(this.__dir!==s&&(["left","right","top","bottom"].forEach(t=>{void 0!==this.$refs[t]&&(this.$refs[t].style.visibility=i===t?"visible":"hidden")}),this.__showing=i,this.__dir=s),this.__scale=Math.max(0,Math.min(1,(o-40)/this.__size[i])),e.style.transform=`translate${this.__axis}(${o*s/Math.abs(s)}px)`,this.$refs[`${i}Content`].style.transform=`scale(${this.__scale})`,this.__emitSlide(i,this.__scale,!1))}},render(t){const e=[],i={left:void 0!==this.$scopedSlots[this.langDir.right],right:void 0!==this.$scopedSlots[this.langDir.left],up:void 0!==this.$scopedSlots.bottom,down:void 0!==this.$scopedSlots.top},s=Object.keys(i).filter(t=>!0===i[t]);return slotsDef.forEach(i=>{const s=i[0];void 0!==this.$scopedSlots[s]&&e.push(t("div",{ref:s,class:`q-slide-item__${s} absolute-full row no-wrap items-${i[1]} justify-${i[2]}`+(void 0!==this[s+"Color"]?` bg-${this[s+"Color"]}`:"")},[t("div",{ref:s+"Content"},this.$scopedSlots[s]())]))}),e.push(t("div",{ref:"content",key:"content",staticClass:"q-slide-item__content",directives:s.length>0?cacheWithFn(this,"dir#"+s.join(""),()=>{const t={prevent:!0,stop:!0,mouse:!0};return s.forEach(e=>{t[e]=!0}),[{name:"touch-pan",value:this.__pan,modifiers:t}]}):null},slot(this,"default"))),t("div",{staticClass:"q-slide-item q-item-type overflow-hidden",class:!0===this.isDark?"q-slide-item--dark q-dark":"",on:{...this.qListeners}},e)},beforeDestroy(){clearTimeout(this.timer)}}),QSpace=Vue.extend({name:"QSpace",mixins:[ListenersMixin],render(t){return t("div",{staticClass:"q-space",on:{...this.qListeners}})}}),QSpinnerAudio=Vue.extend({name:"QSpinnerAudio",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",fill:"currentColor",width:this.cSize,height:this.cSize,viewBox:"0 0 55 80",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{transform:"matrix(1 0 0 -1 0 80)"}},[t("rect",{attrs:{width:"10",height:"20",rx:"3"}},[t("animate",{attrs:{attributeName:"height",begin:"0s",dur:"4.3s",values:"20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"15",width:"10",height:"80",rx:"3"}},[t("animate",{attrs:{attributeName:"height",begin:"0s",dur:"2s",values:"80;55;33;5;75;23;73;33;12;14;60;80",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"30",width:"10",height:"50",rx:"3"}},[t("animate",{attrs:{attributeName:"height",begin:"0s",dur:"1.4s",values:"50;34;78;23;56;23;34;76;80;54;21;50",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"45",width:"10",height:"30",rx:"3"}},[t("animate",{attrs:{attributeName:"height",begin:"0s",dur:"2s",values:"30;45;13;80;56;72;45;76;34;23;67;30",calcMode:"linear",repeatCount:"indefinite"}})])])])}}),QSpinnerBall=Vue.extend({name:"QSpinnerBall",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",stroke:"currentColor",width:this.cSize,height:this.cSize,viewBox:"0 0 57 57",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{transform:"translate(1 1)","stroke-width":"2",fill:"none","fill-rule":"evenodd"}},[t("circle",{attrs:{cx:"5",cy:"50",r:"5"}},[t("animate",{attrs:{attributeName:"cy",begin:"0s",dur:"2.2s",values:"50;5;50;50",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"cx",begin:"0s",dur:"2.2s",values:"5;27;49;5",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"27",cy:"5",r:"5"}},[t("animate",{attrs:{attributeName:"cy",begin:"0s",dur:"2.2s",from:"5",to:"5",values:"5;50;50;5",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"cx",begin:"0s",dur:"2.2s",from:"27",to:"27",values:"27;49;5;27",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"49",cy:"50",r:"5"}},[t("animate",{attrs:{attributeName:"cy",begin:"0s",dur:"2.2s",values:"50;50;5;50",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"cx",from:"49",to:"49",begin:"0s",dur:"2.2s",values:"49;5;27;49",calcMode:"linear",repeatCount:"indefinite"}})])])])}}),QSpinnerBars=Vue.extend({name:"QSpinnerBars",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",fill:"currentColor",width:this.cSize,height:this.cSize,viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg"}},[t("rect",{attrs:{y:"10",width:"15",height:"120",rx:"6"}},[t("animate",{attrs:{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"30",y:"10",width:"15",height:"120",rx:"6"}},[t("animate",{attrs:{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"60",width:"15",height:"140",rx:"6"}},[t("animate",{attrs:{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"90",y:"10",width:"15",height:"120",rx:"6"}},[t("animate",{attrs:{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"120",y:"10",width:"15",height:"120",rx:"6"}},[t("animate",{attrs:{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"}})])])}}),QSpinnerBox=Vue.extend({name:"QSpinnerBox",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[t("rect",{attrs:{x:"25",y:"25",width:"50",height:"50",fill:"none","stroke-width":"4",stroke:"currentColor"}},[t("animateTransform",{attrs:{id:"spinnerBox",attributeName:"transform",type:"rotate",from:"0 50 50",to:"180 50 50",dur:"0.5s",begin:"rectBox.end"}})]),t("rect",{attrs:{x:"27",y:"27",width:"46",height:"50",fill:"currentColor"}},[t("animate",{attrs:{id:"rectBox",attributeName:"height",begin:"0s;spinnerBox.end",dur:"1.3s",from:"50",to:"0",fill:"freeze"}})])])}}),QSpinnerClock=Vue.extend({name:"QSpinnerClock",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"48",fill:"none","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor"}}),t("line",{attrs:{"stroke-linecap":"round","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor",x1:"50",y1:"50",x2:"85",y2:"50.5"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"2s",repeatCount:"indefinite"}})]),t("line",{attrs:{"stroke-linecap":"round","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor",x1:"50",y1:"50",x2:"49.5",y2:"74"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"15s",repeatCount:"indefinite"}})])])}}),QSpinnerComment=Vue.extend({name:"QSpinnerComment",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[t("rect",{attrs:{x:"0",y:"0",width:"100",height:"100",fill:"none"}}),t("path",{attrs:{d:"M78,19H22c-6.6,0-12,5.4-12,12v31c0,6.6,5.4,12,12,12h37.2c0.4,3,1.8,5.6,3.7,7.6c2.4,2.5,5.1,4.1,9.1,4 c-1.4-2.1-2-7.2-2-10.3c0-0.4,0-0.8,0-1.3h8c6.6,0,12-5.4,12-12V31C90,24.4,84.6,19,78,19z",fill:"currentColor"}}),t("circle",{attrs:{cx:"30",cy:"47",r:"5",fill:"#fff"}},[t("animate",{attrs:{attributeName:"opacity",from:"0",to:"1",values:"0;1;1",keyTimes:"0;0.2;1",dur:"1s",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"50",cy:"47",r:"5",fill:"#fff"}},[t("animate",{attrs:{attributeName:"opacity",from:"0",to:"1",values:"0;0;1;1",keyTimes:"0;0.2;0.4;1",dur:"1s",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"70",cy:"47",r:"5",fill:"#fff"}},[t("animate",{attrs:{attributeName:"opacity",from:"0",to:"1",values:"0;0;1;1",keyTimes:"0;0.4;0.6;1",dur:"1s",repeatCount:"indefinite"}})])])}}),QSpinnerCube=Vue.extend({name:"QSpinnerCube",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[t("rect",{attrs:{x:"0",y:"0",width:"100",height:"100",fill:"none"}}),t("g",{attrs:{transform:"translate(25 25)"}},[t("rect",{attrs:{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.9"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"}})])]),t("g",{attrs:{transform:"translate(75 25)"}},[t("rect",{attrs:{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.8"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.1s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"}})])]),t("g",{attrs:{transform:"translate(25 75)"}},[t("rect",{staticClass:"cube",attrs:{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.7"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.3s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"}})])]),t("g",{attrs:{transform:"translate(75 75)"}},[t("rect",{staticClass:"cube",attrs:{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.6"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.2s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"}})])])])}}),QSpinnerDots=Vue.extend({name:"QSpinnerDots",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",fill:"currentColor",width:this.cSize,height:this.cSize,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg"}},[t("circle",{attrs:{cx:"15",cy:"15",r:"15"}},[t("animate",{attrs:{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"60",cy:"15",r:"9","fill-opacity":".3"}},[t("animate",{attrs:{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"fill-opacity",from:".5",to:".5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"105",cy:"15",r:"15"}},[t("animate",{attrs:{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}})])])}}),QSpinnerFacebook=Vue.extend({name:"QSpinnerFacebook",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"}},[t("g",{attrs:{transform:"translate(20 50)"}},[t("rect",{attrs:{x:"-10",y:"-30",width:"20",height:"60",fill:"currentColor",opacity:"0.6"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"}})])]),t("g",{attrs:{transform:"translate(50 50)"}},[t("rect",{attrs:{x:"-10",y:"-30",width:"20",height:"60",fill:"currentColor",opacity:"0.8"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0.1s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"}})])]),t("g",{attrs:{transform:"translate(80 50)"}},[t("rect",{attrs:{x:"-10",y:"-30",width:"20",height:"60",fill:"currentColor",opacity:"0.9"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0.2s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"}})])])])}}),QSpinnerGears=Vue.extend({name:"QSpinnerGears",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{transform:"translate(-20,-20)"}},[t("path",{attrs:{d:"M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z",fill:"currentColor"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"90 50 50",to:"0 50 50",dur:"1s",repeatCount:"indefinite"}})])]),t("g",{attrs:{transform:"translate(20,20) rotate(15 50 50)"}},[t("path",{attrs:{d:"M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z",fill:"currentColor"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"90 50 50",dur:"1s",repeatCount:"indefinite"}})])])])}}),QSpinnerGrid=Vue.extend({name:"QSpinnerGrid",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",fill:"currentColor",width:this.cSize,height:this.cSize,viewBox:"0 0 105 105",xmlns:"http://www.w3.org/2000/svg"}},[t("circle",{attrs:{cx:"12.5",cy:"12.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"12.5",cy:"52.5",r:"12.5","fill-opacity":".5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"52.5",cy:"12.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"52.5",cy:"52.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"92.5",cy:"12.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"92.5",cy:"52.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"12.5",cy:"92.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"52.5",cy:"92.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"92.5",cy:"92.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})])])}}),QSpinnerHearts=Vue.extend({name:"QSpinnerHearts",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",fill:"currentColor",width:this.cSize,height:this.cSize,viewBox:"0 0 140 64",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M30.262 57.02L7.195 40.723c-5.84-3.976-7.56-12.06-3.842-18.063 3.715-6 11.467-7.65 17.306-3.68l4.52 3.76 2.6-5.274c3.716-6.002 11.47-7.65 17.304-3.68 5.84 3.97 7.56 12.054 3.842 18.062L34.49 56.118c-.897 1.512-2.793 1.915-4.228.9z","fill-opacity":".5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"0s",dur:"1.4s",values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"}})]),t("path",{attrs:{d:"M105.512 56.12l-14.44-24.272c-3.716-6.008-1.996-14.093 3.843-18.062 5.835-3.97 13.588-2.322 17.306 3.68l2.6 5.274 4.52-3.76c5.84-3.97 13.593-2.32 17.308 3.68 3.718 6.003 1.998 14.088-3.842 18.064L109.74 57.02c-1.434 1.014-3.33.61-4.228-.9z","fill-opacity":".5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"0.7s",dur:"1.4s",values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"}})]),t("path",{attrs:{d:"M67.408 57.834l-23.01-24.98c-5.864-6.15-5.864-16.108 0-22.248 5.86-6.14 15.37-6.14 21.234 0L70 16.168l4.368-5.562c5.863-6.14 15.375-6.14 21.235 0 5.863 6.14 5.863 16.098 0 22.247l-23.007 24.98c-1.43 1.556-3.757 1.556-5.188 0z"}})])}}),QSpinnerHourglass=Vue.extend({name:"QSpinnerHourglass",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"}},[t("g",[t("path",{staticClass:"glass",attrs:{fill:"none",stroke:"currentColor","stroke-width":"5","stroke-miterlimit":"10",d:"M58.4,51.7c-0.9-0.9-1.4-2-1.4-2.3s0.5-0.4,1.4-1.4 C70.8,43.8,79.8,30.5,80,15.5H70H30H20c0.2,15,9.2,28.1,21.6,32.3c0.9,0.9,1.4,1.2,1.4,1.5s-0.5,1.6-1.4,2.5 C29.2,56.1,20.2,69.5,20,85.5h10h40h10C79.8,69.5,70.8,55.9,58.4,51.7z"}}),t("clipPath",{attrs:{id:"uil-hourglass-clip1"}},[t("rect",{staticClass:"clip",attrs:{x:"15",y:"20",width:"70",height:"25"}},[t("animate",{attrs:{attributeName:"height",from:"25",to:"0",dur:"1s",repeatCount:"indefinite",values:"25;0;0",keyTimes:"0;0.5;1"}}),t("animate",{attrs:{attributeName:"y",from:"20",to:"45",dur:"1s",repeatCount:"indefinite",values:"20;45;45",keyTimes:"0;0.5;1"}})])]),t("clipPath",{attrs:{id:"uil-hourglass-clip2"}},[t("rect",{staticClass:"clip",attrs:{x:"15",y:"55",width:"70",height:"25"}},[t("animate",{attrs:{attributeName:"height",from:"0",to:"25",dur:"1s",repeatCount:"indefinite",values:"0;25;25",keyTimes:"0;0.5;1"}}),t("animate",{attrs:{attributeName:"y",from:"80",to:"55",dur:"1s",repeatCount:"indefinite",values:"80;55;55",keyTimes:"0;0.5;1"}})])]),t("path",{staticClass:"sand",attrs:{d:"M29,23c3.1,11.4,11.3,19.5,21,19.5S67.9,34.4,71,23H29z","clip-path":"url(#uil-hourglass-clip1)",fill:"currentColor"}}),t("path",{staticClass:"sand",attrs:{d:"M71.6,78c-3-11.6-11.5-20-21.5-20s-18.5,8.4-21.5,20H71.6z","clip-path":"url(#uil-hourglass-clip2)",fill:"currentColor"}}),t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"180 50 50",repeatCount:"indefinite",dur:"1s",values:"0 50 50;0 50 50;180 50 50",keyTimes:"0;0.7;1"}})])])}}),QSpinnerInfinity=Vue.extend({name:"QSpinnerInfinity",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[t("path",{attrs:{d:"M24.3,30C11.4,30,5,43.3,5,50s6.4,20,19.3,20c19.3,0,32.1-40,51.4-40C88.6,30,95,43.3,95,50s-6.4,20-19.3,20C56.4,70,43.6,30,24.3,30z",fill:"none",stroke:"currentColor","stroke-width":"8","stroke-dasharray":"10.691205342610678 10.691205342610678","stroke-dashoffset":"0"}},[t("animate",{attrs:{attributeName:"stroke-dashoffset",from:"0",to:"21.382410685221355",begin:"0",dur:"2s",repeatCount:"indefinite",fill:"freeze"}})])])}}),QSpinnerIos=Vue.extend({name:"QSpinnerIos",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,stroke:"currentColor",fill:"currentColor",viewBox:"0 0 64 64"}},[t("g",{attrs:{"stroke-width":"4","stroke-linecap":"round"}},[t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(180)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:"1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(210)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:"0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(240)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".1;0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(270)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".15;.1;0;1;.85;.7;.65;.55;.45;.35;.25;.15",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(300)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".25;.15;.1;0;1;.85;.7;.65;.55;.45;.35;.25",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(330)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".35;.25;.15;.1;0;1;.85;.7;.65;.55;.45;.35",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(0)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".45;.35;.25;.15;.1;0;1;.85;.7;.65;.55;.45",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(30)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".55;.45;.35;.25;.15;.1;0;1;.85;.7;.65;.55",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(60)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".65;.55;.45;.35;.25;.15;.1;0;1;.85;.7;.65",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(90)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".7;.65;.55;.45;.35;.25;.15;.1;0;1;.85;.7",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(120)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".85;.7;.65;.55;.45;.35;.25;.15;.1;0;1;.85",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(150)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:"1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1",repeatCount:"indefinite"}})])])])}}),QSpinnerOrbit=Vue.extend({name:"QSpinnerOrbit",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"44",fill:"none","stroke-width":"4","stroke-opacity":".5",stroke:"currentColor"}}),t("circle",{attrs:{cx:"8",cy:"54",r:"6",fill:"currentColor","stroke-width":"3",stroke:"currentColor"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 48",to:"360 50 52",dur:"2s",repeatCount:"indefinite"}})])])}}),QSpinnerOval=Vue.extend({name:"QSpinnerOval",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",stroke:"currentColor",width:this.cSize,height:this.cSize,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{transform:"translate(1 1)","stroke-width":"2",fill:"none","fill-rule":"evenodd"}},[t("circle",{attrs:{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}}),t("path",{attrs:{d:"M36 18c0-9.94-8.06-18-18-18"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}})])])])}}),QSpinnerPie=Vue.extend({name:"QSpinnerPie",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M0 50A50 50 0 0 1 50 0L50 50L0 50",fill:"currentColor",opacity:"0.5"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"0.8s",repeatCount:"indefinite"}})]),t("path",{attrs:{d:"M50 0A50 50 0 0 1 100 50L50 50L50 0",fill:"currentColor",opacity:"0.5"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"1.6s",repeatCount:"indefinite"}})]),t("path",{attrs:{d:"M100 50A50 50 0 0 1 50 100L50 50L100 50",fill:"currentColor",opacity:"0.5"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"2.4s",repeatCount:"indefinite"}})]),t("path",{attrs:{d:"M50 100A50 50 0 0 1 0 50L50 50L50 100",fill:"currentColor",opacity:"0.5"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"3.2s",repeatCount:"indefinite"}})])])}}),QSpinnerPuff=Vue.extend({name:"QSpinnerPuff",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",stroke:"currentColor",width:this.cSize,height:this.cSize,viewBox:"0 0 44 44",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{fill:"none","fill-rule":"evenodd","stroke-width":"2"}},[t("circle",{attrs:{cx:"22",cy:"22",r:"1"}},[t("animate",{attrs:{attributeName:"r",begin:"0s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke-opacity",begin:"0s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"22",cy:"22",r:"1"}},[t("animate",{attrs:{attributeName:"r",begin:"-0.9s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke-opacity",begin:"-0.9s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"}})])])])}}),QSpinnerRadio=Vue.extend({name:"QSpinnerRadio",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{transform:"scale(0.55)"}},[t("circle",{attrs:{cx:"30",cy:"150",r:"30",fill:"currentColor"}},[t("animate",{attrs:{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"}})]),t("path",{attrs:{d:"M90,150h30c0-49.7-40.3-90-90-90v30C63.1,90,90,116.9,90,150z",fill:"currentColor"}},[t("animate",{attrs:{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0.1",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"}})]),t("path",{attrs:{d:"M150,150h30C180,67.2,112.8,0,30,0v30C96.3,30,150,83.7,150,150z",fill:"currentColor"}},[t("animate",{attrs:{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0.2",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"}})])])])}}),QSpinnerRings=Vue.extend({name:"QSpinnerRings",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",stroke:"currentColor",width:this.cSize,height:this.cSize,viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(1 1)","stroke-width":"2"}},[t("circle",{attrs:{cx:"22",cy:"22",r:"6"}},[t("animate",{attrs:{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"22",cy:"22",r:"6"}},[t("animate",{attrs:{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"22",cy:"22",r:"8"}},[t("animate",{attrs:{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"}})])])])}}),QSpinnerTail=Vue.extend({name:"QSpinnerTail",mixins:[mixin$1],render(t){return t("svg",{staticClass:"q-spinner",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"}},[t("defs",[t("linearGradient",{attrs:{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"}},[t("stop",{attrs:{"stop-color":"currentColor","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"currentColor","stop-opacity":".631",offset:"63.146%"}}),t("stop",{attrs:{"stop-color":"currentColor",offset:"100%"}})])]),t("g",{attrs:{transform:"translate(1 1)",fill:"none","fill-rule":"evenodd"}},[t("path",{attrs:{d:"M36 18c0-9.94-8.06-18-18-18",stroke:"url(#a)","stroke-width":"2"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}})]),t("circle",{attrs:{fill:"currentColor",cx:"36",cy:"18",r:"1"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}})])])])}}),QSplitter=Vue.extend({name:"QSplitter",mixins:[DarkMixin,ListenersMixin],directives:{TouchPan:TouchPan},props:{value:{type:Number,required:!0},reverse:Boolean,unit:{type:String,default:"%",validator:t=>["%","px"].includes(t)},limits:{type:Array,validator:t=>2===t.length&&("number"==typeof t[0]&&"number"==typeof t[1]&&(t[0]>=0&&t[0]<=t[1]))},emitImmediately:Boolean,horizontal:Boolean,disable:Boolean,beforeClass:[Array,String,Object],afterClass:[Array,String,Object],separatorClass:[Array,String,Object],separatorStyle:[Array,String,Object]},watch:{value:{immediate:!0,handler(t){this.__normalize(t,this.computedLimits)}},limits:{deep:!0,handler(){this.$nextTick(()=>{this.__normalize(this.value,this.computedLimits)})}}},computed:{classes(){return(!0===this.horizontal?"column":"row")+` q-splitter--${!0===this.horizontal?"horizontal":"vertical"}`+` q-splitter--${!0===this.disable?"disabled":"workable"}`+(!0===this.isDark?" q-splitter--dark":"")},prop(){return!0===this.horizontal?"height":"width"},side(){return!0!==this.reverse?"before":"after"},computedLimits(){return void 0!==this.limits?this.limits:"%"===this.unit?[10,90]:[50,1/0]},styles(){return{[this.side]:{[this.prop]:this.__getCSSValue(this.value)}}},separatorDirectives(){if(!0!==this.disable)return[{name:"touch-pan",value:this.__pan,modifiers:{[!0===this.horizontal?"vertical":"horizontal"]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}}]}},methods:{__pan(t){if(!0===t.isFirst){const t=this.$el.getBoundingClientRect()[this.prop];return this.__dir=!0===this.horizontal?"up":"left",this.__maxValue="%"===this.unit?100:t,this.__value=Math.min(this.__maxValue,this.computedLimits[1],Math.max(this.computedLimits[0],this.value)),this.__multiplier=(!0!==this.reverse?1:-1)*(!0===this.horizontal?1:!0===this.$q.lang.rtl?-1:1)*("%"===this.unit?0===t?0:100/t:1),void this.$el.classList.add("q-splitter--active")}if(!0===t.isFinal)return this.__normalized!==this.value&&this.$emit("input",this.__normalized),void this.$el.classList.remove("q-splitter--active");const e=this.__value+this.__multiplier*(t.direction===this.__dir?-1:1)*t.distance[!0===this.horizontal?"y":"x"];this.__normalized=Math.min(this.__maxValue,this.computedLimits[1],Math.max(this.computedLimits[0],e)),this.$refs[this.side].style[this.prop]=this.__getCSSValue(this.__normalized),!0===this.emitImmediately&&this.value!==this.__normalized&&this.$emit("input",this.__normalized)},__normalize(t,e){t<e[0]?this.$emit("input",e[0]):t>e[1]&&this.$emit("input",e[1])},__getCSSValue(t){return("%"===this.unit?t:Math.round(t))+this.unit}},render(t){const e=!0===this.disable?{"aria-disabled":"true"}:void 0,i=[t("div",{ref:"before",staticClass:"q-splitter__panel q-splitter__before"+(!0===this.reverse?" col":""),style:this.styles.before,class:this.beforeClass,on:cache(this,"stop",{input:stop})},slot(this,"before")),t("div",{staticClass:"q-splitter__separator",style:this.separatorStyle,class:this.separatorClass,attrs:e},[t("div",{staticClass:"absolute-full q-splitter__separator-area",directives:this.separatorDirectives},slot(this,"separator"))]),t("div",{ref:"after",staticClass:"q-splitter__panel q-splitter__after"+(!0===this.reverse?"":" col"),style:this.styles.after,class:this.afterClass,on:cache(this,"stop",{input:stop})},slot(this,"after"))];return t("div",{staticClass:"q-splitter no-wrap",class:this.classes,on:{...this.qListeners}},mergeSlot(i,this,"default"))}}),StepHeader=Vue.extend({name:"StepHeader",mixins:[AttrsMixin],directives:{Ripple:Ripple},props:{stepper:{},step:{}},computed:{isActive(){return this.stepper.value===this.step.name},isDisable(){const t=this.step.disable;return!0===t||""===t},isError(){const t=this.step.error;return!0===t||""===t},isDone(){const t=this.step.done;return!1===this.isDisable&&(!0===t||""===t)},headerNav(){const t=this.step.headerNav,e=!0===t||""===t||void 0===t;return!1===this.isDisable&&this.stepper.headerNav&&e},hasPrefix(){return this.step.prefix&&(!1===this.isActive||"none"===this.stepper.activeIcon)&&(!1===this.isError||"none"===this.stepper.errorIcon)&&(!1===this.isDone||"none"===this.stepper.doneIcon)},icon(){const t=this.step.icon||this.stepper.inactiveIcon;if(!0===this.isActive){const e=this.step.activeIcon||this.stepper.activeIcon;return"none"===e?t:e||this.$q.iconSet.stepper.active}if(!0===this.isError){const e=this.step.errorIcon||this.stepper.errorIcon;return"none"===e?t:e||this.$q.iconSet.stepper.error}if(!1===this.isDisable&&!0===this.isDone){const e=this.step.doneIcon||this.stepper.doneIcon;return"none"===e?t:e||this.$q.iconSet.stepper.done}return t},color(){const t=!0===this.isError?this.step.errorColor||this.stepper.errorColor:void 0;if(!0===this.isActive){const e=this.step.activeColor||this.stepper.activeColor||this.step.color;return void 0!==e?e:t}return void 0!==t?t:!1===this.isDisable&&!0===this.isDone?this.step.doneColor||this.stepper.doneColor||this.step.color||this.stepper.inactiveColor:this.step.color||this.stepper.inactiveColor},classes(){return"q-stepper__tab col-grow flex items-center no-wrap relative-position"+(void 0!==this.color?` text-${this.color}`:"")+(!0===this.isError?" q-stepper__tab--error q-stepper__tab--error-with-"+(!0===this.hasPrefix?"prefix":"icon"):"")+(!0===this.isActive?" q-stepper__tab--active":"")+(!0===this.isDone?" q-stepper__tab--done":"")+(!0===this.headerNav?" q-stepper__tab--navigation q-focusable q-hoverable":"")+(!0===this.isDisable?" q-stepper__tab--disabled":"")}},methods:{activate(){void 0!==this.$refs.blurTarget&&this.$refs.blurTarget.focus(),!1===this.isActive&&this.stepper.goTo(this.step.name)},keyup(t){13===t.keyCode&&!1===this.isActive&&this.stepper.goTo(this.step.name)}},render(t){const e={class:this.classes};!0===this.stepper.headerNav&&(e.directives=[{name:"ripple",value:this.headerNav}]),!0===this.headerNav&&Object.assign(e,{on:cache(this,"headnavon",{click:this.activate,keyup:this.keyup}),attrs:!0===this.isDisable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:this.qAttrs.tabindex||0}});const i=[t("div",{staticClass:"q-focus-helper",attrs:{tabindex:-1},ref:"blurTarget"}),t("div",{staticClass:"q-stepper__dot row flex-center q-stepper__line relative-position"},[t("span",{staticClass:"row flex-center"},[!0===this.hasPrefix?this.step.prefix:t(QIcon,{props:{name:this.icon}})])])];if(void 0!==this.step.title&&null!==this.step.title){const e=[t("div",{staticClass:"q-stepper__title"},[this.step.title])];void 0!==this.step.caption&&null!==this.step.caption&&e.push(t("div",{staticClass:"q-stepper__caption"},[this.step.caption])),i.push(t("div",{staticClass:"q-stepper__label q-stepper__line relative-position"},e))}return t("div",e,i)}});const attrs$4={role:"tabpanel"},StepWrapper=Vue.extend({name:"QStepWrapper",render(t){return t("div",{staticClass:"q-stepper__step-content"},[t("div",{staticClass:"q-stepper__step-inner"},slot(this,"default"))])}});var QStep=Vue.extend({name:"QStep",inject:{stepper:{default(){console.error("QStep needs to be child of QStepper")}}},mixins:[PanelChildMixin],props:{icon:String,color:String,title:{type:String,required:!0},caption:String,prefix:[String,Number],doneIcon:String,doneColor:String,activeIcon:String,activeColor:String,errorIcon:String,errorColor:String,headerNav:{type:Boolean,default:!0},done:Boolean,error:Boolean},computed:{isActive(){return this.stepper.value===this.name},onEvents(){return!0!==this.isActive||!0!==this.stepper.vertical||!0!==this.$q.platform.is.ios&&!0===this.$q.platform.is.chrome?{...this.qListeners}:{...this.qListeners,scroll:this.__keepScroll}}},methods:{__keepScroll(t){const{target:e}=t;e.scrollTop>0&&(e.scrollTop=0),void 0!==this.qListeners.scroll&&this.$emit("scroll",t)}},render(t){const e=this.stepper.vertical,i=!0===e&&!0===this.stepper.keepAlive?t("keep-alive",!0===this.isActive?[t(StepWrapper,{key:this.name},slot(this,"default"))]:void 0):!0!==e||!0===this.isActive?StepWrapper.options.render.call(this,t):void 0;return t("div",{staticClass:"q-stepper__step",attrs:attrs$4,on:this.onEvents},!0===e?[t(StepHeader,{props:{stepper:this.stepper,step:this}}),!0===this.stepper.animated?t(QSlideTransition,[i]):i]:[i])}}),QStepper=Vue.extend({name:"QStepper",provide(){return{stepper:this}},mixins:[DarkMixin,PanelParentMixin],props:{flat:Boolean,bordered:Boolean,alternativeLabels:Boolean,headerNav:Boolean,contracted:Boolean,headerClass:String,inactiveColor:String,inactiveIcon:String,doneIcon:String,doneColor:String,activeIcon:String,activeColor:String,errorIcon:String,errorColor:String},computed:{classes(){return`q-stepper q-stepper--${!0===this.vertical?"vertical":"horizontal"}`+(!0===this.flat||!0===this.isDark?" q-stepper--flat no-shadow":"")+(!0===this.bordered||!0===this.isDark&&!1===this.flat?" q-stepper--bordered":"")+(!0===this.isDark?" q-stepper--dark q-dark":"")},headerClasses(){return"q-stepper__header row items-stretch justify-between"+` q-stepper__header--${!0===this.alternativeLabels?"alternative":"standard"}-labels`+(!1===this.flat||!0===this.bordered?" q-stepper__header--border":"")+(!0===this.contracted?" q-stepper__header--contracted":"")+(void 0!==this.headerClass?` ${this.headerClass}`:"")}},methods:{__getContent(t){const e=slot(this,"message",[]);if(!0===this.vertical){this.__isValidPanelName(this.value)&&this.__updatePanelIndex();const i=t("div",{staticClass:"q-stepper__content",on:cache(this,"stop",{input:stop})},slot(this,"default"));return void 0===e?[i]:e.concat(i)}return[t("div",{class:this.headerClasses},this.panels.map(e=>{const i=e.componentOptions.propsData;return t(StepHeader,{key:i.name,props:{stepper:this,step:i}})}))].concat(e,t("div",{staticClass:"q-stepper__content q-panel-parent",directives:this.panelDirectives},this.__getPanelContent(t)))},__renderPanels(t){return t("div",{class:this.classes,on:{...this.qListeners}},mergeSlot(this.__getContent(t),this,"navigation"))}}}),QStepperNavigation=Vue.extend({name:"QStepperNavigation",mixins:[ListenersMixin],render(t){return t("div",{staticClass:"q-stepper__nav",on:{...this.qListeners}},slot(this,"default"))}}),Top={computed:{marginalsScope(){return{pagination:this.computedPagination,pagesNumber:this.pagesNumber,isFirstPage:this.isFirstPage,isLastPage:this.isLastPage,firstPage:this.firstPage,prevPage:this.prevPage,nextPage:this.nextPage,lastPage:this.lastPage,inFullscreen:this.inFullscreen,toggleFullscreen:this.toggleFullscreen}}},methods:{__getTopDiv(t){const e=this.$scopedSlots.top,i=this.$scopedSlots["top-left"],s=this.$scopedSlots["top-right"],o=this.$scopedSlots["top-selection"],n=!0===this.hasSelectionMode&&void 0!==o&&this.rowsSelectedNumber>0,r="q-table__top relative-position row items-center";if(void 0!==e)return t("div",{staticClass:r},[e(this.marginalsScope)]);let a;return!0===n?a=o(this.marginalsScope).slice():(a=[],void 0!==i?a.push(t("div",{staticClass:"q-table__control"},[i(this.marginalsScope)])):this.title&&a.push(t("div",{staticClass:"q-table__control"},[t("div",{staticClass:"q-table__title",class:this.titleClass},this.title)]))),void 0!==s&&(a.push(t("div",{staticClass:"q-table__separator col"})),a.push(t("div",{staticClass:"q-table__control"},[s(this.marginalsScope)]))),0!==a.length?t("div",{staticClass:r},a):void 0}}},QTh=Vue.extend({name:"QTh",mixins:[ListenersMixin],props:{props:Object,autoWidth:Boolean},render(t){const e={...this.qListeners};if(void 0===this.props)return t("th",{on:e,class:!0===this.autoWidth?"q-table--col-auto-width":null},slot(this,"default"));let i,s;const o=this.$vnode.key;if(o){if(void 0===(i=this.props.colsMap[o]))return}else i=this.props.col;if(!0===i.sortable){const e="right"===i.align?"unshift":"push";(s=uniqueSlot(this,"default",[]))[e](t(QIcon,{props:{name:this.$q.iconSet.table.arrowUp},staticClass:i.__iconClass}))}else s=slot(this,"default");const n=!0===i.sortable?{click:t=>{this.props.sort(i),this.$emit("click",t)}}:{};return t("th",{on:{...e,...n},style:i.headerStyle,class:i.__thClass+(!0===this.autoWidth?" q-table--col-auto-width":"")},s)}}),TableHeader={computed:{headerSelectedValue(){return!0===this.someRowsSelected?null:this.allRowsSelected}},methods:{__getTHead(t){const e=this.__getTHeadTR(t);return!0===this.loading&&void 0===this.$scopedSlots.loading&&e.push(t("tr",{staticClass:"q-table__progress"},[t("th",{staticClass:"relative-position",attrs:{colspan:this.computedColspan}},this.__getProgress(t))])),t("thead",e)},__getTHeadTR(t){const e=this.$scopedSlots.header,i=this.$scopedSlots["header-cell"];if(void 0!==e)return e(this.__getHeaderScope({header:!0})).slice();const s=this.computedCols.map(e=>{const s=this.$scopedSlots[`header-cell-${e.name}`],o=void 0!==s?s:i,n=this.__getHeaderScope({col:e});return void 0!==o?o(n):t(QTh,{key:e.name,props:{props:n}},e.label)});if(!0===this.singleSelection&&!0!==this.grid)s.unshift(t("th",{staticClass:"q-table--col-auto-width"},[" "]));else if(!0===this.multipleSelection){const e=this.$scopedSlots["header-selection"],i=void 0!==e?e(this.__getHeaderScope({})):[t(QCheckbox,{props:{color:this.color,value:this.headerSelectedValue,dark:this.isDark,dense:this.dense},on:cache(this,"inp",{input:this.__onMultipleSelectionSet})})];s.unshift(t("th",{staticClass:"q-table--col-auto-width"},i))}return[t("tr",{style:this.tableHeaderStyle,class:this.tableHeaderClass},s)]},__getHeaderScope(t){return Object.assign(t,{cols:this.computedCols,sort:this.sort,colsMap:this.computedColsMap,color:this.color,dark:this.isDark,dense:this.dense}),!0===this.multipleSelection&&(injectProp(t,"selected",()=>this.headerSelectedValue,this.__onMultipleSelectionSet),t.partialSelected=this.someRowsSelected,t.multipleSelect=!0),t},__onMultipleSelectionSet(t){!0===this.someRowsSelected&&(t=!1),this.__updateSelection(this.computedRows.map(this.getRowKey),this.computedRows,t)}}},TableBody={methods:{__getTBodyTR(t,e,i,s){const o=this.getRowKey(e),n=this.isRowSelected(o);if(void 0!==i)return i(this.__getBodyScope({key:o,row:e,pageIndex:s,__trClass:n?"selected":""}));const r=this.$scopedSlots["body-cell"],a=this.computedCols.map(i=>{const n=this.$scopedSlots[`body-cell-${i.name}`],a=void 0!==n?n:r;return void 0!==a?a(this.__getBodyCellScope({key:o,row:e,pageIndex:s,col:i})):t("td",{class:i.__tdClass(e),style:i.__tdStyle(e)},this.getCellValue(i,e))});if(!0===this.hasSelectionMode){const i=this.$scopedSlots["body-selection"],r=void 0!==i?i(this.__getBodySelectionScope({key:o,row:e,pageIndex:s})):[t(QCheckbox,{props:{value:n,color:this.color,dark:this.isDark,dense:this.dense},on:{input:(t,i)=>{this.__updateSelection([o],[e],t,i)}}})];a.unshift(t("td",{staticClass:"q-table--col-auto-width"},r))}const l={key:o,class:{selected:n},on:{}};return void 0!==this.qListeners["row-click"]&&(l.class["cursor-pointer"]=!0,l.on.click=(t=>{this.$emit("row-click",t,e,s)})),void 0!==this.qListeners["row-dblclick"]&&(l.class["cursor-pointer"]=!0,l.on.dblclick=(t=>{this.$emit("row-dblclick",t,e,s)})),void 0!==this.qListeners["row-contextmenu"]&&(l.class["cursor-pointer"]=!0,l.on.contextmenu=(t=>{this.$emit("row-contextmenu",t,e,s)})),t("tr",l,a)},__getTBody(t){const e=this.$scopedSlots.body,i=this.$scopedSlots["top-row"],s=this.$scopedSlots["bottom-row"];let o=this.computedRows.map((i,s)=>this.__getTBodyTR(t,i,e,s));return void 0!==i&&(o=i({cols:this.computedCols}).concat(o)),void 0!==s&&(o=o.concat(s({cols:this.computedCols}))),t("tbody",o)},__getVirtualTBodyTR(t){const e=this.$scopedSlots.body;return i=>this.__getTBodyTR(t,i.item,e,i.index)},__getBodyScope(t){return this.__injectBodyCommonScope(t),t.cols=t.cols.map(e=>injectProp({...e},"value",()=>this.getCellValue(e,t.row))),t},__getBodyCellScope(t){return this.__injectBodyCommonScope(t),injectProp(t,"value",()=>this.getCellValue(t.col,t.row))},__getBodySelectionScope(t){return this.__injectBodyCommonScope(t),t},__injectBodyCommonScope(t){Object.assign(t,{cols:this.computedCols,colsMap:this.computedColsMap,sort:this.sort,rowIndex:this.firstRowIndex+t.pageIndex,color:this.color,dark:this.isDark,dense:this.dense}),!0===this.hasSelectionMode&&injectProp(t,"selected",()=>this.isRowSelected(t.key),(e,i)=>{this.__updateSelection([t.key],[t.row],e,i)}),injectProp(t,"expand",()=>this.isRowExpanded(t.key),e=>{this.__updateExpanded(t.key,e)})},getCellValue(t,e){const i="function"==typeof t.field?t.field(e):e[t.field];return void 0!==t.format?t.format(i,e):i}}};const staticClass="q-table__bottom row items-center";var Bottom={props:{hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean},computed:{navIcon(){const t=[this.iconFirstPage||this.$q.iconSet.table.firstPage,this.iconPrevPage||this.$q.iconSet.table.prevPage,this.iconNextPage||this.$q.iconSet.table.nextPage,this.iconLastPage||this.$q.iconSet.table.lastPage];return!0===this.$q.lang.rtl?t.reverse():t}},methods:{__getBottomDiv(t){if(!0===this.hideBottom)return;if(!0===this.nothingToDisplay){if(!0===this.hideNoData)return;const e=!0===this.loading?this.loadingLabel||this.$q.lang.table.loading:this.filter?this.noResultsLabel||this.$q.lang.table.noResults:this.noDataLabel||this.$q.lang.table.noData,i=this.$scopedSlots["no-data"],s=void 0!==i?[i({message:e,icon:this.$q.iconSet.table.warning,filter:this.filter})]:[t(QIcon,{staticClass:"q-table__bottom-nodata-icon",props:{name:this.$q.iconSet.table.warning}}),e];return t("div",{staticClass:staticClass+" q-table__bottom--nodata"},s)}const e=this.$scopedSlots.bottom;if(void 0!==e)return t("div",{staticClass:staticClass},[e(this.marginalsScope)]);const i=!0!==this.hideSelectedBanner&&!0===this.hasSelectionMode&&this.rowsSelectedNumber>0?[t("div",{staticClass:"q-table__control"},[t("div",[(this.selectedRowsLabel||this.$q.lang.table.selectedRecords)(this.rowsSelectedNumber)])])]:[];return!0!==this.hidePagination?t("div",{staticClass:staticClass+" justify-end"},this.__getPaginationDiv(t,i)):i.length>0?t("div",{staticClass:staticClass},i):void 0},__getPaginationDiv(t,e){let i;const{rowsPerPage:s}=this.computedPagination,o=this.paginationLabel||this.$q.lang.table.pagination,n=this.$scopedSlots.pagination,r=this.rowsPerPageOptions.length>1;if(e.push(t("div",{staticClass:"q-table__separator col"})),!0===r&&e.push(t("div",{staticClass:"q-table__control"},[t("span",{staticClass:"q-table__bottom-item"},[this.rowsPerPageLabel||this.$q.lang.table.recordsPerPage]),t(QSelect,{staticClass:"q-table__select inline q-table__bottom-item",props:{color:this.color,value:s,options:this.computedRowsPerPageOptions,displayValue:0===s?this.$q.lang.table.allRows:s,dark:this.isDark,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0},on:cache(this,"pgSize",{input:t=>{this.setPagination({page:1,rowsPerPage:t.value})}})})])),void 0!==n)i=n(this.marginalsScope);else if(i=[t("span",0!==s?{staticClass:"q-table__bottom-item"}:{},[s?o(this.firstRowIndex+1,Math.min(this.lastRowIndex,this.computedRowsNumber),this.computedRowsNumber):o(1,this.filteredSortedRowsNumber,this.computedRowsNumber)])],0!==s&&this.pagesNumber>1){const e={color:this.color,round:!0,dense:!0,flat:!0};!0===this.dense&&(e.size="sm"),this.pagesNumber>2&&i.push(t(QBtn,{key:"pgFirst",props:{...e,icon:this.navIcon[0],disable:this.isFirstPage},on:cache(this,"pgFirst",{click:this.firstPage})})),i.push(t(QBtn,{key:"pgPrev",props:{...e,icon:this.navIcon[1],disable:this.isFirstPage},on:cache(this,"pgPrev",{click:this.prevPage})}),t(QBtn,{key:"pgNext",props:{...e,icon:this.navIcon[2],disable:this.isLastPage},on:cache(this,"pgNext",{click:this.nextPage})})),this.pagesNumber>2&&i.push(t(QBtn,{key:"pgLast",props:{...e,icon:this.navIcon[3],disable:this.isLastPage},on:cache(this,"pgLast",{click:this.lastPage})}))}return e.push(t("div",{staticClass:"q-table__control"},i)),e}}},TableGrid={methods:{__getGridHeader(t){return t("div",{staticClass:"q-table__middle"},!0===this.gridHeader?[t("table",{staticClass:"q-table"},[this.__getTHead(t)])]:!0===this.loading&&void 0===this.$scopedSlots.loading?this.__getProgress(t):void 0)},__getGridBody(t){const e=void 0!==this.$scopedSlots.item?this.$scopedSlots.item:e=>{const i=e.cols.map(e=>t("div",{staticClass:"q-table__grid-item-row"},[t("div",{staticClass:"q-table__grid-item-title"},[e.label]),t("div",{staticClass:"q-table__grid-item-value"},[e.value])]));if(!0===this.hasSelectionMode){const s=this.$scopedSlots["body-selection"],o=void 0!==s?s(e):[t(QCheckbox,{props:{value:e.selected,color:this.color,dark:this.isDark,dense:this.dense},on:{input:(t,i)=>{this.__updateSelection([e.key],[e.row],t,i)}}})];i.unshift(t("div",{staticClass:"q-table__grid-item-row"},o),t(QSeparator,{props:{dark:this.isDark}}))}const s={staticClass:"q-table__grid-item-card"+this.cardDefaultClass,class:this.cardClass,style:this.cardStyle,on:{}};return void 0===this.qListeners["row-click"]&&void 0===this.qListeners["row-dblclick"]||(s.staticClass+=" cursor-pointer"),void 0!==this.qListeners["row-click"]&&(s.on.click=(t=>{this.$emit("row-click",t,e.row,e.pageIndex)})),void 0!==this.qListeners["row-dblclick"]&&(s.on.dblclick=(t=>{this.$emit("row-dblclick",t,e.row,e.pageIndex)})),t("div",{staticClass:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3",class:!0===e.selected?"q-table__grid-item--selected":""},[t("div",s,i)])};return t("div",{staticClass:"q-table__grid-content row",class:this.cardContainerClass,style:this.cardContainerStyle},this.computedRows.map((t,i)=>e(this.__getBodyScope({key:this.getRowKey(t),row:t,pageIndex:i}))))}}};function getTableMiddle(t,e,i){return t("div",{...e,staticClass:"q-table__middle"+(void 0!==e.staticClass?" "+e.staticClass:"")},[t("table",{staticClass:"q-table"},i)])}const comps={list:QList,table:QMarkupTable};var QVirtualScroll=Vue.extend({name:"QVirtualScroll",mixins:[AttrsMixin,ListenersMixin,VirtualScroll],props:{type:{type:String,default:"list",validator:t=>["list","table","__qtable"].includes(t)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:{default:void 0}},computed:{virtualScrollLength(){return this.itemsSize>=0&&void 0!==this.itemsFn?parseInt(this.itemsSize,10):Array.isArray(this.items)?this.items.length:0},virtualScrollScope(){if(0===this.virtualScrollLength)return[];const t=(t,e)=>({index:this.virtualScrollSliceRange.from+e,item:t});return void 0===this.itemsFn?this.items.slice(this.virtualScrollSliceRange.from,this.virtualScrollSliceRange.to).map(t):this.itemsFn(this.virtualScrollSliceRange.from,this.virtualScrollSliceRange.to-this.virtualScrollSliceRange.from).map(t)},classes(){return"q-virtual-scroll q-virtual-scroll"+(!0===this.virtualScrollHorizontal?"--horizontal":"--vertical")+(void 0!==this.scrollTarget?"":" scroll")},attrs(){return void 0!==this.scrollTarget?void 0:{tabindex:0}}},watch:{virtualScrollLength(){this.__resetVirtualScroll()},scrollTarget(){this.__unconfigureScrollTarget(),this.__configureScrollTarget()}},methods:{__getVirtualScrollEl(){return this.$el},__getVirtualScrollTarget(){return this.__scrollTarget},__configureScrollTarget(){this.__scrollTarget=getScrollTarget(this.$el,this.scrollTarget),this.__scrollTarget.addEventListener("scroll",this.__onVirtualScrollEvt,listenOpts.passive)},__unconfigureScrollTarget(){void 0!==this.__scrollTarget&&(this.__scrollTarget.removeEventListener("scroll",this.__onVirtualScrollEvt,listenOpts.passive),this.__scrollTarget=void 0)}},beforeMount(){this.__resetVirtualScroll()},mounted(){this.__configureScrollTarget()},activated(){this.__configureScrollTarget()},deactivated(){this.__unconfigureScrollTarget()},beforeDestroy(){this.__unconfigureScrollTarget()},render(t){if(void 0===this.$scopedSlots.default)return void console.error("QVirtualScroll: default scoped slot is required for rendering",this);let e=this.__padVirtualScroll(t,"list"===this.type?"div":"tbody",this.virtualScrollScope.map(this.$scopedSlots.default));return void 0!==this.$scopedSlots.before&&(e=this.$scopedSlots.before().concat(e)),e=mergeSlot(e,this,"after"),"__qtable"===this.type?getTableMiddle(t,{staticClass:this.classes},e):t(comps[this.type],{class:this.classes,attrs:this.attrs,props:this.qAttrs,on:{...this.qListeners}},e)}});function sortDate(t,e){return new Date(t)-new Date(e)}var Sort={props:{sortMethod:{type:Function,default(t,e,i){const s=this.colList.find(t=>t.name===e);if(void 0===s||void 0===s.field)return t;const o=!0===i?-1:1,n="function"==typeof s.field?t=>s.field(t):t=>t[s.field];return t.sort((t,e)=>{let i=n(t),r=n(e);return null===i||void 0===i?-1*o:null===r||void 0===r?1*o:void 0!==s.sort?s.sort(i,r,t,e)*o:!0===isNumber(i)&&!0===isNumber(r)?(i-r)*o:!0===isDate(i)&&!0===isDate(r)?sortDate(i,r)*o:"boolean"==typeof i&&"boolean"==typeof r?(i-r)*o:([i,r]=[i,r].map(t=>(t+"").toLocaleString().toLowerCase()),i<r?-1*o:i===r?0:o)})}},columnSortOrder:{type:String,validator:t=>"ad"===t||"da"===t,default:"ad"}},computed:{columnToSort(){const{sortBy:t}=this.computedPagination;if(t)return this.colList.find(e=>e.name===t)||null}},methods:{sort(t){let e=this.columnSortOrder;if(!0===isObject(t))t.sortOrder&&(e=t.sortOrder),t=t.name;else{const i=this.colList.find(e=>e.name===t);void 0!==i&&i.sortOrder&&(e=i.sortOrder)}let{sortBy:i,descending:s}=this.computedPagination;i!==t?(i=t,s="da"===e):!0===this.binaryStateSort?s=!s:!0===s?"ad"===e?i=null:s=!1:"ad"===e?s=!0:i=null,this.setPagination({sortBy:i,descending:s,page:1})}}},Filter={props:{filter:[String,Object],filterMethod:{type:Function,default(t,e,i=this.computedCols,s=this.getCellValue){const o=e?e.toLowerCase():"";return t.filter(t=>i.some(e=>{const i=s(e,t)+"";return-1!==("undefined"===i||"null"===i?"":i.toLowerCase()).indexOf(o)}))}}},watch:{filter:{handler(){this.$nextTick(()=>{this.setPagination({page:1},!0)})},deep:!0}}};function samePagination(t,e){for(const i in e)if(e[i]!==t[i])return!1;return!0}function fixPagination(t){return t.page<1&&(t.page=1),void 0!==t.rowsPerPage&&t.rowsPerPage<1&&(t.rowsPerPage=0),t}var Pagination={props:{pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]}},computed:{computedPagination(){return fixPagination(void 0!==this.qListeners["update:pagination"]?{...this.innerPagination,...this.pagination}:this.innerPagination)},firstRowIndex(){const{page:t,rowsPerPage:e}=this.computedPagination;return(t-1)*e},lastRowIndex(){const{page:t,rowsPerPage:e}=this.computedPagination;return t*e},isFirstPage(){return 1===this.computedPagination.page},pagesNumber(){return 0===this.computedPagination.rowsPerPage?1:Math.max(1,Math.ceil(this.computedRowsNumber/this.computedPagination.rowsPerPage))},isLastPage(){return 0===this.lastRowIndex||this.computedPagination.page>=this.pagesNumber},computedRowsPerPageOptions(){return(this.rowsPerPageOptions.includes(this.innerPagination.rowsPerPage)?this.rowsPerPageOptions:[this.innerPagination.rowsPerPage].concat(this.rowsPerPageOptions)).map(t=>({label:0===t?this.$q.lang.table.allRows:""+t,value:t}))}},watch:{pagesNumber(t,e){if(t===e)return;const i=this.computedPagination.page;t&&!i?this.setPagination({page:1}):t<i&&this.setPagination({page:t})}},methods:{__sendServerRequest(t){this.requestServerInteraction({pagination:t,filter:this.filter})},setPagination(t,e){const i=fixPagination({...this.computedPagination,...t});samePagination(this.computedPagination,i)?!0===this.isServerSide&&!0===e&&this.__sendServerRequest(i):!0!==this.isServerSide?void 0!==this.pagination&&void 0!==this.qListeners["update:pagination"]?this.$emit("update:pagination",i):this.innerPagination=i:this.__sendServerRequest(i)},firstPage(){this.setPagination({page:1})},prevPage(){const{page:t}=this.computedPagination;t>1&&this.setPagination({page:t-1})},nextPage(){const{page:t,rowsPerPage:e}=this.computedPagination;this.lastRowIndex>0&&t*e<this.computedRowsNumber&&this.setPagination({page:t+1})},lastPage(){this.setPagination({page:this.pagesNumber})}},created(){void 0!==this.qListeners["update:pagination"]&&this.$emit("update:pagination",{...this.computedPagination})}},RowSelection={props:{selection:{type:String,default:"none",validator:t=>["single","multiple","none"].includes(t)},selected:{type:Array,default:()=>[]}},computed:{selectedKeys(){const t={};return this.selected.map(this.getRowKey).forEach(e=>{t[e]=!0}),t},hasSelectionMode(){return"none"!==this.selection},singleSelection(){return"single"===this.selection},multipleSelection(){return"multiple"===this.selection},allRowsSelected(){return this.computedRows.length>0&&this.computedRows.every(t=>!0===this.selectedKeys[this.getRowKey(t)])},someRowsSelected(){return!0!==this.allRowsSelected&&this.computedRows.some(t=>!0===this.selectedKeys[this.getRowKey(t)])},rowsSelectedNumber(){return this.selected.length}},methods:{isRowSelected(t){return!0===this.selectedKeys[t]},clearSelection(){this.$emit("update:selected",[])},__updateSelection(t,e,i,s){this.$emit("selection",{rows:e,added:i,keys:t,evt:s});const o=!0===this.singleSelection?!0===i?e:[]:!0===i?this.selected.concat(e):this.selected.filter(e=>!1===t.includes(this.getRowKey(e)));this.$emit("update:selected",o)}}};function getVal(t){return Array.isArray(t)?t.slice():[]}var RowExpand={props:{expanded:Array},data(){return{innerExpanded:getVal(this.expanded)}},watch:{expanded(t){this.innerExpanded=getVal(t)}},methods:{isRowExpanded(t){return this.innerExpanded.includes(t)},setExpanded(t){void 0!==this.expanded?this.$emit("update:expanded",t):this.innerExpanded=t},__updateExpanded(t,e){const i=this.innerExpanded.slice(),s=i.indexOf(t);!0===e?-1===s&&(i.push(t),this.setExpanded(i)):-1!==s&&(i.splice(s,1),this.setExpanded(i))}}},ColumnSelection={props:{visibleColumns:Array},computed:{colList(){if(void 0!==this.columns)return this.columns;const t=this.data[0];return void 0!==t?Object.keys(t).map(e=>({name:e,label:e.toUpperCase(),field:e,align:isNumber(t[e])?"right":"left",sortable:!0})):[]},computedCols(){const{sortBy:t,descending:e}=this.computedPagination;return(void 0!==this.visibleColumns?this.colList.filter(t=>!0===t.required||!0===this.visibleColumns.includes(t.name)):this.colList).map(i=>{const s=i.align||"right",o=`text-${s}`;return{...i,align:s,__iconClass:`q-table__sort-icon q-table__sort-icon--${s}`,__thClass:o+(void 0!==i.headerClasses?" "+i.headerClasses:"")+(!0===i.sortable?" sortable":"")+(i.name===t?` sorted ${!0===e?"sort-desc":""}`:""),__tdStyle:void 0!==i.style?"function"!=typeof i.style?()=>i.style:i.style:()=>null,__tdClass:void 0!==i.classes?"function"!=typeof i.classes?()=>o+" "+i.classes:t=>o+" "+i.classes(t):()=>o}})},computedColsMap(){const t={};return this.computedCols.forEach(e=>{t[e.name]=e}),t},computedColspan(){return void 0!==this.tableColspan?this.tableColspan:this.computedCols.length+(!0===this.hasSelectionMode?1:0)}}};const commonVirtPropsObj={};commonVirtPropsList.forEach(t=>{commonVirtPropsObj[t]={}});var QTable=Vue.extend({name:"QTable",mixins:[DarkMixin,ListenersMixin,FullscreenMixin,Top,TableHeader,TableBody,Bottom,TableGrid,Sort,Filter,Pagination,RowSelection,RowExpand,ColumnSelection],props:{data:{type:Array,default:()=>[]},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,binaryStateSort:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:t=>["horizontal","vertical","cell","none"].includes(t)},wrapCells:Boolean,virtualScroll:Boolean,...commonVirtPropsObj,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object]},data(){return{innerPagination:Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:this.rowsPerPageOptions.length>0?this.rowsPerPageOptions[0]:5},this.pagination)}},watch:{needsReset(){!0===this.hasVirtScroll&&void 0!==this.$refs.virtScroll&&this.$refs.virtScroll.reset()}},computed:{getRowKey(){return"function"==typeof this.rowKey?this.rowKey:t=>t[this.rowKey]},hasVirtScroll(){return!0!==this.grid&&!0===this.virtualScroll},needsReset(){return["tableStyle","tableClass","tableHeaderStyle","tableHeaderClass","__containerClass"].map(t=>this[t]).join(";")},filteredSortedRows(){let t=this.data;if(!0===this.isServerSide||0===t.length)return t;const{sortBy:e,descending:i}=this.computedPagination;return this.filter&&(t=this.filterMethod(t,this.filter,this.computedCols,this.getCellValue)),void 0!==this.columnToSort&&(t=this.sortMethod(this.data===t?t.slice():t,e,i)),t},filteredSortedRowsNumber(){return this.filteredSortedRows.length},computedRows(){let t=this.filteredSortedRows;if(!0===this.isServerSide)return t;const{rowsPerPage:e}=this.computedPagination;return 0!==e&&(0===this.firstRowIndex&&this.data!==t?t.length>this.lastRowIndex&&(t=t.slice(0,this.lastRowIndex)):t=t.slice(this.firstRowIndex,this.lastRowIndex)),t},computedRowsNumber(){return!0===this.isServerSide?this.computedPagination.rowsNumber||0:this.filteredSortedRowsNumber},nothingToDisplay(){return 0===this.computedRows.length},isServerSide(){return void 0!==this.computedPagination.rowsNumber},cardDefaultClass(){return" q-table__card"+(!0===this.isDark?" q-table__card--dark q-dark":"")+(!0===this.square?" q-table--square":"")+(!0===this.flat?" q-table--flat":"")+(!0===this.bordered?" q-table--bordered":"")},__containerClass(){return`q-table__container q-table--${this.separator}-separator column no-wrap`+(!0===this.grid?" q-table--grid":this.cardDefaultClass)+(!0===this.isDark?" q-table--dark":"")+(!0===this.dense?" q-table--dense":"")+(!1===this.wrapCells?" q-table--no-wrap":"")+(!0===this.inFullscreen?" fullscreen scroll":"")},containerClass(){return this.__containerClass+(!0===this.loading?" q-table--loading":"")},virtProps(){const t={};return commonVirtPropsList.forEach(e=>{t[e]=this[e]}),void 0===t.virtualScrollItemSize&&(t.virtualScrollItemSize=!0===this.dense?28:48),t}},render(t){const e=[this.__getTopDiv(t)],i={staticClass:this.containerClass};return!0===this.grid?e.push(this.__getGridHeader(t)):Object.assign(i,{class:this.cardClass,style:this.cardStyle}),e.push(this.__getBody(t),this.__getBottomDiv(t)),!0===this.loading&&void 0!==this.$scopedSlots.loading&&e.push(this.$scopedSlots.loading()),t("div",i,e)},methods:{requestServerInteraction(t={}){this.$nextTick(()=>{this.$emit("request",{pagination:t.pagination||this.computedPagination,filter:t.filter||this.filter,getCellValue:this.getCellValue})})},resetVirtualScroll(){!0===this.hasVirtScroll&&this.$refs.virtScroll.reset()},__getBody(t){if(!0===this.grid)return this.__getGridBody(t);const e=!0!==this.hideHeader?this.__getTHead(t):null;if(!0===this.hasVirtScroll){const i=this.$scopedSlots["top-row"],s=this.$scopedSlots["bottom-row"],o={default:this.__getVirtualTBodyTR(t)};if(void 0!==i){const s=t("tbody",i({cols:this.computedCols}));o.before=null===e?()=>[s]:()=>[e].concat(s)}else null!==e&&(o.before=(()=>e));return void 0!==s&&(o.after=(()=>t("tbody",s({cols:this.computedCols})))),t(QVirtualScroll,{ref:"virtScroll",props:{...this.virtProps,items:this.computedRows,type:"__qtable",tableColspan:this.computedColspan},on:cache(this,"vs",{"virtual-scroll":this.__onVScroll}),class:this.tableClass,style:this.tableStyle,scopedSlots:o})}return getTableMiddle(t,{staticClass:"scroll",class:this.tableClass,style:this.tableStyle},[e,this.__getTBody(t)])},scrollTo(t,e){if(void 0!==this.$refs.virtScroll)return void this.$refs.virtScroll.scrollTo(t,e);t=parseInt(t,10);const i=this.$el.querySelector(`tbody tr:nth-of-type(${t+1})`);if(null!==i){const e=this.$el.querySelector(".q-table__middle.scroll"),s=i.offsetTop-this.virtualScrollStickySizeStart,o=s<e.scrollTop?"decrease":"increase";e.scrollTop=s,this.$emit("virtual-scroll",{index:t,from:0,to:this.pagination.rowsPerPage-1,direction:o})}},__onVScroll(t){this.$emit("virtual-scroll",t)},__getProgress(t){return[t(QLinearProgress,{staticClass:"q-table__linear-progress",props:{color:this.color,dark:this.isDark,indeterminate:!0,trackColor:"transparent"}})]}}}),QTr=Vue.extend({name:"QTr",mixins:[ListenersMixin],props:{props:Object,noHover:Boolean},computed:{classes(){return"q-tr"+(void 0===this.props||!0===this.props.header?"":" "+this.props.__trClass)+(!0===this.noHover?" q-tr--no-hover":"")}},render(t){return t("tr",{on:{...this.qListeners},class:this.classes},slot(this,"default"))}}),QTd=Vue.extend({name:"QTd",mixins:[ListenersMixin],props:{props:Object,autoWidth:Boolean,noHover:Boolean},computed:{classes(){return"q-td"+(!0===this.autoWidth?" q-table--col-auto-width":"")+(!0===this.noHover?" q-td--no-hover":"")+" "}},render(t){const e=this.qListeners;if(void 0===this.props)return t("td",{on:e,class:this.classes},slot(this,"default"));const i=this.$vnode.key,s=void 0!==this.props.colsMap&&i?this.props.colsMap[i]:this.props.col;if(void 0===s)return;const o=this.props.row;return t("td",{on:e,style:s.__tdStyle(o),class:this.classes+s.__tdClass(o)},slot(this,"default"))}}),QRouteTab=Vue.extend({name:"QRouteTab",mixins:[QTab,RouterLinkMixin],watch:{routeModel(){this.$tabs.__verifyRouteModel()}},computed:{routeModel(){return`${this.name} | ${this.exact} | ${(this.resolvedLink||{}).href}`},hasRouterLinkProps(){return void 0!==this.$router&&!0!==this.hasHrefLink&&void 0!==this.to&&null!==this.to&&""!==this.to}},render(t){return this.__renderTab(t,this.linkTag)}}),QTime=Vue.extend({name:"QTime",mixins:[DateTimeMixin],directives:{TouchPan:TouchPan},props:{mask:{default:null},format24h:{type:Boolean,default:null},defaultDate:{type:String,validator:t=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(t)},options:Function,hourOptions:Array,minuteOptions:Array,secondOptions:Array,withSeconds:Boolean,nowBtn:Boolean},data(){const t=__splitDate(this.value,this.__getMask(),this.__getLocale(),this.calendar,this.__getDefaultDateModel());let e="Hour";return null!==t.hour&&(null===t.minute?e="Minute":!0===this.withSeconds&&null===t.second&&(e="Second")),{view:e,isAM:null===t.hour||t.hour<12,innerModel:t}},watch:{value(t){const e=__splitDate(t,this.computedMask,this.computedLocale,this.calendar,this.defaultDateModel);e.dateHash===this.innerModel.dateHash&&e.timeHash===this.innerModel.timeHash||(this.innerModel=e,null===e.hour?this.view="Hour":this.isAM=e.hour<12)},computedMask(){this.$nextTick(()=>{this.__updateValue()})},computedLocale(){this.$nextTick(()=>{this.__updateValue()})}},computed:{classes(){return`q-time q-time--${!0===this.landscape?"landscape":"portrait"}`+(!0===this.isDark?" q-time--dark q-dark":"")+(!0===this.disable?" disabled":!0===this.readonly?" q-time--readonly":"")+(!0===this.bordered?" q-time--bordered":"")+(!0===this.square?" q-time--square no-border-radius":"")+(!0===this.flat?" q-time--flat no-shadow":"")},stringModel(){const t=this.innerModel;return{hour:null===t.hour?"--":!0===this.computedFormat24h?pad(t.hour):String(!0===this.isAM?0===t.hour?12:t.hour:t.hour>12?t.hour-12:t.hour),minute:null===t.minute?"--":pad(t.minute),second:null===t.second?"--":pad(t.second)}},defaultDateModel(){return this.__getDefaultDateModel()},computedFormat24h(){return null!==this.format24h?this.format24h:this.$q.lang.date.format24h},pointerStyle(){const t="Hour"===this.view,e=!0===t?12:60,i=this.innerModel[this.view.toLowerCase()];let s=`rotate(${Math.round(i*(360/e))-180}deg) translateX(-50%)`;return!0===t&&!0===this.computedFormat24h&&this.innerModel.hour>=12&&(s+=" scale(.7)"),{transform:s}},minLink(){return null!==this.innerModel.hour},secLink(){return!0===this.minLink&&null!==this.innerModel.minute},hourInSelection(){return void 0!==this.hourOptions?t=>this.hourOptions.includes(t):void 0!==this.options?t=>this.options(t,null,null):void 0},minuteInSelection(){return void 0!==this.minuteOptions?t=>this.minuteOptions.includes(t):void 0!==this.options?t=>this.options(this.innerModel.hour,t,null):void 0},secondInSelection(){return void 0!==this.secondOptions?t=>this.secondOptions.includes(t):void 0!==this.options?t=>this.options(this.innerModel.hour,this.innerModel.minute,t):void 0},validHours(){if(void 0!==this.hourInSelection){const t=this.__getValidValues(0,11,this.hourInSelection),e=this.__getValidValues(12,11,this.hourInSelection);return{am:t,pm:e,values:t.values.concat(e.values)}}},validMinutes(){if(void 0!==this.minuteInSelection)return this.__getValidValues(0,59,this.minuteInSelection)},validSeconds(){if(void 0!==this.secondInSelection)return this.__getValidValues(0,59,this.secondInSelection)},viewValidOptions(){switch(this.view){case"Hour":return this.validHours;case"Minute":return this.validMinutes;case"Second":return this.validSeconds}},positions(){let t,e,i=0,s=1;const o=void 0!==this.viewValidOptions?this.viewValidOptions.values:void 0;"Hour"===this.view?!0===this.computedFormat24h?(t=0,e=23):(t=0,e=11,!1===this.isAM&&(i=12)):(t=0,e=55,s=5);const n=[];for(let r=t,a=t;r<=e;r+=s,a++){const t=r+i,e=void 0!==o&&!1===o.includes(t),s="Hour"===this.view&&0===r?!0===this.computedFormat24h?"00":"12":r;n.push({val:t,index:a,disable:e,label:s})}return n}},methods:{setNow(){const t={...this.__getCurrentDate(),...this.__getCurrentTime()};this.__updateValue(t),Object.assign(this.innerModel,t),this.view="Hour"},__getValidValues(t,e,i){const s=Array.apply(null,{length:e+1}).map((e,s)=>{const o=s+t;return{index:o,val:!0===i(o)}}).filter(t=>!0===t.val).map(t=>t.index);return{min:s[0],max:s[s.length-1],values:s,threshold:e+1}},__getWheelDist(t,e,i){const s=Math.abs(t-e);return Math.min(s,i-s)},__getNormalizedClockValue(t,{min:e,max:i,values:s,threshold:o}){if(t===e)return e;if(t<e||t>i)return this.__getWheelDist(t,e,o)<=this.__getWheelDist(t,i,o)?e:i;const n=s.findIndex(e=>t<=e),r=s[n-1],a=s[n];return t-r<=a-t?r:a},__getMask(){return"persian"!==this.calendar&&null!==this.mask?this.mask:`HH:mm${!0===this.withSeconds?":ss":""}`},__getDefaultDateModel(){if("string"!=typeof this.defaultDate){const t=this.__getCurrentDate(!0);return t.dateHash=this.__getDayHash(t),t}return __splitDate(this.defaultDate,"YYYY/MM/DD",void 0,this.calendar)},__click(t){!0!==this.__shouldAbortInteraction()&&(!0!==this.$q.platform.is.desktop&&this.__updateClock(t,this.__getClockRect()),this.__goToNextView())},__activate(t){!0!==this.__shouldAbortInteraction()&&this.__updateClock(t,this.__getClockRect())},__shouldAbortInteraction(){return!0===this._isBeingDestroyed||!0===this._isDestroyed||void 0!==this.viewValidOptions&&(0===this.viewValidOptions.values.length||"Hour"===this.view&&!0!==this.computedFormat24h&&0===this.validHours[!0===this.isAM?"am":"pm"].values.length)},__getClockRect(){const t=this.$refs.clock,{top:e,left:i,width:s}=t.getBoundingClientRect(),o=s/2;return{top:e+o,left:i+o,dist:.7*o}},__goToNextView(){"Hour"===this.view?this.view="Minute":this.withSeconds&&"Minute"===this.view&&(this.view="Second")},__drag(t){if(!0!==this.__shouldAbortInteraction()){if(!0===t.isFirst)return this.draggingClockRect=this.__getClockRect(),void(this.dragCache=this.__updateClock(t.evt,this.draggingClockRect));this.dragCache=this.__updateClock(t.evt,this.draggingClockRect,this.dragCache),!0===t.isFinal&&(this.draggingClockRect=!1,this.dragCache=null,this.__goToNextView())}},__updateClock(t,e,i){const s=position(t),o=Math.abs(s.top-e.top),n=Math.sqrt(Math.pow(Math.abs(s.top-e.top),2)+Math.pow(Math.abs(s.left-e.left),2));let r,a=Math.asin(o/n)*(180/Math.PI);if(a=s.top<e.top?e.left<s.left?90-a:270+a:e.left<s.left?a+90:270-a,"Hour"===this.view){if(r=a/30,void 0!==this.validHours){const t=!0!==this.computedFormat24h?!0===this.isAM:this.validHours.am.values.length>0&&this.validHours.pm.values.length>0?n>=e.dist:this.validHours.am.values.length>0;r=this.__getNormalizedClockValue(r+(!0===t?0:12),this.validHours[!0===t?"am":"pm"])}else r=Math.round(r),!0===this.computedFormat24h?n<e.dist?r<12&&(r+=12):12===r&&(r=0):!0===this.isAM&&12===r?r=0:!1===this.isAM&&12!==r&&(r+=12);!0===this.computedFormat24h&&(this.isAM=r<12)}else r=Math.round(a/6)%60,"Minute"===this.view&&void 0!==this.validMinutes?r=this.__getNormalizedClockValue(r,this.validMinutes):"Second"===this.view&&void 0!==this.validSeconds&&(r=this.__getNormalizedClockValue(r,this.validSeconds));return i!==r&&this[`__set${this.view}`](r),r},__onKeyupHour(t){if(13===t.keyCode)this.view="Hour";else if([37,39].includes(t.keyCode)){const e=37===t.keyCode?-1:1;if(void 0!==this.validHours){const t=!0===this.computedFormat24h?this.validHours.values:this.validHours[!0===this.isAM?"am":"pm"].values;if(0===t.length)return;if(null===this.innerModel.hour)this.__setHour(t[0]);else{const i=(t.length+t.indexOf(this.innerModel.hour)+e)%t.length;this.__setHour(t[i])}}else{const t=!0===this.computedFormat24h?24:12,i=!0!==this.computedFormat24h&&!1===this.isAM?12:0,s=null===this.innerModel.hour?-e:this.innerModel.hour;this.__setHour(i+(24+s+e)%t)}}},__onKeyupMinute(t){if(13===t.keyCode)this.view="Minute";else if([37,39].includes(t.keyCode)){const e=37===t.keyCode?-1:1;if(void 0!==this.validMinutes){const t=this.validMinutes.values;if(0===t.length)return;if(null===this.innerModel.minute)this.__setMinute(t[0]);else{const i=(t.length+t.indexOf(this.innerModel.minute)+e)%t.length;this.__setMinute(t[i])}}else{const t=null===this.innerModel.minute?-e:this.innerModel.minute;this.__setMinute((60+t+e)%60)}}},__onKeyupSecond(t){if(13===t.keyCode)this.view="Second";else if([37,39].includes(t.keyCode)){const e=37===t.keyCode?-1:1;if(void 0!==this.validSeconds){const t=this.validSeconds.values;if(0===t.length)return;if(null===this.innerModel.seconds)this.__setSecond(t[0]);else{const i=(t.length+t.indexOf(this.innerModel.second)+e)%t.length;this.__setSecond(t[i])}}else{const t=null===this.innerModel.second?-e:this.innerModel.second;this.__setSecond((60+t+e)%60)}}},__getHeader(t){const e=[t("div",{staticClass:"q-time__link",class:"Hour"===this.view?"q-time__link--active":"cursor-pointer",attrs:{tabindex:this.computedTabindex},on:cache(this,"vH",{click:()=>{this.view="Hour"},keyup:this.__onKeyupHour})},[this.stringModel.hour]),t("div",[":"]),t("div",!0===this.minLink?{staticClass:"q-time__link",class:"Minute"===this.view?"q-time__link--active":"cursor-pointer",attrs:{tabindex:this.computedTabindex},on:cache(this,"vM",{click:()=>{this.view="Minute"},keyup:this.__onKeyupMinute})}:{staticClass:"q-time__link"},[this.stringModel.minute])];return!0===this.withSeconds&&e.push(t("div",[":"]),t("div",!0===this.secLink?{staticClass:"q-time__link",class:"Second"===this.view?"q-time__link--active":"cursor-pointer",attrs:{tabindex:this.computedTabindex},on:cache(this,"vS",{click:()=>{this.view="Second"},keyup:this.__onKeyupSecond})}:{staticClass:"q-time__link"},[this.stringModel.second])),t("div",{staticClass:"q-time__header flex flex-center no-wrap",class:this.headerClass},[t("div",{staticClass:"q-time__header-label row items-center no-wrap",attrs:{dir:"ltr"}},e),!1===this.computedFormat24h?t("div",{staticClass:"q-time__header-ampm column items-between no-wrap"},[t("div",{staticClass:"q-time__link",class:!0===this.isAM?"q-time__link--active":"cursor-pointer",attrs:{tabindex:this.computedTabindex},on:cache(this,"AM",{click:this.__setAm,keyup:t=>{13===t.keyCode&&this.__setAm()}})},["AM"]),t("div",{staticClass:"q-time__link",class:!0!==this.isAM?"q-time__link--active":"cursor-pointer",attrs:{tabindex:this.computedTabindex},on:cache(this,"PM",{click:this.__setPm,keyup:t=>{13===t.keyCode&&this.__setPm()}})},["PM"])]):null])},__getClock(t){const e=this.view.toLowerCase(),i=this.innerModel[e];return t("div",{staticClass:"q-time__content col relative-position"},[t("transition",{props:{name:"q-transition--scale"}},[t("div",{key:"clock"+this.view,staticClass:"q-time__container-parent absolute-full"},[t("div",{ref:"clock",staticClass:"q-time__container-child fit overflow-hidden"},[t("div",{staticClass:"q-time__clock cursor-pointer non-selectable",on:cache(this,"click",{click:this.__click,mousedown:this.__activate}),directives:cache(this,"touch",[{name:"touch-pan",value:this.__drag,modifiers:{stop:!0,prevent:!0,mouse:!0}}])},[t("div",{staticClass:"q-time__clock-circle fit"},[t("div",{staticClass:"q-time__clock-pointer",style:this.pointerStyle,class:null===this.innerModel[e]?"hidden":void 0!==this.color?`text-${this.color}`:""}),this.positions.map(e=>t("div",{staticClass:`q-time__clock-position row flex-center q-time__clock-pos-${e.index}`,class:e.val===i?this.headerClass.concat(" q-time__clock-position--active"):!0===e.disable?"q-time__clock-position--disable":null},[t("span",[e.label])]))])])])])]),!0===this.nowBtn?t(QBtn,{staticClass:"q-time__now-button absolute",props:{icon:this.$q.iconSet.datetime.now,unelevated:!0,size:"sm",round:!0,color:this.color,textColor:this.textColor,tabindex:this.computedTabindex},on:cache(this,"now",{click:this.setNow})}):null])},__setHour(t){this.innerModel.hour!==t&&(this.innerModel.hour=t,this.innerModel.minute=null,this.innerModel.second=null)},__setMinute(t){this.innerModel.minute!==t&&(this.innerModel.minute=t,this.innerModel.second=null,!0!==this.withSeconds&&this.__updateValue({minute:t}))},__setSecond(t){this.innerModel.second!==t&&this.__updateValue({second:t})},__setAm(){!1===this.isAM&&(this.isAM=!0,null!==this.innerModel.hour&&(this.innerModel.hour-=12,this.__verifyAndUpdate()))},__setPm(){!0===this.isAM&&(this.isAM=!1,null!==this.innerModel.hour&&(this.innerModel.hour+=12,this.__verifyAndUpdate()))},__verifyAndUpdate(){return void 0!==this.hourInSelection&&!0!==this.hourInSelection(this.innerModel.hour)?(this.innerModel=__splitDate(),void(this.view="Hour")):void 0!==this.minuteInSelection&&!0!==this.minuteInSelection(this.innerModel.minute)?(this.innerModel.minute=null,this.innerModel.second=null,void(this.view="Minute")):!0===this.withSeconds&&void 0!==this.secondInSelection&&!0!==this.secondInSelection(this.innerModel.second)?(this.innerModel.second=null,void(this.view="Second")):void(null===this.innerModel.hour||null===this.innerModel.minute||!0===this.withSeconds&&null===this.innerModel.second||this.__updateValue())},__updateValue(t){const e=Object.assign({...this.innerModel},t),i="persian"===this.calendar?pad(e.hour)+":"+pad(e.minute)+(!0===this.withSeconds?":"+pad(e.second):""):formatDate(new Date(e.year,null===e.month?null:e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond),this.computedMask,this.computedLocale,e.year,e.timezoneOffset);e.changed=i!==this.value,this.$emit("input",i,e)}},render(t){const e=[this.__getClock(t)],i=slot(this,"default");return void 0!==i&&e.push(t("div",{staticClass:"q-time__actions"},i)),void 0!==this.name&&!0!==this.disable&&this.__injectFormInput(e,"push"),t("div",{class:this.classes,on:{...this.qListeners},attrs:{tabindex:-1}},[this.__getHeader(t),t("div",{staticClass:"q-time__main col overflow-auto"},e)])}}),QTimeline=Vue.extend({name:"QTimeline",mixins:[DarkMixin,ListenersMixin],provide(){return{__timeline:this}},props:{color:{type:String,default:"primary"},side:{type:String,default:"right",validator:t=>["left","right"].includes(t)},layout:{type:String,default:"dense",validator:t=>["dense","comfortable","loose"].includes(t)}},computed:{classes(){return`q-timeline--${this.layout} q-timeline--${this.layout}--${this.side}`+(!0===this.isDark?" q-timeline--dark":"")}},render(t){return t("ul",{staticClass:"q-timeline",class:this.classes,on:{...this.qListeners}},slot(this,"default"))}}),QTimelineEntry=Vue.extend({name:"QTimelineEntry",inject:{__timeline:{default(){console.error("QTimelineEntry needs to be child of QTimeline")}}},mixins:[ListenersMixin],props:{heading:Boolean,tag:{type:String,default:"h3"},side:{type:String,default:"right",validator:t=>["left","right"].includes(t)},icon:String,avatar:String,color:String,title:String,subtitle:String,body:String},computed:{colorClass(){return`text-${this.color||this.__timeline.color}`},classes(){return`q-timeline__entry--${this.side}`+(void 0!==this.icon||void 0!==this.avatar?" q-timeline__entry--icon":"")},reverse(){return"comfortable"===this.__timeline.layout&&"left"===this.__timeline.side}},render(t){const e=uniqueSlot(this,"default",[]);if(void 0!==this.body&&e.unshift(this.body),!0===this.heading){const i=[t("div"),t("div"),t(this.tag,{staticClass:"q-timeline__heading-title"},e)];return t("div",{staticClass:"q-timeline__heading",on:{...this.qListeners}},!0===this.reverse?i.reverse():i)}let i;void 0!==this.icon?i=[t(QIcon,{staticClass:"row items-center justify-center",props:{name:this.icon}})]:void 0!==this.avatar&&(i=[t("img",{staticClass:"q-timeline__dot-img",domProps:{src:this.avatar}})]);const s=[t("div",{staticClass:"q-timeline__subtitle"},[t("span",slot(this,"subtitle",[this.subtitle]))]),t("div",{staticClass:"q-timeline__dot",class:this.colorClass},i),t("div",{staticClass:"q-timeline__content"},[t("h6",{staticClass:"q-timeline__title"},slot(this,"title",[this.title]))].concat(e))];return t("li",{staticClass:"q-timeline__entry",class:this.classes,on:{...this.qListeners}},!0===this.reverse?s.reverse():s)}});const attrs$5={role:"toolbar"};var QToolbar=Vue.extend({name:"QToolbar",mixins:[ListenersMixin],props:{inset:Boolean},render(t){return t("div",{staticClass:"q-toolbar row no-wrap items-center",class:this.inset?"q-toolbar--inset":null,attrs:attrs$5,on:{...this.qListeners}},slot(this,"default"))}}),QToolbarTitle=Vue.extend({name:"QToolbarTitle",mixins:[ListenersMixin],props:{shrink:Boolean},computed:{classes(){return"q-toolbar__title ellipsis"+(!0===this.shrink?" col-shrink":"")}},render(t){return t("div",{class:this.classes,on:{...this.qListeners}},slot(this,"default"))}});const tickStrategyOptions=["none","strict","leaf","leaf-filtered"];var QTree=Vue.extend({name:"QTree",mixins:[DarkMixin],props:{nodes:{type:Array,required:!0},nodeKey:{type:String,required:!0},labelKey:{type:String,default:"label"},childrenKey:{type:String,default:"children"},dense:Boolean,color:String,controlColor:String,textColor:String,selectedColor:String,icon:String,tickStrategy:{type:String,default:"none",validator:t=>tickStrategyOptions.includes(t)},ticked:Array,expanded:Array,selected:{},noSelectionUnset:Boolean,defaultExpandAll:Boolean,accordion:Boolean,filter:String,filterMethod:{type:Function,default(t,e){const i=e.toLowerCase();return t[this.labelKey]&&t[this.labelKey].toLowerCase().indexOf(i)>-1}},duration:Number,noConnectors:Boolean,noTransition:Boolean,noNodesLabel:String,noResultsLabel:String},computed:{classes(){return`q-tree q-tree--${!0===this.dense?"dense":"standard"}`+(!0===this.noConnectors?" q-tree--no-connectors":"")+(!0===this.isDark?" q-tree--dark":"")+(void 0!==this.color?` text-${this.color}`:"")},hasSelection(){return void 0!==this.selected},computedIcon(){return this.icon||this.$q.iconSet.tree.icon},computedControlColor(){return this.controlColor||this.color},textColorClass(){if(void 0!==this.textColor)return`text-${this.textColor}`},selectedColorClass(){const t=this.selectedColor||this.color;if(t)return`text-${t}`},meta(){const t={},e=(i,s)=>{const o=i.tickStrategy||(s?s.tickStrategy:this.tickStrategy),n=i[this.nodeKey],r=i[this.childrenKey]&&i[this.childrenKey].length>0,a=!0!==i.disabled&&!0===this.hasSelection&&!1!==i.selectable,l=!0!==i.disabled&&!1!==i.expandable,h="none"!==o,d="strict"===o,c="leaf-filtered"===o,u="leaf"===o||"leaf-filtered"===o;let p=!0!==i.disabled&&!1!==i.tickable;!0===u&&!0===p&&s&&!0!==s.tickable&&(p=!1);let m=i.lazy;!0===m&&void 0!==this.lazy[n]&&!0===Array.isArray(i[this.childrenKey])&&(m=this.lazy[n]);const g={key:n,parent:s,isParent:r,lazy:m,disabled:i.disabled,link:!0!==i.disabled&&(!0===a||!0===l&&(!0===r||!0===m)),children:[],matchesFilter:!this.filter||this.filterMethod(i,this.filter),selected:n===this.selected&&!0===a,selectable:a,expanded:!0===r&&this.innerExpanded.includes(n),expandable:l,noTick:!0===i.noTick||!0!==d&&m&&"loaded"!==m,tickable:p,tickStrategy:o,hasTicking:h,strictTicking:d,leafFilteredTicking:c,leafTicking:u,ticked:!0===d?this.innerTicked.includes(n):!0!==r&&this.innerTicked.includes(n)};if(t[n]=g,!0===r&&(g.children=i[this.childrenKey].map(t=>e(t,g)),this.filter&&(!0!==g.matchesFilter?g.matchesFilter=g.children.some(t=>t.matchesFilter):!0!==g.noTick&&!0!==g.disabled&&!0===g.tickable&&!0===c&&!0===g.children.every(t=>!0!==t.matchesFilter||!0===t.noTick||!0!==t.tickable)&&(g.tickable=!1)),!0===g.matchesFilter&&(!0!==g.noTick&&!0!==d&&!0===g.children.every(t=>t.noTick)&&(g.noTick=!0),u))){if(g.ticked=!1,g.indeterminate=g.children.some(t=>!0===t.indeterminate),g.tickable=!0===g.tickable&&g.children.some(t=>t.tickable),!0!==g.indeterminate){const t=g.children.reduce((t,e)=>!0===e.ticked?t+1:t,0);t===g.children.length?g.ticked=!0:t>0&&(g.indeterminate=!0)}!0===g.indeterminate&&(g.indeterminateNextState=g.children.every(t=>!0!==t.tickable||!0!==t.ticked))}return g};return this.nodes.forEach(t=>e(t,null)),t}},data(){return{lazy:{},innerTicked:this.ticked||[],innerExpanded:this.expanded||[]}},watch:{ticked(t){this.innerTicked=t},expanded(t){this.innerExpanded=t}},methods:{getNodeByKey(t){const e=[].reduce,i=(s,o)=>s||!o?s:!0===Array.isArray(o)?e.call(Object(o),i,s):o[this.nodeKey]===t?o:o[this.childrenKey]?i(null,o[this.childrenKey]):void 0;return i(null,this.nodes)},getTickedNodes(){return this.innerTicked.map(t=>this.getNodeByKey(t))},getExpandedNodes(){return this.innerExpanded.map(t=>this.getNodeByKey(t))},isExpanded(t){return!(!t||!this.meta[t])&&this.meta[t].expanded},collapseAll(){void 0!==this.expanded?this.$emit("update:expanded",[]):this.innerExpanded=[]},expandAll(){const t=this.innerExpanded,e=i=>{i[this.childrenKey]&&i[this.childrenKey].length>0&&!1!==i.expandable&&!0!==i.disabled&&(t.push(i[this.nodeKey]),i[this.childrenKey].forEach(e))};this.nodes.forEach(e),void 0!==this.expanded?this.$emit("update:expanded",t):this.innerExpanded=t},setExpanded(t,e,i=this.getNodeByKey(t),s=this.meta[t]){if(s.lazy&&"loaded"!==s.lazy){if("loading"===s.lazy)return;this.$set(this.lazy,t,"loading"),!0!==Array.isArray(i[this.childrenKey])&&this.$set(i,this.childrenKey,[]),this.$emit("lazy-load",{node:i,key:t,done:e=>{this.lazy[t]="loaded",this.$set(i,this.childrenKey,!0===Array.isArray(e)?e:[]),this.$nextTick(()=>{const e=this.meta[t];e&&!0===e.isParent&&this.__setExpanded(t,!0)})},fail:()=>{this.$delete(this.lazy,t),0===i[this.childrenKey].length&&this.$delete(i,this.childrenKey)}})}else!0===s.isParent&&!0===s.expandable&&this.__setExpanded(t,e)},__setExpanded(t,e){let i=this.innerExpanded;const s=void 0!==this.expanded;if(!0===s&&(i=i.slice()),e){if(this.accordion&&this.meta[t]){const e=[];this.meta[t].parent?this.meta[t].parent.children.forEach(i=>{i.key!==t&&!0===i.expandable&&e.push(i.key)}):this.nodes.forEach(i=>{const s=i[this.nodeKey];s!==t&&e.push(s)}),e.length>0&&(i=i.filter(t=>!1===e.includes(t)))}i=i.concat([t]).filter((t,e,i)=>i.indexOf(t)===e)}else i=i.filter(e=>e!==t);!0===s?this.$emit("update:expanded",i):this.innerExpanded=i},isTicked(t){return!(!t||!this.meta[t])&&this.meta[t].ticked},setTicked(t,e){let i=this.innerTicked;const s=void 0!==this.ticked;!0===s&&(i=i.slice()),i=e?i.concat(t).filter((t,e,i)=>i.indexOf(t)===e):i.filter(e=>!1===t.includes(e)),!0===s&&this.$emit("update:ticked",i)},__getSlotScope(t,e,i){const s={tree:this,node:t,key:i,color:this.color,dark:this.isDark};return injectProp(s,"expanded",()=>e.expanded,t=>{t!==e.expanded&&this.setExpanded(i,t)}),injectProp(s,"ticked",()=>e.ticked,t=>{t!==e.ticked&&this.setTicked([i],t)}),s},__getChildren(t,e){return(this.filter?e.filter(t=>this.meta[t[this.nodeKey]].matchesFilter):e).map(e=>this.__getNode(t,e))},__getNodeMedia(t,e){if(void 0!==e.icon)return t(QIcon,{staticClass:"q-tree__icon q-mr-sm",props:{name:e.icon,color:e.iconColor}});const i=e.img||e.avatar;return i?t("img",{staticClass:`q-tree__${e.img?"img":"avatar"} q-mr-sm`,attrs:{src:i}}):void 0},__getNode(t,e){const i=e[this.nodeKey],s=this.meta[i],o=e.header&&this.$scopedSlots[`header-${e.header}`]||this.$scopedSlots["default-header"],n=!0===s.isParent?this.__getChildren(t,e[this.childrenKey]):[],r=n.length>0||s.lazy&&"loaded"!==s.lazy;let a=e.body&&this.$scopedSlots[`body-${e.body}`]||this.$scopedSlots["default-body"];const l=void 0!==o||void 0!==a?this.__getSlotScope(e,s,i):null;return void 0!==a&&(a=t("div",{staticClass:"q-tree__node-body relative-position"},[t("div",{class:this.textColorClass},[a(l)])])),t("div",{key:i,staticClass:"q-tree__node relative-position",class:{"q-tree__node--parent":r,"q-tree__node--child":!r}},[t("div",{staticClass:"q-tree__node-header relative-position row no-wrap items-center",class:{"q-tree__node--link q-hoverable q-focusable":s.link,"q-tree__node--selected":s.selected,"q-tree__node--disabled":s.disabled},attrs:{tabindex:s.link?0:-1},on:{click:t=>{this.__onClick(e,s,t)},keypress:t=>{!0!==shouldIgnoreKey(t)&&(13===t.keyCode?this.__onClick(e,s,t,!0):32===t.keyCode&&this.__onExpandClick(e,s,t,!0))}}},[t("div",{staticClass:"q-focus-helper",attrs:{tabindex:-1},ref:`blurTarget_${s.key}`}),"loading"===s.lazy?t(QSpinner,{staticClass:"q-tree__spinner",props:{color:this.computedControlColor}}):!0===r?t(QIcon,{staticClass:"q-tree__arrow",class:{"q-tree__arrow--rotate":s.expanded},props:{name:this.computedIcon},on:{click:t=>{this.__onExpandClick(e,s,t)}}}):null,!0===s.hasTicking&&!0!==s.noTick?t(QCheckbox,{staticClass:"q-tree__tickbox",props:{value:!0===s.indeterminate?null:s.ticked,color:this.computedControlColor,dark:this.isDark,dense:!0,keepColor:!0,disable:!0!==s.tickable},on:{keydown:stopAndPrevent,input:t=>{this.__onTickedClick(s,t)}}}):null,t("div",{staticClass:"q-tree__node-header-content col row no-wrap items-center",class:s.selected?this.selectedColorClass:this.textColorClass},[o?o(l):[this.__getNodeMedia(t,e),t("div",e[this.labelKey])]])]),!0===r?!0===this.noTransition?t("div",{staticClass:"q-tree__node-collapsible",class:this.textColorClass,directives:[{name:"show",value:s.expanded}]},[a,t("div",{staticClass:"q-tree__children",class:{"q-tree__node--disabled":s.disabled}},n)]):t(QSlideTransition,{props:{duration:this.duration},on:cache(this,"slide",{show:()=>{this.$emit("after-show")},hide:()=>{this.$emit("after-hide")}})},[t("div",{staticClass:"q-tree__node-collapsible",class:this.textColorClass,directives:[{name:"show",value:s.expanded}]},[a,t("div",{staticClass:"q-tree__children",class:{"q-tree__node--disabled":s.disabled}},n)])]):a])},__blur(t){const e=this.$refs[`blurTarget_${t}`];void 0!==e&&e.focus()},__onClick(t,e,i,s){!0!==s&&this.__blur(e.key),this.hasSelection&&e.selectable?!1===this.noSelectionUnset?this.$emit("update:selected",e.key!==this.selected?e.key:null):e.key!==this.selected&&this.$emit("update:selected",void 0===e.key?null:e.key):this.__onExpandClick(t,e,i,s),"function"==typeof t.handler&&t.handler(t)},__onExpandClick(t,e,i,s){void 0!==i&&stopAndPrevent(i),!0!==s&&this.__blur(e.key),this.setExpanded(e.key,!e.expanded,t,e)},__onTickedClick(t,e){if(!0===t.indeterminate&&(e=t.indeterminateNextState),t.strictTicking)this.setTicked([t.key],e);else if(t.leafTicking){const i=[],s=t=>{t.isParent?(!0!==e&&!0!==t.noTick&&!0===t.tickable&&i.push(t.key),!0===t.leafTicking&&t.children.forEach(s)):!0===t.noTick||!0!==t.tickable||!0===t.leafFilteredTicking&&!0!==t.matchesFilter||i.push(t.key)};s(t),this.setTicked(i,e)}}},render(t){const e=this.__getChildren(t,this.nodes);return t("div",{class:this.classes},0===e.length?this.filter?this.noResultsLabel||this.$q.lang.tree.noResults:this.noNodesLabel||this.$q.lang.tree.noNodes:e)},created(){!0===this.defaultExpandAll&&this.expandAll()}}),QUploaderBase=Vue.extend({name:"QUploaderBase",mixins:[DarkMixin,FileMixin],props:{label:String,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,noThumbnails:Boolean,autoUpload:Boolean,hideUploadBtn:Boolean,disable:Boolean,readonly:Boolean},provide(){return{__qUploaderGetInput:this.__getInputControl}},data:()=>({files:[],queuedFiles:[],uploadedFiles:[],dnd:!1,expanded:!1,uploadSize:0,uploadedSize:0}),watch:{isUploading(t,e){!1===e&&!0===t?this.$emit("start"):!0===e&&!1===t&&this.$emit("finish")}},computed:{canUpload(){return!0===this.editable&&!0!==this.isBusy&&!0!==this.isUploading&&this.queuedFiles.length>0},canAddFiles(){return!0===this.editable&&!0!==this.isUploading&&(!0===this.multiple||0===this.queuedFiles.length)&&(void 0===this.maxFiles||this.files.length<this.maxFilesNumber)&&(void 0===this.maxTotalSize||this.uploadSize<this.maxTotalSizeNumber)},uploadProgress(){return 0===this.uploadSize?0:this.uploadedSize/this.uploadSize},uploadProgressLabel(){return this.__getProgressLabel(this.uploadProgress)},uploadedSizeLabel(){return humanStorageSize(this.uploadedSize)},uploadSizeLabel(){return humanStorageSize(this.uploadSize)},colorClass(){const t=[];return void 0!==this.color&&t.push(`bg-${this.color}`),void 0!==this.textColor&&t.push(`text-${this.textColor}`),t.join(" ")},editable(){return!0!==this.disable&&!0!==this.readonly}},methods:{reset(){this.disable||(this.abort(),this.uploadedSize=0,this.uploadSize=0,this.__revokeImgURLs(),this.files=[],this.queuedFiles=[],this.uploadedFiles=[])},removeUploadedFiles(){this.__removeFiles(["uploaded"],()=>{this.uploadedFiles=[]})},removeQueuedFiles(){this.__removeFiles(["idle","failed"],({size:t})=>{this.uploadSize-=t,this.queuedFiles=[]})},__removeFiles(t,e){if(!0===this.disable)return;const i={files:[],size:0},s=this.files.filter(e=>-1===t.indexOf(e.__status)||(i.size+=e.size,i.files.push(e),void 0!==e.__img&&window.URL.revokeObjectURL(e.__img.src),!1));i.files.length>0&&(this.files=s,void 0!==e&&e(i),this.$emit("removed",i.files))},removeFile(t){this.disable||("uploaded"===t.__status?this.uploadedFiles=this.uploadedFiles.filter(e=>e.__key!==t.__key):"uploading"===t.__status?t.__abort():this.uploadSize-=t.size,this.files=this.files.filter(e=>e.__key!==t.__key||(void 0!==e.__img&&window.URL.revokeObjectURL(e.__img.src),!1)),this.queuedFiles=this.queuedFiles.filter(e=>e.__key!==t.__key),this.$emit("removed",[t]))},__revokeImgURLs(){this.files.forEach(t=>{void 0!==t.__img&&window.URL.revokeObjectURL(t.__img.src)})},__getFileInput(){return this.$refs.input||this.$el.getElementsByClassName("q-uploader__input")[0]},__getProgressLabel:t=>(100*t).toFixed(2)+"%",__updateFile(t,e,i){if(t.__status=e,"idle"===e)return t.__uploaded=0,t.__progress=0,t.__sizeLabel=humanStorageSize(t.size),void(t.__progressLabel="0.00%");"failed"!==e?(t.__uploaded="uploaded"===e?t.size:i,t.__progress="uploaded"===e?1:Math.min(.9999,t.__uploaded/t.size),t.__progressLabel=this.__getProgressLabel(t.__progress),this.$forceUpdate()):this.$forceUpdate()},__addFiles(t,e){const i=this.__processFiles(t,e,this.files,!0),s=this.__getFileInput();void 0!==s&&(s.value=""),void 0!==i&&(i.forEach(t=>{if(this.__updateFile(t,"idle"),this.uploadSize+=t.size,!0!==this.noThumbnails&&t.type.toUpperCase().startsWith("IMAGE")){const e=new Image;e.src=window.URL.createObjectURL(t),t.__img=e}}),this.files=this.files.concat(i),this.queuedFiles=this.queuedFiles.concat(i),this.$emit("added",i),!0===this.autoUpload&&this.upload())},__getBtn(t,e,i,s){if(!0===e)return t(QBtn,{props:{type:"a",icon:this.$q.iconSet.uploader[i],flat:!0,dense:!0},on:{click:"add"===i?this.pickFiles:s}},"add"===i?this.__getInputControl(t):null)},__getInputControl(t){return[t("input",{ref:"input",staticClass:"q-uploader__input overflow-hidden absolute-full",attrs:{tabindex:-1,type:"file",title:"",accept:this.accept,capture:this.capture,...!0===this.multiple?{multiple:!0}:{}},on:cache(this,"input",{mousedown:stop,click:this.pickFiles,change:this.__addFiles})})]},__getHeader(t){return void 0!==this.$scopedSlots.header?this.$scopedSlots.header(this):[t("div",{staticClass:"q-uploader__header-content column"},[t("div",{staticClass:"flex flex-center no-wrap q-gutter-xs"},[this.__getBtn(t,this.queuedFiles.length>0,"removeQueue",this.removeQueuedFiles),this.__getBtn(t,this.uploadedFiles.length>0,"removeUploaded",this.removeUploadedFiles),!0===this.isUploading?t(QSpinner,{staticClass:"q-uploader__spinner"}):null,t("div",{staticClass:"col column justify-center"},[void 0!==this.label?t("div",{staticClass:"q-uploader__title"},[this.label]):null,t("div",{staticClass:"q-uploader__subtitle"},[this.uploadSizeLabel+" / "+this.uploadProgressLabel])]),this.__getBtn(t,this.canAddFiles,"add",this.pickFiles),this.__getBtn(t,!1===this.hideUploadBtn&&!0===this.canUpload,"upload",this.upload),this.__getBtn(t,this.isUploading,"clear",this.abort)])])]},__getList(t){return void 0!==this.$scopedSlots.list?this.$scopedSlots.list(this):this.files.map(e=>t("div",{key:e.__key,staticClass:"q-uploader__file relative-position",class:{"q-uploader__file--img":!0!==this.noThumbnails&&void 0!==e.__img,"q-uploader__file--failed":"failed"===e.__status,"q-uploader__file--uploaded":"uploaded"===e.__status},style:!0!==this.noThumbnails&&void 0!==e.__img?{backgroundImage:'url("'+e.__img.src+'")'}:null},[t("div",{staticClass:"q-uploader__file-header row flex-center no-wrap"},["failed"===e.__status?t(QIcon,{staticClass:"q-uploader__file-status",props:{name:this.$q.iconSet.type.negative,color:"negative"}}):null,t("div",{staticClass:"q-uploader__file-header-content col"},[t("div",{staticClass:"q-uploader__title"},[e.name]),t("div",{staticClass:"q-uploader__subtitle row items-center no-wrap"},[e.__sizeLabel+" / "+e.__progressLabel])]),"uploading"===e.__status?t(QCircularProgress,{props:{value:e.__progress,min:0,max:1,indeterminate:0===e.__progress}}):t(QBtn,{props:{round:!0,dense:!0,flat:!0,icon:this.$q.iconSet.uploader["uploaded"===e.__status?"done":"clear"]},on:{click:()=>{this.removeFile(e)}}})])]))}},beforeDestroy(){!0===this.isUploading&&this.abort(),this.files.length>0&&this.__revokeImgURLs()},render(t){const e=[t("div",{staticClass:"q-uploader__header",class:this.colorClass},this.__getHeader(t)),t("div",{staticClass:"q-uploader__list scroll"},this.__getList(t)),this.__getDnd(t,"uploader")];return!0===this.isBusy&&e.push(t("div",{staticClass:"q-uploader__overlay absolute-full flex flex-center"},[t(QSpinner)])),t("div",{staticClass:"q-uploader column no-wrap",class:{"q-uploader--dark q-dark":this.isDark,"q-uploader--bordered":this.bordered,"q-uploader--square no-border-radius":this.square,"q-uploader--flat no-shadow":this.flat,"disabled q-uploader--disable":this.disable,"q-uploader--dnd":this.dnd},on:!0===this.canAddFiles?cache(this,"drag",{dragover:this.__onDragOver,dragleave:this.__onDragLeave}):null},e)}});function getFn(t){return"function"==typeof t?t:()=>t}var UploaderXHRMixin={props:{url:[Function,String],method:{type:[Function,String],default:"POST"},fieldName:{type:[Function,String],default:t=>t.name},headers:[Function,Array],formFields:[Function,Array],withCredentials:[Function,Boolean],sendRaw:[Function,Boolean],batch:[Function,Boolean],factory:Function},data:()=>({xhrs:[],promises:[],workingThreads:0}),computed:{xhrProps(){return{url:getFn(this.url),method:getFn(this.method),headers:getFn(this.headers),formFields:getFn(this.formFields),fieldName:getFn(this.fieldName),withCredentials:getFn(this.withCredentials),sendRaw:getFn(this.sendRaw),batch:getFn(this.batch)}},isUploading(){return this.workingThreads>0},isBusy(){return this.promises.length>0}},methods:{abort(){this.xhrs.forEach(t=>{t.abort()}),this.promises.length>0&&(this.abortPromises=!0)},upload(){if(!1===this.canUpload)return;const t=this.queuedFiles.slice(0);this.queuedFiles=[],this.xhrProps.batch(t)?this.__runFactory(t):t.forEach(t=>{this.__runFactory([t])})},__runFactory(t){if(this.workingThreads++,"function"!=typeof this.factory)return void this.__uploadFiles(t,{});const e=this.factory(t);if(e)if("function"==typeof e.catch&&"function"==typeof e.then){this.promises.push(e);const i=i=>{!0!==this._isBeingDestroyed&&!0!==this._isDestroyed&&(this.promises=this.promises.filter(t=>t!==e),0===this.promises.length&&(this.abortPromises=!1),this.queuedFiles=this.queuedFiles.concat(t),t.forEach(t=>{this.__updateFile(t,"failed")}),this.$emit("factory-failed",i,t),this.workingThreads--)};e.then(s=>{!0===this.abortPromises?i(new Error("Aborted")):!0!==this._isBeingDestroyed&&!0!==this._isDestroyed&&(this.promises=this.promises.filter(t=>t!==e),this.__uploadFiles(t,s))}).catch(i)}else this.__uploadFiles(t,e||{});else this.$emit("factory-failed",new Error("QUploader: factory() does not return properly"),t),this.workingThreads--},__uploadFiles(t,e){const i=new FormData,s=new XMLHttpRequest,o=(t,i)=>void 0!==e[t]?getFn(e[t])(i):this.xhrProps[t](i),n=o("url",t);if(!n)return console.error("q-uploader: invalid or no URL specified"),void this.workingThreads--;const r=o("formFields",t);void 0!==r&&r.forEach(t=>{i.append(t.name,t.value)});let a,l=0,h=0,d=0,c=0;s.upload.addEventListener("progress",e=>{if(!0===a)return;const i=Math.min(c,e.loaded);this.uploadedSize+=i-d;let s=(d=i)-h;for(let e=l;s>0&&e<t.length;e++){const i=t[e];if(!(s>i.size))return void this.__updateFile(i,"uploading",s);s-=i.size,l++,h+=i.size,this.__updateFile(i,"uploading",i.size)}},!1),s.onreadystatechange=(()=>{s.readyState<4||(s.status&&s.status<400?(this.uploadedFiles=this.uploadedFiles.concat(t),t.forEach(t=>{this.__updateFile(t,"uploaded")}),this.$emit("uploaded",{files:t,xhr:s})):(a=!0,this.uploadedSize-=d,this.queuedFiles=this.queuedFiles.concat(t),t.forEach(t=>{this.__updateFile(t,"failed")}),this.$emit("failed",{files:t,xhr:s})),this.workingThreads--,this.xhrs=this.xhrs.filter(t=>t!==s))}),s.open(o("method",t),n),!0===o("withCredentials",t)&&(s.withCredentials=!0);const u=o("headers",t);void 0!==u&&u.forEach(t=>{s.setRequestHeader(t.name,t.value)});const p=o("sendRaw",t);t.forEach(t=>{this.__updateFile(t,"uploading",0),!0!==p&&i.append(o("fieldName",t),t,t.name),t.xhr=s,t.__abort=(()=>{s.abort()}),c+=t.size}),this.$emit("uploading",{files:t,xhr:s}),this.xhrs.push(s),!0===p?s.send(new Blob(t)):s.send(i)}}},QUploader=Vue.extend({name:"QUploader",mixins:[QUploaderBase,UploaderXHRMixin]}),QUploaderAddTrigger=Vue.extend({name:"QUploaderAddTrigger",inject:{__qUploaderGetInput:{default(){console.error("QUploaderAddTrigger needs to be child of QUploader")}}},render(t){return this.__qUploaderGetInput(t)}}),QVideo=Vue.extend({name:"QVideo",mixins:[RatioMixin,ListenersMixin],props:{src:{type:String,required:!0},title:String,fetchpriority:{type:String,default:"auto"},loading:{type:String,default:"eager"},referrerpolicy:{type:String,default:"strict-origin-when-cross-origin"}},computed:{iframeData(){return{attrs:{src:this.src,frameborder:"0",title:this.title,allowfullscreen:!0,fetchpriority:this.fetchpriority,loading:this.loading,referrerpolicy:this.referrerpolicy}}},classes(){return"q-video"+(void 0!==this.ratio?" q-video--responsive":"")}},render(t){return t("div",{class:this.classes,style:this.ratioStyle,on:{...this.qListeners}},[t("iframe",this.iframeData)])}}),components$1=Object.freeze({__proto__:null,QAjaxBar:QAjaxBar,QAvatar:QAvatar,QBadge:QBadge,QBanner:QBanner,QBar:QBar,QBreadcrumbs:QBreadcrumbs,QBreadcrumbsEl:QBreadcrumbsEl,QBtn:QBtn,QBtnDropdown:QBtnDropdown,QBtnGroup:QBtnGroup,QBtnToggle:QBtnToggle,QCard:QCard,QCardSection:QCardSection,QCardActions:QCardActions,QCarousel:QCarousel,QCarouselSlide:QCarouselSlide,QCarouselControl:QCarouselControl,QChatMessage:QChatMessage,QCheckbox:QCheckbox,QChip:QChip,QCircularProgress:QCircularProgress,QColor:QColor,QDate:QDate,QDialog:QDialog,QDrawer:QDrawer,QEditor:QEditor,QExpansionItem:QExpansionItem,QFab:QFab,QFabAction:QFabAction,QField:QField,QFile:QFile,QFooter:QFooter,QForm:QForm,QHeader:QHeader,QIcon:QIcon,QImg:QImg,QInfiniteScroll:QInfiniteScroll,QInnerLoading:QInnerLoading,QInput:QInput,QIntersection:QIntersection,QList:QList,QItem:QItem,QItemSection:QItemSection,QItemLabel:QItemLabel,QKnob:QKnob,QLayout:QLayout,QMarkupTable:QMarkupTable,QMenu:QMenu,QNoSsr:QNoSsr,QOptionGroup:QOptionGroup,QPage:QPage,QPageContainer:QPageContainer,QPageScroller:QPageScroller,QPageSticky:QPageSticky,QPagination:QPagination,QParallax:QParallax,QPopupEdit:QPopupEdit,QPopupProxy:QPopupProxy,QLinearProgress:QLinearProgress,QPullToRefresh:QPullToRefresh,QRadio:QRadio,QRange:QRange,QRating:QRating,QResizeObserver:QResizeObserver,QResponsive:QResponsive,QScrollArea:QScrollArea,QScrollObserver:QScrollObserver,QSelect:QSelect,QSeparator:QSeparator,QSkeleton:QSkeleton,QSlideItem:QSlideItem,QSlideTransition:QSlideTransition,QSlider:QSlider,QSpace:QSpace,QSpinner:QSpinner,QSpinnerAudio:QSpinnerAudio,QSpinnerBall:QSpinnerBall,QSpinnerBars:QSpinnerBars,QSpinnerBox:QSpinnerBox,QSpinnerClock:QSpinnerClock,QSpinnerComment:QSpinnerComment,QSpinnerCube:QSpinnerCube,QSpinnerDots:QSpinnerDots,QSpinnerFacebook:QSpinnerFacebook,QSpinnerGears:QSpinnerGears,QSpinnerGrid:QSpinnerGrid,QSpinnerHearts:QSpinnerHearts,QSpinnerHourglass:QSpinnerHourglass,QSpinnerInfinity:QSpinnerInfinity,QSpinnerIos:QSpinnerIos,QSpinnerOrbit:QSpinnerOrbit,QSpinnerOval:QSpinnerOval,QSpinnerPie:QSpinnerPie,QSpinnerPuff:QSpinnerPuff,QSpinnerRadio:QSpinnerRadio,QSpinnerRings:QSpinnerRings,QSpinnerTail:QSpinnerTail,QSplitter:QSplitter,QStep:QStep,QStepper:QStepper,QStepperNavigation:QStepperNavigation,QTabPanels:QTabPanels,QTabPanel:QTabPanel,QTable:QTable,QTh:QTh,QTr:QTr,QTd:QTd,QTabs:QTabs,QTab:QTab,QRouteTab:QRouteTab,QTime:QTime,QTimeline:QTimeline,QTimelineEntry:QTimelineEntry,QToggle:QToggle,QToolbar:QToolbar,QToolbarTitle:QToolbarTitle,QTooltip:QTooltip,QTree:QTree,QUploader:QUploader,QUploaderBase:QUploaderBase,QUploaderAddTrigger:QUploaderAddTrigger,QVideo:QVideo,QVirtualScroll:QVirtualScroll});function getDepth(t){if(!1===t)return 0;if(!0===t||void 0===t)return 1;const e=parseInt(t,10);return isNaN(e)?0:e}function destroy$4(t){const e=t.__qclosepopup;void 0!==e&&(t.removeEventListener("click",e.handler),t.removeEventListener("keyup",e.handlerKey),delete t.__qclosepopup)}var ClosePopup={name:"close-popup",bind(t,{value:e},i){void 0!==t.__qclosepopup&&(destroy$4(t),t.__qclosepopup_destroyed=!0);const s={depth:getDepth(e),handler(t){0!==s.depth&&setTimeout(()=>{closePortals(i.componentInstance||i.context,t,s.depth)})},handlerKey(t){!0===isKeyCode(t,13)&&s.handler(t)}};t.__qclosepopup=s,t.addEventListener("click",s.handler),t.addEventListener("keyup",s.handlerKey)},update(t,{value:e,oldValue:i}){void 0!==t.__qclosepopup&&e!==i&&(t.__qclosepopup.depth=getDepth(e))},unbind(t){void 0===t.__qclosepopup_destroyed?destroy$4(t):delete t.__qclosepopup_destroyed}};function destroy$5(t){const e=t.__qgoback;void 0!==e&&(t.removeEventListener("click",e.goBack),t.removeEventListener("keyup",e.goBackKey),delete t.__qgoback)}var GoBack={name:"go-back",bind(t,{value:e,modifiers:i},s){void 0!==t.__qgoback&&(destroy$5(t),t.__qgoback_destroyed=!0);const o={value:e,position:window.history.length-1,single:i.single,goBack(){const t=s.context.$router;!0===o.single?t.go(-1):!0===client.is.nativeMobile?t.go(o.position-window.history.length):t.replace(o.value)},goBackKey(t){!0===isKeyCode(t,13)&&o.goBack()}};t.__qgoback=o,t.addEventListener("click",o.goBack),t.addEventListener("keyup",o.goBackKey)},update(t,{value:e,oldValue:i}){const s=t.__qgoback;void 0!==s&&e!==i&&(s.value=e)},unbind(t){void 0===t.__qgoback_destroyed?destroy$5(t):delete t.__qgoback_destroyed}};let id$1=0,offsetBase=void 0;function getAbsolutePosition(t,e){void 0===offsetBase&&((offsetBase=document.createElement("div")).style.cssText="position: absolute; left: 0; top: 0",document.body.appendChild(offsetBase));const i=t.getBoundingClientRect(),s=offsetBase.getBoundingClientRect(),{marginLeft:o,marginRight:n,marginTop:r,marginBottom:a}=window.getComputedStyle(t),l=parseInt(o,10)+parseInt(n,10),h=parseInt(r,10)+parseInt(a,10);return{left:i.left-s.left,top:i.top-s.top,width:i.right-i.left,height:i.bottom-i.top,widthM:i.right-i.left+(!0===e?0:l),heightM:i.bottom-i.top+(!0===e?0:h),marginH:!0===e?l:0,marginV:!0===e?h:0}}function getAbsoluteSize(t){return{width:t.scrollWidth,height:t.scrollHeight}}const styleEdges=["Top","Right","Bottom","Left"],styleBorderRadiuses=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],reStyleSkipKey=/-block|-inline|block-|inline-/,reStyleSkipRule=/(-block|-inline|block-|inline-).*:/;function getComputedStyle$1(t,e){const i=window.getComputedStyle(t),s={};for(let t=0;t<e.length;t++){const o=e[t];if(""===i[o])if("cssText"===o){const t=i.length;let e="";for(let s=0;s<t;s++)!0!==reStyleSkipKey.test(i[s])&&(e+=i[s]+": "+i[i[s]]+"; ");s[o]=e}else if(["borderWidth","borderStyle","borderColor"].indexOf(o)>-1){const t=o.replace("border","");let e="";for(let s=0;s<styleEdges.length;s++){e+=i["border"+styleEdges[s]+t]+" "}s[o]=e}else if("borderRadius"===o){let t="",e="";for(let s=0;s<styleBorderRadiuses.length;s++){const o=i[styleBorderRadiuses[s]].split(" ");t+=o[0]+" ",e+=(void 0===o[1]?o[0]:o[1])+" "}s[o]=t+"/ "+e}else s[o]=i[o];else s[o]="cssText"===o?i[o].split(";").filter(t=>!0!==reStyleSkipRule.test(t)).join(";"):i[o]}return s}const zIndexPositions=["absolute","fixed","relative","sticky"];function getMaxZIndex(t){let e=t,i=0;for(;null!==e&&e!==document;){const{position:s,zIndex:o}=window.getComputedStyle(e),n=Number(o);n>i&&(e===t||!0===zIndexPositions.includes(s))&&(i=n),e=e.parentNode}return i}function normalizeElements(t){return{from:t.from,to:void 0!==t.to?t.to:t.from}}function normalizeOptions(t){return"number"==typeof t?t={duration:t}:"function"==typeof t&&(t={onEnd:t}),{...t,waitFor:void 0===t.waitFor?0:t.waitFor,duration:!0===isNaN(t.duration)?300:parseInt(t.duration,10),easing:"string"==typeof t.easing&&t.easing.length>0?t.easing:"ease-in-out",delay:!0===isNaN(t.delay)?0:parseInt(t.delay,10),fill:"string"==typeof t.fill&&t.fill.length>0?t.fill:"none",resize:!0===t.resize,useCSS:!0===t.useCSS||!0===t.usecss,hideFromClone:!0===t.hideFromClone||!0===t.hidefromclone,keepToClone:!0===t.keepToClone||!0===t.keeptoclone,tween:!0===t.tween,tweenFromOpacity:!0===isNaN(t.tweenFromOpacity)?.6:parseFloat(t.tweenFromOpacity),tweenToOpacity:!0===isNaN(t.tweenToOpacity)?.5:parseFloat(t.tweenToOpacity)}}function isValidElement(t){return t&&t.ownerDocument===document&&null!==t.parentNode}function morph(t){let e=()=>!1,i=!1,s=!0;const o=normalizeElements(t),n=normalizeOptions(t),r=getElement(o.from);if(!0!==isValidElement(r))return e;"function"==typeof r.qMorphCancel&&r.qMorphCancel();let a=void 0,l=void 0,h=void 0,d=void 0;const c=r.parentNode,u=r.nextElementSibling,p=getAbsolutePosition(r,n.resize),{width:m,height:g}=getAbsoluteSize(c),{borderWidth:f,borderStyle:v,borderColor:_,borderRadius:b,backgroundColor:y,transform:S,position:x,cssText:C}=getComputedStyle$1(r,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),w=r.classList.toString(),k=r.style.cssText,$=r.cloneNode(!0),q=!0===n.tween?r.cloneNode(!0):void 0;void 0!==q&&(q.className=q.classList.toString().split(" ").filter(t=>!1===/^bg-/.test(t)).join(" ")),!0===n.hideFromClone&&$.classList.add("q-morph--internal"),$.setAttribute("aria-hidden","true"),$.style.transition="none",$.style.animation="none",$.style.pointerEvents="none",c.insertBefore($,u),r.qMorphCancel=(()=>{i=!0,$.remove(),void 0!==q&&q.remove(),!0===n.hideFromClone&&$.classList.remove("q-morph--internal"),r.qMorphCancel=void 0});return"function"==typeof t.onToggle&&t.onToggle(),requestAnimationFrame(()=>{const t=getElement(o.to);if(!0===i||!0!==isValidElement(t))return void("function"==typeof r.qMorphCancel&&r.qMorphCancel());r!==t&&"function"==typeof t.qMorphCancel&&t.qMorphCancel(),!0!==n.keepToClone&&t.classList.add("q-morph--internal"),$.classList.add("q-morph--internal");const{width:u,height:M}=getAbsoluteSize(c),{width:T,height:L}=getAbsoluteSize(t.parentNode);!0!==n.hideFromClone&&$.classList.remove("q-morph--internal"),t.qMorphCancel=(()=>{i=!0,$.remove(),void 0!==q&&q.remove(),!0===n.hideFromClone&&$.classList.remove("q-morph--internal"),!0!==n.keepToClone&&t.classList.remove("q-morph--internal"),r.qMorphCancel=void 0,t.qMorphCancel=void 0});const P=()=>{if(!0===i)return void("function"==typeof t.qMorphCancel&&t.qMorphCancel());!0!==n.hideFromClone&&($.classList.add("q-morph--internal"),$.innerHTML="",$.style.left=0,$.style.right="unset",$.style.top=0,$.style.bottom="unset",$.style.transform="none"),!0!==n.keepToClone&&t.classList.remove("q-morph--internal");const o=t.parentNode,{width:P,height:E}=getAbsoluteSize(o),B=t.cloneNode(n.keepToClone);B.setAttribute("aria-hidden","true"),!0!==n.keepToClone&&(B.style.left=0,B.style.right="unset",B.style.top=0,B.style.bottom="unset",B.style.transform="none",B.style.pointerEvents="none"),B.classList.add("q-morph--internal");const A=t===r&&c===o?$:t.nextElementSibling;o.insertBefore(B,A);const{borderWidth:z,borderStyle:D,borderColor:I,borderRadius:R,backgroundColor:O,transform:V,position:F,cssText:Q}=getComputedStyle$1(t,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),N=t.classList.toString(),H=t.style.cssText;t.style.cssText=Q,t.style.transform="none",t.style.animation="none",t.style.transition="none",t.className=N.split(" ").filter(t=>!1===/^bg-/.test(t)).join(" ");const j=getAbsolutePosition(t,n.resize),W=p.left-j.left,K=p.top-j.top,U=p.width/(j.width>0?j.width:10),Y=p.height/(j.height>0?j.height:100),G=m-u,X=g-M,Z=P-T,J=E-L,tt=Math.max(p.widthM,G),et=Math.max(p.heightM,X),it=Math.max(j.widthM,Z),st=Math.max(j.heightM,J),ot=r===t&&!1===["absolute","fixed"].includes(F)&&!1===["absolute","fixed"].includes(x);let nt="fixed"===F,rt=o;for(;!0!==nt&&rt!==document;)nt="fixed"===window.getComputedStyle(rt).position,rt=rt.parentNode;if(!0!==n.hideFromClone&&($.style.display="block",$.style.flex="0 0 auto",$.style.opacity=0,$.style.minWidth="unset",$.style.maxWidth="unset",$.style.minHeight="unset",$.style.maxHeight="unset",$.classList.remove("q-morph--internal")),!0!==n.keepToClone&&(B.style.display="block",B.style.flex="0 0 auto",B.style.opacity=0,B.style.minWidth="unset",B.style.maxWidth="unset",B.style.minHeight="unset",B.style.maxHeight="unset"),B.classList.remove("q-morph--internal"),"string"==typeof n.classes&&(t.className+=" "+n.classes),"string"==typeof n.style)t.style.cssText+=" "+n.style;else if(!0===isObject(n.style))for(const e in n.style)t.style[e]=n.style[e];const at=getMaxZIndex($),lt=getMaxZIndex(t),ht=!0===nt?document.documentElement:{scrollLeft:0,scrollTop:0};t.style.position=!0===nt?"fixed":"absolute",t.style.left=`${j.left-ht.scrollLeft}px`,t.style.right="unset",t.style.top=`${j.top-ht.scrollTop}px`,t.style.margin=0,!0===n.resize&&(t.style.minWidth="unset",t.style.maxWidth="unset",t.style.minHeight="unset",t.style.maxHeight="unset",t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"),document.body.appendChild(t),void 0!==q&&(q.style.cssText=C,q.style.transform="none",q.style.animation="none",q.style.transition="none",q.style.position=t.style.position,q.style.left=`${p.left-ht.scrollLeft}px`,q.style.right="unset",q.style.top=`${p.top-ht.scrollTop}px`,q.style.margin=0,q.style.pointerEvents="none",!0===n.resize&&(q.style.minWidth="unset",q.style.maxWidth="unset",q.style.minHeight="unset",q.style.maxHeight="unset",q.style.overflow="hidden",q.style.overflowX="hidden",q.style.overflowY="hidden"),document.body.appendChild(q));const dt=i=>{r===t&&!0!==s?(t.style.cssText=k,t.className=w):(t.style.cssText=H,t.className=N),B.parentNode===o&&o.insertBefore(t,B),$.remove(),B.remove(),void 0!==q&&q.remove(),e=(()=>!1),r.qMorphCancel=void 0,t.qMorphCancel=void 0,"function"==typeof n.onEnd&&n.onEnd(!0===s?"to":"from",!0===i)};if(!0!==n.useCSS&&"function"==typeof t.animate){const o=!0===n.resize?{transform:`translate(${W}px, ${K}px)`,width:`${tt}px`,height:`${et}px`}:{transform:`translate(${W}px, ${K}px) scale(${U}, ${Y})`},c=!0===n.resize?{width:`${it}px`,height:`${st}px`}:{},u=!0===n.resize?{width:`${tt}px`,height:`${et}px`}:{},m=!0===n.resize?{transform:`translate(${-1*W}px, ${-1*K}px)`,width:`${it}px`,height:`${st}px`}:{transform:`translate(${-1*W}px, ${-1*K}px) scale(${1/U}, ${1/Y})`},g=void 0!==q?{opacity:n.tweenToOpacity}:{backgroundColor:y},x=void 0!==q?{opacity:1}:{backgroundColor:O};d=t.animate([{margin:0,borderWidth:f,borderStyle:v,borderColor:_,borderRadius:b,zIndex:at,transformOrigin:"0 0",...o,...g},{margin:0,borderWidth:z,borderStyle:D,borderColor:I,borderRadius:R,zIndex:lt,transformOrigin:"0 0",transform:V,...c,...x}],{duration:n.duration,easing:n.easing,fill:n.fill,delay:n.delay}),l=void 0===q?void 0:q.animate([{opacity:n.tweenFromOpacity,margin:0,borderWidth:f,borderStyle:v,borderColor:_,borderRadius:b,zIndex:at,transformOrigin:"0 0",transform:S,...u},{opacity:0,margin:0,borderWidth:z,borderStyle:D,borderColor:I,borderRadius:R,zIndex:lt,transformOrigin:"0 0",...m}],{duration:n.duration,easing:n.easing,fill:n.fill,delay:n.delay}),a=!0===n.hideFromClone||!0===ot?void 0:$.animate([{margin:`${X<0?X/2:0}px ${G<0?G/2:0}px`,width:`${tt+p.marginH}px`,height:`${et+p.marginV}px`},{margin:0,width:0,height:0}],{duration:n.duration,easing:n.easing,fill:n.fill,delay:n.delay}),h=!0===n.keepToClone?void 0:B.animate([!0===ot?{margin:`${X<0?X/2:0}px ${G<0?G/2:0}px`,width:`${tt+p.marginH}px`,height:`${et+p.marginV}px`}:{margin:0,width:0,height:0},{margin:`${J<0?J/2:0}px ${Z<0?Z/2:0}px`,width:`${it+j.marginH}px`,height:`${st+j.marginV}px`}],{duration:n.duration,easing:n.easing,fill:n.fill,delay:n.delay});const C=t=>{void 0!==a&&a.cancel(),void 0!==l&&l.cancel(),void 0!==h&&h.cancel(),d.cancel(),d.removeEventListener("finish",C),d.removeEventListener("cancel",C),dt(t),a=void 0,l=void 0,h=void 0,d=void 0};r.qMorphCancel=(()=>{r.qMorphCancel=void 0,i=!0,C()}),t.qMorphCancel=(()=>{t.qMorphCancel=void 0,i=!0,C()}),d.addEventListener("finish",C),d.addEventListener("cancel",C),e=(t=>!0!==i&&void 0!==d&&(!0===t?(C(!0),!0):(s=!0!==s,void 0!==a&&a.reverse(),void 0!==l&&l.reverse(),void 0!==h&&h.reverse(),d.reverse(),!0)))}else{const o=`q-morph-anim-${++id$1}`,a=document.createElement("style"),l=!0===n.resize?`\n transform: translate(${W}px, ${K}px);\n width: ${tt}px;\n height: ${et}px;\n `:`transform: translate(${W}px, ${K}px) scale(${U}, ${Y});`,h=!0===n.resize?`\n width: ${it}px;\n height: ${st}px;\n `:"",d=!0===n.resize?`\n width: ${tt}px;\n height: ${et}px;\n `:"",c=!0===n.resize?`\n transform: translate(${-1*W}px, ${-1*K}px);\n width: ${it}px;\n height: ${st}px;\n `:`transform: translate(${-1*W}px, ${-1*K}px) scale(${1/U}, ${1/Y});`,u=void 0!==q?`opacity: ${n.tweenToOpacity};`:`background-color: ${y};`,m=void 0!==q?"opacity: 1;":`background-color: ${O};`,g=void 0===q?"":`\n @keyframes ${o}-from-tween {\n 0% {\n opacity: ${n.tweenFromOpacity};\n margin: 0;\n border-width: ${f};\n border-style: ${v};\n border-color: ${_};\n border-radius: ${b};\n z-index: ${at};\n transform-origin: 0 0;\n transform: ${S};\n ${d}\n }\n\n 100% {\n opacity: 0;\n margin: 0;\n border-width: ${z};\n border-style: ${D};\n border-color: ${I};\n border-radius: ${R};\n z-index: ${lt};\n transform-origin: 0 0;\n ${c}\n }\n }\n `,x=!0===n.hideFromClone||!0===ot?"":`\n @keyframes ${o}-from {\n 0% {\n margin: ${X<0?X/2:0}px ${G<0?G/2:0}px;\n width: ${tt+p.marginH}px;\n height: ${et+p.marginV}px;\n }\n\n 100% {\n margin: 0;\n width: 0;\n height: 0;\n }\n }\n `,C=!0===ot?`\n margin: ${X<0?X/2:0}px ${G<0?G/2:0}px;\n width: ${tt+p.marginH}px;\n height: ${et+p.marginV}px;\n `:"\n margin: 0;\n width: 0;\n height: 0;\n ",w=!0===n.keepToClone?"":`\n @keyframes ${o}-to {\n 0% {\n ${C}\n }\n\n 100% {\n margin: ${J<0?J/2:0}px ${Z<0?Z/2:0}px;\n width: ${it+j.marginH}px;\n height: ${st+j.marginV}px;\n }\n }\n `;a.innerHTML=`\n @keyframes ${o} {\n 0% {\n margin: 0;\n border-width: ${f};\n border-style: ${v};\n border-color: ${_};\n border-radius: ${b};\n background-color: ${y};\n z-index: ${at};\n transform-origin: 0 0;\n ${l}\n ${u}\n }\n\n 100% {\n margin: 0;\n border-width: ${z};\n border-style: ${D};\n border-color: ${I};\n border-radius: ${R};\n background-color: ${O};\n z-index: ${lt};\n transform-origin: 0 0;\n transform: ${V};\n ${h}\n ${m}\n }\n }\n\n ${x}\n\n ${g}\n\n ${w}\n `,document.head.appendChild(a);let k="normal";$.style.animation=`${n.duration}ms ${n.easing} ${n.delay}ms ${k} ${n.fill} ${o}-from`,void 0!==q&&(q.style.animation=`${n.duration}ms ${n.easing} ${n.delay}ms ${k} ${n.fill} ${o}-from-tween`),B.style.animation=`${n.duration}ms ${n.easing} ${n.delay}ms ${k} ${n.fill} ${o}-to`,t.style.animation=`${n.duration}ms ${n.easing} ${n.delay}ms ${k} ${n.fill} ${o}`;const M=e=>{e===Object(e)&&e.animationName!==o||(t.removeEventListener("animationend",M),t.removeEventListener("animationcancel",M),dt(),a.remove())};r.qMorphCancel=(()=>{r.qMorphCancel=void 0,i=!0,M()}),t.qMorphCancel=(()=>{t.qMorphCancel=void 0,i=!0,M()}),t.addEventListener("animationend",M),t.addEventListener("animationcancel",M),e=(e=>!!(!0!==i&&t&&$&&B)&&(!0===e?(M(),!0):(s=!0!==s,k="normal"===k?"reverse":"normal",$.style.animationDirection=k,q.style.animationDirection=k,B.style.animationDirection=k,t.style.animationDirection=k,!0)))}};n.waitFor>0||"transitionend"===n.waitFor||n.waitFor===Object(n.waitFor)&&"function"==typeof n.waitFor.then?(n.waitFor>0?new Promise(t=>setTimeout(t,n.waitFor)):"transitionend"===n.waitFor?new Promise(e=>{const i=setTimeout(()=>{s()},400),s=o=>{clearTimeout(i),t&&(t.removeEventListener("transitionend",s),t.removeEventListener("transitioncancel",s)),e()};t.addEventListener("transitionend",s),t.addEventListener("transitioncancel",s)}):n.waitFor).then(P).catch(()=>{"function"==typeof t.qMorphCancel&&t.qMorphCancel()}):P()}),t=>e(t)}const morphGroups={},props=["duration","delay","easing","fill","classes","style","duration","resize","useCSS","hideFromClone","keepToClone","tween","tweenFromOpacity","tweenToOpacity","waitFor","onEnd"],mods=["resize","useCSS","hideFromClone","keepToClone","tween"];function changeClass(t,e){t.clsAction!==e&&(t.clsAction=e,t.el.classList[e]("q-morph--invisible"))}function trigger(t){if(!0===t.animating||t.queue.length<2)return;const[e,i]=t.queue;t.animating=!0,e.animating=!0,i.animating=!0,changeClass(e,"remove"),changeClass(i,"remove");const s=morph({from:e.el,to:i.el,onToggle(){changeClass(e,"add"),changeClass(i,"remove")},...i.opts,onEnd(s,o){void 0!==i.opts.onEnd&&i.opts.onEnd(s,o),!0!==o&&(e.animating=!1,i.animating=!1,t.animating=!1,t.cancel=void 0,t.queue.shift(),trigger(t))}});t.cancel=(()=>{s(!0),t.cancel=void 0})}function updateModifiers$1(t,e){const i=e.opts;mods.forEach(e=>{i[e]=!0===t[e]})}function insertArgs(t,e){const i="string"==typeof t&&t.length>0?t.split(":"):[];e.name=i[0],e.group=i[1],Object.assign(e.opts,{duration:!0===isNaN(i[2])?300:parseFloat(i[2]),waitFor:i[3]})}function updateArgs(t,e){void 0!==t.group&&(e.group=t.group),void 0!==t.name&&(e.name=t.name);const i=e.opts;props.forEach(e=>{void 0!==t[e]&&(i[e]=t[e])})}function updateModel(t,e){if(e.name!==t)!1===e.animating&&changeClass(e,"add");else{const i=morphGroups[e.group];void 0===i?(morphGroups[e.group]={name:e.group,model:t,queue:[e],animating:!1},changeClass(e,"remove")):i.model!==t&&(i.model=t,i.queue.push(e),!1===i.animating&&2===i.queue.length&&trigger(i))}}function updateValue(t,e){let i;Object(e)===e?(i=""+e.model,updateArgs(e,t),updateModifiers$1(e,t)):i=""+e,i!==t.model?(t.model=i,updateModel(i,t)):!1===t.animating&&void 0!==t.clsAction&&t.el.classList[t.clsAction]("q-morph--invisible")}function destroy$6(t){const e=t.__qmorph;if(void 0!==e){const i=morphGroups[e.group];if(void 0!==i){-1!==i.queue.indexOf(e)&&(i.queue=i.queue.filter(t=>t!==e),0===i.queue.length&&(void 0!==i.cancel&&i.cancel(),delete morphGroups[e.group]))}"add"===e.clsAction&&t.classList.remove("q-morph--invisible"),delete t.__qmorph}}var Morph={name:"morph",inserted(t,e){void 0!==t.__qmorph&&(destroy$6(t),t.__qmorph_destroyed=!0);const i={el:t,animating:!1,opts:{}};updateModifiers$1(e.modifiers,i),insertArgs(e.arg,i),updateValue(i,e.value),t.__qmorph=i},update(t,e){const i=t.__qmorph;void 0!==i&&updateValue(i,e.value)},unbind(t){void 0===t.__qmorph_destroyed?destroy$6(t):delete t.__qmorph_destroyed}};const defaultCfg$1={childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0};function update$1(t,e,i){e.handler=i,void 0!==e.observer&&e.observer.disconnect(),e.observer=new MutationObserver(i=>{if("function"==typeof e.handler){!1!==e.handler(i)&&!0!==e.once||destroy$7(t)}}),e.observer.observe(t,e.opts)}function destroy$7(t){const e=t.__qmutation;void 0!==e&&(void 0!==e.observer&&e.observer.disconnect(),delete t.__qmutation)}var Mutation={name:"mutation",inserted(t,{modifiers:{once:e,...i},value:s}){void 0!==t.__qmutation&&(destroy$7(t),t.__qmutation_destroyed=!0);const o={once:e,opts:0===Object.keys(i).length?defaultCfg$1:i};update$1(t,o,s),t.__qmutation=o},update(t,{oldValue:e,value:i}){const s=t.__qmutation;void 0!==s&&e!==i&&update$1(t,s,i)},unbind(t){void 0===t.__qmutation_destroyed?destroy$7(t):delete t.__qmutation_destroyed}};function update$2(t,{value:e,oldValue:i}){"function"==typeof e?(t.handler=e,"function"!=typeof i&&(t.scrollTarget.addEventListener("scroll",t.scroll,listenOpts.passive),t.scroll())):t.scrollTarget.removeEventListener("scroll",t.scroll,listenOpts.passive)}function destroy$8(t){const e=t.__qscrollfire;void 0!==e&&(e.scrollTarget.removeEventListener("scroll",e.scroll,listenOpts.passive),e.scroll.cancel(),delete t.__qscrollfire)}var ScrollFire={name:"scroll-fire",inserted(t,e){void 0!==t.__qscrollfire&&(destroy$8(t),t.__qscrollfire_destroyed=!0);const i={scrollTarget:getScrollTarget(t),scroll:debounce(()=>{let e,s;i.scrollTarget===window?(s=t.getBoundingClientRect().bottom,e=window.innerHeight):(s=offset(t).top+height(t),e=offset(i.scrollTarget).top+height(i.scrollTarget)),s>0&&s<e&&(i.scrollTarget.removeEventListener("scroll",i.scroll,listenOpts.passive),i.handler(t))},25)};update$2(i,e),t.__qscrollfire=i},update(t,e){void 0!==t.__qscrollfire&&e.value!==e.oldValue&&update$2(t.__qscrollfire,e)},unbind(t){void 0===t.__qscrollfire_destroyed?destroy$8(t):delete t.__qscrollfire_destroyed}};function update$3(t,{value:e,oldValue:i}){"function"==typeof e?(t.handler=e,"function"!=typeof i&&t.scrollTarget.addEventListener("scroll",t.scroll,listenOpts.passive)):t.scrollTarget.removeEventListener("scroll",t.scroll,listenOpts.passive)}function destroy$9(t){const e=t.__qscroll;void 0!==e&&(e.scrollTarget.removeEventListener("scroll",e.scroll,listenOpts.passive),delete t.__qscroll)}var Scroll={name:"scroll",inserted(t,e){void 0!==t.__qscroll&&(destroy$9(t),t.__qscroll_destroyed=!0);const i={scrollTarget:getScrollTarget(t),scroll(){i.handler(getVerticalScrollPosition(i.scrollTarget),getHorizontalScrollPosition(i.scrollTarget))}};update$3(i,e),t.__qscroll=i},update(t,e){void 0!==t.__qscroll&&e.oldValue!==e.value&&update$3(t.__qscroll,e)},unbind(t){void 0===t.__qscroll_destroyed?destroy$9(t):delete t.__qscroll_destroyed}};function destroy$a(t){const e=t.__qtouchhold;void 0!==e&&(cleanEvt(e,"main"),cleanEvt(e,"temp"),clearTimeout(e.timer),void 0!==e.styleCleanup&&e.styleCleanup(),delete t.__qtouchhold)}var TouchHold={name:"touch-hold",bind(t,e){void 0!==t.__qtouchhold&&(destroy$a(t),t.__qtouchhold_destroyed=!0);const{modifiers:i}=e;if(!0!==i.mouse&&!0!==client.has.touch)return;const s={handler:e.value,noop:noop,mouseStart(t){"function"==typeof s.handler&&!0===leftClick(t)&&(addEvt(s,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),s.start(t,!0))},touchStart(t){if(void 0!==t.target&&"function"==typeof s.handler){const e=t.target;addEvt(s,"temp",[[e,"touchmove","move","passiveCapture"],[e,"touchcancel","end","notPassiveCapture"],[e,"touchend","end","notPassiveCapture"]]),s.start(t)}},start(t,e){s.origin=position(t);const i=Date.now();!0===client.is.mobile&&(document.body.classList.add("non-selectable"),clearSelection(),s.styleCleanup=(t=>{s.styleCleanup=void 0;const e=()=>{document.body.classList.remove("non-selectable")};!0===t?(clearSelection(),setTimeout(e,10)):e()})),s.triggered=!1,s.sensitivity=!0===e?s.mouseSensitivity:s.touchSensitivity,s.timer=setTimeout(()=>{clearSelection(),s.triggered=!0,s.handler({evt:t,touch:!0!==e,mouse:!0===e,position:s.origin,duration:Date.now()-i})},s.duration)},move(t){const{top:e,left:i}=position(t);(Math.abs(i-s.origin.left)>=s.sensitivity||Math.abs(e-s.origin.top)>=s.sensitivity)&&clearTimeout(s.timer)},end(t){cleanEvt(s,"temp"),void 0!==s.styleCleanup&&s.styleCleanup(s.triggered),!0===s.triggered?void 0!==t&&stopAndPrevent(t):clearTimeout(s.timer)}},o=[600,5,7];"string"==typeof e.arg&&e.arg.length>0&&e.arg.split(":").forEach((t,e)=>{const i=parseInt(t,10);i&&(o[e]=i)}),[s.duration,s.touchSensitivity,s.mouseSensitivity]=o,t.__qtouchhold=s,!0===i.mouse&&addEvt(s,"main",[[t,"mousedown","mouseStart",`passive${!0===i.mouseCapture||!0===i.mousecapture?"Capture":""}`]]),!0===client.has.touch&&addEvt(s,"main",[[t,"touchstart","touchStart",`passive${!0===i.capture?"Capture":""}`],[t,"touchend","noop","passiveCapture"]])},update(t,e){const i=t.__qtouchhold;void 0!==i&&e.oldValue!==e.value&&("function"!=typeof e.value&&i.end(),i.handler=e.value)},unbind(t){void 0===t.__qtouchhold_destroyed?destroy$a(t):delete t.__qtouchhold_destroyed}};const keyCodes$2={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},keyRegex=new RegExp(`^([\\d+]+|${Object.keys(keyCodes$2).join("|")})$`,"i");function shouldEnd(t,e){const{top:i,left:s}=position(t);return Math.abs(s-e.left)>=7||Math.abs(i-e.top)>=7}function destroy$b(t){const e=t.__qtouchrepeat;void 0!==e&&(clearTimeout(e.timer),cleanEvt(e,"main"),cleanEvt(e,"temp"),void 0!==e.styleCleanup&&e.styleCleanup(),delete t.__qtouchrepeat)}var TouchRepeat={name:"touch-repeat",bind(t,{modifiers:e,value:i,arg:s}){void 0!==t.__qtouchrepeat&&(destroy$b(t),t.__qtouchrepeat_destroyed=!0);const o=Object.keys(e).reduce((t,e)=>{if(!0===keyRegex.test(e)){const i=isNaN(parseInt(e,10))?keyCodes$2[e.toLowerCase()]:parseInt(e,10);i>=0&&t.push(i)}return t},[]);if(!0!==e.mouse&&!0!==client.has.touch&&0===o.length)return;const n="string"==typeof s&&s.length>0?s.split(":").map(t=>parseInt(t,10)):[0,600,300],r=n.length-1,a={keyboard:o,handler:i,noop:noop,mouseStart(t){void 0===a.event&&"function"==typeof a.handler&&!0===leftClick(t)&&(addEvt(a,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),a.start(t,!0))},keyboardStart(e){if("function"==typeof a.handler&&!0===isKeyCode(e,o)){if((0===n[0]||void 0!==a.event)&&(stopAndPrevent(e),t.focus(),void 0!==a.event))return;addEvt(a,"temp",[[document,"keyup","end","notPassiveCapture"],[document,"click","end","notPassiveCapture"]]),a.start(e,!1,!0)}},touchStart(t){if(void 0!==t.target&&"function"==typeof a.handler){const e=t.target;addEvt(a,"temp",[[e,"touchmove","move","passiveCapture"],[e,"touchcancel","end","notPassiveCapture"],[e,"touchend","end","notPassiveCapture"]]),a.start(t)}},start(t,e,i){function s(t){a.styleCleanup=void 0,document.documentElement.style.cursor="";const e=()=>{document.body.classList.remove("non-selectable")};!0===t?(clearSelection(),setTimeout(e,10)):e()}!0!==i&&(a.origin=position(t)),!0===client.is.mobile&&(document.body.classList.add("non-selectable"),clearSelection(),a.styleCleanup=s),a.event={touch:!0!==e&&!0!==i,mouse:!0===e,keyboard:!0===i,startTime:Date.now(),repeatCount:0};const o=()=>{if(void 0===a.event)return;0===a.event.repeatCount&&(a.event.evt=t,!0===i?a.event.keyCode=t.keyCode:a.event.position=position(t),!0!==client.is.mobile&&(document.documentElement.style.cursor="pointer",document.body.classList.add("non-selectable"),clearSelection(),a.styleCleanup=s)),a.event.duration=Date.now()-a.event.startTime,a.event.repeatCount+=1,a.handler(a.event);const e=r<a.event.repeatCount?r:a.event.repeatCount;a.timer=setTimeout(o,n[e])};0===n[0]?o():a.timer=setTimeout(o,n[0])},move(t){void 0!==a.event&&!0===shouldEnd(t,a.origin)&&clearTimeout(a.timer)},end(t){void 0!==a.event&&(void 0!==a.styleCleanup&&a.styleCleanup(!0),void 0!==t&&a.event.repeatCount>0&&stopAndPrevent(t),cleanEvt(a,"temp"),clearTimeout(a.timer),a.event=void 0)}};t.__qtouchrepeat=a,!0===e.mouse&&addEvt(a,"main",[[t,"mousedown","mouseStart",`passive${!0===e.mouseCapture||!0===e.mousecapture?"Capture":""}`]]),!0===client.has.touch&&addEvt(a,"main",[[t,"touchstart","touchStart",`passive${!0===e.capture?"Capture":""}`],[t,"touchend","noop","passiveCapture"]]),o.length>0&&addEvt(a,"main",[[t,"keydown","keyboardStart",`notPassive${!0===e.keyCapture||!0===e.keycapture?"Capture":""}`]])},update(t,{oldValue:e,value:i}){const s=t.__qtouchrepeat;void 0!==s&&e!==i&&("function"!=typeof i&&s.end(),s.handler=i)},unbind(t){void 0===t.__qtouchrepeat_destroyed?destroy$b(t):delete t.__qtouchrepeat_destroyed}},directives=Object.freeze({__proto__:null,ClosePopup:ClosePopup,GoBack:GoBack,Intersection:Intersection,Morph:Morph,Mutation:Mutation,Ripple:Ripple,ScrollFire:ScrollFire,Scroll:Scroll,TouchHold:TouchHold,TouchPan:TouchPan,TouchRepeat:TouchRepeat,TouchSwipe:TouchSwipe});let metaValue;function getProp(){return Platform.is.winphone?"msapplication-navbutton-color":Platform.is.safari?"apple-mobile-web-app-status-bar-style":"theme-color"}function getMetaTag(t){const e=document.getElementsByTagName("META");for(const i in e)if(e[i].name===t)return e[i]}function setColor(t){void 0===metaValue&&(metaValue=getProp());let e=getMetaTag(metaValue);const i=void 0===e;i&&(e=document.createElement("meta")).setAttribute("name",metaValue),e.setAttribute("content",t),i&&document.head.appendChild(e)}var AddressbarColor={install({$q:t,cfg:e}){this.set=!1!==isSSR||!0!==Platform.is.mobile||!0!==Platform.is.nativeMobile&&!0!==Platform.is.winphone&&!0!==Platform.is.safari&&!0!==Platform.is.webkit&&!0!==Platform.is.vivaldi?noop:t=>{const e=t||getBrand("primary");!0===Platform.is.nativeMobile&&window.StatusBar?window.StatusBar.backgroundColorByHexString(e):setColor(e)},t.addressbarColor=this,e.addressbarColor&&this.set(e.addressbarColor)}};const prefixes={};function promisify(t,e){try{const i=t[e]();return void 0===i?Promise.resolve():i}catch(t){return Promise.reject(t)}}function checkActive(t){t.activeEl=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||null,t.isActive=null!==t.activeEl}var AppFullscreen={isCapable:!1,isActive:!1,activeEl:null,request(t){if(!0===this.isCapable){const e=t||document.documentElement;if(e!==this.activeEl){return(!0===client.is.ie&&null!==this.activeEl&&e.contains(this.activeEl)?this.exit():Promise.resolve()).then(()=>promisify(e,prefixes.request)).catch(t=>null!==this.activeEl?this.exit().then(()=>promisify(e,prefixes.request)):Promise.reject(t)).then(t=>(checkActive(this),t))}}return this.__getErr()},exit(){return!0===this.isCapable&&!0===this.isActive?promisify(document,prefixes.exit).then(t=>(checkActive(this),this.isActive?this.exit():t)):this.__getErr()},toggle(t){const e=t||document.documentElement;return this.activeEl===e?this.exit():this.request(e)},install({$q:t}){t.fullscreen=this,this.__getErr=(()=>Promise.resolve()),!0!==isSSR&&(prefixes.request=["requestFullscreen","msRequestFullscreen","mozRequestFullScreen","webkitRequestFullscreen"].find(t=>void 0!==document.documentElement[t]),this.isCapable=void 0!==prefixes.request,!1!==this.isCapable?(prefixes.exit=["exitFullscreen","msExitFullscreen","mozCancelFullScreen","webkitExitFullscreen"].find(t=>document[t]),checkActive(this),["onfullscreenchange","onmsfullscreenchange","onwebkitfullscreenchange"].forEach(t=>{document[t]=(()=>{checkActive(this)})}),Vue.util.defineReactive(this,"isActive",this.isActive),Vue.util.defineReactive(this,"activeEl",this.activeEl)):this.__getErr=(()=>Promise.reject("Not capable")))}},AppVisibility={appVisible:!1,install({$q:t}){if(!0===isSSR)return void(this.appVisible=t.appVisible=!0);let e,i;void 0!==document.hidden?(e="hidden",i="visibilitychange"):void 0!==document.msHidden?(e="msHidden",i="msvisibilitychange"):void 0!==document.webkitHidden&&(e="webkitHidden",i="webkitvisibilitychange");const s=()=>{this.appVisible=t.appVisible=!document[e]};s(),i&&void 0!==document[e]&&(Vue.util.defineReactive(t,"appVisible",this.appVisible),document.addEventListener(i,s,!1))}};const optsGrid={staticClass:"row items-stretch justify-start",attrs:{role:"list"}},optsList={attrs:{role:"list"}},attrsGridItem={tabindex:0,role:"listitem"};var BottomSheet=Vue.extend({name:"BottomSheetPlugin",mixins:[DarkMixin,AttrsMixin],inheritAttrs:!1,props:{title:String,message:String,actions:Array,grid:Boolean,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},computed:{dialogProps(){return{...this.qAttrs,position:"bottom"}}},methods:{show(){this.$refs.dialog.show()},hide(){this.$refs.dialog.hide()},onOk(t){this.$emit("ok",t),this.hide()},__getGrid(t){return this.actions.map(e=>{const i=e.avatar||e.img;return void 0===e.label?t(QSeparator,{staticClass:"col-all",props:{dark:this.isDark}}):t("div",{staticClass:"q-bottom-sheet__item q-hoverable q-focusable cursor-pointer relative-position",class:e.classes,style:e.style,attrs:attrsGridItem,on:{click:()=>{this.onOk(e)},keyup:t=>{13===t.keyCode&&this.onOk(e)}}},[t("div",{staticClass:"q-focus-helper"}),e.icon?t(QIcon,{props:{name:e.icon,color:e.color}}):i?t("img",{attrs:{src:i},staticClass:e.avatar?"q-bottom-sheet__avatar":null}):t("div",{staticClass:"q-bottom-sheet__empty-icon"}),t("div",[e.label])])})},__getList(t){return this.actions.map(e=>{const i=e.avatar||e.img;return void 0===e.label?t(QSeparator,{props:{spaced:!0,dark:this.isDark}}):t(QItem,{staticClass:"q-bottom-sheet__item",class:e.classes,style:e.style,props:{tabindex:0,clickable:!0,dark:this.isDark},on:{click:()=>{this.onOk(e)}}},[t(QItemSection,{props:{avatar:!0}},[e.icon?t(QIcon,{props:{name:e.icon,color:e.color}}):i?t("img",{attrs:{src:i},staticClass:e.avatar?"q-bottom-sheet__avatar":null}):null]),t(QItemSection,[e.label])])})}},render(t){const e=[];return this.title&&e.push(t(QCardSection,{staticClass:"q-dialog__title"},[this.title])),this.message&&e.push(t(QCardSection,{staticClass:"q-dialog__message"},[this.message])),e.push(!0===this.grid?t("div",optsGrid,this.__getGrid(t)):t("div",optsList,this.__getList(t))),t(QDialog,{ref:"dialog",props:this.dialogProps,on:cache(this,"hide",{hide:()=>{this.$emit("hide")}})},[t(QCard,{staticClass:`q-bottom-sheet q-bottom-sheet--${!0===this.grid?"grid":"list"}`+(!0===this.isDark?" q-bottom-sheet--dark q-dark":""),style:this.cardStyle,class:this.cardClass},e)])}});const ssrAPI={onOk:()=>ssrAPI,okCancel:()=>ssrAPI,hide:()=>ssrAPI,update:()=>ssrAPI};function merge(t,e){for(const i in e)"spinner"!==i&&Object(e[i])===e[i]?(t[i]=Object(t[i])!==t[i]?{}:{...t[i]},merge(t[i],e[i])):t[i]=e[i]}let appRoot;function getDialogParent(t,e){if(void 0!==t)return t;if(void 0!==e)return e;if(void 0===appRoot){const t=document.getElementById("q-app");t&&t.__vue__&&(appRoot=t.__vue__.$root)}return appRoot}function globalDialog(t){return({className:e,class:i,style:s,component:o,root:n,parent:r,...a})=>{if(!0===isSSR)return ssrAPI;void 0!==i&&(a.cardClass=i),void 0!==s&&(a.cardStyle=s);const l=void 0!==o;let h,d;!0===l?h=o:(h=t,d=a);const c=[],u=[],p={onOk:t=>(c.push(t),p),onCancel:t=>(u.push(t),p),onDismiss:t=>(c.push(t),u.push(t),p),hide:()=>(v.$refs.dialog.hide(),p),update:({className:t,class:e,style:i,component:s,root:o,parent:n,...r})=>(null!==v&&(void 0!==e&&(r.cardClass=e),void 0!==i&&(r.cardStyle=i),!0===l?Object.assign(a,r):(merge(a,r),d={...a}),v.$forceUpdate()),p)},m=document.createElement("div");document.body.appendChild(m);let g=!1;const f={ok:t=>{g=!0,c.forEach(e=>{e(t)})},hide:()=>{v.$destroy(),v.$el.remove(),v=null,!0!==g&&u.forEach(t=>{t()})}};let v=new Vue({name:"QGlobalDialog",el:m,parent:getDialogParent(r,n),render:t=>t(h,{ref:"dialog",props:a,attrs:d,on:f}),mounted(){void 0!==this.$refs.dialog?this.$refs.dialog.show():f["hook:mounted"]=(()=>{void 0!==this.$refs.dialog&&this.$refs.dialog.show()})}});return p}}var BottomSheet$1={install({$q:t}){this.create=t.bottomSheet=globalDialog(BottomSheet)}};function encode(t){return encodeURIComponent(t)}function decode(t){return decodeURIComponent(t)}function stringifyCookieValue(t){return encode(t===Object(t)?JSON.stringify(t):""+t)}function read(t){if(""===t)return t;0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),t=decode(t.replace(/\+/g," "));try{t=JSON.parse(t)}catch(t){}return t}function getString(t){const e=new Date;return e.setMilliseconds(e.getMilliseconds()+t),e.toUTCString()}function parseExpireString(t){let e=0;const i=t.match(/(\d+)d/),s=t.match(/(\d+)h/),o=t.match(/(\d+)m/),n=t.match(/(\d+)s/);return i&&(e+=864e5*i[1]),s&&(e+=36e5*s[1]),o&&(e+=6e4*o[1]),n&&(e+=1e3*n[1]),0===e?t:getString(e)}function set(t,e,i={},s){let o,n;void 0!==i.expires&&("[object Date]"===Object.prototype.toString.call(i.expires)?o=i.expires.toUTCString():"string"==typeof i.expires?o=parseExpireString(i.expires):(n=parseFloat(i.expires),o=!1===isNaN(n)?getString(864e5*n):i.expires));const r=`${encode(t)}=${stringifyCookieValue(e)}`,a=[r,void 0!==o?"; Expires="+o:"",i.path?"; Path="+i.path:"",i.domain?"; Domain="+i.domain:"",i.sameSite?"; SameSite="+i.sameSite:"",i.httpOnly?"; HttpOnly":"",i.secure?"; Secure":"",i.other?"; "+i.other:""].join("");if(s){s.req.qCookies?s.req.qCookies.push(a):s.req.qCookies=[a],s.res.setHeader("Set-Cookie",s.req.qCookies);let e=s.req.headers.cookie||"";if(void 0!==o&&n<0){const i=get(t,s);void 0!==i&&(e=e.replace(`${t}=${i}; `,"").replace(`; ${t}=${i}`,"").replace(`${t}=${i}`,""))}else e=e?`${r}; ${e}`:a;s.req.headers.cookie=e}else document.cookie=a}function get(t,e){const i=e?e.req.headers:document,s=i.cookie?i.cookie.split("; "):[],o=s.length;let n,r,a,l=t?null:{},h=0;for(;h<o;h++)if(r=decode((n=s[h].split("=")).shift()),a=n.join("="),t){if(t===r){l=read(a);break}}else l[r]=a;return l}function remove(t,e,i){set(t,"",{expires:-1,...e},i)}function has(t,e){return null!==get(t,e)}function getObject(t){return{get:e=>get(e,t),set:(e,i,s)=>set(e,i,s,t),has:e=>has(e,t),remove:(e,i)=>remove(e,i,t),getAll:()=>get(null,t)}}var Cookies={parseSSR(t){return void 0!==t?getObject(t):this},install({$q:t,queues:e}){!0===isSSR?e.server.push((t,e)=>{t.cookies=getObject(e.ssr)}):(Object.assign(this,getObject()),t.cookies=this)}},DialogPlugin=Vue.extend({name:"DialogPlugin",mixins:[DarkMixin,AttrsMixin],inheritAttrs:!1,props:{title:String,message:String,prompt:Object,options:Object,progress:[Boolean,Object],html:Boolean,ok:{type:[String,Object,Boolean],default:!0},cancel:[String,Object,Boolean],focus:{type:String,default:"ok",validator:t=>["ok","cancel","none"].includes(t)},stackButtons:Boolean,color:String,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},computed:{classes(){return"q-dialog-plugin"+(!0===this.isDark?" q-dialog-plugin--dark q-dark":"")+(!1!==this.progress?" q-dialog-plugin--progress":"")},spinner(){if(!1!==this.progress)return!0===isObject(this.progress)?{component:this.progress.spinner||QSpinner,props:{color:this.progress.color||this.vmColor}}:{component:QSpinner,props:{color:this.vmColor}}},hasForm(){return void 0!==this.prompt||void 0!==this.options},okLabel(){return!0===isObject(this.ok)?this.$q.lang.label.ok:!0===this.ok?this.$q.lang.label.ok:this.ok},cancelLabel(){return!0===isObject(this.cancel)?this.$q.lang.label.cancel:!0===this.cancel?this.$q.lang.label.cancel:this.cancel},vmColor(){return this.color||(!0===this.isDark?"amber":"primary")},okDisabled(){return void 0!==this.prompt?void 0!==this.prompt.isValid&&!0!==this.prompt.isValid(this.prompt.model):void 0!==this.options?void 0!==this.options.isValid&&!0!==this.options.isValid(this.options.model):void 0},okProps(){return{color:this.vmColor,label:this.okLabel,ripple:!1,disable:this.okDisabled,...!0===isObject(this.ok)?this.ok:{flat:!0}}},cancelProps(){return{color:this.vmColor,label:this.cancelLabel,ripple:!1,...!0===isObject(this.cancel)?this.cancel:{flat:!0}}}},methods:{show(){this.$refs.dialog.show()},hide(){this.$refs.dialog.hide()},getPrompt(t){return[t(QInput,{props:{value:this.prompt.model,type:this.prompt.type,label:this.prompt.label,stackLabel:this.prompt.stackLabel,outlined:this.prompt.outlined,filled:this.prompt.filled,standout:this.prompt.standout,rounded:this.prompt.rounded,square:this.prompt.square,counter:this.prompt.counter,maxlength:this.prompt.maxlength,prefix:this.prompt.prefix,suffix:this.prompt.suffix,color:this.vmColor,dense:!0,autofocus:!0,dark:this.isDark},attrs:this.prompt.attrs,on:cache(this,"prompt",{input:t=>{this.prompt.model=t},keyup:t=>{!0!==this.okDisabled&&"textarea"!==this.prompt.type&&!0===isKeyCode(t,13)&&this.onOk()}})})]},getOptions(t){return[t(QOptionGroup,{props:{value:this.options.model,type:this.options.type,color:this.vmColor,inline:this.options.inline,options:this.options.items,dark:this.isDark},on:cache(this,"opts",{input:t=>{this.options.model=t}})})]},getButtons(t){const e=[];if(this.cancel&&e.push(t(QBtn,{props:this.cancelProps,attrs:{"data-autofocus":"cancel"===this.focus&&!0!==this.hasForm},on:cache(this,"cancel",{click:this.onCancel})})),this.ok&&e.push(t(QBtn,{props:this.okProps,attrs:{"data-autofocus":"ok"===this.focus&&!0!==this.hasForm},on:cache(this,"ok",{click:this.onOk})})),e.length>0)return t(QCardActions,{staticClass:!0===this.stackButtons?"items-end":null,props:{vertical:this.stackButtons,align:"right"}},e)},onOk(){this.$emit("ok",cloneDeep(this.getData())),this.hide()},onCancel(){this.hide()},getData(){return void 0!==this.prompt?this.prompt.model:void 0!==this.options?this.options.model:void 0},getSection(t,e,i){return!0===this.html?t(QCardSection,{staticClass:e,domProps:{innerHTML:i}}):t(QCardSection,{staticClass:e},[i])}},render(t){const e=[];return this.title&&e.push(this.getSection(t,"q-dialog__title",this.title)),!1!==this.progress&&e.push(t(QCardSection,{staticClass:"q-dialog__progress"},[t(this.spinner.component,{props:this.spinner.props})])),this.message&&e.push(this.getSection(t,"q-dialog__message",this.message)),void 0!==this.prompt?e.push(t(QCardSection,{staticClass:"scroll q-dialog-plugin__form"},this.getPrompt(t))):void 0!==this.options&&e.push(t(QSeparator,{props:{dark:this.isDark}}),t(QCardSection,{staticClass:"scroll q-dialog-plugin__form"},this.getOptions(t)),t(QSeparator,{props:{dark:this.isDark}})),(this.ok||this.cancel)&&e.push(this.getButtons(t)),t(QDialog,{ref:"dialog",props:{...this.qAttrs,value:this.value},on:cache(this,"hide",{hide:()=>{this.$emit("hide")}})},[t(QCard,{staticClass:this.classes,style:this.cardStyle,class:this.cardClass,props:{dark:this.isDark}},e)])}}),Dialog={install({$q:t}){this.create=t.dialog=globalDialog(DialogPlugin)}},LoadingBar={isActive:!1,start:noop,stop:noop,increment:noop,setDefaults:noop,install({$q:t,cfg:e}){if(t.loadingBar=this,!0===isSSR)return;const i=void 0!==e.loadingBar?{...e.loadingBar}:{},s={start:()=>{this.isActive=!0},stop:()=>{this.isActive=!1}},o=new Vue({name:"LoadingBar",devtools:{hide:!0},beforeCreate(){void 0===this._routerRoot&&(this._routerRoot={})},render:t=>t(QAjaxBar,{ref:"bar",props:i,on:s})}).$mount().$refs.bar;Object.assign(this,{start:o.start,stop:o.stop,increment:o.increment,setDefaults:t=>{!0===isObject(t)&&Object.assign(i,t),o.$parent.$forceUpdate()}}),Vue.util.defineReactive(this,"isActive",this.isActive),Vue.util.defineReactive(o,"isActive",this.isActive),o.setDefaults=this.setDefaults,document.body.appendChild(o.$parent.$el)}};let vm,timeout,uid$2=0,props$1={},activeGroups={};const originalDefaults={group:"__default_quasar_group__",delay:0,message:!1,spinnerSize:80,spinnerColor:"white",messageColor:"white",backgroundColor:"black",spinner:QSpinner,customClass:""},defaults={...originalDefaults};function registerProps(t){if(t&&void 0!==t.group&&void 0!==activeGroups[t.group])return Object.assign(activeGroups[t.group],t);const e=!0===isObject(t)&&!0===t.ignoreDefaults?{...originalDefaults,...t}:{...defaults,...t};return activeGroups[e.group]=e,e}const Loading={isActive:!1,show(t){if(!0===isSSR)return;props$1=registerProps(t);const{group:e}=props$1;return props$1.customClass+=` text-${props$1.backgroundColor}`,this.isActive=!0,void 0!==vm?(props$1.uid=uid$2,vm.$forceUpdate()):(props$1.uid=++uid$2,clearTimeout(timeout),timeout=setTimeout(()=>{timeout=void 0;const t=document.createElement("div");document.body.appendChild(t),vm=new Vue({name:"QLoading",devtools:{hide:!0},beforeCreate(){void 0===this._routerRoot&&(this._routerRoot={})},el:t,mounted(){preventScroll(!0)},render:t=>t("transition",{props:{name:"q-transition--fade",appear:!0},on:cache(this,"tr",{"after-leave":()=>{!0!==this.isActive&&void 0!==vm&&(preventScroll(!1),vm.$destroy(),vm.$el.remove(),vm=void 0)}})},[!0===this.isActive?t("div",{staticClass:"q-loading fullscreen column flex-center z-max",key:props$1.uid,class:props$1.customClass.trim()},[t(props$1.spinner,{props:{color:props$1.spinnerColor,size:props$1.spinnerSize}}),props$1.message&&t("div",{class:`text-${props$1.messageColor}`,domProps:{[!0===props$1.sanitize?"textContent":"innerHTML"]:props$1.message}})||void 0]):null])})},props$1.delay)),t=>{void 0!==t&&Object(t)===t?this.show({...t,group:e}):this.hide(e)}},hide(t){if(!0===this.isActive){if(void 0===t)activeGroups={};else{if(void 0===activeGroups[t])return;{delete activeGroups[t];const e=Object.keys(activeGroups);if(0!==e.length){const t=e[e.length-1];return void this.show({group:t})}}}void 0!==timeout&&(clearTimeout(timeout),timeout=void 0),this.isActive=!1}},setDefaults(t){!0===isObject(t)&&Object.assign(defaults,t)},install({$q:t,cfg:{loading:e}}){this.setDefaults(e),t.loading=this}};let updateId,ssrTakeover;function normalize(t){t.title&&(t.title=t.titleTemplate?t.titleTemplate(t.title):t.title,delete t.titleTemplate),[["meta","content"],["link","href"]].forEach(e=>{const i=t[e[0]],s=e[1];for(const t in i){const e=i[t];e.template&&(1===Object.keys(e).length?delete i[t]:(e[s]=e.template(e[s]||""),delete e.template))}})}function changed(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!0;for(const i in t)if(t[i]!==e[i])return!0}function bodyFilter(t){return!1===["class","style"].includes(t)}function htmlFilter(t){return!1===["lang","dir"].includes(t)}function diff(t,e){const i={},s={};return void 0===t?{add:e,remove:s}:(t.title!==e.title&&(i.title=e.title),["meta","link","script","htmlAttr","bodyAttr"].forEach(o=>{const n=t[o],r=e[o];if(s[o]=[],void 0!==n&&null!==n){i[o]={};for(const t in n)!1===r.hasOwnProperty(t)&&s[o].push(t);for(const t in r)!1===n.hasOwnProperty(t)?i[o][t]=r[t]:!0===changed(n[t],r[t])&&(s[o].push(t),i[o][t]=r[t])}else i[o]=r}),{add:i,remove:s})}function apply$1({add:t,remove:e}){t.title&&(document.title=t.title),Object.keys(e).length>0&&(["meta","link","script"].forEach(t=>{e[t].forEach(e=>{document.head.querySelector(`${t}[data-qmeta="${e}"]`).remove()})}),e.htmlAttr.filter(htmlFilter).forEach(t=>{document.documentElement.removeAttribute(t)}),e.bodyAttr.filter(bodyFilter).forEach(t=>{document.body.removeAttribute(t)})),["meta","link","script"].forEach(e=>{const i=t[e];for(const t in i){const s=document.createElement(e);for(const e in i[t])"innerHTML"!==e&&s.setAttribute(e,i[t][e]);s.setAttribute("data-qmeta",t),"script"===e&&(s.innerHTML=i[t].innerHTML||""),document.head.appendChild(s)}}),Object.keys(t.htmlAttr).filter(htmlFilter).forEach(e=>{document.documentElement.setAttribute(e,t.htmlAttr[e]||"")}),Object.keys(t.bodyAttr).filter(bodyFilter).forEach(e=>{document.body.setAttribute(e,t.bodyAttr[e]||"")})}function parseMeta(t,e){!0!==t._inactive&&(!0===hasMeta(t)&&(extend(!0,e,t.__qMeta),!0===t.$options.meta.stopPropagation)||t.$children.forEach(t=>{parseMeta(t,e)}))}function updateClient(){!0===ssrTakeover&&(ssrTakeover=!1,this.$root.__currentMeta=window.__Q_META__);const t={title:"",titleTemplate:null,meta:{},link:{},script:{},htmlAttr:{},bodyAttr:{}};parseMeta(this.$root,t),normalize(t),apply$1(diff(this.$root.__currentMeta,t)),this.$root.__currentMeta=t}function getAttr(t){return e=>{const i=t[e];return e+(!0!==i&&void 0!==i?`="${i}"`:"")}}function getHead(t){let e="";return t.title&&(e+=`<title>${t.title}</title>`),["meta","link","script"].forEach(i=>{const s=t[i];for(const t in s){const o=Object.keys(s[t]).filter(t=>"innerHTML"!==t).map(getAttr(s[t]));e+=`<${i} ${o.join(" ")} data-qmeta="${t}">`,"script"===i&&(e+=`${s[t].innerHTML||""}<\/script>`)}}),e}function getServerMeta(t,e,i){const s={title:"",titleTemplate:null,meta:{},link:{},htmlAttr:{},bodyAttr:{},noscript:{}};parseMeta(t,s),normalize(s);const o=void 0!==i&&void 0!==i.nonce?` nonce="${i.nonce}"`:"",n={"%%Q_HTML_ATTRS%%":Object.keys(s.htmlAttr).filter(htmlFilter).map(getAttr(s.htmlAttr)).join(" "),"%%Q_HEAD_TAGS%%":getHead(s),"%%Q_BODY_ATTRS%%":Object.keys(s.bodyAttr).filter(bodyFilter).map(getAttr(s.bodyAttr)).join(" "),"%%Q_BODY_TAGS%%":Object.keys(s.noscript).map(t=>`<noscript data-qmeta="${t}">${s.noscript[t]}</noscript>`).join("")+`<script${o}>window.__Q_META__=${delete s.noscript&&JSON.stringify(s)}<\/script>`};return Object.keys(n).forEach(t=>{e=e.replace(t,n[t])}),e}function beforeCreate(){"function"==typeof this.$options.meta?(void 0===this.$options.computed&&(this.$options.computed={}),this.$options.computed.__qMeta=this.$options.meta):!0===hasMeta(this)&&(this.__qMeta=this.$options.meta)}function hasMeta(t){return void 0!==t.$options.meta&&null!==t.$options.meta}function triggerMeta(){!0===hasMeta(this)&&this.__qMetaUpdate()}!1===isSSR&&Vue.util.defineReactive(Loading,"isActive",Loading.isActive);var Meta={install({queues:t}){!0===isSSR?(Vue.prototype.$getMetaHTML=(t=>(e,i)=>getServerMeta(t,e,i)),Vue.mixin({beforeCreate:beforeCreate}),t.server.push((t,e)=>{e.ssr.Q_HTML_ATTRS+=" %%Q_HTML_ATTRS%%",Object.assign(e.ssr,{Q_HEAD_TAGS:"%%Q_HEAD_TAGS%%",Q_BODY_ATTRS:"%%Q_BODY_ATTRS%%",Q_BODY_TAGS:"%%Q_BODY_TAGS%%"})})):(ssrTakeover=fromSSR,Vue.mixin({beforeCreate:beforeCreate,created(){!0===hasMeta(this)&&(this.__qMetaUnwatch=this.$watch("__qMeta",this.__qMetaUpdate))},activated:triggerMeta,deactivated:triggerMeta,beforeMount:triggerMeta,destroyed(){!0===hasMeta(this)&&(this.__qMetaUnwatch(),this.__qMetaUpdate())},methods:{__qMetaUpdate(){clearTimeout(updateId),updateId=setTimeout(updateClient.bind(this),50)}}}))}};let vm$1,uid$3=0;const defaults$1={},groups={},notificationsList={},positionClass$1={},emptyRE=/^\s*$/,positionList=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],badgePositions=["top-left","top-right","bottom-left","bottom-right"],notifTypes={positive:{icon:t=>t.iconSet.type.positive,color:"positive"},negative:{icon:t=>t.iconSet.type.negative,color:"negative"},warning:{icon:t=>t.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:t=>t.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}};function addNotification(t,e,i){if(!t)return logError("parameter required");let s;const o={textColor:"white"};if(!0!==t.ignoreDefaults&&Object.assign(o,defaults$1),!1===isObject(t)&&(o.type&&Object.assign(o,notifTypes[o.type]),t={message:t}),Object.assign(o,notifTypes[t.type||o.type],t),"function"==typeof o.icon&&(o.icon=o.icon(e.$q)),o.spinner?!0===o.spinner&&(o.spinner=QSpinner):o.spinner=!1,o.meta={hasMedia:Boolean(!1!==o.spinner||o.icon||o.avatar),hasText:hasContent(o.message)||hasContent(o.caption)},o.position){if(!1===positionList.includes(o.position))return logError("wrong position",t)}else o.position="bottom";if(void 0===o.timeout)o.timeout=5e3;else{const e=parseInt(o.timeout,10);if(isNaN(e)||e<0)return logError("wrong timeout",t);o.timeout=e}0===o.timeout?o.progress=!1:!0===o.progress&&(o.meta.progressClass="q-notification__progress"+(o.progressClass?` ${o.progressClass}`:""),o.meta.progressStyle={animationDuration:`${o.timeout+1e3}ms`});const n=(!0===Array.isArray(t.actions)?t.actions:[]).concat(!0!==t.ignoreDefaults&&!0===Array.isArray(defaults$1.actions)?defaults$1.actions:[]).concat(void 0!==notifTypes[t.type]&&!0===Array.isArray(notifTypes[t.type].actions)?notifTypes[t.type].actions:[]),{closeBtn:r}=o;if(r&&n.push({label:"string"==typeof r?r:e.$q.lang.label.close}),o.actions=n.map(({handler:t,noDismiss:e,style:i,class:s,attrs:o,...n})=>({staticClass:s,style:i,props:{flat:!0,...n},attrs:o,on:{click:"function"==typeof t?()=>{t(),!0!==e&&a()}:()=>{a()}}})),void 0===o.multiLine&&(o.multiLine=o.actions.length>1),Object.assign(o.meta,{staticClass:"q-notification row items-stretch"+` q-notification--${!0===o.multiLine?"multi-line":"standard"}`+(void 0!==o.color?` bg-${o.color}`:"")+(void 0!==o.textColor?` text-${o.textColor}`:"")+(void 0!==o.classes?` ${o.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(!0===o.multiLine?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(!0===o.multiLine?"":" col"),leftClass:!0===o.meta.hasText?"additional":"single",attrs:{role:"alert",...o.attrs}}),!1===o.group?(o.group=void 0,o.meta.group=void 0):(void 0!==o.group&&!0!==o.group||(o.group=[o.message,o.caption,o.multiline].concat(o.actions.map(({props:t})=>`${t.label}*${t.icon}`)).join("|")),o.meta.group=o.group+"|"+o.position),0===o.actions.length?o.actions=void 0:o.meta.actionsClass="q-notification__actions row items-center "+(!0===o.multiLine?"justify-end":"col-auto")+(!0===o.meta.hasMedia?" q-notification__actions--with-media":""),void 0!==i){clearTimeout(i.notif.meta.timer),o.meta.uid=i.notif.meta.uid;const t=notificationsList[o.position].indexOf(i.notif);notificationsList[o.position][t]=o}else{const e=groups[o.meta.group];if(void 0===e){if(o.meta.uid=uid$3++,o.meta.badge=1,-1!==["left","right","center"].indexOf(o.position))notificationsList[o.position].splice(Math.floor(notificationsList[o.position].length/2),0,o);else{const t=o.position.indexOf("top")>-1?"unshift":"push";notificationsList[o.position][t](o)}void 0!==o.group&&(groups[o.meta.group]=o)}else{if(clearTimeout(e.meta.timer),void 0!==o.badgePosition){if(!1===badgePositions.includes(o.badgePosition))return logError("wrong badgePosition",t)}else o.badgePosition=`top-${o.position.indexOf("left")>-1?"right":"left"}`;o.meta.uid=e.meta.uid,o.meta.badge=e.meta.badge+1,o.meta.badgeClass=`q-notification__badge q-notification__badge--${o.badgePosition}`+(void 0!==o.badgeColor?` bg-${o.badgeColor}`:"")+(void 0!==o.badgeTextColor?` text-${o.badgeTextColor}`:"")+(o.badgeClass?` ${o.badgeClass}`:"");const i=notificationsList[o.position].indexOf(e);notificationsList[o.position][i]=groups[o.meta.group]=o}}const a=()=>{removeNotification(o,e),s=void 0};return e.$forceUpdate(),o.timeout>0&&(o.meta.timer=setTimeout(()=>{a()},o.timeout+1e3)),void 0!==o.group?e=>{void 0!==e?logError("trying to update a grouped one which is forbidden",t):a()}:(s={dismiss:a,config:t,notif:o},void 0===i?t=>{if(void 0!==s)if(void 0===t)s.dismiss();else{addNotification(Object.assign({},s.config,t,{group:!1,position:o.position}),e,s)}}:void Object.assign(i,s))}function removeNotification(t,e){clearTimeout(t.meta.timer);const i=notificationsList[t.position].indexOf(t);if(-1!==i){void 0!==t.group&&delete groups[t.meta.group];const s=e.$refs[""+t.meta.uid];if(s){const{width:t,height:e}=getComputedStyle(s);s.style.left=`${s.offsetLeft}px`,s.style.width=t,s.style.height=e}notificationsList[t.position].splice(i,1),e.$forceUpdate(),"function"==typeof t.onDismiss&&t.onDismiss()}}function hasContent(t){return void 0!==t&&null!==t&&!0!==emptyRE.test(t)}function logError(t,e){return console.error(`Notify: ${t}`,e),!1}const Notifications={name:"QNotifications",devtools:{hide:!0},beforeCreate(){void 0===this._routerRoot&&(this._routerRoot={})},render:t=>t("div",{staticClass:"q-notifications"},positionList.map(e=>t("transition-group",{key:e,staticClass:positionClass$1[e],tag:"div",props:{name:`q-notification--${e}`,mode:"out-in"}},notificationsList[e].map(e=>{const{meta:i}=e,s=[];if(!0===i.hasMedia&&(!1!==e.spinner?s.push(t(e.spinner,{staticClass:"q-notification__spinner q-notification__spinner--"+i.leftClass,props:{color:e.spinnerColor,size:e.spinnerSize}})):e.icon?s.push(t(QIcon,{staticClass:"q-notification__icon q-notification__icon--"+i.leftClass,attrs:{role:"img"},props:{name:e.icon,color:e.iconColor,size:e.iconSize}})):e.avatar&&s.push(t(QAvatar,{staticClass:"q-notification__avatar q-notification__avatar--"+i.leftClass},[t("img",{attrs:{src:e.avatar,"aria-hidden":"true"}})]))),!0===i.hasText){let i;const o={staticClass:"q-notification__message col"};if(!0===e.html)o.domProps={innerHTML:e.caption?`<div>${e.message}</div><div class="q-notification__caption">${e.caption}</div>`:e.message};else{const s=[e.message];i=e.caption?[t("div",s),t("div",{staticClass:"q-notification__caption"},[e.caption])]:s}s.push(t("div",o,i))}const o=[t("div",{staticClass:i.contentClass},s)];return!0===e.progress&&o.push(t("div",{key:`${i.uid}|p|${i.badge}`,staticClass:i.progressClass,style:i.progressStyle})),void 0!==e.actions&&o.push(t("div",{staticClass:i.actionsClass},e.actions.map(e=>t(QBtn,{...e})))),i.badge>1&&o.push(t("div",{key:`${i.uid}|${i.badge}`,staticClass:i.badgeClass,style:e.badgeStyle},[i.badge])),t("div",{ref:""+i.uid,key:i.uid,staticClass:i.staticClass,attrs:i.attrs},[t("div",{staticClass:i.wrapperClass},o)])})))),mounted(){if(void 0!==this.$q.fullscreen&&!0===this.$q.fullscreen.isCapable){const t=()=>{const t=getBodyFullscreenElement(this.$q.fullscreen.activeEl);this.$el.parentElement!==t&&t.appendChild(this.$el)};this.unwatchFullscreen=this.$watch("$q.fullscreen.activeEl",debounce(t,50)),!0===this.$q.fullscreen.isActive&&t()}},beforeDestroy(){void 0!==this.unwatchFullscreen&&this.unwatchFullscreen()}};var Notify={setDefaults(t){!0!==isSSR&&!0===isObject(t)&&Object.assign(defaults$1,t)},registerType(t,e){!0!==isSSR&&!0===isObject(e)&&(notifTypes[t]=e)},install({$q:t}){if(t.notify=this.create=!0===isSSR?noop:t=>addNotification(t,vm$1),t.notify.setDefaults=this.setDefaults,t.notify.registerType=this.registerType,void 0!==t.config.notify&&this.setDefaults(t.config.notify),!0!==isSSR){positionList.forEach(t=>{notificationsList[t]=[];const e=!0===["left","center","right"].includes(t)?"center":t.indexOf("top")>-1?"top":"bottom",i=t.indexOf("left")>-1?"start":t.indexOf("right")>-1?"end":"center",s=["left","right"].includes(t)?`items-${"left"===t?"start":"end"} justify-center`:"center"===t?"flex-center":`items-${i}`;positionClass$1[t]=`q-notifications__list q-notifications__list--${e} fixed column no-wrap ${s}`});const t=document.createElement("div");document.body.appendChild(t),(vm$1=new Vue(Notifications)).$mount(t)}}};function encode$1(t){return!0===isDate(t)?"__q_date|"+t.toUTCString():!0===isRegexp(t)?"__q_expr|"+t.source:"number"==typeof t?"__q_numb|"+t:"boolean"==typeof t?"__q_bool|"+(t?"1":"0"):"string"==typeof t?"__q_strn|"+t:"function"==typeof t?"__q_strn|"+t.toString():t===Object(t)?"__q_objt|"+JSON.stringify(t):t}function decode$1(t){if(t.length<9)return t;const e=t.substr(0,8),i=t.substring(9);switch(e){case"__q_date":return new Date(i);case"__q_expr":return new RegExp(i);case"__q_numb":return Number(i);case"__q_bool":return Boolean("1"===i);case"__q_strn":return""+i;case"__q_objt":return JSON.parse(i);default:return t}}function getEmptyStorage(){const t=()=>null;return{has:()=>!1,getLength:()=>0,getItem:t,getIndex:t,getKey:t,getAll:()=>{},getAllKeys:()=>[],set:noop,remove:noop,clear:noop,isEmpty:()=>!0}}function getStorage(t){const e=window[t+"Storage"],i=t=>{const i=e.getItem(t);return i?decode$1(i):null};return{has:t=>null!==e.getItem(t),getLength:()=>e.length,getItem:i,getIndex:t=>t<e.length?i(e.key(t)):null,getKey:t=>t<e.length?e.key(t):null,getAll:()=>{let t;const s={},o=e.length;for(let n=0;n<o;n++)s[t=e.key(n)]=i(t);return s},getAllKeys:()=>{const t=[],i=e.length;for(let s=0;s<i;s++)t.push(e.key(s));return t},set:(t,i)=>{e.setItem(t,encode$1(i))},remove:t=>{e.removeItem(t)},clear:()=>{e.clear()},isEmpty:()=>0===e.length}}var LocalStorage={install({$q:t}){const e=!0===isSSR||!1===client.has.webStorage?getEmptyStorage():getStorage("local");t.localStorage=e,Object.assign(this,e)}},SessionStorage={install({$q:t}){const e=!0===isSSR||!1===client.has.webStorage?getEmptyStorage():getStorage("session");t.sessionStorage=e,Object.assign(this,e)}},plugins=Object.freeze({__proto__:null,AddressbarColor:AddressbarColor,AppFullscreen:AppFullscreen,AppVisibility:AppVisibility,BottomSheet:BottomSheet$1,Cookies:Cookies,Dark:Dark,Dialog:Dialog,LoadingBar:LoadingBar,Loading:Loading,Meta:Meta,Notify:Notify,Platform:Platform,Screen:Screen,LocalStorage:LocalStorage,SessionStorage:SessionStorage});function fallback(t){const e=document.createElement("textarea");e.value=t,e.contentEditable=!0,e.style.position="fixed",document.body.appendChild(e),e.focus(),e.select();const i=document.execCommand("copy");return e.remove(),i}function copyToClipboard(t){return void 0!==navigator.clipboard?navigator.clipboard.writeText(t):new Promise((e,i)=>{const s=fallback(t);s?e(!0):i(s)})}function clean(t){setTimeout(()=>{window.URL.revokeObjectURL(t.href)},1e4),t.remove()}function exportFile(t,e,i){const s=new Blob([e],{type:i||"text/plain"});if(window.navigator.msSaveOrOpenBlob)return window.navigator.msSaveOrOpenBlob(s,t);const o=document.createElement("a");o.download=t,o.href=window.URL.createObjectURL(s),o.classList.add("hidden"),o.style.position="fixed",document.body.appendChild(o);try{return o.click(),clean(o),!0}catch(t){return clean(o),t}}function parseFeatures(t){const e=Object.assign({noopener:!0},t),i=[];return Object.keys(e).forEach(t=>{!0===e[t]&&i.push(t)}),i.join(",")}function openWindow(t,e,i){let s=window.open;if(!0===Platform.is.cordova){if(void 0!==cordova&&void 0!==cordova.InAppBrowser&&void 0!==cordova.InAppBrowser.open)s=cordova.InAppBrowser.open;else if(void 0!==navigator&&void 0!==navigator.app)return navigator.app.loadUrl(t,{openExternal:!0})}else if(void 0!==Vue.prototype.$q.electron)return Vue.prototype.$q.electron.shell.openExternal(t);const o=s(t,"_blank",parseFeatures(i));if(o)return Platform.is.desktop&&o.focus(),o;e&&e()}var openUrl=(t,e,i)=>{if(!0!==Platform.is.ios||void 0===window.SafariViewController)return openWindow(t,e,i);window.SafariViewController.isAvailable(s=>{s?window.SafariViewController.show({url:t},noop,e):openWindow(t,e,i)})};function parsePromises(t){const e=Array.isArray(t);if(!0===e){const i=t.length;return{isList:e,totalJobs:i,resultAggregator:Array(i).fill(null)}}const i=Object.keys(t),s={};return i.forEach(t=>{s[t]=null}),{isList:e,totalJobs:i.length,resultAggregator:s,resultKeys:i}}function runSequentialPromises(t,{threadsNumber:e=1,abortOnFail:i=!0}={}){let s=-1,o=!1;const{isList:n,totalJobs:r,resultAggregator:a,resultKeys:l}=parsePromises(t),h=Array(e).fill((()=>new Promise((e,h)=>{!function d(){const c=++s;if(!0===o||c>=r)return void e();const u=!0===n?c:l[c];t[u](a).then(t=>{!0!==o?(a[u]={key:u,status:"fulfilled",value:t},setTimeout(d)):e()}).catch(t=>{if(!0===o)return void e();const s={key:u,status:"rejected",reason:t};if(a[u]=s,!0===i)return o=!0,void h({...s,resultAggregator:a});setTimeout(d)})}()}))());return Promise.all(h).then(()=>a)}var utils=Object.freeze({__proto__:null,clone:cloneDeep,colors:colors,copyToClipboard:copyToClipboard,date:date,debounce:debounce,dom:dom,event:event,noop:noop,exportFile:exportFile,extend:extend,format:format,frameDebounce:frameDebounce,is:is,morph:morph,openURL:openUrl,patterns:patterns,runSequentialPromises:runSequentialPromises,scroll:scroll,throttle:throttle,uid:uid}),index_common={...VuePlugin,install(t,e){VuePlugin.install(t,{components:components$1,directives:directives,plugins:plugins,...e})},Quasar:VuePlugin,...components$1,...directives,...plugins,...utils};module.exports=index_common;
|