nuxt-schema-org 5.0.4 → 5.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/client/200.html +10 -10
  2. package/dist/client/404.html +10 -10
  3. package/dist/client/_nuxt/B73eqI6v.js +1 -0
  4. package/dist/client/_nuxt/BCcnOCi9.js +174 -0
  5. package/dist/client/_nuxt/BMMyXqK5.js +1 -0
  6. package/dist/client/_nuxt/Cp-IABpG.js +1 -0
  7. package/dist/client/_nuxt/builds/latest.json +1 -1
  8. package/dist/client/_nuxt/builds/meta/17f80431-2323-40d6-ab5c-1c16e0fa57ed.json +1 -0
  9. package/dist/client/_nuxt/entry.PRhstC-s.css +1 -0
  10. package/dist/client/_nuxt/error-404.B3xKW7zl.css +1 -0
  11. package/dist/client/_nuxt/error-500.BGJrBjm4.css +1 -0
  12. package/dist/client/_nuxt/tgLT0vNn.js +1 -0
  13. package/dist/client/index.html +10 -10
  14. package/dist/content.cjs +3 -1
  15. package/dist/content.d.cts +6 -2
  16. package/dist/content.d.mts +6 -2
  17. package/dist/content.d.ts +6 -2
  18. package/dist/content.mjs +3 -2
  19. package/dist/module.d.cts +3 -1
  20. package/dist/module.d.ts +3 -1
  21. package/dist/module.json +3 -3
  22. package/dist/runtime/app/composables/useSchemaOrg.d.ts +1 -1
  23. package/dist/runtime/server/routes/__schema-org__/debug.d.ts +1 -1
  24. package/dist/schema.cjs +7 -0
  25. package/dist/types.d.mts +2 -2
  26. package/package.json +37 -42
  27. package/content.d.ts +0 -1
  28. package/dist/client/_nuxt/BLmTiKMJ.js +0 -1
  29. package/dist/client/_nuxt/DDeFBXf-.js +0 -1
  30. package/dist/client/_nuxt/DFxyEsuO.js +0 -1
  31. package/dist/client/_nuxt/builds/meta/c293d80d-b49c-492c-9886-92621e6ffa4b.json +0 -1
  32. package/dist/client/_nuxt/entry.BG11QubP.css +0 -1
  33. package/dist/client/_nuxt/error-404.Ba0p0jEX.css +0 -1
  34. package/dist/client/_nuxt/error-500.BuNiDSQ1.css +0 -1
  35. package/dist/client/_nuxt/inuEOpo5.js +0 -174
  36. package/dist/client/_nuxt/l5BvQyJI.js +0 -1
  37. package/dist/types.d.ts +0 -7
  38. package/schema.d.ts +0 -1
