stylelint-config-inspector 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +134 -0
- package/bin.mjs +35 -0
- package/dist/cli.mjs +5571 -0
- package/dist/nitro.json +15 -0
- package/dist/public/200.html +1 -0
- package/dist/public/404.html +1 -0
- package/dist/public/_nuxt/3_mkTJ2v.js +3 -0
- package/dist/public/_nuxt/BDH0pOV6.js +1 -0
- package/dist/public/_nuxt/BFHLvPhn.js +1 -0
- package/dist/public/_nuxt/BKBBWEz4.js +1 -0
- package/dist/public/_nuxt/BgZd1qfO.js +141 -0
- package/dist/public/_nuxt/BiE9LVQS.js +2 -0
- package/dist/public/_nuxt/BwdVnuqT.js +1 -0
- package/dist/public/_nuxt/C3ZQgAGz.js +1 -0
- package/dist/public/_nuxt/C62pfWG4.js +1 -0
- package/dist/public/_nuxt/C79VbMUr.js +1 -0
- package/dist/public/_nuxt/CMyQ_JSA.js +1 -0
- package/dist/public/_nuxt/CYI4Dqes.js +1 -0
- package/dist/public/_nuxt/D5CeIdpL.js +1 -0
- package/dist/public/_nuxt/D9VMXJyI.js +1 -0
- package/dist/public/_nuxt/DBzO6yCd.js +1 -0
- package/dist/public/_nuxt/DDlp5JcD.js +1 -0
- package/dist/public/_nuxt/DJcdwkbC.js +2 -0
- package/dist/public/_nuxt/DUtXDOXB.js +1 -0
- package/dist/public/_nuxt/DYop16xf.js +1 -0
- package/dist/public/_nuxt/D_UhJN5P.js +1 -0
- package/dist/public/_nuxt/Gf5y-pjW.js +1 -0
- package/dist/public/_nuxt/RuleList.BHVYWeDI.css +1 -0
- package/dist/public/_nuxt/b9fIUieR.js +1 -0
- package/dist/public/_nuxt/builds/latest.json +1 -0
- package/dist/public/_nuxt/builds/meta/983f1582-17c6-4f54-b47e-9777e04df821.json +1 -0
- package/dist/public/_nuxt/cxyxlHGV.js +13 -0
- package/dist/public/_nuxt/entry.BbIOcLZN.css +1 -0
- package/dist/public/_nuxt/error-404.8srCDDge.css +1 -0
- package/dist/public/_nuxt/error-500.BOFFatCP.css +1 -0
- package/dist/public/_nuxt/nBUflmkO.js +1 -0
- package/dist/public/_nuxt/rX12-d6r.js +1 -0
- package/dist/public/_nuxt/v8C1EvL9.js +1 -0
- package/dist/public/favicon.svg +18 -0
- package/dist/public/fonts/inter-29ede7bd.woff2 +0 -0
- package/dist/public/fonts/inter-2ee02ca4.woff2 +0 -0
- package/dist/public/fonts/inter-51c54b02.woff2 +0 -0
- package/dist/public/fonts/inter-6022da7d.woff2 +0 -0
- package/dist/public/fonts/inter-90d48bd7.woff2 +0 -0
- package/dist/public/fonts/inter-9335538f.woff2 +0 -0
- package/dist/public/fonts/inter-97eb2241.woff2 +0 -0
- package/dist/public/fonts/spacemono-04b9632a.woff2 +0 -0
- package/dist/public/fonts/spacemono-67dc236e.woff2 +0 -0
- package/dist/public/fonts/spacemono-7114c271.woff2 +0 -0
- package/dist/public/index.html +1 -0
- package/dist/public/stylelint/credits.md +9 -0
- package/dist/public/stylelint/stylelint-icon-and-text-white-square.png +0 -0
- package/dist/public/stylelint/stylelint-icon-and-text-white-square.svg +1 -0
- package/dist/public/stylelint/stylelint-icon-and-text-white.png +0 -0
- package/dist/public/stylelint/stylelint-icon-black.svg +1 -0
- package/dist/public/stylelint/stylelint-icon-white-512.png +0 -0
- package/dist/public/stylelint/stylelint-icon-white.svg +1 -0
- package/dist/public/stylelint/stylelint-text-black-256.png +0 -0
- package/dist/public/stylelint/stylelint-text-black.svg +1 -0
- package/dist/public/stylelint/stylelint-text-white-256.png +0 -0
- package/dist/public/stylelint/stylelint-text-white.svg +1 -0
- package/dist/stylelint-config-recommended-DpulrXp2.mjs +46 -0
- package/package.json +336 -0
- package/stylelint.config.mjs +1249 -0
package/dist/nitro.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/_nuxt/DJcdwkbC.js"}}</script><title>Stylelint Config Inspector</title><link rel="stylesheet" href="/_nuxt/entry.BbIOcLZN.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DJcdwkbC.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/rX12-d6r.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/3_mkTJ2v.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/D5CeIdpL.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/D9VMXJyI.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DUtXDOXB.js"><script type="module" src="/_nuxt/DJcdwkbC.js" crossorigin></script><meta name="theme-color" content="#5B21B6"><meta name="apple-mobile-web-app-title" content="Stylelint Inspector"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><link rel="alternate icon" type="image/svg+xml" href="/stylelint/stylelint-icon-black.svg"><link rel="alternate icon" type="image/png" href="/stylelint/stylelint-icon-white-512.png"><link rel="apple-touch-icon" href="/stylelint/stylelint-icon-white-512.png"><script id="unhead:payload" type="application/json">{"title":"Stylelint Config Inspector"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/",buildId:"983f1582-17c6-4f54-b47e-9777e04df821",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1773707526364,false]</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/_nuxt/DJcdwkbC.js"}}</script><title>Stylelint Config Inspector</title><link rel="stylesheet" href="/_nuxt/entry.BbIOcLZN.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DJcdwkbC.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/rX12-d6r.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/3_mkTJ2v.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/D5CeIdpL.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/D9VMXJyI.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DUtXDOXB.js"><script type="module" src="/_nuxt/DJcdwkbC.js" crossorigin></script><meta name="theme-color" content="#5B21B6"><meta name="apple-mobile-web-app-title" content="Stylelint Inspector"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><link rel="alternate icon" type="image/svg+xml" href="/stylelint/stylelint-icon-black.svg"><link rel="alternate icon" type="image/png" href="/stylelint/stylelint-icon-white-512.png"><link rel="apple-touch-icon" href="/stylelint/stylelint-icon-white-512.png"><script id="unhead:payload" type="application/json">{"title":"Stylelint Config Inspector"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/",buildId:"983f1582-17c6-4f54-b47e-9777e04df821",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1773707526364,false]</script></body></html>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>S(e)===`[object Map]`,p=e=>S(e)===`[object Set]`,m=e=>S(e)===`[object Date]`,h=e=>S(e)===`[object RegExp]`,g=e=>typeof e==`function`,_=e=>typeof e==`string`,v=e=>typeof e==`symbol`,y=e=>typeof e==`object`&&!!e,b=e=>(y(e)||g(e))&&g(e.then)&&g(e.catch),x=Object.prototype.toString,S=e=>x.call(e),C=e=>S(e).slice(8,-1),w=e=>S(e)===`[object Object]`,T=e=>_(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,E=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),D=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ee=/-\w/g,O=D(e=>e.replace(ee,e=>e.slice(1).toUpperCase())),te=/\B([A-Z])/g,k=D(e=>e.replace(te,`-$1`).toLowerCase()),ne=D(e=>e.charAt(0).toUpperCase()+e.slice(1)),re=D(e=>e?`on${ne(e)}`:``),A=(e,t)=>!Object.is(e,t),j=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ie=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ae=e=>{let t=parseFloat(e);return isNaN(t)?e:t},oe=e=>{let t=_(e)?Number(e):NaN;return isNaN(t)?e:t},se,ce=()=>se||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof globalThis<`u`?globalThis:{};function le(e){if(d(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=_(r)?pe(r):le(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(_(e)||y(e))return e}var ue=/;(?![^(]*\))/g,de=/:([^]+)/,fe=/\/\*[^]*?\*\//g;function pe(e){let t={};return e.replace(fe,``).split(ue).forEach(e=>{if(e){let n=e.split(de);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function me(e){let t=``;if(_(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){let r=me(e[n]);r&&(t+=r+` `)}else if(y(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function he(e){if(!e)return null;let{class:t,style:n}=e;return t&&!_(t)&&(e.class=me(t)),n&&(e.style=le(n)),e}var ge=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,_e=e(ge);e(ge+`,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);function ve(e){return!!e||e===``}function ye(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=be(e[r],t[r]);return n}function be(e,t){if(e===t)return!0;let n=m(e),r=m(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=v(e),r=v(t),n||r)return e===t;if(n=d(e),r=d(t),n||r)return n&&r?ye(e,t):!1;if(n=y(e),r=y(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!be(e[n],t[n]))return!1}}return String(e)===String(t)}var xe=e=>!!(e&&e.__v_isRef===!0),Se=e=>_(e)?e:e==null?``:d(e)||y(e)&&(e.toString===x||!g(e.toString))?xe(e)?Se(e.value):JSON.stringify(e,Ce,2):String(e),Ce=(e,t)=>xe(t)?Ce(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[we(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>we(e))}:v(t)?we(t):y(t)&&!d(t)&&!w(t)?String(t):t,we=(e,t=``)=>v(e)?`Symbol(${e.description??t})`:e,M,Te=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=M,!e&&M&&(this.index=(M.scopes||=[]).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=M;try{return M=this,e()}finally{M=t}}}on(){++this._on===1&&(this.prevScope=M,M=this)}off(){this._on>0&&--this._on===0&&(M=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Ee(e){return new Te(e)}function De(){return M}function Oe(e,t=!1){M&&M.cleanups.push(e)}var N,ke=new WeakSet,Ae=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,M&&M.active&&M.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ke.has(this)&&(ke.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Pe(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ke(this),Le(this);let e=N,t=P;N=this,P=!0;try{return this.fn()}finally{Re(this),N=e,P=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ve(e);this.deps=this.depsTail=void 0,Ke(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ke.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ze(this)&&this.run()}get dirty(){return ze(this)}},je=0,Me,Ne;function Pe(e,t=!1){if(e.flags|=8,t){e.next=Ne,Ne=e;return}e.next=Me,Me=e}function Fe(){je++}function Ie(){if(--je>0)return;if(Ne){let e=Ne;for(Ne=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Me;){let t=Me;for(Me=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Le(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Re(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Ve(r),He(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function ze(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Be(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Be(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===qe)||(e.globalVersion=qe,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ze(e))))return;e.flags|=2;let t=e.dep,n=N,r=P;N=e,P=!0;try{Le(e);let n=e.fn(e._value);(t.version===0||A(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{N=n,P=r,Re(e),e.flags&=-3}}function Ve(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Ve(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function He(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var P=!0,Ue=[];function We(){Ue.push(P),P=!1}function Ge(){let e=Ue.pop();P=e===void 0?!0:e}function Ke(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=N;N=void 0;try{t()}finally{N=e}}}var qe=0,Je=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Ye=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!N||!P||N===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==N)t=this.activeLink=new Je(N,this),N.deps?(t.prevDep=N.depsTail,N.depsTail.nextDep=t,N.depsTail=t):N.deps=N.depsTail=t,Xe(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=N.depsTail,t.nextDep=void 0,N.depsTail.nextDep=t,N.depsTail=t,N.deps===t&&(N.deps=e)}return t}trigger(e){this.version++,qe++,this.notify(e)}notify(e){Fe();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ie()}}};function Xe(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Xe(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Ze=new WeakMap,Qe=Symbol(``),$e=Symbol(``),et=Symbol(``);function F(e,t,n){if(P&&N){let t=Ze.get(e);t||Ze.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Ye),r.map=t,r.key=n),r.track()}}function tt(e,t,n,r,i,a){let o=Ze.get(e);if(!o){qe++;return}let s=e=>{e&&e.trigger()};if(Fe(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&T(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===et||!v(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(et)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Qe)),f(e)&&s(o.get($e)));break;case`delete`:i||(s(o.get(Qe)),f(e)&&s(o.get($e)));break;case`set`:f(e)&&s(o.get(Qe));break}}Ie()}function nt(e,t){let n=Ze.get(e);return n&&n.get(t)}function rt(e){let t=L(e);return t===e?t:(F(t,`iterate`,et),I(e)?t:t.map(R))}function it(e){return F(e=L(e),`iterate`,et),e}function at(e,t){return Gt(e)?Wt(e)?Jt(R(t)):Jt(t):R(t)}var ot={__proto__:null,[Symbol.iterator](){return st(this,Symbol.iterator,e=>at(this,e))},concat(...e){return rt(this).concat(...e.map(e=>d(e)?rt(e):e))},entries(){return st(this,`entries`,e=>(e[1]=at(this,e[1]),e))},every(e,t){return lt(this,`every`,e,t,void 0,arguments)},filter(e,t){return lt(this,`filter`,e,t,e=>e.map(e=>at(this,e)),arguments)},find(e,t){return lt(this,`find`,e,t,e=>at(this,e),arguments)},findIndex(e,t){return lt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return lt(this,`findLast`,e,t,e=>at(this,e),arguments)},findLastIndex(e,t){return lt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return lt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return dt(this,`includes`,e)},indexOf(...e){return dt(this,`indexOf`,e)},join(e){return rt(this).join(e)},lastIndexOf(...e){return dt(this,`lastIndexOf`,e)},map(e,t){return lt(this,`map`,e,t,void 0,arguments)},pop(){return ft(this,`pop`)},push(...e){return ft(this,`push`,e)},reduce(e,...t){return ut(this,`reduce`,e,t)},reduceRight(e,...t){return ut(this,`reduceRight`,e,t)},shift(){return ft(this,`shift`)},some(e,t){return lt(this,`some`,e,t,void 0,arguments)},splice(...e){return ft(this,`splice`,e)},toReversed(){return rt(this).toReversed()},toSorted(e){return rt(this).toSorted(e)},toSpliced(...e){return rt(this).toSpliced(...e)},unshift(...e){return ft(this,`unshift`,e)},values(){return st(this,`values`,e=>at(this,e))}};function st(e,t,n){let r=it(e),i=r[t]();return r!==e&&!I(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var ct=Array.prototype;function lt(e,t,n,r,i,a){let o=it(e),s=o!==e&&!I(e),c=o[t];if(c!==ct[t]){let t=c.apply(e,a);return s?R(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,at(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function ut(e,t,n,r){let i=it(e),a=i!==e&&!I(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=at(e,t)),n.call(this,t,at(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?at(e,c):c}function dt(e,t,n){let r=L(e);F(r,`iterate`,et);let i=r[t](...n);return(i===-1||i===!1)&&Kt(n[0])?(n[0]=L(n[0]),r[t](...n)):i}function ft(e,t,n=[]){We(),Fe();let r=L(e)[t].apply(e,n);return Ie(),Ge(),r}var pt=e(`__proto__,__v_isRef,__isVue`),mt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(v));function ht(e){v(e)||(e=String(e));let t=L(this);return F(t,`has`,e),t.hasOwnProperty(e)}var gt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?It:Ft:i?Pt:Nt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=ot[t]))return e;if(t===`hasOwnProperty`)return ht}let o=Reflect.get(e,t,z(e)?e:n);if((v(t)?mt.has(t):pt(t))||(r||F(e,`get`,t),i))return o;if(z(o)){let e=a&&T(t)?o:o.value;return r&&y(e)?Vt(e):e}return y(o)?r?Vt(o):zt(o):o}},_t=class extends gt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&T(t);if(!this._isShallow){let e=Gt(i);if(!I(n)&&!Gt(n)&&(i=L(i),n=L(n)),!a&&z(i)&&!z(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:u(e,t),s=Reflect.set(e,t,n,z(e)?e:r);return e===L(r)&&(o?A(n,i)&&tt(e,`set`,t,n,i):tt(e,`add`,t,n)),s}deleteProperty(e,t){let n=u(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&tt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!v(t)||!mt.has(t))&&F(e,`has`,t),n}ownKeys(e){return F(e,`iterate`,d(e)?`length`:Qe),Reflect.ownKeys(e)}},vt=class extends gt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},yt=new _t,bt=new vt,xt=new _t(!0),St=new vt(!0),Ct=e=>e,wt=e=>Reflect.getPrototypeOf(e);function Tt(e,t,n){return function(...r){let i=this.__v_raw,a=L(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?Ct:t?Jt:R;return!t&&F(a,`iterate`,l?$e:Qe),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Et(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Dt(e,t){let n={get(n){let r=this.__v_raw,i=L(r),a=L(n);e||(A(n,a)&&F(i,`get`,n),F(i,`get`,a));let{has:o}=wt(i),s=t?Ct:e?Jt:R;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&F(L(t),`iterate`,Qe),t.size},has(t){let n=this.__v_raw,r=L(n),i=L(t);return e||(A(t,i)&&F(r,`has`,t),F(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=L(a),s=t?Ct:e?Jt:R;return!e&&F(o,`iterate`,Qe),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:Et(`add`),set:Et(`set`),delete:Et(`delete`),clear:Et(`clear`)}:{add(e){let n=L(this),r=wt(n),i=L(e),a=!t&&!I(e)&&!Gt(e)?i:e;return r.has.call(n,a)||A(e,a)&&r.has.call(n,e)||A(i,a)&&r.has.call(n,i)||(n.add(a),tt(n,`add`,a,a)),this},set(e,n){!t&&!I(n)&&!Gt(n)&&(n=L(n));let r=L(this),{has:i,get:a}=wt(r),o=i.call(r,e);o||=(e=L(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?A(n,s)&&tt(r,`set`,e,n,s):tt(r,`add`,e,n),this},delete(e){let t=L(this),{has:n,get:r}=wt(t),i=n.call(t,e);i||=(e=L(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&tt(t,`delete`,e,void 0,a),o},clear(){let e=L(this),t=e.size!==0,n=e.clear();return t&&tt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Tt(r,e,t)}),n}function Ot(e,t){let n=Dt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var kt={get:Ot(!1,!1)},At={get:Ot(!1,!0)},jt={get:Ot(!0,!1)},Mt={get:Ot(!0,!0)},Nt=new WeakMap,Pt=new WeakMap,Ft=new WeakMap,It=new WeakMap;function Lt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Rt(e){return e.__v_skip||!Object.isExtensible(e)?0:Lt(C(e))}function zt(e){return Gt(e)?e:Ut(e,!1,yt,kt,Nt)}function Bt(e){return Ut(e,!1,xt,At,Pt)}function Vt(e){return Ut(e,!0,bt,jt,Ft)}function Ht(e){return Ut(e,!0,St,Mt,It)}function Ut(e,t,n,r,i){if(!y(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=Rt(e);if(a===0)return e;let o=i.get(e);if(o)return o;let s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function Wt(e){return Gt(e)?Wt(e.__v_raw):!!(e&&e.__v_isReactive)}function Gt(e){return!!(e&&e.__v_isReadonly)}function I(e){return!!(e&&e.__v_isShallow)}function Kt(e){return e?!!e.__v_raw:!1}function L(e){let t=e&&e.__v_raw;return t?L(t):e}function qt(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&ie(e,`__v_skip`,!0),e}var R=e=>y(e)?zt(e):e,Jt=e=>y(e)?Vt(e):e;function z(e){return e?e.__v_isRef===!0:!1}function Yt(e){return Zt(e,!1)}function Xt(e){return Zt(e,!0)}function Zt(e,t){return z(e)?e:new Qt(e,t)}var Qt=class{constructor(e,t){this.dep=new Ye,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:L(e),this._value=t?e:R(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||I(e)||Gt(e);e=n?e:L(e),A(e,t)&&(this._rawValue=e,this._value=n?e:R(e),this.dep.trigger())}};function $t(e){return z(e)?e.value:e}function en(e){return g(e)?e():$t(e)}var tn={get:(e,t,n)=>t===`__v_raw`?e:$t(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return z(i)&&!z(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function nn(e){return Wt(e)?e:new Proxy(e,tn)}var rn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new Ye,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function an(e){return new rn(e)}var on=class{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=L(e);let r=!0,i=e;if(!d(e)||!T(String(t)))do r=!Kt(i)||I(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=$t(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&z(this._raw[this._key])){let t=this._object[this._key];if(z(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return nt(this._raw,this._key)}},sn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function cn(e,t,n){return z(e)?e:g(e)?new sn(e):y(e)&&arguments.length>1?ln(e,t,n):Yt(e)}function ln(e,t,n){return new on(e,t,n)}var un=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ye(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=qe-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&N!==this)return Pe(this,!0),!0}get value(){let e=this.dep.track();return Be(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function dn(e,t,n=!1){let r,i;return g(e)?r=e:(r=e.get,i=e.set),new un(r,i,n)}var fn={},pn=new WeakMap,mn=void 0;function hn(e,t=!1,n=mn){if(n){let t=pn.get(n);t||pn.set(n,t=[]),t.push(e)}}function gn(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:I(e)||o===!1||o===0?_n(e,1):_n(e),m,h,_,v,y=!1,b=!1;if(z(e)?(h=()=>e.value,y=I(e)):Wt(e)?(h=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>Wt(e)||I(e)),h=()=>e.map(e=>{if(z(e))return e.value;if(Wt(e))return p(e);if(g(e))return f?f(e,2):e()})):h=g(e)?n?f?()=>f(e,2):e:()=>{if(_){We();try{_()}finally{Ge()}}let t=mn;mn=m;try{return f?f(e,3,[v]):e(v)}finally{mn=t}}:r,n&&o){let e=h,t=o===!0?1/0:o;h=()=>_n(e(),t)}let x=De(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{e(...t),S()}}let C=b?Array(e.length).fill(fn):fn,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e))if(n){let e=m.run();if(o||y||(b?e.some((e,t)=>A(e,C[t])):A(e,C))){_&&_();let t=mn;mn=m;try{let t=[e,C===fn?void 0:b&&C[0]===fn?[]:C,v];C=e,f?f(n,3,t):n(...t)}finally{mn=t}}}else m.run()};return u&&u(w),m=new Ae(h),m.scheduler=l?()=>l(w,!1):w,v=e=>hn(e,!1,m),_=m.onStop=()=>{let e=pn.get(m);if(e){if(f)f(e,4);else for(let t of e)t();pn.delete(m)}},n?a?w(!0):C=m.run():l?l(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function _n(e,t=1/0,n){if(t<=0||!y(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,z(e))_n(e.value,t,n);else if(d(e))for(let r=0;r<e.length;r++)_n(e[r],t,n);else if(p(e)||f(e))e.forEach(e=>{_n(e,t,n)});else if(w(e)){for(let r in e)_n(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&_n(e[r],t,n)}return e}function vn(e,t,n,r){try{return r?e(...r):e()}catch(e){yn(e,t,n)}}function B(e,t,n,r){if(g(e)){let i=vn(e,t,n,r);return i&&b(i)&&i.catch(e=>{yn(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a<e.length;a++)i.push(B(e[a],t,n,r));return i}}function yn(e,n,r,i=!0){let a=n?n.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=n&&n.appContext.config||t;if(n){let t=n.parent,i=n.proxy,a=`https://vuejs.org/error-reference/#runtime-${r}`;for(;t;){let n=t.ec;if(n){for(let t=0;t<n.length;t++)if(n[t](e,i,a)===!1)return}t=t.parent}if(o){We(),vn(o,null,10,[e,i,a]),Ge();return}}bn(e,r,a,i,s)}function bn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var V=[],xn=-1,Sn=[],Cn=null,wn=0,Tn=Promise.resolve(),En=null;function Dn(e){let t=En||Tn;return e?t.then(this?e.bind(this):e):t}function On(e){let t=xn+1,n=V.length;for(;t<n;){let r=t+n>>>1,i=V[r],a=Pn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function kn(e){if(!(e.flags&1)){let t=Pn(e),n=V[V.length-1];!n||!(e.flags&2)&&t>=Pn(n)?V.push(e):V.splice(On(t),0,e),e.flags|=1,An()}}function An(){En||=Tn.then(Fn)}function jn(e){d(e)?Sn.push(...e):Cn&&e.id===-1?Cn.splice(wn+1,0,e):e.flags&1||(Sn.push(e),e.flags|=1),An()}function Mn(e,t,n=xn+1){for(;n<V.length;n++){let t=V[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;V.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function Nn(e){if(Sn.length){let e=[...new Set(Sn)].sort((e,t)=>Pn(e)-Pn(t));if(Sn.length=0,Cn){Cn.push(...e);return}for(Cn=e,wn=0;wn<Cn.length;wn++){let e=Cn[wn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}Cn=null,wn=0}}var Pn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Fn(e){try{for(xn=0;xn<V.length;xn++){let e=V[xn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),vn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;xn<V.length;xn++){let e=V[xn];e&&(e.flags&=-2)}xn=-1,V.length=0,Nn(e),En=null,(V.length||Sn.length)&&Fn(e)}}var H=null,In=null;function Ln(e){let t=H;return H=e,In=e&&e.type.__scopeId||null,t}function Rn(e){In=e}function zn(){In=null}var Bn=e=>Vn;function Vn(e,t=H,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&qa(-1);let i=Ln(t),a;try{a=e(...n)}finally{Ln(i),r._d&&qa(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Hn(e,n){if(H===null)return e;let r=ko(H),i=e.dirs||=[];for(let e=0;e<n.length;e++){let[a,o,s,c=t]=n[e];a&&(g(a)&&(a={mounted:a,updated:a}),a.deep&&_n(o),i.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function Un(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(We(),B(c,n,8,[e.el,s,e,t]),Ge())}}function Wn(e,t){if($){let n=$.provides,r=$.parent&&$.parent.provides;r===n&&(n=$.provides=Object.create(r)),n[e]=t}}function Gn(e,t,n=!1){let r=mo();if(r||Ri){let i=Ri?Ri._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&g(t)?t.call(r&&r.proxy):t}}function Kn(){return!!(mo()||Ri)}var qn=Symbol.for(`v-scx`),Jn=()=>Gn(qn);function Yn(e,t){return Qn(e,null,t)}function Xn(e,t){return Qn(e,null,{flush:`sync`})}function Zn(e,t,n){return Qn(e,t,n)}function Qn(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(bo){if(c===`sync`){let e=Jn();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=$;u.call=(e,t,n)=>B(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{G(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():kn(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=gn(e,n,u);return bo&&(f?f.push(h):d&&h()),h}function $n(e,t,n){let r=this.proxy,i=_(e)?e.includes(`.`)?er(r,e):()=>r[e]:e.bind(r,r),a;g(t)?a=t:(a=t.handler,n=t);let o=_o(this),s=Qn(i,a.bind(r),n);return o(),s}function er(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var tr=Symbol(`_vte`),nr=e=>e.__isTeleport,rr=Symbol(`_leaveCb`),ir=Symbol(`_enterCb`);function ar(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Yr(()=>{e.isMounted=!0}),Qr(()=>{e.isUnmounting=!0}),e}var U=[Function,Array],or={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:U,onEnter:U,onAfterEnter:U,onEnterCancelled:U,onBeforeLeave:U,onLeave:U,onAfterLeave:U,onLeaveCancelled:U,onBeforeAppear:U,onAppear:U,onAfterAppear:U,onAppearCancelled:U},sr=e=>{let t=e.subTree;return t.component?sr(t.component):t},cr={name:`BaseTransition`,props:or,setup(e,{slots:t}){let n=mo(),r=ar();return()=>{let i=t.default&&gr(t.default(),!0);if(!i||!i.length)return;let a=lr(i),o=L(e),{mode:s}=o;if(r.isLeaving)return pr(a);let c=mr(a);if(!c)return pr(a);let l=fr(c,o,r,n,e=>l=e);c.type!==q&&hr(c,l);let u=n.subTree&&mr(n.subTree);if(u&&u.type!==q&&!Y(u,c)&&sr(n).type!==q){let e=fr(u,o,r,n);if(hr(u,e),s===`out-in`&&c.type!==q)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},pr(a);s===`in-out`&&c.type!==q?e.delayLeave=(e,t,n)=>{let i=dr(r,u);i[String(u.key)]=u,e[rr]=()=>{t(),e[rr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function lr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==q){t=n;break}}return t}var ur=cr;function dr(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function fr(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=dr(n,e),C=(e,t)=>{e&&B(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),d(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=_||c;else return;t[rr]&&t[rr](!0);let i=S[x];i&&Y(e,i)&&i.el[rr]&&i.el[rr](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=f;if(!n.isMounted)if(a)r=v||l,i=y||u,o=b||f;else return;let s=!1;t[ir]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[ir]=void 0)};let c=t[ir].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[ir]&&t[ir](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[rr]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[rr]=void 0,S[i]===e&&delete S[i])};let o=t[rr].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=fr(e,t,n,r,i);return i&&i(a),a}};return T}function pr(e){if(Lr(e))return e=ro(e),e.children=null,e}function mr(e){if(!Lr(e))return nr(e.type)&&e.children?lr(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&g(n.default))return n.default()}}function hr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,hr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function gr(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===K?(o.patchFlag&128&&i++,r=r.concat(gr(o.children,t,s))):(t||o.type!==q)&&r.push(s==null?o:ro(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function _r(e,t){return g(e)?s({name:e.name},t,{setup:e}):e}function vr(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function yr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var br=new WeakMap;function xr(e,n,r,a,o=!1){if(d(e)){e.forEach((e,t)=>xr(e,n&&(d(n)?n[t]:n),r,a,o));return}if(Pr(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&xr(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?ko(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,h=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=L(v),b=v===t?i:e=>yr(h,e)?!1:u(y,e),x=(e,t)=>!(t&&yr(h,t));if(m!=null&&m!==p){if(Sr(n),_(m))h[m]=null,b(m)&&(v[m]=null);else if(z(m)){let e=n;x(m,e.k)&&(m.value=null),e.k&&(h[e.k]=null)}}if(g(p))vn(p,f,12,[l,h]);else{let t=_(p),n=z(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:h[p]:x(p)||!e.k?p.value:h[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)h[p]=[s],b(p)&&(v[p]=h[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(h[e.k]=t)}}else t?(h[p]=l,b(p)&&(v[p]=l)):n&&(x(p,e.k)&&(p.value=l),e.k&&(h[e.k]=l))};if(l){let t=()=>{i(),br.delete(e)};t.id=-1,br.set(e,t),G(t,r)}else Sr(e),i()}}}function Sr(e){let t=br.get(e);t&&(t.flags|=8,br.delete(e))}var Cr=!1,wr=()=>{Cr||=(console.error(`Hydration completed but contains mismatches.`),!0)},Tr=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Er=e=>e.namespaceURI.includes(`MathML`),Dr=e=>{if(e.nodeType===1){if(Tr(e))return`svg`;if(Er(e))return`mathml`}},Or=e=>e.nodeType===8;function kr(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:s,remove:c,insert:l,createComment:u}}=e,d=(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),Nn(),t._vnode=e;return}f(t.firstChild,e,null,null,null),Nn(),t._vnode=e},f=(n,r,a,c,u,d=!1)=>{d||=!!r.dynamicChildren;let b=Or(n)&&n.data===`[`,x=()=>g(n,r,a,c,u,b),{type:S,ref:C,shapeFlag:w,patchFlag:T}=r,E=n.nodeType;r.el=n,T===-2&&(d=!1,r.dynamicChildren=null);let D=null;switch(S){case Va:E===3?(n.data!==r.children&&(wr(),n.data=r.children),D=o(n)):r.children===``?(l(r.el=i(``),s(n),n),D=n):D=x();break;case q:y(n)?(D=o(n),v(r.el=n.content.firstChild,n,a)):D=E!==8||b?x():o(n);break;case Ha:if(b&&(n=o(n),E=n.nodeType),E===1||E===3){D=n;let e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=D.nodeType===1?D.outerHTML:D.data),t===r.staticCount-1&&(r.anchor=D),D=o(D);return b?o(D):D}else x();break;case K:D=b?h(n,r,a,c,u,d):x();break;default:if(w&1)D=(E!==1||r.type.toLowerCase()!==n.tagName.toLowerCase())&&!y(n)?x():p(n,r,a,c,u,d);else if(w&6){r.slotScopeIds=u;let e=s(n);if(D=b?_(n):Or(n)&&n.data===`teleport start`?_(n,n.data,`teleport end`):o(n),t(r,e,null,a,c,Dr(e),d),Pr(r)&&!r.type.__asyncResolved){let t;b?(t=X(K),t.anchor=D?D.previousSibling:e.lastChild):t=n.nodeType===3?io(``):X(`div`),t.el=n,r.component.subTree=t}}else w&64?D=E===8?r.type.hydrate(n,r,a,c,u,d,e,m):x():w&128&&(D=r.type.hydrate(n,r,a,c,Dr(s(n)),u,d,e,f))}return C!=null&&xr(C,null,c,r),D},p=(e,t,n,i,o,s)=>{s||=!!t.dynamicChildren;let{type:l,props:u,patchFlag:d,shapeFlag:f,dirs:p,transition:h}=t,g=l===`input`||l===`option`;if(g||d!==-1){p&&Un(t,null,n,`created`);let l=!1;if(y(e)){l=Sa(null,h)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(l){let e=r.getAttribute(`class`);e&&(r.$cls=e),h.beforeEnter(r)}v(r,e,n),t.el=e=r}if(f&16&&!(u&&(u.innerHTML||u.textContent))){let r=m(e.firstChild,t,e,n,i,o,s);for(;r;){Mr(e,1)||wr();let t=r;r=r.nextSibling,c(t)}}else if(f&8){let n=t.children;n[0]===`
|
|
2
|
+
`&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,`
|
|
3
|
+
`)&&(Mr(e,0)||wr(),e.textContent=t.children)}if(u){if(g||!s||d&48){let t=e.tagName.includes(`-`);for(let i in u)(g&&(i.endsWith(`value`)||i===`indeterminate`)||a(i)&&!E(i)||i[0]===`.`||t&&!E(i))&&r(e,i,null,u[i],void 0,n)}else if(u.onClick)r(e,`onClick`,null,u.onClick,void 0,n);else if(d&4&&Wt(u.style))for(let e in u.style)u.style[e]}let _;(_=u&&u.onVnodeBeforeMount)&&Q(_,n,t),p&&Un(t,null,n,`beforeMount`),((_=u&&u.onVnodeMounted)||p||l)&&Ra(()=>{_&&Q(_,n,t),l&&h.enter(e),p&&Un(t,null,n,`mounted`)},i)}return e.nextSibling},m=(e,t,r,a,s,c,u)=>{u||=!!t.dynamicChildren;let d=t.children,p=d.length;for(let t=0;t<p;t++){let m=u?d[t]:d[t]=Z(d[t]),h=m.type===Va;e?(h&&!u&&t+1<p&&Z(d[t+1]).type===Va&&(l(i(e.data.slice(m.children.length)),r,o(e)),e.data=m.children),e=f(e,m,a,s,c,u)):h&&!m.children?l(m.el=i(``),r):(Mr(r,1)||wr(),n(null,m,r,null,a,s,Dr(r),c))}return e},h=(e,t,n,r,i,a)=>{let{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);let d=s(e),f=m(o(e),t,d,n,r,i,a);return f&&Or(f)&&f.data===`]`?o(t.anchor=f):(wr(),l(t.anchor=u(`]`),d,f),f)},g=(e,t,r,i,a,l)=>{if(Mr(e.parentElement,1)||wr(),t.el=null,l){let t=_(e);for(;;){let n=o(e);if(n&&n!==t)c(n);else break}}let u=o(e),d=s(e);return c(e),n(null,t,d,u,r,i,Dr(d),a),r&&(r.vnode.el=t.el,Qi(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=o(e),e&&Or(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return o(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[d,f]}var Ar=`data-allow-mismatch`,jr={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Mr(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Ar);)e=e.parentElement;let n=e&&e.getAttribute(Ar);if(n==null)return!1;if(n===``)return!0;{let e=n.split(`,`);return t===0&&e.includes(`children`)?!0:e.includes(jr[t])}}ce().requestIdleCallback,ce().cancelIdleCallback;function Nr(e,t){if(Or(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Or(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}var Pr=e=>!!e.type.__asyncLoader;function Fr(e){g(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return _r({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=!1;(t.bu||=[]).push(()=>r=!0);let i=()=>{r||n()},o=a?()=>{let n=a(i,t=>Nr(e,t));n&&(t.bum||=[]).push(n)}:i;u?o():p().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return u},setup(){let e=$;if(vr(e),u)return()=>Ir(u,e);let t=t=>{l=null,yn(t,e,13,!r)};if(s&&e.suspense||bo)return p().then(t=>()=>Ir(t,e)).catch(e=>(t(e),()=>r?X(r,{error:e}):null));let a=Yt(!1),c=Yt(),d=Yt(!!i);return i&&setTimeout(()=>{d.value=!1},i),o!=null&&setTimeout(()=>{if(!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o),p().then(()=>{a.value=!0,e.parent&&Lr(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),c.value=e}),()=>{if(a.value&&u)return Ir(u,e);if(c.value&&r)return X(r,{error:c.value});if(n&&!d.value)return Ir(n,e)}}})}function Ir(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=X(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Lr=e=>e.type.__isKeepAlive,Rr={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=mo(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),G(()=>{a.isDeactivated=!1,a.a&&j(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Q(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;Ea(t.m),Ea(t.a),l(e,f,null,1,s),G(()=>{t.da&&j(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&Q(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){Wr(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=Ao(Pr(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!Y(t,o))?p(t):o&&Wr(o),i.delete(e),a.delete(e)}Zn(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>zr(e,t)),t&&m(e=>!zr(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(Oa(n.subTree.type)?G(()=>{i.set(g,Gr(n.subTree))},n.subTree.suspense):i.set(g,Gr(n.subTree)))};return Yr(_),Zr(_),Qr(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=Gr(t);if(e.type===i.type&&e.key===i.key){Wr(i);let e=i.component.da;e&&G(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!Za(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=Gr(r);if(s.type===q)return o=null,s;let c=s.type,l=Ao(Pr(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!zr(u,l))||d&&l&&zr(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=ro(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&hr(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,Oa(r.type)?r:s}}};function zr(e,t){return d(e)?e.some(e=>zr(e,t)):_(e)?e.split(`,`).includes(t):h(e)?(e.lastIndex=0,e.test(t)):!1}function Br(e,t){Hr(e,`a`,t)}function Vr(e,t){Hr(e,`da`,t)}function Hr(e,t,n=$){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Kr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Lr(e.parent.vnode)&&Ur(r,t,n,e),e=e.parent}}function Ur(e,t,n,r){let i=Kr(t,e,r,!0);$r(()=>{c(r[t],i)},n)}function Wr(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Gr(e){return e.shapeFlag&128?e.ssContent:e}function Kr(e,t,n=$,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{We();let i=_o(n),a=B(t,n,e,r);return i(),Ge(),a};return r?i.unshift(a):i.push(a),a}}var qr=e=>(t,n=$)=>{(!bo||e===`sp`)&&Kr(e,(...e)=>t(...e),n)},Jr=qr(`bm`),Yr=qr(`m`),Xr=qr(`bu`),Zr=qr(`u`),Qr=qr(`bum`),$r=qr(`um`),ei=qr(`sp`),ti=qr(`rtg`),ni=qr(`rtc`);function ri(e,t=$){Kr(`ec`,e,t)}var ii=`components`,ai=`directives`;function oi(e,t){return ui(ii,e,!0,t)||e}var si=Symbol.for(`v-ndc`);function ci(e){return _(e)?ui(ii,e,!1)||e:e||si}function li(e){return ui(ai,e)}function ui(e,t,n=!0,r=!1){let i=H||$;if(i){let n=i.type;if(e===ii){let e=Ao(n,!1);if(e&&(e===t||e===O(t)||e===ne(O(t))))return n}let a=di(i[e]||n[e],t)||di(i.appContext[e],t);return!a&&r?n:a}}function di(e,t){return e&&(e[t]||e[O(t)]||e[ne(O(t))])}function fi(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||_(e)){let n=o&&Wt(e),r=!1,s=!1;n&&(r=!I(e),s=Gt(e),e=it(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?Jt(R(e[n])):R(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(y(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}function pi(e,t,n={},r,i){if(H.ce||H.parent&&Pr(H.parent)&&H.parent.ce){let e=Object.keys(n).length>0;return t!==`default`&&(n.name=t),Wa(),Xa(K,null,[X(`slot`,n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),Wa();let o=a&&mi(a(n)),s=n.key||o&&o.key,c=Xa(K,{key:(s&&!v(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function mi(e){return e.some(e=>Za(e)?!(e.type===q||e.type===K&&!mi(e.children)):!0)?e:null}var hi=e=>e?yo(e)?ko(e):hi(e.parent):null,gi=s(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=>hi(e.parent),$root:e=>hi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ei(e),$forceUpdate:e=>e.f||=()=>{kn(e.update)},$nextTick:e=>e.n||=Dn.bind(e.proxy),$watch:e=>$n.bind(e)}),_i=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),vi={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(_i(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else xi&&(s[n]=0)}let d=gi[n],f,p;if(d)return n===`$attrs`&&F(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return _i(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||_i(n,c)||u(o,c)||u(i,c)||u(gi,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function yi(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function bi(e,t){return!e||!t?e||t:d(e)&&d(t)?e.concat(t):s({},yi(e),yi(t))}var xi=!0;function Si(e){let t=Ei(e),n=e.proxy,i=e.ctx;xi=!1,t.beforeCreate&&wi(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:h,updated:_,activated:v,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:E,renderTriggered:D,errorCaptured:ee,serverPrefetch:O,expose:te,inheritAttrs:k,components:ne,directives:re,filters:A}=t;if(u&&Ci(u,i,null),s)for(let e in s){let t=s[e];g(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);y(t)&&(e.data=zt(t))}if(xi=!0,o)for(let e in o){let t=o[e],a=Mo({get:g(t)?t.bind(n,n):g(t.get)?t.get.bind(n,n):r,set:!g(t)&&g(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)Ti(c[e],i,n,e);if(l){let e=g(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Wn(t,e[t])})}f&&wi(f,e,`c`);function j(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(j(Jr,p),j(Yr,m),j(Xr,h),j(Zr,_),j(Br,v),j(Vr,b),j(ri,ee),j(ni,E),j(ti,D),j(Qr,S),j($r,w),j(ei,O),d(te))if(te.length){let t=e.exposed||={};te.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};T&&e.render===r&&(e.render=T),k!=null&&(e.inheritAttrs=k),ne&&(e.components=ne),re&&(e.directives=re),O&&vr(e)}function Ci(e,t,n=r){d(e)&&(e=ji(e));for(let n in e){let r=e[n],i;i=y(r)?`default`in r?Gn(r.from||n,r.default,!0):Gn(r.from||n):Gn(r),z(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function wi(e,t,n){B(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ti(e,t,n,r){let i=r.includes(`.`)?er(n,r):()=>n[r];if(_(e)){let n=t[e];g(n)&&Zn(i,n)}else if(g(e))Zn(i,e.bind(n));else if(y(e))if(d(e))e.forEach(e=>Ti(e,t,n,r));else{let r=g(e.handler)?e.handler.bind(n):t[e.handler];g(r)&&Zn(i,r,e)}}function Ei(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Di(c,e,o,!0)),Di(c,t,o)),y(t)&&a.set(t,c),c}function Di(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Di(e,a,n,!0),i&&i.forEach(t=>Di(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Oi[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Oi={data:ki,props:Ni,emits:Ni,methods:Mi,computed:Mi,beforeCreate:W,created:W,beforeMount:W,mounted:W,beforeUpdate:W,updated:W,beforeDestroy:W,beforeUnmount:W,destroyed:W,unmounted:W,activated:W,deactivated:W,errorCaptured:W,serverPrefetch:W,components:Mi,directives:Mi,watch:Pi,provide:ki,inject:Ai};function ki(e,t){return t?e?function(){return s(g(e)?e.call(this,this):e,g(t)?t.call(this,this):t)}:t:e}function Ai(e,t){return Mi(ji(e),ji(t))}function ji(e){if(d(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function W(e,t){return e?[...new Set([].concat(e,t))]:t}function Mi(e,t){return e?s(Object.create(null),e,t):t}function Ni(e,t){return e?d(e)&&d(t)?[...new Set([...e,...t])]:s(Object.create(null),yi(e),yi(t??{})):t}function Pi(e,t){if(!e)return t;if(!t)return e;let n=s(Object.create(null),e);for(let r in t)n[r]=W(e[r],t[r]);return n}function Fi(){return{app:null,config:{isNativeTag:i,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}}var Ii=0;function Li(e,t){return function(n,r=null){g(n)||(n=s({},n)),r!=null&&!y(r)&&(r=null);let i=Fi(),a=new WeakSet,o=[],c=!1,l=i.app={_uid:Ii++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Po,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&g(e.install)?(a.add(e),e.install(l,...t)):g(e)&&(a.add(e),e(l,...t))),l},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),l},component(e,t){return t?(i.components[e]=t,l):i.components[e]},directive(e,t){return t?(i.directives[e]=t,l):i.directives[e]},mount(a,o,s){if(!c){let u=l._ceVNode||X(n,r);return u.appContext=i,s===!0?s=`svg`:s===!1&&(s=void 0),o&&t?t(u,a):e(u,a,s),c=!0,l._container=a,a.__vue_app__=l,ko(u.component)}},onUnmount(e){o.push(e)},unmount(){c&&(B(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return i.provides[e]=t,l},runWithContext(e){let t=Ri;Ri=l;try{return e()}finally{Ri=t}}};return l}}var Ri=null;function zi(e,n,r=t){let i=mo(),a=O(n),o=k(n),s=Bi(e,a),c=an((s,c)=>{let l,u=t,d;return Xn(()=>{let t=e[a];A(l,t)&&(l=t,c())}),{get(){return s(),r.get?r.get(l):l},set(e){let s=r.set?r.set(e):e;if(!A(s,l)&&!(u!==t&&A(e,u)))return;let f=i.vnode.props;f&&(n in f||a in f||o in f)&&(`onUpdate:${n}`in f||`onUpdate:${a}`in f||`onUpdate:${o}`in f)||(l=e,c()),i.emit(`update:${n}`,s),A(e,s)&&A(e,u)&&!A(s,d)&&c(),u=e,d=s}}});return c[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||t:c,done:!1}:{done:!0}}}},c}var Bi=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${k(t)}Modifiers`];function Vi(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&Bi(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>_(e)?e.trim():e)),s.number&&(a=r.map(ae)));let c,l=i[c=re(n)]||i[c=re(O(n))];!l&&o&&(l=i[c=re(k(n))]),l&&B(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,B(u,e,6,a)}}var Hi=new WeakMap;function Ui(e,t,n=!1){let r=n?Hi:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!g(e)){let r=e=>{let n=Ui(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(y(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),y(e)&&r.set(e,o),o)}function Wi(e,t){return!e||!a(t)?!1:(t=t.slice(2).replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,k(t))||u(e,t))}function Gi(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=Ln(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Z(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Z(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:qi(c)}}catch(t){Ua.length=0,yn(t,e,1),v=X(q)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=Ji(y,a)),b=ro(b,y,!1,!0))}return n.dirs&&(b=ro(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&hr(b,n.transition),v=b,Ln(_),v}function Ki(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(Za(r)){if(r.type!==q||r.children===`v-if`){if(n)return;n=r}}else return}return n}var qi=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},Ji=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Yi(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Xi(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(Zi(o,r,n)&&!Wi(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?Xi(r,o,l):!0:!!o;return!1}function Xi(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(Zi(t,e,a)&&!Wi(n,a))return!0}return!1}function Zi(e,t,n){let r=e[n],i=t[n];return n===`style`&&y(r)&&y(i)?!be(r,i):r!==i}function Qi({vnode:e,parent:t},n){for(;t;){let 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}}var $i={},ea=()=>Object.create($i),ta=e=>Object.getPrototypeOf(e)===$i;function na(e,t,n,r=!1){let i={},a=ea();e.propsDefaults=Object.create(null),ia(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:Bt(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function ra(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=L(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(Wi(e.emitsOptions,o))continue;let d=t[o];if(c)if(u(a,o))d!==a[o]&&(a[o]=d,l=!0);else{let t=O(o);i[t]=aa(c,s,t,d,e,!1)}else d!==a[o]&&(a[o]=d,l=!0)}}}else{ia(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!u(t,a)&&((r=k(a))===a||!u(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=aa(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!u(t,e))&&(delete a[e],l=!0)}l&&tt(e.attrs,`set`,``)}function ia(e,n,r,i){let[a,o]=e.propsOptions,s=!1,c;if(n)for(let t in n){if(E(t))continue;let l=n[t],d;a&&u(a,d=O(t))?!o||!o.includes(d)?r[d]=l:(c||={})[d]=l:Wi(e.emitsOptions,t)||(!(t in i)||l!==i[t])&&(i[t]=l,s=!0)}if(o){let n=L(r),i=c||t;for(let t=0;t<o.length;t++){let s=o[t];r[s]=aa(a,n,s,i[s],e,!u(i,s))}}return s}function aa(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=u(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&g(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=_o(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===k(n))&&(r=!0))}return r}var oa=new WeakMap;function sa(e,r,i=!1){let a=i?oa:r.propsCache,o=a.get(e);if(o)return o;let c=e.props,l={},f=[],p=!1;if(!g(e)){let t=e=>{p=!0;let[t,n]=sa(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return y(e)&&a.set(e,n),n;if(d(c))for(let e=0;e<c.length;e++){let n=O(c[e]);ca(n)&&(l[n]=t)}else if(c)for(let e in c){let t=O(e);if(ca(t)){let n=c[e],r=l[t]=d(n)||g(n)?{type:n}:s({},n),i=r.type,a=!1,o=!0;if(d(i))for(let e=0;e<i.length;++e){let t=i[e],n=g(t)&&t.name;if(n===`Boolean`){a=!0;break}else n===`String`&&(o=!1)}else a=g(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||u(r,`default`))&&f.push(t)}}let m=[l,f];return y(e)&&a.set(e,m),m}function ca(e){return e[0]!==`$`&&!E(e)}var la=e=>e===`_`||e===`_ctx`||e===`$stable`,ua=e=>d(e)?e.map(Z):[Z(e)],da=(e,t,n)=>{if(t._n)return t;let r=Vn((...e)=>ua(t(...e)),n);return r._c=!1,r},fa=(e,t,n)=>{let r=e._ctx;for(let n in e){if(la(n))continue;let i=e[n];if(g(i))t[n]=da(n,i,r);else if(i!=null){let e=ua(i);t[n]=()=>e}}},pa=(e,t)=>{let n=ua(t);e.slots.default=()=>n},ma=(e,t,n)=>{for(let r in t)(n||!la(r))&&(e[r]=t[r])},ha=(e,t,n)=>{let r=e.slots=ea();if(e.vnode.shapeFlag&32){let e=t._;e?(ma(r,t,n),n&&ie(r,`_`,e,!0)):fa(t,r)}else t&&pa(e,t)},ga=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:ma(a,n,r):(o=!n.$stable,fa(n,a)),s=n}else n&&(pa(e,n),s={default:1});if(o)for(let e in a)!la(e)&&s[e]==null&&delete a[e]},G=Ra;function _a(e){return ya(e)}function va(e){return ya(e,kr)}function ya(e,i){let a=ce();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Y(e,t)&&(r=_e(e),fe(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Va:y(e,t,n,r);break;case q:b(e,t,n,r);break;case Ha:e??x(t,n,r,o);break;case K:ne(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?re(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,be)}u!=null&&i?xr(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&xr(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),O(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&ee(e.children,d,null,r,i,ba(e,a),s,u),_&&Un(e,null,r,`created`),D(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!E(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Q(f,r,e)}_&&Un(e,null,r,`beforeMount`);let v=Sa(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&G(()=>{f&&Q(f,r,e),v&&g.enter(d),_&&Un(e,null,r,`mounted`)},i)},D=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||Oa(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;D(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},ee=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++)v(null,e[l]=s?so(e[l]):Z(e[l]),t,n,r,i,a,o,s)},O=(e,n,r,i,a,o,s)=>{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&xa(r,!1),(g=h.onVnodeBeforeUpdate)&&Q(g,r,n,e),f&&Un(n,e,r,`beforeUpdate`),r&&xa(r,!0),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?te(e.dynamicChildren,d,l,r,i,ba(n,a),o):s||se(e,n,l,null,r,i,ba(n,a),o,!1),u>0){if(u&16)k(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t],i=m[n],o=h[n];(o!==i||n===`value`)&&c(l,n,i,o,a,r)}}u&1&&e.children!==n.children&&p(l,n.children)}else !s&&d==null&&k(l,m,h,r,a);((g=h.onVnodeUpdated)||f)&&G(()=>{g&&Q(g,r,n,e),f&&Un(n,e,r,`updated`)},i)},te=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s];v(c,l,c.el&&(c.type===K||!Y(c,l)||c.shapeFlag&198)?m(c.el):n,null,r,i,a,o,!0)}},k=(e,n,r,i,a)=>{if(n!==r){if(n!==t)for(let t in n)!E(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(E(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},ne=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),ee(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(te(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Ca(e,t,!0)):se(e,t,n,f,i,a,s,c,l)},re=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):A(t,n,r,i,a,o,c):ie(e,t,c)},A=(e,t,n,r,i,a,o)=>{let s=e.component=po(e,r,i);if(Lr(e)&&(s.ctx.renderer=be),xo(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ae,o),!e.el){let r=s.subTree=X(q);b(null,r,t,n),e.placeholder=r.el}}else ae(s,e,t,n,i,a,o)},ie=(e,t,n)=>{let r=t.component=e.component;if(Yi(e,t,n))if(r.asyncDep&&!r.asyncResolved){oe(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},ae=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Ta(e);if(n){t&&(t.el=c.el,oe(e,t,o)),n.asyncDep.then(()=>{G(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;xa(e,!1),t?(t.el=c.el,oe(e,t,o)):t=c,n&&j(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Q(d,s,t,c),xa(e,!0);let f=Gi(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),_e(p),e,i,a),t.el=f.el,u===null&&Qi(e,f.el),r&&G(r,i),(d=t.props&&t.props.onVnodeUpdated)&&G(()=>Q(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Pr(t);if(xa(e,!1),l&&j(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Q(o,d,t),xa(e,!0),s&&Se){let t=()=>{e.subTree=Gi(e),Se(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Gi(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&G(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;G(()=>Q(o,d,e),i)}(t.shapeFlag&256||d&&Pr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&G(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ae(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>kn(u),xa(e,!0),l()},oe=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,ra(e,t.props,r,n),ga(e,t.children,n),We(),Mn(e),Ge()},se=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){ue(l,d,n,r,i,a,o,s,c);return}else if(f&256){le(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ge(l,i,a),d!==l&&p(n,d)):u&16?m&16?ue(l,d,n,r,i,a,o,s,c):ge(l,i,a,!0):(u&8&&p(n,``),m&16&&ee(d,n,r,i,a,o,s,c))},le=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;p<f;p++){let n=t[p]=l?so(t[p]):Z(t[p]);v(e[p],n,r,null,a,o,s,c,l)}u>d?ge(e,a,o,!0,!1,f):ee(t,r,i,a,o,s,c,l,f)},ue=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?so(t[u]):Z(t[u]);if(Y(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?so(t[p]):Z(t[p]);if(Y(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=e<d?t[e].el:i;for(;u<=p;)v(null,t[u]=l?so(t[u]):Z(t[u]),r,n,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)fe(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?so(t[u]):Z(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let n=e[u];if(y>=b){fe(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Y(n,t[_])){i=_;break}i===void 0?fe(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?wa(C):n;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1<d?f.el||Da(f):i;C[u]===0?v(null,n,r,p,a,o,s,c,l):x&&(_<0||u!==w[_]?de(n,r,p,2):_--)}}},de=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){de(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,be);return}if(c===K){o(a,t,n);for(let e=0;e<u.length;e++)de(u[e],t,n,r);o(e.anchor,t,n);return}if(c===Ha){S(e,t,n);return}if(r!==2&&d&1&&l)if(r===0)l.beforeEnter(a),o(a,t,n),G(()=>l.enter(a),i);else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{a._isLeaving&&a[rr](!0),r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}else o(a,t,n)},fe=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p}=e;if(d===-2&&(i=!1),s!=null&&(We(),xr(s,null,n,e,!0),Ge()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let m=u&1&&f,h=!Pr(e),g;if(h&&(g=o&&o.onVnodeBeforeUnmount)&&Q(g,t,e),u&6)he(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}m&&Un(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,be,r):l&&!l.hasOnce&&(a!==K||d>0&&d&64)?ge(l,t,n,!1,!0):(a===K&&d&384||!i&&u&16)&&ge(c,t,n),r&&pe(e)}(h&&(g=o&&o.onVnodeUnmounted)||m)&&G(()=>{g&&Q(g,t,e),m&&Un(e,null,t,`unmounted`)},n)},pe=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===K){me(n,r);return}if(t===Ha){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},me=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},he=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Ea(c),Ea(l),r&&j(r),i.stop(),a&&(a.flags|=8,fe(o,e,t,n)),s&&G(s,t),G(()=>{e.isUnmounted=!0},t)},ge=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)fe(e[o],t,n,r,i)},_e=e=>{if(e.shapeFlag&6)return _e(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[tr];return n?h(n):t},ve=!1,ye=(e,t,n)=>{let r;e==null?t._vnode&&(fe(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ve||=(ve=!0,Mn(r),Nn(),!1)},be={p:v,um:fe,m:de,r:pe,mt:A,mc:ee,pc:se,pbc:te,n:_e,o:e},xe,Se;return i&&([xe,Se]=i(be)),{render:ye,hydrate:xe,createApp:Li(ye,xe)}}function ba({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 xa({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Sa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ca(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=so(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Ca(t,a)),a.type===Va&&(a.patchFlag===-1&&(a=i[e]=so(a)),a.el=t.el),a.type===q&&!a.el&&(a.el=t.el)}}function wa(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function Ta(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ta(t)}function Ea(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Da(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Da(t.subTree):null}var Oa=e=>e.__isSuspense,ka=0,Aa={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)Ma(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Na(e,t,n,r,i,o,s,c,l)}},hydrate:Fa,normalize:Ia};function ja(e,t){let n=e.props&&e.props[t];g(n)&&n()}function Ma(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=Pa(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(ja(e,`onPending`),ja(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),za(f,e.ssFallback)):f.resolve(!1,!0)}function Na(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,Y(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),za(d,p)))):(d.pendingId=ka++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),za(d,p))):m&&Y(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&Y(m,f))c(m,f,n,r,i,d,a,o,s),za(d,f);else if(ja(t,`onPending`),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=ka++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function Pa(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=Ba(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?oe(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:ka++,timeout:typeof y==`number`?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;x.isHydrating?x.isHydrating=!1:e||(g=i&&o.transition&&o.transition.mode===`out-in`,g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b?m(i):a,0),jn(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&(h(i.el)===u&&(a=m(i)),p(i,l,x,!0),!g&&d&&r.ssFallback&&G(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)),za(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){y.effects.push(...c),S=!0;break}y=y.parent}!S&&!g&&jn(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),ja(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;ja(t,`onFallback`);let o=m(n),l=()=>{x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),za(x,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{yn(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;e.asyncResolved=!0;let{vnode:s}=e;Co(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),Qi(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function Fa(e,t,n,r,i,a,o,s,c){let l=t.suspense=Pa(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function Ia(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=La(r?n.default:n),e.ssFallback=r?La(n.fallback):X(q)}function La(e){let t;if(g(e)){let n=Ka&&e._c;n&&(e._d=!1,Wa()),e=e(),n&&(e._d=!0,t=J,Ga())}return d(e)&&(e=Ki(e)),e=Z(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Ra(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):jn(e)}function za(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,Qi(r,i))}function Ba(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var K=Symbol.for(`v-fgt`),Va=Symbol.for(`v-txt`),q=Symbol.for(`v-cmt`),Ha=Symbol.for(`v-stc`),Ua=[],J=null;function Wa(e=!1){Ua.push(J=e?null:[])}function Ga(){Ua.pop(),J=Ua[Ua.length-1]||null}var Ka=1;function qa(e,t=!1){Ka+=e,e<0&&J&&t&&(J.hasOnce=!0)}function Ja(e){return e.dynamicChildren=Ka>0?J||n:null,Ga(),Ka>0&&J&&J.push(e),e}function Ya(e,t,n,r,i,a){return Ja(eo(e,t,n,r,i,a,!0))}function Xa(e,t,n,r,i){return Ja(X(e,t,n,r,i,!0))}function Za(e){return e?e.__v_isVNode===!0:!1}function Y(e,t){return e.type===t.type&&e.key===t.key}var Qa=({key:e})=>e??null,$a=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:_(e)||z(e)||g(e)?{i:H,r:e,k:t,f:!!n}:e);function eo(e,t=null,n=null,r=0,i=null,a=e===K?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qa(t),ref:t&&$a(t),scopeId:In,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:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:H};return s?(co(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=_(n)?8:16),Ka>0&&!o&&J&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&J.push(c),c}var X=to;function to(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===si)&&(e=q),Za(e)){let r=ro(e,t,!0);return n&&co(r,n),Ka>0&&!a&&J&&(r.shapeFlag&6?J[J.indexOf(e)]=r:J.push(r)),r.patchFlag=-2,r}if(jo(e)&&(e=e.__vccOpts),t){t=no(t);let{class:e,style:n}=t;e&&!_(e)&&(t.class=me(e)),y(n)&&(Kt(n)&&!d(n)&&(n=s({},n)),t.style=le(n))}let o=_(e)?1:Oa(e)?128:nr(e)?64:y(e)?4:g(e)?2:0;return eo(e,t,n,r,i,o,a,!0)}function no(e){return e?Kt(e)||ta(e)?s({},e):e:null}function ro(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?lo(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Qa(l),ref:t&&t.ref?n&&a?d(a)?a.concat($a(t)):[a,$a(t)]:$a(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==K?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ro(e.ssContent),ssFallback:e.ssFallback&&ro(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&hr(u,c.clone(u)),u}function io(e=` `,t=0){return X(Va,null,e,t)}function ao(e,t){let n=X(Ha,null,e);return n.staticCount=t,n}function oo(e=``,t=!1){return t?(Wa(),Xa(q,null,e)):X(q,null,e)}function Z(e){return e==null||typeof e==`boolean`?X(q):d(e)?X(K,null,e.slice()):Za(e)?so(e):X(Va,null,String(e))}function so(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ro(e)}function co(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),co(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!ta(t)?t._ctx=H:r===3&&H&&(H.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else g(t)?(t={default:t,_ctx:H},n=32):(t=String(t),r&64?(n=16,t=[io(t)]):n=8);e.children=t,e.shapeFlag|=n}function lo(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=me([t.class,r.class]));else if(e===`style`)t.style=le([t.style,r.style]);else if(a(e)){let n=t[e],i=r[e];i&&n!==i&&!(d(n)&&n.includes(i))&&(t[e]=n?[].concat(n,i):i)}else e!==``&&(t[e]=r[e])}return t}function Q(e,t,n,r=null){B(e,t,7,[n,r])}var uo=Fi(),fo=0;function po(e,n,r){let i=e.type,a=(n?n.appContext:e.appContext)||uo,o={uid:fo++,vnode:e,type:i,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Te(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(a.provides),ids:n?n.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:sa(i,a),emitsOptions:Ui(i,a),emit:null,emitted:null,propsDefaults:t,inheritAttrs:i.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,suspense:r,suspenseId:r?r.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=n?n.root:o,o.emit=Vi.bind(null,o),e.ce&&e.ce(o),o}var $=null,mo=()=>$||H,ho,go;{let e=ce(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};ho=t(`__VUE_INSTANCE_SETTERS__`,e=>$=e),go=t(`__VUE_SSR_SETTERS__`,e=>bo=e)}var _o=e=>{let t=$;return ho(e),e.scope.on(),()=>{e.scope.off(),ho(t)}},vo=()=>{$&&$.scope.off(),ho(null)};function yo(e){return e.vnode.shapeFlag&4}var bo=!1;function xo(e,t=!1,n=!1){t&&go(t);let{props:r,children:i}=e.vnode,a=yo(e);na(e,r,a,t),ha(e,i,n||t);let o=a?So(e,t):void 0;return t&&go(!1),o}function So(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,vi);let{setup:r}=n;if(r){We();let n=e.setupContext=r.length>1?Oo(e):null,i=_o(e),a=vn(r,e,0,[e.props,n]),o=b(a);if(Ge(),i(),(o||e.sp)&&!Pr(e)&&vr(e),o){if(a.then(vo,vo),t)return a.then(n=>{Co(e,n,t)}).catch(t=>{yn(t,e,0)});e.asyncDep=a}else Co(e,a,t)}else Eo(e,t)}function Co(e,t,n){g(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:y(t)&&(e.setupState=nn(t)),Eo(e,n)}var wo,To;function Eo(e,t,n){let i=e.type;if(!e.render){if(!t&&wo&&!i.render){let t=i.template||Ei(e).template;if(t){let{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:o}=i;i.render=wo(t,s(s({isCustomElement:n,delimiters:a},r),o))}}e.render=i.render||r,To&&To(e)}{let t=_o(e);We();try{Si(e)}finally{Ge(),t()}}}var Do={get(e,t){return F(e,`get`,``),e[t]}};function Oo(e){return{attrs:new Proxy(e.attrs,Do),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function ko(e){return e.exposed?e.exposeProxy||=new Proxy(nn(qt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in gi)return gi[n](e)},has(e,t){return t in e||t in gi}}):e.proxy}function Ao(e,t=!0){return g(e)?e.displayName||e.name:e.name||t&&e.__name}function jo(e){return g(e)&&`__vccOpts`in e}var Mo=(e,t)=>dn(e,t,bo);function No(e,t,n){try{qa(-1);let r=arguments.length;return r===2?y(t)&&!d(t)?Za(t)?X(e,null,[t]):X(e,t):X(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Za(n)&&(n=[n]),X(e,t,n))}finally{qa(1)}}var Po=`3.5.30`;function Fo(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?Fo(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var Io=(()=>{if(console.createTask)return console.createTask;let e={run:e=>e()};return()=>e})();function Lo(e,t,n,r){for(let i=n;i<e.length;i+=1)try{let n=r?r.run(()=>e[i](...t)):e[i](...t);if(n instanceof Promise)return n.then(()=>Lo(e,t,i+1,r))}catch(e){return Promise.reject(e)}}function Ro(e,t,n){if(e.length>0)return Lo(e,t,0,Io(n))}function zo(e,t,n){if(e.length>0){let r=Io(n);return Promise.all(e.map(e=>r.run(()=>e(...t))))}}function Bo(e,t){for(let n of[...e])n(t)}var Vo=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;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(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,`name`,{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];this._hooks[e]=void 0;for(let t of n)this.hook(e,t)}deprecateHooks(e){for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=Fo(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n)e();n.length=0}}removeHooks(e){let t=Fo(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(Ro,e,t)}callHookParallel(e,...t){return this.callHookWith(zo,e,t)}callHookWith(e,t,n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&Bo(this._before,r);let i=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return i instanceof Promise?i.finally(()=>{this._after&&r&&Bo(this._after,r)}):(this._after&&r&&Bo(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function Ho(){return new Vo}function Uo(e={}){let t,n=!1,r=e=>{if(t&&t!==e)throw Error(`Context conflict`)},i;if(e.asyncContext){let t=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;t?i=new t:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}let a=()=>{if(i){let e=i.getStore();if(e!==void 0)return e}return t};return{use:()=>{let e=a();if(e===void 0)throw Error(`Context is not available`);return e},tryUse:()=>a(),set:(e,i)=>{i||r(e),t=e,n=!0},unset:()=>{t=void 0,n=!1},call:(e,a)=>{r(e),t=e;try{return i?i.run(e,a):a()}finally{n||(t=void 0)}},async callAsync(e,r){t=e;let a=()=>{t=e},o=()=>t===e?a:void 0;Xo.add(o);try{let a=i?i.run(e,r):r();return n||(t=void 0),await a}finally{Xo.delete(o)}}}}function Wo(e={}){let t={};return{get(n,r={}){return t[n]||(t[n]=Uo({...e,...r})),t[n]}}}var Go=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof globalThis<`u`?globalThis:typeof window<`u`?window:{},Ko=`__unctx__`,qo=Go[Ko]||(Go[Ko]=Wo()),Jo=(e,t={})=>qo.get(e,t),Yo=`__unctx_async_handlers__`,Xo=Go[Yo]||(Go[Yo]=new Set);function Zo(e){let t=[];for(let e of Xo){let n=e();n&&t.push(n)}let n=()=>{for(let e of t)e()},r=e();return r&&typeof r==`object`&&`catch`in r&&(r=r.catch(e=>{throw n(),e})),[r,n]}var Qo={id:`__nuxt-loader`},$o={componentName:`NuxtLink`,prefetch:!0,prefetchOn:{visibility:!0}},es=`#__nuxt`,ts=`nuxt-app`,ns=36e5,rs=`vite:preloadError`;function is(e=`nuxt-app`){return Jo(e,{asyncContext:!1})}var as=`__nuxt_plugin`;function os(e){let t=0,n={_id:e.id||`nuxt-app`,_scope:Ee(),provide:void 0,versions:{get nuxt(){return`4.4.2`},get vue(){return n.vueApp.version}},payload:Bt({...e.ssrContext?.payload||{},data:Bt({}),state:zt({}),once:new Set,_errors:Bt({})}),static:{data:{}},runWithContext(e){return n._scope.active&&!De()?n._scope.run(()=>ds(n,e)):ds(n,e)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let e=!1;return()=>{if(!e&&(e=!0,t--,t===0))return n.isHydrating=!1,n.callHook(`app:suspense:resolve`)}},_asyncDataPromises:{},_asyncData:Bt({}),_state:Bt({}),_payloadRevivers:{},...e};{let e=window.__NUXT__;if(e)for(let t in e)switch(t){case`data`:case`state`:case`_errors`:Object.assign(n.payload[t],e[t]);break;default:n.payload[t]=e[t]}}n.hooks=Ho(),n.hook=n.hooks.hook;{let e=n.hooks.callHook;n.hooks.callHook=(t,...n)=>Promise.resolve().then(()=>e(t,...n))}n.callHook=n.hooks.callHook,n.provide=(e,t)=>{let r=`$`+e;hs(n,r,t),hs(n.vueApp.config.globalProperties,r,t)},hs(n.vueApp,`$nuxt`,n),hs(n.vueApp.config.globalProperties,`$nuxt`,n);{window.addEventListener(rs,e=>{n.callHook(`app:chunkError`,{error:e.payload}),e.payload.message.includes(`Unable to preload CSS`)&&e.preventDefault()}),window.useNuxtApp||=ps;let e=n.hook(`app:error`,(...e)=>{console.error(`[nuxt] error caught during app initialization`,...e)});n.hook(`app:mounted`,e)}let r=n.payload.config;return n.provide(`config`,r),n}function ss(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function cs(e,t){if(typeof t==`function`){let{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n==`object`)for(let t in n)e.provide(t,n[t])}}async function ls(e,t){let n=new Set,r=[],i=[],a,o=0;async function s(c){let l=c.dependsOn?.filter(e=>t.some(t=>t._name===e)&&!n.has(e))??[];if(l.length>0)r.push([new Set(l),c]);else{let t=cs(e,c).then(async()=>{c._name&&(n.add(c._name),await Promise.all(r.map(async([e,t])=>{e.has(c._name)&&(e.delete(c._name),e.size===0&&(o++,await s(t)))})))}).catch(t=>{if(!c.parallel&&!e.payload.error)throw t;a||=t});c.parallel?i.push(t):await t}}for(let n of t)ss(e,n);for(let e of t)await s(e);if(await Promise.all(i),o)for(let e=0;e<o;e++)await Promise.all(i);if(a)throw e.payload.error||a}function us(e){if(typeof e==`function`)return e;let t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[as]:!0,_name:t})}function ds(e,t,n){return is(e._id).set(e),e.vueApp.runWithContext(()=>n?t(...n):t())}function fs(e){let t;return Kn()&&(t=mo()?.appContext.app.$nuxt),t||=is(e).tryUse(),t||null}function ps(e){let t=fs(e);if(!t)throw Error(`[nuxt] instance unavailable`);return t}function ms(e){return ps().$config}function hs(e,t,n){Object.defineProperty(e,t,{get:()=>n})}export{zi as $,_r as A,a as At,Qr as B,oe as Bt,Ya as C,k as Ct,io as D,g as Dt,ao as E,d as Et,Gn as F,ae as Ft,zn as G,ri as H,bi as I,me as It,fi as J,Wn as K,lo as L,he as Lt,no as M,_ as Mt,No as N,v as Nt,X as O,o as Ot,Kn as P,be as Pt,ci as Q,Dn as R,le as Rt,oo as S,s as St,_a as T,j as Tt,Yr as U,Vr as V,Wa as W,oi as X,pi as Y,li as Z,Aa as _,cn as _t,ms as a,an as at,eo as b,O as bt,$o as c,z as ct,Zo as d,Vt as dt,Zn as et,Ho as f,Yt as ft,Rr as g,L as gt,K as h,Xt as ht,ps as i,Bn as it,mo as j,_e as jt,Fr as k,y as kt,ns as l,Oe as lt,or as m,Ht as mt,os as n,Vn as nt,ts as o,De as ot,ur as p,Bt as pt,Rn as q,us as r,Hn as rt,Qo as s,Gt as st,ls as t,Yn as tt,es as u,zt as ut,B as v,en as vt,va as w,ve as wt,Xa as x,ne as xt,Mo as y,$t as yt,Br as z,Se as zt};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};export{e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as e,C as t,W as n,Y as r}from"./3_mkTJ2v.js";import"./D5CeIdpL.js";import{d as i}from"./D9VMXJyI.js";var a=e({__name:`index`,setup(e){return i().replace(`/configs`),(e,i)=>(n(),t(`div`,null,[r(e.$slots,`default`)]))}});export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as e,s as t}from"./rX12-d6r.js";import{A as n,C as r,D as i,J as a,W as o,b as s,h as c,y as l,yt as u,zt as d}from"./3_mkTJ2v.js";import"./D5CeIdpL.js";var ee={py4:``,flex:`~ col gap-4`},te={border:`~ sky/20 rounded-xl`,"bg-sky:6":``,p4:``},ne={mt3:``,grid:`~ cols-1 gap-3 md:cols-2 xl:cols-4`},re={border:`~ base rounded-lg`,"bg-black:8":``,p3:``,"text-sm":``,"leading-7":``,"dark:bg-white:4":``},ie={class:`dev-kv`},ae={class:`dev-value`},oe={class:`dev-kv`},se={class:`dev-value`},ce={class:`dev-kv`},le={class:`dev-value`},ue={class:`dev-kv`},de={class:`dev-value`},fe={class:`dev-kv`},f={class:`dev-value`},p={border:`~ base rounded-lg`,"bg-black:8":``,p3:``,"text-sm":``,"leading-7":``,"dark:bg-white:4":``},m={class:`dev-kv`},h={class:`dev-value`},g={class:`dev-kv`},_={class:`dev-value`},v={class:`dev-kv`},y={class:`dev-value`},b={class:`dev-kv`},x={class:`dev-value`},S={class:`dev-kv`},C={class:`dev-value`},w={border:`~ base rounded-lg`,"bg-black:8":``,p3:``,"text-sm":``,"leading-7":``,"dark:bg-white:4":``},T={class:`dev-kv`},E={class:`dev-value`},D={class:`dev-kv`},O={class:`dev-value`},k={class:`dev-kv`},A={class:`dev-value`},j={class:`dev-kv`},M={class:`dev-value`},N={class:`dev-kv`},P={class:`dev-value`},F={border:`~ base rounded-lg`,"bg-black:8":``,p3:``,"text-sm":``,"leading-7":``,"dark:bg-white:4":``},I={class:`dev-kv`},L={class:`dev-value`},R={class:`dev-kv`},z={class:`dev-value`},B={class:`dev-kv`},V={class:`dev-value`},pe={class:`dev-kv`},me={class:`dev-value`},he={class:`dev-kv`},ge={class:`dev-value`},_e={border:`~ purple/20 rounded-xl`,"bg-purple:6":``,p4:``},ve={border:`~ purple/20`,mt3:``,"rounded-lg":``,"bg-black:10":``,p3:``,"text-sm":``,"leading-7":``,"font-mono":``},ye={class:`dev-kv`},be={class:`dev-value`},xe={class:`dev-kv`},Se={class:`dev-value`},Ce={class:`dev-kv`},we={class:`dev-value`},Te={class:`dev-kv`},Ee={class:`dev-value`},De={class:`dev-kv`},Oe={class:`dev-value`},ke={border:`~ amber/25 rounded-xl`,"bg-amber:6":``,p4:``},Ae={flex:`~ gap-2 items-center`,"text-amber7":``,"dark:text-amber3":``},je={"font-medium":``},Me={key:0,mt2:``},Ne={ml5:``,"list-disc":``,"text-amber7":``,op90:``,"dark:text-amber3":``},Pe={key:1,mt2:``,"text-sm":``,op70:``},Fe={border:`~ emerald/20 rounded-xl`,"bg-emerald:6":``,p4:``},Ie={border:`~ emerald/20`,mt3:``,"rounded-lg":``,"bg-black:8":``,p3:``,"text-sm":``,"leading-7":``,"font-mono":``,"dark:bg-white:4":``},Le={class:`dev-kv`},Re={class:`dev-value`},ze={class:`dev-kv`},Be={class:`dev-value`},Ve={class:`dev-kv`},He={class:`dev-value`},Ue={class:`dev-kv`},We={class:`dev-value`},Ge={class:`dev-kv`},Ke={class:`dev-value`},qe={class:`dev-kv`},Je={class:`dev-value`},Ye={class:`dev-kv`},Xe={class:`dev-value`},Ze={class:`dev-kv`},Qe={class:`dev-value`},$e={class:`dev-kv`},et={class:`dev-value`},tt={class:`dev-kv`},nt={class:`dev-value`},rt={class:`dev-kv`},it={class:`dev-value`},at={key:0,mt3:``,flex:`~ gap-2 wrap`},ot={key:1,mt3:``,"text-sm":``,op70:``},st={border:`~ violet/20 rounded-xl`,"bg-violet:6":``,p4:``},ct={border:`~ violet/20`,mt3:``,"rounded-lg":``,"bg-black:8":``,p3:``,"text-sm":``,"leading-7":``,"font-mono":``,"dark:bg-white:4":``},lt={class:`dev-kv`},ut={class:`dev-value`},dt={class:`dev-kv`},ft={class:`dev-value`},pt={class:`dev-kv`},mt={class:`dev-value`},ht={class:`dev-kv`},gt={class:`dev-value`},_t={class:`dev-kv`},vt={class:`dev-value`},yt={class:`dev-kv`},bt={class:`dev-value`},xt={mt3:``,grid:`~ cols-1 gap-3 lg:cols-2`},St={border:`~ violet/20`,"rounded-lg":``,"bg-black:8":``,p3:``,"dark:bg-white:4":``},Ct={mt2:``,flex:`~ gap-2 wrap`},wt={border:`~ violet/20`,"rounded-lg":``,"bg-black:8":``,p3:``,"dark:bg-white:4":``},Tt={key:0,mt2:``,flex:`~ gap-2 wrap`},Et={key:1,mt2:``,"text-sm":``,op60:``},H=n({__name:`dev`,setup(n){let H=/<value>|‹[^›]+›/u,U=l(()=>Object.values(t.value.rules)),W=l(()=>t.value.diagnostics??[]),G=l(()=>t.value.configs),K=l(()=>t.value.filesResolved),Dt=l(()=>t.value.extendsInfo??[]),q=l(()=>t.value.meta.stylelintIgnore),J=l(()=>{let e=G.value;return{total:e.length,general:t.value.configsGeneral.length,ignoreOnly:t.value.configsIgnoreOnly.length,overrides:e.filter(e=>e.name?.startsWith(`stylelint/override-`)).length,root:e.filter(e=>e.name===`stylelint/root`).length,withExtends:e.filter(e=>!!e.extends?.length).length,withPlugins:e.filter(e=>Object.keys(e.plugins??{}).length>0).length}}),Y=l(()=>{let e=K.value;return{matchedFiles:e?.list.length??0,groups:e?.groups.length??0,globs:e?.globToFiles.size??0,configsWithFiles:e?.configToFiles.size??0}}),X=l(()=>{let e=Dt.value;return{total:e.length,packages:e.filter(e=>e.source===`package`).length,locals:e.filter(e=>e.source===`local`).length,withRules:e.filter(e=>!!e.rules?.length).length,totalRules:e.reduce((e,t)=>e+(t.rules?.length??0),0)}}),Ot=l(()=>{let e=new Map;for(let t of G.value)for(let n of Object.keys(t.plugins??{}))e.set(n,(e.get(n)??0)+1);return Array.from(e.entries(),([e,t])=>({name:e,count:t})).toSorted((e,t)=>t.count-e.count||e.name.localeCompare(t.name))}),Z=l(()=>({theme:e.theme,fontScale:e.fontScale,dimDisabledRules:e.dimDisabledRules,configsViewType:e.viewType,rulesViewType:e.rulesViewType,viewFilesTab:e.viewFilesTab,viewFileMatchType:e.viewFileMatchType,configFilepathFilter:e.filtersConfigs.filepath,configRuleFilter:e.filtersConfigs.rule,configPluginFilters:e.filtersConfigs.plugins,rulesPluginFilters:e.filtersRules.plugins})),Q=l(()=>{let e=[];return Z.value.configFilepathFilter&&e.push(`filepath:${Z.value.configFilepathFilter}`),Z.value.configRuleFilter&&e.push(`config-rule:${Z.value.configRuleFilter}`),Z.value.configPluginFilters.forEach(t=>e.push(`config-plugin:${t}`)),Z.value.rulesPluginFilters.forEach(t=>e.push(`rules-plugin:${t}`)),e}),$=l(()=>{let e=U.value,t=e.length,n=e.filter(e=>e.docs?.descriptionSource===`generated`||e.docs?.descriptionMissing).length,r=e.filter(e=>e.docs?.descriptionSource===`message`).length,i=e.filter(e=>!e.docs?.url).length,a=e.filter(e=>e.docs?.urlSource===`inferred`).length,o=e.filter(e=>H.test(e.docs?.description??``)).length,s=e=>t?Math.round(e/t*1e3)/10:0;return{generatedDescriptions:n,generatedDescriptionsPct:s(n),messageDescriptions:r,messageDescriptionsPct:s(r),missingDocsUrls:i,missingDocsUrlsPct:s(i),inferredDocsUrls:a,placeholderDescriptions:o,placeholderDescriptionsPct:s(o)}});return(e,n)=>(o(),r(`div`,ee,[s(`section`,te,[n[40]||=s(`div`,{flex:`~ items-center gap-2 wrap`,"text-sky8":``,"dark:text-sky3":``},[s(`div`,{"i-ph-chart-bar-horizontal-duotone":``,"flex-none":``}),s(`span`,{"font-medium":``},`Inspector snapshot`)],-1),s(`div`,ne,[s(`div`,re,[s(`div`,ie,[n[0]||=s(`span`,{class:`dev-label`},`Config path:`,-1),n[1]||=i(),s(`code`,ae,d(u(t).meta.configPath||`not resolved`),1)]),s(`div`,oe,[n[2]||=s(`span`,{class:`dev-label`},`Target file:`,-1),n[3]||=i(),s(`code`,se,d(u(t).meta.targetFilePath||`default synthetic target`),1)]),s(`div`,ce,[n[4]||=s(`span`,{class:`dev-label`},`Engine:`,-1),n[5]||=i(),s(`code`,le,d(u(t).meta.engine||`unknown`),1)]),s(`div`,ue,[n[6]||=s(`span`,{class:`dev-label`},`Last update:`,-1),n[7]||=i(),s(`code`,de,d(new Date(u(t).meta.lastUpdate).toLocaleString()),1)]),s(`div`,fe,[n[8]||=s(`span`,{class:`dev-label`},`.stylelintignore:`,-1),n[9]||=i(),s(`code`,f,d(u(t).meta.stylelintIgnore?.path||`not found`),1)])]),s(`div`,p,[s(`div`,m,[n[10]||=s(`span`,{class:`dev-label`},`Total rules:`,-1),n[11]||=i(),s(`span`,h,d(U.value.length),1)]),s(`div`,g,[n[12]||=s(`span`,{class:`dev-label`},`Total config items:`,-1),n[13]||=i(),s(`span`,_,d(J.value.total),1)]),s(`div`,v,[n[14]||=s(`span`,{class:`dev-label`},`General configs:`,-1),n[15]||=i(),s(`span`,y,d(J.value.general),1)]),s(`div`,b,[n[16]||=s(`span`,{class:`dev-label`},`Ignore-only configs:`,-1),n[17]||=i(),s(`span`,x,d(J.value.ignoreOnly),1)]),s(`div`,S,[n[18]||=s(`span`,{class:`dev-label`},`Override configs:`,-1),n[19]||=i(),s(`span`,C,d(J.value.overrides),1)])]),s(`div`,w,[s(`div`,T,[n[20]||=s(`span`,{class:`dev-label`},`Matched files:`,-1),n[21]||=i(),s(`span`,E,d(Y.value.matchedFiles),1)]),s(`div`,D,[n[22]||=s(`span`,{class:`dev-label`},`File groups:`,-1),n[23]||=i(),s(`span`,O,d(Y.value.groups),1)]),s(`div`,k,[n[24]||=s(`span`,{class:`dev-label`},`Tracked globs:`,-1),n[25]||=i(),s(`span`,A,d(Y.value.globs),1)]),s(`div`,j,[n[26]||=s(`span`,{class:`dev-label`},`Configs with files:`,-1),n[27]||=i(),s(`span`,M,d(Y.value.configsWithFiles),1)]),s(`div`,N,[n[28]||=s(`span`,{class:`dev-label`},`Diagnostics:`,-1),n[29]||=i(),s(`span`,P,d(W.value.length),1)])]),s(`div`,F,[s(`div`,I,[n[30]||=s(`span`,{class:`dev-label`},`Extends entries:`,-1),n[31]||=i(),s(`span`,L,d(X.value.total),1)]),s(`div`,R,[n[32]||=s(`span`,{class:`dev-label`},`Package extends:`,-1),n[33]||=i(),s(`span`,z,d(X.value.packages),1)]),s(`div`,B,[n[34]||=s(`span`,{class:`dev-label`},`Local extends:`,-1),n[35]||=i(),s(`span`,V,d(X.value.locals),1)]),s(`div`,pe,[n[36]||=s(`span`,{class:`dev-label`},`Extends with rules:`,-1),n[37]||=i(),s(`span`,me,d(X.value.withRules),1)]),s(`div`,he,[n[38]||=s(`span`,{class:`dev-label`},`Total extends rules:`,-1),n[39]||=i(),s(`span`,ge,d(X.value.totalRules),1)])])])]),s(`section`,_e,[n[51]||=s(`div`,{flex:`~ items-center gap-2 wrap`,"text-violet8":``,"dark:text-violet3":``},[s(`div`,{"i-ph-flask-duotone":``,"flex-none":``}),s(`span`,{"font-medium":``},`Metadata health`)],-1),n[52]||=s(`div`,{mt1:``,"text-sm":``,op70:``},` (quality depends heavily on upstream Stylelint/plugin metadata) `,-1),s(`div`,ve,[s(`div`,ye,[n[41]||=s(`span`,{class:`dev-label`},`Generated descriptions:`,-1),n[42]||=i(),s(`span`,be,d($.value.generatedDescriptions)+` (`+d($.value.generatedDescriptionsPct)+`%)`,1)]),s(`div`,xe,[n[43]||=s(`span`,{class:`dev-label`},`Message-derived descriptions:`,-1),n[44]||=i(),s(`span`,Se,d($.value.messageDescriptions)+` (`+d($.value.messageDescriptionsPct)+`%)`,1)]),s(`div`,Ce,[n[45]||=s(`span`,{class:`dev-label`},`Missing docs URLs:`,-1),n[46]||=i(),s(`span`,we,d($.value.missingDocsUrls)+` (`+d($.value.missingDocsUrlsPct)+`%)`,1)]),s(`div`,Te,[n[47]||=s(`span`,{class:`dev-label`},`Inferred docs URLs:`,-1),n[48]||=i(),s(`span`,Ee,d($.value.inferredDocsUrls),1)]),s(`div`,De,[n[49]||=s(`span`,{class:`dev-label`},`Placeholder descriptions:`,-1),n[50]||=i(),s(`span`,Oe,d($.value.placeholderDescriptions)+` (`+d($.value.placeholderDescriptionsPct)+`%)`,1)])])]),s(`section`,ke,[s(`div`,Ae,[n[53]||=s(`div`,{"i-ph-warning-circle-duotone":``,"flex-none":``},null,-1),s(`span`,je,`Inspector diagnostics (`+d(W.value.length)+`)`,1)]),W.value.length?(o(),r(`div`,Me,[s(`ul`,Ne,[(o(!0),r(c,null,a(W.value,(e,t)=>(o(),r(`li`,{key:t},d(e),1))),128))])])):(o(),r(`div`,Pe,` No diagnostics emitted. `))]),s(`section`,Fe,[n[76]||=s(`div`,{flex:`~ gap-2 items-center`,"text-emerald7":``,"dark:text-emerald3":``},[s(`div`,{"i-ph-sliders-horizontal-duotone":``,"flex-none":``}),s(`span`,{"font-medium":``},`Viewer state`)],-1),s(`div`,Ie,[s(`div`,Le,[n[54]||=s(`span`,{class:`dev-label`},`Theme:`,-1),n[55]||=i(),s(`span`,Re,d(Z.value.theme),1)]),s(`div`,ze,[n[56]||=s(`span`,{class:`dev-label`},`Font scale:`,-1),n[57]||=i(),s(`span`,Be,d(Z.value.fontScale),1)]),s(`div`,Ve,[n[58]||=s(`span`,{class:`dev-label`},`Configs view:`,-1),n[59]||=i(),s(`span`,He,d(Z.value.configsViewType),1)]),s(`div`,Ue,[n[60]||=s(`span`,{class:`dev-label`},`Rules view:`,-1),n[61]||=i(),s(`span`,We,d(Z.value.rulesViewType),1)]),s(`div`,Ge,[n[62]||=s(`span`,{class:`dev-label`},`Files tab mode:`,-1),n[63]||=i(),s(`span`,Ke,d(Z.value.viewFilesTab),1)]),s(`div`,qe,[n[64]||=s(`span`,{class:`dev-label`},`File match view:`,-1),n[65]||=i(),s(`span`,Je,d(Z.value.viewFileMatchType),1)]),s(`div`,Ye,[n[66]||=s(`span`,{class:`dev-label`},`Config filepath filter:`,-1),n[67]||=i(),s(`span`,Xe,d(Z.value.configFilepathFilter||`∅`),1)]),s(`div`,Ze,[n[68]||=s(`span`,{class:`dev-label`},`Config rule filter:`,-1),n[69]||=i(),s(`span`,Qe,d(Z.value.configRuleFilter||`∅`),1)]),s(`div`,$e,[n[70]||=s(`span`,{class:`dev-label`},`Config plugin filters:`,-1),n[71]||=i(),s(`span`,et,d(Z.value.configPluginFilters.length?Z.value.configPluginFilters.join(`, `):`∅`),1)]),s(`div`,tt,[n[72]||=s(`span`,{class:`dev-label`},`Rules plugin filters:`,-1),n[73]||=i(),s(`span`,nt,d(Z.value.rulesPluginFilters.length?Z.value.rulesPluginFilters.join(`, `):`∅`),1)]),s(`div`,rt,[n[74]||=s(`span`,{class:`dev-label`},`Dim disabled rules:`,-1),n[75]||=i(),s(`span`,it,d(Z.value.dimDisabledRules?`on`:`off`),1)])]),Q.value.length?(o(),r(`div`,at,[(o(!0),r(c,null,a(Q.value,e=>(o(),r(`code`,{key:e,class:`rounded-full bg-emerald:12 px3 py0.5 text-xs text-emerald8 font-mono dark:text-emerald2`},d(e),1))),128))])):(o(),r(`div`,ot,` No active viewer filters. `))]),s(`section`,st,[n[92]||=s(`div`,{flex:`~ gap-2 items-center`,"text-violet8":``,"dark:text-violet3":``},[s(`div`,{"i-ph-stack-duotone":``,"flex-none":``}),s(`span`,{"font-medium":``},`Config composition summary`)],-1),s(`div`,ct,[s(`div`,lt,[n[77]||=s(`span`,{class:`dev-label`},`Root entries:`,-1),n[78]||=i(),s(`span`,ut,d(J.value.root),1)]),s(`div`,dt,[n[79]||=s(`span`,{class:`dev-label`},`Configs with extends:`,-1),n[80]||=i(),s(`span`,ft,d(J.value.withExtends),1)]),s(`div`,pt,[n[81]||=s(`span`,{class:`dev-label`},`Configs with plugins:`,-1),n[82]||=i(),s(`span`,mt,d(J.value.withPlugins),1)]),s(`div`,ht,[n[83]||=s(`span`,{class:`dev-label`},`Unique extends entries:`,-1),n[84]||=i(),s(`span`,gt,d(u(t).extendsInfo?.length??0),1)]),s(`div`,_t,[n[85]||=s(`span`,{class:`dev-label`},`General config items:`,-1),n[86]||=i(),s(`span`,vt,d(J.value.general),1)]),s(`div`,yt,[n[87]||=s(`span`,{class:`dev-label`},`Ignore-only config items:`,-1),n[88]||=i(),s(`span`,bt,d(J.value.ignoreOnly),1)])]),s(`div`,xt,[s(`div`,St,[n[89]||=s(`div`,{"text-sm":``,"font-medium":``},` Declared plugins `,-1),s(`div`,Ct,[(o(!0),r(c,null,a(Ot.value.slice(0,18),e=>(o(),r(`code`,{key:e.name,class:`rounded-full bg-violet:10 px2.5 py0.5 text-xs text-violet8 font-mono dark:text-violet2`},d(e.name)+` · `+d(e.count),1))),128))])]),s(`div`,wt,[n[91]||=s(`div`,{"text-sm":``,"font-medium":``},` .stylelintignore patterns `,-1),q.value?.patterns.length?(o(),r(`div`,Tt,[(o(!0),r(c,null,a(q.value.patterns,e=>(o(),r(`code`,{key:e,class:`rounded-full bg-fuchsia:10 px2.5 py0.5 text-xs text-fuchsia8 font-mono dark:text-fuchsia2`},d(e),1))),128))])):(o(),r(`div`,Et,[...n[90]||=[i(` No `,-1),s(`code`,null,`.stylelintignore`,-1),i(` file was discovered. `,-1)]]))])])])]))}});export{H as default};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
function e(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function t(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var n=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),r=String.raw;function i(e,t){if(e==null)throw Error(t??`Value expected`);return e}var a=r`\[\^?`,o=`c.? | C(?:-.?)?|${r`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${r`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${r`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${r`o\{[^\}]*\}?`}|${r`\d{1,3}`}`,s=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,c=new RegExp(r`
|
|
2
|
+
\\ (?:
|
|
3
|
+
${o}
|
|
4
|
+
| [gk]<[^>]*>?
|
|
5
|
+
| [gk]'[^']*'?
|
|
6
|
+
| .
|
|
7
|
+
)
|
|
8
|
+
| \( (?:
|
|
9
|
+
\? (?:
|
|
10
|
+
[:=!>({]
|
|
11
|
+
| <[=!]
|
|
12
|
+
| <[^>]*>
|
|
13
|
+
| '[^']*'
|
|
14
|
+
| ~\|?
|
|
15
|
+
| #(?:[^)\\]|\\.?)*
|
|
16
|
+
| [^:)]*[:)]
|
|
17
|
+
)?
|
|
18
|
+
| \*[^\)]*\)?
|
|
19
|
+
)?
|
|
20
|
+
| (?:${s.source})+
|
|
21
|
+
| ${a}
|
|
22
|
+
| .
|
|
23
|
+
`.replace(/\s+/g,``),`gsu`),l=new RegExp(r`
|
|
24
|
+
\\ (?:
|
|
25
|
+
${o}
|
|
26
|
+
| .
|
|
27
|
+
)
|
|
28
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
29
|
+
| ${a}
|
|
30
|
+
| &&
|
|
31
|
+
| .
|
|
32
|
+
`.replace(/\s+/g,``),`gsu`);function u(e,t={}){let n={flags:``,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!=`string`)throw Error(`String expected as pattern`);let r=ve(n.flags),i=[r.extended],a={captureGroup:n.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(e){i.push(e)},replaceCurrentModX(e){i[i.length-1]=e},singleline:n.rules.singleline},o=[],s;for(c.lastIndex=0;s=c.exec(e);){let t=d(a,e,s[0],c.lastIndex);t.tokens?o.push(...t.tokens):t.token&&o.push(t.token),t.lastIndex!==void 0&&(c.lastIndex=t.lastIndex)}let l=[],u=0;o.filter(e=>e.type===`GroupOpen`).forEach(e=>{e.kind===`capturing`?e.number=++u:e.raw===`(`&&l.push(e)}),u||l.forEach((e,t)=>{e.kind=`capturing`,e.number=t+1});let f=u||l.length;return{tokens:o.map(e=>e.type===`EscapedNumber`?be(e,f):e).flat(),flags:r}}function d(t,n,i,a){let[o,c]=i;if(i===`[`||i===`[^`){let e=f(n,i,a);return{tokens:e.tokens,lastIndex:e.lastIndex}}if(o===`\\`){if(`AbBGyYzZ`.includes(c))return{token:g(i,i)};if(/^\\g[<']/.test(i)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(i))throw Error(`Invalid group name "${i}"`);return{token:ce(i)}}if(/^\\k[<']/.test(i)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(i))throw Error(`Invalid group name "${i}"`);return{token:_(i)}}if(c===`K`)return{token:re(`keep`,i)};if(c===`N`||c===`R`)return{token:b(`newline`,i,{negate:c===`N`})};if(c===`O`)return{token:b(`any`,i)};if(c===`X`)return{token:b(`text_segment`,i)};let e=m(i,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if(o===`(`){if(c===`*`)return{token:pe(i)};if(i===`(?{`)throw Error(`Unsupported callout "${i}"`);if(i.startsWith(`(?#`)){if(n[a]!==`)`)throw Error(`Unclosed comment group "(?#"`);return{lastIndex:a+1}}if(/^\(\?[-imx]+[:)]$/.test(i))return{token:fe(i,t)};if(t.pushModX(t.getCurrentModX()),t.numOpenGroups++,i===`(`&&!t.captureGroup||i===`(?:`)return{token:x(`group`,i)};if(i===`(?>`)return{token:x(`atomic`,i)};if(i===`(?=`||i===`(?!`||i===`(?<=`||i===`(?<!`)return{token:x(i[2]===`<`?`lookbehind`:`lookahead`,i,{negate:i.endsWith(`!`)})};if(i===`(`&&t.captureGroup||i.startsWith(`(?<`)&&i.endsWith(`>`)||i.startsWith(`(?'`)&&i.endsWith(`'`))return{token:x(`capturing`,i,{...i!==`(`&&{name:i.slice(3,-1)}})};if(i.startsWith(`(?~`)){if(i===`(?~|`)throw Error(`Unsupported absence function kind "${i}"`);return{token:x(`absence_repeater`,i)}}throw i===`(?(`?Error(`Unsupported conditional "${i}"`):Error(`Invalid or unsupported group option "${i}"`)}if(i===`)`){if(t.popModX(),t.numOpenGroups--,t.numOpenGroups<0)throw Error(`Unmatched ")"`);return{token:ae(i)}}if(t.getCurrentModX()){if(i===`#`){let e=n.indexOf(`
|
|
33
|
+
`,a);return{lastIndex:e===-1?n.length:e}}if(/^\s$/.test(i)){let e=/\s+/y;return e.lastIndex=a,{lastIndex:e.exec(n)?e.lastIndex:a}}}return i===`.`?{token:b(`dot`,i)}:i===`^`||i===`$`?{token:g(t.singleline?{"^":r`\A`,$:r`\Z`}[i]:i,i)}:i===`|`?{token:h(i)}:s.test(i)?{tokens:xe(i)}:{token:v(e(i),i)}}function f(e,t,n){let r=[ne(t[1]===`^`,t)],i=1,a;for(l.lastIndex=n;a=l.exec(e);){let e=a[0];if(e[0]===`[`&&e[1]!==`:`)i++,r.push(ne(e[1]===`^`,e));else if(e===`]`){if(r.at(-1).type===`CharacterClassOpen`)r.push(v(93,e));else if(i--,r.push(ee(e)),!i)break}else{let t=p(e);Array.isArray(t)?r.push(...t):r.push(t)}}return{tokens:r,lastIndex:l.lastIndex||e.length}}function p(t){if(t[0]===`\\`)return m(t,{inCharClass:!0});if(t[0]===`[`){let e=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(t);if(!e||!n.has(e.groups.name))throw Error(`Invalid POSIX class "${t}"`);return b(`posix`,t,{value:e.groups.name,negate:!!e.groups.negate})}return t===`-`?te(t):t===`&&`?y(t):v(e(t),t)}function m(t,{inCharClass:n}){let i=t[1];if(i===`c`||i===`C`)return de(t);if(`dDhHsSwW`.includes(i))return he(t);if(t.startsWith(r`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${t}"`);if(/^\\[pP]\{/.test(t)){if(t.length===3)throw Error(`Incomplete or invalid Unicode property "${t}"`);return ge(t)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(t))try{let n=t.split(/\\x/).slice(1).map(e=>parseInt(e,16)),r=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(n)),i=new TextEncoder;return[...r].map(t=>{let n=[...i.encode(t)].map(e=>`\\x${e.toString(16)}`).join(``);return v(e(t),n)})}catch{throw Error(`Multibyte code "${t}" incomplete or invalid in Oniguruma`)}if(i===`u`||i===`x`)return v(ye(t),t);if(ue.has(i))return v(ue.get(i),t);if(/\d/.test(i))return ie(n,t);if(t===`\\`)throw Error(r`Incomplete escape "\"`);if(i===`M`)throw Error(`Unsupported meta "${t}"`);if([...t].length===2)return v(t.codePointAt(1),t);throw Error(`Unexpected escape "${t}"`)}function h(e){return{type:`Alternator`,raw:e}}function g(e,t){return{type:`Assertion`,kind:e,raw:t}}function _(e){return{type:`Backreference`,raw:e}}function v(e,t){return{type:`Character`,value:e,raw:t}}function ee(e){return{type:`CharacterClassClose`,raw:e}}function te(e){return{type:`CharacterClassHyphen`,raw:e}}function y(e){return{type:`CharacterClassIntersector`,raw:e}}function ne(e,t){return{type:`CharacterClassOpen`,negate:e,raw:t}}function b(e,t,n={}){return{type:`CharacterSet`,kind:e,...n,raw:t}}function re(e,t,n={}){return e===`keep`?{type:`Directive`,kind:e,raw:t}:{type:`Directive`,kind:e,flags:i(n.flags),raw:t}}function ie(e,t){return{type:`EscapedNumber`,inCharClass:e,raw:t}}function ae(e){return{type:`GroupClose`,raw:e}}function x(e,t,n={}){return{type:`GroupOpen`,kind:e,...n,raw:t}}function oe(e,t,n,r){return{type:`NamedCallout`,kind:e,tag:t,arguments:n,raw:r}}function se(e,t,n,r){return{type:`Quantifier`,kind:e,min:t,max:n,raw:r}}function ce(e){return{type:`Subroutine`,raw:e}}var le=new Set([`COUNT`,`CMP`,`ERROR`,`FAIL`,`MAX`,`MISMATCH`,`SKIP`,`TOTAL_COUNT`]),ue=new Map([[`a`,7],[`b`,8],[`e`,27],[`f`,12],[`n`,10],[`r`,13],[`t`,9],[`v`,11]]);function de(t){let n=t[1]===`c`?t[2]:t[3];if(!n||!/[A-Za-z]/.test(n))throw Error(`Unsupported control character "${t}"`);return v(e(n.toUpperCase())-64,t)}function fe(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??=``;let i=(t.getCurrentModX()||n.includes(`x`))&&!r.includes(`x`),a=_e(n),o=_e(r),s={};if(a&&(s.enable=a),o&&(s.disable=o),e.endsWith(`)`))return t.replaceCurrentModX(i),re(`flags`,e,{flags:s});if(e.endsWith(`:`))return t.pushModX(i),t.numOpenGroups++,x(`group`,e,{...(a||o)&&{flags:s}});throw Error(`Unexpected flag modifier "${e}"`)}function pe(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:n,tag:r,args:i}=t.groups;if(!n)throw Error(`Invalid named callout "${e}"`);if(r===``)throw Error(`Named callout tag with empty value not allowed "${e}"`);let a=i?i.split(`,`).filter(e=>e!==``).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[o,s,c]=a,l=le.has(n)?n.toLowerCase():`custom`;switch(l){case`fail`:case`mismatch`:case`skip`:if(a.length>0)throw Error(`Named callout arguments not allowed "${a}"`);break;case`error`:if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(typeof o==`string`)throw Error(`Named callout argument must be a number "${o}"`);break;case`max`:if(!a.length||a.length>2)throw Error(`Named callout must have one or two arguments "${a}"`);if(typeof o==`string`&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(a.length===2&&(typeof s==`number`||!/^[<>X]$/.test(s)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case`count`:case`total_count`:if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(a.length===1&&(typeof o==`number`||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${o}"`);break;case`cmp`:if(a.length!==3)throw Error(`Named callout must have three arguments "${a}"`);if(typeof o==`string`&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(typeof s==`number`||!/^(?:[<>!=]=|[<>])$/.test(s))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof c==`string`&&!/^[A-Za-z_]\w*$/.test(c))throw Error(`Named callout argument three must be a tag or number "${c}"`);break;case`custom`:throw Error(`Undefined callout name "${n}"`);default:throw Error(`Unexpected named callout kind "${l}"`)}return oe(l,r??null,i?.split(`,`)??null,e)}function me(e){let t=null,n,r;if(e[0]===`{`){let{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,o=1e5;if(+i>o||a&&+a>o)throw Error(`Quantifier value unsupported in Oniguruma`);if(n=+i,r=a===void 0?+i:a===``?1/0:+a,n>r&&(t=`possessive`,[n,r]=[r,n]),e.endsWith(`?`)){if(t===`possessive`)throw Error(`Unsupported possessive interval quantifier chain with "?"`);t=`lazy`}else t||=`greedy`}else n=e[0]===`+`?1:0,r=e[0]===`?`?1:1/0,t=e[1]===`+`?`possessive`:e[1]===`?`?`lazy`:`greedy`;return se(t,n,r,e)}function he(e){let t=e[1].toLowerCase();return b({d:`digit`,h:`hex`,s:`space`,w:`word`}[t],e,{negate:e[1]!==t})}function ge(e){let{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return b(`property`,e,{value:r,negate:t===`P`&&!n||t===`p`&&!!n})}function _e(e){let 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 ve(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){let r=e[n];if(!`imxDPSWy`.includes(r))throw Error(`Invalid flag "${r}"`);if(r===`y`){if(!/^y{[gw]}/.test(e.slice(n)))throw Error(`Invalid or unspecified flag "y" mode`);t.textSegmentMode=e[n+2]===`g`?`grapheme`:`word`,n+=3;continue}t[{i:`ignoreCase`,m:`dotAll`,x:`extended`,D:`digitIsAscii`,P:`posixIsAscii`,S:`spaceIsAscii`,W:`wordIsAscii`}[r]]=!0}return t}function ye(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw Error(`Incomplete or invalid escape "${e}"`);let t=e[2]===`{`?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function be(t,n){let{raw:i,inCharClass:a}=t,o=i.slice(1);if(!a&&(o!==`0`&&o.length===1||o[0]!==`0`&&+o<=n))return[_(i)];let s=[],c=o.match(/^[0-7]+|\d/g);for(let t=0;t<c.length;t++){let n=c[t],a;if(t===0&&n!==`8`&&n!==`9`){if(a=parseInt(n,8),a>127)throw Error(r`Octal encoded byte above 177 unsupported "${i}"`)}else a=e(n);s.push(v(a,(t===0?`\\`:``)+n))}return s}function xe(e){let t=[],n=new RegExp(s,`gy`),r;for(;r=n.exec(e);){let e=r[0];if(e[0]===`{`){let r=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(r){let{min:i,max:a}=r.groups;if(+i>+a&&e.endsWith(`?`)){n.lastIndex--,t.push(me(e.slice(0,-1)));continue}}}t.push(me(e))}return t}function Se(e,t){if(!Array.isArray(e.body))throw Error(`Expected node with body array`);if(e.body.length!==1)return!1;let n=e.body[0];return!t||Object.keys(t).every(e=>t[e]===n[e])}function Ce(e){return we.has(e.type)}var we=new Set([`AbsenceFunction`,`Backreference`,`CapturingGroup`,`Character`,`CharacterClass`,`CharacterSet`,`Group`,`Quantifier`,`Subroutine`]);function Te(e,t={}){let n={flags:``,normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},i=u(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),a=(e,t)=>{let n=i.tokens[o.nextIndex];switch(o.parent=e,o.nextIndex++,n.type){case`Alternator`:return S();case`Assertion`:return Ee(n);case`Backreference`:return De(n,o);case`Character`:return T(n.value,{useLastValid:!!t.isCheckingRangeEnd});case`CharacterClassHyphen`:return Oe(n,o,t);case`CharacterClassOpen`:return ke(n,o,t);case`CharacterSet`:return Ae(n,o);case`Directive`:return Re(n.kind,{flags:n.flags});case`GroupOpen`:return je(n,o,t);case`NamedCallout`:return Be(n.kind,n.tag,n.arguments);case`Quantifier`:return Me(n,o);case`Subroutine`:return Ne(n,o);default:throw Error(`Unexpected token type "${n.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:i.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:a},s=Ue(ze(i.flags)),c=s.body[0];for(;o.nextIndex<i.tokens.length;){let e=a(c,{});e.type===`Alternative`?(s.body.push(e),c=e):c.body.push(e)}let{capturingGroups:l,hasNumberedRef:d,namedGroupsByName:f,subroutines:p}=o;if(d&&f.size&&!n.rules.captureGroup)throw Error(`Numbered backref/subroutine not allowed when using named capture`);for(let{ref:e}of p)if(typeof e==`number`){if(e>l.length)throw Error(`Subroutine uses a group number that's not defined`);e&&(l[e-1].isSubroutined=!0)}else if(f.has(e)){if(f.get(e).length>1)throw Error(r`Subroutine uses a duplicate group name "\g<${e}>"`);f.get(e)[0].isSubroutined=!0}else throw Error(r`Subroutine uses a group name that's not defined "\g<${e}>"`);return s}function Ee({kind:e}){return C(i({"^":`line_start`,$:`line_end`,"\\A":`string_start`,"\\b":`word_boundary`,"\\B":`word_boundary`,"\\G":`search_start`,"\\y":`text_segment_boundary`,"\\Y":`text_segment_boundary`,"\\z":`string_end`,"\\Z":`string_end_newline`}[e],`Unexpected assertion kind "${e}"`),{negate:e===r`\B`||e===r`\Y`})}function De({raw:e},t){let n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),i=(n,r=!1)=>{let i=t.capturingGroups.length,a=!1;if(n>i)if(t.skipBackrefValidation)a=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,w(r?i+1-n:n,{orphan:a})};if(n){let n=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(n)return i(+n.groups.num,!!n.groups.sign);if(/[-+]/.test(r))throw Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw Error(`Group name not defined to the left "${e}"`);return w(r)}return i(+r)}function Oe(t,n,r){let{tokens:i,walk:a}=n,o=n.parent,s=o.body.at(-1),c=i[n.nextIndex];if(!r.isCheckingRangeEnd&&s&&s.type!==`CharacterClass`&&s.type!==`CharacterClassRange`&&c&&c.type!==`CharacterClassOpen`&&c.type!==`CharacterClassClose`&&c.type!==`CharacterClassIntersector`){let e=a(o,{...r,isCheckingRangeEnd:!0});if(s.type===`Character`&&e.type===`Character`)return o.body.pop(),Ie(s,e);throw Error(`Invalid character class range`)}return T(e(`-`))}function ke({negate:e},t,n){let{tokens:r,walk:i}=t,a=r[t.nextIndex],o=[E()],s=Ze(a);for(;s.type!==`CharacterClassClose`;){if(s.type===`CharacterClassIntersector`)o.push(E()),t.nextIndex++;else{let e=o.at(-1);e.body.push(i(e,n))}s=Ze(r[t.nextIndex],a)}let c=E({negate:e});return o.length===1?c.body=o[0].body:(c.kind=`intersection`,c.body=o.map(e=>e.body.length===1?e.body[0]:e)),t.nextIndex++,c}function Ae({kind:e,negate:t,value:r},i){let{normalizeUnknownPropertyNames:a,skipPropertyNameValidation:o,unicodePropertyMap:s}=i;if(e===`property`){let i=j(r);if(n.has(i)&&!s?.has(i))e=`posix`,r=i;else return k(r,{negate:t,normalizeUnknownPropertyNames:a,skipPropertyNameValidation:o,unicodePropertyMap:s})}return e===`posix`?Ve(r,{negate:t}):Le(e,{negate:t})}function je(e,n,r){let{tokens:i,capturingGroups:a,namedGroupsByName:o,skipLookbehindValidation:s,walk:c}=n,l=Ge(e),u=l.type===`AbsenceFunction`,d=Je(l),f=d&&l.negate;if(l.type===`CapturingGroup`&&(a.push(l),l.name&&t(o,l.name,[]).push(l)),u&&r.isInAbsenceFunction)throw Error(`Nested absence function not supported by Oniguruma`);let p=Qe(i[n.nextIndex]);for(;p.type!==`GroupClose`;){if(p.type===`Alternator`)l.body.push(S()),n.nextIndex++;else{let e=l.body.at(-1),t=c(e,{...r,isInAbsenceFunction:r.isInAbsenceFunction||u,isInLookbehind:r.isInLookbehind||d,isInNegLookbehind:r.isInNegLookbehind||f});if(e.body.push(t),(d||r.isInLookbehind)&&!s){let e=`Lookbehind includes a pattern not allowed by Oniguruma`;if(f||r.isInNegLookbehind){if(qe(t)||t.type===`CapturingGroup`)throw Error(e)}else if(qe(t)||Je(t)&&t.negate)throw Error(e)}}p=Qe(i[n.nextIndex])}return n.nextIndex++,l}function Me({kind:e,min:t,max:n},r){let i=r.parent,a=i.body.at(-1);if(!a||!Ce(a))throw Error(`Quantifier requires a repeatable token`);let o=He(e,t,n,a);return i.body.pop(),o}function Ne({raw:e},t){let{capturingGroups:n,subroutines:r}=t,i=e.slice(3,-1),a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){let e=+a.groups.num,r=n.length;if(t.hasNumberedRef=!0,i={"":e,"+":r+e,"-":r+1-e}[a.groups.sign],i<1)throw Error(`Invalid subroutine number`)}else i===`0`&&(i=0);let o=We(i);return r.push(o),o}function Pe(e,t){if(e!==`repeater`)throw Error(`Unexpected absence function kind "${e}"`);return{type:`AbsenceFunction`,kind:e,body:A(t?.body)}}function S(e){return{type:`Alternative`,body:Ke(e?.body)}}function C(e,t){let n={type:`Assertion`,kind:e};return(e===`word_boundary`||e===`text_segment_boundary`)&&(n.negate=!!t?.negate),n}function w(e,t){let n=!!t?.orphan;return{type:`Backreference`,ref:e,...n&&{orphan:n}}}function Fe(e,t){let n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!Ye(n.name))throw Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:`CapturingGroup`,number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:A(t?.body)}}function T(e,t){let n={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?Error(`Invalid code point out of range "\\x{${t}}"`):Error(`Invalid code point out of range in JS "\\x{${t}}"`)}return{type:`Character`,value:e}}function E(e){let t={kind:`union`,negate:!1,...e};return{type:`CharacterClass`,kind:t.kind,negate:t.negate,body:Ke(e?.body)}}function Ie(e,t){if(t.value<e.value)throw Error(`Character class range out of order`);return{type:`CharacterClassRange`,min:e,max:t}}function Le(e,t){let n=!!t?.negate,r={type:`CharacterSet`,kind:e};return(e===`digit`||e===`hex`||e===`newline`||e===`space`||e===`word`)&&(r.negate=n),(e===`text_segment`||e===`newline`&&!n)&&(r.variableLength=!0),r}function Re(e,t={}){if(e===`keep`)return{type:`Directive`,kind:e};if(e===`flags`)return{type:`Directive`,kind:e,flags:i(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}function ze(e){return{type:`Flags`,...e}}function D(e){let t=e?.atomic,n=e?.flags;if(t&&n)throw Error(`Atomic group cannot have flags`);return{type:`Group`,...t&&{atomic:t},...n&&{flags:n},body:A(e?.body)}}function O(e){let t={behind:!1,negate:!1,...e};return{type:`LookaroundAssertion`,kind:t.behind?`lookbehind`:`lookahead`,negate:t.negate,body:A(e?.body)}}function Be(e,t,n){return{type:`NamedCallout`,kind:e,tag:t,arguments:n}}function Ve(e,t){let r=!!t?.negate;if(!n.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:`CharacterSet`,kind:`posix`,value:e,negate:r}}function He(e,t,n,r){if(t>n)throw Error(`Invalid reversed quantifier range`);return{type:`Quantifier`,kind:e,min:t,max:n,body:r}}function Ue(e,t){return{type:`Regex`,body:A(t?.body),flags:e}}function We(e){return{type:`Subroutine`,ref:e}}function k(e,t){let n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},i=n.unicodePropertyMap?.get(j(e));if(!i){if(n.normalizeUnknownPropertyNames)i=Xe(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw Error(r`Invalid Unicode property "\p{${e}}"`)}return{type:`CharacterSet`,kind:`property`,value:i??e,negate:n.negate}}function Ge({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case`absence_repeater`:return Pe(`repeater`);case`atomic`:return D({atomic:!0});case`capturing`:return Fe(i,{name:n});case`group`:return D({flags:e});case`lookahead`:case`lookbehind`:return O({behind:t===`lookbehind`,negate:r});default:throw Error(`Unexpected group kind "${t}"`)}}function A(e){if(e===void 0)e=[S()];else if(!Array.isArray(e)||!e.length||!e.every(e=>e.type===`Alternative`))throw Error(`Invalid body; expected array of one or more Alternative nodes`);return e}function Ke(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error(`Invalid body; expected array of nodes`);return e}function qe(e){return e.type===`LookaroundAssertion`&&e.kind===`lookahead`}function Je(e){return e.type===`LookaroundAssertion`&&e.kind===`lookbehind`}function Ye(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function Xe(e){return e.trim().replace(/[- _]+/g,`_`).replace(/[A-Z][a-z]+(?=[A-Z])/g,`$&_`).replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function j(e){return e.replace(/[- _]+/g,``).toLowerCase()}function Ze(e,t){return i(e,`${t?.type===`Character`&&t.value===93?`Empty`:`Unclosed`} character class`)}function Qe(e){return i(e,`Unclosed group`)}function M(e,t,n=null){function r(e,t){for(let n=0;n<e.length;n++){let r=a(e[n],t,n,e);n=Math.max(-1,n+r)}}function a(o,s=null,c=null,l=null){let u=0,d=!1,f={node:o,parent:s,key:c,container:l,root:e,remove(){N(l).splice(Math.max(0,P(c)+u),1),u--,d=!0},removeAllNextSiblings(){return N(l).splice(P(c)+1)},removeAllPrevSiblings(){let e=P(c)+u;return u-=e,N(l).splice(0,Math.max(0,e))},replaceWith(e,t={}){let n=!!t.traverse;l?l[Math.max(0,P(c)+u)]=e:i(s,`Can't replace root node`)[c]=e,n&&a(e,s,c,l),d=!0},replaceWithMultiple(e,t={}){let n=!!t.traverse;if(N(l).splice(Math.max(0,P(c)+u),1,...e),u+=e.length-1,n){let t=0;for(let n=0;n<e.length;n++)t+=a(e[n],s,P(c)+n+t,l)}d=!0},skip(){d=!0}},{type:p}=o,m=t[`*`],h=t[p],g=typeof m==`function`?m:m?.enter,_=typeof h==`function`?h:h?.enter;if(g?.(f,n),_?.(f,n),!d)switch(p){case`AbsenceFunction`:case`CapturingGroup`:case`Group`:r(o.body,o);break;case`Alternative`:case`CharacterClass`:r(o.body,o);break;case`Assertion`:case`Backreference`:case`Character`:case`CharacterSet`:case`Directive`:case`Flags`:case`NamedCallout`:case`Subroutine`:break;case`CharacterClassRange`:a(o.min,o,`min`),a(o.max,o,`max`);break;case`LookaroundAssertion`:r(o.body,o);break;case`Quantifier`:a(o.body,o,`body`);break;case`Regex`:r(o.body,o),a(o.flags,o,`flags`);break;default:throw Error(`Unexpected node type "${p}"`)}return h?.exit?.(f,n),m?.exit?.(f,n),u}return a(e),e}function N(e){if(!Array.isArray(e))throw Error(`Container expected`);return e}function P(e){if(typeof e!=`number`)throw Error(`Numeric key expected`);return e}var $e=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function et(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function tt(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}var F=Object.freeze({DEFAULT:`DEFAULT`,CHAR_CLASS:`CHAR_CLASS`});function nt(e,t,n,r){let i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,`gsu`),a=[!1],o=0,s=``;for(let t of e.matchAll(i)){let{0:e,groups:{$skip:i}}=t;if(!i&&(!r||r===F.DEFAULT==!o)){n instanceof Function?s+=n(t,{context:o?F.CHAR_CLASS:F.DEFAULT,negated:a[a.length-1]}):s+=n;continue}e[0]===`[`?(o++,a.push(e[1]===`^`)):e===`]`&&o&&(o--,a.pop()),s+=e}return s}function rt(e,t,n,r){nt(e,t,n,r)}function it(e,t,n=0,r){if(!new RegExp(t,`su`).test(e))return null;let i=RegExp(`${t}|(?<$skip>\\\\?.)`,`gsu`);i.lastIndex=n;let a=0,o;for(;o=i.exec(e);){let{0:e,groups:{$skip:t}}=o;if(!t&&(!r||r===F.DEFAULT==!a))return o;e===`[`?a++:e===`]`&&a&&a--,i.lastIndex==o.index&&i.lastIndex++}return null}function I(e,t,n){return!!it(e,t,0,n)}function at(e,t){let n=/\\?./gsu;n.lastIndex=t;let r=e.length,i=0,a=1,o;for(;o=n.exec(e);){let[e]=o;if(e===`[`)i++;else if(i)e===`]`&&i--;else if(e===`(`)a++;else if(e===`)`&&(a--,!a)){r=o.index;break}}return e.slice(t,r)}var ot=new RegExp(String.raw`(?<noncapturingStart>${$e})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,`gsu`);function st(e,t){let n=t?.hiddenCaptures??[],r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};let i=[0],a=[],o=0,s=0,c=NaN,l;do{l=!1;let t=0,u=0,d=!1,f;for(ot.lastIndex=Number.isNaN(c)?0:c+7;f=ot.exec(e);){let{0:p,index:m,groups:{capturingStart:h,noncapturingStart:g}}=f;if(p===`[`)t++;else if(t)p===`]`&&t--;else if(p===`(?>`&&!d)c=m,d=!0;else if(d&&g)u++;else if(h)d?u++:(o++,i.push(o+s));else if(p===`)`&&d){if(!u){s++;let t=o+s;if(e=`${e.slice(0,c)}(?:(?=(${e.slice(c+3,m)}))<$$${t}>)${e.slice(m+1)}`,l=!0,a.push(t),et(n,t),r.size){let e=new Map;r.forEach((n,r)=>{e.set(r>=t?r+1:r,n.map(e=>e>=t?e+1:e))}),r=e}break}u--}}}while(l);return n.push(...a),e=nt(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:n}})=>{if(t){let n=+t;if(n>i.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${i[n]}`}return`\\${n}`},F.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}var ct=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,L=new RegExp(String.raw`
|
|
34
|
+
\\(?: \d+
|
|
35
|
+
| c[A-Za-z]
|
|
36
|
+
| [gk]<[^>]+>
|
|
37
|
+
| [pPu]\{[^\}]+\}
|
|
38
|
+
| u[A-Fa-f\d]{4}
|
|
39
|
+
| x[A-Fa-f\d]{2}
|
|
40
|
+
)
|
|
41
|
+
| \((?: \? (?: [:=!>]
|
|
42
|
+
| <(?:[=!]|[^>]+>)
|
|
43
|
+
| [A-Za-z\-]+:
|
|
44
|
+
| \(DEFINE\)
|
|
45
|
+
))?
|
|
46
|
+
| (?<qBase>${ct})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
47
|
+
| \\?.
|
|
48
|
+
`.replace(/\s+/g,``),`gsu`);function lt(e){if(!RegExp(`${ct}\\+`).test(e))return{pattern:e};let t=[],n=null,r=null,i=``,a=0,o;for(L.lastIndex=0;o=L.exec(e);){let{0:s,index:c,groups:{qBase:l,qMod:u,invalidQ:d}}=o;if(s===`[`)a||(r=c),a++;else if(s===`]`)a?a--:r=null;else if(!a)if(u===`+`&&i&&!i.startsWith(`(`)){if(d)throw Error(`Invalid quantifier "${s}"`);let t=-1;if(/^\{\d+\}$/.test(l))e=tt(e,c+l.length,u,``);else{if(i===`)`||i===`]`){let t=i===`)`?n:r;if(t===null)throw Error(`Invalid unmatched "${i}"`);e=`${e.slice(0,t)}(?>${e.slice(t,c)}${l})${e.slice(c+s.length)}`}else e=`${e.slice(0,c-i.length)}(?>${i}${l})${e.slice(c+s.length)}`;t+=4}L.lastIndex+=t}else s[0]===`(`?t.push(c):s===`)`&&(n=t.length?t.pop():null);i=s}return{pattern:e}}var R=String.raw,ut=R`\(\?R=(?<rDepth>[^\)]+)\)|${R`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`}`,z=R`\(\?<(?![=!])(?<captureName>[^>]+)>`,dt=R`${z}|(?<unnamed>\()(?!\?)`,B=new RegExp(R`${z}|${ut}|\(\?|\\?.`,`gsu`),ft=`Cannot use multiple overlapping recursions`;function pt(e,t){let{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:`plugin`,...t},i=t?.captureTransfers??new Map;if(!new RegExp(ut,`su`).test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:n};if(r===`plugin`&&I(e,R`\(\?\(DEFINE\)`,F.DEFAULT))throw Error(`DEFINE groups cannot be used with recursion`);let a=[],o=I(e,R`\\[1-9]`,F.DEFAULT),s=new Map,c=[],l=!1,u=0,d=0,f;for(B.lastIndex=0;f=B.exec(e);){let{0:t,groups:{captureName:p,rDepth:m,gRNameOrNum:h,gRDepth:g}}=f;if(t===`[`)u++;else if(u)t===`]`&&u--;else if(m){if(mt(m),l)throw Error(ft);if(o)throw Error(`${r===`external`?`Backrefs`:`Numbered backrefs`} cannot be used with global recursion`);let t=e.slice(0,f.index),s=e.slice(B.lastIndex);if(I(s,ut,F.DEFAULT))throw Error(ft);let c=m-1;e=ht(t,s,c,!1,n,a,d),i=vt(i,t,c,a.length,0,d);break}else if(h){mt(g);let u=!1;for(let e of c)if(e.name===h||e.num===+h){if(u=!0,e.hasRecursedWithin)throw Error(ft);break}if(!u)throw Error(R`Recursive \g cannot be used outside the referenced group "${r===`external`?h:R`\g<${h}&R=${g}>`}"`);let p=s.get(h),m=at(e,p);if(o&&I(m,R`${z}|\((?!\?)`,F.DEFAULT))throw Error(`${r===`external`?`Backrefs`:`Numbered backrefs`} cannot be used with recursion of capturing groups`);let _=e.slice(p,f.index),v=m.slice(_.length+t.length),ee=a.length,te=g-1,y=ht(_,v,te,!0,n,a,d);i=vt(i,_,te,a.length-ee,ee,d),e=`${e.slice(0,p)}${y}${e.slice(p+m.length)}`,B.lastIndex+=y.length-t.length-_.length-v.length,c.forEach(e=>e.hasRecursedWithin=!0),l=!0}else if(p)d++,s.set(String(d),B.lastIndex),s.set(p,B.lastIndex),c.push({num:d,name:p});else if(t[0]===`(`){let e=t===`(`;e&&(d++,s.set(String(d),B.lastIndex)),c.push(e?{num:d}:{})}else t===`)`&&c.pop()}return n.push(...a),{pattern:e,captureTransfers:i,hiddenCaptures:n}}function mt(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e)||(e=+e,e<2||e>100))throw Error(t)}function ht(e,t,n,r,i,a,o){let s=new Set;r&&rt(e+t,z,({groups:{captureName:e}})=>{s.add(e)},F.DEFAULT);let c=[n,r?s:null,i,a,o];return`${e}${gt(`(?:${e}`,`forward`,...c)}(?:)${gt(`${t})`,`backward`,...c)}${t}`}function gt(e,t,n,r,i,a,o){let s=e=>t===`forward`?e+2:n-e+2-1,c=``;for(let t=0;t<n;t++){let n=s(t);c+=nt(e,R`${dt}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:s,backref:c}})=>{if(c&&r&&!r.has(c))return e;let l=`_$${n}`;if(s||t){let n=o+a.length+1;return a.push(n),_t(i,n),s?e:`(?<${t}${l}>`}return R`\k<${c}${l}>`},F.DEFAULT)}return c}function _t(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function vt(e,t,n,r,i,a){if(e.size&&r){let o=0;rt(t,dt,()=>o++,F.DEFAULT);let s=a-o+i,c=new Map;return e.forEach((e,t)=>{let i=(r-o*n)/n,a=o*n,l=t>s+o?t+r:t,u=[];for(let t of e)if(t<=s)u.push(t);else if(t>s+o+i)u.push(t+r);else if(t<=s+o)for(let e=0;e<=n;e++)u.push(t+o*e);else for(let e=0;e<=n;e++)u.push(t+a+i*e);c.set(l,u)}),c}return e}var V=String.fromCodePoint,H=String.raw,U={},W=globalThis.RegExp;U.flagGroups=(()=>{try{new W(`(?i:)`)}catch{return!1}return!0})(),U.unicodeSets=(()=>{try{new W(`[[]]`,`v`)}catch{return!1}return!0})(),U.bugFlagVLiteralHyphenIsRange=U.unicodeSets?(()=>{try{new W(H`[\d\-a]`,`v`)}catch{return!0}return!1})():!1,U.bugNestedClassIgnoresNegation=U.unicodeSets&&new W(`[[^a]]`,`v`).test(`a`);function G(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function K(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function yt(e,t){return xt[e]>=xt[t]}function bt(e,t){if(e==null)throw Error(t??`Value expected`);return e}var xt={ES2025:2025,ES2024:2024,ES2018:2018},St={auto:`auto`,ES2025:`ES2025`,ES2024:`ES2024`,ES2018:`ES2018`};function Ct(e={}){if({}.toString.call(e)!==`[object Object]`)throw Error(`Unexpected options`);if(e.target!==void 0&&!St[e.target])throw Error(`Unexpected target "${e.target}"`);let 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=U.flagGroups?`ES2025`:U.unicodeSets?`ES2024`:`ES2018`),t}var wt=`[ -\r ]`,Tt=new Set([V(304),V(305)]),q=H`[\p{L}\p{M}\p{N}\p{Pc}]`;function Et(e){if(Tt.has(e))return[e];let t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=At.get(n),a=Ot.get(n),o=kt.get(n);return[...r].length===1&&t.add(r),o&&t.add(o),i&&t.add(i),t.add(n),a&&t.add(a),[...t]}var Dt=new Map(`C Other
|
|
49
|
+
Cc Control cntrl
|
|
50
|
+
Cf Format
|
|
51
|
+
Cn Unassigned
|
|
52
|
+
Co Private_Use
|
|
53
|
+
Cs Surrogate
|
|
54
|
+
L Letter
|
|
55
|
+
LC Cased_Letter
|
|
56
|
+
Ll Lowercase_Letter
|
|
57
|
+
Lm Modifier_Letter
|
|
58
|
+
Lo Other_Letter
|
|
59
|
+
Lt Titlecase_Letter
|
|
60
|
+
Lu Uppercase_Letter
|
|
61
|
+
M Mark Combining_Mark
|
|
62
|
+
Mc Spacing_Mark
|
|
63
|
+
Me Enclosing_Mark
|
|
64
|
+
Mn Nonspacing_Mark
|
|
65
|
+
N Number
|
|
66
|
+
Nd Decimal_Number digit
|
|
67
|
+
Nl Letter_Number
|
|
68
|
+
No Other_Number
|
|
69
|
+
P Punctuation punct
|
|
70
|
+
Pc Connector_Punctuation
|
|
71
|
+
Pd Dash_Punctuation
|
|
72
|
+
Pe Close_Punctuation
|
|
73
|
+
Pf Final_Punctuation
|
|
74
|
+
Pi Initial_Punctuation
|
|
75
|
+
Po Other_Punctuation
|
|
76
|
+
Ps Open_Punctuation
|
|
77
|
+
S Symbol
|
|
78
|
+
Sc Currency_Symbol
|
|
79
|
+
Sk Modifier_Symbol
|
|
80
|
+
Sm Math_Symbol
|
|
81
|
+
So Other_Symbol
|
|
82
|
+
Z Separator
|
|
83
|
+
Zl Line_Separator
|
|
84
|
+
Zp Paragraph_Separator
|
|
85
|
+
Zs Space_Separator
|
|
86
|
+
ASCII
|
|
87
|
+
ASCII_Hex_Digit AHex
|
|
88
|
+
Alphabetic Alpha
|
|
89
|
+
Any
|
|
90
|
+
Assigned
|
|
91
|
+
Bidi_Control Bidi_C
|
|
92
|
+
Bidi_Mirrored Bidi_M
|
|
93
|
+
Case_Ignorable CI
|
|
94
|
+
Cased
|
|
95
|
+
Changes_When_Casefolded CWCF
|
|
96
|
+
Changes_When_Casemapped CWCM
|
|
97
|
+
Changes_When_Lowercased CWL
|
|
98
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
99
|
+
Changes_When_Titlecased CWT
|
|
100
|
+
Changes_When_Uppercased CWU
|
|
101
|
+
Dash
|
|
102
|
+
Default_Ignorable_Code_Point DI
|
|
103
|
+
Deprecated Dep
|
|
104
|
+
Diacritic Dia
|
|
105
|
+
Emoji
|
|
106
|
+
Emoji_Component EComp
|
|
107
|
+
Emoji_Modifier EMod
|
|
108
|
+
Emoji_Modifier_Base EBase
|
|
109
|
+
Emoji_Presentation EPres
|
|
110
|
+
Extended_Pictographic ExtPict
|
|
111
|
+
Extender Ext
|
|
112
|
+
Grapheme_Base Gr_Base
|
|
113
|
+
Grapheme_Extend Gr_Ext
|
|
114
|
+
Hex_Digit Hex
|
|
115
|
+
IDS_Binary_Operator IDSB
|
|
116
|
+
IDS_Trinary_Operator IDST
|
|
117
|
+
ID_Continue IDC
|
|
118
|
+
ID_Start IDS
|
|
119
|
+
Ideographic Ideo
|
|
120
|
+
Join_Control Join_C
|
|
121
|
+
Logical_Order_Exception LOE
|
|
122
|
+
Lowercase Lower
|
|
123
|
+
Math
|
|
124
|
+
Noncharacter_Code_Point NChar
|
|
125
|
+
Pattern_Syntax Pat_Syn
|
|
126
|
+
Pattern_White_Space Pat_WS
|
|
127
|
+
Quotation_Mark QMark
|
|
128
|
+
Radical
|
|
129
|
+
Regional_Indicator RI
|
|
130
|
+
Sentence_Terminal STerm
|
|
131
|
+
Soft_Dotted SD
|
|
132
|
+
Terminal_Punctuation Term
|
|
133
|
+
Unified_Ideograph UIdeo
|
|
134
|
+
Uppercase Upper
|
|
135
|
+
Variation_Selector VS
|
|
136
|
+
White_Space space
|
|
137
|
+
XID_Continue XIDC
|
|
138
|
+
XID_Start XIDS`.split(/\s/).map(e=>[j(e),e])),Ot=new Map([[`s`,V(383)],[V(383),`s`]]),kt=new Map([[V(223),V(7838)],[V(107),V(8490)],[V(229),V(8491)],[V(969),V(8486)]]),At=new Map([J(453),J(456),J(459),J(498),...Nt(8072,8079),...Nt(8088,8095),...Nt(8104,8111),J(8124),J(8140),J(8188)]),jt=new Map([[`alnum`,H`[\p{Alpha}\p{Nd}]`],[`alpha`,H`\p{Alpha}`],[`ascii`,H`\p{ASCII}`],[`blank`,H`[\p{Zs}\t]`],[`cntrl`,H`\p{Cc}`],[`digit`,H`\p{Nd}`],[`graph`,H`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],[`lower`,H`\p{Lower}`],[`print`,H`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],[`punct`,H`[\p{P}\p{S}]`],[`space`,H`\p{space}`],[`upper`,H`\p{Upper}`],[`word`,H`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],[`xdigit`,H`\p{AHex}`]]);function Mt(e,t){let n=[];for(let r=e;r<=t;r++)n.push(r);return n}function J(e){let t=V(e);return[t.toLowerCase(),t]}function Nt(e,t){return Mt(e,t).map(e=>J(e))}var Pt=new Set([`Lower`,`Lowercase`,`Upper`,`Uppercase`,`Ll`,`Lowercase_Letter`,`Lt`,`Titlecase_Letter`,`Lu`,`Uppercase_Letter`]);function Ft(e,t){let n={accuracy:`default`,asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:`ES2025`,...t};zt(e);let r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:yt(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};M(e,It,r);let i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};return M(e,Lt,a),M(e,Rt,{groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer}),e._originMap=a.groupOriginByCopy,e._strategy=r.strategy,e}var It={AbsenceFunction({node:e,parent:t,replaceWith:n}){let{body:r,kind:i}=e;if(i===`repeater`){let e=D();e.body[0].body.push(O({negate:!0,body:r}),k(`Any`));let i=D();i.body[0].body.push(He(`greedy`,0,1/0,e)),n(Z(i,t),{traverse:!0})}else throw Error(`Unsupported absence function "(?~|"`)},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){let i=e.body.filter(e=>e.kind===`flags`);for(let e=n+1;e<t.body.length;e++){let n=t.body[e];K(r,n,[]).push(...i)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let n=Kt(t.get(e));if(n){let t=D({flags:n});t.body[0].body=e.body,e.body=[Z(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:a,replaceWith:o},s){let{kind:c,negate:l}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:f,wordIsAscii:p}=s;if(c===`text_segment_boundary`)throw Error(`Unsupported text segment boundary "\\${l?`Y`:`y`}"`);if(c===`line_end`)o(Z(O({body:[S({body:[C(`string_end`)]}),S({body:[T(10)]})]}),t));else if(c===`line_start`)o(Z(Y(H`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(c===`search_start`)if(f.has(e))i.flags.sticky=!0,a();else{let e=r[n-1];if(e&&Qt(e))o(Z(O({negate:!0}),t));else if(d)throw Error(H`Uses "\G" in a way that requires a subclass`);else o(X(C(`string_start`),t)),s.strategy=`clip_search`}else if(!(c===`string_end`||c===`string_start`))if(c===`string_end_newline`)o(Z(Y(H`(?=\n?\z)`),t));else if(c===`word_boundary`){if(!p&&!u){let e=`(?:(?<=${q})(?!${q})|(?<!${q})(?=${q}))`,n=`(?:(?<=${q})(?=${q})|(?<!${q})(?!${q}))`;o(Z(Y(l?n:e),t))}}else throw Error(`Unexpected assertion kind "${c}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!en(n)&&(n=Gt(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!en(r)&&(r=Gt(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){t.kind===`intersection`&&n(Z(E({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:o,wordIsAscii:s}){let{kind:c,negate:l,value:u}=e;if(a&&(c===`digit`||u===`digit`)){n(X(Le(`digit`,{negate:l}),t));return}if(o&&(c===`space`||u===`space`)){n(Z(tn(Y(wt),l),t));return}if(s&&(c===`word`||u===`word`)){n(X(Le(`word`,{negate:l}),t));return}if(c===`any`)n(X(k(`Any`),t));else if(c===`digit`)n(X(k(`Nd`,{negate:l}),t));else if(c!==`dot`)if(c===`text_segment`){if(r===`strict`)throw Error(H`Use of "\X" requires non-strict accuracy`);let e=`\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?`,a=H`\p{RI}{2}|${e}(?:\u200D${e})*`;n(Z(Y(H`(?>\r\n|${i?H`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c===`hex`)n(X(k(`AHex`,{negate:l}),t));else if(c===`newline`)n(Z(Y(l?`[^
|
|
139
|
+
]`:`(?>\r
|
|
140
|
+
?|[
|
|
141
|
+
\v\f
\u2028\u2029])`),t));else if(c===`posix`)if(!i&&(u===`graph`||u===`print`)){if(r===`strict`)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:`!-~`,print:` -~`}[u];l&&(e=`\0-${V(e.codePointAt(0)-1)}${V(e.codePointAt(2)+1)}-\u{10FFFF}`),n(Z(Y(`[${e}]`),t))}else n(Z(tn(Y(jt.get(u)),l),t));else if(c===`property`)Dt.has(j(u))||(e.key=`sc`);else if(c===`space`)n(X(k(`space`,{negate:l}),t));else if(c===`word`)n(Z(tn(Y(q),l),t));else throw Error(`Unexpected character set kind "${c}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:c}=e;if(s===`flags`)if(!c.enable&&!c.disable)r();else{let e=D({flags:c});e.body[0].body=o(),i(Z(e,t),{traverse:!0})}else if(s===`keep`){let e=n.body[0],r=n.body.length===1&&Se(e,{type:`Group`})&&e.body[0].body.length===1?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(H`Uses "\K" in a way that's unsupported`);let o=O({behind:!0});o.body[0].body=a(),i(Z(o,t))}else throw Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error(`Unsupported flag "P"`);if(e.textSegmentMode===`word`)throw Error(`Unsupported flag "y{w}"`);[`digitIsAscii`,`extended`,`posixIsAscii`,`spaceIsAscii`,`wordIsAscii`,`textSegmentMode`].forEach(t=>delete e[t]),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;let{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&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){let{kind:n}=e;n===`lookbehind`&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if(r===`fail`)n(Z(O({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type===`Quantifier`){let t=D();t.body[0].body.push(e.body),e.body=Z(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(t.body.length===1&&t.body[0].kind===`search_start`)t.body.pop();else{let e=Yt(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t===`strict`&&n&&r)throw Error(H`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!en(n)&&(n=Gt(n,t),e.ref=n)}},Lt={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:c}){let l=i.get(e);if(l&&s.has(e.number)){let r=X(Ut(e.number),t);c.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&K(o,e.name,[]);let u=o.get(e.name??e.number);for(let t=0;t<u.length;t++){let n=u[t];if(l===n.node||l&&l===n.origin||e===n.origin){u.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:l}),e.name&&o.get(e.name).push({node:e,origin:l}),e.name){let t=K(a,e.name,new Map),n=!1;if(l)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=G(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&!(n.type===`CapturingGroup`&&(n.name===a||n.number===a)););r.reffedNodesByReferencer.set(e,n);return}let o=r.subroutineRefMap.get(a),s=a===0,c=s?Ut(0):Ht(o,r.groupOriginByCopy,null),l=c;if(!s){let e=Kt(Wt(o,e=>e.type===`Group`&&!!e.flags)),t=e?G(r.globalFlags,e):r.globalFlags;Bt(t,r.currentFlags)||(l=D({flags:qt(t)}),l.body[0].body.push(c))}n(Z(l,t),{traverse:!s})}},Rt={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let i=r.reffedNodesByReferencer.get(e).filter(t=>Vt(t,e));i.length?i.length>1?n(Z(D({atomic:!0,body:i.reverse().map(e=>S({body:[w(e.number)]}))}),t)):e.ref=i[0].number:n(Z(O({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){let t=Fe();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function zt(e){M(e,{"*"({node:e,parent:t}){e.parent=t}})}function Bt(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function Vt(e,t){let n=t;do{if(n.type===`Regex`)return!1;if(n.type===`Alternative`)continue;if(n===e)return!1;let t=Jt(n.parent);for(let r of t){if(r===n)break;if(r===e||Xt(r,e))return!0}}while(n=n.parent);throw Error(`Unexpected path`)}function Ht(e,t,n,r){let i=Array.isArray(e)?[]:{};for(let[a,o]of Object.entries(e))a===`parent`?i.parent=Array.isArray(n)?r:n:o&&typeof o==`object`?i[a]=Ht(o,t,i,n):(a===`type`&&o===`CapturingGroup`&&t.set(i,t.get(e)??e),i[a]=o);return i}function Ut(e){let t=We(e);return t.isRecursive=!0,t}function Wt(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function Gt(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,`_`)}`;return t.set(e,n),n}function Kt(e){let t=[`dotAll`,`ignoreCase`],n={enable:{},disable:{}};return e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function qt({dotAll:e,ignoreCase:t}){let 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 Jt(e){if(!e)throw Error(`Node expected`);let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Yt(e){let t=e.find(e=>e.kind===`search_start`||$t(e,{negate:!1})||!Zt(e));if(!t)return null;if(t.kind===`search_start`)return t;if(t.type===`LookaroundAssertion`)return t.body[0].body[0];if(t.type===`CapturingGroup`||t.type===`Group`){let e=[];for(let n of t.body){let t=Yt(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function Xt(e,t){let n=Jt(e)??[];for(let e of n)if(e===t||Xt(e,t))return!0;return!1}function Zt({type:e}){return e===`Assertion`||e===`Directive`||e===`LookaroundAssertion`}function Qt(e){let t=[`Character`,`CharacterClass`,`CharacterSet`];return t.includes(e.type)||e.type===`Quantifier`&&e.min&&t.includes(e.body.type)}function $t(e,t){let n={negate:null,...t};return e.type===`LookaroundAssertion`&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&Se(e.body[0],{type:`Assertion`,kind:`search_start`})}function en(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Y(e,t){let n=Te(e,{...t,unicodePropertyMap:Dt}).body;return n.length>1||n[0].body.length>1?D({body:n}):n[0].body[0]}function tn(e,t){return e.negate=t,e}function X(e,t){return e.parent=t,e}function Z(e,t){return zt(e),e.parent=t,e}function nn(e,t){let n=Ct(t),r=yt(n.target,`ES2024`),i=yt(n.target,`ES2025`),a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error(`Invalid recursionLimit; use 2-20`);let o=null,s=null;if(!i){let t=[e.flags.ignoreCase];M(e,rn,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}let c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||o)&&!s)},l=e,u={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&o&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=l,l=e,bt(an[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let f={pattern:e.body.map(d).join(`|`),flags:d(e.flags),options:{...e.options}};return r||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&f._hiddenCaptures.push(t),e.transferTo&&K(f._captureTransfers,e.transferTo,[]).push(t)}),f}var rn={"*":{enter({node:e},t){if(hn(e)){let n=t.getCurrentModI();t.pushModI(e.flags?G({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){hn(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Q(V(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),dn(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===`property`&&Pt.has(e.value)&&t.setHasCasedChar()}},an={Alternative({body:e},t,n){return e.map(n).join(``)},Assertion({kind:e,negate:t}){if(e===`string_end`)return`$`;if(e===`string_start`)return`^`;if(e===`word_boundary`)return t?H`\B`:H`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!=`number`)throw Error(`Unexpected named backref in transformed AST`);if(!t.useFlagMods&&t.accuracy===`strict`&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error(`Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy`);return`\\`+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:``}${r.map(n).join(`|`)})`},Character({value:e},t){let n=V(e),r=$(e,{escDigit:t.lastNode.type===`Backreference`,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Q(n)){let e=Et(n);return t.inCharClass?e.join(``):e.length>1?`[${e.join(``)}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:o}=e;if(r===`intersection`&&!t.useFlagV)throw Error(`Use of character class intersection requires min target ES2024`);U.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(_n)&&(o=[T(45),...o.filter(e=>!_n(e))]);let s=()=>`[${i?`^`:``}${o.map(n).join(r===`intersection`?`&&`:``)}]`;if(!t.inCharClass){if((!t.useFlagV||U.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>e.type===`CharacterClass`&&e.kind===`union`&&e.negate);if(t.length){let r=D(),i=r.body[0];return r.parent=a,i.parent=r,o=o.filter(e=>!t.includes(e)),e.body=o,o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=S({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=s();return t.inCharClass=!1,r}let c=o[0];if(r===`union`&&!i&&c&&((!t.useFlagV||!t.verbose)&&a.kind===`union`&&!(U.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind===`intersection`&&o.length===1&&c.type!==`CharacterClassRange`))return o.map(n).join(``);if(!t.useFlagV&&a.type===`CharacterClass`)throw Error(`Uses nested character class in a way that requires min target ES2024`);return s()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=$(n,i),o=$(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&fn(dn(e)).forEach(e=>{s.add(Array.isArray(e)?`${$(e[0],i)}-${$(e[1],i)}`:$(e,i))}),`${a}-${o}${[...s].join(``)}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e===`dot`)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?`.`:`[^]`:H`[^\n]`;if(e===`digit`)return t?H`\D`:H`\d`;if(e===`property`){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&Pt.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?H`\P`:H`\p`}{${r?`${r}=`:``}${n}}`}if(e===`word`)return t?H`\W`:H`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?`i`:``)+(e.dotAll?`s`:``)+(e.sticky?`y`:``)},Group({atomic:e,body:t,flags:n,parent:r},i,a){let o=i.currentFlags;n&&(i.currentFlags=G(o,n));let s=t.map(a).join(`|`),c=!i.verbose&&t.length===1&&r.type!==`Quantifier`&&!e&&(!i.useFlagMods||!n)?s:`(?${pn(e,n,i.useFlagMods)}${s})`;return i.currentFlags=o,c},LookaroundAssertion({body:e,kind:t,negate:n},r,i){return`(?${`${t===`lookahead`?``:`<`}${n?`!`:`=`}`}${e.map(i).join(`|`)})`},Quantifier(e,t,n){return n(e.body)+mn(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error(`Unexpected non-recursive subroutine in transformed AST`);let r=n.recursionLimit;return t===0?`(?R=${r})`:H`\g<${t}&R=${r}>`}},on=new Set([`$`,`(`,`)`,`*`,`+`,`.`,`?`,`[`,`\\`,`]`,`^`,`{`,`|`,`}`]),sn=new Set([`-`,`\\`,`]`,`^`,`[`]),cn=new Set("()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split(``)),ln=new Map([[9,H`\t`],[10,H`\n`],[11,H`\v`],[12,H`\f`],[13,H`\r`],[8232,H`\u2028`],[8233,H`\u2029`],[65279,H`\uFEFF`]]),un=/^\p{Cased}$/u;function Q(e){return un.test(e)}function dn(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return a;for(let e=r;e<=i;e++){let t=V(e);if(!Q(t))continue;let o=Et(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function $(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(ln.has(e))return ln.get(e);if(e<32||e>126&&e<160||e>262143||t&&gn(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,`0`)}`;let i=n?r?cn:sn:on,a=V(e);return(i.has(a)?`\\`:``)+a}function fn(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:r===null?n.push(t[e]):(n.push([r,t[e]]),r=null);return n}function pn(e,t,n){if(e)return`>`;let r=``;if(t&&n){let{enable:e,disable:n}=t;r=(e?.ignoreCase?`i`:``)+(e?.dotAll?`s`:``)+(n?`-`:``)+(n?.ignoreCase?`i`:``)+(n?.dotAll?`s`:``)}return`${r}:`}function mn({kind:e,max:t,min:n}){let r;return r=!n&&t===1?`?`:!n&&t===1/0?`*`:n===1&&t===1/0?`+`:n===t?`{${n}}`:`{${n},${t===1/0?``:t}}`,r+{greedy:``,lazy:`?`,possessive:`+`}[e]}function hn({type:e}){return e===`CapturingGroup`||e===`Group`||e===`LookaroundAssertion`}function gn(e){return e>47&&e<58}function _n({type:e,value:t}){return e===`Character`&&t===45}var vn=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||`(?:)`}constructor(t,n,r){let i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw Error(`Cannot provide options when copying a regexp`);let i=t;super(i,n),this.#n=i.source,i instanceof e&&(this.#e=i.#e,this.#r=i.#r,this.#i=i.#i,this.rawOptions=i.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?``:t,n),this.#n=t,this.#e=bn(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if(this.#i===`clip_search`&&n&&r){this.lastIndex=0;let e=this.#a(t.slice(r));return e&&(yn(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#a(t)}#a(e){this.#t.lastIndex=this.lastIndex;let t=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!t||!this.#e.size)return t;let n=[...t];t.length=1;let r;this.hasIndices&&(r=[...t.indices],t.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){let{hidden:a,transferTo:o}=this.#e.get(e)??{};if(a?i.push(null):(i.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),o&&n[e]!==void 0){let a=i[o];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(t[a]=n[e],this.hasIndices&&(t.indices[a]=r[e]),t.groups){this.#r||=xn(this.source);let i=this.#r.get(o);i&&(t.groups[i]=n[e],this.hasIndices&&(t.indices.groups[i]=r[e]))}}}return t}};function yn(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}function bn(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)K(n,t,{}).transferTo=e;return n}function xn(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,r=0,i=0,a;for(;a=t.exec(e);){let{0:e,groups:{capture:t,name:o}}=a;e===`[`?r++:r?e===`]`&&r--:t&&(i++,o&&n.set(i,o))}return n}function Sn(e,t){let n=Cn(e,t);return n.options?new vn(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function Cn(e,t){let n=Ct(t),r=Ft(Te(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:Dt}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=nn(r,n),a=pt(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:`external`}),o=st(lt(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),s={pattern:o.pattern,flags:`${n.hasIndices?`d`:``}${n.global?`g`:``}${i.flags}${i.options.disable.v?`u`:`v`}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw Error(`Lazy compilation requires subclass`)}else{let e=o.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(o.captureTransfers),i=r._strategy,a=s.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(s.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return s}export{Sn as n,vn as t};
|