New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-composable

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-composable - npm Package Compare versions

Comparing version 1.0.0-beta.6 to 1.0.0-beta.7

2

dist/v2/vue-composable.global.prod.js

@@ -1,1 +0,1 @@

var vueComposable=function(e,t,n,o){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var a=r(n);function s(e){return t.isRef(e)?e.value:e}function l(e){return t.isRef(e)?e:t.ref(e)}const u=Array.isArray,i=e=>"function"==typeof e,c=e=>"string"==typeof e,v=e=>"boolean"==typeof e,d=e=>m(e)&&i(e.getTime),f=e=>"number"==typeof e,m=e=>null!==e&&"object"==typeof e,p=e=>m(e)&&!!e.tagName;function g(e){return m(e)&&i(e.then)&&i(e.catch)}const h=()=>{},y=()=>!1,w={passive:!0};function b(e){return new Promise(t=>{setTimeout(t,e)})}const E=2**32-2;function S(e,t,n){return e<t?t:e>n?n:e}const I="undefined"!=typeof window;function M(e,...t){for(let n=0;n<t.length;n++){const o=t[n];if(void 0===o||!m(o))continue;const r=Object.keys(o);for(let t=0;t<r.length;t++){const n=r[t],a=s(o[n]),l=typeof a,u=typeof e[n];void 0!==e[n]&&l!==u||(e[n]=m(a)?M(e[n]||{},a):o[n])}}return e}const C=t.set;function $(e){return t.computed(()=>s(e))}function k(e,n,o,r){let a=h;if(e){const s=l(e),u=e=>e.removeEventListener(n,o),i=e=>e.addEventListener(n,o,r),c=t.watch(s,(e,t,n)=>{e&&(i(e),n(()=>u(e)))},{immediate:!0});a=()=>{u(s.value),c()}}return a}function L(e,t,n){return R(e,t,n)}function R(e,t=50,n={isImmediate:!1}){let o;return function(...r){const a=this,s=n.isImmediate&&void 0===o;void 0!==o&&clearTimeout(o),o=setTimeout((function(){o=void 0,n.isImmediate||e.apply(a,r)}),t),s&&e.apply(a,r)}}const x=["mousedown","touchstart"];function T(e,n){if(!e)throw new Error(`[usePromise] argument can't be '${e}'`);if("function"!=typeof e)throw new Error("[usePromise] expects function, but received "+typeof e);const[o,r]=v(n)?[n,!1]:m(n)?[n.lazy,n.throwException]:[!1,!1],a=t.ref(!1),s=t.ref(null),l=t.ref(null),u=t.ref(),i=async(...t)=>{a.value=!0,s.value=null;const n=t&&e.length!==t.length&&t.length>0&&v(t[t.length-1])?t[t.length-1]:r,o=u.value=e(...t);try{const e=await o;return u.value===o&&(l.value=e),e}catch(e){return u.value===o&&(s.value=e,l.value=null),n?o:void 0}finally{u.value===o&&(a.value=!1)}};return o||i(),{exec:i,result:l,promise:u,loading:a,error:s}}function O(e,n){const o=t.ref(!1);let r=void 0;const a=T((...t)=>{return n=e(...t),new Promise((e,t)=>{r=e=>{o.value=!0,t(e)},n.then(e).catch(t)});var n},n);return!t.getCurrentInstance()||m(n)&&!1===n.unmountCancel||t.onUnmounted(()=>r&&r()),{...a,cancel:e=>{r&&r(e)},cancelled:o}}const P=Symbol(""),A=Symbol(""),D=async(e,t,n,o)=>{const r=t[P].value;let a=-1;const s=e.maxRetries||9001,l=e.retryDelay||j;t.retryErrors.value=[],t.isRetrying.value=!1,t.nextRetry.value=void 0;let u=void 0;do{let e=!1,i=null;try{if(++a,i=o?n(...o):n(),g(i)&&(i=await i),t[A].value)return null;e=!0}catch(e){i=null,t.retryErrors.value.push(e)}if(r!==t[P].value)return i;if(e)return t.isRetrying.value=!1,t.nextRetry.value=void 0,i;if(a>=s)return t.isRetrying.value=!1,t.nextRetry.value=void 0,Promise.reject(new Error("[useRetry] max retries reached "+s));t.isRetrying.value=!0;const c=Date.now(),v=l(a),m=g(v)?await v:v;if(!g(v)||m){if(f(m))u=m;else{if(!d(m))throw new Error(`[useRetry] invalid value received from options.retryDelay '${typeof m}'`);u=m.getTime()}u<c?t.nextRetry.value=c+u:(t.nextRetry.value=u,u-=c),u>0&&await b(u)}if(t[A].value)return null;if(r!==t[P].value)return i}while(a<9e3);return null};const j=()=>0;const F=Symbol("");function U(e,t){i(e.provide)?e.provide(F,t):console.warn("[vue-composable] devtools is not supported for vue 2")}function V(){const e={},n=t.inject(F,e);if(n!==e)return n;console.warn("[vue-composable] devtools not found, please run app.use(VueComposableDevtools)")}let N=void 0;N=e=>{const t=[],n=[];let o;function r(e,t){o?o[e](...t):n.push({type:e,args:t})}e.then(e=>{o=e,async function(e,t,n){setTimeout(async()=>{const o=["addTimelineLayer","addInspector","sendInspectorTree","sendInspectorState","addTimelineEvent"];for(const t of o){for(const o of n.filter(e=>e.type===t))e[t](...o.args);await b(20)}new Set(n.filter(e=>"notifyComponentUpdate"===e.type).map(e=>e.args[0])).forEach(t=>e.notifyComponentUpdate(t)),t.forEach(t=>e.on[t.type](...t.args)),t.length=0,n.length=0},100)}(o,t,n)});return{notifyComponentUpdate(e){r("notifyComponentUpdate",arguments)},addTimelineLayer(e){r("addTimelineLayer",arguments)},addTimelineEvent(e){r("addTimelineEvent",arguments)},addInspector(e){r("addInspector",arguments)},sendInspectorTree(e){r("sendInspectorTree",arguments)},sendInspectorState(e){r("sendInspectorState",arguments)},on:{transformCall(e){o?o.on.transformCall(e):t.push({type:"transformCall",args:arguments})},getAppRecordName(e){o?o.on.getAppRecordName(e):t.push({type:"getAppRecordName",args:arguments})},getAppRootInstance(e){o?o.on.getAppRootInstance(e):t.push({type:"getAppRootInstance",args:arguments})},registerApplication(e){o?o.on.registerApplication(e):t.push({type:"registerApplication",args:arguments})},walkComponentTree(e){o?o.on.walkComponentTree(e):t.push({type:"walkComponentTree",args:arguments})},walkComponentParents(e){o?o.on.walkComponentParents(e):t.push({type:"walkComponentParents",args:arguments})},inspectComponent(e){o?o.on.inspectComponent(e):t.push({type:"inspectComponent",args:arguments})},getComponentBounds(e){o?o.on.getComponentBounds(e):t.push({type:"getComponentBounds",args:arguments})},getComponentName(e){o?o.on.getComponentName(e):t.push({type:"getComponentName",args:arguments})},getElementComponent(e){o?o.on.getElementComponent(e):t.push({type:"getElementComponent",args:arguments})},getInspectorTree(e){o?o.on.getInspectorTree(e):t.push({type:"getInspectorTree",args:arguments})},getInspectorState(e){o?o.on.getInspectorState(e):t.push({type:"getInspectorState",args:arguments})}}}};var W=N;const B=(e,t="vue-composable",n="Vue-composable devtools plugin")=>{const r=new Promise(r=>{o.setupDevtoolsPlugin({id:t,label:n,app:e},r)});U(e,W(r))},z={install:(e,t={id:"vue-composable",label:"Vue-composable devtools plugin"})=>B(e,t.id,t.label)};function _(e){return e&&(v(e.isJson)||v(e.parseImmediate)||v(e.unmountCancel))}let H=void 0;let K=void 0,q=void 0;let J=void 0,Q=void 0;function X(e,n){const o=I&&"BroadcastChannel"in self,r=t.ref(null),a=t.ref(null),s=t.ref(null),l=t.ref(!1),u=t.ref(!1);let i=h,c=h,v=h;if(o){const o=new BroadcastChannel(e);o.addEventListener("messageerror",e=>{s.value=e,l.value=!0},w),o.addEventListener("message",e=>{a.value=e,r.value=e.data},w),i=e=>o.postMessage(e),c=()=>{o.close(),u.value=!0},v=(e,n)=>{o.addEventListener("message",e,n),t.onUnmounted(()=>o.removeEventListener("message",e))},t.onUnmounted(()=>{n&&n(),c()})}return{supported:o,data:r,messageEvent:a,errorEvent:s,errored:l,isClosed:u,send:i,close:c,addListener:v}}function Y(e,t){const n=getComputedStyle(e).getPropertyValue(t);return n?n.trim():null}function G(e,t,n){e.style.setProperty(t,n)}const Z={attributes:!0,childList:!0,subtree:!0},ee=e=>e.length<=2||"-"!==e[0]||"-"!==e[1]?"--"+e:e;const te=e=>function(t){const n=t.data||[];return new Promise(t=>{try{Promise.resolve(e.apply(e,n)).then(e=>t(postMessage([!0,e]))).catch(e=>t(postMessage([!1,e])))}catch(e){t(postMessage([!1,e]))}})};function ne(e){const n=!!I&&"matchMedia"in window;let o=void 0,r=void 0,a=h;if(n){o=t.ref(matchMedia(e)),r=t.ref(o.value.matches);const n=e=>{r.value=e.matches};o.value.addEventListener("change",n,w);const a=()=>o.value.removeEventListener("change",n);t.onUnmounted(a)}else o=t.ref({}),r=t.ref(!1);return{supported:n,mediaQueryList:o,matches:r,remove:a}}function oe(e,n){const{addListener:o,send:r,close:a,supported:s}=X(e,()=>h()),l=Date.now(),u=t.ref(!1),i=t.ref(0),c=t.computed(()=>1!==i.value||u.value),v=t.ref([]),d=t.ref(n);let f=!1,p=void 0;r({type:0});const g=()=>r({type:5,id:l}),h=()=>{0!==v.value.length&&(u.value&&r({type:3,mind:1,id:Math.min(...v.value)}),r({type:4,id:l}))};return o(e=>{switch(e.data.type){case 0:r({type:2,value:d.value,mind:i.value});break;case 4:{const t=v.value.indexOf(e.data.id);t>=0&&v.value.splice(t,1),p===e.data.id&&v.value.length>0&&r({type:3,mind:1,id:Math.min(l,...v.value)});break}case 2:f=!0,d.value=e.data.value,i.value=e.data.mind;break;case 3:i.value=e.data.mind,p=1===e.data.mind&&e.data.id||void 0,u.value=p===l,u.value&&(v.value=[],g());break;case 5:v.value=[e.data.id],r({type:6,id:l});break;case 6:v.value.push(e.data.id)}},w),g(),t.watch(d,(e,t)=>{if(f)f=!1;else{if(1===i.value&&!1===u.value)return f=!0,void(d.value=t);r({type:2,mind:i.value,value:m(e)?{...e}:e}),f=!1}},{deep:!0,immediate:!1}),I&&window.addEventListener("unload",h,w),t.onUnmounted(()=>{h(),a()}),{supported:s,id:l,data:d,master:u,mind:i,editable:c,targets:v,ping:g,setMind:e=>{switch(e){case 1:u.value=!0;break;case 0:u.value=!1}i.value=e,r({type:3,id:l,mind:i.value})},addListener:o}}const re="no-scroll";function ae(e,n){const o=Symbol(),r=t.inject(e,o);return r===o?n():r}function se(e,n){const o=l(n),r=l(e);return m(o.value)||t.isRef(n)?[void 0!==r.value?r:void 0,o]:!m(r.value)||u(r.value)||c(r.value)?[r.value?r:void 0,void 0]:[void 0,r]}function le(e,n){const[o,r]=se(e,n),a=t.computed(()=>new Intl.NumberFormat(s(o),s(r))),l=(e,t,n)=>(t||n?new Intl.NumberFormat(s(n)||s(o),{...s(r),...s(t)}):a.value).format(s(e));return{format:(e,n,o)=>t.computed(()=>l(e,n,o)),formatString:l,formatter:a}}function ue(e){if(e)return f(e)?e:ie(e)}const ie=e=>{const t=e.match(/^(\d+)px$/);if(t)return+t[1]};function ce(e){const n={},o=new Map,r=t.ref();let a=[];const s=[];for(const r in e){const l=e[r],u=ue(l);if(void 0!==u){const e=t.ref(!1);n[r]=e,o.set(u,{name:r,valid:e}),a.push(u)}else{const{matches:e,remove:t}=ne(l);n[r]=e,s.push(t)}}a=a.sort((e,t)=>t-e);const l=I?()=>{const e=window.innerWidth;let t=void 0;for(let n=0;n<a.length;n++){const r=a[n],s=o.get(r);s.valid.value=e>=r,e>=r&&void 0===t&&(t=s.name)}r.value=t}:h,u=L(l,10),i=I?()=>window.removeEventListener("resize",u):h;return I&&(t.onMounted(()=>{l(),window.addEventListener("resize",u,w)}),t.onUnmounted(()=>{i(),s.forEach(e=>e())})),{...n,remove:i,current:r}}const ve=Symbol(""),de={sm:640,md:768,lg:1024,xl:1280};function fe(e){return m(e)&&m(e.theme)&&m(e.theme.screens)}function me(e){return!!m(e)&&(c(e.min)||c(e.max)||f(e.min)||f(e.max))}function pe(e){return f(e)?e+"px":e}function ge(e){const t=[];if(u(e)){const n=e.map(ge);for(let e=0;e<n.length;e++){const o=n[e];t.push(...o)}}else m(n=e)&&c(n.raw)?t.push(e.raw):me(e)?t.push(function(e){return me(e)?`(${[e.max&&"max-width: "+pe(e.max),e.min&&"min-width: "+pe(e.min)].filter(Boolean).join(" and ")})`:""}(e)):(c(e)||f(e))&&t.push(`(min-width: ${pe(e)})`);var n;return t}function he(e){const n=fe(e)?e.theme.screens:e;if(fe(e))for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];m(t)?n[e]=ge(n[e]).join(" or "):c(t)&&(t.endsWith("px")||(n[e]=ge(n[e]).join(" or ")))}const o=ce(n);return t.provide(ve,o),o}function ye(e,t){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&(t&&0!==t.length||!1)}function we(e){try{if(!e)return!1;const t=":$";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return ye(t,e)}}function be(e,t){try{return e.parse(t)}catch{return t}}let Ee=void 0;function Se(e,n=JSON,o=10){const r=I?window[e]:void 0,a=we(r);Ee||(Ee=new Map,I&&window.addEventListener("storage",e=>{if(e.newValue===e.oldValue)return;let t=Ee.get("localStorage");t=e.storageArea===window.localStorage?Ee.get("localStorage"):Ee.get("sessionStorage"),t&&Object.keys(t.$syncKeys).length>0&&(null===e.key?t.clear():t.$syncKeys[e.key]&&(null===e.newValue?t.removeItem(e.key):t.updateItem(e.key,e.newValue)))}));let s,u=Ee.get(e);return a&&r?u?s=u.$quotaError:(s=t.ref(!1),u={$refMap:new Map,$watchHandlers:new Map,$syncKeys:{},$quotaError:s,key:r.key,length:r.length,setSync(e,t){t?this.$syncKeys[e]=!0:delete this.$syncKeys[e]},clear(){this.$refMap.forEach((e,t)=>this.removeItem(t))},removeItem(e){const t=this.$refMap.get(e);t&&(t.value=void 0);const n=this.$watchHandlers.get(e);n&&n(),delete this.$syncKeys[e],this.$refMap.delete(e),r.removeItem(e)},getItem(e){const t=r.getItem(e);return t?this.setItem(e,be(n,t)):null},setItem(e,a){const u=l(a);this.$refMap.set(e,u);const i=(e,t)=>{try{const o=r.getItem(e),a=c(t)?t:n.stringify(t);r.setItem(e,a),o!==a&&I&&this.$syncKeys[e]&&window.dispatchEvent(new StorageEvent(e,{newValue:a,oldValue:o,storageArea:r}))}catch(e){s.value=ye(e,r)}};i(e,a);const v=t.watch(u,R(t=>{i(e,t)},o),{immediate:!1,deep:!0});return this.$watchHandlers.set(e,v),u},updateItem(e,t){let o=this.$refMap.get(e);o&&(o.value=be(n,t))}},Ee.set(e,u)):(s=t.ref(!1),u={}),{supported:a,quotaError:s,store:u,remove:()=>Ee.delete(e)}}function Ie(e,n,o){const{supported:r,store:a}=Se("localStorage");let s=h,l=h,u=h,i=void 0;return r&&a?(u=t=>a.setSync(e,t),s=()=>a.removeItem(e),l=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n)),!1!==o&&u(!0)):i=t.ref(n),{supported:r,storage:i,clear:l,remove:s,setSync:u}}function Me(e,n,o){const{supported:r,store:a}=Se("sessionStorage");let s=h,l=h,u=y,i=void 0;return r&&a?(s=()=>a.removeItem(e),l=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n))):i=t.ref(n),{supported:r,storage:i,clear:l,remove:s,setSync:u}}let Ce=void 0;function $e(e){const n=l(e.currentPage),o=l(e.pageSize),r=t.ref(0),a=l(e.total),s=t.computed({get:()=>r.value,set(e){f(e)&&(r.value=Math.min(e,a.value))}}),u=t.computed({get:()=>n.value,set(e){f(e)&&(n.value=S(e,1,c.value),s.value=(n.value-1)*i.value)}}),i=t.computed({get:()=>o.value,set(e){f(e)&&(o.value=e)}}),c=t.computed(()=>Math.ceil(a.value/i.value));u.value=n.value;return t.watch([a,i],e=>{u.value>c.value&&(u.value=c.value)},{immediate:!1}),{pageSize:i,total:a,currentPage:u,offset:s,lastPage:c,next:()=>++u.value,prev:()=>--u.value,first:()=>u.value=1,last:()=>u.value=c.value}}function ke(e){const n=1e3,o=e&&e.refreshMs||n,r=!e||!v(e.sync)||e.sync,a=e&&i(e.timeFn)&&e.timeFn||Date.now;let s=void 0,l=void 0;const u=t.ref(a()),c=()=>{clearInterval(s),clearTimeout(l)},d=I?()=>s=setInterval(()=>u.value=a(),o):h;if(r){const e=n-(u.value-Math.floor(u.value/n)*n);l=setTimeout(d,e)}else d();return t.onUnmounted(c),{now:u,remove:c}}function Le(e,n){return t.computed(()=>{const o=s(e);if(!n)return o;const r=t.isRef(n)?t.reactive(n.value):t.reactive(n);return o.replace(/({?{[\w\s]*}?})/g,e=>{const t=e.replace("{","").replace("}","").trim();if(e[0]===e[1]&&"{"===e[0])return""+t;const n=u(r)?r[+t]:r[t];return void 0===n?e:""+s(n)})})}function Re(e,n,o=".",r=h){return t.computed(()=>{const t=s(e),a=s(n);if(void 0===t)return r(a,t,a,t);if(!a)return t;const l=a.split(o);let u=t;for(let e=0;e<l.length;e++){let n=l[e];if("]"===n[n.length-1]){const t=/\[[`'"]?([^`'"\]]*)[`'"]?\]/g;let o=n,r=t.exec(o);if(r){let a=r[0].length,s=r.index-a,u=1;do{r.index,s=r.index,a=r[0].length,n=n.slice(0,-r[0].length),l.splice(e+u,0,r[1]),++u}while(r=t.exec(o));if(!n&&"["===o[0]&&o.length>2)continue}else n="",console.warn(`[usePath] invalid path provided "${o}"`)}if(!m(u))return r(l.slice(0,e+1).join(o),u,a,t);if(!n)return r(l.slice(0,e+1).join(o),u,a,t);if(u=u[n],!u)return r(l.slice(0,e+1).join(o),u,a,t)}return u})}function xe(e){return void 0!==e.$value}const Te=(e,n,o)=>{const{$message:r,$validator:a,...l}=function(e){return m(e)}(n)?n:{$validator:n,$message:void 0},{$pending:u,$promise:i,$invalid:c,$error:v}=((e,n,o,r)=>{const a=t.ref(null),l=t.ref(!1),u=t.ref(),i=t.ref(!1);let c=void 0;const v=e=>{a.value=(async()=>{try{l.value=!0;const t=n(e,c);g(t)?i.value=!await t:i.value=!t,u.value=i.value?o.value:void 0}catch(e){throw i.value=!0,e}finally{l.value=!1}})().catch(e=>(u.value=s(e),i.value=!0,e))};return r.push(o=>{c=o,t.watch(()=>{try{n(e.value,c)}catch(e){}return e.value},v,{deep:!0,immediate:!0})}),{$promise:a,$pending:l,$invalid:i,$error:u}})(e,a,t.ref(r),o);return{$pending:u,$error:v,$promise:i,$invalid:c,$message:r,...l}},Oe=(e,n)=>{const o={},r=xe(e)?l(e.$value):void 0;for(const a of Object.keys(e))if("$"!==a[0])if(r){const t=Te(r,e[a],n);o[a]={...t,$value:r}}else{const r=Oe(e[a],n);let l,u,i=void 0;if(xe(r)){const e=Object.keys(r).filter(e=>"$"!==e[0]).map(e=>r[e]);l=t.computed(()=>e.map(e=>e.$error).map(e=>s(e)).filter(Boolean)),u=t.computed(()=>e.some(e=>!!s(e.$invalid)))}else{const e=Object.keys(r).map(e=>r[e]);l=t.computed(()=>e.map(e=>s(e.$errors)).filter(Boolean).filter(e=>e.some(Boolean))),i=t.computed(()=>e.some(e=>e.$anyDirty||v(s(e.$dirty))&&s(e.$dirty))),u=t.computed(()=>e.some(e=>!!s(e.$anyInvalid)))}o[a]={...r,$errors:l,$anyInvalid:u},i&&(o[a].$anyDirty=i)}else{if("$value"===a){o[a]=r;const e=t.ref(!1),n=t.watch(r,()=>{e.value=!0,n()},{immediate:!1,deep:!0});o.$dirty=e;continue}o[a]=e[a]}return o};const Pe=Symbol("");function Ae(e){const n=t.ref(Object.keys(e.messages)),o=t.ref(e.messages),r=t.ref(e.locale),u=t.ref({});let c=t.ref();const d={},f=(e,n)=>{if(d[e])return d[e];const o=n.value[e];if(!o)return t.ref({});let r=i(o)?o():o;return g(r)?r.then(t=>d[e]=l(t)):i(o)?l(r):d[e]=t.computed(()=>n.value[e])},m=!!e.fallback&&(!v(e.notFoundFallback)||e.notFoundFallback);let p=!1;if(m){const t=f(e.fallback,o);g(t)?(t.then(e=>{c.value=e.value}),p=!0):c.value=t.value}else c.value={};const h=t.ref(0);t.watch(o,()=>h.value++,{deep:!0,immediate:!1}),t.watch([r,c,h],([t,n,r])=>{if(t===e.fallback&&m)u.value=n;else{const e=e=>u.value=M({},n,s(e)),r=f(t,o);g(r)?r.then(e):e(r)}},{immediate:!p});const y=(t,n)=>e.resolve?l(e.resolve(u.value,t,n)):Le(Re(u,t,".",(e,t,n,o)=>n),n);return{locale:r,locales:n,i18n:u,$t:y,$ts:(e,t)=>y(e,t).value,addLocale:(e,t)=>{n.value.indexOf(e)>=0||n.value.push(e),delete d[e],C(o.value,e,t)},removeLocale:t=>{const s=n.value.indexOf(t);if(s>=0){const o=[r.value,c.value&&e.fallback,...n.value].find(e=>e&&e!==t);o&&(t===e.fallback&&(c.value=void 0),t===r.value&&(r.value=o)),n.value.splice(s,1)}var l,u;l=o.value,u=t,a.delete(l,u),delete d[t]}}}function De(e){const n=Ae(e);return t.provide(Pe,n),n}const je=Symbol("");const Fe=Symbol(""),Ue={install(e){$(t.ref(!0))}};return e.COMMIT="f726bf4",e.FALSE_OP=y,e.MAX_ARRAY_SIZE=E,e.NO_OP=h,e.PASSIVE_EV=w,e.SCROLL_LOCK_CLASS=re,e.UseDevtoolsApp=B,e.VERSION="1.0.0-beta.6",e.VUE_VERSION="2",e.VueComposableDevtools=z,e.buildI18n=Ae,e.debounce=R,e.deepClone=M,e.exponentialDelay=e=>{const t=100*Math.pow(2,e);return t+.2*t*Math.random()},e.exposeWorker=function(e){this.onmessage=async t=>{const n=e(t.data);if(void 0===n)this.postMessage(n);else if(null===n)this.postMessage(n);else if(u(n))this.postMessage(n);else if(n[Symbol.asyncIterator])for await(const e of n)this.postMessage(e);else if(n[Symbol.iterator])for(const e of n)this.postMessage(e);else this.postMessage(await n)}},e.getCssVariableFor=Y,e.getDevtools=V,e.hydrationPlugin=Ue,e.injectFactory=ae,e.isArray=u,e.isBoolean=v,e.isClient=I,e.isDate=d,e.isElement=p,e.isFunction=i,e.isNumber=f,e.isObject=m,e.isPromise=g,e.isString=c,e.isSymbol=e=>"symbol"==typeof e,e.minMax=S,e.noDelay=j,e.promisedTimeout=b,e.provideSSRTitle=function(e,t){const n=l(void 0===t?"":t);return e.provide(je,n),n},e.refShared=function(e,n){const o=t.getCurrentInstance(),r=n||o.$vnode.tag;if(!r)return t.ref(e);const{data:a,supported:s}=oe(r,e);return a},e.setBreakpointTailwindCSS=he,e.setCssVariableFor=G,e.setDevtools=U,e.setI18n=De,e.storageAvailable=we,e.unwrap=s,e.useArrayPagination=function(e,n){const o=l(e),r=$e({currentPage:1,pageSize:10,...n,total:t.computed(()=>o.value.length)}),a=t.computed(()=>{const e=o.value;return Array.isArray(e)?e.slice(r.offset.value,r.offset.value+r.pageSize.value):[]});return{...r,result:a}},e.useBreakpoint=ce,e.useBreakpointChrome=function(){return ce({mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560})},e.useBreakpointTailwindCSS=function(e){return ae(ve,()=>he(e||de))},e.useBroadcastChannel=X,e.useCancellablePromise=O,e.useCssVariables=function(e,n,o){const r=I&&"MutationObserver"in self,[a,u]=t.isRef(n)||p(n)?[n,o||Z]:[r&&document.documentElement||{},n||Z],i=t.ref(!0),v={},d=[],f=Object.entries(e).map(e=>{const[t,n]=c(e[1])?[e[1]]:[e[1].name,e[1].value];return n&&(d.push(()=>G(s(a),t,s(n))),v[e[0]]=l(n)),[e[0],ee(t)]});for(let e=0;e<f.length;e++){const[n,o]=f[e];v[n]||(v[n]=t.ref(t.isRef(a)&&!a.value||!r?null:Y(s(a),o))),r&&t.watch([v[n],l(a)],e=>{i&&e[1]&&e[0]!==Y(e[1],o)&&G(e[1],o,e[0])},{immediate:!t.isRef(a)})}if(!r)return{...v,stop:h,resume:h,supported:r,observing:i};const m=()=>{for(let e=0;e<f.length;e++){const[t,n]=f[e];v[t].value=Y(s(a),n)}},g=new MutationObserver(m),y=()=>{g.disconnect(),i.value=!1},w=()=>{i.value||m(),g.observe(s(a),u),i.value=!0};return t.onUnmounted(y),t.isRef(a)?t.onMounted(()=>{d.forEach(e=>e()),t.watch(a,(e,t)=>{t&&y(),e&&w()})}):(I||a)&&(d.forEach(e=>e()),w()),{...v,supported:r,resume:w,stop:y,observing:i}},e.useCurrencyFormat=function(e,n,o){const r=s(e),a=!m(r),l=a?e:t.computed(()=>s(e).currency),[u,i]=se(n,a?o:e),c=t.computed(()=>{const e=s(i)||{},t=s(l)||e.currency;return{style:"currency",...e,currency:t}}),v=le(u),d=(e,t,n,o,r)=>{const a={...c.value,...s(o)},l=s(t)||a.currency,u=s(n)||a.currencyDisplay;return v.formatString(e,{...a,currency:l,currencyDisplay:u},r)};return{format:(e,n,o,r,a)=>t.computed(()=>d(e,n,o,r,a)),formatString:d}},e.useDateNow=function(e){return ke({refreshMs:e&&e.refreshMs||1e3,sync:!e||!v(e.sync)||e.sync,timeFn:Date.now})},e.useDebounce=L,e.useDevtoolsInpector=function(e,n=[]){const o=V(),r=t.ref(n),a=t.computed(()=>{if(!r.value)return new Map;const e=t.toRaw(r.value),n=new Map;for(const t of e)n.set(t.id,t);return n});if(o){const n=e.id;o.addInspector(e),o.on.getInspectorTree(o=>{if(o.inspectorId!=n)return;if(console.log(),!r.value)return;const a=o.filter;let s=t.toRaw(r.value);o.filter&&(s=e.nodeFilter?e.nodeFilter(o.filter,s):s.filter(e=>e.id.indexOf(a)>=0||e.label.indexOf(a)>=0)),o.rootNodes=s}),o.on.getInspectorState(o=>{if(o.inspectorId!=n)return;const r=a.value.get(o.nodeId);if(r){const n=t.reactive(r.state);o.state=e.stateFilter?e.stateFilter("",n):n}}),t.watch(r,()=>{o.sendInspectorTree(n),o.sendInspectorState(n)},{immediate:!0,deep:!0})}return{nodes:r}},e.useDevtoolsTimelineLayer=function(e,t,n){const o=V();let r=h,a=h;return o&&(o.addTimelineLayer({id:e,label:t,color:n}),r=(t,n)=>o.addTimelineEvent({layerId:e,event:t,all:n}),a=e=>r({...e,time:Date.now()})),{id:e,addEvent:r,pushEvent:a}},e.useEvent=k,e.useFetch=function(e,n){const o=t.ref(null),r=t.ref(""),a=t.ref(),s=t.ref(null),[l,u,i]=_(e)?[!1!==e.isJson,!1!==e.parseImmediate,!1!==e.unmountCancel]:_(n)?[!1!==n.isJson,!1!==n.parseImmediate,!1!==n.unmountCancel]:[!0,!0,!0],v=e?c(e)?n:_(e)?e:c(e.url)?n:e:void 0,d=t.ref(!1),f=t.ref();let m=void 0;const p=e=>{m&&(m.abort(),d.value=!0,f.value=e)},g=T(async(e,t)=>{m=new AbortController;const n=await fetch(e,{signal:m.signal,...v,...t});if(n){const e=[l?n.clone().json().then(e=>o.value=e).catch(e=>{o.value=null,s.value=e}):Promise.resolve(),n.clone().blob().then(e=>{a.value=e}),n.clone().text().then(e=>{r.value=e})];u&&await Promise.all(e)}return n},!0),h=t.computed(()=>g.result.value&&g.result.value.status||null),y=t.computed(()=>g.result.value&&g.result.value.statusText||null);return e&&(c(e)||c(e.url))&&g.exec(e,void 0,!1),i&&t.getCurrentInstance()&&t.onUnmounted(()=>{m&&p("unmounted")}),{...g,cancel:p,isCancelled:d,cancelledMessage:f,text:r,blob:a,json:o,jsonError:s,status:h,statusText:y}},e.useFormat=Le,e.useGeolocation=function(e){const n=I&&!!navigator.geolocation,o=t.ref(e?!1===e.immediate:void 0),r=t.ref(null),a=t.ref(null),s=t.ref(null),l=t.ref(e&&e.enableHighAccuracy||null);let u=h;if(n){const n=e=>{a.value=e.timestamp,s.value=e.coords,r.value=null},i=e=>{a.value=Date.now(),s.value=null,r.value=e},c=()=>!0!==o.value&&f&&navigator.geolocation.clearWatch(f);let d=()=>navigator.geolocation.getCurrentPosition(n,i,e);u=o.value?()=>{o.value?o.value=!1:d()}:d;let f=0;t.onMounted(()=>t.watch([l,o],t=>{c();const o=v(t[0])?t[0]:e?e.enableHighAccuracy:void 0;f=navigator.geolocation.watchPosition(n,i,e?{...e,enableHighAccuracy:o}:{enableHighAccuracy:o})},{immediate:!o.value})),t.onUnmounted(c)}return{supported:n,refresh:u,error:r,timestamp:a,coords:s,highAccuracy:l}},e.useHydration=function(){return t.inject(Fe,t.computed(()=>!1))},e.useI18n=function(e){return e?De(e):t.inject(Pe)},e.useIntersectionObserver=function(e,n){const o=I&&"IntersectionObserver"in window,r=e?l(e):void 0,a=!r||!p(r.value)&&r.value?void 0:r,u=t.computed(()=>n?s(n):a?void 0:s(e)),i=t.ref([]),c=t.computed(()=>i.value.length>0&&i.value.every(e=>e.isIntersecting)),v=e=>{i.value=e};let d=t.ref();o&&t.watch(u,e=>{d.value&&d.value.disconnect();const t=e&&e&&{root:s(e.root),rootMargin:s(e.rootMargin),threshold:s(e.threshold)}||void 0;d.value=new IntersectionObserver(v,t);i.value.map(e=>e.target).forEach(d.value.observe)},{deep:!0,immediate:!0});const f=o?e=>{const t=s(e);d.value.observe(t)}:h,m=o?e=>{const t=s(e);d.value.unobserve(t)}:h,g=()=>d.value.disconnect();return a&&(t.onMounted(()=>{a.value&&f(a)}),t.onUnmounted(()=>{g()})),{supported:o,elements:i,observe:f,unobserve:m,disconnect:g,isIntersecting:c}},e.useInterval=function(e,n,...o){let r=void 0;const a=(t,...a)=>{if(s(),!t&&!n)return;return r=setInterval(e,t||n,...a&&a.length?a:o)},s=()=>{r&&(clearInterval(r),r=void 0)};return f(n)&&a(),t.onUnmounted(s),{remove:s,start:a}},e.useIntlDateTimeFormat=function(e,n){const[o,r]=se(e,n),a=t.computed(()=>new Intl.DateTimeFormat(s(o),s(r))),l=(e,t,n)=>{const l=t||n?new Intl.DateTimeFormat(s(n)||s(o),{...s(r),...s(t)}):a.value,u=s(e);return l.format(c(u)?new Date(u):u)};return{format:(e,n,o)=>t.computed(()=>l(e,n,o)),formatString:l,formatter:a}},e.useIntlNumberFormat=le,e.useLanguage=function(){if(J||(J=I?t.ref(navigator.language):t.ref("")),!Q)if(I){Q=t.ref(navigator.languages);const e=()=>{J.value=navigator.language,Q.value=navigator.languages};window.addEventListener("languagechange",e,w)}else Q=t.ref([]);return{language:J,languages:Q}},e.useLocalStorage=Ie,e.useLockScroll=function(e,n){const o=c(e)?t.ref([]):u(t.unref(e))?l(e):l([e]),r=c(n)?{lockedClass:n,auto:!0}:n||{auto:!0};r.lockedClass||(r.lockedClass=re);const a=t.ref(!1),i=t.computed(()=>o.value.map(e=>t.ref(e))),v=t.watch([a,i],([e,t],[n,o])=>{for(const a of t){const t=s(a);if(r.lockedClass){if(!t)return;t.classList.toggle(r.lockedClass,e)}r.onChange&&(n===e&&o.find(e=>s(e)===t)||r.onChange(t,e))}},{flush:"sync",deep:!1}),d=()=>a.value=!0,f=()=>a.value=!1;return c(e)&&t.onMounted(()=>o.value=Array.from(document.querySelectorAll(e))),!1!==r.auto&&(t.onMounted(d),t.onActivated(d),t.onDeactivated(f),t.onBeforeUnmount(f)),{locked:a,lock:d,unlock:f,remove:v}},e.useMatchMedia=ne,e.useNetworkInformation=function(){const e=!!I&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection),n=!!e,o=t.ref(0),r=t.ref(0),a=t.ref("none"),s=t.ref(0),l=t.ref(!1),u=t.ref("none");let i=h,c=h;return e&&(i=()=>{o.value=e.downlink,r.value=e.downlinkMax,a.value=e.effectiveType,s.value=e.rtt,l.value=e.saveData,u.value=e.type},c=k(e,"change",i,w),i()),{supported:n,downlink:o,downlinkMax:r,effectiveType:a,rtt:s,saveData:l,type:u,remove:c}},e.useNow=ke,e.useOnMouseMove=function(e,n,o){const r=t.ref(0),a=t.ref(0);let s=e=>{r.value=e.x,a.value=e.y};const[l,u]=f(n)?[void 0,n]:[n,o];u&&(s=L(s,o));const i=k(e,"mousemove",s,l);return{mouseX:r,mouseY:a,remove:i}},e.useOnOutsidePress=function(e,t){if(!I)return()=>{};const n=l(e),o=x.find(e=>"on"+e in document.documentElement);return k(document,o,e=>n.value&&!n.value.contains(e.target)&&t(e),{passive:!0})},e.useOnResize=function(e,n,o){const r=l(e),a=t.ref(r.value&&r.value.clientHeight),s=t.ref(r.value&&r.value.clientWidth);let u=()=>{a.value=r.value.clientHeight,s.value=r.value.clientWidth};const[i,c]=f(n)?[void 0,n]:[n,o];c&&(u=L(u,o));const v=I?k(window,"resize",u,i||w):h;return t.isRef(e)&&!e.value&&t.onMounted(u),{height:a,width:s,remove:v}},e.useOnScroll=function(e,n,o){const r=e=>!(f(e)||v(e)||!p(e)&&!t.isRef(e)||!e),a=r(e)?l(e):t.ref(I&&window||void 0),s=r(e)?a:t.ref(I&&window.document.scrollingElement||void 0),u=t.ref(s.value&&s.value.scrollTop||0),i=t.ref(s.value&&s.value.scrollLeft||0);let c=()=>{u.value=s.value.scrollTop,i.value=s.value.scrollLeft};const d=(...e)=>s.value&&s.value.scrollTo&&s.value.scrollTo.apply(s.value,e),m=e=>d({top:e}),g=e=>d({left:e}),[h,y]=f(e)||!e?[w,e]:f(n)?[w,n]:[n,o];y&&(c=L(c,o));const b=k(a,"scroll",c,h),E=t.watch(u,m,{immediate:!1}),S=t.watch(i,g,{immediate:!1});return{scrollTop:u,scrollLeft:i,scrollTo:d,remove:()=>{b(),S(),E()},scrollTopTo:m,scrollLeftTo:g}},e.useOnline=function(){const e=I&&"onLine"in navigator;return e||(H=t.ref(!1)),H||(H=t.ref(navigator.onLine),window.addEventListener("offline",()=>H.value=!1,w),window.addEventListener("online",()=>H.value=!0,w)),{supported:e,online:H}},e.usePageVisibility=function(){return q||(q=t.ref(I&&document.hidden)),K||(I?(K=t.ref(document.visibilityState),document.addEventListener("visibilitychange",()=>{K.value=document.visibilityState,q.value=document.hidden},w)):K=t.ref("visible")),{visibility:K,hidden:q}},e.usePagination=$e,e.usePath=Re,e.usePerformanceNow=function(e){return ke({refreshMs:e&&e.refreshMs||1e3,sync:!e||!v(e.sync)||e.sync,timeFn:()=>performance.now()})},e.usePromise=T,e.usePromiseLazy=function(e,t=!1){return T(e,{lazy:!0,throwException:t})},e.useRetry=function(e,n){const o=!e||i(e)?{}:e,r=i(e)?e:n;if(!i(e)&&!m(e))throw new Error("[useRetry] options needs to be 'object'");if(r&&!i(r))throw new Error("[useRetry] factory needs to be 'function'");const a=t.ref(!1),s=t.ref(),l=t.ref([]),u={value:!1},c={isRetrying:a,retryCount:t.computed(()=>l.value.length),nextRetry:s,retryErrors:l,[P]:{value:0},[A]:u},v=r?(...e)=>(++c[P].value,D(o,c,r,e)):e=>(++c[P].value,D(o,c,e,void 0));return{...c,cancel:()=>{c.isRetrying.value=!1,c.retryErrors.value.push(new Error("[useRetry] cancelled")),c.nextRetry.value=void 0,u.value=!0},exec:v}},e.useSSRTitle=function(e){const n=Symbol(),o=t.inject(je,n);return o===n||void 0===o?t.ref(c(e)?e:""):(c(e)&&(o.value=e),o)},e.useSessionStorage=Me,e.useShare=function(e){const n=I&&"share"in navigator;let o=()=>Promise.resolve(!1),r=y,a=t.ref(!1),s=t.ref(!1);return n&&(o=e=>(a.value=!1,s.value=!1,navigator.share(e).then(e=>(a.value=!0,e)).catch(e=>(a.value=!1,s.value=!0,!1))),r=e=>navigator.canShare(e),e&&r(e)&&o(e)),{supported:n,share:o,canShare:r,shared:a,cancelled:s}},e.useSharedRef=oe,e.useStorage=function(e,t,n){return void 0===Ce&&(Ce=Se("localStorage").supported),Ce?Ie(e,t,n):Me(e,t)},e.useTimeline=function(e,n){const o=t.ref([]),r=n&&n.clone?n.clone:e=>e,a=n&&n.maxLength||E;return t.watch(e,(e,t)=>{o.value.unshift({item:r(t),date:new Date}),o.value.length>a&&o.value.pop()},{immediate:!1,flush:"sync",...n}),$(o)},e.useTitle=function(e=null){const n=t.ref(c(e)?e:document.title),o=new MutationObserver(e=>{n.value=e[0].target.textContent});t.watch(n,(e,t)=>{c(e)&&e!==t&&(document.title=e)},{immediate:!0,flush:"sync"});const r=document.querySelector("title");return o.observe(r,{childList:!0}),t.onUnmounted(()=>o.disconnect()),n},e.useUndo=function(e,n){const o=l(e),r=t.ref([]),a=t.ref(0),s=n&&n.maxLength||E,u=n&&n.clone||(e=>e),i=t.computed(()=>{const e=0===a.value?1:a.value;return r.value.slice(e)}),c=t.computed(()=>{const e=0===a.value?1:0;return r.value.slice(e,a.value)});t.watch(o,e=>{if(r.value[a.value]===e)return;if(a.value>0){const e=a.value;r.value.splice(0,e),a.value=0}r.value.length>s&&r.value.pop();const t=u(e);r.value.unshift(t)},{...n,immediate:!0,flush:"sync"});const v=e=>{const t=Math.sign(e)<=0?Math.max(e,-c.value.length):Math.min(e,i.value.length);a.value+=t,o.value=r.value[a.value]};return{value:o,undo:(e=1)=>v(e),redo:(e=1)=>v(-e),jump:v,prev:i,next:c}},e.useVModel=function(e,t){console.warn("[useVModel] is not supported on @vue/composition-api.")},e.useValidation=function(e){const n=[],o=Oe({input:e},n),r=t.reactive(o.input);return n.forEach(e=>e(r)),r},e.useValueSync=function(e,n){const o=l(e),r=2===arguments.length?t.isRef(arguments[1])&&u(arguments[1].value)?arguments[1]:t.ref([l(arguments[1])]):t.ref(Array.from(arguments).slice(1).map(e=>l(e)));r.value.forEach(e=>{e.value=o.value});let a=r.value.length;return t.watch([o,r],([e,t])=>{if(a<t.length)t.forEach(t=>{t.value!==e&&(t.value=e)});else{a=t.length;for(const n of t)if(n.value!==e)return void(o.value=n.value)}},{deep:!0}),t.watch(o,e=>{r.value.forEach(t=>t.value=e)},{deep:!0,flush:"sync"}),r},e.useWebSocket=function(e,n){const o=I&&"WebSocket"in window;let r=null;const a=t.ref(null),s=t.ref(null),l=t.ref(null),u=t.ref(!1),i=t.ref(!1),c=t.ref(!1);let v=h,d=h;return o&&(r=new WebSocket(e,n),r.addEventListener("message",e=>{a.value=e,l.value=e.data}),r.addEventListener("error",e=>{s.value=e,c.value=!0}),r.addEventListener("close",()=>{u.value=!1,i.value=!0}),r.addEventListener("open",()=>{u.value=!0,i.value=!1}),v=e=>r.send(e),d=(e,t)=>{r.close(e,t)}),{supported:o,ws:r,send:v,close:d,messageEvent:a,errorEvent:s,data:l,isOpen:u,isClosed:i,errored:c}},e.useWebStorage=Se,e.useWorker=function(e,n,o){const r=I&&"Worker"in self,a=t.ref(),s=t.ref(),l=t.ref(!r),u=t.ref(!r);if(!r)return l.value=!0,{worker:void 0,data:s,postMessage:h,terminate:h,errorEvent:a,errored:u,terminated:l};const i=new Worker(e,o),c=e=>i.postMessage(e);function v(){i.terminate(),l.value=!0}return i.addEventListener("message",e=>{s.value=e.data},w),i.addEventListener("error",e=>{a.value=e,u.value=!0},w),t.onUnmounted(v),n&&c(n),{worker:i,data:s,postMessage:c,terminate:v,errorEvent:a,errored:u,terminated:l}},e.useWorkerFunction=function(e,n){const o=I&&"Worker"in self,r=t.computed(()=>n&&s(n.dependencies)||[]),a=t.computed(()=>n&&s(n.timeout));if(!o)return O(e,{lazy:!0,throwException:!0});const l=O((...n)=>new Promise((o,s)=>{const u=function(e,t){const n=[t.length>0?`importScripts("${t.join('","')}");`:"","onmessage=",`(${te.toString()})(${e.toString()})`],o=new Blob(n,{type:"text/javascript"});return URL.createObjectURL(o)}(e,r.value),i=new Worker(u);let c=-1;const v=a.value,d=()=>{i.terminate(),URL.revokeObjectURL(u),clearTimeout(c),m()},f=n.length===e.length+1&&t.isRef(n[n.length-1])&&!1===n[n.length-1].value?t.computed(()=>l.cancelled.value||n[n.length-1].value):l.cancelled,m=f?t.watch(f,()=>{d(),o(void 0)},{immediate:!1}):h;i.addEventListener("message",e=>{e.data[0]?o(e.data[1]):s(e.data[1]),d()},w),i.addEventListener("error",e=>{d(),s(e)},w),i.postMessage([...n]),v&&(c=setTimeout(()=>{l.cancel(`[WebWorker] timeout after ${v}ms`)},v))}),{lazy:!0,throwException:!0});return l},e.wrap=l,e}({},vueCompositionApi,Vue,devtoolsApi);
var vueComposable=function(e,t,n,o){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var a=r(n);function s(e){return t.isRef(e)?e.value:e}function l(e){return t.isRef(e)?e:t.ref(e)}const u=Array.isArray,i=e=>"function"==typeof e,c=e=>"string"==typeof e,v=e=>"boolean"==typeof e,d=e=>m(e)&&i(e.getTime),f=e=>"number"==typeof e,m=e=>null!==e&&"object"==typeof e,p=e=>m(e)&&!!e.tagName;function g(e){return m(e)&&i(e.then)&&i(e.catch)}const h=()=>{},y=()=>!1,w={passive:!0};function b(e){return new Promise(t=>{setTimeout(t,e)})}const E=2**32-2;function S(e,t,n){return e<t?t:e>n?n:e}const I="undefined"!=typeof window;function M(e,...t){for(let n=0;n<t.length;n++){const o=t[n];if(void 0===o||!m(o))continue;const r=Object.keys(o);for(let t=0;t<r.length;t++){const n=r[t],a=s(o[n]),l=typeof a,u=typeof e[n];void 0!==e[n]&&l!==u||(e[n]=m(a)?M(e[n]||{},a):o[n])}}return e}const C=t.set;function $(e){return t.computed(()=>s(e))}function k(e,n,o,r){let a=h;if(e){const s=l(e),u=e=>e.removeEventListener(n,o),i=e=>e.addEventListener(n,o,r),c=t.watch(s,(e,t,n)=>{e&&(i(e),n(()=>u(e)))},{immediate:!0});a=()=>{u(s.value),c()}}return a}function L(e,t,n){return R(e,t,n)}function R(e,t=50,n={isImmediate:!1}){let o;return function(...r){const a=this,s=n.isImmediate&&void 0===o;void 0!==o&&clearTimeout(o),o=setTimeout((function(){o=void 0,n.isImmediate||e.apply(a,r)}),t),s&&e.apply(a,r)}}const x=["mousedown","touchstart"];function T(e,n){if(!e)throw new Error(`[usePromise] argument can't be '${e}'`);if("function"!=typeof e)throw new Error("[usePromise] expects function, but received "+typeof e);const[o,r]=v(n)?[n,!1]:m(n)?[n.lazy,n.throwException]:[!1,!1],a=t.ref(!1),s=t.ref(null),l=t.ref(null),u=t.ref(),i=async(...t)=>{a.value=!0,s.value=null;const n=t&&e.length!==t.length&&t.length>0&&v(t[t.length-1])?t[t.length-1]:r,o=u.value=e(...t);try{const e=await o;return u.value===o&&(l.value=e),e}catch(e){return u.value===o&&(s.value=e,l.value=null),n?o:void 0}finally{u.value===o&&(a.value=!1)}};return o||i(),{exec:i,result:l,promise:u,loading:a,error:s}}function O(e,n){const o=t.ref(!1);let r=void 0;const a=T((...t)=>{return n=e(...t),new Promise((e,t)=>{r=e=>{o.value=!0,t(e)},n.then(e).catch(t)});var n},n);return!t.getCurrentInstance()||m(n)&&!1===n.unmountCancel||t.onUnmounted(()=>r&&r()),{...a,cancel:e=>{r&&r(e)},cancelled:o}}const P=Symbol(""),A=Symbol(""),D=async(e,t,n,o)=>{const r=t[P].value;let a=-1;const s=e.maxRetries||9001,l=e.retryDelay||j;t.retryErrors.value=[],t.isRetrying.value=!1,t.nextRetry.value=void 0;let u=void 0;do{let e=!1,i=null;try{if(++a,i=o?n(...o):n(),g(i)&&(i=await i),t[A].value)return null;e=!0}catch(e){i=null,t.retryErrors.value.push(e)}if(r!==t[P].value)return i;if(e)return t.isRetrying.value=!1,t.nextRetry.value=void 0,i;if(a>=s)return t.isRetrying.value=!1,t.nextRetry.value=void 0,Promise.reject(new Error("[useRetry] max retries reached "+s));t.isRetrying.value=!0;const c=Date.now(),v=l(a),m=g(v)?await v:v;if(!g(v)||m){if(f(m))u=m;else{if(!d(m))throw new Error(`[useRetry] invalid value received from options.retryDelay '${typeof m}'`);u=m.getTime()}u<c?t.nextRetry.value=c+u:(t.nextRetry.value=u,u-=c),u>0&&await b(u)}if(t[A].value)return null;if(r!==t[P].value)return i}while(a<9e3);return null};const j=()=>0;const F=Symbol("");function U(e,t){i(e.provide)?e.provide(F,t):console.warn("[vue-composable] devtools is not supported for vue 2")}function V(){const e={},n=t.inject(F,e);if(n!==e)return n;console.warn("[vue-composable] devtools not found, please run app.use(VueComposableDevtools)")}let N=void 0;N=e=>{const t=[],n=[];let o;function r(e,t){o?o[e](...t):n.push({type:e,args:t})}e.then(e=>{o=e,async function(e,t,n){setTimeout(async()=>{const o=["addTimelineLayer","addInspector","sendInspectorTree","sendInspectorState","addTimelineEvent"];for(const t of o){for(const o of n.filter(e=>e.type===t))e[t](...o.args);await b(20)}new Set(n.filter(e=>"notifyComponentUpdate"===e.type).map(e=>e.args[0])).forEach(t=>e.notifyComponentUpdate(t)),t.forEach(t=>e.on[t.type](...t.args)),t.length=0,n.length=0},100)}(o,t,n)});return{notifyComponentUpdate(e){r("notifyComponentUpdate",arguments)},addTimelineLayer(e){r("addTimelineLayer",arguments)},addTimelineEvent(e){r("addTimelineEvent",arguments)},addInspector(e){r("addInspector",arguments)},sendInspectorTree(e){r("sendInspectorTree",arguments)},sendInspectorState(e){r("sendInspectorState",arguments)},on:{transformCall(e){o?o.on.transformCall(e):t.push({type:"transformCall",args:arguments})},getAppRecordName(e){o?o.on.getAppRecordName(e):t.push({type:"getAppRecordName",args:arguments})},getAppRootInstance(e){o?o.on.getAppRootInstance(e):t.push({type:"getAppRootInstance",args:arguments})},registerApplication(e){o?o.on.registerApplication(e):t.push({type:"registerApplication",args:arguments})},walkComponentTree(e){o?o.on.walkComponentTree(e):t.push({type:"walkComponentTree",args:arguments})},walkComponentParents(e){o?o.on.walkComponentParents(e):t.push({type:"walkComponentParents",args:arguments})},inspectComponent(e){o?o.on.inspectComponent(e):t.push({type:"inspectComponent",args:arguments})},getComponentBounds(e){o?o.on.getComponentBounds(e):t.push({type:"getComponentBounds",args:arguments})},getComponentName(e){o?o.on.getComponentName(e):t.push({type:"getComponentName",args:arguments})},getElementComponent(e){o?o.on.getElementComponent(e):t.push({type:"getElementComponent",args:arguments})},getInspectorTree(e){o?o.on.getInspectorTree(e):t.push({type:"getInspectorTree",args:arguments})},getInspectorState(e){o?o.on.getInspectorState(e):t.push({type:"getInspectorState",args:arguments})}}}};var W=N;const B=(e,t="vue-composable",n="Vue-composable devtools plugin")=>{const r=new Promise(r=>{o.setupDevtoolsPlugin({id:t,label:n,app:e},r)});U(e,W(r))},z={install:(e,t={id:"vue-composable",label:"Vue-composable devtools plugin"})=>B(e,t.id,t.label)};function _(e){return e&&(v(e.isJson)||v(e.parseImmediate)||v(e.unmountCancel))}let H=void 0;let K=void 0,q=void 0;let J=void 0,Q=void 0;function X(e,n){const o=I&&"BroadcastChannel"in self,r=t.ref(null),a=t.ref(null),s=t.ref(null),l=t.ref(!1),u=t.ref(!1);let i=h,c=h,v=h;if(o){const o=new BroadcastChannel(e);o.addEventListener("messageerror",e=>{s.value=e,l.value=!0},w),o.addEventListener("message",e=>{a.value=e,r.value=e.data},w),i=e=>o.postMessage(e),c=()=>{o.close(),u.value=!0},v=(e,n)=>{o.addEventListener("message",e,n),t.onUnmounted(()=>o.removeEventListener("message",e))},t.onUnmounted(()=>{n&&n(),c()})}return{supported:o,data:r,messageEvent:a,errorEvent:s,errored:l,isClosed:u,send:i,close:c,addListener:v}}function Y(e,t){const n=getComputedStyle(e).getPropertyValue(t);return n?n.trim():null}function G(e,t,n){e.style.setProperty(t,n)}const Z={attributes:!0,childList:!0,subtree:!0},ee=e=>e.length<=2||"-"!==e[0]||"-"!==e[1]?"--"+e:e;const te=e=>function(t){const n=t.data||[];return new Promise(t=>{try{Promise.resolve(e.apply(e,n)).then(e=>t(postMessage([!0,e]))).catch(e=>t(postMessage([!1,e])))}catch(e){t(postMessage([!1,e]))}})};function ne(e){const n=!!I&&"matchMedia"in window;let o=void 0,r=void 0,a=h;if(n){o=t.ref(matchMedia(e)),r=t.ref(o.value.matches);const n=e=>{r.value=e.matches};o.value.addEventListener("change",n,w);const a=()=>o.value.removeEventListener("change",n);t.onUnmounted(a)}else o=t.ref({}),r=t.ref(!1);return{supported:n,mediaQueryList:o,matches:r,remove:a}}function oe(e,n){const{addListener:o,send:r,close:a,supported:s}=X(e,()=>h()),l=Date.now(),u=t.ref(!1),i=t.ref(0),c=t.computed(()=>1!==i.value||u.value),v=t.ref([]),d=t.ref(n);let f=!1,p=void 0;r({type:0});const g=()=>r({type:5,id:l}),h=()=>{0!==v.value.length&&(u.value&&r({type:3,mind:1,id:Math.min(...v.value)}),r({type:4,id:l}))};return o(e=>{switch(e.data.type){case 0:r({type:2,value:d.value,mind:i.value});break;case 4:{const t=v.value.indexOf(e.data.id);t>=0&&v.value.splice(t,1),p===e.data.id&&v.value.length>0&&r({type:3,mind:1,id:Math.min(l,...v.value)});break}case 2:f=!0,d.value=e.data.value,i.value=e.data.mind;break;case 3:i.value=e.data.mind,p=1===e.data.mind&&e.data.id||void 0,u.value=p===l,u.value&&(v.value=[],g());break;case 5:v.value=[e.data.id],r({type:6,id:l});break;case 6:v.value.push(e.data.id)}},w),g(),t.watch(d,(e,t)=>{if(f)f=!1;else{if(1===i.value&&!1===u.value)return f=!0,void(d.value=t);r({type:2,mind:i.value,value:m(e)?{...e}:e}),f=!1}},{deep:!0,immediate:!1}),I&&window.addEventListener("unload",h,w),t.onUnmounted(()=>{h(),a()}),{supported:s,id:l,data:d,master:u,mind:i,editable:c,targets:v,ping:g,setMind:e=>{switch(e){case 1:u.value=!0;break;case 0:u.value=!1}i.value=e,r({type:3,id:l,mind:i.value})},addListener:o}}const re="no-scroll";function ae(e,n){const o=Symbol(),r=t.inject(e,o);return r===o?n():r}function se(e,n){const o=l(n),r=l(e);return m(o.value)||t.isRef(n)?[void 0!==r.value?r:void 0,o]:!m(r.value)||u(r.value)||c(r.value)?[r.value?r:void 0,void 0]:[void 0,r]}function le(e,n){const[o,r]=se(e,n),a=t.computed(()=>new Intl.NumberFormat(s(o),s(r))),l=(e,t,n)=>(t||n?new Intl.NumberFormat(s(n)||s(o),{...s(r),...s(t)}):a.value).format(s(e));return{format:(e,n,o)=>t.computed(()=>l(e,n,o)),formatString:l,formatter:a}}function ue(e){if(e)return f(e)?e:ie(e)}const ie=e=>{const t=e.match(/^(\d+)px$/);if(t)return+t[1]};function ce(e){const n={},o=new Map,r=t.ref();let a=[];const s=[];for(const r in e){const l=e[r],u=ue(l);if(void 0!==u){const e=t.ref(!1);n[r]=e,o.set(u,{name:r,valid:e}),a.push(u)}else{const{matches:e,remove:t}=ne(l);n[r]=e,s.push(t)}}a=a.sort((e,t)=>t-e);const l=I?()=>{const e=window.innerWidth;let t=void 0;for(let n=0;n<a.length;n++){const r=a[n],s=o.get(r);s.valid.value=e>=r,e>=r&&void 0===t&&(t=s.name)}r.value=t}:h,u=L(l,10),i=I?()=>window.removeEventListener("resize",u):h;return I&&(t.onMounted(()=>{l(),window.addEventListener("resize",u,w)}),t.onUnmounted(()=>{i(),s.forEach(e=>e())})),{...n,remove:i,current:r}}const ve=Symbol(""),de={sm:640,md:768,lg:1024,xl:1280};function fe(e){return m(e)&&m(e.theme)&&m(e.theme.screens)}function me(e){return!!m(e)&&(c(e.min)||c(e.max)||f(e.min)||f(e.max))}function pe(e){return f(e)?e+"px":e}function ge(e){const t=[];if(u(e)){const n=e.map(ge);for(let e=0;e<n.length;e++){const o=n[e];t.push(...o)}}else m(n=e)&&c(n.raw)?t.push(e.raw):me(e)?t.push(function(e){return me(e)?`(${[e.max&&"max-width: "+pe(e.max),e.min&&"min-width: "+pe(e.min)].filter(Boolean).join(" and ")})`:""}(e)):(c(e)||f(e))&&t.push(`(min-width: ${pe(e)})`);var n;return t}function he(e){const n=fe(e)?e.theme.screens:e;if(fe(e))for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];m(t)?n[e]=ge(n[e]).join(" or "):c(t)&&(t.endsWith("px")||(n[e]=ge(n[e]).join(" or ")))}const o=ce(n);return t.provide(ve,o),o}function ye(e,t){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&(t&&0!==t.length||!1)}function we(e){try{if(!e)return!1;const t=":$";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return ye(t,e)}}function be(e,t){try{return e.parse(t)}catch{return t}}let Ee=void 0;function Se(e,n=JSON,o=10){const r=I?window[e]:void 0,a=we(r);Ee||(Ee=new Map,I&&window.addEventListener("storage",e=>{if(e.newValue===e.oldValue)return;let t=Ee.get("localStorage");t=e.storageArea===window.localStorage?Ee.get("localStorage"):Ee.get("sessionStorage"),t&&Object.keys(t.$syncKeys).length>0&&(null===e.key?t.clear():t.$syncKeys[e.key]&&(null===e.newValue?t.removeItem(e.key):t.updateItem(e.key,e.newValue)))}));let s,u=Ee.get(e);return a&&r?u?s=u.$quotaError:(s=t.ref(!1),u={$refMap:new Map,$watchHandlers:new Map,$syncKeys:{},$quotaError:s,key:r.key,length:r.length,setSync(e,t){t?this.$syncKeys[e]=!0:delete this.$syncKeys[e]},clear(){this.$refMap.forEach((e,t)=>this.removeItem(t))},removeItem(e){const t=this.$refMap.get(e);t&&(t.value=void 0);const n=this.$watchHandlers.get(e);n&&n(),delete this.$syncKeys[e],this.$refMap.delete(e),r.removeItem(e)},getItem(e){const t=r.getItem(e);return t?this.setItem(e,be(n,t)):null},setItem(e,a){const u=l(a);this.$refMap.set(e,u);const i=(e,t)=>{try{const o=r.getItem(e),a=c(t)?t:n.stringify(t);r.setItem(e,a),o!==a&&I&&this.$syncKeys[e]&&window.dispatchEvent(new StorageEvent(e,{newValue:a,oldValue:o,storageArea:r}))}catch(e){s.value=ye(e,r)}};i(e,a);const v=t.watch(u,R(t=>{i(e,t)},o),{immediate:!1,deep:!0});return this.$watchHandlers.set(e,v),u},updateItem(e,t){let o=this.$refMap.get(e);o&&(o.value=be(n,t))}},Ee.set(e,u)):(s=t.ref(!1),u={}),{supported:a,quotaError:s,store:u,remove:()=>Ee.delete(e)}}function Ie(e,n,o){const{supported:r,store:a}=Se("localStorage");let s=h,l=h,u=h,i=void 0;return r&&a?(u=t=>a.setSync(e,t),s=()=>a.removeItem(e),l=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n)),!1!==o&&u(!0)):i=t.ref(n),{supported:r,storage:i,clear:l,remove:s,setSync:u}}function Me(e,n,o){const{supported:r,store:a}=Se("sessionStorage");let s=h,l=h,u=y,i=void 0;return r&&a?(s=()=>a.removeItem(e),l=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n))):i=t.ref(n),{supported:r,storage:i,clear:l,remove:s,setSync:u}}let Ce=void 0;function $e(e){const n=l(e.currentPage),o=l(e.pageSize),r=t.ref(0),a=l(e.total),s=t.computed({get:()=>r.value,set(e){f(e)&&(r.value=Math.min(e,a.value))}}),u=t.computed({get:()=>n.value,set(e){f(e)&&(n.value=S(e,1,c.value),s.value=(n.value-1)*i.value)}}),i=t.computed({get:()=>o.value,set(e){f(e)&&(o.value=e)}}),c=t.computed(()=>Math.ceil(a.value/i.value));u.value=n.value;return t.watch([a,i],e=>{u.value>c.value&&(u.value=c.value)},{immediate:!1}),{pageSize:i,total:a,currentPage:u,offset:s,lastPage:c,next:()=>++u.value,prev:()=>--u.value,first:()=>u.value=1,last:()=>u.value=c.value}}function ke(e){const n=1e3,o=e&&e.refreshMs||n,r=!e||!v(e.sync)||e.sync,a=e&&i(e.timeFn)&&e.timeFn||Date.now;let s=void 0,l=void 0;const u=t.ref(a()),c=()=>{clearInterval(s),clearTimeout(l)},d=I?()=>s=setInterval(()=>u.value=a(),o):h;if(r){const e=n-(u.value-Math.floor(u.value/n)*n);l=setTimeout(d,e)}else d();return t.onUnmounted(c),{now:u,remove:c}}function Le(e,n){return t.computed(()=>{const o=s(e);if(!n)return o;const r=t.isRef(n)?t.reactive(n.value):t.reactive(n);return o.replace(/({?{[\w\s]*}?})/g,e=>{const t=e.replace("{","").replace("}","").trim();if(e[0]===e[1]&&"{"===e[0])return""+t;const n=u(r)?r[+t]:r[t];return void 0===n?e:""+s(n)})})}function Re(e,n,o=".",r=h){return t.computed(()=>{const t=s(e),a=s(n);if(void 0===t)return r(a,t,a,t);if(!a)return t;const l=a.split(o);let u=t;for(let e=0;e<l.length;e++){let n=l[e];if("]"===n[n.length-1]){const t=/\[[`'"]?([^`'"\]]*)[`'"]?\]/g;let o=n,r=t.exec(o);if(r){let a=r[0].length,s=r.index-a,u=1;do{r.index,s=r.index,a=r[0].length,n=n.slice(0,-r[0].length),l.splice(e+u,0,r[1]),++u}while(r=t.exec(o));if(!n&&"["===o[0]&&o.length>2)continue}else n="",console.warn(`[usePath] invalid path provided "${o}"`)}if(!m(u))return r(l.slice(0,e+1).join(o),u,a,t);if(!n)return r(l.slice(0,e+1).join(o),u,a,t);if(u=u[n],!u)return r(l.slice(0,e+1).join(o),u,a,t)}return u})}function xe(e){return void 0!==e.$value}const Te=(e,n,o)=>{const{$message:r,$validator:a,...l}=function(e){return m(e)}(n)?n:{$validator:n,$message:void 0},{$pending:u,$promise:i,$invalid:c,$error:v}=((e,n,o,r)=>{const a=t.ref(null),l=t.ref(!1),u=t.ref(),i=t.ref(!1);let c=void 0;const v=e=>{a.value=(async()=>{try{l.value=!0;const t=n(e,c);g(t)?i.value=!await t:i.value=!t,u.value=i.value?o.value:void 0}catch(e){throw i.value=!0,e}finally{l.value=!1}})().catch(e=>(u.value=s(e),i.value=!0,e))};return r.push(o=>{c=o,t.watch(()=>{try{n(e.value,c)}catch(e){}return e.value},v,{deep:!0,immediate:!0})}),{$promise:a,$pending:l,$invalid:i,$error:u}})(e,a,t.ref(r),o);return{$pending:u,$error:v,$promise:i,$invalid:c,$message:r,...l}},Oe=(e,n)=>{const o={},r=xe(e)?l(e.$value):void 0;for(const a of Object.keys(e))if("$"!==a[0])if(r){const t=Te(r,e[a],n);o[a]={...t,$value:r}}else{const r=Oe(e[a],n);let l,u,i=void 0;if(xe(r)){const e=Object.keys(r).filter(e=>"$"!==e[0]).map(e=>r[e]);l=t.computed(()=>e.map(e=>e.$error).map(e=>s(e)).filter(Boolean)),u=t.computed(()=>e.some(e=>!!s(e.$invalid)))}else{const e=Object.keys(r).map(e=>r[e]);l=t.computed(()=>e.map(e=>s(e.$errors)).filter(Boolean).filter(e=>e.some(Boolean))),i=t.computed(()=>e.some(e=>e.$anyDirty||v(s(e.$dirty))&&s(e.$dirty))),u=t.computed(()=>e.some(e=>!!s(e.$anyInvalid)))}o[a]={...r,$errors:l,$anyInvalid:u},i&&(o[a].$anyDirty=i)}else{if("$value"===a){o[a]=r;const e=t.ref(!1),n=t.watch(r,()=>{e.value=!0,n()},{immediate:!1,deep:!0});o.$dirty=e;continue}o[a]=e[a]}return o};const Pe=Symbol("");function Ae(e){const n=t.ref(Object.keys(e.messages)),o=t.ref(e.messages),r=t.ref(e.locale),u=t.ref({});let c=t.ref();const d={},f=(e,n)=>{if(d[e])return d[e];const o=n.value[e];if(!o)return t.ref({});let r=i(o)?o():o;return g(r)?r.then(t=>d[e]=l(t)):i(o)?l(r):d[e]=t.computed(()=>n.value[e])},m=!!e.fallback&&(!v(e.notFoundFallback)||e.notFoundFallback);let p=!1;if(m){const t=f(e.fallback,o);g(t)?(t.then(e=>{c.value=e.value}),p=!0):c.value=t.value}else c.value={};const h=t.ref(0);t.watch(o,()=>h.value++,{deep:!0,immediate:!1}),t.watch([r,c,h],([t,n,r])=>{if(t===e.fallback&&m)u.value=n;else{const e=e=>u.value=M({},n,s(e)),r=f(t,o);g(r)?r.then(e):e(r)}},{immediate:!p});const y=(t,n)=>e.resolve?l(e.resolve(u.value,t,n)):Le(Re(u,t,".",(e,t,n,o)=>n),n);return{locale:r,locales:n,i18n:u,$t:y,$ts:(e,t)=>y(e,t).value,addLocale:(e,t)=>{n.value.indexOf(e)>=0||n.value.push(e),delete d[e],C(o.value,e,t)},removeLocale:t=>{const s=n.value.indexOf(t);if(s>=0){const o=[r.value,c.value&&e.fallback,...n.value].find(e=>e&&e!==t);o&&(t===e.fallback&&(c.value=void 0),t===r.value&&(r.value=o)),n.value.splice(s,1)}var l,u;l=o.value,u=t,a.delete(l,u),delete d[t]}}}function De(e){const n=Ae(e);return t.provide(Pe,n),n}const je=Symbol("");const Fe=Symbol(""),Ue={install(e){$(t.ref(!0))}};return e.COMMIT="9ef375a",e.FALSE_OP=y,e.MAX_ARRAY_SIZE=E,e.NO_OP=h,e.PASSIVE_EV=w,e.SCROLL_LOCK_CLASS=re,e.UseDevtoolsApp=B,e.VERSION="1.0.0-beta.7",e.VUE_VERSION="2",e.VueComposableDevtools=z,e.buildI18n=Ae,e.debounce=R,e.deepClone=M,e.exponentialDelay=e=>{const t=100*Math.pow(2,e);return t+.2*t*Math.random()},e.exposeWorker=function(e){this.onmessage=async t=>{const n=e(t.data);if(void 0===n)this.postMessage(n);else if(null===n)this.postMessage(n);else if(u(n))this.postMessage(n);else if(n[Symbol.asyncIterator])for await(const e of n)this.postMessage(e);else if(n[Symbol.iterator])for(const e of n)this.postMessage(e);else this.postMessage(await n)}},e.getCssVariableFor=Y,e.getDevtools=V,e.hydrationPlugin=Ue,e.injectFactory=ae,e.isArray=u,e.isBoolean=v,e.isClient=I,e.isDate=d,e.isElement=p,e.isFunction=i,e.isNumber=f,e.isObject=m,e.isPromise=g,e.isString=c,e.isSymbol=e=>"symbol"==typeof e,e.minMax=S,e.noDelay=j,e.promisedTimeout=b,e.provideSSRTitle=function(e,t){const n=l(void 0===t?"":t);return e.provide(je,n),n},e.refShared=function(e,n){const o=t.getCurrentInstance(),r=n||o.$vnode.tag;if(!r)return t.ref(e);const{data:a,supported:s}=oe(r,e);return a},e.setBreakpointTailwindCSS=he,e.setCssVariableFor=G,e.setDevtools=U,e.setI18n=De,e.storageAvailable=we,e.unwrap=s,e.useArrayPagination=function(e,n){const o=l(e),r=$e({currentPage:1,pageSize:10,...n,total:t.computed(()=>o.value.length)}),a=t.computed(()=>{const e=o.value;return Array.isArray(e)?e.slice(r.offset.value,r.offset.value+r.pageSize.value):[]});return{...r,result:a}},e.useBreakpoint=ce,e.useBreakpointChrome=function(){return ce({mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560})},e.useBreakpointTailwindCSS=function(e){return ae(ve,()=>he(e||de))},e.useBroadcastChannel=X,e.useCancellablePromise=O,e.useCssVariables=function(e,n,o){const r=I&&"MutationObserver"in self,[a,u]=t.isRef(n)||p(n)?[n,o||Z]:[r&&document.documentElement||{},n||Z],i=t.ref(!0),v={},d=[],f=Object.entries(e).map(e=>{const[t,n]=c(e[1])?[e[1]]:[e[1].name,e[1].value];return n&&(d.push(()=>G(s(a),t,s(n))),v[e[0]]=l(n)),[e[0],ee(t)]});for(let e=0;e<f.length;e++){const[n,o]=f[e];v[n]||(v[n]=t.ref(t.isRef(a)&&!a.value||!r?null:Y(s(a),o))),r&&t.watch([v[n],l(a)],e=>{i&&e[1]&&e[0]!==Y(e[1],o)&&G(e[1],o,e[0])},{immediate:!t.isRef(a)})}if(!r)return{...v,stop:h,resume:h,supported:r,observing:i};const m=()=>{for(let e=0;e<f.length;e++){const[t,n]=f[e];v[t].value=Y(s(a),n)}},g=new MutationObserver(m),y=()=>{g.disconnect(),i.value=!1},w=()=>{i.value||m(),g.observe(s(a),u),i.value=!0};return t.onUnmounted(y),t.isRef(a)?t.onMounted(()=>{d.forEach(e=>e()),t.watch(a,(e,t)=>{t&&y(),e&&w()})}):(I||a)&&(d.forEach(e=>e()),w()),{...v,supported:r,resume:w,stop:y,observing:i}},e.useCurrencyFormat=function(e,n,o){const r=s(e),a=!m(r),l=a?e:t.computed(()=>s(e).currency),[u,i]=se(n,a?o:e),c=t.computed(()=>{const e=s(i)||{},t=s(l)||e.currency;return{style:"currency",...e,currency:t}}),v=le(u),d=(e,t,n,o,r)=>{const a={...c.value,...s(o)},l=s(t)||a.currency,u=s(n)||a.currencyDisplay;return v.formatString(e,{...a,currency:l,currencyDisplay:u},r)};return{format:(e,n,o,r,a)=>t.computed(()=>d(e,n,o,r,a)),formatString:d}},e.useDateNow=function(e){return ke({refreshMs:e&&e.refreshMs||1e3,sync:!e||!v(e.sync)||e.sync,timeFn:Date.now})},e.useDebounce=L,e.useDevtoolsInpector=function(e,n=[]){const o=V(),r=t.ref(n),a=t.computed(()=>{if(!r.value)return new Map;const e=t.toRaw(r.value),n=new Map;for(const t of e)n.set(t.id,t);return n});if(o){const n=e.id;o.addInspector(e),o.on.getInspectorTree(o=>{if(o.inspectorId!=n)return;if(console.log(),!r.value)return;const a=o.filter;let s=t.toRaw(r.value);o.filter&&(s=e.nodeFilter?e.nodeFilter(o.filter,s):s.filter(e=>e.id.indexOf(a)>=0||e.label.indexOf(a)>=0)),o.rootNodes=s}),o.on.getInspectorState(o=>{if(o.inspectorId!=n)return;const r=a.value.get(o.nodeId);if(r){const n=t.reactive(r.state);o.state=e.stateFilter?e.stateFilter("",n):n}}),t.watch(r,()=>{o.sendInspectorTree(n),o.sendInspectorState(n)},{immediate:!0,deep:!0})}return{nodes:r}},e.useDevtoolsTimelineLayer=function(e,t,n){const o=V();let r=h,a=h;return o&&(o.addTimelineLayer({id:e,label:t,color:n}),r=(t,n)=>o.addTimelineEvent({layerId:e,event:t,all:n}),a=e=>r({...e,time:Date.now()})),{id:e,addEvent:r,pushEvent:a}},e.useEvent=k,e.useFetch=function(e,n){const o=t.ref(null),r=t.ref(""),a=t.ref(),s=t.ref(null),[l,u,i]=_(e)?[!1!==e.isJson,!1!==e.parseImmediate,!1!==e.unmountCancel]:_(n)?[!1!==n.isJson,!1!==n.parseImmediate,!1!==n.unmountCancel]:[!0,!0,!0],v=e?c(e)?n:_(e)?e:c(e.url)?n:e:void 0,d=t.ref(!1),f=t.ref();let m=void 0;const p=e=>{m&&(m.abort(),d.value=!0,f.value=e)},g=T(async(e,t)=>{m=new AbortController;const n=await fetch(e,{signal:m.signal,...v,...t});if(n){const e=[l?n.clone().json().then(e=>o.value=e).catch(e=>{o.value=null,s.value=e}):Promise.resolve(),n.clone().blob().then(e=>{a.value=e}),n.clone().text().then(e=>{r.value=e})];u&&await Promise.all(e)}return n},!0),h=t.computed(()=>g.result.value&&g.result.value.status||null),y=t.computed(()=>g.result.value&&g.result.value.statusText||null);return e&&(c(e)||c(e.url))&&g.exec(e,void 0,!1),i&&t.getCurrentInstance()&&t.onUnmounted(()=>{m&&p("unmounted")}),{...g,cancel:p,isCancelled:d,cancelledMessage:f,text:r,blob:a,json:o,jsonError:s,status:h,statusText:y}},e.useFormat=Le,e.useGeolocation=function(e){const n=I&&!!navigator.geolocation,o=t.ref(e?!1===e.immediate:void 0),r=t.ref(null),a=t.ref(null),s=t.ref(null),l=t.ref(e&&e.enableHighAccuracy||null);let u=h;if(n){const n=e=>{a.value=e.timestamp,s.value=e.coords,r.value=null},i=e=>{a.value=Date.now(),s.value=null,r.value=e},c=()=>!0!==o.value&&f&&navigator.geolocation.clearWatch(f);let d=()=>navigator.geolocation.getCurrentPosition(n,i,e);u=o.value?()=>{o.value?o.value=!1:d()}:d;let f=0;t.onMounted(()=>t.watch([l,o],t=>{c();const o=v(t[0])?t[0]:e?e.enableHighAccuracy:void 0;f=navigator.geolocation.watchPosition(n,i,e?{...e,enableHighAccuracy:o}:{enableHighAccuracy:o})},{immediate:!o.value})),t.onUnmounted(c)}return{supported:n,refresh:u,error:r,timestamp:a,coords:s,highAccuracy:l}},e.useHydration=function(){return t.inject(Fe,t.computed(()=>!1))},e.useI18n=function(e){return e?De(e):t.inject(Pe)},e.useIntersectionObserver=function(e,n){const o=I&&"IntersectionObserver"in window,r=e?l(e):void 0,a=!r||!p(r.value)&&r.value?void 0:r,u=t.computed(()=>n?s(n):a?void 0:s(e)),i=t.ref([]),c=t.computed(()=>i.value.length>0&&i.value.every(e=>e.isIntersecting)),v=e=>{i.value=e};let d=t.ref();o&&t.watch(u,e=>{d.value&&d.value.disconnect();const t=e&&e&&{root:s(e.root),rootMargin:s(e.rootMargin),threshold:s(e.threshold)}||void 0;d.value=new IntersectionObserver(v,t);i.value.map(e=>e.target).forEach(d.value.observe)},{deep:!0,immediate:!0});const f=o?e=>{const t=s(e);d.value.observe(t)}:h,m=o?e=>{const t=s(e);d.value.unobserve(t)}:h,g=()=>d.value.disconnect();return a&&(t.onMounted(()=>{a.value&&f(a)}),t.onUnmounted(()=>{g()})),{supported:o,elements:i,observe:f,unobserve:m,disconnect:g,isIntersecting:c}},e.useInterval=function(e,n,...o){let r=void 0;const a=(t,...a)=>{if(s(),!t&&!n)return;return r=setInterval(e,t||n,...a&&a.length?a:o)},s=()=>{r&&(clearInterval(r),r=void 0)};return f(n)&&a(),t.onUnmounted(s),{remove:s,start:a}},e.useIntlDateTimeFormat=function(e,n){const[o,r]=se(e,n),a=t.computed(()=>new Intl.DateTimeFormat(s(o),s(r))),l=(e,t,n)=>{const l=t||n?new Intl.DateTimeFormat(s(n)||s(o),{...s(r),...s(t)}):a.value,u=s(e);return l.format(c(u)?new Date(u):u)};return{format:(e,n,o)=>t.computed(()=>l(e,n,o)),formatString:l,formatter:a}},e.useIntlNumberFormat=le,e.useLanguage=function(){if(J||(J=I?t.ref(navigator.language):t.ref("")),!Q)if(I){Q=t.ref(navigator.languages);const e=()=>{J.value=navigator.language,Q.value=navigator.languages};window.addEventListener("languagechange",e,w)}else Q=t.ref([]);return{language:J,languages:Q}},e.useLocalStorage=Ie,e.useLockScroll=function(e,n){const o=c(e)?t.ref([]):u(t.unref(e))?l(e):l([e]),r=c(n)?{lockedClass:n,auto:!0}:n||{auto:!0};r.lockedClass||(r.lockedClass=re);const a=t.ref(!1),i=t.computed(()=>o.value.map(e=>t.ref(e))),v=t.watch([a,i],([e,t],[n,o])=>{for(const a of t){const t=s(a);if(r.lockedClass){if(!t)return;t.classList.toggle(r.lockedClass,e)}r.onChange&&(n===e&&o.find(e=>s(e)===t)||r.onChange(t,e))}},{flush:"sync",deep:!1}),d=()=>a.value=!0,f=()=>a.value=!1;return c(e)&&t.onMounted(()=>o.value=Array.from(document.querySelectorAll(e))),!1!==r.auto&&(t.onMounted(d),t.onActivated(d),t.onDeactivated(f),t.onBeforeUnmount(f)),{locked:a,lock:d,unlock:f,remove:v}},e.useMatchMedia=ne,e.useNetworkInformation=function(){const e=!!I&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection),n=!!e,o=t.ref(0),r=t.ref(0),a=t.ref("none"),s=t.ref(0),l=t.ref(!1),u=t.ref("none");let i=h,c=h;return e&&(i=()=>{o.value=e.downlink,r.value=e.downlinkMax,a.value=e.effectiveType,s.value=e.rtt,l.value=e.saveData,u.value=e.type},c=k(e,"change",i,w),i()),{supported:n,downlink:o,downlinkMax:r,effectiveType:a,rtt:s,saveData:l,type:u,remove:c}},e.useNow=ke,e.useOnMouseMove=function(e,n,o){const r=t.ref(0),a=t.ref(0);let s=e=>{r.value=e.x,a.value=e.y};const[l,u]=f(n)?[void 0,n]:[n,o];u&&(s=L(s,o));const i=k(e,"mousemove",s,l);return{mouseX:r,mouseY:a,remove:i}},e.useOnOutsidePress=function(e,t){if(!I)return()=>{};const n=l(e),o=x.find(e=>"on"+e in document.documentElement);return k(document,o,e=>n.value&&!n.value.contains(e.target)&&t(e),{passive:!0})},e.useOnResize=function(e,n,o){const r=l(e),a=t.ref(r.value&&r.value.clientHeight),s=t.ref(r.value&&r.value.clientWidth);let u=()=>{a.value=r.value.clientHeight,s.value=r.value.clientWidth};const[i,c]=f(n)?[void 0,n]:[n,o];c&&(u=L(u,o));const v=I?k(window,"resize",u,i||w):h;return t.isRef(e)&&!e.value&&t.onMounted(u),{height:a,width:s,remove:v}},e.useOnScroll=function(e,n,o){const r=e=>!(f(e)||v(e)||!p(e)&&!t.isRef(e)||!e),a=r(e)?l(e):t.ref(I&&window||void 0),s=r(e)?a:t.ref(I&&window.document.scrollingElement||void 0),u=t.ref(s.value&&s.value.scrollTop||0),i=t.ref(s.value&&s.value.scrollLeft||0);let c=()=>{u.value=s.value.scrollTop,i.value=s.value.scrollLeft};const d=(...e)=>s.value&&s.value.scrollTo&&s.value.scrollTo.apply(s.value,e),m=e=>d({top:e}),g=e=>d({left:e}),[h,y]=f(e)||!e?[w,e]:f(n)?[w,n]:[n,o];y&&(c=L(c,o));const b=k(a,"scroll",c,h),E=t.watch(u,m,{immediate:!1}),S=t.watch(i,g,{immediate:!1});return{scrollTop:u,scrollLeft:i,scrollTo:d,remove:()=>{b(),S(),E()},scrollTopTo:m,scrollLeftTo:g}},e.useOnline=function(){const e=I&&"onLine"in navigator;return e||(H=t.ref(!1)),H||(H=t.ref(navigator.onLine),window.addEventListener("offline",()=>H.value=!1,w),window.addEventListener("online",()=>H.value=!0,w)),{supported:e,online:H}},e.usePageVisibility=function(){return q||(q=t.ref(I&&document.hidden)),K||(I?(K=t.ref(document.visibilityState),document.addEventListener("visibilitychange",()=>{K.value=document.visibilityState,q.value=document.hidden},w)):K=t.ref("visible")),{visibility:K,hidden:q}},e.usePagination=$e,e.usePath=Re,e.usePerformanceNow=function(e){return ke({refreshMs:e&&e.refreshMs||1e3,sync:!e||!v(e.sync)||e.sync,timeFn:()=>performance.now()})},e.usePromise=T,e.usePromiseLazy=function(e,t=!1){return T(e,{lazy:!0,throwException:t})},e.useRetry=function(e,n){const o=!e||i(e)?{}:e,r=i(e)?e:n;if(!i(e)&&!m(e))throw new Error("[useRetry] options needs to be 'object'");if(r&&!i(r))throw new Error("[useRetry] factory needs to be 'function'");const a=t.ref(!1),s=t.ref(),l=t.ref([]),u={value:!1},c={isRetrying:a,retryCount:t.computed(()=>l.value.length),nextRetry:s,retryErrors:l,[P]:{value:0},[A]:u},v=r?(...e)=>(++c[P].value,D(o,c,r,e)):e=>(++c[P].value,D(o,c,e,void 0));return{...c,cancel:()=>{c.isRetrying.value=!1,c.retryErrors.value.push(new Error("[useRetry] cancelled")),c.nextRetry.value=void 0,u.value=!0},exec:v}},e.useSSRTitle=function(e){const n=Symbol(),o=t.inject(je,n);return o===n||void 0===o?t.ref(c(e)?e:""):(c(e)&&(o.value=e),o)},e.useSessionStorage=Me,e.useShare=function(e){const n=I&&"share"in navigator;let o=()=>Promise.resolve(!1),r=y,a=t.ref(!1),s=t.ref(!1);return n&&(o=e=>(a.value=!1,s.value=!1,navigator.share(e).then(e=>(a.value=!0,e)).catch(e=>(a.value=!1,s.value=!0,!1))),r=e=>navigator.canShare(e),e&&r(e)&&o(e)),{supported:n,share:o,canShare:r,shared:a,cancelled:s}},e.useSharedRef=oe,e.useStorage=function(e,t,n){return void 0===Ce&&(Ce=Se("localStorage").supported),Ce?Ie(e,t,n):Me(e,t)},e.useTimeline=function(e,n){const o=t.ref([]),r=n&&n.clone?n.clone:e=>e,a=n&&n.maxLength||E;return t.watch(e,(e,t)=>{o.value.unshift({item:r(t),date:new Date}),o.value.length>a&&o.value.pop()},{immediate:!1,flush:"sync",...n}),$(o)},e.useTitle=function(e=null){const n=t.ref(c(e)?e:document.title),o=new MutationObserver(e=>{n.value=e[0].target.textContent});t.watch(n,(e,t)=>{c(e)&&e!==t&&(document.title=e)},{immediate:!0,flush:"sync"});const r=document.querySelector("title");return o.observe(r,{childList:!0}),t.onUnmounted(()=>o.disconnect()),n},e.useUndo=function(e,n){const o=l(e),r=t.ref([]),a=t.ref(0),s=n&&n.maxLength||E,u=n&&n.clone||(e=>e),i=t.computed(()=>{const e=0===a.value?1:a.value;return r.value.slice(e)}),c=t.computed(()=>{const e=0===a.value?1:0;return r.value.slice(e,a.value)});t.watch(o,e=>{if(r.value[a.value]===e)return;if(a.value>0){const e=a.value;r.value.splice(0,e),a.value=0}r.value.length>s&&r.value.pop();const t=u(e);r.value.unshift(t)},{...n,immediate:!0,flush:"sync"});const v=e=>{const t=Math.sign(e)<=0?Math.max(e,-c.value.length):Math.min(e,i.value.length);a.value+=t,o.value=r.value[a.value]};return{value:o,undo:(e=1)=>v(e),redo:(e=1)=>v(-e),jump:v,prev:i,next:c}},e.useVModel=function(e,t){console.warn("[useVModel] is not supported on @vue/composition-api.")},e.useValidation=function(e){const n=[],o=Oe({input:e},n),r=t.reactive(o.input);return n.forEach(e=>e(r)),r},e.useValueSync=function(e,n){const o=l(e),r=2===arguments.length?t.isRef(arguments[1])&&u(arguments[1].value)?arguments[1]:t.ref([l(arguments[1])]):t.ref(Array.from(arguments).slice(1).map(e=>l(e)));r.value.forEach(e=>{e.value=o.value});let a=r.value.length;return t.watch([o,r],([e,t])=>{if(a<t.length)t.forEach(t=>{t.value!==e&&(t.value=e)});else{a=t.length;for(const n of t)if(n.value!==e)return void(o.value=n.value)}},{deep:!0}),t.watch(o,e=>{r.value.forEach(t=>t.value=e)},{deep:!0,flush:"sync"}),r},e.useWebSocket=function(e,n){const o=I&&"WebSocket"in window;let r=null;const a=t.ref(null),s=t.ref(null),l=t.ref(null),u=t.ref(!1),i=t.ref(!1),c=t.ref(!1);let v=h,d=h;return o&&(r=new WebSocket(e,n),r.addEventListener("message",e=>{a.value=e,l.value=e.data}),r.addEventListener("error",e=>{s.value=e,c.value=!0}),r.addEventListener("close",()=>{u.value=!1,i.value=!0}),r.addEventListener("open",()=>{u.value=!0,i.value=!1}),v=e=>r.send(e),d=(e,t)=>{r.close(e,t)}),{supported:o,ws:r,send:v,close:d,messageEvent:a,errorEvent:s,data:l,isOpen:u,isClosed:i,errored:c}},e.useWebStorage=Se,e.useWorker=function(e,n,o){const r=I&&"Worker"in self,a=t.ref(),s=t.ref(),l=t.ref(!r),u=t.ref(!r);if(!r)return l.value=!0,{worker:void 0,data:s,postMessage:h,terminate:h,errorEvent:a,errored:u,terminated:l};const i=new Worker(e,o),c=e=>i.postMessage(e);function v(){i.terminate(),l.value=!0}return i.addEventListener("message",e=>{s.value=e.data},w),i.addEventListener("error",e=>{a.value=e,u.value=!0},w),t.onUnmounted(v),n&&c(n),{worker:i,data:s,postMessage:c,terminate:v,errorEvent:a,errored:u,terminated:l}},e.useWorkerFunction=function(e,n){const o=I&&"Worker"in self,r=t.computed(()=>n&&s(n.dependencies)||[]),a=t.computed(()=>n&&s(n.timeout));if(!o)return O(e,{lazy:!0,throwException:!0});const l=O((...n)=>new Promise((o,s)=>{const u=function(e,t){const n=[t.length>0?`importScripts("${t.join('","')}");`:"","onmessage=",`(${te.toString()})(${e.toString()})`],o=new Blob(n,{type:"text/javascript"});return URL.createObjectURL(o)}(e,r.value),i=new Worker(u);let c=-1;const v=a.value,d=()=>{i.terminate(),URL.revokeObjectURL(u),clearTimeout(c),m()},f=n.length===e.length+1&&t.isRef(n[n.length-1])&&!1===n[n.length-1].value?t.computed(()=>l.cancelled.value||n[n.length-1].value):l.cancelled,m=f?t.watch(f,()=>{d(),o(void 0)},{immediate:!1}):h;i.addEventListener("message",e=>{e.data[0]?o(e.data[1]):s(e.data[1]),d()},w),i.addEventListener("error",e=>{d(),s(e)},w),i.postMessage([...n]),v&&(c=setTimeout(()=>{l.cancel(`[WebWorker] timeout after ${v}ms`)},v))}),{lazy:!0,throwException:!0});return l},e.wrap=l,e}({},vueCompositionApi,Vue,devtoolsApi);

@@ -1,1 +0,1 @@

var vueComposable=function(e,t,n){"use strict";function o(e){return t.isRef(e)?e.value:e}function r(e){return t.isRef(e)?e:t.ref(e)}const a=Array.isArray,l=e=>"function"==typeof e,u=e=>"string"==typeof e,s=e=>"boolean"==typeof e,i=e=>v(e)&&l(e.getTime),c=e=>"number"==typeof e,v=e=>null!==e&&"object"==typeof e,d=e=>v(e)&&!!e.tagName;function f(e){return v(e)&&l(e.then)&&l(e.catch)}const m=()=>{},p=()=>!1,h={passive:!0};function g(e){return new Promise(t=>{setTimeout(t,e)})}const y=2**32-2;function w(e,t,n){return e<t?t:e>n?n:e}const b="undefined"!=typeof window;function E(e,...t){for(let n=0;n<t.length;n++){const r=t[n];if(void 0===r||!v(r))continue;const a=Object.keys(r);for(let t=0;t<a.length;t++){const n=a[t],l=o(r[n]),u=typeof l,s=typeof e[n];void 0!==e[n]&&u!==s||(e[n]=v(l)?E(e[n]||{},l):r[n])}}return e}function S(e,n,o,a){let l=m;if(e){const u=r(e),s=e=>e.removeEventListener(n,o),i=e=>e.addEventListener(n,o,a),c=t.watch(u,(e,t,n)=>{e&&(i(e),n(()=>s(e)))},{immediate:!0});l=()=>{s(u.value),c()}}return l}function I(e,t,n){return M(e,t,n)}function M(e,t=50,n={isImmediate:!1}){let o;return function(...r){const a=this,l=n.isImmediate&&void 0===o;void 0!==o&&clearTimeout(o),o=setTimeout((function(){o=void 0,n.isImmediate||e.apply(a,r)}),t),l&&e.apply(a,r)}}const $=["mousedown","touchstart"];function k(e,n){if(!e)throw new Error(`[usePromise] argument can't be '${e}'`);if("function"!=typeof e)throw new Error("[usePromise] expects function, but received "+typeof e);const[o,r]=s(n)?[n,!1]:v(n)?[n.lazy,n.throwException]:[!1,!1],a=t.ref(!1),l=t.ref(null),u=t.ref(null),i=t.ref(),c=async(...t)=>{a.value=!0,l.value=null;const n=t&&e.length!==t.length&&t.length>0&&s(t[t.length-1])?t[t.length-1]:r,o=i.value=e(...t);try{const e=await o;return i.value===o&&(u.value=e),e}catch(e){return i.value===o&&(l.value=e,u.value=null),n?o:void 0}finally{i.value===o&&(a.value=!1)}};return o||c(),{exec:c,result:u,promise:i,loading:a,error:l}}function L(e,n){const o=t.ref(!1);let r=void 0;const a=k((...t)=>{return n=e(...t),new Promise((e,t)=>{r=e=>{o.value=!0,t(e)},n.then(e).catch(t)});var n},n);return!t.getCurrentInstance()||v(n)&&!1===n.unmountCancel||t.onUnmounted(()=>r&&r()),{...a,cancel:e=>{r&&r(e)},cancelled:o}}const x=Symbol(""),R=Symbol(""),C=async(e,t,n,o)=>{const r=t[x].value;let a=-1;const l=e.maxRetries||9001,u=e.retryDelay||T;t.retryErrors.value=[],t.isRetrying.value=!1,t.nextRetry.value=void 0;let s=void 0;do{let e=!1,v=null;try{if(++a,v=o?n(...o):n(),f(v)&&(v=await v),t[R].value)return null;e=!0}catch(e){v=null,t.retryErrors.value.push(e)}if(r!==t[x].value)return v;if(e)return t.isRetrying.value=!1,t.nextRetry.value=void 0,v;if(a>=l)return t.isRetrying.value=!1,t.nextRetry.value=void 0,Promise.reject(new Error("[useRetry] max retries reached "+l));t.isRetrying.value=!0;const d=Date.now(),m=u(a),p=f(m)?await m:m;if(!f(m)||p){if(c(p))s=p;else{if(!i(p))throw new Error(`[useRetry] invalid value received from options.retryDelay '${typeof p}'`);s=p.getTime()}s<d?t.nextRetry.value=d+s:(t.nextRetry.value=s,s-=d),s>0&&await g(s)}if(t[R].value)return null;if(r!==t[x].value)return v}while(a<9e3);return null};const T=()=>0;const O=Symbol("");function P(e,t){l(e.provide)?e.provide(O,t):console.warn("[vue-composable] devtools is not supported for vue 2")}function D(){const e={},n=t.inject(O,e);if(n!==e)return n;console.warn("[vue-composable] devtools not found, please run app.use(VueComposableDevtools)")}let j=void 0;j=e=>{let t;const n=[],o=[],r=new Proxy({},{get:(e,o)=>t?t.on[o]:o in e?e[o]:void(e[o]=(...e)=>{n.push({type:o,args:e})})}),a=new Proxy({on:r},{get:(e,n)=>"on"===n?e.on:t?t[n]:n in e?e[n]:e[n]=(...e)=>{o.push({type:n,args:e})}});return e.then(e=>{t=e,async function(e,t,n){setTimeout(async()=>{const o=["addTimelineLayer","addInspector","sendInspectorTree","sendInspectorState","addTimelineEvent"];for(const t of o){for(const o of n.filter(e=>e.type===t))e[t](...o.args);await g(20)}new Set(n.filter(e=>"notifyComponentUpdate"===e.type).map(e=>e.args[0])).forEach(t=>e.notifyComponentUpdate(t)),t.forEach(t=>e.on[t.type](...t.args)),t.length=0,n.length=0},100)}(t,n,o)}),a};var A=j;const F=(e,t="vue-composable",o="Vue-composable devtools plugin")=>{const r=new Promise(r=>{n.setupDevtoolsPlugin({id:t,label:o,app:e},r)});P(e,A(r))},U={install:(e,t={id:"vue-composable",label:"Vue-composable devtools plugin"})=>F(e,t.id,t.label)};function V(e){return e&&(s(e.isJson)||s(e.parseImmediate)||s(e.unmountCancel))}let W=void 0;let N=void 0,z=void 0;let B=void 0,_=void 0;function H(e,n){const o=b&&"BroadcastChannel"in self,r=t.ref(null),a=t.ref(null),l=t.ref(null),u=t.ref(!1),s=t.ref(!1);let i=m,c=m,v=m;if(o){const o=new BroadcastChannel(e);o.addEventListener("messageerror",e=>{l.value=e,u.value=!0},h),o.addEventListener("message",e=>{a.value=e,r.value=e.data},h),i=e=>o.postMessage(e),c=()=>{o.close(),s.value=!0},v=(e,n)=>{o.addEventListener("message",e,n),t.onUnmounted(()=>o.removeEventListener("message",e))},t.onUnmounted(()=>{n&&n(),c()})}return{supported:o,data:r,messageEvent:a,errorEvent:l,errored:u,isClosed:s,send:i,close:c,addListener:v}}function K(e,t){const n=getComputedStyle(e).getPropertyValue(t);return n?n.trim():null}function q(e,t,n){e.style.setProperty(t,n)}const J={attributes:!0,childList:!0,subtree:!0},Q=e=>e.length<=2||"-"!==e[0]||"-"!==e[1]?"--"+e:e;const X=e=>function(t){const n=t.data||[];return new Promise(t=>{try{Promise.resolve(e.apply(e,n)).then(e=>t(postMessage([!0,e]))).catch(e=>t(postMessage([!1,e])))}catch(e){t(postMessage([!1,e]))}})};function Y(e){const n=!!b&&"matchMedia"in window;let o=void 0,r=void 0,a=m;if(n){o=t.ref(matchMedia(e)),r=t.ref(o.value.matches);const n=e=>{r.value=e.matches};o.value.addEventListener("change",n,h);const a=()=>o.value.removeEventListener("change",n);t.onUnmounted(a)}else o=t.ref({}),r=t.ref(!1);return{supported:n,mediaQueryList:o,matches:r,remove:a}}function G(e,n){const{addListener:o,send:r,close:a,supported:l}=H(e,()=>y()),u=Date.now(),s=t.ref(!1),i=t.ref(0),c=t.computed(()=>1!==i.value||s.value),d=t.ref([]),f=t.ref(n);let m=!1,p=void 0;r({type:0});const g=()=>r({type:5,id:u}),y=()=>{0!==d.value.length&&(s.value&&r({type:3,mind:1,id:Math.min(...d.value)}),r({type:4,id:u}))};return o(e=>{switch(e.data.type){case 0:r({type:2,value:f.value,mind:i.value});break;case 4:{const t=d.value.indexOf(e.data.id);t>=0&&d.value.splice(t,1),p===e.data.id&&d.value.length>0&&r({type:3,mind:1,id:Math.min(u,...d.value)});break}case 2:m=!0,f.value=e.data.value,i.value=e.data.mind;break;case 3:i.value=e.data.mind,p=1===e.data.mind&&e.data.id||void 0,s.value=p===u,s.value&&(d.value=[],g());break;case 5:d.value=[e.data.id],r({type:6,id:u});break;case 6:d.value.push(e.data.id)}},h),g(),t.watch(f,(e,t)=>{if(m)m=!1;else{if(1===i.value&&!1===s.value)return m=!0,void(f.value=t);r({type:2,mind:i.value,value:v(e)?{...e}:e}),m=!1}},{deep:!0,immediate:!1}),b&&window.addEventListener("unload",y,h),t.onUnmounted(()=>{y(),a()}),{supported:l,id:u,data:f,master:s,mind:i,editable:c,targets:d,ping:g,setMind:e=>{switch(e){case 1:s.value=!0;break;case 0:s.value=!1}i.value=e,r({type:3,id:u,mind:i.value})},addListener:o}}const Z="no-scroll";function ee(e,n){const o=Symbol(),r=t.inject(e,o);return r===o?n():r}function te(e,n){const o=r(n),l=r(e);return v(o.value)||t.isRef(n)?[void 0!==l.value?l:void 0,o]:!v(l.value)||a(l.value)||u(l.value)?[l.value?l:void 0,void 0]:[void 0,l]}function ne(e,n){const[r,a]=te(e,n),l=t.computed(()=>new Intl.NumberFormat(o(r),o(a))),u=(e,t,n)=>(t||n?new Intl.NumberFormat(o(n)||o(r),{...o(a),...o(t)}):l.value).format(o(e));return{format:(e,n,o)=>t.computed(()=>u(e,n,o)),formatString:u,formatter:l}}function oe(e){if(e)return c(e)?e:re(e)}const re=e=>{const t=e.match(/^(\d+)px$/);if(t)return+t[1]};function ae(e){const n={},o=new Map,r=t.ref();let a=[];const l=[];for(const r in e){const u=e[r],s=oe(u);if(void 0!==s){const e=t.ref(!1);n[r]=e,o.set(s,{name:r,valid:e}),a.push(s)}else{const{matches:e,remove:t}=Y(u);n[r]=e,l.push(t)}}a=a.sort((e,t)=>t-e);const u=b?()=>{const e=window.innerWidth;let t=void 0;for(let n=0;n<a.length;n++){const r=a[n],l=o.get(r);l.valid.value=e>=r,e>=r&&void 0===t&&(t=l.name)}r.value=t}:m,s=I(u,10),i=b?()=>window.removeEventListener("resize",s):m;return b&&(t.onMounted(()=>{u(),window.addEventListener("resize",s,h)}),t.onUnmounted(()=>{i(),l.forEach(e=>e())})),{...n,remove:i,current:r}}const le=Symbol(""),ue={sm:640,md:768,lg:1024,xl:1280};function se(e){return v(e)&&v(e.theme)&&v(e.theme.screens)}function ie(e){return!!v(e)&&(u(e.min)||u(e.max)||c(e.min)||c(e.max))}function ce(e){return c(e)?e+"px":e}function ve(e){const t=[];if(a(e)){const n=e.map(ve);for(let e=0;e<n.length;e++){const o=n[e];t.push(...o)}}else v(n=e)&&u(n.raw)?t.push(e.raw):ie(e)?t.push(function(e){return ie(e)?`(${[e.max&&"max-width: "+ce(e.max),e.min&&"min-width: "+ce(e.min)].filter(Boolean).join(" and ")})`:""}(e)):(u(e)||c(e))&&t.push(`(min-width: ${ce(e)})`);var n;return t}function de(e){const n=se(e)?e.theme.screens:e;if(se(e))for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];v(t)?n[e]=ve(n[e]).join(" or "):u(t)&&(t.endsWith("px")||(n[e]=ve(n[e]).join(" or ")))}const o=ae(n);return t.provide(le,o),o}function fe(e,t){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&(t&&0!==t.length||!1)}function me(e){try{if(!e)return!1;const t=":$";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return fe(t,e)}}function pe(e,t){try{return e.parse(t)}catch{return t}}let he=void 0;function ge(e,n=JSON,o=10){const a=b?window[e]:void 0,l=me(a);he||(he=new Map,b&&window.addEventListener("storage",e=>{if(e.newValue===e.oldValue)return;let t=he.get("localStorage");t=e.storageArea===window.localStorage?he.get("localStorage"):he.get("sessionStorage"),t&&Object.keys(t.$syncKeys).length>0&&(null===e.key?t.clear():t.$syncKeys[e.key]&&(null===e.newValue?t.removeItem(e.key):t.updateItem(e.key,e.newValue)))}));let s,i=he.get(e);return l&&a?i?s=i.$quotaError:(s=t.ref(!1),i={$refMap:new Map,$watchHandlers:new Map,$syncKeys:{},$quotaError:s,key:a.key,length:a.length,setSync(e,t){t?this.$syncKeys[e]=!0:delete this.$syncKeys[e]},clear(){this.$refMap.forEach((e,t)=>this.removeItem(t))},removeItem(e){const t=this.$refMap.get(e);t&&(t.value=void 0);const n=this.$watchHandlers.get(e);n&&n(),delete this.$syncKeys[e],this.$refMap.delete(e),a.removeItem(e)},getItem(e){const t=a.getItem(e);return t?this.setItem(e,pe(n,t)):null},setItem(e,l){const i=r(l);this.$refMap.set(e,i);const c=(e,t)=>{try{const o=a.getItem(e),r=u(t)?t:n.stringify(t);a.setItem(e,r),o!==r&&b&&this.$syncKeys[e]&&window.dispatchEvent(new StorageEvent(e,{newValue:r,oldValue:o,storageArea:a}))}catch(e){s.value=fe(e,a)}};c(e,l);const v=t.watch(i,M(t=>{c(e,t)},o),{immediate:!1,deep:!0});return this.$watchHandlers.set(e,v),i},updateItem(e,t){let o=this.$refMap.get(e);o&&(o.value=pe(n,t))}},he.set(e,i)):(s=t.ref(!1),i={}),{supported:l,quotaError:s,store:i,remove:()=>he.delete(e)}}function ye(e,n,o){const{supported:r,store:a}=ge("localStorage");let l=m,u=m,s=m,i=void 0;return r&&a?(s=t=>a.setSync(e,t),l=()=>a.removeItem(e),u=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n)),!1!==o&&s(!0)):i=t.ref(n),{supported:r,storage:i,clear:u,remove:l,setSync:s}}function we(e,n,o){const{supported:r,store:a}=ge("sessionStorage");let l=m,u=m,s=p,i=void 0;return r&&a?(l=()=>a.removeItem(e),u=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n))):i=t.ref(n),{supported:r,storage:i,clear:u,remove:l,setSync:s}}let be=void 0;function Ee(e){const n=r(e.currentPage),o=r(e.pageSize),a=t.ref(0),l=r(e.total),u=t.computed({get:()=>a.value,set(e){c(e)&&(a.value=Math.min(e,l.value))}}),s=t.computed({get:()=>n.value,set(e){c(e)&&(n.value=w(e,1,v.value),u.value=(n.value-1)*i.value)}}),i=t.computed({get:()=>o.value,set(e){c(e)&&(o.value=e)}}),v=t.computed(()=>Math.ceil(l.value/i.value));s.value=n.value;return t.watch([l,i],e=>{s.value>v.value&&(s.value=v.value)},{immediate:!1}),{pageSize:i,total:l,currentPage:s,offset:u,lastPage:v,next:()=>++s.value,prev:()=>--s.value,first:()=>s.value=1,last:()=>s.value=v.value}}function Se(e){const n=1e3,o=e&&e.refreshMs||n,r=!e||!s(e.sync)||e.sync,a=e&&l(e.timeFn)&&e.timeFn||Date.now;let u=void 0,i=void 0;const c=t.ref(a()),v=()=>{clearInterval(u),clearTimeout(i)},d=b?()=>u=setInterval(()=>c.value=a(),o):m;if(r){const e=n-(c.value-Math.floor(c.value/n)*n);i=setTimeout(d,e)}else d();return t.onUnmounted(v),{now:c,remove:v}}function Ie(e,n){return t.computed(()=>{const r=o(e);if(!n)return r;const l=t.isRef(n)?t.reactive(n.value):t.reactive(n);return r.replace(/({?{[\w\s]*}?})/g,e=>{const t=e.replace("{","").replace("}","").trim();if(e[0]===e[1]&&"{"===e[0])return""+t;const n=a(l)?l[+t]:l[t];return void 0===n?e:""+o(n)})})}function Me(e,n,r=".",a=m){return t.computed(()=>{const t=o(e),l=o(n);if(void 0===t)return a(l,t,l,t);if(!l)return t;const u=l.split(r);let s=t;for(let e=0;e<u.length;e++){let n=u[e];if("]"===n[n.length-1]){const t=/\[[`'"]?([^`'"\]]*)[`'"]?\]/g;let o=n,r=t.exec(o);if(r){let a=r[0].length,l=r.index-a,s=1;do{r.index,l=r.index,a=r[0].length,n=n.slice(0,-r[0].length),u.splice(e+s,0,r[1]),++s}while(r=t.exec(o));if(!n&&"["===o[0]&&o.length>2)continue}else n="",console.warn(`[usePath] invalid path provided "${o}"`)}if(!v(s))return a(u.slice(0,e+1).join(r),s,l,t);if(!n)return a(u.slice(0,e+1).join(r),s,l,t);if(s=s[n],!s)return a(u.slice(0,e+1).join(r),s,l,t)}return s})}function $e(e){return void 0!==e.$value}const ke=(e,n,r)=>{const{$message:a,$validator:l,...u}=function(e){return v(e)}(n)?n:{$validator:n,$message:void 0},{$pending:s,$promise:i,$invalid:c,$error:d}=((e,n,r,a)=>{const l=t.ref(null),u=t.ref(!1),s=t.ref(),i=t.ref(!1);let c=void 0;const v=e=>{l.value=(async()=>{try{u.value=!0;const t=n(e,c);f(t)?i.value=!await t:i.value=!t,s.value=i.value?r.value:void 0}catch(e){throw i.value=!0,e}finally{u.value=!1}})().catch(e=>(s.value=o(e),i.value=!0,e))};return a.push(o=>{c=o,t.watch(()=>{try{n(e.value,c)}catch(e){}return e.value},v,{deep:!0,immediate:!0})}),{$promise:l,$pending:u,$invalid:i,$error:s}})(e,l,t.ref(a),r);return{$pending:s,$error:d,$promise:i,$invalid:c,$message:a,...u}},Le=(e,n)=>{const a={},l=$e(e)?r(e.$value):void 0;for(const r of Object.keys(e))if("$"!==r[0])if(l){const t=ke(l,e[r],n);a[r]={...t,$value:l}}else{const l=Le(e[r],n);let u,i,c=void 0;if($e(l)){const e=Object.keys(l).filter(e=>"$"!==e[0]).map(e=>l[e]);u=t.computed(()=>e.map(e=>e.$error).map(e=>o(e)).filter(Boolean)),i=t.computed(()=>e.some(e=>!!o(e.$invalid)))}else{const e=Object.keys(l).map(e=>l[e]);u=t.computed(()=>e.map(e=>o(e.$errors)).filter(Boolean).filter(e=>e.some(Boolean))),c=t.computed(()=>e.some(e=>e.$anyDirty||s(o(e.$dirty))&&o(e.$dirty))),i=t.computed(()=>e.some(e=>!!o(e.$anyInvalid)))}a[r]={...l,$errors:u,$anyInvalid:i},c&&(a[r].$anyDirty=c)}else{if("$value"===r){a[r]=l;const e=t.ref(!1),n=t.watch(l,()=>{e.value=!0,n()},{immediate:!1,deep:!0});a.$dirty=e;continue}a[r]=e[r]}return a};const xe=Symbol("");function Re(e){const n=t.ref(Object.keys(e.messages)),a=t.ref(e.messages),u=t.ref(e.locale),i=t.ref({});let c=t.ref();const v={},d=(e,n)=>{if(v[e])return v[e];const o=n.value[e];if(!o)return t.ref({});let a=l(o)?o():o;return f(a)?a.then(t=>v[e]=r(t)):l(o)?r(a):v[e]=t.computed(()=>n.value[e])},m=!!e.fallback&&(!s(e.notFoundFallback)||e.notFoundFallback);let p=!1;if(m){const t=d(e.fallback,a);f(t)?(t.then(e=>{c.value=e.value}),p=!0):c.value=t.value}else c.value={};const h=t.ref(0);t.watch(a,()=>h.value++,{deep:!0,immediate:!1}),t.watch([u,c,h],([t,n,r])=>{if(t===e.fallback&&m)i.value=n;else{const e=e=>i.value=E({},n,o(e)),r=d(t,a);f(r)?r.then(e):e(r)}},{immediate:!p});const g=(t,n)=>e.resolve?r(e.resolve(i.value,t,n)):Ie(Me(i,t,".",(e,t,n,o)=>n),n);return{locale:u,locales:n,i18n:i,$t:g,$ts:(e,t)=>g(e,t).value,addLocale:(e,t)=>{n.value.indexOf(e)>=0||n.value.push(e),delete v[e],a.value[e]=t},removeLocale:t=>{const o=n.value.indexOf(t);if(o>=0){const r=[u.value,c.value&&e.fallback,...n.value].find(e=>e&&e!==t);r&&(t===e.fallback&&(c.value=void 0),t===u.value&&(u.value=r)),n.value.splice(o,1)}delete a.value[t],delete v[t]}}}function Ce(e){const n=Re(e);return t.provide(xe,n),n}const Te=Symbol("");const Oe=Symbol(""),Pe={install(e){const n=t.ref(!0),o=t.readonly(n);{e._context.provides[Oe]=o;const t=e.mount;e.mount=(...e)=>{const o=t(...e);return n.value=!1,o}}}};return e.COMMIT="f726bf4",e.FALSE_OP=p,e.MAX_ARRAY_SIZE=y,e.NO_OP=m,e.PASSIVE_EV=h,e.SCROLL_LOCK_CLASS=Z,e.UseDevtoolsApp=F,e.VERSION="1.0.0-beta.6",e.VUE_VERSION="3",e.VueComposableDevtools=U,e.buildI18n=Re,e.debounce=M,e.deepClone=E,e.exponentialDelay=e=>{const t=100*Math.pow(2,e);return t+.2*t*Math.random()},e.exposeWorker=function(e){this.onmessage=async t=>{const n=e(t.data);if(void 0===n)this.postMessage(n);else if(null===n)this.postMessage(n);else if(a(n))this.postMessage(n);else if(n[Symbol.asyncIterator])for await(const e of n)this.postMessage(e);else if(n[Symbol.iterator])for(const e of n)this.postMessage(e);else this.postMessage(await n)}},e.getCssVariableFor=K,e.getDevtools=D,e.hydrationPlugin=Pe,e.injectFactory=ee,e.isArray=a,e.isBoolean=s,e.isClient=b,e.isDate=i,e.isElement=d,e.isFunction=l,e.isNumber=c,e.isObject=v,e.isPromise=f,e.isString=u,e.isSymbol=e=>"symbol"==typeof e,e.minMax=w,e.noDelay=T,e.promisedTimeout=g,e.provideSSRTitle=function(e,t){const n=r(void 0===t?"":t);return e.provide(Te,n),n},e.refShared=function(e,n){const o=t.getCurrentInstance(),r=n||o.vnode.scopeId;if(!r)return t.ref(e);const{data:a,supported:l}=G(r,e);return a},e.setBreakpointTailwindCSS=de,e.setCssVariableFor=q,e.setDevtools=P,e.setI18n=Ce,e.storageAvailable=me,e.unwrap=o,e.useArrayPagination=function(e,n){const o=r(e),a=Ee({currentPage:1,pageSize:10,...n,total:t.computed(()=>o.value.length)}),l=t.computed(()=>{const e=o.value;return Array.isArray(e)?e.slice(a.offset.value,a.offset.value+a.pageSize.value):[]});return{...a,result:l}},e.useBreakpoint=ae,e.useBreakpointChrome=function(){return ae({mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560})},e.useBreakpointTailwindCSS=function(e){return ee(le,()=>de(e||ue))},e.useBroadcastChannel=H,e.useCancellablePromise=L,e.useCssVariables=function(e,n,a){const l=b&&"MutationObserver"in self,[s,i]=t.isRef(n)||d(n)?[n,a||J]:[l&&document.documentElement||{},n||J],c=t.ref(!0),v={},f=[],p=Object.entries(e).map(e=>{const[t,n]=u(e[1])?[e[1]]:[e[1].name,e[1].value];return n&&(f.push(()=>q(o(s),t,o(n))),v[e[0]]=r(n)),[e[0],Q(t)]});for(let e=0;e<p.length;e++){const[n,a]=p[e];v[n]||(v[n]=t.ref(t.isRef(s)&&!s.value||!l?null:K(o(s),a))),l&&t.watch([v[n],r(s)],e=>{c&&e[1]&&e[0]!==K(e[1],a)&&q(e[1],a,e[0])},{immediate:!t.isRef(s)})}if(!l)return{...v,stop:m,resume:m,supported:l,observing:c};const h=()=>{for(let e=0;e<p.length;e++){const[t,n]=p[e];v[t].value=K(o(s),n)}},g=new MutationObserver(h),y=()=>{g.disconnect(),c.value=!1},w=()=>{c.value||h(),g.observe(o(s),i),c.value=!0};return t.onUnmounted(y),t.isRef(s)?t.onMounted(()=>{f.forEach(e=>e()),t.watch(s,(e,t)=>{t&&y(),e&&w()})}):(b||s)&&(f.forEach(e=>e()),w()),{...v,supported:l,resume:w,stop:y,observing:c}},e.useCurrencyFormat=function(e,n,r){const a=o(e),l=!v(a),u=l?e:t.computed(()=>o(e).currency),[s,i]=te(n,l?r:e),c=t.computed(()=>{const e=o(i)||{},t=o(u)||e.currency;return{style:"currency",...e,currency:t}}),d=ne(s),f=(e,t,n,r,a)=>{const l={...c.value,...o(r)},u=o(t)||l.currency,s=o(n)||l.currencyDisplay;return d.formatString(e,{...l,currency:u,currencyDisplay:s},a)};return{format:(e,n,o,r,a)=>t.computed(()=>f(e,n,o,r,a)),formatString:f}},e.useDateNow=function(e){return Se({refreshMs:e&&e.refreshMs||1e3,sync:!e||!s(e.sync)||e.sync,timeFn:Date.now})},e.useDebounce=I,e.useDevtoolsInpector=function(e,n=[]){const o=D(),r=t.ref(n),a=t.computed(()=>{if(!r.value)return new Map;const e=t.toRaw(r.value),n=new Map;for(const t of e)n.set(t.id,t);return n});if(o){const n=e.id;o.addInspector(e),o.on.getInspectorTree(o=>{if(o.inspectorId!=n)return;if(console.log(),!r.value)return;const a=o.filter;let l=t.toRaw(r.value);o.filter&&(l=e.nodeFilter?e.nodeFilter(o.filter,l):l.filter(e=>e.id.indexOf(a)>=0||e.label.indexOf(a)>=0)),o.rootNodes=l}),o.on.getInspectorState(o=>{if(o.inspectorId!=n)return;const r=a.value.get(o.nodeId);if(r){const n=t.reactive(r.state);o.state=e.stateFilter?e.stateFilter("",n):n}}),t.watch(r,()=>{o.sendInspectorTree(n),o.sendInspectorState(n)},{immediate:!0,deep:!0})}return{nodes:r}},e.useDevtoolsTimelineLayer=function(e,t,n){const o=D();let r=m,a=m;return o&&(o.addTimelineLayer({id:e,label:t,color:n}),r=(t,n)=>o.addTimelineEvent({layerId:e,event:t,all:n}),a=e=>r({...e,time:Date.now()})),{id:e,addEvent:r,pushEvent:a}},e.useEvent=S,e.useFetch=function(e,n){const o=t.ref(null),r=t.ref(""),a=t.ref(),l=t.ref(null),[s,i,c]=V(e)?[!1!==e.isJson,!1!==e.parseImmediate,!1!==e.unmountCancel]:V(n)?[!1!==n.isJson,!1!==n.parseImmediate,!1!==n.unmountCancel]:[!0,!0,!0],v=e?u(e)?n:V(e)?e:u(e.url)?n:e:void 0,d=t.ref(!1),f=t.ref();let m=void 0;const p=e=>{m&&(m.abort(),d.value=!0,f.value=e)},h=k(async(e,t)=>{m=new AbortController;const n=await fetch(e,{signal:m.signal,...v,...t});if(n){const e=[s?n.clone().json().then(e=>o.value=e).catch(e=>{o.value=null,l.value=e}):Promise.resolve(),n.clone().blob().then(e=>{a.value=e}),n.clone().text().then(e=>{r.value=e})];i&&await Promise.all(e)}return n},!0),g=t.computed(()=>h.result.value&&h.result.value.status||null),y=t.computed(()=>h.result.value&&h.result.value.statusText||null);return e&&(u(e)||u(e.url))&&h.exec(e,void 0,!1),c&&t.getCurrentInstance()&&t.onUnmounted(()=>{m&&p("unmounted")}),{...h,cancel:p,isCancelled:d,cancelledMessage:f,text:r,blob:a,json:o,jsonError:l,status:g,statusText:y}},e.useFormat=Ie,e.useGeolocation=function(e){const n=b&&!!navigator.geolocation,o=t.ref(e?!1===e.immediate:void 0),r=t.ref(null),a=t.ref(null),l=t.ref(null),u=t.ref(e&&e.enableHighAccuracy||null);let i=m;if(n){const n=e=>{a.value=e.timestamp,l.value=e.coords,r.value=null},c=e=>{a.value=Date.now(),l.value=null,r.value=e},v=()=>!0!==o.value&&f&&navigator.geolocation.clearWatch(f);let d=()=>navigator.geolocation.getCurrentPosition(n,c,e);i=o.value?()=>{o.value?o.value=!1:d()}:d;let f=0;t.onMounted(()=>t.watch([u,o],t=>{v();const o=s(t[0])?t[0]:e?e.enableHighAccuracy:void 0;f=navigator.geolocation.watchPosition(n,c,e?{...e,enableHighAccuracy:o}:{enableHighAccuracy:o})},{immediate:!o.value})),t.onUnmounted(v)}return{supported:n,refresh:i,error:r,timestamp:a,coords:l,highAccuracy:u}},e.useHydration=function(){return t.inject(Oe,t.computed(()=>!1))},e.useI18n=function(e){return e?Ce(e):t.inject(xe)},e.useIntersectionObserver=function(e,n){const a=b&&"IntersectionObserver"in window,l=e?r(e):void 0,u=!l||!d(l.value)&&l.value?void 0:l,s=t.computed(()=>n?o(n):u?void 0:o(e)),i=t.ref([]),c=t.computed(()=>i.value.length>0&&i.value.every(e=>e.isIntersecting)),v=e=>{i.value=e};let f=t.ref();a&&t.watch(s,e=>{f.value&&f.value.disconnect();const t=e&&e&&{root:o(e.root),rootMargin:o(e.rootMargin),threshold:o(e.threshold)}||void 0;f.value=new IntersectionObserver(v,t);i.value.map(e=>e.target).forEach(f.value.observe)},{deep:!0,immediate:!0});const p=a?e=>{const t=o(e);f.value.observe(t)}:m,h=a?e=>{const t=o(e);f.value.unobserve(t)}:m,g=()=>f.value.disconnect();return u&&(t.onMounted(()=>{u.value&&p(u)}),t.onUnmounted(()=>{g()})),{supported:a,elements:i,observe:p,unobserve:h,disconnect:g,isIntersecting:c}},e.useInterval=function(e,n,...o){let r=void 0;const a=(t,...a)=>{if(l(),!t&&!n)return;return r=setInterval(e,t||n,...a&&a.length?a:o)},l=()=>{r&&(clearInterval(r),r=void 0)};return c(n)&&a(),t.onUnmounted(l),{remove:l,start:a}},e.useIntlDateTimeFormat=function(e,n){const[r,a]=te(e,n),l=t.computed(()=>new Intl.DateTimeFormat(o(r),o(a))),s=(e,t,n)=>{const s=t||n?new Intl.DateTimeFormat(o(n)||o(r),{...o(a),...o(t)}):l.value,i=o(e);return s.format(u(i)?new Date(i):i)};return{format:(e,n,o)=>t.computed(()=>s(e,n,o)),formatString:s,formatter:l}},e.useIntlNumberFormat=ne,e.useLanguage=function(){if(B||(B=b?t.ref(navigator.language):t.ref("")),!_)if(b){_=t.ref(navigator.languages);const e=()=>{B.value=navigator.language,_.value=navigator.languages};window.addEventListener("languagechange",e,h)}else _=t.ref([]);return{language:B,languages:_}},e.useLocalStorage=ye,e.useLockScroll=function(e,n){const l=u(e)?t.ref([]):a(t.unref(e))?r(e):r([e]),s=u(n)?{lockedClass:n,auto:!0}:n||{auto:!0};s.lockedClass||(s.lockedClass=Z);const i=t.ref(!1),c=t.computed(()=>l.value.map(e=>t.ref(e))),v=t.watch([i,c],([e,t],[n,r])=>{for(const a of t){const t=o(a);if(s.lockedClass){if(!t)return;t.classList.toggle(s.lockedClass,e)}s.onChange&&(n===e&&r.find(e=>o(e)===t)||s.onChange(t,e))}},{flush:"sync",deep:!1}),d=()=>i.value=!0,f=()=>i.value=!1;return u(e)&&t.onMounted(()=>l.value=Array.from(document.querySelectorAll(e))),!1!==s.auto&&(t.onMounted(d),t.onActivated(d),t.onDeactivated(f),t.onBeforeUnmount(f)),{locked:i,lock:d,unlock:f,remove:v}},e.useMatchMedia=Y,e.useNetworkInformation=function(){const e=!!b&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection),n=!!e,o=t.ref(0),r=t.ref(0),a=t.ref("none"),l=t.ref(0),u=t.ref(!1),s=t.ref("none");let i=m,c=m;return e&&(i=()=>{o.value=e.downlink,r.value=e.downlinkMax,a.value=e.effectiveType,l.value=e.rtt,u.value=e.saveData,s.value=e.type},c=S(e,"change",i,h),i()),{supported:n,downlink:o,downlinkMax:r,effectiveType:a,rtt:l,saveData:u,type:s,remove:c}},e.useNow=Se,e.useOnMouseMove=function(e,n,o){const r=t.ref(0),a=t.ref(0);let l=e=>{r.value=e.x,a.value=e.y};const[u,s]=c(n)?[void 0,n]:[n,o];s&&(l=I(l,o));const i=S(e,"mousemove",l,u);return{mouseX:r,mouseY:a,remove:i}},e.useOnOutsidePress=function(e,t){if(!b)return()=>{};const n=r(e),o=$.find(e=>"on"+e in document.documentElement);return S(document,o,e=>n.value&&!n.value.contains(e.target)&&t(e),{passive:!0})},e.useOnResize=function(e,n,o){const a=r(e),l=t.ref(a.value&&a.value.clientHeight),u=t.ref(a.value&&a.value.clientWidth);let s=()=>{l.value=a.value.clientHeight,u.value=a.value.clientWidth};const[i,v]=c(n)?[void 0,n]:[n,o];v&&(s=I(s,o));const d=b?S(window,"resize",s,i||h):m;return t.isRef(e)&&!e.value&&t.onMounted(s),{height:l,width:u,remove:d}},e.useOnScroll=function(e,n,o){const a=e=>!(c(e)||s(e)||!d(e)&&!t.isRef(e)||!e),l=a(e)?r(e):t.ref(b&&window||void 0),u=a(e)?l:t.ref(b&&window.document.scrollingElement||void 0),i=t.ref(u.value&&u.value.scrollTop||0),v=t.ref(u.value&&u.value.scrollLeft||0);let f=()=>{i.value=u.value.scrollTop,v.value=u.value.scrollLeft};const m=(...e)=>u.value&&u.value.scrollTo&&u.value.scrollTo.apply(u.value,e),p=e=>m({top:e}),g=e=>m({left:e}),[y,w]=c(e)||!e?[h,e]:c(n)?[h,n]:[n,o];w&&(f=I(f,o));const E=S(l,"scroll",f,y),M=t.watch(i,p,{immediate:!1}),$=t.watch(v,g,{immediate:!1});return{scrollTop:i,scrollLeft:v,scrollTo:m,remove:()=>{E(),$(),M()},scrollTopTo:p,scrollLeftTo:g}},e.useOnline=function(){const e=b&&"onLine"in navigator;return e||(W=t.ref(!1)),W||(W=t.ref(navigator.onLine),window.addEventListener("offline",()=>W.value=!1,h),window.addEventListener("online",()=>W.value=!0,h)),{supported:e,online:W}},e.usePageVisibility=function(){return z||(z=t.ref(b&&document.hidden)),N||(b?(N=t.ref(document.visibilityState),document.addEventListener("visibilitychange",()=>{N.value=document.visibilityState,z.value=document.hidden},h)):N=t.ref("visible")),{visibility:N,hidden:z}},e.usePagination=Ee,e.usePath=Me,e.usePerformanceNow=function(e){return Se({refreshMs:e&&e.refreshMs||1e3,sync:!e||!s(e.sync)||e.sync,timeFn:()=>performance.now()})},e.usePromise=k,e.usePromiseLazy=function(e,t=!1){return k(e,{lazy:!0,throwException:t})},e.useRetry=function(e,n){const o=!e||l(e)?{}:e,r=l(e)?e:n;if(!l(e)&&!v(e))throw new Error("[useRetry] options needs to be 'object'");if(r&&!l(r))throw new Error("[useRetry] factory needs to be 'function'");const a=t.ref(!1),u=t.ref(),s=t.ref([]),i={value:!1},c={isRetrying:a,retryCount:t.computed(()=>s.value.length),nextRetry:u,retryErrors:s,[x]:{value:0},[R]:i},d=r?(...e)=>(++c[x].value,C(o,c,r,e)):e=>(++c[x].value,C(o,c,e,void 0));return{...c,cancel:()=>{c.isRetrying.value=!1,c.retryErrors.value.push(new Error("[useRetry] cancelled")),c.nextRetry.value=void 0,i.value=!0},exec:d}},e.useSSRTitle=function(e){const n=Symbol(),o=t.inject(Te,n);return o===n||void 0===o?t.ref(u(e)?e:""):(u(e)&&(o.value=e),o)},e.useSessionStorage=we,e.useShare=function(e){const n=b&&"share"in navigator;let o=()=>Promise.resolve(!1),r=p,a=t.ref(!1),l=t.ref(!1);return n&&(o=e=>(a.value=!1,l.value=!1,navigator.share(e).then(e=>(a.value=!0,e)).catch(e=>(a.value=!1,l.value=!0,!1))),r=e=>navigator.canShare(e),e&&r(e)&&o(e)),{supported:n,share:o,canShare:r,shared:a,cancelled:l}},e.useSharedRef=G,e.useStorage=function(e,t,n){return void 0===be&&(be=ge("localStorage").supported),be?ye(e,t,n):we(e,t)},e.useTimeline=function(e,n){const o=t.ref([]),r=n&&n.clone?n.clone:e=>e,a=n&&n.maxLength||y;return t.watch(e,(e,t)=>{o.value.unshift({item:r(t),date:new Date}),o.value.length>a&&o.value.pop()},{immediate:!1,flush:"sync",...n}),t.readonly(o)},e.useTitle=function(e=null){const n=t.ref(u(e)?e:document.title),o=new MutationObserver(e=>{n.value=e[0].target.textContent});t.watch(n,(e,t)=>{u(e)&&e!==t&&(document.title=e)},{immediate:!0,flush:"sync"});const r=document.querySelector("title");return o.observe(r,{childList:!0}),t.onUnmounted(()=>o.disconnect()),n},e.useUndo=function(e,n){const o=r(e),a=t.ref([]),l=t.ref(0),u=n&&n.maxLength||y,s=n&&n.clone||(e=>e),i=t.computed(()=>{const e=0===l.value?1:l.value;return a.value.slice(e)}),c=t.computed(()=>{const e=0===l.value?1:0;return a.value.slice(e,l.value)});t.watch(o,e=>{if(a.value[l.value]===e)return;if(l.value>0){const e=l.value;a.value.splice(0,e),l.value=0}a.value.length>u&&a.value.pop();const t=s(e);a.value.unshift(t)},{...n,immediate:!0,flush:"sync"});const v=e=>{const t=Math.sign(e)<=0?Math.max(e,-c.value.length):Math.min(e,i.value.length);l.value+=t,o.value=a.value[l.value]};return{value:o,undo:(e=1)=>v(e),redo:(e=1)=>v(-e),jump:v,prev:i,next:c}},e.useVModel=function(e,n){const o=t.getCurrentInstance();return o?t.computed({get:()=>e[n],set(e){o.emit("update:"+n,e)}}):t.ref()},e.useValidation=function(e){const n=[],o=Le({input:e},n),r=t.reactive(o.input);return n.forEach(e=>e(r)),r},e.useValueSync=function(e,n){const o=r(e),l=2===arguments.length?t.isRef(arguments[1])&&a(arguments[1].value)?arguments[1]:t.ref([r(arguments[1])]):t.ref(Array.from(arguments).slice(1).map(e=>r(e)));l.value.forEach(e=>{e.value=o.value});let u=l.value.length;return t.watch([o,l],([e,t])=>{if(u<t.length)t.forEach(t=>{t.value!==e&&(t.value=e)});else{u=t.length;for(const n of t)if(n.value!==e)return void(o.value=n.value)}},{deep:!0}),t.watch(o,e=>{l.value.forEach(t=>t.value=e)},{deep:!0,flush:"sync"}),l},e.useWebSocket=function(e,n){const o=b&&"WebSocket"in window;let r=null;const a=t.ref(null),l=t.ref(null),u=t.ref(null),s=t.ref(!1),i=t.ref(!1),c=t.ref(!1);let v=m,d=m;return o&&(r=new WebSocket(e,n),r.addEventListener("message",e=>{a.value=e,u.value=e.data}),r.addEventListener("error",e=>{l.value=e,c.value=!0}),r.addEventListener("close",()=>{s.value=!1,i.value=!0}),r.addEventListener("open",()=>{s.value=!0,i.value=!1}),v=e=>r.send(e),d=(e,t)=>{r.close(e,t)}),{supported:o,ws:r,send:v,close:d,messageEvent:a,errorEvent:l,data:u,isOpen:s,isClosed:i,errored:c}},e.useWebStorage=ge,e.useWorker=function(e,n,o){const r=b&&"Worker"in self,a=t.ref(),l=t.ref(),u=t.ref(!r),s=t.ref(!r);if(!r)return u.value=!0,{worker:void 0,data:l,postMessage:m,terminate:m,errorEvent:a,errored:s,terminated:u};const i=new Worker(e,o),c=e=>i.postMessage(e);function v(){i.terminate(),u.value=!0}return i.addEventListener("message",e=>{l.value=e.data},h),i.addEventListener("error",e=>{a.value=e,s.value=!0},h),t.onUnmounted(v),n&&c(n),{worker:i,data:l,postMessage:c,terminate:v,errorEvent:a,errored:s,terminated:u}},e.useWorkerFunction=function(e,n){const r=b&&"Worker"in self,a=t.computed(()=>n&&o(n.dependencies)||[]),l=t.computed(()=>n&&o(n.timeout));if(!r)return L(e,{lazy:!0,throwException:!0});const u=L((...n)=>new Promise((o,r)=>{const s=function(e,t){const n=[t.length>0?`importScripts("${t.join('","')}");`:"","onmessage=",`(${X.toString()})(${e.toString()})`],o=new Blob(n,{type:"text/javascript"});return URL.createObjectURL(o)}(e,a.value),i=new Worker(s);let c=-1;const v=l.value,d=()=>{i.terminate(),URL.revokeObjectURL(s),clearTimeout(c),p()},f=n.length===e.length+1&&t.isRef(n[n.length-1])&&!1===n[n.length-1].value?t.computed(()=>u.cancelled.value||n[n.length-1].value):u.cancelled,p=f?t.watch(f,()=>{d(),o(void 0)},{immediate:!1}):m;i.addEventListener("message",e=>{e.data[0]?o(e.data[1]):r(e.data[1]),d()},h),i.addEventListener("error",e=>{d(),r(e)},h),i.postMessage([...n]),v&&(c=setTimeout(()=>{u.cancel(`[WebWorker] timeout after ${v}ms`)},v))}),{lazy:!0,throwException:!0});return u},e.wrap=r,e}({},VueRuntimeCore,devtoolsApi);
var vueComposable=function(e,t,n){"use strict";function o(e){return t.isRef(e)?e.value:e}function r(e){return t.isRef(e)?e:t.ref(e)}const a=Array.isArray,l=e=>"function"==typeof e,u=e=>"string"==typeof e,s=e=>"boolean"==typeof e,i=e=>v(e)&&l(e.getTime),c=e=>"number"==typeof e,v=e=>null!==e&&"object"==typeof e,d=e=>v(e)&&!!e.tagName;function f(e){return v(e)&&l(e.then)&&l(e.catch)}const m=()=>{},p=()=>!1,h={passive:!0};function g(e){return new Promise(t=>{setTimeout(t,e)})}const y=2**32-2;function w(e,t,n){return e<t?t:e>n?n:e}const b="undefined"!=typeof window;function E(e,...t){for(let n=0;n<t.length;n++){const r=t[n];if(void 0===r||!v(r))continue;const a=Object.keys(r);for(let t=0;t<a.length;t++){const n=a[t],l=o(r[n]),u=typeof l,s=typeof e[n];void 0!==e[n]&&u!==s||(e[n]=v(l)?E(e[n]||{},l):r[n])}}return e}function S(e,n,o,a){let l=m;if(e){const u=r(e),s=e=>e.removeEventListener(n,o),i=e=>e.addEventListener(n,o,a),c=t.watch(u,(e,t,n)=>{e&&(i(e),n(()=>s(e)))},{immediate:!0});l=()=>{s(u.value),c()}}return l}function I(e,t,n){return M(e,t,n)}function M(e,t=50,n={isImmediate:!1}){let o;return function(...r){const a=this,l=n.isImmediate&&void 0===o;void 0!==o&&clearTimeout(o),o=setTimeout((function(){o=void 0,n.isImmediate||e.apply(a,r)}),t),l&&e.apply(a,r)}}const $=["mousedown","touchstart"];function k(e,n){if(!e)throw new Error(`[usePromise] argument can't be '${e}'`);if("function"!=typeof e)throw new Error("[usePromise] expects function, but received "+typeof e);const[o,r]=s(n)?[n,!1]:v(n)?[n.lazy,n.throwException]:[!1,!1],a=t.ref(!1),l=t.ref(null),u=t.ref(null),i=t.ref(),c=async(...t)=>{a.value=!0,l.value=null;const n=t&&e.length!==t.length&&t.length>0&&s(t[t.length-1])?t[t.length-1]:r,o=i.value=e(...t);try{const e=await o;return i.value===o&&(u.value=e),e}catch(e){return i.value===o&&(l.value=e,u.value=null),n?o:void 0}finally{i.value===o&&(a.value=!1)}};return o||c(),{exec:c,result:u,promise:i,loading:a,error:l}}function L(e,n){const o=t.ref(!1);let r=void 0;const a=k((...t)=>{return n=e(...t),new Promise((e,t)=>{r=e=>{o.value=!0,t(e)},n.then(e).catch(t)});var n},n);return!t.getCurrentInstance()||v(n)&&!1===n.unmountCancel||t.onUnmounted(()=>r&&r()),{...a,cancel:e=>{r&&r(e)},cancelled:o}}const x=Symbol(""),R=Symbol(""),C=async(e,t,n,o)=>{const r=t[x].value;let a=-1;const l=e.maxRetries||9001,u=e.retryDelay||T;t.retryErrors.value=[],t.isRetrying.value=!1,t.nextRetry.value=void 0;let s=void 0;do{let e=!1,v=null;try{if(++a,v=o?n(...o):n(),f(v)&&(v=await v),t[R].value)return null;e=!0}catch(e){v=null,t.retryErrors.value.push(e)}if(r!==t[x].value)return v;if(e)return t.isRetrying.value=!1,t.nextRetry.value=void 0,v;if(a>=l)return t.isRetrying.value=!1,t.nextRetry.value=void 0,Promise.reject(new Error("[useRetry] max retries reached "+l));t.isRetrying.value=!0;const d=Date.now(),m=u(a),p=f(m)?await m:m;if(!f(m)||p){if(c(p))s=p;else{if(!i(p))throw new Error(`[useRetry] invalid value received from options.retryDelay '${typeof p}'`);s=p.getTime()}s<d?t.nextRetry.value=d+s:(t.nextRetry.value=s,s-=d),s>0&&await g(s)}if(t[R].value)return null;if(r!==t[x].value)return v}while(a<9e3);return null};const T=()=>0;const O=Symbol("");function P(e,t){l(e.provide)?e.provide(O,t):console.warn("[vue-composable] devtools is not supported for vue 2")}function D(){const e={},n=t.inject(O,e);if(n!==e)return n;console.warn("[vue-composable] devtools not found, please run app.use(VueComposableDevtools)")}let j=void 0;j=e=>{let t;const n=[],o=[],r=new Proxy({},{get:(e,o)=>t?t.on[o]:o in e?e[o]:e[o]=(...e)=>{n.push({type:o,args:e})}}),a=new Proxy({on:r},{get:(e,n)=>"on"===n?e.on:t?t[n]:n in e?e[n]:e[n]=(...e)=>{o.push({type:n,args:e})}});return e.then(e=>{t=e,async function(e,t,n){setTimeout(async()=>{const o=["addTimelineLayer","addInspector","sendInspectorTree","sendInspectorState","addTimelineEvent"];for(const t of o){for(const o of n.filter(e=>e.type===t))e[t](...o.args);await g(20)}new Set(n.filter(e=>"notifyComponentUpdate"===e.type).map(e=>e.args[0])).forEach(t=>e.notifyComponentUpdate(t)),t.forEach(t=>e.on[t.type](...t.args)),t.length=0,n.length=0},100)}(t,n,o)}),a};var A=j;const F=(e,t="vue-composable",o="Vue-composable devtools plugin")=>{const r=new Promise(r=>{n.setupDevtoolsPlugin({id:t,label:o,app:e},r)});P(e,A(r))},U={install:(e,t={id:"vue-composable",label:"Vue-composable devtools plugin"})=>F(e,t.id,t.label)};function V(e){return e&&(s(e.isJson)||s(e.parseImmediate)||s(e.unmountCancel))}let W=void 0;let N=void 0,z=void 0;let B=void 0,_=void 0;function H(e,n){const o=b&&"BroadcastChannel"in self,r=t.ref(null),a=t.ref(null),l=t.ref(null),u=t.ref(!1),s=t.ref(!1);let i=m,c=m,v=m;if(o){const o=new BroadcastChannel(e);o.addEventListener("messageerror",e=>{l.value=e,u.value=!0},h),o.addEventListener("message",e=>{a.value=e,r.value=e.data},h),i=e=>o.postMessage(e),c=()=>{o.close(),s.value=!0},v=(e,n)=>{o.addEventListener("message",e,n),t.onUnmounted(()=>o.removeEventListener("message",e))},t.onUnmounted(()=>{n&&n(),c()})}return{supported:o,data:r,messageEvent:a,errorEvent:l,errored:u,isClosed:s,send:i,close:c,addListener:v}}function K(e,t){const n=getComputedStyle(e).getPropertyValue(t);return n?n.trim():null}function q(e,t,n){e.style.setProperty(t,n)}const J={attributes:!0,childList:!0,subtree:!0},Q=e=>e.length<=2||"-"!==e[0]||"-"!==e[1]?"--"+e:e;const X=e=>function(t){const n=t.data||[];return new Promise(t=>{try{Promise.resolve(e.apply(e,n)).then(e=>t(postMessage([!0,e]))).catch(e=>t(postMessage([!1,e])))}catch(e){t(postMessage([!1,e]))}})};function Y(e){const n=!!b&&"matchMedia"in window;let o=void 0,r=void 0,a=m;if(n){o=t.ref(matchMedia(e)),r=t.ref(o.value.matches);const n=e=>{r.value=e.matches};o.value.addEventListener("change",n,h);const a=()=>o.value.removeEventListener("change",n);t.onUnmounted(a)}else o=t.ref({}),r=t.ref(!1);return{supported:n,mediaQueryList:o,matches:r,remove:a}}function G(e,n){const{addListener:o,send:r,close:a,supported:l}=H(e,()=>y()),u=Date.now(),s=t.ref(!1),i=t.ref(0),c=t.computed(()=>1!==i.value||s.value),d=t.ref([]),f=t.ref(n);let m=!1,p=void 0;r({type:0});const g=()=>r({type:5,id:u}),y=()=>{0!==d.value.length&&(s.value&&r({type:3,mind:1,id:Math.min(...d.value)}),r({type:4,id:u}))};return o(e=>{switch(e.data.type){case 0:r({type:2,value:f.value,mind:i.value});break;case 4:{const t=d.value.indexOf(e.data.id);t>=0&&d.value.splice(t,1),p===e.data.id&&d.value.length>0&&r({type:3,mind:1,id:Math.min(u,...d.value)});break}case 2:m=!0,f.value=e.data.value,i.value=e.data.mind;break;case 3:i.value=e.data.mind,p=1===e.data.mind&&e.data.id||void 0,s.value=p===u,s.value&&(d.value=[],g());break;case 5:d.value=[e.data.id],r({type:6,id:u});break;case 6:d.value.push(e.data.id)}},h),g(),t.watch(f,(e,t)=>{if(m)m=!1;else{if(1===i.value&&!1===s.value)return m=!0,void(f.value=t);r({type:2,mind:i.value,value:v(e)?{...e}:e}),m=!1}},{deep:!0,immediate:!1}),b&&window.addEventListener("unload",y,h),t.onUnmounted(()=>{y(),a()}),{supported:l,id:u,data:f,master:s,mind:i,editable:c,targets:d,ping:g,setMind:e=>{switch(e){case 1:s.value=!0;break;case 0:s.value=!1}i.value=e,r({type:3,id:u,mind:i.value})},addListener:o}}const Z="no-scroll";function ee(e,n){const o=Symbol(),r=t.inject(e,o);return r===o?n():r}function te(e,n){const o=r(n),l=r(e);return v(o.value)||t.isRef(n)?[void 0!==l.value?l:void 0,o]:!v(l.value)||a(l.value)||u(l.value)?[l.value?l:void 0,void 0]:[void 0,l]}function ne(e,n){const[r,a]=te(e,n),l=t.computed(()=>new Intl.NumberFormat(o(r),o(a))),u=(e,t,n)=>(t||n?new Intl.NumberFormat(o(n)||o(r),{...o(a),...o(t)}):l.value).format(o(e));return{format:(e,n,o)=>t.computed(()=>u(e,n,o)),formatString:u,formatter:l}}function oe(e){if(e)return c(e)?e:re(e)}const re=e=>{const t=e.match(/^(\d+)px$/);if(t)return+t[1]};function ae(e){const n={},o=new Map,r=t.ref();let a=[];const l=[];for(const r in e){const u=e[r],s=oe(u);if(void 0!==s){const e=t.ref(!1);n[r]=e,o.set(s,{name:r,valid:e}),a.push(s)}else{const{matches:e,remove:t}=Y(u);n[r]=e,l.push(t)}}a=a.sort((e,t)=>t-e);const u=b?()=>{const e=window.innerWidth;let t=void 0;for(let n=0;n<a.length;n++){const r=a[n],l=o.get(r);l.valid.value=e>=r,e>=r&&void 0===t&&(t=l.name)}r.value=t}:m,s=I(u,10),i=b?()=>window.removeEventListener("resize",s):m;return b&&(t.onMounted(()=>{u(),window.addEventListener("resize",s,h)}),t.onUnmounted(()=>{i(),l.forEach(e=>e())})),{...n,remove:i,current:r}}const le=Symbol(""),ue={sm:640,md:768,lg:1024,xl:1280};function se(e){return v(e)&&v(e.theme)&&v(e.theme.screens)}function ie(e){return!!v(e)&&(u(e.min)||u(e.max)||c(e.min)||c(e.max))}function ce(e){return c(e)?e+"px":e}function ve(e){const t=[];if(a(e)){const n=e.map(ve);for(let e=0;e<n.length;e++){const o=n[e];t.push(...o)}}else v(n=e)&&u(n.raw)?t.push(e.raw):ie(e)?t.push(function(e){return ie(e)?`(${[e.max&&"max-width: "+ce(e.max),e.min&&"min-width: "+ce(e.min)].filter(Boolean).join(" and ")})`:""}(e)):(u(e)||c(e))&&t.push(`(min-width: ${ce(e)})`);var n;return t}function de(e){const n=se(e)?e.theme.screens:e;if(se(e))for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];v(t)?n[e]=ve(n[e]).join(" or "):u(t)&&(t.endsWith("px")||(n[e]=ve(n[e]).join(" or ")))}const o=ae(n);return t.provide(le,o),o}function fe(e,t){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&(t&&0!==t.length||!1)}function me(e){try{if(!e)return!1;const t=":$";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return fe(t,e)}}function pe(e,t){try{return e.parse(t)}catch{return t}}let he=void 0;function ge(e,n=JSON,o=10){const a=b?window[e]:void 0,l=me(a);he||(he=new Map,b&&window.addEventListener("storage",e=>{if(e.newValue===e.oldValue)return;let t=he.get("localStorage");t=e.storageArea===window.localStorage?he.get("localStorage"):he.get("sessionStorage"),t&&Object.keys(t.$syncKeys).length>0&&(null===e.key?t.clear():t.$syncKeys[e.key]&&(null===e.newValue?t.removeItem(e.key):t.updateItem(e.key,e.newValue)))}));let s,i=he.get(e);return l&&a?i?s=i.$quotaError:(s=t.ref(!1),i={$refMap:new Map,$watchHandlers:new Map,$syncKeys:{},$quotaError:s,key:a.key,length:a.length,setSync(e,t){t?this.$syncKeys[e]=!0:delete this.$syncKeys[e]},clear(){this.$refMap.forEach((e,t)=>this.removeItem(t))},removeItem(e){const t=this.$refMap.get(e);t&&(t.value=void 0);const n=this.$watchHandlers.get(e);n&&n(),delete this.$syncKeys[e],this.$refMap.delete(e),a.removeItem(e)},getItem(e){const t=a.getItem(e);return t?this.setItem(e,pe(n,t)):null},setItem(e,l){const i=r(l);this.$refMap.set(e,i);const c=(e,t)=>{try{const o=a.getItem(e),r=u(t)?t:n.stringify(t);a.setItem(e,r),o!==r&&b&&this.$syncKeys[e]&&window.dispatchEvent(new StorageEvent(e,{newValue:r,oldValue:o,storageArea:a}))}catch(e){s.value=fe(e,a)}};c(e,l);const v=t.watch(i,M(t=>{c(e,t)},o),{immediate:!1,deep:!0});return this.$watchHandlers.set(e,v),i},updateItem(e,t){let o=this.$refMap.get(e);o&&(o.value=pe(n,t))}},he.set(e,i)):(s=t.ref(!1),i={}),{supported:l,quotaError:s,store:i,remove:()=>he.delete(e)}}function ye(e,n,o){const{supported:r,store:a}=ge("localStorage");let l=m,u=m,s=m,i=void 0;return r&&a?(s=t=>a.setSync(e,t),l=()=>a.removeItem(e),u=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n)),!1!==o&&s(!0)):i=t.ref(n),{supported:r,storage:i,clear:u,remove:l,setSync:s}}function we(e,n,o){const{supported:r,store:a}=ge("sessionStorage");let l=m,u=m,s=p,i=void 0;return r&&a?(l=()=>a.removeItem(e),u=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n))):i=t.ref(n),{supported:r,storage:i,clear:u,remove:l,setSync:s}}let be=void 0;function Ee(e){const n=r(e.currentPage),o=r(e.pageSize),a=t.ref(0),l=r(e.total),u=t.computed({get:()=>a.value,set(e){c(e)&&(a.value=Math.min(e,l.value))}}),s=t.computed({get:()=>n.value,set(e){c(e)&&(n.value=w(e,1,v.value),u.value=(n.value-1)*i.value)}}),i=t.computed({get:()=>o.value,set(e){c(e)&&(o.value=e)}}),v=t.computed(()=>Math.ceil(l.value/i.value));s.value=n.value;return t.watch([l,i],e=>{s.value>v.value&&(s.value=v.value)},{immediate:!1}),{pageSize:i,total:l,currentPage:s,offset:u,lastPage:v,next:()=>++s.value,prev:()=>--s.value,first:()=>s.value=1,last:()=>s.value=v.value}}function Se(e){const n=1e3,o=e&&e.refreshMs||n,r=!e||!s(e.sync)||e.sync,a=e&&l(e.timeFn)&&e.timeFn||Date.now;let u=void 0,i=void 0;const c=t.ref(a()),v=()=>{clearInterval(u),clearTimeout(i)},d=b?()=>u=setInterval(()=>c.value=a(),o):m;if(r){const e=n-(c.value-Math.floor(c.value/n)*n);i=setTimeout(d,e)}else d();return t.onUnmounted(v),{now:c,remove:v}}function Ie(e,n){return t.computed(()=>{const r=o(e);if(!n)return r;const l=t.isRef(n)?t.reactive(n.value):t.reactive(n);return r.replace(/({?{[\w\s]*}?})/g,e=>{const t=e.replace("{","").replace("}","").trim();if(e[0]===e[1]&&"{"===e[0])return""+t;const n=a(l)?l[+t]:l[t];return void 0===n?e:""+o(n)})})}function Me(e,n,r=".",a=m){return t.computed(()=>{const t=o(e),l=o(n);if(void 0===t)return a(l,t,l,t);if(!l)return t;const u=l.split(r);let s=t;for(let e=0;e<u.length;e++){let n=u[e];if("]"===n[n.length-1]){const t=/\[[`'"]?([^`'"\]]*)[`'"]?\]/g;let o=n,r=t.exec(o);if(r){let a=r[0].length,l=r.index-a,s=1;do{r.index,l=r.index,a=r[0].length,n=n.slice(0,-r[0].length),u.splice(e+s,0,r[1]),++s}while(r=t.exec(o));if(!n&&"["===o[0]&&o.length>2)continue}else n="",console.warn(`[usePath] invalid path provided "${o}"`)}if(!v(s))return a(u.slice(0,e+1).join(r),s,l,t);if(!n)return a(u.slice(0,e+1).join(r),s,l,t);if(s=s[n],!s)return a(u.slice(0,e+1).join(r),s,l,t)}return s})}function $e(e){return void 0!==e.$value}const ke=(e,n,r)=>{const{$message:a,$validator:l,...u}=function(e){return v(e)}(n)?n:{$validator:n,$message:void 0},{$pending:s,$promise:i,$invalid:c,$error:d}=((e,n,r,a)=>{const l=t.ref(null),u=t.ref(!1),s=t.ref(),i=t.ref(!1);let c=void 0;const v=e=>{l.value=(async()=>{try{u.value=!0;const t=n(e,c);f(t)?i.value=!await t:i.value=!t,s.value=i.value?r.value:void 0}catch(e){throw i.value=!0,e}finally{u.value=!1}})().catch(e=>(s.value=o(e),i.value=!0,e))};return a.push(o=>{c=o,t.watch(()=>{try{n(e.value,c)}catch(e){}return e.value},v,{deep:!0,immediate:!0})}),{$promise:l,$pending:u,$invalid:i,$error:s}})(e,l,t.ref(a),r);return{$pending:s,$error:d,$promise:i,$invalid:c,$message:a,...u}},Le=(e,n)=>{const a={},l=$e(e)?r(e.$value):void 0;for(const r of Object.keys(e))if("$"!==r[0])if(l){const t=ke(l,e[r],n);a[r]={...t,$value:l}}else{const l=Le(e[r],n);let u,i,c=void 0;if($e(l)){const e=Object.keys(l).filter(e=>"$"!==e[0]).map(e=>l[e]);u=t.computed(()=>e.map(e=>e.$error).map(e=>o(e)).filter(Boolean)),i=t.computed(()=>e.some(e=>!!o(e.$invalid)))}else{const e=Object.keys(l).map(e=>l[e]);u=t.computed(()=>e.map(e=>o(e.$errors)).filter(Boolean).filter(e=>e.some(Boolean))),c=t.computed(()=>e.some(e=>e.$anyDirty||s(o(e.$dirty))&&o(e.$dirty))),i=t.computed(()=>e.some(e=>!!o(e.$anyInvalid)))}a[r]={...l,$errors:u,$anyInvalid:i},c&&(a[r].$anyDirty=c)}else{if("$value"===r){a[r]=l;const e=t.ref(!1),n=t.watch(l,()=>{e.value=!0,n()},{immediate:!1,deep:!0});a.$dirty=e;continue}a[r]=e[r]}return a};const xe=Symbol("");function Re(e){const n=t.ref(Object.keys(e.messages)),a=t.ref(e.messages),u=t.ref(e.locale),i=t.ref({});let c=t.ref();const v={},d=(e,n)=>{if(v[e])return v[e];const o=n.value[e];if(!o)return t.ref({});let a=l(o)?o():o;return f(a)?a.then(t=>v[e]=r(t)):l(o)?r(a):v[e]=t.computed(()=>n.value[e])},m=!!e.fallback&&(!s(e.notFoundFallback)||e.notFoundFallback);let p=!1;if(m){const t=d(e.fallback,a);f(t)?(t.then(e=>{c.value=e.value}),p=!0):c.value=t.value}else c.value={};const h=t.ref(0);t.watch(a,()=>h.value++,{deep:!0,immediate:!1}),t.watch([u,c,h],([t,n,r])=>{if(t===e.fallback&&m)i.value=n;else{const e=e=>i.value=E({},n,o(e)),r=d(t,a);f(r)?r.then(e):e(r)}},{immediate:!p});const g=(t,n)=>e.resolve?r(e.resolve(i.value,t,n)):Ie(Me(i,t,".",(e,t,n,o)=>n),n);return{locale:u,locales:n,i18n:i,$t:g,$ts:(e,t)=>g(e,t).value,addLocale:(e,t)=>{n.value.indexOf(e)>=0||n.value.push(e),delete v[e],a.value[e]=t},removeLocale:t=>{const o=n.value.indexOf(t);if(o>=0){const r=[u.value,c.value&&e.fallback,...n.value].find(e=>e&&e!==t);r&&(t===e.fallback&&(c.value=void 0),t===u.value&&(u.value=r)),n.value.splice(o,1)}delete a.value[t],delete v[t]}}}function Ce(e){const n=Re(e);return t.provide(xe,n),n}const Te=Symbol("");const Oe=Symbol(""),Pe={install(e){const n=t.ref(!0),o=t.readonly(n);{e._context.provides[Oe]=o;const t=e.mount;e.mount=(...e)=>{const o=t(...e);return n.value=!1,o}}}};return e.COMMIT="9ef375a",e.FALSE_OP=p,e.MAX_ARRAY_SIZE=y,e.NO_OP=m,e.PASSIVE_EV=h,e.SCROLL_LOCK_CLASS=Z,e.UseDevtoolsApp=F,e.VERSION="1.0.0-beta.7",e.VUE_VERSION="3",e.VueComposableDevtools=U,e.buildI18n=Re,e.debounce=M,e.deepClone=E,e.exponentialDelay=e=>{const t=100*Math.pow(2,e);return t+.2*t*Math.random()},e.exposeWorker=function(e){this.onmessage=async t=>{const n=e(t.data);if(void 0===n)this.postMessage(n);else if(null===n)this.postMessage(n);else if(a(n))this.postMessage(n);else if(n[Symbol.asyncIterator])for await(const e of n)this.postMessage(e);else if(n[Symbol.iterator])for(const e of n)this.postMessage(e);else this.postMessage(await n)}},e.getCssVariableFor=K,e.getDevtools=D,e.hydrationPlugin=Pe,e.injectFactory=ee,e.isArray=a,e.isBoolean=s,e.isClient=b,e.isDate=i,e.isElement=d,e.isFunction=l,e.isNumber=c,e.isObject=v,e.isPromise=f,e.isString=u,e.isSymbol=e=>"symbol"==typeof e,e.minMax=w,e.noDelay=T,e.promisedTimeout=g,e.provideSSRTitle=function(e,t){const n=r(void 0===t?"":t);return e.provide(Te,n),n},e.refShared=function(e,n){const o=t.getCurrentInstance(),r=n||o.vnode.scopeId;if(!r)return t.ref(e);const{data:a,supported:l}=G(r,e);return a},e.setBreakpointTailwindCSS=de,e.setCssVariableFor=q,e.setDevtools=P,e.setI18n=Ce,e.storageAvailable=me,e.unwrap=o,e.useArrayPagination=function(e,n){const o=r(e),a=Ee({currentPage:1,pageSize:10,...n,total:t.computed(()=>o.value.length)}),l=t.computed(()=>{const e=o.value;return Array.isArray(e)?e.slice(a.offset.value,a.offset.value+a.pageSize.value):[]});return{...a,result:l}},e.useBreakpoint=ae,e.useBreakpointChrome=function(){return ae({mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560})},e.useBreakpointTailwindCSS=function(e){return ee(le,()=>de(e||ue))},e.useBroadcastChannel=H,e.useCancellablePromise=L,e.useCssVariables=function(e,n,a){const l=b&&"MutationObserver"in self,[s,i]=t.isRef(n)||d(n)?[n,a||J]:[l&&document.documentElement||{},n||J],c=t.ref(!0),v={},f=[],p=Object.entries(e).map(e=>{const[t,n]=u(e[1])?[e[1]]:[e[1].name,e[1].value];return n&&(f.push(()=>q(o(s),t,o(n))),v[e[0]]=r(n)),[e[0],Q(t)]});for(let e=0;e<p.length;e++){const[n,a]=p[e];v[n]||(v[n]=t.ref(t.isRef(s)&&!s.value||!l?null:K(o(s),a))),l&&t.watch([v[n],r(s)],e=>{c&&e[1]&&e[0]!==K(e[1],a)&&q(e[1],a,e[0])},{immediate:!t.isRef(s)})}if(!l)return{...v,stop:m,resume:m,supported:l,observing:c};const h=()=>{for(let e=0;e<p.length;e++){const[t,n]=p[e];v[t].value=K(o(s),n)}},g=new MutationObserver(h),y=()=>{g.disconnect(),c.value=!1},w=()=>{c.value||h(),g.observe(o(s),i),c.value=!0};return t.onUnmounted(y),t.isRef(s)?t.onMounted(()=>{f.forEach(e=>e()),t.watch(s,(e,t)=>{t&&y(),e&&w()})}):(b||s)&&(f.forEach(e=>e()),w()),{...v,supported:l,resume:w,stop:y,observing:c}},e.useCurrencyFormat=function(e,n,r){const a=o(e),l=!v(a),u=l?e:t.computed(()=>o(e).currency),[s,i]=te(n,l?r:e),c=t.computed(()=>{const e=o(i)||{},t=o(u)||e.currency;return{style:"currency",...e,currency:t}}),d=ne(s),f=(e,t,n,r,a)=>{const l={...c.value,...o(r)},u=o(t)||l.currency,s=o(n)||l.currencyDisplay;return d.formatString(e,{...l,currency:u,currencyDisplay:s},a)};return{format:(e,n,o,r,a)=>t.computed(()=>f(e,n,o,r,a)),formatString:f}},e.useDateNow=function(e){return Se({refreshMs:e&&e.refreshMs||1e3,sync:!e||!s(e.sync)||e.sync,timeFn:Date.now})},e.useDebounce=I,e.useDevtoolsInpector=function(e,n=[]){const o=D(),r=t.ref(n),a=t.computed(()=>{if(!r.value)return new Map;const e=t.toRaw(r.value),n=new Map;for(const t of e)n.set(t.id,t);return n});if(o){const n=e.id;o.addInspector(e),o.on.getInspectorTree(o=>{if(o.inspectorId!=n)return;if(console.log(),!r.value)return;const a=o.filter;let l=t.toRaw(r.value);o.filter&&(l=e.nodeFilter?e.nodeFilter(o.filter,l):l.filter(e=>e.id.indexOf(a)>=0||e.label.indexOf(a)>=0)),o.rootNodes=l}),o.on.getInspectorState(o=>{if(o.inspectorId!=n)return;const r=a.value.get(o.nodeId);if(r){const n=t.reactive(r.state);o.state=e.stateFilter?e.stateFilter("",n):n}}),t.watch(r,()=>{o.sendInspectorTree(n),o.sendInspectorState(n)},{immediate:!0,deep:!0})}return{nodes:r}},e.useDevtoolsTimelineLayer=function(e,t,n){const o=D();let r=m,a=m;return o&&(o.addTimelineLayer({id:e,label:t,color:n}),r=(t,n)=>o.addTimelineEvent({layerId:e,event:t,all:n}),a=e=>r({...e,time:Date.now()})),{id:e,addEvent:r,pushEvent:a}},e.useEvent=S,e.useFetch=function(e,n){const o=t.ref(null),r=t.ref(""),a=t.ref(),l=t.ref(null),[s,i,c]=V(e)?[!1!==e.isJson,!1!==e.parseImmediate,!1!==e.unmountCancel]:V(n)?[!1!==n.isJson,!1!==n.parseImmediate,!1!==n.unmountCancel]:[!0,!0,!0],v=e?u(e)?n:V(e)?e:u(e.url)?n:e:void 0,d=t.ref(!1),f=t.ref();let m=void 0;const p=e=>{m&&(m.abort(),d.value=!0,f.value=e)},h=k(async(e,t)=>{m=new AbortController;const n=await fetch(e,{signal:m.signal,...v,...t});if(n){const e=[s?n.clone().json().then(e=>o.value=e).catch(e=>{o.value=null,l.value=e}):Promise.resolve(),n.clone().blob().then(e=>{a.value=e}),n.clone().text().then(e=>{r.value=e})];i&&await Promise.all(e)}return n},!0),g=t.computed(()=>h.result.value&&h.result.value.status||null),y=t.computed(()=>h.result.value&&h.result.value.statusText||null);return e&&(u(e)||u(e.url))&&h.exec(e,void 0,!1),c&&t.getCurrentInstance()&&t.onUnmounted(()=>{m&&p("unmounted")}),{...h,cancel:p,isCancelled:d,cancelledMessage:f,text:r,blob:a,json:o,jsonError:l,status:g,statusText:y}},e.useFormat=Ie,e.useGeolocation=function(e){const n=b&&!!navigator.geolocation,o=t.ref(e?!1===e.immediate:void 0),r=t.ref(null),a=t.ref(null),l=t.ref(null),u=t.ref(e&&e.enableHighAccuracy||null);let i=m;if(n){const n=e=>{a.value=e.timestamp,l.value=e.coords,r.value=null},c=e=>{a.value=Date.now(),l.value=null,r.value=e},v=()=>!0!==o.value&&f&&navigator.geolocation.clearWatch(f);let d=()=>navigator.geolocation.getCurrentPosition(n,c,e);i=o.value?()=>{o.value?o.value=!1:d()}:d;let f=0;t.onMounted(()=>t.watch([u,o],t=>{v();const o=s(t[0])?t[0]:e?e.enableHighAccuracy:void 0;f=navigator.geolocation.watchPosition(n,c,e?{...e,enableHighAccuracy:o}:{enableHighAccuracy:o})},{immediate:!o.value})),t.onUnmounted(v)}return{supported:n,refresh:i,error:r,timestamp:a,coords:l,highAccuracy:u}},e.useHydration=function(){return t.inject(Oe,t.computed(()=>!1))},e.useI18n=function(e){return e?Ce(e):t.inject(xe)},e.useIntersectionObserver=function(e,n){const a=b&&"IntersectionObserver"in window,l=e?r(e):void 0,u=!l||!d(l.value)&&l.value?void 0:l,s=t.computed(()=>n?o(n):u?void 0:o(e)),i=t.ref([]),c=t.computed(()=>i.value.length>0&&i.value.every(e=>e.isIntersecting)),v=e=>{i.value=e};let f=t.ref();a&&t.watch(s,e=>{f.value&&f.value.disconnect();const t=e&&e&&{root:o(e.root),rootMargin:o(e.rootMargin),threshold:o(e.threshold)}||void 0;f.value=new IntersectionObserver(v,t);i.value.map(e=>e.target).forEach(f.value.observe)},{deep:!0,immediate:!0});const p=a?e=>{const t=o(e);f.value.observe(t)}:m,h=a?e=>{const t=o(e);f.value.unobserve(t)}:m,g=()=>f.value.disconnect();return u&&(t.onMounted(()=>{u.value&&p(u)}),t.onUnmounted(()=>{g()})),{supported:a,elements:i,observe:p,unobserve:h,disconnect:g,isIntersecting:c}},e.useInterval=function(e,n,...o){let r=void 0;const a=(t,...a)=>{if(l(),!t&&!n)return;return r=setInterval(e,t||n,...a&&a.length?a:o)},l=()=>{r&&(clearInterval(r),r=void 0)};return c(n)&&a(),t.onUnmounted(l),{remove:l,start:a}},e.useIntlDateTimeFormat=function(e,n){const[r,a]=te(e,n),l=t.computed(()=>new Intl.DateTimeFormat(o(r),o(a))),s=(e,t,n)=>{const s=t||n?new Intl.DateTimeFormat(o(n)||o(r),{...o(a),...o(t)}):l.value,i=o(e);return s.format(u(i)?new Date(i):i)};return{format:(e,n,o)=>t.computed(()=>s(e,n,o)),formatString:s,formatter:l}},e.useIntlNumberFormat=ne,e.useLanguage=function(){if(B||(B=b?t.ref(navigator.language):t.ref("")),!_)if(b){_=t.ref(navigator.languages);const e=()=>{B.value=navigator.language,_.value=navigator.languages};window.addEventListener("languagechange",e,h)}else _=t.ref([]);return{language:B,languages:_}},e.useLocalStorage=ye,e.useLockScroll=function(e,n){const l=u(e)?t.ref([]):a(t.unref(e))?r(e):r([e]),s=u(n)?{lockedClass:n,auto:!0}:n||{auto:!0};s.lockedClass||(s.lockedClass=Z);const i=t.ref(!1),c=t.computed(()=>l.value.map(e=>t.ref(e))),v=t.watch([i,c],([e,t],[n,r])=>{for(const a of t){const t=o(a);if(s.lockedClass){if(!t)return;t.classList.toggle(s.lockedClass,e)}s.onChange&&(n===e&&r.find(e=>o(e)===t)||s.onChange(t,e))}},{flush:"sync",deep:!1}),d=()=>i.value=!0,f=()=>i.value=!1;return u(e)&&t.onMounted(()=>l.value=Array.from(document.querySelectorAll(e))),!1!==s.auto&&(t.onMounted(d),t.onActivated(d),t.onDeactivated(f),t.onBeforeUnmount(f)),{locked:i,lock:d,unlock:f,remove:v}},e.useMatchMedia=Y,e.useNetworkInformation=function(){const e=!!b&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection),n=!!e,o=t.ref(0),r=t.ref(0),a=t.ref("none"),l=t.ref(0),u=t.ref(!1),s=t.ref("none");let i=m,c=m;return e&&(i=()=>{o.value=e.downlink,r.value=e.downlinkMax,a.value=e.effectiveType,l.value=e.rtt,u.value=e.saveData,s.value=e.type},c=S(e,"change",i,h),i()),{supported:n,downlink:o,downlinkMax:r,effectiveType:a,rtt:l,saveData:u,type:s,remove:c}},e.useNow=Se,e.useOnMouseMove=function(e,n,o){const r=t.ref(0),a=t.ref(0);let l=e=>{r.value=e.x,a.value=e.y};const[u,s]=c(n)?[void 0,n]:[n,o];s&&(l=I(l,o));const i=S(e,"mousemove",l,u);return{mouseX:r,mouseY:a,remove:i}},e.useOnOutsidePress=function(e,t){if(!b)return()=>{};const n=r(e),o=$.find(e=>"on"+e in document.documentElement);return S(document,o,e=>n.value&&!n.value.contains(e.target)&&t(e),{passive:!0})},e.useOnResize=function(e,n,o){const a=r(e),l=t.ref(a.value&&a.value.clientHeight),u=t.ref(a.value&&a.value.clientWidth);let s=()=>{l.value=a.value.clientHeight,u.value=a.value.clientWidth};const[i,v]=c(n)?[void 0,n]:[n,o];v&&(s=I(s,o));const d=b?S(window,"resize",s,i||h):m;return t.isRef(e)&&!e.value&&t.onMounted(s),{height:l,width:u,remove:d}},e.useOnScroll=function(e,n,o){const a=e=>!(c(e)||s(e)||!d(e)&&!t.isRef(e)||!e),l=a(e)?r(e):t.ref(b&&window||void 0),u=a(e)?l:t.ref(b&&window.document.scrollingElement||void 0),i=t.ref(u.value&&u.value.scrollTop||0),v=t.ref(u.value&&u.value.scrollLeft||0);let f=()=>{i.value=u.value.scrollTop,v.value=u.value.scrollLeft};const m=(...e)=>u.value&&u.value.scrollTo&&u.value.scrollTo.apply(u.value,e),p=e=>m({top:e}),g=e=>m({left:e}),[y,w]=c(e)||!e?[h,e]:c(n)?[h,n]:[n,o];w&&(f=I(f,o));const E=S(l,"scroll",f,y),M=t.watch(i,p,{immediate:!1}),$=t.watch(v,g,{immediate:!1});return{scrollTop:i,scrollLeft:v,scrollTo:m,remove:()=>{E(),$(),M()},scrollTopTo:p,scrollLeftTo:g}},e.useOnline=function(){const e=b&&"onLine"in navigator;return e||(W=t.ref(!1)),W||(W=t.ref(navigator.onLine),window.addEventListener("offline",()=>W.value=!1,h),window.addEventListener("online",()=>W.value=!0,h)),{supported:e,online:W}},e.usePageVisibility=function(){return z||(z=t.ref(b&&document.hidden)),N||(b?(N=t.ref(document.visibilityState),document.addEventListener("visibilitychange",()=>{N.value=document.visibilityState,z.value=document.hidden},h)):N=t.ref("visible")),{visibility:N,hidden:z}},e.usePagination=Ee,e.usePath=Me,e.usePerformanceNow=function(e){return Se({refreshMs:e&&e.refreshMs||1e3,sync:!e||!s(e.sync)||e.sync,timeFn:()=>performance.now()})},e.usePromise=k,e.usePromiseLazy=function(e,t=!1){return k(e,{lazy:!0,throwException:t})},e.useRetry=function(e,n){const o=!e||l(e)?{}:e,r=l(e)?e:n;if(!l(e)&&!v(e))throw new Error("[useRetry] options needs to be 'object'");if(r&&!l(r))throw new Error("[useRetry] factory needs to be 'function'");const a=t.ref(!1),u=t.ref(),s=t.ref([]),i={value:!1},c={isRetrying:a,retryCount:t.computed(()=>s.value.length),nextRetry:u,retryErrors:s,[x]:{value:0},[R]:i},d=r?(...e)=>(++c[x].value,C(o,c,r,e)):e=>(++c[x].value,C(o,c,e,void 0));return{...c,cancel:()=>{c.isRetrying.value=!1,c.retryErrors.value.push(new Error("[useRetry] cancelled")),c.nextRetry.value=void 0,i.value=!0},exec:d}},e.useSSRTitle=function(e){const n=Symbol(),o=t.inject(Te,n);return o===n||void 0===o?t.ref(u(e)?e:""):(u(e)&&(o.value=e),o)},e.useSessionStorage=we,e.useShare=function(e){const n=b&&"share"in navigator;let o=()=>Promise.resolve(!1),r=p,a=t.ref(!1),l=t.ref(!1);return n&&(o=e=>(a.value=!1,l.value=!1,navigator.share(e).then(e=>(a.value=!0,e)).catch(e=>(a.value=!1,l.value=!0,!1))),r=e=>navigator.canShare(e),e&&r(e)&&o(e)),{supported:n,share:o,canShare:r,shared:a,cancelled:l}},e.useSharedRef=G,e.useStorage=function(e,t,n){return void 0===be&&(be=ge("localStorage").supported),be?ye(e,t,n):we(e,t)},e.useTimeline=function(e,n){const o=t.ref([]),r=n&&n.clone?n.clone:e=>e,a=n&&n.maxLength||y;return t.watch(e,(e,t)=>{o.value.unshift({item:r(t),date:new Date}),o.value.length>a&&o.value.pop()},{immediate:!1,flush:"sync",...n}),t.readonly(o)},e.useTitle=function(e=null){const n=t.ref(u(e)?e:document.title),o=new MutationObserver(e=>{n.value=e[0].target.textContent});t.watch(n,(e,t)=>{u(e)&&e!==t&&(document.title=e)},{immediate:!0,flush:"sync"});const r=document.querySelector("title");return o.observe(r,{childList:!0}),t.onUnmounted(()=>o.disconnect()),n},e.useUndo=function(e,n){const o=r(e),a=t.ref([]),l=t.ref(0),u=n&&n.maxLength||y,s=n&&n.clone||(e=>e),i=t.computed(()=>{const e=0===l.value?1:l.value;return a.value.slice(e)}),c=t.computed(()=>{const e=0===l.value?1:0;return a.value.slice(e,l.value)});t.watch(o,e=>{if(a.value[l.value]===e)return;if(l.value>0){const e=l.value;a.value.splice(0,e),l.value=0}a.value.length>u&&a.value.pop();const t=s(e);a.value.unshift(t)},{...n,immediate:!0,flush:"sync"});const v=e=>{const t=Math.sign(e)<=0?Math.max(e,-c.value.length):Math.min(e,i.value.length);l.value+=t,o.value=a.value[l.value]};return{value:o,undo:(e=1)=>v(e),redo:(e=1)=>v(-e),jump:v,prev:i,next:c}},e.useVModel=function(e,n){const o=t.getCurrentInstance();return o?t.computed({get:()=>e[n],set(e){o.emit("update:"+n,e)}}):t.ref()},e.useValidation=function(e){const n=[],o=Le({input:e},n),r=t.reactive(o.input);return n.forEach(e=>e(r)),r},e.useValueSync=function(e,n){const o=r(e),l=2===arguments.length?t.isRef(arguments[1])&&a(arguments[1].value)?arguments[1]:t.ref([r(arguments[1])]):t.ref(Array.from(arguments).slice(1).map(e=>r(e)));l.value.forEach(e=>{e.value=o.value});let u=l.value.length;return t.watch([o,l],([e,t])=>{if(u<t.length)t.forEach(t=>{t.value!==e&&(t.value=e)});else{u=t.length;for(const n of t)if(n.value!==e)return void(o.value=n.value)}},{deep:!0}),t.watch(o,e=>{l.value.forEach(t=>t.value=e)},{deep:!0,flush:"sync"}),l},e.useWebSocket=function(e,n){const o=b&&"WebSocket"in window;let r=null;const a=t.ref(null),l=t.ref(null),u=t.ref(null),s=t.ref(!1),i=t.ref(!1),c=t.ref(!1);let v=m,d=m;return o&&(r=new WebSocket(e,n),r.addEventListener("message",e=>{a.value=e,u.value=e.data}),r.addEventListener("error",e=>{l.value=e,c.value=!0}),r.addEventListener("close",()=>{s.value=!1,i.value=!0}),r.addEventListener("open",()=>{s.value=!0,i.value=!1}),v=e=>r.send(e),d=(e,t)=>{r.close(e,t)}),{supported:o,ws:r,send:v,close:d,messageEvent:a,errorEvent:l,data:u,isOpen:s,isClosed:i,errored:c}},e.useWebStorage=ge,e.useWorker=function(e,n,o){const r=b&&"Worker"in self,a=t.ref(),l=t.ref(),u=t.ref(!r),s=t.ref(!r);if(!r)return u.value=!0,{worker:void 0,data:l,postMessage:m,terminate:m,errorEvent:a,errored:s,terminated:u};const i=new Worker(e,o),c=e=>i.postMessage(e);function v(){i.terminate(),u.value=!0}return i.addEventListener("message",e=>{l.value=e.data},h),i.addEventListener("error",e=>{a.value=e,s.value=!0},h),t.onUnmounted(v),n&&c(n),{worker:i,data:l,postMessage:c,terminate:v,errorEvent:a,errored:s,terminated:u}},e.useWorkerFunction=function(e,n){const r=b&&"Worker"in self,a=t.computed(()=>n&&o(n.dependencies)||[]),l=t.computed(()=>n&&o(n.timeout));if(!r)return L(e,{lazy:!0,throwException:!0});const u=L((...n)=>new Promise((o,r)=>{const s=function(e,t){const n=[t.length>0?`importScripts("${t.join('","')}");`:"","onmessage=",`(${X.toString()})(${e.toString()})`],o=new Blob(n,{type:"text/javascript"});return URL.createObjectURL(o)}(e,a.value),i=new Worker(s);let c=-1;const v=l.value,d=()=>{i.terminate(),URL.revokeObjectURL(s),clearTimeout(c),p()},f=n.length===e.length+1&&t.isRef(n[n.length-1])&&!1===n[n.length-1].value?t.computed(()=>u.cancelled.value||n[n.length-1].value):u.cancelled,p=f?t.watch(f,()=>{d(),o(void 0)},{immediate:!1}):m;i.addEventListener("message",e=>{e.data[0]?o(e.data[1]):r(e.data[1]),d()},h),i.addEventListener("error",e=>{d(),r(e)},h),i.postMessage([...n]),v&&(c=setTimeout(()=>{u.cancel(`[WebWorker] timeout after ${v}ms`)},v))}),{lazy:!0,throwException:!0});return u},e.wrap=r,e}({},VueRuntimeCore,devtoolsApi);

@@ -1,1 +0,1 @@

var vueComposable=function(e,t,n){"use strict";function o(e){return t.isRef(e)?e.value:e}function r(e){return t.isRef(e)?e:t.ref(e)}const a=Array.isArray,l=e=>"function"==typeof e,u=e=>"string"==typeof e,s=e=>"boolean"==typeof e,i=e=>v(e)&&l(e.getTime),c=e=>"number"==typeof e,v=e=>null!==e&&"object"==typeof e,d=e=>v(e)&&!!e.tagName;function f(e){return v(e)&&l(e.then)&&l(e.catch)}const m=()=>{},p=()=>!1,h={passive:!0};function g(e){return new Promise(t=>{setTimeout(t,e)})}const y=2**32-2;function w(e,t,n){return e<t?t:e>n?n:e}const b="undefined"!=typeof window;function E(e,...t){for(let n=0;n<t.length;n++){const r=t[n];if(void 0===r||!v(r))continue;const a=Object.keys(r);for(let t=0;t<a.length;t++){const n=a[t],l=o(r[n]),u=typeof l,s=typeof e[n];void 0!==e[n]&&u!==s||(e[n]=v(l)?E(e[n]||{},l):r[n])}}return e}function S(e,n,o,a){let l=m;if(e){const u=r(e),s=e=>e.removeEventListener(n,o),i=e=>e.addEventListener(n,o,a),c=t.watch(u,(e,t,n)=>{e&&(i(e),n(()=>s(e)))},{immediate:!0});l=()=>{s(u.value),c()}}return l}function I(e,t,n){return M(e,t,n)}function M(e,t=50,n={isImmediate:!1}){let o;return function(...r){const a=this,l=n.isImmediate&&void 0===o;void 0!==o&&clearTimeout(o),o=setTimeout((function(){o=void 0,n.isImmediate||e.apply(a,r)}),t),l&&e.apply(a,r)}}const $=["mousedown","touchstart"];function k(e,n){if(!e)throw new Error(`[usePromise] argument can't be '${e}'`);if("function"!=typeof e)throw new Error("[usePromise] expects function, but received "+typeof e);const[o,r]=s(n)?[n,!1]:v(n)?[n.lazy,n.throwException]:[!1,!1],a=t.ref(!1),l=t.ref(null),u=t.ref(null),i=t.ref(),c=async(...t)=>{a.value=!0,l.value=null;const n=t&&e.length!==t.length&&t.length>0&&s(t[t.length-1])?t[t.length-1]:r,o=i.value=e(...t);try{const e=await o;return i.value===o&&(u.value=e),e}catch(e){return i.value===o&&(l.value=e,u.value=null),n?o:void 0}finally{i.value===o&&(a.value=!1)}};return o||c(),{exec:c,result:u,promise:i,loading:a,error:l}}function L(e,n){const o=t.ref(!1);let r=void 0;const a=k((...t)=>{return n=e(...t),new Promise((e,t)=>{r=e=>{o.value=!0,t(e)},n.then(e).catch(t)});var n},n);return!t.getCurrentInstance()||v(n)&&!1===n.unmountCancel||t.onUnmounted(()=>r&&r()),{...a,cancel:e=>{r&&r(e)},cancelled:o}}const x=Symbol(""),R=Symbol(""),C=async(e,t,n,o)=>{const r=t[x].value;let a=-1;const l=e.maxRetries||9001,u=e.retryDelay||T;t.retryErrors.value=[],t.isRetrying.value=!1,t.nextRetry.value=void 0;let s=void 0;do{let e=!1,v=null;try{if(++a,v=o?n(...o):n(),f(v)&&(v=await v),t[R].value)return null;e=!0}catch(e){v=null,t.retryErrors.value.push(e)}if(r!==t[x].value)return v;if(e)return t.isRetrying.value=!1,t.nextRetry.value=void 0,v;if(a>=l)return t.isRetrying.value=!1,t.nextRetry.value=void 0,Promise.reject(new Error("[useRetry] max retries reached "+l));t.isRetrying.value=!0;const d=Date.now(),m=u(a),p=f(m)?await m:m;if(!f(m)||p){if(c(p))s=p;else{if(!i(p))throw new Error(`[useRetry] invalid value received from options.retryDelay '${typeof p}'`);s=p.getTime()}s<d?t.nextRetry.value=d+s:(t.nextRetry.value=s,s-=d),s>0&&await g(s)}if(t[R].value)return null;if(r!==t[x].value)return v}while(a<9e3);return null};const T=()=>0;const O=Symbol("");function P(e,t){l(e.provide)?e.provide(O,t):console.warn("[vue-composable] devtools is not supported for vue 2")}function D(){const e={},n=t.inject(O,e);if(n!==e)return n;console.warn("[vue-composable] devtools not found, please run app.use(VueComposableDevtools)")}let j=void 0;j=e=>{let t;const n=[],o=[],r=new Proxy({},{get:(e,o)=>t?t.on[o]:o in e?e[o]:void(e[o]=(...e)=>{n.push({type:o,args:e})})}),a=new Proxy({on:r},{get:(e,n)=>"on"===n?e.on:t?t[n]:n in e?e[n]:e[n]=(...e)=>{o.push({type:n,args:e})}});return e.then(e=>{t=e,async function(e,t,n){setTimeout(async()=>{const o=["addTimelineLayer","addInspector","sendInspectorTree","sendInspectorState","addTimelineEvent"];for(const t of o){for(const o of n.filter(e=>e.type===t))e[t](...o.args);await g(20)}new Set(n.filter(e=>"notifyComponentUpdate"===e.type).map(e=>e.args[0])).forEach(t=>e.notifyComponentUpdate(t)),t.forEach(t=>e.on[t.type](...t.args)),t.length=0,n.length=0},100)}(t,n,o)}),a};var A=j;const F=(e,t="vue-composable",o="Vue-composable devtools plugin")=>{const r=new Promise(r=>{n.setupDevtoolsPlugin({id:t,label:o,app:e},r)});P(e,A(r))},U={install:(e,t={id:"vue-composable",label:"Vue-composable devtools plugin"})=>F(e,t.id,t.label)};function V(e){return e&&(s(e.isJson)||s(e.parseImmediate)||s(e.unmountCancel))}let W=void 0;let N=void 0,z=void 0;let B=void 0,_=void 0;function H(e,n){const o=b&&"BroadcastChannel"in self,r=t.ref(null),a=t.ref(null),l=t.ref(null),u=t.ref(!1),s=t.ref(!1);let i=m,c=m,v=m;if(o){const o=new BroadcastChannel(e);o.addEventListener("messageerror",e=>{l.value=e,u.value=!0},h),o.addEventListener("message",e=>{a.value=e,r.value=e.data},h),i=e=>o.postMessage(e),c=()=>{o.close(),s.value=!0},v=(e,n)=>{o.addEventListener("message",e,n),t.onUnmounted(()=>o.removeEventListener("message",e))},t.onUnmounted(()=>{n&&n(),c()})}return{supported:o,data:r,messageEvent:a,errorEvent:l,errored:u,isClosed:s,send:i,close:c,addListener:v}}function K(e,t){const n=getComputedStyle(e).getPropertyValue(t);return n?n.trim():null}function q(e,t,n){e.style.setProperty(t,n)}const J={attributes:!0,childList:!0,subtree:!0},Q=e=>e.length<=2||"-"!==e[0]||"-"!==e[1]?"--"+e:e;const X=e=>function(t){const n=t.data||[];return new Promise(t=>{try{Promise.resolve(e.apply(e,n)).then(e=>t(postMessage([!0,e]))).catch(e=>t(postMessage([!1,e])))}catch(e){t(postMessage([!1,e]))}})};function Y(e){const n=!!b&&"matchMedia"in window;let o=void 0,r=void 0,a=m;if(n){o=t.ref(matchMedia(e)),r=t.ref(o.value.matches);const n=e=>{r.value=e.matches};o.value.addEventListener("change",n,h);const a=()=>o.value.removeEventListener("change",n);t.onUnmounted(a)}else o=t.ref({}),r=t.ref(!1);return{supported:n,mediaQueryList:o,matches:r,remove:a}}function G(e,n){const{addListener:o,send:r,close:a,supported:l}=H(e,()=>y()),u=Date.now(),s=t.ref(!1),i=t.ref(0),c=t.computed(()=>1!==i.value||s.value),d=t.ref([]),f=t.ref(n);let m=!1,p=void 0;r({type:0});const g=()=>r({type:5,id:u}),y=()=>{0!==d.value.length&&(s.value&&r({type:3,mind:1,id:Math.min(...d.value)}),r({type:4,id:u}))};return o(e=>{switch(e.data.type){case 0:r({type:2,value:f.value,mind:i.value});break;case 4:{const t=d.value.indexOf(e.data.id);t>=0&&d.value.splice(t,1),p===e.data.id&&d.value.length>0&&r({type:3,mind:1,id:Math.min(u,...d.value)});break}case 2:m=!0,f.value=e.data.value,i.value=e.data.mind;break;case 3:i.value=e.data.mind,p=1===e.data.mind&&e.data.id||void 0,s.value=p===u,s.value&&(d.value=[],g());break;case 5:d.value=[e.data.id],r({type:6,id:u});break;case 6:d.value.push(e.data.id)}},h),g(),t.watch(f,(e,t)=>{if(m)m=!1;else{if(1===i.value&&!1===s.value)return m=!0,void(f.value=t);r({type:2,mind:i.value,value:v(e)?{...e}:e}),m=!1}},{deep:!0,immediate:!1}),b&&window.addEventListener("unload",y,h),t.onUnmounted(()=>{y(),a()}),{supported:l,id:u,data:f,master:s,mind:i,editable:c,targets:d,ping:g,setMind:e=>{switch(e){case 1:s.value=!0;break;case 0:s.value=!1}i.value=e,r({type:3,id:u,mind:i.value})},addListener:o}}const Z="no-scroll";function ee(e,n){const o=Symbol(),r=t.inject(e,o);return r===o?n():r}function te(e,n){const o=r(n),l=r(e);return v(o.value)||t.isRef(n)?[void 0!==l.value?l:void 0,o]:!v(l.value)||a(l.value)||u(l.value)?[l.value?l:void 0,void 0]:[void 0,l]}function ne(e,n){const[r,a]=te(e,n),l=t.computed(()=>new Intl.NumberFormat(o(r),o(a))),u=(e,t,n)=>(t||n?new Intl.NumberFormat(o(n)||o(r),{...o(a),...o(t)}):l.value).format(o(e));return{format:(e,n,o)=>t.computed(()=>u(e,n,o)),formatString:u,formatter:l}}function oe(e){if(e)return c(e)?e:re(e)}const re=e=>{const t=e.match(/^(\d+)px$/);if(t)return+t[1]};function ae(e){const n={},o=new Map,r=t.ref();let a=[];const l=[];for(const r in e){const u=e[r],s=oe(u);if(void 0!==s){const e=t.ref(!1);n[r]=e,o.set(s,{name:r,valid:e}),a.push(s)}else{const{matches:e,remove:t}=Y(u);n[r]=e,l.push(t)}}a=a.sort((e,t)=>t-e);const u=b?()=>{const e=window.innerWidth;let t=void 0;for(let n=0;n<a.length;n++){const r=a[n],l=o.get(r);l.valid.value=e>=r,e>=r&&void 0===t&&(t=l.name)}r.value=t}:m,s=I(u,10),i=b?()=>window.removeEventListener("resize",s):m;return b&&(t.onMounted(()=>{u(),window.addEventListener("resize",s,h)}),t.onUnmounted(()=>{i(),l.forEach(e=>e())})),{...n,remove:i,current:r}}const le=Symbol(""),ue={sm:640,md:768,lg:1024,xl:1280};function se(e){return v(e)&&v(e.theme)&&v(e.theme.screens)}function ie(e){return!!v(e)&&(u(e.min)||u(e.max)||c(e.min)||c(e.max))}function ce(e){return c(e)?e+"px":e}function ve(e){const t=[];if(a(e)){const n=e.map(ve);for(let e=0;e<n.length;e++){const o=n[e];t.push(...o)}}else v(n=e)&&u(n.raw)?t.push(e.raw):ie(e)?t.push(function(e){return ie(e)?`(${[e.max&&"max-width: "+ce(e.max),e.min&&"min-width: "+ce(e.min)].filter(Boolean).join(" and ")})`:""}(e)):(u(e)||c(e))&&t.push(`(min-width: ${ce(e)})`);var n;return t}function de(e){const n=se(e)?e.theme.screens:e;if(se(e))for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];v(t)?n[e]=ve(n[e]).join(" or "):u(t)&&(t.endsWith("px")||(n[e]=ve(n[e]).join(" or ")))}const o=ae(n);return t.provide(le,o),o}function fe(e,t){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&(t&&0!==t.length||!1)}function me(e){try{if(!e)return!1;const t=":$";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return fe(t,e)}}function pe(e,t){try{return e.parse(t)}catch{return t}}let he=void 0;function ge(e,n=JSON,o=10){const a=b?window[e]:void 0,l=me(a);he||(he=new Map,b&&window.addEventListener("storage",e=>{if(e.newValue===e.oldValue)return;let t=he.get("localStorage");t=e.storageArea===window.localStorage?he.get("localStorage"):he.get("sessionStorage"),t&&Object.keys(t.$syncKeys).length>0&&(null===e.key?t.clear():t.$syncKeys[e.key]&&(null===e.newValue?t.removeItem(e.key):t.updateItem(e.key,e.newValue)))}));let s,i=he.get(e);return l&&a?i?s=i.$quotaError:(s=t.ref(!1),i={$refMap:new Map,$watchHandlers:new Map,$syncKeys:{},$quotaError:s,key:a.key,length:a.length,setSync(e,t){t?this.$syncKeys[e]=!0:delete this.$syncKeys[e]},clear(){this.$refMap.forEach((e,t)=>this.removeItem(t))},removeItem(e){const t=this.$refMap.get(e);t&&(t.value=void 0);const n=this.$watchHandlers.get(e);n&&n(),delete this.$syncKeys[e],this.$refMap.delete(e),a.removeItem(e)},getItem(e){const t=a.getItem(e);return t?this.setItem(e,pe(n,t)):null},setItem(e,l){const i=r(l);this.$refMap.set(e,i);const c=(e,t)=>{try{const o=a.getItem(e),r=u(t)?t:n.stringify(t);a.setItem(e,r),o!==r&&b&&this.$syncKeys[e]&&window.dispatchEvent(new StorageEvent(e,{newValue:r,oldValue:o,storageArea:a}))}catch(e){s.value=fe(e,a)}};c(e,l);const v=t.watch(i,M(t=>{c(e,t)},o),{immediate:!1,deep:!0});return this.$watchHandlers.set(e,v),i},updateItem(e,t){let o=this.$refMap.get(e);o&&(o.value=pe(n,t))}},he.set(e,i)):(s=t.ref(!1),i={}),{supported:l,quotaError:s,store:i,remove:()=>he.delete(e)}}function ye(e,n,o){const{supported:r,store:a}=ge("localStorage");let l=m,u=m,s=m,i=void 0;return r&&a?(s=t=>a.setSync(e,t),l=()=>a.removeItem(e),u=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n)),!1!==o&&s(!0)):i=t.ref(n),{supported:r,storage:i,clear:u,remove:l,setSync:s}}function we(e,n,o){const{supported:r,store:a}=ge("sessionStorage");let l=m,u=m,s=p,i=void 0;return r&&a?(l=()=>a.removeItem(e),u=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n))):i=t.ref(n),{supported:r,storage:i,clear:u,remove:l,setSync:s}}let be=void 0;function Ee(e){const n=r(e.currentPage),o=r(e.pageSize),a=t.ref(0),l=r(e.total),u=t.computed({get:()=>a.value,set(e){c(e)&&(a.value=Math.min(e,l.value))}}),s=t.computed({get:()=>n.value,set(e){c(e)&&(n.value=w(e,1,v.value),u.value=(n.value-1)*i.value)}}),i=t.computed({get:()=>o.value,set(e){c(e)&&(o.value=e)}}),v=t.computed(()=>Math.ceil(l.value/i.value));s.value=n.value;return t.watch([l,i],e=>{s.value>v.value&&(s.value=v.value)},{immediate:!1}),{pageSize:i,total:l,currentPage:s,offset:u,lastPage:v,next:()=>++s.value,prev:()=>--s.value,first:()=>s.value=1,last:()=>s.value=v.value}}function Se(e){const n=1e3,o=e&&e.refreshMs||n,r=!e||!s(e.sync)||e.sync,a=e&&l(e.timeFn)&&e.timeFn||Date.now;let u=void 0,i=void 0;const c=t.ref(a()),v=()=>{clearInterval(u),clearTimeout(i)},d=b?()=>u=setInterval(()=>c.value=a(),o):m;if(r){const e=n-(c.value-Math.floor(c.value/n)*n);i=setTimeout(d,e)}else d();return t.onUnmounted(v),{now:c,remove:v}}function Ie(e,n){return t.computed(()=>{const r=o(e);if(!n)return r;const l=t.isRef(n)?t.reactive(n.value):t.reactive(n);return r.replace(/({?{[\w\s]*}?})/g,e=>{const t=e.replace("{","").replace("}","").trim();if(e[0]===e[1]&&"{"===e[0])return""+t;const n=a(l)?l[+t]:l[t];return void 0===n?e:""+o(n)})})}function Me(e,n,r=".",a=m){return t.computed(()=>{const t=o(e),l=o(n);if(void 0===t)return a(l,t,l,t);if(!l)return t;const u=l.split(r);let s=t;for(let e=0;e<u.length;e++){let n=u[e];if("]"===n[n.length-1]){const t=/\[[`'"]?([^`'"\]]*)[`'"]?\]/g;let o=n,r=t.exec(o);if(r){let a=r[0].length,l=r.index-a,s=1;do{r.index,l=r.index,a=r[0].length,n=n.slice(0,-r[0].length),u.splice(e+s,0,r[1]),++s}while(r=t.exec(o));if(!n&&"["===o[0]&&o.length>2)continue}else n="",console.warn(`[usePath] invalid path provided "${o}"`)}if(!v(s))return a(u.slice(0,e+1).join(r),s,l,t);if(!n)return a(u.slice(0,e+1).join(r),s,l,t);if(s=s[n],!s)return a(u.slice(0,e+1).join(r),s,l,t)}return s})}function $e(e){return void 0!==e.$value}const ke=(e,n,r)=>{const{$message:a,$validator:l,...u}=function(e){return v(e)}(n)?n:{$validator:n,$message:void 0},{$pending:s,$promise:i,$invalid:c,$error:d}=((e,n,r,a)=>{const l=t.ref(null),u=t.ref(!1),s=t.ref(),i=t.ref(!1);let c=void 0;const v=e=>{l.value=(async()=>{try{u.value=!0;const t=n(e,c);f(t)?i.value=!await t:i.value=!t,s.value=i.value?r.value:void 0}catch(e){throw i.value=!0,e}finally{u.value=!1}})().catch(e=>(s.value=o(e),i.value=!0,e))};return a.push(o=>{c=o,t.watch(()=>{try{n(e.value,c)}catch(e){}return e.value},v,{deep:!0,immediate:!0})}),{$promise:l,$pending:u,$invalid:i,$error:s}})(e,l,t.ref(a),r);return{$pending:s,$error:d,$promise:i,$invalid:c,$message:a,...u}},Le=(e,n)=>{const a={},l=$e(e)?r(e.$value):void 0;for(const r of Object.keys(e))if("$"!==r[0])if(l){const t=ke(l,e[r],n);a[r]={...t,$value:l}}else{const l=Le(e[r],n);let u,i,c=void 0;if($e(l)){const e=Object.keys(l).filter(e=>"$"!==e[0]).map(e=>l[e]);u=t.computed(()=>e.map(e=>e.$error).map(e=>o(e)).filter(Boolean)),i=t.computed(()=>e.some(e=>!!o(e.$invalid)))}else{const e=Object.keys(l).map(e=>l[e]);u=t.computed(()=>e.map(e=>o(e.$errors)).filter(Boolean).filter(e=>e.some(Boolean))),c=t.computed(()=>e.some(e=>e.$anyDirty||s(o(e.$dirty))&&o(e.$dirty))),i=t.computed(()=>e.some(e=>!!o(e.$anyInvalid)))}a[r]={...l,$errors:u,$anyInvalid:i},c&&(a[r].$anyDirty=c)}else{if("$value"===r){a[r]=l;const e=t.ref(!1),n=t.watch(l,()=>{e.value=!0,n()},{immediate:!1,deep:!0});a.$dirty=e;continue}a[r]=e[r]}return a};const xe=Symbol("");function Re(e){const n=t.ref(Object.keys(e.messages)),a=t.ref(e.messages),u=t.ref(e.locale),i=t.ref({});let c=t.ref();const v={},d=(e,n)=>{if(v[e])return v[e];const o=n.value[e];if(!o)return t.ref({});let a=l(o)?o():o;return f(a)?a.then(t=>v[e]=r(t)):l(o)?r(a):v[e]=t.computed(()=>n.value[e])},m=!!e.fallback&&(!s(e.notFoundFallback)||e.notFoundFallback);let p=!1;if(m){const t=d(e.fallback,a);f(t)?(t.then(e=>{c.value=e.value}),p=!0):c.value=t.value}else c.value={};const h=t.ref(0);t.watch(a,()=>h.value++,{deep:!0,immediate:!1}),t.watch([u,c,h],([t,n,r])=>{if(t===e.fallback&&m)i.value=n;else{const e=e=>i.value=E({},n,o(e)),r=d(t,a);f(r)?r.then(e):e(r)}},{immediate:!p});const g=(t,n)=>e.resolve?r(e.resolve(i.value,t,n)):Ie(Me(i,t,".",(e,t,n,o)=>n),n);return{locale:u,locales:n,i18n:i,$t:g,$ts:(e,t)=>g(e,t).value,addLocale:(e,t)=>{n.value.indexOf(e)>=0||n.value.push(e),delete v[e],a.value[e]=t},removeLocale:t=>{const o=n.value.indexOf(t);if(o>=0){const r=[u.value,c.value&&e.fallback,...n.value].find(e=>e&&e!==t);r&&(t===e.fallback&&(c.value=void 0),t===u.value&&(u.value=r)),n.value.splice(o,1)}delete a.value[t],delete v[t]}}}function Ce(e){const n=Re(e);return t.provide(xe,n),n}const Te=Symbol("");const Oe=Symbol(""),Pe={install(e){const n=t.ref(!0),o=t.readonly(n);{e._context.provides[Oe]=o;const t=e.mount;e.mount=(...e)=>{const o=t(...e);return n.value=!1,o}}}};return e.COMMIT="f726bf4",e.FALSE_OP=p,e.MAX_ARRAY_SIZE=y,e.NO_OP=m,e.PASSIVE_EV=h,e.SCROLL_LOCK_CLASS=Z,e.UseDevtoolsApp=F,e.VERSION="1.0.0-beta.6",e.VUE_VERSION="3",e.VueComposableDevtools=U,e.buildI18n=Re,e.debounce=M,e.deepClone=E,e.exponentialDelay=e=>{const t=100*Math.pow(2,e);return t+.2*t*Math.random()},e.exposeWorker=function(e){this.onmessage=async t=>{const n=e(t.data);if(void 0===n)this.postMessage(n);else if(null===n)this.postMessage(n);else if(a(n))this.postMessage(n);else if(n[Symbol.asyncIterator])for await(const e of n)this.postMessage(e);else if(n[Symbol.iterator])for(const e of n)this.postMessage(e);else this.postMessage(await n)}},e.getCssVariableFor=K,e.getDevtools=D,e.hydrationPlugin=Pe,e.injectFactory=ee,e.isArray=a,e.isBoolean=s,e.isClient=b,e.isDate=i,e.isElement=d,e.isFunction=l,e.isNumber=c,e.isObject=v,e.isPromise=f,e.isString=u,e.isSymbol=e=>"symbol"==typeof e,e.minMax=w,e.noDelay=T,e.promisedTimeout=g,e.provideSSRTitle=function(e,t){const n=r(void 0===t?"":t);return e.provide(Te,n),n},e.refShared=function(e,n){const o=t.getCurrentInstance(),r=n||o.vnode.scopeId;if(!r)return t.ref(e);const{data:a,supported:l}=G(r,e);return a},e.setBreakpointTailwindCSS=de,e.setCssVariableFor=q,e.setDevtools=P,e.setI18n=Ce,e.storageAvailable=me,e.unwrap=o,e.useArrayPagination=function(e,n){const o=r(e),a=Ee({currentPage:1,pageSize:10,...n,total:t.computed(()=>o.value.length)}),l=t.computed(()=>{const e=o.value;return Array.isArray(e)?e.slice(a.offset.value,a.offset.value+a.pageSize.value):[]});return{...a,result:l}},e.useBreakpoint=ae,e.useBreakpointChrome=function(){return ae({mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560})},e.useBreakpointTailwindCSS=function(e){return ee(le,()=>de(e||ue))},e.useBroadcastChannel=H,e.useCancellablePromise=L,e.useCssVariables=function(e,n,a){const l=b&&"MutationObserver"in self,[s,i]=t.isRef(n)||d(n)?[n,a||J]:[l&&document.documentElement||{},n||J],c=t.ref(!0),v={},f=[],p=Object.entries(e).map(e=>{const[t,n]=u(e[1])?[e[1]]:[e[1].name,e[1].value];return n&&(f.push(()=>q(o(s),t,o(n))),v[e[0]]=r(n)),[e[0],Q(t)]});for(let e=0;e<p.length;e++){const[n,a]=p[e];v[n]||(v[n]=t.ref(t.isRef(s)&&!s.value||!l?null:K(o(s),a))),l&&t.watch([v[n],r(s)],e=>{c&&e[1]&&e[0]!==K(e[1],a)&&q(e[1],a,e[0])},{immediate:!t.isRef(s)})}if(!l)return{...v,stop:m,resume:m,supported:l,observing:c};const h=()=>{for(let e=0;e<p.length;e++){const[t,n]=p[e];v[t].value=K(o(s),n)}},g=new MutationObserver(h),y=()=>{g.disconnect(),c.value=!1},w=()=>{c.value||h(),g.observe(o(s),i),c.value=!0};return t.onUnmounted(y),t.isRef(s)?t.onMounted(()=>{f.forEach(e=>e()),t.watch(s,(e,t)=>{t&&y(),e&&w()})}):(b||s)&&(f.forEach(e=>e()),w()),{...v,supported:l,resume:w,stop:y,observing:c}},e.useCurrencyFormat=function(e,n,r){const a=o(e),l=!v(a),u=l?e:t.computed(()=>o(e).currency),[s,i]=te(n,l?r:e),c=t.computed(()=>{const e=o(i)||{},t=o(u)||e.currency;return{style:"currency",...e,currency:t}}),d=ne(s),f=(e,t,n,r,a)=>{const l={...c.value,...o(r)},u=o(t)||l.currency,s=o(n)||l.currencyDisplay;return d.formatString(e,{...l,currency:u,currencyDisplay:s},a)};return{format:(e,n,o,r,a)=>t.computed(()=>f(e,n,o,r,a)),formatString:f}},e.useDateNow=function(e){return Se({refreshMs:e&&e.refreshMs||1e3,sync:!e||!s(e.sync)||e.sync,timeFn:Date.now})},e.useDebounce=I,e.useDevtoolsInpector=function(e,n=[]){const o=D(),r=t.ref(n),a=t.computed(()=>{if(!r.value)return new Map;const e=t.toRaw(r.value),n=new Map;for(const t of e)n.set(t.id,t);return n});if(o){const n=e.id;o.addInspector(e),o.on.getInspectorTree(o=>{if(o.inspectorId!=n)return;if(console.log(),!r.value)return;const a=o.filter;let l=t.toRaw(r.value);o.filter&&(l=e.nodeFilter?e.nodeFilter(o.filter,l):l.filter(e=>e.id.indexOf(a)>=0||e.label.indexOf(a)>=0)),o.rootNodes=l}),o.on.getInspectorState(o=>{if(o.inspectorId!=n)return;const r=a.value.get(o.nodeId);if(r){const n=t.reactive(r.state);o.state=e.stateFilter?e.stateFilter("",n):n}}),t.watch(r,()=>{o.sendInspectorTree(n),o.sendInspectorState(n)},{immediate:!0,deep:!0})}return{nodes:r}},e.useDevtoolsTimelineLayer=function(e,t,n){const o=D();let r=m,a=m;return o&&(o.addTimelineLayer({id:e,label:t,color:n}),r=(t,n)=>o.addTimelineEvent({layerId:e,event:t,all:n}),a=e=>r({...e,time:Date.now()})),{id:e,addEvent:r,pushEvent:a}},e.useEvent=S,e.useFetch=function(e,n){const o=t.ref(null),r=t.ref(""),a=t.ref(),l=t.ref(null),[s,i,c]=V(e)?[!1!==e.isJson,!1!==e.parseImmediate,!1!==e.unmountCancel]:V(n)?[!1!==n.isJson,!1!==n.parseImmediate,!1!==n.unmountCancel]:[!0,!0,!0],v=e?u(e)?n:V(e)?e:u(e.url)?n:e:void 0,d=t.ref(!1),f=t.ref();let m=void 0;const p=e=>{m&&(m.abort(),d.value=!0,f.value=e)},h=k(async(e,t)=>{m=new AbortController;const n=await fetch(e,{signal:m.signal,...v,...t});if(n){const e=[s?n.clone().json().then(e=>o.value=e).catch(e=>{o.value=null,l.value=e}):Promise.resolve(),n.clone().blob().then(e=>{a.value=e}),n.clone().text().then(e=>{r.value=e})];i&&await Promise.all(e)}return n},!0),g=t.computed(()=>h.result.value&&h.result.value.status||null),y=t.computed(()=>h.result.value&&h.result.value.statusText||null);return e&&(u(e)||u(e.url))&&h.exec(e,void 0,!1),c&&t.getCurrentInstance()&&t.onUnmounted(()=>{m&&p("unmounted")}),{...h,cancel:p,isCancelled:d,cancelledMessage:f,text:r,blob:a,json:o,jsonError:l,status:g,statusText:y}},e.useFormat=Ie,e.useGeolocation=function(e){const n=b&&!!navigator.geolocation,o=t.ref(e?!1===e.immediate:void 0),r=t.ref(null),a=t.ref(null),l=t.ref(null),u=t.ref(e&&e.enableHighAccuracy||null);let i=m;if(n){const n=e=>{a.value=e.timestamp,l.value=e.coords,r.value=null},c=e=>{a.value=Date.now(),l.value=null,r.value=e},v=()=>!0!==o.value&&f&&navigator.geolocation.clearWatch(f);let d=()=>navigator.geolocation.getCurrentPosition(n,c,e);i=o.value?()=>{o.value?o.value=!1:d()}:d;let f=0;t.onMounted(()=>t.watch([u,o],t=>{v();const o=s(t[0])?t[0]:e?e.enableHighAccuracy:void 0;f=navigator.geolocation.watchPosition(n,c,e?{...e,enableHighAccuracy:o}:{enableHighAccuracy:o})},{immediate:!o.value})),t.onUnmounted(v)}return{supported:n,refresh:i,error:r,timestamp:a,coords:l,highAccuracy:u}},e.useHydration=function(){return t.inject(Oe,t.computed(()=>!1))},e.useI18n=function(e){return e?Ce(e):t.inject(xe)},e.useIntersectionObserver=function(e,n){const a=b&&"IntersectionObserver"in window,l=e?r(e):void 0,u=!l||!d(l.value)&&l.value?void 0:l,s=t.computed(()=>n?o(n):u?void 0:o(e)),i=t.ref([]),c=t.computed(()=>i.value.length>0&&i.value.every(e=>e.isIntersecting)),v=e=>{i.value=e};let f=t.ref();a&&t.watch(s,e=>{f.value&&f.value.disconnect();const t=e&&e&&{root:o(e.root),rootMargin:o(e.rootMargin),threshold:o(e.threshold)}||void 0;f.value=new IntersectionObserver(v,t);i.value.map(e=>e.target).forEach(f.value.observe)},{deep:!0,immediate:!0});const p=a?e=>{const t=o(e);f.value.observe(t)}:m,h=a?e=>{const t=o(e);f.value.unobserve(t)}:m,g=()=>f.value.disconnect();return u&&(t.onMounted(()=>{u.value&&p(u)}),t.onUnmounted(()=>{g()})),{supported:a,elements:i,observe:p,unobserve:h,disconnect:g,isIntersecting:c}},e.useInterval=function(e,n,...o){let r=void 0;const a=(t,...a)=>{if(l(),!t&&!n)return;return r=setInterval(e,t||n,...a&&a.length?a:o)},l=()=>{r&&(clearInterval(r),r=void 0)};return c(n)&&a(),t.onUnmounted(l),{remove:l,start:a}},e.useIntlDateTimeFormat=function(e,n){const[r,a]=te(e,n),l=t.computed(()=>new Intl.DateTimeFormat(o(r),o(a))),s=(e,t,n)=>{const s=t||n?new Intl.DateTimeFormat(o(n)||o(r),{...o(a),...o(t)}):l.value,i=o(e);return s.format(u(i)?new Date(i):i)};return{format:(e,n,o)=>t.computed(()=>s(e,n,o)),formatString:s,formatter:l}},e.useIntlNumberFormat=ne,e.useLanguage=function(){if(B||(B=b?t.ref(navigator.language):t.ref("")),!_)if(b){_=t.ref(navigator.languages);const e=()=>{B.value=navigator.language,_.value=navigator.languages};window.addEventListener("languagechange",e,h)}else _=t.ref([]);return{language:B,languages:_}},e.useLocalStorage=ye,e.useLockScroll=function(e,n){const l=u(e)?t.ref([]):a(t.unref(e))?r(e):r([e]),s=u(n)?{lockedClass:n,auto:!0}:n||{auto:!0};s.lockedClass||(s.lockedClass=Z);const i=t.ref(!1),c=t.computed(()=>l.value.map(e=>t.ref(e))),v=t.watch([i,c],([e,t],[n,r])=>{for(const a of t){const t=o(a);if(s.lockedClass){if(!t)return;t.classList.toggle(s.lockedClass,e)}s.onChange&&(n===e&&r.find(e=>o(e)===t)||s.onChange(t,e))}},{flush:"sync",deep:!1}),d=()=>i.value=!0,f=()=>i.value=!1;return u(e)&&t.onMounted(()=>l.value=Array.from(document.querySelectorAll(e))),!1!==s.auto&&(t.onMounted(d),t.onActivated(d),t.onDeactivated(f),t.onBeforeUnmount(f)),{locked:i,lock:d,unlock:f,remove:v}},e.useMatchMedia=Y,e.useNetworkInformation=function(){const e=!!b&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection),n=!!e,o=t.ref(0),r=t.ref(0),a=t.ref("none"),l=t.ref(0),u=t.ref(!1),s=t.ref("none");let i=m,c=m;return e&&(i=()=>{o.value=e.downlink,r.value=e.downlinkMax,a.value=e.effectiveType,l.value=e.rtt,u.value=e.saveData,s.value=e.type},c=S(e,"change",i,h),i()),{supported:n,downlink:o,downlinkMax:r,effectiveType:a,rtt:l,saveData:u,type:s,remove:c}},e.useNow=Se,e.useOnMouseMove=function(e,n,o){const r=t.ref(0),a=t.ref(0);let l=e=>{r.value=e.x,a.value=e.y};const[u,s]=c(n)?[void 0,n]:[n,o];s&&(l=I(l,o));const i=S(e,"mousemove",l,u);return{mouseX:r,mouseY:a,remove:i}},e.useOnOutsidePress=function(e,t){if(!b)return()=>{};const n=r(e),o=$.find(e=>"on"+e in document.documentElement);return S(document,o,e=>n.value&&!n.value.contains(e.target)&&t(e),{passive:!0})},e.useOnResize=function(e,n,o){const a=r(e),l=t.ref(a.value&&a.value.clientHeight),u=t.ref(a.value&&a.value.clientWidth);let s=()=>{l.value=a.value.clientHeight,u.value=a.value.clientWidth};const[i,v]=c(n)?[void 0,n]:[n,o];v&&(s=I(s,o));const d=b?S(window,"resize",s,i||h):m;return t.isRef(e)&&!e.value&&t.onMounted(s),{height:l,width:u,remove:d}},e.useOnScroll=function(e,n,o){const a=e=>!(c(e)||s(e)||!d(e)&&!t.isRef(e)||!e),l=a(e)?r(e):t.ref(b&&window||void 0),u=a(e)?l:t.ref(b&&window.document.scrollingElement||void 0),i=t.ref(u.value&&u.value.scrollTop||0),v=t.ref(u.value&&u.value.scrollLeft||0);let f=()=>{i.value=u.value.scrollTop,v.value=u.value.scrollLeft};const m=(...e)=>u.value&&u.value.scrollTo&&u.value.scrollTo.apply(u.value,e),p=e=>m({top:e}),g=e=>m({left:e}),[y,w]=c(e)||!e?[h,e]:c(n)?[h,n]:[n,o];w&&(f=I(f,o));const E=S(l,"scroll",f,y),M=t.watch(i,p,{immediate:!1}),$=t.watch(v,g,{immediate:!1});return{scrollTop:i,scrollLeft:v,scrollTo:m,remove:()=>{E(),$(),M()},scrollTopTo:p,scrollLeftTo:g}},e.useOnline=function(){const e=b&&"onLine"in navigator;return e||(W=t.ref(!1)),W||(W=t.ref(navigator.onLine),window.addEventListener("offline",()=>W.value=!1,h),window.addEventListener("online",()=>W.value=!0,h)),{supported:e,online:W}},e.usePageVisibility=function(){return z||(z=t.ref(b&&document.hidden)),N||(b?(N=t.ref(document.visibilityState),document.addEventListener("visibilitychange",()=>{N.value=document.visibilityState,z.value=document.hidden},h)):N=t.ref("visible")),{visibility:N,hidden:z}},e.usePagination=Ee,e.usePath=Me,e.usePerformanceNow=function(e){return Se({refreshMs:e&&e.refreshMs||1e3,sync:!e||!s(e.sync)||e.sync,timeFn:()=>performance.now()})},e.usePromise=k,e.usePromiseLazy=function(e,t=!1){return k(e,{lazy:!0,throwException:t})},e.useRetry=function(e,n){const o=!e||l(e)?{}:e,r=l(e)?e:n;if(!l(e)&&!v(e))throw new Error("[useRetry] options needs to be 'object'");if(r&&!l(r))throw new Error("[useRetry] factory needs to be 'function'");const a=t.ref(!1),u=t.ref(),s=t.ref([]),i={value:!1},c={isRetrying:a,retryCount:t.computed(()=>s.value.length),nextRetry:u,retryErrors:s,[x]:{value:0},[R]:i},d=r?(...e)=>(++c[x].value,C(o,c,r,e)):e=>(++c[x].value,C(o,c,e,void 0));return{...c,cancel:()=>{c.isRetrying.value=!1,c.retryErrors.value.push(new Error("[useRetry] cancelled")),c.nextRetry.value=void 0,i.value=!0},exec:d}},e.useSSRTitle=function(e){const n=Symbol(),o=t.inject(Te,n);return o===n||void 0===o?t.ref(u(e)?e:""):(u(e)&&(o.value=e),o)},e.useSessionStorage=we,e.useShare=function(e){const n=b&&"share"in navigator;let o=()=>Promise.resolve(!1),r=p,a=t.ref(!1),l=t.ref(!1);return n&&(o=e=>(a.value=!1,l.value=!1,navigator.share(e).then(e=>(a.value=!0,e)).catch(e=>(a.value=!1,l.value=!0,!1))),r=e=>navigator.canShare(e),e&&r(e)&&o(e)),{supported:n,share:o,canShare:r,shared:a,cancelled:l}},e.useSharedRef=G,e.useStorage=function(e,t,n){return void 0===be&&(be=ge("localStorage").supported),be?ye(e,t,n):we(e,t)},e.useTimeline=function(e,n){const o=t.ref([]),r=n&&n.clone?n.clone:e=>e,a=n&&n.maxLength||y;return t.watch(e,(e,t)=>{o.value.unshift({item:r(t),date:new Date}),o.value.length>a&&o.value.pop()},{immediate:!1,flush:"sync",...n}),t.readonly(o)},e.useTitle=function(e=null){const n=t.ref(u(e)?e:document.title),o=new MutationObserver(e=>{n.value=e[0].target.textContent});t.watch(n,(e,t)=>{u(e)&&e!==t&&(document.title=e)},{immediate:!0,flush:"sync"});const r=document.querySelector("title");return o.observe(r,{childList:!0}),t.onUnmounted(()=>o.disconnect()),n},e.useUndo=function(e,n){const o=r(e),a=t.ref([]),l=t.ref(0),u=n&&n.maxLength||y,s=n&&n.clone||(e=>e),i=t.computed(()=>{const e=0===l.value?1:l.value;return a.value.slice(e)}),c=t.computed(()=>{const e=0===l.value?1:0;return a.value.slice(e,l.value)});t.watch(o,e=>{if(a.value[l.value]===e)return;if(l.value>0){const e=l.value;a.value.splice(0,e),l.value=0}a.value.length>u&&a.value.pop();const t=s(e);a.value.unshift(t)},{...n,immediate:!0,flush:"sync"});const v=e=>{const t=Math.sign(e)<=0?Math.max(e,-c.value.length):Math.min(e,i.value.length);l.value+=t,o.value=a.value[l.value]};return{value:o,undo:(e=1)=>v(e),redo:(e=1)=>v(-e),jump:v,prev:i,next:c}},e.useVModel=function(e,n){const o=t.getCurrentInstance();return o?t.computed({get:()=>e[n],set(e){o.emit("update:"+n,e)}}):t.ref()},e.useValidation=function(e){const n=[],o=Le({input:e},n),r=t.reactive(o.input);return n.forEach(e=>e(r)),r},e.useValueSync=function(e,n){const o=r(e),l=2===arguments.length?t.isRef(arguments[1])&&a(arguments[1].value)?arguments[1]:t.ref([r(arguments[1])]):t.ref(Array.from(arguments).slice(1).map(e=>r(e)));l.value.forEach(e=>{e.value=o.value});let u=l.value.length;return t.watch([o,l],([e,t])=>{if(u<t.length)t.forEach(t=>{t.value!==e&&(t.value=e)});else{u=t.length;for(const n of t)if(n.value!==e)return void(o.value=n.value)}},{deep:!0}),t.watch(o,e=>{l.value.forEach(t=>t.value=e)},{deep:!0,flush:"sync"}),l},e.useWebSocket=function(e,n){const o=b&&"WebSocket"in window;let r=null;const a=t.ref(null),l=t.ref(null),u=t.ref(null),s=t.ref(!1),i=t.ref(!1),c=t.ref(!1);let v=m,d=m;return o&&(r=new WebSocket(e,n),r.addEventListener("message",e=>{a.value=e,u.value=e.data}),r.addEventListener("error",e=>{l.value=e,c.value=!0}),r.addEventListener("close",()=>{s.value=!1,i.value=!0}),r.addEventListener("open",()=>{s.value=!0,i.value=!1}),v=e=>r.send(e),d=(e,t)=>{r.close(e,t)}),{supported:o,ws:r,send:v,close:d,messageEvent:a,errorEvent:l,data:u,isOpen:s,isClosed:i,errored:c}},e.useWebStorage=ge,e.useWorker=function(e,n,o){const r=b&&"Worker"in self,a=t.ref(),l=t.ref(),u=t.ref(!r),s=t.ref(!r);if(!r)return u.value=!0,{worker:void 0,data:l,postMessage:m,terminate:m,errorEvent:a,errored:s,terminated:u};const i=new Worker(e,o),c=e=>i.postMessage(e);function v(){i.terminate(),u.value=!0}return i.addEventListener("message",e=>{l.value=e.data},h),i.addEventListener("error",e=>{a.value=e,s.value=!0},h),t.onUnmounted(v),n&&c(n),{worker:i,data:l,postMessage:c,terminate:v,errorEvent:a,errored:s,terminated:u}},e.useWorkerFunction=function(e,n){const r=b&&"Worker"in self,a=t.computed(()=>n&&o(n.dependencies)||[]),l=t.computed(()=>n&&o(n.timeout));if(!r)return L(e,{lazy:!0,throwException:!0});const u=L((...n)=>new Promise((o,r)=>{const s=function(e,t){const n=[t.length>0?`importScripts("${t.join('","')}");`:"","onmessage=",`(${X.toString()})(${e.toString()})`],o=new Blob(n,{type:"text/javascript"});return URL.createObjectURL(o)}(e,a.value),i=new Worker(s);let c=-1;const v=l.value,d=()=>{i.terminate(),URL.revokeObjectURL(s),clearTimeout(c),p()},f=n.length===e.length+1&&t.isRef(n[n.length-1])&&!1===n[n.length-1].value?t.computed(()=>u.cancelled.value||n[n.length-1].value):u.cancelled,p=f?t.watch(f,()=>{d(),o(void 0)},{immediate:!1}):m;i.addEventListener("message",e=>{e.data[0]?o(e.data[1]):r(e.data[1]),d()},h),i.addEventListener("error",e=>{d(),r(e)},h),i.postMessage([...n]),v&&(c=setTimeout(()=>{u.cancel(`[WebWorker] timeout after ${v}ms`)},v))}),{lazy:!0,throwException:!0});return u},e.wrap=r,e}({},VueRuntimeCore,devtoolsApi);
var vueComposable=function(e,t,n){"use strict";function o(e){return t.isRef(e)?e.value:e}function r(e){return t.isRef(e)?e:t.ref(e)}const a=Array.isArray,l=e=>"function"==typeof e,u=e=>"string"==typeof e,s=e=>"boolean"==typeof e,i=e=>v(e)&&l(e.getTime),c=e=>"number"==typeof e,v=e=>null!==e&&"object"==typeof e,d=e=>v(e)&&!!e.tagName;function f(e){return v(e)&&l(e.then)&&l(e.catch)}const m=()=>{},p=()=>!1,h={passive:!0};function g(e){return new Promise(t=>{setTimeout(t,e)})}const y=2**32-2;function w(e,t,n){return e<t?t:e>n?n:e}const b="undefined"!=typeof window;function E(e,...t){for(let n=0;n<t.length;n++){const r=t[n];if(void 0===r||!v(r))continue;const a=Object.keys(r);for(let t=0;t<a.length;t++){const n=a[t],l=o(r[n]),u=typeof l,s=typeof e[n];void 0!==e[n]&&u!==s||(e[n]=v(l)?E(e[n]||{},l):r[n])}}return e}function S(e,n,o,a){let l=m;if(e){const u=r(e),s=e=>e.removeEventListener(n,o),i=e=>e.addEventListener(n,o,a),c=t.watch(u,(e,t,n)=>{e&&(i(e),n(()=>s(e)))},{immediate:!0});l=()=>{s(u.value),c()}}return l}function I(e,t,n){return M(e,t,n)}function M(e,t=50,n={isImmediate:!1}){let o;return function(...r){const a=this,l=n.isImmediate&&void 0===o;void 0!==o&&clearTimeout(o),o=setTimeout((function(){o=void 0,n.isImmediate||e.apply(a,r)}),t),l&&e.apply(a,r)}}const $=["mousedown","touchstart"];function k(e,n){if(!e)throw new Error(`[usePromise] argument can't be '${e}'`);if("function"!=typeof e)throw new Error("[usePromise] expects function, but received "+typeof e);const[o,r]=s(n)?[n,!1]:v(n)?[n.lazy,n.throwException]:[!1,!1],a=t.ref(!1),l=t.ref(null),u=t.ref(null),i=t.ref(),c=async(...t)=>{a.value=!0,l.value=null;const n=t&&e.length!==t.length&&t.length>0&&s(t[t.length-1])?t[t.length-1]:r,o=i.value=e(...t);try{const e=await o;return i.value===o&&(u.value=e),e}catch(e){return i.value===o&&(l.value=e,u.value=null),n?o:void 0}finally{i.value===o&&(a.value=!1)}};return o||c(),{exec:c,result:u,promise:i,loading:a,error:l}}function L(e,n){const o=t.ref(!1);let r=void 0;const a=k((...t)=>{return n=e(...t),new Promise((e,t)=>{r=e=>{o.value=!0,t(e)},n.then(e).catch(t)});var n},n);return!t.getCurrentInstance()||v(n)&&!1===n.unmountCancel||t.onUnmounted(()=>r&&r()),{...a,cancel:e=>{r&&r(e)},cancelled:o}}const x=Symbol(""),R=Symbol(""),C=async(e,t,n,o)=>{const r=t[x].value;let a=-1;const l=e.maxRetries||9001,u=e.retryDelay||T;t.retryErrors.value=[],t.isRetrying.value=!1,t.nextRetry.value=void 0;let s=void 0;do{let e=!1,v=null;try{if(++a,v=o?n(...o):n(),f(v)&&(v=await v),t[R].value)return null;e=!0}catch(e){v=null,t.retryErrors.value.push(e)}if(r!==t[x].value)return v;if(e)return t.isRetrying.value=!1,t.nextRetry.value=void 0,v;if(a>=l)return t.isRetrying.value=!1,t.nextRetry.value=void 0,Promise.reject(new Error("[useRetry] max retries reached "+l));t.isRetrying.value=!0;const d=Date.now(),m=u(a),p=f(m)?await m:m;if(!f(m)||p){if(c(p))s=p;else{if(!i(p))throw new Error(`[useRetry] invalid value received from options.retryDelay '${typeof p}'`);s=p.getTime()}s<d?t.nextRetry.value=d+s:(t.nextRetry.value=s,s-=d),s>0&&await g(s)}if(t[R].value)return null;if(r!==t[x].value)return v}while(a<9e3);return null};const T=()=>0;const O=Symbol("");function P(e,t){l(e.provide)?e.provide(O,t):console.warn("[vue-composable] devtools is not supported for vue 2")}function D(){const e={},n=t.inject(O,e);if(n!==e)return n;console.warn("[vue-composable] devtools not found, please run app.use(VueComposableDevtools)")}let j=void 0;j=e=>{let t;const n=[],o=[],r=new Proxy({},{get:(e,o)=>t?t.on[o]:o in e?e[o]:e[o]=(...e)=>{n.push({type:o,args:e})}}),a=new Proxy({on:r},{get:(e,n)=>"on"===n?e.on:t?t[n]:n in e?e[n]:e[n]=(...e)=>{o.push({type:n,args:e})}});return e.then(e=>{t=e,async function(e,t,n){setTimeout(async()=>{const o=["addTimelineLayer","addInspector","sendInspectorTree","sendInspectorState","addTimelineEvent"];for(const t of o){for(const o of n.filter(e=>e.type===t))e[t](...o.args);await g(20)}new Set(n.filter(e=>"notifyComponentUpdate"===e.type).map(e=>e.args[0])).forEach(t=>e.notifyComponentUpdate(t)),t.forEach(t=>e.on[t.type](...t.args)),t.length=0,n.length=0},100)}(t,n,o)}),a};var A=j;const F=(e,t="vue-composable",o="Vue-composable devtools plugin")=>{const r=new Promise(r=>{n.setupDevtoolsPlugin({id:t,label:o,app:e},r)});P(e,A(r))},U={install:(e,t={id:"vue-composable",label:"Vue-composable devtools plugin"})=>F(e,t.id,t.label)};function V(e){return e&&(s(e.isJson)||s(e.parseImmediate)||s(e.unmountCancel))}let W=void 0;let N=void 0,z=void 0;let B=void 0,_=void 0;function H(e,n){const o=b&&"BroadcastChannel"in self,r=t.ref(null),a=t.ref(null),l=t.ref(null),u=t.ref(!1),s=t.ref(!1);let i=m,c=m,v=m;if(o){const o=new BroadcastChannel(e);o.addEventListener("messageerror",e=>{l.value=e,u.value=!0},h),o.addEventListener("message",e=>{a.value=e,r.value=e.data},h),i=e=>o.postMessage(e),c=()=>{o.close(),s.value=!0},v=(e,n)=>{o.addEventListener("message",e,n),t.onUnmounted(()=>o.removeEventListener("message",e))},t.onUnmounted(()=>{n&&n(),c()})}return{supported:o,data:r,messageEvent:a,errorEvent:l,errored:u,isClosed:s,send:i,close:c,addListener:v}}function K(e,t){const n=getComputedStyle(e).getPropertyValue(t);return n?n.trim():null}function q(e,t,n){e.style.setProperty(t,n)}const J={attributes:!0,childList:!0,subtree:!0},Q=e=>e.length<=2||"-"!==e[0]||"-"!==e[1]?"--"+e:e;const X=e=>function(t){const n=t.data||[];return new Promise(t=>{try{Promise.resolve(e.apply(e,n)).then(e=>t(postMessage([!0,e]))).catch(e=>t(postMessage([!1,e])))}catch(e){t(postMessage([!1,e]))}})};function Y(e){const n=!!b&&"matchMedia"in window;let o=void 0,r=void 0,a=m;if(n){o=t.ref(matchMedia(e)),r=t.ref(o.value.matches);const n=e=>{r.value=e.matches};o.value.addEventListener("change",n,h);const a=()=>o.value.removeEventListener("change",n);t.onUnmounted(a)}else o=t.ref({}),r=t.ref(!1);return{supported:n,mediaQueryList:o,matches:r,remove:a}}function G(e,n){const{addListener:o,send:r,close:a,supported:l}=H(e,()=>y()),u=Date.now(),s=t.ref(!1),i=t.ref(0),c=t.computed(()=>1!==i.value||s.value),d=t.ref([]),f=t.ref(n);let m=!1,p=void 0;r({type:0});const g=()=>r({type:5,id:u}),y=()=>{0!==d.value.length&&(s.value&&r({type:3,mind:1,id:Math.min(...d.value)}),r({type:4,id:u}))};return o(e=>{switch(e.data.type){case 0:r({type:2,value:f.value,mind:i.value});break;case 4:{const t=d.value.indexOf(e.data.id);t>=0&&d.value.splice(t,1),p===e.data.id&&d.value.length>0&&r({type:3,mind:1,id:Math.min(u,...d.value)});break}case 2:m=!0,f.value=e.data.value,i.value=e.data.mind;break;case 3:i.value=e.data.mind,p=1===e.data.mind&&e.data.id||void 0,s.value=p===u,s.value&&(d.value=[],g());break;case 5:d.value=[e.data.id],r({type:6,id:u});break;case 6:d.value.push(e.data.id)}},h),g(),t.watch(f,(e,t)=>{if(m)m=!1;else{if(1===i.value&&!1===s.value)return m=!0,void(f.value=t);r({type:2,mind:i.value,value:v(e)?{...e}:e}),m=!1}},{deep:!0,immediate:!1}),b&&window.addEventListener("unload",y,h),t.onUnmounted(()=>{y(),a()}),{supported:l,id:u,data:f,master:s,mind:i,editable:c,targets:d,ping:g,setMind:e=>{switch(e){case 1:s.value=!0;break;case 0:s.value=!1}i.value=e,r({type:3,id:u,mind:i.value})},addListener:o}}const Z="no-scroll";function ee(e,n){const o=Symbol(),r=t.inject(e,o);return r===o?n():r}function te(e,n){const o=r(n),l=r(e);return v(o.value)||t.isRef(n)?[void 0!==l.value?l:void 0,o]:!v(l.value)||a(l.value)||u(l.value)?[l.value?l:void 0,void 0]:[void 0,l]}function ne(e,n){const[r,a]=te(e,n),l=t.computed(()=>new Intl.NumberFormat(o(r),o(a))),u=(e,t,n)=>(t||n?new Intl.NumberFormat(o(n)||o(r),{...o(a),...o(t)}):l.value).format(o(e));return{format:(e,n,o)=>t.computed(()=>u(e,n,o)),formatString:u,formatter:l}}function oe(e){if(e)return c(e)?e:re(e)}const re=e=>{const t=e.match(/^(\d+)px$/);if(t)return+t[1]};function ae(e){const n={},o=new Map,r=t.ref();let a=[];const l=[];for(const r in e){const u=e[r],s=oe(u);if(void 0!==s){const e=t.ref(!1);n[r]=e,o.set(s,{name:r,valid:e}),a.push(s)}else{const{matches:e,remove:t}=Y(u);n[r]=e,l.push(t)}}a=a.sort((e,t)=>t-e);const u=b?()=>{const e=window.innerWidth;let t=void 0;for(let n=0;n<a.length;n++){const r=a[n],l=o.get(r);l.valid.value=e>=r,e>=r&&void 0===t&&(t=l.name)}r.value=t}:m,s=I(u,10),i=b?()=>window.removeEventListener("resize",s):m;return b&&(t.onMounted(()=>{u(),window.addEventListener("resize",s,h)}),t.onUnmounted(()=>{i(),l.forEach(e=>e())})),{...n,remove:i,current:r}}const le=Symbol(""),ue={sm:640,md:768,lg:1024,xl:1280};function se(e){return v(e)&&v(e.theme)&&v(e.theme.screens)}function ie(e){return!!v(e)&&(u(e.min)||u(e.max)||c(e.min)||c(e.max))}function ce(e){return c(e)?e+"px":e}function ve(e){const t=[];if(a(e)){const n=e.map(ve);for(let e=0;e<n.length;e++){const o=n[e];t.push(...o)}}else v(n=e)&&u(n.raw)?t.push(e.raw):ie(e)?t.push(function(e){return ie(e)?`(${[e.max&&"max-width: "+ce(e.max),e.min&&"min-width: "+ce(e.min)].filter(Boolean).join(" and ")})`:""}(e)):(u(e)||c(e))&&t.push(`(min-width: ${ce(e)})`);var n;return t}function de(e){const n=se(e)?e.theme.screens:e;if(se(e))for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];v(t)?n[e]=ve(n[e]).join(" or "):u(t)&&(t.endsWith("px")||(n[e]=ve(n[e]).join(" or ")))}const o=ae(n);return t.provide(le,o),o}function fe(e,t){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&(t&&0!==t.length||!1)}function me(e){try{if(!e)return!1;const t=":$";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return fe(t,e)}}function pe(e,t){try{return e.parse(t)}catch{return t}}let he=void 0;function ge(e,n=JSON,o=10){const a=b?window[e]:void 0,l=me(a);he||(he=new Map,b&&window.addEventListener("storage",e=>{if(e.newValue===e.oldValue)return;let t=he.get("localStorage");t=e.storageArea===window.localStorage?he.get("localStorage"):he.get("sessionStorage"),t&&Object.keys(t.$syncKeys).length>0&&(null===e.key?t.clear():t.$syncKeys[e.key]&&(null===e.newValue?t.removeItem(e.key):t.updateItem(e.key,e.newValue)))}));let s,i=he.get(e);return l&&a?i?s=i.$quotaError:(s=t.ref(!1),i={$refMap:new Map,$watchHandlers:new Map,$syncKeys:{},$quotaError:s,key:a.key,length:a.length,setSync(e,t){t?this.$syncKeys[e]=!0:delete this.$syncKeys[e]},clear(){this.$refMap.forEach((e,t)=>this.removeItem(t))},removeItem(e){const t=this.$refMap.get(e);t&&(t.value=void 0);const n=this.$watchHandlers.get(e);n&&n(),delete this.$syncKeys[e],this.$refMap.delete(e),a.removeItem(e)},getItem(e){const t=a.getItem(e);return t?this.setItem(e,pe(n,t)):null},setItem(e,l){const i=r(l);this.$refMap.set(e,i);const c=(e,t)=>{try{const o=a.getItem(e),r=u(t)?t:n.stringify(t);a.setItem(e,r),o!==r&&b&&this.$syncKeys[e]&&window.dispatchEvent(new StorageEvent(e,{newValue:r,oldValue:o,storageArea:a}))}catch(e){s.value=fe(e,a)}};c(e,l);const v=t.watch(i,M(t=>{c(e,t)},o),{immediate:!1,deep:!0});return this.$watchHandlers.set(e,v),i},updateItem(e,t){let o=this.$refMap.get(e);o&&(o.value=pe(n,t))}},he.set(e,i)):(s=t.ref(!1),i={}),{supported:l,quotaError:s,store:i,remove:()=>he.delete(e)}}function ye(e,n,o){const{supported:r,store:a}=ge("localStorage");let l=m,u=m,s=m,i=void 0;return r&&a?(s=t=>a.setSync(e,t),l=()=>a.removeItem(e),u=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n)),!1!==o&&s(!0)):i=t.ref(n),{supported:r,storage:i,clear:u,remove:l,setSync:s}}function we(e,n,o){const{supported:r,store:a}=ge("sessionStorage");let l=m,u=m,s=p,i=void 0;return r&&a?(l=()=>a.removeItem(e),u=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n))):i=t.ref(n),{supported:r,storage:i,clear:u,remove:l,setSync:s}}let be=void 0;function Ee(e){const n=r(e.currentPage),o=r(e.pageSize),a=t.ref(0),l=r(e.total),u=t.computed({get:()=>a.value,set(e){c(e)&&(a.value=Math.min(e,l.value))}}),s=t.computed({get:()=>n.value,set(e){c(e)&&(n.value=w(e,1,v.value),u.value=(n.value-1)*i.value)}}),i=t.computed({get:()=>o.value,set(e){c(e)&&(o.value=e)}}),v=t.computed(()=>Math.ceil(l.value/i.value));s.value=n.value;return t.watch([l,i],e=>{s.value>v.value&&(s.value=v.value)},{immediate:!1}),{pageSize:i,total:l,currentPage:s,offset:u,lastPage:v,next:()=>++s.value,prev:()=>--s.value,first:()=>s.value=1,last:()=>s.value=v.value}}function Se(e){const n=1e3,o=e&&e.refreshMs||n,r=!e||!s(e.sync)||e.sync,a=e&&l(e.timeFn)&&e.timeFn||Date.now;let u=void 0,i=void 0;const c=t.ref(a()),v=()=>{clearInterval(u),clearTimeout(i)},d=b?()=>u=setInterval(()=>c.value=a(),o):m;if(r){const e=n-(c.value-Math.floor(c.value/n)*n);i=setTimeout(d,e)}else d();return t.onUnmounted(v),{now:c,remove:v}}function Ie(e,n){return t.computed(()=>{const r=o(e);if(!n)return r;const l=t.isRef(n)?t.reactive(n.value):t.reactive(n);return r.replace(/({?{[\w\s]*}?})/g,e=>{const t=e.replace("{","").replace("}","").trim();if(e[0]===e[1]&&"{"===e[0])return""+t;const n=a(l)?l[+t]:l[t];return void 0===n?e:""+o(n)})})}function Me(e,n,r=".",a=m){return t.computed(()=>{const t=o(e),l=o(n);if(void 0===t)return a(l,t,l,t);if(!l)return t;const u=l.split(r);let s=t;for(let e=0;e<u.length;e++){let n=u[e];if("]"===n[n.length-1]){const t=/\[[`'"]?([^`'"\]]*)[`'"]?\]/g;let o=n,r=t.exec(o);if(r){let a=r[0].length,l=r.index-a,s=1;do{r.index,l=r.index,a=r[0].length,n=n.slice(0,-r[0].length),u.splice(e+s,0,r[1]),++s}while(r=t.exec(o));if(!n&&"["===o[0]&&o.length>2)continue}else n="",console.warn(`[usePath] invalid path provided "${o}"`)}if(!v(s))return a(u.slice(0,e+1).join(r),s,l,t);if(!n)return a(u.slice(0,e+1).join(r),s,l,t);if(s=s[n],!s)return a(u.slice(0,e+1).join(r),s,l,t)}return s})}function $e(e){return void 0!==e.$value}const ke=(e,n,r)=>{const{$message:a,$validator:l,...u}=function(e){return v(e)}(n)?n:{$validator:n,$message:void 0},{$pending:s,$promise:i,$invalid:c,$error:d}=((e,n,r,a)=>{const l=t.ref(null),u=t.ref(!1),s=t.ref(),i=t.ref(!1);let c=void 0;const v=e=>{l.value=(async()=>{try{u.value=!0;const t=n(e,c);f(t)?i.value=!await t:i.value=!t,s.value=i.value?r.value:void 0}catch(e){throw i.value=!0,e}finally{u.value=!1}})().catch(e=>(s.value=o(e),i.value=!0,e))};return a.push(o=>{c=o,t.watch(()=>{try{n(e.value,c)}catch(e){}return e.value},v,{deep:!0,immediate:!0})}),{$promise:l,$pending:u,$invalid:i,$error:s}})(e,l,t.ref(a),r);return{$pending:s,$error:d,$promise:i,$invalid:c,$message:a,...u}},Le=(e,n)=>{const a={},l=$e(e)?r(e.$value):void 0;for(const r of Object.keys(e))if("$"!==r[0])if(l){const t=ke(l,e[r],n);a[r]={...t,$value:l}}else{const l=Le(e[r],n);let u,i,c=void 0;if($e(l)){const e=Object.keys(l).filter(e=>"$"!==e[0]).map(e=>l[e]);u=t.computed(()=>e.map(e=>e.$error).map(e=>o(e)).filter(Boolean)),i=t.computed(()=>e.some(e=>!!o(e.$invalid)))}else{const e=Object.keys(l).map(e=>l[e]);u=t.computed(()=>e.map(e=>o(e.$errors)).filter(Boolean).filter(e=>e.some(Boolean))),c=t.computed(()=>e.some(e=>e.$anyDirty||s(o(e.$dirty))&&o(e.$dirty))),i=t.computed(()=>e.some(e=>!!o(e.$anyInvalid)))}a[r]={...l,$errors:u,$anyInvalid:i},c&&(a[r].$anyDirty=c)}else{if("$value"===r){a[r]=l;const e=t.ref(!1),n=t.watch(l,()=>{e.value=!0,n()},{immediate:!1,deep:!0});a.$dirty=e;continue}a[r]=e[r]}return a};const xe=Symbol("");function Re(e){const n=t.ref(Object.keys(e.messages)),a=t.ref(e.messages),u=t.ref(e.locale),i=t.ref({});let c=t.ref();const v={},d=(e,n)=>{if(v[e])return v[e];const o=n.value[e];if(!o)return t.ref({});let a=l(o)?o():o;return f(a)?a.then(t=>v[e]=r(t)):l(o)?r(a):v[e]=t.computed(()=>n.value[e])},m=!!e.fallback&&(!s(e.notFoundFallback)||e.notFoundFallback);let p=!1;if(m){const t=d(e.fallback,a);f(t)?(t.then(e=>{c.value=e.value}),p=!0):c.value=t.value}else c.value={};const h=t.ref(0);t.watch(a,()=>h.value++,{deep:!0,immediate:!1}),t.watch([u,c,h],([t,n,r])=>{if(t===e.fallback&&m)i.value=n;else{const e=e=>i.value=E({},n,o(e)),r=d(t,a);f(r)?r.then(e):e(r)}},{immediate:!p});const g=(t,n)=>e.resolve?r(e.resolve(i.value,t,n)):Ie(Me(i,t,".",(e,t,n,o)=>n),n);return{locale:u,locales:n,i18n:i,$t:g,$ts:(e,t)=>g(e,t).value,addLocale:(e,t)=>{n.value.indexOf(e)>=0||n.value.push(e),delete v[e],a.value[e]=t},removeLocale:t=>{const o=n.value.indexOf(t);if(o>=0){const r=[u.value,c.value&&e.fallback,...n.value].find(e=>e&&e!==t);r&&(t===e.fallback&&(c.value=void 0),t===u.value&&(u.value=r)),n.value.splice(o,1)}delete a.value[t],delete v[t]}}}function Ce(e){const n=Re(e);return t.provide(xe,n),n}const Te=Symbol("");const Oe=Symbol(""),Pe={install(e){const n=t.ref(!0),o=t.readonly(n);{e._context.provides[Oe]=o;const t=e.mount;e.mount=(...e)=>{const o=t(...e);return n.value=!1,o}}}};return e.COMMIT="9ef375a",e.FALSE_OP=p,e.MAX_ARRAY_SIZE=y,e.NO_OP=m,e.PASSIVE_EV=h,e.SCROLL_LOCK_CLASS=Z,e.UseDevtoolsApp=F,e.VERSION="1.0.0-beta.7",e.VUE_VERSION="3",e.VueComposableDevtools=U,e.buildI18n=Re,e.debounce=M,e.deepClone=E,e.exponentialDelay=e=>{const t=100*Math.pow(2,e);return t+.2*t*Math.random()},e.exposeWorker=function(e){this.onmessage=async t=>{const n=e(t.data);if(void 0===n)this.postMessage(n);else if(null===n)this.postMessage(n);else if(a(n))this.postMessage(n);else if(n[Symbol.asyncIterator])for await(const e of n)this.postMessage(e);else if(n[Symbol.iterator])for(const e of n)this.postMessage(e);else this.postMessage(await n)}},e.getCssVariableFor=K,e.getDevtools=D,e.hydrationPlugin=Pe,e.injectFactory=ee,e.isArray=a,e.isBoolean=s,e.isClient=b,e.isDate=i,e.isElement=d,e.isFunction=l,e.isNumber=c,e.isObject=v,e.isPromise=f,e.isString=u,e.isSymbol=e=>"symbol"==typeof e,e.minMax=w,e.noDelay=T,e.promisedTimeout=g,e.provideSSRTitle=function(e,t){const n=r(void 0===t?"":t);return e.provide(Te,n),n},e.refShared=function(e,n){const o=t.getCurrentInstance(),r=n||o.vnode.scopeId;if(!r)return t.ref(e);const{data:a,supported:l}=G(r,e);return a},e.setBreakpointTailwindCSS=de,e.setCssVariableFor=q,e.setDevtools=P,e.setI18n=Ce,e.storageAvailable=me,e.unwrap=o,e.useArrayPagination=function(e,n){const o=r(e),a=Ee({currentPage:1,pageSize:10,...n,total:t.computed(()=>o.value.length)}),l=t.computed(()=>{const e=o.value;return Array.isArray(e)?e.slice(a.offset.value,a.offset.value+a.pageSize.value):[]});return{...a,result:l}},e.useBreakpoint=ae,e.useBreakpointChrome=function(){return ae({mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560})},e.useBreakpointTailwindCSS=function(e){return ee(le,()=>de(e||ue))},e.useBroadcastChannel=H,e.useCancellablePromise=L,e.useCssVariables=function(e,n,a){const l=b&&"MutationObserver"in self,[s,i]=t.isRef(n)||d(n)?[n,a||J]:[l&&document.documentElement||{},n||J],c=t.ref(!0),v={},f=[],p=Object.entries(e).map(e=>{const[t,n]=u(e[1])?[e[1]]:[e[1].name,e[1].value];return n&&(f.push(()=>q(o(s),t,o(n))),v[e[0]]=r(n)),[e[0],Q(t)]});for(let e=0;e<p.length;e++){const[n,a]=p[e];v[n]||(v[n]=t.ref(t.isRef(s)&&!s.value||!l?null:K(o(s),a))),l&&t.watch([v[n],r(s)],e=>{c&&e[1]&&e[0]!==K(e[1],a)&&q(e[1],a,e[0])},{immediate:!t.isRef(s)})}if(!l)return{...v,stop:m,resume:m,supported:l,observing:c};const h=()=>{for(let e=0;e<p.length;e++){const[t,n]=p[e];v[t].value=K(o(s),n)}},g=new MutationObserver(h),y=()=>{g.disconnect(),c.value=!1},w=()=>{c.value||h(),g.observe(o(s),i),c.value=!0};return t.onUnmounted(y),t.isRef(s)?t.onMounted(()=>{f.forEach(e=>e()),t.watch(s,(e,t)=>{t&&y(),e&&w()})}):(b||s)&&(f.forEach(e=>e()),w()),{...v,supported:l,resume:w,stop:y,observing:c}},e.useCurrencyFormat=function(e,n,r){const a=o(e),l=!v(a),u=l?e:t.computed(()=>o(e).currency),[s,i]=te(n,l?r:e),c=t.computed(()=>{const e=o(i)||{},t=o(u)||e.currency;return{style:"currency",...e,currency:t}}),d=ne(s),f=(e,t,n,r,a)=>{const l={...c.value,...o(r)},u=o(t)||l.currency,s=o(n)||l.currencyDisplay;return d.formatString(e,{...l,currency:u,currencyDisplay:s},a)};return{format:(e,n,o,r,a)=>t.computed(()=>f(e,n,o,r,a)),formatString:f}},e.useDateNow=function(e){return Se({refreshMs:e&&e.refreshMs||1e3,sync:!e||!s(e.sync)||e.sync,timeFn:Date.now})},e.useDebounce=I,e.useDevtoolsInpector=function(e,n=[]){const o=D(),r=t.ref(n),a=t.computed(()=>{if(!r.value)return new Map;const e=t.toRaw(r.value),n=new Map;for(const t of e)n.set(t.id,t);return n});if(o){const n=e.id;o.addInspector(e),o.on.getInspectorTree(o=>{if(o.inspectorId!=n)return;if(console.log(),!r.value)return;const a=o.filter;let l=t.toRaw(r.value);o.filter&&(l=e.nodeFilter?e.nodeFilter(o.filter,l):l.filter(e=>e.id.indexOf(a)>=0||e.label.indexOf(a)>=0)),o.rootNodes=l}),o.on.getInspectorState(o=>{if(o.inspectorId!=n)return;const r=a.value.get(o.nodeId);if(r){const n=t.reactive(r.state);o.state=e.stateFilter?e.stateFilter("",n):n}}),t.watch(r,()=>{o.sendInspectorTree(n),o.sendInspectorState(n)},{immediate:!0,deep:!0})}return{nodes:r}},e.useDevtoolsTimelineLayer=function(e,t,n){const o=D();let r=m,a=m;return o&&(o.addTimelineLayer({id:e,label:t,color:n}),r=(t,n)=>o.addTimelineEvent({layerId:e,event:t,all:n}),a=e=>r({...e,time:Date.now()})),{id:e,addEvent:r,pushEvent:a}},e.useEvent=S,e.useFetch=function(e,n){const o=t.ref(null),r=t.ref(""),a=t.ref(),l=t.ref(null),[s,i,c]=V(e)?[!1!==e.isJson,!1!==e.parseImmediate,!1!==e.unmountCancel]:V(n)?[!1!==n.isJson,!1!==n.parseImmediate,!1!==n.unmountCancel]:[!0,!0,!0],v=e?u(e)?n:V(e)?e:u(e.url)?n:e:void 0,d=t.ref(!1),f=t.ref();let m=void 0;const p=e=>{m&&(m.abort(),d.value=!0,f.value=e)},h=k(async(e,t)=>{m=new AbortController;const n=await fetch(e,{signal:m.signal,...v,...t});if(n){const e=[s?n.clone().json().then(e=>o.value=e).catch(e=>{o.value=null,l.value=e}):Promise.resolve(),n.clone().blob().then(e=>{a.value=e}),n.clone().text().then(e=>{r.value=e})];i&&await Promise.all(e)}return n},!0),g=t.computed(()=>h.result.value&&h.result.value.status||null),y=t.computed(()=>h.result.value&&h.result.value.statusText||null);return e&&(u(e)||u(e.url))&&h.exec(e,void 0,!1),c&&t.getCurrentInstance()&&t.onUnmounted(()=>{m&&p("unmounted")}),{...h,cancel:p,isCancelled:d,cancelledMessage:f,text:r,blob:a,json:o,jsonError:l,status:g,statusText:y}},e.useFormat=Ie,e.useGeolocation=function(e){const n=b&&!!navigator.geolocation,o=t.ref(e?!1===e.immediate:void 0),r=t.ref(null),a=t.ref(null),l=t.ref(null),u=t.ref(e&&e.enableHighAccuracy||null);let i=m;if(n){const n=e=>{a.value=e.timestamp,l.value=e.coords,r.value=null},c=e=>{a.value=Date.now(),l.value=null,r.value=e},v=()=>!0!==o.value&&f&&navigator.geolocation.clearWatch(f);let d=()=>navigator.geolocation.getCurrentPosition(n,c,e);i=o.value?()=>{o.value?o.value=!1:d()}:d;let f=0;t.onMounted(()=>t.watch([u,o],t=>{v();const o=s(t[0])?t[0]:e?e.enableHighAccuracy:void 0;f=navigator.geolocation.watchPosition(n,c,e?{...e,enableHighAccuracy:o}:{enableHighAccuracy:o})},{immediate:!o.value})),t.onUnmounted(v)}return{supported:n,refresh:i,error:r,timestamp:a,coords:l,highAccuracy:u}},e.useHydration=function(){return t.inject(Oe,t.computed(()=>!1))},e.useI18n=function(e){return e?Ce(e):t.inject(xe)},e.useIntersectionObserver=function(e,n){const a=b&&"IntersectionObserver"in window,l=e?r(e):void 0,u=!l||!d(l.value)&&l.value?void 0:l,s=t.computed(()=>n?o(n):u?void 0:o(e)),i=t.ref([]),c=t.computed(()=>i.value.length>0&&i.value.every(e=>e.isIntersecting)),v=e=>{i.value=e};let f=t.ref();a&&t.watch(s,e=>{f.value&&f.value.disconnect();const t=e&&e&&{root:o(e.root),rootMargin:o(e.rootMargin),threshold:o(e.threshold)}||void 0;f.value=new IntersectionObserver(v,t);i.value.map(e=>e.target).forEach(f.value.observe)},{deep:!0,immediate:!0});const p=a?e=>{const t=o(e);f.value.observe(t)}:m,h=a?e=>{const t=o(e);f.value.unobserve(t)}:m,g=()=>f.value.disconnect();return u&&(t.onMounted(()=>{u.value&&p(u)}),t.onUnmounted(()=>{g()})),{supported:a,elements:i,observe:p,unobserve:h,disconnect:g,isIntersecting:c}},e.useInterval=function(e,n,...o){let r=void 0;const a=(t,...a)=>{if(l(),!t&&!n)return;return r=setInterval(e,t||n,...a&&a.length?a:o)},l=()=>{r&&(clearInterval(r),r=void 0)};return c(n)&&a(),t.onUnmounted(l),{remove:l,start:a}},e.useIntlDateTimeFormat=function(e,n){const[r,a]=te(e,n),l=t.computed(()=>new Intl.DateTimeFormat(o(r),o(a))),s=(e,t,n)=>{const s=t||n?new Intl.DateTimeFormat(o(n)||o(r),{...o(a),...o(t)}):l.value,i=o(e);return s.format(u(i)?new Date(i):i)};return{format:(e,n,o)=>t.computed(()=>s(e,n,o)),formatString:s,formatter:l}},e.useIntlNumberFormat=ne,e.useLanguage=function(){if(B||(B=b?t.ref(navigator.language):t.ref("")),!_)if(b){_=t.ref(navigator.languages);const e=()=>{B.value=navigator.language,_.value=navigator.languages};window.addEventListener("languagechange",e,h)}else _=t.ref([]);return{language:B,languages:_}},e.useLocalStorage=ye,e.useLockScroll=function(e,n){const l=u(e)?t.ref([]):a(t.unref(e))?r(e):r([e]),s=u(n)?{lockedClass:n,auto:!0}:n||{auto:!0};s.lockedClass||(s.lockedClass=Z);const i=t.ref(!1),c=t.computed(()=>l.value.map(e=>t.ref(e))),v=t.watch([i,c],([e,t],[n,r])=>{for(const a of t){const t=o(a);if(s.lockedClass){if(!t)return;t.classList.toggle(s.lockedClass,e)}s.onChange&&(n===e&&r.find(e=>o(e)===t)||s.onChange(t,e))}},{flush:"sync",deep:!1}),d=()=>i.value=!0,f=()=>i.value=!1;return u(e)&&t.onMounted(()=>l.value=Array.from(document.querySelectorAll(e))),!1!==s.auto&&(t.onMounted(d),t.onActivated(d),t.onDeactivated(f),t.onBeforeUnmount(f)),{locked:i,lock:d,unlock:f,remove:v}},e.useMatchMedia=Y,e.useNetworkInformation=function(){const e=!!b&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection),n=!!e,o=t.ref(0),r=t.ref(0),a=t.ref("none"),l=t.ref(0),u=t.ref(!1),s=t.ref("none");let i=m,c=m;return e&&(i=()=>{o.value=e.downlink,r.value=e.downlinkMax,a.value=e.effectiveType,l.value=e.rtt,u.value=e.saveData,s.value=e.type},c=S(e,"change",i,h),i()),{supported:n,downlink:o,downlinkMax:r,effectiveType:a,rtt:l,saveData:u,type:s,remove:c}},e.useNow=Se,e.useOnMouseMove=function(e,n,o){const r=t.ref(0),a=t.ref(0);let l=e=>{r.value=e.x,a.value=e.y};const[u,s]=c(n)?[void 0,n]:[n,o];s&&(l=I(l,o));const i=S(e,"mousemove",l,u);return{mouseX:r,mouseY:a,remove:i}},e.useOnOutsidePress=function(e,t){if(!b)return()=>{};const n=r(e),o=$.find(e=>"on"+e in document.documentElement);return S(document,o,e=>n.value&&!n.value.contains(e.target)&&t(e),{passive:!0})},e.useOnResize=function(e,n,o){const a=r(e),l=t.ref(a.value&&a.value.clientHeight),u=t.ref(a.value&&a.value.clientWidth);let s=()=>{l.value=a.value.clientHeight,u.value=a.value.clientWidth};const[i,v]=c(n)?[void 0,n]:[n,o];v&&(s=I(s,o));const d=b?S(window,"resize",s,i||h):m;return t.isRef(e)&&!e.value&&t.onMounted(s),{height:l,width:u,remove:d}},e.useOnScroll=function(e,n,o){const a=e=>!(c(e)||s(e)||!d(e)&&!t.isRef(e)||!e),l=a(e)?r(e):t.ref(b&&window||void 0),u=a(e)?l:t.ref(b&&window.document.scrollingElement||void 0),i=t.ref(u.value&&u.value.scrollTop||0),v=t.ref(u.value&&u.value.scrollLeft||0);let f=()=>{i.value=u.value.scrollTop,v.value=u.value.scrollLeft};const m=(...e)=>u.value&&u.value.scrollTo&&u.value.scrollTo.apply(u.value,e),p=e=>m({top:e}),g=e=>m({left:e}),[y,w]=c(e)||!e?[h,e]:c(n)?[h,n]:[n,o];w&&(f=I(f,o));const E=S(l,"scroll",f,y),M=t.watch(i,p,{immediate:!1}),$=t.watch(v,g,{immediate:!1});return{scrollTop:i,scrollLeft:v,scrollTo:m,remove:()=>{E(),$(),M()},scrollTopTo:p,scrollLeftTo:g}},e.useOnline=function(){const e=b&&"onLine"in navigator;return e||(W=t.ref(!1)),W||(W=t.ref(navigator.onLine),window.addEventListener("offline",()=>W.value=!1,h),window.addEventListener("online",()=>W.value=!0,h)),{supported:e,online:W}},e.usePageVisibility=function(){return z||(z=t.ref(b&&document.hidden)),N||(b?(N=t.ref(document.visibilityState),document.addEventListener("visibilitychange",()=>{N.value=document.visibilityState,z.value=document.hidden},h)):N=t.ref("visible")),{visibility:N,hidden:z}},e.usePagination=Ee,e.usePath=Me,e.usePerformanceNow=function(e){return Se({refreshMs:e&&e.refreshMs||1e3,sync:!e||!s(e.sync)||e.sync,timeFn:()=>performance.now()})},e.usePromise=k,e.usePromiseLazy=function(e,t=!1){return k(e,{lazy:!0,throwException:t})},e.useRetry=function(e,n){const o=!e||l(e)?{}:e,r=l(e)?e:n;if(!l(e)&&!v(e))throw new Error("[useRetry] options needs to be 'object'");if(r&&!l(r))throw new Error("[useRetry] factory needs to be 'function'");const a=t.ref(!1),u=t.ref(),s=t.ref([]),i={value:!1},c={isRetrying:a,retryCount:t.computed(()=>s.value.length),nextRetry:u,retryErrors:s,[x]:{value:0},[R]:i},d=r?(...e)=>(++c[x].value,C(o,c,r,e)):e=>(++c[x].value,C(o,c,e,void 0));return{...c,cancel:()=>{c.isRetrying.value=!1,c.retryErrors.value.push(new Error("[useRetry] cancelled")),c.nextRetry.value=void 0,i.value=!0},exec:d}},e.useSSRTitle=function(e){const n=Symbol(),o=t.inject(Te,n);return o===n||void 0===o?t.ref(u(e)?e:""):(u(e)&&(o.value=e),o)},e.useSessionStorage=we,e.useShare=function(e){const n=b&&"share"in navigator;let o=()=>Promise.resolve(!1),r=p,a=t.ref(!1),l=t.ref(!1);return n&&(o=e=>(a.value=!1,l.value=!1,navigator.share(e).then(e=>(a.value=!0,e)).catch(e=>(a.value=!1,l.value=!0,!1))),r=e=>navigator.canShare(e),e&&r(e)&&o(e)),{supported:n,share:o,canShare:r,shared:a,cancelled:l}},e.useSharedRef=G,e.useStorage=function(e,t,n){return void 0===be&&(be=ge("localStorage").supported),be?ye(e,t,n):we(e,t)},e.useTimeline=function(e,n){const o=t.ref([]),r=n&&n.clone?n.clone:e=>e,a=n&&n.maxLength||y;return t.watch(e,(e,t)=>{o.value.unshift({item:r(t),date:new Date}),o.value.length>a&&o.value.pop()},{immediate:!1,flush:"sync",...n}),t.readonly(o)},e.useTitle=function(e=null){const n=t.ref(u(e)?e:document.title),o=new MutationObserver(e=>{n.value=e[0].target.textContent});t.watch(n,(e,t)=>{u(e)&&e!==t&&(document.title=e)},{immediate:!0,flush:"sync"});const r=document.querySelector("title");return o.observe(r,{childList:!0}),t.onUnmounted(()=>o.disconnect()),n},e.useUndo=function(e,n){const o=r(e),a=t.ref([]),l=t.ref(0),u=n&&n.maxLength||y,s=n&&n.clone||(e=>e),i=t.computed(()=>{const e=0===l.value?1:l.value;return a.value.slice(e)}),c=t.computed(()=>{const e=0===l.value?1:0;return a.value.slice(e,l.value)});t.watch(o,e=>{if(a.value[l.value]===e)return;if(l.value>0){const e=l.value;a.value.splice(0,e),l.value=0}a.value.length>u&&a.value.pop();const t=s(e);a.value.unshift(t)},{...n,immediate:!0,flush:"sync"});const v=e=>{const t=Math.sign(e)<=0?Math.max(e,-c.value.length):Math.min(e,i.value.length);l.value+=t,o.value=a.value[l.value]};return{value:o,undo:(e=1)=>v(e),redo:(e=1)=>v(-e),jump:v,prev:i,next:c}},e.useVModel=function(e,n){const o=t.getCurrentInstance();return o?t.computed({get:()=>e[n],set(e){o.emit("update:"+n,e)}}):t.ref()},e.useValidation=function(e){const n=[],o=Le({input:e},n),r=t.reactive(o.input);return n.forEach(e=>e(r)),r},e.useValueSync=function(e,n){const o=r(e),l=2===arguments.length?t.isRef(arguments[1])&&a(arguments[1].value)?arguments[1]:t.ref([r(arguments[1])]):t.ref(Array.from(arguments).slice(1).map(e=>r(e)));l.value.forEach(e=>{e.value=o.value});let u=l.value.length;return t.watch([o,l],([e,t])=>{if(u<t.length)t.forEach(t=>{t.value!==e&&(t.value=e)});else{u=t.length;for(const n of t)if(n.value!==e)return void(o.value=n.value)}},{deep:!0}),t.watch(o,e=>{l.value.forEach(t=>t.value=e)},{deep:!0,flush:"sync"}),l},e.useWebSocket=function(e,n){const o=b&&"WebSocket"in window;let r=null;const a=t.ref(null),l=t.ref(null),u=t.ref(null),s=t.ref(!1),i=t.ref(!1),c=t.ref(!1);let v=m,d=m;return o&&(r=new WebSocket(e,n),r.addEventListener("message",e=>{a.value=e,u.value=e.data}),r.addEventListener("error",e=>{l.value=e,c.value=!0}),r.addEventListener("close",()=>{s.value=!1,i.value=!0}),r.addEventListener("open",()=>{s.value=!0,i.value=!1}),v=e=>r.send(e),d=(e,t)=>{r.close(e,t)}),{supported:o,ws:r,send:v,close:d,messageEvent:a,errorEvent:l,data:u,isOpen:s,isClosed:i,errored:c}},e.useWebStorage=ge,e.useWorker=function(e,n,o){const r=b&&"Worker"in self,a=t.ref(),l=t.ref(),u=t.ref(!r),s=t.ref(!r);if(!r)return u.value=!0,{worker:void 0,data:l,postMessage:m,terminate:m,errorEvent:a,errored:s,terminated:u};const i=new Worker(e,o),c=e=>i.postMessage(e);function v(){i.terminate(),u.value=!0}return i.addEventListener("message",e=>{l.value=e.data},h),i.addEventListener("error",e=>{a.value=e,s.value=!0},h),t.onUnmounted(v),n&&c(n),{worker:i,data:l,postMessage:c,terminate:v,errorEvent:a,errored:s,terminated:u}},e.useWorkerFunction=function(e,n){const r=b&&"Worker"in self,a=t.computed(()=>n&&o(n.dependencies)||[]),l=t.computed(()=>n&&o(n.timeout));if(!r)return L(e,{lazy:!0,throwException:!0});const u=L((...n)=>new Promise((o,r)=>{const s=function(e,t){const n=[t.length>0?`importScripts("${t.join('","')}");`:"","onmessage=",`(${X.toString()})(${e.toString()})`],o=new Blob(n,{type:"text/javascript"});return URL.createObjectURL(o)}(e,a.value),i=new Worker(s);let c=-1;const v=l.value,d=()=>{i.terminate(),URL.revokeObjectURL(s),clearTimeout(c),p()},f=n.length===e.length+1&&t.isRef(n[n.length-1])&&!1===n[n.length-1].value?t.computed(()=>u.cancelled.value||n[n.length-1].value):u.cancelled,p=f?t.watch(f,()=>{d(),o(void 0)},{immediate:!1}):m;i.addEventListener("message",e=>{e.data[0]?o(e.data[1]):r(e.data[1]),d()},h),i.addEventListener("error",e=>{d(),r(e)},h),i.postMessage([...n]),v&&(c=setTimeout(()=>{u.cancel(`[WebWorker] timeout after ${v}ms`)},v))}),{lazy:!0,throwException:!0});return u},e.wrap=r,e}({},VueRuntimeCore,devtoolsApi);
{
"name": "vue-composable",
"version": "1.0.0-beta.6",
"version": "1.0.0-beta.7",
"description": "vue-composable",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc