voodoojs 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +77 -0
- package/dist/chunk-234ZLC6W.js +401 -0
- package/dist/chunk-4HQEOXTK.js +10271 -0
- package/dist/chunk-5777LJVW.js +64 -0
- package/dist/chunk-5CKGDARU.js +1845 -0
- package/dist/chunk-A2UOVQBP.js +82 -0
- package/dist/chunk-E27NRARW.js +16 -0
- package/dist/chunk-JZIYRIY6.js +1196 -0
- package/dist/chunk-NNU6WOOU.js +641 -0
- package/dist/chunk-PQZEVFVZ.js +448 -0
- package/dist/chunk-RJUNPXQF.js +946 -0
- package/dist/chunk-U76IRJKH.js +72 -0
- package/dist/essential.cjs +13889 -0
- package/dist/essential.d.cts +24 -0
- package/dist/essential.d.ts +24 -0
- package/dist/essential.js +51 -0
- package/dist/gpu.cjs +2008 -0
- package/dist/gpu.d.cts +68 -0
- package/dist/gpu.d.ts +68 -0
- package/dist/gpu.js +273 -0
- package/dist/http.cjs +467 -0
- package/dist/http.d.cts +148 -0
- package/dist/http.d.ts +148 -0
- package/dist/http.js +7 -0
- package/dist/index-CaLD-0oh.d.cts +608 -0
- package/dist/index-CaLD-0oh.d.ts +608 -0
- package/dist/index-DTllqUtj.d.cts +261 -0
- package/dist/index-DTllqUtj.d.ts +261 -0
- package/dist/index.cjs +23063 -0
- package/dist/index.d.cts +1603 -0
- package/dist/index.d.ts +1603 -0
- package/dist/index.js +6924 -0
- package/dist/query-CKJ4oSpG.d.cts +1595 -0
- package/dist/query-DQFRmu3u.d.ts +1595 -0
- package/dist/reactivity.cjs +676 -0
- package/dist/reactivity.d.cts +188 -0
- package/dist/reactivity.d.ts +188 -0
- package/dist/reactivity.js +4 -0
- package/dist/socket.cjs +2685 -0
- package/dist/socket.d.cts +167 -0
- package/dist/socket.d.ts +167 -0
- package/dist/socket.js +238 -0
- package/dist/style-XEUAGGJK.js +5 -0
- package/dist/utils.cjs +397 -0
- package/dist/utils.d.cts +111 -0
- package/dist/utils.d.ts +111 -0
- package/dist/utils.js +4 -0
- package/dist/voodoo.core.js +8213 -0
- package/dist/voodoo.core.min.js +146 -0
- package/dist/voodoo.full.js +21193 -0
- package/dist/voodoo.full.min.js +1784 -0
- package/dist/voodoo.js +14185 -0
- package/dist/voodoo.min.js +420 -0
- package/package.json +127 -0
|
@@ -0,0 +1,1784 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Voodoo.js v0.4.6
|
|
3
|
+
* JavaScript feels like magic.
|
|
4
|
+
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var Voodoo=(()=>{var Mo=Object.defineProperty;var Yp=Object.getOwnPropertyDescriptor;var Xp=Object.getOwnPropertyNames;var Gp=Object.prototype.hasOwnProperty;var Qp=(e,t,n)=>t in e?Mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var gs=(e,t)=>()=>(e&&(t=e(e=0)),t);var So=(e,t)=>{for(var n in t)Mo(e,n,{get:t[n],enumerable:!0})},Jp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Xp(t))!Gp.call(e,o)&&o!==n&&Mo(e,o,{get:()=>t[o],enumerable:!(r=Yp(t,o))||r.enumerable});return e};var Zp=e=>Jp(Mo({},"__esModule",{value:!0}),e);var H=(e,t,n)=>Qp(e,typeof t!="symbol"?t+"":t,n);var Tc={};So(Tc,{EffectScope:()=>et,ITERATE_KEY:()=>Zt,ReactiveEffect:()=>An,TriggerType:()=>xc,computed:()=>Sr,effect:()=>_e,effectScope:()=>Cs,enableTracking:()=>yc,flushSync:()=>Ts,getActiveEffect:()=>tm,getActiveScope:()=>rm,handleError:()=>K,hasChanged:()=>Lr,isReactive:()=>Hs,isRef:()=>en,markRaw:()=>Ds,nextTick:()=>at,pauseTracking:()=>bc,queueJob:()=>Do,queuePostFlush:()=>Me,reactive:()=>Z,ref:()=>Mr,resetTracking:()=>Ss,setErrorHandler:()=>Ls,shallowRef:()=>Ps,stop:()=>As,toRaw:()=>Le,track:()=>st,trigger:()=>xt,unref:()=>Os,warn:()=>Y,watch:()=>Ne,watchEffect:()=>Ns});function at(e){let t=Ro||Es;return e?t.then(e):t}function Do(e){e.queued||(e.queued=!0,Mn.push(e),gc())}function Me(e){Ao.push(e),gc()}function gc(){Co||Tr||(Tr=!0,Ro=Es.then(ks))}function ks(){Tr=!1,Co=!0;let e=new Map;try{for(let t=0;t<Mn.length;t++){let n=Mn[t];if(!n.active)continue;let r=(e.get(n)||0)+1;if(e.set(n,r),r>em){Y("Infinite update loop detected. A reactive effect keeps triggering itself without ever settling. Check whether some expression writes to state that it also reads.");continue}try{n.run()}catch(o){K(o,"effect")}}}finally{for(let n of Mn)n.queued=!1;Mn=[],Co=!1;let t=Ao;Ao=[];for(let n of t)try{n()}catch(r){K(r,"post-flush")}Mn.length||Ao.length?(Ro=Es.then(ks),Tr=!0):Ro=null}}function Ts(){Co||(Tr=!1,ks())}function Ls(e){bs=e}function K(e,t){if(bs){bs(e,t);return}console.error(`[Voodoo] error in ${t}:`,e)}function Y(e,...t){console.warn(`[Voodoo] ${e}`,...t)}function bc(){Ms.push(tn),tn=!1}function yc(){Ms.push(tn),tn=!0}function Ss(){var e;tn=(e=Ms.pop())!=null?e:!0}function tm(){return Oe}function pc(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function _e(e,t){let n=new An(e,t);t!=null&&t.lazy||n.run();let r=(()=>n.run());return r.effect=n,r}function As(e){e instanceof An?e.stop():e.effect.stop()}function Cs(e=!1){return new et(e)}function rm(){return $t}function st(e,t){if(!tn||!Oe)return;let n=ys.get(e);n||ys.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(Oe)||(r.add(Oe),Oe.deps.push(r))}function xt(e,t,n,r){let o=ys.get(e);if(!o)return;let i=new Set,s=a=>{if(a)for(let l of a)(l!==Oe||t==="clear")&&i.add(l)};if(t==="clear")o.forEach(s);else{n!==void 0&&s(o.get(n));let a=Array.isArray(e);if(t==="add")a?xs(n)&&s(o.get("length")):s(o.get(Zt));else if(t==="delete")a||s(o.get(Zt));else if(a&&n==="length"){let l=Number(r);o.forEach((c,d)=>{(d==="length"||typeof d!="symbol"&&Number(d)>=l)&&s(c)})}}for(let a of i)a.scheduler?a.scheduler():Do(a)}function xs(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&String(parseInt(e,10))===e}function Dt(e){return e!==null&&typeof e=="object"}function im(e){if(!Dt(e)||e[wc]||Object.isFrozen(e)||typeof Node!="undefined"&&e instanceof Node)return!1;let t=Object.prototype.toString.call(e).slice(8,-1);return om.has(t)?!1:t==="Object"||t==="Array"||t==="Map"||t==="Set"}function Ds(e){return Object.defineProperty(e,wc,{value:!0,enumerable:!1,configurable:!0}),e}function Le(e){let t=e&&e[Rs];return t?Le(t):e}function Hs(e){return!!(e&&e[$s])}function Z(e){if(!Dt(e)||Hs(e)||!im(e))return e;let t=mc.get(e);if(t)return t;let n=e instanceof Map||e instanceof Set,r=new Proxy(e,n?am:sm);return mc.set(e,r),r}function Lr(e,t){return!Object.is(e,t)}function en(e){return!!(e&&e.__v_isRef===!0)}function hc(e){return Dt(e)?Z(e):e}function Ec(e){!tn||!Oe||e.dep.has(Oe)||(e.dep.add(Oe),Oe.deps.push(e.dep))}function kc(e){for(let t of[...e.dep])t.scheduler?t.scheduler():Do(t)}function Mr(e){return new $o(e)}function Ps(e){return new $o(e,!0)}function Os(e){return en(e)?e.value:e}function Sr(e){let t=typeof e=="function",n=t?e:e.get,r=t?void 0:e.set;return new ws(n,r)}function Ne(e,t,n={}){let{immediate:r=!1,deep:o=!1,flush:i="pre"}=n,s;if(en(e)?s=()=>e.value:typeof e=="function"?s=e:Hs(e)?s=()=>Sn(e):s=()=>e,o){let f=s;s=()=>Sn(f())}let a,l,c=f=>{l=f},d=()=>{if(!p.effect.active)return;let f=p();(o||Lr(f,a))&&(l==null||l(),l=void 0,t(f,a,c),a=f)},p=i==="pre"?_e(s,{lazy:!0,scheduler:()=>Me(d)}):_e(s,{lazy:!0,scheduler:i==="sync"?d:i==="post"?()=>Me(d):()=>Do(p.effect)});return a=p(),r&&t(a,void 0,c),()=>p.effect.stop()}function Ns(e){let t,n=o=>{t=o},r=_e(()=>{t==null||t(),t=void 0,e(n)});return()=>{t==null||t(),r.effect.stop()}}function Sn(e,t=new Set){if(!Dt(e)||t.has(e))return e;if(t.add(e),en(e))Sn(e.value,t);else if(Array.isArray(e))for(let n of e)Sn(n,t);else if(e instanceof Set||e instanceof Map)e.forEach(n=>Sn(n,t));else for(let n of Object.keys(e))Sn(e[n],t);return e}var Es,Mn,Ao,Co,Tr,Ro,em,bs,Oe,tn,Ms,nm,An,$t,et,Zt,ys,xc,Rs,$s,wc,mc,vc,om,sm,am,$o,ws,be=gs(()=>{"use strict";Es=Promise.resolve(),Mn=[],Ao=[],Co=!1,Tr=!1,Ro=null,em=100;bs=null;tn=!0,Ms=[];nm=0,An=class{constructor(t,n){var o;this.fn=t,this.id=nm++,this.active=!0,this.queued=!1,this.deps=[],this.parent=void 0,this.scheduler=n==null?void 0:n.scheduler,this.onStop=n==null?void 0:n.onStop,this.cleanups=[];let r=(o=n==null?void 0:n.scope)!=null?o:$t;r&&r.effects.push(this)}run(){if(!this.active)return this.fn();let t=Oe;for(;t;){if(t===this)return;t=t.parent}this.runCleanups();try{return this.parent=Oe,Oe=this,yc(),pc(this),this.fn()}finally{Ss(),Oe=this.parent,this.parent=void 0}}onInvalidate(t){this.cleanups.push(t)}runCleanups(){if(!this.cleanups.length)return;let t=this.cleanups;this.cleanups=[];for(let n of t)try{n()}catch(r){K(r,"effect cleanup")}}stop(){var t;this.active&&(pc(this),this.runCleanups(),this.active=!1,(t=this.onStop)==null||t.call(this))}};et=class{constructor(t=!1){this.effects=[],this.cleanups=[],this.children=[],this.active=!0,this.parent=void 0,!t&&$t&&(this.parent=$t,$t.children.push(this))}run(t){if(!this.active)return;let n=$t;try{return $t=this,t()}finally{$t=n}}onDispose(t){this.cleanups.push(t)}stop(){if(this.active){this.active=!1;for(let t of this.effects)t.stop();for(let t of this.children)t.stop();for(let t of this.cleanups)try{t()}catch(n){K(n,"scope cleanup")}if(this.effects.length=0,this.children.length=0,this.cleanups.length=0,this.parent){let t=this.parent.children.indexOf(this);t>-1&&this.parent.children.splice(t,1)}}}};Zt=Symbol("voodoo:iterate"),ys=new WeakMap;xc=(o=>(o.SET="set",o.ADD="add",o.DELETE="delete",o.CLEAR="clear",o))(xc||{});Rs=Symbol("voodoo:raw"),$s=Symbol("voodoo:isReactive"),wc=Symbol("voodoo:skip"),mc=new WeakMap,vc=(()=>{let e={};for(let t of["includes","indexOf","lastIndexOf"])e[t]=function(...n){let r=Le(this);for(let i=0;i<r.length;i++)st(r,String(i));let o=r[t].apply(r,n);return o===-1||o===!1?r[t].apply(r,n.map(Le)):o};for(let t of["push","pop","shift","unshift","splice"])e[t]=function(...n){bc();try{return Le(this)[t].apply(this,n)}finally{Ss()}};return e})();om=new Set(["Date","RegExp","Promise","Error","File","FileList","Blob","FormData","URL","URLSearchParams","ArrayBuffer","DataView"]);sm={get(e,t,n){if(t===Rs)return e;if(t===$s)return!0;let r=Array.isArray(e);if(r&&Object.prototype.hasOwnProperty.call(vc,t))return Reflect.get(vc,t,n);let o=Reflect.get(e,t,n);return typeof t=="symbol"?o:(st(e,t),en(o)?r&&xs(t)?o:o.value:Dt(o)?Z(o):o)},set(e,t,n,r){let o=e[t];if(n=Le(n),!Array.isArray(e)&&en(o)&&!en(n))return o.value=n,!0;let i=Array.isArray(e)&&xs(t)?Number(t)<e.length:Object.prototype.hasOwnProperty.call(e,t),s=Reflect.set(e,t,n,r);return e===Le(r)&&(i?Lr(n,o)&&xt(e,"set",t,n):xt(e,"add",t,n)),s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&xt(e,"delete",t),r},has(e,t){let n=Reflect.has(e,t);return typeof t!="symbol"&&st(e,t),n},ownKeys(e){return st(e,Array.isArray(e)?"length":Zt),Reflect.ownKeys(e)}},am={get(e,t,n){if(t===Rs)return e;if(t===$s)return!0;let r=e;if(t==="size")return st(r,Zt),Reflect.get(r,"size",r);let o={get(s){st(r,s);let a=r.get(s);return Dt(a)?Z(a):a},has(s){return st(r,s),r.has(s)},add(s){s=Le(s);let a=r.has(s);return r.add(s),a||xt(r,"add",s,s),n},set(s,a){let l=r.has(s),c=r.get(s);return r.set(s,Le(a)),l?Lr(a,c)&&xt(r,"set",s,a):xt(r,"add",s,a),n},delete(s){let a=r.has(s),l=r.delete(s);return a&&xt(r,"delete",s),l},clear(){let s=r.size!==0,a=r.clear();return s&&xt(r,"clear"),a},forEach(s,a){return st(r,Zt),r.forEach((l,c)=>{s.call(a,Dt(l)?Z(l):l,Dt(c)?Z(c):c,n)})}};if(t in o)return o[t];if(t===Symbol.iterator||t==="keys"||t==="values"||t==="entries"){st(r,Zt);let s=r[t];return typeof s=="function"?s.bind(r):s}let i=Reflect.get(r,t,r);return typeof i=="function"?i.bind(r):i}};$o=class{constructor(t,n=!1){H(this,"shallow",n);H(this,"__v_isRef",!0);H(this,"_value");H(this,"_rawValue");H(this,"dep",new Set);this._rawValue=Le(t),this._value=n?t:hc(t)}get value(){return Ec(this),this._value}set value(t){let n=Le(t);Lr(n,this._rawValue)&&(this._rawValue=n,this._value=this.shallow?t:hc(t),kc(this))}};ws=class{constructor(t,n){H(this,"setter",n);H(this,"__v_isRef",!0);H(this,"_value");H(this,"_dirty",!0);H(this,"effect");H(this,"dep",new Set);this.effect=new An(t,{scheduler:()=>{this._dirty||(this._dirty=!0,kc(this))}})}get value(){return Ec(this),this._dirty&&(this._dirty=!1,this._value=this.effect.run()),this._value}set value(t){this.setter?this.setter(t):Y("computed is read-only when there is no setter.")}stop(){this.effect.stop()}}});function y(e,t,n={}){var r,o;wt.set(e,{name:e,setup:t,priority:(r=n.priority)!=null?r:j.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function rn(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function Oo(e,t,n){Oc.has(t)||(Oc.add(t),typeof t=="function"?t(e,n):t.install(e,n))}var w,wt,j,$e,Oc,le=gs(()=>{"use strict";w={prefix:"v-",autoStart:!0,autoDiscover:!0,root:null,devtools:!1,baseURL:"",globals:{},locale:typeof navigator!="undefined"&&navigator.language||"pt-BR",currency:"BRL",injectStyles:!0,cleanAttributes:!0,sanitizeUrls:!0},wt=new Map,j={IGNORE:100,FOR:90,IF:80,DATA:70,COMPONENT:65,REF:60,BIND:45,MODEL:40,DEFAULT:0,INIT:-10,TRANSITION:-20};$e=new Map;Oc=new Set});var Sd={};So(Sd,{BASE_TOKENS:()=>Md,ensureTokens:()=>he,injectStyle:()=>ne});function ne(e,t){if(typeof document=="undefined"||!w.injectStyles||Ld.has(e))return;Ld.add(e);let n=document.createElement("style");n.setAttribute("data-voodoo",e),n.textContent=t,document.head.appendChild(n)}function he(){ne("tokens",Md)}var Ld,Md,He=gs(()=>{"use strict";le();Ld=new Set;Md=`
|
|
7
|
+
:root{
|
|
8
|
+
--v-primary:#6D3BF5;
|
|
9
|
+
--v-primary-hover:#5A2FD8;
|
|
10
|
+
--v-primary-contrast:#fff;
|
|
11
|
+
--v-accent:#FF3D8B;
|
|
12
|
+
--v-success:#2ED9A5;
|
|
13
|
+
--v-warning:#FFB35C;
|
|
14
|
+
--v-danger:#FF4D4D;
|
|
15
|
+
--v-info:#9B7BFF;
|
|
16
|
+
--v-surface:#fff;
|
|
17
|
+
--v-surface-2:#FBF7F2;
|
|
18
|
+
--v-text:#14111F;
|
|
19
|
+
--v-text-muted:#6B6580;
|
|
20
|
+
--v-border:#E6E0F0;
|
|
21
|
+
--v-radius:12px;
|
|
22
|
+
--v-radius-sm:8px;
|
|
23
|
+
--v-shadow:0 10px 30px rgba(20,17,31,.14);
|
|
24
|
+
--v-z-modal:1000;
|
|
25
|
+
--v-z-drawer:1000;
|
|
26
|
+
--v-z-dropdown:900;
|
|
27
|
+
--v-z-toast:1100;
|
|
28
|
+
--v-z-tooltip:1200;
|
|
29
|
+
--v-ease:cubic-bezier(.22,1,.36,1);
|
|
30
|
+
}
|
|
31
|
+
@media (prefers-color-scheme: dark){
|
|
32
|
+
:root:not([data-theme="light"]){
|
|
33
|
+
--v-surface:#1C1830;
|
|
34
|
+
--v-surface-2:#14111F;
|
|
35
|
+
--v-text:#F4F1FB;
|
|
36
|
+
--v-text-muted:#A9A2C4;
|
|
37
|
+
--v-border:#332C50;
|
|
38
|
+
--v-shadow:0 10px 30px rgba(0,0,0,.45);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
:root[data-theme="dark"]{
|
|
42
|
+
--v-surface:#1C1830;
|
|
43
|
+
--v-surface-2:#14111F;
|
|
44
|
+
--v-text:#F4F1FB;
|
|
45
|
+
--v-text-muted:#A9A2C4;
|
|
46
|
+
--v-border:#332C50;
|
|
47
|
+
--v-shadow:0 10px 30px rgba(0,0,0,.45);
|
|
48
|
+
}
|
|
49
|
+
[v-cloak]{display:none !important}
|
|
50
|
+
`});var cx={};So(cx,{default:()=>lx});be();var de=class extends Error{constructor(n,r,o){let i=`${r}
|
|
51
|
+
${" ".repeat(Math.max(0,o))}^`;super(`${n}
|
|
52
|
+
|
|
53
|
+
${i}`);H(this,"source",r);H(this,"position",o);this.name="VoodooSyntaxError"}},lm=[">>>=","===","!==","**=","...","<<=",">>=","&&=","||=","??=","?.","=>","==","!=","<=",">=","&&","||","??","**","++","--","+=","-=","*=","/=","%=","+","-","*","/","%","!","<",">","=","(",")","[","]","{","}",",",".","?",":",";"],cm=/[A-Za-z_$À-]/,dm=/[A-Za-z0-9_$À-]/;function um(e){return cm.test(e)}function fm(e){return dm.test(e)}function Ho(e){return e>="0"&&e<="9"}var Lc={n:`
|
|
54
|
+
`,t:" ",r:"\r",b:"\b",f:"\f",v:"\v",0:"\0"};function Po(e){var o,i;let t=[],n=0,r=e.length;for(;n<r;){let s=e[n];if(s===" "||s===" "||s===`
|
|
55
|
+
`||s==="\r"||s==="\f"||s==="\v"){n++;continue}if(s==="/"&&e[n+1]==="/"){for(;n<r&&e[n]!==`
|
|
56
|
+
`;)n++;continue}if(s==="/"&&e[n+1]==="*"){let c=e.indexOf("*/",n+2);if(c===-1)throw new de("Unclosed block comment",e,n);n=c+2;continue}let a=n;if(Ho(s)||s==="."&&Ho(e[n+1])){let c="";if(s==="0"&&(e[n+1]==="x"||e[n+1]==="X"))for(c="0x",n+=2;n<r&&/[0-9a-fA-F_]/.test(e[n]);)c+=e[n++];else if(s==="0"&&(e[n+1]==="b"||e[n+1]==="B"))for(c="0b",n+=2;n<r&&/[01_]/.test(e[n]);)c+=e[n++];else{for(;n<r&&/[0-9_]/.test(e[n]);)c+=e[n++];if(e[n]===".")for(c+=e[n++];n<r&&/[0-9_]/.test(e[n]);)c+=e[n++];if(e[n]==="e"||e[n]==="E")for(c+=e[n++],(e[n]==="+"||e[n]==="-")&&(c+=e[n++]);n<r&&Ho(e[n]);)c+=e[n++]}let d=Number(c.replace(/_/g,""));if(Number.isNaN(d))throw new de("Invalid number",e,a);t.push({type:"num",value:c,parsed:d,start:a,end:n});continue}if(s==='"'||s==="'"){n++;let c="";for(;n<r&&e[n]!==s;)if(e[n]==="\\"){n++;let d=e[n];if(d==="u")if(e[n+1]==="{"){let u=e.indexOf("}",n);if(u===-1)throw new de("Unclosed Unicode escape",e,a);let p=e.slice(n+2,u);if(!/^[0-9a-fA-F]+$/.test(p)||parseInt(p,16)>1114111)throw new de(`Invalid Unicode escape "\\u{${p}}"`,e,n-1);c+=String.fromCodePoint(parseInt(p,16)),n=u+1}else{let u=e.slice(n+1,n+5);if(!/^[0-9a-fA-F]{4}$/.test(u))throw new de("Invalid Unicode escape: \\u needs 4 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(u,16)),n+=5}else if(d==="x"){let u=e.slice(n+1,n+3);if(!/^[0-9a-fA-F]{2}$/.test(u))throw new de("Invalid hexadecimal escape: \\x needs 2 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(u,16)),n+=3}else c+=(o=Lc[d])!=null?o:d,n++}else c+=e[n++];if(n>=r)throw new de("Unclosed string",e,a);n++,t.push({type:"str",value:c,parsed:c,start:a,end:n});continue}if(s==="`"){n++;let c=[],d=[],u="";for(;n<r&&e[n]!=="`";){if(e[n]==="\\"){let p=e[n+1];u+=(i=Lc[p])!=null?i:p,n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){c.push(u),u="",n+=2;let p=1,f="";for(;n<r;){let m=e[n];if(m==="{")p++;else if(m==="}"){if(p--,p===0)break}else if(m==='"'||m==="'"||m==="`"){let h=m;for(f+=e[n++];n<r&&e[n]!==h;)e[n]==="\\"&&(f+=e[n++]),f+=e[n++]}f+=e[n++]}if(p!==0)throw new de("Unclosed template interpolation",e,a);n++,d.push(f);continue}u+=e[n++]}if(n>=r)throw new de("Unclosed template literal",e,a);n++,c.push(u),t.push({type:"tpl",value:e.slice(a,n),tpl:{quasis:c,exprs:d},start:a,end:n});continue}if(um(s)){let c="";for(;n<r&&fm(e[n]);)c+=e[n++];t.push({type:"ident",value:c,start:a,end:n});continue}let l;for(let c of lm)if(e.startsWith(c,n)){if(c==="?."&&Ho(e[n+2]))continue;l=c;break}if(l){n+=l.length,t.push({type:"punct",value:l,start:a,end:n});continue}throw new de(`Unexpected character "${s}"`,e,n)}return t.push({type:"eof",value:"",start:r,end:r}),t}var Mc={"??":1,"||":2,"&&":3,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,in:7,instanceof:7,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},pm=new Set(["=","+=","-=","*=","/=","%=","**=","&&=","||=","??="]),mm=new Set(["!","-","+","typeof","void"]),Sc=Object.assign(Object.create(null),{true:!0,false:!1,null:null,undefined:void 0}),Ac=1200,Cc=32,Fs=0,Is=class{constructor(t,n){H(this,"tokens",t);H(this,"source",n);H(this,"pos",0);H(this,"depth",0)}peek(t=0){return this.tokens[Math.min(this.pos+t,this.tokens.length-1)]}next(){return this.tokens[this.pos++]}isPunct(t,n=0){let r=this.peek(n);return r.type==="punct"&&r.value===t}isIdent(t,n=0){let r=this.peek(n);return r.type==="ident"&&r.value===t}expect(t){if(!this.isPunct(t)){let n=this.peek();throw new de(`Expected "${t}" but found "${n.value||"end of expression"}"`,this.source,n.start)}return this.next()}parseProgram(){let t=[];for(;this.peek().type!=="eof";)for(t.push(this.parseStatement());this.isPunct(";")||this.isPunct(",");)this.next();return t.length===0?{t:"lit",v:void 0}:t.length===1?t[0]:{t:"seq",body:t}}parseArrowBody(){if(!this.isPunct("{"))return this.parseAssignment();this.next();let t=[];for(;!this.isPunct("}")&&this.peek().type!=="eof";)for(t.push(this.parseStatement());this.isPunct(";")||this.isPunct(",");)this.next();return this.expect("}"),t.length===0?{t:"lit",v:void 0}:t.length===1?t[0]:{t:"seq",body:t}}parseStatement(){if(this.peek().type==="ident"&&this.peek().value==="if"&&this.isPunct("(",1)){this.next(),this.expect("(");let t=this.parseExpression();this.expect(")");let n=this.parseBlockOrStatement(),r=null;return this.peek().type==="ident"&&this.peek().value==="else"&&(this.next(),r=this.parseBlockOrStatement()),{t:"if",test:t,cons:n,alt:r}}return this.parseExpression()}parseBlockOrStatement(){if(!this.isPunct("{"))return this.parseStatement();this.next();let t=[];for(;!this.isPunct("}")&&this.peek().type!=="eof";)for(t.push(this.parseStatement());this.isPunct(";")||this.isPunct(",");)this.next();return this.expect("}"),t.length===0?{t:"lit",v:void 0}:t.length===1?t[0]:{t:"seq",body:t}}parseExpression(){return this.parseAssignment()}enterLevel(){if(++this.depth>Ac){let t=this.peek();throw new de(`Expression too deeply nested (limit of ${Ac} levels)`,this.source,t.start)}}parseAssignment(){this.enterLevel();let t=this.parseAssignmentInternal();return this.depth--,t}parseAssignmentInternal(){if(this.peek().type==="ident"&&this.isPunct("=>",1)){let r=this.next().value;return this.next(),{t:"arrow",params:[r],body:this.parseArrowBody()}}if(this.isPunct("(")){let r=this.tryParseParenArrow();if(r)return r}let t=this.parseConditional(),n=this.peek();if(n.type==="punct"&&pm.has(n.value)){if(t.t!=="id"&&t.t!=="member")throw new de("Invalid assignment target",this.source,n.start);this.next();let r=this.parseAssignment();return{t:"assign",op:n.value,target:t,value:r}}return t}tryParseParenArrow(){let t=this.pos,n=0,r=this.pos;for(;r<this.tokens.length;r++){let s=this.tokens[r];if(s.type==="punct"&&s.value==="(")n++;else if(s.type==="punct"&&s.value===")"){if(n--,n===0)break}else if(s.type==="eof")break}let o=this.tokens[r+1];if(!o||o.type!=="punct"||o.value!=="=>")return null;this.next();let i=[];for(;!this.isPunct(")");){let s=this.next();if(s.type!=="ident")return this.pos=t,null;i.push(s.value),this.isPunct(",")&&this.next()}return this.expect(")"),this.expect("=>"),{t:"arrow",params:i,body:this.parseArrowBody()}}parseConditional(){let t=this.parseBinary(0);if(this.isPunct("?")){this.next();let n=this.parseAssignment();this.expect(":");let r=this.parseAssignment();return{t:"cond",test:t,cons:n,alt:r}}return t}parseBinary(t){this.enterLevel();let n=this.parseBinaryInternal(t);return this.depth--,n}parseBinaryInternal(t){let n=this.parseUnary();for(;;){let r=this.peek(),o=r.value;if(!(r.type==="punct"&&o in Mc||r.type==="ident"&&(o==="in"||o==="instanceof")))break;let s=Mc[o];if(s===void 0||s<=t)break;this.next();let a=this.parseBinary(o==="**"?s-1:s);n={t:o==="&&"||o==="||"||o==="??"?"logic":"bin",op:o,l:n,r:a}}return n}parseUnary(){this.enterLevel();let t=this.parseUnaryInternal();return this.depth--,t}parseUnaryInternal(){let t=this.peek();if((t.type==="punct"||t.type==="ident")&&mm.has(t.value))return this.next(),{t:"unary",op:t.value,a:this.parseUnary()};if(t.type==="punct"&&(t.value==="++"||t.value==="--")){this.next();let o=this.parseUnary();return{t:"update",op:t.value,a:o,prefix:!0}}let n=this.parseCallMember(),r=this.peek();return r.type==="punct"&&(r.value==="++"||r.value==="--")&&(this.next(),n={t:"update",op:r.value,a:n,prefix:!1}),n}parseCallMember(){let t=this.parsePrimary();for(;;)if(this.isPunct(".")){this.next();let n=this.next();if(n.type!=="ident")throw new de("Invalid property name",this.source,n.start);t={t:"member",o:t,p:{t:"lit",v:n.value},computed:!1,opt:!1}}else if(this.isPunct("?."))if(this.next(),this.isPunct("("))t={t:"call",callee:t,args:this.parseArguments(),opt:!0};else if(this.isPunct("[")){this.next();let n=this.parseExpression();this.expect("]"),t={t:"member",o:t,p:n,computed:!0,opt:!0}}else{let n=this.next();if(n.type!=="ident")throw new de("Invalid property name",this.source,n.start);t={t:"member",o:t,p:{t:"lit",v:n.value},computed:!1,opt:!0}}else if(this.isPunct("[")){this.next();let n=this.parseExpression();this.expect("]"),t={t:"member",o:t,p:n,computed:!0,opt:!1}}else if(this.isPunct("("))t={t:"call",callee:t,args:this.parseArguments(),opt:!1};else return t}parseArguments(){this.expect("(");let t=[];for(;!this.isPunct(")")&&(this.isPunct("...")?(this.next(),t.push({t:"unary",op:"...",a:this.parseAssignment()})):t.push(this.parseAssignment()),this.isPunct(","));)this.next();return this.expect(")"),t}parsePrimary(){let t=this.peek();if(t.type==="ident"&&t.value==="function"){this.next(),this.peek().type==="ident"&&this.next(),this.expect("(");let n=[];for(;!this.isPunct(")");){let r=this.next();if(r.type!=="ident")throw new de("Expected a parameter name",this.source,r.start);n.push(r.value),this.isPunct(",")&&this.next()}return this.expect(")"),{t:"arrow",params:n,body:this.parseArrowBody()}}if(t.type==="num"||t.type==="str")return this.next(),{t:"lit",v:t.parsed};if(t.type==="tpl"){this.next();let n=t.tpl;if(Fs>=Cc)throw new de(`Template literal too deeply nested (limit of ${Cc} levels)`,this.source,t.start);Fs++;try{return{t:"tpl",quasis:n.quasis,exprs:n.exprs.map(r=>lt(r))}}finally{Fs--}}if(t.type==="ident")return t.value in Sc?(this.next(),{t:"lit",v:Sc[t.value]}):(this.next(),{t:"id",n:t.value});if(t.type==="punct"){if(t.value==="("){this.next();let n=this.parseExpression();return this.expect(")"),n}if(t.value==="[")return this.parseArrayLiteral();if(t.value==="{")return this.parseObjectLiteral()}throw new de(`Unexpected token "${t.value||"end of expression"}"`,this.source,t.start)}parseArrayLiteral(){this.expect("[");let t=[];for(;!this.isPunct("]")&&(this.isPunct("...")?(this.next(),t.push({spread:this.parseAssignment()})):t.push(this.parseAssignment()),this.isPunct(","));)this.next();return this.expect("]"),{t:"arr",els:t}}parseObjectLiteral(){var n;this.expect("{");let t=[];for(;!this.isPunct("}");){if(this.isPunct("..."))this.next(),t.push({key:null,spread:this.parseAssignment()});else if(this.isPunct("[")){this.next();let r=this.parseAssignment();this.expect("]"),this.expect(":"),t.push({key:null,keyExpr:r,value:this.parseAssignment()})}else{if(this.peek().type==="ident"&&this.peek().value==="get"&&this.peek(1).type==="ident"&&this.isPunct("(",2)){this.next();let i=this.next();this.expect("("),this.expect(")"),t.push({key:String(i.value),getter:!0,value:{t:"method",params:[],body:this.parseArrowBody()}}),this.isPunct(",")&&this.next();continue}let r=this.next();if(r.type!=="ident"&&r.type!=="str"&&r.type!=="num")throw new de("Invalid object key",this.source,r.start);let o=String((n=r.parsed)!=null?n:r.value);if(this.isPunct(":"))this.next(),t.push({key:o,value:this.parseAssignment()});else if(this.isPunct("(")){this.next();let i=[];for(;!this.isPunct(")");){let s=this.next();if(s.type!=="ident")throw new de("Expected a parameter name",this.source,s.start);i.push(s.value),this.isPunct(",")&&this.next()}this.expect(")"),t.push({key:o,value:{t:"method",params:i,body:this.parseArrowBody()}})}else t.push({key:o,value:{t:"id",n:o}})}if(this.isPunct(","))this.next();else break}return this.expect("}"),{t:"obj",props:t}}},Cn=new Map,Rc=2e3;function lt(e){let t=Cn.get(e);if(t)return t;let n=new Is(Po(e),e).parseProgram();return Cn.size>=Rc&&vm(),Cn.set(e,n),n}function vm(){let e=Math.floor(Rc/2),t=0;for(let n of Cn.keys())if(Cn.delete(n),++t>=e)break}function $c(){Cn.clear()}var Hc,hm=Object.freeze({keys:Object.keys,values:Object.values,entries:Object.entries,fromEntries:Object.fromEntries,assign:Object.assign,is:Object.is,hasOwn:(Hc=Object.hasOwn)!=null?Hc:((e,t)=>Object.prototype.hasOwnProperty.call(e,t))}),gm=new Set(["eval","Function","window","globalThis","self","top","parent","document","fetch","XMLHttpRequest","importScripts","require","process","Reflect","Proxy","WebAssembly","localStorage","sessionStorage","indexedDB","navigator","location","history","crypto","Worker","SharedWorker","ServiceWorker"]),Pe={Math,JSON,Date,Number,String,Boolean,Array,Object:hm,Intl,RegExp,Promise,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,console},Re=class extends Error{constructor(n,r){super(r?`${n}
|
|
57
|
+
|
|
58
|
+
Expression: ${r}`:n);H(this,"expression",r);this.name="VoodooRuntimeError"}},Bs=Symbol("spread"),bm=new Set(["__proto__","constructor","prototype"]);function Pc(e){return typeof e=="string"&&bm.has(e)}function nn(e,t){if(Pc(e))throw new Re(`Access blocked to "${String(e)}": template expressions cannot reach the prototype chain. Expose a method in state instead.`,t);return e}function F(e,t){var n,r;switch(e.t){case"lit":return e.v;case"tpl":{let o=(n=e.quasis[0])!=null?n:"";for(let i=0;i<e.exprs.length;i++)o+=Ht(F(e.exprs[i],t)),o+=(r=e.quasis[i+1])!=null?r:"";return o}case"id":{nn(e.n);let o=t.lookup(e.n);return o?o[e.n]:e.n in Pe?Pe[e.n]:void 0}case"member":{let o=F(e.o,t);if(o==null){if(e.opt)return;throw new Re(`Could not read "${zs(e,t)}" from ${o===null?"null":"undefined"}`)}let i=nn(e.computed?F(e.p,t):e.p.v);return o[i]}case"call":{let o,i;if(e.callee.t==="member"){let s=F(e.callee.o,t);if(s==null){if(e.callee.opt||e.opt)return;throw new Re(`Could not call "${zs(e.callee,t)}" from ${s===null?"null":"undefined"}`)}let a=nn(e.callee.computed?F(e.callee.p,t):e.callee.p.v);o=s,i=s[a]}else if(e.callee.t==="id"){nn(e.callee.n);let s=t.lookup(e.callee.n);s?(o=s,i=s[e.callee.n]):i=Pe[e.callee.n]}else i=F(e.callee,t);if(i==null&&e.opt)return;if(typeof i!="function"){let s=e.callee.t==="id"?e.callee.n:zs(e.callee,t);throw e.callee.t==="id"&&!t.lookup(s)&&!(s in Pe)?gm.has(s)?new Re(`"${s}" is blocked. Expressions run in a sandbox without access to it.`):new Re(`"${s}" was not found. Expressions cannot reach window: expose it with V.config.globals.${s} = ..., or put it in scope with V.data({ ${s} }).`):new Re(`"${s}" is not a function`)}return i.apply(o,ym(e.args,t))}case"unary":{if(e.op==="...")return{[Bs]:F(e.a,t)};if(e.op==="typeof"){if(e.a.t==="id"){if(Pc(e.a.n))return"undefined";let i=t.lookup(e.a.n);return typeof(i?i[e.a.n]:Pe[e.a.n])}return typeof F(e.a,t)}let o=F(e.a,t);switch(e.op){case"!":return!o;case"-":return-o;case"+":return+o;case"void":return}throw new Re(`Unsupported unary operator: ${e.op}`)}case"update":{let o=Number(F(e.a,t)),i=e.op==="++"?o+1:o-1;return Dc(e.a,i,t),e.prefix?i:o}case"bin":{let o=F(e.l,t),i=F(e.r,t);switch(e.op){case"+":return o+i;case"-":return o-i;case"*":return o*i;case"/":return o/i;case"%":return o%i;case"**":return o**i;case"==":return o==i;case"!=":return o!=i;case"===":return o===i;case"!==":return o!==i;case"<":return o<i;case">":return o>i;case"<=":return o<=i;case">=":return o>=i;case"in":return o in i;case"instanceof":return o instanceof i}throw new Re(`Unsupported operator: ${e.op}`)}case"logic":{let o=F(e.l,t);return e.op==="&&"?o&&F(e.r,t):e.op==="||"?o||F(e.r,t):o!=null?o:F(e.r,t)}case"cond":return F(e.test,t)?F(e.cons,t):F(e.alt,t);case"assign":{let o;if(e.op==="=")o=F(e.value,t);else if(e.op==="&&="||e.op==="||="||e.op==="??="){let i=F(e.target,t);if(!(e.op==="&&="?!!i:e.op==="||="?!i:i==null))return i;o=F(e.value,t)}else{let i=F(e.target,t),s=F(e.value,t);switch(e.op){case"+=":o=i+s;break;case"-=":o=i-s;break;case"*=":o=i*s;break;case"/=":o=i/s;break;case"%=":o=i%s;break;case"**=":o=i**s;break;default:throw new Re(`Unsupported assignment: ${e.op}`)}}return Dc(e.target,o,t),o}case"if":return F(e.test,t)?F(e.cons,t):e.alt?F(e.alt,t):void 0;case"method":{let o=e.params,i=e.body;return function(...s){let a={};for(let d=0;d<o.length;d++)a[o[d]]=s[d];let l=this,c=l!==null&&typeof l=="object"?t.child(l):t;return F(i,c.child(a))}}case"arrow":{let o=e.params,i=e.body;return(...s)=>{let a={};for(let l=0;l<o.length;l++)a[o[l]]=s[l];return F(i,t.child(a))}}case"obj":{let o={};for(let i of e.props)if(i.spread)Object.assign(o,F(i.spread,t));else{let s=nn(i.key!==null?i.key:String(F(i.keyExpr,t)));if(i.getter){let a=F(i.value,t);Object.defineProperty(o,s,{enumerable:!0,configurable:!0,get(){return a.call(this)}});continue}o[s]=F(i.value,t)}return o}case"arr":{let o=[];for(let i of e.els)i&&typeof i=="object"&&"spread"in i?o.push(...F(i.spread,t)):o.push(F(i,t));return o}case"seq":{let o;for(let i of e.body)o=F(i,t);return o}}throw new Re(`Unknown node: ${e.t}`)}function ym(e,t){let n=[];for(let r of e){let o=F(r,t);o&&typeof o=="object"&&Bs in o?n.push(...o[Bs]):n.push(o)}return n}function Dc(e,t,n){if(e.t==="id"){nn(e.n),n.set(e.n,t);return}if(e.t==="member"){let r=F(e.o,n);if(r==null)throw new Re("Could not write to null or undefined");let o=nn(e.computed?F(e.p,n):e.p.v);r[o]=t;return}throw new Re("Invalid assignment target")}function zs(e,t){return e.t==="member"?e.computed?String(F(e.p,t)):String(e.p.v):e.t==="id"?e.n:"value"}function Ht(e){if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(e instanceof Date)return e.toLocaleString();if(typeof e=="object")try{return JSON.stringify(e)}catch(t){return String(e)}return String(e)}le();be();var Ar=new Map;function P(e,t){Ar.set(e.startsWith("$")?e:`$${e}`,t)}var on=class e{constructor(t={},n=null,r=null){this.refs={},this.component=null,this.provides=null,this.magicCache=null,this.data=t,this.parent=n,this.el=r}get root(){let t=this;for(;t.parent;)t=t.parent;return t}inject(t,n){let r=this;for(;r;){if(r.provides&&t in r.provides)return r.provides[t];r=r.parent}return n}get owner(){let t=this;for(;t;){if(t.component)return t;t=t.parent}return null}get allRefs(){let t=[],n=this;for(;n;)t.unshift(n),n=n.parent;let r={};for(let o of t)Object.assign(r,o.refs);return r}lookup(t){let n=this;for(;n;){if(t in n.data)return n.data;n=n.parent}if(t.charCodeAt(0)===36&&Ar.has(t))return this.magicContainer(t)}has(t){return this.lookup(t)!==void 0}get(t){let n=this.lookup(t);return n?n[t]:void 0}set(t,n){let r=this;for(;r;){if(t in r.data){r.data[t]=n;return}r=r.parent}this.data[t]=n}child(t={},n=null){return new e(t,this,n!=null?n:this.el)}reactiveChild(t,n=null){return new e(Z(t),this,n!=null?n:this.el)}magicContainer(t){this.magicCache||(this.magicCache=new Map);let n=this.magicCache.get(t);if(n)return n;let r=Ar.get(t),o=this,i={};return Object.defineProperty(i,t,{get:()=>r(o),set:s=>{let a=r(o);a&&typeof a=="object"&&"set"in a&&a.set(s)},enumerable:!0,configurable:!0}),this.magicCache.set(t,i),i}},ct=new on(Z({}));be();le();le();function Et(){return w.devtools===!0}function kt(e){if(!e)return"(no element)";let t=e.tagName.toLowerCase();e.id&&(t+=`#${e.id}`);let n=(e.getAttribute("class")||"").trim().split(/\s+/).filter(Boolean);return n.length&&(t+=`.${n.slice(0,2).join(".")}`),`<${t}>`}function sn(e){Et()&&console.warn(`[Voodoo] ${e}`)}var Nc=new Set;function Cr(e,t){Et()&&(Nc.has(e)||(Nc.add(e),console.warn(`[Voodoo] ${t}`)))}var xm=new Set(["confirm-title","confirm-label","confirm-cancel","hold-duration"]);function Fc(e,t,n){Et()&&(xm.has(n)||Cr(`unknown-directive:${n}`,`unknown directive "${t}" at ${kt(e)}. No directive named "${n}" was registered. Check the spelling or register with V.directive("${n}", ...).`))}function Ic(e,t){Cr(`unknown-component:${t}`,`component "${t}" not registered at ${kt(e)}. Register with V.component("${t}", { ... }) before using the tag, or remove the attribute to leave the element as plain HTML.`)}function zc(e,t,n,r){if(!Et())return;let o=r instanceof Error?r.message.split(`
|
|
59
|
+
`)[0]:String(r);sn(`invalid expression in ${t}="${n}" on element ${kt(e)}.
|
|
60
|
+
Reason: ${o}
|
|
61
|
+
Suggestion: attribute expressions accept a single value. If the logic spans more than one line, move it to a component method and call the method here.`)}function Bc(e,t,n){Et()&&sn(`duplicate key "${String(t)}" in v-for="${n}" on element ${kt(e)}. Two rows with the same key cause the list to reuse the wrong block when reordering. Use a unique key, like the item id.`)}function jc(e,t,n){Et()&&sn(`required prop "${n}" missing from component "${t}" at ${kt(e)}. Pass the value on the tag with ${n}="..." for a fixed value or :${n}="expression" for a state value.`)}function Rr(e,t){Cr(`alias:${e}`,`"${e}" is an alias for "${t}" and still works, but the official name is "${t}". Prefer "${t}" in new code.`)}var an=new WeakMap,Fo=new WeakMap,Tt=new WeakSet,Io=new WeakMap;function Us(e){return Tt.has(e)}function Ws(e){Tt.add(e)}function Lt(e){return an.get(e)}function Ve(e){let t=e;for(;t;){let n=an.get(t);if(n)return n;t=t.parentNode}return ct}function Kc(e,t){let n=Io.get(e);n||Io.set(e,n=[]),n.push(t)}function Yc(e){var t;return(t=Io.get(e))!=null?t:[]}var js=new WeakSet;function _s(e){js.add(e),e.remove()}function dt(e,t){let n=Fo.get(e);n||Fo.set(e,n=[]),n.push(t)}function X(e){if(e.nodeType===1){let n=[];for(let r=e.firstChild;r;r=r.nextSibling)(r.nodeType===1||r.nodeType===3)&&n.push(r);for(let r=n.length-1;r>=0;r--)X(n[r])}let t=Fo.get(e);if(t){Fo.delete(e);for(let n=t.length-1;n>=0;n--)try{t[n]()}catch(r){K(r,"cleanup")}}e.nodeType===1&&Lm(e),an.delete(e),Io.delete(e),Tt.delete(e)}var No=new Map,wm=4e3;function $n(e,t){let n=`${e}\0${t}`,r=No.get(n);if(r!==void 0)return r;let o=Em(e,t);return No.size>=wm&&No.clear(),No.set(n,o),o}function Em(e,t){let n=w.prefix,r;if(e.startsWith("@"))r=`on:${e.slice(1)}`;else if(e.startsWith(":")&&e.length>1)r=`bind:${e.slice(1)}`;else if(e.startsWith(".")&&e.length>1)r=`bind:${e.slice(1)}.prop`;else if(e.startsWith(n))r=e.slice(n.length);else if(e.startsWith("data-v-"))r=e.slice(7);else return null;if(!r)return null;let o=r.split("."),i=o.shift(),s={};for(let d of o){let u=d.indexOf("=");u>-1?s[d.slice(0,u)]=d.slice(u+1):s[d]=!0}let a=i.indexOf(":"),l=a>-1?i.slice(0,a):i,c=a>-1?i.slice(a+1):void 0;return{raw:e,name:l,arg:c,modifiers:s,expression:t}}function Dn(e){let t=[],n=Pt.get(e);if(n&&n.size)for(let[r,o]of n){let i=$n(r,o);i&&(t.push(i),Vc(e,i.name))}else{let r=Xc(e);for(let o=0;o<r.length;o++){let i=r[o];if(!Tm(i))continue;let s=$n(i,e.getAttribute(i));s&&(t.push(s),Vc(e,s.name))}}return t.length<2?t:t.sort((r,o)=>qc(o)-qc(r))}var km=typeof Element!="undefined"&&!!Element.prototype.getAttributeNames;function Xc(e){return km?e.getAttributeNames():Array.from(e.attributes,t=>t.name)}function Tm(e){return Ks(e)||e.charCodeAt(0)===46&&e.length>1}function qc(e){var t,n;return(n=(t=wt.get(e.name))==null?void 0:t.priority)!=null?n:0}var $r=new Map,zo=new WeakMap;function Vc(e,t){let n=$r.get(t);n||$r.set(t,n=new Set),n.add(e);let r=zo.get(e);r||zo.set(e,r=new Set),r.add(t)}function Lm(e){var n;let t=zo.get(e);if(t){for(let r of t)(n=$r.get(r))==null||n.delete(e);zo.delete(e)}}function Mm(e,t){var n;return(n=$r.get(t))!=null&&n.has(e)?!0:e.hasAttribute(`${w.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}function Bo(e,t){let n=[],r=$r.get(t),o=e;if(r)for(let s of r)s.isConnected&&o.contains&&o.contains(s)&&s!==o&&n.push(s);let i=new Set(n);for(let s of Array.from(e.querySelectorAll(`[${w.prefix}${t}],[data-v-${t}]`)))i.has(s)||(i.add(s),n.push(s));return n.sort((s,a)=>s.compareDocumentPosition(a)&window.Node.DOCUMENT_POSITION_FOLLOWING?-1:1),n}function Hn(e,t){let n=e;for(;n;){if(Mm(n,t))return n;n=n.parentElement}return null}var Pt=new WeakMap;function Ks(e){return e.startsWith(w.prefix)||e.startsWith("data-v-")||e.charCodeAt(0)===64||e.charCodeAt(0)===58&&e.length>1}function ke(e,t){var r;let n=(r=Pt.get(e))==null?void 0:r.get(t);return n!==void 0?n:e.getAttribute(t)}function Ot(e,t){let n=Pt.get(e);return n!=null&&n.has(t)?!0:e.hasAttribute(t)}function Gc(e){let t=Pt.get(e);if(t)return new Map(t);let n=new Map;for(let r=0;r<e.attributes.length;r++){let o=e.attributes[r];Ks(o.name)&&n.set(o.name,o.value)}return n}function Sm(e){if(!w.cleanAttributes)return;let t=Xc(e),n=Pt.get(e);n||Pt.set(e,n=new Map);for(let r=0;r<t.length;r++){let o=t[r];Ks(o)&&(n.set(o,e.getAttribute(o)),e.removeAttribute(o))}}function Qc(e){let t=Pt.get(e);if(t){for(let[n,r]of t)if(!e.hasAttribute(n))try{e.setAttribute(n,r)}catch(o){}}}function Ys(e){let t=Pt.get(e);return t&&t.size?!0:Xs(e)}function Xs(e){let t=e.attributes;for(let n=0;n<t.length;n++){let r=t[n].name;if(r.startsWith(w.prefix)||r.charCodeAt(0)===64||r.charCodeAt(0)===58||r.startsWith("data-v-"))return!0}return!1}function q(e,t,n,r){if(e)try{return F(lt(e),t)}catch(o){Et()&&zc(r!=null?r:t.el,n!=null?n:"expression",e,o),K(o,n?`${n} ("${e}")`:`expression "${e}"`);return}}var Jc=new WeakSet;function jo(e){Jc.add(e)}function Uc(e,t,n){let r=wt.get(t.name);if(!r){Et()&&t.raw.startsWith(w.prefix)&&Fc(e,t.raw,t.name);return}let o=null,i=()=>{if(!o){let a=o=new et(!0);dt(e,()=>a.stop()),Kc(e,a)}return o},s={el:e,scope:n,expression:t.expression,arg:t.arg,modifiers:t.modifiers,raw:t.raw,evaluate(a){return q(a!=null?a:t.expression,n,t.raw,e)},effect(a){let l=i();l.run(()=>_e(a,{scope:l}))},cleanup(a){dt(e,a)},walk(a,l){se(a,l)}};try{r.setup(s)}catch(a){K(a,`directive ${t.raw}`)}}var qs=null;function Zc(e){qs=e}var Am=new Set(["SCRIPT","STYLE","NOSCRIPT"]);function se(e,t){let n=t!=null?t:Ve(e.parentNode);if(e.nodeType===11){let f=Array.from(e.childNodes);for(let m of f)se(m,n);return}if(e.nodeType===3){ed(e,n);return}if(e.nodeType!==1)return;let r=e;if(Tt.has(r))return;let o=r.tagName;if(Am.has(o))return;if(r.hasAttribute(`${w.prefix}ignore`)||r.hasAttribute(`${w.prefix}pre`)){Tt.add(r);return}let i=n,s=Dn(r),a=$e.size===0&&Pn.size===0||r.hasAttribute(`${w.prefix}component`)?null:Om(o);if(s.length===0&&!a){Wc(r,i);return}Tt.add(r);for(let f of s){let m=wt.get(f.name);if(m!=null&&m.terminal){Uc(r,f,i);return}}let l=s.find(f=>f.name==="data"),c=s.find(f=>f.name==="component"),d=c?c.expression||"":a||"",u=!1;if(d&&qs){let f=qs(r,d,i);f&&(i=f,u=!0,an.set(r,i))}else if(l||c){let f=l?q(l.expression||"{}",i,"v-data"):{};i=i.reactiveChild(f&&typeof f=="object"?f:{},r),an.set(r,i)}let p=u?n:i;for(let f of s)f.name==="data"||f.name==="component"||Uc(r,f,p);Sm(r),Jc.has(r)||Wc(r,i)}function Wc(e,t){var r;let n=[];for(let o=e.firstChild;o;o=o.nextSibling)o.nodeType===1?n.push(o):o.nodeType===3&&ed(o,t);for(let o of n)se(o,(r=an.get(o))!=null?r:t)}var Cm=500,_c=new Map;function Rm(e){let t=e.trim();if(!t)return!1;let n=_c.get(t);if(n!==void 0)return n;let r=!0;try{r=lt(t).t!=="seq"}catch(o){r=!1}return _c.set(t,r),r}function $m(e,t){let n=0,r=null;for(let o=t;o<e.length;o++){let i=e[o];if(r){i==="\\"?o++:i===r&&(r=null);continue}if(i==='"'||i==="'"||i==="`"){r=i;continue}if(i==="{")n++;else if(i==="}"&&(n--,n===0))return o}return-1}function Dm(e){let t=[],n="",r=0,o=()=>{n&&t.push({text:n}),n=""};for(;r<e.length;){let i=e.indexOf("{",r);if(i===-1){n+=e.slice(r);break}n+=e.slice(r,i);let s=e[i+1]==="{",a=s?e.indexOf("}}",i+2):$m(e,i);if(a===-1){n+=e[i],r=i+1;continue}let l=s?e.slice(i+2,a):e.slice(i+1,a),c=s?a+2:a+1;if((s||l.length<=Cm)&&Rm(l)){o(),t.push({expression:l.trim(),raw:e.slice(i,c),explicit:s}),r=c;continue}n+=e[i],r=i+1}return o(),t}var Hm=new Set(["PRE","CODE","SCRIPT","STYLE","TEXTAREA"]);function Pm(e,t,n){if(e.explicit||e.raw===void 0)return!1;let r;try{r=lt(e.expression)}catch(o){return!0}return r.t==="lit"?!0:t!==void 0?!1:r.t==="id"?n.lookup(r.n)===void 0&&!(r.n in Pe):!1}function ed(e,t){let n=e.textContent;if(!n||n.indexOf("{")===-1||Tt.has(e))return;let r=e.parentElement;for(;r;){if(Hm.has(r.tagName)||r.hasAttribute(`${w.prefix}ignore`)||r.hasAttribute(`${w.prefix}pre`)||r.hasAttribute("data-v-ignore")||r.hasAttribute("data-v-pre"))return;r=r.parentElement}let o=Dm(n);if(!o.some(s=>s.expression))return;Tt.add(e);let i=new et(!0);dt(e,()=>i.stop()),Kc(e,i),i.run(()=>_e(()=>{let s="";for(let a of o){if(a.text!==void 0){s+=a.text;continue}let l=q(a.expression,t,"interpolation");s+=Pm(a,l,t)?a.raw:Ht(l)}e.textContent!==s&&(e.textContent=s)},{scope:i}))}function Nt(e,t){an.set(e,t)}function Om(e){let t=e.toLowerCase();if($e.has(t))return t;let n=Pn.get(t);return n!=null?n:null}var Pn=new Map;var Vs=!1,Rn=null;function td(e){var n;if(typeof document=="undefined")return;let t=(n=e!=null?e:w.root)!=null?n:document.body;t&&(Object.assign(Pe,w.globals),se(t,ct),Vs||(Vs=!0,w.autoDiscover&&Nm(t),document.dispatchEvent(new CustomEvent("voodoo:ready",{detail:{root:t}}))))}function Nm(e){typeof MutationObserver!="undefined"&&(Rn=new MutationObserver(t=>{for(let n of t){for(let r=0;r<n.removedNodes.length;r++){let o=n.removedNodes[r];if(js.has(o)){js.delete(o);continue}o.nodeType===1&&!o.isConnected&&X(o)}for(let r=0;r<n.addedNodes.length;r++){let o=n.addedNodes[r];o.nodeType===1&&(Tt.has(o)||se(o,Ve(o.parentNode)))}}}),Rn.observe(e,{childList:!0,subtree:!0}))}function nd(){Rn==null||Rn.disconnect(),Rn=null,Vs=!1}function rd(e){se(e!=null?e:document.body,e?Ve(e.parentNode):ct)}be();le();var Mt=new Set,od=new Set;function Ft(e,t){let n=rn(e);$e.set(n,t),Pn.set(n.replace(/-/g,""),n),Fm(n)}function Fm(e){var r;if(typeof document=="undefined"||!document.body)return;let t=e.replace(/-/g,""),n=[e,t,`[${w.prefix}component="${e}"]`];for(let o of n){let i;try{i=Array.from(document.querySelectorAll(o))}catch(s){continue}for(let s of i){if((r=Lt(s))!=null&&r.component||Im(s))continue;let a=Ve(s.parentNode);Us(s)&&(X(s),Qc(s)),se(s,a)}}}function Im(e){let t=e.parentElement;for(;t&&t!==document.body;){if(Xs(t)&&!Us(t))return!0;t=t.parentElement}return!1}function zm(e,t){var n,r;if(!t||!t.type||t.type==="any")return e;if(e==null||e==="")return(n=t.default)!=null?n:e;switch(t.type){case"number":{let o=Number(e);return Number.isNaN(o)?(r=t.default)!=null?r:e:o}case"boolean":return e===""||e==="true"||e===!0||e==="1";case"string":return String(e);case"array":return Array.isArray(e)?e:[e];default:return e}}function Bm(e){let t={};if(Array.isArray(e.props))for(let n of e.props)t[n]={type:"any"};else e.props&&Object.assign(t,e.props);return t}function Gs(e){return e.replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function jm(e,t,n,r,o){var c;let i=Z({}),s=Object.keys(t),a=new Map;for(let d of s)a.set(d.toLowerCase(),d),a.set(rn(d),d),a.set(Gs(d).toLowerCase(),d);for(let d of s)t[d].default!==void 0&&(i[d]=t[d].default);let l=Array.from(e.attributes);for(let d of l){let u=$n(d.name,d.value);if(u&&u.name==="bind"&&u.arg){let f=(c=a.get(u.arg.toLowerCase()))!=null?c:Gs(u.arg);if(s.length&&!a.has(u.arg.toLowerCase()))continue;r.run(()=>_e(()=>{i[f]=q(u.expression,n,`:${u.arg}`)}));continue}if(u)continue;let p=a.get(d.name.toLowerCase());p?i[p]=zm(d.value,t[p]):s.length||(i[Gs(d.name)]=d.value)}for(let d of s)t[d].required&&i[d]===void 0&&jc(e,o,d);return i}function qm(e,t,n){let r=Array.from(e.querySelectorAll("slot"));if(!r.length)return;let o=new Map,i=[];Array.from(t.childNodes).forEach(s=>{var l,c;let a=s.nodeType===1&&(l=s.getAttribute("slot"))!=null?l:null;if(a){s.removeAttribute("slot");let d=(c=o.get(a))!=null?c:[];d.push(s),o.set(a,d)}else i.push(s)});for(let s of r){let a=s.getAttribute("name"),l=a?o.get(a):i,c=document.createDocumentFragment();if(l&&l.length)for(let d of l)c.appendChild(d);else for(;s.firstChild;)c.appendChild(s.firstChild);Array.from(c.childNodes).forEach(d=>{d.nodeType===1&&Vm(d,n)}),s.replaceWith(c)}}var qo=null;function id(e){qo=e}function Vm(e,t){qo==null||qo(e,t)}function sd(e,t,n){var k,A,D,C,oe,O,pe,ie;let r=t?rn(t):"",o=r?(D=(A=$e.get(r))!=null?A:$e.get((k=Pn.get(r))!=null?k:""))!=null?D:{}:{};r&&!$e.has(r)&&!Pn.has(r)&&Ic(e,t);let i=new et(!0),s=Bm(o),a=jm(e,s,n,i,r||"inline");!o.state&&o.data&&Rr("data()","state()"),o.destroyed&&Rr("destroyed()","unmounted()");let l=(C=o.state)!=null?C:o.data,c={},d={},u=o.inheritScope?n:n.root,p=new on({},u,e);p.component=d;try{c=l?(oe=l.call(d,a))!=null?oe:{}:{}}catch(R){K(R,`state() of component "${t}"`)}let f=e.getAttribute(`${w.prefix}data`);if(f){let R=q(f,n,"v-data");R&&typeof R=="object"&&Object.assign(c,R)}if(o.provide)try{let R=typeof o.provide=="function"?o.provide.call(d):o.provide;R&&typeof R=="object"&&(p.provides={...R})}catch(R){K(R,`provide() of component "${t}"`)}if(o.inject){let R=Array.isArray(o.inject)?o.inject.map(S=>[S,{from:S}]):Object.entries(o.inject).map(([S,B])=>[S,B!=null?B:{}]);for(let[S,B]of R){let je=(O=B.from)!=null?O:S,qe=n.inject(je,B.default);S in c||(c[S]=qe)}}let m=Z(c),h={};if(o.computed)for(let[R,S]of Object.entries(o.computed))h[R]=Sr(()=>S.call(d));let v={};if(o.methods)for(let[R,S]of Object.entries(o.methods))v[R]=(...B)=>S.apply(d,B);for(let[R,S]of Object.entries(o))typeof S=="function"&&(Um.has(R)||R==="state"||R==="data"||R in v||(v[R]=(...B)=>S.apply(d,B)));let g=(R,S)=>{let B=new CustomEvent(R,{detail:S,bubbles:!0,cancelable:!0});B.__voodoo=!0,e.dispatchEvent(B)},b={$el:e,$props:a,$name:r||"inline",$scope:p,$parent:(ie=(pe=n.owner)==null?void 0:pe.component)!=null?ie:null,emit:g,$emit:g,$nextTick:R=>Promise.resolve().then(()=>(be(),Tc)).then(S=>S.nextTick(R)),$watch:(R,S)=>Ne(()=>q(R,p),S)},x={get(R,S){if(typeof S!="symbol")return S==="$refs"?p.allRefs:S in b?b[S]:S in h?h[S].value:S in v?v[S]:S in a?a[S]:m[S]},set(R,S,B){return typeof S=="symbol"?!0:S in h?(h[S].value=B,!0):S in a?(a[S]=B,!0):(m[S]=B,!0)},has(R,S){if(typeof S=="symbol")return!1;let B=S;return B==="$refs"||B in b||B in h||B in v||B in a||B in m},ownKeys(){return[...new Set([...Object.keys(m),...Object.keys(a),...Object.keys(v),...Object.keys(h)])]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},T=new Proxy(d,x);if(p.data=T,Object.setPrototypeOf(d,T),o.watch)for(let[R,S]of Object.entries(o.watch))i.run(()=>Ne(()=>T[R],(B,je)=>S.call(T,B,je)));if(o.style&&!od.has(r)){od.add(r);let R=document.createElement("style");R.setAttribute("data-voodoo-component",r),R.textContent=o.style,document.head.appendChild(R)}if(On(o,T,"beforeMount"),o.template){let R=document.createDocumentFragment();for(;e.firstChild;)R.appendChild(e.firstChild);e.innerHTML=o.template,qm(e,R,n)}return Mt.add(T),Me(()=>{On(o,T,"mounted"),o.updated&&i.run(()=>_e(()=>{for(let R of Object.keys(m))m[R];On(o,T,"updated")}))}),dt(e,()=>{On(o,T,"beforeUnmount"),i.stop(),Mt.delete(T),On(o,T,"unmounted"),On(o,T,"destroyed")}),p}var Um=new Set(["beforeMount","mounted","updated","beforeUnmount","unmounted","destroyed"]);function On(e,t,n){let r=e[n];if(typeof r=="function")try{r.call(t)}catch(o){K(o,`hook ${n}`)}}be();le();var Nn=[],Qs=null,Vo=0,ad=-1,Zs=0,Js=!1;function ld(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function Wm(){if(Qs||typeof MutationObserver=="undefined"||typeof document=="undefined")return;let e=document.documentElement;e&&(Qs=new MutationObserver(()=>{Vo++}),Qs.observe(e,{childList:!0,subtree:!0}))}function cd(){if(Js)return;Js=!0;let e=()=>{Js=!1,_m()};if(typeof requestAnimationFrame=="function"){let t=!1,n=()=>{t||(t=!0,e())};requestAnimationFrame(n),setTimeout(n,32);return}setTimeout(e,0)}function _m(){var t;Vo===ad?Zs++:Zs=0,ad=Vo;let e=ld();for(let n=Nn.length-1;n>=0;n--){let r=Nn[n],o=null;try{o=r.ready()}catch(i){o=null}if(o){Nn.splice(n,1),r.action(o);continue}e-r.since>1e4&&(Nn.splice(n,1),(t=r.onGiveUp)==null||t.call(r))}Nn.length&&cd()}function ea(e){let t=null;try{t=e.ready()}catch(n){t=null}if(t){e.action(t);return}Wm(),Nn.push({...e,since:ld()}),cd()}function dd(){return typeof document=="undefined"||!document.body?!1:Zs>=2}function Km(){return typeof document=="undefined"||!document.body?!1:Vo===0}function Uo(e){typeof document!="undefined"&&ea({ready:()=>dd()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}function ud(e){if(typeof document!="undefined"){if(Km()){Promise.resolve().then(e);return}ea({ready:()=>dd()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}}function Wo(e,t,n){if(typeof e!="string"){t(e);return}typeof document!="undefined"&&ea({ready:()=>document.querySelector(e),action:r=>t(r),onGiveUp:n})}var Ym=0,_o=null;function fd(e){_o=e}function pd(e={}){let t=`voodoo-app-${++Ym}`,{components:n,...r}=e,o={globalProperties:{}},i={},s=[],a=null,l="",c=null,d=[];function u(){if(n)for(let[m,h]of Object.entries(n)){let v=rn(m);$e.has(v)||(Ft(v,h),s.push(v))}}function p(m){var v,g;if(c)return c;a=m,l=m.innerHTML,Object.assign(Pe,o.globalProperties),u();let h={...r};if(Object.keys(i).length){let b=h.provide;h.provide=()=>({...typeof b=="function"?b():b!=null?b:{},...i})}Ft(t,h),m.setAttribute(`${w.prefix}component`,t);try{se(m,ct)}catch(b){return K(b,`application mounting "${t}"`),null}if(c=(g=(v=Lt(m))==null?void 0:v.component)!=null?g:null,c){let b=d;d=[];for(let x of b)x(c)}return c}let f={name:t,config:o,get instance(){return c},get container(){return a},get isMounted(){return c!==null},component(m,h){var g;let v=rn(m);return h===void 0?(g=n&&n[m])!=null?g:$e.get(v):(n?n[m]=h:e.components={[m]:h},c&&!$e.has(v)&&(Ft(v,h),s.push(v)),f)},directive(m,h){return _o==null||_o(m,h),f},use(m,h){return Oo(Xm(),m,h),f},provide(m,h){return i[m]=h,f},mount(m){if(c)return c;if(typeof m!="string")return p(m);let h=null;return Wo(m,v=>{h=p(v)},()=>{console.warn(`[Voodoo] createApp().mount("${m}") did not find the element. The application remains unmounted.`)}),h},whenMounted(){return c?Promise.resolve(c):new Promise(m=>d.push(m))},unmount(){if(a){X(a),a.removeAttribute(`${w.prefix}component`),a.innerHTML=l,$e.delete(t);for(let m of s)$e.delete(m);s.length=0,c=null,a=null}}};return f}var md=null;function vd(e){md=e}function Xm(){return md}be();be();var It=new Map,ta=Mr(0),na=new Map;function hd(e,t,n={}){let r=It.get(e);if(!t){if(!r){let l=Z({});return It.set(e,l),l}return r}if(r)return Object.assign(r,t),r;let o=typeof n.persist=="string"?n.persist:`voodoo:store:${e}`,i=Object.getOwnPropertyDescriptors(t),s=Object.defineProperties({},i);if(n.persist&&typeof localStorage!="undefined")try{let l=localStorage.getItem(o);if(l){let c=JSON.parse(l);for(let[d,u]of Object.entries(c))i[d]&&!("value"in i[d])||(s[d]=u)}}catch(l){}let a=Z(s);for(let[l,c]of Object.entries(i)){let d=c.value;typeof d=="function"&&(a[l]=(...u)=>d.apply(a,u))}if(It.set(e,a),ta.value++,n.persist&&typeof localStorage!="undefined"){let l=Ne(a,()=>{try{localStorage.setItem(o,JSON.stringify(Gm(a)))}catch(c){}},{deep:!0});na.set(e,l)}return a}function Gm(e){let t={},n=Object.getOwnPropertyDescriptors(Le(e));for(let[r,o]of Object.entries(e))typeof o!="function"&&(n[r]&&!("value"in n[r])||(t[r]=o));return t}var Fn=new Proxy({},{get:(e,t)=>(ta.value,It.get(t)),has:(e,t)=>(ta.value,It.has(t)),ownKeys:()=>[...It.keys()],getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});function gd(e){var t;(t=na.get(e))==null||t(),na.delete(e),It.delete(e)}function Ko(){return[...It.keys()]}var aa={};So(aa,{capitalize:()=>bd,chunk:()=>rv,clone:()=>Dr,debounce:()=>Ue,device:()=>me,escapeHtml:()=>I,formatCurrency:()=>ra,formatDate:()=>ia,formatFileSize:()=>dv,formatNumber:()=>oa,formatPercent:()=>uv,get:()=>Pr,groupBy:()=>tv,isBrowser:()=>Yo,matchesMedia:()=>In,memoize:()=>ev,merge:()=>Xo,once:()=>Zm,parseDuration:()=>G,random:()=>sv,relativeTime:()=>sa,sample:()=>av,set:()=>iv,setFormatDefaults:()=>Qo,sleep:()=>Jm,slugify:()=>lv,sortBy:()=>ov,stripTags:()=>cv,throttle:()=>Hr,titleCase:()=>Or,truncate:()=>Go,uid:()=>ae,unique:()=>nv,uuid:()=>Qm});function Qm(){let e=globalThis.crypto;if(e!=null&&e.randomUUID)return e.randomUUID();if(e!=null&&e.getRandomValues){let t=e.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;let n=Array.from(t,r=>r.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let n=Math.random()*16|0;return(t==="x"?n:n&3|8).toString(16)})}function ae(e="v"){return`${e}${Math.random().toString(36).slice(2,9)}`}function Jm(e){return new Promise(t=>setTimeout(t,e))}function G(e,t=0){if(e==null||e==="")return t;if(typeof e=="number")return e;let n=/^\s*([\d.]+)\s*(ms|s|m|h)?\s*$/i.exec(String(e));if(!n)return t;let r=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"s":return r*1e3;case"m":return r*6e4;case"h":return r*36e5;default:return r}}function Ue(e,t=250,n=!1){let r=null,o=null,i,s=function(...a){o=a,i=this;let l=n&&r===null;r&&clearTimeout(r),r=setTimeout(()=>{r=null,!n&&o&&e.apply(i,o)},t),l&&e.apply(this,a)};return s.cancel=()=>{r&&clearTimeout(r),r=null,o=null},s.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(i,o))},s}function Hr(e,t=250){let n=0,r=null,o=null,i=function(...s){let a=Date.now();o=s;let l=t-(a-n);l<=0?(r&&(clearTimeout(r),r=null),n=a,e.apply(this,s)):r||(r=setTimeout(()=>{n=Date.now(),r=null,o&&e.apply(this,o)},l))};return i.cancel=()=>{r&&clearTimeout(r),r=null},i.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(null,o))},i}function Zm(e){let t=!1,n;return function(...r){return t||(t=!0,n=e.apply(this,r)),n}}function ev(e,t=(...n)=>JSON.stringify(n)){let n=new Map,r=function(...o){let i=t(...o);if(n.has(i))return n.get(i);let s=e.apply(this,o);return n.set(i,s),s};return r.cache=n,r}function Dr(e){if(e===null||typeof e!="object")return e;if(typeof structuredClone=="function")try{return structuredClone(e)}catch(n){}if(Array.isArray(e))return e.map(n=>Dr(n));if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map)return new Map([...e].map(([n,r])=>[n,Dr(r)]));if(e instanceof Set)return new Set([...e].map(n=>Dr(n)));let t={};for(let[n,r]of Object.entries(e))t[n]=Dr(r);return t}function Xo(e,...t){for(let n of t)if(n)for(let[r,o]of Object.entries(n)){let i=e[r];o&&typeof o=="object"&&!Array.isArray(o)&&i&&typeof i=="object"&&!Array.isArray(i)?e[r]=Xo({...i},o):e[r]=o}return e}function tv(e,t){let n={},r=typeof t=="function"?t:o=>o==null?void 0:o[t];for(let o of e){let i=String(r(o));(n[i]||(n[i]=[])).push(o)}return n}function nv(e,t){if(!t)return[...new Set(e)];let n=typeof t=="function"?t:i=>i==null?void 0:i[t],r=new Set,o=[];for(let i of e){let s=n(i);r.has(s)||(r.add(s),o.push(i))}return o}function rv(e,t=10){if(t<1)return[e];let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function ov(e,t,n="asc"){let r=typeof t=="function"?t:i=>i==null?void 0:i[t],o=n==="desc"?-1:1;return[...e].sort((i,s)=>{let a=r(i),l=r(s);return a==null&&l==null?0:a==null?1:l==null?-1:typeof a=="string"&&typeof l=="string"?a.localeCompare(l,void 0,{numeric:!0})*o:(a>l?1:a<l?-1:0)*o})}function Pr(e,t,n){let r=t.split("."),o=e;for(let i of r){if(o==null)return n;o=o[i]}return o!=null?o:n}function iv(e,t,n){let r=t.split("."),o=e;for(let i=0;i<r.length-1;i++){let s=r[i];(typeof o[s]!="object"||o[s]===null)&&(o[s]=/^\d+$/.test(r[i+1])?[]:{}),o=o[s]}o[r[r.length-1]]=n}function sv(e=0,t=1){return Math.floor(Math.random()*(t-e+1))+e}function av(e){return e[Math.floor(Math.random()*e.length)]}function lv(e,t="-"){return String(e).normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase().trim().replace(/[^a-z0-9]+/g,t).replace(new RegExp(`\\${t}{2,}`,"g"),t).replace(new RegExp(`^\\${t}|\\${t}$`,"g"),"")}function Go(e,t=100,n="..."){let r=String(e!=null?e:"");return r.length<=t?r:r.slice(0,Math.max(0,t-n.length)).trimEnd()+n}function bd(e){let t=String(e!=null?e:"");return t.charAt(0).toUpperCase()+t.slice(1)}function Or(e){return String(e!=null?e:"").replace(/\w\S*/g,t=>bd(t.toLowerCase()))}function I(e){return String(e!=null?e:"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function cv(e){return String(e!=null?e:"").replace(/<\/?[^>]+(>|$)/g,"")}var zn="pt-BR",yd="BRL";function Qo(e,t){e&&(zn=e),t&&(yd=t)}function ra(e,t={}){var r,o;let n=typeof e=="string"?parseFloat(e):e;return n==null||Number.isNaN(n)?"":new Intl.NumberFormat((r=t.locale)!=null?r:zn,{style:"currency",currency:(o=t.currency)!=null?o:yd}).format(n)}function oa(e,t={}){let n=typeof e=="string"?parseFloat(e):e;if(n==null||Number.isNaN(n))return"";let{locale:r,...o}=t;return new Intl.NumberFormat(r!=null?r:zn,o).format(n)}function ia(e,t="short",n){let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"";let o=n!=null?n:zn;if(typeof t=="object")return new Intl.DateTimeFormat(o,t).format(r);let i={short:{day:"2-digit",month:"2-digit",year:"numeric"},long:{day:"2-digit",month:"long",year:"numeric"},full:{dateStyle:"full"},time:{hour:"2-digit",minute:"2-digit"},datetime:{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}};if(i[t])return new Intl.DateTimeFormat(o,i[t]).format(r);let s=a=>String(a).padStart(2,"0");return t.replace(/YYYY/g,String(r.getFullYear())).replace(/YY/g,String(r.getFullYear()).slice(-2)).replace(/MM/g,s(r.getMonth()+1)).replace(/DD/g,s(r.getDate())).replace(/HH/g,s(r.getHours())).replace(/mm/g,s(r.getMinutes())).replace(/ss/g,s(r.getSeconds()))}function sa(e,t){let n=e instanceof Date?e:new Date(e);if(Number.isNaN(n.getTime()))return"";let r=n.getTime()-Date.now(),o=Math.abs(r),i=[["year",31536e6],["month",2592e6],["week",6048e5],["day",864e5],["hour",36e5],["minute",6e4],["second",1e3]],s=new Intl.RelativeTimeFormat(t!=null?t:zn,{numeric:"auto"});for(let[a,l]of i)if(o>=l||a==="second")return s.format(Math.round(r/l),a);return""}function dv(e,t=1){let n=Number(e);if(!n||Number.isNaN(n))return"0 B";let r=["B","KB","MB","GB","TB","PB"],o=Math.min(Math.floor(Math.log(Math.abs(n))/Math.log(1024)),r.length-1);return`${(n/1024**o).toFixed(o===0?0:t)} ${r[o]}`}function uv(e,t=0,n){return new Intl.NumberFormat(n!=null?n:zn,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)}var Yo=typeof window!="undefined"&&typeof window.document!="undefined";function In(e){if(!Yo||typeof window.matchMedia!="function")return!1;try{return window.matchMedia(e).matches}catch(t){return!1}}var me={get touch(){return Yo&&("ontouchstart"in window||navigator.maxTouchPoints>0)},get mobile(){return In("(max-width: 767px)")},get tablet(){return In("(min-width: 768px) and (max-width: 1023px)")},get desktop(){return In("(min-width: 1024px)")},get online(){return!Yo||navigator.onLine},get reducedMotion(){return In("(prefers-reduced-motion: reduce)")},get darkMode(){return In("(prefers-color-scheme: dark)")}};var Ee=class extends Error{constructor(n,r,o,i){super(n);H(this,"response",r);H(this,"config",o);H(this,"cause",i);this.name="HttpError"}get status(){var n,r;return(r=(n=this.response)==null?void 0:n.status)!=null?r:0}get isNetworkError(){return!this.response}},De={baseURL:"",headers:{Accept:"application/json, text/html, */*"},timeout:3e4,retry:0,retryDelay:500,credentials:"same-origin",csrfMeta:"csrf-token",csrfHeader:"X-CSRF-TOKEN"},Jo=[],Zo=[],Nr=[],Fr=new Map;function xd(e){var t;return`${(t=e.method)!=null?t:"GET"} ${jn(e)}`}function fv(e){if(!e){Fr.clear();return}let t=typeof e=="string"?n=>n.includes(e):n=>e.test(n);for(let n of[...Fr.keys()])t(n)&&Fr.delete(n)}var Ed="voodoo:offline-queue";function la(){try{return JSON.parse(localStorage.getItem(Ed)||"[]")}catch(e){return[]}}function ca(e){try{localStorage.setItem(Ed,JSON.stringify(e))}catch(t){}}function pv(e){var n,r;if(typeof localStorage=="undefined")return;let t=la();t.push({url:jn(e),method:(n=e.method)!=null?n:"POST",body:e.body,headers:(r=e.headers)!=null?r:{},at:Date.now()}),ca(t)}async function kd(){if(typeof localStorage=="undefined")return 0;let e=la();if(!e.length)return 0;ca([]);let t=0;for(let n=0;n<e.length;n++){let r=e[n];try{await zt({url:r.url,method:r.method,body:r.body,headers:r.headers,offlineQueue:!1}),t++}catch(o){let i=la();ca([...e.slice(n),...i]);break}}return t}typeof window!="undefined"&&window.addEventListener("online",()=>{kd()});function jn(e){let t=e.url,n=De.baseURL;if(n&&!/^https?:\/\//i.test(t)&&!t.startsWith("//")&&(t=`${n.replace(/\/$/,"")}/${t.replace(/^\//,"")}`),e.params){let r=new URLSearchParams;for(let[i,s]of Object.entries(e.params))s==null||s===""||r.append(i,String(s));let o=r.toString();o&&(t+=(t.includes("?")?"&":"?")+o)}return t}function Td(){var t;if(typeof document=="undefined")return null;let e=document.querySelector(`meta[name="${De.csrfMeta}"]`);return(t=e==null?void 0:e.getAttribute("content"))!=null?t:null}function mv(e,t){if(e!=null)return typeof FormData!="undefined"&&e instanceof FormData||typeof Blob!="undefined"&&e instanceof Blob||typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams||typeof ArrayBuffer!="undefined"&&e instanceof ArrayBuffer||typeof e=="string"?e:(t["Content-Type"]||(t["Content-Type"]="application/json"),JSON.stringify(e))}async function vv(e,t){if(e.status===204||e.status===205)return null;let n=e.headers.get("content-type")||"";switch(t){case"json":return e.json();case"text":return e.text();case"blob":return e.blob();case"arrayBuffer":return e.arrayBuffer();case"formData":return e.formData();default:if(n.includes("application/json")||n.includes("+json")){let r=await e.text();return r?JSON.parse(r):null}return e.text()}}var hv=new Set(["GET","HEAD","OPTIONS"]);function gv(e){for(let[t,n]of Object.entries(e))if(t.toLowerCase()==="idempotency-key"&&String(n).trim()!=="")return!0;return!1}function bv(e,t,n,r){var o;return hv.has(e)||t.retryUnsafe===!0||gv(n)?!0:(((o=t.retry)!=null?o:0)>0&&Cr(`http:retry-unsafe:${e} ${r}`,`retry ignored on ${e} ${r}: retrying a method that changes state may apply the same operation twice if the response is lost in transit. Allow with retryUnsafe: true or send an Idempotency-Key header.`),!1)}async function zt(e){var d,u,p,f,m;let t={method:"GET",timeout:De.timeout,retry:De.retry,retryDelay:De.retryDelay,credentials:De.credentials,responseType:"auto",...e,headers:{...De.headers,...e.headers}};for(let h of Jo)t=await h(t);let n=((d=t.method)!=null?d:"GET").toUpperCase();if(t.cache&&n==="GET"){let h=Fr.get(xd(t));if(h&&h.expires>Date.now())return h.value}if(t.offlineQueue&&typeof navigator!="undefined"&&navigator.onLine===!1&&n!=="GET")return pv(t),{data:null,status:0,statusText:"offline-queued",headers:new Headers,ok:!0,raw:new Response(null,{status:202}),config:t};let r={...t.headers};if(n!=="GET"&&n!=="HEAD"){let h=Td();h&&!r[De.csrfHeader]&&(r[De.csrfHeader]=h)}r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");let o=mv(t.body,r),i=jn(t),s=bv(n,t,r,i)?((u=t.retry)!=null?u:0)+1:1,a;for(let h=0;h<s;h++){let v=new AbortController,g=t.signal,b=null;g&&(g.aborted?v.abort(g.reason):(b=()=>v.abort(g.reason),g.addEventListener("abort",b,{once:!0})));let x=()=>{b&&g&&g.removeEventListener("abort",b),b=null},T=t.timeout&&t.timeout>0?setTimeout(()=>v.abort(new DOMException("timeout","TimeoutError")),t.timeout):null;try{let k=await fetch(i,{method:n,headers:r,body:n==="GET"||n==="HEAD"?void 0:o,credentials:t.credentials,signal:v.signal});T&&clearTimeout(T),x();let D={data:await vv(k,t.responseType),status:k.status,statusText:k.statusText,headers:k.headers,ok:k.ok,raw:k,config:t};if(!k.ok){if(k.status>=500&&h<s-1){await wd(((p=t.retryDelay)!=null?p:500)*2**h);continue}let C=new Ee(`Request failed with status ${k.status}`,D,t);for(let oe of Nr)oe(C);throw C}for(let C of Zo)D=await C(D);return t.cache&&n==="GET"&&Fr.set(xd(t),{expires:Date.now()+t.cache,value:D}),D}catch(k){if(T&&clearTimeout(T),x(),k instanceof Ee)throw k;if(a=k,(k==null?void 0:k.name)==="AbortError"&&((f=t.signal)==null?void 0:f.aborted))break;if(h<s-1){await wd(((m=t.retryDelay)!=null?m:500)*2**h);continue}}}let l=(a==null?void 0:a.name)==="TimeoutError"?`Timeout after ${t.timeout}ms`:`Network failure accessing ${i}`,c=new Ee(l,void 0,t,a);for(let h of Nr)h(c);throw c}function wd(e){return new Promise(t=>setTimeout(t,e))}async function Bn(e){return(await zt(e)).data}var ve={defaults:De,get(e,t={}){return Bn({...t,url:e,method:"GET"})},post(e,t,n={}){return Bn({...n,url:e,method:"POST",body:t})},put(e,t,n={}){return Bn({...n,url:e,method:"PUT",body:t})},patch(e,t,n={}){return Bn({...n,url:e,method:"PATCH",body:t})},delete(e,t={}){return Bn({...t,url:e,method:"DELETE"})},head(e,t={}){return Bn({...t,url:e,method:"HEAD"})},request:zt,upload(e,t,n={}){return new Promise((r,o)=>{var l,c;let i=new XMLHttpRequest,s=jn({url:e});i.open((l=n.method)!=null?l:"POST",s);for(let[d,u]of Object.entries({...De.headers,...n.headers}))d.toLowerCase()!=="content-type"&&i.setRequestHeader(d,u);let a=Td();a&&i.setRequestHeader(De.csrfHeader,a),i.upload.addEventListener("progress",d=>{var u;d.lengthComputable&&((u=n.onProgress)==null||u.call(n,Math.round(d.loaded/d.total*100),d.loaded,d.total))}),i.addEventListener("load",()=>{let d=i.getResponseHeader("content-type")||"",u=i.responseText;if(d.includes("json"))try{u=JSON.parse(i.responseText)}catch(p){}i.status>=200&&i.status<300?r(u):o(new Ee(`Upload failed with status ${i.status}`))}),i.addEventListener("error",()=>o(new Ee("Network failure during upload"))),i.addEventListener("abort",()=>o(new Ee("Upload canceled"))),(c=n.signal)==null||c.addEventListener("abort",()=>i.abort()),i.send(t)})},sse(e,t={}){let n=new EventSource(jn({url:e}));return n.addEventListener("message",r=>{var i;let o=r.data;try{o=JSON.parse(r.data)}catch(s){}(i=t.message)==null||i.call(t,o,r)}),t.error&&n.addEventListener("error",t.error),n},async stream(e,t,n={}){var a;let r=await fetch(jn({url:e,params:n.params}),{headers:{...De.headers,...n.headers},signal:n.signal});if(!r.body)return;let o=r.body.getReader(),i=new TextDecoder,s="";for(;;){let{done:l,value:c}=await o.read();if(l)break;s+=i.decode(c,{stream:!0});let d=s.split(`
|
|
62
|
+
`);s=(a=d.pop())!=null?a:"";for(let u of d)u.trim()&&t(u)}s.trim()&&t(s)},interceptors:{request:{use(e){return Jo.push(e),()=>{let t=Jo.indexOf(e);t>-1&&Jo.splice(t,1)}}},response:{use(e){return Zo.push(e),()=>{let t=Zo.indexOf(e);t>-1&&Zo.splice(t,1)}}},error:{use(e){return Nr.push(e),()=>{let t=Nr.indexOf(e);t>-1&&Nr.splice(t,1)}}}},setHeader(e,t){t===null?delete De.headers[e]:De.headers[e]=t},setToken(e,t="Bearer"){this.setHeader("Authorization",e?`${t} ${e}`:null)},setBaseURL(e){De.baseURL=e},clearCache:fv,flushOfflineQueue:kd,parseDuration:G};He();var yv=`
|
|
63
|
+
.v-toaster{position:fixed;z-index:var(--v-z-toast,1100);display:flex;flex-direction:column;gap:10px;padding:16px;pointer-events:none;max-width:min(420px,calc(100vw - 32px))}
|
|
64
|
+
.v-toaster[data-pos^="top"]{top:0}
|
|
65
|
+
.v-toaster[data-pos^="bottom"]{bottom:0;flex-direction:column-reverse}
|
|
66
|
+
.v-toaster[data-pos$="right"]{right:0;align-items:flex-end}
|
|
67
|
+
.v-toaster[data-pos$="left"]{left:0;align-items:flex-start}
|
|
68
|
+
.v-toaster[data-pos$="center"]{left:50%;transform:translateX(-50%);align-items:center}
|
|
69
|
+
|
|
70
|
+
.v-toast{pointer-events:auto;position:relative;display:flex;gap:12px;align-items:flex-start;
|
|
71
|
+
min-width:280px;max-width:100%;padding:14px 16px;border-radius:var(--v-radius,12px);
|
|
72
|
+
background:var(--v-surface,#fff);color:var(--v-text,#14111F);
|
|
73
|
+
border:1px solid var(--v-border,#E6E0F0);box-shadow:var(--v-shadow,0 10px 30px rgba(20,17,31,.14));
|
|
74
|
+
font:500 14px/1.45 var(--v-font-sans,system-ui,sans-serif);
|
|
75
|
+
opacity:0;transform:translateY(-8px) scale(.98);
|
|
76
|
+
transition:opacity .22s var(--v-ease,ease),transform .22s var(--v-ease,ease)}
|
|
77
|
+
.v-toaster[data-pos^="bottom"] .v-toast{transform:translateY(8px) scale(.98)}
|
|
78
|
+
.v-toast.v-in{opacity:1;transform:none}
|
|
79
|
+
.v-toast.v-out{opacity:0;transform:translateY(-8px) scale(.98)}
|
|
80
|
+
|
|
81
|
+
.v-toast-icon{flex:none;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;
|
|
82
|
+
font-size:12px;font-weight:700;color:#fff;margin-top:1px}
|
|
83
|
+
.v-toast-body{flex:1;min-width:0}
|
|
84
|
+
.v-toast-title{font-weight:650}
|
|
85
|
+
.v-toast-desc{margin-top:2px;font-weight:450;color:var(--v-text-muted,#6B6580);font-size:13px;overflow-wrap:anywhere}
|
|
86
|
+
.v-toast-action{flex:none;background:transparent;border:1px solid var(--v-border,#E6E0F0);
|
|
87
|
+
border-radius:8px;padding:5px 10px;font:600 12px/1 inherit;color:var(--v-primary,#6D3BF5);cursor:pointer}
|
|
88
|
+
.v-toast-action:hover{background:var(--v-surface-2,#FBF7F2)}
|
|
89
|
+
.v-toast-close{flex:none;background:none;border:0;cursor:pointer;color:var(--v-text-muted,#6B6580);
|
|
90
|
+
font-size:18px;line-height:1;padding:0 2px;opacity:.7}
|
|
91
|
+
.v-toast-close:hover{opacity:1}
|
|
92
|
+
|
|
93
|
+
.v-toast-bar{position:absolute;left:0;bottom:0;height:2px;width:100%;transform-origin:left;
|
|
94
|
+
border-radius:0 0 var(--v-radius,12px) var(--v-radius,12px);opacity:.55}
|
|
95
|
+
.v-toast:hover .v-toast-bar{animation-play-state:paused}
|
|
96
|
+
@keyframes v-toast-bar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
|
|
97
|
+
|
|
98
|
+
.v-toast[data-type="success"] .v-toast-icon,.v-toast[data-type="success"] .v-toast-bar{background:var(--v-success,#2ED9A5)}
|
|
99
|
+
.v-toast[data-type="error"] .v-toast-icon,.v-toast[data-type="error"] .v-toast-bar{background:var(--v-danger,#FF4D4D)}
|
|
100
|
+
.v-toast[data-type="warning"] .v-toast-icon,.v-toast[data-type="warning"] .v-toast-bar{background:var(--v-warning,#FFB35C)}
|
|
101
|
+
.v-toast[data-type="info"] .v-toast-icon,.v-toast[data-type="info"] .v-toast-bar{background:var(--v-info,#9B7BFF)}
|
|
102
|
+
.v-toast[data-type="default"] .v-toast-icon,.v-toast[data-type="default"] .v-toast-bar{background:var(--v-primary,#6D3BF5)}
|
|
103
|
+
.v-toast[data-type="loading"] .v-toast-icon{background:transparent;border:2px solid var(--v-border,#E6E0F0);
|
|
104
|
+
border-top-color:var(--v-primary,#6D3BF5);animation:v-spin .7s linear infinite}
|
|
105
|
+
@keyframes v-spin{to{transform:rotate(360deg)}}
|
|
106
|
+
@media (prefers-reduced-motion: reduce){.v-toast{transition:none}}
|
|
107
|
+
`,xv={success:"ok",error:"!",warning:"!",info:"i",loading:"",default:""},Ir=new Map,Bt={duration:4e3,position:"top-right",max:6};function wv(e){he(),ne("toast",yv);let t=Ir.get(e);return t&&t.isConnected||(t=document.createElement("div"),t.className="v-toaster",t.setAttribute("data-pos",e),t.setAttribute("role","region"),t.setAttribute("aria-label","Notifications"),document.body.appendChild(t),Ir.set(e,t)),t}function ln(e){var p,f,m,h;let t=(p=e.position)!=null?p:Bt.position,n=(f=e.type)!=null?f:"default",r=(m=e.duration)!=null?m:n==="loading"?0:Bt.duration,o=wv(t),i=ae("toast-"),s=document.createElement("div");s.className="v-toast",s.id=i,s.setAttribute("data-type",n),s.setAttribute("role",n==="error"?"alert":"status"),s.setAttribute("aria-live",n==="error"?"assertive":"polite");let a=!1,l=null,c=()=>{a||(a=!0,l&&clearTimeout(l),s.classList.add("v-out"),s.classList.remove("v-in"),setTimeout(()=>{var v;s.remove(),(v=e.onClose)==null||v.call(e),o.children.length||(o.remove(),Ir.delete(t))},220))},d=v=>{var x,T,k,A;let g=(x=v.type)!=null?x:n;if(s.setAttribute("data-type",g),v.html)s.innerHTML=v.html;else{s.textContent="";let D=document.createElement("span");D.className="v-toast-icon",D.setAttribute("aria-hidden","true"),D.textContent=(T=xv[g])!=null?T:"",s.appendChild(D);let C=document.createElement("div");C.className="v-toast-body";let oe=document.createElement("div");if(oe.className="v-toast-title",oe.textContent=(k=v.title)!=null?k:"",C.appendChild(oe),v.description){let O=document.createElement("div");O.className="v-toast-desc",O.textContent=v.description,C.appendChild(O)}if(s.appendChild(C),v.action){let O=document.createElement("button");O.type="button",O.className="v-toast-action",O.textContent=v.action.label,O.addEventListener("click",()=>{var pe;(pe=v.action)==null||pe.onClick(),c()}),s.appendChild(O)}if(v.closable!==!1&&g!=="loading"){let O=document.createElement("button");O.type="button",O.className="v-toast-close",O.setAttribute("aria-label","Close notification"),O.innerHTML="×",O.addEventListener("click",c),s.appendChild(O)}}let b=(A=v.duration)!=null?A:r;if(b>0){let D=document.createElement("div");D.className="v-toast-bar",D.style.animation=`v-toast-bar ${b}ms linear forwards`,s.appendChild(D)}};for(d(e),o.appendChild(s),requestAnimationFrame(()=>s.classList.add("v-in"));o.children.length>Bt.max;)(h=o.firstElementChild)==null||h.remove();let u=v=>{l&&clearTimeout(l),v>0&&(l=setTimeout(c,v))};return u(r),s.addEventListener("mouseenter",()=>{l&&clearTimeout(l)}),s.addEventListener("mouseleave",()=>u(r)),{id:i,close:c,update(v){var g;d({...e,...v}),v.duration!==void 0?u(v.duration):((g=v.type)!=null?g:n)!=="loading"&&u(Bt.duration)}}}function qn(e,t){return typeof e=="string"?{title:e,type:t}:{type:t,...e}}var tt=Object.assign((e,t={})=>ln({...qn(e,"default"),...t}),{success:(e,t={})=>ln({...qn(e,"success"),...t}),error:(e,t={})=>ln({...qn(e,"error"),...t}),warning:(e,t={})=>ln({...qn(e,"warning"),...t}),info:(e,t={})=>ln({...qn(e,"info"),...t}),loading:(e,t={})=>ln({...qn(e,"loading"),duration:0,...t}),async promise(e,t={}){var r,o,i;let n=ln({title:(r=t.loading)!=null?r:"Loading...",type:"loading",duration:0});try{let s=await e;return n.update({title:typeof t.success=="function"?t.success(s):(o=t.success)!=null?o:"Done",type:"success",duration:Bt.duration}),s}catch(s){throw n.update({title:typeof t.error=="function"?t.error(s):(i=t.error)!=null?i:"Something went wrong",type:"error",duration:Bt.duration}),s}},clear(){for(let[e,t]of Ir)t.remove(),Ir.delete(e)},configure(e){Object.assign(Bt,e)},settings:Bt});function Ad(e,t=""){let n=r=>t+r;return{get(r,o){var i;try{let s=(i=e())==null?void 0:i.getItem(n(r));if(s==null)return o;try{return JSON.parse(s)}catch(a){return s}}catch(s){return o}},set(r,o){var i;try{return(i=e())==null||i.setItem(n(r),typeof o=="string"?o:JSON.stringify(o)),!0}catch(s){return!1}},remove(r){var o;try{(o=e())==null||o.removeItem(n(r))}catch(i){}},clear(){try{let r=e();if(!r)return;if(!t){r.clear();return}for(let o of Object.keys(r))o.startsWith(t)&&r.removeItem(o)}catch(r){}},has(r){var o;try{return((o=e())==null?void 0:o.getItem(n(r)))!==null}catch(i){return!1}},keys(){try{let r=e();return r?Object.keys(r).filter(o=>o.startsWith(t)).map(o=>o.slice(t.length)):[]}catch(r){return[]}}}}var ue=Ad(()=>typeof localStorage!="undefined"?localStorage:void 0),ei=Ad(()=>typeof sessionStorage!="undefined"?sessionStorage:void 0),ti={get(e){if(typeof document=="undefined")return;let t=`${encodeURIComponent(e)}=`;for(let n of document.cookie.split("; "))if(n.startsWith(t))return decodeURIComponent(n.slice(t.length))},set(e,t,n={}){var o,i;if(typeof document=="undefined")return;let r=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;if(n.expires!==void 0){let s=typeof n.expires=="number"?new Date(Date.now()+n.expires*864e5):n.expires;r+=`; expires=${s.toUTCString()}`}r+=`; path=${(o=n.path)!=null?o:"/"}`,n.domain&&(r+=`; domain=${n.domain}`),n.secure&&(r+="; secure"),r+=`; samesite=${(i=n.sameSite)!=null?i:"Lax"}`,document.cookie=r},remove(e,t={}){this.set(e,"",{...t,expires:-1})},has(e){return this.get(e)!==void 0}},jt={get(e,t){var n;return typeof location=="undefined"?t:(n=new URLSearchParams(location.search).get(e))!=null?n:t},all(){return typeof location=="undefined"?{}:Object.fromEntries(new URLSearchParams(location.search))},set(e,t,n=!0){if(typeof location=="undefined")return;let r=new URL(location.href);t===null||t===""?r.searchParams.delete(e):r.searchParams.set(e,String(t)),history[n?"replaceState":"pushState"]({},"",r.toString())},remove(e,t=!0){this.set(e,null,t)},merge(e,t=!0){if(typeof location=="undefined")return;let n=new URL(location.href);for(let[r,o]of Object.entries(e))o===null||o===""?n.searchParams.delete(r):n.searchParams.set(r,String(o));history[t?"replaceState":"pushState"]({},"",n.toString())}},Vn=new Map,ni={set(e,t,n=0){return Vn.set(e,{value:t,expires:n>0?Date.now()+n:1/0}),t},get(e,t){let n=Vn.get(e);return n?n.expires<Date.now()?(Vn.delete(e),t):n.value:t},has(e){return this.get(e)!==void 0},remove(e){Vn.delete(e)},clear(){Vn.clear()},async remember(e,t,n){let r=this.get(e);if(r!==void 0)return r;let o=await n();return this.set(e,o,t),o},get size(){return Vn.size}},da="voodoo:theme",ut={get current(){var e;return(e=ue.get(da))!=null?e:"system"},get resolved(){let e=this.current;return e!=="system"?e:typeof matchMedia=="undefined"?"light":matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},set(e){ue.set(da,e),this.apply()},toggle(){let e=this.resolved==="dark"?"light":"dark";return this.set(e),e},get chosen(){return ue.get(da)!=null},apply(){if(typeof document=="undefined"||!this.chosen)return;let e=this.current,t=document.documentElement;e==="system"?t.removeAttribute("data-theme"):t.setAttribute("data-theme",e),t.style.colorScheme=this.resolved,document.dispatchEvent(new CustomEvent("voodoo:theme",{detail:{theme:e,resolved:this.resolved}}))},init(){typeof document!="undefined"&&(this.apply(),matchMedia==null||matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{this.current==="system"&&this.apply()}))}};var Ke=Z({width:0,height:0,mobile:!1,tablet:!1,desktop:!1,portrait:!1,landscape:!1,matches(e){return typeof matchMedia!="undefined"&&matchMedia(e).matches}});function ua(){typeof window!="undefined"&&(Ke.width=window.innerWidth,Ke.height=window.innerHeight,Ke.mobile=window.innerWidth<768,Ke.tablet=window.innerWidth>=768&&window.innerWidth<1024,Ke.desktop=window.innerWidth>=1024,Ke.portrait=window.innerHeight>=window.innerWidth,Ke.landscape=!Ke.portrait)}var qt=Z({online:!0,type:"unknown",saveData:!1,slow:!1});function ri(){var t;if(typeof navigator=="undefined")return;qt.online=navigator.onLine;let e=navigator.connection;e&&(qt.type=(t=e.effectiveType)!=null?t:"unknown",qt.saveData=!!e.saveData,qt.slow=e.effectiveType==="slow-2g"||e.effectiveType==="2g")}var oi={async copy(e){var t;try{if((t=navigator.clipboard)!=null&&t.writeText)return await navigator.clipboard.writeText(e),!0}catch(n){}try{let n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.cssText="position:fixed;top:-1000px;opacity:0",document.body.appendChild(n),n.select();let r=document.execCommand("copy");return n.remove(),r}catch(n){return!1}},async read(){try{return await navigator.clipboard.readText()}catch(e){return""}}},Cd=!1;function Rd(){var t,n;if(Cd||(Cd=!0,P("$el",r=>r.el),P("$refs",r=>r.allRefs),P("$data",r=>r.data),P("$root",r=>r.root.data),P("$parent",r=>{var o,i;return(i=(o=r.parent)==null?void 0:o.data)!=null?i:null}),P("$self",r=>{var o,i;return(i=(o=r.owner)==null?void 0:o.component)!=null?i:r.data}),P("$store",()=>Fn),P("$http",()=>ve),P("$toast",()=>tt),P("$clipboard",()=>oi),P("$storage",()=>ue),P("$session",()=>ei),P("$cookie",()=>ti),P("$cache",()=>ni),P("$url",()=>jt),P("$theme",()=>ut),P("$device",()=>me),P("$screen",()=>Ke),P("$network",()=>qt),P("$nextTick",()=>at),P("$watch",r=>(o,i)=>Ne(()=>q(o,r,"$watch"),i)),P("$dispatch",r=>(o,i)=>{var a;((a=r.el)!=null?a:document).dispatchEvent(new CustomEvent(o,{detail:i,bubbles:!0}))}),P("$log",()=>(...r)=>{console.log("[Voodoo]",...r)}),typeof window=="undefined"))return;ua(),ri();let e=0;window.addEventListener("resize",()=>{cancelAnimationFrame(e),e=requestAnimationFrame(ua)}),window.addEventListener("orientationchange",ua),window.addEventListener("online",ri),window.addEventListener("offline",ri),(n=(t=navigator.connection)==null?void 0:t.addEventListener)==null||n.call(t,"change",ri)}be();function fa(e,t){if(!t)return e;let n=e;for(let r of t.split(".")){if(n==null)return;n=n[r]}return n}function pa(e){var n;let t=(n=e.response)==null?void 0:n.data;if(!t||typeof t!="object")return null;for(let r of["message","error","detail","msg"]){let o=t[r];if(typeof o=="string")return o}return null}function ii(e,t={}){let n=()=>typeof e=="function"?e():e,r=()=>typeof t.params=="function"?t.params():t.params,o=null,i=null,s=Z({data:null,loading:!1,error:null,loaded:!1,async reload(){var c,d,u,p,f;let a=n();if(!a)return;o==null||o.abort();let l=o=new AbortController;s.loading=!0,s.error=null;try{let m=await ve.request({url:a,method:(t.method||"GET").toUpperCase(),params:r(),headers:t.headers,cache:t.cache||void 0,retry:(c=t.retry)!=null?c:0,timeout:(d=t.timeout)!=null?d:ve.defaults.timeout,signal:l.signal});if(l.signal.aborted)return;s.data=fa(m.data,t.jsonPath),s.loaded=!0,(u=t.onSuccess)==null||u.call(t,s.data)}catch(m){if(l.signal.aborted)return;let h=m instanceof Ee&&(p=pa(m))!=null?p:m.message;s.error={name:"ResourceError",message:h},(f=t.onError)==null||f.call(t,m,h)}finally{l.signal.aborted||(s.loading=!1),o===l&&(o=null)}},set(a){s.data=a},stop(){o==null||o.abort(),o=null,s.loading=!1,i!==null&&(clearInterval(i),i=null)}});return t.poll&&t.poll>0&&(i=setInterval(()=>{(typeof document=="undefined"||document.visibilityState==="visible")&&s.reload()},t.poll)),t.manual||s.reload(),s}He();He();var $d=`
|
|
108
|
+
.v-fade-enter-active,.v-fade-leave-active{transition:opacity .22s var(--v-ease,ease)}
|
|
109
|
+
.v-fade-enter-from,.v-fade-leave-to{opacity:0}
|
|
110
|
+
|
|
111
|
+
.v-scale-enter-active,.v-scale-leave-active{transition:opacity .22s var(--v-ease,ease),transform .22s var(--v-ease,ease)}
|
|
112
|
+
.v-scale-enter-from,.v-scale-leave-to{opacity:0;transform:scale(.94)}
|
|
113
|
+
|
|
114
|
+
.v-slide-enter-active,.v-slide-leave-active{transition:opacity .24s var(--v-ease,ease),transform .24s var(--v-ease,ease)}
|
|
115
|
+
.v-slide-enter-from,.v-slide-leave-to{opacity:0;transform:translateY(-10px)}
|
|
116
|
+
|
|
117
|
+
.v-slide-up-enter-active,.v-slide-up-leave-active{transition:opacity .24s var(--v-ease,ease),transform .24s var(--v-ease,ease)}
|
|
118
|
+
.v-slide-up-enter-from,.v-slide-up-leave-to{opacity:0;transform:translateY(14px)}
|
|
119
|
+
|
|
120
|
+
.v-slide-right-enter-active,.v-slide-right-leave-active{transition:opacity .24s var(--v-ease,ease),transform .24s var(--v-ease,ease)}
|
|
121
|
+
.v-slide-right-enter-from,.v-slide-right-leave-to{opacity:0;transform:translateX(24px)}
|
|
122
|
+
|
|
123
|
+
.v-blur-enter-active,.v-blur-leave-active{transition:opacity .3s ease,filter .3s ease}
|
|
124
|
+
.v-blur-enter-from,.v-blur-leave-to{opacity:0;filter:blur(8px)}
|
|
125
|
+
|
|
126
|
+
@media (prefers-reduced-motion: reduce){
|
|
127
|
+
[class*="-enter-active"],[class*="-leave-active"]{transition-duration:.01ms !important}
|
|
128
|
+
}
|
|
129
|
+
`;function Dd(e){let t=e.name||"v-fade";return{enterFrom:e.enterFrom||`${t}-enter-from`,enterActive:e.enterActive||`${t}-enter-active`,enterTo:e.enterTo||`${t}-enter-to`,leaveFrom:e.leaveFrom||`${t}-leave-from`,leaveActive:e.leaveActive||`${t}-leave-active`,leaveTo:e.leaveTo||`${t}-leave-to`}}function Un(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.add(n)}function Wn(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.remove(n)}function Hd(e){let t=getComputedStyle(e),n=r=>Math.max(0,...r.split(",").map(o=>parseFloat(o)*(o.includes("ms")?1:1e3)||0));return Math.max(n(t.transitionDuration)+n(t.transitionDelay),n(t.animationDuration)+n(t.animationDelay))}function Pd(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function zr(e,t={}){ne("transitions",$d);let n=Dd(t);return me.reducedMotion?Promise.resolve():new Promise(r=>{Un(e,n.enterFrom),Un(e,n.enterActive),Pd(()=>{var s;Wn(e,n.enterFrom),Un(e,n.enterTo);let o=(s=t.duration)!=null?s:Hd(e),i=()=>{Wn(e,n.enterActive),Wn(e,n.enterTo),r()};o<=0?i():setTimeout(i,o+20)})})}function Br(e,t={}){ne("transitions",$d);let n=Dd(t);return me.reducedMotion?Promise.resolve():new Promise(r=>{Un(e,n.leaveFrom),Un(e,n.leaveActive),Pd(()=>{var s;Wn(e,n.leaveFrom),Un(e,n.leaveTo);let o=(s=t.duration)!=null?s:Hd(e),i=()=>{Wn(e,n.leaveActive),Wn(e,n.leaveTo),r()};o<=0?i():setTimeout(i,o+20)})})}function cn(e,t=240){return new Promise(n=>{e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block");let r=e.scrollHeight;e.style.overflow="hidden",e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.transition=`height ${t}ms var(--v-ease, ease), padding ${t}ms var(--v-ease, ease)`,requestAnimationFrame(()=>{e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.height=`${r}px`}),setTimeout(()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition"),n()},t+20)})}function dn(e,t=240){return new Promise(n=>{e.style.height=`${e.scrollHeight}px`,e.style.overflow="hidden",e.style.transition=`height ${t}ms var(--v-ease, ease), padding ${t}ms var(--v-ease, ease)`,requestAnimationFrame(()=>{e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px"}),setTimeout(()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition"),n()},t+20)})}function _n(e,t=220){return new Promise(n=>{e.style.opacity="0",e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display=""),e.style.transition=`opacity ${t}ms ease`,requestAnimationFrame(()=>{e.style.opacity="1"}),setTimeout(()=>{e.style.removeProperty("transition"),e.style.removeProperty("opacity"),n()},t+20)})}function Kn(e,t=220){return new Promise(n=>{e.style.transition=`opacity ${t}ms ease`,e.style.opacity="0",setTimeout(()=>{e.style.display="none",e.style.removeProperty("transition"),e.style.removeProperty("opacity"),n()},t+20)})}function si(e){let t=document;typeof t.startViewTransition=="function"&&!me.reducedMotion?t.startViewTransition(e):e()}be();le();function Ev(e,t,n){try{let o={t:"assign",op:"=",target:lt(e),value:{t:"lit",v:n}};F(o,t)}catch(r){K(r,`assignment in "${e}"`)}}function zd(e){let t=w.prefix,n=e.hasAttribute(`${t}transition`),r=e.hasAttribute(`${t}enter-class`)||e.hasAttribute(`${t}leave-class`)||e.hasAttribute(`${t}enter-active-class`)||e.hasAttribute(`${t}leave-active-class`);if(!n&&!r)return null;let o=e.getAttribute(`${t}transition`)||"fade";return{name:o.startsWith("v-")?o:`v-${o}`,enterFrom:e.getAttribute(`${t}enter-class`)||void 0,enterActive:e.getAttribute(`${t}enter-active-class`)||void 0,enterTo:e.getAttribute(`${t}enter-to-class`)||void 0,leaveFrom:e.getAttribute(`${t}leave-class`)||void 0,leaveActive:e.getAttribute(`${t}leave-active-class`)||void 0,leaveTo:e.getAttribute(`${t}leave-to-class`)||void 0,duration:e.hasAttribute(`${t}duration`)?G(e.getAttribute(`${t}duration`)):void 0}}y("text",({el:e,effect:t,evaluate:n})=>{t(()=>{e.textContent=Ht(n());let r=e.firstChild;r&&r.nodeType===3&&Ws(r)})});y("html",e=>{let{el:t,effect:n,evaluate:r,scope:o}=e;jo(t),n(()=>{let i=r();for(let s of Array.from(t.children))X(s);t.innerHTML=i==null?"":String(i);for(let s of Array.from(t.children))se(s,o)})});y("show",({el:e,effect:t,evaluate:n})=>{let r=e.style.display==="none"?"":e.style.display,o=!0,i=zd(e);t(()=>{let s=!!n();if(o){o=!1,e.style.display=s?r:"none";return}if(!i){e.style.display=s?r:"none";return}s?(e.style.display=r,zr(e,i)):Br(e,i).then(()=>{e.style.display="none"})})});y("if",({el:e,scope:t,expression:n,effect:r})=>{var p;let o=w.prefix,i=[{expression:n,template:e}],s=e.nextElementSibling;for(;s;)if(s.hasAttribute(`${o}else-if`))i.push({expression:s.getAttribute(`${o}else-if`)||"false",template:s}),s=s.nextElementSibling;else if(s.hasAttribute(`${o}else`)){i.push({expression:null,template:s}),s=s.nextElementSibling;break}else break;let a=document.createComment(w.devtools?` v-if: ${n} `:"");(p=e.parentNode)==null||p.insertBefore(a,e);for(let f of i)_s(f.template),f.template.removeAttribute(`${o}if`),f.template.removeAttribute(`${o}else-if`),f.template.removeAttribute(`${o}else`),Ws(f.template);let l=zd(e),c=-1,d=[],u=()=>{let f=d;if(d=[],!f.length)return;let m=()=>{for(let h of f)X(h),h.remove()};l&&f[0]instanceof HTMLElement?Br(f[0],l).then(m):m()};r(()=>{let f=-1;for(let v=0;v<i.length;v++){let g=i[v];if(g.expression===null||q(g.expression,t,"v-if")){f=v;break}}if(f===c||(c=f,u(),f===-1))return;let m=i[f].template,h=Bd(m,a,t);d=h,l&&h[0]instanceof HTMLElement&&zr(h[0],l)}),dt(e,u)},{priority:j.IF,terminal:!0});function Bd(e,t,n,r){let o=t.parentNode;if(!o)return[];let i=[];if(e.tagName==="TEMPLATE"){let s=e.content.cloneNode(!0),a=Array.from(s.childNodes);o.insertBefore(s,t);for(let l of a)i.push(l),l.nodeType===1&&(Nt(l,n),se(l,n))}else{let s=e.cloneNode(!0);i.push(s),Nt(s,n),r?(r.fragment.appendChild(s),r.pending.push([s,n])):(o.insertBefore(s,t),se(s,n))}return i}y("else-if",()=>{},{priority:j.IF,terminal:!0});y("else",()=>{},{priority:j.IF,terminal:!0});var kv=/^\s*\(?\s*([^)]*?)\s*\)?\s+(?:in|of)\s+(.+?)\s*$/;y("for",({el:e,scope:t,expression:n,effect:r})=>{var v;let o=kv.exec(n);if(!o){K(new Error(`Invalid syntax in v-for="${n}". Use "item in items".`),"v-for");return}let i=o[1].split(",").map(g=>g.trim()).filter(Boolean),s=o[2],[a,l,c]=i,d=w.prefix,u=e.getAttribute(":key")||e.getAttribute(`${d}bind:key`)||e.getAttribute(`${d}key`),p=document.createComment(w.devtools?` v-for: ${n} `:"");(v=e.parentNode)==null||v.insertBefore(p,e);let f=e.cloneNode(!0);f.removeAttribute(`${d}for`),f.removeAttribute(":key"),f.removeAttribute(`${d}bind:key`),f.removeAttribute(`${d}key`),_s(e);let m=[];dt(p,()=>{for(let g of m)for(let b of g.nodes)X(b),b.remove();m=[]}),r(()=>{var oe,O,pe;let g=q(s,t,"v-for"),b=Tv(g,a,l,c),x=new Map;for(let ie of m)x.set(ie.key,ie);let T=[],k=new Set,A={fragment:document.createDocumentFragment(),pending:[]};b.forEach((ie,R)=>{let S=u?q(u,t.child(ie),":key"):`__index_${R}`;u&&k.has(S)&&Bc(e,S,n);let B=x.get(S);if(B&&!k.has(S)){k.add(S);for(let[Jt,Ln]of Object.entries(ie))B.data[Jt]=Ln;T.push(B);return}let je=t.reactiveChild(ie),qe=Bd(f,p,je,A);k.add(S),T.push({key:S,scope:je,nodes:qe,data:je.data})}),A.fragment.firstChild&&((oe=p.parentNode)==null||oe.insertBefore(A.fragment,p));for(let[ie,R]of A.pending)se(ie,R);let D=new Set(T);for(let ie of m)if(!(k.has(ie.key)&&D.has(ie)))for(let R of ie.nodes)X(R),R.remove();let C=p;for(let ie=T.length-1;ie>=0;ie--){let R=T[ie],S=R.nodes[R.nodes.length-1];if(S&&S.nextSibling!==C)for(let B of R.nodes)(O=p.parentNode)==null||O.insertBefore(B,C);C=(pe=R.nodes[0])!=null?pe:C}m=T})},{priority:j.FOR,terminal:!0});function Tv(e,t,n,r){let o=[];if(Array.isArray(e))return e.forEach((i,s)=>{let a={[t]:i};n&&(a[n]=s),o.push(a)}),o;if(typeof e=="number"){for(let i=1;i<=e;i++){let s={[t]:i};n&&(s[n]=i-1),o.push(s)}return o}return typeof e=="string"?(Array.from(e).forEach((i,s)=>{let a={[t]:i};n&&(a[n]=s),o.push(a)}),o):(e&&typeof e=="object"&&(e instanceof Map?Array.from(e.entries()):e instanceof Set?Array.from(e).map((s,a)=>[a,s]):Object.entries(e)).forEach(([s,a],l)=>{let c={[t]:a};n&&(c[n]=s),r&&(c[r]=l),o.push(c)}),o)}var Lv=new Set(["disabled","checked","readonly","required","selected","hidden","open","multiple","autofocus","novalidate","inert"]),Mv=new Set(["href","src","action","formaction","xlink:href","ping","poster"]),Sv=/[\s\x00-\x1f]/g;function Av(e){let t=e.replace(Sv,"").toLowerCase();return t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text/html")||t.startsWith("data:application/xhtml")}function Od(e,t,n,r=!1,o=!1){if(t==="class")return jd(e,n);if(t==="style")return ma(e,n);if(w.sanitizeUrls&&!o&&t==="srcdoc"){sn(`:srcdoc refused in ${kt(e)}: the value becomes a document with active script inside the iframe, the same way v-html becomes markup. If the content is trusted, write :srcdoc.dangerous="..."; to turn off this protection on the entire application, set V.config.sanitizeUrls = false.`),e.removeAttribute(t);return}if(w.sanitizeUrls&&!r){if(Mv.has(t)&&typeof n=="string"&&Av(n)){sn(`value refused in :${t} of ${kt(e)}: "${n.slice(0,60)}" uses a scheme that executes code. Use an http(s) or relative address. To turn off this protection, set V.config.sanitizeUrls = false.`),e.removeAttribute(t);return}if(t.length>2&&/^on[a-z]/.test(t)){sn(`attribute "${t}" refused in ${kt(e)}: linking event by attribute creates an inline handler. Use @${t.slice(2)}="..." instead.`),e.removeAttribute(t);return}}if(r){e[t]=n;return}if(Lv.has(t)){n===!1||n==null?e.removeAttribute(t):e.setAttribute(t,""),t in e&&(e[t]=!!n);return}if(t==="value"&&"value"in e){e.value=n==null?"":n;return}n==null||n===!1?e.removeAttribute(t):e.setAttribute(t,n===!0?"":String(n))}var Nd=new WeakMap;function jd(e,t){let n=Nd.get(e);n||(n=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean),Nd.set(e,n));let r=new Set(n);qd(t,r),e.setAttribute("class",Array.from(r).join(" ")),e.getAttribute("class")||e.removeAttribute("class")}function qd(e,t){if(e){if(typeof e=="string"){for(let n of e.split(/\s+/))n&&t.add(n);return}if(Array.isArray(e)){for(let n of e)qd(n,t);return}if(typeof e=="object"){for(let[n,r]of Object.entries(e))if(r)for(let o of n.split(/\s+/))o&&t.add(o)}}}function ma(e,t){if(t){if(typeof t=="string"){e.style.cssText=t;return}if(Array.isArray(t)){for(let n of t)ma(e,n);return}for(let[n,r]of Object.entries(t)){if(r==null||r===!1){e.style.removeProperty(n);continue}let o=n.startsWith("--")?n:n.replace(/[A-Z]/g,s=>`-${s.toLowerCase()}`),i=String(r);o.startsWith("--"),e.style.setProperty(o,i)}}}y("bind",({el:e,arg:t,modifiers:n,effect:r,evaluate:o,expression:i})=>{if(!t){r(()=>{let l=o();if(l&&typeof l=="object")for(let[c,d]of Object.entries(l))Od(e,c,d)});return}if(t==="key")return;let s=!!n.prop,a=!!n.dangerous;r(()=>{Od(e,t,o(),s,a)})},{priority:j.BIND});y("class",({el:e,effect:t,evaluate:n})=>{t(()=>jd(e,n()))});y("style",({el:e,effect:t,evaluate:n})=>{t(()=>ma(e,n()))});var Fd={enter:["Enter"],esc:["Escape"],escape:["Escape"],space:[" ","Spacebar"],tab:["Tab"],delete:["Delete","Backspace"],backspace:["Backspace"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},Cv=["ctrl","shift","alt","meta"];function Id(e,t,n,r){let o=n.detail,i=n.__voodoo===!0,s=t.child({$event:i?o:n,$rawEvent:n,$el:r,$detail:o});try{let a=lt(e),l=F(a,s);typeof l=="function"&&(a.t==="id"||a.t==="member")&&l.call(t.data,i?o:n)}catch(a){K(a,`event ${n.type} ("${e}")`)}}var Rv={hover:"mouseenter",unhover:"mouseleave",tap:"click",press:"pointerdown",release:"pointerup",rightclick:"contextmenu",enterkey:"keydown",type:"input",submitform:"submit"},Vd={hold(e,t,n,r){let o=G(typeof n.duration=="string"&&n.duration||Object.keys(n).find(d=>/^[\d.]+(ms|s)?$/.test(d))||e.getAttribute(`${w.prefix}hold-duration`)||800,800),i=null,s=!1,a=d=>{s=!1,e.classList.add("v-holding"),e.style.setProperty("--v-hold-duration",`${o}ms`),i=setTimeout(()=>{s=!0,e.classList.remove("v-holding"),t(d)},o)},l=()=>{i&&clearTimeout(i),i=null,e.classList.remove("v-holding")},c=d=>{s&&(d.preventDefault(),d.stopPropagation(),s=!1)};e.addEventListener("pointerdown",a),e.addEventListener("pointerup",l),e.addEventListener("pointerleave",l),e.addEventListener("pointercancel",l),e.addEventListener("click",c,!0),r(()=>{l(),e.removeEventListener("pointerdown",a),e.removeEventListener("pointerup",l),e.removeEventListener("pointerleave",l),e.removeEventListener("pointercancel",l),e.removeEventListener("click",c,!0)})},outside(e,t,n,r){let o=i=>{e.isConnected&&(e===i.target||e.contains(i.target)||t(i))};document.addEventListener("click",o,!0),r(()=>document.removeEventListener("click",o,!0))},visible(e,t,n,r){var i,s;if(typeof IntersectionObserver=="undefined"){t(new CustomEvent("visible"));return}let o=new IntersectionObserver(a=>{for(let l of a)l.isIntersecting&&(t(new CustomEvent("visible",{detail:l})),n.repeat!==!0&&o.unobserve(e))},{threshold:Number((i=n.threshold)!=null?i:.1),rootMargin:String((s=n.margin)!=null?s:"0px")});o.observe(e),r(()=>o.disconnect())}};for(let e of["left","right","up","down"])Vd[`swipe${e}`]=(t,n,r,o)=>{let i=0,s=0,a=!1,l=d=>{a=!0,i=d.clientX,s=d.clientY},c=d=>{if(!a)return;a=!1;let u=d.clientX-i,p=d.clientY-s,f=40;(e==="left"?u<-f&&Math.abs(u)>Math.abs(p):e==="right"?u>f&&Math.abs(u)>Math.abs(p):e==="up"?p<-f&&Math.abs(p)>Math.abs(u):p>f&&Math.abs(p)>Math.abs(u))&&n(new CustomEvent(`swipe${e}`,{detail:{dx:u,dy:p}}))};t.addEventListener("pointerdown",l),window.addEventListener("pointerup",c),o(()=>{t.removeEventListener("pointerdown",l),window.removeEventListener("pointerup",c)})};function Ud(e,t,n,r,o,i){var f;let s=(f=Rv[t])!=null?f:t,a=Vd[t];if(a){a(e,m=>{o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Id(n,r,m,e)},o,i);return}let l=o.window?window:o.document||o.outside?document:e,c=m=>{if(!(o.self&&m.target!==e)&&!(o.outside&&(e===m.target||e.contains(m.target)||!e.isConnected))){if(m instanceof KeyboardEvent){for(let v of Cv)if(o[v]&&!m[`${v}Key`])return;let h=Object.keys(o).filter(v=>v in Fd||/^[a-z0-9]$/.test(v));if(h.length&&!h.some(g=>{let b=Fd[g];return b?b.includes(m.key):m.key.toLowerCase()===g}))return}o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Id(n,r,m,e)}},d=o.debounce;d!==void 0&&(c=Ue(c,G(d===!0?250:d,250)));let u=o.throttle;u!==void 0&&(c=Hr(c,G(u===!0?250:u,250)));let p={capture:!!o.capture,once:!!o.once,passive:!!o.passive};l.addEventListener(s,c,p),i(()=>l.removeEventListener(s,c,p))}y("on",({el:e,arg:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{t&&Ud(e,t,n,r,o,i)});var $v=["click","dblclick","input","change","keyup","keydown","keypress","mouseenter","mouseleave","mouseover","mousedown","mouseup","contextmenu","wheel","paste","dragstart","dragover","dragleave","drop"];for(let e of $v)y(e,({el:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{Ud(t,e,n,r,o,i)});y("model",({el:e,expression:t,scope:n,modifiers:r,effect:o,cleanup:i})=>{let s=e,a=s.tagName,l=(s.getAttribute("type")||"text").toLowerCase(),c=a==="INPUT"&&l==="checkbox",d=a==="INPUT"&&l==="radio",u=a==="SELECT",p=u&&s.multiple,f=a==="INPUT"&&l==="file",m=l==="number"||l==="range",h=!!r.lazy,v=!!r.number||m,g=!!r.trim,b=r.debounce?G(r.debounce===!0?250:r.debounce,250):e.getAttribute(`${w.prefix}debounce`)?G(e.getAttribute(`${w.prefix}debounce`),250):0,x=h||u||c||d||f?"change":"input",T=()=>{var A,D;let k;if(c){let C=q(t,n,"v-model");if(Array.isArray(C)){let oe=s.value,O=[...C],pe=O.indexOf(oe);s.checked&&pe===-1?O.push(oe):!s.checked&&pe>-1&&O.splice(pe,1),k=O}else k=s.checked}else if(d){if(!s.checked)return;k=s.value}else if(p)k=Array.from(s.selectedOptions).map(C=>C.value);else if(f)k=r.single?(D=(A=s.files)==null?void 0:A[0])!=null?D:null:s.files;else if(k=s.value,g&&typeof k=="string"&&(k=k.trim()),v&&typeof k=="string"){let C=k===""?null:Number(k);k=C===null||Number.isNaN(C)?k:C}Ev(t,n,k)};b>0&&(T=Ue(T,b)),s.addEventListener(x,T),i(()=>s.removeEventListener(x,T)),o(()=>{let k=q(t,n,"v-model");if(c){s.checked=Array.isArray(k)?k.includes(s.value):!!k;return}if(d){s.checked=String(k)===s.value;return}if(p){let D=Array.isArray(k)?k.map(String):[];for(let C of Array.from(s.options))C.selected=D.includes(C.value);return}if(f)return;let A=k==null?"":String(k);s.value!==A&&(s.value=A),u&&s.value!==A&&at(()=>{s.value!==A&&(s.value=A)})})},{priority:j.MODEL});y("init",({el:e,expression:t,scope:n})=>{Me(()=>{let r=n.child({$el:e}),o=q(t,r,"v-init");typeof o=="function"&&o.call(n.data)})},{priority:j.INIT});y("ref",({el:e,expression:t,scope:n,cleanup:r})=>{var s;let o=t.trim();if(!o)return;let i=(s=n.owner)!=null?s:n;i.refs[o]=e,r(()=>{i.refs[o]===e&&delete i.refs[o]})},{priority:j.REF});y("effect",({effect:e,evaluate:t})=>{e(()=>{t()})});y("watch",({el:e,expression:t,scope:n,effect:r})=>{let o=e.getAttribute(`${w.prefix}model`),i,s=!0;r(()=>{let a=o?q(o,n,"v-watch"):q(t,n,"v-watch");if(s){s=!1,i=a;return}if(a===i)return;let l=i;if(i=a,o){let c=n.child({$value:a,$old:l,$el:e}),d=q(t,c,"v-watch");typeof d=="function"&&d.call(n.data,a,l)}})});y("cloak",({el:e})=>{e.removeAttribute(`${w.prefix}cloak`)});y("once",({el:e,effect:t,evaluate:n})=>{let r=n();r!==void 0&&(e.textContent=Ht(r))});y("teleport",({el:e,expression:t,cleanup:n})=>{var s;let r=t.trim()||"body",o=r==="body"?document.body:document.querySelector(r);if(!o){K(new Error(`v-teleport destination not found: ${r}`),"v-teleport");return}let i=document.createComment(" v-teleport ");(s=e.parentNode)==null||s.insertBefore(i,e),o.appendChild(e),n(()=>{var a;(a=i.parentNode)==null||a.insertBefore(e,i),i.remove()})},{priority:j.DATA});for(let e of["transition","enter-class","enter-active-class","enter-to-class","leave-class","leave-active-class","leave-to-class","duration","key","slot","ignore","pre"])y(e,()=>{},{priority:j.TRANSITION});y("data",()=>{},{priority:j.DATA});y("component",()=>{},{priority:j.COMPONENT});be();le();var Kd=()=>w.prefix;function V(e,t){return ke(e,`${Kd()}${t}`)}function ga(e,t){return Ot(e,`${Kd()}${t}`)}function Dv(e,t){var s,a,l;let n=V(e,"target"),r=V(e,"loading"),o={},i=V(e,"headers");if(i){let c=q(i,t,"v-headers");c&&typeof c=="object"&&(o=c)}return{target:n?document.querySelector(n):null,swap:V(e,"swap")||"innerHTML",loadingTarget:r?document.querySelector(r):null,loadingClass:V(e,"loading-class")||"v-loading",disableWhileLoading:ga(e,"disable-loading"),confirmMessage:V(e,"confirm"),toastSuccess:V(e,"toast-success"),toastError:V(e,"toast-error"),onSuccess:V(e,"on-success"),onError:V(e,"on-error"),onComplete:V(e,"on-complete"),cacheMs:G((s=V(e,"cache"))!=null?s:void 0,0),retry:Number((a=V(e,"retry"))!=null?a:0),timeout:G((l=V(e,"timeout"))!=null?l:void 0,ve.defaults.timeout),storeAs:V(e,"as"),jsonPath:V(e,"json-path"),templateSelector:V(e,"template"),offlineQueue:ga(e,"offline-queue"),headers:o,redirect:V(e,"redirect"),scrollTo:V(e,"scroll-to")}}function Wd(e,t,n,r){var i,s;let o=a=>{for(let l of Array.from(a))l.nodeType===1&&se(l,r)};switch(n){case"none":return;case"delete":X(e),e.remove();return;case"textContent":e.textContent=t;return;case"outerHTML":case"replace":{let a=document.createElement("template");a.innerHTML=t;let l=Array.from(a.content.childNodes);X(e),e.replaceWith(a.content),o(l);return}case"beforebegin":case"afterbegin":case"beforeend":case"afterend":{let a=new Set(Array.from((s=(i=e.parentElement)==null?void 0:i.childNodes)!=null?s:[]));e.insertAdjacentHTML(n,t);let l=n==="afterbegin"||n==="beforeend"?e:e.parentElement;if(l)for(let c of Array.from(l.childNodes))c.nodeType===1&&!a.has(c)&&se(c,r);return}case"append":e.insertAdjacentHTML("beforeend",t),o(e.childNodes);return;case"prepend":e.insertAdjacentHTML("afterbegin",t),o(e.childNodes);return;default:{for(let a of Array.from(e.children))X(a);e.innerHTML=t,o(e.childNodes)}}}function ai(e,t=0){if(e==null)return"";if(typeof e!="object")return I(String(e));if(Array.isArray(e)){if(!e.length)return'<p class="v-json-empty">No results.</p>';if(e.every(o=>o&&typeof o=="object"&&!Array.isArray(o))&&t===0){let o=Array.from(e.reduce((a,l)=>{for(let c of Object.keys(l))a.add(c);return a},new Set)),i=o.map(a=>`<th>${I(a)}</th>`).join(""),s=e.map(a=>`<tr>${o.map(l=>`<td>${ai(a[l],t+1)}</td>`).join("")}</tr>`).join("");return`<table class="v-json-table"><thead><tr>${i}</tr></thead><tbody>${s}</tbody></table>`}return`<ul class="v-json-list">${e.map(o=>`<li>${ai(o,t+1)}</li>`).join("")}</ul>`}let n=Object.entries(e);return n.length?`<dl class="v-json-object">${n.map(([r,o])=>`<dt>${I(r)}</dt><dd>${ai(o,t+1)}</dd>`).join("")}</dl>`:""}function Hv(e,t,n,r){let o=document.querySelector(e);if(!o){K(new Error(`Template not found: ${e}`),"v-template");return}for(let s of Array.from(r.children))X(s);r.innerHTML="";let i=Array.isArray(t)?t:[t];for(let[s,a]of i.entries()){let l=o.content.cloneNode(!0),c=Array.from(l.childNodes);r.appendChild(l);let d=n.reactiveChild({item:a,index:s,...a&&typeof a=="object"?a:{}});for(let u of c)u.nodeType===1&&se(u,d)}}var va=new WeakMap;async function jr(e){var u,p,f,m,h;let{el:t,scope:n,method:r}=e,o=Dv(t,n),i=wt.has("confirm");if(o.confirmMessage&&!i&&!await Pv(o.confirmMessage))return;(u=va.get(t))==null||u.abort();let s=new AbortController;va.set(t,s);let a=(p=o.target)!=null?p:t,l=t instanceof HTMLFormElement?t.querySelector('[type="submit"], button:not([type])'):null,c=()=>{if(t.classList.add(o.loadingClass),t.setAttribute("aria-busy","true"),o.loadingTarget&&o.loadingTarget.style.removeProperty("display"),o.disableWhileLoading){let v=l!=null?l:t;"disabled"in v&&(v.disabled=!0)}},d=()=>{if(t.classList.remove(o.loadingClass),t.removeAttribute("aria-busy"),o.loadingTarget&&(o.loadingTarget.style.display="none"),o.disableWhileLoading){let v=l!=null?l:t;"disabled"in v&&(v.disabled=!1)}};c(),Yn(t,"voodoo:before-request",{method:r,url:e.url});try{let v=await ve.request({url:e.url,method:r,body:e.body,params:e.params,headers:o.headers,timeout:o.timeout,retry:o.retry,cache:o.cacheMs||void 0,signal:s.signal,offlineQueue:o.offlineQueue}),g=fa(v.data,o.jsonPath);o.storeAs?n.set(o.storeAs,g):o.templateSelector?Hv(o.templateSelector,g,n,a):typeof g=="string"?Wd(a,g,o.swap,n):g!=null&&(Ov(),Wd(a,ai(g),o.swap,n)),o.toastSuccess&&tt.success(o.toastSuccess),o.onSuccess&&ha(o.onSuccess,n,t,{data:g,response:v}),Yn(t,"voodoo:success",{data:g,response:v}),o.scrollTo&&((f=document.querySelector(o.scrollTo))==null||f.scrollIntoView({behavior:"smooth"})),o.redirect&&location.assign(o.redirect)}catch(v){if((v==null?void 0:v.name)==="AbortError")return;let g=v instanceof Ee?(m=pa(v))!=null?m:v.message:(h=v==null?void 0:v.message)!=null?h:"Unknown error";o.toastError?tt.error(o.toastError):o.onError||tt.error(g),o.onError&&ha(o.onError,n,t,{error:v,message:g}),Yn(t,"voodoo:error",{error:v,message:g}),K(v,`request ${r} ${e.url}`)}finally{d(),va.delete(t),o.onComplete&&ha(o.onComplete,n,t,{}),Yn(t,"voodoo:complete",{})}}function Yn(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function ha(e,t,n,r){var s;let o=t.child({$el:n,...r}),i=q(e,o,"HTTP callback");typeof i=="function"&&i.call(t.data,(s=r.data)!=null?s:r.error)}async function Pv(e){let t=globalThis.V;return t&&typeof t.confirm=="function"&&t.confirm!==globalThis.confirm?!!await t.confirm(e):globalThis.confirm(e)}var _d=!1;function Ov(){_d||(_d=!0,Promise.resolve().then(()=>(He(),Sd)).then(({injectStyle:e})=>{e("json-render",`
|
|
130
|
+
.v-json-table{width:100%;border-collapse:collapse;font:14px/1.5 var(--v-font-sans,system-ui,sans-serif)}
|
|
131
|
+
.v-json-table th,.v-json-table td{padding:8px 12px;text-align:left;border-bottom:1px solid var(--v-border,#E6E0F0);vertical-align:top}
|
|
132
|
+
.v-json-table th{font-weight:650;color:var(--v-text-muted,#6B6580);font-size:12px;text-transform:uppercase;letter-spacing:.04em}
|
|
133
|
+
.v-json-list{margin:0;padding-left:18px}
|
|
134
|
+
.v-json-object{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:0}
|
|
135
|
+
.v-json-object dt{font-weight:600;color:var(--v-text-muted,#6B6580)}
|
|
136
|
+
.v-json-object dd{margin:0}
|
|
137
|
+
.v-json-empty{color:var(--v-text-muted,#6B6580);font-style:italic}
|
|
138
|
+
`)}))}function Nv(e){let t=e.tagName;if(t==="FORM")return"submit";if(t==="INPUT"||t==="SELECT"||t==="TEXTAREA"){let n=e.type;return n==="button"||n==="submit"?"click":"change"}return"click"}function Fv({el:e,cleanup:t,run:n}){var d,u;let r=V(e,"trigger")||Nv(e),[o,...i]=r.split(/[.\s]+/),s=G((d=V(e,"poll"))!=null?d:void 0,0);if(s>0){n();let p=setInterval(()=>{document.visibilityState==="visible"&&n()},s);t(()=>clearInterval(p));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let p=new IntersectionObserver(f=>{for(let m of f)m.isIntersecting&&(n(),i.includes("repeat")||p.unobserve(e))},{rootMargin:"80px"});p.observe(e),t(()=>p.disconnect());return}let a=i.includes("once"),l=G((u=V(e,"debounce"))!=null?u:void 0,0),c=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};l>0&&(c=Ue(c,l)),e.addEventListener(o,c,{once:a}),t(()=>e.removeEventListener(o,c))}var Iv=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of Iv)y(e,({el:n,scope:r,expression:o,cleanup:i})=>{Fv({el:n,scope:r,cleanup:i,run:a=>{let l=qr(o,r);if(!l)return;let c=V(n,"body")||V(n,"data-body"),d=c?q(c,r.child({$event:a}),"v-body"):void 0,u=V(n,"params"),p=u?q(u,r,"v-params"):void 0;jr({el:n,scope:r,method:t,url:l,body:d,params:p,event:a})}})});function qr(e,t){let n=e.trim();if(!n)return"";if((/^[./#?]/.test(n)||/^https?:\/\//i.test(n)||/^[\w-]+\/[\w\-/.]*$/.test(n))&&!/[+`'"]|\$\{/.test(n))return n;let o=q(n,t,"URL");return typeof o=="string"?o:n}y("load",({el:e,scope:t,expression:n})=>{let r=qr(n,t);r&&jr({el:e,scope:t,method:"GET",url:r})});y("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=qr(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){jr({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),jr({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});y("search",({el:e,scope:t,expression:n,cleanup:r})=>{var u,p;let o=e,i=qr(n,t),s=V(e,"param")||o.getAttribute("name")||"q",a=G((u=V(e,"debounce"))!=null?u:void 0,300),l=Number((p=V(e,"min-length"))!=null?p:0),c=Ue(()=>{let f=o.value.trim();f.length<l||jr({el:e,scope:t,method:"GET",url:i,params:{[s]:f}})},a),d=()=>c();o.addEventListener("input",d),r(()=>{o.removeEventListener("input",d),c.cancel()})});y("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var l,c,d,u;let o=n.indexOf(":"),i=V(e,"as")||"resource",s=n.trim();if(o>-1){let p=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(p)&&(i=p,s=n.slice(o+1).trim())}let a=ii(()=>qr(s,t),{method:(V(e,"method")||"GET").toUpperCase(),params:()=>V(e,"params")?q(V(e,"params"),t,"v-params"):void 0,cache:G((l=V(e,"cache"))!=null?l:void 0,0)||void 0,retry:Number((c=V(e,"retry"))!=null?c:0),timeout:G((d=V(e,"timeout"))!=null?d:void 0,ve.defaults.timeout),jsonPath:V(e,"json-path"),poll:G((u=V(e,"poll"))!=null?u:void 0,0),manual:ga(e,"manual"),onSuccess:p=>Yn(e,"voodoo:success",{data:p}),onError:(p,f)=>Yn(e,"voodoo:error",{error:p,message:f})});t.set(i,a),r(()=>a.stop())},{priority:j.DATA});for(let e of["target","swap","trigger","poll","param","params","body","data-body","headers","cache","retry","timeout","as","json-path","template","offline-queue","min-length","scroll-to","manual","debounce","throttle","indicator"])y(e,()=>{},{priority:j.TRANSITION});Zc(sd);id(Nt);fd(Xd);Rd();var Vr=new Map;function Yd(e,t){let n=Vr.get(e);return n||Vr.set(e,n=new Set),n.add(t),()=>n.delete(t)}function zv(e,t){let n=Yd(e,r=>{n(),t(r)});return n}function Bv(e,t){let n=Vr.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){K(o,`event "${e}"`)}}function jv(e,t){var n;if(!t){Vr.delete(e);return}(n=Vr.get(e))==null||n.delete(t)}function Xd(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;y(e,i=>{var d,u;let s,a=!1,l=p=>{var f,m;return{el:i.el,value:p,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(f=i.scope.owner)==null?void 0:f.component)!=null?m:null}},c=n.raw?i.expression:i.evaluate();(d=n.created)==null||d.call(n,i.el,l(c)),(u=n.beforeMount)==null||u.call(n,i.el,l(c)),i.effect(()=>{var m,h;let p=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=p,(m=n.mounted)==null||m.call(n,i.el,l(p));return}if(p===s)return;let f=l(p);(h=n.updated)==null||h.call(n,i.el,f),s=p}),i.cleanup(()=>{var f,m;let p=l(s);(f=n.beforeUnmount)==null||f.call(n,i.el,p),(m=n.unmounted)==null||m.call(n,i.el,p)})},{priority:(r=n.priority)!=null?r:j.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function qv(e){return Object.defineProperties(ct.data,Object.getOwnPropertyDescriptors(e)),ct.data}var Vv="0.4.6",li={...aa,version:Vv,config:w,reactive:Z,ref:Mr,shallowRef:Ps,computed:Sr,effect:_e,watch:Ne,watchEffect:Ns,nextTick:at,toRaw:Le,markRaw:Ds,unref:Os,stop:As,effectScope:Cs,EffectScope:et,flushSync:Ts,data:qv,store:hd,stores:Fn,removeStore:gd,storeNames:Ko,scope:ct,component:Ft,components:$e,directive:Xd,directives:wt,magic:P,magics:Ar,createApp:pd,start:td,whenReady:Uo,whenElement:Wo,walk:se,refresh:rd,destroy:X,stopObserving:nd,getScope:Lt,findScope:Ve,addCleanup:dt,parseAttribute:$n,parse:lt,tokenize:Po,evaluate:F,evaluateIn:q,stringify:Ht,clearParseCache:$c,globals:Pe,http:ve,request:zt,HttpError:Ee,resource:ii,toast:tt,storage:ue,session:ei,cookie:ti,cache:ni,url:jt,theme:ut,clipboard:oi,screen:Ke,network:qt,enter:zr,leave:Br,fadeIn:_n,fadeOut:Kn,slideUp:dn,slideDown:cn,viewTransition:si,injectStyle:ne,ensureTokens:he,on:Yd,once:zv,off:jv,emit:Bv,use(e,t){Oo(li,e,t)},onError(e){Ls(e)},instances:Mt,Scope:on,PRIORITY:j,VoodooSyntaxError:de,VoodooRuntimeError:Re};vd(li);be();var Uv=new Set(["animation-iteration-count","aspect-ratio","border-image-slice","column-count","flex","flex-grow","flex-shrink","font-weight","grid-area","grid-column","grid-row","line-height","opacity","order","orphans","scale","tab-size","widows","z-index","zoom"]);function ou(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function nt(e){return e.length<2?e:Array.from(new Set(e))}function un(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function ba(e){if(typeof document=="undefined")return[];let t=document.createElement("template");t.innerHTML=e.trim();let n=[];for(let r of Array.from(t.content.children))n.push(r);return n}function iu(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function Wv(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof ft)return e.toArray();if(typeof e=="string")return fn(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=fn(e);return t.length?t:typeof document=="undefined"?[]:[document]}function fn(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(iu(o))return ba(o);let i=[];for(let s of Wv(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return nt(i)}if(e instanceof ft)return e.toArray();if(typeof e=="function")return[];let n=e;if(typeof n.nodeType=="number"){if(n.nodeType===1)return[n];if(n.nodeType===9){let o=n;return o.documentElement?[o.documentElement]:[]}return n.nodeType===11?Array.from(n.children):[]}let r=e;if(typeof r.length=="number"){let o=[];for(let i=0;i<r.length;i++){let s=r[i];s&&s.nodeType===1&&o.push(s)}return nt(o)}return[]}function Gd(e){if(e==null)return[];if(typeof e=="string"){let r=e;return iu(r.trim())?ba(r):[document.createTextNode(r)]}if(e instanceof ft)return e.toArray();if(typeof e=="function")return[];let t=e;if(typeof t.nodeType=="number")return[t];let n=e;if(typeof n.length=="number"){let r=[];for(let o=0;o<n.length;o++)n[o]&&r.push(n[o]);return r}return[]}function ci(e,t,n){let r=ou(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!Uv.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function _v(e,t){for(let[n,r]of Object.entries(t))ci(e,n,r)}function Qd(e){if(e===void 0)return;if(e==="")return"";if(e==="true")return!0;if(e==="false")return!1;if(e==="null")return null;if(/^-?\d+(\.\d+)?$/.test(e))return Number(e);let t=e.charCodeAt(0);if(t===123||t===91||t===34)try{return JSON.parse(e)}catch(n){return e}return e}function Jd(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var su=new WeakMap;function Zd(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function eu(e){e.removeAttribute("hidden");let t=su.get(e);t!==void 0&&t!=="none"?e.style.display=t:e.style.removeProperty("display"),e.isConnected&&getComputedStyle(e).display==="none"&&(e.style.display="block")}function tu(e){let t=e.style.display;t&&t!=="none"&&su.set(e,t),e.style.display="none"}var nu="input,select,textarea";function ru(e){return e.matches(nu)?[e]:Array.from(e.querySelectorAll(nu))}function Kv(e){let t=e;if(!t.name||t.disabled)return!1;let n=(t.getAttribute("type")||"").toLowerCase();return!(n==="file"||n==="submit"||n==="reset"||n==="button"||(n==="checkbox"||n==="radio")&&!t.checked)}var di=new WeakMap;function Yv(e){let t=di.get(e);return t||di.set(e,t=[]),t}var ft=class e{constructor(t=[]){H(this,"length");H(this,"elements");this.elements=t,this.length=t.length;let n=this;for(let r=0;r<t.length;r++)n[r]=t[r]}[Symbol.iterator](){return this.elements[Symbol.iterator]()}find(t){let n=[];for(let r of this.elements)try{for(let o of Array.from(r.querySelectorAll(t)))n.push(o)}catch(o){}return new e(nt(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(nt(n))}parent(t){let n=[];for(let r of this.elements){let o=r.parentElement;o&&(!t||o.matches(t))&&n.push(o)}return new e(nt(n))}parents(t){let n=[];for(let r of this.elements){let o=r.parentElement;for(;o;)(!t||o.matches(t))&&n.push(o),o=o.parentElement}return new e(nt(n))}children(t){let n=[];for(let r of this.elements)for(let o of Array.from(r.children))(!t||o.matches(t))&&n.push(o);return new e(nt(n))}siblings(t){let n=[];for(let r of this.elements){let o=r.parentElement;if(o)for(let i of Array.from(o.children))i!==r&&(!t||i.matches(t))&&n.push(i)}return new e(nt(n))}next(t){let n=[];for(let r of this.elements){let o=r.nextElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(nt(n))}prev(t){let n=[];for(let r of this.elements){let o=r.previousElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(nt(n))}first(){return this.eq(0)}last(){return this.eq(-1)}eq(t){let n=t<0?this.elements.length+t:t,r=this.elements[n];return new e(r?[r]:[])}filter(t){let n=this.elements.filter((r,o)=>typeof t=="function"?t(r,o):r.matches(t));return new e(n)}not(t){let n=this.elements.filter((r,o)=>typeof t=="function"?!t(r,o):!r.matches(t));return new e(n)}has(t){let n=this.elements.filter(r=>typeof t=="string"?r.querySelector(t)!==null:r.contains(t));return new e(n)}is(t){return this.elements.some((n,r)=>typeof t=="function"?t(n,r):n.matches(t))}map(t){return this.elements.map((n,r)=>t(n,r))}each(t){for(let n=0;n<this.elements.length;n++){let r=this.elements[n];if(t.call(r,r,n)===!1)break}return this}get(...t){if(!t.length)return this.toArray();let n=Number(t[0]);return this.elements[n<0?this.elements.length+n:n]}toArray(){return this.elements.slice()}add(t,n){return new e(nt([...this.elements,...fn(t,n)]))}slice(t,n){return new e(this.elements.slice(t,n))}text(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.textContent)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))X(a);s.textContent=r}return this}html(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.innerHTML)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))X(a);s.innerHTML=r}return this}val(...t){var r;if(!t.length){let o=this.elements[0];if(!o)return"";let i=o;return o.tagName==="SELECT"&&i.multiple?Array.from(i.selectedOptions).map(s=>s.value):o.type==="checkbox"?o.checked?o.value||"on":"":(r=o.value)!=null?r:""}let n=t[0];for(let o of this.elements){let i=o,s=o;if(i.tagName==="SELECT"&&s.multiple){let a=(Array.isArray(n)?n:[n]).map(String);for(let l of Array.from(s.options))l.selected=a.includes(l.value);continue}if(i.type==="checkbox"||i.type==="radio"){i.checked=Array.isArray(n)?n.map(String).includes(i.value):n===!0||String(n)===i.value;continue}i.value=n==null?"":String(n)}return this}attr(...t){var i,s;let n=t[0];if(n!==null&&typeof n=="object"){for(let a of this.elements)for(let[l,c]of Object.entries(n))c===null||c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":String(c));return this}let r=String(n);if(t.length<2)return(s=(i=this.elements[0])==null?void 0:i.getAttribute(r))!=null?s:void 0;let o=t[1];for(let a of this.elements)o===null||o===!1?a.removeAttribute(r):a.setAttribute(r,o===!0?"":String(o));return this}removeAttr(t){let n=un(t);for(let r of this.elements)for(let o of n)r.removeAttribute(o);return this}prop(...t){let n=String(t[0]);if(t.length<2){let r=this.elements[0];return r?r[n]:void 0}for(let r of this.elements)r[n]=t[1];return this}data(...t){let n=t[0];if(!t.length){let i=this.elements[0];if(!i)return{};let s={};for(let[a,l]of Object.entries(i.dataset))s[a]=Qd(l);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[Jd(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=Jd(String(n));if(t.length<2){let i=this.elements[0];return i?Qd(i.dataset[r]):void 0}let o=t[1];for(let i of this.elements)i.dataset[r]=typeof o=="string"?o:JSON.stringify(o!=null?o:null);return this}css(...t){let n=t[0];if(n!==null&&typeof n=="object"){for(let o of this.elements)_v(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=ou(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)ci(o,r,t[1]);return this}width(...t){if(!t.length){let n=this.elements[0];return n?n.getBoundingClientRect().width:0}for(let n of this.elements)ci(n,"width",t[0]);return this}height(...t){if(!t.length){let n=this.elements[0];return n?n.getBoundingClientRect().height:0}for(let n of this.elements)ci(n,"height",t[0]);return this}offset(){let t=this.elements[0];if(!t)return{top:0,left:0};let n=t.getBoundingClientRect();return{top:n.top+window.scrollY,left:n.left+window.scrollX}}position(){let t=this.elements[0];return t?{top:t.offsetTop,left:t.offsetLeft}:{top:0,left:0}}scrollTop(...t){var r,o;if(!t.length)return(o=(r=this.elements[0])==null?void 0:r.scrollTop)!=null?o:0;let n=Number(t[0])||0;for(let i of this.elements)i.scrollTop=n;return this}addClass(t){let n=un(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=un(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=un(t);for(let o of this.elements)for(let i of r)n===void 0?o.classList.toggle(i):o.classList.toggle(i,n);return this}hasClass(t){let n=un(t);return n.length?this.elements.some(r=>n.every(o=>r.classList.contains(o))):!1}insert(t,n){let r=this.elements.length;for(let o=0;o<r;o++){let i=this.elements[o];for(let s of Gd(t))n(i,o===r-1?s:s.cloneNode(!0))}return this}append(t){return this.insert(t,(n,r)=>n.appendChild(r))}prepend(t){return this.insert(t,(n,r)=>n.insertBefore(r,n.firstChild))}before(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n)})}after(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n.nextSibling)})}appendTo(t){let n=fn(t);for(let r=0;r<n.length;r++)for(let o of this.elements)n[r].appendChild(r===n.length-1?o:o.cloneNode(!0));return this}prependTo(t){let n=fn(t);for(let r=0;r<n.length;r++){let o=n[r],i=this.elements.map(s=>r===n.length-1?s:s.cloneNode(!0));for(let s=i.length-1;s>=0;s--)o.insertBefore(i[s],o.firstChild)}return this}replaceWith(t){for(let n of this.elements){let r=n.parentNode;if(r){for(let o of Gd(t))r.insertBefore(o,n);X(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=fn(t)[0];if(!o)continue;let i=o.cloneNode(!0);(n=r.parentNode)==null||n.insertBefore(i,r);let s=i;for(;s.firstElementChild;)s=s.firstElementChild;s.appendChild(r)}return this}unwrap(){let t=new Set;for(let n of this.elements){let r=n.parentElement;r&&r!==document.body&&t.add(r)}for(let n of t){let r=n.parentNode;if(r){for(;n.firstChild;)r.insertBefore(n.firstChild,n);X(n),n.remove()}}return this}remove(){for(let t of this.elements)X(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))X(n);t.replaceChildren()}return this}clone(t=!0){return new e(this.elements.map(n=>n.cloneNode(t)))}on(t,...n){var a;let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0],s=(a=r?n[2]:n[1])!=null?a:{};if(typeof i!="function")return this;for(let l of this.elements)for(let c of un(t)){let d=u=>{if(!o){i.call(l,u);return}let p=u.target,f=p==null?void 0:p.closest(o);!f||!l.contains(f)||i.call(f,u)};l.addEventListener(c,d,s),Yv(l).push({type:c,selector:o,handler:i,wrapped:d,options:s})}return this}off(t,n,r){let o=typeof n=="string"?n:null,i=typeof n=="function"?n:r!=null?r:null,s=t?un(t):null;for(let a of this.elements){let l=di.get(a);if(!l)continue;let c=[];for(let d of l){let u=!s||s.includes(d.type),p=o===null||d.selector===o,f=i===null||d.handler===i;u&&p&&f?a.removeEventListener(d.type,d.wrapped,d.options):c.push(d)}di.set(a,c)}return this}once(t,...n){let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0];if(typeof i!="function")return this;let s=this,a=function(l){return o?s.off(t,o,a):s.off(t,a),i.call(this,l)};return o?this.on(t,o,a):this.on(t,a)}trigger(t,n){for(let r of this.elements){if(n===void 0&&typeof r[t]=="function"){r[t]();continue}let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}emit(t,n){for(let r of this.elements){let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}show(){for(let t of this.elements)eu(t);return this}hide(){for(let t of this.elements)tu(t);return this}toggle(t){for(let n of this.elements)(t===void 0?Zd(n):t)?eu(n):tu(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),_n(n,t);return this}fadeOut(t=220){for(let n of this.elements)Kn(n,t);return this}slideUp(t=240){for(let n of this.elements)dn(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),cn(n,t);return this}slideToggle(t=240){for(let n of this.elements)Zd(n)?(n.removeAttribute("hidden"),cn(n,t)):dn(n,t);return this}animate(t,n=300){for(let r of this.elements)typeof r.animate=="function"&&r.animate(t,n);return this}scrollIntoView(t={behavior:"smooth",block:"start"}){var n;return(n=this.elements[0])==null||n.scrollIntoView(t),this}serialize(){let t=this.elements[0];if(!t)return"";let n=new URLSearchParams;for(let r of ru(t)){if(!Kv(r))continue;let o=r,i=r;if(o.tagName==="SELECT"&&i.multiple){for(let s of Array.from(i.selectedOptions))n.append(o.name,s.value);continue}n.append(o.name,o.value)}return n.toString()}serializeObject(){var r,o,i,s;let t=this.elements[0],n={};if(!t)return n;for(let a of ru(t)){let l=a;if(!l.name||l.disabled)continue;let c=(l.getAttribute("type")||"").toLowerCase();if(c==="submit"||c==="reset"||c==="button")continue;let d=l.name.endsWith("[]"),u=d?l.name.slice(0,-2):l.name,p=a,f;if(c==="checkbox"){if(!l.checked&&!d){n[u]=(r=n[u])!=null?r:!1;continue}if(!l.checked)continue;f=l.value==="on"?!0:l.value}else if(c==="radio"){if(!l.checked)continue;f=l.value}else c==="file"?f=l.multiple?Array.from((o=l.files)!=null?o:[]):(s=(i=l.files)==null?void 0:i[0])!=null?s:null:l.tagName==="SELECT"&&p.multiple?f=Array.from(p.selectedOptions).map(m=>m.value):c==="number"||c==="range"?f=l.value===""?null:Number(l.value):f=l.value;if(d){let m=n[u];Array.isArray(m)?m.push(f):n[u]=[f];continue}if(Object.prototype.hasOwnProperty.call(n,u)){let m=n[u];Array.isArray(m)?m.push(f):m===void 0||m===!1?n[u]=f:n[u]=[m,f];continue}n[u]=f}return n}focus(t){var n;return(n=this.elements[0])==null||n.focus(t),this}blur(){for(let t of this.elements)t.blur();return this}select(){for(let t of this.elements){let n=t;typeof n.select=="function"&&n.select()}return this}walk(t=!1){for(let n of this.elements)t&&X(n),se(n,Ve(n.parentNode));return this}destroy(){for(let t of this.elements)X(t);return this}};function ya(e,t){if(typeof e=="function"){xa(e);let n=typeof document!="undefined"?document.documentElement:null;return new ft(n?[n]:[])}return new ft(fn(e,t))}function xa(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{ud(()=>{try{e==null||e()}catch(n){K(n,"V.ready")}t()})})}function au(e){return new ft(ba(e))}be();le();var pn=new Map,Fe={emit(e,t){let n=pn.get(e);if(!(!n||n.size===0))for(let r of[...n])try{r(t)}catch(o){console.error("[Voodoo] error in devtools listener:",o)}},on(e,t){let n=pn.get(e);return n||pn.set(e,n=new Set),n.add(t),()=>{n==null||n.delete(t)}},off(e,t){var n;(n=pn.get(e))==null||n.delete(t)},clear(e){e?pn.delete(e):pn.clear()},count(e){var t,n;return(n=(t=pn.get(e))==null?void 0:t.size)!=null?n:0}};var W={mode:"history",base:"/",beforeEach:null,afterEach:null,linkActiveClass:"v-link-active",linkExactActiveClass:"v-link-exact-active",transition:!0,titleTemplate:"%s",scrollBehavior:null},ui="__voodooRoute",du=10,pt=[],uu=new Map,fi=new Map,Xn="inicial",pi=!1,fu=!1;function Xv(){return{path:"/",fullPath:"/",params:{},query:{},hash:"",name:"",meta:{},matched:null}}var ce=Z(Xv());function Ur(e){let t=e||"/";return t.startsWith("/")||(t=`/${t}`),t=t.replace(/\/{2,}/g,"/"),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t}function pu(e){let t={};return e&&new URLSearchParams(e.startsWith("?")?e.slice(1):e).forEach((r,o)=>{t[o]=r}),t}function Gv(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!=null&&t.append(n,String(r));return t.toString()}function ka(e){let t=e||"/",n="",r=t.indexOf("#");r>-1&&(n=t.slice(r+1),t=t.slice(0,r));let o={},i=t.indexOf("?");return i>-1&&(o=pu(t.slice(i+1)),t=t.slice(0,i)),{path:Ur(t),query:o,hash:n}}function Qv(e){let t=W.base.replace(/\/$/,"");return!t||t===""?e:e===t?"/":e.startsWith(`${t}/`)?e.slice(t.length):e}function mu(){return typeof window=="undefined"?{path:"/",query:{},hash:""}:W.mode==="hash"?ka(window.location.hash.slice(1)||"/"):{path:Ur(Qv(window.location.pathname)),query:pu(window.location.search),hash:window.location.hash.slice(1)}}function vu(e,t,n){let r=Gv(t);return`${e}${r?`?${r}`:""}${n?`#${n}`:""}`}function Ta(e){let t=vu(e.path,e.query,e.hash);if(W.mode==="hash"){let{pathname:r,search:o}=window.location;return`${r}${o}#${t}`}return`${W.base==="/"?"":W.base.replace(/\/$/,"")}${t}`||"/"}function hu(e,t){let n=e==="*"?"*":Ur(e),r=n==="*"?["*"]:n.split("/").filter(Boolean),o=[],i=r.length*10;for(let s of r){if(s==="*"||s==="**"){o.push({type:"wildcard",value:"*",optional:!0}),i-=30;continue}if(s.startsWith(":")){let a=s.endsWith("?"),l=s.slice(1,a?-1:void 0);o.push({type:"param",value:l,optional:a}),i+=a?1:2;continue}o.push({type:"static",value:s,optional:!1}),i+=4}return{pattern:n,segments:o,score:i,record:t}}function Jv(e,t){let n={},r=0;for(let o of e){if(o.type==="wildcard")return n["*"]=t.slice(r).map(wa).join("/"),n;if(r>=t.length){if(o.optional)continue;return null}let i=t[r];if(o.type==="static"){if(wa(i)!==o.value)return null;r++;continue}n[o.value]=wa(i),r++}return r===t.length?n:null}function wa(e){try{return decodeURIComponent(e)}catch(t){return e}}function Zv(e){let t=e.split("/").filter(Boolean),n=null;for(let r of pt){let o=Jv(r.segments,t);o&&(!n||r.score>n.route.score)&&(n={route:r,params:o})}return n}function La(e){var t,n;return e&&(n=(t=pt.find(r=>r.pattern===e))==null?void 0:t.record)!=null?n:null}function Gn(e){let{path:t,query:n,hash:r}=ka(e);return Ma(t,n,r)}function Ma(e,t,n){var o,i;let r=Zv(e);return{path:e,fullPath:vu(e,t,n),params:r?r.params:{},query:t,hash:n,name:(o=r==null?void 0:r.route.record.name)!=null?o:"",meta:(i=r==null?void 0:r.route.record.meta)!=null?i:{},matched:r?r.route.pattern:null}}function Qn(){return{path:ce.path,fullPath:ce.fullPath,params:{...ce.params},query:{...ce.query},hash:ce.hash,name:ce.name,meta:ce.meta,matched:ce.matched}}function Sa(e){ce.path=e.path,ce.fullPath=e.fullPath,ce.params=e.params,ce.query=e.query,ce.hash=e.hash,ce.name=e.name,ce.meta=e.meta,ce.matched=e.matched;let t=La(e.matched);t!=null&&t.title&&typeof document!="undefined"&&(document.title=W.titleTemplate.includes("%s")?W.titleTemplate.replace("%s",t.title):t.title)}async function Aa(e,t){let n=La(e.matched);if(n!=null&&n.redirect)return n.redirect;if(n!=null&&n.beforeEnter){let r=await n.beforeEnter(e,t);if(r===!1)return!1;if(typeof r=="string")return r}if(W.beforeEach){let r=await W.beforeEach(e,t);if(r===!1)return!1;if(typeof r=="string")return r}return!0}function vi(){typeof window!="undefined"&&uu.set(Xn,window.scrollY)}function Ca(e,t,n){typeof window!="undefined"&&Me(()=>{requestAnimationFrame(()=>{var o;let r=i=>{Math.abs(window.scrollY-i)>1&&window.scrollTo(0,i)};if(W.scrollBehavior){let i=W.scrollBehavior(e,t,n);if(i===!1)return;if(typeof i=="number"){r(i);return}}if(e.hash){let i=(o=document.getElementById(e.hash))!=null?o:/^[\w-]+$/.test(e.hash)?document.querySelector(`[name="${e.hash}"]`):null;if(i){i.scrollIntoView({behavior:"smooth",block:"start"});return}}r(n!=null?n:0)})})}async function Vt(e,t={}){var a,l;if(typeof window=="undefined")return!1;gu();let n=Qn(),r=Gn(e);if(!t.force&&r.fullPath===n.fullPath)return!0;for(let c=0;;c++){if(c>du)return Y(`Router: too many redirects when navigating to "${e}".`),!1;let d=await Aa(r,n);if(d===!1)return Fe.emit("navigation",{from:n.fullPath,to:r.fullPath,cancelled:!0,matched:r.matched}),!1;if(typeof d=="string"){r=Gn(d);continue}break}vi();let o=ae("rota"),i={...(a=t.state)!=null?a:{},[ui]:o},s=Ta(r);return t.replace?window.history.replaceState(i,"",s):window.history.pushState(i,"",s),Xn=o,Sa(r),t.scroll!==!1&&Ca(r,n,null),(l=W.afterEach)==null||l.call(W,Qn(),n),Fe.emit("navigation",{from:n.fullPath,to:r.fullPath,matched:r.matched}),!0}async function eh(e){var c,d;let{path:t,query:n,hash:r}=mu(),o=Ma(t,n,r),i=Qn();if(o.fullPath===i.fullPath)return;let s=await Aa(o,i);if(s===!1){window.history.replaceState({[ui]:Xn},"",Ta(i)),Fe.emit("navigation",{from:i.fullPath,to:o.fullPath,cancelled:!0,matched:o.matched});return}if(typeof s=="string"){Vt(s,{replace:!0});return}vi();let a=e.state,l=a&&a[ui]||ae("rota");Xn=l,Sa(o),Ca(o,i,(c=uu.get(l))!=null?c:0),(d=W.afterEach)==null||d.call(W,Qn(),i),Fe.emit("navigation",{from:i.fullPath,to:o.fullPath,matched:o.matched})}function mi(e){eh(e)}function gu(){pi||typeof window=="undefined"||(pi=!0,"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),window.addEventListener("popstate",mi),W.mode==="hash"&&window.addEventListener("hashchange",mi),window.addEventListener("beforeunload",vi))}function th(){!pi||typeof window=="undefined"||(pi=!1,window.removeEventListener("popstate",mi),window.removeEventListener("hashchange",mi),window.removeEventListener("beforeunload",vi))}async function nh(){var i;if(typeof window=="undefined")return;let{path:e,query:t,hash:n}=mu(),r=Qn(),o=Ma(e,t,n);for(let s=0;;s++){if(s>du){Y("Router: too many redirects in the initial route.");return}let a=await Aa(o,r);if(a===!1)return;if(typeof a=="string"){o=Gn(a);continue}break}Xn=ae("rota"),window.history.replaceState({[ui]:Xn},"",Ta(o)),Sa(o),o.hash&&Ca(o,r,null),(i=W.afterEach)==null||i.call(W,Qn(),r)}function rh(e,t){let n=hu(e,t),r=pt.findIndex(o=>o.pattern===n.pattern);r>-1?pt.splice(r,1,n):pt.push(n)}function oh(e){let t=e==="*"?"*":Ur(e),n=pt.findIndex(r=>r.pattern===t);n>-1&&pt.splice(n,1)}function ih(){return[...pt].sort((e,t)=>t.score-e.score).map(e=>e.pattern)}function sh(e){e?fi.delete(e):fi.clear()}function ah(e){var t,n,r,o,i,s,a,l,c,d;W.mode=(t=e.mode)!=null?t:"history",W.base=Ur((n=e.base)!=null?n:"/"),W.beforeEach=(r=e.beforeEach)!=null?r:null,W.afterEach=(o=e.afterEach)!=null?o:null,W.linkActiveClass=(i=e.linkActiveClass)!=null?i:"v-link-active",W.linkExactActiveClass=(s=e.linkExactActiveClass)!=null?s:"v-link-exact-active",W.transition=(a=e.transition)!=null?a:!0,W.titleTemplate=(l=e.titleTemplate)!=null?l:"%s",W.scrollBehavior=(c=e.scrollBehavior)!=null?c:null,pt.length=0;for(let[u,p]of Object.entries((d=e.routes)!=null?d:{}))pt.push(hu(u,p));return fu=!0,gu(),nh(),Wr}var lh={get current(){return ce},push:(e,t={})=>Vt(e,t),replace:(e,t={})=>Vt(e,{...t,replace:!0}),navigate:Vt,back:()=>{typeof window!="undefined"&&window.history.back()},forward:()=>{typeof window!="undefined"&&window.history.forward()},go:e=>{typeof window!="undefined"&&window.history.go(e)},resolve:Gn,addRoute:rh,removeRoute:oh,patterns:ih,stop:th,clearViewCache:sh,get ready(){return fu}},Wr=Object.defineProperties(ah,Object.getOwnPropertyDescriptors(lh));P("$route",()=>ce);P("$router",()=>Wr);async function ch(e){let t=fi.get(e);if(t!==void 0)return t;let n=await ve.get(e,{responseType:"text"}),r=typeof n=="string"?n:String(n!=null?n:"");return fi.set(e,r),r}function dh(e){return Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}y("router-view",({el:e,scope:t,modifiers:n,effect:r,cleanup:o})=>{jo(e);let i=e.innerHTML,s=W.transition&&!n["no-transition"],a=0,l=()=>{for(let u of Array.from(e.childNodes))X(u);e.textContent=""},c=(u,p)=>{if(l(),u!=null&&u.component){let f=document.createElement("div");f.setAttribute(`${w.prefix}component`,u.component),f.className="v-router-page",e.appendChild(f),se(f,t);return}e.innerHTML=p!=null?p:i;for(let f of Array.from(e.childNodes))se(f,t)},d=async(u,p)=>{let f=null;if(u!=null&&u.view){e.classList.add("v-router-loading");try{f=await ch(u.view)}catch(m){K(m,`v-router-view loading "${u.view}"`),f=""}finally{e.classList.remove("v-router-loading")}if(p!==a)return}s?si(()=>c(u,f)):c(u,f)};r(()=>{let u=ce.matched;dh(ce.params);let p=La(u);d(p,++a)}),o(()=>{a++,l()})},{priority:j.DEFAULT});var uh=/^[a-z][a-z0-9+.-]*:/i;function lu(e){return!!(!e||e.startsWith("//")||uh.test(e))}function cu(e,t,n){var i;let r=t.trim();if(r){if(r.startsWith("/")||r.startsWith("#"))return r;let s=n(r);return typeof s=="string"&&s?s:r}let o=(i=e.getAttribute("href"))!=null?i:"";return W.mode==="hash"&&o.startsWith("#")?o.slice(1)||"/":o}function Ea(e,t){let{path:n}=ka(e);return n==="/"||t?ce.path===n:ce.path===n||ce.path.startsWith(`${n}/`)}y("link",({el:e,expression:t,modifiers:n,effect:r,cleanup:o,evaluate:i})=>{let s=e,a=l=>{var u;if(l.defaultPrevented||l.metaKey||l.ctrlKey||l.shiftKey||l.altKey||typeof l.button=="number"&&l.button!==0)return;let c=s.getAttribute("target");if(c&&c!=="_self"||s.hasAttribute("download")||((u=s.getAttribute("rel"))!=null?u:"").split(/\s+/).includes("external"))return;let d=cu(e,t,i);d&&(lu(d)||W.mode!=="hash"&&d.startsWith("#")||(l.preventDefault(),Vt(d,{replace:!!n.replace,scroll:n["no-scroll"]?!1:void 0})))};e.addEventListener("click",a),o(()=>e.removeEventListener("click",a)),r(()=>{let l=cu(e,t,i);if(!l||lu(l))return;let c=Ea(l,!0),d=c||Ea(l,!1);e.classList.toggle(W.linkActiveClass,d),e.classList.toggle(W.linkExactActiveClass,c),c?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current")})});y("route-active",({el:e,expression:t,arg:n,modifiers:r,effect:o,evaluate:i})=>{let s=n||"active";o(()=>{var d;let a=t.trim(),l=a.startsWith("/")||!a?a:(d=i(a))!=null?d:a,c=l?Ea(String(l),!!r.exact):!1;e.classList.toggle(s,c)})});be();le();var fh="voodoo:locale",z=Z({locale:w.locale||"pt-BR",fallback:"en",currency:w.currency||"BRL",messages:{}}),Jn=fh,Zn="",Ra=new Map;function hi(e,t){let n=z.messages[e];if(!n)return null;let r=n[t];if(typeof r=="string")return r;let o=n;for(let i of t.split(".")){if(o==null||typeof o=="string")return null;o=o[i]}return typeof o=="string"?o:null}function gi(e){let t=[e],n=e.split("-")[0];n&&n!==e&&t.push(n);for(let r of Object.keys(z.messages))r!==e&&r.split("-")[0]===n&&t.push(r);return t}var bu=new Map;function ph(e,t){try{let n=bu.get(e);return n||bu.set(e,n=new Intl.PluralRules(e)),n.select(t)}catch(n){return t===1?"one":"other"}}var mh=["zero","one","two","few","many","other"];function vh(e,t,n){var i;if(e.length<=1)return(i=e[0])!=null?i:"";let r=ph(n,t);if(e.length===2)return r==="one"?e[0]:e[1];if(e.length===3)return t===0?e[0]:r==="one"?e[1]:e[2];let o=mh.indexOf(r);return e[Math.min(o<0?e.length-1:o,e.length-1)]}var hh=/\{\s*([\w.$-]+)\s*\}/g;function gh(e,t){return e.indexOf("{")===-1?e:e.replace(hh,(n,r)=>{let o=t[r];return o==null?n:String(o)})}function bh(e){return e==null?{}:typeof e=="number"?{n:e}:e}function er(e,t){var i,s;if(!e)return"";let n=bh(t),r=z.locale,o=null;for(let a of gi(r))if(o=hi(a,e),o!==null)break;if(o===null&&z.fallback&&z.fallback!==r){for(let a of gi(z.fallback))if(o=hi(a,e),o!==null)break}if(o===null)return e;if(o.includes("|")){let a=Number((s=(i=n.n)!=null?i:n.count)!=null?s:0),l=o.split("|").map(c=>c.trim());o=vh(l,Number.isNaN(a)?0:a,r)}return gh(o,n)}function yh(e,t){let n=t!=null?t:z.locale;for(let r of gi(n))if(hi(r,e)!==null)return!0;if(z.fallback&&z.fallback!==n){for(let r of gi(z.fallback))if(hi(r,e)!==null)return!0}return!1}function yu(e,t={}){return oa(e,{...t,locale:z.locale})}function xu(e,t){return ra(e,{locale:z.locale,currency:t!=null?t:z.currency})}function wu(e,t="short"){return ia(e,t,z.locale)}function Eu(e){return sa(e,z.locale)}function yi(){return z.locale}function xh(e){var t;return(t=z.messages[e!=null?e:z.locale])!=null?t:{}}function bi(e,t){let n=z.messages[e];return n?Xo(n,t):z.messages[e]=t,e}async function $a(e,t){if(typeof t!="string"){bi(e,t);return}let n=Ra.get(e);if(n)return n;let r=ve.get(t,{responseType:"json"}).then(o=>{o&&typeof o=="object"&&bi(e,o)}).catch(o=>{K(o,`i18n ao carregar "${t}"`)}).finally(()=>{Ra.delete(e)});return Ra.set(e,r),r}function _r(e){let t=e==null?void 0:e.trim();if(!t||t===z.locale)return Promise.resolve();let n=z.locale;return z.locale=t,z.currency=z.currency||w.currency,w.locale=t,Qo(t,z.currency),Jn&&ue.set(Jn,t),typeof document!="undefined"&&(document.documentElement.lang=t),Fe.emit("locale",{from:n,to:t}),!z.messages[t]&&Zn?$a(t,Zn.replace("{locale}",t)):Promise.resolve()}function ku(){var n;if(typeof navigator=="undefined")return null;let e=Object.keys(z.messages);if(!e.length)return null;let t=(n=navigator.languages)!=null&&n.length?[...navigator.languages]:[navigator.language];for(let r of t){if(!r)continue;let o=e.find(a=>a.toLowerCase()===r.toLowerCase());if(o)return o;let i=r.split("-")[0].toLowerCase(),s=e.find(a=>a.split("-")[0].toLowerCase()===i);if(s)return s}return null}function wh(e={}){var o,i,s,a;if(e.messages)for(let[l,c]of Object.entries(e.messages))bi(l,c);z.fallback=(o=e.fallback)!=null?o:z.fallback,z.currency=(s=(i=e.currency)!=null?i:w.currency)!=null?s:z.currency,Zn=(a=e.loadPath)!=null?a:Zn,e.persist===!1?Jn=null:typeof e.persist=="string"&&(Jn=e.persist);let t=Jn?ue.get(Jn):void 0,n=e.detect===!1?null:ku(),r=t||n||e.locale||z.locale||z.fallback;return z.locale=r,w.locale=r,Qo(r,z.currency),typeof document!="undefined"&&(document.documentElement.lang=r),!z.messages[r]&&Zn&&$a(r,Zn.replace("{locale}",r)),Kr}var Eh={get locale(){return z.locale},get fallback(){return z.fallback},get locales(){return Object.keys(z.messages)},t:er,te:yh,n:yu,c:xu,d:wu,rt:Eu,setLocale:_r,getLocale:yi,addMessages:bi,loadMessages:$a,messagesOf:xh,detectLocale:ku},Kr=Object.defineProperties(wh,Object.getOwnPropertyDescriptors(Eh));P("$t",()=>er);P("$locale",()=>z.locale);P("$i18n",()=>Kr);P("$n",()=>yu);P("$c",()=>xu);P("$d",()=>wu);P("$rt",()=>Eu);var kh=/^[A-Za-z_$][\w$-]*(\.[A-Za-z_$][\w$-]*)*$/;function Th(e,t){let n=e.trim();if(!n)return"";if(kh.test(n))return n;let r=t(n);return typeof r=="string"?r:n}function Lh(e,t){var o;let n=(o=ke(e,`${w.prefix}t-params`))!=null?o:ke(e,"data-v-t-params");if(!n)return{};let r=t(n);return r&&typeof r=="object"?r:{}}y("t",({el:e,arg:t,expression:n,effect:r,evaluate:o})=>{r(()=>{let i=Th(n,o);if(!i)return;let s=er(i,Lh(e,o));t?e.setAttribute(t,s):e.textContent!==s&&(e.textContent=s)})});y("t-params",()=>{});y("locale",({el:e,expression:t,effect:n,cleanup:r,evaluate:o})=>{let i=()=>{let a=t.trim();if(!a)return"";if(/^[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})*$/.test(a))return a.replace("_","-");let l=o(a);return typeof l=="string"?l:a},s=()=>{let a=i();a&&_r(a)};e.addEventListener("click",s),r(()=>e.removeEventListener("click",s)),n(()=>{e.classList.toggle("v-locale-active",i()===z.locale)})});be();le();He();He();le();var Da=new WeakMap;function Wt(e,t){var n;return(n=ke(e,`${w.prefix}${t}`))!=null?n:ke(e,`data-v-${t}`)}function xi(e,t){return Ot(e,`${w.prefix}${t}`)||Ot(e,`data-v-${t}`)}function J(e,t){let n=Da.get(e);return n&&t in n?n[t]:Wt(e,t)}function wi(e,t,n){var o;let r=(o=Da.get(e))!=null?o:{};r[t]=n,Da.set(e,r)}function _(e){y(e,({el:t,expression:n})=>{wi(t,e,n)},{priority:j.BIND})}function fe(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function mt(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=q(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var Mh=`
|
|
139
|
+
.v-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
|
|
140
|
+
clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
141
|
+
`,Ut=null;function Ye(e){if(typeof document=="undefined")return;ne("ui-live",Mh),(!Ut||!Ut.isConnected)&&(Ut=document.createElement("div"),Ut.className="v-visually-hidden",Ut.setAttribute("role","status"),Ut.setAttribute("aria-live","polite"),document.body.appendChild(Ut));let t=Ut;t.textContent="",setTimeout(()=>{t.textContent=e},40)}function Ei(e,t,n){return Bo(e,t).filter(r=>Hn(r,n)===e)}He();le();var Sh=`
|
|
142
|
+
.v-draggable,.v-sortable>*{-webkit-user-select:none;user-select:none}
|
|
143
|
+
.v-drag-handle{cursor:grab;touch-action:none}
|
|
144
|
+
.v-drag-handle:active{cursor:grabbing}
|
|
145
|
+
|
|
146
|
+
.v-dragging{opacity:.4;pointer-events:none;outline:2px dashed var(--v-primary,#6D3BF5);
|
|
147
|
+
outline-offset:-2px;border-radius:var(--v-radius-sm,8px)}
|
|
148
|
+
.v-drag-ghost{position:fixed;top:0;left:0;margin:0;z-index:calc(var(--v-z-modal,1000) + 20);
|
|
149
|
+
pointer-events:none;opacity:.95;box-sizing:border-box;
|
|
150
|
+
box-shadow:var(--v-shadow,0 10px 30px rgba(20,17,31,.14));
|
|
151
|
+
border-radius:var(--v-radius-sm,8px);transform-origin:top left;
|
|
152
|
+
transition:transform .04s linear}
|
|
153
|
+
.v-drag-ghost.v-drag-invalid{opacity:.6;filter:grayscale(.6)}
|
|
154
|
+
|
|
155
|
+
.v-drop-over{outline:2px dashed var(--v-primary,#6D3BF5);outline-offset:2px;
|
|
156
|
+
background:var(--v-surface-2,#FBF7F2)}
|
|
157
|
+
.v-drop-active{outline:1px dashed var(--v-border,#E6E0F0);outline-offset:2px}
|
|
158
|
+
|
|
159
|
+
.v-sortable{position:relative}
|
|
160
|
+
.v-grabbed{outline:2px solid var(--v-primary,#6D3BF5);outline-offset:2px}
|
|
161
|
+
|
|
162
|
+
@media (prefers-reduced-motion: reduce){
|
|
163
|
+
.v-drag-ghost{transition:none !important}
|
|
164
|
+
}
|
|
165
|
+
`;function Xr(){he(),ne("dnd",Sh)}var tr=new Map,nr=new Map;function Pa(e,t){if(t&&t.trim())return t.trim();let n=e.closest("[data-v-dnd-group]");return(n==null?void 0:n.getAttribute("data-v-dnd-group"))||null}function vt(e){return Array.from(e.children).filter(t=>!t.classList.contains("v-drag-ghost"))}function Ah(e,t){var n;return(n=e.getAttribute("data-id"))!=null?n:e.id||String(t)}function Tu(e){return vt(e).map((t,n)=>Ah(t,n))}function Lu(e){let t=getComputedStyle(e);return t.display.includes("flex")?t.flexDirection.startsWith("row"):t.display.includes("grid")?t.gridAutoFlow.startsWith("column"):!1}var $=null,Yr=0;function Ch(e,t){let n=e.cloneNode(!0);n.classList.add("v-drag-ghost"),n.classList.remove("v-dragging","v-grabbed"),n.removeAttribute("id");for(let r of Array.from(n.querySelectorAll("[id]")))r.removeAttribute("id");return n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function Mu(e,t){if(!($!=null&&$.ghost))return;let n=$.axis==="y"?$.lastX:e,r=$.axis==="x"?$.lastY:t;$.ghost.style.transform=`translate3d(${Math.round(n-$.grabX)}px, ${Math.round(r-$.grabY)}px, 0)`}function Rh(e){let t=e;for(;t&&t!==document.body&&t!==document.documentElement;){let n=getComputedStyle(t),r=(n.overflowY==="auto"||n.overflowY==="scroll")&&t.scrollHeight>t.clientHeight+2,o=(n.overflowX==="auto"||n.overflowX==="scroll")&&t.scrollWidth>t.clientWidth+2;if(r||o)return t;t=t.parentElement}return null}function $h(){if(!$)return;let e=56,t=16,n=$.lastX,r=$.lastY,o=document.elementFromPoint(n,r),i=Rh(o!=null?o:$.overList);if(i){let s=i.getBoundingClientRect();r-s.top<e?i.scrollTop-=t:s.bottom-r<e&&(i.scrollTop+=t),n-s.left<e?i.scrollLeft-=t:s.right-n<e&&(i.scrollLeft+=t);return}r<e?window.scrollBy(0,-t):window.innerHeight-r<e&&window.scrollBy(0,t),n<e?window.scrollBy(-t,0):window.innerWidth-n<e&&window.scrollBy(t,0)}function Dh(){let e=()=>{!$||$.keyboard||($h(),Yr=requestAnimationFrame(e))};Yr=requestAnimationFrame(e)}function Hh(){Yr&&cancelAnimationFrame(Yr),Yr=0}function Su(e,t){let n=tr.get(e);return n?e===t.startList?!0:!n.group||!t.group?!1:n.group===t.group:!1}function Oa(e,t){return!(e.accept&&!t.item.matches(e.accept)||e.group&&e.group!==t.group)}function Au(e,t){for(let n of nr.values())n.el.classList.toggle("v-drop-active",t&&Oa(n,e));for(let n of tr.values())n.el.classList.toggle("v-drop-active",t&&Su(n.el,e))}function Ph(e,t,n,r){let o=Lu(e),i=null;for(let s of vt(e)){if(s===t)continue;let a=s.getBoundingClientRect(),l=o?a.left+a.width/2:a.top+a.height/2;if((o?n:r)<l){i=s;break}}if(i){(t.nextElementSibling!==i||t.parentElement!==e)&&e.insertBefore(t,i);return}e.lastElementChild!==t&&e.appendChild(t)}function Na(e,t){Xr();let n=e.getBoundingClientRect(),r=t.mode==="sort"?e.parentElement:null;$={item:e,mode:t.mode,data:t.data,group:t.group,axis:t.axis,ghost:null,pointerId:t.pointerId,grabX:t.keyboard?n.width/2:t.x-n.left,grabY:t.keyboard?n.height/2:t.y-n.top,startParent:e.parentElement,startNext:e.nextSibling,startList:r,startIndex:r?vt(r).indexOf(e):-1,overDrop:null,overList:r,keyboard:!!t.keyboard,lastX:t.x,lastY:t.y},e.classList.add("v-dragging"),e.setAttribute("aria-grabbed","true"),t.keyboard?e.classList.add("v-grabbed"):($.ghost=Ch(e,n),Mu(t.x,t.y),Dh()),Au($,!0),document.addEventListener("keydown",Ru,!0),fe(e,"voodoo:drag-start",{item:e,data:t.data,group:t.group})}function Oh(e,t){var a,l,c;if(!$)return;$.lastX=e,$.lastY=t,Mu(e,t);let n=document.elementFromPoint(e,t),r=(a=n==null?void 0:n.closest(".v-sortable"))!=null?a:null,o=(l=n==null?void 0:n.closest(".v-droppable"))!=null?l:null;$.mode==="sort"&&r&&Su(r,$)?($.overList&&$.overList!==r&&$.overList.classList.remove("v-drop-over"),$.overList=r,r.classList.add("v-drop-over"),Ph(r,$.item,e,t)):$.overList&&!r&&$.overList.classList.remove("v-drop-over");let i=o?nr.get(o):void 0,s=i?Oa(i,$):!1;$.overDrop&&$.overDrop!==o&&($.overDrop.classList.remove("v-drop-over"),$.overDrop=null),o&&s&&(o.classList.add("v-drop-over"),$.overDrop=o),(c=$.ghost)==null||c.classList.toggle("v-drag-invalid",!!o&&!s)}function Nh(e){e.startParent&&(e.startNext&&e.startNext.parentNode===e.startParent?e.startParent.insertBefore(e.item,e.startNext):e.startParent.appendChild(e.item))}function Cu(e){var t,n,r;(t=e.ghost)==null||t.remove(),e.item.classList.remove("v-dragging","v-grabbed"),e.item.setAttribute("aria-grabbed","false"),(n=e.overDrop)==null||n.classList.remove("v-drop-over"),(r=e.overList)==null||r.classList.remove("v-drop-over"),Au(e,!1),Hh(),document.removeEventListener("keydown",Ru,!0),$=null}function Fa(){var i;let e=$;if(!e)return;let t=e.item.parentElement,n=t?vt(t).indexOf(e.item):-1,r=e.overDrop,o=r?nr.get(r):void 0;if(e.mode==="sort"&&t&&tr.has(t)&&(t!==e.startList||n!==e.startIndex)){let a={item:e.item,oldIndex:e.startIndex,newIndex:n,from:e.startList,to:t,order:Tu(t)};fe(t,"voodoo:sorted",a),e.startList&&e.startList!==t&&fe(e.startList,"voodoo:sorted",{...a,order:Tu(e.startList)}),Ye(`Item moved to position ${n+1} of ${vt(t).length}`)}if(r&&o){let s={item:e.item,data:e.data,from:(i=e.startList)!=null?i:e.startParent,to:r,index:n},a=new CustomEvent("voodoo:drop",{detail:s,bubbles:!0});r.dispatchEvent(a),mt(o.expression,o.scope,r,a,s),Ye("Item dropped in drop zone")}fe(e.item,"voodoo:drag-end",{item:e.item,data:e.data}),Cu(e)}function Ha(){let e=$;e&&(Nh(e),fe(e.item,"voodoo:drag-cancel",{item:e.item}),Ye("Drag canceled"),Cu(e))}function Ru(e){!$||e.key!=="Escape"||(e.preventDefault(),Ha())}function $u(e,t,n){let r=null,o=-1,i=0,s=0,a=!1,l=f=>{if(f.pointerId===o){if(!a){if(Math.hypot(f.clientX-i,f.clientY-s)<4||!r)return;a=!0,Na(r,{mode:t.mode,data:t.data(),group:t.group(),axis:t.axis(),pointerId:o,x:i,y:s})}f.preventDefault(),Oh(f.clientX,f.clientY)}},c=()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",u),r=null,o=-1,a=!1},d=f=>{f.pointerId===o&&(a&&Fa(),c())},u=()=>{a&&Ha(),c()},p=f=>{if(f.button!==0||$)return;let m=f.target;if(!m||m.closest('input,textarea,select,option,[contenteditable="true"]')||t.handle&&!m.closest(t.handle))return;let h=t.itemFrom(m);h&&(r=h,o=f.pointerId,i=f.clientX,s=f.clientY,a=!1,window.addEventListener("pointermove",l,{passive:!1}),window.addEventListener("pointerup",d),window.addEventListener("pointercancel",u))};e.addEventListener("pointerdown",p),n(()=>{e.removeEventListener("pointerdown",p),a&&Ha(),c()})}function Fh(e){return e?Array.from(tr.values()).filter(t=>t.group===e).map(t=>t.el).sort((t,n)=>t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1):[]}function Ih(e,t){if(!$)return!1;let n=e.parentElement;if(!n)return!1;let r=Lu(n),o=t==="ArrowDown"||r&&t==="ArrowRight",i=t==="ArrowUp"||r&&t==="ArrowLeft",s=vt(n),a=s.indexOf(e);if(o||i){let l=a+(o?1:-1);return l<0||l>=s.length?!1:(o?n.insertBefore(e,s[l].nextSibling):n.insertBefore(e,s[l]),Ye(`Position ${l+1} of ${s.length}`),e.focus(),!0)}if(!r&&(t==="ArrowLeft"||t==="ArrowRight")){let l=Fh($.group),c=l.indexOf(n);if(c===-1)return!1;let d=l[c+(t==="ArrowRight"?1:-1)];return d?(d.appendChild(e),Ye(`Moved to list ${l.indexOf(d)+1} of ${l.length}`),e.focus(),!0):!1}return!1}function zh(e){return Array.from(nr.values()).filter(t=>Oa(t,e)).map(t=>t.el)}y("dnd-group",({el:e,expression:t})=>{Xr();let n=t.trim()||"default";e.setAttribute("data-v-dnd-group",n),e.classList.add("v-dnd-group")});y("sortable",({el:e,expression:t,cleanup:n})=>{Xr(),e.classList.add("v-sortable");let r=J(e,"sortable-handle")||t.trim()||null,o={el:e,group:Pa(e,J(e,"sortable-group")),handle:r};tr.set(e,o),e.hasAttribute("aria-label")||e.setAttribute("aria-label","Sortable list");let i=l=>{var c;l.hasAttribute("tabindex")||l.setAttribute("tabindex","0"),l.hasAttribute("aria-grabbed")||l.setAttribute("aria-grabbed","false"),r?(c=l.querySelector(r))==null||c.classList.add("v-drag-handle"):l.classList.add("v-drag-handle")};for(let l of vt(e))i(l);let s=typeof MutationObserver=="undefined"?null:new MutationObserver(()=>{for(let l of vt(e))i(l)});s==null||s.observe(e,{childList:!0}),$u(e,{mode:"sort",handle:r,group:()=>o.group,data:()=>null,axis:()=>null,itemFrom:l=>{let c=vt(e).find(d=>d===l||d.contains(l));return c!=null?c:null}},n);let a=l=>{let c=l.target;if(!c)return;let d=vt(e).find(u=>u===c||u.contains(c));if(d){if(l.key===" "||l.key==="Spacebar"){if(l.preventDefault(),$&&$.item===d){Fa(),Ye("Item dropped");return}if($)return;Na(d,{mode:"sort",data:null,group:o.group,axis:null,pointerId:-1,x:0,y:0,keyboard:!0}),Ye("Item grabbed. Use arrow keys to move and space to drop.");return}!$||$.item!==d||l.key.startsWith("Arrow")&&Ih(d,l.key)&&l.preventDefault()}};e.addEventListener("keydown",a),n(()=>{e.removeEventListener("keydown",a),s==null||s.disconnect(),tr.delete(e)})});_("sortable-group");_("sortable-handle");y("draggable",({el:e,expression:t,scope:n,cleanup:r})=>{var m;Xr(),e.classList.add("v-draggable");let o=J(e,"draggable-handle")||null,i=(J(e,"draggable-axis")||"").trim().toLowerCase(),s=i==="x"||i==="y"?i:null,a=J(e,"draggable-data")||t.trim(),l=Pa(e,J(e,"draggable-group"));o?(m=e.querySelector(o))==null||m.classList.add("v-drag-handle"):e.classList.add("v-drag-handle"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.setAttribute("aria-grabbed","false"),e.hasAttribute("aria-roledescription")||e.setAttribute("aria-roledescription","draggable item");let c=()=>a?q(a,n,"v-draggable-data"):null;$u(e,{mode:"free",handle:o,group:()=>l,data:c,axis:()=>s,itemFrom:()=>e},r);let d=[],u=0,p=()=>{d.forEach((v,g)=>v.classList.toggle("v-drop-over",g===u));let h=d[u];!h||!$||($.overDrop=h,me.reducedMotion?h.scrollIntoView({block:"nearest"}):h.scrollIntoView({block:"nearest",behavior:"smooth"}),Ye(h.getAttribute("aria-label")||`Target ${u+1} of ${d.length}`))},f=h=>{if(h.key===" "||h.key==="Spacebar"){if(h.preventDefault(),$&&$.item===e){Fa(),d=[];return}if($)return;Na(e,{mode:"free",data:c(),group:l,axis:s,pointerId:-1,x:0,y:0,keyboard:!0}),d=$?zh($):[],u=0,d.length?p():Ye("No targets available");return}if(!(!$||$.item!==e||!d.length)){if(h.key==="ArrowDown"||h.key==="ArrowRight"){h.preventDefault(),u=(u+1)%d.length,p();return}(h.key==="ArrowUp"||h.key==="ArrowLeft")&&(h.preventDefault(),u=(u-1+d.length)%d.length,p())}};e.addEventListener("keydown",f),r(()=>{e.removeEventListener("keydown",f);for(let h of d)h.classList.remove("v-drop-over")})});_("draggable-handle");_("draggable-axis");_("draggable-data");_("draggable-group");y("droppable",({el:e,expression:t,scope:n,cleanup:r})=>{Xr(),e.classList.add("v-droppable");let o={el:e,group:Pa(e,J(e,"droppable-group")),accept:J(e,"droppable-accept"),expression:t,scope:n};nr.set(e,o),e.hasAttribute("aria-dropeffect")||e.setAttribute("aria-dropeffect","move"),r(()=>{nr.delete(e),e.classList.remove("v-drop-over","v-drop-active")})});_("droppable-accept");_("droppable-group");var Bh=`
|
|
166
|
+
.v-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
|
|
167
|
+
clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
168
|
+
.v-focus-ring:focus-visible{outline:2px solid var(--v-primary,#6D3BF5);outline-offset:2px;
|
|
169
|
+
border-radius:var(--v-radius-sm,8px)}
|
|
170
|
+
.v-scroll-lock{overflow:hidden !important}
|
|
171
|
+
|
|
172
|
+
.v-tooltip,.v-popover{position:fixed;z-index:var(--v-z-tooltip,1200);opacity:0;
|
|
173
|
+
transition:opacity .14s var(--v-ease,ease),transform .14s var(--v-ease,ease)}
|
|
174
|
+
.v-tooltip{max-width:min(280px,80vw);padding:6px 10px;border-radius:var(--v-radius-sm,8px);
|
|
175
|
+
background:var(--v-text,#14111F);color:var(--v-surface,#fff);pointer-events:none;
|
|
176
|
+
font:500 12.5px/1.45 var(--v-font-sans,system-ui,sans-serif);box-shadow:var(--v-shadow,0 10px 30px rgba(20,17,31,.14))}
|
|
177
|
+
.v-tooltip[data-placement="top"]{transform:translateY(4px)}
|
|
178
|
+
.v-tooltip[data-placement="bottom"]{transform:translateY(-4px)}
|
|
179
|
+
.v-tooltip[data-placement="left"]{transform:translateX(4px)}
|
|
180
|
+
.v-tooltip[data-placement="right"]{transform:translateX(-4px)}
|
|
181
|
+
.v-tooltip.v-in,.v-popover.v-in{opacity:1;transform:none}
|
|
182
|
+
.v-popover{z-index:var(--v-z-dropdown,900);background:var(--v-surface,#fff);color:var(--v-text,#14111F);
|
|
183
|
+
border:1px solid var(--v-border,#E6E0F0);border-radius:var(--v-radius,12px);
|
|
184
|
+
box-shadow:var(--v-shadow,0 10px 30px rgba(20,17,31,.14));transform:translateY(-4px)}
|
|
185
|
+
.v-popover[hidden],.v-dropdown-menu[hidden]{display:none !important}
|
|
186
|
+
|
|
187
|
+
.v-dropdown-menu{position:fixed;z-index:var(--v-z-dropdown,900);min-width:180px;padding:6px;margin:0;
|
|
188
|
+
background:var(--v-surface,#fff);color:var(--v-text,#14111F);border:1px solid var(--v-border,#E6E0F0);
|
|
189
|
+
border-radius:var(--v-radius,12px);box-shadow:var(--v-shadow,0 10px 30px rgba(20,17,31,.14));
|
|
190
|
+
opacity:0;transform:translateY(-4px);transition:opacity .14s var(--v-ease,ease),transform .14s var(--v-ease,ease)}
|
|
191
|
+
.v-dropdown-menu.v-in{opacity:1;transform:none}
|
|
192
|
+
.v-dropdown-menu [role="menuitem"]{display:block;width:100%;text-align:left;background:none;border:0;
|
|
193
|
+
padding:8px 10px;border-radius:var(--v-radius-sm,8px);color:inherit;cursor:pointer;
|
|
194
|
+
font:500 14px/1.35 var(--v-font-sans,system-ui,sans-serif);text-decoration:none}
|
|
195
|
+
.v-dropdown-menu [role="menuitem"]:hover,.v-dropdown-menu [role="menuitem"]:focus-visible{
|
|
196
|
+
background:var(--v-surface-2,#FBF7F2);outline:none;color:var(--v-primary,#6D3BF5)}
|
|
197
|
+
|
|
198
|
+
.v-tab{cursor:pointer}
|
|
199
|
+
[role="tabpanel"][hidden]{display:none !important}
|
|
200
|
+
|
|
201
|
+
.v-accordion-header{display:flex;align-items:center;justify-content:space-between;gap:12px;
|
|
202
|
+
width:100%;cursor:pointer;text-align:left}
|
|
203
|
+
.v-accordion-header::after{content:"";flex:none;width:8px;height:8px;border-right:2px solid currentColor;
|
|
204
|
+
border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);
|
|
205
|
+
transition:transform .2s var(--v-ease,ease);opacity:.6}
|
|
206
|
+
.v-accordion-header[aria-expanded="true"]::after{transform:rotate(-135deg) translateY(-2px)}
|
|
207
|
+
|
|
208
|
+
.v-drawer-backdrop{position:fixed;inset:0;background:rgba(20,17,31,.45);opacity:0;
|
|
209
|
+
z-index:var(--v-z-drawer,1000);transition:opacity .24s var(--v-ease,ease)}
|
|
210
|
+
.v-drawer-backdrop.v-in{opacity:1}
|
|
211
|
+
.v-drawer-panel{position:fixed;display:flex;flex-direction:column;overflow:auto;
|
|
212
|
+
z-index:calc(var(--v-z-drawer,1000) + 1);background:var(--v-surface,#fff);color:var(--v-text,#14111F);
|
|
213
|
+
box-shadow:var(--v-shadow,0 10px 30px rgba(20,17,31,.14));
|
|
214
|
+
transition:transform .28s var(--v-ease,ease)}
|
|
215
|
+
.v-drawer-panel[hidden]{display:none !important}
|
|
216
|
+
.v-drawer-panel[data-side="left"]{top:0;left:0;height:100%;width:min(360px,86vw);transform:translateX(-100%)}
|
|
217
|
+
.v-drawer-panel[data-side="right"]{top:0;right:0;height:100%;width:min(360px,86vw);transform:translateX(100%)}
|
|
218
|
+
.v-drawer-panel[data-side="top"]{top:0;left:0;width:100%;max-height:86vh;transform:translateY(-100%)}
|
|
219
|
+
.v-drawer-panel[data-side="bottom"]{bottom:0;left:0;width:100%;max-height:86vh;transform:translateY(100%)}
|
|
220
|
+
.v-drawer-panel.v-open{transform:none}
|
|
221
|
+
|
|
222
|
+
.v-skeleton{position:relative;min-height:1em;border-radius:var(--v-radius-sm,8px);color:transparent !important;
|
|
223
|
+
background:linear-gradient(90deg,var(--v-surface-2,#FBF7F2) 25%,var(--v-border,#E6E0F0) 37%,var(--v-surface-2,#FBF7F2) 63%);
|
|
224
|
+
background-size:400% 100%;animation:v-skeleton-wave 1.4s ease infinite}
|
|
225
|
+
.v-skeleton>*{visibility:hidden}
|
|
226
|
+
@keyframes v-skeleton-wave{0%{background-position:100% 50%}100%{background-position:0 50%}}
|
|
227
|
+
|
|
228
|
+
.v-lazy{opacity:0;transition:opacity .35s var(--v-ease,ease)}
|
|
229
|
+
.v-lazy-loaded{opacity:1}
|
|
230
|
+
.v-lazy-failed{opacity:1;filter:grayscale(1)}
|
|
231
|
+
|
|
232
|
+
.v-copied,.v-copy-failed{position:relative}
|
|
233
|
+
.v-copied::after,.v-copy-failed::after{content:attr(data-v-copy-label);position:absolute;left:50%;
|
|
234
|
+
bottom:calc(100% + 6px);transform:translateX(-50%);padding:5px 8px;border-radius:6px;white-space:nowrap;
|
|
235
|
+
pointer-events:none;color:#0B1F1A;background:var(--v-success,#2ED9A5);
|
|
236
|
+
font:600 11px/1 var(--v-font-sans,system-ui,sans-serif)}
|
|
237
|
+
.v-copy-failed::after{background:var(--v-danger,#FF4D4D);color:#fff}
|
|
238
|
+
|
|
239
|
+
.v-sticky{position:sticky;top:var(--v-sticky-offset,0px);z-index:5}
|
|
240
|
+
.v-stuck{box-shadow:var(--v-shadow,0 10px 30px rgba(20,17,31,.14))}
|
|
241
|
+
|
|
242
|
+
.v-resizable{position:relative}
|
|
243
|
+
.v-resize-handle{position:absolute;background:transparent;touch-action:none;padding:0;border:0}
|
|
244
|
+
.v-resize-handle:focus-visible{outline:2px solid var(--v-primary,#6D3BF5);outline-offset:-2px}
|
|
245
|
+
.v-resize-handle[data-dir="right"]{top:0;right:-3px;width:8px;height:100%;cursor:ew-resize}
|
|
246
|
+
.v-resize-handle[data-dir="bottom"]{left:0;bottom:-3px;height:8px;width:100%;cursor:ns-resize}
|
|
247
|
+
.v-resize-handle[data-dir="corner"]{right:-3px;bottom:-3px;width:14px;height:14px;cursor:nwse-resize}
|
|
248
|
+
|
|
249
|
+
.v-command{position:fixed;inset:0;z-index:var(--v-z-modal,1000);display:flex;justify-content:center;
|
|
250
|
+
align-items:flex-start;padding:12vh 16px 16px;background:rgba(20,17,31,.45)}
|
|
251
|
+
.v-command-box{width:min(560px,100%);background:var(--v-surface,#fff);border:1px solid var(--v-border,#E6E0F0);
|
|
252
|
+
border-radius:var(--v-radius,12px);box-shadow:var(--v-shadow,0 10px 30px rgba(20,17,31,.14));overflow:hidden}
|
|
253
|
+
.v-command-input{display:block;width:100%;padding:14px 16px;border:0;border-bottom:1px solid var(--v-border,#E6E0F0);
|
|
254
|
+
background:transparent;color:var(--v-text,#14111F);outline:none;
|
|
255
|
+
font:500 15px/1.4 var(--v-font-sans,system-ui,sans-serif)}
|
|
256
|
+
.v-command-list{list-style:none;margin:0;padding:6px;max-height:min(46vh,340px);overflow:auto}
|
|
257
|
+
.v-command-option{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;
|
|
258
|
+
border-radius:var(--v-radius-sm,8px);cursor:pointer;color:var(--v-text,#14111F);
|
|
259
|
+
font:500 14px/1.35 var(--v-font-sans,system-ui,sans-serif)}
|
|
260
|
+
.v-command-option[aria-selected="true"]{background:var(--v-surface-2,#FBF7F2);color:var(--v-primary,#6D3BF5)}
|
|
261
|
+
.v-command-hint{color:var(--v-text-muted,#6B6580);font-size:12px}
|
|
262
|
+
.v-command-empty{padding:18px;text-align:center;color:var(--v-text-muted,#6B6580);
|
|
263
|
+
font:500 14px/1.4 var(--v-font-sans,system-ui,sans-serif)}
|
|
264
|
+
|
|
265
|
+
@media (prefers-reduced-motion: reduce){
|
|
266
|
+
.v-tooltip,.v-popover,.v-dropdown-menu,.v-drawer-panel,.v-drawer-backdrop,.v-lazy,.v-accordion-header::after{
|
|
267
|
+
transition-duration:.01ms !important}
|
|
268
|
+
.v-skeleton{animation-duration:.01ms !important}
|
|
269
|
+
}
|
|
270
|
+
`;function xe(){he(),ne("ui",Bh)}function rr(e,t){var r;let n=t.trim();if(n)try{let o=document.querySelector(n);if(o)return o}catch(o){}return(r=e.nextElementSibling)!=null?r:null}function St(e,t){return e.id||(e.id=ae(`${t}-`)),e.id}var Iu='a[href],area[href],button:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),iframe,object,embed,summary,[contenteditable="true"],[tabindex]:not([tabindex="-1"])';function Gr(e){return Array.from(e.querySelectorAll(Iu)).filter(t=>!t.hasAttribute("disabled")&&t.getClientRects().length>0)}function Li(e,t){let n=Gr(e);if(!n.length){t.preventDefault(),e.focus();return}let r=n[0],o=n[n.length-1],i=document.activeElement;if(t.shiftKey&&(i===r||!e.contains(i))){t.preventDefault(),o.focus();return}!t.shiftKey&&i===o&&(t.preventDefault(),r.focus())}function Ie(e,t){let n=e.tagName;if(n==="BUTTON"||n==="A"||n==="INPUT"||n==="SUMMARY"){e.classList.add("v-focus-ring");return}e.hasAttribute("role")||e.setAttribute("role","button"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.classList.add("v-focus-ring");let r=o=>{o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),e.click())};e.addEventListener("keydown",r),t(()=>e.removeEventListener("keydown",r))}var Ia=0,zu="";function Bu(){if(Ia++>0)return;let e=window.innerWidth-document.documentElement.clientWidth;zu=document.body.style.paddingRight,e>0&&(document.body.style.paddingRight=`${e}px`),document.body.classList.add("v-scroll-lock")}function ju(){Ia!==0&&(--Ia>0||(document.body.classList.remove("v-scroll-lock"),document.body.style.paddingRight=zu))}function qu(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function jh(e,t=!0){if(e.removeAttribute("hidden"),t&&!me.reducedMotion){_n(e);return}e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block")}function qh(e,t=!0){if(t&&!me.reducedMotion){Kn(e);return}e.style.display="none"}var Vh={top:"bottom",bottom:"top",left:"right",right:"left"};function Vu(e,t){let n=(e||"").trim().toLowerCase();return n==="top"||n==="bottom"||n==="left"||n==="right"?n:t}function Uu(e,t,n,r="center",o=8){t.style.position="fixed",t.style.left="0px",t.style.top="0px";let i=e.getBoundingClientRect(),s=t.getBoundingClientRect(),a=document.documentElement.clientWidth,l=document.documentElement.clientHeight,c={top:i.top,bottom:l-i.bottom,left:i.left,right:a-i.right},d={top:s.height+o,bottom:s.height+o,left:s.width+o,right:s.width+o},u=n;if(c[u]<d[u]){let m=Vh[u];if(c[m]>=d[m])u=m;else for(let h of Object.keys(c))c[h]-d[h]>c[u]-d[u]&&(u=h)}let p=0,f=0;return u==="top"||u==="bottom"?(p=u==="top"?i.top-s.height-o:i.bottom+o,f=r==="start"?i.left:i.left+i.width/2-s.width/2,r==="start"&&f+s.width>a-o&&(f=i.right-s.width)):(f=u==="left"?i.left-s.width-o:i.right+o,p=r==="start"?i.top:i.top+i.height/2-s.height/2),f=Math.min(Math.max(o,f),Math.max(o,a-s.width-o)),p=Math.min(Math.max(o,p),Math.max(o,l-s.height-o)),t.style.left=`${Math.round(f)}px`,t.style.top=`${Math.round(p)}px`,t.setAttribute("data-placement",u),u}var ki=[],Du=!1,Uh={esc:"escape",space:" ",spacebar:" ",enter:"enter",ret:"enter",del:"delete",ins:"insert",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",plus:"+",minus:"-",comma:",",period:".",slash:"/",question:"?"},Wh=typeof navigator!="undefined"&&/Mac|iPhone|iPad|iPod/i.test(navigator.userAgent||"");function ja(e){var r;let t=e.trim().toLowerCase().split("+").map(o=>o.trim()).filter(Boolean);if(!t.length)return null;let n={ctrl:!1,shift:!1,alt:!1,meta:!1,key:"",hasModifier:!1};for(let o of t)o==="ctrl"||o==="control"?n.ctrl=!0:o==="shift"?n.shift=!0:o==="alt"||o==="option"?n.alt=!0:o==="meta"||o==="cmd"||o==="command"||o==="super"?n.meta=!0:o==="mod"?Wh?n.meta=!0:n.ctrl=!0:n.key=(r=Uh[o])!=null?r:o;return n.key?(n.hasModifier=n.ctrl||n.alt||n.meta,n):null}function _h(e,t){return e.ctrl!==t.ctrlKey||e.alt!==t.altKey||e.meta!==t.metaKey||t.key.toLowerCase()!==e.key?!1:e.key.length===1&&!/^[a-z0-9 ]$/.test(e.key)?e.shift?t.shiftKey:!0:e.shift===t.shiftKey}function Kh(e){let t=e;return!t||typeof t.tagName!="string"?!1:t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.tagName==="SELECT"?!0:t.isContentEditable===!0}function Wu(e){let t=[];return e.ctrl&&t.push("Control"),e.alt&&t.push("Alt"),e.shift&&t.push("Shift"),e.meta&&t.push("Meta"),t.push(e.key===" "?"Space":e.key.length===1?e.key.toUpperCase():e.key),t.join("+")}function Yh(e){if(e.defaultPrevented)return;let t=Kh(e.target);for(let n of[...ki])for(let r of n.combos)if(_h(r,e)&&!(t&&!n.options.allowInInput&&!r.hasModifier)){n.options.preventDefault!==!1&&e.preventDefault(),n.handler(e);break}}function Qr(e,t,n={}){let r=e.split(",").map(i=>ja(i)).filter(i=>i!==null);if(!r.length||typeof document=="undefined")return()=>{};let o={combos:r,handler:t,options:n};return ki.push(o),Du||(Du=!0,document.addEventListener("keydown",Yh)),()=>{let i=ki.indexOf(o);i>-1&&ki.splice(i,1)}}y("toggle",({el:e,expression:t,modifiers:n,cleanup:r})=>{xe();let o=rr(e,t);if(!o)return;let i=typeof n.class=="string"?n.class:null,s=!n.instant;e.setAttribute("aria-controls",St(o,"v-toggle")),Ie(e,r);let a=i?o.classList.contains(i):!qu(o),l=()=>{e.setAttribute("aria-expanded",String(a))},c=d=>{d.preventDefault(),i?(o.classList.toggle(i),a=o.classList.contains(i)):a?(qh(o,s),a=!1):(jh(o,s),a=!0),l(),fe(e,"voodoo:toggle",{target:o,open:a})};l(),e.addEventListener("click",c),r(()=>e.removeEventListener("click",c))});var za=class{constructor(t){H(this,"panel");H(this,"triggers",new Set);H(this,"listeners",new Set);H(this,"open");H(this,"duration");this.panel=t,this.duration=G(J(t,"collapse-duration"),240);let n=(J(t,"collapse")||"").trim().toLowerCase();this.open=n==="open"||n==="true"||!qu(t),t.classList.add("v-collapse-panel"),St(t,"v-collapse"),this.open||(t.style.display="none"),this.sync()}sync(){for(let t of this.triggers)t.setAttribute("aria-expanded",String(this.open)),t.setAttribute("aria-controls",this.panel.id);for(let t of this.listeners)t(this.open)}show(){this.open||(this.open=!0,this.panel.removeAttribute("hidden"),me.reducedMotion?this.panel.style.removeProperty("display"):cn(this.panel,this.duration),this.sync(),fe(this.panel,"voodoo:collapse",{open:!0}))}hide(){this.open&&(this.open=!1,me.reducedMotion?this.panel.style.display="none":dn(this.panel,this.duration),this.sync(),fe(this.panel,"voodoo:collapse",{open:!1}))}toggle(){this.open?this.hide():this.show()}},Hu=new WeakMap;function qa(e){let t=Hu.get(e);return t||Hu.set(e,t=new za(e)),t}y("collapse",({el:e})=>{xe(),qa(e)});y("collapse-toggle",({el:e,expression:t,cleanup:n})=>{xe();let r=rr(e,t);if(!r)return;let o=qa(r);o.triggers.add(e),o.sync(),Ie(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})});_("collapse-duration");var Ti=class{constructor(t,n,r){H(this,"trigger");H(this,"panel");H(this,"kind");H(this,"placement");H(this,"open",!1);H(this,"lastFocus",null);H(this,"homeParent");H(this,"homeNext");H(this,"reposition",()=>{this.open&&Uu(this.trigger,this.panel,this.placement,this.kind==="menu"?"start":"center")});H(this,"onDocumentPointerDown",t=>{let n=t.target;n&&(this.panel.contains(n)||this.trigger.contains(n)||this.hide())});H(this,"onKeyDown",t=>{if(!this.open)return;if(t.key==="Escape"){t.preventDefault(),this.hide(!0);return}if(this.kind!=="menu"){t.key==="Tab"&&Li(this.panel,t);return}let n=this.items();if(!n.length)return;let r=n.indexOf(document.activeElement);if(t.key==="Enter"||t.key===" "){let o=n[r];if(!o)return;t.preventDefault(),this.hide(!0),o.click();return}if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault();let o=t.key==="ArrowDown"?1:-1,i=(r+o+n.length)%n.length;n[r===-1&&o===-1?n.length-1:i].focus();return}if(t.key==="Home"){t.preventDefault(),n[0].focus();return}if(t.key==="End"){t.preventDefault(),n[n.length-1].focus();return}t.key==="Tab"&&this.hide()});this.trigger=t,this.panel=n,this.kind=r,this.homeParent=n.parentElement,this.homeNext=n.nextSibling,this.placement=Vu(J(t,r==="menu"?"dropdown-position":"popover-position"),"bottom"),St(n,r==="menu"?"v-menu":"v-popover"),n.classList.add(r==="menu"?"v-dropdown-menu":"v-popover"),n.hidden=!0,r==="menu"?_u(n):n.setAttribute("role","dialog"),t.setAttribute("aria-haspopup",r==="menu"?"menu":"dialog"),t.setAttribute("aria-controls",n.id),t.setAttribute("aria-expanded","false")}items(){return Array.from(this.panel.querySelectorAll('[role="menuitem"]'))}show(){var t;this.open||(this.open=!0,this.lastFocus=document.activeElement,this.panel.parentElement!==document.body&&document.body.appendChild(this.panel),this.panel.hidden=!1,this.reposition(),requestAnimationFrame(()=>this.panel.classList.add("v-in")),this.trigger.setAttribute("aria-expanded","true"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!0),document.addEventListener("keydown",this.onKeyDown,!0),window.addEventListener("resize",this.reposition),window.addEventListener("scroll",this.reposition,!0),this.kind==="dialog"&&((t=Gr(this.panel)[0])==null||t.focus()),fe(this.trigger,"voodoo:popup",{open:!0,panel:this.panel}))}hide(t=!1){var r;if(!this.open)return;this.open=!1,this.panel.classList.remove("v-in"),this.trigger.setAttribute("aria-expanded","false"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!0),document.removeEventListener("keydown",this.onKeyDown,!0),window.removeEventListener("resize",this.reposition),window.removeEventListener("scroll",this.reposition,!0);let n=()=>{this.open||(this.panel.hidden=!0)};me.reducedMotion?n():setTimeout(n,160),t&&((r=this.lastFocus)!=null?r:this.trigger).focus(),fe(this.trigger,"voodoo:popup",{open:!1,panel:this.panel})}toggle(){this.open?this.hide(!0):this.show()}dispose(){this.hide(),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!0),document.removeEventListener("keydown",this.onKeyDown,!0),window.removeEventListener("resize",this.reposition),window.removeEventListener("scroll",this.reposition,!0),!(!this.homeParent||this.panel.parentElement===this.homeParent)&&(this.homeNext&&this.homeNext.parentNode===this.homeParent?this.homeParent.insertBefore(this.panel,this.homeNext):this.homeParent.appendChild(this.panel))}};function _u(e){xe(),e.classList.add("v-dropdown-menu"),e.hasAttribute("role")||e.setAttribute("role","menu");for(let t of Array.from(e.children)){let n=t;n.hasAttribute("role")||n.matches("a,button,[tabindex]")&&(n.setAttribute("role","menuitem"),n.setAttribute("tabindex","-1"))}}y("dropdown-menu",({el:e})=>{_u(e)});y("dropdown",({el:e,expression:t,cleanup:n})=>{xe();let r=rr(e,t);if(!r)return;let o=new Ti(e,r,"menu");Ie(e,n);let i=a=>{a.preventDefault(),o.toggle()},s=a=>{var c;if(a.key==="ArrowDown"||a.key==="ArrowUp"){a.preventDefault(),o.open||o.show();let d=o.items();d.length&&d[a.key==="ArrowDown"?0:d.length-1].focus();return}if(a.key!=="Enter"&&a.key!==" ")return;let l=a.defaultPrevented;a.preventDefault(),l||o.toggle(),o.open&&((c=o.items()[0])==null||c.focus())};e.addEventListener("click",i),e.addEventListener("keydown",s),n(()=>{e.removeEventListener("click",i),e.removeEventListener("keydown",s),o.dispose()})});y("popover",({el:e,expression:t,cleanup:n})=>{xe();let r=rr(e,t);if(!r)return;let o=new Ti(e,r,"dialog");Ie(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.dispose()})});_("dropdown-position");_("popover-position");y("tooltip",({el:e,expression:t,cleanup:n})=>{xe();let r=t.trim();if(!r)return;let o=Vu(J(e,"tooltip-position"),"top"),i=G(J(e,"tooltip-delay"),200),s=!e.hasAttribute("tabindex")&&!e.hasAttribute("disabled")&&!e.matches(Iu);s&&e.setAttribute("tabindex","0");let a=null,l=null,c=()=>{let v=document.createElement("div");return v.className="v-tooltip",v.setAttribute("role","tooltip"),v.id=ae("v-tip-"),v.textContent=r,document.body.appendChild(v),v},d=()=>{a&&Uu(e,a,o)},u=()=>{a||(a=c(),e.setAttribute("aria-describedby",a.id),d(),requestAnimationFrame(()=>a==null?void 0:a.classList.add("v-in")),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0))},p=()=>{if(l&&(clearTimeout(l),l=null),!a)return;let v=a;a=null,e.removeAttribute("aria-describedby"),window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0),v.classList.remove("v-in"),me.reducedMotion?v.remove():setTimeout(()=>v.remove(),160)},f=()=>{l||a||(l=setTimeout(()=>{l=null,u()},i))},m=v=>{v.key==="Escape"&&p()},h=()=>{s&&e.focus()};e.addEventListener("mouseenter",f),e.addEventListener("focusin",u),e.addEventListener("pointerdown",h),e.addEventListener("mouseleave",p),e.addEventListener("focusout",p),e.addEventListener("keydown",m),n(()=>{p(),s&&e.removeAttribute("tabindex"),e.removeEventListener("mouseenter",f),e.removeEventListener("focusin",u),e.removeEventListener("pointerdown",h),e.removeEventListener("mouseleave",p),e.removeEventListener("focusout",p),e.removeEventListener("keydown",m)})});_("tooltip-position");_("tooltip-delay");y("tabs",({el:e,expression:t,cleanup:n})=>{xe();let r=Ei(e,"tab","tabs"),o=Ei(e,"tab-panel","tabs");if(!r.length)return;let i=(v,g)=>Wt(v,"tab")||String(g),s=r[0].parentElement;s&&!s.hasAttribute("role")&&s.setAttribute("role","tablist");let a=((s==null?void 0:s.getAttribute("aria-orientation"))||"").trim().toLowerCase()==="vertical";s==null||s.setAttribute("aria-orientation",a?"vertical":"horizontal");let l=xi(e,"tabs-url")?Wt(e,"tabs-url")||"tab":null;r.forEach((v,g)=>{let b=i(v,g),x=o.find(T=>Wt(T,"tab-panel")===b);v.classList.add("v-tab","v-focus-ring"),v.setAttribute("role","tab"),St(v,"v-tab"),x&&(St(x,"v-panel"),x.setAttribute("role","tabpanel"),x.setAttribute("aria-labelledby",v.id),v.setAttribute("aria-controls",x.id))});let c="",d=(v,g=!1)=>{if(r.some((b,x)=>i(b,x)===v)){c=v,r.forEach((b,x)=>{let T=i(b,x)===v;b.setAttribute("aria-selected",String(T)),b.setAttribute("tabindex",T?"0":"-1"),b.classList.toggle("v-active",T),T&&g&&b.focus()});for(let b of o)b.hidden=Wt(b,"tab-panel")!==v;l&&jt.set(l,v),fe(e,"voodoo:tab",{id:v})}},u=v=>{let g=Hn(v.target,"tab");!g||!r.includes(g)||(v.preventDefault(),d(i(g,r.indexOf(g))))},p=v=>{let g=Hn(v.target,"tab");if(!g||!r.includes(g))return;let b=r.indexOf(g),x=a?"ArrowDown":"ArrowRight",T=a?"ArrowUp":"ArrowLeft",k=-1;v.key===x?k=(b+1)%r.length:v.key===T?k=(b-1+r.length)%r.length:v.key==="Home"?k=0:v.key==="End"&&(k=r.length-1),k!==-1&&(v.preventDefault(),d(i(r[k],k),!0))},f=()=>{if(!l)return;let v=jt.get(l);v&&v!==c&&d(v)};e.addEventListener("click",u),e.addEventListener("keydown",p),window.addEventListener("popstate",f),n(()=>{e.removeEventListener("click",u),e.removeEventListener("keydown",p),window.removeEventListener("popstate",f)});let h=(l?jt.get(l):void 0)||t.trim()||i(r[0],0);d(h),c||d(i(r[0],0))});_("tab");_("tab-panel");_("tabs-url");y("accordion",({el:e,cleanup:t})=>{xe();let n=Ei(e,"accordion-item","accordion");if(!n.length)return;let r=xi(e,"accordion-single"),o=[],i=[];for(let l of n){let c=l.firstElementChild,d=l.lastElementChild;if(!c||!d||c===d)continue;let u=(Wt(l,"accordion-item")||"").trim().toLowerCase();u!=="open"&&u!=="true"&&(d.style.display="none");let p=qa(d);p.triggers.add(c),p.sync(),c.classList.add("v-accordion-header","v-focus-ring"),c.hasAttribute("role")||c.setAttribute("role","button"),c.hasAttribute("tabindex")||c.setAttribute("tabindex","0"),St(d,"v-accordion-panel"),c.setAttribute("aria-controls",d.id),c.setAttribute("aria-expanded",String(p.open)),n.length<=6&&!d.hasAttribute("role")&&(d.setAttribute("role","region"),d.setAttribute("aria-labelledby",St(c,"v-accordion-header"))),o.push(c),i.push(p)}let s=l=>{var p;let c=(p=l.target)==null?void 0:p.closest(".v-accordion-header");if(!c)return;let d=o.indexOf(c);if(d===-1)return;l.preventDefault();let u=i[d];if(r&&!u.open)for(let f of i)f!==u&&f.hide();u.toggle()},a=l=>{var p;let c=(p=l.target)==null?void 0:p.closest(".v-accordion-header");if(!c)return;let d=o.indexOf(c);if(d===-1)return;if(l.key==="Enter"||l.key===" "){l.preventDefault(),c.click();return}let u=-1;l.key==="ArrowDown"?u=(d+1)%o.length:l.key==="ArrowUp"?u=(d-1+o.length)%o.length:l.key==="Home"?u=0:l.key==="End"&&(u=o.length-1),u!==-1&&(l.preventDefault(),o[u].focus())};e.addEventListener("click",s),e.addEventListener("keydown",a),t(()=>{e.removeEventListener("click",s),e.removeEventListener("keydown",a)})});_("accordion-item");_("accordion-single");var Ba=class{constructor(t){H(this,"origem",null);H(this,"panel");H(this,"triggers",new Set);H(this,"open",!1);H(this,"backdrop",null);H(this,"lastFocus",null);H(this,"onKeyDown",t=>{if(this.open){if(t.key==="Escape"){t.preventDefault(),this.hide();return}t.key==="Tab"&&Li(this.panel,t)}});H(this,"onPointerDown",t=>{let n=t.target;if(!(!n||this.panel.contains(n))){for(let r of this.triggers)if(r.contains(n))return;this.hide()}});this.panel=t;let n=(J(t,"drawer-side")||"right").trim().toLowerCase();t.classList.add("v-drawer-panel"),t.setAttribute("data-side",["left","right","top","bottom"].includes(n)?n:"right"),t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1"),St(t,"v-drawer"),t.hidden=!0,this.label()}label(){let t=this.panel;if(t.hasAttribute("aria-labelledby")||t.hasAttribute("aria-label"))return;let n=t.querySelector("[data-drawer-title],h1,h2,h3,h4");n&&t.setAttribute("aria-labelledby",St(n,"v-drawer-title"))}sync(){for(let t of this.triggers)t.setAttribute("aria-expanded",String(this.open)),t.setAttribute("aria-controls",this.panel.id),t.setAttribute("aria-haspopup","dialog")}show(){var n,r;if(this.open)return;this.open=!0,this.lastFocus=document.activeElement,this.backdrop=document.createElement("div"),this.backdrop.className="v-drawer-backdrop",this.backdrop.addEventListener("click",()=>this.hide()),document.body.appendChild(this.backdrop),this.panel.parentElement!==document.body&&(this.origem=document.createComment(" v-drawer "),(n=this.panel.parentNode)==null||n.insertBefore(this.origem,this.panel),document.body.appendChild(this.panel)),this.panel.hidden=!1,this.label(),Bu();let t=()=>{var o;(o=this.backdrop)==null||o.classList.add("v-in"),this.panel.classList.add("v-open")};me.reducedMotion?t():requestAnimationFrame(t),document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("pointerdown",this.onPointerDown,!0),((r=Gr(this.panel)[0])!=null?r:this.panel).focus(),this.sync(),fe(this.panel,"voodoo:drawer",{open:!0})}hide(){var n,r;if(!this.open)return;this.open=!1,this.panel.classList.remove("v-open"),(n=this.backdrop)==null||n.classList.remove("v-in"),document.removeEventListener("keydown",this.onKeyDown,!0),document.removeEventListener("pointerdown",this.onPointerDown,!0);let t=()=>{var o;this.open||(this.panel.hidden=!0,(o=this.backdrop)==null||o.remove(),this.backdrop=null,this.origem&&this.origem.parentNode&&(this.origem.parentNode.insertBefore(this.panel,this.origem),this.origem.remove(),this.origem=null))};me.reducedMotion?t():setTimeout(t,300),ju(),(r=this.lastFocus)==null||r.focus(),this.sync(),fe(this.panel,"voodoo:drawer",{open:!1})}toggle(){this.open?this.hide():this.show()}},Pu=new WeakMap;function Va(e){let t=Pu.get(e);return t||Pu.set(e,t=new Ba(e)),t}y("drawer-content",({el:e})=>{xe(),Va(e)});function Ku(e,t,n){xe();let r=rr(e,t);if(!r)return;let o=Va(r);o.triggers.add(e),o.sync(),Ie(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})}y("drawer",({el:e,expression:t,cleanup:n})=>{Ku(e,t,n)});y("offcanvas",({el:e,expression:t,cleanup:n})=>{Ku(e,t,n)});y("drawer-close",({el:e,expression:t,cleanup:n})=>{var i,s;let r=t.trim()?rr(e,t):(i=e.closest(".v-drawer-panel"))!=null?i:Hn(e,"drawer-content");if(!r)return;Ie(e,n),!e.hasAttribute("aria-label")&&!((s=e.textContent)!=null&&s.trim())&&e.setAttribute("aria-label","Close");let o=a=>{a.preventDefault(),Va(r).hide()};e.addEventListener("click",o),n(()=>e.removeEventListener("click",o))});_("drawer-side");y("theme-toggle",({el:e,cleanup:t})=>{Ie(e,t);let n=()=>{let i=ut.resolved==="dark";e.setAttribute("aria-pressed",String(i)),e.dataset.vTheme=ut.resolved,e.hasAttribute("aria-label")||e.setAttribute("aria-label",i?"Switch to light theme":"Switch to dark theme")},r=i=>{i.preventDefault(),ut.toggle(),n()},o=()=>n();n(),e.addEventListener("click",r),document.addEventListener("voodoo:theme",o),t(()=>{e.removeEventListener("click",r),document.removeEventListener("voodoo:theme",o)})});y("focus",({el:e,expression:t,modifiers:n,effect:r,evaluate:o})=>{let i=()=>{e.focus({preventScroll:!!n.quiet});let s=e;n.select&&typeof s.select=="function"&&s.select()};if(!t.trim()){Me(i);return}r(()=>{o()&&Me(i)})},{priority:j.INIT});y("focus-trap",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{let i=!t.trim(),s=a=>{!i||a.key!=="Tab"||e.isConnected&&Li(e,a)};t.trim()?n(()=>{let a=!!r();a&&!i&&Me(()=>{var l;return((l=Gr(e)[0])!=null?l:e).focus()}),i=a}):Me(()=>{var a;return((a=Gr(e)[0])!=null?a:e).focus()}),e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),document.addEventListener("keydown",s,!0),o(()=>document.removeEventListener("keydown",s,!0))});y("click-outside",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{if(!e.isConnected)return;let s=i.target;!s||e===s||e.contains(s)||mt(t,n,e,i)};document.addEventListener("pointerdown",o,!0),r(()=>document.removeEventListener("pointerdown",o,!0))});y("escape",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{i.key!=="Escape"||!e.isConnected||mt(t,n,e,i)};document.addEventListener("keydown",o),r(()=>document.removeEventListener("keydown",o))});y("hotkey",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();if(!o)return;let i=Qr(o,()=>e.click(),{allowInInput:!!n.force,preventDefault:n.default!==!0}),s=ja(o.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",Wu(s)),r(i)});y("scroll-to",({el:e,expression:t,cleanup:n})=>{let r=o=>{let i=t.trim()||e.getAttribute("href")||"";if(!i)return;o.preventDefault();let s=parseFloat(J(e,"scroll-offset")||"0")||0,a=me.reducedMotion?"auto":"smooth";if(i==="top"||i==="#top"){window.scrollTo({top:0,behavior:a});return}if(i==="bottom"){window.scrollTo({top:document.body.scrollHeight,behavior:a});return}let l=null;try{l=document.querySelector(i)}catch(u){l=null}if(!l)return;let c=l.getBoundingClientRect().top+window.scrollY-s;window.scrollTo({top:c,behavior:a});let d=l;d.hasAttribute("tabindex")||d.setAttribute("tabindex","-1"),d.focus({preventScroll:!0})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});y("scrollspy",({el:e,cleanup:t})=>{let n=Array.from(e.querySelectorAll('a[href^="#"]'));if(!n.length)return;let r=J(e,"scrollspy-class")||"v-active",o=parseFloat(J(e,"scroll-offset")||"0")||0,i=n.map(c=>{let d=c.getAttribute("href")||"",u=d.length>1?document.querySelector(d):null;return u?{link:c,section:u}:null}).filter(c=>c!==null);if(!i.length)return;let s=null,a=()=>{let c=i[0];for(let d of i)d.section.getBoundingClientRect().top-o<=8&&(c=d);if(c.link!==s){s=c.link;for(let d of i){let u=d.link===s;d.link.classList.toggle(r,u),u?d.link.setAttribute("aria-current","true"):d.link.removeAttribute("aria-current")}fe(e,"voodoo:scrollspy",{id:c.section.id,link:c.link})}},l=Hr(a,100);window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),Me(a),t(()=>{l.cancel(),window.removeEventListener("scroll",l),window.removeEventListener("resize",l)})});_("scroll-offset");_("scrollspy-class");y("sticky",({el:e,expression:t,cleanup:n})=>{xe();let r=parseFloat(t.trim()||J(e,"sticky-offset")||"0")||0;if(e.classList.add("v-sticky"),e.style.setProperty("--v-sticky-offset",`${r}px`),typeof IntersectionObserver=="undefined")return;let o=new IntersectionObserver(i=>{for(let s of i){let a=s.intersectionRatio<1&&s.boundingClientRect.top<=r+1;e.classList.toggle("v-stuck",a)}},{threshold:[1],rootMargin:`-${r+1}px 0px 0px 0px`});o.observe(e),n(()=>o.disconnect())});_("sticky-offset");y("visible",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{var c;let i=!!r.repeat,s=Number((c=r.threshold)!=null?c:.1)||.1,a=typeof r.margin=="string"?r.margin:"0px";if(typeof IntersectionObserver=="undefined"){mt(t,n,e,void 0,{visible:!0});return}let l=new IntersectionObserver(d=>{for(let u of d)u.isIntersecting&&(mt(t,n,e,void 0,u),i||l.unobserve(e))},{threshold:s,rootMargin:a});l.observe(e),o(()=>l.disconnect())});y("infinite-scroll",({el:e,expression:t,scope:n,cleanup:r})=>{let o=J(e,"infinite-distance")||"200px",i=!1,s=()=>{i=!1},a=()=>{if(i)return;i=!0,e.setAttribute("aria-busy","true");let d=mt(t,n,e,void 0,{page:"next"}),u=()=>{e.removeAttribute("aria-busy"),setTimeout(s,120)};d&&typeof d.then=="function"?d.then(u,u):setTimeout(u,300)};if(typeof IntersectionObserver=="undefined")return;let l=document.createElement("div");l.className="v-infinite-sentinel",l.setAttribute("aria-hidden","true"),l.style.cssText="width:100%;height:1px;pointer-events:none",e.appendChild(l);let c=new IntersectionObserver(d=>{for(let u of d)u.isIntersecting&&a()},{rootMargin:`0px 0px ${o} 0px`});c.observe(l),r(()=>{c.disconnect(),l.remove()})});_("infinite-distance");function Yu(e,t,n,r){if(xe(),!t)return;e.classList.add("v-lazy");let o=a=>{r?e.style.backgroundImage=`url("${a}")`:e.src=a,e.classList.add("v-lazy-loaded")},i=()=>{let a=new Image;a.onload=()=>o(t),a.onerror=()=>{let l=J(e,"lazy-error");e.classList.add("v-lazy-failed"),l?o(l):e.classList.add("v-lazy-loaded")},a.src=t};if(!r&&e.tagName==="IMG"){let a=e;a.hasAttribute("loading")||(a.loading="lazy"),a.hasAttribute("decoding")||(a.decoding="async")}if(typeof IntersectionObserver=="undefined"){i();return}let s=new IntersectionObserver(a=>{for(let l of a)l.isIntersecting&&(s.disconnect(),i())},{rootMargin:"200px"});s.observe(e),n(()=>s.disconnect())}y("lazy-src",({el:e,expression:t,cleanup:n})=>{Yu(e,t.trim(),n,!1)});y("lazy-bg",({el:e,expression:t,cleanup:n})=>{Yu(e,t.trim(),n,!0)});_("lazy-error");y("skeleton",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{xe();let i=l=>{e.classList.toggle("v-skeleton",l),l?e.setAttribute("aria-busy","true"):e.removeAttribute("aria-busy")};if(t.trim()){n(()=>i(!!r()));return}let s=()=>{var l;return((l=e.textContent)!=null?l:"").trim().length>0||e.querySelector("img,svg,video,canvas")!==null};if(s()){i(!1);return}if(i(!0),typeof MutationObserver=="undefined")return;let a=new MutationObserver(()=>{s()&&(i(!1),a.disconnect())});a.observe(e,{childList:!0,subtree:!0,characterData:!0}),o(()=>a.disconnect())});async function Ua(e){var t;try{if((t=navigator.clipboard)!=null&&t.writeText)return await navigator.clipboard.writeText(e),!0}catch(n){}try{let n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.cssText="position:fixed;top:-1000px;left:-1000px;opacity:0",document.body.appendChild(n),n.select();let r=document.execCommand("copy");return n.remove(),r}catch(n){return!1}}function Wa(e,t){xe();let n=J(e,"copy-label")||(t?"Copied!":"Could not copy");e.dataset.vCopyLabel=n,e.classList.add(t?"v-copied":"v-copy-failed"),Ye(n),setTimeout(()=>e.classList.remove("v-copied","v-copy-failed"),1600)}function Xu(e,t){var r;let n=J(e,"copy-from");if(n){let o=document.querySelector(n);if(o){let i=o;return typeof i.value=="string"&&i.value?i.value:((r=o.textContent)!=null?r:"").trim()}}return t.trim()}y("copy",({el:e,expression:t,cleanup:n})=>{xe(),Ie(e,n);let r=o=>{o.preventDefault();let i=Xu(e,t);i&&Ua(i).then(s=>{Wa(e,s),fe(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});y("copy-from",({el:e,expression:t,cleanup:n})=>{if(xe(),wi(e,"copy-from",t),xi(e,"copy"))return;Ie(e,n);let r=o=>{o.preventDefault();let i=Xu(e,"");i&&Ua(i).then(s=>{Wa(e,s),fe(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});_("copy-label");function Xh(e,t){let n=document.createElement("iframe");n.setAttribute("aria-hidden","true"),n.setAttribute("title","Print"),n.style.cssText="position:fixed;right:0;bottom:0;width:0;height:0;border:0;visibility:hidden";let r=Array.from(document.querySelectorAll('link[rel="stylesheet"],style')).map(o=>o.outerHTML).join(`
|
|
271
|
+
`);n.srcdoc=`<!doctype html><html><head><meta charset="utf-8"><title>${I(t)}</title>${r}</head><body>${e.outerHTML}</body></html>`,n.addEventListener("load",()=>{let o=n.contentWindow;if(!o){n.remove();return}o.focus(),o.print(),setTimeout(()=>n.remove(),1e3)}),document.body.appendChild(n)}y("print",({el:e,expression:t,cleanup:n})=>{Ie(e,n);let r=o=>{o.preventDefault();let i=t.trim(),s=i?document.querySelector(i):null;if(!i){window.print();return}s&&Xh(s,document.title)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});y("share",({el:e,expression:t,cleanup:n})=>{xe(),Ie(e,n);let r=o=>{o.preventDefault();let i=t.trim()||J(e,"share-url")||location.href,s={title:J(e,"share-title")||document.title,url:i},a=J(e,"share-text");a&&(s.text=a);let l=navigator;if(typeof l.share=="function"){l.share(s).then(()=>fe(e,"voodoo:share",{data:s,method:"native"}),()=>{});return}Ua(i).then(c=>{Wa(e,c),fe(e,"voodoo:share",{data:s,method:"clipboard",ok:c})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});_("share-title");_("share-url");_("share-text");y("fullscreen",({el:e,expression:t,cleanup:n})=>{var s;Ie(e,n);let r=t.trim()&&(s=document.querySelector(t.trim()))!=null?s:e,o=()=>{e.setAttribute("aria-pressed",String(document.fullscreenElement===r))},i=a=>{var c;if(a.preventDefault(),document.fullscreenElement){document.exitFullscreen().catch(()=>{});return}let l=r;typeof r.requestFullscreen=="function"?r.requestFullscreen().catch(()=>{}):(c=l.webkitRequestFullscreen)==null||c.call(l)};o(),e.addEventListener("click",i),document.addEventListener("fullscreenchange",o),n(()=>{e.removeEventListener("click",i),document.removeEventListener("fullscreenchange",o)})});y("download",({el:e,expression:t,cleanup:n})=>{Ie(e,n);let r=o=>{let i=t.trim()||e.getAttribute("href")||"";if(!i)return;o.preventDefault();let s=document.createElement("a");s.href=i,s.rel="noopener",s.download=J(e,"download-name")||"",s.style.display="none",document.body.appendChild(s),s.click(),s.remove(),fe(e,"voodoo:download",{href:i,name:s.download})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});_("download-name");y("resizable",({el:e,expression:t,cleanup:n})=>{xe();let r=(t.trim()||"both").toLowerCase(),o=r==="both"||r==="horizontal",i=r==="both"||r==="vertical";e.classList.add("v-resizable"),getComputedStyle(e).position==="static"&&(e.style.position="relative");let s=[],a=[];o&&a.push("right"),i&&a.push("bottom"),o&&i&&a.push("corner");let l=(c,d)=>{let u=0,p=0,f=0,m=0,h=g=>{d!=="bottom"&&(e.style.width=`${Math.max(32,f+g.clientX-u)}px`),d!=="right"&&(e.style.height=`${Math.max(32,m+g.clientY-p)}px`)},v=g=>{var b;(b=c.releasePointerCapture)==null||b.call(c,g.pointerId),c.removeEventListener("pointermove",h),c.removeEventListener("pointerup",v),c.removeEventListener("pointercancel",v),fe(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height})};c.addEventListener("pointerdown",g=>{var x;if(g.button!==0)return;g.preventDefault();let b=e.getBoundingClientRect();u=g.clientX,p=g.clientY,f=b.width,m=b.height,(x=c.setPointerCapture)==null||x.call(c,g.pointerId),c.addEventListener("pointermove",h),c.addEventListener("pointerup",v),c.addEventListener("pointercancel",v)}),c.addEventListener("keydown",g=>{let b=g.shiftKey?4:16,x=e.getBoundingClientRect(),T=!0;g.key==="ArrowRight"&&d!=="bottom"?e.style.width=`${x.width+b}px`:g.key==="ArrowLeft"&&d!=="bottom"?e.style.width=`${Math.max(32,x.width-b)}px`:g.key==="ArrowDown"&&d!=="right"?e.style.height=`${x.height+b}px`:g.key==="ArrowUp"&&d!=="right"?e.style.height=`${Math.max(32,x.height-b)}px`:T=!1,T&&(g.preventDefault(),fe(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height}))})};for(let c of a){let d=document.createElement("div");d.className="v-resize-handle",d.setAttribute("data-dir",c),d.setAttribute("role","separator"),d.setAttribute("tabindex","0"),d.setAttribute("aria-orientation",c==="bottom"?"horizontal":"vertical"),d.setAttribute("aria-label","Resize"),l(d,c),e.appendChild(d),s.push(d)}n(()=>{for(let c of s)c.remove()})});function Ou(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}function Gh(){let e=[];for(let t of Bo(document,"command-item")){let n=(Wt(t,"command-item")||t.textContent||"").trim();n&&(t.closest("[hidden]")||e.push({label:n,hint:J(t,"command-hint")||"",el:t}))}return e}function Nu(){if(xe(),document.querySelector(".v-command"))return;let e=Gh(),t=document.activeElement,n=document.createElement("div");n.className="v-command",n.setAttribute("role","dialog"),n.setAttribute("aria-modal","true"),n.setAttribute("aria-label","Command palette"),n.tabIndex=-1;let r=document.createElement("div");r.className="v-command-box";let o=document.createElement("input");o.className="v-command-input",o.type="search",o.placeholder="Search command...",o.setAttribute("aria-label","Search command"),o.setAttribute("role","combobox"),o.setAttribute("aria-expanded","true"),o.setAttribute("autocomplete","off");let i=document.createElement("ul");i.className="v-command-list",i.id=ae("v-cmd-list-"),i.setAttribute("role","listbox"),o.setAttribute("aria-controls",i.id),r.append(o,i),n.appendChild(r),document.body.appendChild(n),Bu();let s=e,a=0,l=m=>{let h=m.target;!h||n.contains(h)||o.focus()},c=()=>{document.removeEventListener("focusin",l,!0),document.removeEventListener("keydown",f,!0),n.remove(),ju(),t==null||t.focus()},d=()=>{let m=s[a];m&&(c(),m.el.click())},u=()=>{var h;if(i.replaceChildren(),!s.length){let v=document.createElement("li");v.className="v-command-empty",v.textContent="No command found",i.appendChild(v);return}s.forEach((v,g)=>{let b=document.createElement("li");b.className="v-command-option",b.id=`${i.id}-${g}`,b.setAttribute("role","option"),b.setAttribute("aria-selected",String(g===a));let x=document.createElement("span");if(x.textContent=v.label,b.appendChild(x),v.hint){let T=document.createElement("span");T.className="v-command-hint",T.textContent=v.hint,b.appendChild(T)}b.addEventListener("click",()=>{a=g,d()}),b.addEventListener("pointermove",()=>{a!==g&&(a=g,u())}),i.appendChild(b)});let m=i.children[a];m&&(o.setAttribute("aria-activedescendant",m.id),(h=m.scrollIntoView)==null||h.call(m,{block:"nearest"}))},p=()=>{let m=Ou(o.value.trim());s=m?e.filter(h=>Ou(`${h.label} ${h.hint}`).includes(m)):e,a=0,u()},f=m=>{if(m.key==="Escape"){m.preventDefault(),c();return}if(m.key==="ArrowDown"){m.preventDefault(),a=s.length?(a+1)%s.length:0,u();return}if(m.key==="ArrowUp"){m.preventDefault(),a=s.length?(a-1+s.length)%s.length:0,u();return}if(m.key==="Enter"){m.preventDefault(),d();return}m.key==="Tab"&&Li(n,m)};n.addEventListener("pointerdown",m=>{m.target===n&&c()}),o.addEventListener("input",p),document.addEventListener("keydown",f,!0),u(),o.focus(),document.addEventListener("focusin",l,!0)}y("command",({el:e,expression:t,cleanup:n})=>{xe();let r=t.trim()||J(e,"command-key")||"mod+k",o=a=>{a.preventDefault(),Nu()},i=Qr(r,()=>Nu(),{allowInInput:!0}),s=ja(r.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",Wu(s)),Ie(e,n),e.addEventListener("click",o),n(()=>{i(),e.removeEventListener("click",o)})});y("command-item",({el:e,expression:t})=>{wi(e,"command-item",t),!e.hasAttribute("data-v-command-label")&&t.trim()&&e.setAttribute("data-v-command-label",t.trim())});_("command-key");_("command-hint");var Fu=["pointerdown","pointermove","keydown","wheel","touchstart","scroll"];y("idle",({el:e,expression:t,scope:n,cleanup:r})=>{let o=G(J(e,"idle-after"),6e4),i=null,s=!1,a=()=>{s=!0,mt(t,n,e,void 0,{idle:!0,after:o}),fe(e,"voodoo:idle",{after:o})},l=()=>{i&&clearTimeout(i),s=!1,i=setTimeout(a,o)},c=()=>{if(s){l();return}l()};for(let d of Fu)window.addEventListener(d,c,{passive:!0});l(),r(()=>{i&&clearTimeout(i);for(let d of Fu)window.removeEventListener(d,c)})});_("idle-after");function Gu(e,t,n,r,o,i){let s=a=>{mt(t,n,e,a,{online:navigator.onLine}),fe(e,`voodoo:${o}`,{online:navigator.onLine})};window.addEventListener(o,s),r(()=>window.removeEventListener(o,s)),i&&navigator.onLine===(o==="online")&&Me(()=>s())}y("online",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{Gu(e,t,n,o,"online",!!r.immediate)});y("offline",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{Gu(e,t,n,o,"offline",r["no-immediate"]!==!0)});be();le();He();be();le();He();var rt={required:"Preencha este campo.",email:"Informe um e-mail valido.",url:"Informe uma URL valida.",number:"Informe um numero valido.",integer:"Informe um numero inteiro.",decimal:"Informe um numero decimal valido.",alpha:"Use apenas letras.",alphanumeric:"Use apenas letras e numeros.",minlength:"Use no minimo {param} caracteres.",maxlength:"Use no maximo {param} caracteres.",min:"O valor minimo e {param}.",max:"O valor maximo e {param}.",between:"Informe um valor entre {min} e {max}.",match:"Os campos nao conferem.",regex:"O formato informado nao e valido.",date:"Informe uma data valida.",after:"A data precisa ser posterior a {param}.",before:"A data precisa ser anterior a {param}.",accepted:"E preciso marcar esta opcao para continuar.",same:"Os valores precisam ser iguais.",different:"Os valores precisam ser diferentes.",in:"Escolha uma das opcoes permitidas.",notin:"Este valor nao e permitido.",phone:"Informe um telefone valido com DDD.",cpf:"CPF invalido.",cnpj:"CNPJ invalido.",cep:"CEP invalido.",creditcard:"Numero de cartao invalido.",strongpassword:"Use {param} caracteres ou mais, com maiuscula, minuscula, numero e simbolo.",unique:"Este valor ja esta em uso.",invalid:"Valor invalido."};function Ju(e,t){var i,s,a,l,c,d;let n=(i=t.param)!=null?i:"",r=n.split(","),o={param:n,field:(s=t.field)!=null?s:"field",value:(a=t.value)!=null?a:"",min:((l=r[0])!=null?l:"").trim(),max:((d=(c=r[1])!=null?c:r[0])!=null?d:"").trim()};return e.replace(/\{(\w+)\}/g,(u,p)=>p in o?o[p]:u)}var Ai=new Map;function Q(e,t,n){let r=e.toLowerCase();Ai.set(r,{name:r,fn:t,message:n}),n&&!rt[r]&&(rt[r]=n),y(`validate-${r}`,({el:o,cleanup:i})=>{Ni(o,i)})}function At(e,t){var n;return(n=ke(e,`${w.prefix}${t}`))!=null?n:ke(e,`data-v-${t}`)}function Qh(e,t){return At(e,t)!==null}var Jh=new Set(["INPUT","SELECT","TEXTAREA"]),Zh=new Set(["submit","button","reset","image"]);function Xe(e){var t;return!!e&&typeof e=="object"&&Jh.has((t=e.tagName)!=null?t:"")}function ht(e){return e.tagName==="SELECT"?"select":e.tagName==="TEXTAREA"?"textarea":(e.getAttribute("type")||"text").toLowerCase()}function eo(e){var n;let t=ht(e);if(t==="checkbox"||t==="radio")return e.checked?e.value||"on":"";if(t==="file"){let r=e.files;return r&&r.length?String(r.length):""}return(n=e.value)!=null?n:""}function Ya(e){return e.name||e.id||`field-${e.tagName.toLowerCase()}`}function eg(e){var o,i;let t=At(e,"label");if(t)return t;if(e.id&&typeof document!="undefined"){let s=document.querySelector(`label[for="${Mi(e.id)}"]`),a=(o=s==null?void 0:s.textContent)==null?void 0:o.trim();if(a)return a.replace(/\s*\*$/,"")}let n=e.closest("label"),r=(i=n==null?void 0:n.textContent)==null?void 0:i.trim();return r?r.replace(/\s*\*$/,""):e.getAttribute("aria-label")||e.getAttribute("placeholder")||e.name||"field"}function Mi(e){let t=globalThis.CSS;return t&&typeof t.escape=="function"?t.escape(e):e.replace(/["'\\\]\[]/g,"\\$&")}function Ci(e,t){var s,a,l;let n=t.trim();if(!n||typeof document=="undefined")return null;let r=(a=(s=e.form)!=null?s:e.closest("form"))!=null?a:document;if(/^[#.[]/.test(n)){let c=(l=r.querySelector(n))!=null?l:document.querySelector(n);return Xe(c)?c:null}let o=r.querySelector(`[name="${Mi(n)}"]`);if(Xe(o))return o;let i=document.getElementById(n);return Xe(i)?i:null}var tg=/^[^\s@]+@[^\s@.]+(?:\.[^\s@.]+)+$/,ng=/^-?\d+$/,rg=/^-?\d+(?:[.,]\d+)?$/,og=/^[A-Za-zÀ-ÖØ-öø-ɏ]+$/,ig=/^[A-Za-z0-9À-ÖØ-öø-ɏ]+$/;function to(e){return e.replace(/\D/g,"")}function Ri(e){return Number(String(e).replace(/\s/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."))}function sg(e){let t=to(e);if(t.length!==11||/^(\d)\1{10}$/.test(t))return!1;let n=0;for(let i=0;i<9;i++)n+=Number(t[i])*(10-i);let r=n*10%11;if(r===10&&(r=0),r!==Number(t[9]))return!1;n=0;for(let i=0;i<10;i++)n+=Number(t[i])*(11-i);let o=n*10%11;return o===10&&(o=0),o===Number(t[10])}function ag(e){let t=to(e);if(t.length!==14||/^(\d)\1{13}$/.test(t))return!1;let n=r=>{let o=r-7,i=0;for(let a=0;a<r;a++)i+=Number(t[a])*o--,o<2&&(o=9);let s=i%11;return s<2?0:11-s};return n(12)===Number(t[12])&&n(13)===Number(t[13])}function lg(e){let t=to(e);if(t.length<13||t.length>19)return!1;let n=0,r=!1;for(let o=t.length-1;o>=0;o--){let i=Number(t[o]);r&&(i*=2,i>9&&(i-=9)),n+=i,r=!r}return n%10===0}function cg(e){let t=to(e);return!(t.length!==10&&t.length!==11||Number(t.slice(0,2))<11||t.length===11&&t[2]!=="9"||t.length===10&&Number(t[2])<2)}function mn(e){let t=e.trim();if(!t)return null;let n=/^(\d{2})\/(\d{2})\/(\d{4})$/.exec(t);if(n){let i=new Date(Number(n[3]),Number(n[2])-1,Number(n[1]));return i.getFullYear()===Number(n[3])&&i.getMonth()===Number(n[2])-1&&i.getDate()===Number(n[1])?i:null}let r=/^(\d{4})-(\d{2})-(\d{2})$/.exec(t);if(r){let i=new Date(Number(r[1]),Number(r[2])-1,Number(r[3]));return i.getFullYear()===Number(r[1])&&i.getMonth()===Number(r[2])-1&&i.getDate()===Number(r[3])?i:null}let o=Date.parse(t);return Number.isNaN(o)?null:new Date(o)}function $i(e,t){if(!e)return null;let n=e.trim().toLowerCase();if(n==="hoje"||n==="today"||n==="now"||n==="agora")return new Date;let r=mn(e);if(r)return r;let o=Ci(t,e);return o?mn(eo(o)):null}Q("required",(e,t,n)=>{let r=ht(n);if(r==="checkbox"||r==="radio")return n.checked;if(r==="file"){let o=n.files;return!!o&&o.length>0}return e.trim().length>0});Q("email",e=>tg.test(e.trim()));Q("url",e=>{let t=e.trim();if(!t)return!1;try{let n=new URL(/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:`https://${t}`);return n.hostname.includes(".")&&!n.hostname.endsWith(".")}catch(n){return!1}});Q("number",e=>e.trim()!==""&&Number.isFinite(Ri(e)));Q("integer",e=>ng.test(e.trim()));Q("decimal",(e,t)=>{var i;let n=e.trim();if(!rg.test(n))return!1;if(!t)return!0;let r=Number(t);return Number.isFinite(r)?((i=n.split(/[.,]/)[1])!=null?i:"").length<=r:!0});Q("alpha",e=>og.test(e.trim().replace(/\s+/g,"")));Q("alphanumeric",e=>ig.test(e.trim().replace(/\s+/g,"")));Q("minlength",(e,t)=>e.trim().length>=Number(t!=null?t:0));Q("maxlength",(e,t)=>e.trim().length<=Number(t!=null?t:1/0));Q("min",(e,t,n)=>{let r=$i(t,n);if(r&&ht(n).startsWith("date")){let o=mn(e);return!o||o.getTime()>=r.getTime()}return Ri(e)>=Number(t!=null?t:0)});Q("max",(e,t,n)=>{let r=$i(t,n);if(r&&ht(n).startsWith("date")){let o=mn(e);return!o||o.getTime()<=r.getTime()}return Ri(e)<=Number(t!=null?t:1/0)});Q("between",(e,t)=>{let[n,r]=(t!=null?t:"").split(",").map(i=>Number(i.trim())),o=Ri(e);return Number.isFinite(o)&&o>=n&&o<=r});Q("match",(e,t,n)=>{if(!t)return!0;let r=Ci(n,t);return r?eo(r)===e:!0});Q("same",(e,t,n)=>{if(!t)return!0;let r=Ci(n,t);return!r||eo(r)===e});Q("different",(e,t,n)=>{if(!t)return!0;let r=Ci(n,t);return!r||eo(r)!==e});Q("regex",(e,t,n)=>{var o;if(!t)return!0;let r=(o=At(n,"regex-flags"))!=null?o:"";try{return new RegExp(t,r).test(e)}catch(i){return Y(`Invalid regular expression in ${w.prefix}regex: ${t}`),!0}});Q("date",e=>mn(e)!==null);Q("after",(e,t,n)=>{let r=$i(t,n),o=mn(e);return!r||!o?!0:o.getTime()>r.getTime()});Q("before",(e,t,n)=>{let r=$i(t,n),o=mn(e);return!r||!o?!0:o.getTime()<r.getTime()});Q("accepted",(e,t,n)=>{let r=ht(n);return r==="checkbox"||r==="radio"?n.checked:["1","true","on","yes","sim"].includes(e.trim().toLowerCase())});Q("in",(e,t)=>(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));Q("notin",(e,t)=>!(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));Q("phone",e=>cg(e));Q("cpf",e=>sg(e));Q("cnpj",e=>ag(e));Q("cep",e=>to(e).length===8);Q("creditcard",e=>lg(e));Q("strongpassword",(e,t)=>{let n=Number(t)>0?Number(t):8;return e.length>=n&&/[a-zà-ÿ]/.test(e)&&/[A-ZÀ-ß]/.test(e)&&/\d/.test(e)&&/[^\w\s]/.test(e)?!0:Ju(rt.strongpassword,{param:String(n)})});Q("unique",async(e,t,n)=>{let r=t||At(n,"unique-url")||"";if(!r||!e.trim())return!0;try{let o=await ve.get(r,{params:{value:e,field:Ya(n)},timeout:8e3});return o&&typeof o=="object"&&"available"in o?o.available===!0?!0:rt.unique:o?rt.unique:!0}catch(o){if(o instanceof Ee){if(o.status===404)return!0;if(o.status>=400&&o.status<500)return rt.unique}return!0}});var dg={"strong-password":"strongpassword","credit-card":"creditcard","min-length":"minlength","max-length":"maxlength","not-in":"notin","nao-vazio":"required",obrigatorio:"required"},ug=new Set(["required","accepted"]);function fg(e){var o;let t=null;if(e.startsWith(w.prefix)?t=e.slice(w.prefix.length):e.startsWith("data-v-")&&(t=e.slice(7)),!t)return null;let n=t.indexOf(".");if(n>-1&&(t=t.slice(0,n)),t==="validate")return null;t.startsWith("validate-")&&(t=t.slice(9));let r=(o=dg[t])!=null?o:t;return Ai.has(r)?r:null}function Xa(e){let t=[],n=new Set,r=(d,u)=>{n.has(d)||!Ai.has(d)||(n.add(d),t.push({name:d,param:u}))};for(let[d,u]of Gc(e)){let p=fg(d);if(p){if(u.trim()==="false"){n.add(p);continue}r(p,u)}}let o=ht(e);e.hasAttribute("required")&&r("required",""),o==="email"&&r("email",""),o==="url"&&r("url",""),(o==="number"||o==="range")&&r("number","");let i=e.getAttribute("minlength");i&&r("minlength",i);let s=e.getAttribute("maxlength");s&&r("maxlength",s);let a=e.getAttribute("min");a&&r("min",a);let l=e.getAttribute("max");l&&r("max",l);let c=e.getAttribute("pattern");return c&&r("regex",c),t.sort((d,u)=>d.name==="required"?-1:u.name==="required"?1:0),t}var pg=`
|
|
272
|
+
.v-field-error{display:block;margin-top:6px;color:var(--v-danger,#FF4D4D);
|
|
273
|
+
font:500 12.5px/1.45 var(--v-font-sans,system-ui,-apple-system,sans-serif);
|
|
274
|
+
animation:v-field-error-in .18s var(--v-ease,ease) both}
|
|
275
|
+
@keyframes v-field-error-in{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
|
|
276
|
+
.v-invalid{border-color:var(--v-danger,#FF4D4D) !important}
|
|
277
|
+
.v-invalid:focus,.v-invalid:focus-visible{outline-color:var(--v-danger,#FF4D4D);
|
|
278
|
+
box-shadow:0 0 0 3px color-mix(in srgb,var(--v-danger,#FF4D4D) 22%,transparent)}
|
|
279
|
+
.v-valid{border-color:var(--v-success,#2ED9A5)}
|
|
280
|
+
.v-form-error{margin:0 0 14px;padding:10px 14px;border-radius:var(--v-radius-sm,8px);
|
|
281
|
+
background:color-mix(in srgb,var(--v-danger,#FF4D4D) 12%,var(--v-surface,#fff));
|
|
282
|
+
border:1px solid var(--v-danger,#FF4D4D);color:var(--v-text,#14111F);
|
|
283
|
+
font:500 13px/1.5 var(--v-font-sans,system-ui,-apple-system,sans-serif)}
|
|
284
|
+
.v-form-error ul{margin:0;padding-left:18px}
|
|
285
|
+
@media (prefers-reduced-motion: reduce){.v-field-error{animation:none}}
|
|
286
|
+
`;function Di(){he(),ne("forms-validate",pg)}function Zu(e){var r,o,i;let t=At(e,"error-target");if(t&&typeof document!="undefined"){let s=(i=(o=(r=e.form)!=null?r:e.closest("form"))==null?void 0:o.querySelector(t))!=null?i:document.querySelector(t);if(s)return{parent:s,anchor:null};Y(`Target for ${w.prefix}error-target not found: ${t}`)}let n=e.parentElement;return n?{parent:n,anchor:e}:null}function ef(e){let t=Zu(e);if(!t)return null;if(t.anchor){let n=t.anchor.nextElementSibling;return n&&n.classList.contains("v-field-error")?n:null}return t.parent.querySelector(".v-field-error")}function Hi(e,t){Di(),e.classList.add("v-invalid"),e.classList.remove("v-valid"),e.setAttribute("aria-invalid","true");let n=ef(e);if(!n){let o=Zu(e);if(!o)return;n=document.createElement("span"),n.className="v-field-error",n.id=e.id?`${e.id}-error`:ae("v-error-"),n.setAttribute("role","alert"),n.setAttribute("aria-live","polite"),o.anchor?o.anchor.insertAdjacentElement("afterend",n):o.parent.appendChild(n)}n.textContent=t;let r=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(o=>o&&o!==n.id);r.push(n.id),e.setAttribute("aria-describedby",r.join(" "))}function _a(e,t=!1){e.classList.remove("v-invalid"),e.classList.toggle("v-valid",t),e.removeAttribute("aria-invalid");let n=ef(e);if(n){let r=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(o=>o&&o!==n.id);r.length?e.setAttribute("aria-describedby",r.join(" ")):e.removeAttribute("aria-describedby"),n.remove()}}function no(e){for(let n of Oi(e,!1))_a(n);for(let n of Array.from(e.querySelectorAll(".v-field-error")))n.remove();let t=e.querySelector(".v-form-error");t&&t.remove();for(let n of Array.from(e.querySelectorAll(".v-invalid, .v-valid")))n.classList.remove("v-invalid","v-valid"),n.removeAttribute("aria-invalid")}function Ga(e){let t={};if(!e||typeof e!="object")return t;let n=e,r=n.errors&&typeof n.errors=="object"?n.errors:n;for(let[o,i]of Object.entries(r))o==="message"||o==="mensagem"||o==="errors"||(typeof i=="string"?t[o]=i:Array.isArray(i)&&typeof i[0]=="string"&&(t[o]=i[0]));return t}function mg(e,t){let n=t.replace(/\.(\w+)/g,"[$1]"),r=[t,n,`${t}[]`,`${n}[]`];for(let i of r){let s=e.querySelector(`[name="${Mi(i)}"]`);if(Xe(s))return s}let o=e.querySelector(`#${Mi(t)}`);return Xe(o)?o:null}function Pi(e,t){let n=Ga(t),r=[];for(let[o,i]of Object.entries(n)){let s=mg(e,o);s?Hi(s,i):r.push(i)}return r.length&&vg(e,r),n}function vg(e,t){Di();let n=e.querySelector(".v-form-error");if(n||(n=document.createElement("div"),n.className="v-form-error",n.setAttribute("role","alert"),e.prepend(n)),n.textContent="",t.length===1){n.textContent=t[0];return}let r=document.createElement("ul");for(let o of t){let i=document.createElement("li");i.textContent=o,r.appendChild(i)}n.appendChild(r)}function Qa(e){let t=e.querySelector(".v-invalid");if(!t)return!1;try{t.focus({preventScroll:!0})}catch(r){t.focus()}let n=typeof window!="undefined"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;return typeof t.scrollIntoView=="function"&&t.scrollIntoView({block:"center",behavior:n?"auto":"smooth"}),!0}function Oi(e,t=!0){let n=e.tagName==="FORM"?Array.from(e.elements):Array.from(e.querySelectorAll("input, select, textarea")),r=[];for(let o of n)Xe(o)&&(o.disabled||Zh.has(ht(o))||t&&Xa(o).length===0||r.push(o));return r}async function Ja(e,t={}){var s,a;if(!Xe(e))return{valid:!0};let n=Xa(e);if(!n.length)return t.silent||_a(e),{valid:!0};let r=eo(e),o=At(e,"error-message"),i=r.trim()==="";for(let l of n){if(i&&!ug.has(l.name))continue;let c=Ai.get(l.name);if(!c)continue;let d;try{d=await c.fn(r,l.param||void 0,e)}catch(f){Y(`Rule "${l.name}" failed to execute`,f);continue}if(d===!0)continue;let u=o!=null?o:typeof d=="string"?d:(a=(s=rt[l.name])!=null?s:c.message)!=null?a:rt.invalid,p=Ju(u,{field:eg(e),param:l.param,value:r});return t.silent||(Hi(e,p),Qu(e,{valid:!1,message:p,rule:l.name})),{valid:!1,message:p,rule:l.name}}return t.silent||(_a(e,!i),Qu(e,{valid:!0})),{valid:!0}}function Za(e){return Xe(e)?Ja(e):el(e)}async function el(e){let t=Oi(e),n=await Promise.all(t.map(o=>Ja(o))),r={};return t.forEach((o,i)=>{var a;let s=n[i];s.valid||(r[Ya(o)]=(a=s.message)!=null?a:rt.invalid)}),{valid:Object.keys(r).length===0,errors:r}}function Qu(e,t){e.dispatchEvent(new CustomEvent("voodoo:field-validated",{bubbles:!0,detail:{field:Ya(e),...t}}))}function hg(e){let t=e.indexOf("[");if(t===-1)return[e];let n=[e.slice(0,t)],r=/\[([^\]]*)\]/g,o;for(;(o=r.exec(e))!==null;)n.push(o[1]);return n}function gg(e,t,n){let r=e;for(let o=0;o<t.length;o++){let i=t[o],s=o===t.length-1,a=t[o+1];if(i===""){if(!Array.isArray(r))return;if(s){r.push(n);return}let c=a===""?[]:{};r.push(c),r=c;continue}if(Array.isArray(r)){let c=Number(i);if(!Number.isInteger(c))return;if(s){r[c]=n;return}let d=r[c];(d==null||typeof d!="object")&&(d=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[c]=d),r=d;continue}if(s){r[i]=n;return}let l=r[i];(l==null||typeof l!="object")&&(l=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[i]=l),r=l}}function bg(e,t){var a,l,c,d;let n=Oi(e,!1),r=[],o=new Map;for(let u of n)ht(u)==="checkbox"&&u.name&&o.set(u.name,((a=o.get(u.name))!=null?a:0)+1);let i=t.trim!==!1,s=t.numbers!==!1;for(let u of n){if(!u.name||u.disabled&&!t.includeDisabled)continue;let p=ht(u);if(p==="file"){let m=Array.from((l=u.files)!=null?l:[]);if(!m.length)continue;let h=u.multiple||u.name.endsWith("[]");r.push({name:u.name,value:h?m:m[0]});continue}if(p==="checkbox"){if(((c=o.get(u.name))!=null?c:1)>1||u.name.endsWith("[]")){if(!u.checked)continue;let h=u.name.endsWith("[]")?u.name:`${u.name}[]`;r.push({name:h,value:u.value||"on"})}else r.push({name:u.name,value:u.checked});continue}if(p==="radio"){if(!u.checked)continue;r.push({name:u.name,value:u.value});continue}if(u.tagName==="SELECT"&&u.multiple){let m=Array.from(u.selectedOptions).map(v=>v.value),h=u.name.endsWith("[]")?u.name:`${u.name}[]`;for(let v of m)r.push({name:h,value:v});continue}let f=(d=u.value)!=null?d:"";if(i&&typeof f=="string"&&(f=f.trim()),s&&(p==="number"||p==="range")&&f!==""){let m=Number(f);Number.isFinite(m)&&(f=m)}r.push({name:u.name,value:f})}return r}function yg(e){for(let t of Oi(e,!1)){if(ht(t)!=="file")continue;let n=t.files;if(n&&n.length)return!0}return!1}function tf(e,t,n){if(n instanceof File||typeof Blob!="undefined"&&n instanceof Blob){e.append(t,n);return}if(Array.isArray(n)){let r=t.endsWith("[]")?t:`${t}[]`;for(let o of n)tf(e,r,o);return}if(typeof n=="boolean"){e.append(t,n?"1":"0");return}e.append(t,n==null?"":String(n))}function or(e,t={}){let n=bg(e,t);if(t.formData||yg(e)){let o=new FormData;for(let i of n)tf(o,i.name,i.value);return o}let r={};for(let o of n)gg(r,hg(o.name),o.value);return r}var Jr=new WeakSet,Zr=new WeakSet;async function Si(e){(await Ja(e)).valid?Zr.delete(e):Zr.add(e)}function Ni(e,t){if(!Xe(e)){Y(`${w.prefix}validate only works on input, select, or textarea.`);return}if(Jr.has(e))return;Jr.add(e),Di();let n=()=>{Si(e)},r=()=>{Zr.has(e)&&Si(e)};e.addEventListener("blur",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{Jr.delete(e),Zr.delete(e),e.removeEventListener("blur",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}var Ka=new WeakSet;function nf(e){return Ka.has(e)||Qh(e,"validate")}function xg(e,t){Ka.add(e),Di(),e.tagName==="FORM"&&(e.noValidate=!0);let n=o=>{let i=o.target;!Xe(i)||Jr.has(i)||Xa(i).length!==0&&Si(i)},r=o=>{let i=o.target;!Xe(i)||Jr.has(i)||Zr.has(i)&&Si(i)};e.addEventListener("focusout",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{Ka.delete(e),e.removeEventListener("focusout",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}y("validate",({el:e,cleanup:t})=>{if(e.tagName==="FORM"||e.hasAttribute(`${w.prefix}submit`)){xg(e,t);return}Ni(e,t)});var wg=["required","email","url","number","integer","minlength","maxlength","min","max","match","regex","cpf","cnpj","cep","phone","date","accepted","strong-password"];for(let e of wg)y(e,({el:t,cleanup:n})=>{Ni(t,n)});for(let e of["error-message","error-target","regex-flags","unique-url"])y(e,({el:t,cleanup:n})=>{Xe(t)&&Ni(t,n)});function of(){return Z({loading:!1,saving:!1,success:!1,errors:{},message:"",data:null,status:0,dirty:!1,progress:0})}var ir=new WeakMap,rl=new WeakMap,Eg=of();function ro(e){let t=ir.get(e);return t||(t=of(),ir.set(e,t)),t}function kg(e){let t=e;for(;t;){let n=rl.get(t);if(n)return n;let r=t.el;if(r){let o=r.closest("form"),i=o?ir.get(o):void 0;if(i)return i;let s=r.querySelector("form"),a=s?ir.get(s):void 0;if(a)return a}t=t.parent}if(typeof document!="undefined")for(let n of Array.from(document.forms)){let r=ir.get(n);if(r)return r}return Eg}P("$form",e=>kg(e));var sr=new WeakMap,Tg=["submit","upload","dropzone","autosave","get","post","put","patch","delete","load","load-visible","search","resource"];function rf(e){return Tg.some(t=>Ot(e,`${w.prefix}${t}`)||Ot(e,`data-v-${t}`))}function Se(e,t){var i,s,a;let n=At(e,t);if(n!==null)return n;let r=e.closest("form");if(r&&r!==e){let l=At(r,t);if(l!==null)return l}let o=(a=(i=sr.get(e))==null?void 0:i[t])!=null?a:r?(s=sr.get(r))==null?void 0:s[t]:void 0;return o!=null?o:null}function zi(e,t){return Se(e,t)!==null}function Ge(e,t){y(e,({el:n,expression:r})=>{var a,l;let o=(a=n.closest("form"))!=null?a:n,i=(l=sr.get(o))!=null?l:{};if(i[e]=r,sr.set(o,i),!rf(o)&&!rf(n)){Y(`${w.prefix}${e} needs an element with ${w.prefix}submit, ${w.prefix}upload, ${w.prefix}dropzone, or ${w.prefix}autosave.`);return}let s=t==null?void 0:t(r);s&&Y(s)})}var Lg=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"];Ge("method",e=>e&&!Lg.includes(e.trim().toUpperCase())?`${w.prefix}method received an unknown verb: ${e}`:null);Ge("redirect");Ge("reset-success");Ge("disable-loading");Ge("loading-class");Ge("on-success");Ge("on-error");Ge("on-complete");Ge("toast-success");Ge("toast-error");Ge("confirm");Ge("form-data");y("loading",({el:e,expression:t})=>{var i,s;let n=(i=e.closest("form"))!=null?i:e,r=(s=sr.get(n))!=null?s:{};r.loading=t,sr.set(n,r);let o=sf(t);if(!o){Y(`${w.prefix}loading element not found: ${t}`);return}af(o,!1)});var Mg=`
|
|
287
|
+
form.v-loading{cursor:progress}
|
|
288
|
+
form.v-loading [type="submit"],form.v-loading button[disabled]{opacity:.6}
|
|
289
|
+
.v-progress{position:relative;overflow:hidden;width:100%;height:8px;margin-top:8px;
|
|
290
|
+
border-radius:999px;background:var(--v-surface-2,#FBF7F2);border:1px solid var(--v-border,#E6E0F0)}
|
|
291
|
+
.v-progress-bar{display:block;height:100%;width:0;border-radius:999px;
|
|
292
|
+
background:var(--v-primary,#6D3BF5);transition:width .18s var(--v-ease,ease)}
|
|
293
|
+
.v-progress[data-state="error"] .v-progress-bar{background:var(--v-danger,#FF4D4D)}
|
|
294
|
+
.v-progress[data-state="done"] .v-progress-bar{background:var(--v-success,#2ED9A5)}
|
|
295
|
+
|
|
296
|
+
.v-dropzone{display:grid;place-items:center;gap:6px;min-height:132px;padding:20px;cursor:pointer;
|
|
297
|
+
border:2px dashed var(--v-border,#E6E0F0);border-radius:var(--v-radius,12px);
|
|
298
|
+
background:var(--v-surface,#fff);color:var(--v-text-muted,#6B6580);text-align:center;
|
|
299
|
+
font:500 14px/1.5 var(--v-font-sans,system-ui,-apple-system,sans-serif);
|
|
300
|
+
transition:border-color .18s var(--v-ease,ease),background .18s var(--v-ease,ease)}
|
|
301
|
+
.v-dropzone:focus-visible{outline:2px solid var(--v-primary,#6D3BF5);outline-offset:2px}
|
|
302
|
+
.v-dropzone-over{border-color:var(--v-primary,#6D3BF5);
|
|
303
|
+
background:color-mix(in srgb,var(--v-primary,#6D3BF5) 8%,var(--v-surface,#fff));
|
|
304
|
+
color:var(--v-primary,#6D3BF5)}
|
|
305
|
+
.v-dropzone-busy{cursor:progress;opacity:.75}
|
|
306
|
+
.v-dropzone-error{border-color:var(--v-danger,#FF4D4D);color:var(--v-danger,#FF4D4D)}
|
|
307
|
+
|
|
308
|
+
.v-autosave-status{display:inline-flex;align-items:center;gap:6px;margin-top:8px;
|
|
309
|
+
color:var(--v-text-muted,#6B6580);
|
|
310
|
+
font:500 12.5px/1.4 var(--v-font-sans,system-ui,-apple-system,sans-serif)}
|
|
311
|
+
.v-autosave-status[data-state="saving"]{color:var(--v-info,#9B7BFF)}
|
|
312
|
+
.v-autosave-status[data-state="saved"]{color:var(--v-success,#2ED9A5)}
|
|
313
|
+
.v-autosave-status[data-state="error"]{color:var(--v-danger,#FF4D4D)}
|
|
314
|
+
@media (prefers-reduced-motion: reduce){.v-progress-bar,.v-dropzone{transition:none}}
|
|
315
|
+
`;function oo(){he(),ne("forms-ajax",Mg)}function _t(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Bi(e,t){let n=e.trim();n.includes("{")&&(n=n.replace(/\{([^{}]+)\}/g,(o,i)=>{let s=q(i.trim(),t,`${w.prefix}submit`);return s==null?o:String(s)}));let r=w.baseURL;return r&&!/^[a-z][a-z0-9+.-]*:\/\//i.test(n)&&!n.startsWith("//")&&(n=`${r.replace(/\/$/,"")}/${n.replace(/^\//,"")}`),n}function ol(e){var r;if(!e||typeof e!="object")return"";let t=e,n=(r=t.message)!=null?r:t.mensagem;return typeof n=="string"?n:""}function il(e,t="",n={}){if(e==null)return n;if(Array.isArray(e))return e.forEach((r,o)=>il(r,`${t}[${o}]`,n)),n;if(typeof e=="object"&&!(e instanceof File)){for(let[r,o]of Object.entries(e))il(o,t?`${t}[${r}]`:r,n);return n}return t&&(n[t]=String(e)),n}function Sg(e){return Array.from(e.querySelectorAll('button[type="submit"], button:not([type]), input[type="submit"], input[type="image"]'))}function sf(e){return!e||typeof document=="undefined"?null:document.querySelector(e)}var tl=new WeakMap;function af(e,t){var n;if(t){e.hidden=!1,e.style.display=(n=tl.get(e))!=null?n:"",e.removeAttribute("aria-hidden");return}tl.has(e)||tl.set(e,e.style.display==="none"?"":e.style.display),e.style.display="none",e.setAttribute("aria-hidden","true")}function Ii(e,t){let{host:n,form:r,state:o}=e;o.loading=t,r.classList.toggle("v-loading",t),r.setAttribute("aria-busy",t?"true":"false");let i=Se(n,"loading-class");if(i)for(let a of i.split(/\s+/).filter(Boolean))r.classList.toggle(a,t);if(zi(n,"disable-loading"))for(let a of Sg(r))a.disabled=t;let s=Se(n,"loading");if(s){let a=sf(s);a&&af(a,t)}}function ji(e,t,n,r){let o=Se(e.host,t);if(!o)return;let i=e.scope.child({$data:n,$response:r,$form:e.state,$el:e.host}),s=q(o,i,`${w.prefix}${t}`);typeof s=="function"&&s.call(e.scope.data,n,r)}function Ag(e,t){let n=Se(e.host,"target");if(!n||typeof t!="string")return;let r=document.querySelector(n);if(!r){Y(`${w.prefix}target destination not found: ${n}`);return}let o=(Se(e.host,"swap")||"innerHTML").trim().toLowerCase();if(o==="none")return;if(o==="text"){r.textContent=t;return}let i=document.createElement("template");i.innerHTML=t;let s=Array.from(i.content.childNodes),a=Ve(r);switch(o){case"inner":case"innerhtml":for(let l of Array.from(r.children))X(l);r.textContent="",r.append(...s);break;case"afterbegin":case"prepend":r.prepend(...s);break;case"beforeend":case"append":r.append(...s);break;case"beforebegin":r.before(...s);break;case"afterend":r.after(...s);break;case"outer":case"outerhtml":case"replace":X(r),r.replaceWith(...s);break;default:Y(`Unknown mode in ${w.prefix}swap: ${o}`);return}for(let l of s)l.nodeType===1&&se(l,a)}function lf(e,t,n){var l;let{state:r,form:o,host:i}=e;r.success=!0,r.errors={},r.data=t,r.status=n,r.dirty=!1,r.message=ol(t),Ag(e,t),zi(i,"reset-success")&&o.tagName==="FORM"&&(o.reset(),no(o));let s=Se(i,"toast-success");s!==null&&tt.success(s||r.message||"All set!"),ji(e,"on-success",t,{status:n}),_t(o,"voodoo:success",{data:t,status:n,form:o,state:r});let a=Se(i,"redirect");if(a!==null&&typeof window!="undefined"){let c=t&&typeof t=="object"?(l=t.redirect)!=null?l:t.url:null,d=e.scope.child({$data:t,$form:r}),u=a?Bi(a,d):String(c!=null?c:"");u&&window.location.assign(u)}}function sl(e,t){var c,d;let{state:n,form:r,host:o}=e,i=t instanceof Ee?t:new Ee(t instanceof Error?t.message:String(t)),s=(d=(c=i.response)==null?void 0:c.data)!=null?d:null;n.success=!1,n.data=s,n.status=i.status,n.message=ol(s)||i.message;let a=Ga(s);(i.status===422||Object.keys(a).length>0)&&(n.errors=Pi(r,s),Qa(r));let l=Se(o,"toast-error");l!==null&&tt.error(l||ol(s)||"Could not submit the form."),ji(e,"on-error",s,i),_t(r,"voodoo:error",{error:i,data:s,status:i.status,form:r,state:n})}function cf(e,t){ji(e,"on-complete",e.state.data,{ok:t,status:e.state.status}),_t(e.form,"voodoo:complete",{ok:t,status:e.state.status,data:e.state.data,form:e.form,state:e.state})}async function Cg(e,t){let{host:n,form:r,state:o,scope:i}=e;if(o.loading)return;let s=Se(n,"confirm");if(s!==null&&typeof window!="undefined"&&!window.confirm(s||"Confirm this action?"))return;if(nf(r)){no(r);let p=await el(r);if(o.errors=p.errors,!p.valid){Qa(r),_t(r,"voodoo:invalid",{errors:p.errors,form:r,state:o});return}}let a=(Se(n,"method")||r.getAttribute("method")||"POST").trim().toUpperCase(),l=Bi(t,i)||(r.tagName==="FORM"?r.action:"")||(typeof location!="undefined"?location.href:""),c=or(r,{formData:zi(n,"form-data")}),d=a==="GET"||a==="HEAD";Ii(e,!0),o.success=!1,o.progress=0,_t(r,"voodoo:submit",{url:l,method:a,form:r,state:o});let u=!1;try{let p=await zt({url:l,method:a,body:d?void 0:c,params:d&&!(c instanceof FormData)?il(c):void 0});u=!0,lf(e,p.data,p.status)}catch(p){sl(e,p)}finally{Ii(e,!1),cf(e,u)}}y("submit",({el:e,scope:t,expression:n,cleanup:r})=>{oo();let o=e,i=ro(o),s=t.child({$form:i},o);rl.set(s,i),rl.set(t,i),Nt(o,s);for(let d of Array.from(o.childNodes))d.nodeType===1&&Nt(d,s);let a={host:o,form:o,scope:s,state:i},l=d=>{d.preventDefault(),Cg(a,n)},c=d=>{var f;let u=d.detail;if(!u||!u.field)return;let p={...i.errors};u.valid?delete p[u.field]:p[u.field]=(f=u.message)!=null?f:"",i.errors=p};o.addEventListener("submit",l),o.addEventListener("voodoo:field-validated",c),r(()=>{ir.delete(o),o.removeEventListener("submit",l),o.removeEventListener("voodoo:field-validated",c)})},{priority:j.DATA-1});function Rg(e){let t=Se(e,"progress");if(t){let o=document.querySelector(t);return o||(Y(`${w.prefix}progress bar not found: ${t}`),null)}let n=e.nextElementSibling;if(n&&n.classList.contains("v-progress"))return n;oo();let r=document.createElement("div");return r.className="v-progress",r.setAttribute("role","progressbar"),r.setAttribute("aria-valuemin","0"),r.setAttribute("aria-valuemax","100"),r.innerHTML='<span class="v-progress-bar"></span>',e.insertAdjacentElement("afterend",r),r}function Fi(e,t,n){if(!e)return;let r=Math.max(0,Math.min(100,Math.round(t)));if(e.tagName==="PROGRESS")e.value=r,e.max=100;else{let o=e.classList.contains("v-progress-bar")?e:e.querySelector(".v-progress-bar, [data-progress-bar]");o?o.style.width=`${r}%`:e.style.width=`${r}%`}e.setAttribute("aria-valuenow",String(r)),n?e.setAttribute("data-state",n):e.removeAttribute("data-state")}function $g(e,t,n){let r=new FormData,i=t.length>1||n.endsWith("[]")?n.endsWith("[]")?n:`${n}[]`:n;for(let a of t)r.append(i,a);let s=e.closest("form");if(s){let a=or(s,{formData:!0});if(a instanceof FormData)for(let[l,c]of a.entries())c instanceof File||r.append(l,c)}return r}async function df(e,t,n,r){if(!n.length||e.state.loading)return;let{state:o,form:i,host:s}=e,a=Bi(t,e.scope);if(!a){Y(`${w.prefix}upload needs a destination URL.`);return}let l=Rg(s),c=$g(s,n,r);Ii(e,!0),o.success=!1,o.progress=0,Fi(l,0,"loading"),_t(i,"voodoo:upload",{url:a,files:n,form:i,state:o});let d=!1;try{let u=(Se(s,"method")||"POST").trim().toUpperCase(),p=await ve.upload(a,c,{method:u==="PUT"||u==="PATCH"?u:"POST",onProgress:f=>{o.progress=f,Fi(l,f,"loading"),_t(i,"voodoo:progress",{percent:f,form:i,state:o})}});d=!0,o.progress=100,Fi(l,100,"done"),lf(e,p,200)}catch(u){Fi(l,o.progress,"error"),sl(e,u)}finally{Ii(e,!1),cf(e,d)}}y("upload",({el:e,scope:t,expression:n,cleanup:r})=>{var c;let o=e;if(o.tagName!=="INPUT"||(o.getAttribute("type")||"").toLowerCase()!=="file"){Y(`${w.prefix}upload needs an <input type="file">.`);return}oo();let i=(c=o.closest("form"))!=null?c:o,s=ro(i),a={host:o,form:i,scope:t,state:s},l=()=>{var u;let d=Array.from((u=o.files)!=null?u:[]);d.length&&df(a,n,d,o.name||"file")};o.addEventListener("change",l),r(()=>o.removeEventListener("change",l))});y("dropzone",({el:e,scope:t,expression:n,cleanup:r})=>{var b,x,T;oo(),e.classList.add("v-dropzone"),e.hasAttribute("tabindex")||(e.tabIndex=0),e.hasAttribute("role")||e.setAttribute("role","button"),(b=e.textContent)!=null&&b.trim()||(e.textContent="Drag files here or click to choose");let o=(x=e.closest("form"))!=null?x:e,i=ro(o),s={host:e,form:o,scope:t,state:i},a=Se(e,"field")||"file",l=document.createElement("input");l.type="file",l.hidden=!0,l.tabIndex=-1,e.hasAttribute("accept")&&(l.accept=(T=e.getAttribute("accept"))!=null?T:""),e.hasAttribute("multiple")&&(l.multiple=!0),e.appendChild(l);let c=k=>{k.length&&(e.classList.add("v-dropzone-busy"),e.classList.remove("v-dropzone-error"),df(s,n,k,a).finally(()=>{e.classList.remove("v-dropzone-busy"),i.success||e.classList.add("v-dropzone-error")}))},d=0,u=k=>{k.preventDefault(),d++,e.classList.add("v-dropzone-over")},p=k=>{k.preventDefault(),k.dataTransfer&&(k.dataTransfer.dropEffect="copy")},f=()=>{d=Math.max(0,d-1),d===0&&e.classList.remove("v-dropzone-over")},m=k=>{var D,C;k.preventDefault(),d=0,e.classList.remove("v-dropzone-over");let A=Array.from((C=(D=k.dataTransfer)==null?void 0:D.files)!=null?C:[]);c(l.multiple?A:A.slice(0,1))},h=k=>{k.target!==l&&l.click()},v=k=>{k.key!=="Enter"&&k.key!==" "||(k.preventDefault(),l.click())},g=()=>{var A;let k=Array.from((A=l.files)!=null?A:[]);c(k),l.value=""};e.addEventListener("dragenter",u),e.addEventListener("dragover",p),e.addEventListener("dragleave",f),e.addEventListener("drop",m),e.addEventListener("click",h),e.addEventListener("keydown",v),l.addEventListener("change",g),r(()=>{e.removeEventListener("dragenter",u),e.removeEventListener("dragover",p),e.removeEventListener("dragleave",f),e.removeEventListener("drop",m),e.removeEventListener("click",h),e.removeEventListener("keydown",v),l.removeEventListener("change",g),l.remove()})});var Dg={idle:"",saving:"Saving...",saved:"Changes saved",error:"Could not save"};function Hg(e){let t=Se(e,"autosave-status");if(t){let o=document.querySelector(t);if(o)return o;Y(`${w.prefix}autosave-status element not found: ${t}`)}let n=e.querySelector(".v-autosave-status");if(n)return n;let r=document.createElement("span");return r.className="v-autosave-status",r.setAttribute("aria-live","polite"),e.appendChild(r),r}function nl(e,t){e.setAttribute("data-state",t),e.textContent=Dg[t]}y("autosave",({el:e,scope:t,expression:n,modifiers:r,cleanup:o})=>{var m,h,v;oo();let i=e,s=ro(i),a={host:i,form:i,scope:t,state:s},l=Hg(i),c=(v=(h=(m=typeof r.delay=="string"?r.delay:null)!=null?m:Object.keys(r).find(g=>/^[\d.]+(ms|s|m)?$/.test(g)))!=null?h:Se(i,"autosave-delay"))!=null?v:1e3,d=G(c,1e3),u=async()=>{let g=Bi(n,t);if(!g){Y(`${w.prefix}autosave needs a destination URL.`);return}if(s.loading)return;s.saving=!0,nl(l,"saving");let b=(Se(i,"method")||"POST").trim().toUpperCase();try{let x=await zt({url:g,method:b,body:or(i,{formData:zi(i,"form-data")})});s.data=x.data,s.status=x.status,s.dirty=!1,s.success=!0,nl(l,"saved"),ji(a,"on-success",x.data,{status:x.status}),_t(i,"voodoo:autosave",{data:x.data,status:x.status,form:i,state:s})}catch(x){nl(l,"error"),sl(a,x)}finally{s.saving=!1}},p=Ue(()=>{u()},d),f=()=>{s.dirty=!0,p()};i.addEventListener("input",f),i.addEventListener("change",f),o(()=>{p.cancel(),i.removeEventListener("input",f),i.removeEventListener("change",f)})});y("guard",({el:e,expression:t,cleanup:n})=>{var c;let r=(c=e.tagName==="FORM"?e:e.closest("form"))!=null?c:e,o=ro(r),i=t.trim()||"There are unsaved changes.",s=()=>{o.dirty=!0},a=()=>{o.dirty=!1},l=d=>{!o.dirty||o.loading||(d.preventDefault(),d.returnValue=i)};r.addEventListener("input",s),r.addEventListener("change",s),r.addEventListener("reset",a),r.addEventListener("voodoo:success",a),window.addEventListener("beforeunload",l),n(()=>{r.removeEventListener("input",s),r.removeEventListener("change",s),r.removeEventListener("reset",a),r.removeEventListener("voodoo:success",a),window.removeEventListener("beforeunload",l)})});be();le();function io(e){let t={};for(let[n,r]of Object.entries(e))if(typeof r!="function"&&!n.startsWith("$"))try{JSON.stringify(r),t[n]=Le(r)}catch(o){}return t}function uf(e,t){if(e.id)return`${t}:${location.pathname}:#${e.id}`;let n=[],r=e;for(;r&&r!==document.body;){let o=r.parentElement,i=o?Array.from(o.children).indexOf(r):0;n.unshift(`${r.tagName.toLowerCase()}${i}`),r=o}return`${t}:${location.pathname}:${n.join(">")}`}y("persist",({el:e,scope:t,expression:n,cleanup:r})=>{let o=n.trim()?`voodoo:persist:${n.trim()}`:uf(e,"voodoo:persist"),i=ue.get(o);if(i&&typeof i=="object")for(let[l,c]of Object.entries(i))l in t.data&&(t.data[l]=c);let s=Ue(()=>{ue.set(o,io(t.data))},120),a=Ne(t.data,()=>s(),{deep:!0});s(),r(()=>{s.flush(),a()})},{priority:j.DATA-1});y("sync",({el:e,scope:t,expression:n,cleanup:r})=>{if(typeof BroadcastChannel=="undefined")return;let o=n.trim()||uf(e,"voodoo:sync"),i=new BroadcastChannel(o),s=Math.random().toString(36).slice(2),a=!1,l=Ue(()=>{if(!a)try{i.postMessage({from:s,state:io(t.data)})}catch(d){K(d,"v-sync")}},60);i.addEventListener("message",d=>{let u=d.data;if(!(!u||u.from===s)){a=!0;for(let[p,f]of Object.entries(u.state))p in t.data&&t.data[p]!==f&&(t.data[p]=f);queueMicrotask(()=>{a=!1})}});let c=Ne(t.data,()=>l(),{deep:!0});r(()=>{c(),i.close()})},{priority:j.DATA-1});var al=new WeakMap;function ll(e){let t=e;for(;t;){let n=al.get(t);if(n)return n;t=t.parentElement}return null}y("history",({el:e,scope:t,expression:n,cleanup:r})=>{var f;let o=Number(n)||50,i=[JSON.parse(JSON.stringify(io(t.data)))],s=0,a=!1,l=Z({canUndo:!1,canRedo:!1,size:1,undo(){s<=0||(s--,d())},redo(){s>=i.length-1||(s++,d())},clear(){i.length=0,i.push(JSON.parse(JSON.stringify(io(t.data)))),s=0,c()}});function c(){l.canUndo=s>0,l.canRedo=s<i.length-1,l.size=i.length}function d(){a=!0;let m=i[s];for(let[h,v]of Object.entries(m))t.data[h]=JSON.parse(JSON.stringify(v));c(),queueMicrotask(()=>{a=!1})}let u=Ue(()=>{if(a)return;let m=JSON.stringify(io(t.data));m!==JSON.stringify(i[s])&&(i.splice(s+1),i.push(JSON.parse(m)),i.length>o&&i.shift(),s=i.length-1,c())},G((f=e.getAttribute("v-history-debounce"))!=null?f:void 0,300)),p=Ne(t.data,()=>u(),{deep:!0});al.set(e,l),t.set("$history",l),r(()=>{p(),u.cancel(),al.delete(e)})},{priority:j.DATA-1});y("undo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=ll(e))==null?void 0:r.undo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});y("redo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=ll(e))==null?void 0:r.redo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});y("storage",({el:e,expression:t,cleanup:n,scope:r})=>{let o=t.trim();if(!o)return;let i=e,s=ue.get(`voodoo:field:${o}`);s!=null&&"value"in i&&(i.value=String(s));let a=()=>{ue.set(`voodoo:field:${o}`,i.value)};i.addEventListener("input",a),n(()=>i.removeEventListener("input",a))});P("$history",e=>e.el?ll(e.el):null);le();var ar=null,Kt=.35,Ct=!1,ff=!1,cl="voodoo:sound:volume",vf="voodoo:sound:muted";function vn(){if(ff)return;ff=!0;let e=ue.get(cl);typeof e=="number"&&e>=0&&e<=1&&(Kt=e);let t=ue.get(vf);typeof t=="boolean"&&(Ct=t),typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches&&ue.get(cl)===void 0&&(Kt=.18)}function pf(){var t;if(typeof window=="undefined")return null;if(ar)return ar.state==="suspended"&&ar.resume(),ar;let e=(t=window.AudioContext)!=null?t:window.webkitAudioContext;if(!e)return null;try{return ar=new e,ar}catch(n){return null}}function mf(e,t,n){var c,d,u,p;let r=e.currentTime+((c=t.atraso)!=null?c:0),o=r+t.duracao,i=e.createOscillator();i.type=(d=t.forma)!=null?d:"sine",i.frequency.setValueAtTime(t.frequencia,r),t.ate!==void 0&&t.ate!==t.frequencia&&i.frequency.exponentialRampToValueAtTime(Math.max(1,t.ate),o);let s=e.createGain(),a=Kt*n*((u=t.volume)!=null?u:1),l=(p=t.ataque)!=null?p:.008;s.gain.setValueAtTime(1e-4,r),s.gain.exponentialRampToValueAtTime(Math.max(1e-4,a),r+l),s.gain.exponentialRampToValueAtTime(1e-4,o),i.connect(s),s.connect(e.destination),i.start(r),i.stop(o+.02)}var qi={click:{volume:.5,camadas:[{frequencia:660,ate:440,duracao:.06,forma:"triangle"}]},pop:{volume:.5,camadas:[{frequencia:880,ate:1320,duracao:.07,forma:"sine"}]},hover:{volume:.22,camadas:[{frequencia:1200,duracao:.035,forma:"sine"}]},success:{volume:.6,camadas:[{frequencia:523.25,duracao:.1,forma:"sine"},{frequencia:783.99,duracao:.18,forma:"sine",atraso:.09}]},complete:{volume:.6,camadas:[{frequencia:523.25,duracao:.1,forma:"sine"},{frequencia:659.25,duracao:.1,forma:"sine",atraso:.09},{frequencia:1046.5,duracao:.22,forma:"sine",atraso:.18}]},error:{volume:.6,camadas:[{frequencia:392,duracao:.12,forma:"square",volume:.5},{frequencia:261.63,duracao:.24,forma:"square",volume:.5,atraso:.1}]},warning:{volume:.55,camadas:[{frequencia:587.33,duracao:.1,forma:"triangle"},{frequencia:587.33,duracao:.14,forma:"triangle",atraso:.14}]},notify:{volume:.5,camadas:[{frequencia:987.77,duracao:.14,forma:"sine"},{frequencia:1318.51,duracao:.3,forma:"sine",atraso:.08,volume:.6}]},type:{volume:.18,camadas:[{frequencia:2200,duracao:.018,forma:"square"}]},open:{volume:.4,camadas:[{frequencia:330,ate:660,duracao:.14,forma:"sine"}]},close:{volume:.4,camadas:[{frequencia:660,ate:330,duracao:.14,forma:"sine"}]},deny:{volume:.5,camadas:[{frequencia:220,duracao:.08,forma:"square",volume:.5},{frequencia:180,duracao:.12,forma:"square",volume:.5,atraso:.07}]},coin:{volume:.45,camadas:[{frequencia:987.77,duracao:.06,forma:"square"},{frequencia:1318.51,duracao:.16,forma:"square",atraso:.05}]},levelup:{volume:.55,camadas:[{frequencia:523.25,duracao:.08,forma:"square"},{frequencia:659.25,duracao:.08,forma:"square",atraso:.07},{frequencia:783.99,duracao:.08,forma:"square",atraso:.14},{frequencia:1046.5,duracao:.26,forma:"square",atraso:.21}]},drop:{volume:.5,camadas:[{frequencia:180,ate:90,duracao:.12,forma:"triangle"}]}},Pg={do:261.63,"do#":277.18,re:293.66,"re#":311.13,mi:329.63,fa:349.23,"fa#":369.99,sol:392,"sol#":415.3,la:440,"la#":466.16,si:493.88,c:261.63,d:293.66,e:329.63,f:349.23,g:392,a:440,b:493.88};function Vi(e){let t=String(e).trim().toLowerCase(),n=/^([a-z]+#?)(\d)?$/.exec(t);if(!n)return null;let r=Pg[n[1]];if(r===void 0)return null;let o=n[2]?Number(n[2]):4;return r*2**(o-4)}var Ui=new Map;function Og(e,t){let n=Ui.get(e);n||(n=new Audio(e),n.preload="auto",Ui.set(e,n)),n.volume=Math.max(0,Math.min(1,Kt*t)),n.currentTime=0,n.play().catch(()=>{})}function hf(e){return/^(https?:)?\/\//.test(e)||/^[./]/.test(e)||/\.(mp3|wav|ogg|m4a|aac)$/i.test(e)}var Yt={play(e,t={}){var l,c,d;if(vn(),Ct||!e)return;let n=String(e).trim(),r=(l=t.volume)!=null?l:1;if(hf(n)){Og(n,r);return}let o=qi[n];if(!o){let u=Vi(n);u!==null&&this.tone(u,200,{volume:r});return}let i=pf();if(!i)return;let s=(c=t.tom)!=null?c:1,a=((d=o.volume)!=null?d:1)*r;for(let u of o.camadas)mf(i,s===1?u:{...u,frequencia:u.frequencia*s,ate:u.ate===void 0?void 0:u.ate*s},a)},tone(e,t=200,n={}){var o,i;if(vn(),Ct)return;let r=pf();r&&mf(r,{frequencia:e,duracao:t/1e3,forma:(o=n.forma)!=null?o:"sine"},(i=n.volume)!=null?i:.5)},note(e,t=250,n={}){let r=Vi(e);r!==null&&this.tone(r,t,n)},melody(e,t=150,n={}){vn(),!Ct&&e.forEach((r,o)=>{let i=typeof r=="number"?r:Vi(r);i!==null&&setTimeout(()=>this.tone(i,t*1.6,n),o*t)})},volume(e){return vn(),e===void 0||(Kt=Math.max(0,Math.min(1,e)),ue.set(cl,Kt)),Kt},mute(e=!0){vn(),Ct=e,ue.set(vf,Ct)},unmute(){this.mute(!1)},toggle(){return vn(),this.mute(!Ct),Ct},get muted(){return vn(),Ct},get names(){return Object.keys(qi)},define(e,t){qi[e]=t},preload(...e){for(let t of e){if(Ui.has(t))continue;let n=new Audio(t);n.preload="auto",Ui.set(t,n)}}};y("sound",({el:e,arg:t,expression:n,modifiers:r,scope:o,cleanup:i,evaluate:s})=>{let a=t||"click",l=()=>{let u=n.trim();if(!u)return"click";if(qi[u]||hf(u)||Vi(u)!==null)return u;let p=s();return typeof p=="string"?p:u},c=r.volume!==void 0?Number(r.volume):void 0,d=()=>{Yt.play(l(),c===void 0?{}:{volume:c})};e.addEventListener(a,d),i(()=>e.removeEventListener(a,d))});y("mute",({el:e,cleanup:t})=>{let n=()=>{let o=Yt.muted;e.setAttribute("aria-pressed",String(o)),e.classList.toggle("v-muted",o)},r=()=>{Yt.toggle(),n(),Yt.muted||Yt.play("pop")};e.addEventListener("click",r),n(),t(()=>e.removeEventListener("click",r))});P("$sound",()=>Yt);be();le();function so(){return typeof window=="undefined"||typeof window.matchMedia!="function"?!1:me.reducedMotion}var cr=new Set,gn=0;function Ef(e){gn=0;let t=Array.from(cr);for(let n of t)cr.has(n)&&n(e);cr.size>0&&(gn=requestAnimationFrame(Ef))}function kf(e){typeof requestAnimationFrame=="function"&&(cr.add(e),gn||(gn=requestAnimationFrame(Ef)))}function Ki(e){cr.delete(e),cr.size===0&&gn&&(cancelAnimationFrame(gn),gn=0)}var Tf=12e3;function Ng(e){return e*e*(2.70158*e-1.70158)}var ao={linear(e){return e},easeIn(e){return e*e*e},easeOut(e){return 1-Math.pow(1-e,3)},easeInOut(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},easeOutBack(e){return 1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2)},easeOutExpo(e){return e>=1?1:1-Math.pow(2,-10*e)},anticipate(e){let t=e*2;return t<1?.5*Ng(t):.5*(2-Math.pow(2,-10*(t-1)))},bounce(e){let r=e;return r<1/2.75?7.5625*r*r:r<2/2.75?(r-=1.5/2.75,7.5625*r*r+.75):r<2.5/2.75?(r-=2.25/2.75,7.5625*r*r+.9375):(r-=2.625/2.75,7.5625*r*r+.984375)}};function Fg(e){if(typeof e=="function")return e;if(typeof e=="string"){let t=ao[e];if(t)return t}return ao.easeOut}var gl={x:0,y:0,z:0,parallax:0,rotate:0,rotateX:0,rotateY:0,skewX:0,skewY:0,scale:1,scaleX:1,scaleY:1},Ig={x:"px",y:"px",z:"px",parallax:"px",rotate:"deg",rotateX:"deg",rotateY:"deg",skewX:"deg",skewY:"deg",scale:"",scaleX:"",scaleY:""},Lf={translateX:"x",translateY:"y",translateZ:"z",rotateZ:"rotate"},bl={blur:0,brightness:1,saturate:1,grayscale:0,contrast:1},zg={blur:"px",brightness:"",saturate:"",grayscale:"",contrast:""},Bg=new Set(["opacity","z-index","font-weight","line-height","flex-grow","flex-shrink","order","zoom","fill-opacity","stroke-opacity","stroke-width","stroke-dashoffset","stroke-dasharray"]),fl=new WeakMap,pl=new WeakMap;function Yi(e){let t=fl.get(e);return t||(t={...gl},fl.set(e,t)),t}function Mf(e){let t=pl.get(e);return t||(t={...bl},pl.set(e,t)),t}function Ae(e){return Math.round(e*1e3)/1e3}function ml(e){let t=fl.get(e);if(!t)return;let n=[],r=t.y+t.parallax;(t.x||r||t.z)&&n.push(`translate3d(${Ae(t.x)}px, ${Ae(r)}px, ${Ae(t.z)}px)`),t.rotateX&&n.push(`rotateX(${Ae(t.rotateX)}deg)`),t.rotateY&&n.push(`rotateY(${Ae(t.rotateY)}deg)`),t.rotate&&n.push(`rotate(${Ae(t.rotate)}deg)`),(t.skewX||t.skewY)&&n.push(`skew(${Ae(t.skewX)}deg, ${Ae(t.skewY)}deg)`);let o=t.scale*t.scaleX,i=t.scale*t.scaleY;(o!==1||i!==1)&&n.push(`scale(${Ae(o)}, ${Ae(i)})`),n.length>0?e.style.transform=n.join(" "):e.style.removeProperty("transform")}function jg(e){let t=pl.get(e);if(!t)return;let n=[];t.blur&&n.push(`blur(${Ae(t.blur)}px)`),t.brightness!==1&&n.push(`brightness(${Ae(t.brightness)})`),t.saturate!==1&&n.push(`saturate(${Ae(t.saturate)})`),t.grayscale&&n.push(`grayscale(${Ae(t.grayscale)})`),t.contrast!==1&&n.push(`contrast(${Ae(t.contrast)})`),n.length>0?e.style.filter=n.join(" "):e.style.removeProperty("filter")}var qg=/^([+-]?(?:\d+\.?\d*|\.\d+))([a-z%]*)$/i,Sf=/^#([0-9a-f]{3,8})$/i;function Wi(e){if(typeof e!="string")return!1;let t=e.trim().toLowerCase();return t==="transparent"||Sf.test(t)||t.startsWith("rgb")||t.startsWith("hsl")}function Vg(e,t,n){let r=(e%360+360)%360,o=(1-Math.abs(2*n-1))*t,i=o*(1-Math.abs(r/60%2-1)),s=n-o/2,a;return r<60?a=[o,i,0]:r<120?a=[i,o,0]:r<180?a=[0,o,i]:r<240?a=[0,i,o]:r<300?a=[i,0,o]:a=[o,0,i],[Math.round((a[0]+s)*255),Math.round((a[1]+s)*255),Math.round((a[2]+s)*255)]}function gf(e){var i,s;let t=e.trim().toLowerCase();if(t==="transparent")return[0,0,0,0];let n=Sf.exec(t);if(n){let a=n[1];(a.length===3||a.length===4)&&(a=a.split("").map(d=>d+d).join(""));let l=parseInt(a.slice(0,6),16),c=a.length===8?parseInt(a.slice(6,8),16)/255:1;return[l>>16&255,l>>8&255,l&255,c]}let r=(i=t.match(/-?(?:\d+\.?\d*|\.\d+)%?/g))!=null?i:[],o=(a,l)=>{var u;let c=(u=r[a])!=null?u:"0",d=parseFloat(c);return c.endsWith("%")?d/100*l:d};if(t.startsWith("hsl")){let a=c=>{var p;let d=(p=r[c])!=null?p:"0",u=parseFloat(d);return d.endsWith("%")||u>1?u/100:u},l=Vg(parseFloat((s=r[0])!=null?s:"0"),a(1),a(2));return[l[0],l[1],l[2],r.length>3?o(3,1):1]}return[o(0,255),o(1,255),o(2,255),r.length>3?o(3,1):1]}function Ug(e){let t=Math.max(0,Math.min(1,e[3]));return`rgba(${Math.round(e[0])}, ${Math.round(e[1])}, ${Math.round(e[2])}, ${Ae(t)})`}function Af(e){return e.startsWith("--")?e:e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Cf(e,t,n,r){if(t==="transform")return Yi(e)[n];if(t==="filter")return Mf(e)[n];if(typeof getComputedStyle!="function")return e.style.getPropertyValue(r).trim();let o=getComputedStyle(e).getPropertyValue(r);return o?o.trim():""}function Wg(e,t,n){var u;let r=(u=Lf[t])!=null?u:t,o=r in gl?"transform":r in bl?"filter":"style",i=o==="style"?Af(r):r,s=o==="transform"?Ig[r]:o==="filter"?zg[r]:Bg.has(i)?"":"px",a=Array.isArray(n)?[n[0],n[1]]:[Cf(e,o,r,i),n],l={kind:o,prop:r,cssName:i,mode:"number",unit:s,from:0,to:0,fromColor:[0,0,0,1],toColor:[0,0,0,1],fromText:String(a[0]),toText:String(a[1])};if(Wi(a[0])||Wi(a[1]))return o!=="style"?null:(l.mode="color",l.fromColor=Wi(a[0])?gf(String(a[0])):[0,0,0,0],l.toColor=Wi(a[1])?gf(String(a[1])):[0,0,0,0],l);let c=bf(a[0],s),d=bf(a[1],s);return!c||!d?o!=="style"?null:(l.mode="discrete",l):(l.from=c.value,l.to=d.value,l.unit=d.unit||c.unit||s,l)}function bf(e,t){if(typeof e=="number")return Number.isFinite(e)?{value:e,unit:t}:null;let n=qg.exec(e.trim());return n?{value:parseFloat(n[1]),unit:n[2]||t}:null}function lr(e,t,n){let r=!1,o=!1;for(let i of t){if(i.kind==="transform"){Yi(e)[i.prop]=i.from+(i.to-i.from)*n,r=!0;continue}if(i.kind==="filter"){Mf(e)[i.prop]=i.from+(i.to-i.from)*n,o=!0;continue}if(i.mode==="color"){let a=[i.fromColor[0]+(i.toColor[0]-i.fromColor[0])*n,i.fromColor[1]+(i.toColor[1]-i.fromColor[1])*n,i.fromColor[2]+(i.toColor[2]-i.fromColor[2])*n,i.fromColor[3]+(i.toColor[3]-i.fromColor[3])*n];e.style.setProperty(i.cssName,Ug(a));continue}if(i.mode==="discrete"){e.style.setProperty(i.cssName,n>=1?i.toText:i.fromText);continue}let s=i.from+(i.to-i.from)*n;e.style.setProperty(i.cssName,`${Ae(s)}${i.unit}`)}r&&ml(e),o&&jg(e)}function Rf(e,t){let n=[];for(let[r,o]of Object.entries(t)){if(o==null)continue;let i=Wg(e,r,o);i&&n.push(i)}return n}function yf(e,t){for(let n of yl(e))lr(n,Rf(n,t),0)}function _g(e,t){var r;let n={};for(let o of Object.keys(t)){let i=(r=Lf[o])!=null?r:o,s=i in gl?"transform":i in bl?"filter":"style";n[o]=Cf(e,s,i,s==="style"?Af(i):i)}return n}function dl(e){return typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof SVGElement!="undefined"&&e instanceof SVGElement}function yl(e){if(!e)return[];if(typeof e=="string")return typeof document=="undefined"?[]:Array.from(document.querySelectorAll(e)).filter(dl);if(dl(e))return[e];let t=e;if(typeof t.length!="number")return[];let n=[];for(let r=0;r<t.length;r++){let o=t[r];dl(o)&&n.push(o)}return n}function Xi(e){return{finished:Promise.resolve(),stop(){e==null||e()}}}function vl(e,t,n){var x,T,k,A,D,C,oe;let r=Rf(e,t);if(so()&&!n.force)return lr(e,r,1),(x=n.onUpdate)==null||x.call(n,1),(T=n.onComplete)==null||T.call(n),Xi();let o=Math.max(0,(k=n.duration)!=null?k:400),i=Math.max(0,(A=n.delay)!=null?A:0),s=Fg(n.easing),a=Math.max(0,Math.floor((D=n.repeat)!=null?D:0)),l=(C=n.repeatType)!=null?C:"loop",c=n.spring===!0?{}:n.spring?n.spring:null,d,u=new Promise(O=>{d=O}),p=!0,f=-1,m=-1,h=0,v=(oe=c==null?void 0:c.velocity)!=null?oe:0;function g(O){var Jt,Ln,ic,sc,ac,lc,cc;if(!p)return;f<0&&(f=O,m=O);let pe=O-f-i;if(pe<0)return;let ie=Math.min(64,Math.max(0,O-m));if(m=O,pe>Tf){b(1);return}if(c){let qp=(Jt=c.stiffness)!=null?Jt:170,Vp=(Ln=c.damping)!=null?Ln:26,Up=(ic=c.mass)!=null?ic:1,dc=Math.max(1,Math.round(ie)),uc=ie/dc/1e3;for(let fc=0;fc<dc;fc++){let Kp=(-qp*(h-1)-Vp*v)/Up;v+=Kp*uc,h+=v*uc}let Wp=(sc=c.restDelta)!=null?sc:.001,_p=(ac=c.restSpeed)!=null?ac:.01;if(Math.abs(1-h)<Wp&&Math.abs(v)<_p){b(1);return}lr(e,r,h),(lc=n.onUpdate)==null||lc.call(n,h);return}if(o===0){b(1);return}let R=a+1,S=Math.floor(pe/o),B=(pe-S*o)/o,je=!1;S>=R&&(S=R-1,B=1,je=!0);let qe;if(S%2===1&&l==="reverse"?qe=s(1-B):S%2===1&&l==="mirror"?qe=1-s(B):qe=s(B),je){b(qe);return}lr(e,r,qe),(cc=n.onUpdate)==null||cc.call(n,qe)}function b(O){var pe,ie;p&&(p=!1,Ki(g),lr(e,r,O),(pe=n.onUpdate)==null||pe.call(n,O),d(),(ie=n.onComplete)==null||ie.call(n))}return lr(e,r,c?h:s(0)),kf(g),{finished:u,stop(){p&&(p=!1,Ki(g),d())}}}function Rt(e,t,n={}){let r=yl(e);if(r.length===0)return Xi();if(r.length===1)return vl(r[0],t,n);let o=r.map(i=>vl(i,t,n));return{finished:Promise.all(o.map(i=>i.finished)).then(()=>{}),stop(){for(let i of o)i.stop()}}}function xl(e,t,n={}){var g,b,x,T,k,A,D,C;if(so())return(g=n.onUpdate)==null||g.call(n,t),(b=n.onComplete)==null||b.call(n),Xi();let r=(x=n.stiffness)!=null?x:170,o=(T=n.damping)!=null?T:26,i=(k=n.mass)!=null?k:1,s=Math.abs(t-e)||1,a=(A=n.restDelta)!=null?A:s*.001,l=(D=n.restSpeed)!=null?D:s*.01,c=e,d=(C=n.velocity)!=null?C:0,u=!0,p=-1,f=0,m,h=new Promise(oe=>{m=oe});function v(oe){var S,B,je,qe;if(!u)return;if(p<0){p=oe,(S=n.onUpdate)==null||S.call(n,c);return}let O=Math.min(64,Math.max(0,oe-p));p=oe,f+=O;let pe=Math.max(1,Math.round(O)),ie=O/pe/1e3;for(let Jt=0;Jt<pe;Jt++){let Ln=(-r*(c-t)-o*d)/i;d+=Ln*ie,c+=d*ie}if(Math.abs(t-c)<a&&Math.abs(d)<l||f>Tf){u=!1,Ki(v),c=t,(B=n.onUpdate)==null||B.call(n,t),m(),(je=n.onComplete)==null||je.call(n);return}(qe=n.onUpdate)==null||qe.call(n,c)}return kf(v),{finished:h,stop(){u&&(u=!1,Ki(v),m())}}}function $f(e,t,n,r){return r==="last"?(t-1-e)*n:r==="center"?Math.abs(e-(t-1)/2)*n:e*n}function wl(e,t,n={}){var l,c,d;let r=yl(e);if(r.length===0)return Xi();let o=(l=n.delay)!=null?l:60,i=(c=n.start)!=null?c:0,s=(d=n.from)!=null?d:"first",a=r.map((u,p)=>vl(u,t,{...n,delay:i+$f(p,r.length,o,s)}));return{finished:Promise.all(a.map(u=>u.finished)).then(()=>{}),stop(){for(let u of a)u.stop()}}}function Kg(e){return e==="all"?.99:e==="any"?0:typeof e=="number"?Math.max(0,Math.min(1,e)):.25}function Gi(e,t,n={}){var s,a,l;let r=(s=n.once)!=null?s:!0,o;if(typeof IntersectionObserver=="undefined")return o=t({target:e,isIntersecting:!0,intersectionRatio:1}),()=>{typeof o=="function"&&o()};let i=new IntersectionObserver(c=>{for(let d of c)d.isIntersecting?(o=t(d),r&&i.disconnect()):typeof o=="function"&&(o(),o=void 0)},{root:(a=n.root)!=null?a:null,rootMargin:(l=n.margin)!=null?l:"0px",threshold:Kg(n.amount)});return i.observe(e),()=>{i.disconnect(),typeof o=="function"&&o()}}function El(e,t){let n=!1,r=!1;if(typeof window=="undefined")return t(0),()=>{n=!0};let o=()=>{if(r=!1,n)return;let s=e.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight||1,l=a+s.height||1,c=(a-s.top)/l;t(Math.max(0,Math.min(1,c)))},i=()=>{r||n||(r=!0,requestAnimationFrame(o))};return window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i),o(),()=>{n=!0,window.removeEventListener("scroll",i),window.removeEventListener("resize",i)}}var Yg={opacity:[0,1],duration:420,easing:"easeOut"},Xg={opacity:[0,1],y:[24,0],duration:520,easing:"easeOutExpo"},Gg={opacity:[0,1],y:[-24,0],duration:520,easing:"easeOutExpo"},Qg={opacity:[0,1],scale:[.92,1],duration:460,easing:"easeOutBack"},Jg={opacity:[0,1],x:[36,0],duration:500,easing:"easeOutExpo"},Zg={opacity:[0,1],x:[-36,0],duration:500,easing:"easeOutExpo"},eb={opacity:[0,1],scale:[.6,1],spring:{stiffness:420,damping:18}},tb={opacity:[0,1],blur:[10,0],duration:560,easing:"easeOut"},nb={opacity:[0,1],rotateX:[-80,0],duration:620,easing:"easeOutBack"},hn={fadeIn:Yg,fadeUp:Xg,fadeDown:Gg,scaleIn:Qg,slideLeft:Jg,slideRight:Zg,pop:eb,blurIn:tb,flip:nb},rb=new Set(["duration","delay","easing","spring","repeat","repeatType","force","from","start","onUpdate","onComplete"]);function Qi(e){let t={},n={};for(let[r,o]of Object.entries(e))o!=null&&(rb.has(r)?n[r]=o:t[r]=o);return{keyframes:t,options:n}}function Df(e){let t=e.trim();return t?/^['"`]/.test(t)||/^[[{(]/.test(t)?!0:/^[$A-Za-z_][\w$]*(?:\.[$A-Za-z_][\w$]*|\[[^\]]*\])*$/.test(t):!1}function lo(e,t){let n=e.trim();if(!n)return null;if(hn[n])return hn[n];if(!Df(n))return null;let r=t();return typeof r=="string"&&hn[r]?hn[r]:r&&typeof r=="object"?r:null}function gt(e,t){var n;return(n=e.getAttribute(`${w.prefix}${t}`))!=null?n:e.getAttribute(`data-v-${t}`)}function xf(e,t){return e.hasAttribute(`${w.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}var Hf=new WeakMap;function Pf(e){let t=gt(e,"motion-stagger-from");return t==="last"||t==="center"?t:"first"}function ob(e){return xf(e,"motion")||xf(e,"motion-scroll")}function Of(e){let t=e.parentElement;if(!t)return 0;let n=Hf.get(t);if(!n){let i=gt(t,"motion-stagger");if(i===null)return 0;n={step:G(i,60),from:Pf(t)}}let r=Array.from(t.children).filter(ob),o=r.indexOf(e);return o<0?0:$f(o,r.length,n.step,n.from)}y("motion",({el:e,expression:t,evaluate:n,cleanup:r})=>{var c;let o=lo(t,n);if(!o){Y(`v-motion did not recognize the variant "${t}".`);return}let{keyframes:i,options:s}=Qi(o),a=Of(e);a>0&&(s.delay=((c=s.delay)!=null?c:0)+a);let l=Rt(e,i,s);r(()=>l.stop())});y("motion-scroll",({el:e,expression:t,evaluate:n,modifiers:r,cleanup:o})=>{var m,h;let i=lo(t,n);if(!i){Y(`v-motion-scroll did not recognize the variant "${t}".`);return}let{keyframes:s,options:a}=Qi(i),l=Of(e);l>0&&(a.delay=((m=a.delay)!=null?m:0)+l);let c=!r.repeat,d=gt(e,"motion-scroll-amount"),u=d===null?.25:parseFloat(d)||0;so()||yf(e,s);let p=null,f=Gi(e,()=>{if(p==null||p.stop(),p=Rt(e,s,a),!c)return()=>{p==null||p.stop(),so()||yf(e,s)}},{once:c,amount:u,margin:(h=gt(e,"motion-scroll-margin"))!=null?h:"0px"});o(()=>{f(),p==null||p.stop()})});y("motion-stagger",({el:e,expression:t,evaluate:n})=>{let r=n(),o=typeof r=="number"&&Number.isFinite(r)?r:G(t,60);Hf.set(e,{step:o,from:Pf(e)})},{priority:j.BIND});function Nf(e,t,n,r,o,i){let{keyframes:s,options:a}=Qi(t),l={...o,...a},c=null,d=null,u=m=>{d==null||d.stop(),d=Rt(e,m,l)},p=()=>{c||(c=_g(e,s)),u(s)},f=()=>{c&&u(c)};for(let m of n)e.addEventListener(m,p);for(let m of r)e.addEventListener(m,f);i(()=>{for(let m of n)e.removeEventListener(m,p);for(let m of r)e.removeEventListener(m,f);d==null||d.stop()})}y("motion-hover",({el:e,expression:t,evaluate:n,cleanup:r})=>{let o=lo(t,n);if(!o){Y(`v-motion-hover did not recognize the variant "${t}".`);return}Nf(e,o,["mouseenter","focusin"],["mouseleave","focusout"],{duration:220,easing:"easeOut"},r)});y("motion-tap",({el:e,expression:t,evaluate:n,cleanup:r})=>{let o=lo(t,n);if(!o){Y(`v-motion-tap did not recognize the variant "${t}".`);return}Nf(e,o,["pointerdown"],["pointerup","pointercancel","pointerleave","blur"],{duration:140,easing:"easeOut"},r)});y("parallax",({el:e,expression:t,evaluate:n,cleanup:r})=>{if(so()||typeof window=="undefined")return;let o=n(),i=typeof o=="number"&&Number.isFinite(o)?o:parseFloat(t)||.3;e.style.willChange="transform";let s=!1,a=()=>{s=!1;let c=e.getBoundingClientRect(),d=window.innerHeight||document.documentElement.clientHeight||1,u=c.top+c.height/2;Yi(e).parallax=(d/2-u)*i,ml(e)},l=()=>{s||(s=!0,requestAnimationFrame(a))};window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),a(),r(()=>{window.removeEventListener("scroll",l),window.removeEventListener("resize",l),Yi(e).parallax=0,ml(e),e.style.removeProperty("will-change")})});var _i=new Map,ul=null,hl=!1;function wf(){hl||typeof requestAnimationFrame!="function"||(hl=!0,requestAnimationFrame(ib))}function ib(){var e;hl=!1;for(let t of _i.values()){if(!t.el.isConnected||t.animating)continue;let n=t.el.getBoundingClientRect(),r=t.rect;t.rect=n;let o=r.left-n.left,i=r.top-n.top,s=n.width>0?r.width/n.width:1,a=n.height>0?r.height/n.height:1,l=Math.abs(o)>=1||Math.abs(i)>=1,c=Math.abs(s-1)>=.01||Math.abs(a-1)>=.01;!l&&!c||(t.animating=!0,(e=t.control)==null||e.stop(),t.control=Rt(t.el,{x:[o,0],y:[i,0],scaleX:[s,1],scaleY:[a,1]},t.options),t.control.finished.then(()=>{t.animating=!1,t.el.isConnected&&(t.rect=t.el.getBoundingClientRect())}))}}function sb(){var t;if(ul||typeof MutationObserver=="undefined")return;let e=(t=w.root)!=null?t:document.body;e&&(ul=new MutationObserver(wf),ul.observe(e,{childList:!0,subtree:!0}),window.addEventListener("resize",wf))}y("flip",({el:e,expression:t,evaluate:n,cleanup:r})=>{if(typeof document=="undefined")return;let o=lo(t,n),i=o?Qi(o).options:{};i.duration===void 0&&i.spring===void 0&&(i.spring={stiffness:340,damping:34}),sb(),_i.set(e,{el:e,rect:e.getBoundingClientRect(),options:i,control:null,animating:!1}),r(()=>{var s,a;(a=(s=_i.get(e))==null?void 0:s.control)==null||a.stop(),_i.delete(e)})});function ab(e,t){let n={minimumFractionDigits:t,maximumFractionDigits:t};e==="currency"&&(n.style="currency",n.currency=w.currency);let r=new Intl.NumberFormat(w.locale,n);return e==="percent"?o=>`${r.format(o)}%`:o=>r.format(o)}y("count",({el:e,evaluate:t,effect:n,cleanup:r})=>{var p,f,m,h,v;let o=G((p=gt(e,"count-duration"))!=null?p:void 0,1400),i=Math.max(0,Math.min(6,parseInt((f=gt(e,"count-decimals"))!=null?f:"0",10)||0)),s=(m=gt(e,"count-format"))!=null?m:"number",a=(h=gt(e,"count-prefix"))!=null?h:"",l=(v=gt(e,"count-suffix"))!=null?v:"",c=ab(s,i),d=0,u=null;n(()=>{let g=Number(t()),b=Number.isFinite(g)?g:0,x=d;u==null||u.stop(),u=Rt(e,{},{duration:o,easing:"easeOutExpo",onUpdate(T){d=x+(b-x)*T,e.textContent=`${a}${c(d)}${l}`}})}),r(()=>u==null?void 0:u.stop())});y("typewriter",({el:e,expression:t,evaluate:n,effect:r,cleanup:o})=>{var l;let i=G((l=gt(e,"typewriter-speed"))!=null?l:void 0,45),s=Df(t),a=null;r(()=>{var u;let c=s?String((u=n())!=null?u:""):t;if(a==null||a.stop(),e.textContent="",!c)return;let d=-1;a=Rt(e,{},{duration:Math.max(1,c.length*i),easing:"linear",onUpdate(p){let f=Math.round(p*c.length);f!==d&&(d=f,e.textContent=c.slice(0,f))}})}),o(()=>a==null?void 0:a.stop())});He();le();function lb(){return typeof window=="undefined"||typeof window.matchMedia!="function"?!1:me.reducedMotion}var co=["#6D3BF5","#FF3D8B","#2ED9A5","#FFB35C","#9B7BFF","#FF4D4D","#14111F","#3BB6F5"],cb=`
|
|
316
|
+
.v-chart{position:relative;display:block;width:100%;color:var(--v-text,#14111F);
|
|
317
|
+
font:500 12px/1.35 var(--v-font-sans,system-ui,-apple-system,'Segoe UI',sans-serif)}
|
|
318
|
+
.v-chart-svg{display:block;width:100%;overflow:visible;touch-action:pan-y}
|
|
319
|
+
.v-chart-grid{stroke:var(--v-border,#E6E0F0);stroke-width:1;shape-rendering:crispEdges}
|
|
320
|
+
.v-chart-axis{fill:var(--v-text-muted,#6B6580);font-size:11px}
|
|
321
|
+
.v-chart-empty{fill:var(--v-text-muted,#6B6580);font-size:13px}
|
|
322
|
+
.v-chart-line{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
|
|
323
|
+
.v-chart-area{stroke:none}
|
|
324
|
+
.v-chart-point{stroke:var(--v-surface,#fff);stroke-width:2}
|
|
325
|
+
.v-chart-value{fill:var(--v-text,#14111F);font-size:11px;font-weight:600}
|
|
326
|
+
.v-chart-center{fill:var(--v-text,#14111F);font-size:20px;font-weight:700}
|
|
327
|
+
.v-chart-center-sub{fill:var(--v-text-muted,#6B6580);font-size:11px;font-weight:500}
|
|
328
|
+
.v-chart-track{fill:none;stroke:var(--v-border,#E6E0F0)}
|
|
329
|
+
.v-chart-radar-web{fill:none;stroke:var(--v-border,#E6E0F0);stroke-width:1}
|
|
330
|
+
.v-chart-radar-area{stroke-width:2}
|
|
331
|
+
|
|
332
|
+
.v-chart-legend{display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:center;margin-top:10px}
|
|
333
|
+
.v-chart-key{display:inline-flex;align-items:center;gap:6px;padding:3px 6px;border:0;cursor:pointer;
|
|
334
|
+
background:none;color:inherit;font:inherit;border-radius:var(--v-radius-sm,8px)}
|
|
335
|
+
.v-chart-key:hover{background:var(--v-surface-2,#FBF7F2)}
|
|
336
|
+
.v-chart-key:focus-visible{outline:2px solid var(--v-primary,#6D3BF5);outline-offset:2px}
|
|
337
|
+
.v-chart-key[aria-pressed="false"]{opacity:.42;text-decoration:line-through}
|
|
338
|
+
.v-chart-dot{width:10px;height:10px;border-radius:3px;flex:0 0 auto}
|
|
339
|
+
|
|
340
|
+
.v-chart-tip{position:absolute;left:0;top:0;pointer-events:none;z-index:var(--v-z-tooltip,1200);
|
|
341
|
+
transform:translate(-50%,calc(-100% - 12px));background:var(--v-surface,#fff);color:var(--v-text,#14111F);
|
|
342
|
+
border:1px solid var(--v-border,#E6E0F0);border-radius:var(--v-radius-sm,8px);
|
|
343
|
+
box-shadow:var(--v-shadow,0 10px 30px rgba(20,17,31,.14));padding:8px 10px;min-width:96px;
|
|
344
|
+
font-size:12px;line-height:1.4;white-space:nowrap}
|
|
345
|
+
.v-chart-tip-title{font-weight:700;margin-bottom:4px}
|
|
346
|
+
.v-chart-tip-row{display:flex;align-items:center;gap:6px}
|
|
347
|
+
.v-chart-tip-row b{margin-left:auto;font-variant-numeric:tabular-nums}
|
|
348
|
+
|
|
349
|
+
.v-chart-animate .v-chart-line{transition:stroke-dashoffset .9s var(--v-ease,ease)}
|
|
350
|
+
.v-chart-animate:not(.v-chart-in) .v-chart-line{stroke-dashoffset:1}
|
|
351
|
+
.v-chart-animate .v-chart-area,.v-chart-animate .v-chart-point,.v-chart-animate .v-chart-value{transition:opacity .5s ease}
|
|
352
|
+
.v-chart-animate:not(.v-chart-in) .v-chart-area,
|
|
353
|
+
.v-chart-animate:not(.v-chart-in) .v-chart-point,
|
|
354
|
+
.v-chart-animate:not(.v-chart-in) .v-chart-value{opacity:0}
|
|
355
|
+
.v-chart-animate .v-chart-bar{transition:transform .55s var(--v-ease,ease)}
|
|
356
|
+
.v-chart-animate:not(.v-chart-in) .v-chart-bar{transform:scaleY(0)}
|
|
357
|
+
.v-chart-animate .v-chart-barh{transition:transform .55s var(--v-ease,ease)}
|
|
358
|
+
.v-chart-animate:not(.v-chart-in) .v-chart-barh{transform:scaleX(0)}
|
|
359
|
+
.v-chart-animate .v-chart-slice{transition:opacity .4s ease,transform .5s var(--v-ease,ease)}
|
|
360
|
+
.v-chart-animate:not(.v-chart-in) .v-chart-slice{opacity:0;transform:scale(.86)}
|
|
361
|
+
.v-chart-ring{stroke-dashoffset:var(--v-ring-offset,0)}
|
|
362
|
+
.v-chart-animate .v-chart-ring{transition:stroke-dashoffset .9s var(--v-ease,ease)}
|
|
363
|
+
.v-chart-animate:not(.v-chart-in) .v-chart-ring{stroke-dashoffset:var(--v-ring-full,0)}
|
|
364
|
+
|
|
365
|
+
@media (prefers-reduced-motion: reduce){
|
|
366
|
+
.v-chart *{transition:none !important}
|
|
367
|
+
}
|
|
368
|
+
`;function E(e){return Math.round(e*100)/100}function ye(e){let t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:0}function bn(e,t,n){return e<t?t:e>n?n:e}var Ff=new Map;function If(e,t){let n=`${w.locale}|${w.currency}|${e}`,r=Ff.get(n);return r||(r=new Intl.NumberFormat(w.locale,t),Ff.set(n,r)),r}function Ce(e,t="number"){if(!Number.isFinite(e))return"";if(t==="currency")return If("currency",{style:"currency",currency:w.currency,maximumFractionDigits:2}).format(e);let n=If("number",{maximumFractionDigits:2}).format(e);return t==="percent"?`${n}%`:n}function db(e){return!!e&&typeof e=="object"&&Array.isArray(e.data)}function ze(e,t){let n=e[t];return n===void 0||n===""?`#${t+1}`:n}function ub(e,t){var c,d,u;let n=e.colors&&e.colors.length>0?e.colors:co,r=Array.isArray(e.labels),o=r?e.labels.map(p=>String(p)):[],i=[],s=e.data,a=(c=e.name)!=null?c:"Valor";if(typeof s=="number")i.push({name:a,values:[s],xs:null,color:n[0]});else if(Array.isArray(s)&&s.length>0){let p=s[0];if(typeof p=="number")i.push({name:a,values:s.map(ye),xs:null,color:n[0]});else if(db(p))s.forEach((f,m)=>{i.push({name:f.name||`Serie ${m+1}`,values:(f.data||[]).map(ye),xs:null,color:f.color||n[m%n.length]})});else{let f=s,m=[],h=[],v=!1;f.forEach((g,b)=>{m.push(ye(g.value!==void 0?g.value:g.y)),typeof g.x=="number"?(v=!0,h.push(g.x)):h.push(b),!r&&g.label!==void 0&&(o[b]=String(g.label))}),i.push({name:a,values:m,xs:v?h:null,color:n[0]})}}let l=t==="pie"||t==="donut";if(l)for(let p=0;p<((u=(d=i[0])==null?void 0:d.values.length)!=null?u:0);p++)o[p]===void 0&&(o[p]=ze(o,p));return{series:i,labels:o,categorical:l}}function fb(e,t){if(e.categorical){let n=e.series[0];return n?n.values.map((r,o)=>({key:ze(e.labels,o),name:ze(e.labels,o),color:t[o%t.length]})):[]}return e.series.map(n=>({key:n.name,name:n.name,color:n.color}))}function pb(e,t,n){var r;if(t.size===0)return e;if(e.categorical){let o=e.series[0];if(!o)return e;let i=[],s=[],a=[];return o.values.forEach((l,c)=>{let d=ze(e.labels,c);t.has(d)||(i.push(l),s.push(d),a.push(n[c%n.length]))}),{series:[{...o,values:i,xs:null,color:(r=a[0])!=null?r:o.color}],labels:s,categorical:!0}}return{series:e.series.filter(o=>!t.has(o.name)),labels:e.labels,categorical:!1}}function zf(e,t){let n=Math.abs(e)||1,r=Math.floor(Math.log10(n)),o=n/Math.pow(10,r),i;return t?o<1.5?i=1:o<3?i=2:o<7?i=5:i=10:o<=1?i=1:o<=2?i=2:o<=5?i=5:i=10,i*Math.pow(10,r)}function Tl(e,t,n=5){if(e===t){let c=Math.abs(e)||1;return Tl(e-c*.5,t+c*.5,n)}let r=zf(t-e,!1),o=zf(r/Math.max(1,n-1),!0),i=Math.max(0,Math.min(10,-Math.floor(Math.log10(o))+2)),s=Math.floor(e/o)*o,a=Math.ceil(t/o)*o,l=[];for(let c=s;c<=a+o*.5;c+=o)l.push(Number(c.toFixed(i)));return{min:s,max:a,ticks:l}}function Ll(e,t,n,r){let o=1/0,i=-1/0;if(n){let s=0;for(let a of e.series)s=Math.max(s,a.values.length);for(let a=0;a<s;a++){let l=0,c=0;for(let d of e.series){let u=ye(d.values[a]);u>=0?l+=u:c+=u}o=Math.min(o,c),i=Math.max(i,l)}}else for(let s of e.series)for(let a of s.values)Number.isFinite(a)&&(o=Math.min(o,a),i=Math.max(i,a));return(!Number.isFinite(o)||!Number.isFinite(i))&&(o=0,i=1),r&&(o=Math.min(o,0),i=Math.max(i,0)),t.min!==void 0&&(o=t.min),t.max!==void 0&&(i=t.max),o===i&&(i=o+(Math.abs(o)||1)),{min:o,max:i}}function Bf(e){if(e.length===0)return"";let t=[`M ${E(e[0][0])} ${E(e[0][1])}`];for(let n=1;n<e.length;n++)t.push(`L ${E(e[n][0])} ${E(e[n][1])}`);return t.join(" ")}function mb(e){if(e.length<3)return Bf(e);let t=[`M ${E(e[0][0])} ${E(e[0][1])}`];for(let n=0;n<e.length-1;n++){let r=n>0?e[n-1]:e[n],o=e[n],i=e[n+1],s=n+2<e.length?e[n+2]:i,a=o[0]+(i[0]-r[0])/6,l=o[1]+(i[1]-r[1])/6,c=i[0]-(s[0]-o[0])/6,d=i[1]-(s[1]-o[1])/6;t.push(`C ${E(a)} ${E(l)}, ${E(c)} ${E(d)}, ${E(i[0])} ${E(i[1])}`)}return t.join(" ")}function vb(e,t){return t?mb(e):Bf(e)}function ot(e,t,n,r){return[e+Math.cos(r)*n,t+Math.sin(r)*n]}function hb(e,t,n,r,o,i){let s=i-o>Math.PI?1:0,[a,l]=ot(e,t,n,o),[c,d]=ot(e,t,n,i);if(r<=0)return`M ${E(e)} ${E(t)} L ${E(a)} ${E(l)} A ${E(n)} ${E(n)} 0 ${s} 1 ${E(c)} ${E(d)} Z`;let[u,p]=ot(e,t,r,o),[f,m]=ot(e,t,r,i);return`M ${E(a)} ${E(l)} A ${E(n)} ${E(n)} 0 ${s} 1 ${E(c)} ${E(d)} L ${E(f)} ${E(m)} A ${E(r)} ${E(r)} 0 ${s} 0 ${E(u)} ${E(p)} Z`}var gb=7;function jf(e){let t=0;for(let n of e)t=Math.max(t,n.length);return t*gb+12}function Ml(e,t){let{options:n,dataset:r,width:o,height:i}=e,s=Ll(r,n,t.stacked,t.baselineZero),a=n.min!==void 0&&n.max!==void 0?{min:s.min,max:s.max,ticks:qf(s.min,s.max,5)}:Tl(s.min,s.max,5),l=a.ticks.map(T=>Ce(T,e.format)),c=n.showGrid!==!1&&!t.bare,d=r.labels.length>0&&!t.bare,u=t.bare?3:16,p=t.bare?3:16,f=t.bare?3:c?bn(jf(l),32,140):8,m=t.bare?3:d?26:10,h=Math.max(1,o-f-p),v=Math.max(1,i-u-m),g=a.max-a.min||1,b=T=>u+v*(1-(T-a.min)/g),x="";if(c){let T=[];a.ticks.forEach((k,A)=>{let D=E(b(k));T.push(`<line class="v-chart-grid" x1="${E(f)}" y1="${D}" x2="${E(f+h)}" y2="${D}"/>`),T.push(`<text class="v-chart-axis" x="${E(f-8)}" y="${D+4}" text-anchor="end">${I(l[A])}</text>`)}),x=`<g>${T.join("")}</g>`}return{left:f,top:u,innerW:h,innerH:v,min:a.min,max:a.max,ticks:a.ticks,y:b,grid:x}}function qf(e,t,n){let r=(t-e)/Math.max(1,n-1),o=[];for(let i=0;i<n;i++)o.push(Number((e+r*i).toFixed(6)));return o}function Sl(e,t,n,r,o){if(e.length===0||t===0)return"";let i=Math.max(1,Math.floor(o/56)),s=Math.max(1,Math.ceil(t/i)),a=[];for(let l=0;l<t;l+=s){let c=e[l];c===void 0||c===""||a.push(`<text class="v-chart-axis" x="${E(n(l))}" y="${E(r)}" text-anchor="middle">${I(c)}</text>`)}return a.join("")}function uo(e){let t=e.labels.length;for(let n of e.series)t=Math.max(t,n.values.length);return t}function yn(e){return`<text class="v-chart-empty" x="${E(e.width/2)}" y="${E(e.height/2)}" text-anchor="middle">No data</text>`}function xn(e,t,n){return`<title>${I(e)}: ${I(Ce(t,n))}</title>`}function bb(e,t){if(e.values.length===0)return e.name;let n=1/0,r=-1/0;for(let s of e.values)n=Math.min(n,s),r=Math.max(r,s);let o=e.values[0],i=e.values[e.values.length-1];return`${e.name}: from ${Ce(o,t)} to ${Ce(i,t)}, minimum ${Ce(n,t)}, maximum ${Ce(r,t)}`}function yb(e){let t=e.type==="sparkline",n=e.type==="area",r=uo(e.dataset);if(r===0)return yn(e);let o=Ml(e,{stacked:!1,baselineZero:n,bare:t}),i=c=>r<=1?o.left+o.innerW/2:o.left+o.innerW*c/(r-1),s=e.options.smooth===!0,a=[o.grid],l=o.y(bn(0,o.min,o.max));for(let c of e.dataset.series){let d=[];for(let f=0;f<r;f++)d.push([i(f),o.y(ye(c.values[f]))]);if(d.length===0)continue;let u=vb(d,s);if(n){let f=`${u} L ${E(d[d.length-1][0])} ${E(l)} L ${E(d[0][0])} ${E(l)} Z`;a.push(`<path class="v-chart-area" d="${f}" fill="${I(c.color)}" fill-opacity="0.16"/>`)}let p=e.animated?' pathLength="1" stroke-dasharray="1"':"";a.push(`<path class="v-chart-line" d="${u}" stroke="${I(c.color)}"${p}><title>${I(bb(c,e.format))}</title></path>`),!t&&r<=40&&d.forEach((f,m)=>{a.push(`<circle class="v-chart-point" cx="${E(f[0])}" cy="${E(f[1])}" r="3.5" fill="${I(c.color)}">`+xn(`${c.name} ${ze(e.dataset.labels,m)}`,ye(c.values[m]),e.format)+"</circle>")}),e.options.showValues&&!t&&d.forEach((f,m)=>{a.push(`<text class="v-chart-value" x="${E(f[0])}" y="${E(f[1]-10)}" text-anchor="middle">${I(Ce(ye(c.values[m]),e.format))}</text>`)})}return t||a.push(Sl(e.dataset.labels,r,i,o.top+o.innerH+18,o.innerW)),Vf(e,r,i,c=>{let d=1/0;for(let u of e.dataset.series)d=Math.min(d,o.y(ye(u.values[c])));return Number.isFinite(d)?d:o.top}),a.join("")}function Vf(e,t,n,r){for(let o=0;o<t;o++)e.hits.push({x:n(o),y:r(o),title:ze(e.dataset.labels,o),rows:e.dataset.series.map(i=>({name:i.name,color:i.color,value:ye(i.values[o])}))})}function xb(e){let t=e.type==="stacked",n=uo(e.dataset);if(n===0)return yn(e);let r=Ml(e,{stacked:t,baselineZero:!0,bare:!1}),o=r.innerW/n,i=t?1:Math.max(1,e.dataset.series.length),s=Math.min(o*.3,18),a=Math.max(2,(o-s)/i),l=r.y(bn(0,r.min,r.max)),c=Math.min(4,a/2),d=[r.grid],u=p=>r.left+o*p+o/2;for(let p=0;p<n;p++){let f=0,m=0;e.dataset.series.forEach((h,v)=>{let g=ye(h.values[p]),b,x,T;if(t){let D=g>=0?f:m,C=D+g;g>=0?f=C:m=C,b=Math.min(r.y(D),r.y(C)),x=Math.max(r.y(D),r.y(C)),T=r.left+o*p+s/2}else b=Math.min(r.y(g),l),x=Math.max(r.y(g),l),T=r.left+o*p+s/2+v*a;let k=t?Math.max(2,o-s):a*.86,A=Math.max(g===0?0:1,x-b);d.push(`<rect class="v-chart-bar" x="${E(T)}" y="${E(b)}" width="${E(k)}" height="${E(A)}" rx="${E(c)}" fill="${I(h.color)}" style="transform-origin:${E(T+k/2)}px ${E(l)}px;transition-delay:${p*30}ms">`+xn(`${h.name} ${ze(e.dataset.labels,p)}`,g,e.format)+"</rect>"),e.options.showValues&&!t&&d.push(`<text class="v-chart-value" x="${E(T+k/2)}" y="${E(b-6)}" text-anchor="middle">${I(Ce(g,e.format))}</text>`)})}return d.push(Sl(e.dataset.labels,n,u,r.top+r.innerH+18,r.innerW)),Vf(e,n,u,p=>{if(t){let m=0;for(let h of e.dataset.series)m+=Math.max(0,ye(h.values[p]));return r.y(m)}let f=l;for(let m of e.dataset.series)f=Math.min(f,r.y(ye(m.values[p])));return f}),d.join("")}function wb(e){let t=uo(e.dataset);if(t===0)return yn(e);let n=Ll(e.dataset,e.options,!1,!0),r=e.options.min!==void 0&&e.options.max!==void 0?{min:n.min,max:n.max,ticks:qf(n.min,n.max,5)}:Tl(n.min,n.max,5),o=bn(jf(e.dataset.labels.length>0?e.dataset.labels:[""]),24,e.width*.4),i=e.dataset.labels.length>0?o:12,s=12,a=e.options.showGrid===!1?12:26,l=Math.max(1,e.width-i-20),c=Math.max(1,e.height-s-a),d=r.max-r.min||1,u=b=>i+l*(b-r.min)/d,p=u(bn(0,r.min,r.max)),f=c/t,m=Math.max(1,e.dataset.series.length),h=Math.min(f*.3,16),v=Math.max(2,(f-h)/m),g=[];if(e.options.showGrid!==!1)for(let b of r.ticks){let x=E(u(b));g.push(`<line class="v-chart-grid" x1="${x}" y1="${E(s)}" x2="${x}" y2="${E(s+c)}"/>`),g.push(`<text class="v-chart-axis" x="${x}" y="${E(s+c+16)}" text-anchor="middle">${I(Ce(b,e.format))}</text>`)}for(let b=0;b<t;b++){let x=e.dataset.labels[b];x&&g.push(`<text class="v-chart-axis" x="${E(i-8)}" y="${E(s+f*b+f/2+4)}" text-anchor="end">${I(x)}</text>`);let T=p;e.dataset.series.forEach((k,A)=>{let D=ye(k.values[b]),C=Math.min(u(D),p);T=Math.max(T,u(D));let oe=Math.max(D===0?0:1,Math.abs(u(D)-p)),O=s+f*b+h/2+A*v;g.push(`<rect class="v-chart-barh" x="${E(C)}" y="${E(O)}" width="${E(oe)}" height="${E(v*.86)}" rx="${E(Math.min(4,v/2))}" fill="${I(k.color)}" style="transform-origin:${E(p)}px ${E(O+v/2)}px;transition-delay:${b*30}ms">`+xn(`${k.name} ${ze(e.dataset.labels,b)}`,D,e.format)+"</rect>"),e.options.showValues&&g.push(`<text class="v-chart-value" x="${E(C+oe+6)}" y="${E(O+v*.6)}">${I(Ce(D,e.format))}</text>`)}),e.hits.push({x:T,y:s+f*b+f/2,title:ze(e.dataset.labels,b),rows:e.dataset.series.map(k=>({name:k.name,color:k.color,value:ye(k.values[b])}))})}return g.join("")}function Eb(e){let t=e.dataset.series[0];if(!t||t.values.length===0)return yn(e);let n=e.type==="donut",r=t.values.map(p=>Math.max(0,ye(p))),o=r.reduce((p,f)=>p+f,0);if(o<=0)return yn(e);let i=e.width/2,s=e.height/2,a=Math.max(12,Math.min(e.width,e.height)/2-14),l=n?a*.62:0,c=`transform-origin:${E(i)}px ${E(s)}px`,d=[],u=-Math.PI/2;return r.forEach((p,f)=>{let m=p/o*Math.PI*2,h=e.palette[f%e.palette.length],v=ze(e.dataset.labels,f),g=m>=Math.PI*2-1e-6,b=g?n?`<circle class="v-chart-slice" data-hit="${f}" cx="${E(i)}" cy="${E(s)}" r="${E((a+l)/2)}" fill="none" stroke="${I(h)}" stroke-width="${E(a-l)}" style="${c}">`:`<circle class="v-chart-slice" data-hit="${f}" cx="${E(i)}" cy="${E(s)}" r="${E(a)}" fill="${I(h)}" style="${c}">`:`<path class="v-chart-slice" data-hit="${f}" d="${hb(i,s,a,l,u,u+m)}" fill="${I(h)}" style="${c};transition-delay:${f*45}ms">`;d.push(`${b}${xn(v,p,e.format)}${g?"</circle>":"</path>"}`);let x=u+m/2,[T,k]=ot(i,s,(a+l)/2,x);if(e.hits.push({x:T,y:k,title:v,rows:[{name:v,color:h,value:p}]}),e.options.showValues&&m>.3){let[A,D]=ot(i,s,n?(a+l)/2:a*.68,x),C=Math.round(p/o*100);d.push(`<text class="v-chart-value" x="${E(A)}" y="${E(D+4)}" text-anchor="middle">${C}%</text>`)}u+=m}),n&&d.push(`<text class="v-chart-center" x="${E(i)}" y="${E(s+2)}" text-anchor="middle">${I(Ce(o,e.format))}</text>`,`<text class="v-chart-center-sub" x="${E(i)}" y="${E(s+20)}" text-anchor="middle">Total</text>`),d.join("")}function kb(e){let t=uo(e.dataset);if(t<3)return yn(e);let r=Ll(e.dataset,e.options,!1,!0).max||1,o=e.width/2,i=e.height/2,s=Math.max(20,Math.min(e.width,e.height)/2-28),a=c=>-Math.PI/2+Math.PI*2*c/t,l=[];for(let c=1;c<=4;c++){let d=[];for(let u=0;u<t;u++)d.push(ot(o,i,s*c/4,a(u)));l.push(`<polygon class="v-chart-radar-web" points="${d.map(u=>`${E(u[0])},${E(u[1])}`).join(" ")}"/>`)}for(let c=0;c<t;c++){let[d,u]=ot(o,i,s,a(c));l.push(`<line class="v-chart-grid" x1="${E(o)}" y1="${E(i)}" x2="${E(d)}" y2="${E(u)}"/>`);let p=e.dataset.labels[c];if(p){let[f,m]=ot(o,i,s+14,a(c)),h=Math.abs(f-o)<4?"middle":f>o?"start":"end";l.push(`<text class="v-chart-axis" x="${E(f)}" y="${E(m+4)}" text-anchor="${h}">${I(p)}</text>`)}}for(let c of e.dataset.series){let d=[];for(let u=0;u<t;u++){let p=bn(ye(c.values[u])/r,0,1);d.push(ot(o,i,s*p,a(u)))}l.push(`<polygon class="v-chart-radar-area v-chart-slice" points="${d.map(u=>`${E(u[0])},${E(u[1])}`).join(" ")}" fill="${I(c.color)}" fill-opacity="0.22" stroke="${I(c.color)}" style="transform-origin:${E(o)}px ${E(i)}px"/>`),d.forEach((u,p)=>{l.push(`<circle class="v-chart-point" data-hit="${p}" cx="${E(u[0])}" cy="${E(u[1])}" r="3.5" fill="${I(c.color)}">`+xn(`${c.name} ${ze(e.dataset.labels,p)}`,ye(c.values[p]),e.format)+"</circle>")})}for(let c=0;c<t;c++){let[d,u]=ot(o,i,s*.7,a(c));e.hits.push({x:d,y:u,title:ze(e.dataset.labels,c),rows:e.dataset.series.map(p=>({name:p.name,color:p.color,value:ye(p.values[c])}))})}return l.join("")}function Tb(e){let t=uo(e.dataset);if(t===0)return yn(e);let n=Ml(e,{stacked:!1,baselineZero:!1,bare:!1}),r=1/0,o=-1/0;for(let c of e.dataset.series){let d=c.xs;if(d)for(let u of d)r=Math.min(r,u),o=Math.max(o,u)}let i=Number.isFinite(r)&&Number.isFinite(o)&&o>r,s=(c,d)=>i&&c.xs?n.left+n.innerW*(c.xs[d]-r)/(o-r):t<=1?n.left+n.innerW/2:n.left+n.innerW*d/(t-1),a=[n.grid],l=0;for(let c of e.dataset.series)c.values.forEach((d,u)=>{let p=s(c,u),f=n.y(ye(d));a.push(`<circle class="v-chart-point v-chart-slice" data-hit="${l}" cx="${E(p)}" cy="${E(f)}" r="4.5" fill="${I(c.color)}" style="transform-origin:${E(p)}px ${E(f)}px">`+xn(`${c.name} ${ze(e.dataset.labels,u)}`,ye(d),e.format)+"</circle>"),e.hits.push({x:p,y:f,title:ze(e.dataset.labels,u),rows:[{name:c.name,color:c.color,value:ye(d)}]}),l++});return i||a.push(Sl(e.dataset.labels,t,c=>t<=1?n.left+n.innerW/2:n.left+n.innerW*c/(t-1),n.top+n.innerH+18,n.innerW)),a.join("")}function Lb(e){var m,h,v,g,b;let t=e.dataset.series[0],n=t?ye(t.values[0]):0,r=(m=e.options.max)!=null?m:100,o=(h=e.options.min)!=null?h:0,i=bn((n-o)/(r-o||1),0,1),s=e.width/2,a=e.height/2,l=Math.max(16,Math.min(e.width,e.height)/2-16),c=Math.max(8,l*.2),d=l-c/2,u=2*Math.PI*d,p=u*(1-i),f=e.palette[0];return e.hits.push({x:s,y:a-d,title:(v=t==null?void 0:t.name)!=null?v:"Progresso",rows:[{name:(g=t==null?void 0:t.name)!=null?g:"Progresso",color:f,value:n}]}),`<circle class="v-chart-track" cx="${E(s)}" cy="${E(a)}" r="${E(d)}" stroke-width="${E(c)}"/><circle class="v-chart-ring" data-hit="0" cx="${E(s)}" cy="${E(a)}" r="${E(d)}" fill="none" stroke="${I(f)}" stroke-width="${E(c)}" stroke-linecap="round" stroke-dasharray="${E(u)}" style="--v-ring-full:${E(u)};--v-ring-offset:${E(p)};transform:rotate(-90deg);transform-origin:${E(s)}px ${E(a)}px">`+xn((b=t==null?void 0:t.name)!=null?b:"Progresso",n,e.format)+`</circle><text class="v-chart-center" x="${E(s)}" y="${E(a+4)}" text-anchor="middle">${Math.round(i*100)}%</text>`+(t?`<text class="v-chart-center-sub" x="${E(s)}" y="${E(a+22)}" text-anchor="middle">${I(Ce(n,e.format))}</text>`:"")}var Mb=new Set(["pie","donut","scatter","progress","radar"]);function Sb(e){return e==="sparkline"?56:260}function Ab(e,t){return e.showLegend===!1?!1:e.showLegend===!0?!0:t.categorical||t.series.length>1}var Cb={line:"line",area:"area",bar:"bar",column:"horizontal bar",stacked:"stacked bar",pie:"pie",donut:"donut",sparkline:"trend",radar:"radar",scatter:"scatter",progress:"progress"};function Rb(e,t,n){if(t.series.length===0)return"Chart with no data.";let r=(t.series.length===1,"series"),o=[`${Cb[e]} chart with ${t.series.length} ${r}.`];for(let i of t.series){if(i.values.length===0)continue;let s=1/0,a=-1/0,l=0;for(let d of i.values)s=Math.min(s,d),a=Math.max(a,d),l+=d;let c=l/i.values.length;o.push(`${i.name}: ${i.values.length} points, minimum ${Ce(s,n)}, maximum ${Ce(a,n)}, average ${Ce(c,n)}.`)}return o.join(" ")}function $b(e){switch(e.type){case"bar":case"stacked":return xb(e);case"column":return wb(e);case"pie":case"donut":return Eb(e);case"radar":return kb(e);case"scatter":return Tb(e);case"progress":return Lb(e);default:return yb(e)}}function Db(e,t){return e.length===0?"":`<div class="v-chart-legend">${e.map(r=>{let o=t.has(r.key);return`<button type="button" class="v-chart-key" data-key="${I(r.key)}" aria-pressed="${o?"false":"true"}"><span class="v-chart-dot" style="background:${I(r.color)}"></span>${I(r.name)}</button>`}).join("")}</div>`}function Ji(e){var v,g,b;let t=e.el,n=e.options,r=(v=n.type)!=null?v:"line",o=n.colors&&n.colors.length>0?n.colors:co,i=(g=n.format)!=null?g:"number",s=Math.max(160,Math.round(t.clientWidth||n.width||640)),a=Math.max(48,Math.round((b=n.height)!=null?b:Sb(r)));e.lastWidth=s,e.viewWidth=s,e.viewHeight=a;let l=ub(n,r),c=fb(l,o),d=pb(l,e.hidden,o),u=n.animate!==!1&&!lb();e.hits=[],e.shapeHits=Mb.has(r),e.hitAxis=r==="column"?"y":"x";let p={type:r,options:n,dataset:d,palette:o,width:s,height:a,animated:u,format:i,hits:e.hits},f=$b(p),m=Rb(r,d,i);t.classList.add("v-chart"),t.classList.toggle("v-chart-animate",u),t.classList.remove("v-chart-in");let h=[`<svg class="v-chart-svg" viewBox="0 0 ${s} ${a}" preserveAspectRatio="xMidYMid meet" `,`style="height:${a}px" role="img" aria-label="${I(m)}">`,f,"</svg>"];Ab(n,l)&&h.push(Db(c,e.hidden)),n.tooltip!==!1&&h.push('<div class="v-chart-tip" hidden></div>'),t.innerHTML=h.join(""),u&&typeof requestAnimationFrame=="function"&&requestAnimationFrame(()=>{requestAnimationFrame(()=>t.classList.add("v-chart-in"))})}function Hb(e,t){let n=e.rows.map(r=>`<div class="v-chart-tip-row"><span class="v-chart-dot" style="background:${I(r.color)}"></span>${I(r.name)}<b>${I(Ce(r.value,t))}</b></div>`);return`<div class="v-chart-tip-title">${I(e.title)}</div>${n.join("")}`}function Uf(e){let t=e.el.querySelector(".v-chart-tip");t&&(t.hidden=!0)}function Pb(e,t){var a;if(e.options.tooltip===!1||e.hits.length===0)return;let n=e.el.querySelector(".v-chart-tip"),r=e.el.querySelector("svg");if(!n||!r)return;let o=r.getBoundingClientRect();if(o.width===0||o.height===0)return;let i;if(e.shapeHits){let l=t.target,c=l&&typeof l.closest=="function"?l.closest("[data-hit]"):null,d=c?Number(c.getAttribute("data-hit")):-1;d>=0&&(i=e.hits[d])}else if(e.hitAxis==="y"){let l=(t.clientY-o.top)/o.height*e.viewHeight,c=1/0;for(let d of e.hits){let u=Math.abs(d.y-l);u<c&&(c=u,i=d)}}else{let l=(t.clientX-o.left)/o.width*e.viewWidth,c=1/0;for(let d of e.hits){let u=Math.abs(d.x-l);u<c&&(c=u,i=d)}}if(!i){Uf(e);return}let s=e.el.getBoundingClientRect();n.innerHTML=Hb(i,(a=e.options.format)!=null?a:"number"),n.style.left=`${o.left-s.left+i.x/e.viewWidth*o.width}px`,n.style.top=`${o.top-s.top+i.y/e.viewHeight*o.height}px`,n.hidden=!1}function Ob(e){let t=e.el,n=i=>{var l;let s=i.target;if(!s||typeof s.closest!="function")return;let a=(l=s.closest("[data-key]"))==null?void 0:l.getAttribute("data-key");a!=null&&(e.hidden.has(a)?e.hidden.delete(a):e.hidden.add(a),Ji(e))},r=i=>Pb(e,i),o=()=>Uf(e);t.addEventListener("click",n),t.addEventListener("pointermove",r),t.addEventListener("pointerleave",o),e.teardown.push(()=>{t.removeEventListener("click",n),t.removeEventListener("pointermove",r),t.removeEventListener("pointerleave",o)})}function Nb(e){if(typeof ResizeObserver=="undefined")return;let t=new ResizeObserver(()=>{let n=Math.round(e.el.clientWidth);n===0||n===e.lastWidth||(e.frame&&cancelAnimationFrame(e.frame),e.frame=requestAnimationFrame(()=>{e.frame=0,Ji(e)}))});t.observe(e.el),e.observer=t}function ur(e,t){he(),ne("charts",cb);let n={el:e,options:{...t},hidden:new Set,hits:[],shapeHits:!1,hitAxis:"x",viewWidth:1,viewHeight:1,lastWidth:0,observer:null,frame:0,teardown:[]};return Ob(n),Ji(n),Nb(n),{el:e,get options(){return n.options},update(r){Object.assign(n.options,r),Ji(n)},destroy(){var r;n.frame&&cancelAnimationFrame(n.frame),n.frame=0,(r=n.observer)==null||r.disconnect(),n.observer=null;for(let o of n.teardown)o();n.teardown.length=0,e.classList.remove("v-chart","v-chart-animate","v-chart-in"),e.innerHTML=""}}}function Qe(e,t){var n;return(n=ke(e,`${w.prefix}${t}`))!=null?n:ke(e,`data-v-${t}`)}function dr(e,t){return e===null?t:e===""||e==="true"||e==="1"?!0:e==="false"||e==="0"?!1:t}function Fb(e,t){let r=!!t&&typeof t=="object"&&!Array.isArray(t)&&"data"in t?{...t}:{data:t!=null?t:[]},o=Qe(e,"chart-type");o&&(r.type=o),r.type||(r.type="line");let i=Qe(e,"chart-height");i&&(r.height=parseFloat(i)||r.height);let s=Qe(e,"chart-format");s&&(r.format=s);let a=Qe(e,"chart-colors");a&&(r.colors=a.split(",").map(v=>v.trim()).filter(Boolean));let l=Qe(e,"chart-max");l!==null&&l!==""&&(r.max=parseFloat(l));let c=Qe(e,"chart-min");c!==null&&c!==""&&(r.min=parseFloat(c));let d=Qe(e,"chart-smooth");d!==null&&(r.smooth=dr(d,!0));let u=Qe(e,"chart-grid");u!==null&&(r.showGrid=dr(u,!0));let p=Qe(e,"chart-legend");p!==null&&(r.showLegend=dr(p,!0));let f=Qe(e,"chart-values");f!==null&&(r.showValues=dr(f,!0));let m=Qe(e,"chart-tooltip");m!==null&&(r.tooltip=dr(m,!0));let h=Qe(e,"chart-animate");return h!==null&&(r.animate=dr(h,!0)),r}function kl(e,t=0){if(!e||typeof e!="object"||t>3)return 1;let n=0;if(Array.isArray(e)){for(let r of e)n+=kl(r,t+1);return n}for(let r of Object.values(e))n+=kl(r,t+1);return n}y("chart",({el:e,evaluate:t,effect:n,cleanup:r})=>{let o=null;n(()=>{let i=t();kl(i);let s=Fb(e,i);o?o.update(s):o=ur(e,s)}),r(()=>{o==null||o.destroy(),o=null})});var Al={render:ur,format:Ce,colors:co};be();le();He();He();le();var Ib=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,zb=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,Bb=/^rgba?\(([^)]+)\)$/i,jb=/^hsla?\(([^)]+)\)$/i;function Wf(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function qb(e,t,n){let r=(e%360+360)%360,o=Be(t/100,0,1),i=Be(n/100,0,1),s=(1-Math.abs(2*i-1))*o,a=s*(1-Math.abs(r/60%2-1)),l=i-s/2,c=Math.floor(r/60)%6,d=[[s,a,0],[a,s,0],[0,s,a],[0,a,s],[a,0,s],[s,0,a]],[u,p,f]=d[c];return{r:Math.round((u+l)*255),g:Math.round((p+l)*255),b:Math.round((f+l)*255)}}function bt(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=Ib.exec(t);if(n)return{r:parseInt(n[1]+n[1],16),g:parseInt(n[2]+n[2],16),b:parseInt(n[3]+n[3],16)};let r=zb.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=Bb.exec(t);if(o){let[s,a,l]=Wf(o[1]);return s===void 0||a===void 0||l===void 0?null:{r:Be(s,0,255),g:Be(a,0,255),b:Be(l,0,255)}}let i=jb.exec(t);if(i){let[s,a,l]=Wf(i[1]);return s===void 0||a===void 0||l===void 0?null:qb(s,a,l)}return null}function Be(e,t,n){return e<t?t:e>n?n:e}function mr(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Cl(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function Vb(e){let t=mr(e.r),n=mr(e.g),r=mr(e.b),o=.4122214708*t+.5363325363*n+.0514459929*r,i=.2119034982*t+.6806995451*n+.1073969566*r,s=.0883024619*t+.2817188376*n+.6299787005*r,a=Math.cbrt(o),l=Math.cbrt(i),c=Math.cbrt(s);return{l:.2104542553*a+.793617785*l-.0040720468*c,a:1.9779984951*a-2.428592205*l+.4505937099*c,b:.0259040371*a+.7827717662*l-.808675766*c}}function Ub(e){let t=e.l+.3963377774*e.a+.2158037573*e.b,n=e.l-.1055613458*e.a-.0638541728*e.b,r=e.l-.0894841775*e.a-1.291485548*e.b,o=t*t*t,i=n*n*n,s=r*r*r;return{r:Cl(4.0767416621*o-3.3077115913*i+.2309699292*s),g:Cl(-1.2684380046*o+2.6097574011*i-.3413193965*s),b:Cl(-.0041960863*o-.7034186147*i+1.707614701*s)}}function es(e){let t=Vb(e),n=Math.sqrt(t.a*t.a+t.b*t.b),r=Math.atan2(t.b,t.a)*180/Math.PI;return r<0&&(r+=360),{l:t.l,c:n,h:n<1e-5?0:r}}function _f(e){let t=e.h*Math.PI/180;return Ub({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function pr(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=_f({l:Be(e.l,0,1),c:t,h:e.h});if(o.r>=-.001&&o.r<=1.001&&o.g>=-.001&&o.g<=1.001&&o.b>=-.001&&o.b<=1.001)return{r:Math.round(Be(o.r,0,1)*255),g:Math.round(Be(o.g,0,1)*255),b:Math.round(Be(o.b,0,1)*255)};t*=.92}let n=_f({l:Be(e.l,0,1),c:0,h:e.h});return{r:Math.round(Be(n.r,0,1)*255),g:Math.round(Be(n.g,0,1)*255),b:Math.round(Be(n.b,0,1)*255)}}function Rl(e){return Be(Math.round(e),0,255).toString(16).padStart(2,"0")}function wn(e){return`#${Rl(e.r)}${Rl(e.g)}${Rl(e.b)}`}function fr(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function Qf(e){return wn(pr(e))}function Dl(e){return .2126*mr(e.r)+.7152*mr(e.g)+.0722*mr(e.b)}function Hl(e,t){let n=typeof e=="string"?bt(e):e,r=typeof t=="string"?bt(t):t;if(!n||!r)return 1;let o=Dl(n),i=Dl(r),s=Math.max(o,i),a=Math.min(o,i);return(s+.05)/(a+.05)}var Jf={r:255,g:255,b:255},ts={r:0,g:0,b:0};function fo(e){let t=typeof e=="string"?bt(e):e;return t?Hl(t,Jf)>=Hl(t,ts)?"#ffffff":"#000000":"#ffffff"}var Pl=[50,100,200,300,400,500,600,700,800,900],Zf=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],Wb=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],ep=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],_b=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function tp(e,t=!1){var a;let n=typeof e=="string"?(a=bt(e))!=null?a:ts:e,r=es(n),o=t?ep:Zf,i=t?_b:Wb,s={};return Pl.forEach((l,c)=>{s[String(l)]=Qf({l:o[c],c:r.c*i[c],h:r.h})}),s}var ns={violeta:{primary:"#6D3BF5",accent:"#FF3D8B",success:"#16A34A",warning:"#D97706",danger:"#E11D48",info:"#7C6BFF"},oceano:{primary:"#0E7BC4",accent:"#0FB5C9",success:"#0F9D6E",warning:"#D08700",danger:"#DC2F3E",info:"#3B82F6"},floresta:{primary:"#1F8A4C",accent:"#7FA80E",success:"#18A05A",warning:"#C97A0A",danger:"#C93A2E",info:"#2C8FA8"},poente:{primary:"#E4632A",accent:"#D62F63",success:"#3E9B52",warning:"#D99000",danger:"#D32F2F",info:"#B45FC0"},grafite:{primary:"#4C5A70",accent:"#2E7FD1",success:"#2F8F60",warning:"#B57A12",danger:"#C2453F",info:"#5B7A99"}},np=["primary","accent","success","warning","danger","info"],Ol="voodoo:palette",Kf="voodoo-palette",Kb="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Yb="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function Yf(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var Xb=/^([\d.]+)(px|rem|em)$/;function Gb(e){let t=(e||"12px").trim(),n=Xb.exec(t);if(!n)return{"--v-radius":t,"--v-radius-sm":`calc(${t} * 0.6)`,"--v-radius-lg":`calc(${t} * 1.5)`,"--v-radius-xl":`calc(${t} * 2)`,"--v-radius-full":"999px"};let r=parseFloat(n[1]),o=n[2],i=s=>`${Math.round(s*1e3)/1e3}${o}`;return{"--v-radius":i(r),"--v-radius-sm":i(Math.max(r*.55,0)),"--v-radius-lg":i(r*1.5),"--v-radius-xl":i(r*2),"--v-radius-full":"999px"}}function Xf(e,t){var c,d,u,p;let n={},r={},o={};for(let f of np){let m=(c=bt(e[f]))!=null?c:ts,h=es(m),v=tp(m,t);r[f]=v;for(let O of Pl)n[`--v-${f}-${O}`]=v[String(O)];let g=t?{l:Math.max(h.l,.62),c:h.c*.95,h:h.h}:h,b=t?{l:Math.min(g.l+.07,.94),c:g.c*.95,h:g.h}:{l:Math.max(g.l-.055,.12),c:g.c,h:g.h},x=t?{l:Math.min(g.l+.13,.97),c:g.c*.88,h:g.h}:{l:Math.max(g.l-.105,.1),c:g.c,h:g.h},T=pr(g),k=pr(b),A=pr(x);n[`--v-${f}`]=wn(t?T:m),n[`--v-${f}-hover`]=wn(k),n[`--v-${f}-active`]=wn(A),n[`--v-${f}-contrast`]=fo(t?T:m),n[`--v-${f}-contrast-hover`]=fo(k),n[`--v-${f}-contrast-active`]=fo(A);let D=v[50],C=v[100],oe=t?v[800]:v[700];n[`--v-${f}-soft`]=D,n[`--v-${f}-soft-hover`]=C,n[`--v-${f}-soft-text`]=oe,n[`--v-${f}-ring`]=fr(T,t?.45:.32),n[`--v-${f}-border`]=t?v[300]:v[200],o[f]=n[`--v-${f}-contrast`]}let i=(u=bt((d=e.neutral)!=null?d:e.primary))!=null?u:ts,s=es(i).h,a=(f,m)=>Qf({l:f,c:m,h:s}),l={};if(Pl.forEach((f,m)=>{let h=t?ep:Zf;l[String(f)]=a(h[m],.012),n[`--v-neutral-${f}`]=l[String(f)]}),r.neutral=l,t)n["--v-surface"]=a(.248,.021),n["--v-surface-2"]=a(.196,.021),n["--v-surface-3"]=a(.305,.024),n["--v-surface-inset"]=a(.17,.02),n["--v-text"]=a(.965,.008),n["--v-text-muted"]=a(.748,.017),n["--v-text-soft"]=a(.63,.017),n["--v-border"]=a(.355,.023),n["--v-border-strong"]=a(.46,.026),n["--v-overlay"]="rgba(0, 0, 0, 0.62)",n["--v-shadow-sm"]="0 1px 2px rgba(0, 0, 0, 0.5)",n["--v-shadow"]="0 10px 30px rgba(0, 0, 0, 0.5)",n["--v-shadow-lg"]="0 24px 60px rgba(0, 0, 0, 0.62)";else{let f=pr({l:.24,c:.028,h:s});n["--v-surface"]=a(1,0),n["--v-surface-2"]=a(.981,.006),n["--v-surface-3"]=a(.955,.009),n["--v-surface-inset"]=a(.968,.008),n["--v-text"]=wn(f),n["--v-text-muted"]=a(.53,.023),n["--v-text-soft"]=a(.655,.018),n["--v-border"]=a(.906,.012),n["--v-border-strong"]=a(.828,.016),n["--v-overlay"]=fr(f,.45),n["--v-shadow-sm"]=`0 1px 2px ${fr(f,.08)}`,n["--v-shadow"]=`0 10px 30px ${fr(f,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${fr(f,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=fo((p=bt(n["--v-surface"]))!=null?p:Jf),{vars:n,scales:r,contrast:o}}function $l(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
|
|
369
|
+
`);return`${e} {
|
|
370
|
+
${n}
|
|
371
|
+
}`}var mo=null,po=null;function Qb(e){var r,o,i,s,a,l,c,d,u;let t=(r=ns[e.preset])!=null?r:ns.violeta,n={primary:(o=e.primary)!=null?o:t.primary,accent:(i=e.accent)!=null?i:t.accent,success:(s=e.success)!=null?s:t.success,warning:(a=e.warning)!=null?a:t.warning,danger:(l=e.danger)!=null?l:t.danger,info:(c=e.info)!=null?c:t.info,neutral:(d=e.neutral)!=null?d:t.neutral};for(let p of np)bt(n[p])||(console.warn(`[Voodoo] invalid color in palette.${p}: "${n[p]}". Using preset.`),n[p]=t[p]);return{colors:n,radius:(u=e.radius)!=null?u:"12px",font:Yf(e.font,Kb),mono:Yf(e.monoFont,Yb)}}function Jb(e){if(typeof document=="undefined"||!w.injectStyles)return;he();let t=document.getElementById(Kf);t||(t=document.createElement("style"),t.id=Kf,t.setAttribute("data-voodoo","palette"),document.head.appendChild(t)),t.textContent=e}function Zi(e={}){let{colors:t,radius:n,font:r,mono:o}=Qb(e),i=Xf(t,!1),s=Xf(t,!0),a={...Gb(n),"--v-font-sans":r,"--v-font-mono":o},l=["/* Palette generated by V.palette(). Do not edit manually. */",$l(":root",{...a,...i.vars}),`@media (prefers-color-scheme: dark) {
|
|
372
|
+
${$l(':root:not([data-theme="light"])',s.vars)}
|
|
373
|
+
}`,$l(':root[data-theme="dark"]',s.vars)].join(`
|
|
374
|
+
`);Jb(l);let c={colors:t,radius:n,font:r,monoFont:o,light:i.scales,dark:s.scales,contrast:i.contrast,css:l};if(mo=c,po={...e},e.persist!==!1&&typeof document!="undefined"){let d={...e};delete d.persist,ue.set(Ol,d)}return typeof document!="undefined"&&document.dispatchEvent(new CustomEvent("voodoo:palette",{detail:c})),c}var Gf=!1;function Nl(){if(mo&&Gf)return mo;Gf=!0;let e=ue.get(Ol),t=e&&typeof e=="object"?{...e,persist:!1}:{persist:!1};return Zi(t)}function vo(){mo||Nl()}function rp(){return Nl()}var op=Object.assign(Zi,{presets:ns,get names(){return Object.keys(ns)},get current(){return mo},get options(){return po},init:Nl,ensure:vo,reset(){return ue.remove(Ol),Zi({persist:!1})},use(e){return Zi({...po!=null?po:{},preset:e,primary:void 0,accent:void 0})},scale:tp,contrastText:fo,contrastRatio:Hl,luminance(e){let t=typeof e=="string"?bt(e):e;return t?Dl(t):0},convert:{parseColor:bt,rgbToOklch:es,oklchToRgb:pr,toHex:wn,toRgba:fr}});function ee(e){if(e===!0)return!0;if(e===!1||e===null||e===void 0)return!1;if(typeof e=="number")return e!==0;let t=String(e).trim().toLowerCase();return t===""||t==="true"||t==="1"||t==="yes"}function ge(...e){let t={};for(let n of e){let r=`is${n.charAt(0).toUpperCase()}${n.slice(1)}`;t[r]=function(){return ee(this[n])}}return t}var N={type:"any",default:!1},L={type:"string",default:""};function vr(e,t){var i;if(t==null||typeof t!="string")return t;let n=t.trim();if(!n)return null;if(n.startsWith("[")||n.startsWith("{"))try{return JSON.parse(n)}catch(s){return null}let r=n.split(/[.[(]/)[0].trim();if(!/^[A-Za-z_$][\w$]*$/.test(r))return null;let o=(i=e.$scope)==null?void 0:i.parent;return!o||!o.has(r)?null:q(n,o,"list attribute")}function go(e){return String(e).split(",").map(t=>t.trim()).filter(Boolean)}function Xt(e,t){let n=e.$el;Object.defineProperty(n,"value",{configurable:!0,enumerable:!1,get:t.get,set:t.set})}function ho(e){e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0}))}var ap={check:'<path d="m5 12.5 4.4 4.4L19 7.6"/>',x:'<path d="M6 6l12 12M18 6 6 18"/>',plus:'<path d="M12 5v14M5 12h14"/>',minus:'<path d="M5 12h14"/>',search:'<circle cx="11" cy="11" r="6.5"/><path d="m16 16 4 4"/>',"chevron-down":'<path d="m6 9.5 6 6 6-6"/>',"chevron-up":'<path d="m6 14.5 6-6 6 6"/>',"chevron-left":'<path d="m14.5 6-6 6 6 6"/>',"chevron-right":'<path d="m9.5 6 6 6-6 6"/>',"arrow-up":'<path d="M12 19V5M6 11l6-6 6 6"/>',"arrow-down":'<path d="M12 5v14M6 13l6 6 6-6"/>',"arrow-right":'<path d="M5 12h14M13 6l6 6-6 6"/>',"arrow-left":'<path d="M19 12H5M11 6l-6 6 6 6"/>',user:'<circle cx="12" cy="8.5" r="3.6"/><path d="M4.8 20a7.4 7.4 0 0 1 14.4 0"/>',users:'<circle cx="9.5" cy="8.5" r="3.2"/><path d="M3.4 19.5a6.4 6.4 0 0 1 12.2 0M16 5.6a3.2 3.2 0 0 1 0 5.9M17.4 14.4a6.4 6.4 0 0 1 3.2 5.1"/>',mail:'<rect x="3" y="5" width="18" height="14" rx="2.5"/><path d="m3.8 7 8.2 6 8.2-6"/>',lock:'<rect x="4.5" y="10.5" width="15" height="9.5" rx="2.4"/><path d="M8 10.5V8a4 4 0 0 1 8 0v2.5"/>',eye:'<path d="M2.6 12S6.4 5.8 12 5.8 21.4 12 21.4 12 17.6 18.2 12 18.2 2.6 12 2.6 12Z"/><circle cx="12" cy="12" r="2.8"/>',"eye-off":'<path d="M4 4l16 16M9.9 6.2A9.3 9.3 0 0 1 12 6c5.6 0 9.4 6 9.4 6a17 17 0 0 1-3.3 3.9M6.3 8.2A17 17 0 0 0 2.6 12S6.4 18 12 18c1 0 1.9-.2 2.7-.5"/>',calendar:'<rect x="3.5" y="5" width="17" height="15" rx="2.4"/><path d="M8 3v4M16 3v4M3.5 10h17"/>',clock:'<circle cx="12" cy="12" r="8.6"/><path d="M12 7.4V12l3 1.8"/>',star:'<path d="m12 4 2.5 5.2 5.5.8-4 3.9 1 5.6-5-2.7-5 2.7 1-5.6-4-3.9 5.5-.8z"/>',info:'<circle cx="12" cy="12" r="8.6"/><path d="M12 11v5.2M12 7.6v.2"/>',alert:'<circle cx="12" cy="12" r="8.6"/><path d="M12 7.5v5M12 16.4v.2"/>',warning:'<path d="M12 4.4 2.8 19.6h18.4z"/><path d="M12 10v3.8M12 16.9v.2"/>',trash:'<path d="M4.5 7h15M9.5 7V5.2A1.2 1.2 0 0 1 10.7 4h2.6a1.2 1.2 0 0 1 1.2 1.2V7M6.6 7l.8 12a1.6 1.6 0 0 0 1.6 1.5h6a1.6 1.6 0 0 0 1.6-1.5l.8-12"/>',edit:'<path d="M4.5 19.5h4l10-10a2.1 2.1 0 0 0-3-3l-10 10z"/><path d="M14 6.5 17.5 10"/>',copy:'<rect x="8.5" y="8.5" width="11.5" height="11.5" rx="2.2"/><path d="M15.5 5.5A1.5 1.5 0 0 0 14 4H6a2 2 0 0 0-2 2v8a1.5 1.5 0 0 0 1.5 1.5"/>',download:'<path d="M12 4v11M7.5 11 12 15.5 16.5 11M4.5 19.5h15"/>',upload:'<path d="M12 20V8.5M7.5 12.5 12 8l4.5 4.5M4.5 4.5h15"/>',settings:'<circle cx="12" cy="12" r="3.1"/><path d="M19.6 14.4a1.7 1.7 0 0 0 .34 1.87l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.7 1.7 0 0 0-1.87-.34 1.7 1.7 0 0 0-1.03 1.56V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.56 1.7 1.7 0 0 0-1.87.34l-.06.06A2 2 0 1 1 4.15 16.9l.06-.06a1.7 1.7 0 0 0 .34-1.87A1.7 1.7 0 0 0 3 13.94H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.55-1.1 1.7 1.7 0 0 0-.34-1.87l-.06-.06A2 2 0 1 1 7.08 4.08l.06.06a1.7 1.7 0 0 0 1.87.34H9a1.7 1.7 0 0 0 1-1.56V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.56 1.7 1.7 0 0 0 1.87-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.7 1.7 0 0 0-.34 1.87V10a1.7 1.7 0 0 0 1.56 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.3 1z"/>',home:'<path d="M4 10.5 12 4l8 6.5V19a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 19z"/><path d="M9.6 20.5v-6h4.8v6"/>',heart:'<path d="M12 20s-7.5-4.6-7.5-9.4A4.1 4.1 0 0 1 12 8.2a4.1 4.1 0 0 1 7.5 2.4C19.5 15.4 12 20 12 20Z"/>',bell:'<path d="M18 9a6 6 0 1 0-12 0c0 5.2-2 6.5-2 6.5h16S18 14.2 18 9"/><path d="M13.7 19.5a2 2 0 0 1-3.4 0"/>',filter:'<path d="M4 5.5h16l-6.2 7.3v5.3l-3.6 2v-7.3z"/>',external:'<path d="M14 4.5h5.5V10M19 5l-8 8"/><path d="M18 13.5V18a1.5 1.5 0 0 1-1.5 1.5H6A1.5 1.5 0 0 1 4.5 18V7.5A1.5 1.5 0 0 1 6 6h4.5"/>',refresh:'<path d="M20 11a8 8 0 0 0-13.7-4.8L4 8.4"/><path d="M4 4.5v4h4M4 13a8 8 0 0 0 13.7 4.8L20 15.6"/><path d="M20 19.5v-4h-4"/>',folder:'<path d="M4 7.5A1.5 1.5 0 0 1 5.5 6h3.7l2 2.4h7.3A1.5 1.5 0 0 1 20 9.9v7.6a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 17.5z"/>',file:'<path d="M13.5 4H7a1.5 1.5 0 0 0-1.5 1.5v13A1.5 1.5 0 0 0 7 20h10a1.5 1.5 0 0 0 1.5-1.5V9z"/><path d="M13.5 4v5h5"/>',image:'<rect x="4" y="5" width="16" height="14" rx="2.2"/><circle cx="9" cy="10" r="1.7"/><path d="m5 17 4.6-4.3 3.4 3 2.6-2.3L19 17"/>',link:'<path d="M10.6 13.4a3.6 3.6 0 0 0 5.1 0l2.4-2.4a3.6 3.6 0 0 0-5.1-5.1l-1.3 1.3"/><path d="M13.4 10.6a3.6 3.6 0 0 0-5.1 0l-2.4 2.4a3.6 3.6 0 0 0 5.1 5.1l1.3-1.3"/>',menu:'<path d="M4 7h16M4 12h16M4 17h16"/>',more:'<circle cx="6" cy="12" r="1.4"/><circle cx="12" cy="12" r="1.4"/><circle cx="18" cy="12" r="1.4"/>',logout:'<path d="M14.5 8V6a1.5 1.5 0 0 0-1.5-1.5H6A1.5 1.5 0 0 0 4.5 6v12A1.5 1.5 0 0 0 6 19.5h7a1.5 1.5 0 0 0 1.5-1.5v-2"/><path d="M9.5 12h10.5M16.5 8.5 20 12l-3.5 3.5"/>',card:'<rect x="3" y="6" width="18" height="12" rx="2.4"/><path d="M3 10h18"/>',chart:'<path d="M4.5 19.5h15"/><path d="M7.5 19.5V11M12 19.5V5.5M16.5 19.5v-6"/>',box:'<path d="M20 8.6 12 4 4 8.6v6.8L12 20l8-4.6z"/><path d="m4 8.6 8 4.6 8-4.6M12 13.2V20"/>',inbox:'<path d="M4 13.5h4l1.4 2.4h5.2l1.4-2.4h4"/><path d="M4.6 13.5 7 5.6A1.5 1.5 0 0 1 8.5 4.5h7A1.5 1.5 0 0 1 17 5.6l2.4 7.9V18a1.5 1.5 0 0 1-1.5 1.5H6A1.5 1.5 0 0 1 4.5 18z"/>'};function Zb(e){let t=String(e!=null?e:"").trim();if(!t)return"";let n=ap[t];return n?`<svg class="v-ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.85" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${n}</svg>`:""}var ey=`
|
|
375
|
+
.v-ic{width:1em;height:1em;flex:none}
|
|
376
|
+
.v-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
|
|
377
|
+
clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
378
|
+
.v-native-hidden{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;
|
|
379
|
+
border:0;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0)}
|
|
380
|
+
@keyframes v-spin{to{transform:rotate(360deg)}}
|
|
381
|
+
@keyframes v-pulse{0%,100%{opacity:1}50%{opacity:.45}}
|
|
382
|
+
@keyframes v-shimmer{0%{background-position:-180% 0}100%{background-position:180% 0}}
|
|
383
|
+
@keyframes v-indeterminate{0%{transform:translateX(-100%)}100%{transform:translateX(340%)}}
|
|
384
|
+
|
|
385
|
+
/* ------------------------------------------------------------------ botao */
|
|
386
|
+
.v-btn{appearance:none;-webkit-appearance:none;position:relative;display:inline-flex;
|
|
387
|
+
align-items:center;justify-content:center;gap:8px;vertical-align:middle;white-space:nowrap;
|
|
388
|
+
font-family:var(--v-font-sans);font-weight:600;line-height:1;text-decoration:none;
|
|
389
|
+
border:1px solid transparent;border-radius:var(--v-radius-sm);cursor:pointer;
|
|
390
|
+
transition:background-color .15s var(--v-ease),border-color .15s var(--v-ease),
|
|
391
|
+
color .15s var(--v-ease),box-shadow .15s var(--v-ease),transform .08s var(--v-ease)}
|
|
392
|
+
.v-btn:focus-visible{outline:2px solid var(--v-focus-ring);outline-offset:2px}
|
|
393
|
+
.v-btn:active:not([disabled]){transform:translateY(1px)}
|
|
394
|
+
.v-btn[disabled]{cursor:not-allowed;opacity:.58}
|
|
395
|
+
.v-btn[data-block="true"]{width:100%;display:flex}
|
|
396
|
+
.v-btn[data-rounded="true"]{border-radius:var(--v-radius-full)}
|
|
397
|
+
.v-btn-label{display:inline-flex;align-items:center}
|
|
398
|
+
.v-btn-label:empty{display:none}
|
|
399
|
+
|
|
400
|
+
.v-btn[data-size="sm"]{min-height:32px;padding:0 12px;font-size:13px;gap:6px}
|
|
401
|
+
.v-btn[data-size="md"]{min-height:40px;padding:0 16px;font-size:14px}
|
|
402
|
+
.v-btn[data-size="lg"]{min-height:46px;padding:0 20px;font-size:15px}
|
|
403
|
+
.v-btn[data-size="xl"]{min-height:54px;padding:0 26px;font-size:16px}
|
|
404
|
+
.v-btn .v-ic{font-size:1.15em}
|
|
405
|
+
|
|
406
|
+
.v-btn[data-variant="primary"]{background:var(--v-primary);border-color:var(--v-primary);color:var(--v-primary-contrast)}
|
|
407
|
+
.v-btn[data-variant="primary"]:hover:not([disabled]){background:var(--v-primary-hover);border-color:var(--v-primary-hover);color:var(--v-primary-contrast-hover)}
|
|
408
|
+
.v-btn[data-variant="primary"]:active:not([disabled]){background:var(--v-primary-active);border-color:var(--v-primary-active);color:var(--v-primary-contrast-active)}
|
|
409
|
+
.v-btn[data-variant="accent"]{background:var(--v-accent);border-color:var(--v-accent);color:var(--v-accent-contrast)}
|
|
410
|
+
.v-btn[data-variant="accent"]:hover:not([disabled]){background:var(--v-accent-hover);border-color:var(--v-accent-hover);color:var(--v-accent-contrast-hover)}
|
|
411
|
+
.v-btn[data-variant="success"]{background:var(--v-success);border-color:var(--v-success);color:var(--v-success-contrast)}
|
|
412
|
+
.v-btn[data-variant="success"]:hover:not([disabled]){background:var(--v-success-hover);border-color:var(--v-success-hover);color:var(--v-success-contrast-hover)}
|
|
413
|
+
.v-btn[data-variant="warning"]{background:var(--v-warning);border-color:var(--v-warning);color:var(--v-warning-contrast)}
|
|
414
|
+
.v-btn[data-variant="warning"]:hover:not([disabled]){background:var(--v-warning-hover);border-color:var(--v-warning-hover);color:var(--v-warning-contrast-hover)}
|
|
415
|
+
.v-btn[data-variant="danger"]{background:var(--v-danger);border-color:var(--v-danger);color:var(--v-danger-contrast)}
|
|
416
|
+
.v-btn[data-variant="danger"]:hover:not([disabled]){background:var(--v-danger-hover);border-color:var(--v-danger-hover);color:var(--v-danger-contrast-hover)}
|
|
417
|
+
.v-btn[data-variant="secondary"]{background:var(--v-surface-3);border-color:var(--v-border);color:var(--v-text)}
|
|
418
|
+
.v-btn[data-variant="secondary"]:hover:not([disabled]){background:var(--v-surface-2);border-color:var(--v-border-strong);color:var(--v-text)}
|
|
419
|
+
.v-btn[data-variant="outline"]{background:transparent;border-color:var(--v-primary-border);color:var(--v-primary-soft-text)}
|
|
420
|
+
.v-btn[data-variant="outline"]:hover:not([disabled]){background:var(--v-primary-soft);border-color:var(--v-primary);color:var(--v-primary-soft-text)}
|
|
421
|
+
.v-btn[data-variant="ghost"]{background:transparent;border-color:transparent;color:var(--v-text-muted)}
|
|
422
|
+
.v-btn[data-variant="ghost"]:hover:not([disabled]){background:var(--v-surface-3);color:var(--v-text)}
|
|
423
|
+
.v-btn[data-variant="link"]{background:transparent;border-color:transparent;color:var(--v-primary);padding:0 4px;min-height:auto}
|
|
424
|
+
.v-btn[data-variant="link"]:hover:not([disabled]){color:var(--v-primary-hover);text-decoration:underline}
|
|
425
|
+
|
|
426
|
+
.v-btn-spin{width:1em;height:1em;border-radius:50%;border:2px solid currentColor;
|
|
427
|
+
border-top-color:transparent;animation:v-spin .7s linear infinite;flex:none}
|
|
428
|
+
|
|
429
|
+
/* ------------------------------------------------------- botao de icone */
|
|
430
|
+
.v-icon-btn{appearance:none;-webkit-appearance:none;display:inline-grid;place-items:center;
|
|
431
|
+
border:1px solid transparent;border-radius:var(--v-radius-sm);cursor:pointer;
|
|
432
|
+
font-family:var(--v-font-sans);
|
|
433
|
+
transition:background-color .15s var(--v-ease),border-color .15s var(--v-ease),color .15s var(--v-ease)}
|
|
434
|
+
.v-icon-btn:focus-visible{outline:2px solid var(--v-focus-ring);outline-offset:2px}
|
|
435
|
+
.v-icon-btn[disabled]{cursor:not-allowed;opacity:.58}
|
|
436
|
+
.v-icon-btn[data-rounded="true"]{border-radius:var(--v-radius-full)}
|
|
437
|
+
.v-icon-btn[data-size="sm"]{width:30px;height:30px;font-size:15px}
|
|
438
|
+
.v-icon-btn[data-size="md"]{width:38px;height:38px;font-size:17px}
|
|
439
|
+
.v-icon-btn[data-size="lg"]{width:46px;height:46px;font-size:20px}
|
|
440
|
+
.v-icon-btn[data-variant="primary"]{background:var(--v-primary);border-color:var(--v-primary);color:var(--v-primary-contrast)}
|
|
441
|
+
.v-icon-btn[data-variant="primary"]:hover:not([disabled]){background:var(--v-primary-hover);border-color:var(--v-primary-hover);color:var(--v-primary-contrast-hover)}
|
|
442
|
+
.v-icon-btn[data-variant="danger"]{background:var(--v-danger);border-color:var(--v-danger);color:var(--v-danger-contrast)}
|
|
443
|
+
.v-icon-btn[data-variant="danger"]:hover:not([disabled]){background:var(--v-danger-hover);border-color:var(--v-danger-hover);color:var(--v-danger-contrast-hover)}
|
|
444
|
+
.v-icon-btn[data-variant="secondary"]{background:var(--v-surface-3);border-color:var(--v-border);color:var(--v-text)}
|
|
445
|
+
.v-icon-btn[data-variant="secondary"]:hover:not([disabled]){background:var(--v-surface-2);border-color:var(--v-border-strong);color:var(--v-text)}
|
|
446
|
+
.v-icon-btn[data-variant="outline"]{background:transparent;border-color:var(--v-border-strong);color:var(--v-text)}
|
|
447
|
+
.v-icon-btn[data-variant="outline"]:hover:not([disabled]){background:var(--v-surface-3);border-color:var(--v-primary);color:var(--v-text)}
|
|
448
|
+
.v-icon-btn[data-variant="ghost"]{background:transparent;border-color:transparent;color:var(--v-text-muted)}
|
|
449
|
+
.v-icon-btn[data-variant="ghost"]:hover:not([disabled]){background:var(--v-surface-3);color:var(--v-text)}
|
|
450
|
+
|
|
451
|
+
/* ------------------------------------------------------------------ card */
|
|
452
|
+
.v-card{display:flex;flex-direction:column;background:var(--v-surface);color:var(--v-text);
|
|
453
|
+
border:1px solid var(--v-border);border-radius:var(--v-radius);box-shadow:var(--v-shadow-sm);
|
|
454
|
+
font-family:var(--v-font-sans);overflow:hidden;
|
|
455
|
+
transition:box-shadow .18s var(--v-ease),border-color .18s var(--v-ease),transform .18s var(--v-ease)}
|
|
456
|
+
.v-card[data-hoverable="true"]:hover{box-shadow:var(--v-shadow);border-color:var(--v-border-strong);transform:translateY(-2px)}
|
|
457
|
+
.v-card-head{display:flex;gap:12px;align-items:flex-start;padding:18px 18px 0}
|
|
458
|
+
.v-card-icon{flex:none;width:36px;height:36px;display:grid;place-items:center;font-size:18px;
|
|
459
|
+
border-radius:var(--v-radius-sm);background:var(--v-primary-soft);color:var(--v-primary-soft-text)}
|
|
460
|
+
.v-card-heading{flex:1;min-width:0}
|
|
461
|
+
.v-card-title{margin:0;font-size:15.5px;font-weight:650;line-height:1.35;color:var(--v-text)}
|
|
462
|
+
.v-card-sub{margin:4px 0 0;font-size:13.5px;line-height:1.5;color:var(--v-text-muted)}
|
|
463
|
+
.v-card-actions{flex:none;display:flex;gap:8px;align-items:center}
|
|
464
|
+
.v-card-actions:empty{display:none}
|
|
465
|
+
.v-card-body{padding:18px;font-size:14px;line-height:1.6;color:var(--v-text)}
|
|
466
|
+
.v-card-head+.v-card-body{padding-top:14px}
|
|
467
|
+
.v-card-body>:first-child{margin-top:0}
|
|
468
|
+
.v-card-body>:last-child{margin-bottom:0}
|
|
469
|
+
.v-card-body:empty{display:none}
|
|
470
|
+
.v-card-foot{padding:0 18px 18px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
|
|
471
|
+
.v-card-foot:empty{display:none}
|
|
472
|
+
.v-card[data-padded="false"] .v-card-body{padding:0}
|
|
473
|
+
|
|
474
|
+
/* ------------------------------------------------------------ formulario */
|
|
475
|
+
.v-field{display:flex;flex-direction:column;gap:6px;font-family:var(--v-font-sans);min-width:0}
|
|
476
|
+
.v-label{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:600;
|
|
477
|
+
line-height:1.3;color:var(--v-text)}
|
|
478
|
+
.v-label[data-size="sm"]{font-size:12.5px}
|
|
479
|
+
.v-label[data-size="lg"]{font-size:14px}
|
|
480
|
+
.v-req{color:var(--v-danger);font-weight:700}
|
|
481
|
+
.v-hint{margin:0;font-size:12.5px;line-height:1.45;color:var(--v-text-muted)}
|
|
482
|
+
.v-error-text{margin:0;font-size:12.5px;line-height:1.45;font-weight:600;color:var(--v-danger)}
|
|
483
|
+
|
|
484
|
+
.v-control{position:relative;display:flex;align-items:center;gap:8px;
|
|
485
|
+
background:var(--v-surface);border:1px solid var(--v-border);border-radius:var(--v-radius-sm);
|
|
486
|
+
transition:border-color .15s var(--v-ease),box-shadow .15s var(--v-ease),background-color .15s var(--v-ease)}
|
|
487
|
+
.v-control:focus-within{border-color:var(--v-primary);box-shadow:0 0 0 3px var(--v-focus-ring)}
|
|
488
|
+
.v-field[data-error="true"] .v-control{border-color:var(--v-danger)}
|
|
489
|
+
.v-field[data-error="true"] .v-control:focus-within{box-shadow:0 0 0 3px var(--v-danger-ring)}
|
|
490
|
+
.v-field[data-disabled="true"] .v-control{background:var(--v-surface-3);opacity:.72}
|
|
491
|
+
.v-control-ic{flex:none;display:grid;place-items:center;font-size:16px;color:var(--v-text-soft);padding-left:11px}
|
|
492
|
+
.v-control-ic+.v-input,.v-control-ic+.v-textarea{padding-left:2px}
|
|
493
|
+
.v-control[data-size="sm"]{--v-control-h:34px;font-size:13px}
|
|
494
|
+
.v-control[data-size="md"]{--v-control-h:40px;font-size:14px}
|
|
495
|
+
.v-control[data-size="lg"]{--v-control-h:46px;font-size:15px}
|
|
496
|
+
|
|
497
|
+
.v-input,.v-textarea{appearance:none;-webkit-appearance:none;flex:1;min-width:0;width:100%;
|
|
498
|
+
background:transparent;border:0;outline:none;font-family:inherit;font-size:inherit;
|
|
499
|
+
line-height:1.45;color:var(--v-text);padding:0 12px;min-height:calc(var(--v-control-h,40px) - 2px)}
|
|
500
|
+
.v-textarea{padding:10px 12px;resize:vertical;min-height:96px}
|
|
501
|
+
.v-textarea[data-resize="none"]{resize:none}
|
|
502
|
+
.v-input::placeholder,.v-textarea::placeholder{color:var(--v-text-soft);opacity:1}
|
|
503
|
+
.v-input:disabled,.v-textarea:disabled{cursor:not-allowed;color:var(--v-text-muted)}
|
|
504
|
+
.v-input::-webkit-outer-spin-button,.v-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
|
|
505
|
+
.v-input[type="number"]{-moz-appearance:textfield}
|
|
506
|
+
.v-affix{flex:none;display:grid;place-items:center;padding-right:10px;color:var(--v-text-soft);font-size:16px}
|
|
507
|
+
.v-clear{appearance:none;background:none;border:0;cursor:pointer;color:var(--v-text-soft);
|
|
508
|
+
display:grid;place-items:center;width:22px;height:22px;border-radius:var(--v-radius-full);
|
|
509
|
+
margin-right:8px;font-size:14px;flex:none}
|
|
510
|
+
.v-clear:hover{background:var(--v-surface-3);color:var(--v-text)}
|
|
511
|
+
.v-clear:focus-visible{outline:2px solid var(--v-focus-ring);outline-offset:1px}
|
|
512
|
+
.v-counter{font-size:12px;color:var(--v-text-soft);text-align:right}
|
|
513
|
+
|
|
514
|
+
/* ----------------------------------------------------------- combobox */
|
|
515
|
+
.v-select{position:relative;font-family:var(--v-font-sans)}
|
|
516
|
+
.v-select-trigger{appearance:none;-webkit-appearance:none;width:100%;display:flex;align-items:center;
|
|
517
|
+
gap:8px;text-align:left;cursor:pointer;background:var(--v-surface);color:var(--v-text);
|
|
518
|
+
border:1px solid var(--v-border);border-radius:var(--v-radius-sm);font-family:inherit;
|
|
519
|
+
min-height:var(--v-control-h,40px);padding:0 10px 0 12px;font-size:14px;
|
|
520
|
+
transition:border-color .15s var(--v-ease),box-shadow .15s var(--v-ease)}
|
|
521
|
+
.v-select-trigger[data-size="sm"]{--v-control-h:34px;font-size:13px}
|
|
522
|
+
.v-select-trigger[data-size="lg"]{--v-control-h:46px;font-size:15px}
|
|
523
|
+
.v-select-trigger:hover:not([disabled]){border-color:var(--v-border-strong)}
|
|
524
|
+
.v-select-trigger:focus-visible{outline:none;border-color:var(--v-primary);box-shadow:0 0 0 3px var(--v-focus-ring)}
|
|
525
|
+
.v-select.is-open>.v-select-trigger{border-color:var(--v-primary);box-shadow:0 0 0 3px var(--v-focus-ring)}
|
|
526
|
+
.v-select-trigger[disabled]{cursor:not-allowed;background:var(--v-surface-3);color:var(--v-text-muted)}
|
|
527
|
+
.v-field[data-error="true"] .v-select-trigger{border-color:var(--v-danger)}
|
|
528
|
+
.v-select-value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
529
|
+
.v-select-value[data-placeholder="true"]{color:var(--v-text-soft)}
|
|
530
|
+
.v-select-arrow{flex:none;font-size:16px;color:var(--v-text-soft);transition:transform .18s var(--v-ease)}
|
|
531
|
+
.v-select.is-open .v-select-arrow{transform:rotate(180deg)}
|
|
532
|
+
|
|
533
|
+
.v-select-pop{position:absolute;z-index:var(--v-z-dropdown,900);top:calc(100% + 6px);left:0;right:0;
|
|
534
|
+
background:var(--v-surface);border:1px solid var(--v-border);border-radius:var(--v-radius-sm);
|
|
535
|
+
box-shadow:var(--v-shadow);overflow:hidden;display:flex;flex-direction:column;max-height:280px}
|
|
536
|
+
.v-select-search{padding:8px;border-bottom:1px solid var(--v-border);display:flex;align-items:center;gap:8px}
|
|
537
|
+
.v-select-input{appearance:none;-webkit-appearance:none;flex:1;min-width:0;background:var(--v-surface-2);
|
|
538
|
+
border:1px solid var(--v-border);border-radius:var(--v-radius-sm);padding:7px 10px;
|
|
539
|
+
font-family:inherit;font-size:13.5px;color:var(--v-text);outline:none}
|
|
540
|
+
.v-select-input:focus{border-color:var(--v-primary);box-shadow:0 0 0 2px var(--v-focus-ring)}
|
|
541
|
+
.v-select-input::placeholder{color:var(--v-text-soft)}
|
|
542
|
+
.v-select-list{list-style:none;margin:0;padding:5px;overflow-y:auto;overscroll-behavior:contain}
|
|
543
|
+
.v-select-opt{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:var(--v-radius-sm);
|
|
544
|
+
font-size:14px;line-height:1.35;color:var(--v-text);cursor:pointer;user-select:none}
|
|
545
|
+
.v-select-opt.is-active{background:var(--v-primary-soft);color:var(--v-primary-soft-text)}
|
|
546
|
+
.v-select-opt.is-selected{font-weight:600}
|
|
547
|
+
.v-select-opt.is-disabled{opacity:.45;cursor:not-allowed}
|
|
548
|
+
.v-select-check{flex:none;width:16px;height:16px;display:grid;place-items:center;
|
|
549
|
+
color:var(--v-primary-soft-text);opacity:0}
|
|
550
|
+
.v-select-opt.is-selected .v-select-check{opacity:1}
|
|
551
|
+
.v-select-empty{padding:14px 10px;text-align:center;font-size:13.5px;color:var(--v-text-muted)}
|
|
552
|
+
|
|
553
|
+
/* -------------------------------------------- caixa, radio e interruptor */
|
|
554
|
+
.v-check{display:inline-flex;align-items:flex-start;gap:9px;cursor:pointer;
|
|
555
|
+
font-family:var(--v-font-sans);font-size:14px;line-height:1.45;color:var(--v-text)}
|
|
556
|
+
.v-check[data-disabled="true"]{cursor:not-allowed;opacity:.6}
|
|
557
|
+
.v-check-slot{position:relative;flex:none;display:inline-flex;margin-top:1px}
|
|
558
|
+
.v-check-native{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;
|
|
559
|
+
appearance:none;-webkit-appearance:none;cursor:inherit}
|
|
560
|
+
.v-check-box{width:19px;height:19px;display:grid;place-items:center;background:var(--v-surface);
|
|
561
|
+
border:1.5px solid var(--v-border-strong);border-radius:5px;color:var(--v-primary-contrast);
|
|
562
|
+
transition:background-color .14s var(--v-ease),border-color .14s var(--v-ease)}
|
|
563
|
+
.v-check[data-shape="round"] .v-check-box{border-radius:var(--v-radius-full)}
|
|
564
|
+
.v-check-box .v-ic{font-size:13px;opacity:0;transform:scale(.6);
|
|
565
|
+
transition:opacity .14s var(--v-ease),transform .14s var(--v-ease)}
|
|
566
|
+
.v-check-native:checked+.v-check-box{background:var(--v-primary);border-color:var(--v-primary)}
|
|
567
|
+
.v-check-native:checked+.v-check-box .v-ic{opacity:1;transform:none}
|
|
568
|
+
.v-check-native:focus-visible+.v-check-box{outline:2px solid var(--v-focus-ring);outline-offset:2px}
|
|
569
|
+
.v-check-native:disabled+.v-check-box{background:var(--v-surface-3);border-color:var(--v-border)}
|
|
570
|
+
.v-check[data-error="true"] .v-check-box{border-color:var(--v-danger)}
|
|
571
|
+
.v-check-text{min-width:0}
|
|
572
|
+
.v-check-desc{display:block;margin-top:2px;font-size:12.5px;color:var(--v-text-muted)}
|
|
573
|
+
|
|
574
|
+
.v-radio-dot{width:9px;height:9px;border-radius:var(--v-radius-full);background:var(--v-primary-contrast);
|
|
575
|
+
opacity:0;transform:scale(.4);transition:opacity .14s var(--v-ease),transform .14s var(--v-ease)}
|
|
576
|
+
.v-check-native:checked+.v-check-box .v-radio-dot{opacity:1;transform:none}
|
|
577
|
+
|
|
578
|
+
.v-switch-track{width:40px;height:23px;border-radius:var(--v-radius-full);background:var(--v-border-strong);
|
|
579
|
+
display:flex;align-items:center;padding:2px;transition:background-color .18s var(--v-ease)}
|
|
580
|
+
.v-switch-thumb{width:19px;height:19px;border-radius:var(--v-radius-full);background:var(--v-surface);
|
|
581
|
+
box-shadow:var(--v-shadow-sm);transition:transform .18s var(--v-ease)}
|
|
582
|
+
.v-check-native:checked+.v-switch-track{background:var(--v-primary)}
|
|
583
|
+
.v-check-native:checked+.v-switch-track .v-switch-thumb{transform:translateX(17px)}
|
|
584
|
+
.v-check-native:focus-visible+.v-switch-track{outline:2px solid var(--v-focus-ring);outline-offset:2px}
|
|
585
|
+
.v-check-native:disabled+.v-switch-track{opacity:.6}
|
|
586
|
+
.v-check[data-size="sm"] .v-switch-track{width:34px;height:20px}
|
|
587
|
+
.v-check[data-size="sm"] .v-switch-thumb{width:16px;height:16px}
|
|
588
|
+
.v-check[data-size="sm"] .v-check-native:checked+.v-switch-track .v-switch-thumb{transform:translateX(14px)}
|
|
589
|
+
|
|
590
|
+
/* --------------------------------------------------- selo, etiqueta, alerta */
|
|
591
|
+
.v-badge{display:inline-flex;align-items:center;gap:5px;font-family:var(--v-font-sans);
|
|
592
|
+
font-weight:600;line-height:1;border-radius:var(--v-radius-full);border:1px solid transparent;
|
|
593
|
+
white-space:nowrap;vertical-align:middle}
|
|
594
|
+
.v-badge[data-size="sm"]{font-size:11px;padding:3px 8px}
|
|
595
|
+
.v-badge[data-size="md"]{font-size:12px;padding:4px 10px}
|
|
596
|
+
.v-badge[data-size="lg"]{font-size:13px;padding:6px 12px}
|
|
597
|
+
.v-badge-dot{width:6px;height:6px;border-radius:var(--v-radius-full);background:currentColor;flex:none}
|
|
598
|
+
.v-badge[data-variant="soft"][data-tone="neutral"]{background:var(--v-surface-3);color:var(--v-text-muted)}
|
|
599
|
+
.v-badge[data-variant="soft"][data-tone="primary"]{background:var(--v-primary-soft);color:var(--v-primary-soft-text)}
|
|
600
|
+
.v-badge[data-variant="soft"][data-tone="accent"]{background:var(--v-accent-soft);color:var(--v-accent-soft-text)}
|
|
601
|
+
.v-badge[data-variant="soft"][data-tone="success"]{background:var(--v-success-soft);color:var(--v-success-soft-text)}
|
|
602
|
+
.v-badge[data-variant="soft"][data-tone="warning"]{background:var(--v-warning-soft);color:var(--v-warning-soft-text)}
|
|
603
|
+
.v-badge[data-variant="soft"][data-tone="danger"]{background:var(--v-danger-soft);color:var(--v-danger-soft-text)}
|
|
604
|
+
.v-badge[data-variant="soft"][data-tone="info"]{background:var(--v-info-soft);color:var(--v-info-soft-text)}
|
|
605
|
+
.v-badge[data-variant="solid"][data-tone="neutral"]{background:var(--v-text-muted);color:var(--v-surface)}
|
|
606
|
+
.v-badge[data-variant="solid"][data-tone="primary"]{background:var(--v-primary);color:var(--v-primary-contrast)}
|
|
607
|
+
.v-badge[data-variant="solid"][data-tone="accent"]{background:var(--v-accent);color:var(--v-accent-contrast)}
|
|
608
|
+
.v-badge[data-variant="solid"][data-tone="success"]{background:var(--v-success);color:var(--v-success-contrast)}
|
|
609
|
+
.v-badge[data-variant="solid"][data-tone="warning"]{background:var(--v-warning);color:var(--v-warning-contrast)}
|
|
610
|
+
.v-badge[data-variant="solid"][data-tone="danger"]{background:var(--v-danger);color:var(--v-danger-contrast)}
|
|
611
|
+
.v-badge[data-variant="solid"][data-tone="info"]{background:var(--v-info);color:var(--v-info-contrast)}
|
|
612
|
+
.v-badge[data-variant="outline"]{background:transparent}
|
|
613
|
+
.v-badge[data-variant="outline"][data-tone="neutral"]{border-color:var(--v-border-strong);color:var(--v-text-muted)}
|
|
614
|
+
.v-badge[data-variant="outline"][data-tone="primary"]{border-color:var(--v-primary-border);color:var(--v-primary-soft-text)}
|
|
615
|
+
.v-badge[data-variant="outline"][data-tone="accent"]{border-color:var(--v-accent-border);color:var(--v-accent-soft-text)}
|
|
616
|
+
.v-badge[data-variant="outline"][data-tone="success"]{border-color:var(--v-success-border);color:var(--v-success-soft-text)}
|
|
617
|
+
.v-badge[data-variant="outline"][data-tone="warning"]{border-color:var(--v-warning-border);color:var(--v-warning-soft-text)}
|
|
618
|
+
.v-badge[data-variant="outline"][data-tone="danger"]{border-color:var(--v-danger-border);color:var(--v-danger-soft-text)}
|
|
619
|
+
.v-badge[data-variant="outline"][data-tone="info"]{border-color:var(--v-info-border);color:var(--v-info-soft-text)}
|
|
620
|
+
|
|
621
|
+
.v-tag{display:inline-flex;align-items:center;gap:6px;font-family:var(--v-font-sans);font-size:12.5px;
|
|
622
|
+
font-weight:600;line-height:1;padding:5px 6px 5px 10px;border-radius:var(--v-radius-sm);
|
|
623
|
+
border:1px solid transparent;vertical-align:middle}
|
|
624
|
+
.v-tag[data-closable="false"]{padding-right:10px}
|
|
625
|
+
.v-tag-close{appearance:none;background:none;border:0;cursor:pointer;color:inherit;opacity:.65;
|
|
626
|
+
display:grid;place-items:center;width:18px;height:18px;border-radius:var(--v-radius-full);font-size:12px}
|
|
627
|
+
.v-tag-close:hover{opacity:1;background:rgba(0,0,0,.08)}
|
|
628
|
+
.v-tag-close:focus-visible{outline:2px solid currentColor;outline-offset:1px}
|
|
629
|
+
|
|
630
|
+
.v-alert{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:var(--v-radius);
|
|
631
|
+
border:1px solid transparent;font-family:var(--v-font-sans);font-size:14px;line-height:1.55}
|
|
632
|
+
.v-alert-icon{flex:none;font-size:18px;margin-top:1px}
|
|
633
|
+
.v-alert-body{flex:1;min-width:0}
|
|
634
|
+
.v-alert-title{margin:0 0 3px;font-size:14.5px;font-weight:650;line-height:1.4}
|
|
635
|
+
.v-alert-text>:first-child{margin-top:0}
|
|
636
|
+
.v-alert-text>:last-child{margin-bottom:0}
|
|
637
|
+
.v-alert-close{appearance:none;background:none;border:0;cursor:pointer;color:inherit;opacity:.6;
|
|
638
|
+
flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:var(--v-radius-sm);font-size:14px}
|
|
639
|
+
.v-alert-close:hover{opacity:1}
|
|
640
|
+
.v-alert-close:focus-visible{outline:2px solid currentColor;outline-offset:1px}
|
|
641
|
+
.v-alert[data-tone="info"]{background:var(--v-info-soft);color:var(--v-info-soft-text);border-color:var(--v-info-border)}
|
|
642
|
+
.v-alert[data-tone="primary"]{background:var(--v-primary-soft);color:var(--v-primary-soft-text);border-color:var(--v-primary-border)}
|
|
643
|
+
.v-alert[data-tone="success"]{background:var(--v-success-soft);color:var(--v-success-soft-text);border-color:var(--v-success-border)}
|
|
644
|
+
.v-alert[data-tone="warning"]{background:var(--v-warning-soft);color:var(--v-warning-soft-text);border-color:var(--v-warning-border)}
|
|
645
|
+
.v-alert[data-tone="danger"]{background:var(--v-danger-soft);color:var(--v-danger-soft-text);border-color:var(--v-danger-border)}
|
|
646
|
+
.v-alert[data-tone="neutral"]{background:var(--v-surface-2);color:var(--v-text);border-color:var(--v-border)}
|
|
647
|
+
|
|
648
|
+
/* -------------------------------------------------------------- avatar */
|
|
649
|
+
.v-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;
|
|
650
|
+
font-family:var(--v-font-sans);font-weight:650;overflow:hidden;flex:none;
|
|
651
|
+
border-radius:var(--v-radius-full);background:var(--v-primary-soft);color:var(--v-primary-soft-text);
|
|
652
|
+
user-select:none;vertical-align:middle}
|
|
653
|
+
.v-avatar[data-shape="square"]{border-radius:var(--v-radius-sm);overflow:visible}
|
|
654
|
+
.v-avatar[data-shape="square"] .v-avatar-img{border-radius:var(--v-radius-sm)}
|
|
655
|
+
.v-avatar[data-size="xs"]{width:24px;height:24px;font-size:10px}
|
|
656
|
+
.v-avatar[data-size="sm"]{width:32px;height:32px;font-size:12px}
|
|
657
|
+
.v-avatar[data-size="md"]{width:40px;height:40px;font-size:14px}
|
|
658
|
+
.v-avatar[data-size="lg"]{width:52px;height:52px;font-size:18px}
|
|
659
|
+
.v-avatar[data-size="xl"]{width:68px;height:68px;font-size:23px}
|
|
660
|
+
.v-avatar-img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
|
|
661
|
+
.v-avatar-status{position:absolute;right:0;bottom:0;width:28%;height:28%;border-radius:var(--v-radius-full);
|
|
662
|
+
border:2px solid var(--v-surface);background:var(--v-text-soft)}
|
|
663
|
+
.v-avatar-status[data-status="online"]{background:var(--v-success)}
|
|
664
|
+
.v-avatar-status[data-status="busy"]{background:var(--v-danger)}
|
|
665
|
+
.v-avatar-status[data-status="away"]{background:var(--v-warning)}
|
|
666
|
+
|
|
667
|
+
/* ------------------------------------------------- spinner e esqueleto */
|
|
668
|
+
.v-spinner{display:inline-block;border-radius:50%;border-style:solid;border-color:var(--v-border);
|
|
669
|
+
border-top-color:var(--v-primary);animation:v-spin .7s linear infinite;vertical-align:middle}
|
|
670
|
+
.v-spinner[data-tone="accent"]{border-top-color:var(--v-accent)}
|
|
671
|
+
.v-spinner[data-tone="success"]{border-top-color:var(--v-success)}
|
|
672
|
+
.v-spinner[data-tone="danger"]{border-top-color:var(--v-danger)}
|
|
673
|
+
.v-spinner[data-tone="current"]{border-color:currentColor;border-top-color:transparent;opacity:.65}
|
|
674
|
+
.v-spinner[data-size="sm"]{width:16px;height:16px;border-width:2px}
|
|
675
|
+
.v-spinner[data-size="md"]{width:22px;height:22px;border-width:2.5px}
|
|
676
|
+
.v-spinner[data-size="lg"]{width:32px;height:32px;border-width:3px}
|
|
677
|
+
|
|
678
|
+
.v-skeleton{display:block;background:var(--v-surface-3);border-radius:var(--v-radius-sm);
|
|
679
|
+
background-image:linear-gradient(90deg,transparent 0%,var(--v-surface-2) 50%,transparent 100%);
|
|
680
|
+
background-size:180% 100%;animation:v-shimmer 1.5s linear infinite}
|
|
681
|
+
.v-skeleton[data-circle="true"]{border-radius:var(--v-radius-full)}
|
|
682
|
+
.v-skeleton-stack{display:flex;flex-direction:column;gap:8px}
|
|
683
|
+
|
|
684
|
+
/* ------------------------------------------------------------- progresso */
|
|
685
|
+
.v-progress{font-family:var(--v-font-sans);display:flex;flex-direction:column;gap:6px}
|
|
686
|
+
.v-progress-head{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:var(--v-text-muted)}
|
|
687
|
+
.v-progress-value{font-weight:650;color:var(--v-text)}
|
|
688
|
+
.v-progress-track{position:relative;width:100%;background:var(--v-surface-3);border-radius:var(--v-radius-full);
|
|
689
|
+
overflow:hidden}
|
|
690
|
+
.v-progress[data-size="sm"] .v-progress-track{height:5px}
|
|
691
|
+
.v-progress[data-size="md"] .v-progress-track{height:9px}
|
|
692
|
+
.v-progress[data-size="lg"] .v-progress-track{height:14px}
|
|
693
|
+
.v-progress-bar{height:100%;border-radius:inherit;background:var(--v-primary);
|
|
694
|
+
transition:width .35s var(--v-ease)}
|
|
695
|
+
.v-progress[data-tone="accent"] .v-progress-bar{background:var(--v-accent)}
|
|
696
|
+
.v-progress[data-tone="success"] .v-progress-bar{background:var(--v-success)}
|
|
697
|
+
.v-progress[data-tone="warning"] .v-progress-bar{background:var(--v-warning)}
|
|
698
|
+
.v-progress[data-tone="danger"] .v-progress-bar{background:var(--v-danger)}
|
|
699
|
+
.v-progress[data-indeterminate="true"] .v-progress-bar{width:30% !important;animation:v-indeterminate 1.3s var(--v-ease) infinite}
|
|
700
|
+
|
|
701
|
+
/* ------------------------------------------------------------- divisor */
|
|
702
|
+
.v-divider{display:flex;align-items:center;gap:12px;color:var(--v-text-soft);
|
|
703
|
+
font-family:var(--v-font-sans);font-size:12.5px;font-weight:600;margin:16px 0}
|
|
704
|
+
.v-divider::before,.v-divider::after{content:"";flex:1;height:1px;background:var(--v-border)}
|
|
705
|
+
.v-divider[data-label="false"]::after{display:none}
|
|
706
|
+
.v-divider[data-vertical="true"]{flex-direction:column;margin:0 16px;align-self:stretch;height:auto}
|
|
707
|
+
.v-divider[data-vertical="true"]::before,.v-divider[data-vertical="true"]::after{width:1px;height:auto;flex:1}
|
|
708
|
+
|
|
709
|
+
/* -------------------------------------------------------------- tabela */
|
|
710
|
+
.v-table-wrap{width:100%;overflow-x:auto;background:var(--v-surface);border:1px solid var(--v-border);
|
|
711
|
+
border-radius:var(--v-radius);font-family:var(--v-font-sans)}
|
|
712
|
+
.v-table{width:100%;border-collapse:collapse;font-size:14px;color:var(--v-text)}
|
|
713
|
+
.v-table th,.v-table td{padding:11px 14px;text-align:left;border-bottom:1px solid var(--v-border);
|
|
714
|
+
vertical-align:middle}
|
|
715
|
+
.v-table thead th{background:var(--v-surface-2);font-size:12.5px;font-weight:650;letter-spacing:.02em;
|
|
716
|
+
text-transform:uppercase;color:var(--v-text-muted);white-space:nowrap;position:sticky;top:0;z-index:1}
|
|
717
|
+
.v-table tbody tr:last-child td{border-bottom:0}
|
|
718
|
+
.v-table[data-striped="true"] tbody tr:nth-child(even){background:var(--v-surface-2)}
|
|
719
|
+
.v-table[data-hover="true"] tbody tr:hover{background:var(--v-primary-soft)}
|
|
720
|
+
.v-table[data-dense="true"] th,.v-table[data-dense="true"] td{padding:7px 12px}
|
|
721
|
+
.v-th{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:0;margin:0;
|
|
722
|
+
font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit}
|
|
723
|
+
.v-th[data-sortable="true"]{cursor:pointer}
|
|
724
|
+
.v-th[data-sortable="true"]:hover{color:var(--v-text)}
|
|
725
|
+
.v-th:focus-visible{outline:2px solid var(--v-focus-ring);outline-offset:2px;border-radius:4px}
|
|
726
|
+
.v-th-arrow{font-size:12px;opacity:0;transition:opacity .15s var(--v-ease)}
|
|
727
|
+
.v-th[aria-sort="ascending"] .v-th-arrow,.v-th[aria-sort="descending"] .v-th-arrow{opacity:1;color:var(--v-primary)}
|
|
728
|
+
.v-table-empty{text-align:center;color:var(--v-text-muted);padding:34px 14px;font-size:14px}
|
|
729
|
+
|
|
730
|
+
/* ---------------------------------------------------------- paginacao */
|
|
731
|
+
.v-pagination{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-family:var(--v-font-sans)}
|
|
732
|
+
.v-page{appearance:none;min-width:34px;height:34px;padding:0 9px;display:inline-grid;place-items:center;
|
|
733
|
+
background:transparent;border:1px solid transparent;border-radius:var(--v-radius-sm);
|
|
734
|
+
font-family:inherit;font-size:13.5px;font-weight:600;color:var(--v-text-muted);cursor:pointer;
|
|
735
|
+
transition:background-color .14s var(--v-ease),color .14s var(--v-ease),border-color .14s var(--v-ease)}
|
|
736
|
+
.v-page:hover:not([disabled]):not([aria-current="page"]){background:var(--v-surface-3);color:var(--v-text)}
|
|
737
|
+
.v-page:focus-visible{outline:2px solid var(--v-focus-ring);outline-offset:2px}
|
|
738
|
+
.v-page[disabled]{opacity:.4;cursor:not-allowed}
|
|
739
|
+
.v-page[aria-current="page"]{background:var(--v-primary);border-color:var(--v-primary);color:var(--v-primary-contrast)}
|
|
740
|
+
.v-page-gap{min-width:24px;text-align:center;color:var(--v-text-soft);user-select:none}
|
|
741
|
+
|
|
742
|
+
/* ----------------------------------------------------------- migalhas */
|
|
743
|
+
.v-breadcrumb{font-family:var(--v-font-sans);font-size:13.5px}
|
|
744
|
+
.v-breadcrumb-list{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;padding:0}
|
|
745
|
+
.v-breadcrumb-item{display:inline-flex;align-items:center;gap:6px;color:var(--v-text-muted)}
|
|
746
|
+
.v-breadcrumb-item a{color:inherit;text-decoration:none;border-radius:4px}
|
|
747
|
+
.v-breadcrumb-item a:hover{color:var(--v-primary);text-decoration:underline}
|
|
748
|
+
.v-breadcrumb-item a:focus-visible{outline:2px solid var(--v-focus-ring);outline-offset:2px}
|
|
749
|
+
.v-breadcrumb-item[aria-current="page"]{color:var(--v-text);font-weight:600}
|
|
750
|
+
.v-breadcrumb-sep{color:var(--v-text-soft);user-select:none}
|
|
751
|
+
|
|
752
|
+
/* ------------------------------------------------------------ metrica */
|
|
753
|
+
.v-stat{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;background:var(--v-surface);
|
|
754
|
+
border:1px solid var(--v-border);border-radius:var(--v-radius);font-family:var(--v-font-sans)}
|
|
755
|
+
.v-stat-icon{flex:none;width:40px;height:40px;display:grid;place-items:center;font-size:19px;
|
|
756
|
+
border-radius:var(--v-radius-sm);background:var(--v-primary-soft);color:var(--v-primary-soft-text)}
|
|
757
|
+
.v-stat-body{flex:1;min-width:0}
|
|
758
|
+
.v-stat-label{font-size:12.5px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;
|
|
759
|
+
color:var(--v-text-muted)}
|
|
760
|
+
.v-stat-value{margin-top:4px;font-size:26px;font-weight:700;line-height:1.15;color:var(--v-text);
|
|
761
|
+
overflow-wrap:anywhere}
|
|
762
|
+
.v-stat-row{display:flex;align-items:center;gap:8px;margin-top:6px;flex-wrap:wrap}
|
|
763
|
+
.v-stat-delta{display:inline-flex;align-items:center;gap:3px;font-size:12.5px;font-weight:700;
|
|
764
|
+
padding:2px 7px;border-radius:var(--v-radius-full)}
|
|
765
|
+
.v-stat-delta[data-dir="up"]{background:var(--v-success-soft);color:var(--v-success-soft-text)}
|
|
766
|
+
.v-stat-delta[data-dir="down"]{background:var(--v-danger-soft);color:var(--v-danger-soft-text)}
|
|
767
|
+
.v-stat-delta[data-dir="flat"]{background:var(--v-surface-3);color:var(--v-text-muted)}
|
|
768
|
+
.v-stat-hint{font-size:12.5px;color:var(--v-text-muted)}
|
|
769
|
+
|
|
770
|
+
/* ------------------------------------------------------- estado vazio */
|
|
771
|
+
.v-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;
|
|
772
|
+
padding:44px 22px;font-family:var(--v-font-sans);color:var(--v-text)}
|
|
773
|
+
.v-empty-icon{width:58px;height:58px;display:grid;place-items:center;font-size:27px;
|
|
774
|
+
border-radius:var(--v-radius-full);background:var(--v-surface-3);color:var(--v-text-soft)}
|
|
775
|
+
.v-empty-title{margin:0;font-size:16px;font-weight:650}
|
|
776
|
+
.v-empty-desc{margin:0;font-size:14px;line-height:1.55;color:var(--v-text-muted);max-width:46ch}
|
|
777
|
+
.v-empty-actions{margin-top:6px;display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
|
|
778
|
+
.v-empty-actions:empty{display:none}
|
|
779
|
+
|
|
780
|
+
/* ----------------------------------------------------------- linha do tempo */
|
|
781
|
+
.v-timeline{list-style:none;margin:0;padding:0;font-family:var(--v-font-sans);
|
|
782
|
+
display:flex;flex-direction:column}
|
|
783
|
+
.v-timeline-item{position:relative;display:flex;gap:14px;padding-bottom:20px}
|
|
784
|
+
.v-timeline-item:last-child{padding-bottom:0}
|
|
785
|
+
.v-timeline-rail{position:relative;flex:none;width:14px;display:flex;justify-content:center}
|
|
786
|
+
.v-timeline-dot{position:relative;z-index:1;width:12px;height:12px;margin-top:4px;
|
|
787
|
+
border-radius:var(--v-radius-full);background:var(--v-primary);
|
|
788
|
+
box-shadow:0 0 0 3px var(--v-primary-soft)}
|
|
789
|
+
.v-timeline-item[data-tone="success"] .v-timeline-dot{background:var(--v-success);box-shadow:0 0 0 3px var(--v-success-soft)}
|
|
790
|
+
.v-timeline-item[data-tone="warning"] .v-timeline-dot{background:var(--v-warning);box-shadow:0 0 0 3px var(--v-warning-soft)}
|
|
791
|
+
.v-timeline-item[data-tone="danger"] .v-timeline-dot{background:var(--v-danger);box-shadow:0 0 0 3px var(--v-danger-soft)}
|
|
792
|
+
.v-timeline-item[data-tone="muted"] .v-timeline-dot{background:var(--v-border-strong);box-shadow:0 0 0 3px var(--v-surface-3)}
|
|
793
|
+
.v-timeline-item:not(:last-child) .v-timeline-rail::after{content:"";position:absolute;top:14px;bottom:-20px;
|
|
794
|
+
width:2px;background:var(--v-border)}
|
|
795
|
+
.v-timeline-body{flex:1;min-width:0;padding-bottom:2px}
|
|
796
|
+
.v-timeline-title{font-size:14px;font-weight:650;color:var(--v-text)}
|
|
797
|
+
.v-timeline-desc{margin:3px 0 0;font-size:13.5px;line-height:1.55;color:var(--v-text-muted)}
|
|
798
|
+
.v-timeline-time{display:block;margin-top:3px;font-size:12px;color:var(--v-text-soft)}
|
|
799
|
+
|
|
800
|
+
/* ---------------------------------------------------------------- passos */
|
|
801
|
+
.v-steps{display:flex;gap:0;font-family:var(--v-font-sans);list-style:none;margin:0;padding:0}
|
|
802
|
+
.v-steps[data-vertical="true"]{flex-direction:column;gap:4px}
|
|
803
|
+
.v-step{flex:1;display:flex;align-items:flex-start;gap:10px;min-width:0;position:relative;padding-right:12px}
|
|
804
|
+
.v-steps[data-vertical="true"] .v-step{padding:0 0 20px}
|
|
805
|
+
.v-step-mark{flex:none;width:28px;height:28px;display:grid;place-items:center;border-radius:var(--v-radius-full);
|
|
806
|
+
font-size:13px;font-weight:700;background:var(--v-surface-3);color:var(--v-text-muted);
|
|
807
|
+
border:1.5px solid transparent}
|
|
808
|
+
.v-step[data-state="current"] .v-step-mark{background:var(--v-primary);color:var(--v-primary-contrast)}
|
|
809
|
+
.v-step[data-state="done"] .v-step-mark{background:var(--v-success-soft);color:var(--v-success-soft-text);
|
|
810
|
+
border-color:var(--v-success-border)}
|
|
811
|
+
.v-step-text{min-width:0;padding-top:4px}
|
|
812
|
+
.v-step-label{font-size:13.5px;font-weight:650;color:var(--v-text-muted);line-height:1.35}
|
|
813
|
+
.v-step[data-state="current"] .v-step-label,.v-step[data-state="done"] .v-step-label{color:var(--v-text)}
|
|
814
|
+
.v-step-line{position:absolute;left:28px;right:0;top:14px;height:2px;background:var(--v-border)}
|
|
815
|
+
.v-step[data-state="done"] .v-step-line{background:var(--v-success)}
|
|
816
|
+
.v-steps[data-vertical="true"] .v-step-line{left:13px;right:auto;top:30px;bottom:2px;width:2px;height:auto}
|
|
817
|
+
.v-step:last-child .v-step-line{display:none}
|
|
818
|
+
|
|
819
|
+
/* ------------------------------------------------------------ avaliacao */
|
|
820
|
+
.v-rating{display:inline-flex;align-items:center;gap:6px;font-family:var(--v-font-sans)}
|
|
821
|
+
.v-rating-stars{display:inline-flex;gap:2px}
|
|
822
|
+
.v-star{appearance:none;background:none;border:0;padding:2px;cursor:pointer;line-height:0;
|
|
823
|
+
color:var(--v-border-strong);transition:color .13s var(--v-ease),transform .13s var(--v-ease)}
|
|
824
|
+
.v-star:hover:not([disabled]){transform:scale(1.12)}
|
|
825
|
+
.v-star:focus-visible{outline:2px solid var(--v-focus-ring);outline-offset:2px;border-radius:4px}
|
|
826
|
+
.v-star[data-on="true"]{color:var(--v-warning)}
|
|
827
|
+
.v-star[data-on="true"] .v-ic{fill:currentColor}
|
|
828
|
+
.v-star[disabled]{cursor:default}
|
|
829
|
+
.v-rating[data-size="sm"] .v-ic{font-size:15px}
|
|
830
|
+
.v-rating[data-size="md"] .v-ic{font-size:20px}
|
|
831
|
+
.v-rating[data-size="lg"] .v-ic{font-size:26px}
|
|
832
|
+
.v-rating-value{font-size:13px;font-weight:650;color:var(--v-text-muted)}
|
|
833
|
+
|
|
834
|
+
/* --------------------------------------------------------------- tooltip */
|
|
835
|
+
.v-tipwrap{position:relative;display:inline-flex}
|
|
836
|
+
.v-tip{position:absolute;z-index:var(--v-z-tooltip,1200);padding:6px 10px;border-radius:var(--v-radius-sm);
|
|
837
|
+
background:var(--v-text);color:var(--v-surface);font-family:var(--v-font-sans);font-size:12.5px;
|
|
838
|
+
font-weight:600;line-height:1.35;white-space:nowrap;pointer-events:none;opacity:0;
|
|
839
|
+
transform:translateY(4px);transition:opacity .14s var(--v-ease),transform .14s var(--v-ease)}
|
|
840
|
+
.v-tip[data-placement="top"]{bottom:calc(100% + 8px);left:50%;translate:-50% 0}
|
|
841
|
+
.v-tip[data-placement="bottom"]{top:calc(100% + 8px);left:50%;translate:-50% 0}
|
|
842
|
+
.v-tip[data-placement="left"]{right:calc(100% + 8px);top:50%;translate:0 -50%}
|
|
843
|
+
.v-tip[data-placement="right"]{left:calc(100% + 8px);top:50%;translate:0 -50%}
|
|
844
|
+
.v-tipwrap:hover .v-tip,.v-tipwrap:focus-within .v-tip{opacity:1;transform:none}
|
|
845
|
+
|
|
846
|
+
/* ------------------------------------------------------------ codigo */
|
|
847
|
+
.v-code{position:relative;background:var(--v-surface-inset);border:1px solid var(--v-border);
|
|
848
|
+
border-radius:var(--v-radius);overflow:hidden;font-family:var(--v-font-mono)}
|
|
849
|
+
.v-code-head{display:flex;align-items:center;justify-content:space-between;gap:10px;
|
|
850
|
+
padding:8px 10px 8px 14px;background:var(--v-surface-2);border-bottom:1px solid var(--v-border);
|
|
851
|
+
font-family:var(--v-font-sans);font-size:12.5px;color:var(--v-text-muted)}
|
|
852
|
+
.v-code-name{font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
853
|
+
.v-code-copy{appearance:none;display:inline-flex;align-items:center;gap:6px;background:transparent;
|
|
854
|
+
border:1px solid var(--v-border);border-radius:var(--v-radius-sm);padding:4px 9px;cursor:pointer;
|
|
855
|
+
font-family:inherit;font-size:12px;font-weight:650;color:var(--v-text-muted);flex:none;
|
|
856
|
+
transition:background-color .14s var(--v-ease),color .14s var(--v-ease),border-color .14s var(--v-ease)}
|
|
857
|
+
.v-code-copy:hover{background:var(--v-surface-3);color:var(--v-text);border-color:var(--v-border-strong)}
|
|
858
|
+
.v-code-copy:focus-visible{outline:2px solid var(--v-focus-ring);outline-offset:2px}
|
|
859
|
+
.v-code-copy[data-copied="true"]{color:var(--v-success-soft-text);border-color:var(--v-success-border);
|
|
860
|
+
background:var(--v-success-soft)}
|
|
861
|
+
.v-code-pre{margin:0;padding:14px;overflow-x:auto;font-size:13px;line-height:1.65;
|
|
862
|
+
color:var(--v-text);tab-size:2}
|
|
863
|
+
.v-code[data-wrap="true"] .v-code-pre{white-space:pre-wrap;overflow-wrap:anywhere}
|
|
864
|
+
.v-code-pre code{font-family:inherit;background:none;padding:0}
|
|
865
|
+
|
|
866
|
+
@media (max-width:600px){
|
|
867
|
+
.v-steps{flex-direction:column;gap:4px}
|
|
868
|
+
.v-steps .v-step{padding:0 0 20px}
|
|
869
|
+
.v-steps .v-step-line{left:13px;right:auto;top:30px;bottom:2px;width:2px;height:auto}
|
|
870
|
+
.v-stat-value{font-size:22px}
|
|
871
|
+
}
|
|
872
|
+
@media (prefers-reduced-motion: reduce){
|
|
873
|
+
.v-btn,.v-icon-btn,.v-card,.v-control,.v-select-trigger,.v-select-arrow,.v-check-box,
|
|
874
|
+
.v-check-box .v-ic,.v-radio-dot,.v-switch-track,.v-switch-thumb,.v-progress-bar,.v-star,
|
|
875
|
+
.v-tip,.v-page,.v-code-copy{transition:none}
|
|
876
|
+
.v-skeleton,.v-spinner,.v-btn-spin{animation-duration:1.6s}
|
|
877
|
+
.v-progress[data-indeterminate="true"] .v-progress-bar{animation-duration:2.4s}
|
|
878
|
+
}
|
|
879
|
+
`,ip=!1;function ty(){ip||(ip=!0,he(),vo(),ne("components",ey))}function re(e,t){var r;let n=t.beforeMount;t.methods={svgIcon:o=>Zb(o),hasFlag:o=>ee(o),...(r=t.methods)!=null?r:{}},t.beforeMount=function(){ty(),n==null||n.call(this)},Ft(e,t)}re("v-button",{props:{variant:{type:"string",default:"primary"},size:{type:"string",default:"md"},icon:L,iconRight:L,type:{type:"string",default:"button"},loading:N,disabled:N,block:N,rounded:N,ariaLabel:L},computed:{...ge("loading","disabled","block","rounded"),blocked(){return ee(this.disabled)||ee(this.loading)}},template:`
|
|
880
|
+
<button class="v-btn" :type="type" :data-variant="variant" :data-size="size"
|
|
881
|
+
:data-block="isBlock" :data-rounded="isRounded" :disabled="blocked"
|
|
882
|
+
:aria-busy="isLoading" :aria-label="ariaLabel || null">
|
|
883
|
+
<span class="v-btn-spin" v-if="isLoading" aria-hidden="true"></span>
|
|
884
|
+
<span class="v-btn-ic" v-if="icon && !isLoading" v-html="svgIcon(icon)"></span>
|
|
885
|
+
<span class="v-btn-label"><slot></slot></span>
|
|
886
|
+
<span class="v-btn-ic" v-if="iconRight" v-html="svgIcon(iconRight)"></span>
|
|
887
|
+
</button>
|
|
888
|
+
`});re("v-icon-button",{props:{icon:{type:"string",default:"more"},label:L,variant:{type:"string",default:"ghost"},size:{type:"string",default:"md"},type:{type:"string",default:"button"},disabled:N,loading:N,rounded:N},computed:{...ge("disabled","loading","rounded"),blocked(){return ee(this.disabled)||ee(this.loading)},accessibleName(){return this.label||this.icon||"Action"}},template:`
|
|
889
|
+
<button class="v-icon-btn" :type="type" :data-variant="variant" :data-size="size"
|
|
890
|
+
:data-rounded="isRounded" :disabled="blocked" :aria-label="accessibleName" :title="label || null">
|
|
891
|
+
<span class="v-btn-spin" v-if="isLoading" aria-hidden="true"></span>
|
|
892
|
+
<span v-if="!isLoading" v-html="svgIcon(icon)"></span>
|
|
893
|
+
</button>
|
|
894
|
+
`});re("v-card",{props:{title:L,subtitle:L,icon:L,padded:{type:"any",default:!0},hoverable:N},computed:{...ge("hoverable"),isPadded(){return this.padded===!0||ee(this.padded)}},template:`
|
|
895
|
+
<div class="v-card" :data-hoverable="isHoverable" :data-padded="isPadded">
|
|
896
|
+
<div class="v-card-head" v-if="title || subtitle || icon">
|
|
897
|
+
<span class="v-card-icon" v-if="icon" v-html="svgIcon(icon)" aria-hidden="true"></span>
|
|
898
|
+
<div class="v-card-heading">
|
|
899
|
+
<h3 class="v-card-title" v-if="title" v-text="title"></h3>
|
|
900
|
+
<p class="v-card-sub" v-if="subtitle" v-text="subtitle"></p>
|
|
901
|
+
</div>
|
|
902
|
+
<div class="v-card-actions"><slot name="actions"></slot></div>
|
|
903
|
+
</div>
|
|
904
|
+
<div class="v-card-body"><slot></slot></div>
|
|
905
|
+
<div class="v-card-foot"><slot name="footer"></slot></div>
|
|
906
|
+
</div>
|
|
907
|
+
`});re("v-label",{props:{for:L,size:{type:"string",default:"md"},required:N},computed:{...ge("required")},template:`
|
|
908
|
+
<label class="v-label" :data-size="size" :for="for || null">
|
|
909
|
+
<span><slot></slot></span>
|
|
910
|
+
<span class="v-req" v-if="isRequired" aria-hidden="true">*</span>
|
|
911
|
+
</label>
|
|
912
|
+
`});re("v-field",{props:{label:L,hint:L,error:L,for:L,required:N,disabled:N},computed:{...ge("required","disabled")},template:`
|
|
913
|
+
<div class="v-field" :data-error="!!error" :data-disabled="isDisabled">
|
|
914
|
+
<label class="v-label" v-if="label" :for="for || null">
|
|
915
|
+
<span v-text="label"></span>
|
|
916
|
+
<span class="v-req" v-if="isRequired" aria-hidden="true">*</span>
|
|
917
|
+
</label>
|
|
918
|
+
<div class="v-field-control"><slot></slot></div>
|
|
919
|
+
<p class="v-hint" v-if="hint && !error" v-text="hint"></p>
|
|
920
|
+
<p class="v-error-text" v-if="error" role="alert" v-text="error"></p>
|
|
921
|
+
</div>
|
|
922
|
+
`});re("v-input",{props:{label:L,type:{type:"string",default:"text"},placeholder:L,hint:L,error:L,value:L,name:L,id:L,icon:L,suffix:L,size:{type:"string",default:"md"},autocomplete:L,inputmode:L,maxlength:L,min:L,max:L,step:L,required:N,disabled:N,readonly:N,clearable:N},state(e){return{fieldId:e.id||ae("v-input-")}},computed:{...ge("required","disabled","readonly","clearable"),hintId(){return`${this.fieldId}-hint`},errorId(){return`${this.fieldId}-error`},describedBy(){return this.error?this.errorId:this.hint?this.hintId:null}},methods:{clear(){this.value="",ho(this.$el),this.emit("clear")}},beforeMount(){Xt(this,{get:()=>this.value,set:e=>{this.value=e==null?"":String(e)}})},template:`
|
|
923
|
+
<div class="v-field" :data-error="!!error" :data-disabled="isDisabled">
|
|
924
|
+
<label class="v-label" v-if="label" :for="fieldId">
|
|
925
|
+
<span v-text="label"></span>
|
|
926
|
+
<span class="v-req" v-if="isRequired" aria-hidden="true">*</span>
|
|
927
|
+
</label>
|
|
928
|
+
<div class="v-control" :data-size="size">
|
|
929
|
+
<span class="v-control-ic" v-if="icon" v-html="svgIcon(icon)" aria-hidden="true"></span>
|
|
930
|
+
<input class="v-input" :id="fieldId" :type="type" :name="name || null"
|
|
931
|
+
:placeholder="placeholder || null" :autocomplete="autocomplete || null"
|
|
932
|
+
:inputmode="inputmode || null" :maxlength="maxlength || null"
|
|
933
|
+
:min="min || null" :max="max || null" :step="step || null"
|
|
934
|
+
:required="isRequired" :disabled="isDisabled" :readonly="isReadonly"
|
|
935
|
+
:aria-invalid="!!error" :aria-describedby="describedBy" v-model="value">
|
|
936
|
+
<button type="button" class="v-clear" v-if="isClearable && value && !isDisabled"
|
|
937
|
+
v-click="clear" aria-label="Clear field" v-html="svgIcon('x')"></button>
|
|
938
|
+
<span class="v-affix" v-if="suffix" v-text="suffix"></span>
|
|
939
|
+
</div>
|
|
940
|
+
<p class="v-hint" :id="hintId" v-if="hint && !error" v-text="hint"></p>
|
|
941
|
+
<p class="v-error-text" :id="errorId" v-if="error" role="alert" v-text="error"></p>
|
|
942
|
+
</div>
|
|
943
|
+
`});re("v-textarea",{props:{label:L,placeholder:L,hint:L,error:L,value:L,name:L,id:L,rows:{type:"number",default:4},maxlength:L,size:{type:"string",default:"md"},resize:{type:"string",default:"vertical"},required:N,disabled:N,readonly:N,counter:N},state(e){return{fieldId:e.id||ae("v-textarea-")}},computed:{...ge("required","disabled","readonly","counter"),hintId(){return`${this.fieldId}-hint`},errorId(){return`${this.fieldId}-error`},describedBy(){return this.error?this.errorId:this.hint?this.hintId:null},counterText(){var t;let e=String((t=this.value)!=null?t:"").length;return this.maxlength?`${e}/${this.maxlength}`:String(e)}},beforeMount(){Xt(this,{get:()=>this.value,set:e=>{this.value=e==null?"":String(e)}})},template:`
|
|
944
|
+
<div class="v-field" :data-error="!!error" :data-disabled="isDisabled">
|
|
945
|
+
<label class="v-label" v-if="label" :for="fieldId">
|
|
946
|
+
<span v-text="label"></span>
|
|
947
|
+
<span class="v-req" v-if="isRequired" aria-hidden="true">*</span>
|
|
948
|
+
</label>
|
|
949
|
+
<div class="v-control" :data-size="size">
|
|
950
|
+
<textarea class="v-textarea" :id="fieldId" :name="name || null" :rows="rows"
|
|
951
|
+
:placeholder="placeholder || null" :maxlength="maxlength || null"
|
|
952
|
+
:data-resize="resize" :required="isRequired" :disabled="isDisabled" :readonly="isReadonly"
|
|
953
|
+
:aria-invalid="!!error" :aria-describedby="describedBy" v-model="value"></textarea>
|
|
954
|
+
</div>
|
|
955
|
+
<p class="v-counter" v-if="isCounter" v-text="counterText"></p>
|
|
956
|
+
<p class="v-hint" :id="hintId" v-if="hint && !error" v-text="hint"></p>
|
|
957
|
+
<p class="v-error-text" :id="errorId" v-if="error" role="alert" v-text="error"></p>
|
|
958
|
+
</div>
|
|
959
|
+
`});function ny(e){return e?(Array.isArray(e)?e:typeof e=="string"?go(e):[]).map(n=>{var r,o,i,s,a,l,c,d;if(n!=null&&typeof n=="object"){let u=n,p=(s=(i=(o=(r=u.value)!=null?r:u.id)!=null?o:u.key)!=null?i:u.label)!=null?s:"",f=(d=(c=(l=(a=u.label)!=null?a:u.text)!=null?l:u.name)!=null?c:u.title)!=null?d:p;return{value:String(p),label:String(f),disabled:ee(u.disabled)}}return{value:String(n),label:String(n),disabled:!1}}):[]}re("v-select",{inheritScope:!0,props:{label:L,placeholder:{type:"string",default:"Select"},searchPlaceholder:{type:"string",default:"Search..."},emptyText:{type:"string",default:"No options found"},options:{type:"any",default:""},value:{type:"any",default:""},hint:L,error:L,name:L,id:L,size:{type:"string",default:"md"},multiple:N,searchable:N,clearable:N,disabled:N,required:N},state(e){let t=e.id||ae("v-select-"),n=e.value;return{open:!1,query:"",activeIndex:-1,selected:Array.isArray(n)||n==null?"":String(n),selectedList:Array.isArray(n)?n.map(String):[],fieldId:t}},computed:{...ge("multiple","searchable","clearable","disabled","required"),listId(){return`${this.fieldId}-list`},labelId(){return`${this.fieldId}-label`},hintId(){return`${this.fieldId}-hint`},errorId(){return`${this.fieldId}-error`},describedBy(){return this.error?this.errorId:this.hint?this.hintId:null},allOptions(){var e;return ny((e=vr(this,this.options))!=null?e:this.options)},filtered(){var t;let e=String((t=this.query)!=null?t:"").trim().toLowerCase();return e?this.allOptions.filter(n=>n.label.toLowerCase().includes(e)):this.allOptions},currentValue(){return ee(this.multiple)?this.selectedList:this.selected},hasSelection(){return ee(this.multiple)?this.selectedList.length>0:this.selected!==""},display(){if(!this.hasSelection)return this.placeholder;let e=t=>{let n=this.allOptions.find(r=>r.value===String(t));return n?n.label:String(t)};return ee(this.multiple)?this.selectedList.map(e).join(", "):e(this.selected)},activeId(){return!this.open||this.activeIndex<0||this.activeIndex>=this.filtered.length?null:`${this.listId}-opt-${this.activeIndex}`}},methods:{optionId(e){return`${this.listId}-opt-${e}`},isSelected(e){return ee(this.multiple)?this.selectedList.indexOf(String(e))>-1:this.selected===String(e)},openList(){if(ee(this.disabled)||this.open)return;this.open=!0,this.query="";let e=this.filtered.findIndex(t=>this.isSelected(t.value));this.activeIndex=e>-1?e:0,at(()=>{let t=this.$refs.search;t&&t.focus()})},closeList(){this.open&&(this.open=!1,this.activeIndex=-1)},closeAndFocus(){let e=this.open;this.closeList(),e&&at(()=>{let t=this.$refs.trigger;t&&t.focus()})},toggleList(){this.open?this.closeAndFocus():this.openList()},choose(e){if(!(!e||e.disabled)){if(ee(this.multiple)){let t=[...this.selectedList],n=t.indexOf(e.value);n>-1?t.splice(n,1):t.push(e.value),this.selectedList=t}else this.selected=e.value,this.closeAndFocus();ho(this.$el),this.emit("change",this.currentValue)}},clear(){this.selected="",this.selectedList=[],ho(this.$el),this.emit("change",this.currentValue)},move(e){let t=this.filtered;if(!t.length)return;let n=this.activeIndex+e;n<0&&(n=t.length-1),n>=t.length&&(n=0),this.activeIndex=n},onKey(e){let t=e.key;if(t==="Escape"){e.preventDefault(),this.closeAndFocus();return}if(t==="ArrowDown"||t==="ArrowUp"){e.preventDefault(),this.open?this.move(t==="ArrowDown"?1:-1):this.openList();return}if(t==="Home"||t==="End"){if(!this.open)return;e.preventDefault(),this.activeIndex=t==="Home"?0:this.filtered.length-1;return}if(t==="Enter"){e.preventDefault(),this.open?this.choose(this.filtered[this.activeIndex]):this.openList();return}if(t===" "&&!ee(this.searchable)){e.preventDefault(),this.toggleList();return}t==="Tab"&&this.open&&this.closeList()}},beforeMount(){Xt(this,{get:()=>this.currentValue,set:e=>{if(ee(this.multiple)){this.selectedList=Array.isArray(e)?e.map(String):go(String(e!=null?e:""));return}this.selected=e==null?"":String(e)}})},template:`
|
|
960
|
+
<div class="v-field" :data-error="!!error" :data-disabled="isDisabled">
|
|
961
|
+
<label class="v-label" :id="labelId" v-if="label" v-click="openList">
|
|
962
|
+
<span v-text="label"></span>
|
|
963
|
+
<span class="v-req" v-if="isRequired" aria-hidden="true">*</span>
|
|
964
|
+
</label>
|
|
965
|
+
<div class="v-select" :class="{ 'is-open': open }" v-on:click.outside="closeList">
|
|
966
|
+
<button type="button" class="v-select-trigger" :data-size="size" v-ref="trigger"
|
|
967
|
+
:id="fieldId" :role="isSearchable ? 'button' : 'combobox'"
|
|
968
|
+
aria-haspopup="listbox" :aria-expanded="open" :aria-controls="listId"
|
|
969
|
+
:aria-labelledby="label ? labelId : null" :aria-describedby="describedBy"
|
|
970
|
+
:aria-activedescendant="isSearchable ? null : activeId"
|
|
971
|
+
:disabled="isDisabled" v-click="toggleList" v-keydown="onKey">
|
|
972
|
+
<span class="v-select-value" :data-placeholder="!hasSelection" v-text="display"></span>
|
|
973
|
+
<span class="v-clear" v-if="isClearable && hasSelection && !isDisabled"
|
|
974
|
+
role="button" tabindex="0" aria-label="Clear selection"
|
|
975
|
+
v-click.stop="clear" v-keydown.enter.stop="clear" v-html="svgIcon('x')"></span>
|
|
976
|
+
<span class="v-select-arrow" aria-hidden="true" v-html="svgIcon('chevron-down')"></span>
|
|
977
|
+
</button>
|
|
978
|
+
<div class="v-select-pop" v-if="open">
|
|
979
|
+
<div class="v-select-search" v-if="isSearchable">
|
|
980
|
+
<input type="text" class="v-select-input" v-ref="search" v-model="query"
|
|
981
|
+
role="combobox" aria-autocomplete="list" :aria-controls="listId"
|
|
982
|
+
:aria-expanded="open" :aria-activedescendant="activeId"
|
|
983
|
+
:placeholder="searchPlaceholder" aria-label="Search option" v-keydown="onKey">
|
|
984
|
+
</div>
|
|
985
|
+
<ul class="v-select-list" :id="listId" role="listbox"
|
|
986
|
+
:aria-multiselectable="isMultiple" :aria-labelledby="label ? labelId : null">
|
|
987
|
+
<li v-for="(option, index) in filtered" :key="option.value" class="v-select-opt"
|
|
988
|
+
:id="optionId(index)" role="option" :aria-selected="isSelected(option.value)"
|
|
989
|
+
:aria-disabled="option.disabled"
|
|
990
|
+
:class="{ 'is-active': index === activeIndex, 'is-selected': isSelected(option.value), 'is-disabled': option.disabled }"
|
|
991
|
+
v-click="choose(option)" v-mouseenter="activeIndex = index">
|
|
992
|
+
<span class="v-select-check" v-html="svgIcon('check')" aria-hidden="true"></span>
|
|
993
|
+
<span v-text="option.label"></span>
|
|
994
|
+
</li>
|
|
995
|
+
<li class="v-select-empty" v-if="!filtered.length" v-text="emptyText"></li>
|
|
996
|
+
</ul>
|
|
997
|
+
</div>
|
|
998
|
+
</div>
|
|
999
|
+
<select class="v-native-hidden" tabindex="-1" aria-hidden="true" :name="name || null"
|
|
1000
|
+
:multiple="isMultiple" :required="isRequired" :disabled="isDisabled">
|
|
1001
|
+
<option v-for="option in allOptions" :key="option.value" :value="option.value"
|
|
1002
|
+
:selected="isSelected(option.value)" v-text="option.label"></option>
|
|
1003
|
+
</select>
|
|
1004
|
+
<p class="v-hint" :id="hintId" v-if="hint && !error" v-text="hint"></p>
|
|
1005
|
+
<p class="v-error-text" :id="errorId" v-if="error" role="alert" v-text="error"></p>
|
|
1006
|
+
</div>
|
|
1007
|
+
`});re("v-checkbox",{props:{label:L,description:L,error:L,name:L,id:L,value:{type:"string",default:"on"},checked:N,disabled:N,required:N},state(e){return{fieldId:e.id||ae("v-check-")}},computed:{...ge("checked","disabled","required")},methods:{onToggle(e){let t=e.target;this.checked=t.checked,this.emit("change",t.checked)}},beforeMount(){Xt(this,{get:()=>ee(this.checked),set:e=>{this.checked=ee(e)}})},template:`
|
|
1008
|
+
<label class="v-check" :for="fieldId" :data-disabled="isDisabled" :data-error="!!error">
|
|
1009
|
+
<span class="v-check-slot">
|
|
1010
|
+
<input type="checkbox" class="v-check-native" :id="fieldId" :name="name || null"
|
|
1011
|
+
:value="value" :checked="isChecked" :disabled="isDisabled" :required="isRequired"
|
|
1012
|
+
:aria-invalid="!!error" v-input="onToggle">
|
|
1013
|
+
<span class="v-check-box" aria-hidden="true" v-html="svgIcon('check')"></span>
|
|
1014
|
+
</span>
|
|
1015
|
+
<span class="v-check-text">
|
|
1016
|
+
<slot></slot><span v-if="label" v-text="label"></span>
|
|
1017
|
+
<span class="v-check-desc" v-if="description" v-text="description"></span>
|
|
1018
|
+
</span>
|
|
1019
|
+
</label>
|
|
1020
|
+
`});re("v-radio",{props:{label:L,description:L,error:L,name:L,id:L,value:{type:"string",default:""},checked:N,disabled:N,required:N},state(e){var t;return{fieldId:e.id||ae("v-radio-"),selected:ee(e.checked)?String((t=e.value)!=null?t:""):""}},computed:{...ge("disabled","required"),isChecked(){var e;return this.selected!==""&&this.selected===String((e=this.value)!=null?e:"")}},methods:{onPick(){var e;this.selected=String((e=this.value)!=null?e:""),this.emit("change",this.selected)}},beforeMount(){Xt(this,{get:()=>this.selected,set:e=>{this.selected=e==null?"":String(e)}})},template:`
|
|
1021
|
+
<label class="v-check" :for="fieldId" data-shape="round"
|
|
1022
|
+
:data-disabled="isDisabled" :data-error="!!error">
|
|
1023
|
+
<span class="v-check-slot">
|
|
1024
|
+
<input type="radio" class="v-check-native" :id="fieldId" :name="name || null"
|
|
1025
|
+
:value="value" :checked="isChecked" :disabled="isDisabled" :required="isRequired"
|
|
1026
|
+
:aria-invalid="!!error" v-input="onPick">
|
|
1027
|
+
<span class="v-check-box" aria-hidden="true"><span class="v-radio-dot"></span></span>
|
|
1028
|
+
</span>
|
|
1029
|
+
<span class="v-check-text">
|
|
1030
|
+
<slot></slot><span v-if="label" v-text="label"></span>
|
|
1031
|
+
<span class="v-check-desc" v-if="description" v-text="description"></span>
|
|
1032
|
+
</span>
|
|
1033
|
+
</label>
|
|
1034
|
+
`});re("v-switch",{props:{label:L,description:L,name:L,id:L,size:{type:"string",default:"md"},checked:N,disabled:N},state(e){return{fieldId:e.id||ae("v-switch-")}},computed:{...ge("checked","disabled")},methods:{onToggle(e){let t=e.target;this.checked=t.checked,this.emit("change",t.checked)}},beforeMount(){Xt(this,{get:()=>ee(this.checked),set:e=>{this.checked=ee(e)}})},template:`
|
|
1035
|
+
<label class="v-check" :for="fieldId" :data-size="size" :data-disabled="isDisabled">
|
|
1036
|
+
<span class="v-check-slot">
|
|
1037
|
+
<input type="checkbox" role="switch" class="v-check-native" :id="fieldId"
|
|
1038
|
+
:name="name || null" :checked="isChecked" :disabled="isDisabled"
|
|
1039
|
+
:aria-checked="isChecked" v-input="onToggle">
|
|
1040
|
+
<span class="v-switch-track" aria-hidden="true"><span class="v-switch-thumb"></span></span>
|
|
1041
|
+
</span>
|
|
1042
|
+
<span class="v-check-text">
|
|
1043
|
+
<slot></slot><span v-if="label" v-text="label"></span>
|
|
1044
|
+
<span class="v-check-desc" v-if="description" v-text="description"></span>
|
|
1045
|
+
</span>
|
|
1046
|
+
</label>
|
|
1047
|
+
`});re("v-badge",{props:{tone:{type:"string",default:"neutral"},variant:{type:"string",default:"soft"},size:{type:"string",default:"md"},icon:L,dot:N},computed:{...ge("dot")},template:`
|
|
1048
|
+
<span class="v-badge" :data-tone="tone" :data-variant="variant" :data-size="size">
|
|
1049
|
+
<span class="v-badge-dot" v-if="isDot" aria-hidden="true"></span>
|
|
1050
|
+
<span v-if="icon" v-html="svgIcon(icon)" aria-hidden="true"></span>
|
|
1051
|
+
<span><slot></slot></span>
|
|
1052
|
+
</span>
|
|
1053
|
+
`});re("v-tag",{props:{tone:{type:"string",default:"neutral"},variant:{type:"string",default:"soft"},icon:L,closable:N,removeLabel:{type:"string",default:"Remove"}},computed:{...ge("closable")},methods:{remove(){var e,t;this.emit("remove",(t=(e=this.$el.textContent)==null?void 0:e.trim())!=null?t:"")}},template:`
|
|
1054
|
+
<span class="v-tag v-badge" :data-tone="tone" :data-variant="variant" data-size="md"
|
|
1055
|
+
:data-closable="isClosable">
|
|
1056
|
+
<span v-if="icon" v-html="svgIcon(icon)" aria-hidden="true"></span>
|
|
1057
|
+
<span><slot></slot></span>
|
|
1058
|
+
<button type="button" class="v-tag-close" v-if="isClosable" :aria-label="removeLabel"
|
|
1059
|
+
v-click="remove" v-html="svgIcon('x')"></button>
|
|
1060
|
+
</span>
|
|
1061
|
+
`});var ry={info:"info",primary:"info",success:"check",warning:"warning",danger:"alert",neutral:"info"};re("v-alert",{props:{tone:{type:"string",default:"info"},title:L,icon:L,closable:N,closeLabel:{type:"string",default:"Close alert"}},state(){return{visible:!0}},computed:{...ge("closable"),resolvedIcon(){return this.icon==="none"?"":this.icon||ry[this.tone]||"info"},liveRole(){return this.tone==="danger"?"alert":"status"}},methods:{dismiss(){this.visible=!1,this.emit("close")}},template:`
|
|
1062
|
+
<div class="v-alert" v-show="visible" :data-tone="tone" :role="liveRole">
|
|
1063
|
+
<span class="v-alert-icon" v-if="resolvedIcon" v-html="svgIcon(resolvedIcon)" aria-hidden="true"></span>
|
|
1064
|
+
<div class="v-alert-body">
|
|
1065
|
+
<p class="v-alert-title" v-if="title" v-text="title"></p>
|
|
1066
|
+
<div class="v-alert-text"><slot></slot></div>
|
|
1067
|
+
</div>
|
|
1068
|
+
<button type="button" class="v-alert-close" v-if="isClosable" :aria-label="closeLabel"
|
|
1069
|
+
v-click="dismiss" v-html="svgIcon('x')"></button>
|
|
1070
|
+
</div>
|
|
1071
|
+
`});var sp=["primary","accent","success","warning","danger","info"];re("v-avatar",{props:{name:L,src:L,alt:L,size:{type:"string",default:"md"},shape:{type:"string",default:"circle"},status:L},state(){return{failed:!1}},computed:{initials(){var t;let e=String((t=this.name)!=null?t:"").trim().split(/\s+/).filter(Boolean);return e.length?e.length===1?e[0].slice(0,2).toUpperCase():(e[0][0]+e[e.length-1][0]).toUpperCase():"?"},tone(){var n;let e=String((n=this.name)!=null?n:""),t=0;for(let r=0;r<e.length;r++)t=(t+e.charCodeAt(r))%9973;return sp[t%sp.length]},toneStyle(){return{background:`var(--v-${this.tone}-soft)`,color:`var(--v-${this.tone}-soft-text)`}},showImage(){return!!this.src&&!this.failed},imageAlt(){return this.alt||this.name||"Avatar"}},methods:{onError(){this.failed=!0}},template:`
|
|
1072
|
+
<span class="v-avatar" :data-size="size" :data-shape="shape" :style="toneStyle"
|
|
1073
|
+
:title="name || null">
|
|
1074
|
+
<img class="v-avatar-img" v-if="showImage" :src="src" :alt="imageAlt" v-on:error="onError">
|
|
1075
|
+
<span v-if="!showImage" aria-hidden="true" v-text="initials"></span>
|
|
1076
|
+
<span class="v-sr" v-if="!showImage && name" v-text="name"></span>
|
|
1077
|
+
<span class="v-avatar-status" v-if="status" :data-status="status"
|
|
1078
|
+
:aria-label="status" role="img"></span>
|
|
1079
|
+
</span>
|
|
1080
|
+
`});re("v-spinner",{props:{size:{type:"string",default:"md"},tone:{type:"string",default:"primary"},label:{type:"string",default:"Loading"}},template:`
|
|
1081
|
+
<span class="v-spinner" :data-size="size" :data-tone="tone" role="status"
|
|
1082
|
+
:aria-label="label"></span>
|
|
1083
|
+
`});re("v-skeleton",{props:{width:{type:"string",default:"100%"},height:{type:"string",default:"14px"},radius:L,lines:{type:"number",default:1},circle:N},computed:{...ge("circle"),count(){let e=Number(this.lines);return Number.isFinite(e)&&e>0?Math.floor(e):1},boxStyle(){let e={width:this.width,height:this.height};return this.radius&&(e.borderRadius=this.radius),ee(this.circle)&&(e.width=e.height=this.height),e},lastStyle(){return{...this.boxStyle,width:"62%"}}},template:`
|
|
1084
|
+
<div class="v-skeleton-stack" role="status" aria-label="Loading content" aria-busy="true">
|
|
1085
|
+
<span class="v-skeleton" v-for="index in count" :key="index" :data-circle="isCircle"
|
|
1086
|
+
:style="index === count && count > 1 ? lastStyle : boxStyle"></span>
|
|
1087
|
+
</div>
|
|
1088
|
+
`});re("v-progress",{props:{value:{type:"number",default:0},max:{type:"number",default:100},tone:{type:"string",default:"primary"},size:{type:"string",default:"md"},label:L,showValue:N,indeterminate:N},computed:{...ge("showValue","indeterminate"),percent(){let e=Number(this.max)||100,n=(Number(this.value)||0)/e*100;return Math.min(100,Math.max(0,Math.round(n*10)/10))},barStyle(){return{width:`${this.percent}%`}},percentText(){return`${Math.round(this.percent)}%`}},template:`
|
|
1089
|
+
<div class="v-progress" :data-tone="tone" :data-size="size" :data-indeterminate="isIndeterminate">
|
|
1090
|
+
<div class="v-progress-head" v-if="label || isShowValue">
|
|
1091
|
+
<span v-text="label"></span>
|
|
1092
|
+
<span class="v-progress-value" v-if="isShowValue" v-text="percentText"></span>
|
|
1093
|
+
</div>
|
|
1094
|
+
<div class="v-progress-track" role="progressbar" :aria-label="label || 'Progress'"
|
|
1095
|
+
:aria-valuenow="isIndeterminate ? null : percent" aria-valuemin="0" aria-valuemax="100">
|
|
1096
|
+
<div class="v-progress-bar" :style="barStyle"></div>
|
|
1097
|
+
</div>
|
|
1098
|
+
</div>
|
|
1099
|
+
`});re("v-divider",{props:{label:L,vertical:N,spacing:L},computed:{...ge("vertical"),spacingStyle(){return this.spacing?ee(this.vertical)?{margin:`0 ${this.spacing}`}:{margin:`${this.spacing} 0`}:{}}},template:`
|
|
1100
|
+
<div class="v-divider" role="separator" :data-vertical="isVertical" :data-label="!!label"
|
|
1101
|
+
:aria-orientation="isVertical ? 'vertical' : 'horizontal'" :style="spacingStyle">
|
|
1102
|
+
<span v-if="label" v-text="label"></span>
|
|
1103
|
+
</div>
|
|
1104
|
+
`});function oy(e){return Array.isArray(e)?e.map(t=>{var r,o,i,s,a,l;if(t!=null&&typeof t=="object"){let c=t,d=String((i=(o=(r=c.key)!=null?r:c.field)!=null?o:c.name)!=null?i:"");return{key:d,label:String((a=(s=c.label)!=null?s:c.title)!=null?a:Or(d)),align:String((l=c.align)!=null?l:"left"),sortable:c.sortable===void 0?!0:ee(c.sortable)}}let n=String(t);return{key:n,label:Or(n),align:"left",sortable:!0}}):typeof e!="string"?[]:go(e).map(t=>{let n=t.split(":").map(o=>o.trim()),r=n[0];return{key:r,label:n[1]||Or(r),align:n[2]||"left",sortable:n[3]!=="fixed"}})}re("v-table",{inheritScope:!0,props:{columns:{type:"any",default:""},rows:{type:"any",default:""},empty:{type:"string",default:"Nenhum registro encontrado"},sortable:{type:"any",default:!0},dense:N,striped:N,hover:{type:"any",default:!0},caption:L},state(){return{sortKey:"",sortDir:"asc"}},computed:{...ge("dense","striped"),isSortable(){return this.sortable===!0||ee(this.sortable)},isHover(){return this.hover===!0||ee(this.hover)},cols(){var e;return oy((e=vr(this,this.columns))!=null?e:this.columns)},allRows(){var t;let e=(t=vr(this,this.rows))!=null?t:this.rows;return Array.isArray(e)?e:[]},sorted(){let e=this.sortKey;if(!e||!this.isSortable)return this.allRows;let t=this.sortDir==="desc"?-1:1;return[...this.allRows].sort((n,r)=>{let o=Pr(n,e),i=Pr(r,e);return o==null&&i==null?0:o==null?-t:i==null?t:typeof o=="number"&&typeof i=="number"?(o-i)*t:String(o).localeCompare(String(i),w.locale,{numeric:!0})*t})}},methods:{cell(e,t){let n=Pr(e,t.key);return n==null?"":String(n)},ariaSort(e){return!this.isSortable||!e.sortable?null:this.sortKey!==e.key?"none":this.sortDir==="asc"?"ascending":"descending"},canSort(e){return this.isSortable&&e.sortable},arrowFor(e){return this.sortKey!==e.key?"chevron-down":this.sortDir==="asc"?"chevron-up":"chevron-down"},toggleSort(e){this.canSort(e)&&(this.sortKey===e.key?this.sortDir=this.sortDir==="asc"?"desc":"asc":(this.sortKey=e.key,this.sortDir="asc"),this.emit("sort",{key:this.sortKey,direction:this.sortDir}))},alignStyle(e){return{textAlign:e.align}}},template:`
|
|
1105
|
+
<div class="v-table-wrap">
|
|
1106
|
+
<table class="v-table" :data-dense="isDense" :data-striped="isStriped" :data-hover="isHover">
|
|
1107
|
+
<caption class="v-sr" v-if="caption" v-text="caption"></caption>
|
|
1108
|
+
<thead>
|
|
1109
|
+
<tr>
|
|
1110
|
+
<th v-for="column in cols" :key="column.key" :style="alignStyle(column)"
|
|
1111
|
+
scope="col" :aria-sort="ariaSort(column)">
|
|
1112
|
+
<button type="button" class="v-th" :data-sortable="canSort(column)"
|
|
1113
|
+
:aria-sort="ariaSort(column)" :disabled="!canSort(column)" v-click="toggleSort(column)">
|
|
1114
|
+
<span v-text="column.label"></span>
|
|
1115
|
+
<span class="v-th-arrow" v-if="canSort(column)" v-html="svgIcon(arrowFor(column))"></span>
|
|
1116
|
+
</button>
|
|
1117
|
+
</th>
|
|
1118
|
+
</tr>
|
|
1119
|
+
</thead>
|
|
1120
|
+
<tbody>
|
|
1121
|
+
<tr v-for="(row, index) in sorted" :key="index">
|
|
1122
|
+
<td v-for="column in cols" :key="column.key" :style="alignStyle(column)"
|
|
1123
|
+
v-text="cell(row, column)"></td>
|
|
1124
|
+
</tr>
|
|
1125
|
+
<tr v-if="!sorted.length">
|
|
1126
|
+
<td class="v-table-empty" :colspan="cols.length || 1" v-text="empty"></td>
|
|
1127
|
+
</tr>
|
|
1128
|
+
</tbody>
|
|
1129
|
+
</table>
|
|
1130
|
+
</div>
|
|
1131
|
+
`});re("v-pagination",{props:{page:{type:"number",default:1},pages:{type:"number",default:1},total:{type:"number",default:0},perPage:{type:"number",default:10},siblings:{type:"number",default:1},previousLabel:{type:"string",default:"Anterior"},nextLabel:{type:"string",default:"Pr\xF3xima"},ariaLabel:{type:"string",default:"Pagina\xE7\xE3o"}},computed:{lastPage(){let e=Number(this.pages)||0;if(e>0)return e;let t=Number(this.total)||0,n=Number(this.perPage)||10;return Math.max(1,Math.ceil(t/n))},currentPage(){let e=Number(this.page)||1;return Math.min(Math.max(1,Math.round(e)),this.lastPage)},items(){let e=this.lastPage,t=this.currentPage,n=Math.max(0,Number(this.siblings)||0),r=n*2+5;if(e<=r)return Array.from({length:e},(a,l)=>l+1);let o=[1],i=Math.max(2,t-n),s=Math.min(e-1,t+n);i>2&&o.push(0);for(let a=i;a<=s;a++)o.push(a);return s<e-1&&o.push(0),o.push(e),o}},methods:{go(e){let t=Math.min(Math.max(1,e),this.lastPage);t!==this.currentPage&&(this.page=t,ho(this.$el),this.emit("change",t))},isCurrent(e){return e===this.currentPage?"page":null}},beforeMount(){Xt(this,{get:()=>this.currentPage,set:e=>{let t=Number(e);this.page=Number.isFinite(t)&&t>0?Math.round(t):1}})},template:`
|
|
1132
|
+
<nav class="v-pagination" :aria-label="ariaLabel">
|
|
1133
|
+
<button type="button" class="v-page" :disabled="currentPage <= 1"
|
|
1134
|
+
:aria-label="previousLabel" v-click="go(currentPage - 1)" v-html="svgIcon('chevron-left')"></button>
|
|
1135
|
+
<template v-for="(item, index) in items" :key="index">
|
|
1136
|
+
<span class="v-page-gap" v-if="item === 0" aria-hidden="true">...</span>
|
|
1137
|
+
<button type="button" class="v-page" v-if="item !== 0" :aria-current="isCurrent(item)"
|
|
1138
|
+
:aria-label="'P\xE1gina ' + item" v-click="go(item)" v-text="item"></button>
|
|
1139
|
+
</template>
|
|
1140
|
+
<button type="button" class="v-page" :disabled="currentPage >= lastPage"
|
|
1141
|
+
:aria-label="nextLabel" v-click="go(currentPage + 1)" v-html="svgIcon('chevron-right')"></button>
|
|
1142
|
+
</nav>
|
|
1143
|
+
`});function iy(e){return Array.isArray(e)?e.map(t=>{var n,r,o,i,s,a;if(t!=null&&typeof t=="object"){let l=t;return{label:String((o=(r=(n=l.label)!=null?n:l.text)!=null?r:l.title)!=null?o:""),href:String((a=(s=(i=l.href)!=null?i:l.url)!=null?s:l.to)!=null?a:"")}}return{label:String(t),href:""}}):typeof e!="string"?[]:go(e).map(t=>{let n=t.indexOf(":");return n===-1?{label:t,href:""}:{label:t.slice(0,n).trim(),href:t.slice(n+1).trim()}})}re("v-breadcrumb",{inheritScope:!0,props:{items:{type:"any",default:""},separator:{type:"string",default:"/"},ariaLabel:{type:"string",default:"Trilha de navega\xE7\xE3o"}},computed:{crumbs(){var e;return iy((e=vr(this,this.items))!=null?e:this.items)}},methods:{isLast(e){return e===this.crumbs.length-1}},template:`
|
|
1144
|
+
<nav class="v-breadcrumb" :aria-label="ariaLabel">
|
|
1145
|
+
<ol class="v-breadcrumb-list">
|
|
1146
|
+
<li class="v-breadcrumb-item" v-for="(crumb, index) in crumbs" :key="index"
|
|
1147
|
+
:aria-current="isLast(index) ? 'page' : null">
|
|
1148
|
+
<a v-if="crumb.href && !isLast(index)" :href="crumb.href" v-text="crumb.label"></a>
|
|
1149
|
+
<span v-if="!crumb.href || isLast(index)" v-text="crumb.label"></span>
|
|
1150
|
+
<span class="v-breadcrumb-sep" v-if="!isLast(index)" aria-hidden="true" v-text="separator"></span>
|
|
1151
|
+
</li>
|
|
1152
|
+
</ol>
|
|
1153
|
+
</nav>
|
|
1154
|
+
`});re("v-stat",{props:{label:L,value:L,delta:{type:"any",default:""},hint:L,icon:L,suffix:{type:"string",default:"%"},inverted:N},computed:{...ge("inverted"),deltaNumber(){if(this.delta===""||this.delta===null||this.delta===void 0)return null;let e=Number(String(this.delta).replace(",",".").replace("%",""));return Number.isFinite(e)?e:null},hasDelta(){return this.deltaNumber!==null},direction(){let e=this.deltaNumber;if(e===null||e===0)return"flat";let t=e>0;return(ee(this.inverted)?!t:t)?"up":"down"},deltaIcon(){let e=this.deltaNumber;return e===null||e===0?"minus":e>0?"arrow-up":"arrow-down"},deltaText(){let e=this.deltaNumber;return e===null?"":`${e>0?"+":""}${e}${this.suffix}`}},template:`
|
|
1155
|
+
<div class="v-stat">
|
|
1156
|
+
<span class="v-stat-icon" v-if="icon" v-html="svgIcon(icon)" aria-hidden="true"></span>
|
|
1157
|
+
<div class="v-stat-body">
|
|
1158
|
+
<div class="v-stat-label" v-text="label"></div>
|
|
1159
|
+
<div class="v-stat-value" v-text="value"></div>
|
|
1160
|
+
<div class="v-stat-row" v-if="hasDelta || hint">
|
|
1161
|
+
<span class="v-stat-delta" v-if="hasDelta" :data-dir="direction">
|
|
1162
|
+
<span v-html="svgIcon(deltaIcon)" aria-hidden="true"></span>
|
|
1163
|
+
<span v-text="deltaText"></span>
|
|
1164
|
+
</span>
|
|
1165
|
+
<span class="v-stat-hint" v-if="hint" v-text="hint"></span>
|
|
1166
|
+
</div>
|
|
1167
|
+
<div class="v-stat-row"><slot></slot></div>
|
|
1168
|
+
</div>
|
|
1169
|
+
</div>
|
|
1170
|
+
`});re("v-empty-state",{props:{icon:{type:"string",default:"inbox"},title:{type:"string",default:"Nada por aqui"},description:L},template:`
|
|
1171
|
+
<div class="v-empty">
|
|
1172
|
+
<span class="v-empty-icon" v-if="icon" v-html="svgIcon(icon)" aria-hidden="true"></span>
|
|
1173
|
+
<h3 class="v-empty-title" v-text="title"></h3>
|
|
1174
|
+
<p class="v-empty-desc" v-if="description" v-text="description"></p>
|
|
1175
|
+
<div class="v-empty-actions"><slot></slot></div>
|
|
1176
|
+
</div>
|
|
1177
|
+
`});function sy(e){return Array.isArray(e)?e.map(t=>{var n,r,o,i,s,a,l;if(t!=null&&typeof t=="object"){let c=t;return{title:String((r=(n=c.title)!=null?n:c.label)!=null?r:""),description:String((i=(o=c.description)!=null?o:c.text)!=null?i:""),time:String((a=(s=c.time)!=null?s:c.date)!=null?a:""),tone:String((l=c.tone)!=null?l:"primary")}}return{title:String(t),description:"",time:"",tone:"primary"}}):typeof e!="string"||!e.trim()?[]:e.split(";").map(t=>t.trim()).filter(Boolean).map(t=>{var r,o,i;let n=t.split("|").map(s=>s.trim());return{title:(r=n[0])!=null?r:"",description:(o=n[1])!=null?o:"",time:(i=n[2])!=null?i:"",tone:n[3]||"primary"}})}re("v-timeline",{inheritScope:!0,props:{items:{type:"any",default:""}},computed:{entries(){var e;return sy((e=vr(this,this.items))!=null?e:this.items)}},template:`
|
|
1178
|
+
<ol class="v-timeline">
|
|
1179
|
+
<li class="v-timeline-item" v-for="(entry, index) in entries" :key="index" :data-tone="entry.tone">
|
|
1180
|
+
<span class="v-timeline-rail" aria-hidden="true"><span class="v-timeline-dot"></span></span>
|
|
1181
|
+
<div class="v-timeline-body">
|
|
1182
|
+
<div class="v-timeline-title" v-text="entry.title"></div>
|
|
1183
|
+
<p class="v-timeline-desc" v-if="entry.description" v-text="entry.description"></p>
|
|
1184
|
+
<time class="v-timeline-time" v-if="entry.time" v-text="entry.time"></time>
|
|
1185
|
+
</div>
|
|
1186
|
+
</li>
|
|
1187
|
+
<li class="v-timeline-item" v-if="!entries.length">
|
|
1188
|
+
<span class="v-timeline-rail" aria-hidden="true"><span class="v-timeline-dot"></span></span>
|
|
1189
|
+
<div class="v-timeline-body"><slot></slot></div>
|
|
1190
|
+
</li>
|
|
1191
|
+
</ol>
|
|
1192
|
+
`});re("v-steps",{inheritScope:!0,props:{steps:{type:"any",default:""},current:{type:"number",default:0},vertical:N,ariaLabel:{type:"string",default:"Etapas"}},computed:{...ge("vertical"),list(){var t;let e=(t=vr(this,this.steps))!=null?t:this.steps;return Array.isArray(e)?e.map(n=>{var r,o;return n!=null&&typeof n=="object"?String((o=(r=n.label)!=null?r:n.title)!=null?o:""):String(n)}):typeof e=="string"?go(e):[]},currentIndex(){let e=Number(this.current);return Number.isFinite(e)?Math.max(0,Math.round(e)):0}},methods:{stateOf(e){return e<this.currentIndex?"done":e===this.currentIndex?"current":"todo"}},template:`
|
|
1193
|
+
<ol class="v-steps" :data-vertical="isVertical" :aria-label="ariaLabel">
|
|
1194
|
+
<li class="v-step" v-for="(step, index) in list" :key="index" :data-state="stateOf(index)"
|
|
1195
|
+
:aria-current="index === currentIndex ? 'step' : null">
|
|
1196
|
+
<span class="v-step-line" aria-hidden="true"></span>
|
|
1197
|
+
<span class="v-step-mark" aria-hidden="true">
|
|
1198
|
+
<span v-if="stateOf(index) === 'done'" v-html="svgIcon('check')"></span>
|
|
1199
|
+
<span v-if="stateOf(index) !== 'done'" v-text="index + 1"></span>
|
|
1200
|
+
</span>
|
|
1201
|
+
<span class="v-step-text"><span class="v-step-label" v-text="step"></span></span>
|
|
1202
|
+
</li>
|
|
1203
|
+
</ol>
|
|
1204
|
+
`});re("v-rating",{props:{value:{type:"number",default:0},max:{type:"number",default:5},size:{type:"string",default:"md"},label:{type:"string",default:"Avalia\xE7\xE3o"},readonly:N,disabled:N,showValue:N,allowClear:{type:"any",default:!0}},state(){return{hovered:0}},computed:{...ge("readonly","disabled","showValue"),locked(){return ee(this.readonly)||ee(this.disabled)},total(){let e=Number(this.max);return Number.isFinite(e)&&e>0?Math.floor(e):5},score(){let e=Number(this.value);return Number.isFinite(e)?Math.min(Math.max(0,e),this.total):0},shown(){return this.hovered>0?this.hovered:this.score},valueText(){return`${this.score} de ${this.total}`}},methods:{isOn(e){return e<=this.shown},pick(e){if(this.locked)return;let n=(this.allowClear===!0||ee(this.allowClear))&&this.score===e?0:e;this.value=n,this.hovered=0,ho(this.$el),this.emit("change",n)},preview(e){this.locked||(this.hovered=e)},reset(){this.hovered=0},onKey(e){if(this.locked)return;let t=e.key;t==="ArrowRight"||t==="ArrowUp"?(e.preventDefault(),this.pick(Math.min(this.total,this.score+1))):t==="ArrowLeft"||t==="ArrowDown"?(e.preventDefault(),this.pick(Math.max(0,this.score-1))):t==="Home"?(e.preventDefault(),this.pick(1)):t==="End"&&(e.preventDefault(),this.pick(this.total))}},beforeMount(){Xt(this,{get:()=>this.score,set:e=>{let t=Number(e);this.value=Number.isFinite(t)?t:0}})},template:`
|
|
1205
|
+
<div class="v-rating" :data-size="size" role="slider" :aria-label="label"
|
|
1206
|
+
aria-valuemin="0" :aria-valuemax="total" :aria-valuenow="score" :aria-valuetext="valueText"
|
|
1207
|
+
:tabindex="locked ? -1 : 0" :aria-readonly="locked" v-keydown="onKey" v-mouseleave="reset">
|
|
1208
|
+
<span class="v-rating-stars">
|
|
1209
|
+
<button type="button" class="v-star" v-for="index in total" :key="index"
|
|
1210
|
+
:data-on="isOn(index)" :disabled="locked" :aria-label="index + ' de ' + total"
|
|
1211
|
+
:tabindex="-1" v-click="pick(index)" v-mouseenter="preview(index)"
|
|
1212
|
+
v-html="svgIcon('star')"></button>
|
|
1213
|
+
</span>
|
|
1214
|
+
<span class="v-rating-value" v-if="isShowValue" v-text="valueText"></span>
|
|
1215
|
+
</div>
|
|
1216
|
+
`});re("v-tooltip-button",{props:{tooltip:L,placement:{type:"string",default:"top"},variant:{type:"string",default:"ghost"},size:{type:"string",default:"md"},icon:L,type:{type:"string",default:"button"},disabled:N,ariaLabel:L},state(){return{tipId:ae("v-tip-")}},computed:{...ge("disabled"),accessibleName(){return this.ariaLabel||null}},template:`
|
|
1217
|
+
<span class="v-tipwrap">
|
|
1218
|
+
<button class="v-btn" :type="type" :data-variant="variant" :data-size="size"
|
|
1219
|
+
:disabled="isDisabled" :aria-describedby="tooltip ? tipId : null" :aria-label="accessibleName">
|
|
1220
|
+
<span class="v-btn-ic" v-if="icon" v-html="svgIcon(icon)"></span>
|
|
1221
|
+
<span class="v-btn-label"><slot></slot></span>
|
|
1222
|
+
</button>
|
|
1223
|
+
<span class="v-tip" v-if="tooltip" :id="tipId" role="tooltip"
|
|
1224
|
+
:data-placement="placement" v-text="tooltip"></span>
|
|
1225
|
+
</span>
|
|
1226
|
+
`});async function ay(e){try{if(typeof navigator!="undefined"&&navigator.clipboard)return await navigator.clipboard.writeText(e),!0}catch(t){}try{let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let n=document.execCommand("copy");return t.remove(),n}catch(t){return!1}}re("v-code-block",{props:{code:L,language:L,filename:L,copyLabel:{type:"string",default:"Copiar"},copiedLabel:{type:"string",default:"Copiado"},wrap:N},state(){return{copied:!1}},computed:{...ge("wrap"),header(){return this.filename||this.language||""},buttonLabel(){return this.copied?this.copiedLabel:this.copyLabel},buttonIcon(){return this.copied?"check":"copy"}},methods:{async copy(){let e=this.$refs.code,t=this.code||(e==null?void 0:e.textContent)||"";await ay(String(t))&&(this.copied=!0,this.emit("copy",t),setTimeout(()=>{this.copied=!1},1800))}},template:`
|
|
1227
|
+
<div class="v-code" :data-wrap="isWrap">
|
|
1228
|
+
<div class="v-code-head">
|
|
1229
|
+
<span class="v-code-name" v-text="header"></span>
|
|
1230
|
+
<button type="button" class="v-code-copy" :data-copied="copied"
|
|
1231
|
+
:aria-label="buttonLabel" v-click="copy">
|
|
1232
|
+
<span v-html="svgIcon(buttonIcon)" aria-hidden="true"></span>
|
|
1233
|
+
<span v-text="buttonLabel"></span>
|
|
1234
|
+
</button>
|
|
1235
|
+
</div>
|
|
1236
|
+
<pre class="v-code-pre"><code v-ref="code" :class="language ? 'language-' + language : null"
|
|
1237
|
+
v-text="code"><slot></slot></code></pre>
|
|
1238
|
+
</div>
|
|
1239
|
+
`});var q1=Object.keys(ap);He();le();var it={confirm:"Confirm",cancel:"Cancel",ok:"OK",close:"Close",confirmQuestion:"Are you sure?",required:"Please fill in this field."},zl={duration:220,size:"md"},ly=`
|
|
1240
|
+
[v-modal-content]:not(.v-dialog-open),[data-v-modal-content]:not(.v-dialog-open){display:none}
|
|
1241
|
+
|
|
1242
|
+
.v-dialog-root{position:fixed;inset:0;z-index:calc(var(--v-z-modal,1000) + var(--v-dialog-layer,0));
|
|
1243
|
+
display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto;
|
|
1244
|
+
overscroll-behavior:contain;font-family:var(--v-font-sans,system-ui,sans-serif)}
|
|
1245
|
+
.v-dialog-root[data-position="top"]{align-items:flex-start;padding-top:min(12vh,96px)}
|
|
1246
|
+
|
|
1247
|
+
.v-dialog-backdrop{position:fixed;inset:0;background:var(--v-overlay,rgba(20,17,31,.45));
|
|
1248
|
+
opacity:0;transition:opacity var(--v-dialog-ms,220ms) var(--v-ease,ease)}
|
|
1249
|
+
.v-dialog-root.is-open>.v-dialog-backdrop{opacity:1}
|
|
1250
|
+
.v-dialog-root.is-closing>.v-dialog-backdrop{opacity:0}
|
|
1251
|
+
|
|
1252
|
+
.v-dialog-panel{position:relative;z-index:1;width:100%;max-width:var(--v-dialog-w,32rem);
|
|
1253
|
+
max-height:calc(100vh - 32px);display:flex;flex-direction:column;
|
|
1254
|
+
background:var(--v-surface,#fff);color:var(--v-text,#14111F);
|
|
1255
|
+
border:1px solid var(--v-border,#E6E0F0);border-radius:var(--v-radius-lg,18px);
|
|
1256
|
+
box-shadow:var(--v-shadow-lg,0 24px 60px rgba(20,17,31,.2));
|
|
1257
|
+
opacity:0;transform:translateY(14px) scale(.975);
|
|
1258
|
+
transition:opacity var(--v-dialog-ms,220ms) var(--v-ease,ease),transform var(--v-dialog-ms,220ms) var(--v-ease,ease)}
|
|
1259
|
+
.v-dialog-root.is-open>.v-dialog-panel{opacity:1;transform:none}
|
|
1260
|
+
.v-dialog-root.is-closing>.v-dialog-panel{opacity:0;transform:translateY(10px) scale(.985)}
|
|
1261
|
+
.v-dialog-panel:focus{outline:none}
|
|
1262
|
+
.v-dialog-panel.is-plain{background:none;border:0;box-shadow:none}
|
|
1263
|
+
|
|
1264
|
+
.v-dialog-root[data-size="sm"]{--v-dialog-w:24rem}
|
|
1265
|
+
.v-dialog-root[data-size="md"]{--v-dialog-w:32rem}
|
|
1266
|
+
.v-dialog-root[data-size="lg"]{--v-dialog-w:46rem}
|
|
1267
|
+
.v-dialog-root[data-size="xl"]{--v-dialog-w:64rem}
|
|
1268
|
+
.v-dialog-root[data-size="full"]{--v-dialog-w:calc(100vw - 32px)}
|
|
1269
|
+
|
|
1270
|
+
.v-dialog-head{display:flex;gap:14px;align-items:flex-start;padding:22px 22px 0}
|
|
1271
|
+
.v-dialog-icon{flex:none;width:38px;height:38px;border-radius:var(--v-radius-full,999px);
|
|
1272
|
+
display:grid;place-items:center;background:var(--v-primary-soft,#EEE9FF);color:var(--v-primary-soft-text,#4B21B8)}
|
|
1273
|
+
.v-dialog-icon svg{width:20px;height:20px}
|
|
1274
|
+
.v-dialog-icon[data-tone="success"]{background:var(--v-success-soft);color:var(--v-success-soft-text)}
|
|
1275
|
+
.v-dialog-icon[data-tone="warning"]{background:var(--v-warning-soft);color:var(--v-warning-soft-text)}
|
|
1276
|
+
.v-dialog-icon[data-tone="danger"]{background:var(--v-danger-soft);color:var(--v-danger-soft-text)}
|
|
1277
|
+
.v-dialog-heading{flex:1;min-width:0}
|
|
1278
|
+
.v-dialog-title{margin:0;font-size:17px;font-weight:650;line-height:1.35;color:var(--v-text,#14111F)}
|
|
1279
|
+
.v-dialog-desc{margin:6px 0 0;font-size:14px;line-height:1.55;color:var(--v-text-muted,#6B6580)}
|
|
1280
|
+
|
|
1281
|
+
.v-dialog-body{padding:16px 22px;overflow:auto;font-size:14px;line-height:1.6;color:var(--v-text,#14111F)}
|
|
1282
|
+
.v-dialog-head+.v-dialog-body{padding-top:14px}
|
|
1283
|
+
.v-dialog-body>p{margin:0 0 10px}
|
|
1284
|
+
.v-dialog-body>p:last-child{margin-bottom:0}
|
|
1285
|
+
|
|
1286
|
+
.v-dialog-foot{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;padding:6px 22px 20px}
|
|
1287
|
+
|
|
1288
|
+
.v-dialog-x{position:absolute;top:12px;right:12px;width:32px;height:32px;display:grid;place-items:center;
|
|
1289
|
+
border:0;border-radius:var(--v-radius-sm,8px);background:transparent;color:var(--v-text-muted,#6B6580);
|
|
1290
|
+
cursor:pointer;transition:background .15s var(--v-ease,ease),color .15s var(--v-ease,ease)}
|
|
1291
|
+
.v-dialog-x:hover{background:var(--v-surface-3,#F1EDF7);color:var(--v-text,#14111F)}
|
|
1292
|
+
.v-dialog-x:focus-visible{outline:2px solid var(--v-focus-ring,#6D3BF5);outline-offset:2px}
|
|
1293
|
+
.v-dialog-x svg{width:16px;height:16px}
|
|
1294
|
+
|
|
1295
|
+
.v-dlg-btn{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;
|
|
1296
|
+
gap:8px;min-height:38px;padding:0 16px;border-radius:var(--v-radius-sm,8px);border:1px solid transparent;
|
|
1297
|
+
font-family:inherit;font-size:14px;font-weight:600;line-height:1;cursor:pointer;
|
|
1298
|
+
transition:background .15s var(--v-ease,ease),border-color .15s var(--v-ease,ease),color .15s var(--v-ease,ease)}
|
|
1299
|
+
.v-dlg-btn:focus-visible{outline:2px solid var(--v-focus-ring,#6D3BF5);outline-offset:2px}
|
|
1300
|
+
.v-dlg-btn[disabled]{opacity:.55;cursor:not-allowed}
|
|
1301
|
+
|
|
1302
|
+
.v-dlg-btn[data-variant="primary"]{background:var(--v-primary);color:var(--v-primary-contrast);border-color:var(--v-primary)}
|
|
1303
|
+
.v-dlg-btn[data-variant="primary"]:hover{background:var(--v-primary-hover);border-color:var(--v-primary-hover);color:var(--v-primary-contrast-hover)}
|
|
1304
|
+
.v-dlg-btn[data-variant="danger"]{background:var(--v-danger);color:var(--v-danger-contrast);border-color:var(--v-danger)}
|
|
1305
|
+
.v-dlg-btn[data-variant="danger"]:hover{background:var(--v-danger-hover);border-color:var(--v-danger-hover);color:var(--v-danger-contrast-hover)}
|
|
1306
|
+
.v-dlg-btn[data-variant="success"]{background:var(--v-success);color:var(--v-success-contrast);border-color:var(--v-success)}
|
|
1307
|
+
.v-dlg-btn[data-variant="success"]:hover{background:var(--v-success-hover);border-color:var(--v-success-hover);color:var(--v-success-contrast-hover)}
|
|
1308
|
+
.v-dlg-btn[data-variant="secondary"]{background:var(--v-surface);color:var(--v-text);border-color:var(--v-border-strong,#CFC6E4)}
|
|
1309
|
+
.v-dlg-btn[data-variant="secondary"]:hover{background:var(--v-surface-3,#F1EDF7);color:var(--v-text)}
|
|
1310
|
+
.v-dlg-btn[data-variant="ghost"]{background:transparent;color:var(--v-text-muted);border-color:transparent}
|
|
1311
|
+
.v-dlg-btn[data-variant="ghost"]:hover{background:var(--v-surface-3,#F1EDF7);color:var(--v-text)}
|
|
1312
|
+
|
|
1313
|
+
.v-dialog-field{display:flex;flex-direction:column;gap:6px}
|
|
1314
|
+
.v-dialog-label{font-size:13px;font-weight:600;color:var(--v-text,#14111F)}
|
|
1315
|
+
.v-dialog-input{appearance:none;-webkit-appearance:none;width:100%;min-height:40px;padding:9px 12px;
|
|
1316
|
+
font-family:inherit;font-size:14px;line-height:1.4;color:var(--v-text,#14111F);
|
|
1317
|
+
background:var(--v-surface,#fff);border:1px solid var(--v-border,#E6E0F0);
|
|
1318
|
+
border-radius:var(--v-radius-sm,8px);transition:border-color .15s var(--v-ease,ease),box-shadow .15s var(--v-ease,ease)}
|
|
1319
|
+
textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
1320
|
+
.v-dialog-input::placeholder{color:var(--v-text-soft,#9A93B4)}
|
|
1321
|
+
.v-dialog-input:focus{outline:none;border-color:var(--v-primary);box-shadow:0 0 0 3px var(--v-focus-ring,rgba(109,59,245,.32))}
|
|
1322
|
+
.v-dialog-input[aria-invalid="true"]{border-color:var(--v-danger)}
|
|
1323
|
+
.v-dialog-input[aria-invalid="true"]:focus{box-shadow:0 0 0 3px var(--v-danger-ring)}
|
|
1324
|
+
.v-dialog-hint{font-size:12.5px;line-height:1.45;color:var(--v-text-muted,#6B6580)}
|
|
1325
|
+
.v-dialog-error{font-size:12.5px;line-height:1.45;font-weight:600;color:var(--v-danger)}
|
|
1326
|
+
|
|
1327
|
+
@media (max-width:520px){
|
|
1328
|
+
.v-dialog-root{padding:12px}
|
|
1329
|
+
.v-dialog-foot{flex-direction:column-reverse}
|
|
1330
|
+
.v-dlg-btn{width:100%}
|
|
1331
|
+
}
|
|
1332
|
+
@media (prefers-reduced-motion: reduce){
|
|
1333
|
+
.v-dialog-backdrop,.v-dialog-panel{transition:none}
|
|
1334
|
+
}
|
|
1335
|
+
`;function ss(){he(),vo(),ne("dialog",ly)}var Bl={info:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 11v5M12 7.6v.2"/></svg>',success:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="m8.2 12.3 2.6 2.6 5-5.2"/></svg>',warning:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 4.6 2.9 19.4h18.2z"/><path d="M12 10v4M12 17.2v.2"/></svg>',danger:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="m9 9 6 6M15 9l-6 6"/></svg>',question:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M9.6 9.4a2.4 2.4 0 1 1 3.2 2.3c-.6.2-.8.7-.8 1.3v.5M12 16.6v.2"/></svg>',close:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="m6 6 12 12M18 6 6 18"/></svg>'},Je=[],jl=new WeakMap,ql=0,lp="",cp="";function cy(){if(ql++>0)return;let e=document.body;lp=e.style.overflow,cp=e.style.paddingRight;let t=window.innerWidth-document.documentElement.clientWidth;if(e.style.overflow="hidden",t>0){let n=parseFloat(getComputedStyle(e).paddingRight)||0;e.style.paddingRight=`${n+t}px`}}function dy(){ql!==0&&(--ql>0||(document.body.style.overflow=lp,document.body.style.paddingRight=cp))}var uy='a[href],area[href],button:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),iframe,object,embed,[contenteditable="true"],[tabindex]:not([tabindex="-1"])';function Vl(e){return Array.from(e.querySelectorAll(uy)).filter(t=>t.hasAttribute("disabled")||t.getAttribute("aria-hidden")==="true"?!1:t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0)}function Ul(){return Je[Je.length-1]}function fy(){return typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches}var is=!1;function dp(e){let t=Ul();if(!t)return;if(e.key==="Escape"){if(t.options.closeOnEscape===!1)return;e.preventDefault(),t.handle.close(void 0);return}if(e.key!=="Tab")return;let n=Vl(t.handle.panel);if(!n.length){e.preventDefault(),t.handle.panel.focus();return}let r=n[0],o=n[n.length-1],i=document.activeElement;e.shiftKey&&(i===r||!t.handle.panel.contains(i))?(e.preventDefault(),o.focus()):!e.shiftKey&&i===o&&(e.preventDefault(),r.focus())}function up(e){var o;let t=Ul();if(!t)return;let n=e.target;if(n&&t.handle.root.contains(n))return;((o=Vl(t.handle.panel)[0])!=null?o:t.handle.panel).focus()}function py(){is||(is=!0,document.addEventListener("keydown",dp,!0),document.addEventListener("focusin",up,!0))}function my(){is&&(is=!1,document.removeEventListener("keydown",dp,!0),document.removeEventListener("focusin",up,!0))}function fp(e){var p,f,m,h,v,g,b;ss();let t=ae("v-dialog-"),n=fy()?0:zl.duration,r=document.createElement("div");r.className="v-dialog-root",r.id=t,r.setAttribute("data-size",(p=e.size)!=null?p:zl.size),r.setAttribute("data-position",(f=e.position)!=null?f:"center"),r.style.setProperty("--v-dialog-ms",`${n}ms`),r.style.setProperty("--v-dialog-layer",String(Je.length*2));let o=document.createElement("div");o.className="v-dialog-backdrop",r.appendChild(o);let i=document.createElement("div");i.className="v-dialog-panel",e.plain&&i.classList.add("is-plain"),e.className&&i.classList.add(...e.className.split(/\s+/).filter(Boolean)),i.setAttribute("role",(m=e.role)!=null?m:"dialog"),i.setAttribute("aria-modal","true"),i.tabIndex=-1,e.labelledBy?i.setAttribute("aria-labelledby",e.labelledBy):e.ariaLabel&&i.setAttribute("aria-label",e.ariaLabel),e.describedBy&&i.setAttribute("aria-describedby",e.describedBy),r.appendChild(i);let s=document.createElement("div");if(s.className="v-dialog-body",e.source){let x=document.createComment(" v-modal ");(h=e.source.parentNode)==null||h.insertBefore(x,e.source),Fl.set(e.source,x),e.source.classList.add("v-dialog-open"),e.source.removeAttribute("hidden"),s.appendChild(e.source)}else e.content&&s.appendChild(e.content);if(i.appendChild(s),e.closable!==!1){let x=document.createElement("button");x.type="button",x.className="v-dialog-x",x.setAttribute("aria-label",it.close),x.innerHTML=Bl.close,x.addEventListener("click",()=>d.close(void 0)),i.appendChild(x)}let a=!1,l=()=>{},c=new Promise(x=>{l=x}),d={id:t,root:r,panel:i,body:s,key:(v=e.key)!=null?v:null,source:(g=e.source)!=null?g:null,closed:c,close(x){if(a)return;a=!0;let T=Je.findIndex(A=>A.handle===d);T>-1&&Je.splice(T,1),jl.delete(r),u.locked&&dy(),Je.length||my(),r.classList.remove("is-open"),r.classList.add("is-closing");let k=()=>{var D;let A=e.source;if(A){let C=Fl.get(A);A.classList.remove("v-dialog-open"),C&&C.parentNode?(C.parentNode.insertBefore(A,C),C.remove()):A.remove(),Fl.delete(A),(A.hasAttribute(`${w.prefix}modal-content`)||A.hasAttribute("data-v-modal-content"))&&A.setAttribute("hidden","")}if(r.remove(),(D=e.onClose)==null||D.call(e,x,d),l(x),e.restoreFocus!==!1){let C=u.previousFocus;C&&typeof C.focus=="function"&&C.isConnected&&C.focus()}};n>0?setTimeout(k,n):k()}},u={handle:d,options:e,previousFocus:document.activeElement,locked:e.lockScroll!==!1};return o.addEventListener("click",()=>{e.closeOnBackdrop!==!1&&d.close(void 0)}),u.locked&&cy(),Je.push(u),jl.set(r,u),py(),document.body.appendChild(r),requestAnimationFrame(()=>{r.classList.add("is-open");let x=vy(e,i);x==null||x.focus()}),(b=e.onOpen)==null||b.call(e,d),d}var Fl=new WeakMap;function vy(e,t){var i;let n=e.initialFocus;if(n instanceof HTMLElement)return n;if(typeof n=="string"){let s=t.querySelector(n);if(s)return s}let r=t.querySelector("[autofocus],[data-autofocus]");return r||((i=Vl(t)[0])!=null?i:t)}function hy(e){if(e instanceof HTMLElement)return e;let t=String(e!=null?e:"").trim();if(!t)return null;let n=/^[\w-]+$/.test(t)?`#${t}`:t;return document.querySelector(n)}function rs(e){return typeof e=="string"?e.trim()||null:e.id?`#${e.id}`:null}function os(e){let t=/^[\w-]+$/.test(e)?`#${e}`:e;return Je.find(n=>{var o;if(n.handle.key===e||n.handle.key===t)return!0;let r=n.handle.source;return!!r&&((o=r.matches)==null?void 0:o.call(r,t))})}var En={open(e,t={}){var s,a;let n=hy(e);if(!n)return console.warn(`[Voodoo] modal.open: target not found (${String(e)}).`),null;let r=(s=rs(e))!=null?s:n.id?`#${n.id}`:null,o=r?os(r):void 0;if(o)return o.handle;let i=n.querySelector("[data-dialog-title],h1,h2,h3");return i&&!i.id&&(i.id=ae("v-dialog-title-")),fp({...t,source:n,key:r,labelledBy:(a=i==null?void 0:i.id)!=null?a:null})},close(e,t){var o;if(e===void 0){(o=Ul())==null||o.handle.close(t);return}let n=rs(e),r=n?os(n):void 0;r==null||r.handle.close(t)},closeAll(e){for(let t of[...Je].reverse())t.handle.close(e)},toggle(e,t={}){let n=rs(e),r=n?os(n):void 0;return r?(r.handle.close(void 0),null):this.open(e,t)},isOpen(e){if(e===void 0)return Je.length>0;let t=rs(e);return!!(t&&os(t))},get opened(){return Je.map(e=>e.handle)},get count(){return Je.length},configure(e){Object.assign(zl,e)},labels(e){return Object.assign(it,e),it}};function hr(e){var a,l;ss();let t=document.createDocumentFragment(),n=e.title?ae("v-dialog-title-"):null,r=e.description?ae("v-dialog-desc-"):null,o=null;if(e.title||e.description||e.icon){o=document.createElement("div"),o.className="v-dialog-head";let c=e.icon&&e.icon!=="none"?e.icon:null;if(c&&Bl[c]){let u=document.createElement("div");u.className="v-dialog-icon",u.setAttribute("aria-hidden","true"),u.setAttribute("data-tone",(a=e.tone)!=null?a:gy(c)),u.innerHTML=Bl[c],o.appendChild(u)}let d=document.createElement("div");if(d.className="v-dialog-heading",e.title){let u=document.createElement("h2");u.className="v-dialog-title",u.id=n,u.textContent=e.title,d.appendChild(u)}if(e.description){let u=document.createElement("p");u.className="v-dialog-desc",u.id=r,u.textContent=e.description,d.appendChild(u)}o.appendChild(d)}let i=document.createDocumentFragment();if(e.text)for(let c of e.text.split(`
|
|
1336
|
+
`)){let d=document.createElement("p");d.textContent=c,i.appendChild(d)}if(e.html){let c=document.createElement("div");for(c.innerHTML=e.html;c.firstChild;)i.appendChild(c.firstChild)}e.node&&i.appendChild(e.node),t.appendChild(i);let s=(l=e.buttons)!=null?l:[{label:it.ok,value:!0,variant:"primary",autofocus:!0}];return new Promise(c=>{var u;let d=fp({...e,content:t,role:e.tone==="danger"?"alertdialog":"dialog",labelledBy:n,describedBy:r,key:null,onClose(p){var f;(f=e.onClose)==null||f.call(e,p,d),c(p===void 0?null:p)}});if(o&&d.panel.insertBefore(o,d.body),s.length){let p=document.createElement("div");p.className="v-dialog-foot";for(let f of s){let m=document.createElement("button");m.type="button",m.className="v-dlg-btn",m.setAttribute("data-variant",(u=f.variant)!=null?u:"secondary"),m.textContent=f.label,f.autofocus&&m.setAttribute("data-autofocus",""),m.addEventListener("click",()=>{var v,g;((v=f.onClick)==null?void 0:v.call(f,d))!==!1&&f.close!==!1&&d.close((g=f.value)!=null?g:null)}),p.appendChild(m)}d.panel.appendChild(p)}d.body.childNodes.length||d.body.remove()})}function gy(e){return e==="success"||e==="warning"||e==="danger"?e:"default"}function Wl(e,t={}){var n;return hr({icon:"info",size:"sm",...t,text:e,buttons:[{label:(n=t.confirmLabel)!=null?n:it.ok,value:!0,variant:t.tone==="danger"?"danger":"primary",autofocus:!0}]}).then(()=>{})}function as(e,t={}){var r,o,i;let n=t.danger?"danger":(r=t.tone)!=null?r:"default";return hr({icon:n==="danger"?"warning":"question",size:"sm",...t,tone:n,text:e,buttons:[{label:(o=t.cancelLabel)!=null?o:it.cancel,value:!1,variant:"secondary"},{label:(i=t.confirmLabel)!=null?i:it.confirm,value:!0,variant:n==="danger"?"danger":"primary",autofocus:!0}]}).then(s=>s===!0)}function _l(e,t={}){var m,h,v,g;ss();let n=(m=t.type)!=null?m:"text",r=ae("v-prompt-"),o=`${r}-hint`,i=`${r}-error`,s=document.createElement("div");s.className="v-dialog-field";let a=document.createElement("label");a.className="v-dialog-label",a.htmlFor=r,a.textContent=e,s.appendChild(a);let l=n==="textarea"?document.createElement("textarea"):document.createElement("input");if(l.className="v-dialog-input",l.id=r,l instanceof HTMLInputElement&&(l.type=n==="textarea"?"text":n),l.value=(h=t.value)!=null?h:"",t.placeholder&&(l.placeholder=t.placeholder),t.required&&(l.required=!0),l.setAttribute("data-autofocus",""),s.appendChild(l),t.hint){let b=document.createElement("p");b.className="v-dialog-hint",b.id=o,b.textContent=t.hint,s.appendChild(b),l.setAttribute("aria-describedby",o)}let c=document.createElement("p");c.className="v-dialog-error",c.id=i,c.hidden=!0,c.setAttribute("role","alert"),s.appendChild(c);let d=()=>n==="number"?l.value.trim():l.value,u=b=>{var k,A;let x=d(),T=null;return t.required&&!x.trim()?T=it.required:T=(A=(k=t.validate)==null?void 0:k.call(t,x))!=null?A:null,T?(c.textContent=T,c.hidden=!1,l.setAttribute("aria-invalid","true"),l.setAttribute("aria-describedby",i),l.focus(),!1):(c.hidden=!0,l.removeAttribute("aria-invalid"),b.close(x),!0)},p=null;return l.addEventListener("keydown",b=>{let x=b;x.key==="Enter"&&(n==="textarea"&&!x.ctrlKey&&!x.metaKey||(b.preventDefault(),p&&u(p)))}),hr({icon:"question",size:"sm",...t,node:s,text:void 0,buttons:[{label:(v=t.cancelLabel)!=null?v:it.cancel,value:null,variant:"secondary"},{label:(g=t.confirmLabel)!=null?g:it.confirm,variant:"primary",close:!1,onClick(b){return p=b,u(b),!1}}],onOpen(b){var x;p=b,(x=t.onOpen)==null||x.call(t,b)}}).then(b=>typeof b=="string"?b:null)}y("modal",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();e.setAttribute("aria-haspopup","dialog");let i=s=>{if(s.preventDefault(),n.close){En.close(o||void 0);return}if(n.toggle){o&&En.toggle(o);return}o&&En.open(o)};e.addEventListener("click",i),r(()=>e.removeEventListener("click",i))});y("modal-content",({el:e})=>{ss(),e.id||(e.id=ae("v-modal-")),e.classList.contains("v-dialog-open")||e.setAttribute("hidden","")},{priority:j.REF});y("modal-close",({el:e,expression:t,cleanup:n})=>{let r=o=>{o.preventDefault();let i=e.closest(".v-dialog-root"),s=i?jl.get(i):void 0;s?s.handle.close(t.trim()||void 0):En.close(void 0,t.trim()||void 0)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});var Il=!1;y("confirm",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim()||it.confirmQuestion,i=s=>{var u,p,f;if(Il)return;s.preventDefault(),s.stopImmediatePropagation();let a=s.target instanceof HTMLElement?s.target:e,l=(u=ke(e,`${w.prefix}confirm-title`))!=null?u:void 0,c=(p=ke(e,`${w.prefix}confirm-label`))!=null?p:void 0,d=(f=ke(e,`${w.prefix}confirm-cancel`))!=null?f:void 0;as(o,{title:l,confirmLabel:c,cancelLabel:d,danger:!!n.danger,size:"sm"}).then(m=>{if(m){Il=!0;try{a.click()}finally{Il=!1}}})};e.addEventListener("click",i,!0),r(()=>e.removeEventListener("click",i,!0))},{priority:j.REF});P("$modal",()=>En);P("$dialog",()=>hr);P("$alert",()=>Wl);P("$confirm",()=>as);P("$prompt",()=>_l);be();le();var yo=new Map;function Te(e,t){yo.set(e.trim().toLowerCase(),t)}var by={9:/\d/,A:/[A-Za-zÀ-ÖØ-öø-ÿ]/,S:/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,"*":/[\s\S]/},yy=/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,vp=new Set(["currency","percent"]);function kn(e,t){let n="",r=0;for(let o=0;o<t.length;o++){let i=t[o];if(i==="\\"){let a=t[++o];if(a===void 0||r>=e.length)break;n+=a;continue}let s=by[i];if(s){for(;r<e.length&&!s.test(e[r]);)r++;if(r>=e.length)break;n+=e[r++];continue}if(r>=e.length)break;e[r]===i&&r++,n+=i}return n}function cs(e,t={}){var h,v,g,b,x;let n=Math.max(0,Math.trunc((h=t.decimals)!=null?h:2)),r=(v=t.decimal)!=null?v:",",o=(g=t.thousands)!=null?g:".",i=(b=t.prefix)!=null?b:"R$ ",s=(x=t.suffix)!=null?x:"",a=String(e!=null?e:""),l=a.trim().startsWith("-"),c=a.replace(/\D/g,"").slice(0,15);if(!c)return"";let d=c.padStart(n+1,"0"),u=n?d.slice(0,d.length-n):d,p=n?d.slice(d.length-n):"",m=u.replace(/^0+(?=\d)/,"").replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${l?"-":""}${i}${m}${n?r+p:""}${s}`}function hp(e,t=2){return cs(e,{prefix:"",suffix:"%",decimals:t})}Te("cpf","999.999.999-99");Te("cnpj","99.999.999/9999-99");Te("cep","99999-999");Te("date","99/99/9999");Te("time","99:99");Te("datetime","99/99/9999 99:99");Te("cvv","9999");Te("cpfcnpj",e=>{let t=e.replace(/\D/g,"");return kn(t,t.length<=11?"999.999.999-99":"99.999.999/9999-99")});Te("phone",e=>{let t=e.replace(/\D/g,"").slice(0,11);return kn(t,t.length<=10?"(99) 9999-9999":"(99) 99999-9999")});Te("currency",e=>cs(e));Te("percent",e=>hp(e));Te("card",e=>{let t=e.replace(/\D/g,"").slice(0,19);return/^3[47]/.test(t)?kn(t,"9999 999999 99999"):t.length>16?kn(t,"9999 9999 9999 9999 999"):kn(t,"9999 9999 9999 9999")});Te("plate",e=>{let t=e.replace(/[^0-9A-Za-z]/g,"").toUpperCase().slice(0,7),n=t.length>=5&&/\d/.test(t[4]);return kn(t,n?"AAA-9999":"AAA9A99")});Te("hex",e=>{let t=e.replace(/[^0-9a-fA-F]/g,"").toUpperCase().slice(0,6);return t?`#${t}`:""});Te("ip",e=>{let t=e.replace(/[^\d.]/g,"").split(".").slice(0,4),n=[];for(let r of t){if(r===""){n.push("");continue}let o=Math.min(255,Number(r.slice(0,3)));n.push(String(o))}return n.join(".")});function bo(e,t){let n=e==null?"":String(e);if(!t)return n;let r=yo.get(t.trim().toLowerCase());return typeof r=="function"?r(n):kn(n,typeof r=="string"?r:t)}function ds(e,t){let n=e==null?"":String(e),r=t?t.trim().toLowerCase():"";if(r&&vp.has(r)){let o=n.trim().startsWith("-"),i=n.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!i)return"";let s=i.padStart(3,"0"),a=`${s.slice(0,s.length-2)}.${s.slice(s.length-2)}`;return o?`-${a}`:a}return n.replace(/[^0-9A-Za-zÀ-ÖØ-öø-ÿ]/g,"")}var gp=Object.assign((e,t)=>bo(e,t),{apply:bo,unmask:ds,register:Te,currency:cs,percent:hp,presets:yo});function ls(e){return e!==void 0&&yy.test(e)}function pp(e,t){let n=0,r=Math.min(t,e.length);for(let o=0;o<r;o++)ls(e[o])&&n++;return n}function mp(e,t){if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(ls(e[r])&&(n++,n===t))return r+1;return e.length}var Kl=new WeakSet;function bp(e,t,n){var m;if(Kl.has(e))return;Kl.add(e);let r=Object.getPrototypeOf(e),o=(m=Object.getOwnPropertyDescriptor(r,"value"))!=null?m:Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),i=o==null?void 0:o.get,s=o==null?void 0:o.set,a=()=>{var h;return String(i?i.call(e):(h=e.getAttribute("value"))!=null?h:"")},l=h=>{s?s.call(e,h):e.setAttribute("value",h)},c=h=>{try{e.setSelectionRange(h,h)}catch(v){}};i&&s&&(Object.defineProperty(e,"value",{configurable:!0,enumerable:!0,get(){let h=String(i.call(e));return t.clean?t.clean(h):h},set(h){s.call(e,t.format(h==null?"":String(h)))}}),n(()=>{let h=a();Reflect.deleteProperty(e,"value"),l(h)}));let d=()=>{var x,T;let h=a(),v=(x=e.selectionStart)!=null?x:h.length,g=pp(h,v),b=t.format(h);b!==h&&l(b),t.rightToLeft?c(Math.max(0,b.length-((T=t.suffixLength)!=null?T:0))):c(mp(b,g))},u=()=>d(),p=h=>{var A,D;if(h.key!=="Backspace")return;let v=(A=e.selectionStart)!=null?A:0,g=(D=e.selectionEnd)!=null?D:0;if(v!==g||v===0)return;let b=a();if(ls(b[v-1]))return;let x=v-1;for(;x>=0&&!ls(b[x]);)x--;if(h.preventDefault(),x<0)return;let T=b.slice(0,x)+b.slice(v),k=pp(T,x);l(t.format(T)),c(mp(a(),k)),e.dispatchEvent(new Event("input",{bubbles:!0}))};e.addEventListener("input",u),e.addEventListener("keydown",p),n(()=>{Kl.delete(e),e.removeEventListener("input",u),e.removeEventListener("keydown",p)});let f=a();f&&l(t.format(f))}function yp(e,t){if(e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA")return Y(`${w.prefix}${t} only works on input or textarea.`),null;let n=e,r=(n.getAttribute("type")||"text").toLowerCase();return r==="number"||r==="range"||r==="date"||r==="color"?(Y(`${w.prefix}${t} doesn't work with input type="${r}". Use type="text".`),null):n}y("mask",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=yp(e,"mask");if(!o)return;let i=t.trim();if(!i){Y(`${w.prefix}mask needs a pattern or mask name.`);return}let s=i.toLowerCase(),a=!!n.unmask||!!n.raw;bp(o,{format:l=>bo(l,i),clean:a?l=>ds(l,s):void 0,rightToLeft:vp.has(s),suffixLength:s==="percent"?1:0},r)},{priority:j.MODEL+5});y("mask-currency",({el:e,expression:t,modifiers:n,cleanup:r})=>{var p,f,m,h;let o=yp(e,"mask-currency");if(!o)return;let i=v=>{var g;return(g=e.getAttribute(`${w.prefix}${v}`))!=null?g:e.getAttribute(`data-v-${v}`)},s=(p=typeof n.decimals=="string"?n.decimals:null)!=null?p:i("mask-decimals"),a=s!==null&&s!==""?Number(s):2,l=t.trim()?t:"",c={prefix:n.plain?"":l||i("mask-prefix")||"R$ ",suffix:(f=i("mask-suffix"))!=null?f:"",decimals:Number.isFinite(a)?a:2,decimal:n.dot?".":",",thousands:n.dot?",":"."},d=!!n.unmask||!!n.raw,u=(m=c.decimals)!=null?m:2;bp(o,{format:v=>cs(v,c),clean:d?v=>{let g=v.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!g)return"";if(u===0)return g;let b=g.padStart(u+1,"0"),x=`${b.slice(0,b.length-u)}.${b.slice(b.length-u)}`;return v.trim().startsWith("-")?`-${x}`:x}:void 0,rightToLeft:!0,suffixLength:((h=c.suffix)!=null?h:"").length},r)},{priority:j.MODEL+5});le();He();var Eo="v-xray-flash",Tp=200,xy=400,We=!1,xp=!1,U=null,Ze="estado",Tn="auto",br=[],yr=[],Gt=new Map,ps=new Set,wo=new Map,ko=[],Yl=new WeakMap,we={effects:0,mutations:0,effectsPerSecond:0,updatesPerSecond:0,history:[]},yt=[],us=0,fs=0,xr=0,wr=0,xo=null,wy=`
|
|
1337
|
+
.v-xray-root{
|
|
1338
|
+
all: initial;
|
|
1339
|
+
--vx-accent:#6D3BF5;
|
|
1340
|
+
--vx-accent-2:#FF3D8B;
|
|
1341
|
+
--vx-bg:#ffffff;
|
|
1342
|
+
--vx-bg-2:#F6F3FC;
|
|
1343
|
+
--vx-text:#14111F;
|
|
1344
|
+
--vx-muted:#6B6580;
|
|
1345
|
+
--vx-border:#E6E0F0;
|
|
1346
|
+
--vx-shadow:0 12px 40px rgba(20,17,31,.22);
|
|
1347
|
+
position:fixed;
|
|
1348
|
+
inset:0;
|
|
1349
|
+
z-index:2147483000;
|
|
1350
|
+
pointer-events:none;
|
|
1351
|
+
font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
|
|
1352
|
+
font-size:12px;
|
|
1353
|
+
line-height:1.45;
|
|
1354
|
+
color:var(--vx-text);
|
|
1355
|
+
-webkit-font-smoothing:antialiased;
|
|
1356
|
+
}
|
|
1357
|
+
@media (prefers-color-scheme: dark){
|
|
1358
|
+
.v-xray-root:not([data-v-xray-theme="light"]){
|
|
1359
|
+
--vx-bg:#1C1830;
|
|
1360
|
+
--vx-bg-2:#14111F;
|
|
1361
|
+
--vx-text:#F4F1FB;
|
|
1362
|
+
--vx-muted:#A9A2C4;
|
|
1363
|
+
--vx-border:#332C50;
|
|
1364
|
+
--vx-shadow:0 12px 40px rgba(0,0,0,.55);
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
.v-xray-root[data-v-xray-theme="dark"]{
|
|
1368
|
+
--vx-bg:#1C1830;
|
|
1369
|
+
--vx-bg-2:#14111F;
|
|
1370
|
+
--vx-text:#F4F1FB;
|
|
1371
|
+
--vx-muted:#A9A2C4;
|
|
1372
|
+
--vx-border:#332C50;
|
|
1373
|
+
--vx-shadow:0 12px 40px rgba(0,0,0,.55);
|
|
1374
|
+
}
|
|
1375
|
+
.v-xray-root *,.v-xray-root *::before,.v-xray-root *::after{
|
|
1376
|
+
box-sizing:border-box;
|
|
1377
|
+
margin:0;
|
|
1378
|
+
padding:0;
|
|
1379
|
+
border:0;
|
|
1380
|
+
outline:0;
|
|
1381
|
+
background:transparent;
|
|
1382
|
+
font:inherit;
|
|
1383
|
+
color:inherit;
|
|
1384
|
+
text-align:left;
|
|
1385
|
+
text-transform:none;
|
|
1386
|
+
letter-spacing:normal;
|
|
1387
|
+
list-style:none;
|
|
1388
|
+
text-decoration:none;
|
|
1389
|
+
min-width:0;
|
|
1390
|
+
float:none;
|
|
1391
|
+
}
|
|
1392
|
+
.v-xray-box{
|
|
1393
|
+
position:absolute;
|
|
1394
|
+
border:1px dashed rgba(109,59,245,.85);
|
|
1395
|
+
border-radius:4px;
|
|
1396
|
+
background:rgba(109,59,245,.06);
|
|
1397
|
+
pointer-events:none;
|
|
1398
|
+
}
|
|
1399
|
+
.v-xray-box[data-kind="component"]{
|
|
1400
|
+
border-color:rgba(46,217,165,.9);
|
|
1401
|
+
background:rgba(46,217,165,.07);
|
|
1402
|
+
}
|
|
1403
|
+
.v-xray-tag{
|
|
1404
|
+
position:absolute;
|
|
1405
|
+
top:-16px;
|
|
1406
|
+
left:-1px;
|
|
1407
|
+
max-width:280px;
|
|
1408
|
+
overflow:hidden;
|
|
1409
|
+
text-overflow:ellipsis;
|
|
1410
|
+
white-space:nowrap;
|
|
1411
|
+
padding:1px 5px;
|
|
1412
|
+
border-radius:4px;
|
|
1413
|
+
background:#6D3BF5;
|
|
1414
|
+
color:#fff;
|
|
1415
|
+
font-size:10px;
|
|
1416
|
+
font-weight:600;
|
|
1417
|
+
}
|
|
1418
|
+
.v-xray-box[data-kind="component"] .v-xray-tag{background:#159C77}
|
|
1419
|
+
.v-xray-card{
|
|
1420
|
+
position:absolute;
|
|
1421
|
+
display:none;
|
|
1422
|
+
width:320px;
|
|
1423
|
+
max-height:60vh;
|
|
1424
|
+
overflow:auto;
|
|
1425
|
+
padding:10px 12px;
|
|
1426
|
+
border:1px solid var(--vx-border);
|
|
1427
|
+
border-radius:10px;
|
|
1428
|
+
background:var(--vx-bg);
|
|
1429
|
+
box-shadow:var(--vx-shadow);
|
|
1430
|
+
pointer-events:none;
|
|
1431
|
+
}
|
|
1432
|
+
.v-xray-card[data-open="1"]{display:block}
|
|
1433
|
+
.v-xray-card-title{
|
|
1434
|
+
display:block;
|
|
1435
|
+
margin-bottom:6px;
|
|
1436
|
+
font-size:12px;
|
|
1437
|
+
font-weight:700;
|
|
1438
|
+
color:var(--vx-accent);
|
|
1439
|
+
}
|
|
1440
|
+
.v-xray-section{
|
|
1441
|
+
display:block;
|
|
1442
|
+
margin-top:8px;
|
|
1443
|
+
padding-top:6px;
|
|
1444
|
+
border-top:1px solid var(--vx-border);
|
|
1445
|
+
font-size:10px;
|
|
1446
|
+
font-weight:700;
|
|
1447
|
+
text-transform:uppercase;
|
|
1448
|
+
color:var(--vx-muted);
|
|
1449
|
+
}
|
|
1450
|
+
.v-xray-panel{
|
|
1451
|
+
position:absolute;
|
|
1452
|
+
right:16px;
|
|
1453
|
+
bottom:16px;
|
|
1454
|
+
display:flex;
|
|
1455
|
+
flex-direction:column;
|
|
1456
|
+
width:400px;
|
|
1457
|
+
max-width:calc(100vw - 32px);
|
|
1458
|
+
max-height:70vh;
|
|
1459
|
+
border:1px solid var(--vx-border);
|
|
1460
|
+
border-radius:12px;
|
|
1461
|
+
background:var(--vx-bg);
|
|
1462
|
+
box-shadow:var(--vx-shadow);
|
|
1463
|
+
pointer-events:auto;
|
|
1464
|
+
overflow:hidden;
|
|
1465
|
+
}
|
|
1466
|
+
.v-xray-header{
|
|
1467
|
+
display:flex;
|
|
1468
|
+
align-items:center;
|
|
1469
|
+
gap:8px;
|
|
1470
|
+
padding:8px 10px;
|
|
1471
|
+
border-bottom:1px solid var(--vx-border);
|
|
1472
|
+
background:var(--vx-bg-2);
|
|
1473
|
+
}
|
|
1474
|
+
.v-xray-brand{
|
|
1475
|
+
flex:1;
|
|
1476
|
+
font-size:12px;
|
|
1477
|
+
font-weight:700;
|
|
1478
|
+
letter-spacing:.02em;
|
|
1479
|
+
}
|
|
1480
|
+
.v-xray-dot{
|
|
1481
|
+
display:inline-block;
|
|
1482
|
+
width:8px;
|
|
1483
|
+
height:8px;
|
|
1484
|
+
margin-right:6px;
|
|
1485
|
+
border-radius:50%;
|
|
1486
|
+
background:linear-gradient(135deg,#6D3BF5,#FF3D8B);
|
|
1487
|
+
}
|
|
1488
|
+
.v-xray-btn{
|
|
1489
|
+
padding:3px 8px;
|
|
1490
|
+
border:1px solid var(--vx-border);
|
|
1491
|
+
border-radius:6px;
|
|
1492
|
+
background:var(--vx-bg);
|
|
1493
|
+
color:var(--vx-muted);
|
|
1494
|
+
font-size:11px;
|
|
1495
|
+
cursor:pointer;
|
|
1496
|
+
}
|
|
1497
|
+
.v-xray-btn:hover{color:var(--vx-text);border-color:var(--vx-accent)}
|
|
1498
|
+
.v-xray-tabs{
|
|
1499
|
+
display:flex;
|
|
1500
|
+
flex-wrap:wrap;
|
|
1501
|
+
gap:2px;
|
|
1502
|
+
padding:6px 8px;
|
|
1503
|
+
border-bottom:1px solid var(--vx-border);
|
|
1504
|
+
}
|
|
1505
|
+
.v-xray-tab{
|
|
1506
|
+
padding:3px 8px;
|
|
1507
|
+
border-radius:99px;
|
|
1508
|
+
color:var(--vx-muted);
|
|
1509
|
+
font-size:11px;
|
|
1510
|
+
cursor:pointer;
|
|
1511
|
+
}
|
|
1512
|
+
.v-xray-tab:hover{color:var(--vx-text)}
|
|
1513
|
+
.v-xray-tab[data-active="1"]{
|
|
1514
|
+
background:var(--vx-accent);
|
|
1515
|
+
color:#fff;
|
|
1516
|
+
font-weight:600;
|
|
1517
|
+
}
|
|
1518
|
+
.v-xray-body{
|
|
1519
|
+
flex:1;
|
|
1520
|
+
overflow:auto;
|
|
1521
|
+
padding:8px 10px 12px;
|
|
1522
|
+
}
|
|
1523
|
+
.v-xray-status{
|
|
1524
|
+
padding:5px 10px;
|
|
1525
|
+
border-top:1px solid var(--vx-border);
|
|
1526
|
+
background:var(--vx-bg-2);
|
|
1527
|
+
color:var(--vx-muted);
|
|
1528
|
+
font-size:10px;
|
|
1529
|
+
}
|
|
1530
|
+
.v-xray-group{
|
|
1531
|
+
display:block;
|
|
1532
|
+
margin-bottom:8px;
|
|
1533
|
+
border:1px solid var(--vx-border);
|
|
1534
|
+
border-radius:8px;
|
|
1535
|
+
overflow:hidden;
|
|
1536
|
+
}
|
|
1537
|
+
.v-xray-group-head{
|
|
1538
|
+
display:flex;
|
|
1539
|
+
align-items:center;
|
|
1540
|
+
gap:6px;
|
|
1541
|
+
padding:5px 8px;
|
|
1542
|
+
background:var(--vx-bg-2);
|
|
1543
|
+
font-size:11px;
|
|
1544
|
+
font-weight:600;
|
|
1545
|
+
cursor:pointer;
|
|
1546
|
+
}
|
|
1547
|
+
.v-xray-badge{
|
|
1548
|
+
padding:0 5px;
|
|
1549
|
+
border-radius:99px;
|
|
1550
|
+
background:var(--vx-accent);
|
|
1551
|
+
color:#fff;
|
|
1552
|
+
font-size:9px;
|
|
1553
|
+
font-weight:700;
|
|
1554
|
+
}
|
|
1555
|
+
.v-xray-badge[data-tone="alt"]{background:var(--vx-accent-2)}
|
|
1556
|
+
.v-xray-badge[data-tone="mute"]{background:var(--vx-muted)}
|
|
1557
|
+
.v-xray-rows{display:block;padding:4px 8px 6px}
|
|
1558
|
+
.v-xray-row{
|
|
1559
|
+
display:flex;
|
|
1560
|
+
align-items:center;
|
|
1561
|
+
gap:6px;
|
|
1562
|
+
padding:2px 0;
|
|
1563
|
+
}
|
|
1564
|
+
.v-xray-key{
|
|
1565
|
+
flex:0 0 38%;
|
|
1566
|
+
overflow:hidden;
|
|
1567
|
+
text-overflow:ellipsis;
|
|
1568
|
+
white-space:nowrap;
|
|
1569
|
+
color:var(--vx-muted);
|
|
1570
|
+
font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
|
|
1571
|
+
font-size:11px;
|
|
1572
|
+
}
|
|
1573
|
+
.v-xray-val{
|
|
1574
|
+
flex:1;
|
|
1575
|
+
overflow:hidden;
|
|
1576
|
+
text-overflow:ellipsis;
|
|
1577
|
+
white-space:nowrap;
|
|
1578
|
+
font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
|
|
1579
|
+
font-size:11px;
|
|
1580
|
+
}
|
|
1581
|
+
.v-xray-input{
|
|
1582
|
+
flex:1;
|
|
1583
|
+
padding:2px 5px;
|
|
1584
|
+
border:1px solid var(--vx-border);
|
|
1585
|
+
border-radius:5px;
|
|
1586
|
+
background:var(--vx-bg-2);
|
|
1587
|
+
color:var(--vx-text);
|
|
1588
|
+
font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
|
|
1589
|
+
font-size:11px;
|
|
1590
|
+
cursor:text;
|
|
1591
|
+
}
|
|
1592
|
+
.v-xray-input:focus{border-color:var(--vx-accent)}
|
|
1593
|
+
.v-xray-input[data-error="1"]{border-color:#FF4D4D}
|
|
1594
|
+
.v-xray-empty{
|
|
1595
|
+
display:block;
|
|
1596
|
+
padding:14px 4px;
|
|
1597
|
+
color:var(--vx-muted);
|
|
1598
|
+
text-align:center;
|
|
1599
|
+
}
|
|
1600
|
+
.v-xray-log{
|
|
1601
|
+
display:flex;
|
|
1602
|
+
gap:6px;
|
|
1603
|
+
padding:3px 4px;
|
|
1604
|
+
border-bottom:1px solid var(--vx-border);
|
|
1605
|
+
font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
|
|
1606
|
+
font-size:10px;
|
|
1607
|
+
}
|
|
1608
|
+
.v-xray-log-time{flex:0 0 58px;color:var(--vx-muted)}
|
|
1609
|
+
.v-xray-log-main{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1610
|
+
.v-xray-ok{color:#159C77}
|
|
1611
|
+
.v-xray-fail{color:#FF4D4D}
|
|
1612
|
+
.v-xray-metric{
|
|
1613
|
+
display:flex;
|
|
1614
|
+
align-items:baseline;
|
|
1615
|
+
gap:8px;
|
|
1616
|
+
padding:4px 0;
|
|
1617
|
+
}
|
|
1618
|
+
.v-xray-metric-value{font-size:20px;font-weight:700;color:var(--vx-accent)}
|
|
1619
|
+
.v-xray-chart{
|
|
1620
|
+
display:flex;
|
|
1621
|
+
align-items:flex-end;
|
|
1622
|
+
gap:2px;
|
|
1623
|
+
height:56px;
|
|
1624
|
+
margin-top:8px;
|
|
1625
|
+
padding:4px;
|
|
1626
|
+
border:1px solid var(--vx-border);
|
|
1627
|
+
border-radius:8px;
|
|
1628
|
+
background:var(--vx-bg-2);
|
|
1629
|
+
}
|
|
1630
|
+
.v-xray-bar{
|
|
1631
|
+
flex:1;
|
|
1632
|
+
min-height:2px;
|
|
1633
|
+
border-radius:2px 2px 0 0;
|
|
1634
|
+
background:linear-gradient(180deg,#FF3D8B,#6D3BF5);
|
|
1635
|
+
}
|
|
1636
|
+
.v-xray-hint{display:block;margin-top:6px;color:var(--vx-muted);font-size:10px}
|
|
1637
|
+
@keyframes v-xray-pulse{
|
|
1638
|
+
0%{box-shadow:0 0 0 2px rgba(255,61,139,.95),0 0 16px rgba(255,61,139,.5)}
|
|
1639
|
+
100%{box-shadow:0 0 0 2px rgba(255,61,139,0),0 0 0 rgba(255,61,139,0)}
|
|
1640
|
+
}
|
|
1641
|
+
.${Eo}{animation:v-xray-pulse .45s ease-out}
|
|
1642
|
+
@media (prefers-reduced-motion: reduce){
|
|
1643
|
+
.${Eo}{animation:none;outline:2px solid rgba(255,61,139,.9)}
|
|
1644
|
+
}
|
|
1645
|
+
@media (max-width: 640px){
|
|
1646
|
+
.v-xray-panel{right:8px;left:8px;width:auto;max-height:60vh}
|
|
1647
|
+
}
|
|
1648
|
+
`;function M(e,t,n){let r=document.createElement(e);return t&&(r.className=t),n!==void 0&&(r.textContent=n),r}function vs(e){if(!e||!U)return!1;let t=e.nodeType===1?e:e.parentElement;return!!t&&U.root.contains(t)}function Er(e){if(!e)return"(no element)";let t=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",r=typeof e.className=="string"&&e.className?`.${e.className.trim().split(/\s+/).slice(0,2).join(".")}`:"";return`${t}${n}${r}`}function Lp(e,t=64){var r;if(e===null)return"null";if(e===void 0)return"undefined";let n=typeof e;if(n==="function")return"function()";if(n==="string")return`"${Go(e,t)}"`;if(n==="number"||n==="boolean"||n==="symbol")return String(e);if(typeof Element!="undefined"&&e instanceof Element)return`<${e.tagName.toLowerCase()}>`;try{return Go((r=JSON.stringify(e))!=null?r:String(e),t)}catch(o){return String(e)}}function Ey(e){var t;if(typeof e=="string")return e;try{return(t=JSON.stringify(e))!=null?t:""}catch(n){return String(e)}}function ky(e,t){if(typeof t=="string")return e;try{return JSON.parse(e)}catch(n){return e}}function Mp(e){let t=new Date(e),n=r=>String(r).padStart(2,"0");return`${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`}function Sp(e,t){for(let n of e.effects)t.push(n);for(let n of e.children)Sp(n,t)}function Gl(e){let t=[];for(let n of Yc(e))Sp(n,t);return t}function Ap(e){let t=Gl(e).length;for(let n of Array.from(e.childNodes))n.nodeType===3&&(t+=Gl(n).length);return t}function Cp(e){if(!e||!We||vs(e))return;let t=wo.get(e);t&&window.clearTimeout(t),ps.add(e),e.classList.add(Eo);let n=window.setTimeout(()=>{e.classList.remove(Eo),wo.delete(e),window.setTimeout(()=>ps.delete(e),0)},460);wo.set(e,n)}function wp(e,t){for(let n of Gl(e)){if(Gt.has(n))continue;let r=n.fn;Gt.set(n,r),n.fn=()=>(we.effects++,Cp(t),r())}}function Ty(){for(let[e,t]of Gt)e.fn=t;Gt.clear()}function Rp(){if(!We||typeof document=="undefined")return;for(let[n]of Gt)n.active||Gt.delete(n);let e=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT),t=e.currentNode;for(;t;){if(t.nodeType===1){let n=t;if(U&&U.root.contains(n)){t=Ly(e);continue}wp(n,n)}else t.nodeType===3&&t.parentElement&&wp(t,t.parentElement);t=e.nextNode()}Ay()}function Ly(e){let t=e.currentNode,n=e.nextSibling();if(n)return n;let r=e.parentNode();for(;r;){if(n=e.nextSibling(),n)return n;r=e.parentNode()}return e.currentNode=t,null}function My(){let e=[],t=document.body.querySelectorAll("*");for(let n=0;n<t.length&&e.length<xy;n++){let r=t[n];U&&U.root.contains(r)||Ys(r)&&e.push(r)}return e}function Sy(e){return Dn(e).map(t=>t.arg?`${t.name}:${t.arg}`:t.name)}function Ay(){var t;if(!We||!U)return;let e=U.overlay;e.textContent="",ko.length=0;for(let n of My()){let r=M("div","v-xray-box"),o=!!((t=Lt(n))!=null&&t.component);r.dataset.kind=o?"component":"directive";let i=M("span","v-xray-tag",Sy(n).join(" "));r.appendChild(i),e.appendChild(r),ko.push({el:n,box:r})}Zl()}function Zl(){if(We)for(let e of ko){if(!e.el.isConnected){e.box.style.display="none";continue}let t=e.el.getBoundingClientRect();if(t.width===0&&t.height===0){e.box.style.display="none";continue}e.box.style.display="block",e.box.style.left=`${t.left}px`,e.box.style.top=`${t.top}px`,e.box.style.width=`${t.width}px`,e.box.style.height=`${t.height}px`}}function Cy(){wr||(wr=requestAnimationFrame(()=>{wr=0,Zl()}))}function Ry(e,t=40){let n=new Set,r=[],o=e;for(;o&&r.length<t;){let i=[];try{i=Object.keys(o.data)}catch(s){i=[]}for(let s of i){if(n.has(s))continue;n.add(s);let a;try{a=o.data[s]}catch(l){a="(read error)"}if(r.push([s,a]),r.length>=t)break}o=o.parent}return r}function $y(e){var s;if(!U)return;let t=U.card;t.textContent="";let n=Ve(e),r=(s=n.owner)==null?void 0:s.component;t.appendChild(M("strong","v-xray-card-title",Er(e))),t.appendChild(M("span","v-xray-section","Directives"));let o=Dn(e);if(!o.length)t.appendChild(M("div","v-xray-val","none"));else for(let a of o){let l=M("div","v-xray-row");l.appendChild(M("span","v-xray-key",a.raw)),l.appendChild(M("span","v-xray-val",a.expression||"(no value)")),t.appendChild(l)}t.appendChild(M("span","v-xray-section","Component")),t.appendChild(M("div","v-xray-val",r?`${r.$name} in ${Er(r.$el)}`:"none")),t.appendChild(M("span","v-xray-section","Scope"));let i=Ry(n);if(!i.length)t.appendChild(M("div","v-xray-val","root scope empty"));else for(let[a,l]of i){let c=M("div","v-xray-row");c.appendChild(M("span","v-xray-key",a)),c.appendChild(M("span","v-xray-val",Lp(l))),t.appendChild(c)}t.appendChild(M("span","v-xray-section","Reactivity")),t.appendChild(M("div","v-xray-val",`${Ap(e)} effect(s) depend on this element`))}function Dy(e,t){if(!U)return;let n=U.card,r=320,o=Math.min(n.scrollHeight||200,window.innerHeight*.6),i=e+16+r>window.innerWidth?Math.max(8,e-r-16):e+16,s=t+16+o>window.innerHeight?Math.max(8,t-o-16):t+16;n.style.left=`${i}px`,n.style.top=`${s}px`}function Ep(e){if(!We||!U)return;let t=e.target;if(!t||vs(t)){U.card.dataset.open="0",xo=null;return}let n=t;for(;n&&n!==document.body&&!Ys(n);)n=n.parentElement;if(!n||n===document.body){U.card.dataset.open="0",xo=null;return}n!==xo&&(xo=n,$y(n)),U.card.dataset.open="1",Dy(e.clientX,e.clientY)}function Hy(){let e=new Map,t=document.body.querySelectorAll("*");for(let r=0;r<t.length;r++){let o=t[r];if(U&&U.root.contains(o))continue;let i=Lt(o);i&&e.set(o,i)}let n=[];for(let[r,o]of e){let i=0,s=r.parentElement;for(;s;)e.has(s)&&i++,s=s.parentElement;n.push({el:r,scope:o,depth:i})}return n}function ms(e,t,n){let r=M("div","v-xray-row");if(r.appendChild(M("span","v-xray-key",e)),typeof t=="function")return r.appendChild(M("span","v-xray-val","function()")),r;let o=M("input","v-xray-input");return o.type="text",o.value=Ey(t),o.spellcheck=!1,o.addEventListener("change",()=>{try{n(ky(o.value,t)),o.dataset.error="0"}catch(i){o.dataset.error="1"}}),o.addEventListener("keydown",i=>{i.key==="Enter"&&o.blur()}),r.appendChild(o),r}function Py(){let e=document.createDocumentFragment(),t=Hy();if(!t.length)return e.appendChild(M("span","v-xray-empty","No scopes on the page. Use v-data or a component.")),e;for(let n of t){let r=M("div","v-xray-group");r.style.marginLeft=`${Math.min(n.depth,4)*8}px`;let o=M("div","v-xray-group-head");o.appendChild(M("span","v-xray-badge",n.scope.component?"component":"scope")),o.appendChild(M("span",void 0,Er(n.el))),o.addEventListener("click",()=>Dp(n.el)),r.appendChild(o);let i=M("div","v-xray-rows"),s=[];try{s=Object.keys(n.scope.data)}catch(a){s=[]}if(!s.length)i.appendChild(M("span","v-xray-empty","no variables"));else for(let a of s){let l;try{l=n.scope.data[a]}catch(c){l=void 0}i.appendChild(ms(a,l,c=>{n.scope.set(a,c)}))}r.appendChild(i),e.appendChild(r)}return e}function Oy(){var n;let e=document.createDocumentFragment(),t=[...Mt];if(!t.length)return e.appendChild(M("span","v-xray-empty","No components mounted.")),e;for(let r of t){let o=M("div","v-xray-group"),i=M("div","v-xray-group-head");i.appendChild(M("span","v-xray-badge",r.$name)),i.appendChild(M("span",void 0,Er(r.$el))),i.appendChild(M("span","v-xray-badge",`${Ap(r.$el)} effects`)),i.lastChild.dataset.tone="mute",i.addEventListener("click",()=>Dp(r.$el)),o.appendChild(i);let s=M("div","v-xray-rows"),a=(n=r.$props)!=null?n:{},l=Object.keys(a);if(l.length){s.appendChild(M("span","v-xray-section","Props"));for(let u of l)s.appendChild(ms(u,a[u],p=>{a[u]=p}))}let c=r.$scope,d=[];try{d=Object.keys(c.data).filter(u=>!l.includes(u))}catch(u){d=[]}if(d.length){s.appendChild(M("span","v-xray-section","State"));for(let u of d){let p;try{p=c.data[u]}catch(f){p=void 0}s.appendChild(ms(u,p,f=>{c.set(u,f)}))}}o.appendChild(s),e.appendChild(o)}return e}function Ny(){let e=document.createDocumentFragment(),t=Ko();if(!t.length)return e.appendChild(M("span","v-xray-empty","No global stores. Create one with V.store().")),e;for(let n of t){let r=Fn[n],o=M("div","v-xray-group"),i=M("div","v-xray-group-head");i.appendChild(M("span","v-xray-badge","store")),i.firstChild.dataset.tone="alt",i.appendChild(M("span",void 0,n)),o.appendChild(i);let s=M("div","v-xray-rows"),a=r?Object.keys(r):[];if(!a.length)s.appendChild(M("span","v-xray-empty","empty store"));else for(let l of a)s.appendChild(ms(l,r[l],c=>{r[l]=c}));o.appendChild(s),e.appendChild(o)}return e}function $p(e,t,n,r){let o=M("div","v-xray-log");if(o.appendChild(M("span","v-xray-log-time",e)),o.appendChild(M("span","v-xray-log-main",t)),n!==void 0){let i=M("span",r==="fail"?"v-xray-fail":r==="ok"?"v-xray-ok":void 0,n);o.appendChild(i)}return o}function Fy(){let e=document.createDocumentFragment(),t=M("button","v-xray-btn","clear log");if(t.addEventListener("click",()=>{br.length=0,Qt()}),e.appendChild(t),!br.length)return e.appendChild(M("span","v-xray-empty","No events yet. Interact with the page.")),e;for(let n of[...br].reverse())e.appendChild($p(Mp(n.at),`${n.type} on ${n.target}`,n.detail||n.source));return e}function Iy(){let e=document.createDocumentFragment(),t=M("button","v-xray-btn","clear log");if(t.addEventListener("click",()=>{yr.length=0,Qt()}),e.appendChild(t),!yr.length)return e.appendChild(M("span","v-xray-empty","No requests yet. v-get, v-post and V.http show up here.")),e;for(let n of[...yr].reverse())e.appendChild($p(Mp(n.at),`${n.method} ${n.url}`,`${n.status||"---"} ${Math.round(n.duration)}ms`,n.ok?"ok":"fail"));return e}function zy(){let e=document.createDocumentFragment(),t=M("div","v-xray-metric");t.appendChild(M("span","v-xray-metric-value",String(we.updatesPerSecond))),t.appendChild(M("span",void 0,"DOM updates per second")),e.appendChild(t);let n=M("div","v-xray-metric");n.appendChild(M("span","v-xray-metric-value",String(we.effectsPerSecond))),n.appendChild(M("span",void 0,"reactive effects triggered per second")),e.appendChild(n);let r=M("div","v-xray-metric");r.appendChild(M("span","v-xray-metric-value",String(we.effects))),r.appendChild(M("span",void 0,"effects triggered since x-ray was enabled")),e.appendChild(r);let o=M("div","v-xray-chart"),i=Math.max(1,...we.history.map(s=>Math.max(s.effects,s.updates)));for(let s of we.history){let a=M("div","v-xray-bar"),l=Math.max(s.effects,s.updates);a.style.height=`${Math.max(2,Math.round(l/i*46))}px`,a.title=`${s.effects} effects, ${s.updates} updates`,o.appendChild(a)}return e.appendChild(o),e.appendChild(M("span","v-xray-hint",`${Gt.size} effects instrumented, peak of ${i} per second`)),e}var By=[{id:"estado",label:"Estado"},{id:"componentes",label:"Componentes"},{id:"stores",label:"Stores"},{id:"eventos",label:"Eventos"},{id:"rede",label:"Rede"},{id:"desempenho",label:"Desempenho"}];function Qt(){if(!U)return;let e=document.activeElement;if(!(e instanceof HTMLInputElement&&U.body.contains(e))){switch(U.body.textContent="",Ze){case"estado":U.body.appendChild(Py());break;case"componentes":U.body.appendChild(Oy());break;case"stores":U.body.appendChild(Ny());break;case"eventos":U.body.appendChild(Fy());break;case"rede":U.body.appendChild(Iy());break;case"desempenho":U.body.appendChild(zy());break}for(let t of Array.from(U.tabs.children)){let n=t;n.dataset.active=n.dataset.id===Ze?"1":"0"}U.status.textContent=`${ko.length} elements with directives, ${Mt.size} components, ${Gt.size} effects observed`}}function Dp(e){e.scrollIntoView({behavior:"smooth",block:"center"}),Cp(e)}function jy(){let e=M("div","v-xray-root");e.setAttribute(`${w.prefix}ignore`,""),e.setAttribute("role","complementary"),e.setAttribute("aria-label","Voodoo x-ray inspector"),Tn!=="auto"&&(e.dataset.vXrayTheme=Tn);let t=M("div","v-xray-overlay");e.appendChild(t);let n=M("div","v-xray-card");n.dataset.open="0",e.appendChild(n);let r=M("div","v-xray-panel"),o=M("div","v-xray-header"),i=M("div","v-xray-brand");i.appendChild(M("span","v-xray-dot")),i.appendChild(document.createTextNode("Voodoo x-ray")),o.appendChild(i);let s=M("button","v-xray-btn","theme");s.addEventListener("click",()=>{Tn=Tn==="auto"?"dark":Tn==="dark"?"light":"auto",Tn==="auto"?delete e.dataset.vXrayTheme:e.dataset.vXrayTheme=Tn}),o.appendChild(s);let a=M("button","v-xray-btn","close");a.addEventListener("click",()=>Hp()),o.appendChild(a),r.appendChild(o);let l=M("div","v-xray-tabs");for(let u of By){let p=M("button","v-xray-tab",u.label);p.dataset.id=u.id,p.dataset.active=u.id===Ze?"1":"0",p.addEventListener("click",()=>{Ze=u.id,Qt()}),l.appendChild(p)}r.appendChild(l);let c=M("div","v-xray-body");r.appendChild(c);let d=M("div","v-xray-status","starting");return r.appendChild(d),e.appendChild(r),document.body.appendChild(e),{root:e,overlay:t,card:n,panel:r,tabs:l,body:c,status:d}}var qy=["click","dblclick","submit","input","change","keydown","keyup","focus","blur","contextmenu","drop","paste"];function kp(e){br.push(e),br.length>Tp&&br.shift(),Ze==="eventos"&&Qt()}function Xl(e){yr.push(e),yr.length>Tp&&yr.shift(),Ze==="rede"&&Qt()}function Vy(e,t){let n=e;for(let r=0;n&&r<6;r++){for(let o of Dn(n))if(o.name===t||o.name==="on"&&o.arg===t)return n;n=n.parentElement}return null}function Uy(){let e=new Set(qy),t=document.body.querySelectorAll("*");for(let n=0;n<t.length;n++){let r=t[n];if(!(U&&U.root.contains(r)))for(let o of Dn(r))o.name==="on"&&o.arg&&e.add(o.arg)}return[...e]}function Wy(){let e=t=>{if(!We)return;let n=t.target;if(!n||n.nodeType!==1||vs(n))return;let r=Vy(n,t.type),o=t.__voodoo===!0;!r&&!o||kp({at:Date.now(),type:t.type,target:Er(r!=null?r:n),detail:o?"component emit":"",source:o?"component":"v-on"})};for(let t of Uy())document.addEventListener(t,e,!0),yt.push(()=>document.removeEventListener(t,e,!0));yt.push(Fe.on("event",t=>{var n,r;kp({at:Date.now(),type:t.type,target:Er((n=t.el)!=null?n:null),detail:Lp(t.detail),source:(r=t.source)!=null?r:"bus"})}))}function _y(){yt.push(ve.interceptors.request.use(e=>(Yl.set(e,performance.now()),e))),yt.push(ve.interceptors.response.use(e=>{var n,r;let t=(n=Yl.get(e.config))!=null?n:performance.now();return Xl({at:Date.now(),method:((r=e.config.method)!=null?r:"GET").toUpperCase(),url:e.config.url,status:e.status,ok:e.ok,duration:performance.now()-t,source:"http"}),e})),yt.push(ve.interceptors.error.use(e=>{var r,o,i;let t=e.config,n=t&&(r=Yl.get(t))!=null?r:performance.now();return Xl({at:Date.now(),method:((o=t==null?void 0:t.method)!=null?o:"GET").toUpperCase(),url:(i=t==null?void 0:t.url)!=null?i:"(unknown)",status:e.status,ok:!1,duration:performance.now()-n,source:"http"}),e})),yt.push(Fe.on("network",e=>{var t,n,r,o,i;Xl({at:Date.now(),method:((t=e.method)!=null?t:"GET").toUpperCase(),url:e.url,status:(n=e.status)!=null?n:0,ok:(r=e.ok)!=null?r:!e.error,duration:(o=e.duration)!=null?o:0,source:(i=e.source)!=null?i:"bus"})}))}var gr=null;function Ky(){gr=new MutationObserver(e=>{let t=!1;for(let n of e){let r=n.target;vs(r)||n.type==="attributes"&&n.attributeName==="class"&&r.nodeType===1&&ps.has(r)||(we.mutations++,n.type==="childList"&&n.addedNodes.length&&(t=!0))}t&&!xr&&(xr=window.setTimeout(()=>{xr=0,Rp()},250))}),gr.observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0})}function Yy(){fs=window.setInterval(()=>{we.effectsPerSecond=we.effects-Ql,we.updatesPerSecond=we.mutations-Jl,Ql=we.effects,Jl=we.mutations,we.history.push({effects:we.effectsPerSecond,updates:we.updatesPerSecond}),we.history.length>40&&we.history.shift(),Ze==="desempenho"&&Qt()},1e3),us=window.setInterval(()=>{Zl(),(Ze==="estado"||Ze==="componentes"||Ze==="stores")&&Qt()},700)}var Ql=0,Jl=0;function Xy(){if(We||typeof document=="undefined"||!document.body)return;We=!0,he(),ne("xray",wy),U=jy(),Ze=Ze||"estado",we.effects=0,we.mutations=0,Ql=0,Jl=0,we.history.length=0,Rp(),Wy(),_y(),Ky(),Yy();let e=()=>Cy();window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),document.addEventListener("mousemove",Ep,!0),yt.push(()=>window.removeEventListener("scroll",e,!0)),yt.push(()=>window.removeEventListener("resize",e)),yt.push(()=>document.removeEventListener("mousemove",Ep,!0)),Qt()}function Hp(){if(We){We=!1;for(let e of yt.splice(0))try{e()}catch(t){}gr==null||gr.disconnect(),gr=null,fs&&window.clearInterval(fs),us&&window.clearInterval(us),xr&&window.clearTimeout(xr),wr&&cancelAnimationFrame(wr),fs=us=xr=wr=0;for(let[e,t]of wo)window.clearTimeout(t),e.classList.remove(Eo);wo.clear(),ps.clear(),Ty(),ko.length=0,xo=null,U==null||U.root.remove(),U=null}}function Pp(){return We}function ec(){xp||typeof document=="undefined"||(xp=!0,document.addEventListener("keydown",e=>{!e.ctrlKey||!e.shiftKey||e.key!=="X"&&e.key!=="x"||(e.preventDefault(),To())}))}function To(e){return ec(),(e!=null?e:!We)?Xy():Hp(),We}He();var Np="voodoo:devtools:widget-position",tc="voodoo:devtools:widget-hidden",Gy=4,te=null,kr=!1,nc=0,hs=0,Lo=[],Qy=`
|
|
1649
|
+
.v-devtools-widget{
|
|
1650
|
+
all: initial;
|
|
1651
|
+
--vw-accent:#6D3BF5;
|
|
1652
|
+
--vw-accent-2:#FF3D8B;
|
|
1653
|
+
--vw-bg:#ffffff;
|
|
1654
|
+
--vw-text:#14111F;
|
|
1655
|
+
--vw-muted:#6B6580;
|
|
1656
|
+
--vw-border:#E6E0F0;
|
|
1657
|
+
--vw-shadow:0 8px 28px rgba(20,17,31,.24);
|
|
1658
|
+
position:fixed;
|
|
1659
|
+
z-index:2147482900;
|
|
1660
|
+
font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
|
|
1661
|
+
font-size:12px;
|
|
1662
|
+
line-height:1;
|
|
1663
|
+
color:var(--vw-text);
|
|
1664
|
+
-webkit-font-smoothing:antialiased;
|
|
1665
|
+
touch-action:none;
|
|
1666
|
+
}
|
|
1667
|
+
@media (prefers-color-scheme: dark){
|
|
1668
|
+
.v-devtools-widget:not([data-theme="light"]){
|
|
1669
|
+
--vw-bg:#1C1830;
|
|
1670
|
+
--vw-text:#F4F1FB;
|
|
1671
|
+
--vw-muted:#A9A2C4;
|
|
1672
|
+
--vw-border:#332C50;
|
|
1673
|
+
--vw-shadow:0 8px 28px rgba(0,0,0,.55);
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
.v-devtools-widget[data-theme="dark"]{
|
|
1677
|
+
--vw-bg:#1C1830;
|
|
1678
|
+
--vw-text:#F4F1FB;
|
|
1679
|
+
--vw-muted:#A9A2C4;
|
|
1680
|
+
--vw-border:#332C50;
|
|
1681
|
+
--vw-shadow:0 8px 28px rgba(0,0,0,.55);
|
|
1682
|
+
}
|
|
1683
|
+
.v-devtools-widget *,.v-devtools-widget *::before,.v-devtools-widget *::after{
|
|
1684
|
+
box-sizing:border-box;
|
|
1685
|
+
margin:0;
|
|
1686
|
+
padding:0;
|
|
1687
|
+
border:0;
|
|
1688
|
+
background:transparent;
|
|
1689
|
+
font:inherit;
|
|
1690
|
+
color:inherit;
|
|
1691
|
+
list-style:none;
|
|
1692
|
+
text-decoration:none;
|
|
1693
|
+
}
|
|
1694
|
+
.v-devtools-btn{
|
|
1695
|
+
display:flex;
|
|
1696
|
+
align-items:center;
|
|
1697
|
+
gap:8px;
|
|
1698
|
+
height:38px;
|
|
1699
|
+
padding:0 12px 0 10px;
|
|
1700
|
+
border:1px solid var(--vw-border);
|
|
1701
|
+
border-radius:999px;
|
|
1702
|
+
background:var(--vw-bg);
|
|
1703
|
+
box-shadow:var(--vw-shadow);
|
|
1704
|
+
cursor:grab;
|
|
1705
|
+
user-select:none;
|
|
1706
|
+
transition:transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s;
|
|
1707
|
+
}
|
|
1708
|
+
.v-devtools-btn:hover{
|
|
1709
|
+
transform:translateY(-1px);
|
|
1710
|
+
box-shadow:0 12px 34px rgba(109,59,245,.3);
|
|
1711
|
+
}
|
|
1712
|
+
.v-devtools-btn:active{cursor:grabbing}
|
|
1713
|
+
.v-devtools-btn:focus-visible{
|
|
1714
|
+
outline:2px solid var(--vw-accent);
|
|
1715
|
+
outline-offset:2px;
|
|
1716
|
+
}
|
|
1717
|
+
.v-devtools-widget[data-active="true"] .v-devtools-btn{
|
|
1718
|
+
border-color:var(--vw-accent);
|
|
1719
|
+
box-shadow:0 0 0 3px rgba(109,59,245,.22), var(--vw-shadow);
|
|
1720
|
+
}
|
|
1721
|
+
.v-devtools-mark{
|
|
1722
|
+
flex:0 0 auto;
|
|
1723
|
+
width:20px;
|
|
1724
|
+
height:20px;
|
|
1725
|
+
display:block;
|
|
1726
|
+
}
|
|
1727
|
+
.v-devtools-label{
|
|
1728
|
+
font-weight:600;
|
|
1729
|
+
letter-spacing:.2px;
|
|
1730
|
+
white-space:nowrap;
|
|
1731
|
+
}
|
|
1732
|
+
.v-devtools-count{
|
|
1733
|
+
padding:2px 6px;
|
|
1734
|
+
border-radius:999px;
|
|
1735
|
+
background:rgba(109,59,245,.12);
|
|
1736
|
+
color:var(--vw-accent);
|
|
1737
|
+
font-variant-numeric:tabular-nums;
|
|
1738
|
+
font-weight:600;
|
|
1739
|
+
white-space:nowrap;
|
|
1740
|
+
}
|
|
1741
|
+
.v-devtools-pulse{
|
|
1742
|
+
flex:0 0 auto;
|
|
1743
|
+
width:7px;
|
|
1744
|
+
height:7px;
|
|
1745
|
+
border-radius:50%;
|
|
1746
|
+
background:var(--vw-border);
|
|
1747
|
+
transition:background .2s, box-shadow .2s;
|
|
1748
|
+
}
|
|
1749
|
+
.v-devtools-pulse[data-on="true"]{
|
|
1750
|
+
background:var(--vw-accent-2);
|
|
1751
|
+
box-shadow:0 0 0 4px rgba(255,61,139,.18);
|
|
1752
|
+
}
|
|
1753
|
+
.v-devtools-close{
|
|
1754
|
+
position:absolute;
|
|
1755
|
+
top:-7px;
|
|
1756
|
+
right:-7px;
|
|
1757
|
+
width:18px;
|
|
1758
|
+
height:18px;
|
|
1759
|
+
border-radius:50%;
|
|
1760
|
+
border:1px solid var(--vw-border);
|
|
1761
|
+
background:var(--vw-bg);
|
|
1762
|
+
color:var(--vw-muted);
|
|
1763
|
+
font-size:11px;
|
|
1764
|
+
line-height:1;
|
|
1765
|
+
cursor:pointer;
|
|
1766
|
+
opacity:0;
|
|
1767
|
+
transition:opacity .15s;
|
|
1768
|
+
}
|
|
1769
|
+
.v-devtools-widget:hover .v-devtools-close,
|
|
1770
|
+
.v-devtools-close:focus-visible{opacity:1}
|
|
1771
|
+
.v-devtools-close:focus-visible{
|
|
1772
|
+
outline:2px solid var(--vw-accent);
|
|
1773
|
+
outline-offset:1px;
|
|
1774
|
+
}
|
|
1775
|
+
@media (prefers-reduced-motion: reduce){
|
|
1776
|
+
.v-devtools-btn,.v-devtools-pulse,.v-devtools-close{transition:none}
|
|
1777
|
+
.v-devtools-btn:hover{transform:none}
|
|
1778
|
+
}
|
|
1779
|
+
`,Jy=`<svg class="v-devtools-mark" viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
1780
|
+
<path d="M4 4l8 16 8-16" stroke="#6D3BF5" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1781
|
+
<circle cx="12" cy="7.5" r="2" fill="#FF3D8B"/>
|
|
1782
|
+
</svg>`;function Zy(){try{let e=localStorage.getItem(Np);if(!e)return null;let t=JSON.parse(e);return typeof(t==null?void 0:t.x)!="number"||typeof(t==null?void 0:t.y)!="number"?null:t}catch(e){return null}}function ex(e){try{localStorage.setItem(Np,JSON.stringify(e))}catch(t){}}function rc(e,t){let n=e.offsetWidth||120,r=e.offsetHeight||38,o=Math.min(Math.max(8,t.x),Math.max(8,window.innerWidth-n-8)),i=Math.min(Math.max(8,t.y),Math.max(8,window.innerHeight-r-8));e.style.left=`${o}px`,e.style.top=`${i}px`,e.style.right="auto",e.style.bottom="auto"}function tx(){let e=document.createElement("div");e.className="v-devtools-widget",e.setAttribute("data-voodoo-devtools","widget");let t=document.createElement("button");t.type="button",t.className="v-devtools-btn",t.setAttribute("aria-label","Open Voodoo devtools (Ctrl+Shift+X)"),t.setAttribute("aria-pressed","false"),t.title="Voodoo devtools \u2014 click to inspect, drag to move (Ctrl+Shift+X)",t.innerHTML=Jy;let n=document.createElement("span");n.className="v-devtools-label",n.textContent="Voodoo";let r=document.createElement("span");r.className="v-devtools-count",r.textContent="0";let o=document.createElement("span");o.className="v-devtools-pulse",o.setAttribute("data-on","false"),t.append(n,r,o);let i=document.createElement("button");i.type="button",i.className="v-devtools-close",i.setAttribute("aria-label","Hide the devtools widget in this tab"),i.title="Hide in this tab",i.textContent="\xD7",e.append(t,i),document.body.appendChild(e);let s=Zy();return s?rc(e,s):(e.style.right="16px",e.style.bottom="16px"),{raiz:e,botao:t,pulso:o,contador:r,fechar:i}}function nx(e,t){let n=!1,r=!1,o=0,i=0,s=0,a=0,l=f=>{var h,v;if(f.button!==0)return;let m=e.raiz.getBoundingClientRect();n=!0,r=!1,s=f.clientX,a=f.clientY,o=f.clientX-m.left,i=f.clientY-m.top,(v=(h=e.botao).setPointerCapture)==null||v.call(h,f.pointerId)},c=f=>{if(!n)return;let m=Math.hypot(f.clientX-s,f.clientY-a);!r&&m<Gy||(r=!0,f.preventDefault(),rc(e.raiz,{x:f.clientX-o,y:f.clientY-i}))},d=f=>{var h,v;if(!n)return;if(n=!1,(v=(h=e.botao).releasePointerCapture)==null||v.call(h,f.pointerId),!r){t();return}let m=e.raiz.getBoundingClientRect();ex({x:m.left,y:m.top})},u=f=>{f.key!=="Enter"&&f.key!==" "||(f.preventDefault(),t())},p=()=>{let f=e.raiz.getBoundingClientRect();e.raiz.style.left&&rc(e.raiz,{x:f.left,y:f.top})};return e.botao.addEventListener("pointerdown",l),e.botao.addEventListener("pointermove",c),e.botao.addEventListener("pointerup",d),e.botao.addEventListener("pointercancel",d),e.botao.addEventListener("keydown",u),window.addEventListener("resize",p),()=>{e.botao.removeEventListener("pointerdown",l),e.botao.removeEventListener("pointermove",c),e.botao.removeEventListener("pointerup",d),e.botao.removeEventListener("pointercancel",d),e.botao.removeEventListener("keydown",u),window.removeEventListener("resize",p)}}function rx(){te&&(te.pulso.setAttribute("data-on","true"),window.clearTimeout(hs),hs=window.setTimeout(()=>{te==null||te.pulso.setAttribute("data-on","false")},320))}function Op(){if(!te)return;let e=Mt.size,t=e===1?"1 component":`${e} components`;te.contador.textContent!==t&&(te.contador.textContent=t)}function ox(){if(kr||typeof document=="undefined"||!document.body)return;try{if(sessionStorage.getItem(tc)==="1")return}catch(r){}kr=!0,ne("devtools-widget",Qy),te=tx();let e=()=>{let r=To();te==null||te.raiz.setAttribute("data-active",String(r)),te==null||te.botao.setAttribute("aria-pressed",String(r))};Lo.push(nx(te,e));let t=r=>{r.stopPropagation();try{sessionStorage.setItem(tc,"1")}catch(o){}Fp(),console.info("[Voodoo] devtools widget hidden. Use V.devtoolsWidget(true) to bring back.")};te.fechar.addEventListener("click",t),Lo.push(()=>te==null?void 0:te.fechar.removeEventListener("click",t));let n=()=>{let r=Pp();te==null||te.raiz.setAttribute("data-active",String(r)),te==null||te.botao.setAttribute("aria-pressed",String(r))};document.addEventListener("keyup",n),Lo.push(()=>document.removeEventListener("keyup",n));for(let r of["network","event","navigation","update"])Lo.push(Fe.on(r,rx));Op(),nc=window.setInterval(Op,1e3)}function Fp(){if(kr){kr=!1;for(let e of Lo.splice(0))try{e()}catch(t){}window.clearInterval(nc),window.clearTimeout(hs),nc=0,hs=0,te==null||te.raiz.remove(),te=null}}function Ip(e){if(e!=null?e:!kr){try{sessionStorage.removeItem(tc)}catch(n){}ox()}else Fp();return kr}var Bp=((e,t)=>ya(e,t));function zp(e,t,n){return((...r)=>(Rr(e,t),n(...r)))}Object.assign(Bp,li,{query:ya,ready:xa,fromHtml:au,Collection:ft,router:Wr,route:ce,navigate:Vt,resolveRoute:Gn,i18n:Kr,t:er,setLocale:_r,getLocale:yi,modal:En,alert:Wl,confirm:as,prompt:_l,dialog:hr,validator:Q,validate:Za,validateForm:zp("V.validateForm","V.validate",Za),serializeForm:or,messages:rt,showFormErrors:Pi,showFieldError:Hi,clearErrors:no,mask:gp,masks:yo,applyMask:bo,unmask:ds,registerMask:Te,animate:Rt,spring:xl,stagger:wl,inView:Gi,scrollProgress:El,motion:hn,easings:ao,chart:zp("V.chart","V.renderChart",ur),renderChart:ur,charts:Al,chartColors:co,palette:op,hotkey:Qr,sound:Yt,xray:To,enableXrayShortcut:ec,devtoolsWidget:Ip,devtools:Fe,magic:P});var oc=Bp;le();function ix(e){if(window.VOODOO_DEVTOOLS===!0)return!0;for(let t of["devtools","data-devtools"]){if(!e.hasAttribute(t))continue;let n=e.getAttribute(t);return n===null||n===""||n.toLowerCase()!=="false"}return!1}function sx(){var i;if(typeof document=="undefined")return{manual:!1};let e=(i=document.currentScript)!=null?i:document.querySelector('script[src*="voodoo"]');if(!e)return{manual:!1};let t=e.hasAttribute("data-manual")||e.hasAttribute("data-defer-init"),n=e.getAttribute("data-prefix");n&&(w.prefix=n);let r=e.getAttribute("data-base-url");r&&(w.baseURL=r);let o=e.getAttribute("data-locale");return o&&(w.locale=o),ix(e)&&(w.devtools=!0),e.hasAttribute("data-no-styles")&&(w.injectStyles=!1),e.hasAttribute("data-no-observer")&&(w.autoDiscover=!1),e.hasAttribute("data-keep-attributes")&&(w.cleanAttributes=!1),{manual:t}}function ax(e){if(typeof e.devtoolsWidget=="function"){e.devtoolsWidget(!0);return}console.info("[Voodoo] devtools requested, but this build does not include the inspector. Use voodoo.full.min.js to get the widget and full devtools panel.")}function jp(e){var o;if(typeof window=="undefined")return;let t=sx(),n=window;if(n.V=e,n.Voodoo=e,Pe.V=e,Pe.Voodoo=e,w.baseURL&&((o=e.http)!=null&&o.setBaseURL)&&e.http.setBaseURL(w.baseURL),t.manual||!w.autoStart)return;Uo(()=>{ut.init(),rp(),e.start(),w.devtools&&ax(e)})}jp(oc);var lx=oc;return Zp(cx);})();
|
|
1783
|
+
if(typeof window!=="undefined"){window.V=Voodoo.default||Voodoo;window.Voodoo=window.V;}
|
|
1784
|
+
//# sourceMappingURL=voodoo.full.min.js.map
|