@skaldapp/runtime 3.3.11 → 3.3.13

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.
@@ -24,7 +24,7 @@ const ${t.map(e=>`_${Xt[e]} = ${Xt[e]}`).join(`, `)}
24
24
  `:``} ? ${e}.value ${i} ${a} : ${e}`}else if(l){r.start=n.start,r.end=n.end;let{prefix:i,operator:a}=n,o=i?a:``,s=i?``:a;return`${t.helperString(qt)}(${e})${t.isTS?` //@ts-ignore
25
25
  `:``} ? ${o}${e}.value${s} : ${o}${e}${s}`}else if(u)return e;else return m(e);else if(s===`props`)return Oe(e);else if(s===`props-aliased`)return Oe(o.__propsAliases[e])}else if(s&&s.startsWith(`setup`)||s===`literal-const`)return`$setup.${e}`;else if(s===`props-aliased`)return`$props['${o.__propsAliases[e]}']`;else if(s)return`$${s}.${e}`;return`_ctx.${e}`},c=e.content,l=e.ast;if(l===!1)return e;if(l===null||!l&&Gi(c)){let r=t.identifiers[c],i=Me(c),a=Ps(c);return!n&&!r&&!a&&(!i||o[c])?(zs(o[c])&&(e.constType=1),e.content=s(c)):r||(a?e.constType=3:e.constType=2),e}if(!l){let i=r?` ${c} `:`(${c})${n?`=>{}`:``}`;try{l=bi.parseExpression(i,{sourceType:`module`,plugins:t.expressionPlugins})}catch(n){return t.onError(U(46,e.loc,void 0,n.message)),e}}let u=[],d=[],f=Object.create(t.identifiers);wi(l,(e,t,n,r,i)=>{if(Ri(e,t))return;let a=r&&Ls(e);a&&!i?(Li(t)&&t.shorthand&&(e.prefix=`${e.name}: `),e.name=s(e.name,t,e),u.push(e)):(!(a&&i)&&(!t||t.type!==`CallExpression`&&t.type!==`NewExpression`&&t.type!==`MemberExpression`)&&(e.isConstant=!0),u.push(e))},!0,d,f);let p=[];u.sort((e,t)=>e.start-t.start),u.forEach((t,n)=>{let r=t.start-1,i=t.end-1,a=u[n-1],o=c.slice(a?a.end-1:0,r);(o.length||t.prefix)&&p.push(o+(t.prefix||``));let s=c.slice(r,i);p.push(z(t.name,!1,{start:ra(e.loc.start,s,r),end:ra(e.loc.start,s,i),source:s},t.isConstant?3:0)),n===u.length-1&&i<c.length&&p.push(c.slice(i))});let m;return p.length?(m=cn(p,e.loc),m.ast=l):(m=e,m.constType=3),m.identifiers=Object.keys(f),m}function Ls(e){return!(Me(e.name)||e.name===`require`)}function Rs(e){return F(e)?e:e.type===4?e.content:e.children.map(Rs).join(``)}function zs(e){return e===`setup-const`||e===`literal-const`}var Bs=So(/^(?:if|else|else-if)$/,(e,t,n)=>Vs(e,t,n,(e,t,r)=>{let i=n.parent.children,a=i.indexOf(e),o=0;for(;a-->=0;){let e=i[a];e&&e.type===9&&(o+=e.branches.length)}return()=>{if(r)e.codegenNode=Us(t,o,n);else{let r=Ks(e.codegenNode);r.alternate=Us(t,o+e.branches.length-1,n)}}}));function Vs(e,t,n,r){if(t.name!==`else`&&(!t.exp||!t.exp.content.trim())){let r=t.exp?t.exp.loc:e.loc;n.onError(U(28,t.loc)),t.exp=z(`true`,!1,r)}if(n.prefixIdentifiers&&t.exp&&(t.exp=Is(t.exp,n)),t.name===`if`){let i=Hs(e,t),a={type:9,loc:to(e.loc),branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{let i=n.parent.children,a=[],o=i.indexOf(e);for(;o-->=-1;){let s=i[o];if(s&&wa(s)){n.removeNode(s),s.type===3&&a.unshift(s);continue}if(s&&s.type===9){(t.name===`else-if`||t.name===`else`)&&s.branches[s.branches.length-1].condition===void 0&&n.onError(U(30,e.loc)),n.removeNode();let i=Hs(e,t);a.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag===`transition`||n.parent.tag===`Transition`))&&(i.children=[...a,...i.children]);{let e=i.userKey;e&&s.branches.forEach(({userKey:t})=>{Gs(t,e)&&n.onError(U(29,i.userKey.loc))})}s.branches.push(i);let o=r&&r(s,i,!1);xo(i,n),o&&o(),n.currentNode=null}else n.onError(U(30,e.loc));break}}}function Hs(e,t){let n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name===`else`?void 0:t.exp,children:n&&!W(e,`for`)?e.children:[e],userKey:oa(e,`key`),isTemplateIf:n}}function Us(e,t,n){return e.condition?un(e.condition,Ws(e,t,n),B(n.helper(xt),[`"v-if"`,`true`])):Ws(e,t,n)}function Ws(e,t,n){let{helper:r}=n,i=R(`key`,z(`${t}`,!1,L,2)),{children:a}=e,o=a[0];if(a.length!==1||o.type!==1)if(a.length===1&&o.type===11){let e=o.codegenNode;return ga(e,i,n),e}else{let t=64;return!e.isTemplateIf&&a.filter(e=>e.type!==3).length===1&&(t|=2048),rn(n,r(dt),on([i]),a,t,void 0,void 0,!0,!1,!1,e.loc)}else{let e=o.codegenNode,t=ba(e);return t.type===13&&bn(t,n),ga(t,i,n),e}}function Gs(e,t){if(!e||e.type!==t.type)return!1;if(e.type===6){if(e.value.content!==t.value.content)return!1}else{let n=e.exp,r=t.exp;if(n.type!==r.type||n.type!==4||n.isStatic!==r.isStatic||n.content!==r.content)return!1}return!0}function Ks(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}var qs=So(`for`,(e,t,n)=>{let{helper:r,removeHelper:i}=n;return Js(e,t,n,t=>{let a=B(r(kt),[t.source]),o=fa(e),s=W(e,`memo`),c=oa(e,`key`,!1,!0),l=c&&c.type===7,u=c&&(c.type===6?c.value?z(c.value.content,!0):void 0:c.exp);s&&u&&l&&(c.exp=u=Is(u,n));let d=c&&u?R(`key`,u):null;o&&(s&&(s.exp=Is(s.exp,n)),d&&c.type!==6&&(d.value=Is(d.value,n)));let f=t.source.type===4&&t.source.constType>0,p=f?64:c?128:256;return t.codegenNode=rn(n,r(dt),void 0,a,p,void 0,void 0,!0,!f,!1,e.loc),()=>{let c,{children:l}=t;o&&e.children.some(e=>{if(e.type===1){let t=oa(e,`key`);if(t)return n.onError(U(33,t.loc)),!0}});let p=l.length!==1||l[0].type!==1,m=pa(e)?e:o&&e.children.length===1&&pa(e.children[0])?e.children[0]:null;if(m?(c=m.codegenNode,o&&d&&ga(c,d,n)):p?c=rn(n,r(dt),d?on([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=l[0].codegenNode,o&&d&&ga(c,d,n),c.isBlock!==!f&&(c.isBlock?(i(gt),i(yn(n.inSSR,c.isComponent))):i(vn(n.inSSR,c.isComponent))),c.isBlock=!f,c.isBlock?(r(gt),r(yn(n.inSSR,c.isComponent))):r(vn(n.inSSR,c.isComponent))),s){let e=ln(Xs(t.parseResult,[z(`_cached`)]));e.body=fn([cn([`const _memo = (`,s.exp,`)`]),cn([`if (_cached && _cached.el`,...u?[` && _cached.key === `,u]:[],` && ${n.helperString(Yt)}(_cached, _memo)) return _cached`]),cn([`const _item = `,c]),z(`_item.memo = _memo`),z(`return _item`)]),a.arguments.push(e,z(`_cache`),z(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(ln(Xs(t.parseResult),c,!0))}})});function Js(e,t,n,r){if(!t.exp){n.onError(U(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(U(32,t.loc));return}Ys(i,n);let{addIdentifiers:a,removeIdentifiers:o,scopes:s}=n,{source:c,value:l,key:u,index:d}=i,f={type:11,loc:t.loc,source:c,valueAlias:l,keyAlias:u,objectIndexAlias:d,parseResult:i,children:fa(e)?e.children:[e]};n.replaceNode(f),s.vFor++,n.prefixIdentifiers&&(l&&a(l),u&&a(u),d&&a(d));let p=r&&r(f);return()=>{s.vFor--,n.prefixIdentifiers&&(l&&o(l),u&&o(u),d&&o(d)),p&&p()}}function Ys(e,t){e.finalized||=(t.prefixIdentifiers&&(e.source=Is(e.source,t),e.key&&=Is(e.key,t,!0),e.index&&=Is(e.index,t,!0),e.value&&=Is(e.value,t,!0)),!0)}function Xs({value:e,key:t,index:n},r=[]){return Zs([e,t,n,...r])}function Zs(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||z(`_`.repeat(t+1),!1))}var Qs=z(`undefined`,!1),$s=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){let n=W(e,`slot`);if(n){let e=n.exp;return t.prefixIdentifiers&&e&&t.addIdentifiers(e),t.scopes.vSlot++,()=>{t.prefixIdentifiers&&e&&t.removeIdentifiers(e),t.scopes.vSlot--}}}},ec=(e,t)=>{let n;if(fa(e)&&e.props.some(da)&&(n=W(e,`for`))){let e=n.forParseResult;if(e){Ys(e,t);let{value:n,key:r,index:i}=e,{addIdentifiers:a,removeIdentifiers:o}=t;return n&&a(n),r&&a(r),i&&a(i),()=>{n&&o(n),r&&o(r),i&&o(i)}}}},tc=(e,t,n,r)=>ln(e,n,!1,!0,n.length?n[0].loc:r);function nc(e,t,n=tc){t.helper(Gt);let{children:r,loc:i}=e,a=[],o=[],s=t.scopes.vSlot>0||t.scopes.vFor>0;!t.ssr&&t.prefixIdentifiers&&(s=e.props.some(e=>da(e)&&(ya(e.arg,t.identifiers)||ya(e.exp,t.identifiers)))||r.some(e=>ya(e,t.identifiers)));let c=W(e,`slot`,!0);if(c){let{arg:e,exp:t}=c;e&&!Hi(e)&&(s=!0),a.push(R(e||z(`default`,!0),n(t,void 0,r,i)))}let l=!1,u=!1,d=[],f=new Set,p=0;for(let e=0;e<r.length;e++){let i=r[e],m;if(!fa(i)||!(m=W(i,`slot`,!0))){i.type!==3&&d.push(i);continue}if(c){t.onError(U(37,m.loc));break}l=!0;let{children:h,loc:g}=i,{arg:_=z(`default`,!0),exp:v,loc:y}=m,b;Hi(_)?b=_?_.content:`default`:s=!0;let x=W(i,`for`),S=n(v,x,h,g),C,w;if(C=W(i,`if`))s=!0,o.push(un(C.exp,rc(_,S,p++),Qs));else if(w=W(i,/^else(?:-if)?$/,!0)){let n=e,i;for(;n--&&(i=r[n],wa(i)););if(i&&fa(i)&&W(i,/^(?:else-)?if$/)){let e=o[o.length-1];for(;e.alternate.type===19;)e=e.alternate;e.alternate=w.exp?un(w.exp,rc(_,S,p++),Qs):rc(_,S,p++)}else t.onError(U(30,w.loc))}else if(x){s=!0;let e=x.forParseResult;e?(Ys(e,t),o.push(B(t.helper(kt),[e.source,ln(Xs(e),rc(_,S),!0)]))):t.onError(U(32,x.loc))}else{if(b){if(f.has(b)){t.onError(U(38,y));continue}f.add(b),b===`default`&&(u=!0)}a.push(R(_,S))}}if(!c){let e=(e,t)=>R(`default`,n(e,void 0,t,i));l?d.length&&!d.every(Ca)&&(u?t.onError(U(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,r))}let m=s?2:ic(e.children)?3:1,h=on(a.concat(R(`_`,z(m+` /* ${je[m]} */`,!1))),i);return o.length&&(h=B(t.helper(jt),[h,an(o)])),{slots:h,hasDynamicSlots:s}}function rc(e,t,n){let r=[R(`name`,e),R(`fn`,t)];return n!=null&&r.push(R(`key`,z(String(n),!0))),on(r)}function ic(e){for(let t=0;t<e.length;t++){let n=e[t];switch(n.type){case 1:if(n.tagType===2||ic(n.children))return!0;break;case 9:if(ic(n.branches))return!0;break;case 10:case 11:if(ic(n.children))return!0;break}}return!1}var ac=new WeakMap,oc=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;let{tag:n,props:r}=e,i=e.tagType===1,a=i?sc(e,t):`"${n}"`,o=me(a)&&a.callee===Tt,s,c,l=0,u,d,f,p=o||a===ft||a===pt||!i&&(n===`svg`||n===`foreignObject`||n===`math`);if(r.length>0){let n=lc(e,t,void 0,i,o);s=n.props,l=n.patchFlag,d=n.dynamicPropNames;let r=n.directives;f=r&&r.length?an(r.map(e=>fc(e,t))):void 0,n.shouldUseBlock&&(p=!0)}if(e.children.length>0)if(a===mt&&(p=!0,l|=1024,e.children.length>1&&t.onError(U(47,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:``}))),i&&a!==ft&&a!==mt){let{slots:n,hasDynamicSlots:r}=nc(e,t);c=n,r&&(l|=1024)}else if(e.children.length===1&&a!==ft){let n=e.children[0],r=n.type,i=r===5||r===8;i&&fo(n,t)===0&&(l|=1),c=i||r===2?n:e.children}else c=e.children;d&&d.length&&(u=pc(d)),e.codegenNode=rn(t,a,s,c,l===0?void 0:l,u,f,!!p,!1,i,e.loc)};function sc(e,t,n=!1){let{tag:r}=e,i=mc(r),a=oa(e,`is`,!1,!0);if(a)if(i){let e;if(a.type===6?e=a.value&&z(a.value.content,!0):(e=a.exp,e||=(e=z(`is`,!1,a.arg.loc),a.exp=Is(e,t))),e)return B(t.helper(Tt),[e])}else a.type===6&&a.value.content.startsWith(`vue:`)&&(r=a.value.content.slice(4));let o=Ui(r)||t.isBuiltInComponent(r);if(o)return n||t.helper(o),o;{let e=cc(r,t);if(e)return e;let n=r.indexOf(`.`);if(n>0){let e=cc(r.slice(0,n),t);if(e)return e+r.slice(n)}}return t.selfName&&Te(Se(r))===t.selfName?(t.helper(wt),t.components.add(r+`__self`),va(r,`component`)):(t.helper(wt),t.components.add(r),va(r,`component`))}function cc(e,t){let n=t.bindingMetadata;if(!n||n.__isScriptSetup===!1)return;let r=Se(e),i=Te(r),a=t=>{if(n[e]===t)return e;if(n[r]===t)return r;if(n[i]===t)return i},o=a(`setup-const`)||a(`setup-reactive-const`)||a(`literal-const`);if(o)return t.inline?o:`$setup[${JSON.stringify(o)}]`;let s=a(`setup-let`)||a(`setup-ref`)||a(`setup-maybe-ref`);if(s)return t.inline?`${t.helperString(Kt)}(${s})`:`$setup[${JSON.stringify(s)}]`;let c=a(`props`);if(c)return`${t.helperString(Kt)}(${t.inline?`__props`:`$props`}[${JSON.stringify(c)}])`}function lc(e,t,n=e.props,r,i,a=!1){let{tag:o,loc:s,children:c}=e,l=[],u=[],d=[],f=c.length>0,p=!1,m=0,h=!1,g=!1,_=!1,v=!1,y=!1,b=!1,x=[],S=e=>{l.length&&(u.push(on(uc(l),s)),l=[]),e&&u.push(e)},C=()=>{t.scopes.vFor>0&&l.push(R(z(`ref_for`,!0),z(`true`)))},w=({key:e,value:n})=>{if(Hi(e)){let a=e.content,o=N(a);if(o&&(!r||i)&&a.toLowerCase()!==`onclick`&&a!==`onUpdate:modelValue`&&!ve(a)&&(v=!0),o&&ve(a)&&(b=!0),o&&n.type===14&&(n=n.arguments[0]),n.type===20||(n.type===4||n.type===8)&&fo(n,t)>0)return;a===`ref`?h=!0:a===`class`?g=!0:a===`style`?_=!0:a!==`key`&&!x.includes(a)&&x.push(a),r&&(a===`class`||a===`style`)&&!x.includes(a)&&x.push(a)}else y=!0};for(let i=0;i<n.length;i++){let c=n[i];if(c.type===6){let{loc:e,name:n,nameLoc:r,value:i}=c,a=!0;if(n===`ref`&&(h=!0,C(),i&&t.inline)){let e=t.bindingMetadata[i.content];(e===`setup-let`||e===`setup-ref`||e===`setup-maybe-ref`)&&(a=!1,l.push(R(z(`ref_key`,!0),z(i.content,!0,i.loc))))}if(n===`is`&&(mc(o)||i&&i.content.startsWith(`vue:`)))continue;l.push(R(z(n,!0,r),z(i?i.content:``,a,i?i.loc:e)))}else{let{name:n,arg:i,exp:h,loc:g,modifiers:_}=c,v=n===`bind`,b=n===`on`;if(n===`slot`){r||t.onError(U(40,g));continue}if(n===`once`||n===`memo`||n===`is`||v&&sa(i,`is`)&&mc(o)||b&&a)continue;if((v&&sa(i,`key`)||b&&f&&sa(i,`vue:before-update`))&&(p=!0),v&&sa(i,`ref`)&&C(),!i&&(v||b)){y=!0,h?v?(C(),S(),u.push(h)):S({type:14,loc:g,callee:t.helper(Rt),arguments:r?[h]:[h,`true`]}):t.onError(U(v?34:35,g));continue}v&&_.some(e=>e.content===`prop`)&&(m|=32);let x=t.directiveTransforms[n];if(x){let{props:n,needRuntime:r}=x(c,e,t);!a&&n.forEach(w),b&&i&&!Hi(i)?S(on(n,s)):l.push(...n),r&&(d.push(c),pe(r)&&ac.set(c,r))}else ye(n)||(d.push(c),f&&(p=!0))}}let T;if(u.length?(S(),T=u.length>1?B(t.helper(Nt),u,s):u[0]):l.length&&(T=on(uc(l),s)),y?m|=16:(g&&!r&&(m|=2),_&&!r&&(m|=4),x.length&&(m|=8),v&&(m|=32)),!p&&(m===0||m===32)&&(h||b||d.length>0)&&(m|=512),!t.inSSR&&T)switch(T.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<T.properties.length;t++){let i=T.properties[t].key;Hi(i)?i.content===`class`?e=t:i.content===`style`&&(n=t):i.isHandlerKey||(r=!0)}let i=T.properties[e],a=T.properties[n];r?T=B(t.helper(It),[T]):(i&&!Hi(i.value)&&(i.value=B(t.helper(Pt),[i.value])),a&&(_||a.value.type===4&&a.value.content.trim()[0]===`[`||a.value.type===17)&&(a.value=B(t.helper(Ft),[a.value])));break;case 14:break;default:T=B(t.helper(It),[B(t.helper(Lt),[T])]);break}return{props:T,directives:d,patchFlag:m,dynamicPropNames:x,shouldUseBlock:p}}function uc(e){let t=new Map,n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}let a=i.key.content,o=t.get(a);o?(a===`style`||a===`class`||N(a))&&dc(o,i):(t.set(a,i),n.push(i))}return n}function dc(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=an([e.value,t.value],e.loc)}function fc(e,t){let n=[],r=ac.get(e);if(r)n.push(t.helperString(r));else{let r=cc(`v-`+e.name,t);r?n.push(r):(t.helper(Et),t.directives.add(e.name),n.push(va(e.name,`directive`)))}let{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push(`void 0`),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push(`void 0`),n.push(`void 0`));let t=z(`true`,!1,i);n.push(on(e.modifiers.map(e=>R(e,t)),i))}return an(n,e.loc)}function pc(e){let t=`[`;for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=`, `);return t+`]`}function mc(e){return e===`component`||e===`Component`}var hc=(e,t)=>{if(pa(e)){let{children:n,loc:r}=e,{slotName:i,slotProps:a}=gc(e,t),o=[t.prefixIdentifiers?`_ctx.$slots`:`$slots`,i,`{}`,`undefined`,`true`],s=2;a&&(o[2]=a,s=3),n.length&&(o[3]=ln([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),o.splice(s),e.codegenNode=B(t.helper(At),o,r)}};function gc(e,t){let n=`"default"`,r,i=[];for(let r=0;r<e.props.length;r++){let a=e.props[r];a.type===6?a.value&&(a.name===`name`?n=JSON.stringify(a.value.content):(a.name=Se(a.name),i.push(a))):a.name===`bind`&&sa(a.arg,`name`)?a.exp?n=a.exp:a.arg&&a.arg.type===4&&(n=a.exp=z(Se(a.arg.content),!1,a.arg.loc),n=a.exp=Is(a.exp,t)):(a.name===`bind`&&a.arg&&Hi(a.arg)&&(a.arg.content=Se(a.arg.content)),i.push(a))}if(i.length>0){let{props:n,directives:a}=lc(e,t,i,!1,!1);r=n,a.length&&t.onError(U(36,a[0].loc))}return{slotName:n,slotProps:r}}var _c=(e,t,n,r)=>{let{loc:i,modifiers:a,arg:o}=e;!e.exp&&!a.length&&n.onError(U(35,i));let s;if(o.type===4)if(o.isStatic){let e=o.content;e.startsWith(`vnode`)&&n.onError(U(52,o.loc)),e.startsWith(`vue:`)&&(e=`vnode-${e.slice(4)}`),s=z(t.tagType!==0||e.startsWith(`vnode`)||!/[A-Z]/.test(e)?Ee(Se(e)):`on:${e}`,!0,o.loc)}else s=cn([`${n.helperString(Vt)}(`,o,`)`]);else s=o,s.children.unshift(`${n.helperString(Vt)}(`),s.children.push(`)`);let c=e.exp;c&&!c.content.trim()&&(c=void 0);let l=n.cacheHandlers&&!c&&!n.inVOnce;if(c){let r=Qi(c,n),i=!(r||na(c,n)),a=c.content.includes(`;`);n.prefixIdentifiers&&(i&&n.addIdentifiers(`$event`),c=e.exp=Is(c,n,!1,a),i&&n.removeIdentifiers(`$event`),l=n.cacheHandlers&&!n.inVOnce&&!(c.type===4&&c.constType>0)&&!(r&&t.tagType===1)&&!ya(c,n.identifiers),l&&r&&(c.type===4?c.content=`${c.content} && ${c.content}(...args)`:c.children=[...c.children,` && `,...c.children,`(...args)`])),(i||l&&r)&&(c=cn([`${i?n.isTS?`($event: any)`:`$event`:`${n.isTS?`
26
26
  //@ts-ignore
27
- `:``}(...args)`} => ${a?`{`:`(`}`,c,a?`}`:`)`]))}let u={props:[R(s,c||z(`() => {}`,!1,i))]};return r&&(u=r(u)),l&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(e=>e.key.isHandlerKey=!0),u},vc=(e,t,n)=>{let{modifiers:r,loc:i}=e,a=e.arg,{exp:o}=e;return o&&o.type===4&&!o.content.trim()?(n.onError(U(34,i)),{props:[R(a,z(``,!0,i))]}):(a.type===4?a.isStatic||(a.content=a.content?`${a.content} || ""`:`""`):(a.children.unshift(`(`),a.children.push(`) || ""`)),r.some(e=>e.content===`camel`)&&(a.type===4?a.isStatic?a.content=Se(a.content):a.content=`${n.helperString(zt)}(${a.content})`:(a.children.unshift(`${n.helperString(zt)}(`),a.children.push(`)`))),n.inSSR||(r.some(e=>e.content===`prop`)&&yc(a,`.`),r.some(e=>e.content===`attr`)&&yc(a,`^`)),{props:[R(a,o)]})},yc=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(`)`))},bc=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{let n=e.children,r,i=!1;for(let e=0;e<n.length;e++){let t=n[e];if(la(t)){i=!0;for(let i=e+1;i<n.length;i++){let a=n[i];if(la(a))r||=n[e]=cn([t],t.loc),r.children.push(` + `,a),n.splice(i,1),i--;else{r=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(e=>e.type===7&&!t.directiveTransforms[e.name]))))for(let e=0;e<n.length;e++){let r=n[e];if(la(r)||r.type===8){let i=[];(r.type!==2||r.content!==` `)&&i.push(r),!t.ssr&&fo(r,t)===0&&i.push(`1 /* ${Ae[1]} */`),n[e]={type:12,content:r,loc:r.loc,codegenNode:B(t.helper(St),i)}}}}},xc=new WeakSet,Sc=(e,t)=>{if(e.type===1&&W(e,`once`,!0))return xc.has(e)||t.inVOnce||t.inSSR?void 0:(xc.add(e),t.inVOnce=!0,t.helper(Ht),()=>{t.inVOnce=!1;let e=t.currentNode;e.codegenNode&&=t.cache(e.codegenNode,!0,!0)})},Cc=(e,t,n)=>{let{exp:r,arg:i}=e;if(!r)return n.onError(U(41,e.loc)),wc();let a=r.loc.source.trim(),o=r.type===4?r.content:a,s=n.bindingMetadata[a];if(s===`props`||s===`props-aliased`)return n.onError(U(44,r.loc)),wc();if(s===`literal-const`||s===`setup-const`)return n.onError(U(45,r.loc)),wc();let c=n.inline&&(s===`setup-let`||s===`setup-ref`||s===`setup-maybe-ref`);if(!o.trim()||!Qi(r,n)&&!c)return n.onError(U(42,r.loc)),wc();if(n.prefixIdentifiers&&Gi(o)&&n.identifiers[o])return n.onError(U(43,r.loc)),wc();let l=i||z(`modelValue`,!0),u=i?Hi(i)?`onUpdate:${Se(i.content)}`:cn([`"onUpdate:" + `,i]):`onUpdate:modelValue`,d,f=n.isTS?`($event: any)`:`$event`;if(c)if(s===`setup-ref`)d=cn([`${f} => ((`,z(a,!1,r.loc),`).value = $event)`]);else{let e=s===`setup-let`?`${a} = $event`:`null`;d=cn([`${f} => (${n.helperString(qt)}(${a}) ? (`,z(a,!1,r.loc),`).value = $event : ${e})`])}else d=cn([`${f} => ((`,r,`) = $event)`]);let p=[R(l,e.exp),R(u,d)];if(n.prefixIdentifiers&&!n.inVOnce&&n.cacheHandlers&&!ya(r,n.identifiers)&&(p[1].value=n.cache(p[1].value)),e.modifiers.length&&t.tagType===1){let t=e.modifiers.map(e=>e.content).map(e=>(Gi(e)?e:JSON.stringify(e))+`: true`).join(`, `),n=i?Hi(i)?`${i.content}Modifiers`:cn([i,` + "Modifiers"`]):`modelModifiers`;p.push(R(n,z(`{ ${t} }`,!1,e.loc,2)))}return wc(p)};function wc(e=[]){return{props:e}}var Tc=new WeakSet,Ec=(e,t)=>{if(e.type===1){let n=W(e,`memo`);return!n||Tc.has(e)||t.inSSR?void 0:(Tc.add(e),()=>{let r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&bn(r,t),e.codegenNode=B(t.helper(Jt),[n.exp,ln(void 0,r),`_cache`,String(t.cached.length)]),t.cached.push(null))})}},Dc=(e,t)=>{if(e.type===1){for(let n of e.props)if(n.type===7&&n.name===`bind`&&!n.exp&&n.arg){let e=n.arg;if(e.type!==4||!e.isStatic)t.onError(U(53,e.loc)),n.exp=z(``,!0,e.loc);else{let t=Se(e.content);(Ki.test(t[0])||t[0]===`-`)&&(n.exp=z(t,!1,e.loc))}}}};function Oc(e){return[[Dc,Sc,Bs,Ec,qs,...[],...e?[ec,Fs]:[],hc,oc,$s,bc],{on:_c,bind:vc,model:Cc}]}function kc(e,t={}){let n=t.onError||di,r=t.mode===`module`,i=t.prefixIdentifiers===!0||r;!i&&t.cacheHandlers&&n(U(50)),t.scopeId&&!r&&n(U(51));let a=se({},t,{prefixIdentifiers:i}),o=F(e)?so(e,a):e,[s,c]=Oc(i);if(t.isTS){let{expressionPlugins:e}=t;(!e||!e.includes(`typescript`))&&(t.expressionPlugins=[...e||[],`typescript`])}return vo(o,se({},a,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:se({},c,t.directiveTransforms||{})})),os(o,a)}var Ac={DATA:`data`,PROPS:`props`,PROPS_ALIASED:`props-aliased`,SETUP_LET:`setup-let`,SETUP_CONST:`setup-const`,SETUP_REACTIVE_CONST:`setup-reactive-const`,SETUP_MAYBE_REF:`setup-maybe-ref`,SETUP_REF:`setup-ref`,OPTIONS:`options`,LITERAL_CONST:`literal-const`},jc=()=>({props:[]}),Mc=Symbol(`vModelRadio`),Nc=Symbol(`vModelCheckbox`),Pc=Symbol(`vModelText`),Fc=Symbol(`vModelSelect`),Ic=Symbol(`vModelDynamic`),Lc=Symbol(`vOnModifiersGuard`),Rc=Symbol(`vOnKeysGuard`),zc=Symbol(`vShow`),Bc=Symbol(`Transition`),Vc=Symbol(`TransitionGroup`);Zt({[Mc]:`vModelRadio`,[Nc]:`vModelCheckbox`,[Pc]:`vModelText`,[Fc]:`vModelSelect`,[Ic]:`vModelDynamic`,[Lc]:`withModifiers`,[Rc]:`withKeys`,[zc]:`vShow`,[Bc]:`Transition`,[Vc]:`TransitionGroup`});var Hc={parseMode:`html`,isVoidTag:Ye,isNativeTag:e=>Ke(e)||qe(e)||Je(e),isPreTag:e=>e===`pre`,isIgnoreNewlineTag:e=>e===`pre`||e===`textarea`,decodeEntities:void 0,isBuiltInComponent:e=>{if(e===`Transition`||e===`transition`)return Bc;if(e===`TransitionGroup`||e===`transition-group`)return Vc},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag===`annotation-xml`){if(e===`svg`)return 1;t.props.some(e=>e.type===6&&e.name===`encoding`&&e.value!=null&&(e.value.content===`text/html`||e.value.content===`application/xhtml+xml`))&&(r=0)}else /^m(?:[ions]|text)$/.test(t.tag)&&e!==`mglyph`&&e!==`malignmark`&&(r=0);else t&&r===1&&(t.tag===`foreignObject`||t.tag===`desc`||t.tag===`title`)&&(r=0);if(r===0){if(e===`svg`)return 1;if(e===`math`)return 2}return r}},Uc=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name===`style`&&t.value&&(e.props[n]={type:7,name:`bind`,arg:z(`style`,!0,t.loc),exp:Wc(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Wc=(e,t)=>{let n=ze(e);return z(JSON.stringify(n),!1,t,3)};function Gc(e,t){return U(e,t,qc)}var Kc={X_V_HTML_NO_EXPRESSION:54,54:`X_V_HTML_NO_EXPRESSION`,X_V_HTML_WITH_CHILDREN:55,55:`X_V_HTML_WITH_CHILDREN`,X_V_TEXT_NO_EXPRESSION:56,56:`X_V_TEXT_NO_EXPRESSION`,X_V_TEXT_WITH_CHILDREN:57,57:`X_V_TEXT_WITH_CHILDREN`,X_V_MODEL_ON_INVALID_ELEMENT:58,58:`X_V_MODEL_ON_INVALID_ELEMENT`,X_V_MODEL_ARG_ON_ELEMENT:59,59:`X_V_MODEL_ARG_ON_ELEMENT`,X_V_MODEL_ON_FILE_INPUT_ELEMENT:60,60:`X_V_MODEL_ON_FILE_INPUT_ELEMENT`,X_V_MODEL_UNNECESSARY_VALUE:61,61:`X_V_MODEL_UNNECESSARY_VALUE`,X_V_SHOW_NO_EXPRESSION:62,62:`X_V_SHOW_NO_EXPRESSION`,X_TRANSITION_INVALID_CHILDREN:63,63:`X_TRANSITION_INVALID_CHILDREN`,X_IGNORED_SIDE_EFFECT_TAG:64,64:`X_IGNORED_SIDE_EFFECT_TAG`,__EXTEND_POINT__:65,65:`__EXTEND_POINT__`},qc={54:`v-html is missing expression.`,55:`v-html will override element children.`,56:`v-text is missing expression.`,57:`v-text will override element children.`,58:`v-model can only be used on <input>, <textarea> and <select> elements.`,59:`v-model argument is not supported on plain elements.`,60:`v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,61:`Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,62:`v-show is missing expression.`,63:`<Transition> expects exactly one child element or component.`,64:`Tags with side effect (<script> and <style>) are ignored in client component templates.`},Jc=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Gc(54,i)),t.children.length&&(n.onError(Gc(55,i)),t.children.length=0),{props:[R(z(`innerHTML`,!0,i),r||z(``,!0))]}},Yc=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Gc(56,i)),t.children.length&&(n.onError(Gc(57,i)),t.children.length=0),{props:[R(z(`textContent`,!0),r?fo(r,n)>0?r:B(n.helperString(Mt),[r],i):z(``,!0))]}},Xc=(e,t,n)=>{let r=Cc(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Gc(59,e.arg.loc));function i(){let e=W(t,`bind`);e&&sa(e.arg,`value`)&&n.onError(Gc(61,e.loc))}let{tag:a}=t,o=n.isCustomElement(a);if(a===`input`||a===`textarea`||a===`select`||o){let s=Pc,c=!1;if(a===`input`||o){let r=oa(t,`type`);if(r){if(r.type===7)s=Ic;else if(r.value)switch(r.value.content){case`radio`:s=Mc;break;case`checkbox`:s=Nc;break;case`file`:c=!0,n.onError(Gc(60,e.loc));break;default:i();break}}else ca(t)?s=Ic:i()}else a===`select`?s=Fc:i();c||(r.needRuntime=n.helper(s))}else n.onError(Gc(58,e.loc));return r.props=r.props.filter(e=>!(e.key.type===4&&e.key.content===`modelValue`)),r},Zc=A(`passive,once,capture`),Qc=A(`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`),$c=A(`left,right`),el=A(`onkeyup,onkeydown,onkeypress`),tl=(e,t,n,r)=>{let i=[],a=[],o=[];for(let n=0;n<t.length;n++){let r=t[n].content;Zc(r)?o.push(r):$c(r)?Hi(e)?el(e.content.toLowerCase())?i.push(r):a.push(r):(i.push(r),a.push(r)):Qc(r)?a.push(r):i.push(r)}return{keyModifiers:i,nonKeyModifiers:a,eventOptionModifiers:o}},nl=(e,t)=>Hi(e)&&e.content.toLowerCase()===`onclick`?z(t,!0):e.type===4?e:cn([`(`,e,`) === "onClick" ? "${t}" : (`,e,`)`]),rl=(e,t,n)=>_c(e,t,n,t=>{let{modifiers:r}=e;if(!r.length)return t;let{key:i,value:a}=t.props[0],{keyModifiers:o,nonKeyModifiers:s,eventOptionModifiers:c}=tl(i,r,n,e.loc);if(s.includes(`right`)&&(i=nl(i,`onContextmenu`)),s.includes(`middle`)&&(i=nl(i,`onMouseup`)),s.length&&(a=B(n.helper(Lc),[a,JSON.stringify(s)])),o.length&&(!Hi(i)||el(i.content.toLowerCase()))&&(a=B(n.helper(Rc),[a,JSON.stringify(o)])),c.length){let e=c.map(Te).join(``);i=Hi(i)?z(`${i.content}${e}`,!0):cn([`(`,i,`) + "${e}"`])}return{props:[R(i,a)]}}),il=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Gc(62,i)),{props:[],needRuntime:n.helper(zc)}},al=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===Bc)return()=>{if(!e.children.length)return;ol(e)&&t.onError(Gc(63,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:``}));let n=e.children[0];if(n.type===1)for(let t of n.props)t.type===7&&t.name===`show`&&e.props.push({type:6,name:`persisted`,nameLoc:e.loc,value:void 0,loc:e.loc})}};function ol(e){let t=e.children=e.children.filter(e=>!wa(e)),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(ol)}var sl=/__VUE_EXP_START__(.*?)__VUE_EXP_END__/g,cl=(e,t,n)=>{if(t.scopes.vSlot>0)return;let r=n.type===1&&n.codegenNode&&n.codegenNode.type===13&&n.codegenNode.children&&!P(n.codegenNode.children)&&n.codegenNode.children.type===20,i=0,a=0,o=[],s=n=>{if(i>=20||a>=5){let i=B(t.helper(Ct),[JSON.stringify(o.map(e=>ml(e,t)).join(``)).replace(sl,`" + $1 + "`),String(o.length)]),a=o.length-1;if(r)e.splice(n-o.length,o.length,i);else if(o[0].codegenNode.value=i,o.length>1){e.splice(n-o.length+1,a);let r=t.cached.indexOf(o[o.length-1].codegenNode);if(r>-1){for(let e=r;e<t.cached.length;e++){let n=t.cached[e];n&&(n.index-=a)}t.cached.splice(r-a+1,a)}}return a}return 0},c=0;for(;c<e.length;c++){let t=e[c];if(r||ll(t)){let e=pl(t);if(e){i+=e[0],a+=e[1],o.push(t);continue}}c-=s(c),i=0,a=0,o.length=0}s(c)},ll=e=>{if((e.type===1&&e.tagType===0||e.type===12)&&e.codegenNode&&e.codegenNode.type===20)return e.codegenNode},ul=/^(?:data|aria)-/,dl=(e,t)=>(t===0?et(e):t===1?tt(e):t===2?nt(e):!1)||ul.test(e),fl=A(`caption,thead,tr,th,tbody,td,tfoot,colgroup,col`);function pl(e){if(e.type===1&&fl(e.tag)||e.type===1&&W(e,`once`,!0))return!1;if(e.type===12)return[1,0];let t=1,n=+(e.props.length>0),r=!1,i=()=>(r=!0,!1);function a(e){let o=e.tag===`option`&&e.ns===0;for(let t=0;t<e.props.length;t++){let n=e.props[t];if(n.type===6&&!dl(n.name,e.ns)||n.type===7&&n.name===`bind`&&(n.arg&&(n.arg.type===8||n.arg.isStatic&&!dl(n.arg.content,e.ns))||n.exp&&(n.exp.type===8||n.exp.constType<3)||o&&sa(n.arg,`value`)&&n.exp&&!n.exp.isStatic))return i()}for(let i=0;i<e.children.length;i++){t++;let o=e.children[i];if(o.type===1&&(o.props.length>0&&n++,a(o),r))return!1}return!0}return a(e)?[t,n]:!1}function ml(e,t){if(F(e))return e;if(pe(e))return``;switch(e.type){case 1:return hl(e,t);case 2:return it(e.content);case 3:return`<!--${it(e.content)}-->`;case 5:return it(ct(gl(e.content)));case 8:return it(gl(e));case 12:return ml(e.content,t);default:return``}}function hl(e,t){let n=`<${e.tag}`,r=``;for(let t=0;t<e.props.length;t++){let i=e.props[t];if(i.type===6)n+=` ${i.name}`,i.value&&(n+=`="${it(i.value.content)}"`);else if(i.type===7)if(i.name===`bind`){let e=i.exp;if(e.content[0]===`_`){n+=` ${i.arg.content}="__VUE_EXP_START__${e.content}__VUE_EXP_END__"`;continue}if(I(i.arg.content)&&e.content===`false`)continue;let t=gl(e);if(t!=null){let e=i.arg&&i.arg.content;e===`class`?t=Ve(t):e===`style`&&(t=Be(Fe(t))),n+=` ${i.arg.content}="${it(t)}"`}}else i.name===`html`?r=gl(i.exp):i.name===`text`&&(r=it(ct(gl(i.exp))))}if(t.scopeId&&(n+=` ${t.scopeId}`),n+=`>`,r)n+=r;else for(let r=0;r<e.children.length;r++)n+=ml(e.children[r],t);return Ye(e.tag)||(n+=`</${e.tag}>`),n}function gl(e){if(e.type===4)return Function(`return (${e.content})`)();{let t=``;return e.children.forEach(e=>{F(e)||pe(e)||(e.type===2?t+=e.content:e.type===5?t+=ct(gl(e.content)):t+=gl(e))}),t}}var _l=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag===`script`||e.tag===`style`)&&(t.onError(Gc(64,e.loc)),t.removeNode())};function vl(e,t){return e===`template`?!0:e in xl?xl[e].has(t):t in Sl?Sl[t].has(e):!(e in Cl&&Cl[e].has(t)||t in wl&&wl[t].has(e))}var yl=new Set([`h1`,`h2`,`h3`,`h4`,`h5`,`h6`]),bl=new Set([]),xl={head:new Set([`base`,`basefront`,`bgsound`,`link`,`meta`,`title`,`noscript`,`noframes`,`style`,`script`,`template`]),optgroup:new Set([`option`]),select:new Set([`optgroup`,`option`,`hr`]),table:new Set([`caption`,`colgroup`,`tbody`,`tfoot`,`thead`]),tr:new Set([`td`,`th`]),colgroup:new Set([`col`]),tbody:new Set([`tr`]),thead:new Set([`tr`]),tfoot:new Set([`tr`]),script:bl,iframe:bl,option:bl,textarea:bl,style:bl,title:bl},Sl={html:bl,body:new Set([`html`]),head:new Set([`html`]),td:new Set([`tr`]),colgroup:new Set([`table`]),caption:new Set([`table`]),tbody:new Set([`table`]),tfoot:new Set([`table`]),col:new Set([`colgroup`]),th:new Set([`tr`]),thead:new Set([`table`]),tr:new Set([`tbody`,`thead`,`tfoot`]),dd:new Set([`dl`,`div`]),dt:new Set([`dl`,`div`]),figcaption:new Set([`figure`]),summary:new Set([`details`]),area:new Set([`map`])},Cl={p:new Set(`address.article.aside.blockquote.center.details.dialog.dir.div.dl.fieldset.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.li.main.nav.menu.ol.p.pre.section.table.ul`.split(`.`)),svg:new Set(`b.blockquote.br.code.dd.div.dl.dt.em.embed.h1.h2.h3.h4.h5.h6.hr.i.img.li.menu.meta.ol.p.pre.ruby.s.small.span.strong.sub.sup.table.u.ul.var`.split(`.`))},wl={a:new Set([`a`]),button:new Set([`button`]),dd:new Set([`dd`,`dt`]),dt:new Set([`dd`,`dt`]),form:new Set([`form`]),li:new Set([`li`]),h1:yl,h2:yl,h3:yl,h4:yl,h5:yl,h6:yl},Tl=[Uc,...[al,(e,t)=>{if(e.type===1&&e.tagType===0&&t.parent&&t.parent.type===1&&t.parent.tagType===0&&!vl(t.parent.tag,e.tag)){let n=SyntaxError(`<${e.tag}> cannot be child of <${t.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.`);n.loc=e.loc,t.onWarn(n)}}]],El={cloak:jc,html:Jc,text:Yc,model:Xc,on:rl,show:il};function Dl(e,t={}){return kc(e,se({},Hc,t,{nodeTransforms:[_l,...Tl,...t.nodeTransforms||[]],directiveTransforms:se({},El,t.directiveTransforms||{}),transformHoist:cl}))}function Ol(e,t={}){return so(e,se({},Hc,t))}var kl=Object.freeze({__proto__:null,BASE_TRANSITION:ht,BindingTypes:Ac,CAMELIZE:zt,CAPITALIZE:Bt,CREATE_BLOCK:_t,CREATE_COMMENT:xt,CREATE_ELEMENT_BLOCK:vt,CREATE_ELEMENT_VNODE:bt,CREATE_SLOTS:jt,CREATE_STATIC:Ct,CREATE_TEXT:St,CREATE_VNODE:yt,CompilerDeprecationTypes:ai,ConstantTypes:tn,DOMDirectiveTransforms:El,DOMErrorCodes:Kc,DOMErrorMessages:qc,DOMNodeTransforms:Tl,ElementTypes:en,ErrorCodes:pi,FRAGMENT:dt,GUARD_REACTIVE_PROPS:Lt,IS_MEMO_SAME:Yt,IS_REF:qt,KEEP_ALIVE:mt,MERGE_PROPS:Nt,NORMALIZE_CLASS:Pt,NORMALIZE_PROPS:It,NORMALIZE_STYLE:Ft,Namespaces:Qt,NodeTypes:$t,OPEN_BLOCK:gt,POP_SCOPE_ID:Wt,PUSH_SCOPE_ID:Ut,RENDER_LIST:kt,RENDER_SLOT:At,RESOLVE_COMPONENT:wt,RESOLVE_DIRECTIVE:Et,RESOLVE_DYNAMIC_COMPONENT:Tt,RESOLVE_FILTER:Dt,SET_BLOCK_TRACKING:Ht,SUSPENSE:pt,TELEPORT:ft,TO_DISPLAY_STRING:Mt,TO_HANDLERS:Rt,TO_HANDLER_KEY:Vt,TRANSITION:Bc,TRANSITION_GROUP:Vc,TS_NODE_TYPES:Bi,UNREF:Kt,V_MODEL_CHECKBOX:Nc,V_MODEL_DYNAMIC:Ic,V_MODEL_RADIO:Mc,V_MODEL_SELECT:Fc,V_MODEL_TEXT:Pc,V_ON_WITH_KEYS:Rc,V_ON_WITH_MODIFIERS:Lc,V_SHOW:zc,WITH_CTX:Gt,WITH_DIRECTIVES:Ot,WITH_MEMO:Jt,advancePositionWithClone:ra,advancePositionWithMutation:ia,assert:aa,baseCompile:kc,baseParse:so,buildDirectiveArgs:fc,buildProps:lc,buildSlots:nc,checkCompatEnabled:li,compile:Dl,convertToBlock:bn,createArrayExpression:an,createAssignmentExpression:hn,createBlockStatement:fn,createCacheExpression:dn,createCallExpression:B,createCompilerError:U,createCompoundExpression:cn,createConditionalExpression:un,createDOMCompilerError:Gc,createForLoopParams:Xs,createFunctionExpression:ln,createIfStatement:mn,createInterpolation:sn,createObjectExpression:on,createObjectProperty:R,createReturnStatement:_n,createRoot:nn,createSequenceExpression:gn,createSimpleExpression:z,createStructuralDirectiveTransform:So,createTemplateLiteral:pn,createTransformContext:_o,createVNodeCall:rn,errorMessages:mi,extractIdentifiers:Ni,findDir:W,findProp:oa,forAliasRE:xa,generate:os,generateCodeFrame:Pe,getBaseTransformPreset:Oc,getConstantType:fo,getMemoedVNodeCall:ba,getVNodeBlockHelper:yn,getVNodeHelper:vn,hasDynamicKeyVBind:ca,hasScopeRef:ya,helperNameMap:Xt,injectProp:ga,isAllWhitespace:Sa,isCommentOrWhitespace:wa,isCoreComponent:Ui,isFnExpression:na,isFnExpressionBrowser:ea,isFnExpressionNode:ta,isFunctionType:Ii,isInDestructureAssignment:Ei,isInNewExpression:Di,isMemberExpression:Qi,isMemberExpressionBrowser:Xi,isMemberExpressionNode:Zi,isReferencedIdentifier:Ti,isSimpleIdentifier:Gi,isSlotOutlet:pa,isStaticArgOf:sa,isStaticExp:Hi,isStaticProperty:Li,isStaticPropertyKey:Ri,isTemplateNode:fa,isText:la,isVPre:ua,isVSlot:da,isWhitespaceText:Ca,locStub:L,noopDirectiveTransform:jc,parse:Ol,parserOptions:Hc,processExpression:Is,processFor:Js,processIf:Vs,processSlotOutlet:gc,registerRuntimeHelpers:Zt,resolveComponentType:sc,stringifyExpression:Rs,toValidAssetId:va,trackSlotScopes:$s,trackVForSlotScopes:ec,transform:vo,transformBind:vc,transformElement:oc,transformExpression:Fs,transformModel:Cc,transformOn:_c,transformStyle:Uc,transformVBindShorthand:Dc,traverseNode:xo,unwrapTSNode:Vi,validFirstIdentCharRE:Ki,walkBlockDeclarations:ki,walkFunctionParams:Oi,walkIdentifiers:wi,warnDeprecation:ui}),Al,jl;function Ml(){if(jl)return Al;jl=1;function e(e,t){for(;e.length<t;)e=`0`+e;return e}function t(e,t){var n,r,i;if(t.length===0)return e;for(n=0,i=t.length;n<i;n++)r=t.charCodeAt(n),e=(e<<5)-e+r,e|=0;return e<0?e*-2:e}function n(e,t,n){return Object.keys(t).sort().reduce(i,e);function i(e,i){return r(e,t[i],i,n)}}function r(e,r,a,o){var s=t(t(t(e,a),i(r)),typeof r);if(r===null)return t(s,`null`);if(r===void 0)return t(s,`undefined`);if(typeof r==`object`||typeof r==`function`){if(o.indexOf(r)!==-1)return t(s,`[Circular]`+a);o.push(r);var c=n(s,r,o);if(!(`valueOf`in r)||typeof r.valueOf!=`function`)return c;try{return t(c,String(r.valueOf()))}catch(e){return t(c,`[valueOf exception]`+(e.stack||e.message))}}return t(s,r.toString())}function i(e){return Object.prototype.toString.call(e)}function a(t){return e(r(0,t,``,[]).toString(16),8)}return Al=a,Al}var Nl=hi(Ml()),Pl=`useCssVars`;function Fl(e,t,n,r=!1){return`{
27
+ `:``}(...args)`} => ${a?`{`:`(`}`,c,a?`}`:`)`]))}let u={props:[R(s,c||z(`() => {}`,!1,i))]};return r&&(u=r(u)),l&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(e=>e.key.isHandlerKey=!0),u},vc=(e,t,n)=>{let{modifiers:r,loc:i}=e,a=e.arg,{exp:o}=e;return o&&o.type===4&&!o.content.trim()?(n.onError(U(34,i)),{props:[R(a,z(``,!0,i))]}):(a.type===4?a.isStatic||(a.content=a.content?`${a.content} || ""`:`""`):(a.children.unshift(`(`),a.children.push(`) || ""`)),r.some(e=>e.content===`camel`)&&(a.type===4?a.isStatic?a.content=Se(a.content):a.content=`${n.helperString(zt)}(${a.content})`:(a.children.unshift(`${n.helperString(zt)}(`),a.children.push(`)`))),n.inSSR||(r.some(e=>e.content===`prop`)&&yc(a,`.`),r.some(e=>e.content===`attr`)&&yc(a,`^`)),{props:[R(a,o)]})},yc=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(`)`))},bc=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{let n=e.children,r,i=!1;for(let e=0;e<n.length;e++){let t=n[e];if(la(t)){i=!0;for(let i=e+1;i<n.length;i++){let a=n[i];if(la(a))r||=n[e]=cn([t],t.loc),r.children.push(` + `,a),n.splice(i,1),i--;else{r=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(e=>e.type===7&&!t.directiveTransforms[e.name]))))for(let e=0;e<n.length;e++){let r=n[e];if(la(r)||r.type===8){let i=[];(r.type!==2||r.content!==` `)&&i.push(r),!t.ssr&&fo(r,t)===0&&i.push(`1 /* ${Ae[1]} */`),n[e]={type:12,content:r,loc:r.loc,codegenNode:B(t.helper(St),i)}}}}},xc=new WeakSet,Sc=(e,t)=>{if(e.type===1&&W(e,`once`,!0))return xc.has(e)||t.inVOnce||t.inSSR?void 0:(xc.add(e),t.inVOnce=!0,t.helper(Ht),()=>{t.inVOnce=!1;let e=t.currentNode;e.codegenNode&&=t.cache(e.codegenNode,!0,!0)})},Cc=(e,t,n)=>{let{exp:r,arg:i}=e;if(!r)return n.onError(U(41,e.loc)),wc();let a=r.loc.source.trim(),o=r.type===4?r.content:a,s=n.bindingMetadata[a];if(s===`props`||s===`props-aliased`)return n.onError(U(44,r.loc)),wc();if(s===`literal-const`||s===`setup-const`)return n.onError(U(45,r.loc)),wc();let c=n.inline&&(s===`setup-let`||s===`setup-ref`||s===`setup-maybe-ref`);if(!o.trim()||!Qi(r,n)&&!c)return n.onError(U(42,r.loc)),wc();if(n.prefixIdentifiers&&Gi(o)&&n.identifiers[o])return n.onError(U(43,r.loc)),wc();let l=i||z(`modelValue`,!0),u=i?Hi(i)?`onUpdate:${Se(i.content)}`:cn([`"onUpdate:" + `,i]):`onUpdate:modelValue`,d,f=n.isTS?`($event: any)`:`$event`;if(c)if(s===`setup-ref`)d=cn([`${f} => ((`,z(a,!1,r.loc),`).value = $event)`]);else{let e=s===`setup-let`?`${a} = $event`:`null`;d=cn([`${f} => (${n.helperString(qt)}(${a}) ? (`,z(a,!1,r.loc),`).value = $event : ${e})`])}else d=cn([`${f} => ((`,r,`) = $event)`]);let p=[R(l,e.exp),R(u,d)];if(n.prefixIdentifiers&&!n.inVOnce&&n.cacheHandlers&&!ya(r,n.identifiers)&&(p[1].value=n.cache(p[1].value)),e.modifiers.length&&t.tagType===1){let t=e.modifiers.map(e=>e.content).map(e=>(Gi(e)?e:JSON.stringify(e))+`: true`).join(`, `),n=i?Hi(i)?`${i.content}Modifiers`:cn([i,` + "Modifiers"`]):`modelModifiers`;p.push(R(n,z(`{ ${t} }`,!1,e.loc,2)))}return wc(p)};function wc(e=[]){return{props:e}}var Tc=new WeakSet,Ec=(e,t)=>{if(e.type===1){let n=W(e,`memo`);return!n||Tc.has(e)||t.inSSR?void 0:(Tc.add(e),()=>{let r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&bn(r,t),e.codegenNode=B(t.helper(Jt),[n.exp,ln(void 0,r),`_cache`,String(t.cached.length)]),t.cached.push(null))})}},Dc=(e,t)=>{if(e.type===1){for(let n of e.props)if(n.type===7&&n.name===`bind`&&!n.exp&&n.arg){let e=n.arg;if(e.type!==4||!e.isStatic)t.onError(U(53,e.loc)),n.exp=z(``,!0,e.loc);else{let t=Se(e.content);(Ki.test(t[0])||t[0]===`-`)&&(n.exp=z(t,!1,e.loc))}}}};function Oc(e){return[[Dc,Sc,Bs,Ec,qs,...e?[ec,Fs]:[],hc,oc,$s,bc],{on:_c,bind:vc,model:Cc}]}function kc(e,t={}){let n=t.onError||di,r=t.mode===`module`,i=t.prefixIdentifiers===!0||r;!i&&t.cacheHandlers&&n(U(50)),t.scopeId&&!r&&n(U(51));let a=se({},t,{prefixIdentifiers:i}),o=F(e)?so(e,a):e,[s,c]=Oc(i);if(t.isTS){let{expressionPlugins:e}=t;(!e||!e.includes(`typescript`))&&(t.expressionPlugins=[...e||[],`typescript`])}return vo(o,se({},a,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:se({},c,t.directiveTransforms||{})})),os(o,a)}var Ac={DATA:`data`,PROPS:`props`,PROPS_ALIASED:`props-aliased`,SETUP_LET:`setup-let`,SETUP_CONST:`setup-const`,SETUP_REACTIVE_CONST:`setup-reactive-const`,SETUP_MAYBE_REF:`setup-maybe-ref`,SETUP_REF:`setup-ref`,OPTIONS:`options`,LITERAL_CONST:`literal-const`},jc=()=>({props:[]}),Mc=Symbol(`vModelRadio`),Nc=Symbol(`vModelCheckbox`),Pc=Symbol(`vModelText`),Fc=Symbol(`vModelSelect`),Ic=Symbol(`vModelDynamic`),Lc=Symbol(`vOnModifiersGuard`),Rc=Symbol(`vOnKeysGuard`),zc=Symbol(`vShow`),Bc=Symbol(`Transition`),Vc=Symbol(`TransitionGroup`);Zt({[Mc]:`vModelRadio`,[Nc]:`vModelCheckbox`,[Pc]:`vModelText`,[Fc]:`vModelSelect`,[Ic]:`vModelDynamic`,[Lc]:`withModifiers`,[Rc]:`withKeys`,[zc]:`vShow`,[Bc]:`Transition`,[Vc]:`TransitionGroup`});var Hc={parseMode:`html`,isVoidTag:Ye,isNativeTag:e=>Ke(e)||qe(e)||Je(e),isPreTag:e=>e===`pre`,isIgnoreNewlineTag:e=>e===`pre`||e===`textarea`,decodeEntities:void 0,isBuiltInComponent:e=>{if(e===`Transition`||e===`transition`)return Bc;if(e===`TransitionGroup`||e===`transition-group`)return Vc},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag===`annotation-xml`){if(e===`svg`)return 1;t.props.some(e=>e.type===6&&e.name===`encoding`&&e.value!=null&&(e.value.content===`text/html`||e.value.content===`application/xhtml+xml`))&&(r=0)}else /^m(?:[ions]|text)$/.test(t.tag)&&e!==`mglyph`&&e!==`malignmark`&&(r=0);else t&&r===1&&(t.tag===`foreignObject`||t.tag===`desc`||t.tag===`title`)&&(r=0);if(r===0){if(e===`svg`)return 1;if(e===`math`)return 2}return r}},Uc=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name===`style`&&t.value&&(e.props[n]={type:7,name:`bind`,arg:z(`style`,!0,t.loc),exp:Wc(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Wc=(e,t)=>{let n=ze(e);return z(JSON.stringify(n),!1,t,3)};function Gc(e,t){return U(e,t,qc)}var Kc={X_V_HTML_NO_EXPRESSION:54,54:`X_V_HTML_NO_EXPRESSION`,X_V_HTML_WITH_CHILDREN:55,55:`X_V_HTML_WITH_CHILDREN`,X_V_TEXT_NO_EXPRESSION:56,56:`X_V_TEXT_NO_EXPRESSION`,X_V_TEXT_WITH_CHILDREN:57,57:`X_V_TEXT_WITH_CHILDREN`,X_V_MODEL_ON_INVALID_ELEMENT:58,58:`X_V_MODEL_ON_INVALID_ELEMENT`,X_V_MODEL_ARG_ON_ELEMENT:59,59:`X_V_MODEL_ARG_ON_ELEMENT`,X_V_MODEL_ON_FILE_INPUT_ELEMENT:60,60:`X_V_MODEL_ON_FILE_INPUT_ELEMENT`,X_V_MODEL_UNNECESSARY_VALUE:61,61:`X_V_MODEL_UNNECESSARY_VALUE`,X_V_SHOW_NO_EXPRESSION:62,62:`X_V_SHOW_NO_EXPRESSION`,X_TRANSITION_INVALID_CHILDREN:63,63:`X_TRANSITION_INVALID_CHILDREN`,X_IGNORED_SIDE_EFFECT_TAG:64,64:`X_IGNORED_SIDE_EFFECT_TAG`,__EXTEND_POINT__:65,65:`__EXTEND_POINT__`},qc={54:`v-html is missing expression.`,55:`v-html will override element children.`,56:`v-text is missing expression.`,57:`v-text will override element children.`,58:`v-model can only be used on <input>, <textarea> and <select> elements.`,59:`v-model argument is not supported on plain elements.`,60:`v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,61:`Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,62:`v-show is missing expression.`,63:`<Transition> expects exactly one child element or component.`,64:`Tags with side effect (<script> and <style>) are ignored in client component templates.`},Jc=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Gc(54,i)),t.children.length&&(n.onError(Gc(55,i)),t.children.length=0),{props:[R(z(`innerHTML`,!0,i),r||z(``,!0))]}},Yc=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Gc(56,i)),t.children.length&&(n.onError(Gc(57,i)),t.children.length=0),{props:[R(z(`textContent`,!0),r?fo(r,n)>0?r:B(n.helperString(Mt),[r],i):z(``,!0))]}},Xc=(e,t,n)=>{let r=Cc(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Gc(59,e.arg.loc));function i(){let e=W(t,`bind`);e&&sa(e.arg,`value`)&&n.onError(Gc(61,e.loc))}let{tag:a}=t,o=n.isCustomElement(a);if(a===`input`||a===`textarea`||a===`select`||o){let s=Pc,c=!1;if(a===`input`||o){let r=oa(t,`type`);if(r){if(r.type===7)s=Ic;else if(r.value)switch(r.value.content){case`radio`:s=Mc;break;case`checkbox`:s=Nc;break;case`file`:c=!0,n.onError(Gc(60,e.loc));break;default:i();break}}else ca(t)?s=Ic:i()}else a===`select`?s=Fc:i();c||(r.needRuntime=n.helper(s))}else n.onError(Gc(58,e.loc));return r.props=r.props.filter(e=>!(e.key.type===4&&e.key.content===`modelValue`)),r},Zc=A(`passive,once,capture`),Qc=A(`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`),$c=A(`left,right`),el=A(`onkeyup,onkeydown,onkeypress`),tl=(e,t,n,r)=>{let i=[],a=[],o=[];for(let n=0;n<t.length;n++){let r=t[n].content;Zc(r)?o.push(r):$c(r)?Hi(e)?el(e.content.toLowerCase())?i.push(r):a.push(r):(i.push(r),a.push(r)):Qc(r)?a.push(r):i.push(r)}return{keyModifiers:i,nonKeyModifiers:a,eventOptionModifiers:o}},nl=(e,t)=>Hi(e)&&e.content.toLowerCase()===`onclick`?z(t,!0):e.type===4?e:cn([`(`,e,`) === "onClick" ? "${t}" : (`,e,`)`]),rl=(e,t,n)=>_c(e,t,n,t=>{let{modifiers:r}=e;if(!r.length)return t;let{key:i,value:a}=t.props[0],{keyModifiers:o,nonKeyModifiers:s,eventOptionModifiers:c}=tl(i,r,n,e.loc);if(s.includes(`right`)&&(i=nl(i,`onContextmenu`)),s.includes(`middle`)&&(i=nl(i,`onMouseup`)),s.length&&(a=B(n.helper(Lc),[a,JSON.stringify(s)])),o.length&&(!Hi(i)||el(i.content.toLowerCase()))&&(a=B(n.helper(Rc),[a,JSON.stringify(o)])),c.length){let e=c.map(Te).join(``);i=Hi(i)?z(`${i.content}${e}`,!0):cn([`(`,i,`) + "${e}"`])}return{props:[R(i,a)]}}),il=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Gc(62,i)),{props:[],needRuntime:n.helper(zc)}},al=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===Bc)return()=>{if(!e.children.length)return;ol(e)&&t.onError(Gc(63,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:``}));let n=e.children[0];if(n.type===1)for(let t of n.props)t.type===7&&t.name===`show`&&e.props.push({type:6,name:`persisted`,nameLoc:e.loc,value:void 0,loc:e.loc})}};function ol(e){let t=e.children=e.children.filter(e=>!wa(e)),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(ol)}var sl=/__VUE_EXP_START__(.*?)__VUE_EXP_END__/g,cl=(e,t,n)=>{if(t.scopes.vSlot>0)return;let r=n.type===1&&n.codegenNode&&n.codegenNode.type===13&&n.codegenNode.children&&!P(n.codegenNode.children)&&n.codegenNode.children.type===20,i=0,a=0,o=[],s=n=>{if(i>=20||a>=5){let i=B(t.helper(Ct),[JSON.stringify(o.map(e=>ml(e,t)).join(``)).replace(sl,`" + $1 + "`),String(o.length)]),a=o.length-1;if(r)e.splice(n-o.length,o.length,i);else if(o[0].codegenNode.value=i,o.length>1){e.splice(n-o.length+1,a);let r=t.cached.indexOf(o[o.length-1].codegenNode);if(r>-1){for(let e=r;e<t.cached.length;e++){let n=t.cached[e];n&&(n.index-=a)}t.cached.splice(r-a+1,a)}}return a}return 0},c=0;for(;c<e.length;c++){let t=e[c];if(r||ll(t)){let e=pl(t);if(e){i+=e[0],a+=e[1],o.push(t);continue}}c-=s(c),i=0,a=0,o.length=0}s(c)},ll=e=>{if((e.type===1&&e.tagType===0||e.type===12)&&e.codegenNode&&e.codegenNode.type===20)return e.codegenNode},ul=/^(?:data|aria)-/,dl=(e,t)=>(t===0?et(e):t===1?tt(e):t===2?nt(e):!1)||ul.test(e),fl=A(`caption,thead,tr,th,tbody,td,tfoot,colgroup,col`);function pl(e){if(e.type===1&&fl(e.tag)||e.type===1&&W(e,`once`,!0))return!1;if(e.type===12)return[1,0];let t=1,n=+(e.props.length>0),r=!1,i=()=>(r=!0,!1);function a(e){let o=e.tag===`option`&&e.ns===0;for(let t=0;t<e.props.length;t++){let n=e.props[t];if(n.type===6&&!dl(n.name,e.ns)||n.type===7&&n.name===`bind`&&(n.arg&&(n.arg.type===8||n.arg.isStatic&&!dl(n.arg.content,e.ns))||n.exp&&(n.exp.type===8||n.exp.constType<3)||o&&sa(n.arg,`value`)&&n.exp&&!n.exp.isStatic))return i()}for(let i=0;i<e.children.length;i++){t++;let o=e.children[i];if(o.type===1&&(o.props.length>0&&n++,a(o),r))return!1}return!0}return a(e)?[t,n]:!1}function ml(e,t){if(F(e))return e;if(pe(e))return``;switch(e.type){case 1:return hl(e,t);case 2:return it(e.content);case 3:return`<!--${it(e.content)}-->`;case 5:return it(ct(gl(e.content)));case 8:return it(gl(e));case 12:return ml(e.content,t);default:return``}}function hl(e,t){let n=`<${e.tag}`,r=``;for(let t=0;t<e.props.length;t++){let i=e.props[t];if(i.type===6)n+=` ${i.name}`,i.value&&(n+=`="${it(i.value.content)}"`);else if(i.type===7)if(i.name===`bind`){let e=i.exp;if(e.content[0]===`_`){n+=` ${i.arg.content}="__VUE_EXP_START__${e.content}__VUE_EXP_END__"`;continue}if(I(i.arg.content)&&e.content===`false`)continue;let t=gl(e);if(t!=null){let e=i.arg&&i.arg.content;e===`class`?t=Ve(t):e===`style`&&(t=Be(Fe(t))),n+=` ${i.arg.content}="${it(t)}"`}}else i.name===`html`?r=gl(i.exp):i.name===`text`&&(r=it(ct(gl(i.exp))))}if(t.scopeId&&(n+=` ${t.scopeId}`),n+=`>`,r)n+=r;else for(let r=0;r<e.children.length;r++)n+=ml(e.children[r],t);return Ye(e.tag)||(n+=`</${e.tag}>`),n}function gl(e){if(e.type===4)return Function(`return (${e.content})`)();{let t=``;return e.children.forEach(e=>{F(e)||pe(e)||(e.type===2?t+=e.content:e.type===5?t+=ct(gl(e.content)):t+=gl(e))}),t}}var _l=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag===`script`||e.tag===`style`)&&(t.onError(Gc(64,e.loc)),t.removeNode())};function vl(e,t){return e===`template`?!0:e in xl?xl[e].has(t):t in Sl?Sl[t].has(e):!(e in Cl&&Cl[e].has(t)||t in wl&&wl[t].has(e))}var yl=new Set([`h1`,`h2`,`h3`,`h4`,`h5`,`h6`]),bl=new Set([]),xl={head:new Set([`base`,`basefront`,`bgsound`,`link`,`meta`,`title`,`noscript`,`noframes`,`style`,`script`,`template`]),optgroup:new Set([`option`]),select:new Set([`optgroup`,`option`,`hr`]),table:new Set([`caption`,`colgroup`,`tbody`,`tfoot`,`thead`]),tr:new Set([`td`,`th`]),colgroup:new Set([`col`]),tbody:new Set([`tr`]),thead:new Set([`tr`]),tfoot:new Set([`tr`]),script:bl,iframe:bl,option:bl,textarea:bl,style:bl,title:bl},Sl={html:bl,body:new Set([`html`]),head:new Set([`html`]),td:new Set([`tr`]),colgroup:new Set([`table`]),caption:new Set([`table`]),tbody:new Set([`table`]),tfoot:new Set([`table`]),col:new Set([`colgroup`]),th:new Set([`tr`]),thead:new Set([`table`]),tr:new Set([`tbody`,`thead`,`tfoot`]),dd:new Set([`dl`,`div`]),dt:new Set([`dl`,`div`]),figcaption:new Set([`figure`]),summary:new Set([`details`]),area:new Set([`map`])},Cl={p:new Set(`address.article.aside.blockquote.center.details.dialog.dir.div.dl.fieldset.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.li.main.nav.menu.ol.p.pre.section.table.ul`.split(`.`)),svg:new Set(`b.blockquote.br.code.dd.div.dl.dt.em.embed.h1.h2.h3.h4.h5.h6.hr.i.img.li.menu.meta.ol.p.pre.ruby.s.small.span.strong.sub.sup.table.u.ul.var`.split(`.`))},wl={a:new Set([`a`]),button:new Set([`button`]),dd:new Set([`dd`,`dt`]),dt:new Set([`dd`,`dt`]),form:new Set([`form`]),li:new Set([`li`]),h1:yl,h2:yl,h3:yl,h4:yl,h5:yl,h6:yl},Tl=[Uc,al,(e,t)=>{if(e.type===1&&e.tagType===0&&t.parent&&t.parent.type===1&&t.parent.tagType===0&&!vl(t.parent.tag,e.tag)){let n=SyntaxError(`<${e.tag}> cannot be child of <${t.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.`);n.loc=e.loc,t.onWarn(n)}}],El={cloak:jc,html:Jc,text:Yc,model:Xc,on:rl,show:il};function Dl(e,t={}){return kc(e,se({},Hc,t,{nodeTransforms:[_l,...Tl,...t.nodeTransforms||[]],directiveTransforms:se({},El,t.directiveTransforms||{}),transformHoist:cl}))}function Ol(e,t={}){return so(e,se({},Hc,t))}var kl=Object.freeze({__proto__:null,BASE_TRANSITION:ht,BindingTypes:Ac,CAMELIZE:zt,CAPITALIZE:Bt,CREATE_BLOCK:_t,CREATE_COMMENT:xt,CREATE_ELEMENT_BLOCK:vt,CREATE_ELEMENT_VNODE:bt,CREATE_SLOTS:jt,CREATE_STATIC:Ct,CREATE_TEXT:St,CREATE_VNODE:yt,CompilerDeprecationTypes:ai,ConstantTypes:tn,DOMDirectiveTransforms:El,DOMErrorCodes:Kc,DOMErrorMessages:qc,DOMNodeTransforms:Tl,ElementTypes:en,ErrorCodes:pi,FRAGMENT:dt,GUARD_REACTIVE_PROPS:Lt,IS_MEMO_SAME:Yt,IS_REF:qt,KEEP_ALIVE:mt,MERGE_PROPS:Nt,NORMALIZE_CLASS:Pt,NORMALIZE_PROPS:It,NORMALIZE_STYLE:Ft,Namespaces:Qt,NodeTypes:$t,OPEN_BLOCK:gt,POP_SCOPE_ID:Wt,PUSH_SCOPE_ID:Ut,RENDER_LIST:kt,RENDER_SLOT:At,RESOLVE_COMPONENT:wt,RESOLVE_DIRECTIVE:Et,RESOLVE_DYNAMIC_COMPONENT:Tt,RESOLVE_FILTER:Dt,SET_BLOCK_TRACKING:Ht,SUSPENSE:pt,TELEPORT:ft,TO_DISPLAY_STRING:Mt,TO_HANDLERS:Rt,TO_HANDLER_KEY:Vt,TRANSITION:Bc,TRANSITION_GROUP:Vc,TS_NODE_TYPES:Bi,UNREF:Kt,V_MODEL_CHECKBOX:Nc,V_MODEL_DYNAMIC:Ic,V_MODEL_RADIO:Mc,V_MODEL_SELECT:Fc,V_MODEL_TEXT:Pc,V_ON_WITH_KEYS:Rc,V_ON_WITH_MODIFIERS:Lc,V_SHOW:zc,WITH_CTX:Gt,WITH_DIRECTIVES:Ot,WITH_MEMO:Jt,advancePositionWithClone:ra,advancePositionWithMutation:ia,assert:aa,baseCompile:kc,baseParse:so,buildDirectiveArgs:fc,buildProps:lc,buildSlots:nc,checkCompatEnabled:li,compile:Dl,convertToBlock:bn,createArrayExpression:an,createAssignmentExpression:hn,createBlockStatement:fn,createCacheExpression:dn,createCallExpression:B,createCompilerError:U,createCompoundExpression:cn,createConditionalExpression:un,createDOMCompilerError:Gc,createForLoopParams:Xs,createFunctionExpression:ln,createIfStatement:mn,createInterpolation:sn,createObjectExpression:on,createObjectProperty:R,createReturnStatement:_n,createRoot:nn,createSequenceExpression:gn,createSimpleExpression:z,createStructuralDirectiveTransform:So,createTemplateLiteral:pn,createTransformContext:_o,createVNodeCall:rn,errorMessages:mi,extractIdentifiers:Ni,findDir:W,findProp:oa,forAliasRE:xa,generate:os,generateCodeFrame:Pe,getBaseTransformPreset:Oc,getConstantType:fo,getMemoedVNodeCall:ba,getVNodeBlockHelper:yn,getVNodeHelper:vn,hasDynamicKeyVBind:ca,hasScopeRef:ya,helperNameMap:Xt,injectProp:ga,isAllWhitespace:Sa,isCommentOrWhitespace:wa,isCoreComponent:Ui,isFnExpression:na,isFnExpressionBrowser:ea,isFnExpressionNode:ta,isFunctionType:Ii,isInDestructureAssignment:Ei,isInNewExpression:Di,isMemberExpression:Qi,isMemberExpressionBrowser:Xi,isMemberExpressionNode:Zi,isReferencedIdentifier:Ti,isSimpleIdentifier:Gi,isSlotOutlet:pa,isStaticArgOf:sa,isStaticExp:Hi,isStaticProperty:Li,isStaticPropertyKey:Ri,isTemplateNode:fa,isText:la,isVPre:ua,isVSlot:da,isWhitespaceText:Ca,locStub:L,noopDirectiveTransform:jc,parse:Ol,parserOptions:Hc,processExpression:Is,processFor:Js,processIf:Vs,processSlotOutlet:gc,registerRuntimeHelpers:Zt,resolveComponentType:sc,stringifyExpression:Rs,toValidAssetId:va,trackSlotScopes:$s,trackVForSlotScopes:ec,transform:vo,transformBind:vc,transformElement:oc,transformExpression:Fs,transformModel:Cc,transformOn:_c,transformStyle:Uc,transformVBindShorthand:Dc,traverseNode:xo,unwrapTSNode:Vi,validFirstIdentCharRE:Ki,walkBlockDeclarations:ki,walkFunctionParams:Oi,walkIdentifiers:wi,warnDeprecation:ui}),Al,jl;function Ml(){if(jl)return Al;jl=1;function e(e,t){for(;e.length<t;)e=`0`+e;return e}function t(e,t){var n,r,i;if(t.length===0)return e;for(n=0,i=t.length;n<i;n++)r=t.charCodeAt(n),e=(e<<5)-e+r,e|=0;return e<0?e*-2:e}function n(e,t,n){return Object.keys(t).sort().reduce(i,e);function i(e,i){return r(e,t[i],i,n)}}function r(e,r,a,o){var s=t(t(t(e,a),i(r)),typeof r);if(r===null)return t(s,`null`);if(r===void 0)return t(s,`undefined`);if(typeof r==`object`||typeof r==`function`){if(o.indexOf(r)!==-1)return t(s,`[Circular]`+a);o.push(r);var c=n(s,r,o);if(!(`valueOf`in r)||typeof r.valueOf!=`function`)return c;try{return t(c,String(r.valueOf()))}catch(e){return t(c,`[valueOf exception]`+(e.stack||e.message))}}return t(s,r.toString())}function i(e){return Object.prototype.toString.call(e)}function a(t){return e(r(0,t,``,[]).toString(16),8)}return Al=a,Al}var Nl=hi(Ml()),Pl=`useCssVars`;function Fl(e,t,n,r=!1){return`{
28
28
  ${e.map(e=>`"${r?`:--`:``}${Il(t,e,n,r)}": (${e})`).join(`,
29
29
  `)}
30
30
  }`}function Il(e,t,n,r=!1){return n?Nl(e+t).replace(/^\d/,e=>`v${e}`):`${e}-${ot(t,r)}`}function Ll(e){return e=e.trim(),e[0]===`'`&&e[e.length-1]===`'`||e[0]===`"`&&e[e.length-1]===`"`?e.slice(1,-1):e}var Rl=/v-bind\s*\(/g;function zl(e){let t=[];return e.styles.forEach(e=>{let n,r=e.content.replace(/\/\*([\s\S]*?)\*\/|\/\/.*/g,``);for(;n=Rl.exec(r);){let e=n.index+n[0].length,i=Bl(r,e);if(i!==null){let n=Ll(r.slice(e,i));t.includes(n)||t.push(n)}}}),t}function Bl(e,t){let n=0,r=0;for(let i=t;i<e.length;i++){let t=e.charAt(i);switch(n){case 0:if(t===`'`)n=1;else if(t===`"`)n=2;else if(t===`(`)r++;else if(t===`)`)if(r>0)r--;else return i;break;case 1:t===`'`&&(n=0);break;case 2:t===`"`&&(n=0);break}}return null}var Vl=e=>{let{id:t,isProd:n}=e;return{postcssPlugin:`vue-sfc-vars`,Declaration(e){let r=e.value;if(Rl.test(r)){Rl.lastIndex=0;let i=``,a=0,o;for(;o=Rl.exec(r);){let e=o.index+o[0].length,s=Bl(r,e);if(s!==null){let c=Ll(r.slice(e,s));i+=r.slice(a,o.index)+`var(--${Il(t,c,n)})`,a=s+1}}e.value=i+r.slice(a)}}}};Vl.postcss=!0;function Hl(e,t,n,r){let i=Is(z(Fl(e,n,r),!1),_o(nn([]),{prefixIdentifiers:!0,inline:!0,bindingMetadata:t.__isScriptSetup===!1?void 0:t}));return`_${Pl}(_ctx => (${i.type===4?i.content:i.children.map(e=>typeof e==`string`?e:e.content).join(``)}))`}function Ul(e,t,n,r,i){return`
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * vue-router v5.0.7
3
+ * (c) 2026 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */
6
+ import{computed as e,defineComponent as t,h as n,inject as r,nextTick as i,onActivated as a,onDeactivated as o,onUnmounted as s,provide as c,reactive as l,ref as u,shallowReactive as d,shallowRef as f,unref as p,watch as ee}from"vue";const m=typeof document<`u`;function h(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function te(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&h(e.default)}const g=Object.assign;function ne(e,t){let n={};for(let r in t){let i=t[r];n[r]=v(i)?i.map(e):e(i)}return n}const _=()=>{},v=Array.isArray;function re(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}const ie=/#/g,ae=/&/g,oe=/\//g,y=/=/g,b=/\?/g,x=/\+/g,S=/%5B/g,se=/%5D/g,ce=/%5E/g,C=/%60/g,le=/%7B/g,w=/%7C/g,T=/%7D/g,ue=/%20/g;function E(e){return e==null?``:encodeURI(``+e).replace(w,`|`).replace(S,`[`).replace(se,`]`)}function de(e){return E(e).replace(le,`{`).replace(T,`}`).replace(ce,`^`)}function D(e){return E(e).replace(x,`%2B`).replace(ue,`+`).replace(ie,`%23`).replace(ae,`%26`).replace(C,"`").replace(le,`{`).replace(T,`}`).replace(ce,`^`)}function fe(e){return D(e).replace(y,`%3D`)}function O(e){return E(e).replace(ie,`%23`).replace(b,`%3F`)}function pe(e){return O(e).replace(oe,`%2F`)}function k(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch(e){}return``+e}const me=/\/$/,A=e=>e.replace(me,``);function he(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r=r||t.slice(0,s),o=t.slice(s,t.length)),r=F(r==null?t:r,n),{fullPath:r+a+o,path:r,query:i,hash:k(o)}}function ge(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function j(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function _e(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&M(t.matched[r],n.matched[i])&&N(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function M(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function N(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!ve(e[n],t[n]))return!1;return!0}function ve(e,t){return v(e)?P(e,t):v(t)?P(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function P(e,t){return v(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function F(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}const I={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};let L=function(e){return e.pop=`pop`,e.push=`push`,e}({}),R=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function z(e){if(!e)if(m){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),A(e)}const B=/^[^#]+#/;function ye(e,t){return e.replace(B,`#`)+t}function be(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const V=()=>({left:window.scrollX,top:window.scrollY});function xe(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=be(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Se(e,t){return(history.state?history.state.position-t:-1)+e}const Ce=new Map;function we(e,t){Ce.set(e,t)}function Te(e){let t=Ce.get(e);return Ce.delete(e),t}let Ee=()=>location.protocol+`//`+location.host;function De(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),j(n,``)}return j(n,e)+r+i}function Oe(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=De(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:L.pop,direction:u?u>0?R.forward:R.back:R.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(g({},e.state,{scroll:V()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function ke(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?V():null}}function Ae(e){let{history:t,location:n}=window,r={value:De(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Ee()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,g({},t.state,ke(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=g({},i.value,t.state,{forward:e,scroll:V()});a(o.current,o,!0),a(e,g({},ke(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function je(e){e=z(e);let t=Ae(e),n=Oe(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=g({location:``,base:e,go:r,createHref:ye.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}function Me(e=``){let t=[],n=[[``,{}]],r=0;e=z(e);function i(e,t={}){r++,r!==n.length&&n.splice(r),n.push([e,t])}function a(e,n,{direction:r,delta:i}){let a={direction:r,delta:i,type:L.pop};for(let r of t)r(e,n,a)}let o={location:``,state:{},base:e,createHref:ye.bind(null,e),replace(e,t){n.splice(r--,1),i(e,t)},push(e,t){i(e,t)},listen(e){return t.push(e),()=>{let n=t.indexOf(e);n>-1&&t.splice(n,1)}},destroy(){t=[],n=[[``,{}]],r=0},go(e,t=!0){let i=this.location,o=e<0?R.back:R.forward;r=Math.max(0,Math.min(r+e,n.length-1)),t&&a(this.location,i,{direction:o,delta:e})}};return Object.defineProperty(o,`location`,{enumerable:!0,get:()=>n[r][0]}),Object.defineProperty(o,`state`,{enumerable:!0,get:()=>n[r][1]}),o}function Ne(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),je(e)}function Pe(e){return typeof e==`string`||e&&typeof e==`object`}function Fe(e){return typeof e==`string`||typeof e==`symbol`}let H=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({});const Ie=Symbol(``);let Le=function(e){return e[e.aborted=4]=`aborted`,e[e.cancelled=8]=`cancelled`,e[e.duplicated=16]=`duplicated`,e}({});H.MATCHER_NOT_FOUND,H.NAVIGATION_GUARD_REDIRECT,H.NAVIGATION_ABORTED,H.NAVIGATION_CANCELLED,H.NAVIGATION_DUPLICATED;function U(e,t){return g(Error(),{type:e,[Ie]:!0},t)}function W(e,t){return e instanceof Error&&Ie in e&&(t==null||!!(e.type&t))}let G=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({});var K=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(K||{});const Re={type:G.Static,value:``},ze=/[a-zA-Z0-9_]/;function Be(e){if(!e)return[[]];if(e===`/`)return[[Re]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=K.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&(n===K.Static?a.push({type:G.Static,value:l}):n===K.Param||n===K.ParamRegExp||n===K.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:G.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),l=``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case K.Static:c===`\\`?(r=n,n=K.EscapeNext):c===`/`?(l&&d(),o()):c===`:`?(d(),n=K.Param):f();break;case K.EscapeNext:f(),n=r;break;case K.Param:c===`(`?n=K.ParamRegExp:ze.test(c)?f():(d(),n=K.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case K.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=K.ParamRegExpEnd:u+=c;break;case K.ParamRegExpEnd:d(),n=K.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}return n===K.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}const Ve=`[^/]+?`,He={sensitive:!1,strict:!1,start:!0,end:!0};var q=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}(q||{});const Ue=/[.+*?^${}()[\]/\\]/g;function We(e,t){let n=g({},He,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[q.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=q.Segment+(n.sensitive?q.BonusCaseSensitive:0);if(o.type===G.Static)r||(i+=`/`),i+=o.value.replace(Ue,`\\$&`),s+=q.Static;else if(o.type===G.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Ve;if(u!==Ve){s+=q.BonusCustomRegExp;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=q.Dynamic,c&&(s+=q.BonusOptional),n&&(s+=q.BonusRepeatable),u===`.*`&&(s+=q.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=q.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===G.Static)n+=e.value;else if(e.type===G.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(v(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=v(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function Ge(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===q.Static+q.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===q.Static+q.Segment?1:-1:0}function Ke(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Ge(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(qe(r))return 1;if(qe(i))return-1}return i.length-r.length}function qe(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Je={strict:!1,end:!0,sensitive:!1};function Ye(e,t,n){let r=g(We(Be(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Xe(e,t){let n=[],r=new Map;t=re(Je,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Qe(e);s.aliasOf=r&&r.record;let l=re(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Qe(g({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Ye(t,n,l),r?r.alias.push(d):(f=f||d,f!==d&&f.alias.push(d),i&&e.name&&!et(d)&&o(e.name)),it(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r=r||d}return f?()=>{o(f)}:_}function o(e){if(Fe(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=nt(e,n);n.splice(t,0,e),e.record.name&&!et(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw U(H.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=g(Ze(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Ze(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw U(H.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=g({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:tt(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Ze(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Qe(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:$e(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function $e(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function et(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tt(e){return e.reduce((e,t)=>g(e,t.meta),{})}function nt(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Ke(e,t[i])<0?r=i:n=i+1}let i=rt(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function rt(e){let t=e;for(;t=t.parent;)if(it(t)&&Ke(e,t)===0)return t}function it({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function at(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(x,` `),i=r.indexOf(`=`),a=k(i<0?r:r.slice(0,i)),o=i<0?null:k(r.slice(i+1));if(a in t){let e=t[a];v(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function ot(e){let t=``;for(let n in e){let r=e[n];if(n=fe(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(v(r)?r.map(e=>e&&D(e)):[r&&D(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function st(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=v(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}const J=Symbol(``),ct=Symbol(``),Y=Symbol(``),X=Symbol(``),Z=Symbol(``);function Q(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function lt(e,t,n){let r=e.value;if(!r)return;let i=r,c=()=>{i[t].delete(n)};s(c),o(c),a(()=>{let r=e.value;r&&(i=r),i[t].add(n)}),i[t].add(n)}function ut(e){lt(r(J,{}),`leaveGuards`,e)}function dt(e){lt(r(J,{}),`updateGuards`,e)}function $(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(U(H.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Pe(e)?c(U(H.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function ft(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(h(s)){let c=(s.__vccOpts||s)[t];c&&a.push($(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=te(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&$(c,n,r,o,e,i)()}))}}return a}function pt(e){return e.matched.every(e=>e.redirect)?Promise.reject(Error(`Cannot load a route that redirects.`)):Promise.all(e.matched.map(e=>e.components&&Promise.all(Object.keys(e.components).reduce((t,n)=>{let r=e.components[n];return typeof r==`function`&&!(`displayName`in r)&&t.push(r().then(t=>{if(!t)return Promise.reject(Error(`Couldn't resolve component "${n}" at "${e.path}". Ensure you passed a function that returns a promise.`));let r=te(t)?t.default:t;e.mods[n]=t,e.components[n]=r})),t},[])))).then(()=>e)}function mt(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>M(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>M(e,s))||i.push(s))}return[n,r,i]}function ht(t){let n=r(Y),i=r(X),a=e(()=>{let e=p(t.to);return n.resolve(e)}),o=e(()=>{let{matched:e}=a.value,{length:t}=e,n=e[t-1],r=i.matched;if(!n||!r.length)return-1;let o=r.findIndex(M.bind(null,n));if(o>-1)return o;let s=bt(e[t-2]);return t>1&&bt(n)===s&&r[r.length-1].path!==s?r.findIndex(M.bind(null,e[t-2])):o}),s=e(()=>o.value>-1&&yt(i.params,a.value.params)),c=e(()=>o.value>-1&&o.value===i.matched.length-1&&N(i.params,a.value.params));function l(e={}){if(vt(e)){let e=n[p(t.replace)?`replace`:`push`](p(t.to)).catch(_);return t.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>e),e}return Promise.resolve()}return{route:a,href:e(()=>a.value.href),isActive:s,isExactActive:c,navigate:l}}function gt(e){return e.length===1?e[0]:e}const _t=t({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:ht,setup(t,{slots:i}){let a=l(ht(t)),{options:o}=r(Y),s=e(()=>({[xt(t.activeClass,o.linkActiveClass,`router-link-active`)]:a.isActive,[xt(t.exactActiveClass,o.linkExactActiveClass,`router-link-exact-active`)]:a.isExactActive}));return()=>{let e=i.default&&gt(i.default(a));return t.custom?e:n(`a`,{"aria-current":a.isExactActive?t.ariaCurrentValue:null,href:a.href,onClick:a.navigate,class:s.value},e)}}});function vt(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function yt(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!v(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function bt(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}const xt=(e,t,n)=>e==null?t==null?n:t:e,St=t({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(t,{attrs:i,slots:a}){let o=r(Z),s=e(()=>t.route||o.value),l=r(ct,0),d=e(()=>{let e=p(l),{matched:t}=s.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),f=e(()=>s.value.matched[d.value]);c(ct,e(()=>d.value+1)),c(J,f),c(Z,s);let m=u();return ee(()=>[m.value,f.value,t.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!M(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let e=s.value,r=t.name,o=f.value,c=o&&o.components[r];if(!c)return Ct(a.default,{Component:c,route:e});let l=o.props[r],u=n(c,g({},l?l===!0?e.params:typeof l==`function`?l(e):l:null,i,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[r]=null)},ref:m}));return Ct(a.default,{Component:u,route:e})||u}}});function Ct(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}const wt=St;function Tt(e){let t=Xe(e.routes,e),n=e.parseQuery||at,r=e.stringifyQuery||ot,a=e.history,o=Q(),s=Q(),c=Q(),l=f(I),u=I;m&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let ee=ne.bind(null,e=>``+e),h=ne.bind(null,pe),te=ne.bind(null,k);function re(e,n){let r,i;return Fe(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function ie(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function ae(){return t.getRoutes().map(e=>e.record)}function oe(e){return!!t.getRecordMatcher(e)}function y(e,i){if(i=g({},i||l.value),typeof e==`string`){let r=he(n,e,i.path),o=t.resolve({path:r.path},i),s=a.createHref(r.fullPath);return g(r,o,{params:te(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=g({},e,{path:he(n,e.path,i.path).path});else{let t=g({},e.params);for(let e in t)t[e]==null&&delete t[e];o=g({},e,{params:h(t)}),i.params=h(i.params)}let s=t.resolve(o,i),c=e.hash||``;s.params=ee(te(s.params));let u=ge(r,g({},e,{hash:de(c),path:s.path})),d=a.createHref(u);return g({fullPath:u,hash:c,query:r===ot?st(e.query):e.query||{}},s,{redirectedFrom:void 0,href:d})}function b(e){return typeof e==`string`?he(n,e,l.value.path):g({},e)}function x(e,t){if(u!==e)return U(H.NAVIGATION_CANCELLED,{from:t,to:e})}function S(e){return C(e)}function se(e){return S(g(b(e),{replace:!0}))}function ce(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=b(i):{path:i},i.params={}),g({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=u=y(e),i=l.value,a=e.state,o=e.force,s=e.replace===!0,c=ce(n,i);if(c)return C(g(b(c),{state:typeof c==`object`?g({},a,c.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&_e(r,i,n)&&(f=U(H.NAVIGATION_DUPLICATED,{to:d,from:i}),ve(i,i,!0,!1)),(f?Promise.resolve(f):T(d,i)).catch(e=>W(e)?W(e,H.NAVIGATION_GUARD_REDIRECT)?e:N(e):j(e,d,i)).then(e=>{if(e){if(W(e,H.NAVIGATION_GUARD_REDIRECT))return C(g({replace:s},b(e.to),{state:typeof e.to==`object`?g({},a,e.to.state):a,force:o}),t||d)}else e=E(d,i,!0,s,a);return ue(d,i,e),e})}function le(e,t){let n=x(e,t);return n?Promise.reject(n):Promise.resolve()}function w(e){let t=R.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function T(e,t){let n,[r,i,a]=mt(e,t);n=ft(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push($(r,e,t))});let c=le.bind(null,e,t);return n.push(c),B(n).then(()=>{n=[];for(let r of o.list())n.push($(r,e,t));return n.push(c),B(n)}).then(()=>{n=ft(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push($(r,e,t))});return n.push(c),B(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(v(r.beforeEnter))for(let i of r.beforeEnter)n.push($(i,e,t));else n.push($(r.beforeEnter,e,t));return n.push(c),B(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=ft(a,`beforeRouteEnter`,e,t,w),n.push(c),B(n))).then(()=>{n=[];for(let r of s.list())n.push($(r,e,t));return n.push(c),B(n)}).catch(e=>W(e,H.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function ue(e,t,n){c.list().forEach(r=>w(()=>r(e,t,n)))}function E(e,t,n,r,i){let o=x(e,t);if(o)return o;let s=t===I,c=m?history.state:{};n&&(r||s?a.replace(e.fullPath,g({scroll:s&&c&&c.scroll},i)):a.push(e.fullPath,i)),l.value=e,ve(e,t,n,s),N()}let D;function fe(){D||(D=a.listen((e,t,n)=>{if(!z.listening)return;let r=y(e),i=ce(r,z.currentRoute.value);if(i){C(g(i,{replace:!0,force:!0}),r).catch(_);return}u=r;let o=l.value;m&&we(Se(o.fullPath,n.delta),V()),T(r,o).catch(e=>W(e,H.NAVIGATION_ABORTED|H.NAVIGATION_CANCELLED)?e:W(e,H.NAVIGATION_GUARD_REDIRECT)?(C(g(b(e.to),{force:!0}),r).then(e=>{W(e,H.NAVIGATION_ABORTED|H.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===L.pop&&a.go(-1,!1)}).catch(_),Promise.reject()):(n.delta&&a.go(-n.delta,!1),j(e,r,o))).then(e=>{e=e||E(r,o,!1),e&&(n.delta&&!W(e,H.NAVIGATION_CANCELLED)?a.go(-n.delta,!1):n.type===L.pop&&W(e,H.NAVIGATION_ABORTED|H.NAVIGATION_DUPLICATED)&&a.go(-1,!1)),ue(r,o,e)}).catch(_)}))}let O=Q(),me=Q(),A;function j(e,t,n){N(e);let r=me.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function M(){return A&&l.value!==I?Promise.resolve():new Promise((e,t)=>{O.add([e,t])})}function N(e){return A||(A=!e,fe(),O.list().forEach(([t,n])=>e?n(e):t()),O.reset()),e}function ve(t,n,r,a){let{scrollBehavior:o}=e;if(!m||!o)return Promise.resolve();let s=!r&&Te(Se(t.fullPath,0))||(a||!r)&&history.state&&history.state.scroll||null;return i().then(()=>o(t,n,s)).then(e=>e&&xe(e)).catch(e=>j(e,t,n))}let P=e=>a.go(e),F,R=new Set,z={currentRoute:l,listening:!0,addRoute:re,removeRoute:ie,clearRoutes:t.clearRoutes,hasRoute:oe,getRoutes:ae,resolve:y,options:e,push:S,replace:se,go:P,back:()=>P(-1),forward:()=>P(1),beforeEach:o.add,beforeResolve:s.add,afterEach:c.add,onError:me.add,isReady:M,install(e){e.component(`RouterLink`,_t),e.component(`RouterView`,wt),e.config.globalProperties.$router=z,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>p(l)}),m&&!F&&l.value===I&&(F=!0,S(a.location).catch(e=>{}));let t={};for(let e in I)Object.defineProperty(t,e,{get:()=>l.value[e],enumerable:!0});e.provide(Y,z),e.provide(X,d(t)),e.provide(Z,l);let n=e.unmount;R.add(e),e.unmount=function(){R.delete(e),R.size<1&&(u=I,D&&D(),D=null,l.value=I,F=!1,A=!1),n()}}};function B(e){return e.reduce((e,t)=>e.then(()=>w(t)),Promise.resolve())}return z}function Et(){return r(Y)}function Dt(e){return r(X)}export{Le as NavigationFailureType,_t as RouterLink,wt as RouterView,I as START_LOCATION,Me as createMemoryHistory,Tt as createRouter,Xe as createRouterMatcher,Ne as createWebHashHistory,je as createWebHistory,W as isNavigationFailure,pt as loadRouteLocation,J as matchedRouteKey,ut as onBeforeRouteLeave,dt as onBeforeRouteUpdate,at as parseQuery,X as routeLocationKey,Y as routerKey,Z as routerViewLocationKey,ot as stringifyQuery,ht as useLink,Dt as useRoute,Et as useRouter,ct as viewDepthKey};
package/dist/index.html CHANGED
@@ -1,14 +1,14 @@
1
1
  <!doctype html>
2
2
  <html>
3
3
  <head>
4
- <script>navigator.userAgent.toLowerCase().includes("firefox")&&document.head.appendChild(Object.assign(document.createElement("script"),{src:"./assets/es-module-shims-2.8.0.js"}))</script>
5
- <script type="importmap">{"imports":{"vue":"./assets/vue.esm-browser.prod-3.5.34.js","vue-router":"./assets/vue-router.esm-browser.prod-5.0.6.js"}}</script>
6
- <script type="module" crossorigin src="./assets/index-CGq4TM9o.js"></script>
4
+ <script>navigator.userAgent.toLowerCase().includes("firefox")&&document.head.appendChild(Object.assign(document.createElement("script"),{src:"./assets/es-module-shims-2.8.1.js"}))</script>
5
+ <script type="importmap">{"imports":{"vue":"./assets/vue.esm-browser.prod-3.5.34.js","vue-router":"./assets/vue-router.esm-browser.prod-5.0.7.js"}}</script>
6
+ <script type="module" crossorigin src="./assets/index-KQ8DR8Qy.js"></script>
7
7
  <link rel="modulepreload" crossorigin href="./assets/rolldown-runtime-BM3Ffeng.js">
8
8
  <link rel="modulepreload" crossorigin href="./assets/markdown-CFxa_GGM.js">
9
9
  <link rel="modulepreload" crossorigin href="./assets/sucrase-CPlQp3GN.js">
10
- <link rel="modulepreload" crossorigin href="./assets/unocss-DjOJs_ho.js">
11
- <link rel="modulepreload" crossorigin href="./assets/vue-C9ccGriX.js">
10
+ <link rel="modulepreload" crossorigin href="./assets/unocss-Df8m3hes.js">
11
+ <link rel="modulepreload" crossorigin href="./assets/vue-C5Lh0g52.js">
12
12
  <link rel="modulepreload" crossorigin href="./assets/ofetch-Cfi6mluq.js">
13
13
  <link rel="modulepreload" crossorigin href="./assets/esprima-CZ6k7Vqy.js">
14
14
  <link rel="modulepreload" crossorigin href="./assets/katex-Ej5mZ8Dn.js">
@@ -16,7 +16,7 @@
16
16
  <link as="fetch" crossorigin href="./docs/index.json" rel="preload">
17
17
 
18
18
  <link crossorigin href="./assets/vue.esm-browser.prod-3.5.34.js" rel="modulepreload">
19
- <link crossorigin href="./assets/vue-router.esm-browser.prod-5.0.6.js" rel="modulepreload">
19
+ <link crossorigin href="./assets/vue-router.esm-browser.prod-5.0.7.js" rel="modulepreload">
20
20
  </head>
21
21
  <body>
22
22
  <div id="app"></div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://www.schemastore.org/package",
3
3
  "name": "@skaldapp/runtime",
4
- "version": "3.3.11",
4
+ "version": "3.3.13",
5
5
  "description": " Skald Runtime is a Vue.js-based runtime environment for Skald applications that enables dynamic component loading from markdown files, provides SEO optimization, and includes features like syntax highlighting, mathematical expressions, and emoji support. Built with Vue 3's Composition API, it processes markdown content with a comprehensive pipeline and integrates with UnoCSS for styling.",
6
6
  "keywords": [
7
7
  "vue",
@@ -23,7 +23,7 @@
23
23
  "url": "git+https://github.com/skaldapp/runtime.git"
24
24
  },
25
25
  "license": "AGPL-3.0-or-later",
26
- "author": "Jerry Bruwes <jbruwes@gmail.com> (https://jbruwes.github.io)",
26
+ "author": "Jerry Bruwes <jbruwes@gmail.com>",
27
27
  "sideEffects": false,
28
28
  "type": "module",
29
29
  "files": [
@@ -42,8 +42,8 @@
42
42
  "@mdit-vue/plugin-toc": "^3.0.2",
43
43
  "@nolebase/markdown-it-element-transform": "^2.18.2",
44
44
  "@sindresorhus/slugify": "^3.0.0",
45
- "@skaldapp/loader-sfc": "^2.4.49",
46
- "@skaldapp/shared": "^1.2.73",
45
+ "@skaldapp/loader-sfc": "^2.4.51",
46
+ "@skaldapp/shared": "^1.2.75",
47
47
  "@unhead/vue": "^3.1.0",
48
48
  "@unocss/runtime": "^66.6.8",
49
49
  "@unocss/transformer-directives": "^66.6.8",
@@ -61,18 +61,18 @@
61
61
  "refractor": "^5.0.0",
62
62
  "unhead": "^3.1.0",
63
63
  "vue": "^3.5.34",
64
- "vue-router": "^5.0.6"
64
+ "vue-router": "^5.0.7"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@mdit-vue/types": "^3.0.2",
68
- "@skaldapp/configs": "^1.2.104",
68
+ "@skaldapp/configs": "^1.2.106",
69
69
  "@types/markdown-it-emoji": "^3.0.1",
70
- "@types/node": "^25.6.0",
70
+ "@types/node": "^25.7.0",
71
71
  "@unocss/core": "^66.6.8",
72
72
  "buffer": "^6.0.3",
73
- "es-module-shims": "^2.8.0",
73
+ "es-module-shims": "^2.8.1",
74
74
  "eslint": "^10.3.0",
75
- "vite": "^8.0.10",
75
+ "vite": "^8.0.12",
76
76
  "vite-plugin-static-copy": "^4.1.0"
77
77
  }
78
78
  }
@@ -1,6 +0,0 @@
1
- /*!
2
- * vue-router v5.0.6
3
- * (c) 2026 Eduardo San Martin Morote
4
- * @license MIT
5
- */
6
- import{computed as e,defineComponent as t,h as n,inject as r,nextTick as i,onActivated as a,onDeactivated as o,onUnmounted as s,provide as c,reactive as l,ref as u,shallowReactive as d,shallowRef as f,unref as p,watch as ee}from"vue";const m=typeof document<`u`;function h(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function te(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&h(e.default)}const g=Object.assign;function ne(e,t){let n={};for(let r in t){let i=t[r];n[r]=v(i)?i.map(e):e(i)}return n}const _=()=>{},v=Array.isArray;function re(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}const ie=/#/g,ae=/&/g,oe=/\//g,y=/=/g,b=/\?/g,x=/\+/g,S=/%5B/g,se=/%5D/g,ce=/%5E/g,C=/%60/g,le=/%7B/g,w=/%7C/g,T=/%7D/g,ue=/%20/g;function E(e){return e==null?``:encodeURI(``+e).replace(w,`|`).replace(S,`[`).replace(se,`]`)}function de(e){return E(e).replace(le,`{`).replace(T,`}`).replace(ce,`^`)}function D(e){return E(e).replace(x,`%2B`).replace(ue,`+`).replace(ie,`%23`).replace(ae,`%26`).replace(C,"`").replace(le,`{`).replace(T,`}`).replace(ce,`^`)}function fe(e){return D(e).replace(y,`%3D`)}function O(e){return E(e).replace(ie,`%23`).replace(b,`%3F`)}function pe(e){return O(e).replace(oe,`%2F`)}function k(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch(e){}return``+e}const me=/\/$/,A=e=>e.replace(me,``);function he(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r=r||t.slice(0,s),o=t.slice(s,t.length)),r=F(r==null?t:r,n),{fullPath:r+a+o,path:r,query:i,hash:k(o)}}function ge(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function j(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function _e(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&M(t.matched[r],n.matched[i])&&N(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function M(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function N(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!ve(e[n],t[n]))return!1;return!0}function ve(e,t){return v(e)?P(e,t):v(t)?P(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function P(e,t){return v(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function F(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}const I={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};let L=function(e){return e.pop=`pop`,e.push=`push`,e}({}),R=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function z(e){if(!e)if(m){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),A(e)}const B=/^[^#]+#/;function ye(e,t){return e.replace(B,`#`)+t}function be(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const V=()=>({left:window.scrollX,top:window.scrollY});function xe(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=be(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Se(e,t){return(history.state?history.state.position-t:-1)+e}const Ce=new Map;function we(e,t){Ce.set(e,t)}function Te(e){let t=Ce.get(e);return Ce.delete(e),t}let Ee=()=>location.protocol+`//`+location.host;function De(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),j(n,``)}return j(n,e)+r+i}function Oe(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=De(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:L.pop,direction:u?u>0?R.forward:R.back:R.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(g({},e.state,{scroll:V()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function ke(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?V():null}}function Ae(e){let{history:t,location:n}=window,r={value:De(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Ee()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,g({},t.state,ke(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=g({},i.value,t.state,{forward:e,scroll:V()});a(o.current,o,!0),a(e,g({},ke(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function je(e){e=z(e);let t=Ae(e),n=Oe(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=g({location:``,base:e,go:r,createHref:ye.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}function Me(e=``){let t=[],n=[[``,{}]],r=0;e=z(e);function i(e,t={}){r++,r!==n.length&&n.splice(r),n.push([e,t])}function a(e,n,{direction:r,delta:i}){let a={direction:r,delta:i,type:L.pop};for(let r of t)r(e,n,a)}let o={location:``,state:{},base:e,createHref:ye.bind(null,e),replace(e,t){n.splice(r--,1),i(e,t)},push(e,t){i(e,t)},listen(e){return t.push(e),()=>{let n=t.indexOf(e);n>-1&&t.splice(n,1)}},destroy(){t=[],n=[[``,{}]],r=0},go(e,t=!0){let i=this.location,o=e<0?R.back:R.forward;r=Math.max(0,Math.min(r+e,n.length-1)),t&&a(this.location,i,{direction:o,delta:e})}};return Object.defineProperty(o,`location`,{enumerable:!0,get:()=>n[r][0]}),Object.defineProperty(o,`state`,{enumerable:!0,get:()=>n[r][1]}),o}function Ne(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),je(e)}function Pe(e){return typeof e==`string`||e&&typeof e==`object`}function Fe(e){return typeof e==`string`||typeof e==`symbol`}let H=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({});const Ie=Symbol(``);let Le=function(e){return e[e.aborted=4]=`aborted`,e[e.cancelled=8]=`cancelled`,e[e.duplicated=16]=`duplicated`,e}({});H.MATCHER_NOT_FOUND,H.NAVIGATION_GUARD_REDIRECT,H.NAVIGATION_ABORTED,H.NAVIGATION_CANCELLED,H.NAVIGATION_DUPLICATED;function U(e,t){return g(Error(),{type:e,[Ie]:!0},t)}function W(e,t){return e instanceof Error&&Ie in e&&(t==null||!!(e.type&t))}let G=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({});var K=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(K||{});const Re={type:G.Static,value:``},ze=/[a-zA-Z0-9_]/;function Be(e){if(!e)return[[]];if(e===`/`)return[[Re]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=K.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&(n===K.Static?a.push({type:G.Static,value:l}):n===K.Param||n===K.ParamRegExp||n===K.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:G.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),l=``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==K.ParamRegExp){r=n,n=K.EscapeNext;continue}switch(n){case K.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=K.Param):f();break;case K.EscapeNext:f(),n=r;break;case K.Param:c===`(`?n=K.ParamRegExp:ze.test(c)?f():(d(),n=K.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case K.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=K.ParamRegExpEnd:u+=c;break;case K.ParamRegExpEnd:d(),n=K.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===K.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}const Ve=`[^/]+?`,He={sensitive:!1,strict:!1,start:!0,end:!0};var q=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}(q||{});const Ue=/[.+*?^${}()[\]/\\]/g;function We(e,t){let n=g({},He,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[q.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=q.Segment+(n.sensitive?q.BonusCaseSensitive:0);if(o.type===G.Static)r||(i+=`/`),i+=o.value.replace(Ue,`\\$&`),s+=q.Static;else if(o.type===G.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Ve;if(u!==Ve){s+=q.BonusCustomRegExp;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=q.Dynamic,c&&(s+=q.BonusOptional),n&&(s+=q.BonusRepeatable),u===`.*`&&(s+=q.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=q.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===G.Static)n+=e.value;else if(e.type===G.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(v(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=v(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function Ge(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===q.Static+q.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===q.Static+q.Segment?1:-1:0}function Ke(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Ge(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(qe(r))return 1;if(qe(i))return-1}return i.length-r.length}function qe(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Je={strict:!1,end:!0,sensitive:!1};function Ye(e,t,n){let r=g(We(Be(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Xe(e,t){let n=[],r=new Map;t=re(Je,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Qe(e);s.aliasOf=r&&r.record;let l=re(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Qe(g({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Ye(t,n,l),r?r.alias.push(d):(f=f||d,f!==d&&f.alias.push(d),i&&e.name&&!et(d)&&o(e.name)),it(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r=r||d}return f?()=>{o(f)}:_}function o(e){if(Fe(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=nt(e,n);n.splice(t,0,e),e.record.name&&!et(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw U(H.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=g(Ze(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Ze(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw U(H.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=g({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:tt(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Ze(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Qe(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:$e(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function $e(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function et(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tt(e){return e.reduce((e,t)=>g(e,t.meta),{})}function nt(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Ke(e,t[i])<0?r=i:n=i+1}let i=rt(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function rt(e){let t=e;for(;t=t.parent;)if(it(t)&&Ke(e,t)===0)return t}function it({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function at(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(x,` `),i=r.indexOf(`=`),a=k(i<0?r:r.slice(0,i)),o=i<0?null:k(r.slice(i+1));if(a in t){let e=t[a];v(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function ot(e){let t=``;for(let n in e){let r=e[n];if(n=fe(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(v(r)?r.map(e=>e&&D(e)):[r&&D(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function st(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=v(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}const J=Symbol(``),ct=Symbol(``),Y=Symbol(``),X=Symbol(``),Z=Symbol(``);function Q(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function lt(e,t,n){let r=e.value;if(!r)return;let i=r,c=()=>{i[t].delete(n)};s(c),o(c),a(()=>{let r=e.value;r&&(i=r),i[t].add(n)}),i[t].add(n)}function ut(e){lt(r(J,{}),`leaveGuards`,e)}function dt(e){lt(r(J,{}),`updateGuards`,e)}function $(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(U(H.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Pe(e)?c(U(H.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function ft(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(h(s)){let c=(s.__vccOpts||s)[t];c&&a.push($(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=te(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&$(c,n,r,o,e,i)()}))}}return a}function pt(e){return e.matched.every(e=>e.redirect)?Promise.reject(Error(`Cannot load a route that redirects.`)):Promise.all(e.matched.map(e=>e.components&&Promise.all(Object.keys(e.components).reduce((t,n)=>{let r=e.components[n];return typeof r==`function`&&!(`displayName`in r)&&t.push(r().then(t=>{if(!t)return Promise.reject(Error(`Couldn't resolve component "${n}" at "${e.path}". Ensure you passed a function that returns a promise.`));let r=te(t)?t.default:t;e.mods[n]=t,e.components[n]=r})),t},[])))).then(()=>e)}function mt(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>M(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>M(e,s))||i.push(s))}return[n,r,i]}function ht(t){let n=r(Y),i=r(X),a=e(()=>{let e=p(t.to);return n.resolve(e)}),o=e(()=>{let{matched:e}=a.value,{length:t}=e,n=e[t-1],r=i.matched;if(!n||!r.length)return-1;let o=r.findIndex(M.bind(null,n));if(o>-1)return o;let s=bt(e[t-2]);return t>1&&bt(n)===s&&r[r.length-1].path!==s?r.findIndex(M.bind(null,e[t-2])):o}),s=e(()=>o.value>-1&&yt(i.params,a.value.params)),c=e(()=>o.value>-1&&o.value===i.matched.length-1&&N(i.params,a.value.params));function l(e={}){if(vt(e)){let e=n[p(t.replace)?`replace`:`push`](p(t.to)).catch(_);return t.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>e),e}return Promise.resolve()}return{route:a,href:e(()=>a.value.href),isActive:s,isExactActive:c,navigate:l}}function gt(e){return e.length===1?e[0]:e}const _t=t({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:ht,setup(t,{slots:i}){let a=l(ht(t)),{options:o}=r(Y),s=e(()=>({[xt(t.activeClass,o.linkActiveClass,`router-link-active`)]:a.isActive,[xt(t.exactActiveClass,o.linkExactActiveClass,`router-link-exact-active`)]:a.isExactActive}));return()=>{let e=i.default&&gt(i.default(a));return t.custom?e:n(`a`,{"aria-current":a.isExactActive?t.ariaCurrentValue:null,href:a.href,onClick:a.navigate,class:s.value},e)}}});function vt(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function yt(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!v(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function bt(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}const xt=(e,t,n)=>e==null?t==null?n:t:e,St=t({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(t,{attrs:i,slots:a}){let o=r(Z),s=e(()=>t.route||o.value),l=r(ct,0),d=e(()=>{let e=p(l),{matched:t}=s.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),f=e(()=>s.value.matched[d.value]);c(ct,e(()=>d.value+1)),c(J,f),c(Z,s);let m=u();return ee(()=>[m.value,f.value,t.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!M(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let e=s.value,r=t.name,o=f.value,c=o&&o.components[r];if(!c)return Ct(a.default,{Component:c,route:e});let l=o.props[r],u=n(c,g({},l?l===!0?e.params:typeof l==`function`?l(e):l:null,i,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[r]=null)},ref:m}));return Ct(a.default,{Component:u,route:e})||u}}});function Ct(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}const wt=St;function Tt(e){let t=Xe(e.routes,e),n=e.parseQuery||at,r=e.stringifyQuery||ot,a=e.history,o=Q(),s=Q(),c=Q(),l=f(I),u=I;m&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let ee=ne.bind(null,e=>``+e),h=ne.bind(null,pe),te=ne.bind(null,k);function re(e,n){let r,i;return Fe(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function ie(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function ae(){return t.getRoutes().map(e=>e.record)}function oe(e){return!!t.getRecordMatcher(e)}function y(e,i){if(i=g({},i||l.value),typeof e==`string`){let r=he(n,e,i.path),o=t.resolve({path:r.path},i),s=a.createHref(r.fullPath);return g(r,o,{params:te(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=g({},e,{path:he(n,e.path,i.path).path});else{let t=g({},e.params);for(let e in t)t[e]==null&&delete t[e];o=g({},e,{params:h(t)}),i.params=h(i.params)}let s=t.resolve(o,i),c=e.hash||``;s.params=ee(te(s.params));let u=ge(r,g({},e,{hash:de(c),path:s.path})),d=a.createHref(u);return g({fullPath:u,hash:c,query:r===ot?st(e.query):e.query||{}},s,{redirectedFrom:void 0,href:d})}function b(e){return typeof e==`string`?he(n,e,l.value.path):g({},e)}function x(e,t){if(u!==e)return U(H.NAVIGATION_CANCELLED,{from:t,to:e})}function S(e){return C(e)}function se(e){return S(g(b(e),{replace:!0}))}function ce(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=b(i):{path:i},i.params={}),g({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=u=y(e),i=l.value,a=e.state,o=e.force,s=e.replace===!0,c=ce(n,i);if(c)return C(g(b(c),{state:typeof c==`object`?g({},a,c.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&_e(r,i,n)&&(f=U(H.NAVIGATION_DUPLICATED,{to:d,from:i}),ve(i,i,!0,!1)),(f?Promise.resolve(f):T(d,i)).catch(e=>W(e)?W(e,H.NAVIGATION_GUARD_REDIRECT)?e:N(e):j(e,d,i)).then(e=>{if(e){if(W(e,H.NAVIGATION_GUARD_REDIRECT))return C(g({replace:s},b(e.to),{state:typeof e.to==`object`?g({},a,e.to.state):a,force:o}),t||d)}else e=E(d,i,!0,s,a);return ue(d,i,e),e})}function le(e,t){let n=x(e,t);return n?Promise.reject(n):Promise.resolve()}function w(e){let t=R.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function T(e,t){let n,[r,i,a]=mt(e,t);n=ft(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push($(r,e,t))});let c=le.bind(null,e,t);return n.push(c),B(n).then(()=>{n=[];for(let r of o.list())n.push($(r,e,t));return n.push(c),B(n)}).then(()=>{n=ft(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push($(r,e,t))});return n.push(c),B(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(v(r.beforeEnter))for(let i of r.beforeEnter)n.push($(i,e,t));else n.push($(r.beforeEnter,e,t));return n.push(c),B(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=ft(a,`beforeRouteEnter`,e,t,w),n.push(c),B(n))).then(()=>{n=[];for(let r of s.list())n.push($(r,e,t));return n.push(c),B(n)}).catch(e=>W(e,H.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function ue(e,t,n){c.list().forEach(r=>w(()=>r(e,t,n)))}function E(e,t,n,r,i){let o=x(e,t);if(o)return o;let s=t===I,c=m?history.state:{};n&&(r||s?a.replace(e.fullPath,g({scroll:s&&c&&c.scroll},i)):a.push(e.fullPath,i)),l.value=e,ve(e,t,n,s),N()}let D;function fe(){D||(D=a.listen((e,t,n)=>{if(!z.listening)return;let r=y(e),i=ce(r,z.currentRoute.value);if(i){C(g(i,{replace:!0,force:!0}),r).catch(_);return}u=r;let o=l.value;m&&we(Se(o.fullPath,n.delta),V()),T(r,o).catch(e=>W(e,H.NAVIGATION_ABORTED|H.NAVIGATION_CANCELLED)?e:W(e,H.NAVIGATION_GUARD_REDIRECT)?(C(g(b(e.to),{force:!0}),r).then(e=>{W(e,H.NAVIGATION_ABORTED|H.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===L.pop&&a.go(-1,!1)}).catch(_),Promise.reject()):(n.delta&&a.go(-n.delta,!1),j(e,r,o))).then(e=>{e=e||E(r,o,!1),e&&(n.delta&&!W(e,H.NAVIGATION_CANCELLED)?a.go(-n.delta,!1):n.type===L.pop&&W(e,H.NAVIGATION_ABORTED|H.NAVIGATION_DUPLICATED)&&a.go(-1,!1)),ue(r,o,e)}).catch(_)}))}let O=Q(),me=Q(),A;function j(e,t,n){N(e);let r=me.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function M(){return A&&l.value!==I?Promise.resolve():new Promise((e,t)=>{O.add([e,t])})}function N(e){return A||(A=!e,fe(),O.list().forEach(([t,n])=>e?n(e):t()),O.reset()),e}function ve(t,n,r,a){let{scrollBehavior:o}=e;if(!m||!o)return Promise.resolve();let s=!r&&Te(Se(t.fullPath,0))||(a||!r)&&history.state&&history.state.scroll||null;return i().then(()=>o(t,n,s)).then(e=>e&&xe(e)).catch(e=>j(e,t,n))}let P=e=>a.go(e),F,R=new Set,z={currentRoute:l,listening:!0,addRoute:re,removeRoute:ie,clearRoutes:t.clearRoutes,hasRoute:oe,getRoutes:ae,resolve:y,options:e,push:S,replace:se,go:P,back:()=>P(-1),forward:()=>P(1),beforeEach:o.add,beforeResolve:s.add,afterEach:c.add,onError:me.add,isReady:M,install(e){e.component(`RouterLink`,_t),e.component(`RouterView`,wt),e.config.globalProperties.$router=z,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>p(l)}),m&&!F&&l.value===I&&(F=!0,S(a.location).catch(e=>{}));let t={};for(let e in I)Object.defineProperty(t,e,{get:()=>l.value[e],enumerable:!0});e.provide(Y,z),e.provide(X,d(t)),e.provide(Z,l);let n=e.unmount;R.add(e),e.unmount=function(){R.delete(e),R.size<1&&(u=I,D&&D(),D=null,l.value=I,F=!1,A=!1),n()}}};function B(e){return e.reduce((e,t)=>e.then(()=>w(t)),Promise.resolve())}return z}function Et(){return r(Y)}function Dt(e){return r(X)}export{Le as NavigationFailureType,_t as RouterLink,wt as RouterView,I as START_LOCATION,Me as createMemoryHistory,Tt as createRouter,Xe as createRouterMatcher,Ne as createWebHashHistory,je as createWebHistory,W as isNavigationFailure,pt as loadRouteLocation,J as matchedRouteKey,ut as onBeforeRouteLeave,dt as onBeforeRouteUpdate,at as parseQuery,X as routeLocationKey,Y as routerKey,Z as routerViewLocationKey,ot as stringifyQuery,ht as useLink,Dt as useRoute,Et as useRouter,ct as viewDepthKey};