UNPKG

quasar

Version:

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

6 lines 510 kB
/*! * Quasar Framework v2.11.9 * (c) 2015-present Razvan Stoenescu * Released under the MIT License. */ (function(e,t){"object"===typeof exports&&"undefined"!==typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define(["vue"],t):(e="undefined"!==typeof globalThis?globalThis:e||self,e.Quasar=t(e.Vue))})(this,function(e){"use strict";function t(e,t,o,n){return Object.defineProperty(e,t,{get:o,set:n,enumerable:!0}),e}function o(e,o){for(const n in o)t(e,n,o[n]);return e}const n=e.ref(!1);let a;function l(e,t){const o=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:o[5]||o[3]||o[1]||"",version:o[2]||o[4]||"0",versionNumber:o[4]||o[2]||"0",platform:t[0]||""}}function i(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const r="ontouchstart"in window||window.navigator.maxTouchPoints>0;function s(e){a={is:{...e}},delete e.mac,delete e.desktop;const t=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:t,[t]:!0})}function u(e){const t=e.toLowerCase(),o=i(t),n=l(t,o),a={};n.browser&&(a[n.browser]=!0,a.version=n.version,a.versionNumber=parseInt(n.versionNumber,10)),n.platform&&(a[n.platform]=!0);const u=a.android||a.ios||a.bb||a.blackberry||a.ipad||a.iphone||a.ipod||a.kindle||a.playbook||a.silk||a["windows phone"];return!0===u||t.indexOf("mobile")>-1?(a.mobile=!0,a.edga||a.edgios?(a.edge=!0,n.browser="edge"):a.crios?(a.chrome=!0,n.browser="chrome"):a.fxios&&(a.firefox=!0,n.browser="firefox")):a.desktop=!0,(a.ipod||a.ipad||a.iphone)&&(a.ios=!0),a["windows phone"]&&(a.winphone=!0,delete a["windows phone"]),(a.chrome||a.opr||a.safari||a.vivaldi||!0===a.mobile&&!0!==a.ios&&!0!==u)&&(a.webkit=!0),a.edg&&(n.browser="edgechromium",a.edgeChromium=!0),(a.safari&&a.blackberry||a.bb)&&(n.browser="blackberry",a.blackberry=!0),a.safari&&a.playbook&&(n.browser="playbook",a.playbook=!0),a.opr&&(n.browser="opera",a.opera=!0),a.safari&&a.android&&(n.browser="android",a.android=!0),a.safari&&a.kindle&&(n.browser="kindle",a.kindle=!0),a.safari&&a.silk&&(n.browser="silk",a.silk=!0),a.vivaldi&&(n.browser="vivaldi",a.vivaldi=!0),a.name=n.browser,a.platform=n.platform,t.indexOf("electron")>-1?a.electron=!0:document.location.href.indexOf("-extension://")>-1?a.bex=!0:(void 0!==window.Capacitor?(a.capacitor=!0,a.nativeMobile=!0,a.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(a.cordova=!0,a.nativeMobile=!0,a.nativeMobileWrapper="cordova"),!0===r&&!0===a.mac&&(!0===a.desktop&&!0===a.safari||!0===a.nativeMobile&&!0!==a.android&&!0!==a.ios&&!0!==a.ipad)&&s(a)),a}const c=navigator.userAgent||navigator.vendor||window.opera,d={has:{touch:!1,webStorage:!1},within:{iframe:!1}},v={userAgent:c,is:u(c),has:{touch:r},within:{iframe:window.self!==window.top}},p={install(t){const{$q:o}=t;!0===n.value?(t.onSSRHydrated.push(()=>{Object.assign(o.platform,v),n.value=!1,a=void 0}),o.platform=e.reactive(this)):o.platform=this}};{let e;t(v.has,"webStorage",()=>{if(void 0!==e)return e;try{if(window.localStorage)return e=!0,!0}catch(e){}return e=!1,!1}),!0===v.is.ios&&window.navigator.vendor.toLowerCase().indexOf("apple"),!0===n.value?Object.assign(p,v,a,d):Object.assign(p,v)}var m=(o,n)=>{const a=e.reactive(o);for(const e in o)t(n,e,()=>a[e],t=>{a[e]=t});return n};const f={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(f,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch(e){}function h(){}function g(e){return 0===e.button}function b(e){return 1===e.button}function y(e){return 2===e.button}function w(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function x(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let o=e.target;while(o){if(t.push(o),"HTML"===o.tagName)return t.push(document),t.push(window),t;o=o.parentElement}}const _=40,S=800;function k(e){let t=e.deltaX,o=e.deltaY;if((t||o)&&e.deltaMode){const n=1===e.deltaMode?_:S;t*=n,o*=n}return e.shiftKey&&!t&&([o,t]=[t,o]),{x:t,y:o}}function C(e){e.stopPropagation()}function q(e){!1!==e.cancelable&&e.preventDefault()}function $(e){!1!==e.cancelable&&e.preventDefault(),e.stopPropagation()}function M(e,t){if(void 0===e||!0===t&&!0===e.__dragPrevented)return;const o=!0===t?e=>{e.__dragPrevented=!0,e.addEventListener("dragstart",q,f.notPassiveCapture)}:e=>{delete e.__dragPrevented,e.removeEventListener("dragstart",q,f.notPassiveCapture)};e.querySelectorAll("a, img").forEach(o)}function T(e,t,o){const n=`__q_${t}_evt`;e[n]=void 0!==e[n]?e[n].concat(o):o,o.forEach(t=>{t[0].addEventListener(t[1],e[t[2]],f[t[3]])})}function B(e,t){const o=`__q_${t}_evt`;void 0!==e[o]&&(e[o].forEach(t=>{t[0].removeEventListener(t[1],e[t[2]],f[t[3]])}),e[o]=void 0)}var O={listenOpts:f,leftClick:g,middleClick:b,rightClick:y,position:w,getEventPath:x,getMouseWheelDistance:k,stop:C,prevent:q,stopAndPrevent:$,preventDraggable:M};function L(e,t=250,o){let n=null;function a(){const a=arguments,l=()=>{n=null,!0!==o&&e.apply(this,a)};null!==n?clearTimeout(n):!0===o&&e.apply(this,a),n=setTimeout(l,t)}return a.cancel=(()=>{null!==n&&clearTimeout(n)}),a}const A=["sm","md","lg","xl"],{passive:V}=f;var z=m({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:h,setDebounce:h,install({$q:e,onSSRHydrated:t}){if(e.screen=this,!0===this.__installed)return void(void 0!==e.config.screen&&(!1===e.config.screen.bodyClasses?document.body.classList.remove(`screen--${this.name}`):this.__update(!0)));const{visualViewport:o}=window,a=o||window,l=document.scrollingElement||document.documentElement,i=void 0===o||!0===v.is.mobile?()=>[Math.max(window.innerWidth,l.clientWidth),Math.max(window.innerHeight,l.clientHeight)]:()=>[o.width*o.scale+window.innerWidth-l.clientWidth,o.height*o.scale+window.innerHeight-l.clientHeight],r=void 0!==e.config.screen&&!0===e.config.screen.bodyClasses;this.__update=(e=>{const[t,o]=i();if(o!==this.height&&(this.height=o),t!==this.width)this.width=t;else if(!0!==e)return;let n=this.sizes;this.gt.xs=t>=n.sm,this.gt.sm=t>=n.md,this.gt.md=t>=n.lg,this.gt.lg=t>=n.xl,this.lt.sm=t<n.sm,this.lt.md=t<n.md,this.lt.lg=t<n.lg,this.lt.xl=t<n.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,n=(!0===this.xs?"xs":!0===this.sm&&"sm")||!0===this.md&&"md"||!0===this.lg&&"lg"||"xl",n!==this.name&&(!0===r&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${n}`)),this.name=n)});let s,u={},c=16;this.setSizes=(e=>{A.forEach(t=>{void 0!==e[t]&&(u[t]=e[t])})}),this.setDebounce=(e=>{c=e});const d=()=>{const e=getComputedStyle(document.body);e.getPropertyValue("--q-size-sm")&&A.forEach(t=>{this.sizes[t]=parseInt(e.getPropertyValue(`--q-size-${t}`),10)}),this.setSizes=(e=>{A.forEach(t=>{e[t]&&(this.sizes[t]=e[t])}),this.__update(!0)}),this.setDebounce=(e=>{void 0!==s&&a.removeEventListener("resize",s,V),s=e>0?L(this.__update,e):this.__update,a.addEventListener("resize",s,V)}),this.setDebounce(c),Object.keys(u).length>0?(this.setSizes(u),u=void 0):this.__update(),!0===r&&"xs"===this.name&&document.body.classList.add("screen--xs")};!0===n.value?t.push(d):d()}});const E=m({isActive:!1,mode:!1},{__media:void 0,set(e){E.mode=e,"auto"===e?(void 0===E.__media&&(E.__media=window.matchMedia("(prefers-color-scheme: dark)"),E.__updateMedia=(()=>{E.set("auto")}),E.__media.addListener(E.__updateMedia)),e=E.__media.matches):void 0!==E.__media&&(E.__media.removeListener(E.__updateMedia),E.__media=void 0),E.isActive=!0===e,document.body.classList.remove(`body--${!0===e?"light":"dark"}`),document.body.classList.add(`body--${!0===e?"dark":"light"}`)},toggle(){E.set(!1===E.isActive)},install({$q:e,onSSRHydrated:t,ssrContext:o}){const{dark:a}=e.config;if(e.dark=this,!0===this.__installed&&void 0===a)return;this.isActive=!0===a;const l=void 0!==a&&a;if(!0===n.value){const e=e=>{this.__fromSSR=e},o=this.set;this.set=e,e(l),t.push(()=>{this.set=o,this.set(this.__fromSSR)})}else this.set(l)}}),P=()=>!0;function F(e){return"string"===typeof e&&""!==e&&"/"!==e&&"#/"!==e}function I(e){return!0===e.startsWith("#")&&(e=e.substring(1)),!1===e.startsWith("/")&&(e="/"+e),!0===e.endsWith("/")&&(e=e.substring(0,e.length-1)),"#"+e}function R(e){if(!1===e.backButtonExit)return()=>!1;if("*"===e.backButtonExit)return P;const t=["#/"];return!0===Array.isArray(e.backButtonExit)&&t.push(...e.backButtonExit.filter(F).map(I)),()=>t.includes(window.location.hash)}var N={__history:[],add:h,remove:h,install({$q:e}){if(!0===this.__installed)return;const{cordova:t,capacitor:o}=v.is;if(!0!==t&&!0!==o)return;const n=e.config[!0===t?"cordova":"capacitor"];if(void 0!==n&&!1===n.backButton)return;if(!0===o&&(void 0===window.Capacitor||void 0===window.Capacitor.Plugins.App))return;this.add=(e=>{void 0===e.condition&&(e.condition=P),this.__history.push(e)}),this.remove=(e=>{const t=this.__history.indexOf(e);t>=0&&this.__history.splice(t,1)});const a=R(Object.assign({backButtonExit:!0},n)),l=()=>{if(this.__history.length){const e=this.__history[this.__history.length-1];!0===e.condition()&&(this.__history.pop(),e.handler())}else!0===a()?navigator.app.exitApp():window.history.back()};!0===t?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",l,!1)}):window.Capacitor.Plugins.App.addListener("backButton",l)}},D={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"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:e=>1===e?"1 record selected.":(0===e?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,o)=>e+"-"+t+" of "+o,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 j(){const e=!0===Array.isArray(navigator.languages)&&navigator.languages.length>0?navigator.languages[0]:navigator.language;if("string"===typeof e)return e.split(/[-_]/).map((e,t)=>0===t?e.toLowerCase():t>1||e.length<4?e.toUpperCase():e[0].toUpperCase()+e.slice(1).toLowerCase()).join("-")}const H=m({__langPack:{}},{getLocale:j,set(e=D,t){const o={...e,rtl:!0===e.rtl,getLocale:j};if(o.set=H.set,void 0===H.__langConfig||!0!==H.__langConfig.noHtmlAttrs){const e=document.documentElement;e.setAttribute("dir",!0===o.rtl?"rtl":"ltr"),e.setAttribute("lang",o.isoName)}Object.assign(H.__langPack,o),H.props=o,H.isoName=o.isoName,H.nativeName=o.nativeName},install({$q:e,lang:t,ssrContext:o}){e.lang=H.__langPack,H.__langConfig=e.config.lang,!0===this.__installed?void 0!==t&&this.set(t):this.set(t||D)}});function Q(e,t,o=document.body){if("string"!==typeof e)throw new TypeError("Expected a string as propName");if("string"!==typeof t)throw new TypeError("Expected a string as value");if(!(o instanceof Element))throw new TypeError("Expected a DOM element");o.style.setProperty(`--q-${e}`,t)}let U=!1;function W(e){U=!0===e.isComposing}function Y(e){return!0===U||e!==Object(e)||!0===e.isComposing||!0===e.qKeyEvent}function K(e,t){return!0!==Y(e)&&[].concat(t).includes(e.keyCode)}function X(e){return!0===e.ios?"ios":!0===e.android?"android":void 0}function Z({is:e,has:t,within:o},n){const a=[!0===e.desktop?"desktop":"mobile",`${!1===t.touch?"no-":""}touch`];if(!0===e.mobile){const t=X(e);void 0!==t&&a.push("platform-"+t)}if(!0===e.nativeMobile){const t=e.nativeMobileWrapper;a.push(t),a.push("native-mobile"),!0!==e.ios||void 0!==n[t]&&!1===n[t].iosStatusBarPadding||a.push("q-ios-padding")}else!0===e.electron?a.push("electron"):!0===e.bex&&a.push("bex");return!0===o.iframe&&a.push("within-iframe"),a}function G(){const{is:e}=v,t=document.body.className,o=new Set(t.replace(/ {2}/g," ").split(" "));if(void 0!==a)o.delete("desktop"),o.add("platform-ios"),o.add("mobile");else if(!0!==e.nativeMobile&&!0!==e.electron&&!0!==e.bex)if(!0===e.desktop)o.delete("mobile"),o.delete("platform-ios"),o.delete("platform-android"),o.add("desktop");else if(!0===e.mobile){o.delete("desktop"),o.add("mobile");const t=X(e);void 0!==t?(o.add(`platform-${t}`),o.delete(`platform-${"ios"===t?"android":"ios"}`)):(o.delete("platform-ios"),o.delete("platform-android"))}!0===v.has.touch&&(o.delete("no-touch"),o.add("touch")),!0===v.within.iframe&&o.add("within-iframe");const n=Array.from(o).join(" ");t!==n&&(document.body.className=n)}function J(e){for(const t in e)Q(t,e[t])}var ee={install(e){if(!0!==this.__installed){if(!0===n.value)G();else{const{$q:t}=e;void 0!==t.config.brand&&J(t.config.brand);const o=Z(v,t.config);document.body.classList.add.apply(document.body.classList,o)}!0===v.is.ios&&document.body.addEventListener("touchstart",h),window.addEventListener("keydown",W,!0)}}},te={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"}};const oe=m({iconMapFn:null,__icons:{}},{set(e,t){const o={...e,rtl:!0===e.rtl};o.set=oe.set,Object.assign(oe.__icons,o)},install({$q:e,iconSet:o,ssrContext:n}){void 0!==e.config.iconMapFn&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__icons,t(e,"iconMapFn",()=>this.iconMapFn,e=>{this.iconMapFn=e}),!0===this.__installed?void 0!==o&&this.set(o):this.set(o||te)}}),ne="_q_",ae="_q_t_",le="_q_s_",ie="_q_l_",re="_q_pc_",se="_q_f_",ue="_q_fo_",ce="_q_tabs_",de="_q_u_",ve=()=>{},pe={};let me=!1;function fe(){me=!0}function he(e,t){if(e===t)return!0;if(null!==e&&null!==t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;let o,n;if(e.constructor===Array){if(o=e.length,o!==t.length)return!1;for(n=o;0!==n--;)if(!0!==he(e[n],t[n]))return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let o=e.entries();n=o.next();while(!0!==n.done){if(!0!==t.has(n.value[0]))return!1;n=o.next()}o=e.entries(),n=o.next();while(!0!==n.done){if(!0!==he(n.value[1],t.get(n.value[0])))return!1;n=o.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const o=e.entries();n=o.next();while(!0!==n.done){if(!0!==t.has(n.value[0]))return!1;n=o.next()}return!0}if(null!=e.buffer&&e.buffer.constructor===ArrayBuffer){if(o=e.length,o!==t.length)return!1;for(n=o;0!==n--;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const a=Object.keys(e).filter(t=>void 0!==e[t]);if(o=a.length,o!==Object.keys(t).filter(e=>void 0!==t[e]).length)return!1;for(n=o;0!==n--;){const o=a[n];if(!0!==he(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function ge(e){return null!==e&&"object"===typeof e&&!0!==Array.isArray(e)}function be(e){return"[object Date]"===Object.prototype.toString.call(e)}function ye(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function we(e){return"number"===typeof e&&isFinite(e)}var xe={deepEqual:he,object:ge,date:be,regexp:ye,number:we};const _e=[p,ee,E,z,N,H,oe];function Se(t,o){const n=e.createApp(t);n.config.globalProperties=o.config.globalProperties;const{reload:a,...l}=o._context;return Object.assign(n._context,l),n}function ke(e,t){t.forEach(t=>{t.install(e),t.__installed=!0})}function Ce(e,t,o){e.config.globalProperties.$q=o.$q,e.provide(ne,o.$q),ke(o,_e),void 0!==t.components&&Object.values(t.components).forEach(t=>{!0===ge(t)&&void 0!==t.name&&e.component(t.name,t)}),void 0!==t.directives&&Object.values(t.directives).forEach(t=>{!0===ge(t)&&void 0!==t.name&&e.directive(t.name,t)}),void 0!==t.plugins&&ke(o,Object.values(t.plugins).filter(e=>"function"===typeof e.install&&!1===_e.includes(e))),!0===n.value&&(o.$q.onSSRHydrated=(()=>{o.onSSRHydrated.forEach(e=>{e()}),o.$q.onSSRHydrated=(()=>{})}))}var qe=function(e,t={}){const o={version:"2.11.9"};!1===me?(void 0!==t.config&&Object.assign(pe,t.config),o.config={...pe},fe()):o.config=t.config||{},Ce(e,t,{parentApp:e,$q:o,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})};const $e=t=>e.markRaw(e.defineComponent(t)),Me=t=>e.markRaw(t),Te=["B","KB","MB","GB","TB","PB"];function Be(e){let t=0;while(parseInt(e,10)>=1024&&t<Te.length-1)e/=1024,++t;return`${e.toFixed(1)}${Te[t]}`}function Oe(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Le(e,t,o){return o<=t?t:Math.min(o,Math.max(t,e))}function Ae(e,t,o){if(o<=t)return t;const n=o-t+1;let a=t+(e-t)%n;return a<t&&(a=n+a),0===a?0:a}function Ve(e,t=2,o="0"){if(void 0===e||null===e)return e;const n=""+e;return n.length>=t?n:new Array(t-n.length+1).join(o)+n}var ze={humanStorageSize:Be,capitalize:Oe,between:Le,normalizeToInterval:Ae,pad:Ve};const Ee=XMLHttpRequest,Pe=Ee.prototype.open,Fe=["top","right","bottom","left"];let Ie=[],Re=0;function Ne({p:e,pos:t,active:o,horiz:n,reverse:a,dir:l}){let i=1,r=1;return!0===n?(!0===a&&(i=-1),"bottom"===t&&(r=-1),{transform:`translate3d(${i*(e-100)}%,${o?0:-200*r}%,0)`}):(!0===a&&(r=-1),"right"===t&&(i=-1),{transform:`translate3d(${o?0:l*i*-200}%,${r*(e-100)}%,0)`})}function De(e,t){return"number"!==typeof t&&(t=e<25?3*Math.random()+3:e<65?3*Math.random():e<85?2*Math.random():e<99?.6:0),Le(e+t,0,100)}function je(e){Re++,Ie.push(e),Re>1||(Ee.prototype.open=function(e,t){const o=[],n=()=>{Ie.forEach(e=>{null!==e.hijackFilter.value&&!0!==e.hijackFilter.value(t)||(e.start(),o.push(e.stop))})},a=()=>{o.forEach(e=>{e()})};this.addEventListener("loadstart",n,{once:!0}),this.addEventListener("loadend",a,{once:!0}),Pe.apply(this,arguments)})}function He(e){Ie=Ie.filter(t=>t.start!==e),Re=Math.max(0,Re-1),0===Re&&(Ee.prototype.open=Pe)}var Qe=$e({name:"QAjaxBar",props:{position:{type:String,default:"top",validator:e=>Fe.includes(e)},size:{type:String,default:"2px"},color:String,skipHijack:Boolean,reverse:Boolean,hijackFilter:Function},emits:["start","stop"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),a=e.ref(0),l=e.ref(!1),i=e.ref(!0);let r,s=0,u=null;const c=e.computed(()=>`q-loading-bar q-loading-bar--${t.position}`+(void 0!==t.color?` bg-${t.color}`:"")+(!0===i.value?"":" no-transition")),d=e.computed(()=>"top"===t.position||"bottom"===t.position),v=e.computed(()=>!0===d.value?"height":"width"),p=e.computed(()=>{const e=l.value,o=Ne({p:a.value,pos:t.position,active:e,horiz:d.value,reverse:!0===n.$q.lang.rtl&&["top","bottom"].includes(t.position)?!1===t.reverse:t.reverse,dir:!0===n.$q.lang.rtl?-1:1});return o[v.value]=t.size,o.opacity=e?1:0,o}),m=e.computed(()=>!0===l.value?{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a.value}:{"aria-hidden":"true"});function f(e=300){const t=r;return r=Math.max(0,e)||0,s++,s>1?(0===t&&e>0?b():null!==u&&t>0&&e<=0&&(clearTimeout(u),u=null),s):(null!==u&&clearTimeout(u),o("start"),a.value=0,u=setTimeout(()=>{u=null,i.value=!0,e>0&&b()},!0===l.value?500:1),!0!==l.value&&(l.value=!0,i.value=!1),s)}function h(e){return s>0&&(a.value=De(a.value,e)),s}function g(){if(s=Math.max(0,s-1),s>0)return s;null!==u&&(clearTimeout(u),u=null),o("stop");const e=()=>{i.value=!0,a.value=100,u=setTimeout(()=>{u=null,l.value=!1},1e3)};return 0===a.value?u=setTimeout(e,1):e(),s}function b(){a.value<100&&(u=setTimeout(()=>{u=null,h(),b()},r))}let y;return e.onMounted(()=>{!0!==t.skipHijack&&(y=!0,je({start:f,stop:g,hijackFilter:e.computed(()=>t.hijackFilter||null)}))}),e.onBeforeUnmount(()=>{null!==u&&clearTimeout(u),!0===y&&He(f)}),Object.assign(n,{start:f,stop:g,increment:h}),()=>e.h("div",{class:c.value,style:p.value,...m.value})}});const Ue={xs:18,sm:24,md:32,lg:38,xl:46},We={size:String};function Ye(t,o=Ue){return e.computed(()=>void 0!==t.size?{fontSize:t.size in o?`${o[t.size]}px`:t.size}:null)}function Ke(e,t){return void 0!==e&&e()||t}function Xe(e,t){if(void 0!==e){const t=e();if(void 0!==t&&null!==t)return t.slice()}return t}function Ze(e,t){return void 0!==e?t.concat(e()):t}function Ge(e,t){return void 0===e?t:void 0!==t?t.concat(e()):e()}function Je(t,o,n,a,l,i){o.key=a+l;const r=e.h(t,o,n);return!0===l?e.withDirectives(r,i()):r}const et="0 0 24 24",tt=e=>e,ot=e=>`ionicons ${e}`,nt={"mdi-":e=>`mdi ${e}`,"icon-":tt,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":ot,"ion-ios":ot,"ion-logo":ot,"iconfont ":tt,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},at={o_:"-outlined",r_:"-round",s_:"-sharp"},lt={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},it=new RegExp("^("+Object.keys(nt).join("|")+")"),rt=new RegExp("^("+Object.keys(at).join("|")+")"),st=new RegExp("^("+Object.keys(lt).join("|")+")"),ut=/^[Mm]\s?[-+]?\.?\d/,ct=/^img:/,dt=/^svguse:/,vt=/^ion-/,pt=/^(fa-(solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /;var mt=$e({name:"QIcon",props:{...We,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=Ye(t),l=e.computed(()=>"q-icon"+(!0===t.left?" on-left":"")+(!0===t.right?" on-right":"")+(void 0!==t.color?` text-${t.color}`:"")),i=e.computed(()=>{let o,a=t.name;if("none"===a||!a)return{none:!0};if(null!==n.iconMapFn){const e=n.iconMapFn(a);if(void 0!==e){if(void 0===e.icon)return{cls:e.cls,content:void 0!==e.content?e.content:" "};if(a=e.icon,"none"===a||!a)return{none:!0}}}if(!0===ut.test(a)){const[t,o=et]=a.split("|");return{svg:!0,viewBox:o,nodes:t.split("&&").map(t=>{const[o,n,a]=t.split("@@");return e.h("path",{style:n,d:o,transform:a})})}}if(!0===ct.test(a))return{img:!0,src:a.substring(4)};if(!0===dt.test(a)){const[e,t=et]=a.split("|");return{svguse:!0,src:e.substring(7),viewBox:t}}let l=" ";const i=a.match(it);if(null!==i)o=nt[i[1]](a);else if(!0===pt.test(a))o=a;else if(!0===vt.test(a))o=`ionicons ion-${!0===n.platform.is.ios?"ios":"md"}${a.substring(3)}`;else if(!0===st.test(a)){o="notranslate material-symbols";const e=a.match(st);null!==e&&(a=a.substring(6),o+=lt[e[1]]),l=a}else{o="notranslate material-icons";const e=a.match(rt);null!==e&&(a=a.substring(2),o+=at[e[1]]),l=a}return{cls:o,content:l}});return()=>{const n={class:l.value,style:a.value,"aria-hidden":"true",role:"presentation"};return!0===i.value.none?e.h(t.tag,n,Ke(o.default)):!0===i.value.img?e.h("span",n,Ze(o.default,[e.h("img",{src:i.value.src})])):!0===i.value.svg?e.h("span",n,Ze(o.default,[e.h("svg",{viewBox:i.value.viewBox||"0 0 24 24"},i.value.nodes)])):!0===i.value.svguse?e.h("span",n,Ze(o.default,[e.h("svg",{viewBox:i.value.viewBox},[e.h("use",{"xlink:href":i.value.src})])])):(void 0!==i.value.cls&&(n.class+=" "+i.value.cls),e.h(t.tag,n,Ze(o.default,[i.value.content])))}}}),ft=$e({name:"QAvatar",props:{...We,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(t,{slots:o}){const n=Ye(t),a=e.computed(()=>"q-avatar"+(t.color?` bg-${t.color}`:"")+(t.textColor?` text-${t.textColor} q-chip--colored`:"")+(!0===t.square?" q-avatar--square":!0===t.rounded?" rounded-borders":"")),l=e.computed(()=>t.fontSize?{fontSize:t.fontSize}:null);return()=>{const i=void 0!==t.icon?[e.h(mt,{name:t.icon})]:void 0;return e.h("div",{class:a.value,style:n.value},[e.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:l.value},Ge(o.default,i))])}}});const ht=["top","middle","bottom"];var gt=$e({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:e=>ht.includes(e)}},setup(t,{slots:o}){const n=e.computed(()=>{return void 0!==t.align?{verticalAlign:t.align}:null}),a=e.computed(()=>{const e=!0===t.outline&&t.color||t.textColor;return"q-badge flex inline items-center no-wrap"+` q-badge--${!0===t.multiLine?"multi":"single"}-line`+(!0===t.outline?" q-badge--outline":void 0!==t.color?` bg-${t.color}`:"")+(void 0!==e?` text-${e}`:"")+(!0===t.floating?" q-badge--floating":"")+(!0===t.rounded?" q-badge--rounded":"")+(!0===t.transparent?" q-badge--transparent":"")});return()=>e.h("div",{class:a.value,style:n.value,role:"status","aria-label":t.label},Ze(o.default,void 0!==t.label?[t.label]:[]))}});const bt={dark:{type:Boolean,default:null}};function yt(t,o){return e.computed(()=>null===t.dark?o.dark.isActive:t.dark)}var wt=$e({name:"QBanner",props:{...bt,inlineActions:Boolean,dense:Boolean,rounded:Boolean},setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=yt(t,n),l=e.computed(()=>"q-banner row items-center"+(!0===t.dense?" q-banner--dense":"")+(!0===a.value?" q-banner--dark q-dark":"")+(!0===t.rounded?" rounded-borders":"")),i=e.computed(()=>"q-banner__actions row items-center justify-end"+` col-${!0===t.inlineActions?"auto":"all"}`);return()=>{const n=[e.h("div",{class:"q-banner__avatar col-auto row items-center self-start"},Ke(o.avatar)),e.h("div",{class:"q-banner__content col text-body2"},Ke(o.default))],a=Ke(o.action);return void 0!==a&&n.push(e.h("div",{class:i.value},a)),e.h("div",{class:l.value+(!1===t.inlineActions&&void 0!==a?" q-banner--top-padding":""),role:"alert"},n)}}}),xt=$e({name:"QBar",props:{...bt,dense:Boolean},setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=yt(t,n),l=e.computed(()=>"q-bar row no-wrap items-center"+` q-bar--${!0===t.dense?"dense":"standard"} `+` q-bar--${!0===a.value?"dark":"light"}`);return()=>e.h("div",{class:l.value,role:"toolbar"},Ke(o.default))}});const _t={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},St=Object.keys(_t),kt={align:{type:String,validator:e=>St.includes(e)}};function Ct(t){return e.computed(()=>{const e=void 0===t.align?!0===t.vertical?"stretch":"left":t.align;return`${!0===t.vertical?"items":"justify"}-${_t[e]}`})}function qt(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;while(Object(t)===t){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function $t(e,t){"symbol"===typeof t.type?!0===Array.isArray(t.children)&&t.children.forEach(t=>{$t(e,t)}):e.add(t)}function Mt(e){const t=new Set;return e.forEach(e=>{$t(t,e)}),Array.from(t)}function Tt(e){return void 0!==e.appContext.config.globalProperties.$router}function Bt(e){return!0===e.isUnmounted||!0===e.isDeactivated}const Ot=["",!0];var Lt=$e({name:"QBreadcrumbs",props:{...kt,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(t,{slots:o}){const n=Ct(t),a=e.computed(()=>`flex items-center ${n.value}${"none"===t.gutter?"":` q-gutter-${t.gutter}`}`),l=e.computed(()=>t.separatorColor?` text-${t.separatorColor}`:""),i=e.computed(()=>` text-${t.activeColor}`);return()=>{const n=Mt(Ke(o.default));if(0===n.length)return;let r=1;const s=[],u=n.filter(e=>void 0!==e.type&&"QBreadcrumbsEl"===e.type.name).length,c=void 0!==o.separator?o.separator:()=>t.separator;return n.forEach(t=>{if(void 0!==t.type&&"QBreadcrumbsEl"===t.type.name){const o=r<u,n=null!==t.props&&Ot.includes(t.props.disable),a=(!0===o?"":" q-breadcrumbs--last")+(!0!==n&&!0===o?i.value:"");r++,s.push(e.h("div",{class:`flex items-center${a}`},[t])),!0===o&&s.push(e.h("div",{class:"q-breadcrumbs__separator"+l.value},c()))}else s.push(t)}),e.h("div",{class:"q-breadcrumbs"},[e.h("div",{class:a.value},s)])}}});function At(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function Vt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function zt(e,t){for(const o in t){const n=t[o],a=e[o];if("string"===typeof n){if(n!==a)return!1}else if(!1===Array.isArray(a)||a.length!==n.length||n.some((e,t)=>e!==a[t]))return!1}return!0}function Et(e,t){return!0===Array.isArray(t)?e.length===t.length&&e.every((e,o)=>e===t[o]):1===e.length&&e[0]===t}function Pt(e,t){return!0===Array.isArray(e)?Et(e,t):!0===Array.isArray(t)?Et(t,e):e===t}function Ft(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!1===Pt(e[o],t[o]))return!1;return!0}const It={to:[String,Object],replace:Boolean,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},href:String,target:String,disable:Boolean};function Rt({fallbackTag:t,useDisableForRouterLinkProps:o=!0}={}){const n=e.getCurrentInstance(),{props:a,proxy:l,emit:i}=n,r=Tt(n),s=e.computed(()=>!0!==a.disable&&void 0!==a.href),u=!0===o?e.computed(()=>!0===r&&!0!==a.disable&&!0!==s.value&&void 0!==a.to&&null!==a.to&&""!==a.to):e.computed(()=>!0===r&&!0!==s.value&&void 0!==a.to&&null!==a.to&&""!==a.to),c=e.computed(()=>!0===u.value?y(a.to):null),d=e.computed(()=>null!==c.value),v=e.computed(()=>!0===s.value||!0===d.value),p=e.computed(()=>"a"===a.type||!0===v.value?"a":a.tag||t||"div"),m=e.computed(()=>!0===s.value?{href:a.href,target:a.target}:!0===d.value?{href:c.value.href,target:a.target}:{}),f=e.computed(()=>{if(!1===d.value)return-1;const{matched:e}=c.value,{length:t}=e,o=e[t-1];if(void 0===o)return-1;const n=l.$route.matched;if(0===n.length)return-1;const a=n.findIndex(Vt.bind(null,o));if(a>-1)return a;const i=At(e[t-2]);return t>1&&At(o)===i&&n[n.length-1].path!==i?n.findIndex(Vt.bind(null,e[t-2])):a}),h=e.computed(()=>!0===d.value&&-1!==f.value&&zt(l.$route.params,c.value.params)),g=e.computed(()=>!0===h.value&&f.value===l.$route.matched.length-1&&Ft(l.$route.params,c.value.params)),b=e.computed(()=>!0===d.value?!0===g.value?` ${a.exactActiveClass} ${a.activeClass}`:!0===a.exact?"":!0===h.value?` ${a.activeClass}`:"":"");function y(e){try{return l.$router.resolve(e)}catch(e){}return null}function w(e,{returnRouterError:t,to:o=a.to,replace:n=a.replace}={}){if(!0===a.disable)return e.preventDefault(),Promise.resolve(!1);if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||void 0!==e.button&&0!==e.button||"_blank"===a.target)return Promise.resolve(!1);e.preventDefault();const i=l.$router[!0===n?"replace":"push"](o);return!0===t?i:i.then(()=>{}).catch(()=>{})}function x(e){if(!0===d.value){const t=t=>w(e,t);i("click",e,t),!0!==e.defaultPrevented&&t()}else i("click",e)}return{hasRouterLink:d,hasHrefLink:s,hasLink:v,linkTag:p,resolvedLink:c,linkIsActive:h,linkIsExactActive:g,linkClass:b,linkAttrs:m,getLink:y,navigateToRouterLink:w,navigateOnClick:x}}var Nt=$e({name:"QBreadcrumbsEl",props:{...It,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(t,{slots:o}){const{linkTag:n,linkAttrs:a,linkClass:l,navigateOnClick:i}=Rt(),r=e.computed(()=>{return{class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(!0!==t.disable?"q-link--focusable"+l.value:"q-breadcrumbs__el--disable"),...a.value,onClick:i}}),s=e.computed(()=>"q-breadcrumbs__el-icon"+(void 0!==t.label?" q-breadcrumbs__el-icon--with-label":""));return()=>{const a=[];return void 0!==t.icon&&a.push(e.h(mt,{class:s.value,name:t.icon})),void 0!==t.label&&a.push(t.label),e.h(n.value,{...r.value},Ze(o.default,a))}}});const Dt={size:{type:[Number,String],default:"1em"},color:String};function jt(t){return{cSize:e.computed(()=>t.size in Ue?`${Ue[t.size]}px`:t.size),classes:e.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}var Ht=$e({name:"QSpinner",props:{...Dt,thickness:{type:Number,default:5}},setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value+" q-spinner-mat",width:o.value,height:o.value,viewBox:"25 25 50 50"},[e.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}});function Qt(e){if(e===window)return{top:0,left:0};const{top:t,left:o}=e.getBoundingClientRect();return{top:t,left:o}}function Ut(e,t){return window.getComputedStyle(e).getPropertyValue(t)}function Wt(e){return e===window?window.innerHeight:e.getBoundingClientRect().height}function Yt(e){return e===window?window.innerWidth:e.getBoundingClientRect().width}function Kt(e,t){const o=e.style;for(const n in t)o[n]=t[n]}function Xt(e,t){e.forEach(e=>Kt(e,t))}function Zt(e){if("function"===typeof e)return"loading"!==document.readyState?e():void document.addEventListener("DOMContentLoaded",e,!1)}function Gt(t){if(void 0===t||null===t)return;if("string"===typeof t)try{return document.querySelector(t)||void 0}catch(e){return}const o=e.unref(t);return o?o.$el||o:void 0}function Jt(e,t){if(void 0===e||null===e||!0===e.contains(t))return!0;for(let o=e.nextElementSibling;null!==o;o=o.nextElementSibling)if(o.contains(t))return!0;return!1}var eo={offset:Qt,style:Ut,height:Wt,width:Yt,css:Kt,cssBatch:Xt,ready:Zt};function to(e,t=250){let o,n=!1;return function(){return!1===n&&(n=!0,setTimeout(()=>{n=!1},t),o=e.apply(this,arguments)),o}}function oo(e,t,o,n){!0===o.modifiers.stop&&C(e);const a=o.modifiers.color;let l=o.modifiers.center;l=!0===l||!0===n;const i=document.createElement("span"),r=document.createElement("span"),s=w(e),{left:u,top:c,width:d,height:v}=t.getBoundingClientRect(),p=Math.sqrt(d*d+v*v),m=p/2,f=`${(d-p)/2}px`,h=l?f:`${s.left-u-m}px`,g=`${(v-p)/2}px`,b=l?g:`${s.top-c-m}px`;r.className="q-ripple__inner",Kt(r,{height:`${p}px`,width:`${p}px`,transform:`translate3d(${h},${b},0) scale3d(.2,.2,1)`,opacity:0}),i.className=`q-ripple${a?" text-"+a:""}`,i.setAttribute("dir","ltr"),i.appendChild(r),t.appendChild(i);const y=()=>{i.remove(),clearTimeout(x)};o.abort.push(y);let x=setTimeout(()=>{r.classList.add("q-ripple__inner--enter"),r.style.transform=`translate3d(${f},${g},0) scale3d(1,1,1)`,r.style.opacity=.2,x=setTimeout(()=>{r.classList.remove("q-ripple__inner--enter"),r.classList.add("q-ripple__inner--leave"),r.style.opacity=0,x=setTimeout(()=>{i.remove(),o.abort.splice(o.abort.indexOf(y),1)},275)},250)},50)}function no(e,{modifiers:t,value:o,arg:n}){const a=Object.assign({},e.cfg.ripple,t,o);e.modifiers={early:!0===a.early,stop:!0===a.stop,center:!0===a.center,color:a.color||n,keyCodes:[].concat(a.keyCodes||13)}}var ao=Me({name:"ripple",beforeMount(e,t){const o=t.instance.$.appContext.config.globalProperties.$q.config||{};if(!1===o.ripple)return;const n={cfg:o,enabled:!1!==t.value,modifiers:{},abort:[],start(t){!0===n.enabled&&!0!==t.qSkipRipple&&t.type===(!0===n.modifiers.early?"pointerdown":"click")&&oo(t,e,n,!0===t.qKeyEvent)},keystart:to(t=>{!0===n.enabled&&!0!==t.qSkipRipple&&!0===K(t,n.modifiers.keyCodes)&&t.type===`key${!0===n.modifiers.early?"down":"up"}`&&oo(t,e,n,!0)},300)};no(n,t),e.__qripple=n,T(n,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const o=e.__qripple;void 0!==o&&(o.enabled=!1!==t.value,!0===o.enabled&&Object(t.value)===t.value&&no(o,t))}},beforeUnmount(e){const t=e.__qripple;void 0!==t&&(t.abort.forEach(e=>{e()}),B(t,"main"),delete e._qripple)}});const lo={none:0,xs:4,sm:8,md:16,lg:24,xl:32},io={xs:8,sm:10,md:14,lg:20,xl:24},ro=["button","submit","reset"],so=/[^\s]\/[^\s]/,uo=["flat","outline","push","unelevated"],co=(e,t)=>{return!0===e.flat?"flat":!0===e.outline?"outline":!0===e.push?"push":!0===e.unelevated?"unelevated":t},vo=e=>{const t=co(e);return void 0!==t?{[t]:!0}:{}},po={...We,...It,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...uo.reduce((e,t)=>(e[t]=Boolean)&&e,{}),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],ripple:{type:[Boolean,Object],default:!0},align:{...kt.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean};function mo(t){const o=Ye(t,io),n=Ct(t),{hasRouterLink:a,hasLink:l,linkTag:i,linkAttrs:r,navigateOnClick:s}=Rt({fallbackTag:"button"}),u=e.computed(()=>{const e=!1===t.fab&&!1===t.fabMini?o.value:{};return void 0!==t.padding?Object.assign({},e,{padding:t.padding.split(/\s+/).map(e=>e in lo?lo[e]+"px":e).join(" "),minWidth:"0",minHeight:"0"}):e}),c=e.computed(()=>!0===t.rounded||!0===t.fab||!0===t.fabMini),d=e.computed(()=>!0!==t.disable&&!0!==t.loading),v=e.computed(()=>!0===d.value?t.tabindex||0:-1),p=e.computed(()=>co(t,"standard")),m=e.computed(()=>{const e={tabindex:v.value};return!0===l.value?Object.assign(e,r.value):!0===ro.includes(t.type)&&(e.type=t.type),"a"===i.value?(!0===t.disable?e["aria-disabled"]="true":void 0===e.href&&(e.role="button"),!0!==a.value&&!0===so.test(t.type)&&(e.type=t.type)):!0===t.disable&&(e.disabled="",e["aria-disabled"]="true"),!0===t.loading&&void 0!==t.percentage&&Object.assign(e,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),e}),f=e.computed(()=>{let e;void 0!==t.color?e=!0===t.flat||!0===t.outline?`text-${t.textColor||t.color}`:`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(e=`text-${t.textColor}`);const o=!0===t.round?"round":`rectangle${!0===c.value?" q-btn--rounded":!0===t.square?" q-btn--square":""}`;return`q-btn--${p.value} q-btn--${o}`+(void 0!==e?" "+e:"")+(!0===d.value?" q-btn--actionable q-focusable q-hoverable":!0===t.disable?" disabled":"")+(!0===t.fab?" q-btn--fab":!0===t.fabMini?" q-btn--fab-mini":"")+(!0===t.noCaps?" q-btn--no-uppercase":"")+(!0===t.dense?" q-btn--dense":"")+(!0===t.stretch?" no-border-radius self-stretch":"")+(!0===t.glossy?" glossy":"")+(t.square?" q-btn--square":"")}),h=e.computed(()=>n.value+(!0===t.stack?" column":" row")+(!0===t.noWrap?" no-wrap text-no-wrap":"")+(!0===t.loading?" q-btn__content--hidden":""));return{classes:f,style:u,innerClasses:h,attributes:m,hasLink:l,linkTag:i,navigateOnClick:s,isActionable:d}}const{passiveCapture:fo}=f;let ho=null,go=null,bo=null;var yo=$e({name:"QBtn",props:{...po,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{classes:l,style:i,innerClasses:r,attributes:s,hasLink:u,linkTag:c,navigateOnClick:d,isActionable:v}=mo(t),p=e.ref(null),m=e.ref(null);let f,h=null,g=null;const b=e.computed(()=>void 0!==t.label&&null!==t.label&&""!==t.label),y=e.computed(()=>!0!==t.disable&&!1!==t.ripple&&{keyCodes:!0===u.value?[13,32]:[13],...!0===t.ripple?{}:t.ripple}),w=e.computed(()=>({center:t.round})),x=e.computed(()=>{const e=Math.max(0,Math.min(100,t.percentage));return e>0?{transition:"transform 0.6s",transform:`translateX(${e-100}%)`}:{}}),_=e.computed(()=>{if(!0===t.loading)return{onMousedown:A,onTouchstart:A,onClick:A,onKeydown:A,onKeyup:A};if(!0===v.value){const e={onClick:k,onKeydown:M,onMousedown:B};if(!0===a.$q.platform.has.touch){const o=void 0!==t.onTouchstart?"":"Passive";e[`onTouchstart${o}`]=T}return e}return{onClick:$}}),S=e.computed(()=>({ref:p,class:"q-btn q-btn-item non-selectable no-outline "+l.value,style:i.value,...s.value,..._.value}));function k(e){if(null!==p.value){if(void 0!==e){if(!0===e.defaultPrevented)return;const o=document.activeElement;if("submit"===t.type&&o!==document.body&&!1===p.value.contains(o)&&!1===o.contains(p.value)){p.value.focus();const e=()=>{document.removeEventListener("keydown",$,!0),document.removeEventListener("keyup",e,fo),null!==p.value&&p.value.removeEventListener("blur",e,fo)};document.addEventListener("keydown",$,!0),document.addEventListener("keyup",e,fo),p.value.addEventListener("blur",e,fo)}}d(e)}}function M(e){null!==p.value&&(n("keydown",e),!0===K(e,[13,32])&&go!==p.value&&(null!==go&&L(),!0!==e.defaultPrevented&&(p.value.focus(),go=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("keyup",O,!0),p.value.addEventListener("blur",O,fo)),$(e)))}function T(e){null!==p.value&&(n("touchstart",e),!0!==e.defaultPrevented&&(ho!==p.value&&(null!==ho&&L(),ho=p.value,h=e.target,h.addEventListener("touchcancel",O,fo),h.addEventListener("touchend",O,fo)),f=!0,null!==g&&clearTimeout(g),g=setTimeout(()=>{g=null,f=!1},200)))}function B(e){null!==p.value&&(e.qSkipRipple=!0===f,n("mousedown",e),!0!==e.defaultPrevented&&bo!==p.value&&(null!==bo&&L(),bo=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("mouseup",O,fo)))}function O(e){if(null!==p.value&&(void 0===e||"blur"!==e.type||document.activeElement!==p.value)){if(void 0!==e&&"keyup"===e.type){if(go===p.value&&!0===K(e,[13,32])){const t=new MouseEvent("click",e);t.qKeyEvent=!0,!0===e.defaultPrevented&&q(t),!0===e.cancelBubble&&C(t),p.value.dispatchEvent(t),$(e),e.qKeyEvent=!0}n("keyup",e)}L()}}function L(e){const t=m.value;!0===e||ho!==p.value&&bo!==p.value||null===t||t===document.activeElement||(t.setAttribute("tabindex",-1),t.focus()),ho===p.value&&(null!==h&&(h.removeEventListener("touchcancel",O,fo),h.removeEventListener("touchend",O,fo)),ho=h=null),bo===p.value&&(document.removeEventListener("mouseup",O,fo),bo=null),go===p.value&&(document.removeEventListener("keyup",O,!0),null!==p.value&&p.value.removeEventListener("blur",O,fo),go=null),null!==p.value&&p.value.classList.remove("q-btn--active")}function A(e){$(e),e.qSkipRipple=!0}return e.onBeforeUnmount(()=>{L(!0)}),Object.assign(a,{click:k}),()=>{let n=[];void 0!==t.icon&&n.push(e.h(mt,{name:t.icon,left:!1===t.stack&&!0===b.value,role:"img","aria-hidden":"true"})),!0===b.value&&n.push(e.h("span",{class:"block"},[t.label])),n=Ze(o.default,n),void 0!==t.iconRight&&!1===t.round&&n.push(e.h(mt,{name:t.iconRight,right:!1===t.stack&&!0===b.value,role:"img","aria-hidden":"true"}));const a=[e.h("span",{class:"q-focus-helper",ref:m})];return!0===t.loading&&void 0!==t.percentage&&a.push(e.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(!0===t.darkPercentage?" q-btn__progress--dark":"")},[e.h("span",{class:"q-btn__progress-indicator fit block",style:x.value})])),a.push(e.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+r.value},n)),null!==t.loading&&a.push(e.h(e.Transition,{name:"q-transition--fade"},()=>!0===t.loading?[e.h("span",{key:"loading",class:"absolute-full flex flex-center"},void 0!==o.loading?o.loading():[e.h(Ht)])]:null)),e.withDirectives(e.h(c.value,S.value,a),[[ao,y.value,void 0,w.value]])}}}),wo=$e({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(t,{slots:o}){const n=e.computed(()=>{const e=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter(e=>!0===t[e]).map(e=>`q-btn-group--${e}`).join(" ");return`q-btn-group row no-wrap${e.length>0?" "+e:""}`+(!0===t.spread?" q-btn-group--spread":" inline")});return()=>e.h("div",{class:n.value},Ke(o.default))}});function xo(){if(void 0!==window.getSelection){const e=window.getSelection();void 0!==e.empty?e.empty():void 0!==e.removeAllRanges&&(e.removeAllRanges(),!0!==p.is.mobile&&e.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}const _o={target:{default:!0},noParentEvent:Boolean,contextMenu:Boolean};function So({showing:t,avoidEmit:o,configureAnchorEl:n}){const{props:a,proxy:l,emit:i}=e.getCurrentInstance(),r=e.ref(null);let s=null;function u(e){return null!==r.value&&(void 0===e||void 0===e.touches||e.touches.length<=1)}const c={};function d(){B(c,"anchor")}function v(e){r.value=e;while(r.value.classList.contains("q-anchor--skip"))r.value=r.value.parentNode;n()}function p(){if(!1===a.target||""===a.target||null===l.$el.parentNode)r.value=null;else if(!0===a.target)v(l.$el.parentNode);else{let e=a.target;if("string"===typeof a.target)try{e=document.querySelector(a.target)}catch(t){e=void 0}void 0!==e&&null!==e?(r.value=e.$el||e,n()):(r.value=null,console.error(`Anchor: target "${a.target}" not found`))}}return void 0===n&&(Object.assign(c,{hide(e){l.hide(e)},toggle(e){l.toggle(e),e.qAnchorHandled=!0},toggleKey(e){!0===K(e,13)&&c.toggle(e)},contextClick(t){l.hide(t),q(t),e.nextTick(()=>{l.show(t),t.qAnchorHandled=!0})},prevent:q,mobileTouch(e){if(c.mobileCleanup(e),!0!==u(e))return;l.hide(e),r.value.classList.add("non-selectable");const t=e.target;T(c,"anchor",[[t,"touchmove","mobileCleanup","passive"],[t,"touchend","mobileCleanup","passive"],[t,"touchcancel","mobileCleanup","passive"],[r.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,l.show(e),e.qAnchorHandled=!0},300)},mobileCleanup(e){r.value.classList.remove("non-selectable"),null!==s&&(clearTimeout(s),s=null),!0===t.value&&void 0!==e&&xo()}}),n=function(e=a.contextMenu){if(!0===a.noParentEvent||null===r.value)return;let t;t=!0===e?!0===l.$q.platform.is.mobile?[[r.value,"touchstart","mobileTouch","passive"]]:[[r.value,"mousedown","hide","passive"],[r.value,"contextmenu","contextClick","notPassive"]]:[[r.value,"click","toggle","passive"],[r.value,"keyup","toggleKey","passive"]],T(c,"anchor",t)}),e.watch(()=>a.contextMenu,e=>{null!==r.value&&(d(),n(e))}),e.watch(()=>a.target,()=>{null!==r.value&&d(),p()}),e.watch(()=>a.noParentEvent,e=>{null!==r.value&&(!0===e?d():n())}),e.onMounted(()=>{p(),!0!==o&&!0===a.modelValue&&null===r.value&&i("update:modelValue",!1)}),e.onBeforeUnmount(()=>{null!==s&&clearTimeout(s),d()}),{anchorEl:r,canShow:u,anchorEvents:c}}function ko(t,o){const n=e.ref(null);let a;function l(e,t){const o=`${void 0!==t?"add":"remove"}EventListener`,n=void 0!==t?t:a;e!==window&&e[o]("scroll",n,f.passive),window[o]("scroll",n,f.passive),a=t}function i(){null!==n.value&&(l(n.value),n.value=null)}const r=e.watch(()=>t.noParentEvent,()=>{null!==n.value&&(i(),o())});return e.onBeforeUnmount(r),{localScrollTarget:n,unconfigureScrollTarget:i,changeScrollEvent:l}}const Co={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},qo=["beforeShow","show","beforeHide","hide"];function $o({