@@ -1,174 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DDeFBXf-.js","./error-404.Ba0p0jEX.css","./l5BvQyJI.js","./error-500.BuNiDSQ1.css"])))=>i.map(i=>d[i]);
2
- var pp=Object.defineProperty;var gp=Object.getPrototypeOf;var mp=Reflect.get;var $l=e=>{throw TypeError(e)};var yp=(e,t,n)=>t in e?pp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var S=(e,t,n)=>yp(e,typeof t!="symbol"?t+"":t,n),Yo=(e,t,n)=>t.has(e)||$l("Cannot "+n);var Ke=(e,t,n)=>(Yo(e,t,"read from private field"),n?n.call(e):t.get(e)),xn=(e,t,n)=>t.has(e)?$l("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),mt=(e,t,n,r)=>(Yo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Zo=(e,t,n)=>(Yo(e,t,"access private method"),n);var Nl=(e,t,n)=>mp(gp(e),n,t);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/**
3
- * @vue/shared v3.5.13
4
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
- * @license MIT
6
- **//*! #__NO_SIDE_EFFECTS__ */function Ta(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ye={},sr=[],Nt=()=>{},_p=()=>!1,hs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ra=e=>e.startsWith("onUpdate:"),qe=Object.assign,Pa=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},wp=Object.prototype.hasOwnProperty,de=(e,t)=>wp.call(e,t),Z=Array.isArray,or=e=>ds(e)==="[object Map]",Mu=e=>ds(e)==="[object Set]",Il=e=>ds(e)==="[object Date]",Y=e=>typeof e=="function",ke=e=>typeof e=="string",Ct=e=>typeof e=="symbol",we=e=>e!==null&&typeof e=="object",$a=e=>(we(e)||Y(e))&&Y(e.then)&&Y(e.catch),Du=Object.prototype.toString,ds=e=>Du.call(e),bp=e=>ds(e).slice(8,-1),Bu=e=>ds(e)==="[object Object]",Na=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ir=Ta(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),So=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vp=/-(\w)/g,pt=So(e=>e.replace(vp,(t,n)=>n?n.toUpperCase():"")),Cp=/\B([A-Z])/g,wn=So(e=>e.replace(Cp,"-$1").toLowerCase()),ko=So(e=>e.charAt(0).toUpperCase()+e.slice(1)),ei=So(e=>e?`on${ko(e)}`:""),un=(e,t)=>!Object.is(e,t),Ms=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Hu=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},xp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Sp=e=>{const t=ke(e)?Number(e):NaN;return isNaN(t)?e:t};let Ol;const Ao=()=>Ol||(Ol=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function On(e){if(Z(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ke(r)?Tp(r):On(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(ke(e)||we(e))return e}const kp=/;(?![^(]*\))/g,Ap=/:([^]+)/,Ep=/\/\*[^]*?\*\//g;function Tp(e){const t={};return e.replace(Ep,"").split(kp).forEach(n=>{if(n){const r=n.split(Ap);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ie(e){let t="";if(ke(e))t=e;else if(Z(e))for(let n=0;n<e.length;n++){const r=Ie(e[n]);r&&(t+=r+" ")}else if(we(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Fu(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ke(t)&&(e.class=Ie(t)),n&&(e.style=On(n)),e}const Rp="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Pp=Ta(Rp);function ju(e){return!!e||e===""}function $p(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=zs(e[r],t[r]);return n}function zs(e,t){if(e===t)return!0;let n=Il(e),r=Il(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ct(e),r=Ct(t),n||r)return e===t;if(n=Z(e),r=Z(t),n||r)return n&&r?$p(e,t):!1;if(n=we(e),r=we(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!zs(e[i],t[i]))return!1}}return String(e)===String(t)}const Gu=e=>!!(e&&e.__v_isRef===!0),fn=e=>ke(e)?e:e==null?"":Z(e)||we(e)&&(e.toString===Du||!Y(e.toString))?Gu(e)?fn(e.value):JSON.stringify(e,Uu,2):String(e),Uu=(e,t)=>Gu(t)?Uu(e,t.value):or(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[ti(r,o)+" =>"]=s,n),{})}:Mu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ti(n))}:Ct(t)?ti(t):we(t)&&!Z(t)&&!Bu(t)?String(t):t,ti=(e,t="")=>{var n;return Ct(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
7
- * @vue/reactivity v3.5.13
8
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
9
- * @license MIT
10
- **/let Je;class Wu{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Je,!t&&Je&&(this.index=(Je.scopes||(Je.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Je;try{return Je=this,t()}finally{Je=n}}}on(){Je=this}off(){Je=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Np(e){return new Wu(e)}function Ia(){return Je}function Ll(e,t=!1){Je&&Je.cleanups.push(e)}let xe;const ni=new WeakSet;class zu{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Je&&Je.active&&Je.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ni.has(this)&&(ni.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||qu(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ml(this),Ku(this);const t=xe,n=wt;xe=this,wt=!0;try{return this.fn()}finally{Xu(this),xe=t,wt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ma(t);this.deps=this.depsTail=void 0,Ml(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ni.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Oi(this)&&this.run()}get dirty(){return Oi(this)}}let Vu=0,Lr,Mr;function qu(e,t=!1){if(e.flags|=8,t){e.next=Mr,Mr=e;return}e.next=Lr,Lr=e}function Oa(){Vu++}function La(){if(--Vu>0)return;if(Mr){let t=Mr;for(Mr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Lr;){let t=Lr;for(Lr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Ku(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xu(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Ma(r),Ip(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Oi(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ju(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ju(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Xr))return;e.globalVersion=Xr;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Oi(e)){e.flags&=-3;return}const n=xe,r=wt;xe=e,wt=!0;try{Ku(e);const s=e.fn(e._value);(t.version===0||un(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{xe=n,wt=r,Xu(e),e.flags&=-3}}function Ma(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Ma(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ip(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let wt=!0;const Qu=[];function bn(){Qu.push(wt),wt=!1}function vn(){const e=Qu.pop();wt=e===void 0?!0:e}function Ml(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=xe;xe=void 0;try{t()}finally{xe=n}}}let Xr=0;class Op{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Da{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!xe||!wt||xe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==xe)n=this.activeLink=new Op(xe,this),xe.deps?(n.prevDep=xe.depsTail,xe.depsTail.nextDep=n,xe.depsTail=n):xe.deps=xe.depsTail=n,Yu(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=xe.depsTail,n.nextDep=void 0,xe.depsTail.nextDep=n,xe.depsTail=n,xe.deps===n&&(xe.deps=r)}return n}trigger(t){this.version++,Xr++,this.notify(t)}notify(t){Oa();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{La()}}}function Yu(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Yu(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Vs=new WeakMap,Ln=Symbol(""),Li=Symbol(""),Jr=Symbol("");function Ue(e,t,n){if(wt&&xe){let r=Vs.get(e);r||Vs.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Da),s.map=r,s.key=n),s.track()}}function zt(e,t,n,r,s,o){const i=Vs.get(e);if(!i){Xr++;return}const a=l=>{l&&l.trigger()};if(Oa(),t==="clear")i.forEach(a);else{const l=Z(e),f=l&&Na(n);if(l&&n==="length"){const u=Number(r);i.forEach((c,h)=>{(h==="length"||h===Jr||!Ct(h)&&h>=u)&&a(c)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),f&&a(i.get(Jr)),t){case"add":l?f&&a(i.get("length")):(a(i.get(Ln)),or(e)&&a(i.get(Li)));break;case"delete":l||(a(i.get(Ln)),or(e)&&a(i.get(Li)));break;case"set":or(e)&&a(i.get(Ln));break}}La()}function Lp(e,t){const n=Vs.get(e);return n&&n.get(t)}function qn(e){const t=fe(e);return t===e?t:(Ue(t,"iterate",Jr),dt(e)?t:t.map(We))}function Eo(e){return Ue(e=fe(e),"iterate",Jr),e}const Mp={__proto__:null,[Symbol.iterator](){return ri(this,Symbol.iterator,We)},concat(...e){return qn(this).concat(...e.map(t=>Z(t)?qn(t):t))},entries(){return ri(this,"entries",e=>(e[1]=We(e[1]),e))},every(e,t){return Ht(this,"every",e,t,void 0,arguments)},filter(e,t){return Ht(this,"filter",e,t,n=>n.map(We),arguments)},find(e,t){return Ht(this,"find",e,t,We,arguments)},findIndex(e,t){return Ht(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ht(this,"findLast",e,t,We,arguments)},findLastIndex(e,t){return Ht(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ht(this,"forEach",e,t,void 0,arguments)},includes(...e){return si(this,"includes",e)},indexOf(...e){return si(this,"indexOf",e)},join(e){return qn(this).join(e)},lastIndexOf(...e){return si(this,"lastIndexOf",e)},map(e,t){return Ht(this,"map",e,t,void 0,arguments)},pop(){return Rr(this,"pop")},push(...e){return Rr(this,"push",e)},reduce(e,...t){return Dl(this,"reduce",e,t)},reduceRight(e,...t){return Dl(this,"reduceRight",e,t)},shift(){return Rr(this,"shift")},some(e,t){return Ht(this,"some",e,t,void 0,arguments)},splice(...e){return Rr(this,"splice",e)},toReversed(){return qn(this).toReversed()},toSorted(e){return qn(this).toSorted(e)},toSpliced(...e){return qn(this).toSpliced(...e)},unshift(...e){return Rr(this,"unshift",e)},values(){return ri(this,"values",We)}};function ri(e,t,n){const r=Eo(e),s=r[t]();return r!==e&&!dt(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const Dp=Array.prototype;function Ht(e,t,n,r,s,o){const i=Eo(e),a=i!==e&&!dt(e),l=i[t];if(l!==Dp[t]){const c=l.apply(e,o);return a?We(c):c}let f=n;i!==e&&(a?f=function(c,h){return n.call(this,We(c),h,e)}:n.length>2&&(f=function(c,h){return n.call(this,c,h,e)}));const u=l.call(i,f,r);return a&&s?s(u):u}function Dl(e,t,n,r){const s=Eo(e);let o=n;return s!==e&&(dt(e)?n.length>3&&(o=function(i,a,l){return n.call(this,i,a,l,e)}):o=function(i,a,l){return n.call(this,i,We(a),l,e)}),s[t](o,...r)}function si(e,t,n){const r=fe(e);Ue(r,"iterate",Jr);const s=r[t](...n);return(s===-1||s===!1)&&Fa(n[0])?(n[0]=fe(n[0]),r[t](...n)):s}function Rr(e,t,n=[]){bn(),Oa();const r=fe(e)[t].apply(e,n);return La(),vn(),r}const Bp=Ta("__proto__,__v_isRef,__isVue"),Zu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ct));function Hp(e){Ct(e)||(e=String(e));const t=fe(this);return Ue(t,"has",e),t.hasOwnProperty(e)}class ef{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?Xp:sf:o?rf:nf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=Z(t);if(!s){let l;if(i&&(l=Mp[n]))return l;if(n==="hasOwnProperty")return Hp}const a=Reflect.get(t,n,Te(t)?t:r);return(Ct(n)?Zu.has(n):Bp(n))||(s||Ue(t,"get",n),o)?a:Te(a)?i&&Na(n)?a:a.value:we(a)?s?of(a):gn(a):a}}class tf extends ef{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const l=mn(o);if(!dt(r)&&!mn(r)&&(o=fe(o),r=fe(r)),!Z(t)&&Te(o)&&!Te(r))return l?!1:(o.value=r,!0)}const i=Z(t)&&Na(n)?Number(n)<t.length:de(t,n),a=Reflect.set(t,n,r,Te(t)?t:s);return t===fe(s)&&(i?un(r,o)&&zt(t,"set",n,r):zt(t,"add",n,r)),a}deleteProperty(t,n){const r=de(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&zt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Ct(n)||!Zu.has(n))&&Ue(t,"has",n),r}ownKeys(t){return Ue(t,"iterate",Z(t)?"length":Ln),Reflect.ownKeys(t)}}class Fp extends ef{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const jp=new tf,Gp=new Fp,Up=new tf(!0);const Mi=e=>e,vs=e=>Reflect.getPrototypeOf(e);function Wp(e,t,n){return function(...r){const s=this.__v_raw,o=fe(s),i=or(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,f=s[e](...r),u=n?Mi:t?Di:We;return!t&&Ue(o,"iterate",l?Li:Ln),{next(){const{value:c,done:h}=f.next();return h?{value:c,done:h}:{value:a?[u(c[0]),u(c[1])]:u(c),done:h}},[Symbol.iterator](){return this}}}}function Cs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function zp(e,t){const n={get(s){const o=this.__v_raw,i=fe(o),a=fe(s);e||(un(s,a)&&Ue(i,"get",s),Ue(i,"get",a));const{has:l}=vs(i),f=t?Mi:e?Di:We;if(l.call(i,s))return f(o.get(s));if(l.call(i,a))return f(o.get(a));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&Ue(fe(s),"iterate",Ln),Reflect.get(s,"size",s)},has(s){const o=this.__v_raw,i=fe(o),a=fe(s);return e||(un(s,a)&&Ue(i,"has",s),Ue(i,"has",a)),s===a?o.has(s):o.has(s)||o.has(a)},forEach(s,o){const i=this,a=i.__v_raw,l=fe(a),f=t?Mi:e?Di:We;return!e&&Ue(l,"iterate",Ln),a.forEach((u,c)=>s.call(o,f(u),f(c),i))}};return qe(n,e?{add:Cs("add"),set:Cs("set"),delete:Cs("delete"),clear:Cs("clear")}:{add(s){!t&&!dt(s)&&!mn(s)&&(s=fe(s));const o=fe(this);return vs(o).has.call(o,s)||(o.add(s),zt(o,"add",s,s)),this},set(s,o){!t&&!dt(o)&&!mn(o)&&(o=fe(o));const i=fe(this),{has:a,get:l}=vs(i);let f=a.call(i,s);f||(s=fe(s),f=a.call(i,s));const u=l.call(i,s);return i.set(s,o),f?un(o,u)&&zt(i,"set",s,o):zt(i,"add",s,o),this},delete(s){const o=fe(this),{has:i,get:a}=vs(o);let l=i.call(o,s);l||(s=fe(s),l=i.call(o,s)),a&&a.call(o,s);const f=o.delete(s);return l&&zt(o,"delete",s,void 0),f},clear(){const s=fe(this),o=s.size!==0,i=s.clear();return o&&zt(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Wp(s,e,t)}),n}function Ba(e,t){const n=zp(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(de(n,s)&&s in r?n:r,s,o)}const Vp={get:Ba(!1,!1)},qp={get:Ba(!1,!0)},Kp={get:Ba(!0,!1)};const nf=new WeakMap,rf=new WeakMap,sf=new WeakMap,Xp=new WeakMap;function Jp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Qp(e){return e.__v_skip||!Object.isExtensible(e)?0:Jp(bp(e))}function gn(e){return mn(e)?e:Ha(e,!1,jp,Vp,nf)}function Zn(e){return Ha(e,!1,Up,qp,rf)}function of(e){return Ha(e,!0,Gp,Kp,sf)}function Ha(e,t,n,r,s){if(!we(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Qp(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function Mn(e){return mn(e)?Mn(e.__v_raw):!!(e&&e.__v_isReactive)}function mn(e){return!!(e&&e.__v_isReadonly)}function dt(e){return!!(e&&e.__v_isShallow)}function Fa(e){return e?!!e.__v_raw:!1}function fe(e){const t=e&&e.__v_raw;return t?fe(t):e}function Yp(e){return!de(e,"__v_skip")&&Object.isExtensible(e)&&Hu(e,"__v_skip",!0),e}const We=e=>we(e)?gn(e):e,Di=e=>we(e)?of(e):e;function Te(e){return e?e.__v_isRef===!0:!1}function _e(e){return af(e,!1)}function Bi(e){return af(e,!0)}function af(e,t){return Te(e)?e:new Zp(e,t)}class Zp{constructor(t,n){this.dep=new Da,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:fe(t),this._value=n?t:We(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||dt(t)||mn(t);t=r?t:fe(t),un(t,n)&&(this._rawValue=t,this._value=r?t:We(t),this.dep.trigger())}}function oe(e){return Te(e)?e.value:e}function Qr(e){return Y(e)?e():oe(e)}const eg={get:(e,t,n)=>t==="__v_raw"?e:oe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Te(s)&&!Te(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function lf(e){return Mn(e)?e:new Proxy(e,eg)}class tg{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Lp(fe(this._object),this._key)}}class ng{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ja(e,t,n){return Te(e)?e:Y(e)?new ng(e):we(e)&&arguments.length>1?rg(e,t,n):_e(e)}function rg(e,t,n){const r=e[t];return Te(r)?r:new tg(e,t,n)}class sg{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Da(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Xr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&xe!==this)return qu(this,!0),!0}get value(){const t=this.dep.track();return Ju(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function og(e,t,n=!1){let r,s;return Y(e)?r=e:(r=e.get,s=e.set),new sg(r,s,n)}const xs={},qs=new WeakMap;let Tn;function ig(e,t=!1,n=Tn){if(n){let r=qs.get(n);r||qs.set(n,r=[]),r.push(e)}}function ag(e,t,n=ye){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,f=b=>s?b:dt(b)||s===!1||s===0?Vt(b,1):Vt(b);let u,c,h,d,p=!1,g=!1;if(Te(e)?(c=()=>e.value,p=dt(e)):Mn(e)?(c=()=>f(e),p=!0):Z(e)?(g=!0,p=e.some(b=>Mn(b)||dt(b)),c=()=>e.map(b=>{if(Te(b))return b.value;if(Mn(b))return f(b);if(Y(b))return l?l(b,2):b()})):Y(e)?t?c=l?()=>l(e,2):e:c=()=>{if(h){bn();try{h()}finally{vn()}}const b=Tn;Tn=u;try{return l?l(e,3,[d]):e(d)}finally{Tn=b}}:c=Nt,t&&s){const b=c,C=s===!0?1/0:s;c=()=>Vt(b(),C)}const y=Ia(),_=()=>{u.stop(),y&&y.active&&Pa(y.effects,u)};if(o&&t){const b=t;t=(...C)=>{b(...C),_()}}let v=g?new Array(e.length).fill(xs):xs;const m=b=>{if(!(!(u.flags&1)||!u.dirty&&!b))if(t){const C=u.run();if(s||p||(g?C.some((E,A)=>un(E,v[A])):un(C,v))){h&&h();const E=Tn;Tn=u;try{const A=[C,v===xs?void 0:g&&v[0]===xs?[]:v,d];l?l(t,3,A):t(...A),v=C}finally{Tn=E}}}else u.run()};return a&&a(m),u=new zu(c),u.scheduler=i?()=>i(m,!1):m,d=b=>ig(b,!1,u),h=u.onStop=()=>{const b=qs.get(u);if(b){if(l)l(b,4);else for(const C of b)C();qs.delete(u)}},t?r?m(!0):v=u.run():i?i(m.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function Vt(e,t=1/0,n){if(t<=0||!we(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Te(e))Vt(e.value,t,n);else if(Z(e))for(let r=0;r<e.length;r++)Vt(e[r],t,n);else if(Mu(e)||or(e))e.forEach(r=>{Vt(r,t,n)});else if(Bu(e)){for(const r in e)Vt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Vt(e[r],t,n)}return e}/**
11
- * @vue/runtime-core v3.5.13
12
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
13
- * @license MIT
14
- **/function ps(e,t,n,r){try{return r?e(...r):e()}catch(s){xr(s,t,n)}}function Lt(e,t,n,r){if(Y(e)){const s=ps(e,t,n,r);return s&&$a(s)&&s.catch(o=>{xr(o,t,n)}),s}if(Z(e)){const s=[];for(let o=0;o<e.length;o++)s.push(Lt(e[o],t,n,r));return s}}function xr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||ye;if(t){let a=t.parent;const l=t.proxy,f=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,l,f)===!1)return}a=a.parent}if(o){bn(),ps(o,null,10,[e,l,f]),vn();return}}lg(e,n,s,r,i)}function lg(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Qe=[];let Tt=-1;const ar=[];let tn=null,Xn=0;const cf=Promise.resolve();let Ks=null;function gs(e){const t=Ks||cf;return e?t.then(this?e.bind(this):e):t}function cg(e){let t=Tt+1,n=Qe.length;for(;t<n;){const r=t+n>>>1,s=Qe[r],o=Yr(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function Ga(e){if(!(e.flags&1)){const t=Yr(e),n=Qe[Qe.length-1];!n||!(e.flags&2)&&t>=Yr(n)?Qe.push(e):Qe.splice(cg(t),0,e),e.flags|=1,uf()}}function uf(){Ks||(Ks=cf.then(ff))}function Hi(e){Z(e)?ar.push(...e):tn&&e.id===-1?tn.splice(Xn+1,0,e):e.flags&1||(ar.push(e),e.flags|=1),uf()}function Bl(e,t,n=Tt+1){for(;n<Qe.length;n++){const r=Qe[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Qe.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Xs(e){if(ar.length){const t=[...new Set(ar)].sort((n,r)=>Yr(n)-Yr(r));if(ar.length=0,tn){tn.push(...t);return}for(tn=t,Xn=0;Xn<tn.length;Xn++){const n=tn[Xn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}tn=null,Xn=0}}const Yr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ff(e){try{for(Tt=0;Tt<Qe.length;Tt++){const t=Qe[Tt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ps(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Tt<Qe.length;Tt++){const t=Qe[Tt];t&&(t.flags&=-2)}Tt=-1,Qe.length=0,Xs(),Ks=null,(Qe.length||ar.length)&&ff()}}let Le=null,To=null;function Js(e){const t=Le;return Le=e,To=e&&e.type.__scopeId||null,t}function ug(e){To=e}function fg(){To=null}const hg=e=>ue;function ue(e,t=Le,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Ql(-1);const o=Js(t);let i;try{i=e(...s)}finally{Js(o),r._d&&Ql(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function dg(e,t){if(Le===null)return e;const n=Io(Le),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,a,l=ye]=t[s];o&&(Y(o)&&(o={mounted:o,updated:o}),o.deep&&Vt(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function Rt(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const a=s[i];o&&(a.oldValue=o[i].value);let l=a.dir[r];l&&(bn(),Lt(l,n,8,[e.el,a,e,t]),vn())}}const pg=Symbol("_vte"),gg=e=>e.__isTeleport;function Ua(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ua(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Ze(e,t){return Y(e)?qe({name:e.name},t,{setup:e}):e}function Wa(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Zr(e,t,n,r,s=!1){if(Z(e)){e.forEach((p,g)=>Zr(p,t&&(Z(t)?t[g]:t),n,r,s));return}if(Dn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Zr(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Io(r.component):r.el,i=s?null:o,{i:a,r:l}=e,f=t&&t.r,u=a.refs===ye?a.refs={}:a.refs,c=a.setupState,h=fe(c),d=c===ye?()=>!1:p=>de(h,p);if(f!=null&&f!==l&&(ke(f)?(u[f]=null,d(f)&&(c[f]=null)):Te(f)&&(f.value=null)),Y(l))ps(l,a,12,[i,u]);else{const p=ke(l),g=Te(l);if(p||g){const y=()=>{if(e.f){const _=p?d(l)?c[l]:u[l]:l.value;s?Z(_)&&Pa(_,o):Z(_)?_.includes(o)||_.push(o):p?(u[l]=[o],d(l)&&(c[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else p?(u[l]=i,d(l)&&(c[l]=i)):g&&(l.value=i,e.k&&(u[e.k]=i))};i?(y.id=-1,ot(y,n)):y()}}}let Hl=!1;const Kn=()=>{Hl||(console.error("Hydration completed but contains mismatches."),Hl=!0)},mg=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",yg=e=>e.namespaceURI.includes("MathML"),Ss=e=>{if(e.nodeType===1){if(mg(e))return"svg";if(yg(e))return"mathml"}},er=e=>e.nodeType===8;function _g(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:a,insert:l,createComment:f}}=e,u=(m,b)=>{if(!b.hasChildNodes()){n(null,m,b),Xs(),b._vnode=m;return}c(b.firstChild,m,null,null,null),Xs(),b._vnode=m},c=(m,b,C,E,A,B=!1)=>{B=B||!!b.dynamicChildren;const H=er(m)&&m.data==="[",O=()=>g(m,b,C,E,A,H),{type:K,ref:q,shapeFlag:ne,patchFlag:ee}=b;let ce=m.nodeType;b.el=m,ee===-2&&(B=!1,b.dynamicChildren=null);let F=null;switch(K){case Fn:ce!==3?b.children===""?(l(b.el=s(""),i(m),m),F=m):F=O():(m.data!==b.children&&(Kn(),m.data=b.children),F=o(m));break;case xt:v(m)?(F=o(m),_(b.el=m.content.firstChild,m,C)):ce!==8||H?F=O():F=o(m);break;case Br:if(H&&(m=o(m),ce=m.nodeType),ce===1||ce===3){F=m;const X=!b.children.length;for(let G=0;G<b.staticCount;G++)X&&(b.children+=F.nodeType===1?F.outerHTML:F.data),G===b.staticCount-1&&(b.anchor=F),F=o(F);return H?o(F):F}else O();break;case Ne:H?F=p(m,b,C,E,A,B):F=O();break;default:if(ne&1)(ce!==1||b.type.toLowerCase()!==m.tagName.toLowerCase())&&!v(m)?F=O():F=h(m,b,C,E,A,B);else if(ne&6){b.slotScopeIds=A;const X=i(m);if(H?F=y(m):er(m)&&m.data==="teleport start"?F=y(m,m.data,"teleport end"):F=o(m),t(b,X,null,C,E,Ss(X),B),Dn(b)&&!b.type.__asyncResolved){let G;H?(G=z(Ne),G.anchor=F?F.previousSibling:X.lastChild):G=m.nodeType===3?Ae(""):z("div"),G.el=m,b.component.subTree=G}}else ne&64?ce!==8?F=O():F=b.type.hydrate(m,b,C,E,A,B,e,d):ne&128&&(F=b.type.hydrate(m,b,C,E,Ss(i(m)),A,B,e,c))}return q!=null&&Zr(q,null,E,b),F},h=(m,b,C,E,A,B)=>{B=B||!!b.dynamicChildren;const{type:H,props:O,patchFlag:K,shapeFlag:q,dirs:ne,transition:ee}=b,ce=H==="input"||H==="option";if(ce||K!==-1){ne&&Rt(b,null,C,"created");let F=!1;if(v(m)){F=Mf(null,ee)&&C&&C.vnode.props&&C.vnode.props.appear;const G=m.content.firstChild;F&&ee.beforeEnter(G),_(G,m,C),b.el=m=G}if(q&16&&!(O&&(O.innerHTML||O.textContent))){let G=d(m.firstChild,b,m,C,E,A,B);for(;G;){ks(m,1)||Kn();const be=G;G=G.nextSibling,a(be)}}else if(q&8){let G=b.children;G[0]===`
15
- `&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(G=G.slice(1)),m.textContent!==G&&(ks(m,0)||Kn(),m.textContent=b.children)}if(O){if(ce||!B||K&48){const G=m.tagName.includes("-");for(const be in O)(ce&&(be.endsWith("value")||be==="indeterminate")||hs(be)&&!ir(be)||be[0]==="."||G)&&r(m,be,null,O[be],void 0,C)}else if(O.onClick)r(m,"onClick",null,O.onClick,void 0,C);else if(K&4&&Mn(O.style))for(const G in O.style)O.style[G]}let X;(X=O&&O.onVnodeBeforeMount)&&lt(X,C,b),ne&&Rt(b,null,C,"beforeMount"),((X=O&&O.onVnodeMounted)||ne||F)&&Uf(()=>{X&&lt(X,C,b),F&&ee.enter(m),ne&&Rt(b,null,C,"mounted")},E)}return m.nextSibling},d=(m,b,C,E,A,B,H)=>{H=H||!!b.dynamicChildren;const O=b.children,K=O.length;for(let q=0;q<K;q++){const ne=H?O[q]:O[q]=it(O[q]),ee=ne.type===Fn;m?(ee&&!H&&q+1<K&&it(O[q+1]).type===Fn&&(l(s(m.data.slice(ne.children.length)),C,o(m)),m.data=ne.children),m=c(m,ne,E,A,B,H)):ee&&!ne.children?l(ne.el=s(""),C):(ks(C,1)||Kn(),n(null,ne,C,null,E,A,Ss(C),B))}return m},p=(m,b,C,E,A,B)=>{const{slotScopeIds:H}=b;H&&(A=A?A.concat(H):H);const O=i(m),K=d(o(m),b,O,C,E,A,B);return K&&er(K)&&K.data==="]"?o(b.anchor=K):(Kn(),l(b.anchor=f("]"),O,K),K)},g=(m,b,C,E,A,B)=>{if(ks(m.parentElement,1)||Kn(),b.el=null,B){const K=y(m);for(;;){const q=o(m);if(q&&q!==K)a(q);else break}}const H=o(m),O=i(m);return a(m),n(null,b,O,H,C,E,Ss(O),A),C&&(C.vnode.el=b.el,$o(C,b.el)),H},y=(m,b="[",C="]")=>{let E=0;for(;m;)if(m=o(m),m&&er(m)&&(m.data===b&&E++,m.data===C)){if(E===0)return o(m);E--}return m},_=(m,b,C)=>{const E=b.parentNode;E&&E.replaceChild(m,b);let A=C;for(;A;)A.vnode.el===b&&(A.vnode.el=A.subTree.el=m),A=A.parent},v=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[u,c]}const Fl="data-allow-mismatch",wg={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function ks(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Fl);)e=e.parentElement;const n=e&&e.getAttribute(Fl);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(wg[t])}}Ao().requestIdleCallback;Ao().cancelIdleCallback;function bg(e,t){if(er(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(er(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Dn=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function jl(e){Y(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:o,timeout:i,suspensible:a=!0,onError:l}=e;let f=null,u,c=0;const h=()=>(c++,f=null,d()),d=()=>{let p;return f||(p=f=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((y,_)=>{l(g,()=>y(h()),()=>_(g),c+1)});throw g}).then(g=>p!==f&&f?f:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),u=g,g)))};return Ze({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(p,g,y){const _=o?()=>{const v=o(y,m=>bg(p,m));v&&(g.bum||(g.bum=[])).push(v)}:y;u?_():d().then(()=>!g.isUnmounted&&_())},get __asyncResolved(){return u},setup(){const p=Oe;if(Wa(p),u)return()=>oi(u,p);const g=m=>{f=null,xr(m,p,13,!r)};if(a&&p.suspense||mr)return d().then(m=>()=>oi(m,p)).catch(m=>(g(m),()=>r?z(r,{error:m}):null));const y=_e(!1),_=_e(),v=_e(!!s);return s&&setTimeout(()=>{v.value=!1},s),i!=null&&setTimeout(()=>{if(!y.value&&!_.value){const m=new Error(`Async component timed out after ${i}ms.`);g(m),_.value=m}},i),d().then(()=>{y.value=!0,p.parent&&za(p.parent.vnode)&&p.parent.update()}).catch(m=>{g(m),_.value=m}),()=>{if(y.value&&u)return oi(u,p);if(_.value&&r)return z(r,{error:_.value});if(n&&!v.value)return z(n)}}})}function oi(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=z(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const za=e=>e.type.__isKeepAlive;function hf(e,t){pf(e,"a",t)}function df(e,t){pf(e,"da",t)}function pf(e,t,n=Oe){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Ro(t,r,n),n){let s=n.parent;for(;s&&s.parent;)za(s.parent.vnode)&&vg(r,t,n,s),s=s.parent}}function vg(e,t,n,r){const s=Ro(t,e,r,!0);qa(()=>{Pa(r[t],s)},n)}function Ro(e,t,n=Oe,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{bn();const a=jn(n),l=Lt(t,n,e,i);return a(),vn(),l});return r?s.unshift(o):s.push(o),o}}const Xt=e=>(t,n=Oe)=>{(!mr||e==="sp")&&Ro(e,(...r)=>t(...r),n)},gf=Xt("bm"),mf=Xt("m"),Cg=Xt("bu"),xg=Xt("u"),Va=Xt("bum"),qa=Xt("um"),Sg=Xt("sp"),kg=Xt("rtg"),Ag=Xt("rtc");function yf(e,t=Oe){Ro("ec",e,t)}const _f="components";function yn(e,t){return bf(_f,e,!0,t)||e}const wf=Symbol.for("v-ndc");function Eg(e){return ke(e)?bf(_f,e,!1)||e:e||wf}function bf(e,t,n=!0,r=!1){const s=Le||Oe;if(s){const o=s.type;{const a=_m(o,!1);if(a&&(a===t||a===pt(t)||a===ko(pt(t))))return o}const i=Gl(s[e]||o[e],t)||Gl(s.appContext[e],t);return!i&&r?o:i}}function Gl(e,t){return e&&(e[t]||e[pt(t)]||e[ko(pt(t))])}function ii(e,t,n,r){let s;const o=n,i=Z(e);if(i||ke(e)){const a=i&&Mn(e);let l=!1;a&&(l=!dt(e),e=Eo(e)),s=new Array(e.length);for(let f=0,u=e.length;f<u;f++)s[f]=t(l?We(e[f]):e[f],f,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,o)}else if(we(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,o));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,f=a.length;l<f;l++){const u=a[l];s[l]=t(e[u],u,l,o)}}else s=[];return s}function ze(e,t,n={},r,s){if(Le.ce||Le.parent&&Dn(Le.parent)&&Le.parent.ce)return t!=="default"&&(n.name=t),Q(),De(Ne,null,[z("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),Q();const i=o&&vf(o(n)),a=n.key||i&&i.key,l=De(Ne,{key:(a&&!Ct(a)?a:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function vf(e){return e.some(t=>pr(t)?!(t.type===xt||t.type===Ne&&!vf(t.children)):!0)?e:null}const Fi=e=>e?qf(e)?Io(e):Fi(e.parent):null,Dr=qe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Fi(e.parent),$root:e=>Fi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xf(e),$forceUpdate:e=>e.f||(e.f=()=>{Ga(e.update)}),$nextTick:e=>e.n||(e.n=gs.bind(e.proxy)),$watch:e=>Xg.bind(e)}),ai=(e,t)=>e!==ye&&!e.__isScriptSetup&&de(e,t),Tg={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:l}=e;let f;if(t[0]!=="$"){const d=i[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(ai(r,t))return i[t]=1,r[t];if(s!==ye&&de(s,t))return i[t]=2,s[t];if((f=e.propsOptions[0])&&de(f,t))return i[t]=3,o[t];if(n!==ye&&de(n,t))return i[t]=4,n[t];ji&&(i[t]=0)}}const u=Dr[t];let c,h;if(u)return t==="$attrs"&&Ue(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==ye&&de(n,t))return i[t]=4,n[t];if(h=l.config.globalProperties,de(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return ai(s,t)?(s[t]=n,!0):r!==ye&&de(r,t)?(r[t]=n,!0):de(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let a;return!!n[i]||e!==ye&&de(e,i)||ai(t,i)||(a=o[0])&&de(a,i)||de(r,i)||de(Dr,i)||de(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:de(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ul(e){return Z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Rg(e){const t=Sr();let n=e();return Vi(),$a(n)&&(n=n.catch(r=>{throw jn(t),r})),[n,()=>jn(t)]}let ji=!0;function Pg(e){const t=xf(e),n=e.proxy,r=e.ctx;ji=!1,t.beforeCreate&&Wl(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:f,created:u,beforeMount:c,mounted:h,beforeUpdate:d,updated:p,activated:g,deactivated:y,beforeDestroy:_,beforeUnmount:v,destroyed:m,unmounted:b,render:C,renderTracked:E,renderTriggered:A,errorCaptured:B,serverPrefetch:H,expose:O,inheritAttrs:K,components:q,directives:ne,filters:ee}=t;if(f&&$g(f,r,null),i)for(const X in i){const G=i[X];Y(G)&&(r[X]=G.bind(n))}if(s){const X=s.call(n,n);we(X)&&(e.data=gn(X))}if(ji=!0,o)for(const X in o){const G=o[X],be=Y(G)?G.bind(n,n):Y(G.get)?G.get.bind(n,n):Nt,zn=!Y(G)&&Y(G.set)?G.set.bind(n):Nt,Cn=je({get:be,set:zn});Object.defineProperty(r,X,{enumerable:!0,configurable:!0,get:()=>Cn.value,set:St=>Cn.value=St})}if(a)for(const X in a)Cf(a[X],r,n,X);if(l){const X=Y(l)?l.call(n):l;Reflect.ownKeys(X).forEach(G=>{kf(G,X[G])})}u&&Wl(u,e,"c");function F(X,G){Z(G)?G.forEach(be=>X(be.bind(n))):G&&X(G.bind(n))}if(F(gf,c),F(mf,h),F(Cg,d),F(xg,p),F(hf,g),F(df,y),F(yf,B),F(Ag,E),F(kg,A),F(Va,v),F(qa,b),F(Sg,H),Z(O))if(O.length){const X=e.exposed||(e.exposed={});O.forEach(G=>{Object.defineProperty(X,G,{get:()=>n[G],set:be=>n[G]=be})})}else e.exposed||(e.exposed={});C&&e.render===Nt&&(e.render=C),K!=null&&(e.inheritAttrs=K),q&&(e.components=q),ne&&(e.directives=ne),H&&Wa(e)}function $g(e,t,n=Nt){Z(e)&&(e=Gi(e));for(const r in e){const s=e[r];let o;we(s)?"default"in s?o=Hn(s.from||r,s.default,!0):o=Hn(s.from||r):o=Hn(s),Te(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Wl(e,t,n){Lt(Z(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Cf(e,t,n,r){let s=r.includes(".")?Hf(n,r):()=>n[r];if(ke(e)){const o=t[e];Y(o)&&lr(s,o)}else if(Y(e))lr(s,e.bind(n));else if(we(e))if(Z(e))e.forEach(o=>Cf(o,t,n,r));else{const o=Y(e.handler)?e.handler.bind(n):t[e.handler];Y(o)&&lr(s,o,e)}}function xf(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(f=>Qs(l,f,i,!0)),Qs(l,t,i)),we(t)&&o.set(t,l),l}function Qs(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Qs(e,o,n,!0),s&&s.forEach(i=>Qs(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=Ng[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Ng={data:zl,props:Vl,emits:Vl,methods:Ir,computed:Ir,beforeCreate:Xe,created:Xe,beforeMount:Xe,mounted:Xe,beforeUpdate:Xe,updated:Xe,beforeDestroy:Xe,beforeUnmount:Xe,destroyed:Xe,unmounted:Xe,activated:Xe,deactivated:Xe,errorCaptured:Xe,serverPrefetch:Xe,components:Ir,directives:Ir,watch:Og,provide:zl,inject:Ig};function zl(e,t){return t?e?function(){return qe(Y(e)?e.call(this,this):e,Y(t)?t.call(this,this):t)}:t:e}function Ig(e,t){return Ir(Gi(e),Gi(t))}function Gi(e){if(Z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Xe(e,t){return e?[...new Set([].concat(e,t))]:t}function Ir(e,t){return e?qe(Object.create(null),e,t):t}function Vl(e,t){return e?Z(e)&&Z(t)?[...new Set([...e,...t])]:qe(Object.create(null),Ul(e),Ul(t??{})):t}function Og(e,t){if(!e)return t;if(!t)return e;const n=qe(Object.create(null),e);for(const r in t)n[r]=Xe(e[r],t[r]);return n}function Sf(){return{app:null,config:{isNativeTag:_p,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Lg=0;function Mg(e,t){return function(r,s=null){Y(r)||(r=qe({},r)),s!=null&&!we(s)&&(s=null);const o=Sf(),i=new WeakSet,a=[];let l=!1;const f=o.app={_uid:Lg++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:bm,get config(){return o.config},set config(u){},use(u,...c){return i.has(u)||(u&&Y(u.install)?(i.add(u),u.install(f,...c)):Y(u)&&(i.add(u),u(f,...c))),f},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),f},component(u,c){return c?(o.components[u]=c,f):o.components[u]},directive(u,c){return c?(o.directives[u]=c,f):o.directives[u]},mount(u,c,h){if(!l){const d=f._ceVNode||z(r,s);return d.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),c&&t?t(d,u):e(d,u,h),l=!0,f._container=u,u.__vue_app__=f,Io(d.component)}},onUnmount(u){a.push(u)},unmount(){l&&(Lt(a,f._instance,16),e(null,f._container),delete f._container.__vue_app__)},provide(u,c){return o.provides[u]=c,f},runWithContext(u){const c=Bn;Bn=f;try{return u()}finally{Bn=c}}};return f}}let Bn=null;function kf(e,t){if(Oe){let n=Oe.provides;const r=Oe.parent&&Oe.parent.provides;r===n&&(n=Oe.provides=Object.create(r)),n[e]=t}}function Hn(e,t,n=!1){const r=Oe||Le;if(r||Bn){const s=Bn?Bn._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&Y(t)?t.call(r&&r.proxy):t}}function ms(){return!!(Oe||Le||Bn)}const Af={},Ef=()=>Object.create(Af),Tf=e=>Object.getPrototypeOf(e)===Af;function Dg(e,t,n,r=!1){const s={},o=Ef();e.propsDefaults=Object.create(null),Rf(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Zn(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function Bg(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=fe(s),[l]=e.propsOptions;let f=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let c=0;c<u.length;c++){let h=u[c];if(Po(e.emitsOptions,h))continue;const d=t[h];if(l)if(de(o,h))d!==o[h]&&(o[h]=d,f=!0);else{const p=pt(h);s[p]=Ui(l,a,p,d,e,!1)}else d!==o[h]&&(o[h]=d,f=!0)}}}else{Rf(e,t,s,o)&&(f=!0);let u;for(const c in a)(!t||!de(t,c)&&((u=wn(c))===c||!de(t,u)))&&(l?n&&(n[c]!==void 0||n[u]!==void 0)&&(s[c]=Ui(l,a,c,void 0,e,!0)):delete s[c]);if(o!==a)for(const c in o)(!t||!de(t,c))&&(delete o[c],f=!0)}f&&zt(e.attrs,"set","")}function Rf(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(ir(l))continue;const f=t[l];let u;s&&de(s,u=pt(l))?!o||!o.includes(u)?n[u]=f:(a||(a={}))[u]=f:Po(e.emitsOptions,l)||(!(l in r)||f!==r[l])&&(r[l]=f,i=!0)}if(o){const l=fe(n),f=a||ye;for(let u=0;u<o.length;u++){const c=o[u];n[c]=Ui(s,l,c,f[c],e,!de(f,c))}}return i}function Ui(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=de(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&Y(l)){const{propsDefaults:f}=s;if(n in f)r=f[n];else{const u=jn(s);r=f[n]=l.call(null,t),u()}}else r=l;s.ce&&s.ce._setProp(n,r)}i[0]&&(o&&!a?r=!1:i[1]&&(r===""||r===wn(n))&&(r=!0))}return r}const Hg=new WeakMap;function Pf(e,t,n=!1){const r=n?Hg:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;if(!Y(e)){const u=c=>{l=!0;const[h,d]=Pf(c,t,!0);qe(i,h),d&&a.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return we(e)&&r.set(e,sr),sr;if(Z(o))for(let u=0;u<o.length;u++){const c=pt(o[u]);ql(c)&&(i[c]=ye)}else if(o)for(const u in o){const c=pt(u);if(ql(c)){const h=o[u],d=i[c]=Z(h)||Y(h)?{type:h}:qe({},h),p=d.type;let g=!1,y=!0;if(Z(p))for(let _=0;_<p.length;++_){const v=p[_],m=Y(v)&&v.name;if(m==="Boolean"){g=!0;break}else m==="String"&&(y=!1)}else g=Y(p)&&p.name==="Boolean";d[0]=g,d[1]=y,(g||de(d,"default"))&&a.push(c)}}const f=[i,a];return we(e)&&r.set(e,f),f}function ql(e){return e[0]!=="$"&&!ir(e)}const $f=e=>e[0]==="_"||e==="$stable",Ka=e=>Z(e)?e.map(it):[it(e)],Fg=(e,t,n)=>{if(t._n)return t;const r=ue((...s)=>Ka(t(...s)),n);return r._c=!1,r},Nf=(e,t,n)=>{const r=e._ctx;for(const s in e){if($f(s))continue;const o=e[s];if(Y(o))t[s]=Fg(s,o,r);else if(o!=null){const i=Ka(o);t[s]=()=>i}}},If=(e,t)=>{const n=Ka(t);e.slots.default=()=>n},Of=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},jg=(e,t,n)=>{const r=e.slots=Ef();if(e.vnode.shapeFlag&32){const s=t._;s?(Of(r,t,n),n&&Hu(r,"_",s,!0)):Nf(t,r)}else t&&If(e,t)},Gg=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=ye;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:Of(s,t,n):(o=!t.$stable,Nf(t,s)),i=t}else t&&(If(e,t),i={default:1});if(o)for(const a in s)!$f(a)&&i[a]==null&&delete s[a]},ot=Uf;function Ug(e){return Lf(e)}function Wg(e){return Lf(e,_g)}function Lf(e,t){const n=Ao();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:f,setElementText:u,parentNode:c,nextSibling:h,setScopeId:d=Nt,insertStaticContent:p}=e,g=(w,x,k,P=null,T=null,R=null,D=void 0,M=null,L=!!x.dynamicChildren)=>{if(w===x)return;w&&!on(w,x)&&(P=bs(w),St(w,T,R,!0),w=null),x.patchFlag===-2&&(L=!1,x.dynamicChildren=null);const{type:$,ref:J,shapeFlag:j}=x;switch($){case Fn:y(w,x,k,P);break;case xt:_(w,x,k,P);break;case Br:w==null&&v(x,k,P,D);break;case Ne:q(w,x,k,P,T,R,D,M,L);break;default:j&1?C(w,x,k,P,T,R,D,M,L):j&6?ne(w,x,k,P,T,R,D,M,L):(j&64||j&128)&&$.process(w,x,k,P,T,R,D,M,L,Vn)}J!=null&&T&&Zr(J,w&&w.ref,R,x||w,!x)},y=(w,x,k,P)=>{if(w==null)r(x.el=a(x.children),k,P);else{const T=x.el=w.el;x.children!==w.children&&f(T,x.children)}},_=(w,x,k,P)=>{w==null?r(x.el=l(x.children||""),k,P):x.el=w.el},v=(w,x,k,P)=>{[w.el,w.anchor]=p(w.children,x,k,P,w.el,w.anchor)},m=({el:w,anchor:x},k,P)=>{let T;for(;w&&w!==x;)T=h(w),r(w,k,P),w=T;r(x,k,P)},b=({el:w,anchor:x})=>{let k;for(;w&&w!==x;)k=h(w),s(w),w=k;s(x)},C=(w,x,k,P,T,R,D,M,L)=>{x.type==="svg"?D="svg":x.type==="math"&&(D="mathml"),w==null?E(x,k,P,T,R,D,M,L):H(w,x,T,R,D,M,L)},E=(w,x,k,P,T,R,D,M)=>{let L,$;const{props:J,shapeFlag:j,transition:V,dirs:te}=w;if(L=w.el=i(w.type,R,J&&J.is,J),j&8?u(L,w.children):j&16&&B(w.children,L,null,P,T,li(w,R),D,M),te&&Rt(w,null,P,"created"),A(L,w,w.scopeId,D,P),J){for(const ve in J)ve!=="value"&&!ir(ve)&&o(L,ve,null,J[ve],R,P);"value"in J&&o(L,"value",null,J.value,R),($=J.onVnodeBeforeMount)&&lt($,P,w)}te&&Rt(w,null,P,"beforeMount");const ae=Mf(T,V);ae&&V.beforeEnter(L),r(L,x,k),(($=J&&J.onVnodeMounted)||ae||te)&&ot(()=>{$&&lt($,P,w),ae&&V.enter(L),te&&Rt(w,null,P,"mounted")},T)},A=(w,x,k,P,T)=>{if(k&&d(w,k),P)for(let R=0;R<P.length;R++)d(w,P[R]);if(T){let R=T.subTree;if(x===R||jf(R.type)&&(R.ssContent===x||R.ssFallback===x)){const D=T.vnode;A(w,D,D.scopeId,D.slotScopeIds,T.parent)}}},B=(w,x,k,P,T,R,D,M,L=0)=>{for(let $=L;$<w.length;$++){const J=w[$]=M?nn(w[$]):it(w[$]);g(null,J,x,k,P,T,R,D,M)}},H=(w,x,k,P,T,R,D)=>{const M=x.el=w.el;let{patchFlag:L,dynamicChildren:$,dirs:J}=x;L|=w.patchFlag&16;const j=w.props||ye,V=x.props||ye;let te;if(k&&Sn(k,!1),(te=V.onVnodeBeforeUpdate)&&lt(te,k,x,w),J&&Rt(x,w,k,"beforeUpdate"),k&&Sn(k,!0),(j.innerHTML&&V.innerHTML==null||j.textContent&&V.textContent==null)&&u(M,""),$?O(w.dynamicChildren,$,M,k,P,li(x,T),R):D||G(w,x,M,null,k,P,li(x,T),R,!1),L>0){if(L&16)K(M,j,V,k,T);else if(L&2&&j.class!==V.class&&o(M,"class",null,V.class,T),L&4&&o(M,"style",j.style,V.style,T),L&8){const ae=x.dynamicProps;for(let ve=0;ve<ae.length;ve++){const pe=ae[ve],tt=j[pe],He=V[pe];(He!==tt||pe==="value")&&o(M,pe,tt,He,T,k)}}L&1&&w.children!==x.children&&u(M,x.children)}else!D&&$==null&&K(M,j,V,k,T);((te=V.onVnodeUpdated)||J)&&ot(()=>{te&&lt(te,k,x,w),J&&Rt(x,w,k,"updated")},P)},O=(w,x,k,P,T,R,D)=>{for(let M=0;M<x.length;M++){const L=w[M],$=x[M],J=L.el&&(L.type===Ne||!on(L,$)||L.shapeFlag&70)?c(L.el):k;g(L,$,J,null,P,T,R,D,!0)}},K=(w,x,k,P,T)=>{if(x!==k){if(x!==ye)for(const R in x)!ir(R)&&!(R in k)&&o(w,R,x[R],null,T,P);for(const R in k){if(ir(R))continue;const D=k[R],M=x[R];D!==M&&R!=="value"&&o(w,R,M,D,T,P)}"value"in k&&o(w,"value",x.value,k.value,T)}},q=(w,x,k,P,T,R,D,M,L)=>{const $=x.el=w?w.el:a(""),J=x.anchor=w?w.anchor:a("");let{patchFlag:j,dynamicChildren:V,slotScopeIds:te}=x;te&&(M=M?M.concat(te):te),w==null?(r($,k,P),r(J,k,P),B(x.children||[],k,J,T,R,D,M,L)):j>0&&j&64&&V&&w.dynamicChildren?(O(w.dynamicChildren,V,k,T,R,D,M),(x.key!=null||T&&x===T.subTree)&&Df(w,x,!0)):G(w,x,k,J,T,R,D,M,L)},ne=(w,x,k,P,T,R,D,M,L)=>{x.slotScopeIds=M,w==null?x.shapeFlag&512?T.ctx.activate(x,k,P,D,L):ee(x,k,P,T,R,D,L):ce(w,x,L)},ee=(w,x,k,P,T,R,D)=>{const M=w.component=dm(w,P,T);if(za(w)&&(M.ctx.renderer=Vn),pm(M,!1,D),M.asyncDep){if(T&&T.registerDep(M,F,D),!w.el){const L=M.subTree=z(xt);_(null,L,x,k)}}else F(M,w,x,k,T,R,D)},ce=(w,x,k)=>{const P=x.component=w.component;if(tm(w,x,k))if(P.asyncDep&&!P.asyncResolved){X(P,x,k);return}else P.next=x,P.update();else x.el=w.el,P.vnode=x},F=(w,x,k,P,T,R,D)=>{const M=()=>{if(w.isMounted){let{next:j,bu:V,u:te,parent:ae,vnode:ve}=w;{const nt=Bf(w);if(nt){j&&(j.el=ve.el,X(w,j,D)),nt.asyncDep.then(()=>{w.isUnmounted||M()});return}}let pe=j,tt;Sn(w,!1),j?(j.el=ve.el,X(w,j,D)):j=ve,V&&Ms(V),(tt=j.props&&j.props.onVnodeBeforeUpdate)&&lt(tt,ae,j,ve),Sn(w,!0);const He=ci(w),gt=w.subTree;w.subTree=He,g(gt,He,c(gt.el),bs(gt),w,T,R),j.el=He.el,pe===null&&$o(w,He.el),te&&ot(te,T),(tt=j.props&&j.props.onVnodeUpdated)&&ot(()=>lt(tt,ae,j,ve),T)}else{let j;const{el:V,props:te}=x,{bm:ae,m:ve,parent:pe,root:tt,type:He}=w,gt=Dn(x);if(Sn(w,!1),ae&&Ms(ae),!gt&&(j=te&&te.onVnodeBeforeMount)&&lt(j,pe,x),Sn(w,!0),V&&Qo){const nt=()=>{w.subTree=ci(w),Qo(V,w.subTree,w,T,null)};gt&&He.__asyncHydrate?He.__asyncHydrate(V,w,nt):nt()}else{tt.ce&&tt.ce._injectChildStyle(He);const nt=w.subTree=ci(w);g(null,nt,k,P,w,T,R),x.el=nt.el}if(ve&&ot(ve,T),!gt&&(j=te&&te.onVnodeMounted)){const nt=x;ot(()=>lt(j,pe,nt),T)}(x.shapeFlag&256||pe&&Dn(pe.vnode)&&pe.vnode.shapeFlag&256)&&w.a&&ot(w.a,T),w.isMounted=!0,x=k=P=null}};w.scope.on();const L=w.effect=new zu(M);w.scope.off();const $=w.update=L.run.bind(L),J=w.job=L.runIfDirty.bind(L);J.i=w,J.id=w.uid,L.scheduler=()=>Ga(J),Sn(w,!0),$()},X=(w,x,k)=>{x.component=w;const P=w.vnode.props;w.vnode=x,w.next=null,Bg(w,x.props,P,k),Gg(w,x.children,k),bn(),Bl(w),vn()},G=(w,x,k,P,T,R,D,M,L=!1)=>{const $=w&&w.children,J=w?w.shapeFlag:0,j=x.children,{patchFlag:V,shapeFlag:te}=x;if(V>0){if(V&128){zn($,j,k,P,T,R,D,M,L);return}else if(V&256){be($,j,k,P,T,R,D,M,L);return}}te&8?(J&16&&Er($,T,R),j!==$&&u(k,j)):J&16?te&16?zn($,j,k,P,T,R,D,M,L):Er($,T,R,!0):(J&8&&u(k,""),te&16&&B(j,k,P,T,R,D,M,L))},be=(w,x,k,P,T,R,D,M,L)=>{w=w||sr,x=x||sr;const $=w.length,J=x.length,j=Math.min($,J);let V;for(V=0;V<j;V++){const te=x[V]=L?nn(x[V]):it(x[V]);g(w[V],te,k,null,T,R,D,M,L)}$>J?Er(w,T,R,!0,!1,j):B(x,k,P,T,R,D,M,L,j)},zn=(w,x,k,P,T,R,D,M,L)=>{let $=0;const J=x.length;let j=w.length-1,V=J-1;for(;$<=j&&$<=V;){const te=w[$],ae=x[$]=L?nn(x[$]):it(x[$]);if(on(te,ae))g(te,ae,k,null,T,R,D,M,L);else break;$++}for(;$<=j&&$<=V;){const te=w[j],ae=x[V]=L?nn(x[V]):it(x[V]);if(on(te,ae))g(te,ae,k,null,T,R,D,M,L);else break;j--,V--}if($>j){if($<=V){const te=V+1,ae=te<J?x[te].el:P;for(;$<=V;)g(null,x[$]=L?nn(x[$]):it(x[$]),k,ae,T,R,D,M,L),$++}}else if($>V)for(;$<=j;)St(w[$],T,R,!0),$++;else{const te=$,ae=$,ve=new Map;for($=ae;$<=V;$++){const rt=x[$]=L?nn(x[$]):it(x[$]);rt.key!=null&&ve.set(rt.key,$)}let pe,tt=0;const He=V-ae+1;let gt=!1,nt=0;const Tr=new Array(He);for($=0;$<He;$++)Tr[$]=0;for($=te;$<=j;$++){const rt=w[$];if(tt>=He){St(rt,T,R,!0);continue}let kt;if(rt.key!=null)kt=ve.get(rt.key);else for(pe=ae;pe<=V;pe++)if(Tr[pe-ae]===0&&on(rt,x[pe])){kt=pe;break}kt===void 0?St(rt,T,R,!0):(Tr[kt-ae]=$+1,kt>=nt?nt=kt:gt=!0,g(rt,x[kt],k,null,T,R,D,M,L),tt++)}const Rl=gt?zg(Tr):sr;for(pe=Rl.length-1,$=He-1;$>=0;$--){const rt=ae+$,kt=x[rt],Pl=rt+1<J?x[rt+1].el:P;Tr[$]===0?g(null,kt,k,Pl,T,R,D,M,L):gt&&(pe<0||$!==Rl[pe]?Cn(kt,k,Pl,2):pe--)}}},Cn=(w,x,k,P,T=null)=>{const{el:R,type:D,transition:M,children:L,shapeFlag:$}=w;if($&6){Cn(w.component.subTree,x,k,P);return}if($&128){w.suspense.move(x,k,P);return}if($&64){D.move(w,x,k,Vn);return}if(D===Ne){r(R,x,k);for(let j=0;j<L.length;j++)Cn(L[j],x,k,P);r(w.anchor,x,k);return}if(D===Br){m(w,x,k);return}if(P!==2&&$&1&&M)if(P===0)M.beforeEnter(R),r(R,x,k),ot(()=>M.enter(R),T);else{const{leave:j,delayLeave:V,afterLeave:te}=M,ae=()=>r(R,x,k),ve=()=>{j(R,()=>{ae(),te&&te()})};V?V(R,ae,ve):ve()}else r(R,x,k)},St=(w,x,k,P=!1,T=!1)=>{const{type:R,props:D,ref:M,children:L,dynamicChildren:$,shapeFlag:J,patchFlag:j,dirs:V,cacheIndex:te}=w;if(j===-2&&(T=!1),M!=null&&Zr(M,null,k,w,!0),te!=null&&(x.renderCache[te]=void 0),J&256){x.ctx.deactivate(w);return}const ae=J&1&&V,ve=!Dn(w);let pe;if(ve&&(pe=D&&D.onVnodeBeforeUnmount)&&lt(pe,x,w),J&6)dp(w.component,k,P);else{if(J&128){w.suspense.unmount(k,P);return}ae&&Rt(w,null,x,"beforeUnmount"),J&64?w.type.remove(w,x,k,Vn,P):$&&!$.hasOnce&&(R!==Ne||j>0&&j&64)?Er($,x,k,!1,!0):(R===Ne&&j&384||!T&&J&16)&&Er(L,x,k),P&&El(w)}(ve&&(pe=D&&D.onVnodeUnmounted)||ae)&&ot(()=>{pe&&lt(pe,x,w),ae&&Rt(w,null,x,"unmounted")},k)},El=w=>{const{type:x,el:k,anchor:P,transition:T}=w;if(x===Ne){hp(k,P);return}if(x===Br){b(w);return}const R=()=>{s(k),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(w.shapeFlag&1&&T&&!T.persisted){const{leave:D,delayLeave:M}=T,L=()=>D(k,R);M?M(w.el,R,L):L()}else R()},hp=(w,x)=>{let k;for(;w!==x;)k=h(w),s(w),w=k;s(x)},dp=(w,x,k)=>{const{bum:P,scope:T,job:R,subTree:D,um:M,m:L,a:$}=w;Kl(L),Kl($),P&&Ms(P),T.stop(),R&&(R.flags|=8,St(D,w,x,k)),M&&ot(M,x),ot(()=>{w.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve())},Er=(w,x,k,P=!1,T=!1,R=0)=>{for(let D=R;D<w.length;D++)St(w[D],x,k,P,T)},bs=w=>{if(w.shapeFlag&6)return bs(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();const x=h(w.anchor||w.el),k=x&&x[pg];return k?h(k):x};let Xo=!1;const Tl=(w,x,k)=>{w==null?x._vnode&&St(x._vnode,null,null,!0):g(x._vnode||null,w,x,null,null,null,k),x._vnode=w,Xo||(Xo=!0,Bl(),Xs(),Xo=!1)},Vn={p:g,um:St,m:Cn,r:El,mt:ee,mc:B,pc:G,pbc:O,n:bs,o:e};let Jo,Qo;return t&&([Jo,Qo]=t(Vn)),{render:Tl,hydrate:Jo,createApp:Mg(Tl,Jo)}}function li({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Sn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Mf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Df(e,t,n=!1){const r=e.children,s=t.children;if(Z(r)&&Z(s))for(let o=0;o<r.length;o++){const i=r[o];let a=s[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[o]=nn(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&Df(i,a)),a.type===Fn&&(a.el=i.el)}}function zg(e){const t=e.slice(),n=[0];let r,s,o,i,a;const l=e.length;for(r=0;r<l;r++){const f=e[r];if(f!==0){if(s=n[n.length-1],e[s]<f){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<f?o=a+1:i=a;f<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Bf(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bf(t)}function Kl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Vg=Symbol.for("v-scx"),qg=()=>Hn(Vg);function Kg(e,t){return Xa(e,null,t)}function lr(e,t,n){return Xa(e,t,n)}function Xa(e,t,n=ye){const{immediate:r,deep:s,flush:o,once:i}=n,a=qe({},n),l=t&&r||!t&&o!=="post";let f;if(mr){if(o==="sync"){const d=qg();f=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=Nt,d.resume=Nt,d.pause=Nt,d}}const u=Oe;a.call=(d,p,g)=>Lt(d,u,p,g);let c=!1;o==="post"?a.scheduler=d=>{ot(d,u&&u.suspense)}:o!=="sync"&&(c=!0,a.scheduler=(d,p)=>{p?d():Ga(d)}),a.augmentJob=d=>{t&&(d.flags|=4),c&&(d.flags|=2,u&&(d.id=u.uid,d.i=u))};const h=ag(e,t,a);return mr&&(f?f.push(h):l&&h()),h}function Xg(e,t,n){const r=this.proxy,s=ke(e)?e.includes(".")?Hf(r,e):()=>r[e]:e.bind(r,r);let o;Y(t)?o=t:(o=t.handler,n=t);const i=jn(this),a=Xa(s,o.bind(r),n);return i(),a}function Hf(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const Jg=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${pt(t)}Modifiers`]||e[`${wn(t)}Modifiers`];function Qg(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ye;let s=n;const o=t.startsWith("update:"),i=o&&Jg(r,t.slice(7));i&&(i.trim&&(s=n.map(u=>ke(u)?u.trim():u)),i.number&&(s=n.map(xp)));let a,l=r[a=ei(t)]||r[a=ei(pt(t))];!l&&o&&(l=r[a=ei(wn(t))]),l&&Lt(l,e,6,s);const f=r[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Lt(f,e,6,s)}}function Ff(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!Y(e)){const l=f=>{const u=Ff(f,t,!0);u&&(a=!0,qe(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(we(e)&&r.set(e,null),null):(Z(o)?o.forEach(l=>i[l]=null):qe(i,o),we(e)&&r.set(e,i),i)}function Po(e,t){return!e||!hs(t)?!1:(t=t.slice(2).replace(/Once$/,""),de(e,t[0].toLowerCase()+t.slice(1))||de(e,wn(t))||de(e,t))}function ci(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:a,emit:l,render:f,renderCache:u,props:c,data:h,setupState:d,ctx:p,inheritAttrs:g}=e,y=Js(e);let _,v;try{if(n.shapeFlag&4){const b=s||r,C=b;_=it(f.call(C,b,u,c,d,h,p)),v=a}else{const b=t;_=it(b.length>1?b(c,{attrs:a,slots:i,emit:l}):b(c,null)),v=t.props?a:Zg(a)}}catch(b){Hr.length=0,xr(b,e,1),_=z(xt)}let m=_;if(v&&g!==!1){const b=Object.keys(v),{shapeFlag:C}=m;b.length&&C&7&&(o&&b.some(Ra)&&(v=em(v,o)),m=gr(m,v,!1,!0))}return n.dirs&&(m=gr(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&Ua(m,n.transition),_=m,Js(y),_}function Yg(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(pr(s)){if(s.type!==xt||s.children==="v-if"){if(n)return;n=s}}else return}return n}const Zg=e=>{let t;for(const n in e)(n==="class"||n==="style"||hs(n))&&((t||(t={}))[n]=e[n]);return t},em=(e,t)=>{const n={};for(const r in e)(!Ra(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function tm(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:a,patchFlag:l}=t,f=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Xl(r,i,f):!!i;if(l&8){const u=t.dynamicProps;for(let c=0;c<u.length;c++){const h=u[c];if(i[h]!==r[h]&&!Po(f,h))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Xl(r,i,f):!0:!!i;return!1}function Xl(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(t[o]!==e[o]&&!Po(n,o))return!0}return!1}function $o({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const jf=e=>e.__isSuspense;let Wi=0;const nm={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,l,f){if(e==null)sm(t,n,r,s,o,i,a,l,f);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}om(e,t,n,r,s,i,a,l,f)}},hydrate:im,normalize:am},rm=nm;function es(e,t){const n=e.props&&e.props[t];Y(n)&&n()}function sm(e,t,n,r,s,o,i,a,l){const{p:f,o:{createElement:u}}=l,c=u("div"),h=e.suspense=Gf(e,s,r,t,c,n,o,i,a,l);f(null,h.pendingBranch=e.ssContent,c,null,r,h,o,i),h.deps>0?(es(e,"onPending"),es(e,"onFallback"),f(null,e.ssFallback,t,n,r,null,o,i),cr(h,e.ssFallback)):h.resolve(!1,!0)}function om(e,t,n,r,s,o,i,a,{p:l,um:f,o:{createElement:u}}){const c=t.suspense=e.suspense;c.vnode=t,t.el=e.el;const h=t.ssContent,d=t.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:y,isHydrating:_}=c;if(g)c.pendingBranch=h,on(h,g)?(l(g,h,c.hiddenContainer,null,s,c,o,i,a),c.deps<=0?c.resolve():y&&(_||(l(p,d,n,r,s,null,o,i,a),cr(c,d)))):(c.pendingId=Wi++,_?(c.isHydrating=!1,c.activeBranch=g):f(g,s,c),c.deps=0,c.effects.length=0,c.hiddenContainer=u("div"),y?(l(null,h,c.hiddenContainer,null,s,c,o,i,a),c.deps<=0?c.resolve():(l(p,d,n,r,s,null,o,i,a),cr(c,d))):p&&on(h,p)?(l(p,h,n,r,s,c,o,i,a),c.resolve(!0)):(l(null,h,c.hiddenContainer,null,s,c,o,i,a),c.deps<=0&&c.resolve()));else if(p&&on(h,p))l(p,h,n,r,s,c,o,i,a),cr(c,h);else if(es(t,"onPending"),c.pendingBranch=h,h.shapeFlag&512?c.pendingId=h.component.suspenseId:c.pendingId=Wi++,l(null,h,c.hiddenContainer,null,s,c,o,i,a),c.deps<=0)c.resolve();else{const{timeout:v,pendingId:m}=c;v>0?setTimeout(()=>{c.pendingId===m&&c.fallback(d)},v):v===0&&c.fallback(d)}}function Gf(e,t,n,r,s,o,i,a,l,f,u=!1){const{p:c,m:h,um:d,n:p,o:{parentNode:g,remove:y}}=f;let _;const v=lm(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const m=e.props?Sp(e.props.timeout):void 0,b=o,C={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:s,deps:0,pendingId:Wi++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(E=!1,A=!1){const{vnode:B,activeBranch:H,pendingBranch:O,pendingId:K,effects:q,parentComponent:ne,container:ee}=C;let ce=!1;C.isHydrating?C.isHydrating=!1:E||(ce=H&&O.transition&&O.transition.mode==="out-in",ce&&(H.transition.afterLeave=()=>{K===C.pendingId&&(h(O,ee,o===b?p(H):o,0),Hi(q))}),H&&(g(H.el)===ee&&(o=p(H)),d(H,ne,C,!0)),ce||h(O,ee,o,0)),cr(C,O),C.pendingBranch=null,C.isInFallback=!1;let F=C.parent,X=!1;for(;F;){if(F.pendingBranch){F.effects.push(...q),X=!0;break}F=F.parent}!X&&!ce&&Hi(q),C.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!A&&t.resolve()),es(B,"onResolve")},fallback(E){if(!C.pendingBranch)return;const{vnode:A,activeBranch:B,parentComponent:H,container:O,namespace:K}=C;es(A,"onFallback");const q=p(B),ne=()=>{C.isInFallback&&(c(null,E,O,q,H,null,K,a,l),cr(C,E))},ee=E.transition&&E.transition.mode==="out-in";ee&&(B.transition.afterLeave=ne),C.isInFallback=!0,d(B,H,null,!0),ee||ne()},move(E,A,B){C.activeBranch&&h(C.activeBranch,E,A,B),C.container=E},next(){return C.activeBranch&&p(C.activeBranch)},registerDep(E,A,B){const H=!!C.pendingBranch;H&&C.deps++;const O=E.vnode.el;E.asyncDep.catch(K=>{xr(K,E,0)}).then(K=>{if(E.isUnmounted||C.isUnmounted||C.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:q}=E;qi(E,K),O&&(q.el=O);const ne=!O&&E.subTree.el;A(E,q,g(O||E.subTree.el),O?null:p(E.subTree),C,i,B),ne&&y(ne),$o(E,q.el),H&&--C.deps===0&&C.resolve()})},unmount(E,A){C.isUnmounted=!0,C.activeBranch&&d(C.activeBranch,n,E,A),C.pendingBranch&&d(C.pendingBranch,n,E,A)}};return C}function im(e,t,n,r,s,o,i,a,l){const f=t.suspense=Gf(t,r,n,e.parentNode,document.createElement("div"),null,s,o,i,a,!0),u=l(e,f.pendingBranch=t.ssContent,n,f,o,i);return f.deps===0&&f.resolve(!1,!0),u}function am(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Jl(r?n.default:n),e.ssFallback=r?Jl(n.fallback):z(xt)}function Jl(e){let t;if(Y(e)){const n=dr&&e._c;n&&(e._d=!1,Q()),e=e(),n&&(e._d=!0,t=Ye,Wf())}return Z(e)&&(e=Yg(e)),e=it(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Uf(e,t){t&&t.pendingBranch?Z(e)?t.effects.push(...e):t.effects.push(e):Hi(e)}function cr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,$o(r,s))}function lm(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ne=Symbol.for("v-fgt"),Fn=Symbol.for("v-txt"),xt=Symbol.for("v-cmt"),Br=Symbol.for("v-stc"),Hr=[];let Ye=null;function Q(e=!1){Hr.push(Ye=e?null:[])}function Wf(){Hr.pop(),Ye=Hr[Hr.length-1]||null}let dr=1;function Ql(e,t=!1){dr+=e,e<0&&Ye&&t&&(Ye.hasOnce=!0)}function zf(e){return e.dynamicChildren=dr>0?Ye||sr:null,Wf(),dr>0&&Ye&&Ye.push(e),e}function he(e,t,n,r,s,o){return zf(W(e,t,n,r,s,o,!0))}function De(e,t,n,r,s){return zf(z(e,t,n,r,s,!0))}function pr(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const Vf=({key:e})=>e??null,Ds=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||Te(e)||Y(e)?{i:Le,r:e,k:t,f:!!n}:e:null);function W(e,t=null,n=null,r=0,s=null,o=e===Ne?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Vf(t),ref:t&&Ds(t),scopeId:To,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Le};return a?(Qa(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=ke(n)?8:16),dr>0&&!i&&Ye&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ye.push(l),l}const z=cm;function cm(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===wf)&&(e=xt),pr(e)){const a=gr(e,t,!0);return n&&Qa(a,n),dr>0&&!o&&Ye&&(a.shapeFlag&6?Ye[Ye.indexOf(e)]=a:Ye.push(a)),a.patchFlag=-2,a}if(wm(e)&&(e=e.__vccOpts),t){t=Ja(t);let{class:a,style:l}=t;a&&!ke(a)&&(t.class=Ie(a)),we(l)&&(Fa(l)&&!Z(l)&&(l=qe({},l)),t.style=On(l))}const i=ke(e)?1:jf(e)?128:gg(e)?64:we(e)?4:Y(e)?2:0;return W(e,t,n,r,s,i,o,!0)}function Ja(e){return e?Fa(e)||Tf(e)?qe({},e):e:null}function gr(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,f=t?No(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Vf(f),ref:t&&t.ref?n&&o?Z(o)?o.concat(Ds(t)):[o,Ds(t)]:Ds(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&gr(e.ssContent),ssFallback:e.ssFallback&&gr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Ua(u,l.clone(u)),u}function Ae(e=" ",t=0){return z(Fn,null,e,t)}function um(e,t){const n=z(Br,null,e);return n.staticCount=t,n}function Pt(e="",t=!1){return t?(Q(),De(xt,null,e)):z(xt,null,e)}function it(e){return e==null||typeof e=="boolean"?z(xt):Z(e)?z(Ne,null,e.slice()):pr(e)?nn(e):z(Fn,null,String(e))}function nn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:gr(e)}function Qa(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Z(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Qa(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Tf(t)?t._ctx=Le:s===3&&Le&&(Le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Y(t)?(t={default:t,_ctx:Le},n=32):(t=String(t),r&64?(n=16,t=[Ae(t)]):n=8);e.children=t,e.shapeFlag|=n}function No(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Ie([t.class,r.class]));else if(s==="style")t.style=On([t.style,r.style]);else if(hs(s)){const o=t[s],i=r[s];i&&o!==i&&!(Z(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}function lt(e,t,n,r=null){Lt(e,t,7,[n,r])}const fm=Sf();let hm=0;function dm(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||fm,o={uid:hm++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Wu(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Pf(r,s),emitsOptions:Ff(r,s),emit:null,emitted:null,propsDefaults:ye,inheritAttrs:r.inheritAttrs,ctx:ye,data:ye,props:ye,attrs:ye,slots:ye,refs:ye,setupState:ye,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Qg.bind(null,o),e.ce&&e.ce(o),o}let Oe=null;const Sr=()=>Oe||Le;let Ys,zi;{const e=Ao(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Ys=t("__VUE_INSTANCE_SETTERS__",n=>Oe=n),zi=t("__VUE_SSR_SETTERS__",n=>mr=n)}const jn=e=>{const t=Oe;return Ys(e),e.scope.on(),()=>{e.scope.off(),Ys(t)}},Vi=()=>{Oe&&Oe.scope.off(),Ys(null)};function qf(e){return e.vnode.shapeFlag&4}let mr=!1;function pm(e,t=!1,n=!1){t&&zi(t);const{props:r,children:s}=e.vnode,o=qf(e);Dg(e,r,o,t),jg(e,s,n);const i=o?gm(e,t):void 0;return t&&zi(!1),i}function gm(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Tg);const{setup:r}=n;if(r){bn();const s=e.setupContext=r.length>1?ym(e):null,o=jn(e),i=ps(r,e,0,[e.props,s]),a=$a(i);if(vn(),o(),(a||e.sp)&&!Dn(e)&&Wa(e),a){if(i.then(Vi,Vi),t)return i.then(l=>{qi(e,l)}).catch(l=>{xr(l,e,0)});e.asyncDep=i}else qi(e,i)}else Kf(e)}function qi(e,t,n){Y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:we(t)&&(e.setupState=lf(t)),Kf(e)}function Kf(e,t,n){const r=e.type;e.render||(e.render=r.render||Nt);{const s=jn(e);bn();try{Pg(e)}finally{vn(),s()}}}const mm={get(e,t){return Ue(e,"get",""),e[t]}};function ym(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,mm),slots:e.slots,emit:e.emit,expose:t}}function Io(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(lf(Yp(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Dr)return Dr[n](e)},has(t,n){return n in t||n in Dr}})):e.proxy}function _m(e,t=!0){return Y(e)?e.displayName||e.name:e.name||t&&e.__name}function wm(e){return Y(e)&&"__vccOpts"in e}const je=(e,t)=>og(e,t,mr);function yr(e,t,n){const r=arguments.length;return r===2?we(t)&&!Z(t)?pr(t)?z(e,null,[t]):z(e,t):z(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&pr(n)&&(n=[n]),z(e,t,n))}const bm="3.5.13";/**
16
- * @vue/runtime-dom v3.5.13
17
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
18
- * @license MIT
19
- **/let Ki;const Yl=typeof window<"u"&&window.trustedTypes;if(Yl)try{Ki=Yl.createPolicy("vue",{createHTML:e=>e})}catch{}const Xf=Ki?e=>Ki.createHTML(e):e=>e,vm="http://www.w3.org/2000/svg",Cm="http://www.w3.org/1998/Math/MathML",jt=typeof document<"u"?document:null,Zl=jt&&jt.createElement("template"),xm={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?jt.createElementNS(vm,e):t==="mathml"?jt.createElementNS(Cm,e):n?jt.createElement(e,{is:n}):jt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>jt.createTextNode(e),createComment:e=>jt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>jt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Zl.innerHTML=Xf(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Zl.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Sm=Symbol("_vtc");function km(e,t,n){const r=e[Sm];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ec=Symbol("_vod"),Am=Symbol("_vsh"),Em=Symbol(""),Tm=/(^|;)\s*display\s*:/;function Rm(e,t,n){const r=e.style,s=ke(n);let o=!1;if(n&&!s){if(t)if(ke(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Bs(r,a,"")}else for(const i in t)n[i]==null&&Bs(r,i,"");for(const i in n)i==="display"&&(o=!0),Bs(r,i,n[i])}else if(s){if(t!==n){const i=r[Em];i&&(n+=";"+i),r.cssText=n,o=Tm.test(n)}}else t&&e.removeAttribute("style");ec in e&&(e[ec]=o?r.display:"",e[Am]&&(r.display="none"))}const tc=/\s*!important$/;function Bs(e,t,n){if(Z(n))n.forEach(r=>Bs(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Pm(e,t);tc.test(n)?e.setProperty(wn(r),n.replace(tc,""),"important"):e[r]=n}}const nc=["Webkit","Moz","ms"],ui={};function Pm(e,t){const n=ui[t];if(n)return n;let r=pt(t);if(r!=="filter"&&r in e)return ui[t]=r;r=ko(r);for(let s=0;s<nc.length;s++){const o=nc[s]+r;if(o in e)return ui[t]=o}return t}const rc="http://www.w3.org/1999/xlink";function sc(e,t,n,r,s,o=Pp(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(rc,t.slice(6,t.length)):e.setAttributeNS(rc,t,n):n==null||o&&!ju(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Ct(n)?String(n):n)}function oc(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Xf(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=ju(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(s||t)}function Jf(e,t,n,r){e.addEventListener(t,n,r)}function $m(e,t,n,r){e.removeEventListener(t,n,r)}const ic=Symbol("_vei");function Nm(e,t,n,r,s=null){const o=e[ic]||(e[ic]={}),i=o[t];if(r&&i)i.value=r;else{const[a,l]=Im(t);if(r){const f=o[t]=Mm(r,s);Jf(e,a,f,l)}else i&&($m(e,a,i,l),o[t]=void 0)}}const ac=/(?:Once|Passive|Capture)$/;function Im(e){let t;if(ac.test(e)){t={};let r;for(;r=e.match(ac);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):wn(e.slice(2)),t]}let fi=0;const Om=Promise.resolve(),Lm=()=>fi||(Om.then(()=>fi=0),fi=Date.now());function Mm(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Lt(Dm(r,n.value),t,5,[r])};return n.value=e,n.attached=Lm(),n}function Dm(e,t){if(Z(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const lc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Bm=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?km(e,r,i):t==="style"?Rm(e,n,r):hs(t)?Ra(t)||Nm(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Hm(e,t,r,i))?(oc(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&sc(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ke(r))?oc(e,pt(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),sc(e,t,r,i))};function Hm(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&lc(t)&&Y(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return lc(t)&&ke(n)?!1:t in e}const cc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Z(t)?n=>Ms(t,n):t},hi=Symbol("_assign"),Fm={created(e,{value:t},n){e.checked=zs(t,n.props.value),e[hi]=cc(n),Jf(e,"change",()=>{e[hi](jm(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[hi]=cc(r),t!==n&&(e.checked=zs(t,r.props.value))}};function jm(e){return"_value"in e?e._value:e.value}const Gm={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Um=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const o=wn(s.key);if(t.some(i=>i===o||Gm[i]===o))return e(s)})},Qf=qe({patchProp:Bm},xm);let Fr,uc=!1;function Wm(){return Fr||(Fr=Ug(Qf))}function zm(){return Fr=uc?Fr:Wg(Qf),uc=!0,Fr}const Yf=(...e)=>{const t=Wm().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=eh(r);if(!s)return;const o=t._component;!Y(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,Zf(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t},Vm=(...e)=>{const t=zm().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=eh(r);if(s)return n(s,!0,Zf(s))},t};function Zf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function eh(e){return ke(e)?document.querySelector(e):e}const qm=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Km=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Xm=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Jm(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Qm(e);return}return t}function Qm(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Zs(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!Xm.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(qm.test(e)||Km.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Jm)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const Ym=/#/g,Zm=/&/g,ey=/\//g,ty=/=/g,Ya=/\+/g,ny=/%5e/gi,ry=/%60/gi,sy=/%7c/gi,oy=/%20/gi;function iy(e){return encodeURI(""+e).replace(sy,"|")}function Xi(e){return iy(typeof e=="string"?e:JSON.stringify(e)).replace(Ya,"%2B").replace(oy,"+").replace(Ym,"%23").replace(Zm,"%26").replace(ry,"`").replace(ny,"^").replace(ey,"%2F")}function di(e){return Xi(e).replace(ty,"%3D")}function eo(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function ay(e){return eo(e.replace(Ya," "))}function ly(e){return eo(e.replace(Ya," "))}function Oo(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=ay(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=ly(r[2]||"");t[s]===void 0?t[s]=o:Array.isArray(t[s])?t[s].push(o):t[s]=[t[s],o]}return t}function cy(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${di(e)}=${Xi(n)}`).join("&"):`${di(e)}=${Xi(t)}`:di(e)}function th(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>cy(t,e[t])).filter(Boolean).join("&")}const uy=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,nh=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,fy=/^([/\\]\s*){2,}[^/\\]/,hy=/^[\s\0]*(blob|data|javascript|vbscript):$/i,dy=/\/$|\/\?|\/#/,py=/^\.?\//;function Jt(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?uy.test(e):nh.test(e)||(t.acceptRelative?fy.test(e):!1)}function gy(e){return!!e&&hy.test(e)}function Ji(e="",t){return t?dy.test(e):e.endsWith("/")}function Lo(e="",t){if(!t)return(Ji(e)?e.slice(0,-1):e)||"/";if(!Ji(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s>=0&&(n=e.slice(0,s),r=e.slice(s));const[o,...i]=n.split("?");return((o.endsWith("/")?o.slice(0,-1):o)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function to(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Ji(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s>=0&&(n=e.slice(0,s),r=e.slice(s),!n))return r;const[o,...i]=n.split("?");return o+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function my(e=""){return e.startsWith("/")}function fc(e=""){return my(e)?e:"/"+e}function rh(e,t){if(oh(t)||Jt(e))return e;const n=Lo(t);return e.startsWith(n)?e:ys(n,e)}function yy(e,t){if(oh(t))return e;const n=Lo(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function sh(e,t){const n=lh(e),r={...Oo(n.search),...t};return n.search=th(r),ch(n)}function oh(e){return!e||e==="/"}function _y(e){return e&&e!=="/"}function ys(e,...t){let n=e||"";for(const r of t.filter(s=>_y(s)))if(n){const s=r.replace(py,"");n=to(n)+s}else n=r;return n}function ih(...e){var i,a,l,f;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const u of n)if(!(!u||u==="/")){for(const[c,h]of u.split(t).entries())if(!(!h||h===".")){if(h===".."){if(r.length===1&&Jt(r[0]))continue;r.pop(),s--;continue}if(c===1&&((i=r[r.length-1])!=null&&i.endsWith(":/"))){r[r.length-1]+="/"+h;continue}r.push(h),s++}}let o=r.join("/");return s>=0?(a=n[0])!=null&&a.startsWith("/")&&!o.startsWith("/")?o="/"+o:(l=n[0])!=null&&l.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*s)+o,(f=n[n.length-1])!=null&&f.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function wy(e){return by(e,"https://")}function by(e,t){let n=e.match(nh);return n||(n=e.match(/^\/{2,}/)),n?t+e.slice(n[0].length):t+e}function vy(e,t,n={}){return n.trailingSlash||(e=to(e),t=to(t)),n.leadingSlash||(e=fc(e),t=fc(t)),n.encoding||(e=eo(e),t=eo(t)),e===t}const ah=Symbol.for("ufo:protocolRelative");function lh(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,c,h=""]=n;return{protocol:c.toLowerCase(),pathname:h,href:c+h,auth:"",host:"",search:"",hash:""}}if(!Jt(e,{acceptRelative:!0}))return hc(e);const[,r="",s,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:f,hash:u}=hc(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:l,search:f,hash:u,[ah]:!r}}function hc(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function ch(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[ah]?(e.protocol||"")+"//":"")+s+o+t+n+r}class Cy extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function xy(e){var l,f,u,c,h;const t=((l=e.error)==null?void 0:l.message)||((f=e.error)==null?void 0:f.toString())||"",n=((u=e.request)==null?void 0:u.method)||((c=e.options)==null?void 0:c.method)||"GET",r=((h=e.request)==null?void 0:h.url)||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${s}: ${o}${t?` ${t}`:""}`,a=new Cy(i,e.error?{cause:e.error}:void 0);for(const d of["request","options","response"])Object.defineProperty(a,d,{get(){return e[d]}});for(const[d,p]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,d,{get(){return e.response&&e.response[p]}});return a}const Sy=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function dc(e="GET"){return Sy.has(e.toUpperCase())}function ky(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Ay=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Ey=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Ty(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Ey.test(t)?"json":Ay.has(t)||t.startsWith("text/")?"text":"blob"}function Ry(e,t,n,r){const s=Py((t==null?void 0:t.headers)??(e==null?void 0:e.headers),n==null?void 0:n.headers,r);let o;return(n!=null&&n.query||n!=null&&n.params||t!=null&&t.params||t!=null&&t.query)&&(o={...n==null?void 0:n.params,...n==null?void 0:n.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...n,...t,query:o,params:o,headers:s}}function Py(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[s,o]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(s,o);return r}async function As(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const $y=new Set([408,409,425,429,500,502,503,504]),Ny=new Set([101,204,205,304]);function uh(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let u;typeof a.options.retry=="number"?u=a.options.retry:u=dc(a.options.method)?0:1;const c=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(c):$y.has(c))){const h=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return h>0&&await new Promise(d=>setTimeout(d,h)),o(a.request,{...a.options,retry:u-1})}}const f=xy(a);throw Error.captureStackTrace&&Error.captureStackTrace(f,o),f}const o=async function(l,f={}){const u={request:l,options:Ry(l,f,e.defaults,n),response:void 0,error:void 0};u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&await As(u,u.options.onRequest),typeof u.request=="string"&&(u.options.baseURL&&(u.request=rh(u.request,u.options.baseURL)),u.options.query&&(u.request=sh(u.request,u.options.query),delete u.options.query),"query"in u.options&&delete u.options.query,"params"in u.options&&delete u.options.params),u.options.body&&dc(u.options.method)&&(ky(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half")));let c;if(!u.options.signal&&u.options.timeout){const d=new r;c=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,d.abort(p)},u.options.timeout),u.options.signal=d.signal}try{u.response=await t(u.request,u.options)}catch(d){return u.error=d,u.options.onRequestError&&await As(u,u.options.onRequestError),await s(u)}finally{c&&clearTimeout(c)}if((u.response.body||u.response._bodyInit)&&!Ny.has(u.response.status)&&u.options.method!=="HEAD"){const d=(u.options.parseResponse?"json":u.options.responseType)||Ty(u.response.headers.get("content-type")||"");switch(d){case"json":{const p=await u.response.text(),g=u.options.parseResponse||Zs;u.response._data=g(p);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[d]()}}return u.options.onResponse&&await As(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await As(u,u.options.onResponseError),await s(u)):u.response},i=async function(l,f){return(await o(l,f))._data};return i.raw=o,i.native=(...a)=>t(...a),i.create=(a={},l={})=>uh({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const no=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Iy=no.fetch?(...e)=>no.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Oy=no.Headers,Ly=no.AbortController,My=uh({fetch:Iy,Headers:Oy,AbortController:Ly}),Dy=My,By=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},ro=By().app,Hy=()=>ro.baseURL,Fy=()=>ro.buildAssetsDir,Za=(...e)=>ih(fh(),Fy(),...e),fh=(...e)=>{const t=ro.cdnURL||ro.baseURL;return e.length?ih(t,...e):t};globalThis.__buildAssetsURL=Za,globalThis.__publicAssetsURL=fh;globalThis.$fetch||(globalThis.$fetch=Dy.create({baseURL:Hy()}));function Qi(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Qi(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const jy={run:e=>e()},Gy=()=>jy,hh=typeof console.createTask<"u"?console.createTask:Gy;function Uy(e,t){const n=t.shift(),r=hh(n);return e.reduce((s,o)=>s.then(()=>r.run(()=>o(...t))),Promise.resolve())}function Wy(e,t){const n=t.shift(),r=hh(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function pi(e,t){for(const n of[...e])n(t)}class zy{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const s=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!r.allowDeprecated){let i=o.message;i||(i=`${s} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,s=(...o)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...o));return r=this.hook(t,s),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const s of r)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Qi(t),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(t){const n=Qi(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Uy,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Wy,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&pi(this._before,s);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&s&&pi(this._after,s)}):(this._after&&s&&pi(this._after,s),o)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function dh(){return new zy}function Vy(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let s;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?s=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const o=()=>{if(s){const i=s.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=o();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>o(),set:(i,a)=>{a||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{r(i),t=i;try{return s?s.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},f=()=>t===i?l:void 0;Yi.add(f);try{const u=s?s.run(i,a):a();return n||(t=void 0),await u}finally{Yi.delete(f)}}}}function qy(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Vy({...e,...r})),t[n]}}}const so=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},pc="__unctx__",Ky=so[pc]||(so[pc]=qy()),ph=(e,t={})=>Ky.get(e,t),gc="__unctx_async_handlers__",Yi=so[gc]||(so[gc]=new Set);function gh(e){const t=[];for(const s of Yi){const o=s();o&&t.push(o)}const n=()=>{for(const s of t)s()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const Xy={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},tr={value:null,errorValue:null,deep:!0},Jy=null,Qy="#__nuxt",el="nuxt-app",mc=36e5,Yy="vite:preloadError";function mh(e=el){return ph(e,{asyncContext:!1})}const Zy="__nuxt_plugin";function e_(e){var s;let t=0;const n={_id:e.id||el||"nuxt-app",_scope:Np(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.16.0"},get vue(){return n.vueApp.version}},payload:Zn({...((s=e.ssrContext)==null?void 0:s.payload)||{},data:Zn({}),state:gn({}),once:new Set,_errors:Zn({})}),static:{data:{}},runWithContext(o){return n._scope.active&&!Ia()?n._scope.run(()=>yc(n,o)):yc(n,o)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Zn({}),_payloadRevivers:{},...e};{const o=window.__NUXT__;if(o)for(const i in o)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],o[i]);break;default:n.payload[i]=o[i]}}n.hooks=dh(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,i)=>{const a="$"+o;Es(n,a,i),Es(n.vueApp.config.globalProperties,a,i)},Es(n.vueApp,"$nuxt",n),Es(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(Yy,i=>{n.callHook("app:chunkError",{error:i.payload}),(n.isHydrating||i.payload.message.includes("Unable to preload CSS"))&&i.preventDefault()}),window.useNuxtApp||(window.useNuxtApp=Re);const o=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}function t_(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function n_(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function r_(e,t){const n=[],r=[],s=[],o=[];let i=0;async function a(l){var u;const f=((u=l.dependsOn)==null?void 0:u.filter(c=>t.some(h=>h._name===c)&&!n.includes(c)))??[];if(f.length>0)r.push([new Set(f),l]);else{const c=n_(e,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(r.map(async([h,d])=>{h.has(l._name)&&(h.delete(l._name),h.size===0&&(i++,await a(d)))})))});l.parallel?s.push(c.catch(h=>o.push(h))):await c}}for(const l of t)t_(e,l);for(const l of t)await a(l);if(await Promise.all(s),i)for(let l=0;l<i;l++)await Promise.all(s);if(o.length)throw o[0]}function Bt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Zy]:!0,_name:t})}function yc(e,t,n){const r=()=>t();return mh(e._id).set(e),e.vueApp.runWithContext(r)}function yh(e){var n;let t;return ms()&&(t=(n=Sr())==null?void 0:n.appContext.app.$nuxt),t||(t=mh(e).tryUse()),t||null}function Re(e){const t=yh(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function _r(e){return Re().$config}function Es(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function s_(e,t){return{ctx:{table:e},matchAll:n=>wh(n,e)}}function _h(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,_h(s)])):new Map(Object.entries(e[n]));return t}function o_(e){return s_(_h(e))}function wh(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[o,i]of _c(t.wildcard))(e===o||e.startsWith(o+"/"))&&r.push(i);for(const[o,i]of _c(t.dynamic))if(e.startsWith(o+"/")){const a="/"+e.slice(o.length).split("/").splice(2).join("/");r.push(...wh(a,i))}const s=t.static.get(e);return s&&r.push(s),r.filter(Boolean)}function _c(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function gi(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Zi(e,t,n=".",r){if(!gi(t))return Zi(e,{},n,r);const s=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const i=e[o];i!=null&&(r&&r(s,o,i,n)||(Array.isArray(i)&&Array.isArray(s[o])?s[o]=[...i,...s[o]]:gi(i)&&gi(s[o])?s[o]=Zi(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function i_(e){return(...t)=>t.reduce((n,r)=>Zi(n,r,"",e),{})}const a_=i_();function l_(e,t){try{return t in e}catch{return!1}}class ea extends Error{constructor(n,r={}){super(n,r);S(this,"statusCode",500);S(this,"fatal",!1);S(this,"unhandled",!1);S(this,"statusMessage");S(this,"data");S(this,"cause");r.cause&&!this.cause&&(this.cause=r.cause)}toJSON(){const n={message:this.message,statusCode:ta(this.statusCode,500)};return this.statusMessage&&(n.statusMessage=bh(this.statusMessage)),this.data!==void 0&&(n.data=this.data),n}}S(ea,"__h3_error__",!0);function c_(e){if(typeof e=="string")return new ea(e);if(u_(e))return e;const t=new ea(e.message??e.statusMessage??"",{cause:e.cause||e});if(l_(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=ta(e.statusCode,t.statusCode):e.status&&(t.statusCode=ta(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;bh(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function u_(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const f_=/[^\u0009\u0020-\u007E]/g;function bh(e=""){return e.replace(f_,"")}function ta(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const vh=Symbol("route"),Mt=()=>{var e;return(e=Re())==null?void 0:e.$router},Ch=()=>ms()?Hn(vh,Re()._route):Re()._route;const h_=()=>{try{if(Re()._processingMiddleware)return!0}catch{return!1}return!1},xh=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:"path"in e?na(e):Mt().resolve(e).href;if(t!=null&&t.open){const{target:l="_blank",windowFeatures:f={}}=t.open,u=Object.entries(f).filter(([c,h])=>h!==void 0).map(([c,h])=>`${c.toLowerCase()}=${h}`).join(", ");return open(n,l,u),Promise.resolve()}const r=Jt(n,{acceptRelative:!0}),s=(t==null?void 0:t.external)||r;if(s){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&gy(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=h_();if(!s&&o){if(t!=null&&t.replace){if(typeof e=="string"){const{pathname:l,search:f,hash:u}=lh(e);return{path:l,...f&&{query:Oo(f)},...u&&{hash:u},replace:!0}}return{...e,replace:!0}}return e}const i=Mt(),a=Re();return s?(a._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)};function na(e){return sh(e.path||"",e.query||{})+(e.hash||"")}const Sh="__nuxt_error",tl=()=>ja(Re().payload,"error"),d_=e=>{const t=Mo(e);try{const n=Re(),r=tl();n.hooks.callHook("app:error",t),r.value||(r.value=t)}catch{throw t}return t},p_=async(e={})=>{const t=Re(),n=tl();t.callHook("app:error:cleared",e),e.redirect&&await Mt().replace(e.redirect),n.value=Jy},g_=e=>!!e&&typeof e=="object"&&Sh in e,Mo=e=>{const t=c_(e);return Object.defineProperty(t,Sh,{value:!0,configurable:!1,writable:!1}),t};function wc(e){const t=y_(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let s=0;s<n.byteLength;s++)r.setUint8(s,t.charCodeAt(s));return n}const m_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function y_(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let s=0;s<e.length;s++)n<<=6,n|=m_.indexOf(e[s]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const __=-1,w_=-2,b_=-3,v_=-4,C_=-5,x_=-6;function S_(e,t){return k_(JSON.parse(e),t)}function k_(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function s(o,i=!1){if(o===__)return;if(o===b_)return NaN;if(o===v_)return 1/0;if(o===C_)return-1/0;if(o===x_)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const a=n[o];if(!a||typeof a!="object")r[o]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],f=t==null?void 0:t[l];if(f)return r[o]=f(s(a[1]));switch(l){case"Date":r[o]=new Date(a[1]);break;case"Set":const u=new Set;r[o]=u;for(let d=1;d<a.length;d+=1)u.add(s(a[d]));break;case"Map":const c=new Map;r[o]=c;for(let d=1;d<a.length;d+=2)c.set(s(a[d]),s(a[d+1]));break;case"RegExp":r[o]=new RegExp(a[1],a[2]);break;case"Object":r[o]=Object(a[1]);break;case"BigInt":r[o]=BigInt(a[1]);break;case"null":const h=Object.create(null);r[o]=h;for(let d=1;d<a.length;d+=2)h[a[d]]=s(a[d+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const d=globalThis[l],p=a[1],g=wc(p),y=new d(g);r[o]=y;break}case"ArrayBuffer":{const d=a[1],p=wc(d);r[o]=p;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);r[o]=l;for(let f=0;f<a.length;f+=1){const u=a[f];u!==w_&&(l[f]=s(u))}}else{const l={};r[o]=l;for(const f in a){const u=a[f];l[f]=s(u)}}return r[o]}return s(0)}const A_=new Set(["link","style","script","noscript"]),E_=new Set(["title","titleTemplate","script","style","noscript"]),bc=new Set(["base","meta","link","style","script","noscript"]),T_=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),R_=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),P_=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),$_=new Set(["templateParams","htmlAttrs","bodyAttrs"]),N_=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);const I_=["name","property","http-equiv"];function kh(e){const t=e.split(":")[1];return N_.has(t)}function ra(e){const{props:t,tag:n}=e;if(R_.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const r of I_)if(t[r]!==void 0)return`${n}:${t[r]}`}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(E_.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function vc(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([r,s])=>`${r}:${String(s)}`).join(",")}`}function oo(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let s;if(t&&(s=t(n,e)),Array.isArray(s))return s.map(o=>oo(o,t));if((s==null?void 0:s.constructor)===Object){const o={};for(const i of Object.keys(s))o[i]=oo(s[i],t,i);return o}return s}function O_(e,t){const n=e==="style"?new Map:new Set;function r(s){const o=s.trim();if(o)if(e==="style"){const[i,...a]=o.split(":").map(l=>l.trim());i&&a.length&&n.set(i,a.join(":"))}else o.split(" ").filter(Boolean).forEach(i=>n.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(s=>r(s)):t&&typeof t=="object"&&Object.entries(t).forEach(([s,o])=>{o&&o!=="false"&&(e==="style"?n.set(s.trim(),o):r(s))}),n}function Ah(e,t){return e.props=e.props||{},t&&Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=O_(n,r);return}if(P_.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let i=t.type;if(t.type||(i="application/json"),!(i!=null&&i.endsWith("json"))&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[n]=JSON.stringify(r)}else e[n]=r;return}const s=String(r),o=n.startsWith("data-");s==="true"||s===""?e.props[n]=o?"true":!0:!r&&o&&s==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e}function L_(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=Ah({tag:e,props:{}},n);return r.key&&A_.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(s=>({...r,props:{...r.props,content:s}})):r}function M_(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(s,o)=>{for(let i=0;i<t.length;i++)o=t[i](s,o);return o};e=n(void 0,e);const r=[];return e=oo(e,n),Object.entries(e||{}).forEach(([s,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])r.push(L_(s,i))}),r.flat()}const sa=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Cc={base:-10,title:10},D_={critical:-8,high:-1,low:2},xc={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},B_=/@import/,Pr=e=>e===""||e===!0;function H_(e,t){var o;if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=D_[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:xc;if(t.tag in Cc)n=Cc[t.tag];else if(t.tag==="meta"){const i=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;i&&(n=xc.meta[i])}else t.tag==="link"&&t.props.rel?n=s.link[t.props.rel]:t.tag==="script"?Pr(t.props.async)?n=s.script.async:t.props.src&&!Pr(t.props.defer)&&!Pr(t.props.async)&&t.props.type!=="module"&&!((o=t.props.type)!=null&&o.endsWith("json"))?n=s.script.sync:Pr(t.props.defer)&&t.props.src&&!Pr(t.props.async)&&(n=s.script.defer):t.tag==="style"&&(n=t.innerHTML&&B_.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function Sc(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function F_(e={}){var a;const t=dh();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,s=new Map,o=[],i={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:l=>Sc(i,l),push(l,f){const u={...f||{}};delete u.head;const c=u._index??i._entryCount++,h={_i:c,input:l,options:u},d={_poll(p=!1){i.dirty=!0,!p&&o.push(c),t.callHook("entries:updated",i)},dispose(){r.delete(c)&&d._poll(!0)},patch(p){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(h.input=p,r.set(c,h),d._poll())}};return d.patch(l),d},async resolveTags(){var d;const l={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",l);o.length;){const p=o.shift(),g=r.get(p);if(g){const y={tags:M_(g.input,e.propResolvers||[]).map(_=>Object.assign(_,g.options)),entry:g};await t.callHook("entries:normalize",y),g._tags=y.tags.map((_,v)=>(_._w=H_(i,_),_._p=(g._i<<10)+v,_._d=ra(_),_))}}let f=!1;l.entries.flatMap(p=>(p._tags||[]).map(g=>({...g,props:{...g.props}}))).sort(sa).reduce((p,g)=>{const y=String(g._d||g._p);if(!p.has(y))return p.set(y,g);const _=p.get(y);if(((g==null?void 0:g.tagDuplicateStrategy)||($_.has(g.tag)?"merge":null)||(g.key&&g.key===_.key?"merge":null))==="merge"){const m={..._.props};Object.entries(g.props).forEach(([b,C])=>m[b]=b==="style"?new Map([..._.props.style||new Map,...C]):b==="class"?new Set([..._.props.class||new Set,...C]):C),p.set(y,{...g,props:m})}else g._p>>10===_._p>>10&&kh(g._d)?(p.set(y,Object.assign([...Array.isArray(_)?_:[_],g],g)),f=!0):(g._w===_._w?g._p>_._p:(g==null?void 0:g._w)<(_==null?void 0:_._w))&&p.set(y,g);return p},l.tagMap);const u=l.tagMap.get("title"),c=l.tagMap.get("titleTemplate");if(i._title=u==null?void 0:u.textContent,c){const p=c==null?void 0:c.textContent;if(i._titleTemplate=typeof p=="string"?p:void 0,p){let g=typeof p=="function"?p(u==null?void 0:u.textContent):p;typeof g=="string"&&!i.plugins.has("template-params")&&(g=g.replace("%s",(u==null?void 0:u.textContent)||"")),u?g===null?l.tagMap.delete("title"):l.tagMap.set("title",{...u,textContent:g}):(c.tag="title",c.textContent=g)}}l.tags=Array.from(l.tagMap.values()),f&&(l.tags=l.tags.flat().sort(sa)),await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l);const h=[];for(const p of l.tags){const{innerHTML:g,tag:y,props:_}=p;if(T_.has(y)&&!(Object.keys(_).length===0&&!p.innerHTML&&!p.textContent)&&!(y==="meta"&&!_.content&&!_["http-equiv"]&&!_.charset)){if(y==="script"&&g){if((d=_.type)!=null&&d.endsWith("json")){const v=typeof g=="string"?g:JSON.stringify(g);p.innerHTML=v.replace(/</g,"\\u003C")}else typeof g=="string"&&(p.innerHTML=g.replace(new RegExp(`</${y}`,"g"),`<\\/${y}`));p._d=ra(p)}h.push(p)}}return h}};return((e==null?void 0:e.plugins)||[]).forEach(l=>Sc(i,l)),i.hooks.callHook("init",i),(a=e.init)==null||a.forEach(l=>l&&i.push(l)),i}const rn="%separator",j_=new RegExp(`${rn}(?:\\s*${rn})*`,"g");function G_(e,t,n=!1){var s;let r;if(t==="s"||t==="pageTitle")r=e.pageTitle;else if(t.includes(".")){const o=t.indexOf(".");r=(s=e[t.substring(0,o)])==null?void 0:s[t.substring(o+1)]}else r=e[t];if(r!==void 0)return n?(r||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):r||""}function Ts(e,t,n,r=!1){if(typeof e!="string"||!e.includes("%"))return e;let s=e;try{s=decodeURI(e)}catch{}const o=s.match(/%\w+(?:\.\w+)?/g);if(!o)return e;const i=e.includes(rn);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===rn||!o.includes(a))return a;const l=G_(t,a.slice(1),r);return l!==void 0?l:a}).trim(),i&&(e.endsWith(rn)&&(e=e.slice(0,-rn.length)),e.startsWith(rn)&&(e=e.slice(rn.length)),e=e.replace(j_,n||"").trim()),e}const kc=e=>e.includes(":key")?e:e.split(":").join(":key:"),U_={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const n of e.tags){const r=n.tagPriority;if(!r)continue;const s=String(r);if(s.startsWith("before:")){const o=kc(s.slice(7)),i=e.tagMap.get(o);i&&(typeof i.tagPriority=="number"&&(n.tagPriority=i.tagPriority),n._p=i._p-1,t=!0)}else if(s.startsWith("after:")){const o=kc(s.slice(6)),i=e.tagMap.get(o);i&&(typeof i.tagPriority=="number"&&(n.tagPriority=i.tagPriority),n._p=i._p+1,t=!0)}}t&&(e.tags=e.tags.sort(sa))}}},W_={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function oa(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(n=>oa(n)));if((e==null?void 0:e.constructor)===Object){const n={};for(const r of Object.keys(e))n[r]=await oa(e[r]);return n}return e}const z_={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const n in e.entries)e.entries[n]._promisesProcessed||t.push(oa(e.entries[n].input).then(r=>{e.entries[n].input=r,e.entries[n]._promisesProcessed=!0}));await Promise.all(t)}}},V_={meta:"content",link:"href",htmlAttrs:"lang"},q_=["innerHTML","textContent"],K_=e=>({key:"template-params",hooks:{"entries:normalize":t=>{var r,s,o;const n=((s=(r=t.tags.filter(i=>i.tag==="templateParams"&&i.mode==="server"))==null?void 0:r[0])==null?void 0:s.props)||{};Object.keys(n).length&&(e._ssrPayload={templateParams:{...((o=e._ssrPayload)==null?void 0:o.templateParams)||{},...n}})},"tags:resolve":({tagMap:t,tags:n})=>{var o;const r=((o=t.get("templateParams"))==null?void 0:o.props)||{},s=r.separator||"|";delete r.separator,r.pageTitle=Ts(r.pageTitle||e._title||"",r,s);for(const i of n){if(i.processTemplateParams===!1)continue;const a=V_[i.tag];if(a&&typeof i.props[a]=="string")i.props[a]=Ts(i.props[a],r,s);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const l of q_)typeof i[l]=="string"&&(i[l]=Ts(i[l],r,s,i.tag==="script"&&i.props.type.endsWith("json")))}e._templateParams=r,e._separator=s},"tags:afterResolve":({tagMap:t})=>{const n=t.get("title");n!=null&&n.textContent&&n.processTemplateParams!==!1&&(n.textContent=Ts(n.textContent,e._templateParams,e._separator))}}}),X_=(e,t)=>Te(t)?Qr(t):t,nl="usehead";function J_(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(nl,e)}}.install}function Q_(){if(ms()){const e=Hn(nl);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function Y_(e,t={}){const n=t.head||Q_();return n.ssr?n.push(e||{},t):Z_(n,e,t)}function Z_(e,t,n={}){const r=_e(!1);let s;return Kg(()=>{const i=r.value?{}:oo(t,X_);s?s.patch(i):s=e.push(i,n)}),Sr()&&(Va(()=>{s.dispose()}),df(()=>{r.value=!0}),hf(()=>{r.value=!1})),s}function ew(e){var n;const t=e||yh();return((n=t==null?void 0:t.ssrContext)==null?void 0:n.head)||(t==null?void 0:t.runWithContext(()=>{if(ms())return Hn(nl)}))}function tw(e,t={}){const n=ew(t.nuxt);if(n)return Y_(e,{head:n,...t})}const nw="modulepreload",rw=function(e,t){return new URL(e,t).href},Ac={},nr=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=Promise.allSettled(n.map(f=>{if(f=rw(f,r),f in Ac)return;Ac[f]=!0;const u=f.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let p=i.length-1;p>=0;p--){const g=i[p];if(g.href===f&&(!u||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":nw,u||(d.as="script"),d.crossOrigin="",d.href=f,l&&d.setAttribute("nonce",l),document.head.appendChild(d),u)return new Promise((p,g)=>{d.addEventListener("load",p),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};let Hs,Fs;function sw(){return Hs=$fetch(Za(`builds/meta/${_r().app.buildId}.json`),{responseType:"json"}),Hs.then(e=>{Fs=o_(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),Hs}function Do(){return Hs||sw()}async function rl(e){const t=typeof e=="string"?e:e.path;if(await Do(),!Fs)return console.error("[nuxt] Error creating app manifest matcher.",Fs),{};try{return a_({},...Fs.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function Ec(e,t={}){const n=await iw(e,t),r=Re(),s=r._payloadCache||(r._payloadCache={});return n in s?s[n]||null:(s[n]=Th(e).then(o=>o?Eh(n).then(i=>i||(delete s[n],null)):(s[n]=null,null)),s[n])}const ow="_payload.json";async function iw(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Jt(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=_r(),s=t.hash||(t.fresh?Date.now():r.app.buildId),o=r.app.cdnURL,i=o&&await Th(e)?o:r.app.baseURL;return ys(i,n.pathname,ow+(s?`?${s}`:""))}async function Eh(e){const t=fetch(e).then(n=>n.text().then(Rh));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function Th(e=Ch().path){const t=Re();return e=Lo(e),(await Do()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const r=await rl({path:e});return!!r.prerender&&!r.redirect})}let kn=null;async function aw(){var r;if(kn)return kn;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Rh(e.textContent||""),n=e.dataset.src?await Eh(e.dataset.src):void 0;return kn={...t,...n,...window.__NUXT__},(r=kn.config)!=null&&r.public&&(kn.config.public=gn(kn.config.public)),kn}async function Rh(e){return await S_(e,Re()._payloadRevivers)}function lw(e,t){Re()._payloadRevivers[e]=t}const cw=[["NuxtError",e=>Mo(e)],["EmptyShallowRef",e=>Bi(e==="_"?void 0:e==="0n"?BigInt(0):Zs(e))],["EmptyRef",e=>_e(e==="_"?void 0:e==="0n"?BigInt(0):Zs(e))],["ShallowRef",e=>Bi(e)],["ShallowReactive",e=>Zn(e)],["Ref",e=>_e(e)],["Reactive",e=>gn(e)]],uw=Bt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of cw)lw(r,s);Object.assign(e.payload,([t,n]=gh(()=>e.runWithContext(aw)),t=await t,n(),t)),window.__NUXT__=e.payload}});async function sl(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async s=>{var d;const o=new Map,i=new Promise(p=>{e.resolveTags().then(g=>{p(g.map(y=>{const _=o.get(y._d)||0,v={tag:y,id:(_?`${y._d}:${_}`:y._d)||vc(y),shouldRender:!0};return y._d&&kh(y._d)&&o.set(y._d,_+1),v}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const p of["body","head"]){const g=(d=n[p])==null?void 0:d.children;for(const y of g){const _=y.tagName.toLowerCase();if(!bc.has(_))continue;const v=Ah({tag:_,props:{}},{innerHTML:y.innerHTML,...y.getAttributeNames().reduce((m,b)=>(m[b]=y.getAttribute(b),m),{})||{}});if(v.key=y.getAttribute("data-hid")||void 0,v._d=ra(v)||vc(v),a.elMap.has(v._d)){let m=1,b=v._d;for(;a.elMap.has(b);)b=`${v._d}:${m++}`;a.elMap.set(b,y)}else a.elMap.set(v._d,y)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(p,g,y){const _=`${p}:${g}`;a.sideEffects[_]=y,delete a.pendingSideEffects[_]}function f({id:p,$el:g,tag:y}){const _=y.tag.endsWith("Attrs");a.elMap.set(p,g),_||(y.textContent&&y.textContent!==g.textContent&&(g.textContent=y.textContent),y.innerHTML&&y.innerHTML!==g.innerHTML&&(g.innerHTML=y.innerHTML),l(p,"el",()=>{g==null||g.remove(),a.elMap.delete(p)}));for(const v in y.props){if(!Object.hasOwn(y.props,v))continue;const m=y.props[v];if(v.startsWith("on")&&typeof m=="function"){const C=g==null?void 0:g.dataset;if(C&&C[`${v}fired`]){const E=v.slice(0,-5);m.call(g,new Event(E.substring(2)))}g.getAttribute(`data-${v}`)!==""&&((y.tag==="bodyAttrs"?n.defaultView:g).addEventListener(v.substring(2),m.bind(g)),g.setAttribute(`data-${v}`,""));continue}const b=`attr:${v}`;if(v==="class"){if(!m)continue;for(const C of m)_&&l(p,`${b}:${C}`,()=>g.classList.remove(C)),!g.classList.contains(C)&&g.classList.add(C)}else if(v==="style"){if(!m)continue;for(const[C,E]of m)l(p,`${b}:${C}`,()=>{g.style.removeProperty(C)}),g.style.setProperty(C,E)}else m!==!1&&m!==null&&(g.getAttribute(v)!==m&&g.setAttribute(v,m===!0?"":String(m)),_&&l(p,b,()=>g.removeAttribute(v)))}}const u=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0},h=await i;for(const p of h){const{tag:g,shouldRender:y,id:_}=p;if(y){if(g.tag==="title"){n.title=g.textContent,l("title","",()=>n.title=a.title);continue}p.$el=p.$el||a.elMap.get(_),p.$el?f(p):bc.has(g.tag)&&u.push(p)}}for(const p of u){const g=p.tag.tagPosition||"head";p.$el=n.createElement(p.tag.tag),f(p),c[g]=c[g]||n.createDocumentFragment(),c[g].appendChild(p.$el)}for(const p of h)await e.hooks.callHook("dom:renderTag",p,n,l);c.head&&n.head.appendChild(c.head),c.bodyOpen&&n.body.insertBefore(c.bodyOpen,n.body.firstChild),c.bodyClose&&n.body.appendChild(c.bodyClose);for(const p in a.pendingSideEffects)a.pendingSideEffects[p]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:h}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function fw(e={}){var r,s,o;const t=((r=e.domOptions)==null?void 0:r.render)||sl;e.document=e.document||(typeof window<"u"?document:void 0);const n=((o=(s=e.document)==null?void 0:s.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return F_({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function hw(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function dw(e={}){const t=fw({domOptions:{render:hw(()=>sl(t),gs)},...e});return t.install=J_(t),t}const pw={disableDefaults:!0,disableCapoSorting:!1,plugins:[W_,z_,K_,U_]},gw=Bt({name:"nuxt:head",enforce:"pre",setup(e){const t=dw(pw);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await sl(t)};t.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}}),mw=async e=>{let t,n;const r=([t,n]=gh(()=>rl({path:e.path})),t=await t,n(),t);if(r.redirect)return Jt(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},yw=[mw];function mi(e){typeof e=="object"&&(e=ch({pathname:e.path||"",search:th(e.query||{}),hash:e.hash||""}));const t=new URL(e.toString(),window.location.href);return{path:t.pathname,fullPath:e,query:Oo(t.search),hash:t.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:e}}const _w=Bt({name:"nuxt:router",enforce:"pre",setup(e){const t=yy(window.location.pathname,_r().app.baseURL)+window.location.search+window.location.hash,n=[],r={"navigate:before":[],"resolve:before":[],"navigate:after":[],error:[]},s=(c,h)=>(r[c].push(h),()=>r[c].splice(r[c].indexOf(h),1)),o=_r().app.baseURL,i=gn(mi(t));async function a(c,h){try{const d=mi(c);for(const p of r["navigate:before"]){const g=await p(d,i);if(g===!1||g instanceof Error)return;if(typeof g=="string"&&g.length)return a(g,!0)}for(const p of r["resolve:before"])await p(d,i);Object.assign(i,d),window.history[h?"replaceState":"pushState"]({},"",ys(o,d.fullPath)),e.isHydrating||await e.runWithContext(p_);for(const p of r["navigate:after"])await p(d,i)}catch(d){for(const p of r.error)await p(d)}}const f={currentRoute:je(()=>i),isReady:()=>Promise.resolve(),options:{},install:()=>Promise.resolve(),push:c=>a(c,!1),replace:c=>a(c,!0),back:()=>window.history.go(-1),go:c=>window.history.go(c),forward:()=>window.history.go(1),beforeResolve:c=>s("resolve:before",c),beforeEach:c=>s("navigate:before",c),afterEach:c=>s("navigate:after",c),onError:c=>s("error",c),resolve:mi,addRoute:(c,h)=>{n.push(h)},getRoutes:()=>n,hasRoute:c=>n.some(h=>h.name===c),removeRoute:c=>{const h=n.findIndex(d=>d.name===c);h!==-1&&n.splice(h,1)}};e.vueApp.component("RouterLink",Ze({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(c,{slots:h})=>{const d=()=>a(c.to,c.replace);return()=>{var g;const p=f.resolve(c.to);return c.custom?(g=h.default)==null?void 0:g.call(h,{href:c.to,navigate:d,route:p}):yr("a",{href:c.to,onClick:y=>(y.preventDefault(),d())},h)}}})),window.addEventListener("popstate",c=>{const h=c.target.location;f.replace(h.href.replace(h.origin,""))}),e._route=i,e._middleware||(e._middleware={global:[],named:{}});const u=e.payload.state._layout;return e.hooks.hookOnce("app:created",async()=>{f.beforeEach(async(c,h)=>{c.meta=gn(c.meta||{}),e.isHydrating&&u&&!mn(c.meta.layout)&&(c.meta.layout=u),e._processingMiddleware=!0;{const d=new Set([...yw,...e._middleware.global]);{const p=await e.runWithContext(()=>rl({path:c.path}));if(p.appMiddleware)for(const g in p.appMiddleware){const y=e._middleware.named[g];if(!y)return;p.appMiddleware[g]?d.add(y):d.delete(y)}}for(const p of d){const g=await e.runWithContext(()=>p(c,h));if(g!==!0&&(g||g===!1))return g}}}),f.afterEach(()=>{delete e._processingMiddleware}),await f.replace(t),vy(i.fullPath,t)||await e.runWithContext(()=>xh(i.fullPath))}),{provide:{route:i,router:f}}}});function ww(e=el){return ph(e,{asyncContext:!1})}const bw="__nuxt_plugin";function vw(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[bw]:!0,_name:t})}function Cw(e){var n;let t;return ms()&&(t=(n=Sr())==null?void 0:n.appContext.app.$nuxt),t||(t=ww(e).tryUse()),t||null}function xw(e){const t=Cw(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}const Sw="$s";function kw(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const s=Sw+n,o=xw(),i=ja(o.payload.state,s);if(i.value===void 0&&r){const a=r();if(Te(a))return o.payload.state[s]=a,a;i.value=a}return i}function Aw(e){typeof e.indexable<"u"&&(e.indexable=String(e.indexable)!=="false"),typeof e.trailingSlash<"u"&&!e.trailingSlash&&(e.trailingSlash=String(e.trailingSlash)!=="false"),e.url&&!Jt(String(e.url),{acceptRelative:!0,strict:!1})&&(e.url=wy(String(e.url)));const t=Object.keys(e).sort((r,s)=>r.localeCompare(s)),n={};for(const r of t)n[r]=e[r];return n}function Ew(e){const n=[];function r(o){if(!o||typeof o!="object"||Object.keys(o).length===0)return()=>{};o._context;const i={};for(const l in o){const f=o[l];typeof f<"u"&&f!==""&&(i[l]=f)}let a;return Object.keys(i).filter(l=>!l.startsWith("_")).length>0&&(a=n.push(i)),()=>{typeof a<"u"&&n.splice(a-1,1)}}function s(o){var a;const i={};o!=null&&o.debug&&(i._context={}),i._priority={};for(const l in n.sort((f,u)=>(f._priority||0)-(u._priority||0)))for(const f in n[l]){const u=f,c=o!=null&&o.resolveRefs?Qr(n[l][f]):n[l][f];!f.startsWith("_")&&typeof c<"u"&&c!==""&&(i[f]=c,typeof n[l]._priority<"u"&&n[l]._priority!==-1&&(i._priority[u]=n[l]._priority),o!=null&&o.debug&&(i._context[u]=((a=n[l]._context)==null?void 0:a[u])||n[l]._context||"anonymous"))}return o!=null&&o.skipNormalize?i:Aw(i)}return{stack:n,push:r,get:s}}const Tw=vw({name:"nuxt-site-config:init",enforce:"pre",async setup(e){var r;const t=Ew(),n=kw("site-config");{const s=n.value||window.__NUXT_SITE_CONFIG__||{};for(const o in s)o[0]!=="_"&&t.push({[o]:s[o],_priority:((r=s._priority)==null?void 0:r[o])||-1})}return{provide:{nuxtSiteConfig:t}}}}),ia=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Rw=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Bo=e=>{const t=Re();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{ia(()=>e())}):ia(()=>e())},Pw=Bt({name:"nuxt:payload",setup(e){Mt().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await Ec(t.path);r&&Object.assign(e.static.data,r.data)}),Bo(()=>{var t;e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await Ec(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(Do,1e3)})}}),$w=Bt(()=>{const e=Mt();Bo(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),Nw=Bt(e=>{let t;async function n(){const r=await Do();t&&clearTimeout(t),t=setTimeout(n,mc);try{const s=await $fetch(Za("builds/latest.json")+`?${Date.now()}`);s.id!==r.id&&e.hooks.callHook("app:manifest:update",s)}catch{}}Bo(()=>{t=setTimeout(n,mc)})});function Iw(e={}){const t=e.path||window.location.pathname;let n={};try{n=Zs(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Re().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const Ow=Bt({name:"nuxt:chunk-reload",setup(e){const t=Mt(),n=_r(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)});function s(o){const a="href"in o&&o.href[0]==="#"?n.app.baseURL+o.href:ys(n.app.baseURL,o.fullPath);Iw({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((o,i)=>{r.has(o)&&s(i)})}}),Lw=Bt({name:"nuxt:global-components"}),Mw=Bt(()=>{}),Dw=["top","right","bottom","left"],Tc=["start","end"],Rc=Dw.reduce((e,t)=>e.concat(t,t+"-"+Tc[0],t+"-"+Tc[1]),[]),ts=Math.min,Rn=Math.max,Bw={left:"right",right:"left",bottom:"top",top:"bottom"},Hw={start:"end",end:"start"};function aa(e,t,n){return Rn(e,ts(t,n))}function Un(e,t){return typeof e=="function"?e(t):e}function Dt(e){return e.split("-")[0]}function bt(e){return e.split("-")[1]}function Ph(e){return e==="x"?"y":"x"}function ol(e){return e==="y"?"height":"width"}function Gn(e){return["top","bottom"].includes(Dt(e))?"y":"x"}function il(e){return Ph(Gn(e))}function $h(e,t,n){n===void 0&&(n=!1);const r=bt(e),s=il(e),o=ol(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=ao(i)),[i,ao(i)]}function Fw(e){const t=ao(e);return[io(e),t,io(t)]}function io(e){return e.replace(/start|end/g,t=>Hw[t])}function jw(e,t,n){const r=["left","right"],s=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?o:i;default:return[]}}function Gw(e,t,n,r){const s=bt(e);let o=jw(Dt(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(io)))),o}function ao(e){return e.replace(/left|right|bottom|top/g,t=>Bw[t])}function Uw(e){return{top:0,right:0,bottom:0,left:0,...e}}function Nh(e){return typeof e!="number"?Uw(e):{top:e,right:e,bottom:e,left:e}}function jr(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Pc(e,t,n){let{reference:r,floating:s}=e;const o=Gn(t),i=il(t),a=ol(i),l=Dt(t),f=o==="y",u=r.x+r.width/2-s.width/2,c=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let d;switch(l){case"top":d={x:u,y:r.y-s.height};break;case"bottom":d={x:u,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:c};break;case"left":d={x:r.x-s.width,y:c};break;default:d={x:r.x,y:r.y}}switch(bt(t)){case"start":d[i]-=h*(n&&f?-1:1);break;case"end":d[i]+=h*(n&&f?-1:1);break}return d}const Ww=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}=n,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let f=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:c}=Pc(f,r,l),h=r,d={},p=0;for(let g=0;g<a.length;g++){const{name:y,fn:_}=a[g],{x:v,y:m,data:b,reset:C}=await _({x:u,y:c,initialPlacement:r,placement:h,strategy:s,middlewareData:d,rects:f,platform:i,elements:{reference:e,floating:t}});u=v??u,c=m??c,d={...d,[y]:{...d[y],...b}},C&&p<=50&&(p++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(f=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:u,y:c}=Pc(f,h,l)),g=-1)}return{x:u,y:c,placement:h,strategy:s,middlewareData:d}};async function Ho(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:c="floating",altBoundary:h=!1,padding:d=0}=Un(t,e),p=Nh(d),y=a[h?c==="floating"?"reference":"floating":c],_=jr(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:f,rootBoundary:u,strategy:l})),v=c==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,m=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),b=await(o.isElement==null?void 0:o.isElement(m))?await(o.getScale==null?void 0:o.getScale(m))||{x:1,y:1}:{x:1,y:1},C=jr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:m,strategy:l}):v);return{top:(_.top-C.top+p.top)/b.y,bottom:(C.bottom-_.bottom+p.bottom)/b.y,left:(_.left-C.left+p.left)/b.x,right:(C.right-_.right+p.right)/b.x}}const zw=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=t,{element:f,padding:u=0}=Un(e,t)||{};if(f==null)return{};const c=Nh(u),h={x:n,y:r},d=il(s),p=ol(d),g=await i.getDimensions(f),y=d==="y",_=y?"top":"left",v=y?"bottom":"right",m=y?"clientHeight":"clientWidth",b=o.reference[p]+o.reference[d]-h[d]-o.floating[p],C=h[d]-o.reference[d],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(f));let A=E?E[m]:0;(!A||!await(i.isElement==null?void 0:i.isElement(E)))&&(A=a.floating[m]||o.floating[p]);const B=b/2-C/2,H=A/2-g[p]/2-1,O=ts(c[_],H),K=ts(c[v],H),q=O,ne=A-g[p]-K,ee=A/2-g[p]/2+B,ce=aa(q,ee,ne),F=!l.arrow&&bt(s)!=null&&ee!==ce&&o.reference[p]/2-(ee<q?O:K)-g[p]/2<0,X=F?ee<q?ee-q:ee-ne:0;return{[d]:h[d]+X,data:{[d]:ce,centerOffset:ee-ce-X,...F&&{alignmentOffset:X}},reset:F}}});function Vw(e,t,n){return(e?[...n.filter(s=>bt(s)===e),...n.filter(s=>bt(s)!==e)]:n.filter(s=>Dt(s)===s)).filter(s=>e?bt(s)===e||(t?io(s)!==s:!1):!0)}const qw=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,s;const{rects:o,middlewareData:i,placement:a,platform:l,elements:f}=t,{crossAxis:u=!1,alignment:c,allowedPlacements:h=Rc,autoAlignment:d=!0,...p}=Un(e,t),g=c!==void 0||h===Rc?Vw(c||null,d,h):h,y=await Ho(t,p),_=((n=i.autoPlacement)==null?void 0:n.index)||0,v=g[_];if(v==null)return{};const m=$h(v,o,await(l.isRTL==null?void 0:l.isRTL(f.floating)));if(a!==v)return{reset:{placement:g[0]}};const b=[y[Dt(v)],y[m[0]],y[m[1]]],C=[...((r=i.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:b}],E=g[_+1];if(E)return{data:{index:_+1,overflows:C},reset:{placement:E}};const A=C.map(O=>{const K=bt(O.placement);return[O.placement,K&&u?O.overflows.slice(0,2).reduce((q,ne)=>q+ne,0):O.overflows[0],O.overflows]}).sort((O,K)=>O[1]-K[1]),H=((s=A.filter(O=>O[2].slice(0,bt(O[0])?2:3).every(K=>K<=0))[0])==null?void 0:s[0])||A[0][0];return H!==a?{data:{index:_+1,overflows:C},reset:{placement:H}}:{}}}},Kw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:f}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...y}=Un(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const _=Dt(s),v=Gn(a),m=Dt(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(f.floating)),C=h||(m||!g?[ao(a)]:Fw(a)),E=p!=="none";!h&&E&&C.push(...Gw(a,g,p,b));const A=[a,...C],B=await Ho(t,y),H=[];let O=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&H.push(B[_]),c){const ee=$h(s,i,b);H.push(B[ee[0]],B[ee[1]])}if(O=[...O,{placement:s,overflows:H}],!H.every(ee=>ee<=0)){var K,q;const ee=(((K=o.flip)==null?void 0:K.index)||0)+1,ce=A[ee];if(ce)return{data:{index:ee,overflows:O},reset:{placement:ce}};let F=(q=O.filter(X=>X.overflows[0]<=0).sort((X,G)=>X.overflows[1]-G.overflows[1])[0])==null?void 0:q.placement;if(!F)switch(d){case"bestFit":{var ne;const X=(ne=O.filter(G=>{if(E){const be=Gn(G.placement);return be===v||be==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(be=>be>0).reduce((be,zn)=>be+zn,0)]).sort((G,be)=>G[1]-be[1])[0])==null?void 0:ne[0];X&&(F=X);break}case"initialPlacement":F=a;break}if(s!==F)return{reset:{placement:F}}}return{}}}};async function Xw(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=Dt(n),a=bt(n),l=Gn(n)==="y",f=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,c=Un(t,e);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&typeof p=="number"&&(d=a==="end"?p*-1:p),l?{x:d*u,y:h*f}:{x:h*f,y:d*u}}const Jw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:i,middlewareData:a}=t,l=await Xw(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:i}}}}},Qw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:y=>{let{x:_,y:v}=y;return{x:_,y:v}}},...l}=Un(e,t),f={x:n,y:r},u=await Ho(t,l),c=Gn(Dt(s)),h=Ph(c);let d=f[h],p=f[c];if(o){const y=h==="y"?"top":"left",_=h==="y"?"bottom":"right",v=d+u[y],m=d-u[_];d=aa(v,d,m)}if(i){const y=c==="y"?"top":"left",_=c==="y"?"bottom":"right",v=p+u[y],m=p-u[_];p=aa(v,p,m)}const g=a.fn({...t,[h]:d,[c]:p});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:o,[c]:i}}}}}},Yw=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:o,platform:i,elements:a}=t,{apply:l=()=>{},...f}=Un(e,t),u=await Ho(t,f),c=Dt(s),h=bt(s),d=Gn(s)==="y",{width:p,height:g}=o.floating;let y,_;c==="top"||c==="bottom"?(y=c,_=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(_=c,y=h==="end"?"top":"bottom");const v=g-u.top-u.bottom,m=p-u.left-u.right,b=ts(g-u[y],v),C=ts(p-u[_],m),E=!t.middlewareData.shift;let A=b,B=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(B=m),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=v),E&&!h){const O=Rn(u.left,0),K=Rn(u.right,0),q=Rn(u.top,0),ne=Rn(u.bottom,0);d?B=p-2*(O!==0||K!==0?O+K:Rn(u.left,u.right)):A=g-2*(q!==0||ne!==0?q+ne:Rn(u.top,u.bottom))}await l({...t,availableWidth:B,availableHeight:A});const H=await i.getDimensions(a.floating);return p!==H.width||g!==H.height?{reset:{rects:!0}}:{}}}};function ft(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function It(e){return ft(e).getComputedStyle(e)}const $c=Math.min,Gr=Math.max,lo=Math.round;function Ih(e){const t=It(e);let n=parseFloat(t.width),r=parseFloat(t.height);const s=e.offsetWidth,o=e.offsetHeight,i=lo(n)!==s||lo(r)!==o;return i&&(n=s,r=o),{width:n,height:r,fallback:i}}function _n(e){return Lh(e)?(e.nodeName||"").toLowerCase():""}let Rs;function Oh(){if(Rs)return Rs;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Rs=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Rs):navigator.userAgent}function Ot(e){return e instanceof ft(e).HTMLElement}function hn(e){return e instanceof ft(e).Element}function Lh(e){return e instanceof ft(e).Node}function Nc(e){return typeof ShadowRoot>"u"?!1:e instanceof ft(e).ShadowRoot||e instanceof ShadowRoot}function Fo(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=It(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function Zw(e){return["table","td","th"].includes(_n(e))}function la(e){const t=/firefox/i.test(Oh()),n=It(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!r&&r!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some(s=>n.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const o=n.contain;return o!=null&&o.includes(s)})}function Mh(){return!/^((?!chrome|android).)*safari/i.test(Oh())}function al(e){return["html","body","#document"].includes(_n(e))}function Dh(e){return hn(e)?e:e.contextElement}const Bh={x:1,y:1};function ur(e){const t=Dh(e);if(!Ot(t))return Bh;const n=t.getBoundingClientRect(),{width:r,height:s,fallback:o}=Ih(t);let i=(o?lo(n.width):n.width)/r,a=(o?lo(n.height):n.height)/s;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}function ns(e,t,n,r){var s,o;t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Dh(e);let l=Bh;t&&(r?hn(r)&&(l=ur(r)):l=ur(e));const f=a?ft(a):window,u=!Mh()&&n;let c=(i.left+(u&&((s=f.visualViewport)==null?void 0:s.offsetLeft)||0))/l.x,h=(i.top+(u&&((o=f.visualViewport)==null?void 0:o.offsetTop)||0))/l.y,d=i.width/l.x,p=i.height/l.y;if(a){const g=ft(a),y=r&&hn(r)?ft(r):r;let _=g.frameElement;for(;_&&r&&y!==g;){const v=ur(_),m=_.getBoundingClientRect(),b=getComputedStyle(_);m.x+=(_.clientLeft+parseFloat(b.paddingLeft))*v.x,m.y+=(_.clientTop+parseFloat(b.paddingTop))*v.y,c*=v.x,h*=v.y,d*=v.x,p*=v.y,c+=m.x,h+=m.y,_=ft(_).frameElement}}return{width:d,height:p,top:h,right:c+d,bottom:h+p,left:c,x:c,y:h}}function dn(e){return((Lh(e)?e.ownerDocument:e.document)||window.document).documentElement}function jo(e){return hn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Hh(e){return ns(dn(e)).left+jo(e).scrollLeft}function rs(e){if(_n(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nc(e)&&e.host||dn(e);return Nc(t)?t.host:t}function Fh(e){const t=rs(e);return al(t)?t.ownerDocument.body:Ot(t)&&Fo(t)?t:Fh(t)}function co(e,t){var n;t===void 0&&(t=[]);const r=Fh(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=ft(r);return s?t.concat(o,o.visualViewport||[],Fo(r)?r:[]):t.concat(r,co(r))}function Ic(e,t,n){return t==="viewport"?jr(function(r,s){const o=ft(r),i=dn(r),a=o.visualViewport;let l=i.clientWidth,f=i.clientHeight,u=0,c=0;if(a){l=a.width,f=a.height;const h=Mh();(h||!h&&s==="fixed")&&(u=a.offsetLeft,c=a.offsetTop)}return{width:l,height:f,x:u,y:c}}(e,n)):hn(t)?jr(function(r,s){const o=ns(r,!0,s==="fixed"),i=o.top+r.clientTop,a=o.left+r.clientLeft,l=Ot(r)?ur(r):{x:1,y:1};return{width:r.clientWidth*l.x,height:r.clientHeight*l.y,x:a*l.x,y:i*l.y}}(t,n)):jr(function(r){const s=dn(r),o=jo(r),i=r.ownerDocument.body,a=Gr(s.scrollWidth,s.clientWidth,i.scrollWidth,i.clientWidth),l=Gr(s.scrollHeight,s.clientHeight,i.scrollHeight,i.clientHeight);let f=-o.scrollLeft+Hh(r);const u=-o.scrollTop;return It(i).direction==="rtl"&&(f+=Gr(s.clientWidth,i.clientWidth)-a),{width:a,height:l,x:f,y:u}}(dn(e)))}function Oc(e){return Ot(e)&&It(e).position!=="fixed"?e.offsetParent:null}function Lc(e){const t=ft(e);let n=Oc(e);for(;n&&Zw(n)&&It(n).position==="static";)n=Oc(n);return n&&(_n(n)==="html"||_n(n)==="body"&&It(n).position==="static"&&!la(n))?t:n||function(r){let s=rs(r);for(;Ot(s)&&!al(s);){if(la(s))return s;s=rs(s)}return null}(e)||t}function e0(e,t,n){const r=Ot(t),s=dn(t),o=ns(e,!0,n==="fixed",t);let i={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed")if((_n(t)!=="body"||Fo(s))&&(i=jo(t)),Ot(t)){const l=ns(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else s&&(a.x=Hh(s));return{x:o.left+i.scrollLeft-a.x,y:o.top+i.scrollTop-a.y,width:o.width,height:o.height}}const t0={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=n==="clippingAncestors"?function(f,u){const c=u.get(f);if(c)return c;let h=co(f).filter(y=>hn(y)&&_n(y)!=="body"),d=null;const p=It(f).position==="fixed";let g=p?rs(f):f;for(;hn(g)&&!al(g);){const y=It(g),_=la(g);(p?_||d:_||y.position!=="static"||!d||!["absolute","fixed"].includes(d.position))?d=y:h=h.filter(v=>v!==g),g=rs(g)}return u.set(f,h),h}(t,this._c):[].concat(n),i=[...o,r],a=i[0],l=i.reduce((f,u)=>{const c=Ic(t,u,s);return f.top=Gr(c.top,f.top),f.right=$c(c.right,f.right),f.bottom=$c(c.bottom,f.bottom),f.left=Gr(c.left,f.left),f},Ic(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=Ot(n),o=dn(n);if(n===o)return t;let i={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((s||!s&&r!=="fixed")&&((_n(n)!=="body"||Fo(o))&&(i=jo(n)),Ot(n))){const f=ns(n);a=ur(n),l.x=f.x+n.clientLeft,l.y=f.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-i.scrollLeft*a.x+l.x,y:t.y*a.y-i.scrollTop*a.y+l.y}},isElement:hn,getDimensions:function(e){return Ot(e)?Ih(e):e.getBoundingClientRect()},getOffsetParent:Lc,getDocumentElement:dn,getScale:ur,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||Lc,o=this.getDimensions;return{reference:e0(t,await s(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>It(e).direction==="rtl"},n0=(e,t,n)=>{const r=new Map,s={platform:t0,...n},o={...s.platform,_c:r};return Ww(e,t,{...s,platform:o})};function jh(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?jh(e[n],t[n]):e[n]=t[n])}const vt={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function ss(e,t){let n=vt.themes[e]||{},r;do r=n[t],typeof r>"u"?n.$extend?n=vt.themes[n.$extend]||{}:(n=null,r=vt[t]):n=null;while(n);return r}function r0(e){const t=[e];let n=vt.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=vt.themes[n.$extend]||{}):n=null;while(n);return t.map(r=>`v-popper--theme-${r}`)}function Mc(e){const t=[e];let n=vt.themes[e]||{};do n.$extend?(t.push(n.$extend),n=vt.themes[n.$extend]||{}):n=null;while(n);return t}let wr=!1;if(typeof window<"u"){wr=!1;try{const e=Object.defineProperty({},"passive",{get(){wr=!0}});window.addEventListener("test",null,e)}catch{}}let Gh=!1;typeof window<"u"&&typeof navigator<"u"&&(Gh=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Uh=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Dc={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Bc={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Hc(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function yi(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const yt=[];let An=null;const Fc={};function jc(e){let t=Fc[e];return t||(t=Fc[e]=[]),t}let ca=function(){};typeof window<"u"&&(ca=window.Element);function le(e){return function(t){return ss(t.theme,e)}}const _i="__floating-vue__popper",Wh=()=>Ze({name:"VPopper",provide(){return{[_i]:{parentPopper:this}}},inject:{[_i]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:le("disabled")},positioningDisabled:{type:Boolean,default:le("positioningDisabled")},placement:{type:String,default:le("placement"),validator:e=>Uh.includes(e)},delay:{type:[String,Number,Object],default:le("delay")},distance:{type:[Number,String],default:le("distance")},skidding:{type:[Number,String],default:le("skidding")},triggers:{type:Array,default:le("triggers")},showTriggers:{type:[Array,Function],default:le("showTriggers")},hideTriggers:{type:[Array,Function],default:le("hideTriggers")},popperTriggers:{type:Array,default:le("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:le("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:le("popperHideTriggers")},container:{type:[String,Object,ca,Boolean],default:le("container")},boundary:{type:[String,ca],default:le("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:le("strategy")},autoHide:{type:[Boolean,Function],default:le("autoHide")},handleResize:{type:Boolean,default:le("handleResize")},instantMove:{type:Boolean,default:le("instantMove")},eagerMount:{type:Boolean,default:le("eagerMount")},popperClass:{type:[String,Array,Object],default:le("popperClass")},computeTransformOrigin:{type:Boolean,default:le("computeTransformOrigin")},autoMinSize:{type:Boolean,default:le("autoMinSize")},autoSize:{type:[Boolean,String],default:le("autoSize")},autoMaxSize:{type:Boolean,default:le("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:le("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:le("preventOverflow")},overflowPadding:{type:[Number,String],default:le("overflowPadding")},arrowPadding:{type:[Number,String],default:le("arrowPadding")},arrowOverflow:{type:Boolean,default:le("arrowOverflow")},flip:{type:Boolean,default:le("flip")},shift:{type:Boolean,default:le("shift")},shiftCrossAxis:{type:Boolean,default:le("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:le("noAutoFocus")},disposeTimeout:{type:Number,default:le("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[_i])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var r,s;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Jw({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(qw({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Qw({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Kw({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(zw({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:r,rects:s,middlewareData:o})=>{let i;const{centerOffset:a}=o.arrow;return r.startsWith("top")||r.startsWith("bottom")?i=Math.abs(a)>s.reference.width/2:i=Math.abs(a)>s.reference.height/2,{data:{overflow:i}}}}),this.autoMinSize||this.autoSize){const r=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:o,middlewareData:i})=>{var a;if((a=i.autoSize)!=null&&a.skip)return{};let l,f;return o.startsWith("top")||o.startsWith("bottom")?l=s.reference.width:f=s.reference.height,this.$_innerNode.style[r==="min"?"minWidth":r==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[r==="min"?"minHeight":r==="max"?"maxHeight":"height"]=f!=null?`${f}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(Yw({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:r,availableHeight:s})=>{this.$_innerNode.style.maxWidth=r!=null?`${r}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const n=await n0(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),An&&this.instantMove&&An.instantMove&&An!==this.parentPopper){An.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(An=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await yi(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...co(this.$_referenceNode),...co(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),r=n.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(r.left+n.offsetLeft),o=t.y+t.height/2-(r.top+n.offsetTop);this.result.transformOrigin=`${s}px ${o}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<yt.length;n++)t=yt[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}yt.push(this),document.body.classList.add("v-popper--some-open");for(const t of Mc(this.theme))jc(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await yi(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Hc(yt,this),yt.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of Mc(this.theme)){const r=jc(n);Hc(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}An===this&&(An=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await yi(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,Dc,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Dc,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,Bc,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Bc,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(r=>r.addEventListener(t,n,wr?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,r,s){let o=n;r!=null&&(o=typeof r=="function"?r(o):r),o.forEach(i=>{const a=t[i];a&&this.$_registerEventListeners(e,a,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:r,eventType:s,handler:o}=n;!e||e===s?r.forEach(i=>i.removeEventListener(s,o)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const r=e[n];r==null?t.removeAttribute(n):t.setAttribute(n,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Ur>=e.left&&Ur<=e.right&&Wr>=e.top&&Wr<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Ur-Yt,r=Wr-Zt,s=t.left+t.width/2-Yt+(t.top+t.height/2)-Zt+t.width+t.height,o=Yt+n*s,i=Zt+r*s;return Ps(Yt,Zt,o,i,t.left,t.top,t.left,t.bottom)||Ps(Yt,Zt,o,i,t.left,t.top,t.right,t.top)||Ps(Yt,Zt,o,i,t.right,t.top,t.right,t.bottom)||Ps(Yt,Zt,o,i,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Gh){const e=wr?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Gc(t,!0),e),document.addEventListener("touchend",t=>Uc(t,!0),e)}else window.addEventListener("mousedown",e=>Gc(e,!1),!0),window.addEventListener("click",e=>Uc(e,!1),!0);window.addEventListener("resize",o0)}function Gc(e,t){if(vt.autoHideOnMousedown)zh(e,t);else for(let n=0;n<yt.length;n++){const r=yt[n];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function Uc(e,t){vt.autoHideOnMousedown||zh(e,t)}function zh(e,t){const n={};for(let r=yt.length-1;r>=0;r--){const s=yt[r];try{const o=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!n[s.randomId]&&Wc(s,o,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&o){let a=s.parentPopper;for(;a;)n[a.randomId]=!0,a=a.parentPopper;return}let i=s.parentPopper;for(;i&&Wc(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function Wc(e,t,n){return n.closeAllPopover||n.closePopover&&t||s0(e,n)&&!t}function s0(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function o0(){for(let e=0;e<yt.length;e++)yt[e].$_computePosition()}let Yt=0,Zt=0,Ur=0,Wr=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Yt=Ur,Zt=Wr,Ur=e.clientX,Wr=e.clientY},wr?{passive:!0}:void 0);function Ps(e,t,n,r,s,o,i,a){const l=((i-s)*(t-o)-(a-o)*(e-s))/((a-o)*(n-e)-(i-s)*(r-t)),f=((n-e)*(t-o)-(r-t)*(e-s))/((a-o)*(n-e)-(i-s)*(r-t));return l>=0&&l<=1&&f>=0&&f<=1}const i0={extends:Wh()},Go=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};function a0(e,t,n,r,s,o){return Q(),he("div",{ref:"reference",class:Ie(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[ze(e.$slots,"default",Fu(Ja(e.slotData)))],2)}const l0=Go(i0,[["render",a0]]);function c0(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let js;function ua(){ua.init||(ua.init=!0,js=c0()!==-1)}var Uo={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ua(),gs(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",js&&this.$el.appendChild(e),e.data="about:blank",js||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!js&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const u0=hg();ug("data-v-b329ee4c");const f0={class:"resize-observer",tabindex:"-1"};fg();const h0=u0((e,t,n,r,s,o)=>(Q(),De("div",f0)));Uo.render=h0;Uo.__scopeId="data-v-b329ee4c";Uo.__file="src/components/ResizeObserver.vue";const Vh=(e="theme")=>({computed:{themeClass(){return r0(this[e])}}}),d0=Ze({name:"VPopperContent",components:{ResizeObserver:Uo},mixins:[Vh()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),p0=["id","aria-hidden","tabindex","data-popper-placement"],g0={ref:"inner",class:"v-popper__inner"},m0=W("div",{class:"v-popper__arrow-outer"},null,-1),y0=W("div",{class:"v-popper__arrow-inner"},null,-1),_0=[m0,y0];function w0(e,t,n,r,s,o){const i=yn("ResizeObserver");return Q(),he("div",{id:e.popperId,ref:"popover",class:Ie(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:On(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Um(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[W("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),W("div",{class:"v-popper__wrapper",style:On(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[W("div",g0,[e.mounted?(Q(),he(Ne,{key:0},[W("div",null,[ze(e.$slots,"default")]),e.handleResize?(Q(),De(i,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):Pt("",!0)],64)):Pt("",!0)],512),W("div",{ref:"arrow",class:"v-popper__arrow-container",style:On(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},_0,4)],4)],46,p0)}const qh=Go(d0,[["render",w0]]),Kh={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let fa=function(){};typeof window<"u"&&(fa=window.Element);const b0=Ze({name:"VPopperWrapper",components:{Popper:l0,PopperContent:qh},mixins:[Kh,Vh("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,fa,Boolean],default:void 0},boundary:{type:[String,fa],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function v0(e,t,n,r,s,o){const i=yn("PopperContent"),a=yn("Popper");return Q(),De(a,No({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:ue(({popperId:l,isShown:f,shouldMountContent:u,skipTransition:c,autoHide:h,show:d,hide:p,handleResize:g,onResize:y,classes:_,result:v})=>[ze(e.$slots,"default",{shown:f,show:d,hide:p}),z(i,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:f,mounted:u,"skip-transition":c,"auto-hide":h,"handle-resize":g,classes:_,result:v,onHide:p,onResize:y},{default:ue(()=>[ze(e.$slots,"popper",{shown:f,hide:p})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const ll=Go(b0,[["render",v0]]),C0={...ll,name:"VDropdown",vPopperTheme:"dropdown"},x0={...ll,name:"VMenu",vPopperTheme:"menu"},S0={...ll,name:"VTooltip",vPopperTheme:"tooltip"},k0=Ze({name:"VTooltipDirective",components:{Popper:Wh(),PopperContent:qh},mixins:[Kh],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ss(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ss(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(r=>this.onResult(t,r)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),A0=["innerHTML"],E0=["textContent"];function T0(e,t,n,r,s,o){const i=yn("PopperContent"),a=yn("Popper");return Q(),De(a,No({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:ue(({popperId:l,isShown:f,shouldMountContent:u,skipTransition:c,autoHide:h,hide:d,handleResize:p,onResize:g,classes:y,result:_})=>[z(i,{ref:"popperContent",class:Ie({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:f,mounted:u,"skip-transition":c,"auto-hide":h,"handle-resize":p,classes:y,result:_,onHide:d,onResize:g},{default:ue(()=>[e.html?(Q(),he("div",{key:0,innerHTML:e.finalContent},null,8,A0)):(Q(),he("div",{key:1,textContent:fn(e.finalContent)},null,8,E0))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const R0=Go(k0,[["render",T0]]),Xh="v-popper--has-tooltip";function P0(e,t){let n=e.placement;if(!n&&t)for(const r of Uh)t[r]&&(n=r);return n||(n=ss(e.theme||"tooltip","placement")),n}function Jh(e,t,n){let r;const s=typeof t;return s==="string"?r={content:t}:t&&s==="object"?r=t:r={content:!1},r.placement=P0(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let wi,os,$0=0;function N0(){if(wi)return;os=_e([]),wi=Yf({name:"VTooltipDirectiveApp",setup(){return{directives:os}},render(){return this.directives.map(t=>yr(R0,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),wi.mount(e)}function I0(e,t,n){N0();const r=_e(Jh(e,t,n)),s=_e(!1),o={id:$0++,options:r,shown:s};return os.value.push(o),e.classList&&e.classList.add(Xh),e.$_popper={options:r,item:o,show(){s.value=!0},hide(){s.value=!1}}}function Qh(e){if(e.$_popper){const t=os.value.indexOf(e.$_popper.item);t!==-1&&os.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Xh)}function zc(e,{value:t,modifiers:n}){const r=Jh(e,t,n);if(!r.content||ss(r.theme||"tooltip","disabled"))Qh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=r):s=I0(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const O0={beforeMount:zc,updated:zc,beforeUnmount(e){Qh(e)}};function Vc(e){e.addEventListener("mousedown",uo),e.addEventListener("click",uo),e.addEventListener("touchstart",Yh,wr?{passive:!0}:!1)}function qc(e){e.removeEventListener("mousedown",uo),e.removeEventListener("click",uo),e.removeEventListener("touchstart",Yh),e.removeEventListener("touchend",Zh),e.removeEventListener("touchcancel",ed)}function uo(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Yh(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",Zh),t.addEventListener("touchcancel",ed)}}function Zh(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function ed(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const L0={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&Vc(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>"u"||t?Vc(e):qc(e))},beforeUnmount(e){qc(e)}};function M0(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,jh(vt,t),e.directive("tooltip",O0),e.directive("close-popper",L0),e.component("VTooltip",S0),e.component("VDropdown",C0),e.component("VMenu",x0))}const D0={version:"5.2.2",install:M0,options:vt},B0=Bt(e=>{e.vueApp.use(D0)}),H0=[uw,gw,_w,Tw,Pw,$w,Nw,Ow,Lw,Mw,B0],cl=Ze({__name:"NIcon",props:{icon:{}},setup(e){return(t,n)=>(Q(),he("div",{class:Ie(["n-icon",t.icon])},null,2))}}),Wo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},F0={},j0={class:"n-badge"};function G0(e,t){return Q(),he("span",j0,[ze(e.$slots,"default")])}const U0=Wo(F0,[["render",G0]]);async function td(e,t=Mt()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(n)))return;const s=t._preloadPromises||(t._preloadPromises=[]);if(s.length>4)return Promise.all(s).then(()=>td(e,t));t._routePreloaded.add(n);const o=r.map(i=>{var a;return(a=i.components)==null?void 0:a.default}).filter(i=>typeof i=="function");for(const i of o){const a=Promise.resolve(i()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a)));s.push(a)}await Promise.all(s)}const W0=(...e)=>e.find(t=>t!==void 0);function z0(e){const t=e.componentName||"NuxtLink";function n(o){return typeof o=="string"&&o.startsWith("#")}function r(o,i){if(!o||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return o;if(typeof o=="string")return Kc(o,e.trailingSlash);const a="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:Kc(a,e.trailingSlash)}}function s(o){const i=Mt(),a=_r(),l=je(()=>!!o.target&&o.target!=="_self"),f=je(()=>{const y=o.to||o.href||"";return typeof y=="string"&&Jt(y,{acceptRelative:!0})}),u=yn("RouterLink"),c=u&&typeof u!="string"?u.useLink:void 0,h=je(()=>{if(o.external)return!0;const y=o.to||o.href||"";return typeof y=="object"?!1:y===""||f.value}),d=je(()=>{const y=o.to||o.href||"";return h.value?y:r(y,i.resolve)}),p=h.value||c==null?void 0:c({...o,to:d}),g=je(()=>{var y;if(!d.value||f.value||n(d.value))return d.value;if(h.value){const _=typeof d.value=="object"&&"path"in d.value?na(d.value):d.value,v=typeof _=="object"?i.resolve(_).href:_;return r(v,i.resolve)}return typeof d.value=="object"?((y=i.resolve(d.value))==null?void 0:y.href)??null:r(ys(a.app.baseURL,d.value),i.resolve)});return{to:d,hasTarget:l,isAbsoluteUrl:f,isExternal:h,href:g,isActive:(p==null?void 0:p.isActive)??je(()=>d.value===i.currentRoute.value.path),isExactActive:(p==null?void 0:p.isExactActive)??je(()=>d.value===i.currentRoute.value.path),route:(p==null?void 0:p.route)??je(()=>i.resolve(d.value)),async navigate(y){await xh(g.value,{replace:o.replace,external:h.value||l.value})}}}return Ze({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},useLink:s,setup(o,{slots:i}){const a=Mt(),{to:l,href:f,navigate:u,isExternal:c,hasTarget:h,isAbsoluteUrl:d}=s(o),p=_e(!1),g=_e(null),y=m=>{var b;g.value=o.custom?(b=m==null?void 0:m.$el)==null?void 0:b.nextElementSibling:m==null?void 0:m.$el};function _(m){var b,C;return!p.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===m:((b=o.prefetchOn)==null?void 0:b[m])??((C=e.prefetchOn)==null?void 0:C[m]))&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!K0()}async function v(m=Re()){if(p.value)return;p.value=!0;const b=typeof l.value=="string"?l.value:c.value?na(l.value):a.resolve(l.value).fullPath,C=c.value?new URL(b,window.location.href).href:b;await Promise.all([m.hooks.callHook("link:prefetch",C).catch(()=>{}),!c.value&&!h.value&&td(l.value,a).catch(()=>{})])}if(_("visibility")){const m=Re();let b,C=null;mf(()=>{const E=V0();Bo(()=>{b=ia(()=>{var A;(A=g==null?void 0:g.value)!=null&&A.tagName&&(C=E.observe(g.value,async()=>{C==null||C(),C=null,await v(m)}))})})}),Va(()=>{b&&Rw(b),C==null||C(),C=null})}return()=>{var C;if(!c.value&&!h.value&&!n(l.value)){const E={ref:y,to:l.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(_("interaction")&&(E.onPointerenter=v.bind(null,void 0),E.onFocus=v.bind(null,void 0)),p.value&&(E.class=o.prefetchedClass||e.prefetchedClass),E.rel=o.rel||void 0),yr(yn("RouterLink"),E,i.default)}const m=o.target||null,b=W0(o.noRel?"":o.rel,e.externalRelAttribute,d.value||h.value?"noopener noreferrer":"")||null;return o.custom?i.default?i.default({href:f.value,navigate:u,prefetch:v,get route(){if(!f.value)return;const E=new URL(f.value,window.location.href);return{path:E.pathname,fullPath:E.pathname,get query(){return Oo(E.search)},hash:E.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:f.value}},rel:b,target:m,isExternal:c.value||h.value,isActive:!1,isExactActive:!1}):null:yr("a",{ref:g,href:f.value||null,rel:b,target:m},(C=i.default)==null?void 0:C.call(i))}}})}const ul=z0(Xy);function Kc(e,t){const n=t==="append"?to:Lo;return Jt(e)&&!e.startsWith("http")?e:n(e,!0)}function V0(){const e=Re();if(e._observer)return e._observer;let t=null;const n=new Map,r=(o,i)=>(t||(t=new IntersectionObserver(a=>{for(const l of a){const f=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&f&&f()}})),n.set(o,i),t.observe(o),()=>{n.delete(o),t==null||t.unobserve(o),n.size===0&&(t==null||t.disconnect(),t=null)});return e._observer={observe:r}}const q0=/2g/;function K0(){const e=navigator.connection;return!!(e&&(e.saveData||q0.test(e.effectiveType)))}const X0={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},J0=Ze({__name:"NLink",props:{to:{},href:{},target:{},underline:{type:Boolean}},setup(e){const t=e,n=je(()=>t.href||t.to);return(r,s)=>{const o=ul;return Q(),De(o,No(n.value?{href:n.value,target:r.target,rel:r.target==="_blank"?"noopener noreferrer":null}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":n.value||r.underline}}),{default:ue(()=>[ze(r.$slots,"default"),n.value&&r.target==="_blank"?(Q(),he("div",X0)):Pt("",!0)]),_:3},16,["class"])}}}),Q0={},Y0={height:"22",viewBox:"0 0 1204 200",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z0(e,t){return Q(),he("svg",Y0,t[0]||(t[0]=[um('<path d="M377 200C379.16 200 381 198.209 381 196V103C381 103 386 112 395 127L434 194C435.785 197.74 439.744 200 443 200H470V50H443C441.202 50 439 51.4941 439 54V148L421 116L385 55C383.248 51.8912 379.479 50 376 50H350V200H377Z" fill="currentColor"></path><path d="M726 92H739C742.314 92 745 89.3137 745 86V60H773V92H800V116H773V159C773 169.5 778.057 174 787 174H800V200H783C759.948 200 745 185.071 745 160V116H726V92Z" fill="currentColor"></path><path d="M591 92V154C591 168.004 585.742 179.809 578 188C570.258 196.191 559.566 200 545 200C530.434 200 518.742 196.191 511 188C503.389 179.809 498 168.004 498 154V92H514C517.412 92 520.769 92.622 523 95C525.231 97.2459 526 98.5652 526 102V154C526 162.059 526.457 167.037 530 171C533.543 174.831 537.914 176 545 176C552.217 176 555.457 174.831 559 171C562.543 167.037 563 162.059 563 154V102C563 98.5652 563.769 96.378 566 94C567.96 91.9107 570.028 91.9599 573 92C573.411 92.0055 574.586 92 575 92H591Z" fill="currentColor"></path><path d="M676 144L710 92H684C680.723 92 677.812 93.1758 676 96L660 120L645 97C643.188 94.1758 639.277 92 636 92H611L645 143L608 200H634C637.25 200 640.182 196.787 642 194L660 167L679 195C680.818 197.787 683.75 200 687 200H713L676 144Z" fill="currentColor"></path><path d="M168 200H279C282.542 200 285.932 198.756 289 197C292.068 195.244 295.23 193.041 297 190C298.77 186.959 300.002 183.51 300 179.999C299.998 176.488 298.773 173.04 297 170.001L222 41C220.23 37.96 218.067 35.7552 215 34C211.933 32.2448 207.542 31 204 31C200.458 31 197.067 32.2448 194 34C190.933 35.7552 188.77 37.96 187 41L168 74L130 9.99764C128.228 6.95784 126.068 3.75491 123 2C119.932 0.245087 116.542 0 113 0C109.458 0 106.068 0.245087 103 2C99.9323 3.75491 96.7717 6.95784 95 9.99764L2 170.001C0.226979 173.04 0.00154312 176.488 1.90993e-06 179.999C-0.0015393 183.51 0.229648 186.959 2 190C3.77035 193.04 6.93245 195.244 10 197C13.0675 198.756 16.4578 200 20 200H90C117.737 200 137.925 187.558 152 164L186 105L204 74L259 168H186L168 200ZM89 168H40L113 42L150 105L125.491 147.725C116.144 163.01 105.488 168 89 168Z" fill="#00DC82"></path><path d="M892 200C881.746 200 873.788 197.911 866 194C858.212 189.959 851.543 184.169 847 177C842.587 169.7 840.389 161.646 840 152H868C868.649 159.039 870.717 163.959 875 168C879.413 172.041 885.861 174 893 174C899.62 174 904.106 172.737 908 170C912.024 167.263 914 164.084 914 159C914 155.48 913.336 152.086 911 150C908.793 147.784 906.375 146.173 903 145C899.625 143.827 894.23 142.564 888 141C878.784 138.784 870.971 136.477 865 134C859.159 131.393 854.283 127.605 850 122C845.717 116.395 844 108.777 844 99C844 91.5698 845.976 84.8659 850 79C854.024 73.1341 859.861 68.2589 867 65C874.139 61.6108 881.914 60 891 60C900.735 60 909.601 61.4805 917 65C924.528 68.5196 929.846 73.4823 934 80C938.283 86.5177 940.74 94.3967 941 103H913C912.481 97.5251 910.894 93.1285 907 90C903.106 86.7411 897.49 85 891 85C885.289 85 880.375 86.5233 877 89C873.625 91.4767 872 94.959 872 99C872 102.78 873.664 105.784 876 108C878.336 110.216 881.366 111.696 885 113C888.634 114.173 893.64 115.566 900 117C909.346 119.216 916.159 121.654 922 124C927.841 126.346 932.846 130.395 937 136C941.283 141.475 944 148.354 944 158C944 166.473 941.283 173.743 937 180C932.717 186.257 926.788 191.611 919 195C911.342 198.389 902.124 200 892 200Z" fill="#00DC82"></path><path d="M1056 200H961V60H1054V87H990V116H1041V141H990V173H1056V200Z" fill="#00DC82"></path><path d="M1134 200C1120.76 200 1108.64 196.996 1098 191C1087.49 184.873 1080.1 176.559 1074 166C1068.03 155.311 1065 143.296 1065 130C1065 116.704 1068.03 104.559 1074 94C1080.1 83.311 1088.49 74.9963 1099 69C1109.64 62.8734 1120.76 60 1134 60C1147.11 60 1159.49 62.8734 1170 69C1180.64 74.9963 1189.03 83.311 1195 94C1201.1 104.559 1204 116.704 1204 130C1204 143.296 1201.1 155.311 1195 166C1189.03 176.559 1180.64 184.873 1170 191C1159.49 196.996 1147.11 200 1134 200ZM1134 174C1141.66 174 1148.9 172.78 1155 169C1161.23 165.089 1165.63 159.778 1169 153C1172.5 146.222 1174 138.473 1174 130C1174 121.527 1172.5 113.778 1169 107C1165.63 100.222 1161.23 94.9106 1155 91C1148.9 87.0894 1141.66 85 1134 85C1126.34 85 1120.1 87.0894 1114 91C1107.9 94.9106 1102.5 100.222 1099 107C1095.63 113.778 1094 121.527 1094 130C1094 138.473 1095.63 146.222 1099 153C1102.5 159.778 1107.9 165.089 1114 169C1120.1 172.78 1126.34 174 1134 174Z" fill="#00DC82"></path>',8)]))}const eb=Wo(Q0,[["render",Z0]]),tb={},nb={class:"n-loading n-panel-grids-center"},rb={class:"flex flex-col animate-pulse items-center text-lg"};function sb(e,t){return Q(),he("div",nb,[W("div",rb,[t[1]||(t[1]=W("div",{class:"i-carbon-circle-dash animate-spin text-4xl op50"},null,-1)),ze(e.$slots,"default",{},()=>[t[0]||(t[0]=Ae(" Loading... "))])])])}const ob=Wo(tb,[["render",sb]]);let Ve=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function ib(e){return fl(e)}function fl(e){return Array.isArray(e)?ab(e):e instanceof RegExp?e:typeof e=="object"?lb(e):e}function ab(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=fl(e[n]);return t}function lb(e){let t={};for(let n in e)t[n]=fl(e[n]);return t}function nd(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function rd(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?rd(e.substring(0,e.length-1)):e.substr(~t+1)}var bi=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,$s=class{static hasCaptures(e){return e===null?!1:(bi.lastIndex=0,bi.test(e))}static replaceCaptures(e,t,n){return e.replace(bi,(r,s,o,i)=>{let a=n[parseInt(s||o,10)];if(a){let l=t.substring(a.start,a.end);for(;l[0]===".";)l=l.substring(1);switch(i){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function sd(e,t){return e<t?-1:e>t?1:0}function od(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let s=0;s<n;s++){let o=sd(e[s],t[s]);if(o!==0)return o}return 0}return n-r}function Xc(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function id(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var ad=class{constructor(e){S(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},fo=class{constructor(e,t,n){S(this,"_cachedMatchRoot",new ad(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(fb(e),t)}static createFromParsedTheme(e,t){return db(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(s=>cb(e.parent,s.parentScopes));return r?new ld(r.fontStyle,r.foreground,r.background):null}},vi=class Gs{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Gs(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Gs(n,t[r]);return n}push(t){return new Gs(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function cb(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],s=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],s=!0}for(;e&&!ub(e.scopeName,r);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function ub(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var ld=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function fb(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let s=0,o=t.length;s<o;s++){let i=t[s];if(!i.settings)continue;let a;if(typeof i.scope=="string"){let c=i.scope;c=c.replace(/^[,]+/,""),c=c.replace(/[,]+$/,""),a=c.split(",")}else Array.isArray(i.scope)?a=i.scope:a=[""];let l=-1;if(typeof i.settings.fontStyle=="string"){l=0;let c=i.settings.fontStyle.split(" ");for(let h=0,d=c.length;h<d;h++)switch(c[h]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let f=null;typeof i.settings.foreground=="string"&&Xc(i.settings.foreground)&&(f=i.settings.foreground);let u=null;typeof i.settings.background=="string"&&Xc(i.settings.background)&&(u=i.settings.background);for(let c=0,h=a.length;c<h;c++){let p=a[c].trim().split(" "),g=p[p.length-1],y=null;p.length>1&&(y=p.slice(0,p.length-1),y.reverse()),n[r++]=new hb(g,y,s,l,f,u)}}return n}var hb=class{constructor(e,t,n,r,s,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=s,this.background=o}},Kt=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Kt||{});function db(e,t){e.sort((l,f)=>{let u=sd(l.scope,f.scope);return u!==0||(u=od(l.parentScopes,f.parentScopes),u!==0)?u:l.index-f.index});let n=0,r="#000000",s="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(s=l.background)}let o=new pb(t),i=new ld(n,o.getId(r),o.getId(s)),a=new mb(new ha(0,null,-1,0,0),[]);for(let l=0,f=e.length;l<f;l++){let u=e[l];a.insert(0,u.scope,u.parentScopes,u.fontStyle,o.getId(u.foreground),o.getId(u.background))}return new fo(o,i,a)}var pb=class{constructor(e){S(this,"_isFrozen");S(this,"_lastColorId");S(this,"_id2color");S(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},gb=Object.freeze([]),ha=class cd{constructor(t,n,r,s,o){S(this,"scopeDepth");S(this,"parentScopes");S(this,"fontStyle");S(this,"foreground");S(this,"background");this.scopeDepth=t,this.parentScopes=n||gb,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new cd(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,s=t.length;r<s;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,s){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),s!==0&&(this.background=s)}},mb=class da{constructor(t,n=[],r={}){S(this,"_rulesWithParentScopes");this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,s=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[s]===">"&&s++,!(r>=t.parentScopes.length||s>=n.parentScopes.length);){const o=n.parentScopes[s].length-t.parentScopes[r].length;if(o!==0)return o;r++,s++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),s,o;if(r===-1?(s=t,o=""):(s=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(s))return this._children[s].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(da._cmpBySpecificity),n}insert(t,n,r,s,o,i){if(n===""){this._doInsertHere(t,r,s,o,i);return}let a=n.indexOf("."),l,f;a===-1?(l=n,f=""):(l=n.substring(0,a),f=n.substring(a+1));let u;this._children.hasOwnProperty(l)?u=this._children[l]:(u=new da(this._mainRule.clone(),ha.cloneArr(this._rulesWithParentScopes)),this._children[l]=u),u.insert(t+1,f,r,s,o,i)}_doInsertHere(t,n,r,s,o){if(n===null){this._mainRule.acceptOverwrite(t,r,s,o);return}for(let i=0,a=this._rulesWithParentScopes.length;i<a;i++){let l=this._rulesWithParentScopes[i];if(od(l.parentScopes,n)===0){l.acceptOverwrite(t,r,s,o);return}}r===-1&&(r=this._mainRule.fontStyle),s===0&&(s=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new ha(t,n,r,s,o))}},br=class at{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=at.getLanguageId(t),r=at.getTokenType(t),s=at.getFontStyle(t),o=at.getForeground(t),i=at.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:s,foreground:o,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,s,o,i,a){let l=at.getLanguageId(t),f=at.getTokenType(t),u=at.containsBalancedBrackets(t)?1:0,c=at.getFontStyle(t),h=at.getForeground(t),d=at.getBackground(t);return n!==0&&(l=n),r!==8&&(f=r),s!==null&&(u=s?1:0),o!==-1&&(c=o),i!==0&&(h=i),a!==0&&(d=a),(l<<0|f<<8|u<<10|c<<11|h<<15|d<<24)>>>0}};function ho(e,t){const n=[],r=yb(e);let s=r.next();for(;s!==null;){let l=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=r.next()}let f=i();if(n.push({matcher:f,priority:l}),s!==",")break;s=r.next()}return n;function o(){if(s==="-"){s=r.next();const l=o();return f=>!!l&&!l(f)}if(s==="("){s=r.next();const l=a();return s===")"&&(s=r.next()),l}if(Jc(s)){const l=[];do l.push(s),s=r.next();while(Jc(s));return f=>t(l,f)}return null}function i(){const l=[];let f=o();for(;f;)l.push(f),f=o();return u=>l.every(c=>c(u))}function a(){const l=[];let f=i();for(;f&&(l.push(f),s==="|"||s===",");){do s=r.next();while(s==="|"||s===",");f=i()}return u=>l.some(c=>c(u))}}function Jc(e){return!!e&&!!e.match(/[\w\.:]+/)}function yb(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function ud(e){typeof e.dispose=="function"&&e.dispose()}var is=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},_b=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},wb=class{constructor(){S(this,"_references",[]);S(this,"_seenReferenceKeys",new Set);S(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},bb=class{constructor(e,t){S(this,"seenFullScopeRequests",new Set);S(this,"seenPartialScopeRequests",new Set);S(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new is(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new wb;for(const n of e)vb(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof is){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function vb(e,t,n,r){const s=n.lookup(e.scopeName);if(!s){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof is?Us({baseGrammar:o,selfGrammar:s},r):pa(e.ruleName,{baseGrammar:o,selfGrammar:s,repository:s.repository},r);const i=n.injections(e.scopeName);if(i)for(const a of i)r.add(new is(a))}function pa(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];po([r],t,n)}}function Us(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&po(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&po(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function po(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const s=r.repository?nd({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&po(r.patterns,{...t,repository:s},n);const o=r.include;if(!o)continue;const i=fd(o);switch(i.kind){case 0:Us({...t,selfGrammar:t.baseGrammar},n);break;case 1:Us(t,n);break;case 2:pa(i.ruleName,{...t,repository:s},n);break;case 3:case 4:const a=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const l={baseGrammar:t.baseGrammar,selfGrammar:a,repository:s};i.kind===4?pa(i.ruleName,l,n):Us(l,n)}else i.kind===4?n.add(new _b(i.scopeName,i.ruleName)):n.add(new is(i.scopeName));break}}}var Cb=class{constructor(){S(this,"kind",0)}},xb=class{constructor(){S(this,"kind",1)}},Sb=class{constructor(e){S(this,"kind",2);this.ruleName=e}},kb=class{constructor(e){S(this,"kind",3);this.scopeName=e}},Ab=class{constructor(e,t){S(this,"kind",4);this.scopeName=e,this.ruleName=t}};function fd(e){if(e==="$base")return new Cb;if(e==="$self")return new xb;const t=e.indexOf("#");if(t===-1)return new kb(e);if(t===0)return new Sb(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Ab(n,r)}}var Eb=/\\(\d+)/,Qc=/\\(\d+)/g,Tb=-1,hd=-2;var _s=class{constructor(e,t,n,r){S(this,"$location");S(this,"id");S(this,"_nameIsCapturing");S(this,"_name");S(this,"_contentNameIsCapturing");S(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=$s.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=$s.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${rd(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:$s.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:$s.replaceCaptures(this._contentName,e,t)}},Rb=class extends _s{constructor(t,n,r,s,o){super(t,n,r,s);S(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,s){throw new Error("Not supported!")}},Pb=class extends _s{constructor(t,n,r,s,o){super(t,n,r,null);S(this,"_match");S(this,"captures");S(this,"_cachedCompiledPatterns");this._match=new as(s,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t).compileAG(t,r,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ls,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Yc=class extends _s{constructor(t,n,r,s,o){super(t,n,r,s);S(this,"hasMissingPatterns");S(this,"patterns");S(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t).compileAG(t,r,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ls,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ga=class extends _s{constructor(t,n,r,s,o,i,a,l,f,u){super(t,n,r,s);S(this,"_begin");S(this,"beginCaptures");S(this,"_end");S(this,"endHasBackReferences");S(this,"endCaptures");S(this,"applyEndPatternLast");S(this,"hasMissingPatterns");S(this,"patterns");S(this,"_cachedCompiledPatterns");this._begin=new as(o,this.id),this.beginCaptures=i,this._end=new as(a||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=f||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,s)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ls;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},go=class extends _s{constructor(t,n,r,s,o,i,a,l,f){super(t,n,r,s);S(this,"_begin");S(this,"beginCaptures");S(this,"whileCaptures");S(this,"_while");S(this,"whileHasBackReferences");S(this,"hasMissingPatterns");S(this,"patterns");S(this,"_cachedCompiledPatterns");S(this,"_cachedCompiledWhilePatterns");this._begin=new as(o,this.id),this.beginCaptures=i,this.whileCaptures=l,this._while=new as(a,hd),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t).compileAG(t,r,s)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ls;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,s){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,s)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ls,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"￿"),this._cachedCompiledWhilePatterns}},dd=class Fe{static createCaptureRule(t,n,r,s,o){return t.registerRule(i=>new Rb(n,i,r,s,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new Pb(t.$vscodeTextmateLocation,t.id,t.name,t.match,Fe._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=nd({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Yc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Fe._compilePatterns(o,n,r))}return t.while?new go(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Fe._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Fe._compileCaptures(t.whileCaptures||t.captures,n,r),Fe._compilePatterns(t.patterns,n,r)):new ga(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Fe._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Fe._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Fe._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let s=[];if(t){let o=0;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const a=parseInt(i,10);a>o&&(o=a)}for(let i=0;i<=o;i++)s[i]=null;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const a=parseInt(i,10);let l=0;t[i].patterns&&(l=Fe.getCompiledRuleId(t[i],n,r)),s[a]=Fe.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,l)}}return s}static _compilePatterns(t,n,r){let s=[];if(t)for(let o=0,i=t.length;o<i;o++){const a=t[o];let l=-1;if(a.include){const f=fd(a.include);switch(f.kind){case 0:case 1:l=Fe.getCompiledRuleId(r[a.include],n,r);break;case 2:let u=r[f.ruleName];u&&(l=Fe.getCompiledRuleId(u,n,r));break;case 3:case 4:const c=f.scopeName,h=f.kind===4?f.ruleName:null,d=n.getExternalGrammar(c,r);if(d)if(h){let p=d.repository[h];p&&(l=Fe.getCompiledRuleId(p,n,d.repository))}else l=Fe.getCompiledRuleId(d.repository.$self,n,d.repository);break}}else l=Fe.getCompiledRuleId(a,n,r);if(l!==-1){const f=n.getRule(l);let u=!1;if((f instanceof Yc||f instanceof ga||f instanceof go)&&f.hasMissingPatterns&&f.patterns.length===0&&(u=!0),u)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},as=class pd{constructor(t,n){S(this,"source");S(this,"ruleId");S(this,"hasAnchor");S(this,"hasBackReferences");S(this,"_anchorCache");if(t&&typeof t=="string"){const r=t.length;let s=0,o=[],i=!1;for(let a=0;a<r;a++)if(t.charAt(a)==="\\"&&a+1<r){const f=t.charAt(a+1);f==="z"?(o.push(t.substring(s,a)),o.push("$(?!\\n)(?<!\\n)"),s=a+2):(f==="A"||f==="G")&&(i=!0),a++}this.hasAnchor=i,s===0?this.source=t:(o.push(t.substring(s,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Eb.test(this.source):this.hasBackReferences=!1}clone(){return new pd(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(s=>t.substring(s.start,s.end));return Qc.lastIndex=0,this.source.replace(Qc,(s,o)=>id(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],s=[],o,i,a,l;for(o=0,i=this.source.length;o<i;o++)a=this.source.charAt(o),t[o]=a,n[o]=a,r[o]=a,s[o]=a,a==="\\"&&o+1<i&&(l=this.source.charAt(o+1),l==="A"?(t[o+1]="￿",n[o+1]="￿",r[o+1]="A",s[o+1]="A"):l==="G"?(t[o+1]="￿",n[o+1]="G",r[o+1]="￿",s[o+1]="G"):(t[o+1]=l,n[o+1]=l,r[o+1]=l,s[o+1]=l),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:s.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ls=class{constructor(){S(this,"_items");S(this,"_hasAnchors");S(this,"_cached");S(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Zc(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(s=>s.resolveAnchors(t,n));return new Zc(e,r,this._items.map(s=>s.ruleId))}},Zc=class{constructor(e,t,n){S(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
20
- `)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Ci=class{constructor(e,t){this.languageId=e,this.tokenType=t}},qt,$b=(qt=class{constructor(t,n){S(this,"_defaultAttributes");S(this,"_embeddedLanguagesMatcher");S(this,"_getBasicScopeAttributes",new ad(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new Ci(n,r)}));this._defaultAttributes=new Ci(t,8),this._embeddedLanguagesMatcher=new Nb(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?qt._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(qt.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},S(qt,"_NULL_SCOPE_METADATA",new Ci(0,0)),S(qt,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),qt),Nb=class{constructor(e){S(this,"values");S(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>id(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},eu=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function gd(e,t,n,r,s,o,i,a){const l=t.content.length;let f=!1,u=-1;if(i){const d=Ib(e,t,n,r,s,o);s=d.stack,r=d.linePos,n=d.isFirstLine,u=d.anchorPosition}const c=Date.now();for(;!f;){if(a!==0&&Date.now()-c>a)return new eu(s,!0);h()}return new eu(s,!1);function h(){const d=Ob(e,t,n,r,s,u);if(!d){o.produce(s,l),f=!0;return}const p=d.captureIndices,g=d.matchedRuleId,y=p&&p.length>0?p[0].end>r:!1;if(g===Tb){const _=s.getRule(e);o.produce(s,p[0].start),s=s.withContentNameScopesList(s.nameScopesList),Or(e,t,n,s,o,_.endCaptures,p),o.produce(s,p[0].end);const v=s;if(s=s.parent,u=v.getAnchorPos(),!y&&v.getEnterPos()===r){s=v,o.produce(s,l),f=!0;return}}else{const _=e.getRule(g);o.produce(s,p[0].start);const v=s,m=_.getName(t.content,p),b=s.contentNameScopesList.pushAttributed(m,e);if(s=s.push(g,r,u,p[0].end===l,null,b,b),_ instanceof ga){const C=_;Or(e,t,n,s,o,C.beginCaptures,p),o.produce(s,p[0].end),u=p[0].end;const E=C.getContentName(t.content,p),A=b.pushAttributed(E,e);if(s=s.withContentNameScopesList(A),C.endHasBackReferences&&(s=s.withEndRule(C.getEndWithResolvedBackReferences(t.content,p))),!y&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),f=!0;return}}else if(_ instanceof go){const C=_;Or(e,t,n,s,o,C.beginCaptures,p),o.produce(s,p[0].end),u=p[0].end;const E=C.getContentName(t.content,p),A=b.pushAttributed(E,e);if(s=s.withContentNameScopesList(A),C.whileHasBackReferences&&(s=s.withEndRule(C.getWhileWithResolvedBackReferences(t.content,p))),!y&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),f=!0;return}}else if(Or(e,t,n,s,o,_.captures,p),o.produce(s,p[0].end),s=s.pop(),!y){s=s.safePop(),o.produce(s,l),f=!0;return}}p[0].end>r&&(r=p[0].end,n=!1)}}function Ib(e,t,n,r,s,o){let i=s.beginRuleCapturedEOL?0:-1;const a=[];for(let l=s;l;l=l.pop()){const f=l.getRule(e);f instanceof go&&a.push({rule:f,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:f,findOptions:u}=Db(l.rule,e,l.stack.endRule,n,r===i),c=f.findNextMatchSync(t,r,u);if(c){if(c.ruleId!==hd){s=l.stack.pop();break}c.captureIndices&&c.captureIndices.length&&(o.produce(l.stack,c.captureIndices[0].start),Or(e,t,n,l.stack,o,l.rule.whileCaptures,c.captureIndices),o.produce(l.stack,c.captureIndices[0].end),i=c.captureIndices[0].end,c.captureIndices[0].end>r&&(r=c.captureIndices[0].end,n=!1))}else{s=l.stack.pop();break}}return{stack:s,linePos:r,anchorPosition:i,isFirstLine:n}}function Ob(e,t,n,r,s,o){const i=Lb(e,t,n,r,s,o),a=e.getInjections();if(a.length===0)return i;const l=Mb(a,e,t,n,r,s,o);if(!l)return i;if(!i)return l;const f=i.captureIndices[0].start,u=l.captureIndices[0].start;return u<f||l.priorityMatch&&u===f?l:i}function Lb(e,t,n,r,s,o){const i=s.getRule(e),{ruleScanner:a,findOptions:l}=md(i,e,s.endRule,n,r===o),f=a.findNextMatchSync(t,r,l);return f?{captureIndices:f.captureIndices,matchedRuleId:f.ruleId}:null}function Mb(e,t,n,r,s,o,i){let a=Number.MAX_VALUE,l=null,f,u=0;const c=o.contentNameScopesList.getScopeNames();for(let h=0,d=e.length;h<d;h++){const p=e[h];if(!p.matcher(c))continue;const g=t.getRule(p.ruleId),{ruleScanner:y,findOptions:_}=md(g,t,null,r,s===i),v=y.findNextMatchSync(n,s,_);if(!v)continue;const m=v.captureIndices[0].start;if(!(m>=a)&&(a=m,l=v.captureIndices,f=v.ruleId,u=p.priority,a===s))break}return l?{priorityMatch:u===-1,captureIndices:l,matchedRuleId:f}:null}function md(e,t,n,r,s){return{ruleScanner:e.compileAG(t,n,r,s),findOptions:0}}function Db(e,t,n,r,s){return{ruleScanner:e.compileWhileAG(t,n,r,s),findOptions:0}}function Or(e,t,n,r,s,o,i){if(o.length===0)return;const a=t.content,l=Math.min(o.length,i.length),f=[],u=i[0].end;for(let c=0;c<l;c++){const h=o[c];if(h===null)continue;const d=i[c];if(d.length===0)continue;if(d.start>u)break;for(;f.length>0&&f[f.length-1].endPos<=d.start;)s.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop();if(f.length>0?s.produceFromScopes(f[f.length-1].scopes,d.start):s.produce(r,d.start),h.retokenizeCapturedWithRuleId){const g=h.getName(a,i),y=r.contentNameScopesList.pushAttributed(g,e),_=h.getContentName(a,i),v=y.pushAttributed(_,e),m=r.push(h.retokenizeCapturedWithRuleId,d.start,-1,!1,null,y,v),b=e.createOnigString(a.substring(0,d.end));gd(e,b,n&&d.start===0,d.start,m,s,!1,0),ud(b);continue}const p=h.getName(a,i);if(p!==null){const y=(f.length>0?f[f.length-1].scopes:r.contentNameScopesList).pushAttributed(p,e);f.push(new Bb(y,d.end))}}for(;f.length>0;)s.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop()}var Bb=class{constructor(e,t){S(this,"scopes");S(this,"endPos");this.scopes=e,this.endPos=t}};function Hb(e,t,n,r,s,o,i,a){return new jb(e,t,n,r,s,o,i,a)}function tu(e,t,n,r,s){const o=ho(t,mo),i=dd.getCompiledRuleId(n,r,s.repository);for(const a of o)e.push({debugSelector:t,matcher:a.matcher,ruleId:i,grammar:s,priority:a.priority})}function mo(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let s=n;s<t.length;s++)if(Fb(t[s],r))return n=s+1,!0;return!1})}function Fb(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var jb=class{constructor(e,t,n,r,s,o,i,a){S(this,"_rootId");S(this,"_lastRuleId");S(this,"_ruleId2desc");S(this,"_includedGrammars");S(this,"_grammarRepository");S(this,"_grammar");S(this,"_injections");S(this,"_basicScopeAttributesProvider");S(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new $b(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=nu(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const l of Object.keys(s)){const f=ho(l,mo);for(const u of f)this._tokenTypeMatchers.push({matcher:u.matcher,type:s[l]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const s=r.injections;if(s)for(let i in s)tu(t,i,s[i],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(i=>{const a=this.getExternalGrammar(i);if(a){const l=a.injectionSelector;l&&tu(t,l,a,this,a)}})}return t.sort((s,o)=>s.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=nu(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=dd.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===ma.NULL){s=!0;const f=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),c=br.set(0,f.languageId,f.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),h=this.getRule(this._rootId).getName(null,null);let d;h?d=zr.createRootAndLookUpScopeName(h,c,this):d=zr.createRoot("unknown",c),t=new ma(null,this._rootId,-1,-1,!1,null,d,d)}else s=!1,t.reset();e=e+`
21
- `;const o=this.createOnigString(e),i=o.content.length,a=new Ub(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=gd(this,o,s,0,t,a,!0,r);return ud(o),{lineLength:i,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function nu(e,t){return e=ib(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var zr=class Et{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,s=(t==null?void 0:t.scopePath)??null;for(const o of n)s=vi.push(s,o.scopeNames),r=new Et(r,s,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Et(null,new vi(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const s=r.getMetadataForScope(t),o=new vi(null,t),i=r.themeProvider.themeMatch(o),a=Et.mergeAttributes(n,s,i);return new Et(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Et.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let s=-1,o=0,i=0;return r!==null&&(s=r.fontStyle,o=r.foregroundId,i=r.backgroundId),br.set(t,n.languageId,n.tokenType,null,s,o,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Et._pushAttributed(this,t,n);const r=t.split(/ /g);let s=this;for(const o of r)s=Et._pushAttributed(s,o,n);return s}static _pushAttributed(t,n,r){const s=r.getMetadataForScope(n),o=t.scopePath.push(n),i=r.themeProvider.themeMatch(o),a=Et.mergeAttributes(t.tokenAttributes,s,i);return new Et(t,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var s;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((s=r.parent)==null?void 0:s.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}},ct,ma=(ct=class{constructor(t,n,r,s,o,i,a,l){S(this,"_stackElementBrand");S(this,"_enterPos");S(this,"_anchorPos");S(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=s}equals(t){return t===null?!1:ct._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?zr.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){ct._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,s,o,i,a){return new ct(this,t,n,r,s,o,i,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){var r,s;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(s=this.contentNameScopesList)==null?void 0:s.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new ct(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var t,n,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const r=zr.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new ct(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,zr.fromExtension(r,n.contentNameScopesList))}},S(ct,"NULL",new ct(null,0,0,0,!1,null,null,null)),ct),Gb=class{constructor(e,t){S(this,"balancedBracketScopes");S(this,"unbalancedBracketScopes");S(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):ho(n,mo).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>ho(n,mo).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Ub=class{constructor(e,t,n,r){S(this,"_emitBinaryTokens");S(this,"_lineText");S(this,"_tokens");S(this,"_binaryTokens");S(this,"_lastTokenEndIndex");S(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var r;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=(e==null?void 0:e.tokenAttributes)??0,o=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=(e==null?void 0:e.getScopeNames())??[];for(const a of this._tokenTypeOverrides)a.matcher(i)&&(s=br.set(s,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(i))}if(o&&(s=br.set(s,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),this._lastTokenEndIndex=t;return}const n=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,s=this._binaryTokens.length;r<s;r++)n[r]=this._binaryTokens[r];return n}},Wb=class{constructor(e,t){S(this,"_grammars",new Map);S(this,"_rawGrammars",new Map);S(this,"_injectionGrammars",new Map);S(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,s){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,Hb(e,o,t,n,r,s,this,this._onigLib))}return this._grammars.get(e)}},zb=class{constructor(t){S(this,"_options");S(this,"_syncRegistry");S(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new Wb(fo.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(fo.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new Gb(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,s,o){const i=new bb(this._syncRegistry,t);for(;i.Q.length>0;)i.Q.map(a=>this._loadSingleGrammar(a.scopeName)),i.processQueue();return this._grammarForScopeName(t,n,r,s,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,s=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,s)}_grammarForScopeName(t,n=0,r=null,s=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,s,o)}},ya=ma.NULL;const Vb=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class ws{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ws.prototype.normal={};ws.prototype.property={};ws.prototype.space=void 0;function yd(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new ws(n,r,t)}function _a(e){return e.toLowerCase()}class et{constructor(t,n){this.attribute=n,this.property=t}}et.prototype.attribute="";et.prototype.booleanish=!1;et.prototype.boolean=!1;et.prototype.commaOrSpaceSeparated=!1;et.prototype.commaSeparated=!1;et.prototype.defined=!1;et.prototype.mustUseProperty=!1;et.prototype.number=!1;et.prototype.overloadedBoolean=!1;et.prototype.property="";et.prototype.spaceSeparated=!1;et.prototype.space=void 0;let qb=0;const se=Wn(),Pe=Wn(),_d=Wn(),I=Wn(),Ce=Wn(),fr=Wn(),st=Wn();function Wn(){return 2**++qb}const wa=Object.freeze(Object.defineProperty({__proto__:null,boolean:se,booleanish:Pe,commaOrSpaceSeparated:st,commaSeparated:fr,number:I,overloadedBoolean:_d,spaceSeparated:Ce},Symbol.toStringTag,{value:"Module"})),xi=Object.keys(wa);class hl extends et{constructor(t,n,r,s){let o=-1;if(super(t,n),ru(this,"space",s),typeof r=="number")for(;++o<xi.length;){const i=xi[o];ru(this,xi[o],(r&wa[i])===wa[i])}}}hl.prototype.defined=!0;function ru(e,t,n){n&&(e[t]=n)}function kr(e){const t={},n={};for(const[r,s]of Object.entries(e.properties)){const o=new hl(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[_a(r)]=r,n[_a(o.attribute)]=r}return new ws(t,n,e.space)}const wd=kr({properties:{ariaActiveDescendant:null,ariaAtomic:Pe,ariaAutoComplete:null,ariaBusy:Pe,ariaChecked:Pe,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:Ce,ariaCurrent:null,ariaDescribedBy:Ce,ariaDetails:null,ariaDisabled:Pe,ariaDropEffect:Ce,ariaErrorMessage:null,ariaExpanded:Pe,ariaFlowTo:Ce,ariaGrabbed:Pe,ariaHasPopup:null,ariaHidden:Pe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ce,ariaLevel:I,ariaLive:null,ariaModal:Pe,ariaMultiLine:Pe,ariaMultiSelectable:Pe,ariaOrientation:null,ariaOwns:Ce,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:Pe,ariaReadOnly:Pe,ariaRelevant:null,ariaRequired:Pe,ariaRoleDescription:Ce,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:Pe,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function bd(e,t){return t in e?e[t]:t}function vd(e,t){return bd(e,t.toLowerCase())}const Kb=kr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fr,acceptCharset:Ce,accessKey:Ce,action:null,allow:null,allowFullScreen:se,allowPaymentRequest:se,allowUserMedia:se,alt:null,as:null,async:se,autoCapitalize:null,autoComplete:Ce,autoFocus:se,autoPlay:se,blocking:Ce,capture:null,charSet:null,checked:se,cite:null,className:Ce,cols:I,colSpan:null,content:null,contentEditable:Pe,controls:se,controlsList:Ce,coords:I|fr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:se,defer:se,dir:null,dirName:null,disabled:se,download:_d,draggable:Pe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:se,formTarget:null,headers:Ce,height:I,hidden:se,high:I,href:null,hrefLang:null,htmlFor:Ce,httpEquiv:Ce,id:null,imageSizes:null,imageSrcSet:null,inert:se,inputMode:null,integrity:null,is:null,isMap:se,itemId:null,itemProp:Ce,itemRef:Ce,itemScope:se,itemType:Ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:se,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:se,muted:se,name:null,nonce:null,noModule:se,noValidate:se,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:se,optimum:I,pattern:null,ping:Ce,placeholder:null,playsInline:se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:se,referrerPolicy:null,rel:Ce,required:se,reversed:se,rows:I,rowSpan:I,sandbox:Ce,scope:null,scoped:se,seamless:se,selected:se,shadowRootClonable:se,shadowRootDelegatesFocus:se,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:Pe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:se,useMap:null,value:Pe,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ce,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:se,declare:se,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:se,noHref:se,noShade:se,noWrap:se,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:Pe,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:se,disableRemotePlayback:se,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:vd}),Xb=kr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:st,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:Ce,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:se,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:fr,g2:fr,glyphName:fr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:st,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:I,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:st,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:st,rev:st,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:st,requiredFeatures:st,requiredFonts:st,requiredFormats:st,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:st,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:st,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:st,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:bd}),Cd=kr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),xd=kr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vd}),Sd=kr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Jb=/[A-Z]/g,su=/-[a-z]/g,Qb=/^data[-\w.:]+$/i;function Yb(e,t){const n=_a(t);let r=t,s=et;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Qb.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(su,ev);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!su.test(o)){let i=o.replace(Jb,Zb);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}s=hl}return new s(r,t)}function Zb(e){return"-"+e.toLowerCase()}function ev(e){return e.charAt(1).toUpperCase()}const tv=yd([wd,Kb,Cd,xd,Sd],"html"),kd=yd([wd,Xb,Cd,xd,Sd],"svg"),ou={}.hasOwnProperty;function nv(e,t){const n=t||{};function r(s,...o){let i=r.invalid;const a=r.handlers;if(s&&ou.call(s,e)){const l=String(s[e]);i=ou.call(a,l)?a[l]:r.unknown}if(i)return i.call(this,s,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const rv=/["&'<>`]/g,sv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ov=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,iv=/[|\\{}()[\]^$+*?.]/g,iu=new WeakMap;function av(e,t){if(e=e.replace(t.subset?lv(t.subset):rv,r),t.subset||t.escapeOnly)return e;return e.replace(sv,n).replace(ov,r);function n(s,o,i){return t.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,i.charCodeAt(o+2),t)}function r(s,o,i){return t.format(s.charCodeAt(0),i.charCodeAt(o+1),t)}}function lv(e){let t=iu.get(e);return t||(t=cv(e),iu.set(e,t)),t}function cv(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(iv,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const uv=/[\dA-Fa-f]/;function fv(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!uv.test(String.fromCharCode(t))?r:r+";"}const hv=/\d/;function dv(e,t,n){const r="&#"+String(e);return n&&t&&!hv.test(String.fromCharCode(t))?r:r+";"}const pv=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Si={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},gv=["cent","copy","divide","gt","lt","not","para","times"],Ad={}.hasOwnProperty,ba={};let Ns;for(Ns in Si)Ad.call(Si,Ns)&&(ba[Si[Ns]]=Ns);const mv=/[^\dA-Za-z]/;function yv(e,t,n,r){const s=String.fromCharCode(e);if(Ad.call(ba,s)){const o=ba[s],i="&"+o;return n&&pv.includes(o)&&!gv.includes(o)&&(!r||t&&t!==61&&mv.test(String.fromCharCode(t)))?i:i+";"}return""}function _v(e,t,n){let r=fv(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=yv(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=dv(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function hr(e,t){return av(e,Object.assign({format:_v},t))}const wv=/^>|^->|<!--|-->|--!>|<!-$/g,bv=[">"],vv=["<",">"];function Cv(e,t,n,r){return r.settings.bogusComments?"<?"+hr(e.value,Object.assign({},r.settings.characterReferences,{subset:bv}))+">":"<!--"+e.value.replace(wv,s)+"-->";function s(o){return hr(o,Object.assign({},r.settings.characterReferences,{subset:vv}))}}function xv(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function au(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,s=n.indexOf(t);for(;s!==-1;)r++,s=n.indexOf(t,s+t.length);return r}function Sv(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function kv(e){return e.join(" ").trim()}const Av=/[ \t\n\f\r]/g;function dl(e){return typeof e=="object"?e.type==="text"?lu(e.value):!1:lu(e)}function lu(e){return e.replace(Av,"")===""}const Me=Td(1),Ed=Td(-1),Ev=[];function Td(e){return t;function t(n,r,s){const o=n?n.children:Ev;let i=(r||0)+e,a=o[i];if(!s)for(;a&&dl(a);)i+=e,a=o[i];return a}}const Tv={}.hasOwnProperty;function Rd(e){return t;function t(n,r,s){return Tv.call(e,n.tagName)&&e[n.tagName](n,r,s)}}const pl=Rd({body:Pv,caption:ki,colgroup:ki,dd:Ov,dt:Iv,head:ki,html:Rv,li:Nv,optgroup:Lv,option:Mv,p:$v,rp:cu,rt:cu,tbody:Bv,td:uu,tfoot:Hv,th:uu,thead:Dv,tr:Fv});function ki(e,t,n){const r=Me(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&dl(r.value.charAt(0)))}function Rv(e,t,n){const r=Me(n,t);return!r||r.type!=="comment"}function Pv(e,t,n){const r=Me(n,t);return!r||r.type!=="comment"}function $v(e,t,n){const r=Me(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function Nv(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&r.tagName==="li"}function Iv(e,t,n){const r=Me(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Ov(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function cu(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Lv(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Mv(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Dv(e,t,n){const r=Me(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Bv(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Hv(e,t,n){return!Me(n,t)}function Fv(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function uu(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const jv=Rd({body:Wv,colgroup:zv,head:Uv,html:Gv,tbody:Vv});function Gv(e){const t=Me(e,-1);return!t||t.type!=="comment"}function Uv(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function Wv(e){const t=Me(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&dl(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function zv(e,t,n){const r=Ed(n,t),s=Me(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&pl(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function Vv(e,t,n){const r=Ed(n,t),s=Me(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&pl(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const Is={name:[[`
22
- \f\r &/=>`.split(""),`
23
- \f\r "&'/=>\``.split("")],[`\0
24
- \f\r "&'/<=>`.split(""),`\0
25
- \f\r "&'/<=>\``.split("")]],unquoted:[[`
26
- \f\r &>`.split(""),`\0
27
- \f\r "&'<=>\``.split("")],[`\0
28
- \f\r "&'<=>\``.split(""),`\0
29
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function qv(e,t,n,r){const s=r.schema,o=s.space==="svg"?!1:r.settings.omitOptionalTags;let i=s.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const a=[];let l;s.space==="html"&&e.tagName==="svg"&&(r.schema=kd);const f=Kv(r,e.properties),u=r.all(s.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=s,u&&(i=!1),(f||!o||!jv(e,t,n))&&(a.push("<",e.tagName,f?" "+f:""),i&&(s.space==="svg"||r.settings.closeSelfClosing)&&(l=f.charAt(f.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(u),!i&&(!o||!pl(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function Kv(e,t){const n=[];let r=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=Xv(e,s,t[s]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function Xv(e,t,n){const r=Yb(e.schema,t),s=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let i=e.quote,a;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=hr(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Is.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Sv:kv)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(a=hr(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Is.unquoted[s][o]}))),a!==n&&(e.settings.quoteSmart&&au(n,i)>au(n,e.alternative)&&(i=e.alternative),a=i+hr(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?Is.single:Is.double)[s][o],attribute:!0}))+i),l+(a&&"="+a))}const Jv=["<","&"];function Pd(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:hr(e.value,Object.assign({},r.settings.characterReferences,{subset:Jv}))}function Qv(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Pd(e,t,n,r)}function Yv(e,t,n,r){return r.all(e)}const Zv=nv("type",{invalid:eC,unknown:tC,handlers:{comment:Cv,doctype:xv,element:qv,raw:Qv,root:Yv,text:Pd}});function eC(e){throw new Error("Expected node, not `"+e+"`")}function tC(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const nC={},rC={},sC=[];function oC(e,t){const n=t||nC,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:iC,all:aC,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Vb,characterReferences:n.characterReferences||rC,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?kd:tv,quote:r,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function iC(e,t,n){return Zv(e,t,n,this)}function aC(e){const t=[],n=e&&e.children||sC;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function yo(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[s,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[s]=o:s===r&&Object.assign(n,o);return n}function Pn(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function lC(e){return Array.isArray(e)?e:[e]}async function $d(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function gl(e){return!e||["plaintext","txt","text","plain"].includes(e)}function cC(e){return e==="ansi"||gl(e)}function ml(e){return e==="none"}function uC(e){return ml(e)}function Nd(e,t){var r;if(!t)return e;e.properties||(e.properties={}),(r=e.properties).class||(r.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const s of n)s&&!e.properties.class.includes(s)&&e.properties.class.push(s);return e}function zo(e,t=!1){var o;const n=e.split(/(\r?\n)/g);let r=0;const s=[];for(let i=0;i<n.length;i+=2){const a=t?n[i]+(n[i+1]||""):n[i];s.push([a,r]),r+=n[i].length,r+=((o=n[i+1])==null?void 0:o.length)||0}return s}function fC(e){const t=zo(e,!0).map(([s])=>s);function n(s){if(s===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=s,i=0;for(const a of t){if(o<a.length)break;o-=a.length,i++}return{line:i,character:o}}function r(s,o){let i=0;for(let a=0;a<s;a++)i+=t[a].length;return i+=o,i}return{lines:t,indexToPos:n,posToIndex:r}}function hC(e,t){let n=0;const r=[];for(const s of t)s>n&&r.push({...e,content:e.content.slice(n,s),offset:e.offset+n}),n=s;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function dC(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,s)=>r-s);return n.length?e.map(r=>r.flatMap(s=>{const o=n.filter(i=>s.offset<i&&i<s.offset+s.content.length).map(i=>i-s.offset).sort((i,a)=>i-a);return o.length?hC(s,o):s})):e}function pC(e,t,n,r){const s={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(l=>Id(e.variants[l])),i=new Set(o.flatMap(l=>Object.keys(l))),a={};return o.forEach((l,f)=>{for(const u of i){const c=l[u]||"inherit";if(f===0&&r)a[u]=c;else{const h=u==="color"?"":u==="background-color"?"-bg":`-${u}`,d=n+t[f]+(u==="color"?"":h);a[d]=c}}}),s.htmlStyle=a,s}function Id(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Kt.Italic&&(t["font-style"]="italic"),e.fontStyle&Kt.Bold&&(t["font-weight"]="bold"),e.fontStyle&Kt.Underline&&(t["text-decoration"]="underline")),t}function gC(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Od=new WeakMap;function Vo(e,t){Od.set(e,t)}function cs(e){return Od.get(e)}class Ar{constructor(...t){S(this,"_stacks",{});S(this,"lang");if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,s]=t;this.lang=r,this._stacks={[s]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Ar(Object.fromEntries(lC(n).map(r=>[r,ya])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return mC(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function mC(e){const t=[],n=new Set;function r(s){var i;if(n.has(s))return;n.add(s);const o=(i=s==null?void 0:s.nameScopesList)==null?void 0:i.scopeName;o&&t.push(o),s.parent&&r(s.parent)}return r(e),t}function yC(e,t){if(!(e instanceof Ar))throw new Ve("Invalid grammar state");return e.getInternalStack(t)}function _C(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(i){if(typeof i=="number"){if(i<0||i>n.source.length)throw new Ve(`Invalid decoration offset: ${i}. Code length: ${n.source.length}`);return{...s.indexToPos(i),offset:i}}else{const a=s.lines[i.line];if(a===void 0)throw new Ve(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${s.lines.length}`);if(i.character<0||i.character>a.length)throw new Ve(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${a.length}`);return{...i,offset:s.posToIndex(i.line,i.character)}}};const s=fC(n.source),o=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));wC(o),e.set(n.meta,{decorations:o,converter:s,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var i;if(!((i=this.options.decorations)!=null&&i.length))return;const s=t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return dC(n,s)},code(n){var u;if(!((u=this.options.decorations)!=null&&u.length))return;const r=t(this),s=Array.from(n.children).filter(c=>c.type==="element"&&c.tagName==="span");if(s.length!==r.converter.lines.length)throw new Ve(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(c,h,d,p){const g=s[c];let y="",_=-1,v=-1;if(h===0&&(_=0),d===0&&(v=0),d===Number.POSITIVE_INFINITY&&(v=g.children.length),_===-1||v===-1)for(let b=0;b<g.children.length;b++)y+=Ld(g.children[b]),_===-1&&y.length===h&&(_=b+1),v===-1&&y.length===d&&(v=b+1);if(_===-1)throw new Ve(`Failed to find start index for decoration ${JSON.stringify(p.start)}`);if(v===-1)throw new Ve(`Failed to find end index for decoration ${JSON.stringify(p.end)}`);const m=g.children.slice(_,v);if(!p.alwaysWrap&&m.length===g.children.length)a(g,p,"line");else if(!p.alwaysWrap&&m.length===1&&m[0].type==="element")a(m[0],p,"token");else{const b={type:"element",tagName:"span",properties:{},children:m};a(b,p,"wrapper"),g.children.splice(_,m.length,b)}}function i(c,h){s[c]=a(s[c],h,"line")}function a(c,h,d){var y;const p=h.properties||{},g=h.transform||(_=>_);return c.tagName=h.tagName||"span",c.properties={...c.properties,...p,class:c.properties.class},(y=h.properties)!=null&&y.class&&Nd(c,h.properties.class),c=g(c,d)||c,c}const l=[],f=r.decorations.sort((c,h)=>h.start.offset-c.start.offset||c.end.offset-h.end.offset);for(const c of f){const{start:h,end:d}=c;if(h.line===d.line)o(h.line,h.character,d.character,c);else if(h.line<d.line){o(h.line,h.character,Number.POSITIVE_INFINITY,c);for(let p=h.line+1;p<d.line;p++)l.unshift(()=>i(p,c));o(d.line,0,d.character,c)}}l.forEach(c=>c())}}}function wC(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Ve(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const s=e[r],o=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,i=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,a=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,l=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(o||i||a||l){if(o&&i||a&&l)continue;throw new Ve(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function Ld(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Ld).join(""):""}const bC=[_C()];function _o(e){return[...e.transformers||[],...bC]}var $n=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Ai={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function vC(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function fu(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function CC(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)Ai[r]&&t.push({type:"setDecoration",value:Ai[r]});else if(r<=29){const s=Ai[r-20];s&&(t.push({type:"resetDecoration",value:s}),s==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:$n[r-30]}});else if(r===38){const s=fu(e);s&&t.push({type:"setForegroundColor",value:s})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:$n[r-40]}});else if(r===48){const s=fu(e);s&&t.push({type:"setBackgroundColor",value:s})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:$n[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:$n[r-100+8]}})}return t}function xC(){let e=null,t=null,n=new Set;return{parse(r){const s=[];let o=0;do{const i=vC(r,o),a=i.sequence?r.substring(o,i.startPosition):r.substring(o);if(a.length>0&&s.push({value:a,foreground:e,background:t,decorations:new Set(n)}),i.sequence){const l=CC(i.sequence);for(const f of l)f.type==="resetAll"?(e=null,t=null,n.clear()):f.type==="resetForegroundColor"?e=null:f.type==="resetBackgroundColor"?t=null:f.type==="resetDecoration"&&n.delete(f.value);for(const f of l)f.type==="setForegroundColor"?e=f.value:f.type==="setBackgroundColor"?t=f.value:f.type==="setDecoration"&&n.add(f.value)}o=i.position}while(o<r.length);return s}}}var SC={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function kC(e=SC){function t(a){return e[a]}function n(a){return`#${a.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function s(){if(r)return r;r=[];for(let f=0;f<$n.length;f++)r.push(t($n[f]));let a=[0,95,135,175,215,255];for(let f=0;f<6;f++)for(let u=0;u<6;u++)for(let c=0;c<6;c++)r.push(n([a[f],a[u],a[c]]));let l=8;for(let f=0;f<24;f++,l+=10)r.push(n([l,l,l]));return r}function o(a){return s()[a]}function i(a){switch(a.type){case"named":return t(a.name);case"rgb":return n(a.rgb);case"table":return o(a.index)}}return{value:i}}function AC(e,t,n){const r=yo(e,n),s=zo(t),o=kC(Object.fromEntries($n.map(a=>{var l;return[a,(l=e.colors)==null?void 0:l[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]]}))),i=xC();return s.map(a=>i.parse(a[0]).map(l=>{let f,u;l.decorations.has("reverse")?(f=l.background?o.value(l.background):e.bg,u=l.foreground?o.value(l.foreground):e.fg):(f=l.foreground?o.value(l.foreground):e.fg,u=l.background?o.value(l.background):void 0),f=Pn(f,r),u=Pn(u,r),l.decorations.has("dim")&&(f=EC(f));let c=Kt.None;return l.decorations.has("bold")&&(c|=Kt.Bold),l.decorations.has("italic")&&(c|=Kt.Italic),l.decorations.has("underline")&&(c|=Kt.Underline),{content:l.value,offset:a[1],color:f,bgColor:u,fontStyle:c}}))}function EC(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function yl(e,t,n={}){const{lang:r="text",theme:s=e.getLoadedThemes()[0]}=n;if(gl(r)||ml(s))return zo(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:i}=e.setTheme(s);if(r==="ansi")return AC(o,t,n);const a=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==a.name)throw new Ve(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Ve(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return RC(t,a,o,i,n)}function TC(...e){if(e.length===2)return cs(e[1]);const[t,n,r={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=r;if(gl(s)||ml(o))throw new Ve("Plain language does not have grammar state");if(s==="ansi")throw new Ve("ANSI language does not have grammar state");const{theme:i,colorMap:a}=t.setTheme(o),l=t.getLanguage(s);return new Ar(wo(n,l,i,a,r).stateStack,l.name,i.name)}function RC(e,t,n,r,s){const o=wo(e,t,n,r,s),i=new Ar(wo(e,t,n,r,s).stateStack,t.name,n.name);return Vo(o.tokens,i),o.tokens}function wo(e,t,n,r,s){const o=yo(n,s),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500}=s,l=zo(e);let f=s.grammarState?yC(s.grammarState,n.name)??ya:s.grammarContextCode!=null?wo(s.grammarContextCode,t,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:ya,u=[];const c=[];for(let h=0,d=l.length;h<d;h++){const[p,g]=l[h];if(p===""){u=[],c.push([]);continue}if(i>0&&p.length>=i){u=[],c.push([{content:p,offset:g,color:"",fontStyle:0}]);continue}let y,_,v;s.includeExplanation&&(y=t.tokenizeLine(p,f,a),_=y.tokens,v=0);const m=t.tokenizeLine2(p,f,a),b=m.tokens.length/2;for(let C=0;C<b;C++){const E=m.tokens[2*C],A=C+1<b?m.tokens[2*C+2]:p.length;if(E===A)continue;const B=m.tokens[2*C+1],H=Pn(r[br.getForeground(B)],o),O=br.getFontStyle(B),K={content:p.substring(E,A),offset:g+E,color:H,fontStyle:O};if(s.includeExplanation){const q=[];if(s.includeExplanation!=="scopeName")for(const ee of n.settings){let ce;switch(typeof ee.scope){case"string":ce=ee.scope.split(/,/).map(F=>F.trim());break;case"object":ce=ee.scope;break;default:continue}q.push({settings:ee,selectors:ce.map(F=>F.split(/ /))})}K.explanation=[];let ne=0;for(;E+ne<A;){const ee=_[v],ce=p.substring(ee.startIndex,ee.endIndex);ne+=ce.length,K.explanation.push({content:ce,scopes:s.includeExplanation==="scopeName"?PC(ee.scopes):$C(q,ee.scopes)}),v+=1}}u.push(K)}c.push(u),u=[],f=m.ruleStack}return{tokens:c,stateStack:f}}function PC(e){return e.map(t=>({scopeName:t}))}function $C(e,t){const n=[];for(let r=0,s=t.length;r<s;r++){const o=t[r];n[r]={scopeName:o,themeMatches:IC(e,o,t.slice(0,r))}}return n}function hu(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function NC(e,t,n){if(!hu(e[e.length-1],t))return!1;let r=e.length-2,s=n.length-1;for(;r>=0&&s>=0;)hu(e[r],n[s])&&(r-=1),s-=1;return r===-1}function IC(e,t,n){const r=[];for(const{selectors:s,settings:o}of e)for(const i of s)if(NC(i,t,n)){r.push(o);break}return r}function Md(e,t,n){const r=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),s=r.map(l=>{const f=yl(e,t,{...n,theme:l.theme}),u=cs(f),c=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:f,state:u,theme:c}}),o=OC(...s.map(l=>l.tokens)),i=o[0].map((l,f)=>l.map((u,c)=>{const h={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in n&&n.includeExplanation&&(h.explanation=u.explanation),o.forEach((d,p)=>{const{content:g,explanation:y,offset:_,...v}=d[f][c];h.variants[r[p].color]=v}),h})),a=s[0].state?new Ar(Object.fromEntries(s.map(l=>{var f;return[l.theme,(f=l.state)==null?void 0:f.getInternalStack(l.theme)]})),s[0].state.lang):void 0;return a&&Vo(i,a),i}function OC(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const s=e.map(l=>l[r]),o=t.map(()=>[]);t.forEach((l,f)=>l.push(o[f]));const i=s.map(()=>0),a=s.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(f=>f.content.length));for(let f=0;f<n;f++){const u=a[f];u.content.length===l?(o[f].push(u),i[f]+=1,a[f]=s[f][i[f]]):(o[f].push({...u,content:u.content.slice(0,l)}),a[f]={...u,content:u.content.slice(l),offset:u.offset+l})}}}return t}function bo(e,t,n){let r,s,o,i,a,l;if("themes"in n){const{defaultColor:f="light",cssVariablePrefix:u="--shiki-"}=n,c=Object.entries(n.themes).filter(y=>y[1]).map(y=>({color:y[0],theme:y[1]})).sort((y,_)=>y.color===f?-1:_.color===f?1:0);if(c.length===0)throw new Ve("`themes` option must not be empty");const h=Md(e,t,n);if(l=cs(h),f&&!c.find(y=>y.color===f))throw new Ve(`\`themes\` option must contain the defaultColor key \`${f}\``);const d=c.map(y=>e.getTheme(y.theme)),p=c.map(y=>y.color);o=h.map(y=>y.map(_=>pC(_,p,u,f))),l&&Vo(o,l);const g=c.map(y=>yo(y.theme,n));s=c.map((y,_)=>(_===0&&f?"":`${u+y.color}:`)+(Pn(d[_].fg,g[_])||"inherit")).join(";"),r=c.map((y,_)=>(_===0&&f?"":`${u+y.color}-bg:`)+(Pn(d[_].bg,g[_])||"inherit")).join(";"),i=`shiki-themes ${d.map(y=>y.name).join(" ")}`,a=f?void 0:[s,r].join(";")}else if("theme"in n){const f=yo(n.theme,n);o=yl(e,t,n);const u=e.getTheme(n.theme);r=Pn(u.bg,f),s=Pn(u.fg,f),i=u.name,l=cs(o)}else throw new Ve("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:r,themeName:i,rootStyle:a,grammarState:l}}function vo(e,t,n,r={meta:{},options:n,codeToHast:(s,o)=>vo(e,s,o),codeToTokens:(s,o)=>bo(e,s,o)}){var d,p;let s=t;for(const g of _o(n))s=((d=g.preprocess)==null?void 0:d.call(r,s,n))||s;let{tokens:o,fg:i,bg:a,themeName:l,rootStyle:f,grammarState:u}=bo(e,s,n);const{mergeWhitespaces:c=!0}=n;c===!0?o=MC(o):c==="never"&&(o=DC(o));const h={...r,get source(){return s}};for(const g of _o(n))o=((p=g.tokens)==null?void 0:p.call(h,o))||o;return LC(o,{...n,fg:i,bg:a,themeName:l,rootStyle:f},h,u)}function LC(e,t,n,r=cs(e)){var p,g,y;const s=_o(t),o=[],i={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=t;let f={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...l!==!1&&l!=null?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([_])=>!_.startsWith("_")))},children:[]},u={type:"element",tagName:"code",properties:{},children:o};const c=[],h={...n,structure:a,addClassToHast:Nd,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return f},get code(){return u},get lines(){return c}};if(e.forEach((_,v)=>{var C,E;v&&(a==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&o.push({type:"text",value:`
30
- `}));let m={type:"element",tagName:"span",properties:{class:"line"},children:[]},b=0;for(const A of _){let B={type:"element",tagName:"span",properties:{...A.htmlAttrs},children:[{type:"text",value:A.content}]};const H=gC(A.htmlStyle||Id(A));H&&(B.properties.style=H);for(const O of s)B=((C=O==null?void 0:O.span)==null?void 0:C.call(h,B,v+1,b,m,A))||B;a==="inline"?i.children.push(B):a==="classic"&&m.children.push(B),b+=A.content.length}if(a==="classic"){for(const A of s)m=((E=A==null?void 0:A.line)==null?void 0:E.call(h,m,v+1))||m;c.push(m),o.push(m)}}),a==="classic"){for(const _ of s)u=((p=_==null?void 0:_.code)==null?void 0:p.call(h,u))||u;f.children.push(u);for(const _ of s)f=((g=_==null?void 0:_.pre)==null?void 0:g.call(h,f))||f;i.children.push(f)}let d=i;for(const _ of s)d=((y=_==null?void 0:_.root)==null?void 0:y.call(h,d))||d;return r&&Vo(d,r),d}function MC(e){return e.map(t=>{const n=[];let r="",s=0;return t.forEach((o,i)=>{const l=!(o.fontStyle&&o.fontStyle&Kt.Underline);l&&o.content.match(/^\s+$/)&&t[i+1]?(s||(s=o.offset),r+=o.content):r?(l?n.push({...o,offset:s,content:r+o.content}):n.push({content:r,offset:s},o),s=0,r=""):n.push(o)}),n})}function DC(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,s,o,i]=r;if(!s&&!i)return n;const a=[{...n,offset:n.offset+s.length,content:o}];return s&&a.unshift({content:s,offset:n.offset}),i&&a.push({content:i,offset:n.offset+s.length+o.length}),a}))}const BC=oC;function HC(e,t,n){var o;const r={meta:{},options:n,codeToHast:(i,a)=>vo(e,i,a),codeToTokens:(i,a)=>bo(e,i,a)};let s=BC(vo(e,t,n,r));for(const i of _o(n))s=((o=i.postprocess)==null?void 0:o.call(r,s,n))||s;return s}const du={light:"#333333",dark:"#bbbbbb"},pu={light:"#fffffe",dark:"#1e1e1e"},gu="__shiki_resolved";function _l(e){var a,l,f,u,c;if(e!=null&&e[gu])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const h=t.settings?t.settings.find(d=>!d.name&&!d.scope):void 0;(a=h==null?void 0:h.settings)!=null&&a.foreground&&(r=h.settings.foreground),(l=h==null?void 0:h.settings)!=null&&l.background&&(n=h.settings.background),!r&&((f=t==null?void 0:t.colors)!=null&&f["editor.foreground"])&&(r=t.colors["editor.foreground"]),!n&&((u=t==null?void 0:t.colors)!=null&&u["editor.background"])&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?du.light:du.dark),n||(n=t.type==="light"?pu.light:pu.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let s=0;const o=new Map;function i(h){var p;if(o.has(h))return o.get(h);s+=1;const d=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return(p=t.colorReplacements)!=null&&p[`#${d}`]?i(h):(o.set(h,d),d)}t.settings=t.settings.map(h=>{var y,_;const d=((y=h.settings)==null?void 0:y.foreground)&&!h.settings.foreground.startsWith("#"),p=((_=h.settings)==null?void 0:_.background)&&!h.settings.background.startsWith("#");if(!d&&!p)return h;const g={...h,settings:{...h.settings}};if(d){const v=i(h.settings.foreground);t.colorReplacements[v]=h.settings.foreground,g.settings.foreground=v}if(p){const v=i(h.settings.background);t.colorReplacements[v]=h.settings.background,g.settings.background=v}return g});for(const h of Object.keys(t.colors||{}))if((h==="editor.foreground"||h==="editor.background"||h.startsWith("terminal.ansi"))&&!((c=t.colors[h])!=null&&c.startsWith("#"))){const d=i(t.colors[h]);t.colorReplacements[d]=t.colors[h],t.colors[h]=d}return Object.defineProperty(t,gu,{enumerable:!1,writable:!1,value:!0}),t}async function Dd(e){return Array.from(new Set((await Promise.all(e.filter(t=>!cC(t)).map(async t=>await $d(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Bd(e){return(await Promise.all(e.map(async n=>uC(n)?null:_l(await $d(n))))).filter(n=>!!n)}let FC=3;function jC(e,t=3){t>FC||console.trace(`[SHIKI DEPRECATE]: ${e}`)}class rr extends Error{constructor(t){super(t),this.name="ShikiError"}}class GC extends zb{constructor(n,r,s,o={}){super(n);S(this,"_resolvedThemes",new Map);S(this,"_resolvedGrammars",new Map);S(this,"_langMap",new Map);S(this,"_langGraph",new Map);S(this,"_textmateThemeCache",new WeakMap);S(this,"_loadedThemesCache",null);S(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=r,this._langs=s,this._alias=o,this._themes.map(i=>this.loadTheme(i)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const r=_l(n);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let r=this._textmateThemeCache.get(n);r||(r=fo.createFromRawTheme(n),this._textmateThemeCache.set(n,r)),this._syncRegistry.setTheme(r)}getGrammar(n){if(this._alias[n]){const r=new Set([n]);for(;this._alias[n];){if(n=this._alias[n],r.has(n))throw new rr(`Circular alias \`${Array.from(r).join(" -> ")} -> ${n}\``);r.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){var i,a,l,f;if(this.getGrammar(n.name))return;const r=new Set([...this._langMap.values()].filter(u=>{var c;return(c=u.embeddedLangsLazy)==null?void 0:c.includes(n.name)}));this._resolver.addLanguage(n);const s={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const o=this.loadGrammarWithConfiguration(n.scopeName,1,s);if(o.name=n.name,this._resolvedGrammars.set(n.name,o),n.aliases&&n.aliases.forEach(u=>{this._alias[u]=n.name}),this._loadedLanguagesCache=null,r.size)for(const u of r)this._resolvedGrammars.delete(u.name),this._loadedLanguagesCache=null,(a=(i=this._syncRegistry)==null?void 0:i._injectionGrammars)==null||a.delete(u.scopeName),(f=(l=this._syncRegistry)==null?void 0:l._grammars)==null||f.delete(u.scopeName),this.loadLanguage(this._langMap.get(u.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const o of n)this.resolveEmbeddedLanguages(o);const r=Array.from(this._langGraph.entries()),s=r.filter(([o,i])=>!i);if(s.length){const o=r.filter(([i,a])=>{var l;return a&&((l=a.embeddedLangs)==null?void 0:l.some(f=>s.map(([u])=>u).includes(f)))}).filter(i=>!s.includes(i));throw new rr(`Missing languages ${s.map(([i])=>`\`${i}\``).join(", ")}, required by ${o.map(([i])=>`\`${i}\``).join(", ")}`)}for(const[o,i]of r)this._resolver.addLanguage(i);for(const[o,i]of r)this.loadLanguage(i)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){if(this._langMap.set(n.name,n),this._langGraph.set(n.name,n),n.embeddedLangs)for(const r of n.embeddedLangs)this._langGraph.set(r,this._langMap.get(r))}}class UC{constructor(t,n){S(this,"_langs",new Map);S(this,"_scopeToLang",new Map);S(this,"_injections",new Map);S(this,"_onigLib");this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let s=1;s<=n.length;s++){const o=n.slice(0,s).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let $r=0;function WC(e){$r+=1,e.warnings!==!1&&$r>=10&&$r%10===0&&console.warn(`[Shiki] ${$r} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new rr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(_l),s=new UC(e.engine,n),o=new GC(s,r,n,e.langAlias);let i;function a(v){y();const m=o.getGrammar(typeof v=="string"?v:v.name);if(!m)throw new rr(`Language \`${v}\` not found, you may need to load it first`);return m}function l(v){if(v==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};y();const m=o.getTheme(v);if(!m)throw new rr(`Theme \`${v}\` not found, you may need to load it first`);return m}function f(v){y();const m=l(v);i!==v&&(o.setTheme(m),i=v);const b=o.getColorMap();return{theme:m,colorMap:b}}function u(){return y(),o.getLoadedThemes()}function c(){return y(),o.getLoadedLanguages()}function h(...v){y(),o.loadLanguages(v.flat(1))}async function d(...v){return h(await Dd(v))}function p(...v){y();for(const m of v.flat(1))o.loadTheme(m)}async function g(...v){return y(),p(await Bd(v))}function y(){if(t)throw new rr("Shiki instance has been disposed")}function _(){t||(t=!0,o.dispose(),$r-=1)}return{setTheme:f,getTheme:l,getLanguage:a,getLoadedThemes:u,getLoadedLanguages:c,loadLanguage:d,loadLanguageSync:h,loadTheme:g,loadThemeSync:p,dispose:_,[Symbol.dispose]:_}}async function zC(e){e.engine||jC("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Bd(e.themes||[]),Dd(e.langs||[]),e.engine]);return WC({...e,themes:t,langs:n,engine:r})}async function VC(e){const t=await zC(e);return{getLastGrammarState:(...n)=>TC(t,...n),codeToTokensBase:(n,r)=>yl(t,n,r),codeToTokensWithThemes:(n,r)=>Md(t,n,r),codeToTokens:(n,r)=>bo(t,n,r),codeToHast:(n,r)=>vo(t,n,r),codeToHtml:(n,r)=>HC(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}const Be=String.raw,wl=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]);function qC(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function $t(e,t){if(!e)throw new Error(t??"Value expected");return e}const U={Alternator:"Alternator",Assertion:"Assertion",Backreference:"Backreference",Character:"Character",CharacterClassClose:"CharacterClassClose",CharacterClassHyphen:"CharacterClassHyphen",CharacterClassIntersector:"CharacterClassIntersector",CharacterClassOpen:"CharacterClassOpen",CharacterSet:"CharacterSet",Directive:"Directive",GroupClose:"GroupClose",GroupOpen:"GroupOpen",Subroutine:"Subroutine",Quantifier:"Quantifier",EscapedNumber:"EscapedNumber"},Ee={any:"any",digit:"digit",dot:"dot",grapheme:"grapheme",hex:"hex",newline:"newline",posix:"posix",property:"property",space:"space",word:"word"},bl={flags:"flags",keep:"keep"},Ge={absent_repeater:"absent_repeater",atomic:"atomic",capturing:"capturing",group:"group",lookahead:"lookahead",lookbehind:"lookbehind"},Jn={greedy:"greedy",lazy:"lazy",possessive:"possessive"},mu=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]),Hd=Be`\[\^?`,Fd=`c.? | C(?:-.?)?|${Be`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Be`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Be`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Be`o\{[^\}]*\}?`}|${Be`\d{1,3}`}`,jd=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Os=new RegExp(Be`
31
- \\ (?:
32
- ${Fd}
33
- | [gk]<[^>]*>?
34
- | [gk]'[^']*'?
35
- | .
36
- )
37
- | \( (?:
38
- \? (?:
39
- [:=!>({]
40
- | <[=!]
41
- | <[^>]*>
42
- | '[^']*'
43
- | ~\|?
44
- | #(?:[^)\\]|\\.?)*
45
- | [^:)]*[:)]
46
- )?
47
- | \*
48
- )?
49
- | ${jd.source}
50
- | ${Hd}
51
- | .
52
- `.replace(/\s+/g,""),"gsu"),Ei=new RegExp(Be`
53
- \\ (?:
54
- ${Fd}
55
- | .
56
- )
57
- | \[:(?:\^?\p{Alpha}+|\^):\]
58
- | ${Hd}
59
- | &&
60
- | .
61
- `.replace(/\s+/g,""),"gsu");function KC(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=r1(n.flags),s=[r.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX:()=>s.at(-1),numOpenGroups:0,popModX(){s.pop()},pushModX(c){s.push(c)},replaceCurrentModX(c){s[s.length-1]=c},singleline:n.rules.singleline};let i=[],a;for(Os.lastIndex=0;a=Os.exec(e);){const c=XC(o,e,a[0],Os.lastIndex);c.tokens?i.push(...c.tokens):c.token&&i.push(c.token),c.lastIndex!==void 0&&(Os.lastIndex=c.lastIndex)}const l=[];let f=0;i.forEach(c=>{c.type===U.GroupOpen&&(c.kind===Ge.capturing?c.number=++f:c.raw==="("&&l.push(c))}),f||l.forEach((c,h)=>{c.kind=Ge.capturing,c.number=h+1});const u=f||l.length;return i=i.map(c=>c.type===U.EscapedNumber?o1(c,u):c).flat(),{tokens:i,flags:r}}function XC(e,t,n,r){const[s,o]=n;if(s==="["){const i=JC(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(s==="\\"){if("AbBGyYzZ".includes(o))return{token:ie(U.Assertion,n,{kind:n})};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:ie(U.Subroutine,n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:ie(U.Backreference,n)}}if(o==="K")return{token:ie(U.Directive,n,{kind:bl.keep})};if(o==="N"||o==="R")return{token:ie(U.CharacterSet,n,{kind:Ee.newline,negate:o==="N"})};if(o==="O")return{token:ie(U.CharacterSet,n,{kind:Ee.any})};if(o==="X")return{token:ie(U.CharacterSet,n,{kind:Ee.grapheme})};const i=Gd(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(s==="("){if(n==="(*")throw new Error(`Unsupported named callout "${n}"`);if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:ZC(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:ie(U.GroupOpen,n,{kind:Ge.group})};if(n==="(?>")return{token:ie(U.GroupOpen,n,{kind:Ge.atomic})};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:ie(U.GroupOpen,n,{kind:n[2]==="<"?Ge.lookbehind:Ge.lookahead,negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'")){const i=ie(U.GroupOpen,n,{kind:Ge.capturing});return n!=="("&&(i.name=n.slice(3,-1)),{token:i}}if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absent function kind "${n}"`);return{token:ie(U.GroupOpen,n,{kind:Ge.absent_repeater})}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:ie(U.GroupClose,n)}}if(n==="#"&&e.getCurrentModX()){const i=t.indexOf(`
62
- `,r);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(n)&&e.getCurrentModX()){const i=/\s+/y;return i.lastIndex=r,{lastIndex:i.exec(t)?i.lastIndex:r}}if(n===".")return{token:ie(U.CharacterSet,n,{kind:Ee.dot})};if(n==="^"||n==="$"){const i=e.singleline?{"^":Be`\A`,$:Be`\Z`}[n]:n;return{token:ie(U.Assertion,n,{kind:i})}}return n==="|"?{token:ie(U.Alternator,n)}:jd.test(n)?{token:e1(n)}:(Ud(n),{token:ie(U.Character,n,{value:n.codePointAt(0)})})}function JC(e,t,n){const r=[ie(U.CharacterClassOpen,t,{negate:t[1]==="^"})];let s=1,o;for(Ei.lastIndex=n;o=Ei.exec(e);){const i=o[0];if(i[0]==="["&&i[1]!==":")s++,r.push(ie(U.CharacterClassOpen,i,{negate:i[1]==="^"}));else if(i==="]"){if(r.at(-1).type===U.CharacterClassOpen)r.push(ie(U.Character,i,{value:93}));else if(s--,r.push(ie(U.CharacterClassClose,i)),!s)break}else{const a=QC(i);Array.isArray(a)?r.push(...a):r.push(a)}}return{tokens:r,lastIndex:Ei.lastIndex||e.length}}function QC(e){if(e[0]==="\\")return Gd(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!wl.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return ie(U.CharacterSet,e,{kind:Ee.posix,value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?ie(U.CharacterClassHyphen,e):e==="&&"?ie(U.CharacterClassIntersector,e):(Ud(e),ie(U.Character,e,{value:e.codePointAt(0)}))}function Gd(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return YC(e);if("dDhHsSwW".includes(n))return t1(e);if(e.startsWith(Be`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return n1(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const r=e.split(/\\x/).slice(1).map(i=>parseInt(i,16)),s=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),o=new TextEncoder;return[...s].map(i=>{const a=[...o.encode(i)].map(l=>`\\x${l.toString(16)}`).join("");return ie(U.Character,a,{value:i.codePointAt(0)})})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return ie(U.Character,e,{value:s1(e)});if(mu.has(n))return ie(U.Character,e,{value:mu.get(n)});if(/\d/.test(n))return ie(U.EscapedNumber,e,{inCharClass:t});if(e==="\\")throw new Error(Be`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return ie(U.Character,e,{value:e.codePointAt(1)});throw new Error(`Unexpected escape "${e}"`)}function ie(e,t,n){return{type:e,raw:t,...n}}function YC(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return ie(U.Character,e,{value:t.toUpperCase().codePointAt(0)-64})}function ZC(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??(r="");const s=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=yu(n),i=yu(r),a={};if(o&&(a.enable=o),i&&(a.disable=i),e.endsWith(")"))return t.replaceCurrentModX(s),ie(U.Directive,e,{kind:bl.flags,flags:a});if(e.endsWith(":")){t.pushModX(s),t.numOpenGroups++;const l=ie(U.GroupOpen,e,{kind:Ge.group});return(o||i)&&(l.flags=a),l}throw new Error(`Unexpected flag modifier "${e}"`)}function e1(e){const t={};if(e[0]==="{"){const{min:n,max:r}=/^\{(?<min>\d*)(?:,(?<max>\d*))?/.exec(e).groups,s=1e5;if(+n>s||+r>s)throw new Error("Quantifier value unsupported in Oniguruma");t.min=+n,t.max=r===void 0?+n:r===""?1/0:+r,t.kind=e.endsWith("?")?Jn.lazy:Jn.greedy}else t.min=e[0]==="+"?1:0,t.max=e[0]==="?"?1:1/0,t.kind=e[1]==="+"?Jn.possessive:e[1]==="?"?Jn.lazy:Jn.greedy;return ie(U.Quantifier,e,t)}function t1(e){const t=e[1].toLowerCase();return ie(U.CharacterSet,e,{kind:{d:Ee.digit,h:Ee.hex,s:Ee.space,w:Ee.word}[t],negate:e[1]!==t})}function n1(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups,s=t==="P"&&!n||t==="p"&&!!n;return ie(U.CharacterSet,e,{kind:Ee.property,value:r,negate:s})}function yu(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function r1(e){if(!/^[imxDPSW]*$/.test(e))throw new Error(`Flags "${e}" includes unsupported value`);const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1};for(const n of e)t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0;return t}function s1(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function o1(e,t){const{raw:n,inCharClass:r}=e,s=n.slice(1);if(!r&&(s!=="0"&&s.length===1||s[0]!=="0"&&+s<=t))return[ie(U.Backreference,n)];const o=[],i=s.match(/^[0-7]+|\d/g);for(let a=0;a<i.length;a++){const l=i[a];let f;if(a===0&&l!=="8"&&l!=="9"){if(f=parseInt(l,8),f>127)throw new Error(Be`Octal encoded byte above 177 unsupported "${n}"`)}else f=l.codePointAt(0);o.push(ie(U.Character,(a===0?"\\":"")+l,{value:f}))}return o}function Ud(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`)}const N={AbsentFunction:"AbsentFunction",Alternative:"Alternative",Assertion:"Assertion",Backreference:"Backreference",CapturingGroup:"CapturingGroup",Character:"Character",CharacterClass:"CharacterClass",CharacterClassRange:"CharacterClassRange",CharacterSet:"CharacterSet",Directive:"Directive",Flags:"Flags",Group:"Group",LookaroundAssertion:"LookaroundAssertion",Pattern:"Pattern",Quantifier:"Quantifier",Regex:"Regex",Subroutine:"Subroutine",Recursion:"Recursion"},Wd={repeater:"repeater"},me={grapheme_boundary:"grapheme_boundary",line_end:"line_end",line_start:"line_start",search_start:"search_start",string_end:"string_end",string_end_newline:"string_end_newline",string_start:"string_start",word_boundary:"word_boundary"},Ut={union:"union",intersection:"intersection"},Se=Ee,Vr=bl,va=Jn,cn={lookahead:"lookahead",lookbehind:"lookbehind"};function zd(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=KC(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),s={capturingGroups:[],current:0,hasNumberedRef:!1,namedGroupsByName:new Map,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],token:null,tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:o};function o(h,d){const p=r.tokens[s.current];switch(s.parent=h,s.token=p,s.current++,p.type){case U.Alternator:return Qt();case U.Assertion:return p1(p);case U.Backreference:return i1(s);case U.Character:return vl(p.value,{useLastValid:!!d.isCheckingRangeEnd});case U.CharacterClassHyphen:return a1(s,d);case U.CharacterClassOpen:return l1(s,d);case U.CharacterSet:return c1(s);case U.Directive:return y1($t(Vr[p.kind],`Unexpected directive kind "${p.kind}"`),{flags:p.flags});case U.GroupOpen:return u1(s,d);case U.Quantifier:return f1(s);case U.Subroutine:return h1(s);default:throw new Error(`Unexpected token type "${p.type}"`)}}const i=v1(w1(),_1(r.flags));let a=i.pattern.alternatives[0];for(;s.current<r.tokens.length;){const h=o(a,{});h.type===N.Alternative?(i.pattern.alternatives.push(h),a=h):a.elements.push(h)}const{capturingGroups:l,hasNumberedRef:f,namedGroupsByName:u,subroutines:c}=s;if(f&&u.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:h}of c)if(typeof h=="number"){if(h>l.length)throw new Error("Subroutine uses a group number that's not defined")}else if(u.has(h)){if(u.get(h).length>1)throw new Error(Be`Subroutine uses a duplicate group name "\g<${h}>"`)}else throw new Error(Be`Subroutine uses a group name that's not defined "\g<${h}>"`);return i}function i1(e){const{raw:t}=e.token,n=/^\\k[<']/.test(t),r=n?t.slice(3,-1):t.slice(1),s=(o,i=!1)=>{const a=e.capturingGroups.length;let l=!1;if(o>a)if(e.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${t}"`);return e.hasNumberedRef=!0,Ca(i?a+1-o:o,{orphan:l})};if(n){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(o)return s(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${t}"`);if(!e.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${t}"`);return Ca(r)}return s(+r)}function a1(e,t){const{parent:n,tokens:r,walk:s}=e,o=n.elements.at(-1),i=r[e.current];if(!t.isCheckingRangeEnd&&o&&o.type!==N.CharacterClass&&o.type!==N.CharacterClassRange&&i&&i.type!==U.CharacterClassOpen&&i.type!==U.CharacterClassClose&&i.type!==U.CharacterClassIntersector){const a=s(n,{...t,isCheckingRangeEnd:!0});if(o.type===N.Character&&a.type===N.Character)return n.elements.pop(),m1(o,a);throw new Error("Invalid character class range")}return vl(45)}function l1(e,t){const{token:n,tokens:r,walk:s}=e,o=r[e.current],i=[Ws()];let a=_u(o);for(;a.type!==U.CharacterClassClose;){if(a.type===U.CharacterClassIntersector)i.push(Ws()),e.current++;else{const f=i.at(-1);f.elements.push(s(f,t))}a=_u(r[e.current],o)}const l=Ws({negate:n.negate});return i.length===1?l.elements=i[0].elements:(l.kind=Ut.intersection,l.elements=i.map(f=>f.elements.length===1?f.elements[0]:f)),e.current++,l}function c1({token:e,normalizeUnknownPropertyNames:t,skipPropertyNameValidation:n,unicodePropertyMap:r}){let{kind:s,negate:o,value:i}=e;if(s===Ee.property){const a=qo(i);if(wl.has(a)&&!(r!=null&&r.has(a)))s=Ee.posix,i=a;else return Qn(i,{negate:o,normalizeUnknownPropertyNames:t,skipPropertyNameValidation:n,unicodePropertyMap:r})}return s===Ee.posix?b1(i,{negate:o}):xa(s,{negate:o})}function u1(e,t){const{token:n,tokens:r,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:i,walk:a}=e;let l=g1(n);const f=l.type===N.AbsentFunction,u=l.kind===cn.lookbehind,c=u&&l.negate;if(l.type===N.CapturingGroup&&(s.push(l),l.name&&qC(o,l.name,[]).push(l)),f&&t.isInAbsentFunction)throw new Error("Nested absent function not supported by Oniguruma");let h=wu(r[e.current]);for(;h.type!==U.GroupClose;){if(h.type===U.Alternator)l.alternatives.push(Qt()),e.current++;else{const d=l.alternatives.at(-1),p=a(d,{...t,isInAbsentFunction:t.isInAbsentFunction||f,isInLookbehind:t.isInLookbehind||u,isInNegLookbehind:t.isInNegLookbehind||c});if(d.elements.push(p),(u||t.isInLookbehind)&&!i){const g="Lookbehind includes a pattern not allowed by Oniguruma";if(c||t.isInNegLookbehind){if(p.kind===cn.lookahead||p.type===N.CapturingGroup)throw new Error(g)}else if(p.kind===cn.lookahead||p.kind===cn.lookbehind&&p.negate)throw new Error(g)}}h=wu(r[e.current])}return e.current++,l}function f1({token:e,parent:t}){const{min:n,max:r,kind:s}=e,o=t.elements.at(-1);if(!o||o.type===N.Assertion||o.type===N.Directive||o.type===N.LookaroundAssertion)throw new Error("Quantifier requires a repeatable token");const i=Kd(o,n,r,$t(va[s],`Unexpected quantifier kind "${s}"`));return t.elements.pop(),i}function h1(e){const{token:t,capturingGroups:n,subroutines:r}=e;let s=t.raw.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(s);if(o){const a=+o.groups.num,l=n.length;if(e.hasNumberedRef=!0,s={"":a,"+":l+a,"-":l+1-a}[o.groups.sign],s<1)throw new Error("Invalid subroutine number")}else s==="0"&&(s=0);const i=C1(s);return r.push(i),i}function d1(e){return{type:N.AbsentFunction,kind:e,alternatives:[Qt()]}}function Qt(){return{type:N.Alternative,elements:[]}}function Vd(e,t){const n={type:N.Assertion,kind:e};return(e===me.word_boundary||e===me.grapheme_boundary)&&(n.negate=!!(t!=null&&t.negate)),n}function p1({kind:e}){return Vd($t({"^":me.line_start,$:me.line_end,"\\A":me.string_start,"\\b":me.word_boundary,"\\B":me.word_boundary,"\\G":me.search_start,"\\y":me.grapheme_boundary,"\\Y":me.grapheme_boundary,"\\z":me.string_end,"\\Z":me.string_end_newline}[e],`Unexpected assertion kind "${e}"`),{negate:e===Be`\B`||e===Be`\Y`})}function Ca(e,t){const n=!!(t!=null&&t.orphan);return{type:N.Backreference,ref:e,...n&&{orphan:n}}}function g1({flags:e,kind:t,name:n,negate:r,number:s}){switch(t){case Ge.absent_repeater:return d1(Wd.repeater);case Ge.atomic:return _t({atomic:!0});case Ge.capturing:return qd(s,n);case Ge.group:return _t({flags:e});case Ge.lookahead:case Ge.lookbehind:return qr({behind:t===Ge.lookbehind,negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function qd(e,t){const n=t!==void 0;if(n&&!x1(t))throw new Error(`Group name "${t}" invalid in Oniguruma`);return{type:N.CapturingGroup,number:e,...n&&{name:t},alternatives:[Qt()]}}function vl(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:N.Character,value:e}}function Ws(e){const t={kind:Ut.union,negate:!1,...e};return{type:N.CharacterClass,kind:t.kind,negate:t.negate,elements:[]}}function m1(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:N.CharacterClassRange,min:e,max:t}}function xa(e,t){const n=!!(t!=null&&t.negate),r={type:N.CharacterSet,kind:$t(Se[e],`Unexpected character set kind "${e}"`)};return(e===Ee.digit||e===Ee.hex||e===Ee.newline||e===Ee.space||e===Ee.word)&&(r.negate=n),(e===Ee.grapheme||e===Ee.newline&&!n)&&(r.variableLength=!0),r}function y1(e,t){const n={type:N.Directive,kind:e};return e===Vr.flags&&(n.flags=t.flags),n}function _1(e){return{type:N.Flags,...e}}function _t(e){const t=e==null?void 0:e.atomic,n=e==null?void 0:e.flags;return{type:N.Group,...t&&{atomic:t},...n&&{flags:n},alternatives:[Qt()]}}function qr(e){const t={behind:!1,negate:!1,...e};return{type:N.LookaroundAssertion,kind:t.behind?cn.lookbehind:cn.lookahead,negate:t.negate,alternatives:[Qt()]}}function w1(){return{type:N.Pattern,alternatives:[Qt()]}}function b1(e,t){const n=!!(t!=null&&t.negate);if(!wl.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:N.CharacterSet,kind:Se.posix,value:e,negate:n}}function Kd(e,t,n,r=va.greedy){const s={type:N.Quantifier,min:t,max:n,kind:r,element:e};return n<t?{...s,min:n,max:t,kind:va.possessive}:s}function v1(e,t){return{type:N.Regex,pattern:e,flags:t}}function C1(e){return{type:N.Subroutine,ref:e}}function Qn(e,t){var s;const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=(s=n.unicodePropertyMap)==null?void 0:s.get(qo(e));if(!r){if(n.normalizeUnknownPropertyNames)r=S1(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(Be`Invalid Unicode property "\p{${e}}"`)}return{type:N.CharacterSet,kind:Se.property,value:r??e,negate:n.negate}}function x1(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function S1(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function qo(e){return e.replace(/[- _]+/g,"").toLowerCase()}function _u(e,t){return $t(e,`${(t==null?void 0:t.value)===93?"Empty":"Unclosed"} character class`)}function wu(e){return $t(e,"Unclosed group")}const Cl=String.raw,bu=Cl`(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})`,vu=Cl`\u{E0061}-\u{E007A}`,k1=()=>new RegExp(Cl`[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[${vu}]{2}[\u{E0030}-\u{E0039}${vu}]{1,3}\u{E007F}|${bu}(?:\u200D${bu})*`,"gu");function Kr(e,t,n=null){function r(o,i){for(let a=0;a<o.length;a++){const l=s(o[a],i,a,o);a=Math.max(-1,a+l)}}function s(o,i=null,a=null,l=null){var _,v;const f="Container expected";let u=0,c=!1;const h={node:o,parent:i,key:a,container:l,root:e,remove(){$t(l,f).splice(Math.max(0,a+u),1),u--,c=!0},removeAllNextSiblings(){return $t(l,f).splice(a+1)},removeAllPrevSiblings(){const m=a+u;return u-=m,$t(l,f).splice(0,Math.max(0,m))},replaceWith(m,b={}){const C=!!b.traverse;l?l[Math.max(0,a+u)]=m:i[a]=m,C&&s(m,i,a,l),c=!0},replaceWithMultiple(m,b={}){const C=!!b.traverse;if($t(l,f).splice(Math.max(0,a+u),1,...m),u+=m.length-1,C){let E=0;for(let A=0;A<m.length;A++)E+=s(m[A],i,a+A+E,l)}c=!0},skip(){c=!0}},d=t["*"],p=t[o.type],g=typeof d=="function"?d:d==null?void 0:d.enter,y=typeof p=="function"?p:p==null?void 0:p.enter;if(g==null||g(h,n),y==null||y(h,n),!c)switch(o.type){case N.Regex:s(o.pattern,o,"pattern"),s(o.flags,o,"flags");break;case N.Alternative:case N.CharacterClass:r(o.elements,o);break;case N.Assertion:case N.Backreference:case N.Character:case N.CharacterSet:case N.Directive:case N.Flags:case N.Recursion:case N.Subroutine:break;case N.AbsentFunction:case N.CapturingGroup:case N.Group:case N.Pattern:r(o.alternatives,o);break;case N.CharacterClassRange:s(o.min,o,"min"),s(o.max,o,"max");break;case N.LookaroundAssertion:r(o.alternatives,o);break;case N.Quantifier:s(o.element,o,"element");break;default:throw new Error(`Unexpected node type "${o.type}"`)}return(_=d==null?void 0:d.exit)==null||_.call(d,h,n),(v=p==null?void 0:p.exit)==null||v.call(p,h,n),u}s(e)}const A1=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function E1(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function T1(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const ht=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function xl(e,t,n,r){const s=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let i=0,a="";for(const l of e.matchAll(s)){const{0:f,groups:{$skip:u}}=l;if(!u&&(!r||r===ht.DEFAULT==!i)){n instanceof Function?a+=n(l,{context:i?ht.CHAR_CLASS:ht.DEFAULT,negated:o[o.length-1]}):a+=n;continue}f[0]==="["?(i++,o.push(f[1]==="^")):f==="]"&&i&&(i--,o.pop()),a+=f}return a}function Xd(e,t,n,r){xl(e,t,n,r)}function R1(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const s=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");s.lastIndex=n;let o=0,i;for(;i=s.exec(e);){const{0:a,groups:{$skip:l}}=i;if(!l&&(!r||r===ht.DEFAULT==!o))return i;a==="["?o++:a==="]"&&o&&o--,s.lastIndex==i.index&&s.lastIndex++}return null}function Ls(e,t,n){return!!R1(e,t,0,n)}function P1(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,s=0,o=1,i;for(;i=n.exec(e);){const[a]=i;if(a==="[")s++;else if(s)a==="]"&&s--;else if(a==="(")o++;else if(a===")"&&(o--,!o)){r=i.index;break}}return e.slice(t,r)}const Cu=new RegExp(String.raw`(?<noncapturingStart>${A1})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function $1(e,t){const n=(t==null?void 0:t.hiddenCaptures)??[];let r=(t==null?void 0:t.captureTransfers)??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const s="(?>",o="(?:(?=(",i=[0],a=[];let l=0,f=0,u=NaN,c;do{c=!1;let h=0,d=0,p=!1,g;for(Cu.lastIndex=Number.isNaN(u)?0:u+o.length;g=Cu.exec(e);){const{0:y,index:_,groups:{capturingStart:v,noncapturingStart:m}}=g;if(y==="[")h++;else if(h)y==="]"&&h--;else if(y===s&&!p)u=_,p=!0;else if(p&&m)d++;else if(v)p?d++:(l++,i.push(l+f));else if(y===")"&&p){if(!d){f++;const b=l+f;if(e=`${e.slice(0,u)}${o}${e.slice(u+s.length,_)}))<$$${b}>)${e.slice(_+1)}`,c=!0,a.push(b),E1(n,b),r.size){const C=new Map;r.forEach((E,A)=>{C.set(A>=b?A+1:A,E.map(B=>B>=b?B+1:B))}),r=C}break}d--}}}while(c);return n.push(...a),e=xl(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:h,groups:{backrefNum:d,wrappedBackrefNum:p}})=>{if(d){const g=+d;if(g>i.length-1)throw new Error(`Backref "${h}" greater than number of captures`);return`\\${i[g]}`}return`\\${p}`},ht.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const Jd=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Ti=new RegExp(String.raw`
63
- \\(?: \d+
64
- | c[A-Za-z]
65
- | [gk]<[^>]+>
66
- | [pPu]\{[^\}]+\}
67
- | u[A-Fa-f\d]{4}
68
- | x[A-Fa-f\d]{2}
69
- )
70
- | \((?: \? (?: [:=!>]
71
- | <(?:[=!]|[^>]+>)
72
- | [A-Za-z\-]+:
73
- | \(DEFINE\)
74
- ))?
75
- | (?<qBase>${Jd})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
76
- | \\?.
77
- `.replace(/\s+/g,""),"gsu");function N1(e){if(!new RegExp(`${Jd}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,s="",o=0,i;for(Ti.lastIndex=0;i=Ti.exec(e);){const{0:a,index:l,groups:{qBase:f,qMod:u,invalidQ:c}}=i;if(a==="[")o||(r=l),o++;else if(a==="]")o?o--:r=null;else if(!o)if(u==="+"&&s&&!s.startsWith("(")){if(c)throw new Error(`Invalid quantifier "${a}"`);let h=-1;if(/^\{\d+\}$/.test(f))e=T1(e,l+f.length,u,"");else{if(s===")"||s==="]"){const d=s===")"?n:r;if(d===null)throw new Error(`Invalid unmatched "${s}"`);e=`${e.slice(0,d)}(?>${e.slice(d,l)}${f})${e.slice(l+a.length)}`}else e=`${e.slice(0,l-s.length)}(?>${s}${f})${e.slice(l+a.length)}`;h+=4}Ti.lastIndex+=h}else a[0]==="("?t.push(l):a===")"&&(n=t.length?t.pop():null);s=a}return{pattern:e}}const ut=String.raw,I1=ut`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Sa=ut`\(\?R=(?<rDepth>[^\)]+)\)|${I1}`,Ko=ut`\(\?<(?![=!])(?<captureName>[^>]+)>`,Qd=ut`${Ko}|(?<unnamed>\()(?!\?)`,En=new RegExp(ut`${Ko}|${Sa}|\(\?|\\?.`,"gsu"),Ri="Cannot use multiple overlapping recursions";function O1(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let s=(t==null?void 0:t.captureTransfers)??new Map;if(!new RegExp(Sa,"su").test(e))return{pattern:e,captureTransfers:s,hiddenCaptures:n};if(r==="plugin"&&Ls(e,ut`\(\?\(DEFINE\)`,ht.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],i=Ls(e,ut`\\[1-9]`,ht.DEFAULT),a=new Map,l=[];let f=!1,u=0,c=0,h;for(En.lastIndex=0;h=En.exec(e);){const{0:d,groups:{captureName:p,rDepth:g,gRNameOrNum:y,gRDepth:_}}=h;if(d==="[")u++;else if(u)d==="]"&&u--;else if(g){if(xu(g),f)throw new Error(Ri);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const v=e.slice(0,h.index),m=e.slice(En.lastIndex);if(Ls(m,Sa,ht.DEFAULT))throw new Error(Ri);const b=+g-1;e=Su(v,m,b,!1,n,o,c),s=Au(s,v,b,o.length,0,c);break}else if(y){xu(_);let v=!1;for(const q of l)if(q.name===y||q.num===+y){if(v=!0,q.hasRecursedWithin)throw new Error(Ri);break}if(!v)throw new Error(ut`Recursive \g cannot be used outside the referenced group "${r==="external"?y:ut`\g<${y}&R=${_}>`}"`);const m=a.get(y),b=P1(e,m);if(i&&Ls(b,ut`${Ko}|\((?!\?)`,ht.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const C=e.slice(m,h.index),E=b.slice(C.length+d.length),A=o.length,B=+_-1,H=Su(C,E,B,!0,n,o,c);s=Au(s,C,B,o.length-A,A,c);const O=e.slice(0,m),K=e.slice(m+b.length);e=`${O}${H}${K}`,En.lastIndex+=H.length-d.length-C.length-E.length,l.forEach(q=>q.hasRecursedWithin=!0),f=!0}else if(p)c++,a.set(String(c),En.lastIndex),a.set(p,En.lastIndex),l.push({num:c,name:p});else if(d[0]==="("){const v=d==="(";v&&(c++,a.set(String(c),En.lastIndex)),l.push(v?{num:c}:{})}else d===")"&&l.pop()}return n.push(...o),{pattern:e,captureTransfers:s,hiddenCaptures:n}}function xu(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function Su(e,t,n,r,s,o,i){const a=new Set;r&&Xd(e+t,Ko,({groups:{captureName:f}})=>{a.add(f)},ht.DEFAULT);const l=[n,r?a:null,s,o,i];return`${e}${ku(`(?:${e}`,"forward",...l)}(?:)${ku(`${t})`,"backward",...l)}${t}`}function ku(e,t,n,r,s,o,i){const l=u=>t==="forward"?u+2:n-u+2-1;let f="";for(let u=0;u<n;u++){const c=l(u);f+=xl(e,ut`${Qd}|\\k<(?<backref>[^>]+)>`,({0:h,groups:{captureName:d,unnamed:p,backref:g}})=>{if(g&&r&&!r.has(g))return h;const y=`_$${c}`;if(p||d){const _=i+o.length+1;return o.push(_),L1(s,_),p?h:`(?<${d}${y}>`}return ut`\k<${g}${y}>`},ht.DEFAULT)}return f}function L1(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Au(e,t,n,r,s,o){if(e.size&&r){let i=0;Xd(t,Qd,()=>i++,ht.DEFAULT);const a=o-i+s,l=new Map;return e.forEach((f,u)=>{const c=(r-i*n)/n,h=i*n,d=u>a+i?u+r:u,p=[];for(const g of f)if(g<=a)p.push(g);else if(g>a+i+c)p.push(g+r);else if(g<=a+i)for(let y=0;y<=n;y++)p.push(g+i*y);else for(let y=0;y<=n;y++)p.push(g+h+c*y);l.set(d,p)}),l}return e}var $e=String.fromCodePoint,re=String.raw,vr={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("","v")}catch{return!1}return!0})()};vr.literalHyphenIncorrectlyCreatesRange=(()=>{if(!vr.unicodeSets)return!1;try{new RegExp(re`[\d\-a]`,"v")}catch{return!0}return!1})();function Co(e,{enable:t,disable:n}){return{dotAll:!(n!=null&&n.dotAll)&&!!(t!=null&&t.dotAll||e.dotAll),ignoreCase:!(n!=null&&n.ignoreCase)&&!!(t!=null&&t.ignoreCase||e.ignoreCase)}}function us(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function ka(e,t){return Eu[e]>=Eu[t]}function M1(e,t){if(!e)throw new Error("Value expected");return e}var Eu={ES2025:2025,ES2024:2024,ES2018:2018},D1={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Yd(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!D1[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=vr.flagGroups?"ES2025":vr.unicodeSets?"ES2024":"ES2018"),t}var B1="[ -\r ]",Ft=re`[\p{L}\p{M}\p{N}\p{Pc}]`,H1=new Set([$e(304),$e(305)]);function Zd(e){if(H1.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),s=G1.get(n),o=F1.get(n),i=j1.get(n);return[...r].length===1&&t.add(r),i&&t.add(i),s&&t.add(s),t.add(n),o&&t.add(o),[...t]}var Sl=new Map(`C Other
78
- Cc Control cntrl
79
- Cf Format
80
- Cn Unassigned
81
- Co Private_Use
82
- Cs Surrogate
83
- L Letter
84
- LC Cased_Letter
85
- Ll Lowercase_Letter
86
- Lm Modifier_Letter
87
- Lo Other_Letter
88
- Lt Titlecase_Letter
89
- Lu Uppercase_Letter
90
- M Mark Combining_Mark
91
- Mc Spacing_Mark
92
- Me Enclosing_Mark
93
- Mn Nonspacing_Mark
94
- N Number
95
- Nd Decimal_Number digit
96
- Nl Letter_Number
97
- No Other_Number
98
- P Punctuation punct
99
- Pc Connector_Punctuation
100
- Pd Dash_Punctuation
101
- Pe Close_Punctuation
102
- Pf Final_Punctuation
103
- Pi Initial_Punctuation
104
- Po Other_Punctuation
105
- Ps Open_Punctuation
106
- S Symbol
107
- Sc Currency_Symbol
108
- Sk Modifier_Symbol
109
- Sm Math_Symbol
110
- So Other_Symbol
111
- Z Separator
112
- Zl Line_Separator
113
- Zp Paragraph_Separator
114
- Zs Space_Separator
115
- ASCII
116
- ASCII_Hex_Digit AHex
117
- Alphabetic Alpha
118
- Any
119
- Assigned
120
- Bidi_Control Bidi_C
121
- Bidi_Mirrored Bidi_M
122
- Case_Ignorable CI
123
- Cased
124
- Changes_When_Casefolded CWCF
125
- Changes_When_Casemapped CWCM
126
- Changes_When_Lowercased CWL
127
- Changes_When_NFKC_Casefolded CWKCF
128
- Changes_When_Titlecased CWT
129
- Changes_When_Uppercased CWU
130
- Dash
131
- Default_Ignorable_Code_Point DI
132
- Deprecated Dep
133
- Diacritic Dia
134
- Emoji
135
- Emoji_Component EComp
136
- Emoji_Modifier EMod
137
- Emoji_Modifier_Base EBase
138
- Emoji_Presentation EPres
139
- Extended_Pictographic ExtPict
140
- Extender Ext
141
- Grapheme_Base Gr_Base
142
- Grapheme_Extend Gr_Ext
143
- Hex_Digit Hex
144
- IDS_Binary_Operator IDSB
145
- IDS_Trinary_Operator IDST
146
- ID_Continue IDC
147
- ID_Start IDS
148
- Ideographic Ideo
149
- Join_Control Join_C
150
- Logical_Order_Exception LOE
151
- Lowercase Lower
152
- Math
153
- Noncharacter_Code_Point NChar
154
- Pattern_Syntax Pat_Syn
155
- Pattern_White_Space Pat_WS
156
- Quotation_Mark QMark
157
- Radical
158
- Regional_Indicator RI
159
- Sentence_Terminal STerm
160
- Soft_Dotted SD
161
- Terminal_Punctuation Term
162
- Unified_Ideograph UIdeo
163
- Uppercase Upper
164
- Variation_Selector VS
165
- White_Space space
166
- XID_Continue XIDC
167
- XID_Start XIDS`.split(/\s/).map(e=>[qo(e),e])),F1=new Map([["s",$e(383)],[$e(383),"s"]]),j1=new Map([[$e(223),$e(7838)],[$e(107),$e(8490)],[$e(229),$e(8491)],[$e(969),$e(8486)]]),G1=new Map([en(453),en(456),en(459),en(498),...Pi(8072,8079),...Pi(8088,8095),...Pi(8104,8111),en(8124),en(8140),en(8188)]),U1=new Map([["alnum",re`[\p{Alpha}\p{Nd}]`],["alpha",re`\p{Alpha}`],["ascii",re`\p{ASCII}`],["blank",re`[\p{Zs}\t]`],["cntrl",re`\p{Cc}`],["digit",re`\p{Nd}`],["graph",re`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",re`\p{Lower}`],["print",re`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",re`[\p{P}\p{S}]`],["space",re`\p{space}`],["upper",re`\p{Upper}`],["word",re`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",re`\p{AHex}`]]);function W1(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function en(e){const t=$e(e);return[t.toLowerCase(),t]}function Pi(e,t){return W1(e,t).map(n=>en(n))}var ep=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function z1(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};tp(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:ka(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};Kr(e,V1,r);const s={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},o={currentFlags:s,prevFlags:null,globalFlags:s,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};Kr(e,q1,o);const i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return Kr(e,K1,i),e._originMap=o.groupOriginByCopy,e._strategy=r.strategy,e}var V1={AbsentFunction({node:e,parent:t,replaceWith:n}){const{kind:r,alternatives:s}=e;if(r===Wd.repeater){const o=Gt(_t(),[Cr(qr({negate:!0}),s),Qn("Any")]),i=Kd(o,0,1/0);o.parent=i,n(ge(Gt(_t(),[i]),t),{traverse:!0})}else throw new Error(`Unexpected absent function kind "${r}"`)},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const s=e.elements.filter(o=>o.kind===Vr.flags);for(let o=n+1;o<t.alternatives.length;o++){const i=t.alternatives[o];us(r,i,[]).push(...s)}},exit({node:e},{flagDirectivesByAlt:t}){var n;if((n=t.get(e))!=null&&n.length){const r=rp(t.get(e));if(r){const s=ge(Gt(_t({flags:r}),e.elements),e);e.elements=[s]}}}},Assertion({node:e,parent:t,key:n,container:r,root:s,remove:o,replaceWith:i},a){const{kind:l,negate:f}=e,{asciiWordBoundaries:u,avoidSubclass:c,supportedGNodes:h,wordIsAscii:d}=a;if(l===me.grapheme_boundary)throw new Error(`Unsupported grapheme boundary "\\${f?"Y":"y"}"`);if(l===me.line_end)i(ge(At(re`(?=\z|\n)`),t));else if(l===me.line_start)i(ge(At(re`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l===me.search_start)if(h.has(e))s.flags.sticky=!0,o();else{const p=r[n-1];if(p&&ex(p))i(ge(Gt(qr({negate:!0})),t));else{if(c)throw new Error(re`Uses "\G" in a way that requires a subclass`);i(ge(Vd(me.string_start),t)),a.strategy="clip_search"}}else if(!(l===me.string_end||l===me.string_start))if(l===me.string_end_newline)i(ge(At(re`(?=\n?\z)`),t));else if(l===me.word_boundary){if(!d&&!u){const p=`(?:(?<=${Ft})(?!${Ft})|(?<!${Ft})(?=${Ft}))`,g=`(?:(?<=${Ft})(?=${Ft})|(?<!${Ft})(?!${Ft}))`;i(ge(At(f?g:p),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Ni(n)&&(n=$i(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Ni(r)&&(r=$i(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){t.kind===Ut.intersection&&n(ge(Cr(Ws(),[e]),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:s,digitIsAscii:o,spaceIsAscii:i,wordIsAscii:a}){const{kind:l,negate:f,value:u}=e;if(o&&(l===Se.digit||u==="digit")){n(ge(xa(Se.digit,{negate:f}),t));return}if(i&&(l===Se.space||u==="space")){n(ge(Ii(At(B1),f),t));return}if(a&&(l===Se.word||u==="word")){n(ge(xa(Se.word,{negate:f}),t));return}if(l===Se.any)n(ge(Qn("Any"),t));else if(l===Se.digit)n(ge(Qn("Nd",{negate:f}),t));else if(l!==Se.dot)if(l===Se.grapheme){if(r==="strict")throw new Error(re`Use of "\X" requires non-strict accuracy`);const c=s?re`\p{RGI_Emoji}`:k1().source.replace(/\\u\{/g,"\\x{");n(ge(At(re`(?>\r\n|${c}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l===Se.hex)n(ge(Qn("AHex",{negate:f}),t));else if(l===Se.newline)n(ge(At(f?`[^
168
- ]`:`(?>\r
169
- ?|[
170
- \v\f…\u2028\u2029])`),t));else if(l===Se.posix)if(!s&&(u==="graph"||u==="print")){if(r==="strict")throw new Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let c={graph:"!-~",print:" -~"}[u];f&&(c=`\0-${$e(c.codePointAt(0)-1)}${$e(c.codePointAt(2)+1)}-􏿿`),n(ge(At(`[${c}]`),t))}else n(ge(Ii(At(U1.get(u)),f),t));else if(l===Se.property)Sl.has(qo(u))||(e.key="sc");else if(l===Se.space)n(ge(Qn("space",{negate:f}),t));else if(l===Se.word)n(ge(Ii(At(Ft),f),t));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:s,removeAllPrevSiblings:o,removeAllNextSiblings:i}){const{kind:a,flags:l}=e;if(a===Vr.flags)!l.enable&&!l.disable?r():s(ge(Gt(_t({flags:l}),i()),t),{traverse:!0});else if(a===Vr.keep){const f=n.pattern.alternatives[0].elements[0],c=ap(n.pattern,h=>h.type===N.Group)&&f.alternatives.length===1?f:n.pattern;if(t.parent!==c||c.alternatives.length>1)throw new Error(re`Uses "\K" in a way that's unsupported`);s(ge(Gt(qr({behind:!0}),o()),t))}else throw new Error(`Unexpected directive kind "${a}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t!=null&&t.extended&&delete t.extended,n!=null&&n.extended&&delete n.extended,t!=null&&t.dotAll&&(n!=null&&n.dotAll)&&delete t.dotAll,t!=null&&t.ignoreCase&&(n!=null&&n.ignoreCase)&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n===cn.lookbehind&&(t.passedLookbehind=!0)},Pattern:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,s=!1;for(const o of e.alternatives)if(o.elements.length===1&&o.elements[0].kind===me.search_start)o.elements.pop();else{const i=op(o.elements);i?(r=!0,Array.isArray(i)?n.push(...i):n.push(i)):s=!0}r&&!s&&n.forEach(o=>t.add(o))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(re`Uses "\G" in a way that requires non-strict accuracy`)}},Quantifier({node:e}){if(e.element.type===N.Quantifier){const t=ge(Gt(_t(),[e.element]),e);e.element=t}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Ni(n)&&(n=$i(n,t),e.ref=n)}},q1={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:s}=e;r||n.set(e,[...t.get(s).map(({node:o})=>o)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:s,groupsByName:o,multiplexCapturesToLeftByRef:i,openRefs:a,reffedNodesByReferencer:l}){const f=s.get(e);if(f&&a.has(e.number)){const c=ge(Tu(e.number),t);l.set(c,a.get(e.number)),n(c);return}a.set(e.number,e),i.set(e.number,[]),e.name&&us(i,e.name,[]);const u=i.get(e.name??e.number);for(let c=0;c<u.length;c++){const h=u[c];if(f===h.node||f&&f===h.origin||e===h.origin){u.splice(c,1);break}}if(i.get(e.number).push({node:e,origin:f}),e.name&&i.get(e.name).push({node:e,origin:f}),e.name){const c=us(o,e.name,new Map);let h=!1;if(f)h=!0;else for(const d of c.values())if(!d.hasDuplicateNameToRemove){h=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:h})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=Co(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Recursion({node:e,parent:t},{reffedNodesByReferencer:n}){const{ref:r}=e;let s=t;for(;(s=s.parent)&&!(s.type===N.CapturingGroup&&(s.name===r||s.number===r)););n.set(e,s)},Subroutine({node:e,parent:t,replaceWith:n},r){const{ref:s}=e,o=r.subroutineRefMap.get(s),i=s===0,a=i?Tu(0):np(o,r.groupOriginByCopy,null);let l=a;if(!i){const f=rp(Q1(o,c=>c.type===N.Group&&!!c.flags)),u=f?Co(r.globalFlags,f):r.globalFlags;X1(u,r.currentFlags)||(l=Gt(_t({flags:Y1(u)}),[a]))}n(ge(l,t),{traverse:!i})}},K1={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const o=r.reffedNodesByReferencer.get(e).filter(i=>J1(i,e));if(!o.length)n(ge(Gt(qr({negate:!0})),t));else if(o.length>1){const i=o.map(a=>Cr(Qt(),[Ca(a.number)]));n(ge(Cr(_t(),i),t))}else e.ref=o[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Recursion({node:e},t){e.ref!==0&&(e.ref=t.reffedNodesByReferencer.get(e).number)},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const s=qd();e.pattern.alternatives.at(-1).elements.push(s)}}}};function tp(e){Kr(e,{"*"({node:t,parent:n}){t.parent=n}})}function Cr(e,t){return t.forEach(n=>n.parent=e),e[kl(e)]=t,e}function X1(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function J1(e,t){let n=t;do{if(n.type===N.Pattern)return!1;if(n.type===N.Alternative)continue;if(n===e)return!1;const r=sp(n.parent);for(const s of r){if(s===n)break;if(s===e||ip(s,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function np(e,t,n,r){const s=Array.isArray(e)?[]:{};for(const[o,i]of Object.entries(e))o==="parent"?s.parent=Array.isArray(n)?r:n:i&&typeof i=="object"?s[o]=np(i,t,s,n):(o==="type"&&i===N.CapturingGroup&&t.set(s,t.get(e)??e),s[o]=i);return s}function Tu(e){return{type:N.Recursion,ref:e}}function Q1(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function $i(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function kl(e){for(const t of["alternatives","elements"])if(e[t])return t;return null}function rp(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(s=>{var o,i;(o=r.enable)!=null&&o[s]&&(delete n.disable[s],n.enable[s]=!0),(i=r.disable)!=null&&i[s]&&(n.disable[s]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function Y1({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function sp(e){if(!e)throw new Error("Node expected");if(e.type===N.Quantifier)return[e.element];const t=kl(e);return t&&e[t]}function op(e){const t=e.find(n=>n.kind===me.search_start||tx(n,{negate:!1})||!Z1(n));if(!t)return null;if(t.kind===me.search_start)return t;if(t.type===N.LookaroundAssertion)return t.alternatives[0].elements[0];if(t.type===N.CapturingGroup||t.type===N.Group){const n=[];for(const r of t.alternatives){const s=op(r.elements);if(!s)return null;Array.isArray(s)?n.push(...s):n.push(s)}return n}return null}function ip(e,t){const n=sp(e)??[];for(const r of n)if(r===t||ip(r,t))return!0;return!1}function ap({alternatives:e},t){return e.length===1&&e[0].elements.length===1&&(!t||t(e[0].elements[0]))}function Z1({type:e}){return e===N.Assertion||e===N.Directive||e===N.LookaroundAssertion}function ex(e){const t=[N.Character,N.CharacterClass,N.CharacterSet];return t.includes(e.type)||e.type===N.Quantifier&&e.min&&t.includes(e.element.type)}function tx(e,t){const n={negate:null,...t};return e.type===N.LookaroundAssertion&&(n.negate===null||e.negate===n.negate)&&ap(e,r=>r.kind===me.search_start)}function Ni(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function At(e,t){const n=zd(e,{...t,unicodePropertyMap:Sl});tp(n);const r=n.pattern.alternatives;return r.length>1||r[0].elements.length>1?Cr(_t(),r):r[0].elements[0]}function Gt(e,t){const n=kl(e);return e[n][0].parent=e,t&&Cr(e[n][0],t),e}function Ii(e,t){return e.negate=t,e}function ge(e,t){return e.parent=t,e}function nx(e,t){const n=Yd(t),r=ka(n.target,"ES2024"),s=ka(n.target,"ES2025"),o=n.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,a=null;if(!s){const d=[e.flags.ignoreCase];Kr(e,rx,{getCurrentModI:()=>d.at(-1),popModI(){d.pop()},pushModI(p){d.push(p)},setHasCasedChar(){d.at(-1)?i=!0:a=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!a)};let f=null;const u={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:f,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!s&&i&&a),useFlagMods:s,useFlagV:r,verbose:n.verbose};function c(d){switch(u.lastNode=f,f=d,d.type){case N.Regex:return{pattern:c(d.pattern),flags:c(d.flags),options:{...d.options}};case N.Alternative:return d.elements.map(c).join("");case N.Assertion:return lx(d);case N.Backreference:return cx(d,u);case N.CapturingGroup:return ux(d,u,c);case N.Character:return fx(d,u);case N.CharacterClass:return hx(d,u,c);case N.CharacterClassRange:return dx(d,u);case N.CharacterSet:return px(d,u);case N.Flags:return gx(d,u);case N.Group:return mx(d,u,c);case N.LookaroundAssertion:return yx(d,u,c);case N.Pattern:return d.alternatives.map(c).join("|");case N.Quantifier:return c(d.element)+vx(d);case N.Recursion:return _x(d,u);default:throw new Error(`Unexpected node type "${d.type}"`)}}const h=c(e);return r||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],u.captureMap.forEach((d,p)=>{d.hidden&&h._hiddenCaptures.push(p),d.transferTo&&us(h._captureTransfers,d.transferTo,[]).push(p)}),h}var rx={"*":{enter({node:e},t){if(Pu(e)){const n=t.getCurrentModI();t.pushModI(e.flags?Co({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Pu(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Al($e(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),lp(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===Se.property&&ep.has(e.value)&&t.setHasCasedChar()}},sx=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),ox=new Set(["-","\\","]","^","["]),ix=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Ru=new Map([[9,re`\t`],[10,re`\n`],[11,re`\v`],[12,re`\f`],[13,re`\r`],[8232,re`\u2028`],[8233,re`\u2029`],[65279,re`\uFEFF`]]),ax=new RegExp("^\\p{Cased}$","u");function Al(e){return ax.test(e)}function lx({kind:e,negate:t}){if(e===me.string_end)return"$";if(e===me.string_start)return"^";if(e===me.word_boundary)return t?re`\B`:re`\b`;throw new Error(`Unexpected assertion kind "${e}"`)}function cx({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e}function ux(e,t,n){const{name:r,number:s,alternatives:o}=e,i={ignoreCase:t.currentFlags.ignoreCase},a=t.originMap.get(e);return a&&(i.hidden=!0,s>a.number&&(i.transferTo=a.number)),t.captureMap.set(s,i),`(${r?`?<${r}>`:""}${o.map(n).join("|")})`}function fx({value:e},t){const n=$e(e),r=Yn(e,{escDigit:t.lastNode.type===N.Backreference,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Al(n)){const s=Zd(n);return t.inCharClass?s.join(""):s.length>1?`[${s.join("")}]`:s[0]}return n}function hx(e,t,n){const{kind:r,negate:s,parent:o}=e;let{elements:i}=e;if(r===Ut.intersection&&!t.useFlagV)throw new Error("Use of class intersection requires min target ES2024");vr.literalHyphenIncorrectlyCreatesRange&&t.useFlagV&&i.some($u)&&(i=i.filter(f=>!$u(f)),i.push(vl(45)));const a=()=>`[${s?"^":""}${i.map(n).join(r===Ut.intersection?"&&":"")}]`;if(!t.inCharClass){if(!t.useFlagV&&!s){const u=i.filter(c=>c.type===N.CharacterClass&&c.kind===Ut.union&&c.negate);if(u.length){const c=_t(),h=c.alternatives[0];return c.parent=o,h.parent=c,i=i.filter(d=>!u.includes(d)),e.elements=i,i.length?(e.parent=h,h.elements.push(e)):c.alternatives.pop(),u.forEach(d=>{const p=Qt();p.parent=c,d.parent=p,p.elements.push(d),c.alternatives.push(p)}),n(c)}}t.inCharClass=!0;const f=a();return t.inCharClass=!1,f}const l=i[0];if(r===Ut.union&&!s&&l&&((!t.useFlagV||!t.verbose)&&o.kind===Ut.union&&!(vr.literalHyphenIncorrectlyCreatesRange&&t.useFlagV)||!t.verbose&&o.kind===Ut.intersection&&i.length===1&&l.type!==N.CharacterClassRange))return i.map(n).join("");if(!t.useFlagV&&o.type===N.CharacterClass)throw new Error("Use of nested character class requires min target ES2024");return a()}function dx(e,t){const n=e.min.value,r=e.max.value,s={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=Yn(n,s),i=Yn(r,s),a=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=lp(e);wx(l).forEach(u=>{a.add(Array.isArray(u)?`${Yn(u[0],s)}-${Yn(u[1],s)}`:Yn(u,s))})}return`${o}-${i}${[...a].join("")}`}function px({kind:e,negate:t,value:n,key:r},s){if(e===Se.dot)return s.currentFlags.dotAll?s.appliedGlobalFlags.dotAll||s.useFlagMods?".":"[^]":re`[^\n]`;if(e===Se.digit)return t?re`\D`:re`\d`;if(e===Se.property){if(s.useAppliedIgnoreCase&&s.currentFlags.ignoreCase&&ep.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?re`\P`:re`\p`}{${r?`${r}=`:""}${n}}`}if(e===Se.word)return t?re`\W`:re`\w`;throw new Error(`Unexpected character set kind "${e}"`)}function gx(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")}function mx({atomic:e,flags:t,parent:n,alternatives:r},s,o){const i=s.currentFlags;t&&(s.currentFlags=Co(i,t));const a=r.map(o).join("|"),l=!s.verbose&&r.length===1&&n.type!==N.Quantifier&&!e&&(!s.useFlagMods||!t)?a:`(?${bx(e,t,s.useFlagMods)}${a})`;return s.currentFlags=i,l}function yx({kind:e,negate:t,alternatives:n},r,s){return`(?${`${e===cn.lookahead?"":"<"}${t?"!":"="}`}${n.map(s).join("|")})`}function _x({ref:e},t){const n=t.recursionLimit;return e===0?`(?R=${n})`:re`\g<${e}&R=${n}>`}function lp(e,t){const n=!!(t!=null&&t.firstOnly),r=e.min.value,s=e.max.value,o=[];if(r<65&&(s===65535||s>=131071)||r===65536&&s>=131071)return o;for(let i=r;i<=s;i++){const a=$e(i);if(!Al(a))continue;const l=Zd(a).filter(f=>{const u=f.codePointAt(0);return u<r||u>s});if(l.length&&(o.push(...l),n))break}return o}function Yn(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Ru.has(e))return Ru.get(e);if(e<32||e>126&&e<160||e>262143||t&&Cx(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const s=n?r?ix:ox:sx,o=$e(e);return(s.has(o)?"\\":"")+o}function wx(e){const t=e.map(s=>s.codePointAt(0)).sort((s,o)=>s-o),n=[];let r=null;for(let s=0;s<t.length;s++)t[s+1]===t[s]+1?r??(r=t[s]):r===null?n.push(t[s]):(n.push([r,t[s]]),r=null);return n}function bx(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:s,disable:o}=t;r=(s!=null&&s.ignoreCase?"i":"")+(s!=null&&s.dotAll?"s":"")+(o?"-":"")+(o!=null&&o.ignoreCase?"i":"")+(o!=null&&o.dotAll?"s":"")}return`${r}:`}function vx({min:e,max:t,kind:n}){let r;return!e&&t===1?r="?":!e&&t===1/0?r="*":e===1&&t===1/0?r="+":e===t?r=`{${e}}`:r=`{${e},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[n]}function Pu({type:e}){return e===N.Group||e===N.CapturingGroup||e===N.LookaroundAssertion}function Cx(e){return e>47&&e<58}function $u({type:e,value:t}){return e===N.Character&&t===45}var an,Wt,Nn,ln,In,fs,Aa,pn,xx=(pn=class extends RegExp{constructor(n,r,s){var t=(...Ak)=>(super(...Ak),xn(this,fs),xn(this,an,new Map),xn(this,Wt,null),xn(this,Nn),xn(this,ln,null),xn(this,In,null),S(this,"rawOptions",{}),this);const o=!!(s!=null&&s.lazyCompile);if(n instanceof RegExp){if(s)throw new Error("Cannot provide options when copying a regexp");const i=n;t(i,r),mt(this,Nn,i.source),i instanceof pn&&(mt(this,an,Ke(i,an)),mt(this,ln,Ke(i,ln)),mt(this,In,Ke(i,In)),this.rawOptions=i.rawOptions)}else{const i={hiddenCaptures:[],strategy:null,transfers:[],...s};t(o?"":n,r),mt(this,Nn,n),mt(this,an,kx(i.hiddenCaptures,i.transfers)),mt(this,In,i.strategy),this.rawOptions=s??{}}o||mt(this,Wt,this)}get source(){return Ke(this,Nn)||"(?:)"}exec(n){if(!Ke(this,Wt)){const{lazyCompile:o,...i}=this.rawOptions;mt(this,Wt,new pn(Ke(this,Nn),this.flags,i))}const r=this.global||this.sticky,s=this.lastIndex;if(Ke(this,In)==="clip_search"&&r&&s){this.lastIndex=0;const o=Zo(this,fs,Aa).call(this,n.slice(s));return o&&(Sx(o,s,n,this.hasIndices),this.lastIndex+=s),o}return Zo(this,fs,Aa).call(this,n)}},an=new WeakMap,Wt=new WeakMap,Nn=new WeakMap,ln=new WeakMap,In=new WeakMap,fs=new WeakSet,Aa=function(n){Ke(this,Wt).lastIndex=this.lastIndex;const r=Nl(pn.prototype,this,"exec").call(Ke(this,Wt),n);if(this.lastIndex=Ke(this,Wt).lastIndex,!r||!Ke(this,an).size)return r;const s=[...r];r.length=1;let o;this.hasIndices&&(o=[...r.indices],r.indices.length=1);const i=[0];for(let a=1;a<s.length;a++){const{hidden:l,transferTo:f}=Ke(this,an).get(a)??{};if(l?i.push(null):(i.push(r.length),r.push(s[a]),this.hasIndices&&r.indices.push(o[a])),f&&s[a]!==void 0){const u=M1(i[f]);if(r[u]=s[a],this.hasIndices&&(r.indices[u]=o[a]),r.groups){Ke(this,ln)||mt(this,ln,Ax(this.source));const c=Ke(this,ln).get(f);c&&(r.groups[c]=s[a],this.hasIndices&&(r.indices.groups[c]=o[a]))}}}return r},pn);function Sx(e,t,n,r){if(e.index+=t,e.input=n,r){const s=e.indices;for(let i=0;i<s.length;i++){const a=s[i];a&&(s[i]=[a[0]+t,a[1]+t])}const o=s.groups;o&&Object.keys(o).forEach(i=>{const a=o[i];a&&(o[i]=[a[0]+t,a[1]+t])})}}function kx(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,s]of t)for(const o of s)us(n,o,{}).transferTo=r;return n}function Ax(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,s=0,o;for(;o=t.exec(e);){const{0:i,groups:{capture:a,name:l}}=o;i==="["?r++:r?i==="]"&&r--:a&&(s++,l&&n.set(s,l))}return n}function Ex(e,t){const n=Tx(e,t);return n.options?new xx(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function Tx(e,t){const n=Yd(t),r=zd(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:Sl}),s=z1(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=nx(s,n),i=O1(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),a=N1(i.pattern),l=$1(a.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),f={pattern:l.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const u=l.hiddenCaptures.sort((p,g)=>p-g),c=Array.from(l.captureTransfers),h=s._strategy,d=f.pattern.length>=n.lazyCompileLength;(u.length||c.length||h||d)&&(f.options={...u.length&&{hiddenCaptures:u},...c.length&&{transfers:c},...h&&{strategy:h},...d&&{lazyCompile:d}})}return f}const Nu=4294967295;class Rx{constructor(t,n={}){S(this,"regexps");this.patterns=t,this.options=n;const{forgiving:r=!1,cache:s,regexConstructor:o}=n;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(i=>{if(typeof i!="string")return i;const a=s==null?void 0:s.get(i);if(a){if(a instanceof RegExp)return a;if(r)return null;throw a}try{const l=o(i);return s==null||s.set(i,l),l}catch(l){if(s==null||s.set(i,l),r)return null;throw l}})}findNextMatchSync(t,n,r){const s=typeof t=="string"?t:t.content,o=[];function i(a,l,f=0){return{index:a,captureIndices:l.indices.map(u=>u==null?{start:Nu,end:Nu,length:0}:{start:u[0]+f,end:u[1]+f,length:u[1]-u[0]})}}for(let a=0;a<this.regexps.length;a++){const l=this.regexps[a];if(l)try{l.lastIndex=n;const f=l.exec(s);if(!f)continue;if(f.index===n)return i(a,f,0);o.push([a,f,0])}catch(f){if(this.options.forgiving)continue;throw f}}if(o.length){const a=Math.min(...o.map(l=>l[1].index));for(const[l,f,u]of o)if(f.index===a)return i(l,f,u)}return null}}function Px(e,t){return Ex(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function $x(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||(t.regexConstructor=n=>Px(n,{target:t.target})),{createScanner(n){return new Rx(n,t)},createString(n){return{content:n}}}}let Nx;const Nr=[];function Ix(e){if(Nr.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&Nr.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&Nr.forEach(n=>n(t))},get(){return Nx.value},configurable:!0}),()=>{Nr.splice(Nr.indexOf(e),1)}}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ox=e=>typeof e<"u",Iu=()=>{};function Lx(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}function Mx(e,t={}){let n,r,s=Iu;const o=l=>{clearTimeout(l),s(),s=Iu};let i;return l=>{const f=Qr(e),u=Qr(t.maxWait);return n&&o(n),f<=0||u!==void 0&&u<=0?(r&&(o(r),r=null),Promise.resolve(l())):new Promise((c,h)=>{s=t.rejectOnCancel?h:c,i=l,u&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,c(i())},u)),n=setTimeout(()=>{r&&o(r),r=null,c(l())},f)})}}function Dx(e,t=200,n={}){return Lx(Mx(t,n),e)}function Bx(e){return JSON.parse(JSON.stringify(e))}function Hx(e,t,n,r={}){var s,o,i;const{clone:a=!1,passive:l=!1,eventName:f,deep:u=!1,defaultValue:c,shouldEmit:h}=r,d=Sr(),p=(d==null?void 0:d.emit)||((s=d==null?void 0:d.$emit)==null?void 0:s.bind(d))||((i=(o=d==null?void 0:d.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(d==null?void 0:d.proxy));let g=f;g=g||`update:${t.toString()}`;const y=m=>a?typeof a=="function"?a(m):Bx(m):m,_=()=>Ox(e[t])?y(e[t]):c,v=m=>{h?h(m)&&p(g,m):p(g,m)};if(l){const m=_(),b=_e(m);let C=!1;return lr(()=>e[t],E=>{C||(C=!0,b.value=y(E),gs(()=>C=!1))}),lr(b,E=>{!C&&(E!==e[t]||u)&&v(E)},{deep:u}),b}else return je({get(){return _()},set(m){v(m)}})}const sn=_e(null);_e(Date.now());const Fx=_e(Date.now()),jx=window.location.host;_e("/");_e();const Gx=_e("/");je(()=>rh(Gx.value,`${window.location.protocol}//${jx}`));const cp=_e(),up=_e(),fp=_e(),Ux=Dx(async()=>{var e;sn.value=((e=(await cp.value.resolveTags()).filter(t=>!!t.props["data-nuxt-schema-org"])[0])==null?void 0:e.innerHTML)||{}},300);async function xo(){sn.value="loading",Ux()}Ix(async e=>{fp.value=e.host.app.$fetch,up.value=e.devtools,cp.value=e.host.nuxt.vueApp._context.provides.usehead,e.host.nuxt.$router.afterEach(()=>{setTimeout(xo,100)}),xo()});const Ea=_e();async function Wx(){return Ea.value=await VC({themes:[nr(()=>import("./CVO1_9PV.js"),[],import.meta.url),nr(()=>import("./D0r3Knsf.js"),[],import.meta.url)],langs:[nr(()=>import("./DFxyEsuO.js"),[],import.meta.url),nr(()=>import("./BLmTiKMJ.js"),[],import.meta.url)],engine:$x()}),Ea.value}function zx(e,t){return je(()=>{var r;const n=((r=up.value)==null?void 0:r.colorMode)||"light";return Ea.value.codeToHtml(Qr(e)||"",{lang:t,theme:n==="dark"?"vitesse-dark":"vitesse-light"})||""})}const Vx=["innerHTML"],qx=Ze({__name:"OCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!1},transformRendered:{}},setup(e){const t=e,n=je(()=>{const r=zx(t.code,t.lang);return t.transformRendered?t.transformRendered(r.value||""):r.value});return(r,s)=>(Q(),he("pre",{class:Ie(["n-code-block w-full",r.lines?"n-code-block-lines":""]),innerHTML:n.value},null,10,Vx))}}),Kx={flex:"~ gap-3","items-center":""},Xx=Ze({__name:"NIconTitle",props:{icon:{},text:{}},setup(e){return(t,n)=>(Q(),he("div",Kx,[t.icon?(Q(),he("div",{key:0,class:Ie(t.icon)},null,2)):Pt("",!0),ze(t.$slots,"default",{},()=>[W("div",null,fn(t.text),1)])]))}}),Jx=["open"],Qx={"text-base":""},Yx={key:0,"text-sm":"",op50:""},Zx=Ze({__name:"OSectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},headerClass:{},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(e){const n=Hx(e,"open");function r(s){n.value=s.target.open}return(s,o)=>{const i=cl,a=Xx;return Q(),he(Ne,null,[W("details",{open:oe(n),onToggle:r},[W("summary",{class:Ie(["cursor-pointer select-none n-bg-active hover:bg-active px-2 py-2 rounded transition-all",s.collapse?"":"pointer-events-none"])},[z(a,{icon:s.icon,text:s.text,"text-xl":"",transition:"",class:Ie([oe(n)?"op100":"op60",s.headerClass])},{default:ue(()=>[W("div",null,[W("div",Qx,[ze(s.$slots,"text",{},()=>[Ae(fn(s.text),1)],!0)]),s.description||s.$slots.description?(Q(),he("div",Yx,[ze(s.$slots,"description",{},()=>[Ae(fn(s.description),1)],!0)])):Pt("",!0)]),o[0]||(o[0]=W("div",{class:"flex-auto"},null,-1)),ze(s.$slots,"actions",{},void 0,!0),s.collapse?(Q(),De(i,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):Pt("",!0)]),_:3},8,["icon","text","class"])],2),W("div",{class:Ie(["flex flex-col flex-gap2 pb6 pt2",typeof s.padding=="string"?s.padding:s.padding?"px4":""])},[ze(s.$slots,"details",{},void 0,!0),W("div",{class:Ie([s.containerClass,"mt1"])},[ze(s.$slots,"default",{},void 0,!0)],2),ze(s.$slots,"footer",{},void 0,!0)],2)],40,Jx),o[1]||(o[1]=W("div",{class:"x-divider"},null,-1))],64)}}}),eS=Wo(Zx,[["__scopeId","data-v-0d7b3b46"]]),tS=Ze({name:"NButton",props:{to:String,icon:String,border:{type:Boolean,default:!0},disabled:Boolean,type:{type:String,default:"button"}},setup(e,{attrs:t,slots:n}){return()=>yr(e.to?ul:"button",{to:e.to,...t,...!e.to&&{type:e.type},...e.disabled?{disabled:!0}:{tabindex:0},class:[e.border?"n-button-base active:n-button-active focus-visible:n-focus-base hover:n-button-hover":"",n.default?"":"n-icon-button","n-button n-transition n-disabled:n-disabled"].join(" ")},[ze(n,"icon",{},()=>e.icon?[yr(cl,{icon:e.icon,class:n.default?"n-button-icon":""})]:[]),ze(n,"default")])}}),nS=e=>e==="defer"||e===!1;function rS(...e){var g;const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[n,r,s={}]=e;if(typeof n!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const o=Re(),i=r,a=()=>tr.value,l=()=>o.isHydrating?o.payload.data[n]:o.static.data[n];s.server??(s.server=!0),s.default??(s.default=a),s.getCachedData??(s.getCachedData=l),s.lazy??(s.lazy=!1),s.immediate??(s.immediate=!0),s.deep??(s.deep=tr.deep),s.dedupe??(s.dedupe="cancel");const f=s.getCachedData(n,o),u=f!=null;if(!o._asyncData[n]||!s.immediate){(g=o.payload._errors)[n]??(g[n]=tr.errorValue);const y=s.deep?_e:Bi;o._asyncData[n]={data:y(u?f:s.default()),pending:_e(!u),error:ja(o.payload._errors,n),status:_e("idle"),_default:s.default}}const c={...o._asyncData[n]};delete c._default,c.refresh=c.execute=(y={})=>{if(o._asyncDataPromises[n]){if(nS(y.dedupe??s.dedupe))return o._asyncDataPromises[n];o._asyncDataPromises[n].cancelled=!0}if(y._initial||o.isHydrating&&y._initial!==!1){const v=y._initial?f:s.getCachedData(n,o);if(v!=null)return Promise.resolve(v)}c.pending.value=!0,c.status.value="pending";const _=new Promise((v,m)=>{try{v(i(o))}catch(b){m(b)}}).then(async v=>{if(_.cancelled)return o._asyncDataPromises[n];let m=v;s.transform&&(m=await s.transform(v)),s.pick&&(m=oS(m,s.pick)),o.payload.data[n]=m,c.data.value=m,c.error.value=tr.errorValue,c.status.value="success"}).catch(v=>{if(_.cancelled)return o._asyncDataPromises[n];c.error.value=Mo(v),c.data.value=oe(s.default()),c.status.value="error"}).finally(()=>{_.cancelled||(c.pending.value=!1,delete o._asyncDataPromises[n])});return o._asyncDataPromises[n]=_,o._asyncDataPromises[n]},c.clear=()=>sS(o,n);const h=()=>c.refresh({_initial:!0}),d=s.server!==!1&&o.payload.serverRendered;{const y=Sr();if(y&&d&&s.immediate&&!y.sp&&(y.sp=[]),y&&!y._nuxtOnBeforeMountCbs){y._nuxtOnBeforeMountCbs=[];const m=y._nuxtOnBeforeMountCbs;gf(()=>{m.forEach(b=>{b()}),m.splice(0,m.length)}),qa(()=>m.splice(0,m.length))}d&&o.isHydrating&&(c.error.value||f!=null)?(c.pending.value=!1,c.status.value=c.error.value?"error":"success"):y&&(o.payload.serverRendered&&o.isHydrating||s.lazy)&&s.immediate?y._nuxtOnBeforeMountCbs.push(h):s.immediate&&h();const _=Ia();if(s.watch){const m=lr(s.watch,()=>c.refresh());_&&Ll(m)}const v=o.hook("app:data:refresh",async m=>{(!m||m.includes(n))&&await c.refresh()});_&&Ll(v)}const p=Promise.resolve(o._asyncDataPromises[n]).then(()=>c);return Object.assign(p,c),p}function sS(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=tr.errorValue),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=tr.errorValue,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function oS(e,t){const n={};for(const r of t)n[r]=e[r];return n}function iS(){return rS(()=>fp.value("/__schema-org__/debug.json"),{watch:[Fx]},"$sUVPCiQAhH")}const aS={class:"relative n-bg-base flex flex-col"},lS={class:"sticky top-0 z-2 px-4 pt-4"},cS={class:"flex justify-between items-start",mb2:""},uS={class:"flex space-x-5"},fS={"text-xl":"",flex:"","items-center":"","gap-2":""},hS={class:"flex items-center space-x-3 text-xl"},dS={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded-lg n-bg-base"},pS={class:"px-5 py-2"},gS={"text-lg":"",flex:"","items-center":""},mS={class:"px-5 py-2"},yS={"text-lg":"",flex:"","items-center":""},_S={class:"px-5 py-2"},wS={"text-lg":"",flex:"","items-center":""},bS={class:"px-5 py-2"},vS={"text-lg":"",flex:"","items-center":""},CS=["value","title"],xS={class:"items-center space-x-3 hidden lg:flex"},SS={class:"opacity-80 text-sm"},kS={class:"opacity-80 text-sm"},AS={href:"https://nuxtseo.com",target:"_blank",class:"flex items-end gap-1.5 font-semibold text-xl dark:text-white font-title"},ES={class:"flex-row flex p4 h-full",style:{"min-height":"calc(100vh - 64px)"}},TS={class:"mx-auto flex flex-col w-full bg-white dark:bg-black dark:bg-dark-700 bg-light-200"},RS={key:1},PS={key:0},$S={class:"flex flex-col items-center justify-center mx-auto max-w-135 h-85vh"},NS={class:""},IS={class:"text-2xl font-semibold mb-3"},OS={class:"px-3 py-2 space-y-5 rounded mb-3 border"},LS={class:"px-3 py-2 space-y-5"},MS={key:2,class:"space-y-5"},DS={class:"space-x-3"},BS={key:3,class:"space-y-5"},HS={class:"opacity-80 text-base mb-1"},FS={key:4,class:"h-full max-h-full overflow-hidden"},jS=`useSchemaOrg([
171
- defineWebPage({ title: 'Hello World' })
172
- ])`,GS=Ze({__name:"app",async setup(e){let t,n;tw({title:"Nuxt Schema.org Playground"}),[t,n]=Rg(()=>Wx()),await t,n();const{data:r}=iS(),s=_e("nodes"),o=je(()=>{if(sn.value)try{return JSON.parse(sn.value)["@graph"]}catch{}return!1});function i(){navigator.clipboard.writeText(sn.value)}const a={article:["Article","NewsArticle","BlogPosting"],book:["Book"],breadcrumb:["BreadcrumbList"],carousel:["ItemList"],"course-info":["Course"],course:["Course"],dataset:["Dataset"],"discussion-forum":["DiscussionForumPosting"],"education-qa":["Question","Answer"],"employer-rating":["EmployerAggregateRating"],"estimated-salary":["OccupationalExperienceRequirements"],event:["Event"],factcheck:["ClaimReview"],faqpage:["FAQPage"],"image-license-metadata":["ImageObject"],"job-posting":["JobPosting"],"learning-video":["LearningResource","VideoObject"],"local-business":["LocalBusiness"],"math-solvers":["MathSolver"],movie:["Movie"],organization:["Organization"],"practice-problems":["Quiz","Question"],product:["Product"],"product-snippet":["Product"],"merchant-listing":["Product","Offer"],"product-variants":["Product"],"profile-page":["ProfilePage","Person"],qapage:["QAPage"],recipe:["Recipe"],"review-snippet":["Review"],"software-app":["SoftwareApplication"],speakable:["SpeakableSpecification"],"special-announcements":["SpecialAnnouncement"],"paywalled-content":["CreativeWork"],"vacation-rental":["Accommodation","LodgingBusiness"],"vehicle-listing":["Vehicle"],video:["VideoObject"]};function l(u){return Array.isArray(u)?u:[u]}function f(u){var d;const c=u.replace("https://schema.org/",""),h=(d=Object.entries(a).find(([p,g])=>g.includes(c)))==null?void 0:d[0];return{type:c,schemaOrg:`https://schema.org/${c}`,googlePage:h?`https://developers.google.com/search/docs/appearance/structured-data/${h}`:null}}return(u,c)=>{var E;const h=cl,d=U0,p=yn("VTooltip"),g=J0,y=eb,_=ob,v=qx,m=ul,b=eS,C=tS;return Q(),he("div",aS,[W("header",lS,[W("div",cS,[W("div",uS,[W("h1",fS,[z(h,{icon:"carbon:image-search",class:"text-blue-300"}),c[2]||(c[2]=Ae(" Schema.org ")),z(d,{class:"text-sm"},{default:ue(()=>{var A;return[Ae(fn((A=oe(r))==null?void 0:A.runtimeConfig.version),1)]}),_:1})])]),W("div",hS,[W("fieldset",dS,[(Q(),he(Ne,null,ii(["nodes","raw","debug","docs"],(A,B)=>W("label",{key:B,class:Ie(["relative n-border-base hover:n-bg-active cursor-pointer",[B?"border-l n-border-base ml--1px":"",A===oe(s)?"n-bg-active":""]])},[A==="nodes"?(Q(),he("div",{key:0,class:Ie([A===oe(s)?"":"op35"])},[z(p,null,{popper:ue(()=>c[3]||(c[3]=[Ae(" Nodes ")])),default:ue(()=>[W("div",pS,[W("h2",gS,[z(h,{icon:"carbon:connect-source opacity-50"})])])]),_:1})],2)):Pt("",!0),A==="raw"?(Q(),he("div",{key:1,class:Ie([A===oe(s)?"":"op35"])},[z(p,null,{popper:ue(()=>c[4]||(c[4]=[Ae(" Raw ")])),default:ue(()=>[W("div",mS,[W("h2",yS,[z(h,{icon:"carbon:code opacity-50"})])])]),_:1})],2)):A==="debug"?(Q(),he("div",{key:2,class:Ie([A===oe(s)?"":"op35"])},[z(p,null,{popper:ue(()=>c[5]||(c[5]=[Ae(" Debug ")])),default:ue(()=>[W("div",_S,[W("h2",wS,[z(h,{icon:"carbon:debug opacity-50"})])])]),_:1})],2)):A==="docs"?(Q(),he("div",{key:3,class:Ie([A===oe(s)?"":"op35"])},[z(p,null,{popper:ue(()=>c[6]||(c[6]=[Ae(" Documentation ")])),default:ue(()=>[W("div",bS,[W("h2",vS,[z(h,{icon:"carbon:book opacity-50"})])])]),_:1})],2)):Pt("",!0),dg(W("input",{"onUpdate:modelValue":c[0]||(c[0]=H=>Te(s)?s.value=H:null),type:"radio",value:A,title:A,class:"absolute cursor-pointer pointer-events-none inset-0 op-0.1"},null,8,CS),[[Fm,oe(s)]])],2)),64))]),z(p,null,{popper:ue(()=>c[7]||(c[7]=[Ae(" Refresh ")])),default:ue(()=>[W("button",{"text-lg":"",type:"button",class:"n-icon-button n-button n-transition n-disabled:n-disabled",onClick:c[1]||(c[1]=(...A)=>oe(xo)&&oe(xo)(...A))},[z(h,{icon:"carbon:reset",class:"group-hover:text-green-500"})])]),_:1})]),W("div",xS,[W("div",SS,[z(g,{href:"https://github.com/sponsors/harlan-zw",target:"_blank"},{default:ue(()=>[z(h,{icon:"carbon:favorite",class:"mr-[2px]"}),c[8]||(c[8]=Ae(" Sponsor "))]),_:1})]),W("div",kS,[z(g,{href:"https://github.com/harlan-zw/nuxt-schema-org",target:"_blank"},{default:ue(()=>[z(h,{icon:"logos:github-icon",class:"mr-[2px]"}),c[9]||(c[9]=Ae(" Submit an issue "))]),_:1})]),W("a",AS,[z(y)])])])]),W("div",ES,[W("main",TS,[!oe(sn)||oe(sn)==="loading"?(Q(),De(_,{key:0})):oe(s)==="nodes"?(Q(),he("div",RS,[(E=oe(o))!=null&&E.length?(Q(!0),he(Ne,{key:1},ii(oe(o),(A,B)=>(Q(),De(b,{key:B},{text:ue(()=>[(Q(!0),he(Ne,null,ii(l(A["@type"]).map(f),H=>(Q(),he("h3",{key:H.type,class:"opacity-80 text-base space-x-2"},[W("span",null,fn(H.type),1),z(m,{to:H.schemaOrg,target:"_blank",class:"dark:text-blue-300 hover:underline"},{default:ue(()=>[c[15]||(c[15]=Ae(" Schema.org ")),z(h,{icon:"carbon:launch",class:"text-xs ml-[2px] opacity-50"})]),_:2},1032,["to"]),H.googlePage?(Q(),De(m,{key:0,to:H.googlePage,target:"_blank",class:"dark:text-blue-300 hover:underline"},{default:ue(()=>[c[16]||(c[16]=Ae(" Rich Results ")),z(h,{icon:"carbon:launch",class:"text-xs ml-[2px] opacity-50"})]),_:2},1032,["to"])):Pt("",!0)]))),128))]),description:ue(()=>[W("div",null,fn(A["@id"]),1)]),default:ue(()=>[W("div",LS,[z(v,{code:JSON.stringify(A,null,2),lang:"json"},null,8,["code"])])]),_:2},1024))),128)):(Q(),he("div",PS,[W("div",$S,[W("div",NS,[W("h2",IS,[z(h,{icon:"carbon:information",class:"text-blue-500"}),c[10]||(c[10]=Ae(" Oops! Did you forget ")),c[11]||(c[11]=W("code",null,"useSchemaOrg()",-1)),c[12]||(c[12]=Ae("? "))]),c[13]||(c[13]=W("p",{class:"text-lg opacity-80 my-3"}," Getting started with Nuxt Schema.org is easy, simply add the following code within setup script setup of your file. ",-1)),W("div",OS,[z(v,{code:jS,lang:"javascript"})]),c[14]||(c[14]=W("p",{class:"text-lg opacity-80"},[W("a",{href:"https://nuxtseo.com/docs/schema-org/getting-started/introduction",target:"_blank",class:"underline"}," Learn more ")],-1))])])]))])):oe(s)==="raw"?(Q(),he("div",MS,[W("div",DS,[z(g,{to:"https://validator.schema.org/",target:"_blank"},{default:ue(()=>[z(h,{icon:"carbon:launch",class:"text-xs mr-1 opacity-50"}),c[17]||(c[17]=Ae("Structured Data Test "))]),_:1}),z(g,{to:"https://search.google.com/test/rich-results",target:"_blank"},{default:ue(()=>[z(h,{icon:"carbon:launch",class:"text-xs mr-1 opacity-50"}),c[18]||(c[18]=Ae("Rich Results Test "))]),_:1}),z(C,{onClick:i},{default:ue(()=>c[19]||(c[19]=[Ae(" Copy ")])),_:1})]),z(v,{code:oe(sn),lang:"json"},null,8,["code"])])):oe(s)==="debug"?(Q(),he("div",BS,[z(b,null,{text:ue(()=>[W("h3",HS,[z(h,{icon:"carbon:settings",class:"mr-1"}),c[20]||(c[20]=Ae(" Runtime Config "))])]),default:ue(()=>{var A;return[z(v,{code:JSON.stringify(((A=oe(r))==null?void 0:A.runtimeConfig)||{},null,2),lang:"json"},null,8,["code"])]}),_:1})])):oe(s)==="docs"?(Q(),he("div",FS,c[21]||(c[21]=[W("iframe",{src:"https://nuxtseo.com/schema-org",class:"w-full h-full border-none",style:{"min-height":"calc(100vh - 100px)"}},null,-1)]))):Pt("",!0)])])])}}}),US={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(`
173
- `).splice(1).map(c=>({text:c.replace("webpack:/","").replace(".vue",".js").trim(),internal:c.includes("node_modules")&&!c.includes(".cache")||c.includes("internal")||c.includes("new Promise")})).map(c=>`<span class="stack${c.internal?" internal":""}">${c.text}</span>`).join(`
174
- `);const r=Number(n.statusCode||500),s=r===404,o=n.statusMessage??(s?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),a=void 0,u=s?jl(()=>nr(()=>import("./DDeFBXf-.js"),__vite__mapDeps([0,1]),import.meta.url)):jl(()=>nr(()=>import("./l5BvQyJI.js"),__vite__mapDeps([2,3]),import.meta.url));return(c,h)=>(Q(),De(oe(u),Fu(Ja({statusCode:oe(r),statusMessage:oe(o),description:oe(i),stack:oe(a)})),null,16))}},WS={key:0},Ou={__name:"nuxt-root",setup(e){const t=()=>null,n=Re(),r=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",r);Mt().beforeEach(l)}const s=!1;kf(vh,Ch()),n.hooks.callHookWith(l=>l.map(f=>f()),"vue:setup");const o=tl(),i=!1;yf((l,f,u)=>{if(n.hooks.callHook("vue:error",l,f,u).catch(c=>console.error("[nuxt] Error in `vue:error` hook",c)),g_(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>d_(l)),!1});const a=!1;return(l,f)=>(Q(),De(rm,{onResolve:oe(r)},{default:ue(()=>[oe(i)?(Q(),he("div",WS)):oe(o)?(Q(),De(oe(US),{key:1,error:oe(o)},null,8,["error"])):oe(a)?(Q(),De(oe(t),{key:2,context:oe(a)},null,8,["context"])):oe(s)?(Q(),De(Eg(oe(s)),{key:3})):(Q(),De(oe(GS),{key:4}))]),_:1},8,["onResolve"]))}};let Lu;{let e;Lu=async function(){var i,a;if(e)return e;const r=!!(((i=window.__NUXT__)==null?void 0:i.serverRendered)??((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?Vm(Ou):Yf(Ou),s=e_({vueApp:r});async function o(l){var f;await s.callHook("app:error",l),(f=s.payload).error||(f.error=Mo(l))}r.config.errorHandler=o,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)});try{await r_(s,H0)}catch(l){o(l)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(Qy),await s.hooks.callHook("app:mounted",r),await gs()}catch(l){o(l)}return r},e=Lu().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Wo as _,W as a,z as b,he as c,Ae as d,ul as e,Q as o,fn as t,tw as u,ue as w};