voodoojs 0.6.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-NNU6WOOU.js → chunk-4T2UIPWX.js} +4 -4
- package/dist/{chunk-A2UOVQBP.js → chunk-CYN6VLMD.js} +4 -4
- package/dist/{chunk-JZIYRIY6.js → chunk-E5T65CEI.js} +5 -5
- package/dist/{chunk-U76IRJKH.js → chunk-GIWKGFGY.js} +4 -4
- package/dist/{chunk-CNHNFTPC.js → chunk-II3XBOAP.js} +13 -13
- package/dist/{chunk-PHMBDPWH.js → chunk-JB2YYNK6.js} +7 -7
- package/dist/{chunk-5777LJVW.js → chunk-MMLUK37L.js} +3 -3
- package/dist/{chunk-4LR3IFPX.js → chunk-QO3I7VLJ.js} +5 -5
- package/dist/{chunk-PQZEVFVZ.js → chunk-WSDB7K4X.js} +6 -6
- package/dist/{chunk-E27NRARW.js → chunk-YOZTHZS2.js} +3 -3
- package/dist/{chunk-234ZLC6W.js → chunk-ZIWLQZZL.js} +4 -4
- package/dist/essential.cjs +2 -2
- package/dist/essential.js +10 -10
- package/dist/gpu.cjs +1 -1
- package/dist/gpu.js +10 -10
- package/dist/http.cjs +1 -1
- package/dist/http.js +5 -5
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +24 -24
- package/dist/reactivity.cjs +1 -1
- package/dist/reactivity.js +2 -2
- package/dist/socket.cjs +1 -1
- package/dist/socket.js +9 -9
- package/dist/style-SLQ6PHZK.js +5 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +2 -2
- package/dist/voodoo.core.js +2 -2
- package/dist/voodoo.core.min.js +2 -2
- package/dist/voodoo.full.js +6 -6
- package/dist/voodoo.full.min.js +4 -4
- package/dist/voodoo.js +2 -2
- package/dist/voodoo.min.js +2 -2
- package/package.json +1 -1
- package/dist/style-XEUAGGJK.js +0 -5
package/dist/voodoo.core.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.
|
|
2
|
+
* Voodoo.js v0.7.0
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
@@ -135,7 +135,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
135
135
|
.v-json-object dt{font-weight:600;color:var(--v-text-muted,#6B6580)}
|
|
136
136
|
.v-json-object dd{margin:0}
|
|
137
137
|
.v-json-empty{color:var(--v-text-muted,#6B6580);font-style:italic}
|
|
138
|
-
`)}))}function oc(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 ic({el:e,cleanup:t,run:n}){var l,f;let r=E(e,"trigger")||oc(e),[o,...i]=r.split(/[.\s]+/),s=q((l=E(e,"poll"))!=null?l: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(d=>{for(let m of d)m.isIntersecting&&(n(),i.includes("repeat")||p.unobserve(e))},{rootMargin:"80px"});p.observe(e),t(()=>p.disconnect());return}let a=i.includes("once"),c=q((f=E(e,"debounce"))!=null?f:void 0,0),u=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};c>0&&(u=Fe(u,c)),e.addEventListener(o,u,{once:a}),t(()=>e.removeEventListener(o,u))}var sc=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of sc)A(e,({el:n,scope:r,expression:o,cleanup:i})=>{ic({el:n,scope:r,cleanup:i,run:a=>{let c=It(o,r);if(!c)return;let u=E(n,"body")||E(n,"data-body"),l=u?N(u,r.child({$event:a}),"v-body"):void 0,f=E(n,"params"),p=f?N(f,r,"v-params"):void 0;Dt({el:n,scope:r,method:t,url:c,body:l,params:p,event:a})}})});function It(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=N(n,t,"URL");return typeof o=="string"?o:n}A("load",({el:e,scope:t,expression:n})=>{let r=It(n,t);r&&Dt({el:e,scope:t,method:"GET",url:r})});A("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=It(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){Dt({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),Dt({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});A("search",({el:e,scope:t,expression:n,cleanup:r})=>{var f,p;let o=e,i=It(n,t),s=E(e,"param")||o.getAttribute("name")||"q",a=q((f=E(e,"debounce"))!=null?f:void 0,300),c=Number((p=E(e,"min-length"))!=null?p:0),u=Fe(()=>{let d=o.value.trim();d.length<c||Dt({el:e,scope:t,method:"GET",url:i,params:{[s]:d}})},a),l=()=>u();o.addEventListener("input",l),r(()=>{o.removeEventListener("input",l),u.cancel()})});A("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var c,u,l,f;let o=n.indexOf(":"),i=E(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=vn(()=>It(s,t),{method:(E(e,"method")||"GET").toUpperCase(),params:()=>E(e,"params")?N(E(e,"params"),t,"v-params"):void 0,cache:q((c=E(e,"cache"))!=null?c:void 0,0)||void 0,retry:Number((u=E(e,"retry"))!=null?u:0),timeout:q((l=E(e,"timeout"))!=null?l:void 0,oe.defaults.timeout),jsonPath:E(e,"json-path"),poll:q((f=E(e,"poll"))!=null?f:void 0,0),manual:Lr(e,"manual"),onSuccess:p=>ht(e,"voodoo:success",{data:p}),onError:(p,d)=>ht(e,"voodoo:error",{error:p,message:d})});t.set(i,a),r(()=>a.stop())},{priority:B.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"])A(e,()=>{},{priority:B.TRANSITION});Oo(Bo);Fo(St);zo(Ni);fi();var jt=new Map;function Pi(e,t){let n=jt.get(e);return n||jt.set(e,n=new Set),n.add(t),()=>n.delete(t)}function ac(e,t){let n=Pi(e,r=>{n(),t(r)});return n}function cc(e,t){let n=jt.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){O(o,`event "${e}"`)}}function uc(e,t){var n;if(!t){jt.delete(e);return}(n=jt.get(e))==null||n.delete(t)}function Ni(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;A(e,i=>{var l,f;let s,a=!1,c=p=>{var d,m;return{el:i.el,value:p,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(d=i.scope.owner)==null?void 0:d.component)!=null?m:null}},u=n.raw?i.expression:i.evaluate();(l=n.created)==null||l.call(n,i.el,c(u)),(f=n.beforeMount)==null||f.call(n,i.el,c(u)),i.effect(()=>{var m,g;let p=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=p,(m=n.mounted)==null||m.call(n,i.el,c(p));return}if(p===s)return;let d=c(p);(g=n.updated)==null||g.call(n,i.el,d),s=p}),i.cleanup(()=>{var d,m;let p=c(s);(d=n.beforeUnmount)==null||d.call(n,i.el,p),(m=n.unmounted)==null||m.call(n,i.el,p)})},{priority:(r=n.priority)!=null?r:B.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function lc(e){return Object.defineProperties(de.data,Object.getOwnPropertyDescriptors(e)),de.data}var dc="0.4.6",xn={...vr,version:dc,config:T,reactive:F,ref:Tt,shallowRef:Qn,computed:xt,effect:te,watch:ue,watchEffect:Gn,nextTick:Oe,toRaw:K,markRaw:Wn,unref:Kn,stop:Un,effectScope:qn,EffectScope:ne,flushSync:In,data:lc,store:Yo,stores:un,removeStore:Xo,storeNames:Jo,scope:de,component:rt,components:z,directive:Ni,directives:ge,magic:P,magics:Et,createApp:Qo,start:Ho,whenReady:sn,whenElement:an,walk:j,refresh:Io,destroy:$,stopObserving:Do,getScope:et,findScope:we,addCleanup:fe,parseAttribute:Je,parse:le,tokenize:Xt,evaluate:x,evaluateIn:N,stringify:Se,clearParseCache:ao,globals:G,http:oe,request:Lt,HttpError:X,resource:vn,toast:Ce,storage:ie,session:pn,cookie:mn,cache:gn,url:hn,theme:ft,clipboard:kr,screen:se,network:_e,enter:Nt,leave:Ot,fadeIn:bn,fadeOut:wn,slideUp:Ht,slideDown:$t,viewTransition:yi,injectStyle:Te,ensureTokens:Ue,on:Pi,once:ac,off:uc,emit:cc,use(e,t){Jt(xn,e,t)},onError(e){jn(e)},instances:rn,Scope:De,PRIORITY:B,VoodooSyntaxError:D,VoodooRuntimeError:W};Go(xn);Z();var fc=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 Ui(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function ae(e){return e.length<2?e:Array.from(new Set(e))}function Ve(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function Pr(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 qi(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function pc(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof pe)return e.toArray();if(typeof e=="string")return We(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=We(e);return t.length?t:typeof document=="undefined"?[]:[document]}function We(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(qi(o))return Pr(o);let i=[];for(let s of pc(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return ae(i)}if(e instanceof pe)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 ae(o)}return[]}function Oi(e){if(e==null)return[];if(typeof e=="string"){let r=e;return qi(r.trim())?Pr(r):[document.createTextNode(r)]}if(e instanceof pe)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 En(e,t,n){let r=Ui(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!fc.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function mc(e,t){for(let[n,r]of Object.entries(t))En(e,n,r)}function $i(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 Hi(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var _i=new WeakMap;function Di(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function Ii(e){e.removeAttribute("hidden");let t=_i.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 ji(e){let t=e.style.display;t&&t!=="none"&&_i.set(e,t),e.style.display="none"}var Fi="input,select,textarea";function Bi(e){return e.matches(Fi)?[e]:Array.from(e.querySelectorAll(Fi))}function hc(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 kn=new WeakMap;function gc(e){let t=kn.get(e);return t||kn.set(e,t=[]),t}var pe=class e{constructor(t=[]){L(this,"length");L(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(ae(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(ae(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(ae(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(ae(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(ae(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(ae(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(ae(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(ae(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(ae([...this.elements,...We(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))$(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))$(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 c of Array.from(s.options))c.selected=a.includes(c.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[c,u]of Object.entries(n))u===null||u===!1?a.removeAttribute(c):a.setAttribute(c,u===!0?"":String(u));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=Ve(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,c]of Object.entries(i.dataset))s[a]=$i(c);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[Hi(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=Hi(String(n));if(t.length<2){let i=this.elements[0];return i?$i(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)mc(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=Ui(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)En(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)En(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)En(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=Ve(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Ve(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Ve(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=Ve(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 Oi(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=We(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=We(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 Oi(t))r.insertBefore(o,n);$(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=We(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);$(n),n.remove()}}return this}remove(){for(let t of this.elements)$(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))$(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 c of this.elements)for(let u of Ve(t)){let l=f=>{if(!o){i.call(c,f);return}let p=f.target,d=p==null?void 0:p.closest(o);!d||!c.contains(d)||i.call(d,f)};c.addEventListener(u,l,s),gc(c).push({type:u,selector:o,handler:i,wrapped:l,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?Ve(t):null;for(let a of this.elements){let c=kn.get(a);if(!c)continue;let u=[];for(let l of c){let f=!s||s.includes(l.type),p=o===null||l.selector===o,d=i===null||l.handler===i;f&&p&&d?a.removeEventListener(l.type,l.wrapped,l.options):u.push(l)}kn.set(a,u)}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(c){return o?s.off(t,o,a):s.off(t,a),i.call(this,c)};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)Ii(t);return this}hide(){for(let t of this.elements)ji(t);return this}toggle(t){for(let n of this.elements)(t===void 0?Di(n):t)?Ii(n):ji(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),bn(n,t);return this}fadeOut(t=220){for(let n of this.elements)wn(n,t);return this}slideUp(t=240){for(let n of this.elements)Ht(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),$t(n,t);return this}slideToggle(t=240){for(let n of this.elements)Di(n)?(n.removeAttribute("hidden"),$t(n,t)):Ht(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 Bi(t)){if(!hc(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 Bi(t)){let c=a;if(!c.name||c.disabled)continue;let u=(c.getAttribute("type")||"").toLowerCase();if(u==="submit"||u==="reset"||u==="button")continue;let l=c.name.endsWith("[]"),f=l?c.name.slice(0,-2):c.name,p=a,d;if(u==="checkbox"){if(!c.checked&&!l){n[f]=(r=n[f])!=null?r:!1;continue}if(!c.checked)continue;d=c.value==="on"?!0:c.value}else if(u==="radio"){if(!c.checked)continue;d=c.value}else u==="file"?d=c.multiple?Array.from((o=c.files)!=null?o:[]):(s=(i=c.files)==null?void 0:i[0])!=null?s:null:c.tagName==="SELECT"&&p.multiple?d=Array.from(p.selectedOptions).map(m=>m.value):u==="number"||u==="range"?d=c.value===""?null:Number(c.value):d=c.value;if(l){let m=n[f];Array.isArray(m)?m.push(d):n[f]=[d];continue}if(Object.prototype.hasOwnProperty.call(n,f)){let m=n[f];Array.isArray(m)?m.push(d):m===void 0||m===!1?n[f]=d:n[f]=[m,d];continue}n[f]=d}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&&$(n),j(n,we(n.parentNode));return this}destroy(){for(let t of this.elements)$(t);return this}};function Nr(e,t){if(typeof e=="function"){Or(e);let n=typeof document!="undefined"?document.documentElement:null;return new pe(n?[n]:[])}return new pe(We(e,t))}function Or(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{Wo(()=>{try{e==null||e()}catch(n){O(n,"V.ready")}t()})})}function Vi(e){return new pe(Pr(e))}var Wi=((e,t)=>Nr(e,t));Object.assign(Wi,xn,{query:Nr,ready:Or,fromHtml:Vi,Collection:pe,magic:P});var $r=Wi;re();ut();re();var yc=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,vc=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,bc=/^rgba?\(([^)]+)\)$/i,wc=/^hsla?\(([^)]+)\)$/i;function zi(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function Tc(e,t,n){let r=(e%360+360)%360,o=J(t/100,0,1),i=J(n/100,0,1),s=(1-Math.abs(2*i-1))*o,a=s*(1-Math.abs(r/60%2-1)),c=i-s/2,u=Math.floor(r/60)%6,l=[[s,a,0],[a,s,0],[0,s,a],[0,a,s],[a,0,s],[s,0,a]],[f,p,d]=l[u];return{r:Math.round((f+c)*255),g:Math.round((p+c)*255),b:Math.round((d+c)*255)}}function me(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=yc.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=vc.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=bc.exec(t);if(o){let[s,a,c]=zi(o[1]);return s===void 0||a===void 0||c===void 0?null:{r:J(s,0,255),g:J(a,0,255),b:J(c,0,255)}}let i=wc.exec(t);if(i){let[s,a,c]=zi(i[1]);return s===void 0||a===void 0||c===void 0?null:Tc(s,a,c)}return null}function J(e,t,n){return e<t?t:e>n?n:e}function vt(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Hr(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function xc(e){let t=vt(e.r),n=vt(e.g),r=vt(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),c=Math.cbrt(i),u=Math.cbrt(s);return{l:.2104542553*a+.793617785*c-.0040720468*u,a:1.9779984951*a-2.428592205*c+.4505937099*u,b:.0259040371*a+.7827717662*c-.808675766*u}}function Ec(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:Hr(4.0767416621*o-3.3077115913*i+.2309699292*s),g:Hr(-1.2684380046*o+2.6097574011*i-.3413193965*s),b:Hr(-.0041960863*o-.7034186147*i+1.707614701*s)}}function An(e){let t=xc(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 Qi(e){let t=e.h*Math.PI/180;return Ec({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function yt(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=Qi({l:J(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(J(o.r,0,1)*255),g:Math.round(J(o.g,0,1)*255),b:Math.round(J(o.b,0,1)*255)};t*=.92}let n=Qi({l:J(e.l,0,1),c:0,h:e.h});return{r:Math.round(J(n.r,0,1)*255),g:Math.round(J(n.g,0,1)*255),b:Math.round(J(n.b,0,1)*255)}}function Dr(e){return J(Math.round(e),0,255).toString(16).padStart(2,"0")}function ze(e){return`#${Dr(e.r)}${Dr(e.g)}${Dr(e.b)}`}function gt(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function Ji(e){return ze(yt(e))}function jr(e){return .2126*vt(e.r)+.7152*vt(e.g)+.0722*vt(e.b)}function Fr(e,t){let n=typeof e=="string"?me(e):e,r=typeof t=="string"?me(t):t;if(!n||!r)return 1;let o=jr(n),i=jr(r),s=Math.max(o,i),a=Math.min(o,i);return(s+.05)/(a+.05)}var Zi={r:255,g:255,b:255},Rn={r:0,g:0,b:0};function Ft(e){let t=typeof e=="string"?me(e):e;return t?Fr(t,Zi)>=Fr(t,Rn)?"#ffffff":"#000000":"#ffffff"}var Br=[50,100,200,300,400,500,600,700,800,900],es=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],kc=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],ts=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],Sc=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function ns(e,t=!1){var a;let n=typeof e=="string"?(a=me(e))!=null?a:Rn:e,r=An(n),o=t?ts:es,i=t?Sc:kc,s={};return Br.forEach((c,u)=>{s[String(c)]=Ji({l:o[u],c:r.c*i[u],h:r.h})}),s}var Cn={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"}},rs=["primary","accent","success","warning","danger","info"],Ur="voodoo:palette",Ki="voodoo-palette",Ac="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Rc="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function Gi(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var Cc=/^([\d.]+)(px|rem|em)$/;function Mc(e){let t=(e||"12px").trim(),n=Cc.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 Yi(e,t){var u,l,f,p;let n={},r={},o={};for(let d of rs){let m=(u=me(e[d]))!=null?u:Rn,g=An(m),h=ns(m,t);r[d]=h;for(let M of Br)n[`--v-${d}-${M}`]=h[String(M)];let y=t?{l:Math.max(g.l,.62),c:g.c*.95,h:g.h}:g,S=t?{l:Math.min(y.l+.07,.94),c:y.c*.95,h:y.h}:{l:Math.max(y.l-.055,.12),c:y.c,h:y.h},_=t?{l:Math.min(y.l+.13,.97),c:y.c*.88,h:y.h}:{l:Math.max(y.l-.105,.1),c:y.c,h:y.h},k=yt(y),v=yt(S),I=yt(_);n[`--v-${d}`]=ze(t?k:m),n[`--v-${d}-hover`]=ze(v),n[`--v-${d}-active`]=ze(I),n[`--v-${d}-contrast`]=Ft(t?k:m),n[`--v-${d}-contrast-hover`]=Ft(v),n[`--v-${d}-contrast-active`]=Ft(I);let H=h[50],C=h[100],V=t?h[800]:h[700];n[`--v-${d}-soft`]=H,n[`--v-${d}-soft-hover`]=C,n[`--v-${d}-soft-text`]=V,n[`--v-${d}-ring`]=gt(k,t?.45:.32),n[`--v-${d}-border`]=t?h[300]:h[200],o[d]=n[`--v-${d}-contrast`]}let i=(f=me((l=e.neutral)!=null?l:e.primary))!=null?f:Rn,s=An(i).h,a=(d,m)=>Ji({l:d,c:m,h:s}),c={};if(Br.forEach((d,m)=>{let g=t?ts:es;c[String(d)]=a(g[m],.012),n[`--v-neutral-${d}`]=c[String(d)]}),r.neutral=c,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 d=yt({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"]=ze(d),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"]=gt(d,.45),n["--v-shadow-sm"]=`0 1px 2px ${gt(d,.08)}`,n["--v-shadow"]=`0 10px 30px ${gt(d,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${gt(d,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=Ft((p=me(n["--v-surface"]))!=null?p:Zi),{vars:n,scales:r,contrast:o}}function Ir(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
|
|
138
|
+
`)}))}function oc(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 ic({el:e,cleanup:t,run:n}){var l,f;let r=E(e,"trigger")||oc(e),[o,...i]=r.split(/[.\s]+/),s=q((l=E(e,"poll"))!=null?l: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(d=>{for(let m of d)m.isIntersecting&&(n(),i.includes("repeat")||p.unobserve(e))},{rootMargin:"80px"});p.observe(e),t(()=>p.disconnect());return}let a=i.includes("once"),c=q((f=E(e,"debounce"))!=null?f:void 0,0),u=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};c>0&&(u=Fe(u,c)),e.addEventListener(o,u,{once:a}),t(()=>e.removeEventListener(o,u))}var sc=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of sc)A(e,({el:n,scope:r,expression:o,cleanup:i})=>{ic({el:n,scope:r,cleanup:i,run:a=>{let c=It(o,r);if(!c)return;let u=E(n,"body")||E(n,"data-body"),l=u?N(u,r.child({$event:a}),"v-body"):void 0,f=E(n,"params"),p=f?N(f,r,"v-params"):void 0;Dt({el:n,scope:r,method:t,url:c,body:l,params:p,event:a})}})});function It(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=N(n,t,"URL");return typeof o=="string"?o:n}A("load",({el:e,scope:t,expression:n})=>{let r=It(n,t);r&&Dt({el:e,scope:t,method:"GET",url:r})});A("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=It(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){Dt({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),Dt({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});A("search",({el:e,scope:t,expression:n,cleanup:r})=>{var f,p;let o=e,i=It(n,t),s=E(e,"param")||o.getAttribute("name")||"q",a=q((f=E(e,"debounce"))!=null?f:void 0,300),c=Number((p=E(e,"min-length"))!=null?p:0),u=Fe(()=>{let d=o.value.trim();d.length<c||Dt({el:e,scope:t,method:"GET",url:i,params:{[s]:d}})},a),l=()=>u();o.addEventListener("input",l),r(()=>{o.removeEventListener("input",l),u.cancel()})});A("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var c,u,l,f;let o=n.indexOf(":"),i=E(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=vn(()=>It(s,t),{method:(E(e,"method")||"GET").toUpperCase(),params:()=>E(e,"params")?N(E(e,"params"),t,"v-params"):void 0,cache:q((c=E(e,"cache"))!=null?c:void 0,0)||void 0,retry:Number((u=E(e,"retry"))!=null?u:0),timeout:q((l=E(e,"timeout"))!=null?l:void 0,oe.defaults.timeout),jsonPath:E(e,"json-path"),poll:q((f=E(e,"poll"))!=null?f:void 0,0),manual:Lr(e,"manual"),onSuccess:p=>ht(e,"voodoo:success",{data:p}),onError:(p,d)=>ht(e,"voodoo:error",{error:p,message:d})});t.set(i,a),r(()=>a.stop())},{priority:B.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"])A(e,()=>{},{priority:B.TRANSITION});Oo(Bo);Fo(St);zo(Ni);fi();var jt=new Map;function Pi(e,t){let n=jt.get(e);return n||jt.set(e,n=new Set),n.add(t),()=>n.delete(t)}function ac(e,t){let n=Pi(e,r=>{n(),t(r)});return n}function cc(e,t){let n=jt.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){O(o,`event "${e}"`)}}function uc(e,t){var n;if(!t){jt.delete(e);return}(n=jt.get(e))==null||n.delete(t)}function Ni(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;A(e,i=>{var l,f;let s,a=!1,c=p=>{var d,m;return{el:i.el,value:p,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(d=i.scope.owner)==null?void 0:d.component)!=null?m:null}},u=n.raw?i.expression:i.evaluate();(l=n.created)==null||l.call(n,i.el,c(u)),(f=n.beforeMount)==null||f.call(n,i.el,c(u)),i.effect(()=>{var m,g;let p=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=p,(m=n.mounted)==null||m.call(n,i.el,c(p));return}if(p===s)return;let d=c(p);(g=n.updated)==null||g.call(n,i.el,d),s=p}),i.cleanup(()=>{var d,m;let p=c(s);(d=n.beforeUnmount)==null||d.call(n,i.el,p),(m=n.unmounted)==null||m.call(n,i.el,p)})},{priority:(r=n.priority)!=null?r:B.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function lc(e){return Object.defineProperties(de.data,Object.getOwnPropertyDescriptors(e)),de.data}var dc="0.7.0",xn={...vr,version:dc,config:T,reactive:F,ref:Tt,shallowRef:Qn,computed:xt,effect:te,watch:ue,watchEffect:Gn,nextTick:Oe,toRaw:K,markRaw:Wn,unref:Kn,stop:Un,effectScope:qn,EffectScope:ne,flushSync:In,data:lc,store:Yo,stores:un,removeStore:Xo,storeNames:Jo,scope:de,component:rt,components:z,directive:Ni,directives:ge,magic:P,magics:Et,createApp:Qo,start:Ho,whenReady:sn,whenElement:an,walk:j,refresh:Io,destroy:$,stopObserving:Do,getScope:et,findScope:we,addCleanup:fe,parseAttribute:Je,parse:le,tokenize:Xt,evaluate:x,evaluateIn:N,stringify:Se,clearParseCache:ao,globals:G,http:oe,request:Lt,HttpError:X,resource:vn,toast:Ce,storage:ie,session:pn,cookie:mn,cache:gn,url:hn,theme:ft,clipboard:kr,screen:se,network:_e,enter:Nt,leave:Ot,fadeIn:bn,fadeOut:wn,slideUp:Ht,slideDown:$t,viewTransition:yi,injectStyle:Te,ensureTokens:Ue,on:Pi,once:ac,off:uc,emit:cc,use(e,t){Jt(xn,e,t)},onError(e){jn(e)},instances:rn,Scope:De,PRIORITY:B,VoodooSyntaxError:D,VoodooRuntimeError:W};Go(xn);Z();var fc=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 Ui(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function ae(e){return e.length<2?e:Array.from(new Set(e))}function Ve(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function Pr(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 qi(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function pc(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof pe)return e.toArray();if(typeof e=="string")return We(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=We(e);return t.length?t:typeof document=="undefined"?[]:[document]}function We(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(qi(o))return Pr(o);let i=[];for(let s of pc(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return ae(i)}if(e instanceof pe)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 ae(o)}return[]}function Oi(e){if(e==null)return[];if(typeof e=="string"){let r=e;return qi(r.trim())?Pr(r):[document.createTextNode(r)]}if(e instanceof pe)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 En(e,t,n){let r=Ui(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!fc.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function mc(e,t){for(let[n,r]of Object.entries(t))En(e,n,r)}function $i(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 Hi(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var _i=new WeakMap;function Di(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function Ii(e){e.removeAttribute("hidden");let t=_i.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 ji(e){let t=e.style.display;t&&t!=="none"&&_i.set(e,t),e.style.display="none"}var Fi="input,select,textarea";function Bi(e){return e.matches(Fi)?[e]:Array.from(e.querySelectorAll(Fi))}function hc(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 kn=new WeakMap;function gc(e){let t=kn.get(e);return t||kn.set(e,t=[]),t}var pe=class e{constructor(t=[]){L(this,"length");L(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(ae(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(ae(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(ae(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(ae(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(ae(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(ae(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(ae(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(ae(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(ae([...this.elements,...We(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))$(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))$(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 c of Array.from(s.options))c.selected=a.includes(c.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[c,u]of Object.entries(n))u===null||u===!1?a.removeAttribute(c):a.setAttribute(c,u===!0?"":String(u));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=Ve(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,c]of Object.entries(i.dataset))s[a]=$i(c);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[Hi(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=Hi(String(n));if(t.length<2){let i=this.elements[0];return i?$i(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)mc(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=Ui(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)En(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)En(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)En(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=Ve(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Ve(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Ve(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=Ve(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 Oi(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=We(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=We(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 Oi(t))r.insertBefore(o,n);$(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=We(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);$(n),n.remove()}}return this}remove(){for(let t of this.elements)$(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))$(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 c of this.elements)for(let u of Ve(t)){let l=f=>{if(!o){i.call(c,f);return}let p=f.target,d=p==null?void 0:p.closest(o);!d||!c.contains(d)||i.call(d,f)};c.addEventListener(u,l,s),gc(c).push({type:u,selector:o,handler:i,wrapped:l,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?Ve(t):null;for(let a of this.elements){let c=kn.get(a);if(!c)continue;let u=[];for(let l of c){let f=!s||s.includes(l.type),p=o===null||l.selector===o,d=i===null||l.handler===i;f&&p&&d?a.removeEventListener(l.type,l.wrapped,l.options):u.push(l)}kn.set(a,u)}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(c){return o?s.off(t,o,a):s.off(t,a),i.call(this,c)};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)Ii(t);return this}hide(){for(let t of this.elements)ji(t);return this}toggle(t){for(let n of this.elements)(t===void 0?Di(n):t)?Ii(n):ji(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),bn(n,t);return this}fadeOut(t=220){for(let n of this.elements)wn(n,t);return this}slideUp(t=240){for(let n of this.elements)Ht(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),$t(n,t);return this}slideToggle(t=240){for(let n of this.elements)Di(n)?(n.removeAttribute("hidden"),$t(n,t)):Ht(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 Bi(t)){if(!hc(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 Bi(t)){let c=a;if(!c.name||c.disabled)continue;let u=(c.getAttribute("type")||"").toLowerCase();if(u==="submit"||u==="reset"||u==="button")continue;let l=c.name.endsWith("[]"),f=l?c.name.slice(0,-2):c.name,p=a,d;if(u==="checkbox"){if(!c.checked&&!l){n[f]=(r=n[f])!=null?r:!1;continue}if(!c.checked)continue;d=c.value==="on"?!0:c.value}else if(u==="radio"){if(!c.checked)continue;d=c.value}else u==="file"?d=c.multiple?Array.from((o=c.files)!=null?o:[]):(s=(i=c.files)==null?void 0:i[0])!=null?s:null:c.tagName==="SELECT"&&p.multiple?d=Array.from(p.selectedOptions).map(m=>m.value):u==="number"||u==="range"?d=c.value===""?null:Number(c.value):d=c.value;if(l){let m=n[f];Array.isArray(m)?m.push(d):n[f]=[d];continue}if(Object.prototype.hasOwnProperty.call(n,f)){let m=n[f];Array.isArray(m)?m.push(d):m===void 0||m===!1?n[f]=d:n[f]=[m,d];continue}n[f]=d}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&&$(n),j(n,we(n.parentNode));return this}destroy(){for(let t of this.elements)$(t);return this}};function Nr(e,t){if(typeof e=="function"){Or(e);let n=typeof document!="undefined"?document.documentElement:null;return new pe(n?[n]:[])}return new pe(We(e,t))}function Or(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{Wo(()=>{try{e==null||e()}catch(n){O(n,"V.ready")}t()})})}function Vi(e){return new pe(Pr(e))}var Wi=((e,t)=>Nr(e,t));Object.assign(Wi,xn,{query:Nr,ready:Or,fromHtml:Vi,Collection:pe,magic:P});var $r=Wi;re();ut();re();var yc=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,vc=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,bc=/^rgba?\(([^)]+)\)$/i,wc=/^hsla?\(([^)]+)\)$/i;function zi(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function Tc(e,t,n){let r=(e%360+360)%360,o=J(t/100,0,1),i=J(n/100,0,1),s=(1-Math.abs(2*i-1))*o,a=s*(1-Math.abs(r/60%2-1)),c=i-s/2,u=Math.floor(r/60)%6,l=[[s,a,0],[a,s,0],[0,s,a],[0,a,s],[a,0,s],[s,0,a]],[f,p,d]=l[u];return{r:Math.round((f+c)*255),g:Math.round((p+c)*255),b:Math.round((d+c)*255)}}function me(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=yc.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=vc.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=bc.exec(t);if(o){let[s,a,c]=zi(o[1]);return s===void 0||a===void 0||c===void 0?null:{r:J(s,0,255),g:J(a,0,255),b:J(c,0,255)}}let i=wc.exec(t);if(i){let[s,a,c]=zi(i[1]);return s===void 0||a===void 0||c===void 0?null:Tc(s,a,c)}return null}function J(e,t,n){return e<t?t:e>n?n:e}function vt(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Hr(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function xc(e){let t=vt(e.r),n=vt(e.g),r=vt(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),c=Math.cbrt(i),u=Math.cbrt(s);return{l:.2104542553*a+.793617785*c-.0040720468*u,a:1.9779984951*a-2.428592205*c+.4505937099*u,b:.0259040371*a+.7827717662*c-.808675766*u}}function Ec(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:Hr(4.0767416621*o-3.3077115913*i+.2309699292*s),g:Hr(-1.2684380046*o+2.6097574011*i-.3413193965*s),b:Hr(-.0041960863*o-.7034186147*i+1.707614701*s)}}function An(e){let t=xc(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 Qi(e){let t=e.h*Math.PI/180;return Ec({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function yt(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=Qi({l:J(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(J(o.r,0,1)*255),g:Math.round(J(o.g,0,1)*255),b:Math.round(J(o.b,0,1)*255)};t*=.92}let n=Qi({l:J(e.l,0,1),c:0,h:e.h});return{r:Math.round(J(n.r,0,1)*255),g:Math.round(J(n.g,0,1)*255),b:Math.round(J(n.b,0,1)*255)}}function Dr(e){return J(Math.round(e),0,255).toString(16).padStart(2,"0")}function ze(e){return`#${Dr(e.r)}${Dr(e.g)}${Dr(e.b)}`}function gt(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function Ji(e){return ze(yt(e))}function jr(e){return .2126*vt(e.r)+.7152*vt(e.g)+.0722*vt(e.b)}function Fr(e,t){let n=typeof e=="string"?me(e):e,r=typeof t=="string"?me(t):t;if(!n||!r)return 1;let o=jr(n),i=jr(r),s=Math.max(o,i),a=Math.min(o,i);return(s+.05)/(a+.05)}var Zi={r:255,g:255,b:255},Rn={r:0,g:0,b:0};function Ft(e){let t=typeof e=="string"?me(e):e;return t?Fr(t,Zi)>=Fr(t,Rn)?"#ffffff":"#000000":"#ffffff"}var Br=[50,100,200,300,400,500,600,700,800,900],es=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],kc=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],ts=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],Sc=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function ns(e,t=!1){var a;let n=typeof e=="string"?(a=me(e))!=null?a:Rn:e,r=An(n),o=t?ts:es,i=t?Sc:kc,s={};return Br.forEach((c,u)=>{s[String(c)]=Ji({l:o[u],c:r.c*i[u],h:r.h})}),s}var Cn={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"}},rs=["primary","accent","success","warning","danger","info"],Ur="voodoo:palette",Ki="voodoo-palette",Ac="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Rc="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function Gi(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var Cc=/^([\d.]+)(px|rem|em)$/;function Mc(e){let t=(e||"12px").trim(),n=Cc.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 Yi(e,t){var u,l,f,p;let n={},r={},o={};for(let d of rs){let m=(u=me(e[d]))!=null?u:Rn,g=An(m),h=ns(m,t);r[d]=h;for(let M of Br)n[`--v-${d}-${M}`]=h[String(M)];let y=t?{l:Math.max(g.l,.62),c:g.c*.95,h:g.h}:g,S=t?{l:Math.min(y.l+.07,.94),c:y.c*.95,h:y.h}:{l:Math.max(y.l-.055,.12),c:y.c,h:y.h},_=t?{l:Math.min(y.l+.13,.97),c:y.c*.88,h:y.h}:{l:Math.max(y.l-.105,.1),c:y.c,h:y.h},k=yt(y),v=yt(S),I=yt(_);n[`--v-${d}`]=ze(t?k:m),n[`--v-${d}-hover`]=ze(v),n[`--v-${d}-active`]=ze(I),n[`--v-${d}-contrast`]=Ft(t?k:m),n[`--v-${d}-contrast-hover`]=Ft(v),n[`--v-${d}-contrast-active`]=Ft(I);let H=h[50],C=h[100],V=t?h[800]:h[700];n[`--v-${d}-soft`]=H,n[`--v-${d}-soft-hover`]=C,n[`--v-${d}-soft-text`]=V,n[`--v-${d}-ring`]=gt(k,t?.45:.32),n[`--v-${d}-border`]=t?h[300]:h[200],o[d]=n[`--v-${d}-contrast`]}let i=(f=me((l=e.neutral)!=null?l:e.primary))!=null?f:Rn,s=An(i).h,a=(d,m)=>Ji({l:d,c:m,h:s}),c={};if(Br.forEach((d,m)=>{let g=t?ts:es;c[String(d)]=a(g[m],.012),n[`--v-neutral-${d}`]=c[String(d)]}),r.neutral=c,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 d=yt({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"]=ze(d),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"]=gt(d,.45),n["--v-shadow-sm"]=`0 1px 2px ${gt(d,.08)}`,n["--v-shadow"]=`0 10px 30px ${gt(d,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${gt(d,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=Ft((p=me(n["--v-surface"]))!=null?p:Zi),{vars:n,scales:r,contrast:o}}function Ir(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
|
|
139
139
|
`);return`${e} {
|
|
140
140
|
${n}
|
|
141
141
|
}`}var Ut=null,Bt=null;function Lc(e){var r,o,i,s,a,c,u,l,f;let t=(r=Cn[e.preset])!=null?r:Cn.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:(c=e.danger)!=null?c:t.danger,info:(u=e.info)!=null?u:t.info,neutral:(l=e.neutral)!=null?l:t.neutral};for(let p of rs)me(n[p])||(console.warn(`[Voodoo] invalid color in palette.${p}: "${n[p]}". Using preset.`),n[p]=t[p]);return{colors:n,radius:(f=e.radius)!=null?f:"12px",font:Gi(e.font,Ac),mono:Gi(e.monoFont,Rc)}}function Pc(e){if(typeof document=="undefined"||!T.injectStyles)return;Ue();let t=document.getElementById(Ki);t||(t=document.createElement("style"),t.id=Ki,t.setAttribute("data-voodoo","palette"),document.head.appendChild(t)),t.textContent=e}function Sn(e={}){let{colors:t,radius:n,font:r,mono:o}=Lc(e),i=Yi(t,!1),s=Yi(t,!0),a={...Mc(n),"--v-font-sans":r,"--v-font-mono":o},c=["/* Palette generated by V.palette(). Do not edit manually. */",Ir(":root",{...a,...i.vars}),`@media (prefers-color-scheme: dark) {
|
package/dist/voodoo.full.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.
|
|
2
|
+
* Voodoo.js v0.7.0
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
@@ -6621,7 +6621,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
6621
6621
|
Object.defineProperties(rootScope.data, Object.getOwnPropertyDescriptors(values));
|
|
6622
6622
|
return rootScope.data;
|
|
6623
6623
|
}
|
|
6624
|
-
var version2 = "0.
|
|
6624
|
+
var version2 = "0.7.0";
|
|
6625
6625
|
var core = {
|
|
6626
6626
|
// Utilities first: Voodoo's own names can override.
|
|
6627
6627
|
...utils_exports,
|
|
@@ -20712,8 +20712,8 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
|
20712
20712
|
if (shortcutInstalled || typeof document === "undefined") return;
|
|
20713
20713
|
shortcutInstalled = true;
|
|
20714
20714
|
document.addEventListener("keydown", (event) => {
|
|
20715
|
-
if (!event.
|
|
20716
|
-
if (event.key !== "
|
|
20715
|
+
if (!event.altKey || !event.shiftKey || event.ctrlKey || event.metaKey) return;
|
|
20716
|
+
if (event.code !== "KeyV" && event.key !== "V" && event.key !== "v") return;
|
|
20717
20717
|
event.preventDefault();
|
|
20718
20718
|
xray();
|
|
20719
20719
|
});
|
|
@@ -20906,9 +20906,9 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
|
20906
20906
|
const button = document.createElement("button");
|
|
20907
20907
|
button.type = "button";
|
|
20908
20908
|
button.className = "v-devtools-btn";
|
|
20909
|
-
button.setAttribute("aria-label", "Open Voodoo devtools (
|
|
20909
|
+
button.setAttribute("aria-label", "Open Voodoo devtools (Alt+Shift+V)");
|
|
20910
20910
|
button.setAttribute("aria-pressed", "false");
|
|
20911
|
-
button.title = "Voodoo devtools \u2014 click to inspect, drag to move (
|
|
20911
|
+
button.title = "Voodoo devtools \u2014 click to inspect, drag to move (Alt+Shift+V)";
|
|
20912
20912
|
button.innerHTML = MARK;
|
|
20913
20913
|
const label = document.createElement("span");
|
|
20914
20914
|
label.className = "v-devtools-label";
|
package/dist/voodoo.full.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.
|
|
2
|
+
* Voodoo.js v0.7.0
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
@@ -135,7 +135,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
135
135
|
.v-json-object dt{font-weight:600;color:var(--v-text-muted,#6B6580)}
|
|
136
136
|
.v-json-object dd{margin:0}
|
|
137
137
|
.v-json-empty{color:var(--v-text-muted,#6B6580);font-style:italic}
|
|
138
|
-
`)}))}function Bv(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 jv({el:e,cleanup:t,run:n}){var d,u;let r=V(e,"trigger")||Bv(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 qv=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of qv)y(e,({el:n,scope:r,expression:o,cleanup:i})=>{jv({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:xa(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});od(ud);dd(Ot);gd(eu);Nd();var Vr=new Map;function Zd(e,t){let n=Vr.get(e);return n||Vr.set(e,n=new Set),n.add(t),()=>n.delete(t)}function Vv(e,t){let n=Zd(e,r=>{n(),t(r)});return n}function Uv(e,t){let n=Vr.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){K(o,`event "${e}"`)}}function Wv(e,t){var n;if(!t){Vr.delete(e);return}(n=Vr.get(e))==null||n.delete(t)}function eu(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 _v(e){return Object.defineProperties(ct.data,Object.getOwnPropertyDescriptors(e)),ct.data}var Kv="0.4.6",li={...ca,version:Kv,config:w,reactive:Z,ref:Mr,shallowRef:Ns,computed:Sr,effect:_e,watch:Oe,watchEffect:Fs,nextTick:at,toRaw:Le,markRaw:Hs,unref:Os,stop:Cs,effectScope:Rs,EffectScope:et,flushSync:Ls,data:_v,store:wd,stores:Fn,removeStore:Ed,storeNames:Ko,scope:ct,component:Ft,components:$e,directive:eu,directives:wt,magic:P,magics:Ar,createApp:bd,start:sd,whenReady:Uo,whenElement:Wo,walk:se,refresh:ld,destroy:X,stopObserving:ad,getScope:Lt,findScope:Ve,addCleanup:dt,parseAttribute:$n,parse:lt,tokenize:Po,evaluate:F,evaluateIn:q,stringify:Ht,clearParseCache:Oc,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:Zd,once:Vv,off:Wv,emit:Uv,use(e,t){No(li,e,t)},onError(e){Ms(e)},instances:Mt,Scope:on,PRIORITY:j,VoodooSyntaxError:de,VoodooRuntimeError:Re};xd(li);be();var Yv=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 cu(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 wa(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 du(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function Xv(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(du(o))return wa(o);let i=[];for(let s of Xv(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 tu(e){if(e==null)return[];if(typeof e=="string"){let r=e;return du(r.trim())?wa(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=cu(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!Yv.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Gv(e,t){for(let[n,r]of Object.entries(t))ci(e,n,r)}function nu(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 ru(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var uu=new WeakMap;function ou(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function iu(e){e.removeAttribute("hidden");let t=uu.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 su(e){let t=e.style.display;t&&t!=="none"&&uu.set(e,t),e.style.display="none"}var au="input,select,textarea";function lu(e){return e.matches(au)?[e]:Array.from(e.querySelectorAll(au))}function Qv(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 Jv(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]=nu(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[ru(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=ru(String(n));if(t.length<2){let i=this.elements[0];return i?nu(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)Gv(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=cu(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 tu(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 tu(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),Jv(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)iu(t);return this}hide(){for(let t of this.elements)su(t);return this}toggle(t){for(let n of this.elements)(t===void 0?ou(n):t)?iu(n):su(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)ou(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 lu(t)){if(!Qv(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 lu(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 Ea(e,t){if(typeof e=="function"){ka(e);let n=typeof document!="undefined"?document.documentElement:null;return new ft(n?[n]:[])}return new ft(fn(e,t))}function ka(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{hd(()=>{try{e==null||e()}catch(n){K(n,"V.ready")}t()})})}function fu(e){return new ft(wa(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 U={mode:"history",base:"/",beforeEach:null,afterEach:null,linkActiveClass:"v-link-active",linkExactActiveClass:"v-link-exact-active",transition:!0,titleTemplate:"%s",scrollBehavior:null},ui="__voodooRoute",vu=10,pt=[],hu=new Map,fi=new Map,Xn="inicial",pi=!1,gu=!1;function Zv(){return{path:"/",fullPath:"/",params:{},query:{},hash:"",name:"",meta:{},matched:null}}var ce=Z(Zv());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 bu(e){let t={};return e&&new URLSearchParams(e.startsWith("?")?e.slice(1):e).forEach((r,o)=>{t[o]=r}),t}function eh(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!=null&&t.append(n,String(r));return t.toString()}function Sa(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=bu(t.slice(i+1)),t=t.slice(0,i)),{path:Ur(t),query:o,hash:n}}function th(e){let t=U.base.replace(/\/$/,"");return!t||t===""?e:e===t?"/":e.startsWith(`${t}/`)?e.slice(t.length):e}function yu(){return typeof window=="undefined"?{path:"/",query:{},hash:""}:U.mode==="hash"?Sa(window.location.hash.slice(1)||"/"):{path:Ur(th(window.location.pathname)),query:bu(window.location.search),hash:window.location.hash.slice(1)}}function xu(e,t,n){let r=eh(t);return`${e}${r?`?${r}`:""}${n?`#${n}`:""}`}function Aa(e){let t=xu(e.path,e.query,e.hash);if(U.mode==="hash"){let{pathname:r,search:o}=window.location;return`${r}${o}#${t}`}return`${U.base==="/"?"":U.base.replace(/\/$/,"")}${t}`||"/"}var La=!1,mi=!1;function Ca(e,t,n){if(!La)try{n?window.history.replaceState(e,"",t):window.history.pushState(e,"",t);return}catch(i){if(!(i instanceof Error)||i.name!=="SecurityError")throw i;La=!0}if(U.mode!=="hash")return;let r=t.indexOf("#");if(r<0)return;let o=t.slice(r);if(window.location.hash!==o){mi=!0;try{window.location.hash=o}finally{setTimeout(()=>{mi=!1},0)}}}function wu(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 nh(e,t){let n={},r=0;for(let o of e){if(o.type==="wildcard")return n["*"]=t.slice(r).map(Ta).join("/"),n;if(r>=t.length){if(o.optional)continue;return null}let i=t[r];if(o.type==="static"){if(Ta(i)!==o.value)return null;r++;continue}n[o.value]=Ta(i),r++}return r===t.length?n:null}function Ta(e){try{return decodeURIComponent(e)}catch(t){return e}}function rh(e){let t=e.split("/").filter(Boolean),n=null;for(let r of pt){let o=nh(r.segments,t);o&&(!n||r.score>n.route.score)&&(n={route:r,params:o})}return n}function Ra(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}=Sa(e);return $a(t,n,r)}function $a(e,t,n){var o,i;let r=rh(e);return{path:e,fullPath:xu(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 Da(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=Ra(e.matched);t!=null&&t.title&&typeof document!="undefined"&&(document.title=U.titleTemplate.includes("%s")?U.titleTemplate.replace("%s",t.title):t.title)}async function Ha(e,t){let n=Ra(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(U.beforeEach){let r=await U.beforeEach(e,t);if(r===!1)return!1;if(typeof r=="string")return r}return!0}function hi(){typeof window!="undefined"&&hu.set(Xn,window.scrollY)}function Pa(e,t,n){typeof window!="undefined"&&Me(()=>{requestAnimationFrame(()=>{var o;let r=i=>{Math.abs(window.scrollY-i)>1&&window.scrollTo(0,i)};if(U.scrollBehavior){let i=U.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;Eu();let n=Qn(),r=Gn(e);if(!t.force&&r.fullPath===n.fullPath)return!0;for(let c=0;;c++){if(c>vu)return Y(`Router: too many redirects when navigating to "${e}".`),!1;let d=await Ha(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}hi();let o=ae("rota"),i={...(a=t.state)!=null?a:{},[ui]:o},s=Aa(r);return Ca(i,s,t.replace===!0),Xn=o,Da(r),t.scroll!==!1&&Pa(r,n,null),(l=U.afterEach)==null||l.call(U,Qn(),n),Fe.emit("navigation",{from:n.fullPath,to:r.fullPath,matched:r.matched}),!0}async function oh(e){var c,d;if(mi)return;let{path:t,query:n,hash:r}=yu(),o=$a(t,n,r),i=Qn();if(o.fullPath===i.fullPath)return;let s=await Ha(o,i);if(s===!1){Ca({[ui]:Xn},Aa(i),!0),Fe.emit("navigation",{from:i.fullPath,to:o.fullPath,cancelled:!0,matched:o.matched});return}if(typeof s=="string"){Vt(s,{replace:!0});return}hi();let a=e.state,l=a&&a[ui]||ae("rota");Xn=l,Da(o),Pa(o,i,(c=hu.get(l))!=null?c:0),(d=U.afterEach)==null||d.call(U,Qn(),i),Fe.emit("navigation",{from:i.fullPath,to:o.fullPath,matched:o.matched})}function vi(e){oh(e)}function Eu(){pi||typeof window=="undefined"||(pi=!0,"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),window.addEventListener("popstate",vi),U.mode==="hash"&&window.addEventListener("hashchange",vi),window.addEventListener("beforeunload",hi))}function ih(){!pi||typeof window=="undefined"||(pi=!1,window.removeEventListener("popstate",vi),window.removeEventListener("hashchange",vi),window.removeEventListener("beforeunload",hi),La=!1,mi=!1)}async function sh(){var i;if(typeof window=="undefined")return;let{path:e,query:t,hash:n}=yu(),r=Qn(),o=$a(e,t,n);for(let s=0;;s++){if(s>vu){Y("Router: too many redirects in the initial route.");return}let a=await Ha(o,r);if(a===!1)return;if(typeof a=="string"){o=Gn(a);continue}break}Xn=ae("rota"),Ca({[ui]:Xn},Aa(o),!0),Da(o),o.hash&&Pa(o,r,null),(i=U.afterEach)==null||i.call(U,Qn(),r)}function ah(e,t){let n=wu(e,t),r=pt.findIndex(o=>o.pattern===n.pattern);r>-1?pt.splice(r,1,n):pt.push(n)}function lh(e){let t=e==="*"?"*":Ur(e),n=pt.findIndex(r=>r.pattern===t);n>-1&&pt.splice(n,1)}function ch(){return[...pt].sort((e,t)=>t.score-e.score).map(e=>e.pattern)}function dh(e){e?fi.delete(e):fi.clear()}function uh(e){var t,n,r,o,i,s,a,l,c,d;U.mode=(t=e.mode)!=null?t:"history",U.base=Ur((n=e.base)!=null?n:"/"),U.beforeEach=(r=e.beforeEach)!=null?r:null,U.afterEach=(o=e.afterEach)!=null?o:null,U.linkActiveClass=(i=e.linkActiveClass)!=null?i:"v-link-active",U.linkExactActiveClass=(s=e.linkExactActiveClass)!=null?s:"v-link-exact-active",U.transition=(a=e.transition)!=null?a:!0,U.titleTemplate=(l=e.titleTemplate)!=null?l:"%s",U.scrollBehavior=(c=e.scrollBehavior)!=null?c:null,pt.length=0;for(let[u,p]of Object.entries((d=e.routes)!=null?d:{}))pt.push(wu(u,p));return gu=!0,Eu(),sh(),Wr}var fh={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:ah,removeRoute:lh,patterns:ch,stop:ih,clearViewCache:dh,get ready(){return gu}},Wr=Object.defineProperties(uh,Object.getOwnPropertyDescriptors(fh));P("$route",()=>ce);P("$router",()=>Wr);async function ph(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 mh(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=U.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 ph(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;mh(ce.params);let p=Ra(u);d(p,++a)}),o(()=>{a++,l()})},{priority:j.DEFAULT});var vh=/^[a-z][a-z0-9+.-]*:/i;function pu(e){return!!(!e||e.startsWith("//")||vh.test(e))}function mu(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 U.mode==="hash"&&o.startsWith("#")?o.slice(1)||"/":o}function Ma(e,t){let{path:n}=Sa(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=mu(e,t,i);d&&(pu(d)||U.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=mu(e,t,i);if(!l||pu(l))return;let c=Ma(l,!0),d=c||Ma(l,!1);e.classList.toggle(U.linkActiveClass,d),e.classList.toggle(U.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?Ma(String(l),!!r.exact):!1;e.classList.toggle(s,c)})});be();le();var hh="voodoo:locale",z=Z({locale:w.locale||"pt-BR",fallback:"en",currency:w.currency||"BRL",messages:{}}),Jn=hh,Zn="",Na=new Map;function gi(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 bi(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 ku=new Map;function gh(e,t){try{let n=ku.get(e);return n||ku.set(e,n=new Intl.PluralRules(e)),n.select(t)}catch(n){return t===1?"one":"other"}}var bh=["zero","one","two","few","many","other"];function yh(e,t,n){var i;if(e.length<=1)return(i=e[0])!=null?i:"";let r=gh(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=bh.indexOf(r);return e[Math.min(o<0?e.length-1:o,e.length-1)]}var xh=/\{\s*([\w.$-]+)\s*\}/g;function wh(e,t){return e.indexOf("{")===-1?e:e.replace(xh,(n,r)=>{let o=t[r];return o==null?n:String(o)})}function Eh(e){return e==null?{}:typeof e=="number"?{n:e}:e}function er(e,t){var i,s;if(!e)return"";let n=Eh(t),r=z.locale,o=null;for(let a of bi(r))if(o=gi(a,e),o!==null)break;if(o===null&&z.fallback&&z.fallback!==r){for(let a of bi(z.fallback))if(o=gi(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=yh(l,Number.isNaN(a)?0:a,r)}return wh(o,n)}function kh(e,t){let n=t!=null?t:z.locale;for(let r of bi(n))if(gi(r,e)!==null)return!0;if(z.fallback&&z.fallback!==n){for(let r of bi(z.fallback))if(gi(r,e)!==null)return!0}return!1}function Tu(e,t={}){return sa(e,{...t,locale:z.locale})}function Lu(e,t){return ia(e,{locale:z.locale,currency:t!=null?t:z.currency})}function Mu(e,t="short"){return aa(e,t,z.locale)}function Su(e){return la(e,z.locale)}function xi(){return z.locale}function Th(e){var t;return(t=z.messages[e!=null?e:z.locale])!=null?t:{}}function yi(e,t){let n=z.messages[e];return n?Xo(n,t):z.messages[e]=t,e}async function Oa(e,t){if(typeof t!="string"){yi(e,t);return}let n=Na.get(e);if(n)return n;let r=ve.get(t,{responseType:"json"}).then(o=>{o&&typeof o=="object"&&yi(e,o)}).catch(o=>{K(o,`i18n ao carregar "${t}"`)}).finally(()=>{Na.delete(e)});return Na.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?Oa(t,Zn.replace("{locale}",t)):Promise.resolve()}function Au(){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 Lh(e={}){var o,i,s,a;if(e.messages)for(let[l,c]of Object.entries(e.messages))yi(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:Au(),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&&Oa(r,Zn.replace("{locale}",r)),Kr}var Mh={get locale(){return z.locale},get fallback(){return z.fallback},get locales(){return Object.keys(z.messages)},t:er,te:kh,n:Tu,c:Lu,d:Mu,rt:Su,setLocale:_r,getLocale:xi,addMessages:yi,loadMessages:Oa,messagesOf:Th,detectLocale:Au},Kr=Object.defineProperties(Lh,Object.getOwnPropertyDescriptors(Mh));P("$t",()=>er);P("$locale",()=>z.locale);P("$i18n",()=>Kr);P("$n",()=>Tu);P("$c",()=>Lu);P("$d",()=>Mu);P("$rt",()=>Su);var Sh=/^[A-Za-z_$][\w$-]*(\.[A-Za-z_$][\w$-]*)*$/;function Ah(e,t){let n=e.trim();if(!n)return"";if(Sh.test(n))return n;let r=t(n);return typeof r=="string"?r:n}function Ch(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=Ah(n,o);if(!i)return;let s=er(i,Ch(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 Fa=new WeakMap;function Wt(e,t){var n;return(n=ke(e,`${w.prefix}${t}`))!=null?n:ke(e,`data-v-${t}`)}function wi(e,t){return Nt(e,`${w.prefix}${t}`)||Nt(e,`data-v-${t}`)}function J(e,t){let n=Fa.get(e);return n&&t in n?n[t]:Wt(e,t)}function Ei(e,t,n){var o;let r=(o=Fa.get(e))!=null?o:{};r[t]=n,Fa.set(e,r)}function _(e){y(e,({el:t,expression:n})=>{Ei(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 Rh=`
|
|
138
|
+
`)}))}function Bv(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 jv({el:e,cleanup:t,run:n}){var d,u;let r=V(e,"trigger")||Bv(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 qv=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of qv)y(e,({el:n,scope:r,expression:o,cleanup:i})=>{jv({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:xa(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});od(ud);dd(Ot);gd(eu);Nd();var Vr=new Map;function Zd(e,t){let n=Vr.get(e);return n||Vr.set(e,n=new Set),n.add(t),()=>n.delete(t)}function Vv(e,t){let n=Zd(e,r=>{n(),t(r)});return n}function Uv(e,t){let n=Vr.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){K(o,`event "${e}"`)}}function Wv(e,t){var n;if(!t){Vr.delete(e);return}(n=Vr.get(e))==null||n.delete(t)}function eu(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 _v(e){return Object.defineProperties(ct.data,Object.getOwnPropertyDescriptors(e)),ct.data}var Kv="0.7.0",li={...ca,version:Kv,config:w,reactive:Z,ref:Mr,shallowRef:Ns,computed:Sr,effect:_e,watch:Oe,watchEffect:Fs,nextTick:at,toRaw:Le,markRaw:Hs,unref:Os,stop:Cs,effectScope:Rs,EffectScope:et,flushSync:Ls,data:_v,store:wd,stores:Fn,removeStore:Ed,storeNames:Ko,scope:ct,component:Ft,components:$e,directive:eu,directives:wt,magic:P,magics:Ar,createApp:bd,start:sd,whenReady:Uo,whenElement:Wo,walk:se,refresh:ld,destroy:X,stopObserving:ad,getScope:Lt,findScope:Ve,addCleanup:dt,parseAttribute:$n,parse:lt,tokenize:Po,evaluate:F,evaluateIn:q,stringify:Ht,clearParseCache:Oc,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:Zd,once:Vv,off:Wv,emit:Uv,use(e,t){No(li,e,t)},onError(e){Ms(e)},instances:Mt,Scope:on,PRIORITY:j,VoodooSyntaxError:de,VoodooRuntimeError:Re};xd(li);be();var Yv=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 cu(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 wa(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 du(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function Xv(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(du(o))return wa(o);let i=[];for(let s of Xv(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 tu(e){if(e==null)return[];if(typeof e=="string"){let r=e;return du(r.trim())?wa(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=cu(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!Yv.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Gv(e,t){for(let[n,r]of Object.entries(t))ci(e,n,r)}function nu(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 ru(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var uu=new WeakMap;function ou(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function iu(e){e.removeAttribute("hidden");let t=uu.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 su(e){let t=e.style.display;t&&t!=="none"&&uu.set(e,t),e.style.display="none"}var au="input,select,textarea";function lu(e){return e.matches(au)?[e]:Array.from(e.querySelectorAll(au))}function Qv(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 Jv(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]=nu(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[ru(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=ru(String(n));if(t.length<2){let i=this.elements[0];return i?nu(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)Gv(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=cu(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 tu(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 tu(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),Jv(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)iu(t);return this}hide(){for(let t of this.elements)su(t);return this}toggle(t){for(let n of this.elements)(t===void 0?ou(n):t)?iu(n):su(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)ou(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 lu(t)){if(!Qv(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 lu(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 Ea(e,t){if(typeof e=="function"){ka(e);let n=typeof document!="undefined"?document.documentElement:null;return new ft(n?[n]:[])}return new ft(fn(e,t))}function ka(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{hd(()=>{try{e==null||e()}catch(n){K(n,"V.ready")}t()})})}function fu(e){return new ft(wa(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 U={mode:"history",base:"/",beforeEach:null,afterEach:null,linkActiveClass:"v-link-active",linkExactActiveClass:"v-link-exact-active",transition:!0,titleTemplate:"%s",scrollBehavior:null},ui="__voodooRoute",vu=10,pt=[],hu=new Map,fi=new Map,Xn="inicial",pi=!1,gu=!1;function Zv(){return{path:"/",fullPath:"/",params:{},query:{},hash:"",name:"",meta:{},matched:null}}var ce=Z(Zv());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 bu(e){let t={};return e&&new URLSearchParams(e.startsWith("?")?e.slice(1):e).forEach((r,o)=>{t[o]=r}),t}function eh(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!=null&&t.append(n,String(r));return t.toString()}function Sa(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=bu(t.slice(i+1)),t=t.slice(0,i)),{path:Ur(t),query:o,hash:n}}function th(e){let t=U.base.replace(/\/$/,"");return!t||t===""?e:e===t?"/":e.startsWith(`${t}/`)?e.slice(t.length):e}function yu(){return typeof window=="undefined"?{path:"/",query:{},hash:""}:U.mode==="hash"?Sa(window.location.hash.slice(1)||"/"):{path:Ur(th(window.location.pathname)),query:bu(window.location.search),hash:window.location.hash.slice(1)}}function xu(e,t,n){let r=eh(t);return`${e}${r?`?${r}`:""}${n?`#${n}`:""}`}function Aa(e){let t=xu(e.path,e.query,e.hash);if(U.mode==="hash"){let{pathname:r,search:o}=window.location;return`${r}${o}#${t}`}return`${U.base==="/"?"":U.base.replace(/\/$/,"")}${t}`||"/"}var La=!1,mi=!1;function Ca(e,t,n){if(!La)try{n?window.history.replaceState(e,"",t):window.history.pushState(e,"",t);return}catch(i){if(!(i instanceof Error)||i.name!=="SecurityError")throw i;La=!0}if(U.mode!=="hash")return;let r=t.indexOf("#");if(r<0)return;let o=t.slice(r);if(window.location.hash!==o){mi=!0;try{window.location.hash=o}finally{setTimeout(()=>{mi=!1},0)}}}function wu(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 nh(e,t){let n={},r=0;for(let o of e){if(o.type==="wildcard")return n["*"]=t.slice(r).map(Ta).join("/"),n;if(r>=t.length){if(o.optional)continue;return null}let i=t[r];if(o.type==="static"){if(Ta(i)!==o.value)return null;r++;continue}n[o.value]=Ta(i),r++}return r===t.length?n:null}function Ta(e){try{return decodeURIComponent(e)}catch(t){return e}}function rh(e){let t=e.split("/").filter(Boolean),n=null;for(let r of pt){let o=nh(r.segments,t);o&&(!n||r.score>n.route.score)&&(n={route:r,params:o})}return n}function Ra(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}=Sa(e);return $a(t,n,r)}function $a(e,t,n){var o,i;let r=rh(e);return{path:e,fullPath:xu(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 Da(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=Ra(e.matched);t!=null&&t.title&&typeof document!="undefined"&&(document.title=U.titleTemplate.includes("%s")?U.titleTemplate.replace("%s",t.title):t.title)}async function Ha(e,t){let n=Ra(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(U.beforeEach){let r=await U.beforeEach(e,t);if(r===!1)return!1;if(typeof r=="string")return r}return!0}function hi(){typeof window!="undefined"&&hu.set(Xn,window.scrollY)}function Pa(e,t,n){typeof window!="undefined"&&Me(()=>{requestAnimationFrame(()=>{var o;let r=i=>{Math.abs(window.scrollY-i)>1&&window.scrollTo(0,i)};if(U.scrollBehavior){let i=U.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;Eu();let n=Qn(),r=Gn(e);if(!t.force&&r.fullPath===n.fullPath)return!0;for(let c=0;;c++){if(c>vu)return Y(`Router: too many redirects when navigating to "${e}".`),!1;let d=await Ha(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}hi();let o=ae("rota"),i={...(a=t.state)!=null?a:{},[ui]:o},s=Aa(r);return Ca(i,s,t.replace===!0),Xn=o,Da(r),t.scroll!==!1&&Pa(r,n,null),(l=U.afterEach)==null||l.call(U,Qn(),n),Fe.emit("navigation",{from:n.fullPath,to:r.fullPath,matched:r.matched}),!0}async function oh(e){var c,d;if(mi)return;let{path:t,query:n,hash:r}=yu(),o=$a(t,n,r),i=Qn();if(o.fullPath===i.fullPath)return;let s=await Ha(o,i);if(s===!1){Ca({[ui]:Xn},Aa(i),!0),Fe.emit("navigation",{from:i.fullPath,to:o.fullPath,cancelled:!0,matched:o.matched});return}if(typeof s=="string"){Vt(s,{replace:!0});return}hi();let a=e.state,l=a&&a[ui]||ae("rota");Xn=l,Da(o),Pa(o,i,(c=hu.get(l))!=null?c:0),(d=U.afterEach)==null||d.call(U,Qn(),i),Fe.emit("navigation",{from:i.fullPath,to:o.fullPath,matched:o.matched})}function vi(e){oh(e)}function Eu(){pi||typeof window=="undefined"||(pi=!0,"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),window.addEventListener("popstate",vi),U.mode==="hash"&&window.addEventListener("hashchange",vi),window.addEventListener("beforeunload",hi))}function ih(){!pi||typeof window=="undefined"||(pi=!1,window.removeEventListener("popstate",vi),window.removeEventListener("hashchange",vi),window.removeEventListener("beforeunload",hi),La=!1,mi=!1)}async function sh(){var i;if(typeof window=="undefined")return;let{path:e,query:t,hash:n}=yu(),r=Qn(),o=$a(e,t,n);for(let s=0;;s++){if(s>vu){Y("Router: too many redirects in the initial route.");return}let a=await Ha(o,r);if(a===!1)return;if(typeof a=="string"){o=Gn(a);continue}break}Xn=ae("rota"),Ca({[ui]:Xn},Aa(o),!0),Da(o),o.hash&&Pa(o,r,null),(i=U.afterEach)==null||i.call(U,Qn(),r)}function ah(e,t){let n=wu(e,t),r=pt.findIndex(o=>o.pattern===n.pattern);r>-1?pt.splice(r,1,n):pt.push(n)}function lh(e){let t=e==="*"?"*":Ur(e),n=pt.findIndex(r=>r.pattern===t);n>-1&&pt.splice(n,1)}function ch(){return[...pt].sort((e,t)=>t.score-e.score).map(e=>e.pattern)}function dh(e){e?fi.delete(e):fi.clear()}function uh(e){var t,n,r,o,i,s,a,l,c,d;U.mode=(t=e.mode)!=null?t:"history",U.base=Ur((n=e.base)!=null?n:"/"),U.beforeEach=(r=e.beforeEach)!=null?r:null,U.afterEach=(o=e.afterEach)!=null?o:null,U.linkActiveClass=(i=e.linkActiveClass)!=null?i:"v-link-active",U.linkExactActiveClass=(s=e.linkExactActiveClass)!=null?s:"v-link-exact-active",U.transition=(a=e.transition)!=null?a:!0,U.titleTemplate=(l=e.titleTemplate)!=null?l:"%s",U.scrollBehavior=(c=e.scrollBehavior)!=null?c:null,pt.length=0;for(let[u,p]of Object.entries((d=e.routes)!=null?d:{}))pt.push(wu(u,p));return gu=!0,Eu(),sh(),Wr}var fh={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:ah,removeRoute:lh,patterns:ch,stop:ih,clearViewCache:dh,get ready(){return gu}},Wr=Object.defineProperties(uh,Object.getOwnPropertyDescriptors(fh));P("$route",()=>ce);P("$router",()=>Wr);async function ph(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 mh(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=U.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 ph(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;mh(ce.params);let p=Ra(u);d(p,++a)}),o(()=>{a++,l()})},{priority:j.DEFAULT});var vh=/^[a-z][a-z0-9+.-]*:/i;function pu(e){return!!(!e||e.startsWith("//")||vh.test(e))}function mu(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 U.mode==="hash"&&o.startsWith("#")?o.slice(1)||"/":o}function Ma(e,t){let{path:n}=Sa(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=mu(e,t,i);d&&(pu(d)||U.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=mu(e,t,i);if(!l||pu(l))return;let c=Ma(l,!0),d=c||Ma(l,!1);e.classList.toggle(U.linkActiveClass,d),e.classList.toggle(U.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?Ma(String(l),!!r.exact):!1;e.classList.toggle(s,c)})});be();le();var hh="voodoo:locale",z=Z({locale:w.locale||"pt-BR",fallback:"en",currency:w.currency||"BRL",messages:{}}),Jn=hh,Zn="",Na=new Map;function gi(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 bi(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 ku=new Map;function gh(e,t){try{let n=ku.get(e);return n||ku.set(e,n=new Intl.PluralRules(e)),n.select(t)}catch(n){return t===1?"one":"other"}}var bh=["zero","one","two","few","many","other"];function yh(e,t,n){var i;if(e.length<=1)return(i=e[0])!=null?i:"";let r=gh(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=bh.indexOf(r);return e[Math.min(o<0?e.length-1:o,e.length-1)]}var xh=/\{\s*([\w.$-]+)\s*\}/g;function wh(e,t){return e.indexOf("{")===-1?e:e.replace(xh,(n,r)=>{let o=t[r];return o==null?n:String(o)})}function Eh(e){return e==null?{}:typeof e=="number"?{n:e}:e}function er(e,t){var i,s;if(!e)return"";let n=Eh(t),r=z.locale,o=null;for(let a of bi(r))if(o=gi(a,e),o!==null)break;if(o===null&&z.fallback&&z.fallback!==r){for(let a of bi(z.fallback))if(o=gi(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=yh(l,Number.isNaN(a)?0:a,r)}return wh(o,n)}function kh(e,t){let n=t!=null?t:z.locale;for(let r of bi(n))if(gi(r,e)!==null)return!0;if(z.fallback&&z.fallback!==n){for(let r of bi(z.fallback))if(gi(r,e)!==null)return!0}return!1}function Tu(e,t={}){return sa(e,{...t,locale:z.locale})}function Lu(e,t){return ia(e,{locale:z.locale,currency:t!=null?t:z.currency})}function Mu(e,t="short"){return aa(e,t,z.locale)}function Su(e){return la(e,z.locale)}function xi(){return z.locale}function Th(e){var t;return(t=z.messages[e!=null?e:z.locale])!=null?t:{}}function yi(e,t){let n=z.messages[e];return n?Xo(n,t):z.messages[e]=t,e}async function Oa(e,t){if(typeof t!="string"){yi(e,t);return}let n=Na.get(e);if(n)return n;let r=ve.get(t,{responseType:"json"}).then(o=>{o&&typeof o=="object"&&yi(e,o)}).catch(o=>{K(o,`i18n ao carregar "${t}"`)}).finally(()=>{Na.delete(e)});return Na.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?Oa(t,Zn.replace("{locale}",t)):Promise.resolve()}function Au(){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 Lh(e={}){var o,i,s,a;if(e.messages)for(let[l,c]of Object.entries(e.messages))yi(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:Au(),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&&Oa(r,Zn.replace("{locale}",r)),Kr}var Mh={get locale(){return z.locale},get fallback(){return z.fallback},get locales(){return Object.keys(z.messages)},t:er,te:kh,n:Tu,c:Lu,d:Mu,rt:Su,setLocale:_r,getLocale:xi,addMessages:yi,loadMessages:Oa,messagesOf:Th,detectLocale:Au},Kr=Object.defineProperties(Lh,Object.getOwnPropertyDescriptors(Mh));P("$t",()=>er);P("$locale",()=>z.locale);P("$i18n",()=>Kr);P("$n",()=>Tu);P("$c",()=>Lu);P("$d",()=>Mu);P("$rt",()=>Su);var Sh=/^[A-Za-z_$][\w$-]*(\.[A-Za-z_$][\w$-]*)*$/;function Ah(e,t){let n=e.trim();if(!n)return"";if(Sh.test(n))return n;let r=t(n);return typeof r=="string"?r:n}function Ch(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=Ah(n,o);if(!i)return;let s=er(i,Ch(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 Fa=new WeakMap;function Wt(e,t){var n;return(n=ke(e,`${w.prefix}${t}`))!=null?n:ke(e,`data-v-${t}`)}function wi(e,t){return Nt(e,`${w.prefix}${t}`)||Nt(e,`data-v-${t}`)}function J(e,t){let n=Fa.get(e);return n&&t in n?n[t]:Wt(e,t)}function Ei(e,t,n){var o;let r=(o=Fa.get(e))!=null?o:{};r[t]=n,Fa.set(e,r)}function _(e){y(e,({el:t,expression:n})=>{Ei(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 Rh=`
|
|
139
139
|
.v-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
|
|
140
140
|
clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
141
141
|
`,Ut=null;function Ye(e){if(typeof document=="undefined")return;ne("ui-live",Rh),(!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 ki(e,t,n){return Bo(e,t).filter(r=>Hn(r,n)===e)}He();le();var $h=`
|
|
@@ -1645,7 +1645,7 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
|
1645
1645
|
@media (max-width: 640px){
|
|
1646
1646
|
.v-xray-panel{right:8px;left:8px;width:auto;max-height:60vh}
|
|
1647
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 hs(e){if(!e||!W)return!1;let t=e.nodeType===1?e:e.parentElement;return!!t&&W.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 Rp(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 My(e){var t;if(typeof e=="string")return e;try{return(t=JSON.stringify(e))!=null?t:""}catch(n){return String(e)}}function Sy(e,t){if(typeof t=="string")return e;try{return JSON.parse(e)}catch(n){return e}}function $p(e){let t=new Date(e),n=r=>String(r).padStart(2,"0");return`${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`}function Dp(e,t){for(let n of e.effects)t.push(n);for(let n of e.children)Dp(n,t)}function tc(e){let t=[];for(let n of Zc(e))Dp(n,t);return t}function Hp(e){let t=tc(e).length;for(let n of Array.from(e.childNodes))n.nodeType===3&&(t+=tc(n).length);return t}function Pp(e){if(!e||!We||hs(e))return;let t=wo.get(e);t&&window.clearTimeout(t),ms.add(e),e.classList.add(Eo);let n=window.setTimeout(()=>{e.classList.remove(Eo),wo.delete(e),window.setTimeout(()=>ms.delete(e),0)},460);wo.set(e,n)}function Mp(e,t){for(let n of tc(e)){if(Gt.has(n))continue;let r=n.fn;Gt.set(n,r),n.fn=()=>(we.effects++,Pp(t),r())}}function Ay(){for(let[e,t]of Gt)e.fn=t;Gt.clear()}function Np(){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(W&&W.root.contains(n)){t=Cy(e);continue}Mp(n,n)}else t.nodeType===3&&t.parentElement&&Mp(t,t.parentElement);t=e.nextNode()}Dy()}function Cy(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 Ry(){let e=[],t=document.body.querySelectorAll("*");for(let n=0;n<t.length&&e.length<Ty;n++){let r=t[n];W&&W.root.contains(r)||Gs(r)&&e.push(r)}return e}function $y(e){return Dn(e).map(t=>t.arg?`${t.name}:${t.arg}`:t.name)}function Dy(){var t;if(!We||!W)return;let e=W.overlay;e.textContent="",ko.length=0;for(let n of Ry()){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",$y(n).join(" "));r.appendChild(i),e.appendChild(r),ko.push({el:n,box:r})}oc()}function oc(){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 Hy(){wr||(wr=requestAnimationFrame(()=>{wr=0,oc()}))}function Py(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 Ny(e){var s;if(!W)return;let t=W.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=Py(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",Rp(l))),t.appendChild(c)}t.appendChild(M("span","v-xray-section","Reactivity")),t.appendChild(M("div","v-xray-val",`${Hp(e)} effect(s) depend on this element`))}function Oy(e,t){if(!W)return;let n=W.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 Sp(e){if(!We||!W)return;let t=e.target;if(!t||hs(t)){W.card.dataset.open="0",xo=null;return}let n=t;for(;n&&n!==document.body&&!Gs(n);)n=n.parentElement;if(!n||n===document.body){W.card.dataset.open="0",xo=null;return}n!==xo&&(xo=n,Ny(n)),W.card.dataset.open="1",Oy(e.clientX,e.clientY)}function Fy(){let e=new Map,t=document.body.querySelectorAll("*");for(let r=0;r<t.length;r++){let o=t[r];if(W&&W.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 vs(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=My(t),o.spellcheck=!1,o.addEventListener("change",()=>{try{n(Sy(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 Iy(){let e=document.createDocumentFragment(),t=Fy();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",()=>Fp(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(vs(a,l,c=>{n.scope.set(a,c)}))}r.appendChild(i),e.appendChild(r)}return e}function zy(){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",`${Hp(r.$el)} effects`)),i.lastChild.dataset.tone="mute",i.addEventListener("click",()=>Fp(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(vs(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(vs(u,p,f=>{c.set(u,f)}))}}o.appendChild(s),e.appendChild(o)}return e}function By(){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(vs(l,r[l],c=>{r[l]=c}));o.appendChild(s),e.appendChild(o)}return e}function Op(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 jy(){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(Op($p(n.at),`${n.type} on ${n.target}`,n.detail||n.source));return e}function qy(){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(Op($p(n.at),`${n.method} ${n.url}`,`${n.status||"---"} ${Math.round(n.duration)}ms`,n.ok?"ok":"fail"));return e}function Vy(){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 Uy=[{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(!W)return;let e=document.activeElement;if(!(e instanceof HTMLInputElement&&W.body.contains(e))){switch(W.body.textContent="",Ze){case"estado":W.body.appendChild(Iy());break;case"componentes":W.body.appendChild(zy());break;case"stores":W.body.appendChild(By());break;case"eventos":W.body.appendChild(jy());break;case"rede":W.body.appendChild(qy());break;case"desempenho":W.body.appendChild(Vy());break}for(let t of Array.from(W.tabs.children)){let n=t;n.dataset.active=n.dataset.id===Ze?"1":"0"}W.status.textContent=`${ko.length} elements with directives, ${Mt.size} components, ${Gt.size} effects observed`}}function Fp(e){e.scrollIntoView({behavior:"smooth",block:"center"}),Pp(e)}function Wy(){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",()=>Ip()),o.appendChild(a),r.appendChild(o);let l=M("div","v-xray-tabs");for(let u of Uy){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 _y=["click","dblclick","submit","input","change","keydown","keyup","focus","blur","contextmenu","drop","paste"];function Ap(e){br.push(e),br.length>Cp&&br.shift(),Ze==="eventos"&&Qt()}function ec(e){yr.push(e),yr.length>Cp&&yr.shift(),Ze==="rede"&&Qt()}function Ky(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 Yy(){let e=new Set(_y),t=document.body.querySelectorAll("*");for(let n=0;n<t.length;n++){let r=t[n];if(!(W&&W.root.contains(r)))for(let o of Dn(r))o.name==="on"&&o.arg&&e.add(o.arg)}return[...e]}function Xy(){let e=t=>{if(!We)return;let n=t.target;if(!n||n.nodeType!==1||hs(n))return;let r=Ky(n,t.type),o=t.__voodoo===!0;!r&&!o||Ap({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 Yy())document.addEventListener(t,e,!0),yt.push(()=>document.removeEventListener(t,e,!0));yt.push(Fe.on("event",t=>{var n,r;Ap({at:Date.now(),type:t.type,target:Er((n=t.el)!=null?n:null),detail:Rp(t.detail),source:(r=t.source)!=null?r:"bus"})}))}function Gy(){yt.push(ve.interceptors.request.use(e=>(Zl.set(e,performance.now()),e))),yt.push(ve.interceptors.response.use(e=>{var n,r;let t=(n=Zl.get(e.config))!=null?n:performance.now();return ec({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=Zl.get(t))!=null?r:performance.now();return ec({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;ec({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 Qy(){gr=new MutationObserver(e=>{let t=!1;for(let n of e){let r=n.target;hs(r)||n.type==="attributes"&&n.attributeName==="class"&&r.nodeType===1&&ms.has(r)||(we.mutations++,n.type==="childList"&&n.addedNodes.length&&(t=!0))}t&&!xr&&(xr=window.setTimeout(()=>{xr=0,Np()},250))}),gr.observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0})}function Jy(){ps=window.setInterval(()=>{we.effectsPerSecond=we.effects-nc,we.updatesPerSecond=we.mutations-rc,nc=we.effects,rc=we.mutations,we.history.push({effects:we.effectsPerSecond,updates:we.updatesPerSecond}),we.history.length>40&&we.history.shift(),Ze==="desempenho"&&Qt()},1e3),fs=window.setInterval(()=>{oc(),(Ze==="estado"||Ze==="componentes"||Ze==="stores")&&Qt()},700)}var nc=0,rc=0;function Zy(){if(We||typeof document=="undefined"||!document.body)return;We=!0,he(),ne("xray",Ly),W=Wy(),Ze=Ze||"estado",we.effects=0,we.mutations=0,nc=0,rc=0,we.history.length=0,Np(),Xy(),Gy(),Qy(),Jy();let e=()=>Hy();window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),document.addEventListener("mousemove",Sp,!0),yt.push(()=>window.removeEventListener("scroll",e,!0)),yt.push(()=>window.removeEventListener("resize",e)),yt.push(()=>document.removeEventListener("mousemove",Sp,!0)),Qt()}function Ip(){if(We){We=!1;for(let e of yt.splice(0))try{e()}catch(t){}gr==null||gr.disconnect(),gr=null,ps&&window.clearInterval(ps),fs&&window.clearInterval(fs),xr&&window.clearTimeout(xr),wr&&cancelAnimationFrame(wr),ps=fs=xr=wr=0;for(let[e,t]of wo)window.clearTimeout(t),e.classList.remove(Eo);wo.clear(),ms.clear(),Ay(),ko.length=0,xo=null,W==null||W.root.remove(),W=null}}function zp(){return We}function ic(){Lp||typeof document=="undefined"||(Lp=!0,document.addEventListener("keydown",e=>{!e.ctrlKey||!e.shiftKey||e.key!=="X"&&e.key!=="x"||(e.preventDefault(),To())}))}function To(e){return ic(),(e!=null?e:!We)?Zy():Ip(),We}He();var jp="voodoo:devtools:widget-position",sc="voodoo:devtools:widget-hidden",ex=4,te=null,kr=!1,ac=0,gs=0,Lo=[],tx=`
|
|
1648
|
+
`;function M(e,t,n){let r=document.createElement(e);return t&&(r.className=t),n!==void 0&&(r.textContent=n),r}function hs(e){if(!e||!W)return!1;let t=e.nodeType===1?e:e.parentElement;return!!t&&W.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 Rp(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 My(e){var t;if(typeof e=="string")return e;try{return(t=JSON.stringify(e))!=null?t:""}catch(n){return String(e)}}function Sy(e,t){if(typeof t=="string")return e;try{return JSON.parse(e)}catch(n){return e}}function $p(e){let t=new Date(e),n=r=>String(r).padStart(2,"0");return`${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`}function Dp(e,t){for(let n of e.effects)t.push(n);for(let n of e.children)Dp(n,t)}function tc(e){let t=[];for(let n of Zc(e))Dp(n,t);return t}function Hp(e){let t=tc(e).length;for(let n of Array.from(e.childNodes))n.nodeType===3&&(t+=tc(n).length);return t}function Pp(e){if(!e||!We||hs(e))return;let t=wo.get(e);t&&window.clearTimeout(t),ms.add(e),e.classList.add(Eo);let n=window.setTimeout(()=>{e.classList.remove(Eo),wo.delete(e),window.setTimeout(()=>ms.delete(e),0)},460);wo.set(e,n)}function Mp(e,t){for(let n of tc(e)){if(Gt.has(n))continue;let r=n.fn;Gt.set(n,r),n.fn=()=>(we.effects++,Pp(t),r())}}function Ay(){for(let[e,t]of Gt)e.fn=t;Gt.clear()}function Np(){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(W&&W.root.contains(n)){t=Cy(e);continue}Mp(n,n)}else t.nodeType===3&&t.parentElement&&Mp(t,t.parentElement);t=e.nextNode()}Dy()}function Cy(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 Ry(){let e=[],t=document.body.querySelectorAll("*");for(let n=0;n<t.length&&e.length<Ty;n++){let r=t[n];W&&W.root.contains(r)||Gs(r)&&e.push(r)}return e}function $y(e){return Dn(e).map(t=>t.arg?`${t.name}:${t.arg}`:t.name)}function Dy(){var t;if(!We||!W)return;let e=W.overlay;e.textContent="",ko.length=0;for(let n of Ry()){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",$y(n).join(" "));r.appendChild(i),e.appendChild(r),ko.push({el:n,box:r})}oc()}function oc(){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 Hy(){wr||(wr=requestAnimationFrame(()=>{wr=0,oc()}))}function Py(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 Ny(e){var s;if(!W)return;let t=W.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=Py(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",Rp(l))),t.appendChild(c)}t.appendChild(M("span","v-xray-section","Reactivity")),t.appendChild(M("div","v-xray-val",`${Hp(e)} effect(s) depend on this element`))}function Oy(e,t){if(!W)return;let n=W.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 Sp(e){if(!We||!W)return;let t=e.target;if(!t||hs(t)){W.card.dataset.open="0",xo=null;return}let n=t;for(;n&&n!==document.body&&!Gs(n);)n=n.parentElement;if(!n||n===document.body){W.card.dataset.open="0",xo=null;return}n!==xo&&(xo=n,Ny(n)),W.card.dataset.open="1",Oy(e.clientX,e.clientY)}function Fy(){let e=new Map,t=document.body.querySelectorAll("*");for(let r=0;r<t.length;r++){let o=t[r];if(W&&W.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 vs(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=My(t),o.spellcheck=!1,o.addEventListener("change",()=>{try{n(Sy(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 Iy(){let e=document.createDocumentFragment(),t=Fy();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",()=>Fp(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(vs(a,l,c=>{n.scope.set(a,c)}))}r.appendChild(i),e.appendChild(r)}return e}function zy(){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",`${Hp(r.$el)} effects`)),i.lastChild.dataset.tone="mute",i.addEventListener("click",()=>Fp(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(vs(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(vs(u,p,f=>{c.set(u,f)}))}}o.appendChild(s),e.appendChild(o)}return e}function By(){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(vs(l,r[l],c=>{r[l]=c}));o.appendChild(s),e.appendChild(o)}return e}function Op(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 jy(){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(Op($p(n.at),`${n.type} on ${n.target}`,n.detail||n.source));return e}function qy(){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(Op($p(n.at),`${n.method} ${n.url}`,`${n.status||"---"} ${Math.round(n.duration)}ms`,n.ok?"ok":"fail"));return e}function Vy(){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 Uy=[{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(!W)return;let e=document.activeElement;if(!(e instanceof HTMLInputElement&&W.body.contains(e))){switch(W.body.textContent="",Ze){case"estado":W.body.appendChild(Iy());break;case"componentes":W.body.appendChild(zy());break;case"stores":W.body.appendChild(By());break;case"eventos":W.body.appendChild(jy());break;case"rede":W.body.appendChild(qy());break;case"desempenho":W.body.appendChild(Vy());break}for(let t of Array.from(W.tabs.children)){let n=t;n.dataset.active=n.dataset.id===Ze?"1":"0"}W.status.textContent=`${ko.length} elements with directives, ${Mt.size} components, ${Gt.size} effects observed`}}function Fp(e){e.scrollIntoView({behavior:"smooth",block:"center"}),Pp(e)}function Wy(){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",()=>Ip()),o.appendChild(a),r.appendChild(o);let l=M("div","v-xray-tabs");for(let u of Uy){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 _y=["click","dblclick","submit","input","change","keydown","keyup","focus","blur","contextmenu","drop","paste"];function Ap(e){br.push(e),br.length>Cp&&br.shift(),Ze==="eventos"&&Qt()}function ec(e){yr.push(e),yr.length>Cp&&yr.shift(),Ze==="rede"&&Qt()}function Ky(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 Yy(){let e=new Set(_y),t=document.body.querySelectorAll("*");for(let n=0;n<t.length;n++){let r=t[n];if(!(W&&W.root.contains(r)))for(let o of Dn(r))o.name==="on"&&o.arg&&e.add(o.arg)}return[...e]}function Xy(){let e=t=>{if(!We)return;let n=t.target;if(!n||n.nodeType!==1||hs(n))return;let r=Ky(n,t.type),o=t.__voodoo===!0;!r&&!o||Ap({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 Yy())document.addEventListener(t,e,!0),yt.push(()=>document.removeEventListener(t,e,!0));yt.push(Fe.on("event",t=>{var n,r;Ap({at:Date.now(),type:t.type,target:Er((n=t.el)!=null?n:null),detail:Rp(t.detail),source:(r=t.source)!=null?r:"bus"})}))}function Gy(){yt.push(ve.interceptors.request.use(e=>(Zl.set(e,performance.now()),e))),yt.push(ve.interceptors.response.use(e=>{var n,r;let t=(n=Zl.get(e.config))!=null?n:performance.now();return ec({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=Zl.get(t))!=null?r:performance.now();return ec({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;ec({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 Qy(){gr=new MutationObserver(e=>{let t=!1;for(let n of e){let r=n.target;hs(r)||n.type==="attributes"&&n.attributeName==="class"&&r.nodeType===1&&ms.has(r)||(we.mutations++,n.type==="childList"&&n.addedNodes.length&&(t=!0))}t&&!xr&&(xr=window.setTimeout(()=>{xr=0,Np()},250))}),gr.observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0})}function Jy(){ps=window.setInterval(()=>{we.effectsPerSecond=we.effects-nc,we.updatesPerSecond=we.mutations-rc,nc=we.effects,rc=we.mutations,we.history.push({effects:we.effectsPerSecond,updates:we.updatesPerSecond}),we.history.length>40&&we.history.shift(),Ze==="desempenho"&&Qt()},1e3),fs=window.setInterval(()=>{oc(),(Ze==="estado"||Ze==="componentes"||Ze==="stores")&&Qt()},700)}var nc=0,rc=0;function Zy(){if(We||typeof document=="undefined"||!document.body)return;We=!0,he(),ne("xray",Ly),W=Wy(),Ze=Ze||"estado",we.effects=0,we.mutations=0,nc=0,rc=0,we.history.length=0,Np(),Xy(),Gy(),Qy(),Jy();let e=()=>Hy();window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),document.addEventListener("mousemove",Sp,!0),yt.push(()=>window.removeEventListener("scroll",e,!0)),yt.push(()=>window.removeEventListener("resize",e)),yt.push(()=>document.removeEventListener("mousemove",Sp,!0)),Qt()}function Ip(){if(We){We=!1;for(let e of yt.splice(0))try{e()}catch(t){}gr==null||gr.disconnect(),gr=null,ps&&window.clearInterval(ps),fs&&window.clearInterval(fs),xr&&window.clearTimeout(xr),wr&&cancelAnimationFrame(wr),ps=fs=xr=wr=0;for(let[e,t]of wo)window.clearTimeout(t),e.classList.remove(Eo);wo.clear(),ms.clear(),Ay(),ko.length=0,xo=null,W==null||W.root.remove(),W=null}}function zp(){return We}function ic(){Lp||typeof document=="undefined"||(Lp=!0,document.addEventListener("keydown",e=>{!e.altKey||!e.shiftKey||e.ctrlKey||e.metaKey||e.code!=="KeyV"&&e.key!=="V"&&e.key!=="v"||(e.preventDefault(),To())}))}function To(e){return ic(),(e!=null?e:!We)?Zy():Ip(),We}He();var jp="voodoo:devtools:widget-position",sc="voodoo:devtools:widget-hidden",ex=4,te=null,kr=!1,ac=0,gs=0,Lo=[],tx=`
|
|
1649
1649
|
.v-devtools-widget{
|
|
1650
1650
|
all: initial;
|
|
1651
1651
|
--vw-accent:#6D3BF5;
|
|
@@ -1779,6 +1779,6 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
|
1779
1779
|
`,nx=`<svg class="v-devtools-mark" viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
1780
1780
|
<path d="M4 4l8 16 8-16" stroke="#6D3BF5" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1781
1781
|
<circle cx="12" cy="7.5" r="2" fill="#FF3D8B"/>
|
|
1782
|
-
</svg>`;function rx(){try{let e=localStorage.getItem(jp);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 ox(e){try{localStorage.setItem(jp,JSON.stringify(e))}catch(t){}}function lc(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 ix(){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 (
|
|
1782
|
+
</svg>`;function rx(){try{let e=localStorage.getItem(jp);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 ox(e){try{localStorage.setItem(jp,JSON.stringify(e))}catch(t){}}function lc(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 ix(){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 (Alt+Shift+V)"),t.setAttribute("aria-pressed","false"),t.title="Voodoo devtools \u2014 click to inspect, drag to move (Alt+Shift+V)",t.innerHTML=nx;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=rx();return s?lc(e,s):(e.style.right="16px",e.style.bottom="16px"),{root:e,button:t,pulse:o,counter:r,close:i}}function sx(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.root.getBoundingClientRect();n=!0,r=!1,s=f.clientX,a=f.clientY,o=f.clientX-m.left,i=f.clientY-m.top,(v=(h=e.button).setPointerCapture)==null||v.call(h,f.pointerId)},c=f=>{if(!n)return;let m=Math.hypot(f.clientX-s,f.clientY-a);!r&&m<ex||(r=!0,f.preventDefault(),lc(e.root,{x:f.clientX-o,y:f.clientY-i}))},d=f=>{var h,v;if(!n)return;if(n=!1,(v=(h=e.button).releasePointerCapture)==null||v.call(h,f.pointerId),!r){t();return}let m=e.root.getBoundingClientRect();ox({x:m.left,y:m.top})},u=f=>{f.key!=="Enter"&&f.key!==" "||(f.preventDefault(),t())},p=()=>{let f=e.root.getBoundingClientRect();e.root.style.left&&lc(e.root,{x:f.left,y:f.top})};return e.button.addEventListener("pointerdown",l),e.button.addEventListener("pointermove",c),e.button.addEventListener("pointerup",d),e.button.addEventListener("pointercancel",d),e.button.addEventListener("keydown",u),window.addEventListener("resize",p),()=>{e.button.removeEventListener("pointerdown",l),e.button.removeEventListener("pointermove",c),e.button.removeEventListener("pointerup",d),e.button.removeEventListener("pointercancel",d),e.button.removeEventListener("keydown",u),window.removeEventListener("resize",p)}}function ax(){te&&(te.pulse.setAttribute("data-on","true"),window.clearTimeout(gs),gs=window.setTimeout(()=>{te==null||te.pulse.setAttribute("data-on","false")},320))}function Bp(){if(!te)return;let e=Mt.size,t=e===1?"1 component":`${e} components`;te.counter.textContent!==t&&(te.counter.textContent=t)}function lx(){if(kr||typeof document=="undefined"||!document.body)return;try{if(sessionStorage.getItem(sc)==="1")return}catch(r){}kr=!0,ne("devtools-widget",tx),te=ix();let e=()=>{let r=To();te==null||te.root.setAttribute("data-active",String(r)),te==null||te.button.setAttribute("aria-pressed",String(r))};Lo.push(sx(te,e));let t=r=>{r.stopPropagation();try{sessionStorage.setItem(sc,"1")}catch(o){}qp(),console.info("[Voodoo] devtools widget hidden. Use V.devtoolsWidget(true) to bring back.")};te.close.addEventListener("click",t),Lo.push(()=>te==null?void 0:te.close.removeEventListener("click",t));let n=()=>{let r=zp();te==null||te.root.setAttribute("data-active",String(r)),te==null||te.button.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,ax));Bp(),ac=window.setInterval(Bp,1e3)}function qp(){if(kr){kr=!1;for(let e of Lo.splice(0))try{e()}catch(t){}window.clearInterval(ac),window.clearTimeout(gs),ac=0,gs=0,te==null||te.root.remove(),te=null}}function Vp(e){if(e!=null?e:!kr){try{sessionStorage.removeItem(sc)}catch(n){}lx()}else qp();return kr}var Wp=((e,t)=>Ea(e,t));function Up(e,t,n){return((...r)=>(Rr(e,t),n(...r)))}Object.assign(Wp,li,{query:Ea,ready:ka,fromHtml:fu,Collection:ft,router:Wr,route:ce,navigate:Vt,resolveRoute:Gn,i18n:Kr,t:er,setLocale:_r,getLocale:xi,modal:En,alert:Gl,confirm:ls,prompt:Ql,dialog:hr,validator:Q,validate:ol,validateForm:Up("V.validateForm","V.validate",ol),serializeForm:or,messages:rt,showFormErrors:Ni,showFieldError:Pi,clearErrors:no,mask:Ep,masks:yo,applyMask:bo,unmask:us,registerMask:Te,animate:Rt,spring:Ll,stagger:Ml,inView:Qi,scrollProgress:Sl,motion:hn,easings:ao,chart:Up("V.chart","V.renderChart",ur),renderChart:ur,charts:Hl,chartColors:co,palette:cp,hotkey:Qr,sound:Yt,xray:To,enableXrayShortcut:ic,devtoolsWidget:Vp,devtools:Fe,magic:P});var cc=Wp;le();function cx(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 dx(){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),cx(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 ux(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 _p(e){var o;if(typeof window=="undefined")return;let t=dx(),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(),lp(),e.start(),w.devtools&&ux(e)})}_p(cc);var fx=cc;return om(px);})();
|
|
1783
1783
|
if(typeof window!=="undefined"){window.V=Voodoo.default||Voodoo;window.Voodoo=window.V;}
|
|
1784
1784
|
//# sourceMappingURL=voodoo.full.min.js.map
|
package/dist/voodoo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.
|
|
2
|
+
* Voodoo.js v0.7.0
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
@@ -6612,7 +6612,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
6612
6612
|
Object.defineProperties(rootScope.data, Object.getOwnPropertyDescriptors(values));
|
|
6613
6613
|
return rootScope.data;
|
|
6614
6614
|
}
|
|
6615
|
-
var version2 = "0.
|
|
6615
|
+
var version2 = "0.7.0";
|
|
6616
6616
|
var core = {
|
|
6617
6617
|
// Utilities first: Voodoo's own names can override.
|
|
6618
6618
|
...utils_exports,
|