@visulima/packem 2.0.0-alpha.83 → 2.0.0-alpha.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/builder/typedoc/index.d.ts +1 -1
  3. package/dist/builder/typedoc/index.js +3 -3
  4. package/dist/cli/index.js +36 -36
  5. package/dist/config/index.d.ts +1 -1
  6. package/dist/config/index.js +1 -1
  7. package/dist/config/preset/preact.d.ts +1 -1
  8. package/dist/config/preset/preact.js +2 -2
  9. package/dist/config/preset/react.d.ts +1 -1
  10. package/dist/config/preset/react.js +1 -1
  11. package/dist/config/preset/solid.d.ts +1 -1
  12. package/dist/config/preset/solid.js +1 -1
  13. package/dist/config/preset/svelte.d.ts +1 -1
  14. package/dist/config/preset/svelte.js +1 -1
  15. package/dist/config/preset/vue.d.ts +1 -1
  16. package/dist/config/preset/vue.js +1 -1
  17. package/dist/index.d.ts +2 -2
  18. package/dist/index.js +39 -35
  19. package/dist/packem_shared/create-or-update-key-storage-CRDW-Kwa.js +28 -0
  20. package/dist/packem_shared/default-nqaAQAPN.js +1 -0
  21. package/dist/packem_shared/index-BSqT47P3.js +244 -0
  22. package/dist/packem_shared/oxcTransformPlugin-Dwvbw2jE-BSBF_-9X.js +177 -0
  23. package/dist/packem_shared/{types.d-Cm6dnCyD.d.ts → types.d-ICL9GlqC.d.ts} +8 -5
  24. package/dist/packem_shared/utils-Bsoe7qJG.js +1 -0
  25. package/dist/rollup/plugins/oxc/oxc-transformer.js +1 -1
  26. package/package.json +5 -5
  27. package/dist/packem_shared/create-or-update-key-storage-DUTe5Prf.js +0 -13
  28. package/dist/packem_shared/default-Dj-WgmWM.js +0 -1
  29. package/dist/packem_shared/index-BcKJ8RJU.js +0 -255
  30. package/dist/packem_shared/oxcResolvePlugin-DeIohkWk-rspLVIoy.js +0 -170
  31. package/dist/packem_shared/oxcTransformPlugin-Dwvbw2jE-Bbz81VnA.js +0 -4
  32. package/dist/packem_shared/utils-nmTpa3um.js +0 -1
@@ -1,170 +0,0 @@
1
- var gc=Object.defineProperty;var h=(t,e)=>gc(t,"name",{value:e,configurable:!0});import{createFilter as Dc}from"@rollup/pluginutils";import yc,{createRequire as De}from"node:module";import{installPackage as bc}from"@antfu/install-pkg";import{P as ne,L as gt,b as ho,M as po,V as he,R as Ec,_ as mo}from"./utils-nmTpa3um.js";import vc from"node:url";import Ac from"util";import{ResolverFactory as Cc}from"oxc-resolver";const Et=0,zr=4,go=Symbol("findUpStop");var $c=Object.defineProperty,Fc=h((t,e)=>$c(t,"name",{value:e,configurable:!0}),"t$g"),wc=Object.defineProperty,Sc=Fc((t,e)=>wc(t,"name",{value:e,configurable:!0}),"t"),Lc=Object.defineProperty,Oc=Sc((t,e)=>Lc(t,"name",{value:e,configurable:!0}),"n");const Ft=Oc(t=>{if(!t||!(t instanceof URL)&&typeof t!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var Pc=Object.defineProperty,Nc=h((t,e)=>Pc(t,"name",{value:e,configurable:!0}),"p$i"),Bc=Object.defineProperty,Do=Nc((t,e)=>Bc(t,"name",{value:e,configurable:!0}),"a");const kc=De(import.meta.url),xt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,yo=Do(t=>{if(typeof xt<"u"&&xt.versions&&xt.versions.node){const[e,r]=xt.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return xt.getBuiltinModule(t)}return kc(t)},"__cjs_getBuiltinModule"),{stat:Ic,lstat:xc}=yo("node:fs/promises"),{fileURLToPath:Tc}=yo("node:url");var jc=Object.defineProperty,Fi=Do((t,e)=>jc(t,"name",{value:e,configurable:!0}),"n");const bo=Fi(async(t,e={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const r=e.cwd?ne(e.cwd):process.cwd();let n=gt(r);const{root:s}=ho(n),i=ne(e.stopAt??s),o=gt(n,i),a=e.type??"file",u=Fi(async function(f){return typeof t=="function"?[await t(f)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]},"getMatchers");e.allowSymlinks??=!0;const l=e.allowSymlinks?Ic:xc;for(;n&&n!==o&&n!==s;){const f=await u(n);for(let g of f){if(g===go)return;if(g===void 0)continue;Buffer.isBuffer(g)?g=g.toString():g instanceof URL&&(g=Tc(g));const m=po(g)?g:gt(n,g);try{const v=await l(m);if(a==="file"&&v.isFile()||a==="directory"&&v.isDirectory())return m}catch{}}n=he(n)}},"findUp");var Rc=Object.defineProperty,Mc=h((t,e)=>Rc(t,"name",{value:e,configurable:!0}),"u$E"),_c=Object.defineProperty,Eo=Mc((t,e)=>_c(t,"name",{value:e,configurable:!0}),"i");const Gc=De(import.meta.url),Tt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,vo=Eo(t=>{if(typeof Tt<"u"&&Tt.versions&&Tt.versions.node){const[e,r]=Tt.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Tt.getBuiltinModule(t)}return Gc(t)},"__cjs_getBuiltinModule"),{statSync:Uc,lstatSync:qc}=vo("node:fs"),{fileURLToPath:Kc}=vo("node:url");var Wc=Object.defineProperty,wi=Eo((t,e)=>Wc(t,"name",{value:e,configurable:!0}),"o");const Ao=wi((t,e={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const r=e.cwd?ne(e.cwd):process.cwd();let n=gt(r);const{root:s}=ho(n),i=ne(e.stopAt??s),o=gt(n,i),a=e.type??"file",u=wi(function(f){return typeof t=="function"?[t(f)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]},"getMatchers");e.allowSymlinks??=!0;const l=e.allowSymlinks?Uc:qc;for(;n&&n!==o&&n!==s;){for(let f of u(n)){if(f===go)return;if(f===void 0)continue;Buffer.isBuffer(f)?f=f.toString():f instanceof URL&&(f=Kc(f));const g=po(f)?f:gt(n,f);try{const m=l(g);if(a==="file"&&m.isFile()||a==="directory"&&m.isDirectory())return g}catch{}}n=he(n)}},"findUpSync");var Hc=Object.defineProperty,Co=h((t,e)=>Hc(t,"name",{value:e,configurable:!0}),"t$f"),Vc=Object.defineProperty,bs=Co((t,e)=>Vc(t,"name",{value:e,configurable:!0}),"s");const Yc=De(import.meta.url),jt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,zc=bs(t=>{if(typeof jt<"u"&&jt.versions&&jt.versions.node){const[e,r]=jt.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return jt.getBuiltinModule(t)}return Yc(t)},"__cjs_getBuiltinModule"),{access:Jc}=zc("node:fs/promises");var Xc=Object.defineProperty,Qc=bs((t,e)=>Xc(t,"name",{value:e,configurable:!0}),"o");async function Be(t,e=Et){Ft(t),t=ne(t);try{return await Jc(t,e),!0}catch{return!1}}h(Be,"i$n");Co(Be,"d");bs(Be,"m");Qc(Be,"isAccessible");var Zc=Object.defineProperty,$o=h((t,e)=>Zc(t,"name",{value:e,configurable:!0}),"t$e"),el=Object.defineProperty,Es=$o((t,e)=>el(t,"name",{value:e,configurable:!0}),"t");const tl=De(import.meta.url),Rt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,rl=Es(t=>{if(typeof Rt<"u"&&Rt.versions&&Rt.versions.node){const[e,r]=Rt.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Rt.getBuiltinModule(t)}return tl(t)},"__cjs_getBuiltinModule"),{accessSync:nl}=rl("node:fs");var sl=Object.defineProperty,il=Es((t,e)=>sl(t,"name",{value:e,configurable:!0}),"o");function ke(t,e=Et){Ft(t),t=ne(t);try{return nl(t,e),!0}catch{return!1}}h(ke,"i$m");$o(ke,"d");Es(ke,"m");il(ke,"isAccessibleSync");var ol=Object.defineProperty,Fo=h((t,e)=>ol(t,"name",{value:e,configurable:!0}),"t$d"),al=Object.defineProperty,wo=Fo((t,e)=>al(t,"name",{value:e,configurable:!0}),"t"),ul=Object.defineProperty,cl=wo((t,e)=>ul(t,"name",{value:e,configurable:!0}),"o");let rs=class extends Error{static{h(this,"c")}static{Fo(this,"i")}static{wo(this,"n")}static{cl(this,"PermissionError")}constructor(e){super(`EPERM: Operation not permitted, ${e}`)}get code(){return"EPERM"}set code(e){throw new Error("Cannot overwrite code EPERM")}get name(){return"PermissionError"}set name(e){throw new Error("Cannot overwrite name of PermissionError")}};var ll=Object.defineProperty,fl=h((t,e)=>ll(t,"name",{value:e,configurable:!0}),"f$s"),hl=Object.defineProperty,So=fl((t,e)=>hl(t,"name",{value:e,configurable:!0}),"i");const pl=De(import.meta.url),Mt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Lo=So(t=>{if(typeof Mt<"u"&&Mt.versions&&Mt.versions.node){const[e,r]=Mt.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Mt.getBuiltinModule(t)}return pl(t)},"__cjs_getBuiltinModule"),{readFile:dl}=Lo("node:fs/promises"),{unzip:ml,brotliDecompress:gl}=Lo("node:zlib");var Dl=Object.defineProperty,Oo=So((t,e)=>Dl(t,"name",{value:e,configurable:!0}),"n");const yl={brotli:gl,gzip:ml,none:Oo((t,e)=>{e(null,t)},"none")},vs=Oo(async(t,e)=>{if(Ft(t),t=ne(t),!await Be(t))throw new rs(`unable to read the non-accessible file: ${t}`);if(!await Be(t,zr))throw new Error(`Unable to read the non-readable file: ${t}`);const{buffer:r,compression:n,encoding:s,flag:i}=e??{};return await dl(t,i?{encoding:s,flag:i}:{encoding:s}).then(async o=>await new Promise((a,u)=>{yl[n??"none"](o,(l,f)=>{l?u(l):a(r?f:f.toString())})})).catch(o=>{throw o})},"readFile");var bl=Object.defineProperty,El=h((t,e)=>bl(t,"name",{value:e,configurable:!0}),"a$u"),vl=Object.defineProperty,Po=El((t,e)=>vl(t,"name",{value:e,configurable:!0}),"i");const Al=De(import.meta.url),_t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,No=Po(t=>{if(typeof _t<"u"&&_t.versions&&_t.versions.node){const[e,r]=_t.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return _t.getBuiltinModule(t)}return Al(t)},"__cjs_getBuiltinModule"),{readFileSync:Cl}=No("node:fs"),{unzipSync:$l,brotliDecompressSync:Fl}=No("node:zlib");var wl=Object.defineProperty,Bo=Po((t,e)=>wl(t,"name",{value:e,configurable:!0}),"r");const Sl={brotli:Fl,gzip:$l,none:Bo(t=>t,"none")},As=Bo((t,e)=>{if(Ft(t),t=ne(t),!ke(t))throw new rs(`unable to read the non-accessible file: ${t}`);if(!ke(t,zr))throw new rs(`invalid access to read file at: ${t}`);const{buffer:r,compression:n,encoding:s,flag:i}=e??{},o=Cl(t,i?{encoding:s,flag:i}:{encoding:s}),a=Sl[n??"none"],u=a(o);return r?u:u.toString()},"readFileSync");var Ll=Object.defineProperty,Ol=h((t,e)=>Ll(t,"name",{value:e,configurable:!0}),"x$5"),Pl=Object.defineProperty,ko=Ol((t,e)=>Pl(t,"name",{value:e,configurable:!0}),"$"),Nl=Object.defineProperty,Bl=ko((t,e)=>Nl(t,"name",{value:e,configurable:!0}),"A"),kl=Object.defineProperty,Cs=Bl((t,e)=>kl(t,"name",{value:e,configurable:!0}),"$"),Il=Object.defineProperty,xl=Cs((t,e)=>Il(t,"name",{value:e,configurable:!0}),"r$1");const Tl=xl(t=>t.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
2
- `),"normalizeLF"),jl=globalThis.process??Object.create(null),Si={versions:{}},Li=new Proxy(jl,{get(t,e){if(e in t)return t[e];if(e in Si)return Si[e]}});var Rl=Object.defineProperty,Ml=Cs((t,e)=>Rl(t,"name",{value:e,configurable:!0}),"b");const _l=Ml((t,e,r,n)=>{const s={column:0,line:-1,...t.start},i={...s,...t.end},o=s.line,a=s.column,u=i.line,l=i.column;let f=Math.max(o-(r+1),0),g=Math.min(e.length,u+n);o===-1&&(f=0),u===-1&&(g=e.length);const m=u-o,v={};if(m)for(let $=0;$<=m;$++){const b=$+o;if(!a)v[b]=!0;else if($===0){const F=e[b-1]?.length;v[b]=[a,(F??0)-a+1]}else if($===m)v[b]=[0,l];else{const F=e[b-$]?.length;v[b]=[0,F]}}else a===l?v[o]=a?[a,0]:!0:v[o]=[a,(l??0)-(a??0)];return{end:g,markerLines:v,start:f}},"getMarkerLines");var Gl=Object.defineProperty,Sr=Cs((t,e)=>Gl(t,"name",{value:e,configurable:!0}),"t");const Ul=Li.platform==="win32"&&!Li.env?.WT_SESSION?">":"❯",ql=Sr((t,e,r)=>{const n={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...r,color:{gutter:Sr($=>$,"gutter"),marker:Sr($=>$,"marker"),message:Sr($=>$,"message"),...r?.color}},s=typeof e.start.column=="number";let i=Tl(t).split(`
3
- `);typeof n.tabWidth=="number"&&(i=i.map($=>$.replaceAll(" "," ".repeat(n.tabWidth))));const{end:o,markerLines:a,start:u}=_l(e,i,n.linesAbove,n.linesBelow),l=String(o).length,{gutter:f,marker:g,message:m}=n.color;let v=i.slice(u,o).map(($,b)=>{const F=u+1+b,E=a[F],d=` ${String(F)}`.slice(-l),c=!a[F+1],D=` ${d}${n.showGutter?" |":""}`;if(E){let y="";if(Array.isArray(E)){const p=$.replaceAll(/[^\t]/g," ").slice(0,Math.max(E[0]-1,0)),C=E[1]||1;y=[`
4
- `,n.prefix+f(D.replaceAll(/\d/g," "))," ",p,g("^").repeat(C)].join(""),c&&n.message&&(y+=` ${m(n.message)}`)}return[n.prefix+g(Ul),f(D),$.length>0?` ${$}`:"",y].join("")}return`${n.prefix} ${f(D)}${$.length>0?` ${$}`:""}`}).join(`
5
- `);return n.message&&!s&&(v=`${n.prefix+" ".repeat(l+1)+n.message}
6
- ${v}`),v},"codeFrame");var Kl=Object.defineProperty,Wl=ko((t,e)=>Kl(t,"name",{value:e,configurable:!0}),"s"),Hl=Object.defineProperty,Vl=Wl((t,e)=>Hl(t,"name",{value:e,configurable:!0}),"o"),Yl=Object.defineProperty,$s=Vl((t,e)=>Yl(t,"name",{value:e,configurable:!0}),"l");const Oi=$s((t,e)=>{let r=0,n=e.length-2;for(;r<n;){const s=r+(n-r>>1);if(t<e[s])n=s-1;else if(t>=e[s+1])r=s+1;else{r=s;break}}return r},"binarySearch"),zl=/\n|\r(?!\n)/,Jl=$s(t=>t.split(zl).reduce((e,r)=>(e.push(e.at(-1)+r.length+1),e),[0]),"getLineStartIndexes"),Xl=$s((t,e,r)=>{const n=r?.skipChecks??!1;if(!n&&(!Array.isArray(t)&&typeof t!="string"||(typeof t=="string"||Array.isArray(t))&&t.length===0))return{column:0,line:0};if(!n&&(typeof e!="number"||typeof t=="string"&&e>=t.length||Array.isArray(t)&&e+1>=t.at(-1)))return{column:0,line:0};if(typeof t=="string"){const i=Jl(t),o=Oi(e,i);return{column:e-i[o]+1,line:o+1}}const s=Oi(e,t);return{column:e-t[s]+1,line:s+1}},"indexToLineColumn");var Ql=Object.defineProperty,Io=h((t,e)=>Ql(t,"name",{value:e,configurable:!0}),"t$c"),Zl=Object.defineProperty,xo=Io((t,e)=>Zl(t,"name",{value:e,configurable:!0}),"t"),ef=Object.defineProperty,tf=xo((t,e)=>ef(t,"name",{value:e,configurable:!0}),"i");let rf=class extends Error{static{h(this,"m")}static{Io(this,"m")}static{xo(this,"t")}static{tf(this,"JSONError")}fileName;codeFrame;name="JSONError";#n;constructor(e){super(),this.#n=e}get message(){return`${this.#n}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
7
-
8
- ${this.codeFrame}
9
- `:""}`}set message(e){this.#n=e}};var nf=Object.defineProperty,To=h((t,e)=>nf(t,"name",{value:e,configurable:!0}),"u$A"),sf=Object.defineProperty,jo=To((t,e)=>sf(t,"name",{value:e,configurable:!0}),"s"),of=Object.defineProperty,dr=jo((t,e)=>of(t,"name",{value:e,configurable:!0}),"a");const af=dr(t=>String.raw`\u{${t.codePointAt(0).toString(16)}}`,"getCodePoint"),uf=dr((t,e,r)=>ql(t,{start:e},{tabWidth:!1,...r}),"generateCodeFrame"),cf=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,lf=dr((t,e)=>{const r=cf.exec(e);if(!r)return;const[,n,s,i]=r;if(s&&i)return{column:Number(i),line:Number(s)};let o=Number(n);return o===t.length&&(o=t.length-1),Xl(t,o)},"getErrorLocation"),ff=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,hf=dr(t=>t.replace(ff,(e,r,n)=>`"${n}"(${af(n)})`),"addCodePointToUnexpectedToken");function st(t,e,r,n){typeof e=="string"&&(typeof r=="object"&&(n=r),r=e,e=void 0);let s;try{return JSON.parse(t,e)}catch(a){s=a.message}let i;t?(i=lf(t,s),s=hf(s)):s+=" while parsing empty string";const o=new rf(s);throw o.fileName=r,i&&(o.codeFrame=uf(t,i,n)),o}h(st,"d$l");To(st,"w");jo(st,"E");dr(st,"parseJson");var pf=Object.defineProperty,Ro=h((t,e)=>pf(t,"name",{value:e,configurable:!0}),"t$b"),df=Object.defineProperty,Mo=Ro((t,e)=>df(t,"name",{value:e,configurable:!0}),"t"),mf=Object.defineProperty,gf=Mo((t,e)=>mf(t,"name",{value:e,configurable:!0}),"i");async function Jr(t,e,r){typeof e=="object"&&(r=e,e=void 0);const n=await vs(t,{buffer:!0,encoding:void 0});let s=new TextDecoder().decode(n);const{beforeParse:i,color:o}=r??{};return typeof i=="function"&&(s=i(s)),st(s,e,ne(t),{color:o})}h(Jr,"a$s");Ro(Jr,"l");Mo(Jr,"c");gf(Jr,"readJson");var Df=Object.defineProperty,_o=h((t,e)=>Df(t,"name",{value:e,configurable:!0}),"t$a"),yf=Object.defineProperty,Go=_o((t,e)=>yf(t,"name",{value:e,configurable:!0}),"t"),bf=Object.defineProperty,Ef=Go((t,e)=>bf(t,"name",{value:e,configurable:!0}),"r");function Xr(t,e,r){typeof e=="object"&&(r=e,e=void 0);const n=As(t,{buffer:!0,encoding:void 0});let s=new TextDecoder().decode(n);const{beforeParse:i,color:o}=r??{};return typeof i=="function"&&(s=i(s)),st(s,e,ne(t),{color:o})}h(Xr,"n$g");_o(Xr,"s");Go(Xr,"J");Ef(Xr,"readJsonSync");var vf=Object.defineProperty,Af=h((t,e)=>vf(t,"name",{value:e,configurable:!0}),"a$r"),Cf=Object.defineProperty,$f=Af((t,e)=>Cf(t,"name",{value:e,configurable:!0}),"t"),Ff=Object.defineProperty,wf=$f((t,e)=>Ff(t,"name",{value:e,configurable:!0}),"e");const Uo=wf(t=>{if(typeof t!="string"&&!(t instanceof ArrayBuffer)&&!ArrayBuffer.isView(t))throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.")},"assertValidFileContents");var Sf=Object.defineProperty,Lf=h((t,e)=>Sf(t,"name",{value:e,configurable:!0}),"t$8"),Of=Object.defineProperty,Pf=Lf((t,e)=>Of(t,"name",{value:e,configurable:!0}),"r"),Nf=Object.defineProperty,Bf=Pf((t,e)=>Nf(t,"name",{value:e,configurable:!0}),"f");const kf=new TextEncoder,qo=Bf(t=>{if(t instanceof Uint8Array)return t;if(typeof t=="string")return kf.encode(t);if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t)){const e=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength);return new Uint8Array(e)}throw new TypeError("Invalid contents type. Expected string or ArrayBuffer.")},"toUint8Array");var If=Object.defineProperty,xf=h((t,e)=>If(t,"name",{value:e,configurable:!0}),"m$j"),Tf=Object.defineProperty,Ko=xf((t,e)=>Tf(t,"name",{value:e,configurable:!0}),"s");const jf=De(import.meta.url),Gt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Rf=Ko(t=>{if(typeof Gt<"u"&&Gt.versions&&Gt.versions.node){const[e,r]=Gt.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Gt.getBuiltinModule(t)}return jf(t)},"__cjs_getBuiltinModule"),{mkdir:Mf,writeFile:_f,stat:Gf,rename:Pi,chown:Uf,chmod:qf,unlink:Kf}=Rf("node:fs/promises");var Wf=Object.defineProperty,Hf=Ko((t,e)=>Wf(t,"name",{value:e,configurable:!0}),"d");const Vf=Hf(async(t,e,r)=>{r={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...r},Ft(t),Uo(e),t=ne(t);const n=`${t}.tmp`;try{const s=await Be(t,Et);if(!s&&r.recursive){const o=he(t);await Be(o,Et)||await Mf(o,{recursive:!0})}let i;if(await _f(n,qo(e),{encoding:r.encoding,flag:r.flag}),s&&!r.overwrite&&(i=await Gf(t),r.chown??={gid:i.gid,uid:i.uid},await Pi(t,`${t}.bak`)),r.chown)try{await Uf(n,r.chown.uid,r.chown.gid)}catch{}await qf(n,i&&!r.mode?i.mode:r.mode??438),await Pi(n,t)}catch(s){throw new Error(`Failed to write file at: ${t} - ${s.message}`,{cause:s})}finally{await Be(n)&&await Kf(`${t}.tmp`)}},"writeFile");var Yf=Object.defineProperty,zf=h((t,e)=>Yf(t,"name",{value:e,configurable:!0}),"m$i"),Jf=Object.defineProperty,Wo=zf((t,e)=>Jf(t,"name",{value:e,configurable:!0}),"s");const Xf=De(import.meta.url),Ut=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Qf=Wo(t=>{if(typeof Ut<"u"&&Ut.versions&&Ut.versions.node){const[e,r]=Ut.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Ut.getBuiltinModule(t)}return Xf(t)},"__cjs_getBuiltinModule"),{mkdirSync:Zf,writeFileSync:eh,statSync:th,renameSync:Ni,chownSync:rh,chmodSync:nh,unlinkSync:sh}=Qf("node:fs");var ih=Object.defineProperty,oh=Wo((t,e)=>ih(t,"name",{value:e,configurable:!0}),"f");const ah=oh((t,e,r)=>{r={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...r},Ft(t),Uo(e),t=ne(t);const n=`${t}.tmp`;try{const s=ke(t,Et);if(!s&&r.recursive){const o=he(t);ke(o,Et)||Zf(o,{recursive:!0})}let i;if(eh(n,qo(e),{encoding:r.encoding,flag:r.flag}),s&&!r.overwrite&&(i=th(t),r.chown??={gid:i.gid,uid:i.uid},Ni(t,`${t}.bak`)),r.chown)try{rh(n,r.chown.uid,r.chown.gid)}catch{}nh(n,i&&!r.mode?i.mode:r.mode??438),Ni(n,t)}catch(s){throw new Error(`Failed to write file at: ${t} - ${s.message}`,{cause:s})}finally{ke(n)&&sh(`${t}.tmp`)}},"writeFileSync");var uh=Object.defineProperty,Ue=h((t,e)=>uh(t,"name",{value:e,configurable:!0}),"i$h"),ch=Object.defineProperty,qe=Ue((t,e)=>ch(t,"name",{value:e,configurable:!0}),"s"),lh=Object.defineProperty,it=qe((t,e)=>lh(t,"name",{value:e,configurable:!0}),"i");const fh=/^(?:( )+|\t+)/,mr="space";function nr(t,e,r){return t&&e===mr&&r===1}h(nr,"d$i");Ue(nr,"g");qe(nr,"I");it(nr,"shouldIgnoreSingleSpace");function sr(t,e){const r=new Map;let n=0,s,i;for(const o of t.split(/\n/g)){if(!o)continue;const a=o.match(fh);if(a===null)n=0,s="";else{const u=a[0].length,l=a[1]?mr:"tab";if(nr(e,l,u))continue;l!==s&&(n=0),s=l;let f=1,g=0;const m=u-n;if(n=u,m===0)f=0,g=1;else{const $=Math.abs(m);if(nr(e,l,$))continue;i=Qr(l,$)}const v=r.get(i);r.set(i,v===void 0?[1,0]:[v[0]+f,v[1]+g])}}return r}h(sr,"p$e");Ue(sr,"y");qe(sr,"h");it(sr,"makeIndentsMap");function Qr(t,e){return(t===mr?"s":"t")+String(e)}h(Qr,"b$o");Ue(Qr,"v");qe(Qr,"m");it(Qr,"encodeIndentsKey");function Zr(t){const e=t[0]==="s"?mr:"tab",r=Number(t.slice(1));return{type:e,amount:r}}h(Zr,"v$8");Ue(Zr,"M");qe(Zr,"_");it(Zr,"decodeIndentsKey");function en(t){let e,r=0,n=0;for(const[s,[i,o]]of t)(i>r||i===r&&o>n)&&(r=i,n=o,e=s);return e}h(en,"I$7");Ue(en,"S");qe(en,"k");it(en,"getMostUsedKey");function tn(t,e){return(t===mr?" ":" ").repeat(e)}h(tn,"h$d");Ue(tn,"k");qe(tn,"D");it(tn,"makeIndentString");function gr(t){if(typeof t!="string")throw new TypeError("Expected a string");let e=sr(t,!0);e.size===0&&(e=sr(t,!1));const r=en(e);let n,s=0,i="";return r!==void 0&&({type:n,amount:s}=Zr(r),i=tn(n,s)),{amount:s,type:n,indent:i}}h(gr,"M$4");Ue(gr,"x");qe(gr,"C");it(gr,"detectIndent");var hh=Object.defineProperty,ph=h((t,e)=>hh(t,"name",{value:e,configurable:!0}),"a$p"),dh=Object.defineProperty,Ho=ph((t,e)=>dh(t,"name",{value:e,configurable:!0}),"n");const mh=De(import.meta.url),qt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,gh=Ho(t=>{if(typeof qt<"u"&&qt.versions&&qt.versions.node){const[e,r]=qt.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return qt.getBuiltinModule(t)}return mh(t)},"__cjs_getBuiltinModule"),{readFile:Dh}=gh("node:fs/promises");var yh=Object.defineProperty,bh=Ho((t,e)=>yh(t,"name",{value:e,configurable:!0}),"r");const Eh=bh(async(t,e,r={})=>{const{detectIndent:n,indent:s,replacer:i,stringify:o=JSON.stringify,...a}={indent:" ",...r};let u=s,l=`
10
- `;if(await Be(t,zr))try{const g=await Dh(t,"utf8");if(n){const{indent:m}=gr(g);u=m}l=g.endsWith(`
11
- `)?`
12
- `:""}catch(g){if(g.code!=="ENOENT")throw g}const f=o(e,i,u);await Vf(t,`${f}${l}`,a)},"writeJson");var vh=Object.defineProperty,Ah=h((t,e)=>vh(t,"name",{value:e,configurable:!0}),"a$o"),Ch=Object.defineProperty,Vo=Ah((t,e)=>Ch(t,"name",{value:e,configurable:!0}),"i");const $h=De(import.meta.url),Kt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Fh=Vo(t=>{if(typeof Kt<"u"&&Kt.versions&&Kt.versions.node){const[e,r]=Kt.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Kt.getBuiltinModule(t)}return $h(t)},"__cjs_getBuiltinModule"),{readFileSync:wh}=Fh("node:fs");var Sh=Object.defineProperty,Lh=Vo((t,e)=>Sh(t,"name",{value:e,configurable:!0}),"r");const Oh=Lh((t,e,r={})=>{const{detectIndent:n,indent:s,replacer:i,stringify:o=JSON.stringify,...a}={indent:" ",...r};let u=s,l=`
13
- `;if(ke(t,zr))try{const g=wh(t,"utf8");if(n){const{indent:m}=gr(g);u=m}l=g.endsWith(`
14
- `)?`
15
- `:""}catch(g){if(g.code!=="ENOENT")throw g}const f=o(e,i,u);ah(t,`${f}${l}`,a)},"writeJsonSync");var Ph=Object.defineProperty,Yo=h((t,e)=>Ph(t,"name",{value:e,configurable:!0}),"o$a"),Nh=Object.defineProperty,zo=Yo((t,e)=>Nh(t,"name",{value:e,configurable:!0}),"o"),Bh=Object.defineProperty,kh=zo((t,e)=>Bh(t,"name",{value:e,configurable:!0}),"o");let Jo=class extends Error{static{h(this,"s")}static{Yo(this,"u")}static{zo(this,"n")}static{kh(this,"NotFoundError")}constructor(e){super(`ENOENT: ${e}`)}get code(){return"ENOENT"}set code(e){throw new Error("Cannot overwrite code ENOENT")}get name(){return"NotFoundError"}set name(e){throw new Error("Cannot overwrite name of NotFoundError")}};var Ih=Object.defineProperty,xe=h((t,e)=>Ih(t,"name",{value:e,configurable:!0}),"c$e");const Fs=Symbol.for("yaml.alias"),ns=Symbol.for("yaml.document"),Me=Symbol.for("yaml.map"),Xo=Symbol.for("yaml.pair"),$e=Symbol.for("yaml.scalar"),wt=Symbol.for("yaml.seq"),pe=Symbol.for("yaml.node.type"),St=xe(t=>!!t&&typeof t=="object"&&t[pe]===Fs,"isAlias"),Lt=xe(t=>!!t&&typeof t=="object"&&t[pe]===ns,"isDocument"),Dr=xe(t=>!!t&&typeof t=="object"&&t[pe]===Me,"isMap"),q=xe(t=>!!t&&typeof t=="object"&&t[pe]===Xo,"isPair"),M=xe(t=>!!t&&typeof t=="object"&&t[pe]===$e,"isScalar"),yr=xe(t=>!!t&&typeof t=="object"&&t[pe]===wt,"isSeq");function G(t){if(t&&typeof t=="object")switch(t[pe]){case Me:case wt:return!0}return!1}h(G,"i$g");xe(G,"isCollection");function U(t){if(t&&typeof t=="object")switch(t[pe]){case Fs:case Me:case $e:case wt:return!0}return!1}h(U,"A$9");xe(U,"isNode");const Qo=xe(t=>(M(t)||G(t))&&!!t.anchor,"hasAnchor");var xh=Object.defineProperty,ot=h((t,e)=>xh(t,"name",{value:e,configurable:!0}),"r$7");const se=Symbol("break visit"),Zo=Symbol("skip children"),Ee=Symbol("remove node");function at(t,e){const r=ws(e);Lt(t)?Ye(null,t.contents,r,Object.freeze([t]))===Ee&&(t.contents=null):Ye(null,t,r,Object.freeze([]))}h(at,"S$7");ot(at,"visit");at.BREAK=se;at.SKIP=Zo;at.REMOVE=Ee;function Ye(t,e,r,n){const s=Ss(t,e,r,n);if(U(s)||q(s))return Ls(t,n,s),Ye(t,s,r,n);if(typeof s!="symbol"){if(G(e)){n=Object.freeze(n.concat(e));for(let i=0;i<e.items.length;++i){const o=Ye(i,e.items[i],r,n);if(typeof o=="number")i=o-1;else{if(o===se)return se;o===Ee&&(e.items.splice(i,1),i-=1)}}}else if(q(e)){n=Object.freeze(n.concat(e));const i=Ye("key",e.key,r,n);if(i===se)return se;i===Ee&&(e.key=null);const o=Ye("value",e.value,r,n);if(o===se)return se;o===Ee&&(e.value=null)}}return s}h(Ye,"a$l");ot(Ye,"visit_");async function rn(t,e){const r=ws(e);Lt(t)?await ze(null,t.contents,r,Object.freeze([t]))===Ee&&(t.contents=null):await ze(null,t,r,Object.freeze([]))}h(rn,"y$f");ot(rn,"visitAsync");rn.BREAK=se;rn.SKIP=Zo;rn.REMOVE=Ee;async function ze(t,e,r,n){const s=await Ss(t,e,r,n);if(U(s)||q(s))return Ls(t,n,s),ze(t,s,r,n);if(typeof s!="symbol"){if(G(e)){n=Object.freeze(n.concat(e));for(let i=0;i<e.items.length;++i){const o=await ze(i,e.items[i],r,n);if(typeof o=="number")i=o-1;else{if(o===se)return se;o===Ee&&(e.items.splice(i,1),i-=1)}}}else if(q(e)){n=Object.freeze(n.concat(e));const i=await ze("key",e.key,r,n);if(i===se)return se;i===Ee&&(e.key=null);const o=await ze("value",e.value,r,n);if(o===se)return se;o===Ee&&(e.value=null)}}return s}h(ze,"b$k");ot(ze,"visitAsync_");function ws(t){return typeof t=="object"&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}h(ws,"z$2");ot(ws,"initVisitor");function Ss(t,e,r,n){if(typeof r=="function")return r(t,e,n);if(Dr(e))return r.Map?.(t,e,n);if(yr(e))return r.Seq?.(t,e,n);if(q(e))return r.Pair?.(t,e,n);if(M(e))return r.Scalar?.(t,e,n);if(St(e))return r.Alias?.(t,e,n)}h(Ss,"A$8");ot(Ss,"callVisitor");function Ls(t,e,r){const n=e[e.length-1];if(G(n))n.items[t]=r;else if(q(n))t==="key"?n.key=r:n.value=r;else if(Lt(n))n.contents=r;else{const s=St(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${s} parent`)}}h(Ls,"M$3");ot(Ls,"replaceNode");var Th=Object.defineProperty,ea=h((t,e)=>Th(t,"name",{value:e,configurable:!0}),"h$b");const jh={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Rh=ea(t=>t.replace(/[!,[\]{}]/g,e=>jh[e]),"escapeTagName");let Dt=class Le{static{h(this,"n")}static{ea(this,"Directives")}constructor(e,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Le.defaultYaml,e),this.tags=Object.assign({},Le.defaultTags,r)}clone(){const e=new Le(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new Le(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Le.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Le.defaultTags);break}return e}add(e,r){this.atNextDocument&&(this.yaml={explicit:Le.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Le.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),s=n.shift();switch(s){case"%TAG":{if(n.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[i,o]=n;return this.tags[i]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[i]=n;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const o=/^\d+\.\d+$/.test(i);return r(6,`Unsupported YAML version ${i}`,o),!1}}default:return r(0,`Unknown directive ${s}`,!0),!1}}tagName(e,r){if(e==="!")return"!";if(e[0]!=="!")return r(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(r(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&r("Verbatim tags must end with a >"),o)}const[,n,s]=e.match(/^(.*!)([^!]*)$/s);s||r(`The ${e} tag has no suffix`);const i=this.tags[n];if(i)try{return i+decodeURIComponent(s)}catch(o){return r(String(o)),null}return n==="!"?e:(r(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[r,n]of Object.entries(this.tags))if(e.startsWith(n))return r+Rh(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let s;if(e&&n.length>0&&U(e.contents)){const i={};at(e.contents,(o,a)=>{U(a)&&a.tag&&(i[a.tag]=!0)}),s=Object.keys(i)}else s=[];for(const[i,o]of n)i==="!!"&&o==="tag:yaml.org,2002:"||(!e||s.some(a=>a.startsWith(o)))&&r.push(`%TAG ${i} ${o}`);return r.join(`
16
- `)}};Dt.defaultYaml={explicit:!1,version:"1.2"};Dt.defaultTags={"!!":"tag:yaml.org,2002:"};var Mh=Object.defineProperty,vt=h((t,e)=>Mh(t,"name",{value:e,configurable:!0}),"c$d");function Os(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){const e=`Anchor must not contain whitespace or control characters: ${JSON.stringify(t)}`;throw new Error(e)}return!0}h(Os,"m$g");vt(Os,"anchorIsValid");function Ps(t){const e=new Set;return at(t,{Value(r,n){n.anchor&&e.add(n.anchor)}}),e}h(Ps,"h$a");vt(Ps,"anchorNames");function Ns(t,e){for(let r=1;;++r){const n=`${t}${r}`;if(!e.has(n))return n}}h(Ns,"u$r");vt(Ns,"findNewAnchor");function ta(t,e){const r=[],n=new Map;let s=null;return{onAnchor:vt(i=>{r.push(i),s??(s=Ps(t));const o=Ns(e,s);return s.add(o),o},"onAnchor"),setAnchors:vt(()=>{for(const i of r){const o=n.get(i);if(typeof o=="object"&&o.anchor&&(M(o.node)||G(o.node)))o.node.anchor=o.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=i,a}}},"setAnchors"),sourceObjects:n}}h(ta,"w$6");vt(ta,"createNodeAnchors");var _h=Object.defineProperty,Gh=h((t,e)=>_h(t,"name",{value:e,configurable:!0}),"d$h");function Je(t,e,r,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let s=0,i=n.length;s<i;++s){const o=n[s],a=Je(t,n,String(s),o);a===void 0?delete n[s]:a!==o&&(n[s]=a)}else if(n instanceof Map)for(const s of Array.from(n.keys())){const i=n.get(s),o=Je(t,n,s,i);o===void 0?n.delete(s):o!==i&&n.set(s,o)}else if(n instanceof Set)for(const s of Array.from(n)){const i=Je(t,n,s,s);i===void 0?n.delete(s):i!==s&&(n.delete(s),n.add(i))}else for(const[s,i]of Object.entries(n)){const o=Je(t,n,s,i);o===void 0?delete n[s]:o!==i&&(n[s]=o)}return t.call(e,r,n)}h(Je,"s$i");Gh(Je,"applyReviver");var Uh=Object.defineProperty,qh=h((t,e)=>Uh(t,"name",{value:e,configurable:!0}),"i$e");function oe(t,e,r){if(Array.isArray(t))return t.map((n,s)=>oe(n,String(s),r));if(t&&typeof t.toJSON=="function"){if(!r||!Qo(t))return t.toJSON(e,r);const n={aliasCount:0,count:1,res:void 0};r.anchors.set(t,n),r.onCreate=i=>{n.res=i,delete r.onCreate};const s=t.toJSON(e,r);return r.onCreate&&r.onCreate(s),s}return typeof t=="bigint"&&!r?.keep?Number(t):t}h(oe,"f$j");qh(oe,"toJS");var Kh=Object.defineProperty,Wh=h((t,e)=>Kh(t,"name",{value:e,configurable:!0}),"i$d");let Bs=class{static{h(this,"O")}static{Wh(this,"NodeBase")}constructor(e){Object.defineProperty(this,pe,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:i}={}){if(!Lt(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},a=oe(this,"",o);if(typeof s=="function")for(const{count:u,res:l}of o.anchors.values())s(l,u);return typeof i=="function"?Je(i,{"":a},"",a):a}};var Hh=Object.defineProperty,ss=h((t,e)=>Hh(t,"name",{value:e,configurable:!0}),"u$p");let ks=class extends Bs{static{h(this,"b")}static{ss(this,"Alias")}constructor(e){super(Fs),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,r){if(r?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let n;r?.aliasResolveCache?n=r.aliasResolveCache:(n=[],at(e,{Node:ss((i,o)=>{(St(o)||Qo(o))&&n.push(o)},"Node")}),r&&(r.aliasResolveCache=n));let s;for(const i of n){if(i===this)break;i.anchor===this.source&&(s=i)}return s}toJSON(e,r){if(!r)return{source:this.source};const{anchors:n,doc:s,maxAliasCount:i}=r,o=this.resolve(s,r);if(!o){const u=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(u)}let a=n.get(o);if(a||(oe(o,null,r),a=n.get(o)),a?.res===void 0){const u="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(u)}if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=Zt(s,o,n)),a.count*a.aliasCount>i)){const u="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(u)}return a.res}toString(e,r,n){const s=`*${this.source}`;if(e){if(Os(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(e.implicitKey)return`${s} `}return s}};function Zt(t,e,r){if(St(e)){const n=e.resolve(t),s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(G(e)){let n=0;for(const s of e.items){const i=Zt(t,s,r);i>n&&(n=i)}return n}else if(q(e)){const n=Zt(t,e.key,r),s=Zt(t,e.value,r);return Math.max(n,s)}return 1}h(Zt,"c$c");ss(Zt,"getAliasCount");var Vh=Object.defineProperty,ra=h((t,e)=>Vh(t,"name",{value:e,configurable:!0}),"L$6");const na=ra(t=>!t||typeof t!="function"&&typeof t!="object","isScalarValue");let P=class extends Bs{static{h(this,"o")}static{ra(this,"Scalar")}constructor(e){super($e),this.value=e}toJSON(e,r){return r?.keep?this.value:oe(this.value,e,r)}toString(){return String(this.value)}};P.BLOCK_FOLDED="BLOCK_FOLDED";P.BLOCK_LITERAL="BLOCK_LITERAL";P.PLAIN="PLAIN";P.QUOTE_DOUBLE="QUOTE_DOUBLE";P.QUOTE_SINGLE="QUOTE_SINGLE";var Yh=Object.defineProperty,sa=h((t,e)=>Yh(t,"name",{value:e,configurable:!0}),"h$8");const zh="tag:yaml.org,2002:";function ia(t,e,r){if(e){const n=r.filter(i=>i.tag===e),s=n.find(i=>!i.format)??n[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return r.find(n=>n.identify?.(t)&&!n.format)}h(ia,"A$7");sa(ia,"findTagObject");function At(t,e,r){if(Lt(t)&&(t=t.contents),U(t))return t;if(q(t)){const g=r.schema[Me].createNode?.(r.schema,null,r);return g.items.push(t),g}(t instanceof String||t instanceof Number||t instanceof Boolean||typeof BigInt<"u"&&t instanceof BigInt)&&(t=t.valueOf());const{aliasDuplicateObjects:n,onAnchor:s,onTagObj:i,schema:o,sourceObjects:a}=r;let u;if(n&&t&&typeof t=="object"){if(u=a.get(t),u)return u.anchor??(u.anchor=s(t)),new ks(u.anchor);u={anchor:null,node:null},a.set(t,u)}e?.startsWith("!!")&&(e=zh+e.slice(2));let l=ia(t,e,o.tags);if(!l){if(t&&typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object"){const g=new P(t);return u&&(u.node=g),g}l=t instanceof Map?o[Me]:Symbol.iterator in Object(t)?o[wt]:o[Me]}i&&(i(l),delete r.onTagObj);const f=l?.createNode?l.createNode(r.schema,t,r):typeof l?.nodeClass?.from=="function"?l.nodeClass.from(r.schema,t,r):new P(t);return e?f.tag=e:l.default||(f.tag=l.tag),u&&(u.node=f),f}h(At,"B$5");sa(At,"createNode");var Jh=Object.defineProperty,nn=h((t,e)=>Jh(t,"name",{value:e,configurable:!0}),"i$c");function ir(t,e,r){let n=r;for(let s=e.length-1;s>=0;--s){const i=e[s];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const o=[];o[i]=n,n=o}else n=new Map([[i,n]])}return At(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:nn(()=>{throw new Error("This should not happen, please report a bug.")},"onAnchor"),schema:t,sourceObjects:new Map})}h(ir,"c$b");nn(ir,"collectionFromPath");const Vt=nn(t=>t==null||typeof t=="object"&&!!t[Symbol.iterator]().next().done,"isEmptyPath");let oa=class extends Bs{static{h(this,"b")}static{nn(this,"Collection")}constructor(e,r){super(e),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(e){const r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(r.schema=e),r.items=r.items.map(n=>U(n)||q(n)?n.clone(e):n),this.range&&(r.range=this.range.slice()),r}addIn(e,r){if(Vt(e))this.add(r);else{const[n,...s]=e,i=this.get(n,!0);if(G(i))i.addIn(s,r);else if(i===void 0&&this.schema)this.set(n,ir(this.schema,s,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}deleteIn(e){const[r,...n]=e;if(n.length===0)return this.delete(r);const s=this.get(r,!0);if(G(s))return s.deleteIn(n);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}getIn(e,r){const[n,...s]=e,i=this.get(n,!0);return s.length===0?!r&&M(i)?i.value:i:G(i)?i.getIn(s,r):void 0}hasAllNullValues(e){return this.items.every(r=>{if(!q(r))return!1;const n=r.value;return n==null||e&&M(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){const[r,...n]=e;if(n.length===0)return this.has(r);const s=this.get(r,!0);return G(s)?s.hasIn(n):!1}setIn(e,r){const[n,...s]=e;if(s.length===0)this.set(n,r);else{const i=this.get(n,!0);if(G(i))i.setIn(s,r);else if(i===void 0&&this.schema)this.set(n,ir(this.schema,s,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}};var Xh=Object.defineProperty,Is=h((t,e)=>Xh(t,"name",{value:e,configurable:!0}),"r$6");const Qh=Is(t=>t.replace(/^(?!$)(?: $)?/gm,"#"),"stringifyComment");function be(t,e){return/^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}h(be,"s$h");Is(be,"indentComment");const Xe=Is((t,e,r)=>t.endsWith(`
17
- `)?be(r,e):r.includes(`
18
- `)?`
19
- `+be(r,e):(t.endsWith(" ")?"":" ")+r,"lineComment");var Zh=Object.defineProperty,aa=h((t,e)=>Zh(t,"name",{value:e,configurable:!0}),"O$3");const ua="flow",is="block",kr="quoted";function br(t,e,r="flow",{indentAtStart:n,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:a}={}){if(!s||s<0)return t;s<i&&(i=0);const u=Math.max(1+i,1+s-e.length);if(t.length<=u)return t;const l=[],f={};let g=s-e.length;typeof n=="number"&&(n>s-Math.max(2,i)?l.push(0):g=s-n);let m,v,$=!1,b=-1,F=-1,E=-1;r===is&&(b=os(t,b,e.length),b!==-1&&(g=b+u));for(let c;c=t[b+=1];){if(r===kr&&c==="\\"){switch(F=b,t[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}E=b}if(c===`
20
- `)r===is&&(b=os(t,b,e.length)),g=b+e.length+u,m=void 0;else{if(c===" "&&v&&v!==" "&&v!==`
21
- `&&v!==" "){const D=t[b+1];D&&D!==" "&&D!==`
22
- `&&D!==" "&&(m=b)}if(b>=g)if(m)l.push(m),g=m+u,m=void 0;else if(r===kr){for(;v===" "||v===" ";)v=c,c=t[b+=1],$=!0;const D=b>E+1?b-2:F-1;if(f[D])return t;l.push(D),f[D]=!0,g=D+u,m=void 0}else $=!0}v=c}if($&&a&&a(),l.length===0)return t;o&&o();let d=t.slice(0,l[0]);for(let c=0;c<l.length;++c){const D=l[c],y=l[c+1]||t.length;D===0?d=`
23
- ${e}${t.slice(0,y)}`:(r===kr&&f[D]&&(d+=`${t[D]}\\`),d+=`
24
- ${e}${t.slice(D+1,y)}`)}return d}h(br,"q$4");aa(br,"foldFlowLines");function os(t,e,r){let n=e,s=e+1,i=t[s];for(;i===" "||i===" ";)if(e<s+r)i=t[++e];else{do i=t[++e];while(i&&i!==`
25
- `);n=e,s=e+1,i=t[s]}return n}h(os,"E$4");aa(os,"consumeMoreIndentedLines");var ep=Object.defineProperty,ye=h((t,e)=>ep(t,"name",{value:e,configurable:!0}),"d$f");const sn=ye((t,e)=>({indentAtStart:e?t.indent.length:t.indentAtStart,lineWidth:t.options.lineWidth,minContentWidth:t.options.minContentWidth}),"getFoldOptions"),on=ye(t=>/^(%|---|\.\.\.)/m.test(t),"containsDocumentMarker");function ca(t,e,r){if(!e||e<0)return!1;const n=e-r,s=t.length;if(s<=n)return!1;for(let i=0,o=0;i<s;++i)if(t[i]===`
26
- `){if(i-o>n)return!0;if(o=i+1,s-o<=n)return!1}return!0}h(ca,"M$2");ye(ca,"lineLengthOverLimit");function yt(t,e){const r=JSON.stringify(t);if(e.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=e,s=e.options.doubleQuotedMinMultiLineLength,i=e.indent||(on(t)?" ":"");let o="",a=0;for(let u=0,l=r[u];l;l=r[++u])if(l===" "&&r[u+1]==="\\"&&r[u+2]==="n"&&(o+=r.slice(a,u)+"\\ ",u+=1,a=u,l="\\"),l==="\\")switch(r[u+1]){case"u":{o+=r.slice(a,u);const f=r.substr(u+2,4);switch(f){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:f.substr(0,2)==="00"?o+="\\x"+f.substr(2):o+=r.substr(u,6)}u+=5,a=u+1}break;case"n":if(n||r[u+2]==='"'||r.length<s)u+=1;else{for(o+=r.slice(a,u)+`
27
-
28
- `;r[u+2]==="\\"&&r[u+3]==="n"&&r[u+4]!=='"';)o+=`
29
- `,u+=2;o+=i,r[u+2]===" "&&(o+="\\"),u+=1,a=u+1}break;default:u+=1}return o=a?o+r.slice(a):r,n?o:br(o,i,kr,sn(e,!1))}h(yt,"k$8");ye(yt,"doubleQuotedString");function Gr(t,e){if(e.options.singleQuote===!1||e.implicitKey&&t.includes(`
30
- `)||/[ \t]\n|\n[ \t]/.test(t))return yt(t,e);const r=e.indent||(on(t)?" ":""),n="'"+t.replace(/'/g,"''").replace(/\n+/g,`$&
31
- ${r}`)+"'";return e.implicitKey?n:br(n,r,ua,sn(e,!1))}h(Gr,"B$4");ye(Gr,"singleQuotedString");function Qe(t,e){const{singleQuote:r}=e.options;let n;if(r===!1)n=yt;else{const s=t.includes('"'),i=t.includes("'");s&&!i?n=Gr:i&&!s?n=yt:n=r?Gr:yt}return n(t,e)}h(Qe,"S$6");ye(Qe,"quotedString");let as;try{as=new RegExp(`(^|(?<!
32
- ))
33
- +(?!
34
- |$)`,"g")}catch{as=/\n+(?!\n|$)/g}function er({comment:t,type:e,value:r},n,s,i){const{blockQuote:o,commentString:a,lineWidth:u}=n.options;if(!o||/\n[\t ]+$/.test(r))return Qe(r,n);const l=n.indent||(n.forceBlockIndent||on(r)?" ":""),f=o==="literal"?!0:o==="folded"||e===P.BLOCK_FOLDED?!1:e===P.BLOCK_LITERAL?!0:!ca(r,u,l.length);if(!r)return f?`|
35
- `:`>
36
- `;let g,m;for(m=r.length;m>0;--m){const D=r[m-1];if(D!==`
37
- `&&D!==" "&&D!==" ")break}let v=r.substring(m);const $=v.indexOf(`
38
- `);$===-1?g="-":r===v||$!==v.length-1?(g="+",i&&i()):g="",v&&(r=r.slice(0,-v.length),v[v.length-1]===`
39
- `&&(v=v.slice(0,-1)),v=v.replace(as,`$&${l}`));let b=!1,F,E=-1;for(F=0;F<r.length;++F){const D=r[F];if(D===" ")b=!0;else if(D===`
40
- `)E=F;else break}let d=r.substring(0,E<F?E+1:F);d&&(r=r.substring(d.length),d=d.replace(/\n+/g,`$&${l}`));let c=(b?l?"2":"1":"")+g;if(t&&(c+=" "+a(t.replace(/ ?[\r\n]+/g," ")),s&&s()),!f){const D=r.replace(/\n+/g,`
41
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`);let y=!1;const p=sn(n,!0);o!=="folded"&&e!==P.BLOCK_FOLDED&&(p.onOverflow=()=>{y=!0});const C=br(`${d}${D}${v}`,l,is,p);if(!y)return`>${c}
42
- ${l}${C}`}return r=r.replace(/\n+/g,`$&${l}`),`|${c}
43
- ${l}${d}${r}${v}`}h(er,"D$3");ye(er,"blockString");function la(t,e,r,n){const{type:s,value:i}=t,{actualString:o,implicitKey:a,indent:u,indentStep:l,inFlow:f}=e;if(a&&i.includes(`
44
- `)||f&&/[[\]{},]/.test(i))return Qe(i,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||f||!i.includes(`
45
- `)?Qe(i,e):er(t,e,r,n);if(!a&&!f&&s!==P.PLAIN&&i.includes(`
46
- `))return er(t,e,r,n);if(on(i)){if(u==="")return e.forceBlockIndent=!0,er(t,e,r,n);if(a&&u===l)return Qe(i,e)}const g=i.replace(/\n+/g,`$&
47
- ${u}`);if(o){const m=ye(b=>b.default&&b.tag!=="tag:yaml.org,2002:str"&&b.test?.test(g),"test"),{compat:v,tags:$}=e.doc.schema;if($.some(m)||v?.some(m))return Qe(i,e)}return a?g:br(g,u,ua,sn(e,!1))}h(la,"m$f");ye(la,"plainString");function Ot(t,e,r,n){const{implicitKey:s,inFlow:i}=e,o=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)});let{type:a}=t;a!==P.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=P.QUOTE_DOUBLE);const u=ye(f=>{switch(f){case P.BLOCK_FOLDED:case P.BLOCK_LITERAL:return s||i?Qe(o.value,e):er(o,e,r,n);case P.QUOTE_DOUBLE:return yt(o.value,e);case P.QUOTE_SINGLE:return Gr(o.value,e);case P.PLAIN:return la(o,e,r,n);default:return null}},"_stringify");let l=u(a);if(l===null){const{defaultKeyType:f,defaultStringType:g}=e.options,m=s&&f||g;if(l=u(m),l===null)throw new Error(`Unsupported default string type ${m}`)}return l}h(Ot,"R$4");ye(Ot,"stringifyString");var tp=Object.defineProperty,Er=h((t,e)=>tp(t,"name",{value:e,configurable:!0}),"s$g");function xs(t,e){const r=Object.assign({blockQuote:!0,commentString:Qh,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e);let n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:t,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}h(xs,"w$5");Er(xs,"createStringifyContext");function fa(t,e){if(e.tag){const s=t.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)??s[0]}let r,n;if(M(e)){n=e.value;let s=t.filter(i=>i.identify?.(n));if(s.length>1){const i=s.filter(o=>o.test);i.length>0&&(s=i)}r=s.find(i=>i.format===e.format)??s.find(i=>!i.format)}else n=e,r=t.find(s=>s.nodeClass&&n instanceof s.nodeClass);if(!r){const s=n?.constructor?.name??(n===null?"null":typeof n);throw new Error(`Tag not resolved for ${s} value`)}return r}h(fa,"b$h");Er(fa,"getTagObject");function ha(t,e,{anchors:r,doc:n}){if(!n.directives)return"";const s=[],i=(M(t)||G(t))&&t.anchor;i&&Os(i)&&(r.add(i),s.push(`&${i}`));const o=t.tag??(e.default?null:e.tag);return o&&s.push(n.directives.tagString(o)),s.join(" ")}h(ha,"A$6");Er(ha,"stringifyProps");function et(t,e,r,n){if(q(t))return t.toString(e,r,n);if(St(t)){if(e.doc.directives)return t.toString(e);if(e.resolvedAliases?.has(t))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let s;const i=U(t)?t:e.doc.createNode(t,{onTagObj:Er(u=>s=u,"onTagObj")});s??(s=fa(e.doc.schema.tags,i));const o=ha(i,s,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);const a=typeof s.stringify=="function"?s.stringify(i,e,r,n):M(i)?Ot(i,e,r,n):i.toString(e,r,n);return o?M(i)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o}
48
- ${e.indent}${a}`:a}h(et,"O$2");Er(et,"stringify");var rp=Object.defineProperty,np=h((t,e)=>rp(t,"name",{value:e,configurable:!0}),"D$2");function pa({key:t,value:e},r,n,s){const{allNullValues:i,doc:o,indent:a,indentStep:u,options:{commentString:l,indentSeq:f,simpleKeys:g}}=r;let m=U(t)&&t.comment||null;if(g){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(G(t)||!U(t)&&typeof t=="object"){const C="With simple keys, collection cannot be used as a key value";throw new Error(C)}}let v=!g&&(!t||m&&e==null&&!r.inFlow||G(t)||(M(t)?t.type===P.BLOCK_FOLDED||t.type===P.BLOCK_LITERAL:typeof t=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!v&&(g||!i),indent:a+u});let $=!1,b=!1,F=et(t,r,()=>$=!0,()=>b=!0);if(!v&&!r.inFlow&&F.length>1024){if(g)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");v=!0}if(r.inFlow){if(i||e==null)return $&&n&&n(),F===""?"?":v?`? ${F}`:F}else if(i&&!g||e==null&&v)return F=`? ${F}`,m&&!$?F+=Xe(F,r.indent,l(m)):b&&s&&s(),F;$&&(m=null),v?(m&&(F+=Xe(F,r.indent,l(m))),F=`? ${F}
49
- ${a}:`):(F=`${F}:`,m&&(F+=Xe(F,r.indent,l(m))));let E,d,c;U(e)?(E=!!e.spaceBefore,d=e.commentBefore,c=e.comment):(E=!1,d=null,c=null,e&&typeof e=="object"&&(e=o.createNode(e))),r.implicitKey=!1,!v&&!m&&M(e)&&(r.indentAtStart=F.length+1),b=!1,!f&&u.length>=2&&!r.inFlow&&!v&&yr(e)&&!e.flow&&!e.tag&&!e.anchor&&(r.indent=r.indent.substring(2));let D=!1;const y=et(e,r,()=>D=!0,()=>b=!0);let p=" ";if(m||E||d){if(p=E?`
50
- `:"",d){const C=l(d);p+=`
51
- ${be(C,r.indent)}`}y===""&&!r.inFlow?p===`
52
- `&&c&&(p=`
53
-
54
- `):p+=`
55
- ${r.indent}`}else if(!v&&G(e)){const C=y[0],A=y.indexOf(`
56
- `),S=A!==-1,L=r.inFlow??e.flow??e.items.length===0;if(S||!L){let T=!1;if(S&&(C==="&"||C==="!")){let N=y.indexOf(" ");C==="&"&&N!==-1&&N<A&&y[N+1]==="!"&&(N=y.indexOf(" ",N+1)),(N===-1||A<N)&&(T=!0)}T||(p=`
57
- ${r.indent}`)}}else(y===""||y[0]===`
58
- `)&&(p="");return F+=p+y,r.inFlow?D&&n&&n():c&&!D?F+=Xe(F,r.indent,l(c)):b&&s&&s(),F}h(pa,"R$3");np(pa,"stringifyPair");var sp=Object.defineProperty,da=h((t,e)=>sp(t,"name",{value:e,configurable:!0}),"u$m");function ip(t,...e){t==="debug"&&console.log(...e)}h(ip,"e$4");da(ip,"debug");function Ts(t,e){(t==="debug"||t==="warn")&&console.warn(e)}h(Ts,"f$h");da(Ts,"warn");var op=Object.defineProperty,Ze=h((t,e)=>op(t,"name",{value:e,configurable:!0}),"s$f");const Lr="<<",Ie={identify:Ze(t=>t===Lr||typeof t=="symbol"&&t.description===Lr,"identify"),default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:Ze(()=>Object.assign(new P(Symbol(Lr)),{addToJSMap:js}),"resolve"),stringify:Ze(()=>Lr,"stringify")},ap=Ze((t,e)=>(Ie.identify(e)||M(e)&&(!e.type||e.type===P.PLAIN)&&Ie.identify(e.value))&&t?.doc.schema.tags.some(r=>r.tag===Ie.tag&&r.default),"isMergeKey");function js(t,e,r){const n=Rs(t,r);if(yr(n))for(const s of n.items)Ir(t,e,s);else if(Array.isArray(n))for(const s of n)Ir(t,e,s);else Ir(t,e,n)}h(js,"d$e");Ze(js,"addMergeToJSMap");function Ir(t,e,r){const n=Rs(t,r);if(!Dr(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,t,Map);for(const[i,o]of s)e instanceof Map?e.has(i)||e.set(i,o):e instanceof Set?e.add(i):Object.prototype.hasOwnProperty.call(e,i)||Object.defineProperty(e,i,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}h(Ir,"l$e");Ze(Ir,"mergeValue");function Rs(t,e){return t&&St(e)?e.resolve(t.doc,t):e}h(Rs,"g$b");Ze(Rs,"resolveAliasValue");var up=Object.defineProperty,ma=h((t,e)=>up(t,"name",{value:e,configurable:!0}),"s$e");function Ms(t,e,{key:r,value:n}){if(U(r)&&r.addToJSMap)r.addToJSMap(t,e,n);else if(ap(t,r))js(t,e,n);else{const s=oe(r,"",t);if(e instanceof Map)e.set(s,oe(n,s,t));else if(e instanceof Set)e.add(s);else{const i=ga(r,s,t),o=oe(n,i,t);i in e?Object.defineProperty(e,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[i]=o}}return e}h(Ms,"b$g");ma(Ms,"addPairToJSMap");function ga(t,e,r){if(e===null)return"";if(typeof e!="object")return String(e);if(U(t)&&r?.doc){const n=xs(r.doc,{});n.anchors=new Set;for(const i of r.anchors.keys())n.anchors.add(i.anchor);n.inFlow=!0,n.inStringifyKey=!0;const s=t.toString(n);if(!r.mapKeyWarned){let i=JSON.stringify(s);i.length>40&&(i=i.substring(0,36)+'..."'),Ts(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return s}return JSON.stringify(e)}h(ga,"p$b");ma(ga,"stringifyKey");var cp=Object.defineProperty,Da=h((t,e)=>cp(t,"name",{value:e,configurable:!0}),"o$7");function an(t,e,r){const n=At(t,void 0,r),s=At(e,void 0,r);return new ae(n,s)}h(an,"m$e");Da(an,"createPair");let ae=class ya{static{h(this,"i")}static{Da(this,"Pair")}constructor(e,r=null){Object.defineProperty(this,pe,{value:Xo}),this.key=e,this.value=r}clone(e){let{key:r,value:n}=this;return U(r)&&(r=r.clone(e)),U(n)&&(n=n.clone(e)),new ya(r,n)}toJSON(e,r){const n=r?.mapAsMap?new Map:{};return Ms(r,n,this)}toString(e,r,n){return e?.doc?pa(this,e,r,n):JSON.stringify(this)}};var lp=Object.defineProperty,un=h((t,e)=>lp(t,"name",{value:e,configurable:!0}),"$$2");function _s(t,e,r){return(e.inFlow??t.flow?Ea:ba)(t,e,r)}h(_s,"P$3");un(_s,"stringifyCollection");function ba({comment:t,items:e},r,{blockItemPrefix:n,flowChars:s,itemIndent:i,onChompKeep:o,onComment:a}){const{indent:u,options:{commentString:l}}=r,f=Object.assign({},r,{indent:i,type:null});let g=!1;const m=[];for(let $=0;$<e.length;++$){const b=e[$];let F=null;if(U(b))!g&&b.spaceBefore&&m.push(""),or(r,m,b.commentBefore,g),b.comment&&(F=b.comment);else if(q(b)){const d=U(b.key)?b.key:null;d&&(!g&&d.spaceBefore&&m.push(""),or(r,m,d.commentBefore,g))}g=!1;let E=et(b,f,()=>F=null,()=>g=!0);F&&(E+=Xe(E,i,l(F))),g&&F&&(g=!1),m.push(n+E)}let v;if(m.length===0)v=s.start+s.end;else{v=m[0];for(let $=1;$<m.length;++$){const b=m[$];v+=b?`
59
- ${u}${b}`:`
60
- `}}return t?(v+=`
61
- `+be(l(t),u),a&&a()):g&&o&&o(),v}h(ba,"b$f");un(ba,"stringifyBlockCollection");function Ea({items:t},e,{flowChars:r,itemIndent:n}){const{indent:s,indentStep:i,flowCollectionPadding:o,options:{commentString:a}}=e;n+=i;const u=Object.assign({},e,{indent:n,inFlow:!0,type:null});let l=!1,f=0;const g=[];for(let $=0;$<t.length;++$){const b=t[$];let F=null;if(U(b))b.spaceBefore&&g.push(""),or(e,g,b.commentBefore,!1),b.comment&&(F=b.comment);else if(q(b)){const d=U(b.key)?b.key:null;d&&(d.spaceBefore&&g.push(""),or(e,g,d.commentBefore,!1),d.comment&&(l=!0));const c=U(b.value)?b.value:null;c?(c.comment&&(F=c.comment),c.commentBefore&&(l=!0)):b.value==null&&d?.comment&&(F=d.comment)}F&&(l=!0);let E=et(b,u,()=>F=null);l||(l=g.length>f||E.includes(`
62
- `)),$<t.length-1?E+=",":e.options.trailingComma&&(e.options.lineWidth>0&&(l||(l=g.reduce((d,c)=>d+c.length+2,2)+(E.length+2)>e.options.lineWidth)),l&&(E+=",")),F&&(E+=Xe(E,n,a(F))),g.push(E),f=g.length}const{start:m,end:v}=r;if(g.length===0)return m+v;if(!l){const $=g.reduce((b,F)=>b+F.length+2,2);l=e.options.lineWidth>0&&$>e.options.lineWidth}if(l){let $=m;for(const b of g)$+=b?`
63
- ${i}${s}${b}`:`
64
- `;return`${$}
65
- ${s}${v}`}else return`${m}${o}${g.join(" ")}${o}${v}`}h(Ea,"N$5");un(Ea,"stringifyFlowCollection");function or({indent:t,options:{commentString:e}},r,n,s){if(n&&s&&(n=n.replace(/^\n+/,"")),n){const i=be(e(n),t);r.push(i.trimStart())}}h(or,"C$5");un(or,"addCommentBefore");var fp=Object.defineProperty,us=h((t,e)=>fp(t,"name",{value:e,configurable:!0}),"m$d");function Re(t,e){const r=M(e)?e.value:e;for(const n of t)if(q(n)&&(n.key===e||n.key===r||M(n.key)&&n.key.value===r))return n}h(Re,"f$f");us(Re,"findPair");let fe=class extends oa{static{h(this,"N")}static{us(this,"YAMLMap")}static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Me,e),this.items=[]}static from(e,r,n){const{keepUndefined:s,replacer:i}=n,o=new this(e),a=us((u,l)=>{if(typeof i=="function")l=i.call(r,u,l);else if(Array.isArray(i)&&!i.includes(u))return;(l!==void 0||s)&&o.items.push(an(u,l,n))},"add");if(r instanceof Map)for(const[u,l]of r)a(u,l);else if(r&&typeof r=="object")for(const u of Object.keys(r))a(u,r[u]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,r){let n;q(e)?n=e:!e||typeof e!="object"||!("key"in e)?n=new ae(e,e?.value):n=new ae(e.key,e.value);const s=Re(this.items,n.key),i=this.schema?.sortMapEntries;if(s){if(!r)throw new Error(`Key ${n.key} already set`);M(s.value)&&na(n.value)?s.value.value=n.value:s.value=n.value}else if(i){const o=this.items.findIndex(a=>i(n,a)<0);o===-1?this.items.push(n):this.items.splice(o,0,n)}else this.items.push(n)}delete(e){const r=Re(this.items,e);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(e,r){const n=Re(this.items,e)?.value;return(!r&&M(n)?n.value:n)??void 0}has(e){return!!Re(this.items,e)}set(e,r){this.add(new ae(e,r),!0)}toJSON(e,r,n){const s=n?new n:r?.mapAsMap?new Map:{};r?.onCreate&&r.onCreate(s);for(const i of this.items)Ms(r,s,i);return s}toString(e,r,n){if(!e)return JSON.stringify(this);for(const s of this.items)if(!q(s))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),_s(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:r})}};var hp=Object.defineProperty,pp=h((t,e)=>hp(t,"name",{value:e,configurable:!0}),"a$i");const Pt={collection:"map",default:!0,nodeClass:fe,tag:"tag:yaml.org,2002:map",resolve(t,e){return Dr(t)||e("Expected a mapping for this tag"),t},createNode:pp((t,e,r)=>fe.from(t,e,r),"createNode")};var dp=Object.defineProperty,va=h((t,e)=>dp(t,"name",{value:e,configurable:!0}),"m$c");let tt=class extends oa{static{h(this,"b")}static{va(this,"YAMLSeq")}static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(wt,e),this.items=[]}add(e){this.items.push(e)}delete(e){const r=Yt(e);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(e,r){const n=Yt(e);if(typeof n!="number")return;const s=this.items[n];return!r&&M(s)?s.value:s}has(e){const r=Yt(e);return typeof r=="number"&&r<this.items.length}set(e,r){const n=Yt(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);const s=this.items[n];M(s)&&na(r)?s.value=r:this.items[n]=r}toJSON(e,r){const n=[];r?.onCreate&&r.onCreate(n);let s=0;for(const i of this.items)n.push(oe(i,String(s++),r));return n}toString(e,r,n){return e?_s(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:r}):JSON.stringify(this)}static from(e,r,n){const{replacer:s}=n,i=new this(e);if(r&&Symbol.iterator in Object(r)){let o=0;for(let a of r){if(typeof s=="function"){const u=r instanceof Set?a:String(o++);a=s.call(r,u,a)}i.items.push(At(a,void 0,n))}}return i}};function Yt(t){let e=M(t)?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}h(Yt,"f$e");va(Yt,"asItemIndex");var mp=Object.defineProperty,gp=h((t,e)=>mp(t,"name",{value:e,configurable:!0}),"t$5");const Nt={collection:"seq",default:!0,nodeClass:tt,tag:"tag:yaml.org,2002:seq",resolve(t,e){return yr(t)||e("Expected a sequence for this tag"),t},createNode:gp((t,e,r)=>tt.from(t,e,r),"createNode")};var Dp=Object.defineProperty,Bi=h((t,e)=>Dp(t,"name",{value:e,configurable:!0}),"i$9");const cn={identify:Bi(t=>typeof t=="string","identify"),default:!0,tag:"tag:yaml.org,2002:str",resolve:Bi(t=>t,"resolve"),stringify(t,e,r,n){return e=Object.assign({actualString:!0},e),Ot(t,e,r,n)}};var yp=Object.defineProperty,Or=h((t,e)=>yp(t,"name",{value:e,configurable:!0}),"l$d");const ln={identify:Or(t=>t==null,"identify"),createNode:Or(()=>new P(null),"createNode"),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:Or(()=>new P(null),"resolve"),stringify:Or(({source:t},e)=>typeof t=="string"&&ln.test.test(t)?t:e.options.nullStr,"stringify")};var bp=Object.defineProperty,ki=h((t,e)=>bp(t,"name",{value:e,configurable:!0}),"e$3");const Gs={identify:ki(t=>typeof t=="boolean","identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:ki(t=>new P(t[0]==="t"||t[0]==="T"),"resolve"),stringify({source:t,value:e},r){if(t&&Gs.test.test(t)){const n=t[0]==="t"||t[0]==="T";if(e===n)return t}return e?r.options.trueStr:r.options.falseStr}};var Ep=Object.defineProperty,vp=h((t,e)=>Ep(t,"name",{value:e,configurable:!0}),"g$a");function de({format:t,minFractionDigits:e,tag:r,value:n}){if(typeof n=="bigint")return String(n);const s=typeof n=="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let i=Object.is(n,-0)?"-0":JSON.stringify(n);if(!t&&e&&(!r||r==="tag:yaml.org,2002:float")&&/^-?\d/.test(i)&&!i.includes("e")){let o=i.indexOf(".");o<0&&(o=i.length,i+=".");let a=e-(i.length-o-1);for(;a-- >0;)i+="0"}return i}h(de,"y$c");vp(de,"stringifyNumber");var Ap=Object.defineProperty,ar=h((t,e)=>Ap(t,"name",{value:e,configurable:!0}),"o$6");const Aa={identify:ar(t=>typeof t=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:ar(t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,"resolve"),stringify:de},Ca={identify:ar(t=>typeof t=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:ar(t=>parseFloat(t),"resolve"),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():de(t)}},$a={identify:ar(t=>typeof t=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){const e=new P(parseFloat(t)),r=t.indexOf(".");return r!==-1&&t[t.length-1]==="0"&&(e.minFractionDigits=t.length-r-1),e},stringify:de};var Cp=Object.defineProperty,ve=h((t,e)=>Cp(t,"name",{value:e,configurable:!0}),"r$3");const fn=ve(t=>typeof t=="bigint"||Number.isInteger(t),"intIdentify"),Us=ve((t,e,r,{intAsBigInt:n})=>n?BigInt(t):parseInt(t.substring(e),r),"intResolve");function qs(t,e,r){const{value:n}=t;return fn(n)&&n>=0?r+n.toString(e):de(t)}h(qs,"g$9");ve(qs,"intStringify");const Fa={identify:ve(t=>fn(t)&&t>=0,"identify"),default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:ve((t,e,r)=>Us(t,2,8,r),"resolve"),stringify:ve(t=>qs(t,8,"0o"),"stringify")},wa={identify:fn,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:ve((t,e,r)=>Us(t,0,10,r),"resolve"),stringify:de},Sa={identify:ve(t=>fn(t)&&t>=0,"identify"),default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:ve((t,e,r)=>Us(t,2,16,r),"resolve"),stringify:ve(t=>qs(t,16,"0x"),"stringify")},$p=[Pt,Nt,cn,ln,Gs,Fa,wa,Sa,Aa,Ca,$a];var Fp=Object.defineProperty,ie=h((t,e)=>Fp(t,"name",{value:e,configurable:!0}),"e$2");function cs(t){return typeof t=="bigint"||Number.isInteger(t)}h(cs,"i$8");ie(cs,"intIdentify");const Pr=ie(({value:t})=>JSON.stringify(t),"stringifyJSON"),wp=[{identify:ie(t=>typeof t=="string","identify"),default:!0,tag:"tag:yaml.org,2002:str",resolve:ie(t=>t,"resolve"),stringify:Pr},{identify:ie(t=>t==null,"identify"),createNode:ie(()=>new P(null),"createNode"),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:ie(()=>null,"resolve"),stringify:Pr},{identify:ie(t=>typeof t=="boolean","identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:ie(t=>t==="true","resolve"),stringify:Pr},{identify:cs,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:ie((t,e,{intAsBigInt:r})=>r?BigInt(t):parseInt(t,10),"resolve"),stringify:ie(({value:t})=>cs(t)?t.toString():JSON.stringify(t),"stringify")},{identify:ie(t=>typeof t=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:ie(t=>parseFloat(t),"resolve"),stringify:Pr}],Sp={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},Lp=[Pt,Nt].concat(wp,Sp);var Op=Object.defineProperty,Pp=h((t,e)=>Op(t,"name",{value:e,configurable:!0}),"b$c");const Ks={identify:Pp(t=>t instanceof Uint8Array,"identify"),default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if(typeof atob=="function"){const r=atob(t.replace(/[\n\r]/g,"")),n=new Uint8Array(r.length);for(let s=0;s<r.length;++s)n[s]=r.charCodeAt(s);return n}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),t},stringify({comment:t,type:e,value:r},n,s,i){if(!r)return"";const o=r;let a;if(typeof btoa=="function"){let u="";for(let l=0;l<o.length;++l)u+=String.fromCharCode(o[l]);a=btoa(u)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=P.BLOCK_LITERAL),e!==P.QUOTE_DOUBLE){const u=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),l=Math.ceil(a.length/u),f=new Array(l);for(let g=0,m=0;g<l;++g,m+=u)f[g]=a.substr(m,u);a=f.join(e===P.BLOCK_LITERAL?`
66
- `:" ")}return Ot({comment:t,type:e,value:a},n,s,i)}};var Np=Object.defineProperty,La=h((t,e)=>Np(t,"name",{value:e,configurable:!0}),"f$a");function Ws(t,e){if(yr(t))for(let r=0;r<t.items.length;++r){let n=t.items[r];if(!q(n)){if(Dr(n)){n.items.length>1&&e("Each pair must have its own sequence indicator");const s=n.items[0]||new ae(new P(null));if(n.commentBefore&&(s.key.commentBefore=s.key.commentBefore?`${n.commentBefore}
67
- ${s.key.commentBefore}`:n.commentBefore),n.comment){const i=s.value??s.key;i.comment=i.comment?`${n.comment}
68
- ${i.comment}`:n.comment}n=s}t.items[r]=q(n)?n:new ae(n)}}else e("Expected a sequence for this tag");return t}h(Ws,"y$8");La(Ws,"resolvePairs");function Hs(t,e,r){const{replacer:n}=r,s=new tt(t);s.tag="tag:yaml.org,2002:pairs";let i=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof n=="function"&&(o=n.call(e,String(i++),o));let a,u;if(Array.isArray(o))if(o.length===2)a=o[0],u=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const l=Object.keys(o);if(l.length===1)a=l[0],u=o[a];else throw new TypeError(`Expected tuple with one key, not ${l.length} keys`)}else a=o;s.items.push(an(a,u,r))}return s}h(Hs,"u$h");La(Hs,"createPairs");const Vs={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Ws,createNode:Hs};var Bp=Object.defineProperty,ls=h((t,e)=>Bp(t,"name",{value:e,configurable:!0}),"p$8");let xr=class Oa extends tt{static{h(this,"a")}static{ls(this,"YAMLOMap")}constructor(){super(),this.add=fe.prototype.add.bind(this),this.delete=fe.prototype.delete.bind(this),this.get=fe.prototype.get.bind(this),this.has=fe.prototype.has.bind(this),this.set=fe.prototype.set.bind(this),this.tag=Oa.tag}toJSON(e,r){if(!r)return super.toJSON(e);const n=new Map;r?.onCreate&&r.onCreate(n);for(const s of this.items){let i,o;if(q(s)?(i=oe(s.key,"",r),o=oe(s.value,i,r)):i=oe(s,"",r),n.has(i))throw new Error("Ordered maps must not include duplicate keys");n.set(i,o)}return n}static from(e,r,n){const s=Hs(e,r,n),i=new this;return i.items=s.items,i}};xr.tag="tag:yaml.org,2002:omap";const Ys={collection:"seq",identify:ls(t=>t instanceof Map,"identify"),nodeClass:xr,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){const r=Ws(t,e),n=[];for(const{key:s}of r.items)M(s)&&(n.includes(s.value)?e(`Ordered maps must not include duplicate keys: ${s.value}`):n.push(s.value));return Object.assign(new xr,r)},createNode:ls((t,e,r)=>xr.from(t,e,r),"createNode")};var kp=Object.defineProperty,ur=h((t,e)=>kp(t,"name",{value:e,configurable:!0}),"e$1");function zs({value:t,source:e},r){return e&&(t?Pa:Na).test.test(e)?e:t?r.options.trueStr:r.options.falseStr}h(zs,"f$9");ur(zs,"boolStringify");const Pa={identify:ur(t=>t===!0,"identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:ur(()=>new P(!0),"resolve"),stringify:zs},Na={identify:ur(t=>t===!1,"identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:ur(()=>new P(!1),"resolve"),stringify:zs};var Ip=Object.defineProperty,cr=h((t,e)=>Ip(t,"name",{value:e,configurable:!0}),"a$a");const xp={identify:cr(t=>typeof t=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:cr(t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,"resolve"),stringify:de},Tp={identify:cr(t=>typeof t=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:cr(t=>parseFloat(t.replace(/_/g,"")),"resolve"),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():de(t)}},jp={identify:cr(t=>typeof t=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){const e=new P(parseFloat(t.replace(/_/g,""))),r=t.indexOf(".");if(r!==-1){const n=t.substring(r+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:de};var Rp=Object.defineProperty,Fe=h((t,e)=>Rp(t,"name",{value:e,configurable:!0}),"i$6");const vr=Fe(t=>typeof t=="bigint"||Number.isInteger(t),"intIdentify");function Ar(t,e,r,{intAsBigInt:n}){const s=t[0];if((s==="-"||s==="+")&&(e+=1),t=t.substring(e).replace(/_/g,""),n){switch(r){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`;break}const o=BigInt(t);return s==="-"?BigInt(-1)*o:o}const i=parseInt(t,r);return s==="-"?-1*i:i}h(Ar,"g$4");Fe(Ar,"intResolve");function hn(t,e,r){const{value:n}=t;if(vr(n)){const s=n.toString(e);return n<0?"-"+r+s.substr(1):r+s}return de(t)}h(hn,"s$9");Fe(hn,"intStringify");const Mp={identify:vr,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:Fe((t,e,r)=>Ar(t,2,2,r),"resolve"),stringify:Fe(t=>hn(t,2,"0b"),"stringify")},_p={identify:vr,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:Fe((t,e,r)=>Ar(t,1,8,r),"resolve"),stringify:Fe(t=>hn(t,8,"0"),"stringify")},Gp={identify:vr,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:Fe((t,e,r)=>Ar(t,0,10,r),"resolve"),stringify:de},Up={identify:vr,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:Fe((t,e,r)=>Ar(t,2,16,r),"resolve"),stringify:Fe(t=>hn(t,16,"0x"),"stringify")};var qp=Object.defineProperty,fs=h((t,e)=>qp(t,"name",{value:e,configurable:!0}),"n$6");let Tr=class Ba extends fe{static{h(this,"l")}static{fs(this,"YAMLSet")}constructor(e){super(e),this.tag=Ba.tag}add(e){let r;q(e)?r=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?r=new ae(e.key,null):r=new ae(e,null),Re(this.items,r.key)||this.items.push(r)}get(e,r){const n=Re(this.items,e);return!r&&q(n)?M(n.key)?n.key.value:n.key:n}set(e,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);const n=Re(this.items,e);n&&!r?this.items.splice(this.items.indexOf(n),1):!n&&r&&this.items.push(new ae(e))}toJSON(e,r){return super.toJSON(e,r,Set)}toString(e,r,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),r,n);throw new Error("Set items must all have null values")}static from(e,r,n){const{replacer:s}=n,i=new this(e);if(r&&Symbol.iterator in Object(r))for(let o of r)typeof s=="function"&&(o=s.call(r,o,o)),i.items.push(an(o,null,n));return i}};Tr.tag="tag:yaml.org,2002:set";const Js={collection:"map",identify:fs(t=>t instanceof Set,"identify"),nodeClass:Tr,default:!1,tag:"tag:yaml.org,2002:set",createNode:fs((t,e,r)=>Tr.from(t,e,r),"createNode"),resolve(t,e){if(Dr(t)){if(t.hasAllNullValues(!0))return Object.assign(new Tr,t);e("Set items must all have null values")}else e("Expected a mapping for this tag");return t}};var Kp=Object.defineProperty,ge=h((t,e)=>Kp(t,"name",{value:e,configurable:!0}),"n$5");function pn(t,e){const r=t[0],n=r==="-"||r==="+"?t.substring(1):t,s=ge(o=>e?BigInt(o):Number(o),"num"),i=n.replace(/_/g,"").split(":").reduce((o,a)=>o*s(60)+s(a),s(0));return r==="-"?s(-1)*i:i}h(pn,"l$7");ge(pn,"parseSexagesimal");function Xs(t){let{value:e}=t,r=ge(o=>o,"num");if(typeof e=="bigint")r=ge(o=>BigInt(o),"num");else if(isNaN(e)||!isFinite(e))return de(t);let n="";e<0&&(n="-",e*=r(-1));const s=r(60),i=[e%s];return e<60?i.unshift(0):(e=(e-i[0])/s,i.unshift(e%s),e>=60&&(e=(e-i[0])/s,i.unshift(e))),n+i.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}h(Xs,"c$6");ge(Xs,"stringifySexagesimal");const ka={identify:ge(t=>typeof t=="bigint"||Number.isInteger(t),"identify"),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:ge((t,e,{intAsBigInt:r})=>pn(t,r),"resolve"),stringify:Xs},Ia={identify:ge(t=>typeof t=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:ge(t=>pn(t,!1),"resolve"),stringify:Xs},dn={identify:ge(t=>t instanceof Date,"identify"),default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(t){const e=t.match(dn.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,i,o,a]=e.map(Number),u=e[7]?Number((e[7]+"00").substr(1,3)):0;let l=Date.UTC(r,n-1,s,i||0,o||0,a||0,u);const f=e[8];if(f&&f!=="Z"){let g=pn(f,!1);Math.abs(g)<30&&(g*=60),l-=6e4*g}return new Date(l)},stringify:ge(({value:t})=>t?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??"","stringify")},Ii=[Pt,Nt,cn,ln,Pa,Na,Mp,_p,Gp,Up,xp,Tp,jp,Ks,Ie,Ys,Vs,Js,ka,Ia,dn];var Wp=Object.defineProperty,Hp=h((t,e)=>Wp(t,"name",{value:e,configurable:!0}),"s$8");const xi=new Map([["core",$p],["failsafe",[Pt,Nt,cn]],["json",Lp],["yaml11",Ii],["yaml-1.1",Ii]]),Ti={binary:Ks,bool:Gs,float:$a,floatExp:Ca,floatNaN:Aa,floatTime:Ia,int:wa,intHex:Sa,intOct:Fa,intTime:ka,map:Pt,merge:Ie,null:ln,omap:Ys,pairs:Vs,seq:Nt,set:Js,timestamp:dn},Vp={"tag:yaml.org,2002:binary":Ks,"tag:yaml.org,2002:merge":Ie,"tag:yaml.org,2002:omap":Ys,"tag:yaml.org,2002:pairs":Vs,"tag:yaml.org,2002:set":Js,"tag:yaml.org,2002:timestamp":dn};function jr(t,e,r){const n=xi.get(e);if(n&&!t)return r&&!n.includes(Ie)?n.concat(Ie):n.slice();let s=n;if(!s)if(Array.isArray(t))s=[];else{const i=Array.from(xi.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${i} or define customTags array`)}if(Array.isArray(t))for(const i of t)s=s.concat(i);else typeof t=="function"&&(s=t(s.slice()));return r&&(s=s.concat(Ie)),s.reduce((i,o)=>{const a=typeof o=="string"?Ti[o]:o;if(!a){const u=JSON.stringify(o),l=Object.keys(Ti).map(f=>JSON.stringify(f)).join(", ");throw new Error(`Unknown custom tag ${u}; use one of ${l}`)}return i.includes(a)||i.push(a),i},[])}h(jr,"C$4");Hp(jr,"getTags");var Yp=Object.defineProperty,xa=h((t,e)=>Yp(t,"name",{value:e,configurable:!0}),"o$4");const zp=xa((t,e)=>t.key<e.key?-1:t.key>e.key?1:0,"sortMapEntriesByKey");let Jp=class Ta{static{h(this,"i")}static{xa(this,"Schema")}constructor({compat:e,customTags:r,merge:n,resolveKnownTags:s,schema:i,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?jr(e,"compat"):e?jr(null,e):null,this.name=typeof i=="string"&&i||"core",this.knownTags=s?Vp:{},this.tags=jr(r,this.name,n),this.toStringOptions=a??null,Object.defineProperty(this,Me,{value:Pt}),Object.defineProperty(this,$e,{value:cn}),Object.defineProperty(this,wt,{value:Nt}),this.sortMapEntries=typeof o=="function"?o:o===!0?zp:null}clone(){const e=Object.create(Ta.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};var Xp=Object.defineProperty,Qp=h((t,e)=>Xp(t,"name",{value:e,configurable:!0}),"u$g");function ja(t,e){const r=[];let n=e.directives===!0;if(e.directives!==!1&&t.directives){const u=t.directives.toString(t);u?(r.push(u),n=!0):t.directives.docStart&&(n=!0)}n&&r.push("---");const s=xs(t,e),{commentString:i}=s.options;if(t.commentBefore){r.length!==1&&r.unshift("");const u=i(t.commentBefore);r.unshift(be(u,""))}let o=!1,a=null;if(t.contents){if(U(t.contents)){if(t.contents.spaceBefore&&n&&r.push(""),t.contents.commentBefore){const f=i(t.contents.commentBefore);r.push(be(f,""))}s.forceBlockIndent=!!t.comment,a=t.contents.comment}const u=a?void 0:()=>o=!0;let l=et(t.contents,s,()=>a=null,u);a&&(l+=Xe(l,"",i(a))),(l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${l}`:r.push(l)}else r.push(et(t.contents,s));if(t.directives?.docEnd)if(t.comment){const u=i(t.comment);u.includes(`
69
- `)?(r.push("..."),r.push(be(u,""))):r.push(`... ${u}`)}else r.push("...");else{let u=t.comment;u&&o&&(u=u.replace(/^\n+/,"")),u&&((!o||a)&&r[r.length-1]!==""&&r.push(""),r.push(be(i(u),"")))}return r.join(`
70
- `)+`
71
- `}h(ja,"C$3");Qp(ja,"stringifyDocument");var Zp=Object.defineProperty,hs=h((t,e)=>Zp(t,"name",{value:e,configurable:!0}),"f$8");let Qs=class Ra{static{h(this,"b")}static{hs(this,"Document")}constructor(e,r,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,pe,{value:ns});let s=null;typeof r=="function"||Array.isArray(r)?s=r:n===void 0&&r&&(n=r,r=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:o}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Dt({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,s,n)}clone(){const e=Object.create(Ra.prototype,{[pe]:{value:ns}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=U(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){He(this.contents)&&this.contents.add(e)}addIn(e,r){He(this.contents)&&this.contents.addIn(e,r)}createAlias(e,r){if(!e.anchor){const n=Ps(this);e.anchor=!r||n.has(r)?Ns(r||"a",n):r}return new ks(e.anchor)}createNode(e,r,n){let s;if(typeof r=="function")e=r.call({"":e},"",e),s=r;else if(Array.isArray(r)){const F=hs(d=>typeof d=="number"||d instanceof String||d instanceof Number,"keyToStr"),E=r.filter(F).map(String);E.length>0&&(r=r.concat(E)),s=r}else n===void 0&&r&&(n=r,r=void 0);const{aliasDuplicateObjects:i,anchorPrefix:o,flow:a,keepUndefined:u,onTagObj:l,tag:f}=n??{},{onAnchor:g,setAnchors:m,sourceObjects:v}=ta(this,o||"a"),$={aliasDuplicateObjects:i??!0,keepUndefined:u??!1,onAnchor:g,onTagObj:l,replacer:s,schema:this.schema,sourceObjects:v},b=At(e,f,$);return a&&G(b)&&(b.flow=!0),m(),b}createPair(e,r,n={}){const s=this.createNode(e,null,n),i=this.createNode(r,null,n);return new ae(s,i)}delete(e){return He(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Vt(e)?this.contents==null?!1:(this.contents=null,!0):He(this.contents)?this.contents.deleteIn(e):!1}get(e,r){return G(this.contents)?this.contents.get(e,r):void 0}getIn(e,r){return Vt(e)?!r&&M(this.contents)?this.contents.value:this.contents:G(this.contents)?this.contents.getIn(e,r):void 0}has(e){return G(this.contents)?this.contents.has(e):!1}hasIn(e){return Vt(e)?this.contents!==void 0:G(this.contents)?this.contents.hasIn(e):!1}set(e,r){this.contents==null?this.contents=ir(this.schema,[e],r):He(this.contents)&&this.contents.set(e,r)}setIn(e,r){Vt(e)?this.contents=r:this.contents==null?this.contents=ir(this.schema,Array.from(e),r):He(this.contents)&&this.contents.setIn(e,r)}setSchema(e,r={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Dt({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Dt({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const s=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${s}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(n)this.schema=new Jp(Object.assign(n,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:r,mapAsMap:n,maxAliasCount:s,onAnchor:i,reviver:o}={}){const a={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},u=oe(this.contents,r??"",a);if(typeof i=="function")for(const{count:l,res:f}of a.anchors.values())i(f,l);return typeof o=="function"?Je(o,{"":u},"",u):u}toJSON(e,r){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:r})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const r=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return ja(this,e)}};function He(t){if(G(t))return!0;throw new Error("Expected a YAML collection as document contents")}h(He,"o$3");hs(He,"assertCollection");var ed=Object.defineProperty,mn=h((t,e)=>ed(t,"name",{value:e,configurable:!0}),"l$5");let Ma=class extends Error{static{h(this,"g")}static{mn(this,"YAMLError")}constructor(e,r,n,s){super(),this.name=e,this.code=n,this.message=s,this.pos=r}},mt=class extends Ma{static{h(this,"h")}static{mn(this,"YAMLParseError")}constructor(e,r,n){super("YAMLParseError",e,r,n)}},td=class extends Ma{static{h(this,"m")}static{mn(this,"YAMLWarning")}constructor(e,r,n){super("YAMLWarning",e,r,n)}};const Ur=mn((t,e)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(a=>e.linePos(a));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let i=s-1,o=t.substring(e.lineStarts[n-1],e.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){const a=Math.min(i-39,o.length-79);o="…"+o.substring(a),i-=a-1}if(o.length>80&&(o=o.substring(0,79)+"…"),n>1&&/^ *$/.test(o.substring(0,i))){let a=t.substring(e.lineStarts[n-2],e.lineStarts[n-1]);a.length>80&&(a=a.substring(0,79)+`…
72
- `),o=a+o}if(/[^ ]/.test(o)){let a=1;const u=r.linePos[1];u?.line===n&&u.col>s&&(a=Math.max(1,Math.min(u.col-s,80-i)));const l=" ".repeat(i)+"^".repeat(a);r.message+=`:
73
-
74
- ${o}
75
- ${l}
76
- `}},"prettifyError");var rd=Object.defineProperty,nd=h((t,e)=>rd(t,"name",{value:e,configurable:!0}),"g$1");function rt(t,{flow:e,indicator:r,next:n,offset:s,onError:i,parentIndent:o,startOnNewline:a}){let u=!1,l=a,f=a,g="",m="",v=!1,$=!1,b=null,F=null,E=null,d=null,c=null,D=null,y=null;for(const A of t)switch($&&(A.type!=="space"&&A.type!=="newline"&&A.type!=="comma"&&i(A.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),$=!1),b&&(l&&A.type!=="comment"&&A.type!=="newline"&&i(b,"TAB_AS_INDENT","Tabs are not allowed as indentation"),b=null),A.type){case"space":!e&&(r!=="doc-start"||n?.type!=="flow-collection")&&A.source.includes(" ")&&(b=A),f=!0;break;case"comment":{f||i(A,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const S=A.source.substring(1)||" ";g?g+=m+S:g=S,m="",l=!1;break}case"newline":l?g?g+=A.source:(!D||r!=="seq-item-ind")&&(u=!0):m+=A.source,l=!0,v=!0,(F||E)&&(d=A),f=!0;break;case"anchor":F&&i(A,"MULTIPLE_ANCHORS","A node can have at most one anchor"),A.source.endsWith(":")&&i(A.offset+A.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),F=A,y??(y=A.offset),l=!1,f=!1,$=!0;break;case"tag":{E&&i(A,"MULTIPLE_TAGS","A node can have at most one tag"),E=A,y??(y=A.offset),l=!1,f=!1,$=!0;break}case r:(F||E)&&i(A,"BAD_PROP_ORDER",`Anchors and tags must be after the ${A.source} indicator`),D&&i(A,"UNEXPECTED_TOKEN",`Unexpected ${A.source} in ${e??"collection"}`),D=A,l=r==="seq-item-ind"||r==="explicit-key-ind",f=!1;break;case"comma":if(e){c&&i(A,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),c=A,l=!1,f=!1;break}default:i(A,"UNEXPECTED_TOKEN",`Unexpected ${A.type} token`),l=!1,f=!1}const p=t[t.length-1],C=p?p.offset+p.source.length:s;return $&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),b&&(l&&b.indent<=o||n?.type==="block-map"||n?.type==="block-seq")&&i(b,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:c,found:D,spaceBefore:u,comment:g,hasNewline:v,anchor:F,tag:E,newlineAfterProp:d,end:C,start:y??C}}h(rt,"C$2");nd(rt,"resolveProps");var sd=Object.defineProperty,id=h((t,e)=>sd(t,"name",{value:e,configurable:!0}),"s$7");function Ct(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes(`
77
- `))return!0;if(t.end){for(const e of t.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of t.items){for(const r of e.start)if(r.type==="newline")return!0;if(e.sep){for(const r of e.sep)if(r.type==="newline")return!0}if(Ct(e.key)||Ct(e.value))return!0}return!1;default:return!0}}h(Ct,"n$4");id(Ct,"containsNewline");var od=Object.defineProperty,ad=h((t,e)=>od(t,"name",{value:e,configurable:!0}),"t$4");function qr(t,e,r){if(e?.type==="flow-collection"){const n=e.end[0];n.indent===t&&(n.source==="]"||n.source==="}")&&Ct(e)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}h(qr,"c$4");ad(qr,"flowIndentCheck");var ud=Object.defineProperty,cd=h((t,e)=>ud(t,"name",{value:e,configurable:!0}),"u$e");function Zs(t,e,r){const{uniqueKeys:n}=t.options;if(n===!1)return!1;const s=typeof n=="function"?n:(i,o)=>i===o||M(i)&&M(o)&&i.value===o.value;return e.some(i=>s(i.key,r))}h(Zs,"a$7");cd(Zs,"mapIncludes");var ld=Object.defineProperty,fd=h((t,e)=>ld(t,"name",{value:e,configurable:!0}),"w$4");const ji="All mapping items must start at the same column";function _a({composeNode:t,composeEmptyNode:e},r,n,s,i){const o=i?.nodeClass??fe,a=new o(r.schema);r.atRoot&&(r.atRoot=!1);let u=n.offset,l=null;for(const f of n.items){const{start:g,key:m,sep:v,value:$}=f,b=rt(g,{indicator:"explicit-key-ind",next:m??v?.[0],offset:u,onError:s,parentIndent:n.indent,startOnNewline:!0}),F=!b.found;if(F){if(m&&(m.type==="block-seq"?s(u,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in m&&m.indent!==n.indent&&s(u,"BAD_INDENT",ji)),!b.anchor&&!b.tag&&!v){l=b.end,b.comment&&(a.comment?a.comment+=`
78
- `+b.comment:a.comment=b.comment);continue}(b.newlineAfterProp||Ct(m))&&s(m??g[g.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else b.found?.indent!==n.indent&&s(u,"BAD_INDENT",ji);r.atKey=!0;const E=b.end,d=m?t(r,m,b,s):e(r,E,g,null,b,s);r.schema.compat&&qr(n.indent,m,s),r.atKey=!1,Zs(r,a.items,d)&&s(E,"DUPLICATE_KEY","Map keys must be unique");const c=rt(v??[],{indicator:"map-value-ind",next:$,offset:d.range[2],onError:s,parentIndent:n.indent,startOnNewline:!m||m.type==="block-scalar"});if(u=c.end,c.found){F&&($?.type==="block-map"&&!c.hasNewline&&s(u,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&b.start<c.found.offset-1024&&s(d.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const D=$?t(r,$,c,s):e(r,u,v,null,c,s);r.schema.compat&&qr(n.indent,$,s),u=D.range[2];const y=new ae(d,D);r.options.keepSourceTokens&&(y.srcToken=f),a.items.push(y)}else{F&&s(d.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),c.comment&&(d.comment?d.comment+=`
79
- `+c.comment:d.comment=c.comment);const D=new ae(d);r.options.keepSourceTokens&&(D.srcToken=f),a.items.push(D)}}return l&&l<u&&s(l,"IMPOSSIBLE","Map comment with trailing content"),a.range=[n.offset,u,l??u],a}h(_a,"v$6");fd(_a,"resolveBlockMap");var hd=Object.defineProperty,pd=h((t,e)=>hd(t,"name",{value:e,configurable:!0}),"u$d");function Ga({composeNode:t,composeEmptyNode:e},r,n,s,i){const o=i?.nodeClass??tt,a=new o(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let u=n.offset,l=null;for(const{start:f,value:g}of n.items){const m=rt(f,{indicator:"seq-item-ind",next:g,offset:u,onError:s,parentIndent:n.indent,startOnNewline:!0});if(!m.found)if(m.anchor||m.tag||g)g?.type==="block-seq"?s(m.end,"BAD_INDENT","All sequence items must start at the same column"):s(u,"MISSING_CHAR","Sequence item without - indicator");else{l=m.end,m.comment&&(a.comment=m.comment);continue}const v=g?t(r,g,m,s):e(r,m.end,f,null,m,s);r.schema.compat&&qr(n.indent,g,s),u=v.range[2],a.items.push(v)}return a.range=[n.offset,u,l??u],a}h(Ga,"S$4");pd(Ga,"resolveBlockSeq");var dd=Object.defineProperty,md=h((t,e)=>dd(t,"name",{value:e,configurable:!0}),"f$6");function Bt(t,e,r,n){let s="";if(t){let i=!1,o="";for(const a of t){const{source:u,type:l}=a;switch(l){case"space":i=!0;break;case"comment":{r&&!i&&n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const f=u.substring(1)||" ";s?s+=o+f:s=f,o="";break}case"newline":s&&(o+=u),i=!0;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}e+=u.length}}return{comment:s,offset:e}}h(Bt,"u$c");md(Bt,"resolveEnd");var gd=Object.defineProperty,Ua=h((t,e)=>gd(t,"name",{value:e,configurable:!0}),"T$3");const wn="Block collections are not allowed within flow collections",Sn=Ua(t=>t&&(t.type==="block-map"||t.type==="block-seq"),"isBlock");function qa({composeNode:t,composeEmptyNode:e},r,n,s,i){const o=n.start.source==="{",a=o?"flow map":"flow sequence",u=i?.nodeClass??(o?fe:tt),l=new u(r.schema);l.flow=!0;const f=r.atRoot;f&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let g=n.offset+n.start.source.length;for(let F=0;F<n.items.length;++F){const E=n.items[F],{start:d,key:c,sep:D,value:y}=E,p=rt(d,{flow:a,indicator:"explicit-key-ind",next:c??D?.[0],offset:g,onError:s,parentIndent:n.indent,startOnNewline:!1});if(!p.found){if(!p.anchor&&!p.tag&&!D&&!y){F===0&&p.comma?s(p.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):F<n.items.length-1&&s(p.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),p.comment&&(l.comment?l.comment+=`
80
- `+p.comment:l.comment=p.comment),g=p.end;continue}!o&&r.options.strict&&Ct(c)&&s(c,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(F===0)p.comma&&s(p.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(p.comma||s(p.start,"MISSING_CHAR",`Missing , between ${a} items`),p.comment){let C="";e:for(const A of d)switch(A.type){case"comma":case"space":break;case"comment":C=A.source.substring(1);break e;default:break e}if(C){let A=l.items[l.items.length-1];q(A)&&(A=A.value??A.key),A.comment?A.comment+=`
81
- `+C:A.comment=C,p.comment=p.comment.substring(C.length+1)}}if(!o&&!D&&!p.found){const C=y?t(r,y,p,s):e(r,p.end,D,null,p,s);l.items.push(C),g=C.range[2],Sn(y)&&s(C.range,"BLOCK_IN_FLOW",wn)}else{r.atKey=!0;const C=p.end,A=c?t(r,c,p,s):e(r,C,d,null,p,s);Sn(c)&&s(A.range,"BLOCK_IN_FLOW",wn),r.atKey=!1;const S=rt(D??[],{flow:a,indicator:"map-value-ind",next:y,offset:A.range[2],onError:s,parentIndent:n.indent,startOnNewline:!1});if(S.found){if(!o&&!p.found&&r.options.strict){if(D)for(const N of D){if(N===S.found)break;if(N.type==="newline"){s(N,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}p.start<S.found.offset-1024&&s(S.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else y&&("source"in y&&y.source?.[0]===":"?s(y,"MISSING_CHAR",`Missing space after : in ${a}`):s(S.start,"MISSING_CHAR",`Missing , or : between ${a} items`));const L=y?t(r,y,S,s):S.found?e(r,S.end,D,null,S,s):null;L?Sn(y)&&s(L.range,"BLOCK_IN_FLOW",wn):S.comment&&(A.comment?A.comment+=`
82
- `+S.comment:A.comment=S.comment);const T=new ae(A,L);if(r.options.keepSourceTokens&&(T.srcToken=E),o){const N=l;Zs(r,N.items,A)&&s(C,"DUPLICATE_KEY","Map keys must be unique"),N.items.push(T)}else{const N=new fe(r.schema);N.flow=!0,N.items.push(T);const ue=(L??A).range;N.range=[A.range[0],ue[1],ue[2]],l.items.push(N)}g=L?L.range[2]:S.end}}const m=o?"}":"]",[v,...$]=n.end;let b=g;if(v?.source===m)b=v.offset+v.source.length;else{const F=a[0].toUpperCase()+a.substring(1),E=f?`${F} must end with a ${m}`:`${F} in block collection must be sufficiently indented and end with a ${m}`;s(g,f?"MISSING_CHAR":"BAD_INDENT",E),v&&v.source.length!==1&&$.unshift(v)}if($.length>0){const F=Bt($,b,r.options.strict,s);F.comment&&(l.comment?l.comment+=`
83
- `+F.comment:l.comment=F.comment),l.range=[n.offset,b,F.offset]}else l.range=[n.offset,b,b];return l}h(qa,"F$2");Ua(qa,"resolveFlowCollection");var Dd=Object.defineProperty,Ka=h((t,e)=>Dd(t,"name",{value:e,configurable:!0}),"u$b");function Rr(t,e,r,n,s,i){const o=r.type==="block-map"?_a(t,e,r,n,i):r.type==="block-seq"?Ga(t,e,r,n,i):qa(t,e,r,n,i),a=o.constructor;return s==="!"||s===a.tagName?(o.tag=a.tagName,o):(s&&(o.tag=s),o)}h(Rr,"A$5");Ka(Rr,"resolveCollection");function Wa(t,e,r,n,s){const i=n.tag,o=i?e.directives.tagName(i.source,m=>s(i,"TAG_RESOLVE_FAILED",m)):null;if(r.type==="block-seq"){const{anchor:m,newlineAfterProp:v}=n,$=m&&i?m.offset>i.offset?m:i:m??i;$&&(!v||v.offset<$.offset)&&s($,"MISSING_CHAR","Missing newline after block sequence props")}const a=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!i||!o||o==="!"||o===fe.tagName&&a==="map"||o===tt.tagName&&a==="seq")return Rr(t,e,r,s,o);let u=e.schema.tags.find(m=>m.tag===o&&m.collection===a);if(!u){const m=e.schema.knownTags[o];if(m?.collection===a)e.schema.tags.push(Object.assign({},m,{default:!1})),u=m;else return m?s(i,"BAD_COLLECTION_TYPE",`${m.tag} used for ${a} collection, but expects ${m.collection??"scalar"}`,!0):s(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),Rr(t,e,r,s,o)}const l=Rr(t,e,r,s,o,u),f=u.resolve?.(l,m=>s(i,"TAG_RESOLVE_FAILED",m),e.options)??l,g=U(f)?f:new P(f);return g.range=l.range,g.tag=o,u?.format&&(g.format=u.format),g}h(Wa,"I$5");Ka(Wa,"composeCollection");var yd=Object.defineProperty,ei=h((t,e)=>yd(t,"name",{value:e,configurable:!0}),"B$2");function ti(t,e,r){const n=e.offset,s=Ha(e,t.options.strict,r);if(!s)return{value:"",type:null,comment:"",range:[n,n,n]};const i=s.mode===">"?P.BLOCK_FOLDED:P.BLOCK_LITERAL,o=e.source?Va(e.source):[];let a=o.length;for(let b=o.length-1;b>=0;--b){const F=o[b][1];if(F===""||F==="\r")a=b;else break}if(a===0){const b=s.chomp==="+"&&o.length>0?`
84
- `.repeat(Math.max(1,o.length-1)):"";let F=n+s.length;return e.source&&(F+=e.source.length),{value:b,type:i,comment:s.comment,range:[n,F,F]}}let u=e.indent+s.indent,l=e.offset+s.length,f=0;for(let b=0;b<a;++b){const[F,E]=o[b];if(E===""||E==="\r")s.indent===0&&F.length>u&&(u=F.length);else{F.length<u&&r(l+F.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),s.indent===0&&(u=F.length),f=b,u===0&&!t.atRoot&&r(l,"BAD_INDENT","Block scalar values in collections must be indented");break}l+=F.length+E.length+1}for(let b=o.length-1;b>=a;--b)o[b][0].length>u&&(a=b+1);let g="",m="",v=!1;for(let b=0;b<f;++b)g+=o[b][0].slice(u)+`
85
- `;for(let b=f;b<a;++b){let[F,E]=o[b];l+=F.length+E.length+1;const d=E[E.length-1]==="\r";if(d&&(E=E.slice(0,-1)),E&&F.length<u){const c=`Block scalar lines must not be less indented than their ${s.indent?"explicit indentation indicator":"first line"}`;r(l-E.length-(d?2:1),"BAD_INDENT",c),F=""}i===P.BLOCK_LITERAL?(g+=m+F.slice(u)+E,m=`
86
- `):F.length>u||E[0]===" "?(m===" "?m=`
87
- `:!v&&m===`
88
- `&&(m=`
89
-
90
- `),g+=m+F.slice(u)+E,m=`
91
- `,v=!0):E===""?m===`
92
- `?g+=`
93
- `:m=`
94
- `:(g+=m+E,m=" ",v=!1)}switch(s.chomp){case"-":break;case"+":for(let b=a;b<o.length;++b)g+=`
95
- `+o[b][0].slice(u);g[g.length-1]!==`
96
- `&&(g+=`
97
- `);break;default:g+=`
98
- `}const $=n+s.length+e.source.length;return{value:g,type:i,comment:s.comment,range:[n,$,$]}}h(ti,"E$3");ei(ti,"resolveBlockScalar");function Ha({offset:t,props:e},r,n){if(e[0].type!=="block-scalar-header")return n(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:s}=e[0],i=s[0];let o=0,a="",u=-1;for(let m=1;m<s.length;++m){const v=s[m];if(!a&&(v==="-"||v==="+"))a=v;else{const $=Number(v);!o&&$?o=$:u===-1&&(u=t+m)}}u!==-1&&n(u,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${s}`);let l=!1,f="",g=s.length;for(let m=1;m<e.length;++m){const v=e[m];switch(v.type){case"space":l=!0;case"newline":g+=v.source.length;break;case"comment":r&&!l&&n(v,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),g+=v.source.length,f=v.source.substring(1);break;case"error":n(v,"UNEXPECTED_TOKEN",v.message),g+=v.source.length;break;default:{const $=`Unexpected token in block scalar header: ${v.type}`;n(v,"UNEXPECTED_TOKEN",$);const b=v.source;b&&typeof b=="string"&&(g+=b.length)}}}return{mode:i,indent:o,chomp:a,comment:f,length:g}}h(Ha,"L$3");ei(Ha,"parseBlockScalarHeader");function Va(t){const e=t.split(/\n( *)/),r=e[0],n=r.match(/^( *)/),s=[n?.[1]?[n[1],r.slice(n[1].length)]:["",r]];for(let i=1;i<e.length;i+=2)s.push([e[i],e[i+1]]);return s}h(Va,"T$2");ei(Va,"splitLines");var bd=Object.defineProperty,Ke=h((t,e)=>bd(t,"name",{value:e,configurable:!0}),"r$2");function ri(t,e,r){const{offset:n,type:s,source:i,end:o}=t;let a,u;const l=Ke((m,v,$)=>r(n+m,v,$),"_onError");switch(s){case"scalar":a=P.PLAIN,u=Ya(i,l);break;case"single-quoted-scalar":a=P.QUOTE_SINGLE,u=za(i,l);break;case"double-quoted-scalar":a=P.QUOTE_DOUBLE,u=Ja(i,l);break;default:return r(t,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${s}`),{value:"",type:null,comment:"",range:[n,n+i.length,n+i.length]}}const f=n+i.length,g=Bt(o,f,e,r);return{value:u,type:a,comment:g.comment,range:[n,f,g.offset]}}h(ri,"_$2");Ke(ri,"resolveFlowScalar");function Ya(t,e){let r="";switch(t[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${t[0]}`;break}case"@":case"`":{r=`reserved character ${t[0]}`;break}}return r&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),ni(t)}h(Ya,"v$5");Ke(Ya,"plainValue");function za(t,e){return(t[t.length-1]!=="'"||t.length===1)&&e(t.length,"MISSING_CHAR","Missing closing 'quote"),ni(t.slice(1,-1)).replace(/''/g,"'")}h(za,"I$4");Ke(za,"singleQuotedValue");function ni(t){let e,r;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
99
- `,"sy"),r=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
100
- `,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=e.exec(t);if(!n)return t;let s=n[1],i=" ",o=e.lastIndex;for(r.lastIndex=o;n=r.exec(t);)n[1]===""?i===`
101
- `?s+=i:i=`
102
- `:(s+=i+n[1],i=" "),o=r.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=o,n=a.exec(t),s+i+(n?.[1]??"")}h(ni,"b$9");Ke(ni,"foldLines");function Ja(t,e){let r="";for(let n=1;n<t.length-1;++n){const s=t[n];if(!(s==="\r"&&t[n+1]===`
103
- `))if(s===`
104
- `){const{fold:i,offset:o}=Xa(t,n);r+=i,n=o}else if(s==="\\"){let i=t[++n];const o=Ed[i];if(o)r+=o;else if(i===`
105
- `)for(i=t[n+1];i===" "||i===" ";)i=t[++n+1];else if(i==="\r"&&t[n+1]===`
106
- `)for(i=t[++n+1];i===" "||i===" ";)i=t[++n+1];else if(i==="x"||i==="u"||i==="U"){const a=i==="x"?2:i==="u"?4:8;r+=Qa(t,n+1,a,e),n+=a}else{const a=t.substr(n-1,2);e(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),r+=a}}else if(s===" "||s===" "){const i=n;let o=t[n+1];for(;o===" "||o===" ";)o=t[++n+1];o!==`
107
- `&&!(o==="\r"&&t[n+2]===`
108
- `)&&(r+=n>i?t.slice(i,n+1):s)}else r+=s}return(t[t.length-1]!=='"'||t.length===1)&&e(t.length,"MISSING_CHAR",'Missing closing "quote'),r}h(Ja,"S$2");Ke(Ja,"doubleQuotedValue");function Xa(t,e){let r="",n=t[e+1];for(;(n===" "||n===" "||n===`
109
- `||n==="\r")&&!(n==="\r"&&t[e+2]!==`
110
- `);)n===`
111
- `&&(r+=`
112
- `),e+=1,n=t[e+1];return r||(r=" "),{fold:r,offset:e}}h(Xa,"k$5");Ke(Xa,"foldNewline");const Ed={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
113
- `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Qa(t,e,r,n){const s=t.substr(e,r),i=s.length===r&&/^[0-9a-fA-F]+$/.test(s)?parseInt(s,16):NaN;try{return String.fromCodePoint(i)}catch{const o=t.substr(e-2,r+2);return n(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}}h(Qa,"A$4");Ke(Qa,"parseCharCode");var vd=Object.defineProperty,si=h((t,e)=>vd(t,"name",{value:e,configurable:!0}),"m$7");function ii(t,e,r,n){const{value:s,type:i,comment:o,range:a}=e.type==="block-scalar"?ti(t,e,n):ri(e,t.options.strict,n),u=r?t.directives.tagName(r.source,g=>n(r,"TAG_RESOLVE_FAILED",g)):null;let l;t.options.stringKeys&&t.atKey?l=t.schema[$e]:u?l=Za(t.schema,s,u,r,n):e.type==="scalar"?l=eu(t,s,e,n):l=t.schema[$e];let f;try{const g=l.resolve(s,m=>n(r??e,"TAG_RESOLVE_FAILED",m),t.options);f=M(g)?g:new P(g)}catch(g){const m=g instanceof Error?g.message:String(g);n(r??e,"TAG_RESOLVE_FAILED",m),f=new P(s)}return f.range=a,f.source=s,i&&(f.type=i),u&&(f.tag=u),l.format&&(f.format=l.format),o&&(f.comment=o),f}h(ii,"E$2");si(ii,"composeScalar");function Za(t,e,r,n,s){if(r==="!")return t[$e];const i=[];for(const a of t.tags)if(!a.collection&&a.tag===r)if(a.default&&a.test)i.push(a);else return a;for(const a of i)if(a.test?.test(e))return a;const o=t.knownTags[r];return o&&!o.collection?(t.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(s(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),t[$e])}h(Za,"_$1");si(Za,"findScalarTagByName");function eu({atKey:t,directives:e,schema:r},n,s,i){const o=r.tags.find(a=>(a.default===!0||t&&a.default==="key")&&a.test?.test(n))||r[$e];if(r.compat){const a=r.compat.find(u=>u.default&&u.test?.test(n))??r[$e];if(o.tag!==a.tag){const u=e.tagString(o.tag),l=e.tagString(a.tag),f=`Value may be parsed as either ${u} or ${l}`;i(s,"TAG_RESOLVE_FAILED",f,!0)}}return o}h(eu,"F$1");si(eu,"findScalarTagByTest");var Ad=Object.defineProperty,Cd=h((t,e)=>Ad(t,"name",{value:e,configurable:!0}),"a$6");function tu(t,e,r){if(e){r??(r=e.length);for(let n=r-1;n>=0;--n){let s=e[n];switch(s.type){case"space":case"comment":case"newline":t-=s.source.length;continue}for(s=e[++n];s?.type==="space";)t+=s.source.length,s=e[++n];break}}return t}h(tu,"s$6");Cd(tu,"emptyScalarPosition");var $d=Object.defineProperty,oi=h((t,e)=>$d(t,"name",{value:e,configurable:!0}),"u$a");const Fd={composeNode:ai,composeEmptyNode:gn};function ai(t,e,r,n){const s=t.atKey,{spaceBefore:i,comment:o,anchor:a,tag:u}=r;let l,f=!0;switch(e.type){case"alias":l=ru(t,e,n),(a||u)&&n(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=ii(t,e,u,n),a&&(l.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{l=Wa(Fd,t,e,r,n),a&&(l.anchor=a.source.substring(1))}catch(g){const m=g instanceof Error?g.message:String(g);n(e,"RESOURCE_EXHAUSTION",m)}break;default:{const g=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;n(e,"UNEXPECTED_TOKEN",g),f=!1}}return l??(l=gn(t,e.offset,void 0,null,r,n)),a&&l.anchor===""&&n(a,"BAD_ALIAS","Anchor cannot be an empty string"),s&&t.options.stringKeys&&(!M(l)||typeof l.value!="string"||l.tag&&l.tag!=="tag:yaml.org,2002:str")&&n(u??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),i&&(l.spaceBefore=!0),o&&(e.type==="scalar"&&e.source===""?l.comment=o:l.commentBefore=o),t.options.keepSourceTokens&&f&&(l.srcToken=e),l}h(ai,"A$3");oi(ai,"composeNode");function gn(t,e,r,n,{spaceBefore:s,comment:i,anchor:o,tag:a,end:u},l){const f={type:"scalar",offset:tu(e,r,n),indent:-1,source:""},g=ii(t,f,a,l);return o&&(g.anchor=o.source.substring(1),g.anchor===""&&l(o,"BAD_ALIAS","Anchor cannot be an empty string")),s&&(g.spaceBefore=!0),i&&(g.comment=i,g.range[2]=u),g}h(gn,"p$4");oi(gn,"composeEmptyNode");function ru({options:t},{offset:e,source:r,end:n},s){const i=new ks(r.substring(1));i.source===""&&s(e,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&s(e+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=e+r.length,a=Bt(n,o,t.strict,s);return i.range=[e,o,a.offset],a.comment&&(i.comment=a.comment),i}h(ru,"I$3");oi(ru,"composeAlias");var wd=Object.defineProperty,Sd=h((t,e)=>wd(t,"name",{value:e,configurable:!0}),"f$5");function nu(t,e,{offset:r,start:n,value:s,end:i},o){const a=Object.assign({_directives:e},t),u=new Qs(void 0,a),l={atKey:!1,atRoot:!0,directives:u.directives,options:u.options,schema:u.schema},f=rt(n,{indicator:"doc-start",next:s??i?.[0],offset:r,onError:o,parentIndent:0,startOnNewline:!0});f.found&&(u.directives.docStart=!0,s&&(s.type==="block-map"||s.type==="block-seq")&&!f.hasNewline&&o(f.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),u.contents=s?ai(l,s,f,o):gn(l,f.end,n,null,f,o);const g=u.contents.range[2],m=Bt(i,g,!1,o);return m.comment&&(u.comment=m.comment),u.range=[r,g,m.offset],u}h(nu,"b$8");Sd(nu,"composeDoc");var Ld=Object.defineProperty,ui=h((t,e)=>Ld(t,"name",{value:e,configurable:!0}),"h$4");function dt(t){if(typeof t=="number")return[t,t+1];if(Array.isArray(t))return t.length===2?t:[t[0],t[1]];const{offset:e,source:r}=t;return[e,e+(typeof r=="string"?r.length:1)]}h(dt,"c$3");ui(dt,"getErrorPos");function ps(t){let e="",r=!1,n=!1;for(let s=0;s<t.length;++s){const i=t[s];switch(i[0]){case"#":e+=(e===""?"":n?`
114
-
115
- `:`
116
- `)+(i.substring(1)||" "),r=!0,n=!1;break;case"%":t[s+1]?.[0]!=="#"&&(s+=1),r=!1;break;default:r||(n=!0),r=!1}}return{comment:e,afterEmptyLine:n}}h(ps,"m$6");ui(ps,"parsePrelude");let su=class{static{h(this,"y")}static{ui(this,"Composer")}constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,n,s,i)=>{const o=dt(r);i?this.warnings.push(new td(o,n,s)):this.errors.push(new mt(o,n,s))},this.directives=new Dt({version:e.version||"1.2"}),this.options=e}decorate(e,r){const{comment:n,afterEmptyLine:s}=ps(this.prelude);if(n){const i=e.contents;if(r)e.comment=e.comment?`${e.comment}
117
- ${n}`:n;else if(s||e.directives.docStart||!i)e.commentBefore=n;else if(G(i)&&!i.flow&&i.items.length>0){let o=i.items[0];q(o)&&(o=o.key);const a=o.commentBefore;o.commentBefore=a?`${n}
118
- ${a}`:n}else{const o=i.commentBefore;i.commentBefore=o?`${n}
119
- ${o}`:n}}if(r){for(let i=0;i<this.errors.length;++i)e.errors.push(this.errors[i]);for(let i=0;i<this.warnings.length;++i)e.warnings.push(this.warnings[i])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:ps(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,r=!1,n=-1){for(const s of e)yield*this.next(s);yield*this.end(r,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(r,n,s)=>{const i=dt(e);i[0]+=r,this.onError(i,"BAD_DIRECTIVE",n,s)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const r=nu(this.options,this.directives,e,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const r=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new mt(dt(e),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const n="Unexpected doc-end without preceding document";this.errors.push(new mt(dt(e),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;const r=Bt(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){const n=this.doc.comment;this.doc.comment=n?`${n}
120
- ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new mt(dt(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const n=Object.assign({_directives:this.directives},this.options),s=new Qs(void 0,n);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),s.range=[0,r,r],this.decorate(s,!1),yield s}}};var Od=Object.defineProperty,ut=h((t,e)=>Od(t,"name",{value:e,configurable:!0}),"i$4");function Pd(t,e=!0,r){if(t){const n=ut((s,i,o)=>{const a=typeof s=="number"?s:Array.isArray(s)?s[0]:s.offset;if(r)r(a,i,o);else throw new mt([a,a+1],i,o)},"_onError");switch(t.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return ri(t,e,n);case"block-scalar":return ti({options:{strict:e}},t,n)}}return null}h(Pd,"q$2");ut(Pd,"resolveAsScalar");function Nd(t,e){const{implicitKey:r=!1,indent:n,inFlow:s=!1,offset:i=-1,type:o="PLAIN"}=e,a=Ot({type:o,value:t},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}}),u=e.end??[{type:"newline",offset:-1,indent:n,source:`
121
- `}];switch(a[0]){case"|":case">":{const l=a.indexOf(`
122
- `),f=a.substring(0,l),g=a.substring(l+1)+`
123
- `,m=[{type:"block-scalar-header",offset:i,indent:n,source:f}];return ci(m,u)||m.push({type:"newline",offset:-1,indent:n,source:`
124
- `}),{type:"block-scalar",offset:i,indent:n,props:m,source:g}}case'"':return{type:"double-quoted-scalar",offset:i,indent:n,source:a,end:u};case"'":return{type:"single-quoted-scalar",offset:i,indent:n,source:a,end:u};default:return{type:"scalar",offset:i,indent:n,source:a,end:u}}}h(Nd,"E$1");ut(Nd,"createScalarToken");function Bd(t,e,r={}){let{afterKey:n=!1,implicitKey:s=!1,inFlow:i=!1,type:o}=r,a="indent"in t?t.indent:null;if(n&&typeof a=="number"&&(a+=2),!o)switch(t.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{const l=t.props[0];if(l.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=l.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}const u=Ot({type:o,value:e},{implicitKey:s||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(u[0]){case"|":case">":iu(t,u);break;case'"':Mr(t,u,"double-quoted-scalar");break;case"'":Mr(t,u,"single-quoted-scalar");break;default:Mr(t,u,"scalar")}}h(Bd,"L$2");ut(Bd,"setScalarValue");function iu(t,e){const r=e.indexOf(`
125
- `),n=e.substring(0,r),s=e.substring(r+1)+`
126
- `;if(t.type==="block-scalar"){const i=t.props[0];if(i.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i.source=n,t.source=s}else{const{offset:i}=t,o="indent"in t?t.indent:-1,a=[{type:"block-scalar-header",offset:i,indent:o,source:n}];ci(a,"end"in t?t.end:void 0)||a.push({type:"newline",offset:-1,indent:o,source:`
127
- `});for(const u of Object.keys(t))u!=="type"&&u!=="offset"&&delete t[u];Object.assign(t,{type:"block-scalar",indent:o,props:a,source:s})}}h(iu,"A$2");ut(iu,"setBlockScalarValue");function ci(t,e){if(e)for(const r of e)switch(r.type){case"space":case"comment":t.push(r);break;case"newline":return t.push(r),!0}return!1}h(ci,"b$7");ut(ci,"addEndtoBlockProps");function Mr(t,e,r){switch(t.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":t.type=r,t.source=e;break;case"block-scalar":{const n=t.props.slice(1);let s=e.length;t.props[0].type==="block-scalar-header"&&(s-=t.props[0].source.length);for(const i of n)i.offset+=s;delete t.props,Object.assign(t,{type:r,source:e,end:n});break}case"block-map":case"block-seq":{const n={type:"newline",offset:t.offset+e.length,indent:t.indent,source:`
128
- `};delete t.items,Object.assign(t,{type:r,source:e,end:[n]});break}default:{const n="indent"in t?t.indent:-1,s="end"in t&&Array.isArray(t.end)?t.end.filter(i=>i.type==="space"||i.type==="comment"||i.type==="newline"):[];for(const i of Object.keys(t))i!=="type"&&i!=="offset"&&delete t[i];Object.assign(t,{type:r,indent:n,source:e,end:s})}}}h(Mr,"u$9");ut(Mr,"setFlowScalarValue");var kd=Object.defineProperty,li=h((t,e)=>kd(t,"name",{value:e,configurable:!0}),"t$3");li(t=>"type"in t?lr(t):tr(t),"stringify");function lr(t){switch(t.type){case"block-scalar":{let e="";for(const r of t.props)e+=lr(r);return e+t.source}case"block-map":case"block-seq":{let e="";for(const r of t.items)e+=tr(r);return e}case"flow-collection":{let e=t.start.source;for(const r of t.items)e+=tr(r);for(const r of t.end)e+=r.source;return e}case"document":{let e=tr(t);if(t.end)for(const r of t.end)e+=r.source;return e}default:{let e=t.source;if("end"in t&&t.end)for(const r of t.end)e+=r.source;return e}}}h(lr,"f$3");li(lr,"stringifyToken");function tr({start:t,key:e,sep:r,value:n}){let s="";for(const i of t)s+=i.source;if(e&&(s+=lr(e)),r)for(const i of r)s+=i.source;return n&&(s+=lr(n)),s}h(tr,"c$2");li(tr,"stringifyItem");var Id=Object.defineProperty,ou=h((t,e)=>Id(t,"name",{value:e,configurable:!0}),"s$5");const ds=Symbol("break visit"),xd=Symbol("skip children"),au=Symbol("remove item");function nt(t,e){"type"in t&&t.type==="document"&&(t={start:t.start,value:t.value}),fi(Object.freeze([]),t,e)}h(nt,"l$2");ou(nt,"visit");nt.BREAK=ds;nt.SKIP=xd;nt.REMOVE=au;nt.itemAtPath=(t,e)=>{let r=t;for(const[n,s]of e){const i=r?.[n];if(i&&"items"in i)r=i.items[s];else return}return r};nt.parentCollection=(t,e)=>{const r=nt.itemAtPath(t,e.slice(0,-1)),n=e[e.length-1][0],s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function fi(t,e,r){let n=r(e,t);if(typeof n=="symbol")return n;for(const s of["key","value"]){const i=e[s];if(i&&"items"in i){for(let o=0;o<i.items.length;++o){const a=fi(Object.freeze(t.concat([[s,o]])),i.items[o],r);if(typeof a=="number")o=a-1;else{if(a===ds)return ds;a===au&&(i.items.splice(o,1),o-=1)}}typeof n=="function"&&s==="key"&&(n=n(e,t))}}return typeof n=="function"?n(e,t):n}h(fi,"y$4");ou(fi,"_visit");var Td=Object.defineProperty,Dn=h((t,e)=>Td(t,"name",{value:e,configurable:!0}),"r$1");const hi="\uFEFF",pi="",di="",Kr="";Dn(t=>!!t&&"items"in t,"isCollection");Dn(t=>!!t&&(t.type==="scalar"||t.type==="single-quoted-scalar"||t.type==="double-quoted-scalar"||t.type==="block-scalar"),"isScalar");function jd(t){switch(t){case hi:return"<BOM>";case pi:return"<DOC>";case di:return"<FLOW_END>";case Kr:return"<SCALAR>";default:return JSON.stringify(t)}}h(jd,"i$3");Dn(jd,"prettyToken");function uu(t){switch(t){case hi:return"byte-order-mark";case pi:return"doc-mode";case di:return"flow-error-end";case Kr:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
129
- `:case`\r
130
- `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(t[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}h(uu,"d$7");Dn(uu,"tokenType");var Rd=Object.defineProperty,mi=h((t,e)=>Rd(t,"name",{value:e,configurable:!0}),"a$4");function le(t){switch(t){case void 0:case" ":case`
131
- `:case"\r":case" ":return!0;default:return!1}}h(le,"n$3");mi(le,"isEmpty");const Ri=new Set("0123456789ABCDEFabcdef"),Md=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Nr=new Set(",[]{}"),_d=new Set(` ,[]{}
132
- \r `),Ln=mi(t=>!t||_d.has(t),"isNotAnchorChar");let Gd=class{static{h(this,"k")}static{mi(this,"Lexer")}constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,r=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!r;let n=this.next??"stream";for(;n&&(r||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,r=this.buffer[e];for(;r===" "||r===" ";)r=this.buffer[++e];return!r||r==="#"||r===`
133
- `?!0:r==="\r"?this.buffer[e+1]===`
134
- `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let r=this.buffer[e];if(this.indentNext>0){let n=0;for(;r===" ";)r=this.buffer[++n+e];if(r==="\r"){const s=this.buffer[n+e+1];if(s===`
135
- `||!s&&!this.atEnd)return e+n+1}return r===`
136
- `||n>=this.indentNext||!r&&!this.atEnd?e+n:-1}if(r==="-"||r==="."){const n=this.buffer.substr(e,3);if((n==="---"||n==="...")&&le(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
137
- `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===hi&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let r=e.length,n=e.indexOf("#");for(;n!==-1;){const i=e[n-1];if(i===" "||i===" "){r=n-1;break}else n=e.indexOf("#",n+1)}for(;;){const i=e[r-1];if(i===" "||i===" ")r-=1;else break}const s=(yield*this.pushCount(r))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){const r=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-r),yield*this.pushNewline(),"stream"}return yield pi,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const r=this.peek(3);if((r==="---"||r==="...")&&le(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,r==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!le(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&le(r)){const n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(e===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(e[r]){case"#":yield*this.pushCount(e.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Ln),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,r,n=-1;do e=yield*this.pushNewline(),e>0?(r=yield*this.pushSpaces(!1),this.indentValue=n=r):r=0,r+=yield*this.pushSpaces(!0);while(e+r>0);const s=this.getLine();if(s===null)return this.setNext("flow");if((n!==-1&&n<this.indentNext&&s[0]!=="#"||n===0&&(s.startsWith("---")||s.startsWith("..."))&&le(s[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(s[0]==="]"||s[0]==="}")))return this.flowLevel=0,yield di,yield*this.parseLineStart();let i=0;for(;s[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),s[i]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Ln),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const o=this.charAt(1);if(this.flowKey||le(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let r=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;r!==-1&&this.buffer[r+1]==="'";)r=this.buffer.indexOf("'",r+2);else for(;r!==-1;){let i=0;for(;this.buffer[r-1-i]==="\\";)i+=1;if(i%2===0)break;r=this.buffer.indexOf('"',r+1)}const n=this.buffer.substring(0,r);let s=n.indexOf(`
138
- `,this.pos);if(s!==-1){for(;s!==-1;){const i=this.continueScalar(s+1);if(i===-1)break;s=n.indexOf(`
139
- `,i)}s!==-1&&(r=s-(n[s-1]==="\r"?2:1))}if(r===-1){if(!this.atEnd)return this.setNext("quoted-scalar");r=this.buffer.length}return yield*this.pushToIndex(r+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const r=this.buffer[++e];if(r==="+")this.blockScalarKeep=!0;else if(r>"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>le(r)||r==="#")}*parseBlockScalar(){let e=this.pos-1,r=0,n;e:for(let i=this.pos;n=this.buffer[i];++i)switch(n){case" ":r+=1;break;case`
140
- `:e=i,r=0;break;case"\r":{const o=this.buffer[i+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
141
- `)break}default:break e}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const i=this.continueScalar(e+1);if(i===-1)break;e=this.buffer.indexOf(`
142
- `,i)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;for(n=this.buffer[s];n===" ";)n=this.buffer[++s];if(n===" "){for(;n===" "||n===" "||n==="\r"||n===`
143
- `;)n=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep)do{let i=e-1,o=this.buffer[i];o==="\r"&&(o=this.buffer[--i]);const a=i;for(;o===" ";)o=this.buffer[--i];if(o===`
144
- `&&i>=this.pos&&i+1+r>a)e=i;else break}while(!0);return yield Kr,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let r=this.pos-1,n=this.pos-1,s;for(;s=this.buffer[++n];)if(s===":"){const i=this.buffer[n+1];if(le(i)||e&&Nr.has(i))break;r=n}else if(le(s)){let i=this.buffer[n+1];if(s==="\r"&&(i===`
145
- `?(n+=1,s=`
146
- `,i=this.buffer[n+1]):r=n),i==="#"||e&&Nr.has(i))break;if(s===`
147
- `){const o=this.continueScalar(n+1);if(o===-1)break;n=Math.max(n,o-2)}}else{if(e&&Nr.has(s))break;r=n}return!s&&!this.atEnd?this.setNext("plain-scalar"):(yield Kr,yield*this.pushToIndex(r+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,r){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(r&&(yield""),0)}*pushIndicators(){let e=0;e:for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue e;case"&":e+=yield*this.pushUntil(Ln),e+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{const r=this.flowLevel>0,n=this.charAt(1);if(le(n)||r&&Nr.has(n)){r?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue e}}}break e}return e}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,r=this.buffer[e];for(;!le(r)&&r!==">";)r=this.buffer[++e];return yield*this.pushToIndex(r===">"?e+1:e,!1)}else{let e=this.pos+1,r=this.buffer[e];for(;r;)if(Md.has(r))r=this.buffer[++e];else if(r==="%"&&Ri.has(this.buffer[e+1])&&Ri.has(this.buffer[e+2]))r=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===`
148
- `?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
149
- `?yield*this.pushCount(2):0}*pushSpaces(e){let r=this.pos-1,n;do n=this.buffer[++r];while(n===" "||e&&n===" ");const s=r-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=r),s}*pushUntil(e){let r=this.pos,n=this.buffer[r];for(;!e(n);)n=this.buffer[++r];return yield*this.pushToIndex(r,!1)}};var Ud=Object.defineProperty,qd=h((t,e)=>Ud(t,"name",{value:e,configurable:!0}),"s$3");let Kd=class{static{h(this,"a")}static{qd(this,"LineCounter")}constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let r=0,n=this.lineStarts.length;for(;r<n;){const i=r+n>>1;this.lineStarts[i]<e?r=i+1:n=i}if(this.lineStarts[r]===e)return{line:r+1,col:1};if(r===0)return{line:0,col:e};const s=this.lineStarts[r-1];return{line:r,col:e-s+1}}}};var Wd=Object.defineProperty,We=h((t,e)=>Wd(t,"name",{value:e,configurable:!0}),"l$1");function Pe(t,e){for(let r=0;r<t.length;++r)if(t[r].type===e)return!0;return!1}h(Pe,"r");We(Pe,"includesToken");function ms(t){for(let e=0;e<t.length;++e)switch(t[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}h(ms,"d$6");We(ms,"findNonEmptyIndex");function gi(t){switch(t?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}h(gi,"k$3");We(gi,"isFlowToken");function zt(t){switch(t.type){case"document":return t.start;case"block-map":{const e=t.items[t.items.length-1];return e.sep??e.start}case"block-seq":return t.items[t.items.length-1].start;default:return[]}}h(zt,"u$4");We(zt,"getPrevProps");function Ve(t){if(t.length===0)return[];let e=t.length;e:for(;--e>=0;)switch(t[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;t[++e]?.type==="space";);return t.splice(e,t.length)}h(Ve,"h$2");We(Ve,"getFirstKeyStartProps");function fr(t,e){if(e.length<1e5)Array.prototype.push.apply(t,e);else for(let r=0;r<e.length;++r)t.push(e[r])}h(fr,"f$1");We(fr,"arrayPushArray");function gs(t){if(t.start.type==="flow-seq-start")for(const e of t.items)e.sep&&!e.value&&!Pe(e.start,"explicit-key-ind")&&!Pe(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,gi(e.value)?e.value.end?fr(e.value.end,e.sep):e.value.end=e.sep:fr(e.start,e.sep),delete e.sep)}h(gs,"y$3");We(gs,"fixFlowSeqItems");class cu{static{h(this,"g")}static{We(this,"Parser")}constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Gd,this.onNewLine=e}*parse(e,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const n of this.lexer.lex(e,r))yield*this.next(n);r||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const r=uu(e);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const n=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&e?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const r=e??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{const n=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in n?n.indent:0:r.type==="flow-collection"&&n.type==="document"&&(r.indent=0),r.type==="flow-collection"&&gs(r),n.type){case"document":n.value=r;break;case"block-scalar":n.props.push(r);break;case"block-map":{const s=n.items[n.items.length-1];if(s.value){n.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(s.sep)s.value=r;else{Object.assign(s,{key:r,sep:[]}),this.onKeyLine=!s.explicitKey;return}break}case"block-seq":{const s=n.items[n.items.length-1];s.value?n.items.push({start:[],value:r}):s.value=r;break}case"flow-collection":{const s=n.items[n.items.length-1];!s||s.value?n.items.push({start:[],key:r,sep:[]}):s.sep?s.value=r:Object.assign(s,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){const s=r.items[r.items.length-1];s&&!s.sep&&!s.value&&s.start.length>0&&ms(s.start)===-1&&(r.indent===0||s.start.every(i=>i.type!=="comment"||i.indent<r.indent))&&(n.type==="document"?n.end=s.start:n.items.push({start:s.start}),r.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{ms(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const r=this.startBlockValue(e);r?this.stack.push(r):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){const r=zt(this.peek(2)),n=Ve(r);let s;e.end?(s=e.end,s.push(this.sourceToken),delete e.end):s=[this.sourceToken];const i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let r=this.source.indexOf(`
150
- `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
151
- `,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const r=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){const n="end"in r.value?r.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,e.indent)){const n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){fr(n,r.start),n.push(this.sourceToken),e.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const n=!this.onKeyLine&&this.indent===e.indent,s=n&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind";let i=[];if(s&&r.sep&&!r.value){const o=[];for(let a=0;a<r.sep.length;++a){const u=r.sep[a];switch(u.type){case"newline":o.push(a);break;case"space":break;case"comment":u.indent>e.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(i=r.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":s||r.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):s||r.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(r.explicitKey)if(r.sep)if(r.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Pe(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(gi(r.key)&&!Pe(r.sep,"newline")){const o=Ve(r.start),a=r.key,u=r.sep;u.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:a,sep:u}]})}else i.length>0?r.sep=r.sep.concat(i,this.sourceToken):r.sep.push(this.sourceToken);else if(Pe(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{const o=Ve(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||s?e.items.push({start:i,key:null,sep:[this.sourceToken]}):Pe(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);s||r.value?(e.items.push({start:i,key:o,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(o):(Object.assign(r,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{const o=this.startBlockValue(e);if(o){if(o.type==="block-seq"){if(!r.explicitKey&&r.sep&&!Pe(r.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const r=e.items[e.items.length-1];switch(this.type){case"newline":if(r.value){const n="end"in r.value?r.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,e.indent)){const n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){fr(n,r.start),n.push(this.sourceToken),e.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=e.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;r.value||Pe(r.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>e.indent){const n=this.startBlockValue(e);if(n){this.stack.push(n);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const r=e.items[e.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n?.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?e.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);!r||r.value?e.items.push({start:[],key:s,sep:[]}):r.sep?this.stack.push(s):Object.assign(r,{key:s,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===e.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){const s=zt(n),i=Ve(s);gs(e);const o=e.end.splice(1,e.end.length);o.push(this.sourceToken);const a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:i,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let r=this.source.indexOf(`
152
- `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
153
- `,r)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const r=zt(e),n=Ve(r);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const r=zt(e),n=Ve(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,r){return this.type!=="comment"||this.indent<=r?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}var Hd=Object.defineProperty,Cr=h((t,e)=>Hd(t,"name",{value:e,configurable:!0}),"s$2");function Di(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new Kd||null,prettyErrors:e}}h(Di,"a$2");Cr(Di,"parseOptions");function Vd(t,e={}){const{lineCounter:r,prettyErrors:n}=Di(e),s=new cu(r?.addNewLine),i=new su(e),o=Array.from(i.compose(s.parse(t)));if(n&&r)for(const a of o)a.errors.forEach(Ur(t,r)),a.warnings.forEach(Ur(t,r));return o.length>0?o:Object.assign([],{empty:!0},i.streamInfo())}h(Vd,"L$1");Cr(Vd,"parseAllDocuments");function lu(t,e={}){const{lineCounter:r,prettyErrors:n}=Di(e),s=new cu(r?.addNewLine),i=new su(e);let o=null;for(const a of i.compose(s.parse(t),!0,t.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new mt(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&r&&(o.errors.forEach(Ur(t,r)),o.warnings.forEach(Ur(t,r))),o}h(lu,"d$5");Cr(lu,"parseDocument");function hr(t,e,r){let n;typeof e=="function"?n=e:r===void 0&&e&&typeof e=="object"&&(r=e);const s=lu(t,r);if(!s)return null;if(s.warnings.forEach(i=>Ts(s.options.logLevel,i)),s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}h(hr,"C$1");Cr(hr,"parse");function Yd(t,e,r){let n=null;if(typeof e=="function"||Array.isArray(e)?n=e:r===void 0&&e&&(r=e),typeof r=="string"&&(r=r.length),typeof r=="number"){const s=Math.round(r);r=s<1?void 0:s>8?{indent:8}:{indent:s}}if(t===void 0){const{keepUndefined:s}=r??e??{};if(!s)return}return Lt(t)&&!n?t.toString(r):new Qs(t,n,r).toString(r)}h(Yd,"A$1");Cr(Yd,"stringify");var zd=Object.defineProperty,fu=h((t,e)=>zd(t,"name",{value:e,configurable:!0}),"a$1"),Jd=Object.defineProperty,hu=fu((t,e)=>Jd(t,"name",{value:e,configurable:!0}),"o"),Xd=Object.defineProperty,Qd=hu((t,e)=>Xd(t,"name",{value:e,configurable:!0}),"r");async function $r(t,e,r){const{buffer:n,compression:s,encoding:i="utf8",flag:o,...a}=r??{},u=await vs(t,{buffer:n,compression:s,encoding:i,flag:o});return typeof e=="function"?hr(u,e,a):hr(u,a)}h($r,"n$2");fu($r,"g");hu($r,"l");Qd($r,"readYaml");var Zd=Object.defineProperty,pu=h((t,e)=>Zd(t,"name",{value:e,configurable:!0}),"n$1"),e0=Object.defineProperty,du=pu((t,e)=>e0(t,"name",{value:e,configurable:!0}),"o"),t0=Object.defineProperty,r0=du((t,e)=>t0(t,"name",{value:e,configurable:!0}),"t");function Fr(t,e,r){const{buffer:n,compression:s,encoding:i="utf8",flag:o,...a}=r??{},u=As(t,{buffer:n,compression:s,encoding:i,flag:o});return typeof e=="function"?hr(u,e,a):hr(u,a)}h(Fr,"o$1");pu(Fr,"g");du(Fr,"l");r0(Fr,"readYamlSync");var n0=Object.defineProperty,V=h((t,e)=>n0(t,"name",{value:e,configurable:!0}),"n"),s0=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,i0=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,o0=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,On={Space_Separator:s0,ID_Start:i0,ID_Continue:o0},H={isSpaceSeparator(t){return typeof t=="string"&&On.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||On.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="‌"||t==="‍"||On.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}};let Ds,re,Ne,Wr,Ge,me,z,yi,rr;var a0=V(function(t,e){Ds=String(t),re="start",Ne=[],Wr=0,Ge=1,me=0,z=void 0,yi=void 0,rr=void 0;do z=mu(),u0[re]();while(z.type!=="eof");return typeof e=="function"?Hr({"":rr},"",e):rr},"parse");function Hr(t,e,r){const n=t[e];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let s=0;s<n.length;s++){const i=String(s),o=Hr(n,i,r);o===void 0?delete n[i]:Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(const s in n){const i=Hr(n,s,r);i===void 0?delete n[s]:Object.defineProperty(n,s,{value:i,writable:!0,enumerable:!0,configurable:!0})}return r.call(t,e,n)}h(Hr,"T$1");V(Hr,"internalize");let B,O,Jt,Oe,I;function mu(){for(B="default",O="",Jt=!1,Oe=1;;){I=Ae();const t=gu[B]();if(t)return t}}h(mu,"tu");V(mu,"lex");function Ae(){if(Ds[Wr])return String.fromCodePoint(Ds.codePointAt(Wr))}h(Ae,"S");V(Ae,"peek");function w(){const t=Ae();return t===`
154
- `?(Ge++,me=0):t?me+=t.length:me++,t&&(Wr+=t.length),t}h(w,"u$3");V(w,"read");const gu={default(){switch(I){case" ":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
155
- `:case"\r":case"\u2028":case"\u2029":w();return;case"/":w(),B="comment";return;case void 0:return w(),R("eof")}if(H.isSpaceSeparator(I)){w();return}return gu[re]()},comment(){switch(I){case"*":w(),B="multiLineComment";return;case"/":w(),B="singleLineComment";return}throw _(w())},multiLineComment(){switch(I){case"*":w(),B="multiLineCommentAsterisk";return;case void 0:throw _(w())}w()},multiLineCommentAsterisk(){switch(I){case"*":w();return;case"/":w(),B="default";return;case void 0:throw _(w())}w(),B="multiLineComment"},singleLineComment(){switch(I){case`
156
- `:case"\r":case"\u2028":case"\u2029":w(),B="default";return;case void 0:return w(),R("eof")}w()},value(){switch(I){case"{":case"[":return R("punctuator",w());case"n":return w(),Te("ull"),R("null",null);case"t":return w(),Te("rue"),R("boolean",!0);case"f":return w(),Te("alse"),R("boolean",!1);case"-":case"+":w()==="-"&&(Oe=-1),B="sign";return;case".":O=w(),B="decimalPointLeading";return;case"0":O=w(),B="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":O=w(),B="decimalInteger";return;case"I":return w(),Te("nfinity"),R("numeric",1/0);case"N":return w(),Te("aN"),R("numeric",NaN);case'"':case"'":Jt=w()==='"',O="",B="string";return}throw _(w())},identifierNameStartEscape(){if(I!=="u")throw _(w());w();const t=Vr();switch(t){case"$":case"_":break;default:if(!H.isIdStartChar(t))throw ys();break}O+=t,B="identifierName"},identifierName(){switch(I){case"$":case"_":case"‌":case"‍":O+=w();return;case"\\":w(),B="identifierNameEscape";return}if(H.isIdContinueChar(I)){O+=w();return}return R("identifier",O)},identifierNameEscape(){if(I!=="u")throw _(w());w();const t=Vr();switch(t){case"$":case"_":case"‌":case"‍":break;default:if(!H.isIdContinueChar(t))throw ys();break}O+=t,B="identifierName"},sign(){switch(I){case".":O=w(),B="decimalPointLeading";return;case"0":O=w(),B="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":O=w(),B="decimalInteger";return;case"I":return w(),Te("nfinity"),R("numeric",Oe*(1/0));case"N":return w(),Te("aN"),R("numeric",NaN)}throw _(w())},zero(){switch(I){case".":O+=w(),B="decimalPoint";return;case"e":case"E":O+=w(),B="decimalExponent";return;case"x":case"X":O+=w(),B="hexadecimal";return}return R("numeric",Oe*0)},decimalInteger(){switch(I){case".":O+=w(),B="decimalPoint";return;case"e":case"E":O+=w(),B="decimalExponent";return}if(H.isDigit(I)){O+=w();return}return R("numeric",Oe*Number(O))},decimalPointLeading(){if(H.isDigit(I)){O+=w(),B="decimalFraction";return}throw _(w())},decimalPoint(){switch(I){case"e":case"E":O+=w(),B="decimalExponent";return}if(H.isDigit(I)){O+=w(),B="decimalFraction";return}return R("numeric",Oe*Number(O))},decimalFraction(){switch(I){case"e":case"E":O+=w(),B="decimalExponent";return}if(H.isDigit(I)){O+=w();return}return R("numeric",Oe*Number(O))},decimalExponent(){switch(I){case"+":case"-":O+=w(),B="decimalExponentSign";return}if(H.isDigit(I)){O+=w(),B="decimalExponentInteger";return}throw _(w())},decimalExponentSign(){if(H.isDigit(I)){O+=w(),B="decimalExponentInteger";return}throw _(w())},decimalExponentInteger(){if(H.isDigit(I)){O+=w();return}return R("numeric",Oe*Number(O))},hexadecimal(){if(H.isHexDigit(I)){O+=w(),B="hexadecimalInteger";return}throw _(w())},hexadecimalInteger(){if(H.isHexDigit(I)){O+=w();return}return R("numeric",Oe*Number(O))},string(){switch(I){case"\\":w(),O+=Du();return;case'"':if(Jt)return w(),R("string",O);O+=w();return;case"'":if(!Jt)return w(),R("string",O);O+=w();return;case`
157
- `:case"\r":throw _(w());case"\u2028":case"\u2029":bu(I);break;case void 0:throw _(w())}O+=w()},start(){switch(I){case"{":case"[":return R("punctuator",w())}B="value"},beforePropertyName(){switch(I){case"$":case"_":O=w(),B="identifierName";return;case"\\":w(),B="identifierNameStartEscape";return;case"}":return R("punctuator",w());case'"':case"'":Jt=w()==='"',B="string";return}if(H.isIdStartChar(I)){O+=w(),B="identifierName";return}throw _(w())},afterPropertyName(){if(I===":")return R("punctuator",w());throw _(w())},beforePropertyValue(){B="value"},afterPropertyValue(){switch(I){case",":case"}":return R("punctuator",w())}throw _(w())},beforeArrayValue(){if(I==="]")return R("punctuator",w());B="value"},afterArrayValue(){switch(I){case",":case"]":return R("punctuator",w())}throw _(w())},end(){throw _(w())}};function R(t,e){return{type:t,value:e,line:Ge,column:me}}h(R,"i$1");V(R,"newToken");function Te(t){for(const e of t){if(Ae()!==e)throw _(w());w()}}h(Te,"I$2");V(Te,"literal");function Du(){switch(Ae()){case"b":return w(),"\b";case"f":return w(),"\f";case"n":return w(),`
158
- `;case"r":return w(),"\r";case"t":return w()," ";case"v":return w(),"\v";case"0":if(w(),H.isDigit(Ae()))throw _(w());return"\0";case"x":return w(),yu();case"u":return w(),Vr();case`
159
- `:case"\u2028":case"\u2029":return w(),"";case"\r":return w(),Ae()===`
160
- `&&w(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw _(w());case void 0:throw _(w())}return w()}h(Du,"Au");V(Du,"escape");function yu(){let t="",e=Ae();if(!H.isHexDigit(e)||(t+=w(),e=Ae(),!H.isHexDigit(e)))throw _(w());return t+=w(),String.fromCodePoint(parseInt(t,16))}h(yu,"ru");V(yu,"hexEscape");function Vr(){let t="",e=4;for(;e-- >0;){const r=Ae();if(!H.isHexDigit(r))throw _(w());t+=w()}return String.fromCodePoint(parseInt(t,16))}h(Vr,"Z");V(Vr,"unicodeEscape");const u0={start(){if(z.type==="eof")throw je();_r()},beforePropertyName(){switch(z.type){case"identifier":case"string":yi=z.value,re="afterPropertyName";return;case"punctuator":Xt();return;case"eof":throw je()}},afterPropertyName(){if(z.type==="eof")throw je();re="beforePropertyValue"},beforePropertyValue(){if(z.type==="eof")throw je();_r()},beforeArrayValue(){if(z.type==="eof")throw je();if(z.type==="punctuator"&&z.value==="]"){Xt();return}_r()},afterPropertyValue(){if(z.type==="eof")throw je();switch(z.value){case",":re="beforePropertyName";return;case"}":Xt()}},afterArrayValue(){if(z.type==="eof")throw je();switch(z.value){case",":re="beforeArrayValue";return;case"]":Xt()}},end(){}};function _r(){let t;switch(z.type){case"punctuator":switch(z.value){case"{":t={};break;case"[":t=[];break}break;case"null":case"boolean":case"numeric":case"string":t=z.value;break}if(rr===void 0)rr=t;else{const e=Ne[Ne.length-1];Array.isArray(e)?e.push(t):Object.defineProperty(e,yi,{value:t,writable:!0,enumerable:!0,configurable:!0})}if(t!==null&&typeof t=="object")Ne.push(t),Array.isArray(t)?re="beforeArrayValue":re="beforePropertyName";else{const e=Ne[Ne.length-1];e==null?re="end":Array.isArray(e)?re="afterArrayValue":re="afterPropertyValue"}}h(_r,"q$1");V(_r,"push");function Xt(){Ne.pop();const t=Ne[Ne.length-1];t==null?re="end":Array.isArray(t)?re="afterArrayValue":re="afterPropertyValue"}h(Xt,"_");V(Xt,"pop");function _(t){return yn(t===void 0?`JSON5: invalid end of input at ${Ge}:${me}`:`JSON5: invalid character '${bi(t)}' at ${Ge}:${me}`)}h(_,"a");V(_,"invalidChar");function je(){return yn(`JSON5: invalid end of input at ${Ge}:${me}`)}h(je,"v$2");V(je,"invalidEOF");function ys(){return me-=5,yn(`JSON5: invalid identifier character at ${Ge}:${me}`)}h(ys,"R$2");V(ys,"invalidIdentifier");function bu(t){console.warn(`JSON5: '${bi(t)}' in strings is not valid ECMAScript; consider escaping`)}h(bu,"nu");V(bu,"separatorChar");function bi(t){const e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(e[t])return e[t];if(t<" "){const r=t.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return t}h(bi,"G$1");V(bi,"formatChar");function yn(t){const e=new SyntaxError(t);return e.lineNumber=Ge,e.columnNumber=me,e}h(yn,"J$1");V(yn,"syntaxError");var c0=V(function(t,e,r){const n=[];let s="",i,o,a="",u;if(e!=null&&typeof e=="object"&&!Array.isArray(e)&&(r=e.space,u=e.quote,e=e.replacer),typeof e=="function")o=e;else if(Array.isArray(e)){i=[];for(const $ of e){let b;typeof $=="string"?b=$:(typeof $=="number"||$ instanceof String||$ instanceof Number)&&(b=String($)),b!==void 0&&i.indexOf(b)<0&&i.push(b)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),typeof r=="number"?r>0&&(r=Math.min(10,Math.floor(r)),a=" ".substr(0,r)):typeof r=="string"&&(a=r.substr(0,10)),l("",{"":t});function l($,b){let F=b[$];switch(F!=null&&(typeof F.toJSON5=="function"?F=F.toJSON5($):typeof F.toJSON=="function"&&(F=F.toJSON($))),o&&(F=o.call(b,$,F)),F instanceof Number?F=Number(F):F instanceof String?F=String(F):F instanceof Boolean&&(F=F.valueOf()),F){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof F=="string")return f(F);if(typeof F=="number")return String(F);if(typeof F=="object")return Array.isArray(F)?v(F):g(F)}function f($){const b={"'":.1,'"':.2},F={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let E="";for(let c=0;c<$.length;c++){const D=$[c];switch(D){case"'":case'"':b[D]++,E+=D;continue;case"\0":if(H.isDigit($[c+1])){E+="\\x00";continue}}if(F[D]){E+=F[D];continue}if(D<" "){let y=D.charCodeAt(0).toString(16);E+="\\x"+("00"+y).substring(y.length);continue}E+=D}const d=u||Object.keys(b).reduce((c,D)=>b[c]<b[D]?c:D);return E=E.replace(new RegExp(d,"g"),F[d]),d+E+d}function g($){if(n.indexOf($)>=0)throw TypeError("Converting circular structure to JSON5");n.push($);let b=s;s=s+a;let F=i||Object.keys($),E=[];for(const c of F){const D=l(c,$);if(D!==void 0){let y=m(c)+":";a!==""&&(y+=" "),y+=D,E.push(y)}}let d;if(E.length===0)d="{}";else{let c;if(a==="")c=E.join(","),d="{"+c+"}";else{let D=`,
161
- `+s;c=E.join(D),d=`{
162
- `+s+c+`,
163
- `+b+"}"}}return n.pop(),s=b,d}function m($){if($.length===0)return f($);const b=String.fromCodePoint($.codePointAt(0));if(!H.isIdStartChar(b))return f($);for(let F=b.length;F<$.length;F++)if(!H.isIdContinueChar(String.fromCodePoint($.codePointAt(F))))return f($);return $}function v($){if(n.indexOf($)>=0)throw TypeError("Converting circular structure to JSON5");n.push($);let b=s;s=s+a;let F=[];for(let d=0;d<$.length;d++){const c=l(String(d),$);F.push(c!==void 0?c:"null")}let E;if(F.length===0)E="[]";else if(a==="")E="["+F.join(",")+"]";else{let d=`,
164
- `+s,c=F.join(d);E=`[
165
- `+s+c+`,
166
- `+b+"]"}return n.pop(),s=b,E}},"stringify");const l0={parse:a0,stringify:c0};var Eu=l0,f0=Object.defineProperty,$t=h((t,e)=>f0(t,"name",{value:e,configurable:!0}),"t");function vu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}h(vu,"getDefaultExportFromCjs");$t(vu,"getDefaultExportFromCjs");function h0(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}h(h0,"getDefaultExportFromNamespaceIfPresent");$t(h0,"getDefaultExportFromNamespaceIfPresent");function p0(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")&&Object.keys(t).length===1?t.default:t}h(p0,"getDefaultExportFromNamespaceIfNotNamed");$t(p0,"getDefaultExportFromNamespaceIfNotNamed");function Ei(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=$t(h(function n(){var s=!1;try{s=this instanceof n}catch{}return s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)},"a"),"a");r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:$t(function(){return t[n]},"get")})}),r}h(Ei,"getAugmentedNamespace");$t(Ei,"getAugmentedNamespace");var Pn,Mi;function Au(){return Mi||(Mi=1,Pn=process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{}),Pn}h(Au,"requireDebug");var Nn,_i;function Cu(){return _i||(_i=1,Nn={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}),Nn}h(Cu,"requireConstants");var Br={exports:{}},Gi;function d0(){return Gi||(Gi=1,(function(t,e){var r=Object.defineProperty,n=h((d,c)=>r(d,"name",{value:c,configurable:!0}),"O");const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=Cu(),a=Au();e=t.exports={};const u=e.re=[],l=e.safeRe=[],f=e.src=[],g=e.safeSrc=[],m=e.t={};let v=0;const $="[a-zA-Z0-9-]",b=[["\\s",1],["\\d",o],[$,i]],F=n(d=>{for(const[c,D]of b)d=d.split(`${c}*`).join(`${c}{0,${D}}`).split(`${c}+`).join(`${c}{1,${D}}`);return d},"makeSafeRegex"),E=n((d,c,D)=>{const y=F(c),p=v++;a(d,p,c),m[d]=p,f[p]=c,g[p]=y,u[p]=new RegExp(c,D?"g":void 0),l[p]=new RegExp(y,D?"g":void 0)},"createToken");E("NUMERICIDENTIFIER","0|[1-9]\\d*"),E("NUMERICIDENTIFIERLOOSE","\\d+"),E("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${$}*`),E("MAINVERSION",`(${f[m.NUMERICIDENTIFIER]})\\.(${f[m.NUMERICIDENTIFIER]})\\.(${f[m.NUMERICIDENTIFIER]})`),E("MAINVERSIONLOOSE",`(${f[m.NUMERICIDENTIFIERLOOSE]})\\.(${f[m.NUMERICIDENTIFIERLOOSE]})\\.(${f[m.NUMERICIDENTIFIERLOOSE]})`),E("PRERELEASEIDENTIFIER",`(?:${f[m.NONNUMERICIDENTIFIER]}|${f[m.NUMERICIDENTIFIER]})`),E("PRERELEASEIDENTIFIERLOOSE",`(?:${f[m.NONNUMERICIDENTIFIER]}|${f[m.NUMERICIDENTIFIERLOOSE]})`),E("PRERELEASE",`(?:-(${f[m.PRERELEASEIDENTIFIER]}(?:\\.${f[m.PRERELEASEIDENTIFIER]})*))`),E("PRERELEASELOOSE",`(?:-?(${f[m.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${f[m.PRERELEASEIDENTIFIERLOOSE]})*))`),E("BUILDIDENTIFIER",`${$}+`),E("BUILD",`(?:\\+(${f[m.BUILDIDENTIFIER]}(?:\\.${f[m.BUILDIDENTIFIER]})*))`),E("FULLPLAIN",`v?${f[m.MAINVERSION]}${f[m.PRERELEASE]}?${f[m.BUILD]}?`),E("FULL",`^${f[m.FULLPLAIN]}$`),E("LOOSEPLAIN",`[v=\\s]*${f[m.MAINVERSIONLOOSE]}${f[m.PRERELEASELOOSE]}?${f[m.BUILD]}?`),E("LOOSE",`^${f[m.LOOSEPLAIN]}$`),E("GTLT","((?:<|>)?=?)"),E("XRANGEIDENTIFIERLOOSE",`${f[m.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),E("XRANGEIDENTIFIER",`${f[m.NUMERICIDENTIFIER]}|x|X|\\*`),E("XRANGEPLAIN",`[v=\\s]*(${f[m.XRANGEIDENTIFIER]})(?:\\.(${f[m.XRANGEIDENTIFIER]})(?:\\.(${f[m.XRANGEIDENTIFIER]})(?:${f[m.PRERELEASE]})?${f[m.BUILD]}?)?)?`),E("XRANGEPLAINLOOSE",`[v=\\s]*(${f[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${f[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${f[m.XRANGEIDENTIFIERLOOSE]})(?:${f[m.PRERELEASELOOSE]})?${f[m.BUILD]}?)?)?`),E("XRANGE",`^${f[m.GTLT]}\\s*${f[m.XRANGEPLAIN]}$`),E("XRANGELOOSE",`^${f[m.GTLT]}\\s*${f[m.XRANGEPLAINLOOSE]}$`),E("COERCEPLAIN",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?`),E("COERCE",`${f[m.COERCEPLAIN]}(?:$|[^\\d])`),E("COERCEFULL",f[m.COERCEPLAIN]+`(?:${f[m.PRERELEASE]})?(?:${f[m.BUILD]})?(?:$|[^\\d])`),E("COERCERTL",f[m.COERCE],!0),E("COERCERTLFULL",f[m.COERCEFULL],!0),E("LONETILDE","(?:~>?)"),E("TILDETRIM",`(\\s*)${f[m.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",E("TILDE",`^${f[m.LONETILDE]}${f[m.XRANGEPLAIN]}$`),E("TILDELOOSE",`^${f[m.LONETILDE]}${f[m.XRANGEPLAINLOOSE]}$`),E("LONECARET","(?:\\^)"),E("CARETTRIM",`(\\s*)${f[m.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",E("CARET",`^${f[m.LONECARET]}${f[m.XRANGEPLAIN]}$`),E("CARETLOOSE",`^${f[m.LONECARET]}${f[m.XRANGEPLAINLOOSE]}$`),E("COMPARATORLOOSE",`^${f[m.GTLT]}\\s*(${f[m.LOOSEPLAIN]})$|^$`),E("COMPARATOR",`^${f[m.GTLT]}\\s*(${f[m.FULLPLAIN]})$|^$`),E("COMPARATORTRIM",`(\\s*)${f[m.GTLT]}\\s*(${f[m.LOOSEPLAIN]}|${f[m.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",E("HYPHENRANGE",`^\\s*(${f[m.XRANGEPLAIN]})\\s+-\\s+(${f[m.XRANGEPLAIN]})\\s*$`),E("HYPHENRANGELOOSE",`^\\s*(${f[m.XRANGEPLAINLOOSE]})\\s+-\\s+(${f[m.XRANGEPLAINLOOSE]})\\s*$`),E("STAR","(<|>)?=?\\s*\\*"),E("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),E("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Br,Br.exports)),Br.exports}h(d0,"requireRe");var Bn,Ui;function m0(){if(Ui)return Bn;Ui=1;var t=Object.defineProperty,e=h((i,o)=>t(i,"name",{value:o,configurable:!0}),"t");const r=Object.freeze({loose:!0}),n=Object.freeze({});return Bn=e(i=>i?typeof i!="object"?r:i:n,"parseOptions"),Bn}h(m0,"requireParseOptions");var kn,qi;function g0(){if(qi)return kn;qi=1;var t=Object.defineProperty,e=h((i,o)=>t(i,"name",{value:o,configurable:!0}),"s");const r=/^[0-9]+$/,n=e((i,o)=>{if(typeof i=="number"&&typeof o=="number")return i===o?0:i<o?-1:1;const a=r.test(i),u=r.test(o);return a&&u&&(i=+i,o=+o),i===o?0:a&&!u?-1:u&&!a?1:i<o?-1:1},"compareIdentifiers"),s=e((i,o)=>n(o,i),"rcompareIdentifiers");return kn={compareIdentifiers:n,rcompareIdentifiers:s},kn}h(g0,"requireIdentifiers");var In,Ki;function D0(){if(Ki)return In;Ki=1;var t=Object.defineProperty,e=h((f,g)=>t(f,"name",{value:g,configurable:!0}),"a");const r=Au(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:s}=Cu(),{safeRe:i,t:o}=d0(),a=m0(),{compareIdentifiers:u}=g0();class l{static{h(this,"SemVer")}static{e(this,"SemVer")}constructor(g,m){if(m=a(m),g instanceof l){if(g.loose===!!m.loose&&g.includePrerelease===!!m.includePrerelease)return g;g=g.version}else if(typeof g!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof g}".`);if(g.length>n)throw new TypeError(`version is longer than ${n} characters`);r("SemVer",g,m),this.options=m,this.loose=!!m.loose,this.includePrerelease=!!m.includePrerelease;const v=g.trim().match(m.loose?i[o.LOOSE]:i[o.FULL]);if(!v)throw new TypeError(`Invalid Version: ${g}`);if(this.raw=g,this.major=+v[1],this.minor=+v[2],this.patch=+v[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");v[4]?this.prerelease=v[4].split(".").map($=>{if(/^[0-9]+$/.test($)){const b=+$;if(b>=0&&b<s)return b}return $}):this.prerelease=[],this.build=v[5]?v[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(g){if(r("SemVer.compare",this.version,this.options,g),!(g instanceof l)){if(typeof g=="string"&&g===this.version)return 0;g=new l(g,this.options)}return g.version===this.version?0:this.compareMain(g)||this.comparePre(g)}compareMain(g){return g instanceof l||(g=new l(g,this.options)),this.major<g.major?-1:this.major>g.major?1:this.minor<g.minor?-1:this.minor>g.minor?1:this.patch<g.patch?-1:this.patch>g.patch?1:0}comparePre(g){if(g instanceof l||(g=new l(g,this.options)),this.prerelease.length&&!g.prerelease.length)return-1;if(!this.prerelease.length&&g.prerelease.length)return 1;if(!this.prerelease.length&&!g.prerelease.length)return 0;let m=0;do{const v=this.prerelease[m],$=g.prerelease[m];if(r("prerelease compare",m,v,$),v===void 0&&$===void 0)return 0;if($===void 0)return 1;if(v===void 0)return-1;if(v!==$)return u(v,$)}while(++m)}compareBuild(g){g instanceof l||(g=new l(g,this.options));let m=0;do{const v=this.build[m],$=g.build[m];if(r("build compare",m,v,$),v===void 0&&$===void 0)return 0;if($===void 0)return 1;if(v===void 0)return-1;if(v!==$)return u(v,$)}while(++m)}inc(g,m,v){if(g.startsWith("pre")){if(!m&&v===!1)throw new Error("invalid increment argument: identifier is empty");if(m){const $=`-${m}`.match(this.options.loose?i[o.PRERELEASELOOSE]:i[o.PRERELEASE]);if(!$||$[1]!==m)throw new Error(`invalid identifier: ${m}`)}}switch(g){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",m,v);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",m,v);break;case"prepatch":this.prerelease.length=0,this.inc("patch",m,v),this.inc("pre",m,v);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",m,v),this.inc("pre",m,v);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const $=Number(v)?1:0;if(this.prerelease.length===0)this.prerelease=[$];else{let b=this.prerelease.length;for(;--b>=0;)typeof this.prerelease[b]=="number"&&(this.prerelease[b]++,b=-2);if(b===-1){if(m===this.prerelease.join(".")&&v===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push($)}}if(m){let b=[m,$];v===!1&&(b=[m]),u(this.prerelease[0],m)===0?isNaN(this.prerelease[1])&&(this.prerelease=b):this.prerelease=b}break}default:throw new Error(`invalid increment argument: ${g}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return In=l,In}h(D0,"requireSemver");var xn,Wi;function $u(){if(Wi)return xn;Wi=1;var t=Object.defineProperty,e=h((s,i)=>t(s,"name",{value:i,configurable:!0}),"t");const r=D0();return xn=e((s,i,o=!1)=>{if(s instanceof r)return s;try{return new r(s,i)}catch(a){if(!o)return null;throw a}},"parse"),xn}h($u,"requireParse$1");var Tn,Hi;function y0(){if(Hi)return Tn;Hi=1;var t=Object.defineProperty,e=h((s,i)=>t(s,"name",{value:i,configurable:!0}),"t");const r=$u();return Tn=e((s,i)=>{const o=r(s,i);return o?o.version:null},"valid"),Tn}h(y0,"requireValid");var jn,Vi;function b0(){if(Vi)return jn;Vi=1;var t=Object.defineProperty,e=h((s,i)=>t(s,"name",{value:i,configurable:!0}),"t");const r=$u();return jn=e((s,i)=>{const o=r(s.trim().replace(/^[=v]+/,""),i);return o?o.version:null},"clean"),jn}h(b0,"requireClean");var Rn,Yi;function Fu(){return Yi||(Yi=1,Rn=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","ALGLIB-Documentation","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Advanced-Cryptics-Dictionary","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","Artistic-dist","Aspell-RU","BOLA-1.1","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-2-Clause-pkgconf-disclaimer","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-Tso","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Mark-Modifications","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","Buddy","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CAPEC-tou","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CryptoSwift","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-DTD","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","ESA-PL-permissive-2.4","ESA-PL-strong-copyleft-2.4","ESA-PL-weak-copyleft-2.4","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Game-Programming-Gems","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HDF5","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-SMC","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HPND-sell-variant-critical-systems","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ISO-permission","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-STK","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MMPL-1.0.1","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-TNT","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTIA-PD","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSC-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OSSP","OpenMDW-1.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","ParaType-Free-Font-1.3","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGMLUG-PM","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SOFA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SUL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TekHVC","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","UnRAR","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","VOSTROM","VSL-1.0","Vim","Vixie-Cron","W3C","W3C-19980720","W3C-20150513","WTFNMFPL","WTFPL","Watcom-1.0","Widget-Workshop","WordNet","Wsuipa","X11","X11-distribute-modifications-variant","X11-no-permit-persons","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","hyphen-bulgarian","iMatix","jove","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","man2html","metamail","mpi-permissive","mpich2","mplus","ngrep","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]),Rn}h(Fu,"requireSpdxLicenseIds");var Mn,zi;function E0(){return zi||(zi=1,Mn=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]),Mn}h(E0,"requireDeprecated");var _n,Ji;function v0(){return Ji||(Ji=1,_n=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]),_n}h(v0,"requireSpdxExceptions");var Gn,Xi;function A0(){if(Xi)return Gn;Xi=1;var t=Object.defineProperty,e=h((s,i)=>t(s,"name",{value:i,configurable:!0}),"n"),r=[].concat(Fu()).concat(E0()),n=v0();return Gn=h(function(s){var i=0;function o(){return i<s.length}h(o,"o"),e(o,"hasMore");function a(d){if(d instanceof RegExp){var c=s.slice(i),D=c.match(d);if(D)return i+=D[0].length,D[0]}else if(s.indexOf(d,i)===i)return i+=d.length,d}h(a,"s"),e(a,"read");function u(){a(/[ ]*/)}h(u,"d"),e(u,"skipWhitespace");function l(){for(var d,c=["WITH","AND","OR","(",")",":","+"],D=0;D<c.length&&(d=a(c[D]),!d);D++);if(d==="+"&&i>1&&s[i-2]===" ")throw new Error("Space before `+`");return d&&{type:"OPERATOR",string:d}}h(l,"g"),e(l,"operator");function f(){return a(/[A-Za-z0-9-.]+/)}h(f,"c"),e(f,"idstring");function g(){var d=f();if(!d)throw new Error("Expected idstring at offset "+i);return d}h(g,"a"),e(g,"expectIdstring");function m(){if(a("DocumentRef-")){var d=g();return{type:"DOCUMENTREF",string:d}}}h(m,"E"),e(m,"documentRef");function v(){if(a("LicenseRef-")){var d=g();return{type:"LICENSEREF",string:d}}}h(v,"x"),e(v,"licenseRef");function $(){var d=i,c=f();if(r.indexOf(c)!==-1)return{type:"LICENSE",string:c};if(n.indexOf(c)!==-1)return{type:"EXCEPTION",string:c};i=d}h($,"v"),e($,"identifier");function b(){return l()||m()||v()||$()}h(b,"h"),e(b,"parseToken");for(var F=[];o()&&(u(),!!o());){var E=b();if(!E)throw new Error("Unexpected `"+s[i]+"` at offset "+i);F.push(E)}return F},"scan"),Gn}h(A0,"requireScan");var Un,Qi;function C0(){if(Qi)return Un;Qi=1;var t=Object.defineProperty,e=h((r,n)=>t(r,"name",{value:n,configurable:!0}),"n");return Un=h(function(r){var n=0;function s(){return n<r.length}h(s,"u"),e(s,"hasMore");function i(){return s()?r[n]:null}h(i,"o"),e(i,"token");function o(){if(!s())throw new Error;n++}h(o,"a"),e(o,"next");function a(E){var d=i();if(d&&d.type==="OPERATOR"&&E===d.string)return o(),d.string}h(a,"f"),e(a,"parseOperator");function u(){if(a("WITH")){var E=i();if(E&&E.type==="EXCEPTION")return o(),E.string;throw new Error("Expected exception after `WITH`")}}h(u,"x"),e(u,"parseWith");function l(){var E=n,d="",c=i();if(c.type==="DOCUMENTREF"&&(o(),d+="DocumentRef-"+c.string+":",!a(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(c=i(),c.type==="LICENSEREF")return o(),d+="LicenseRef-"+c.string,{license:d};n=E}h(l,"h"),e(l,"parseLicenseRef");function f(){var E=i();if(E&&E.type==="LICENSE"){o();var d={license:E.string};a("+")&&(d.plus=!0);var c=u();return c&&(d.exception=c),d}}h(f,"g"),e(f,"parseLicense");function g(){var E=a("(");if(E){var d=b();if(!a(")"))throw new Error("Expected `)`");return d}}h(g,"l"),e(g,"parseParenthesizedExpression");function m(){return g()||l()||f()}h(m,"R"),e(m,"parseAtom");function v(E,d){return e(h(function c(){var D=d();if(D){if(!a(E))return D;var y=c();if(!y)throw new Error("Expected expression");return{left:D,conjunction:E.toLowerCase(),right:y}}},"t"),"parseBinaryOp")}h(v,"p"),e(v,"makeBinaryOpParser");var $=v("AND",m),b=v("OR",$),F=b();if(!F||s())throw new Error("Syntax error");return F},"parse"),Un}h(C0,"requireParse");var qn,Zi;function wu(){if(Zi)return qn;Zi=1;var t=A0(),e=C0();return qn=h(function(r){return e(t(r))},"spdxExpressionParse"),qn}h(wu,"requireSpdxExpressionParse");var Kn,eo;function $0(){if(eo)return Kn;eo=1;var t=Object.defineProperty,e=h((c,D)=>t(c,"name",{value:D,configurable:!0}),"u"),r=wu(),n=Fu();function s(c){try{return r(c),!0}catch{return!1}}h(s,"valid"),e(s,"valid");function i(c,D){var y=D[0].length-c[0].length;return y!==0?y:c[0].toUpperCase().localeCompare(D[0].toUpperCase())}h(i,"sortTranspositions"),e(i,"sortTranspositions");var o=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(i),a=0,u=1,l=[function(c){return c.toUpperCase()},function(c){return c.trim()},function(c){return c.replace(/\./g,"")},function(c){return c.replace(/\s+/g,"")},function(c){return c.replace(/\s+/g,"-")},function(c){return c.replace("v","-")},function(c){return c.replace(/,?\s*(\d)/,"-$1")},function(c){return c.replace(/,?\s*(\d)/,"-$1.0")},function(c){return c.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(c){return c.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(c){return c[0].toUpperCase()+c.slice(1)},function(c){return c.replace("/","-")},function(c){return c.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(c){return c.indexOf("3.0")!==-1?c+"-or-later":c+"-only"},function(c){return c+"only"},function(c){return c.replace(/(\d)$/,"-$1.0")},function(c){return c.replace(/(-| )?(\d)$/,"-$2-Clause")},function(c){return c.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(c){return c.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(c){return c.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(c){return c.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(c){return c.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(c){return c.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(c){return"CC-"+c},function(c){return"CC-"+c+"-4.0"},function(c){return c.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(c){return"CC-"+c.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],f=n.map(function(c){var D=/^(.*)-\d+\.\d+$/.exec(c);return D?[D[0],D[1]]:[c,null]}).reduce(function(c,D){var y=D[1];return c[y]=c[y]||[],c[y].push(D[0]),c},{}),g=Object.keys(f).map(e(function(c){return[c,f[c]]},"makeEntries")).filter(e(function(c){return c[1].length===1&&c[0]!==null&&c[0]!=="APL"},"identifySoleVersions")).map(e(function(c){return[c[0],c[1][0]]},"createLastResorts"));f=void 0;var m=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(g).sort(i),v=0,$=1,b=e(function(c){for(var D=0;D<l.length;D++){var y=l[D](c).trim();if(y!==c&&s(y))return y}return null},"validTransformation"),F=e(function(c){for(var D=c.toUpperCase(),y=0;y<m.length;y++){var p=m[y];if(D.indexOf(p[v])>-1)return p[$]}return null},"validLastResort"),E=e(function(c,D){for(var y=0;y<o.length;y++){var p=o[y],C=p[a];if(c.indexOf(C)>-1){var A=c.replace(C,p[u]),S=D(A);if(S!==null)return S}}return null},"anyCorrection");Kn=h(function(c,D){D=D||{};var y=D.upgrade===void 0?!0:!!D.upgrade;function p(L){return y?d(L):L}h(p,"L"),e(p,"postprocess");var C=typeof c=="string"&&c.trim().length!==0;if(!C)throw Error("Invalid argument. Expected non-empty string.");if(c=c.trim(),s(c))return p(c);var A=c.replace(/\+$/,"").trim();if(s(A))return p(A);var S=b(c);return S!==null||(S=E(c,function(L){return s(L)?L:b(L)}),S!==null)||(S=F(c),S!==null)||(S=E(c,F),S!==null)?p(S):null},"spdxCorrect");function d(c){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(c)!==-1?c+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(c)!==-1?c.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(c)!==-1?c+"-or-later":c}return h(d,"upgradeGPLs"),e(d,"upgradeGPLs"),Kn}h($0,"requireSpdxCorrect");var Wn,to;function F0(){if(to)return Wn;to=1;var t=Object.defineProperty,e=h((u,l)=>t(u,"name",{value:l,configurable:!0}),"i"),r=wu(),n=$0(),s='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',i=/^SEE LICEN[CS]E IN (.+)$/;function o(u,l){return l.slice(0,u.length)===u}h(o,"startsWith"),e(o,"startsWith");function a(u){if(u.hasOwnProperty("license")){var l=u.license;return o("LicenseRef",l)||o("DocumentRef",l)}else return a(u.left)||a(u.right)}return h(a,"usesLicenseRef"),e(a,"usesLicenseRef"),Wn=h(function(u){var l;try{l=r(u)}catch{var f;if(u==="UNLICENSED"||u==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(f=i.exec(u))return{validForOldPackages:!0,validForNewPackages:!0,inFile:f[1]};var g={validForOldPackages:!1,validForNewPackages:!1,warnings:[s]};if(u.trim().length!==0){var m=n(u);m&&g.warnings.push('license is similar to the valid expression "'+m+'"')}return g}return a(l)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[s]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},"validateNpmPackageLicense"),Wn}h(F0,"requireValidateNpmPackageLicense");var Wt={},ro;function w0(){if(ro)return Wt;ro=1;var t=Object.defineProperty,e=h((E,d)=>t(E,"name",{value:d,configurable:!0}),"f"),r=e((E,d)=>()=>(d||E((d={exports:{}}).exports,d),d.exports),"M"),n=r(E=>{Object.defineProperty(E,"__esModule",{value:!0}),E.tracing=E.metrics=void 0;var d={hasSubscribers:!1};E.metrics=d,E.tracing=d}),s=r(E=>{Object.defineProperty(E,"__esModule",{value:!0}),E.defaultPerf=void 0,E.defaultPerf=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date});Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.LRUCache=void 0;var i=n(),o=s(),a=e(()=>i.metrics.hasSubscribers||i.tracing.hasSubscribers,"x"),u=new Set,l=process||{},f=e((E,d,c,D)=>{typeof l.emitWarning=="function"?l.emitWarning(E,d,c,D):console.error(`[${c}] ${d}: ${E}`)},"V"),g=e(E=>!u.has(E),"B"),m=e(E=>!!E&&E===Math.floor(E)&&E>0&&isFinite(E),"T"),v=e(E=>m(E)?E<=Math.pow(2,8)?Uint8Array:E<=Math.pow(2,16)?Uint16Array:E<=Math.pow(2,32)?Uint32Array:E<=Number.MAX_SAFE_INTEGER?$:null:null,"H"),$=class extends Array{static{h(this,"W")}static{e(this,"W")}constructor(E){super(E),this.fill(0)}},b=class Qt{static{h(this,"D")}static{e(this,"c")}heap;length;static#n=!1;static create(d){let c=v(d);if(!c)return[];Qt.#n=!0;let D=new Qt(d,c);return Qt.#n=!1,D}constructor(d,c){if(!Qt.#n)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new c(d),this.length=0}push(d){this.heap[this.length++]=d}pop(){return this.heap[--this.length]}},F=class Su{static{h(this,"j")}static{e(this,"c")}#n;#c;#t;#O;#D;#x;#T;#y;get perf(){return this.#y}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#b;#i;#s;#e;#f;#p;#l;#a;#E;#u;#v;#A;#d;#m;#C;#j;#h;#P;static unsafeExposeInternals(d){return{starts:d.#A,ttls:d.#d,autopurgeTimers:d.#m,sizes:d.#v,keyMap:d.#i,keyList:d.#s,valList:d.#e,next:d.#f,prev:d.#p,get head(){return d.#l},get tail(){return d.#a},free:d.#E,isBackgroundFetch:e(c=>d.#r(c),"isBackgroundFetch"),backgroundFetch:e((c,D,y,p)=>d.#_(c,D,y,p),"backgroundFetch"),moveToTail:e(c=>d.#I(c),"moveToTail"),indexes:e(c=>d.#$(c),"indexes"),rindexes:e(c=>d.#F(c),"rindexes"),isStale:e(c=>d.#g(c),"isStale")}}get max(){return this.#n}get maxSize(){return this.#c}get calculatedSize(){return this.#b}get size(){return this.#o}get fetchMethod(){return this.#x}get memoMethod(){return this.#T}get dispose(){return this.#t}get onInsert(){return this.#O}get disposeAfter(){return this.#D}constructor(d){let{max:c=0,ttl:D,ttlResolution:y=1,ttlAutopurge:p,updateAgeOnGet:C,updateAgeOnHas:A,allowStale:S,dispose:L,onInsert:T,disposeAfter:N,noDisposeOnSet:ue,noUpdateTTL:j,maxSize:K=0,maxEntrySize:x=0,sizeCalculation:te,fetchMethod:k,memoMethod:X,noDeleteOnFetchRejection:Se,noDeleteOnStaleGet:Z,allowStaleOnFetchRejection:W,allowStaleOnFetchAbort:It,ignoreFetchAbort:ft,perf:ht}=d;if(ht!==void 0&&typeof ht?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#y=ht??o.defaultPerf,c!==0&&!m(c))throw new TypeError("max option must be a nonnegative integer");let pt=c?v(c):Array;if(!pt)throw new Error("invalid max value: "+c);if(this.#n=c,this.#c=K,this.maxEntrySize=x||this.#c,this.sizeCalculation=te,this.sizeCalculation){if(!this.#c&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(X!==void 0&&typeof X!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#T=X,k!==void 0&&typeof k!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#x=k,this.#j=!!k,this.#i=new Map,this.#s=Array.from({length:c}).fill(void 0),this.#e=Array.from({length:c}).fill(void 0),this.#f=new pt(c),this.#p=new pt(c),this.#l=0,this.#a=0,this.#E=b.create(c),this.#o=0,this.#b=0,typeof L=="function"&&(this.#t=L),typeof T=="function"&&(this.#O=T),typeof N=="function"?(this.#D=N,this.#u=[]):(this.#D=void 0,this.#u=void 0),this.#C=!!this.#t,this.#P=!!this.#O,this.#h=!!this.#D,this.noDisposeOnSet=!!ue,this.noUpdateTTL=!!j,this.noDeleteOnFetchRejection=!!Se,this.allowStaleOnFetchRejection=!!W,this.allowStaleOnFetchAbort=!!It,this.ignoreFetchAbort=!!ft,this.maxEntrySize!==0){if(this.#c!==0&&!m(this.#c))throw new TypeError("maxSize must be a positive integer if specified");if(!m(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#Y()}if(this.allowStale=!!S,this.noDeleteOnStaleGet=!!Z,this.updateAgeOnGet=!!C,this.updateAgeOnHas=!!A,this.ttlResolution=m(y)||y===0?y:1,this.ttlAutopurge=!!p,this.ttl=D||0,this.ttl){if(!m(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#G()}if(this.#n===0&&this.ttl===0&&this.#c===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#n&&!this.#c){let Fn="LRU_CACHE_UNBOUNDED";g(Fn)&&(u.add(Fn),f("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Fn,Su))}}getRemainingTTL(d){return this.#i.has(d)?1/0:0}#G(){let d=new $(this.#n),c=new $(this.#n);this.#d=d,this.#A=c;let D=this.ttlAutopurge?Array.from({length:this.#n}):void 0;this.#m=D,this.#U=(A,S,L=this.#y.now())=>{c[A]=S!==0?L:0,d[A]=S,y(A,S)},this.#N=A=>{c[A]=d[A]!==0?this.#y.now():0,y(A,d[A])};let y=this.ttlAutopurge?(A,S)=>{if(D?.[A]&&(clearTimeout(D[A]),D[A]=void 0),S&&S!==0&&D){let L=setTimeout(()=>{this.#g(A)&&this.#w(this.#s[A],"expire")},S+1);L.unref&&L.unref(),D[A]=L}}:()=>{};this.#S=(A,S)=>{if(d[S]){let L=d[S],T=c[S];if(!L||!T)return;A.ttl=L,A.start=T,A.now=p||C();let N=A.now-T;A.remainingTTL=L-N}};let p=0,C=e(()=>{let A=this.#y.now();if(this.ttlResolution>0){p=A;let S=setTimeout(()=>p=0,this.ttlResolution);S.unref&&S.unref()}return A},"r");this.getRemainingTTL=A=>{let S=this.#i.get(A);if(S===void 0)return 0;let L=d[S],T=c[S];if(!L||!T)return 1/0;let N=(p||C())-T;return L-N},this.#g=A=>{let S=c[A],L=d[A];return!!L&&!!S&&(p||C())-S>L}}#N=e(()=>{},"#R");#S=e(()=>{},"#E");#U=e(()=>{},"#N");#g=e(()=>!1,"#p");#Y(){let d=new $(this.#n);this.#b=0,this.#v=d,this.#B=c=>{this.#b-=d[c],d[c]=0},this.#q=(c,D,y,p)=>{if(this.#r(D))return 0;if(!m(y))if(p){if(typeof p!="function")throw new TypeError("sizeCalculation must be a function");if(y=p(D,c),!m(y))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return y},this.#R=(c,D,y)=>{if(d[c]=D,this.#c){let p=this.#c-d[c];for(;this.#b>p;)this.#M(!0)}this.#b+=d[c],y&&(y.entrySize=D,y.totalCalculatedSize=this.#b)}}#B=e(d=>{},"#x");#R=e((d,c,D)=>{},"#I");#q=e((d,c,D,y)=>{if(D||y)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#V");*#$({allowStale:d=this.allowStale}={}){if(this.#o)for(let c=this.#a;this.#K(c)&&((d||!this.#g(c))&&(yield c),c!==this.#l);)c=this.#p[c]}*#F({allowStale:d=this.allowStale}={}){if(this.#o)for(let c=this.#l;this.#K(c)&&((d||!this.#g(c))&&(yield c),c!==this.#a);)c=this.#f[c]}#K(d){return d!==void 0&&this.#i.get(this.#s[d])===d}*entries(){for(let d of this.#$())this.#e[d]!==void 0&&this.#s[d]!==void 0&&!this.#r(this.#e[d])&&(yield[this.#s[d],this.#e[d]])}*rentries(){for(let d of this.#F())this.#e[d]!==void 0&&this.#s[d]!==void 0&&!this.#r(this.#e[d])&&(yield[this.#s[d],this.#e[d]])}*keys(){for(let d of this.#$()){let c=this.#s[d];c!==void 0&&!this.#r(this.#e[d])&&(yield c)}}*rkeys(){for(let d of this.#F()){let c=this.#s[d];c!==void 0&&!this.#r(this.#e[d])&&(yield c)}}*values(){for(let d of this.#$())this.#e[d]!==void 0&&!this.#r(this.#e[d])&&(yield this.#e[d])}*rvalues(){for(let d of this.#F())this.#e[d]!==void 0&&!this.#r(this.#e[d])&&(yield this.#e[d])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(d,c={}){for(let D of this.#$()){let y=this.#e[D],p=this.#r(y)?y.__staleWhileFetching:y;if(p!==void 0&&d(p,this.#s[D],this))return this.#k(this.#s[D],c)}}forEach(d,c=this){for(let D of this.#$()){let y=this.#e[D],p=this.#r(y)?y.__staleWhileFetching:y;p!==void 0&&d.call(c,p,this.#s[D],this)}}rforEach(d,c=this){for(let D of this.#F()){let y=this.#e[D],p=this.#r(y)?y.__staleWhileFetching:y;p!==void 0&&d.call(c,p,this.#s[D],this)}}purgeStale(){let d=!1;for(let c of this.#F({allowStale:!0}))this.#g(c)&&(this.#w(this.#s[c],"expire"),d=!0);return d}info(d){let c=this.#i.get(d);if(c===void 0)return;let D=this.#e[c],y=this.#r(D)?D.__staleWhileFetching:D;if(y===void 0)return;let p={value:y};if(this.#d&&this.#A){let C=this.#d[c],A=this.#A[c];if(C&&A){let S=C-(this.#y.now()-A);p.ttl=S,p.start=Date.now()}}return this.#v&&(p.size=this.#v[c]),p}dump(){let d=[];for(let c of this.#$({allowStale:!0})){let D=this.#s[c],y=this.#e[c],p=this.#r(y)?y.__staleWhileFetching:y;if(p===void 0||D===void 0)continue;let C={value:p};if(this.#d&&this.#A){C.ttl=this.#d[c];let A=this.#y.now()-this.#A[c];C.start=Math.floor(Date.now()-A)}this.#v&&(C.size=this.#v[c]),d.unshift([D,C])}return d}load(d){this.clear();for(let[c,D]of d){if(D.start){let y=Date.now()-D.start;D.start=this.#y.now()-y}this.#L(c,D.value,D)}}set(d,c,D={}){let{status:y=i.metrics.hasSubscribers?{}:void 0}=D;D.status=y,y&&(y.op="set",y.key=d,c!==void 0&&(y.value=c),y.cache=this);let p=this.#L(d,c,D);return y&&i.metrics.hasSubscribers&&i.metrics.publish(y),p}#L(d,c,D,y){let{ttl:p=this.ttl,start:C,noDisposeOnSet:A=this.noDisposeOnSet,sizeCalculation:S=this.sizeCalculation,status:L}=D;if(c===void 0)return L&&(L.set="deleted"),this.delete(d),this;let{noUpdateTTL:T=this.noUpdateTTL}=D,N=this.#r(c);L&&!N&&(L.value=c);let ue=this.#q(d,c,D.size||0,S,L);if(this.maxEntrySize&&ue>this.maxEntrySize)return this.#w(d,"set"),L&&(L.set="miss",L.maxEntrySizeExceeded=!0),this;let j=this.#o===0?void 0:this.#i.get(d);if(j===void 0)j=this.#o===0?this.#a:this.#E.length!==0?this.#E.pop():this.#o===this.#n?this.#M(!1):this.#o,this.#s[j]=d,this.#e[j]=c,this.#i.set(d,j),this.#f[this.#a]=j,this.#p[j]=this.#a,this.#a=j,this.#o++,this.#R(j,ue,L),L&&(L.set="add"),T=!1,this.#P&&!N&&this.#O?.(c,d,"add");else{this.#I(j);let K=this.#e[j];if(c!==K){if(!A)if(this.#r(K)){K!==y&&K.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:x}=K;x!==void 0&&x!==c&&(this.#C&&this.#t?.(x,d,"set"),this.#h&&this.#u?.push([x,d,"set"]))}else this.#C&&this.#t?.(K,d,"set"),this.#h&&this.#u?.push([K,d,"set"]);if(this.#B(j),this.#R(j,ue,L),this.#e[j]=c,!N){let x=K&&this.#r(K)?K.__staleWhileFetching:K,te=x===void 0?"add":c!==x?"replace":"update";L&&(L.set=te,x!==void 0&&(L.oldValue=x)),this.#P&&this.onInsert?.(c,d,te)}}else N||(L&&(L.set="update"),this.#P&&this.onInsert?.(c,d,"update"))}if(p!==0&&!this.#d&&this.#G(),this.#d&&(T||this.#U(j,p,C),L&&this.#S(L,j)),!A&&this.#h&&this.#u){let K=this.#u,x;for(;x=K?.shift();)this.#D?.(...x)}return this}pop(){try{for(;this.#o;){let d=this.#e[this.#l];if(this.#M(!0),this.#r(d)){if(d.__staleWhileFetching)return d.__staleWhileFetching}else if(d!==void 0)return d}}finally{if(this.#h&&this.#u){let d=this.#u,c;for(;c=d?.shift();)this.#D?.(...c)}}}#M(d){let c=this.#l,D=this.#s[c],y=this.#e[c],p=this.#r(y);p&&y.__abortController.abort(new Error("evicted"));let C=p?y.__staleWhileFetching:y;return(this.#C||this.#h)&&C!==void 0&&(this.#C&&this.#t?.(C,D,"evict"),this.#h&&this.#u?.push([C,D,"evict"])),this.#B(c),this.#m?.[c]&&(clearTimeout(this.#m[c]),this.#m[c]=void 0),d&&(this.#s[c]=void 0,this.#e[c]=void 0,this.#E.push(c)),this.#o===1?(this.#l=this.#a=0,this.#E.length=0):this.#l=this.#f[c],this.#i.delete(D),this.#o--,c}has(d,c={}){let{status:D=i.metrics.hasSubscribers?{}:void 0}=c;c.status=D,D&&(D.op="has",D.key=d,D.cache=this);let y=this.#z(d,c);return i.metrics.hasSubscribers&&i.metrics.publish(D),y}#z(d,c={}){let{updateAgeOnHas:D=this.updateAgeOnHas,status:y}=c,p=this.#i.get(d);if(p!==void 0){let C=this.#e[p];if(this.#r(C)&&C.__staleWhileFetching===void 0)return!1;if(this.#g(p))y&&(y.has="stale",this.#S(y,p));else return D&&this.#N(p),y&&(y.has="hit",this.#S(y,p)),!0}else y&&(y.has="miss");return!1}peek(d,c={}){let{status:D=a()?{}:void 0}=c;D&&(D.op="peek",D.key=d,D.cache=this),c.status=D;let y=this.#J(d,c);return i.metrics.hasSubscribers&&i.metrics.publish(D),y}#J(d,c){let{status:D,allowStale:y=this.allowStale}=c,p=this.#i.get(d);if(p===void 0||!y&&this.#g(p)){D&&(D.peek=p===void 0?"miss":"stale");return}let C=this.#e[p],A=this.#r(C)?C.__staleWhileFetching:C;return D&&(A!==void 0?(D.peek="hit",D.value=A):D.peek="miss"),A}#_(d,c,D,y){let p=c===void 0?void 0:this.#e[c];if(this.#r(p))return p;let C=new AbortController,{signal:A}=D;A?.addEventListener("abort",()=>C.abort(A.reason),{signal:C.signal});let S={signal:C.signal,options:D,context:y},L=e((x,te=!1)=>{let{aborted:k}=C.signal,X=D.ignoreFetchAbort&&x!==void 0,Se=D.ignoreFetchAbort||!!(D.allowStaleOnFetchAbort&&x!==void 0);if(D.status&&(k&&!te?(D.status.fetchAborted=!0,D.status.fetchError=C.signal.reason,X&&(D.status.fetchAbortIgnored=!0)):D.status.fetchResolved=!0),k&&!X&&!te)return N(C.signal.reason,Se);let Z=j,W=this.#e[c];return(W===j||W===void 0&&X&&te)&&(x===void 0?Z.__staleWhileFetching!==void 0?this.#e[c]=Z.__staleWhileFetching:this.#w(d,"fetch"):(D.status&&(D.status.fetchUpdated=!0),this.#L(d,x,S.options,Z))),x},"o"),T=e(x=>(D.status&&(D.status.fetchRejected=!0,D.status.fetchError=x),N(x,!1)),"m"),N=e((x,te)=>{let{aborted:k}=C.signal,X=k&&D.allowStaleOnFetchAbort,Se=X||D.allowStaleOnFetchRejection,Z=Se||D.noDeleteOnFetchRejection,W=j;if(this.#e[c]===j&&(!Z||!te&&W.__staleWhileFetching===void 0?this.#w(d,"fetch"):X||(this.#e[c]=W.__staleWhileFetching)),Se)return D.status&&W.__staleWhileFetching!==void 0&&(D.status.returnedStale=!0),W.__staleWhileFetching;if(W.__returned===W)throw x},"S"),ue=e((x,te)=>{let k=this.#x?.(d,p,S);C.signal.addEventListener("abort",()=>{(!D.ignoreFetchAbort||D.allowStaleOnFetchAbort)&&(x(void 0),D.allowStaleOnFetchAbort&&(x=e(X=>L(X,!0),"f")))}),k&&k instanceof Promise?k.then(X=>x(X===void 0?void 0:X),te):k!==void 0&&x(k)},"_");D.status&&(D.status.fetchDispatched=!0);let j=new Promise(ue).then(L,T),K=Object.assign(j,{__abortController:C,__staleWhileFetching:p,__returned:void 0});return c===void 0?(this.#L(d,K,{...S.options,status:void 0}),c=this.#i.get(d)):this.#e[c]=K,K}#r(d){if(!this.#j)return!1;let c=d;return!!c&&c instanceof Promise&&c.hasOwnProperty("__staleWhileFetching")&&c.__abortController instanceof AbortController}fetch(d,c={}){let D=i.tracing.hasSubscribers,{status:y=a()?{}:void 0}=c;c.status=y,y&&c.context&&(y.context=c.context);let p=this.#W(d,c);return y&&D&&(y.trace=!0,i.tracing.tracePromise(()=>p,y).catch(()=>{})),p}async#W(d,c={}){let{allowStale:D=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:p=this.noDeleteOnStaleGet,ttl:C=this.ttl,noDisposeOnSet:A=this.noDisposeOnSet,size:S=0,sizeCalculation:L=this.sizeCalculation,noUpdateTTL:T=this.noUpdateTTL,noDeleteOnFetchRejection:N=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:ue=this.allowStaleOnFetchRejection,ignoreFetchAbort:j=this.ignoreFetchAbort,allowStaleOnFetchAbort:K=this.allowStaleOnFetchAbort,context:x,forceRefresh:te=!1,status:k,signal:X}=c;if(k&&(k.op="fetch",k.key=d,te&&(k.forceRefresh=!0),k.cache=this),!this.#j)return k&&(k.fetch="get"),this.#k(d,{allowStale:D,updateAgeOnGet:y,noDeleteOnStaleGet:p,status:k});let Se={allowStale:D,updateAgeOnGet:y,noDeleteOnStaleGet:p,ttl:C,noDisposeOnSet:A,size:S,sizeCalculation:L,noUpdateTTL:T,noDeleteOnFetchRejection:N,allowStaleOnFetchRejection:ue,allowStaleOnFetchAbort:K,ignoreFetchAbort:j,status:k,signal:X},Z=this.#i.get(d);if(Z===void 0){k&&(k.fetch="miss");let W=this.#_(d,Z,Se,x);return W.__returned=W}else{let W=this.#e[Z];if(this.#r(W)){let pt=D&&W.__staleWhileFetching!==void 0;return k&&(k.fetch="inflight",pt&&(k.returnedStale=!0)),pt?W.__staleWhileFetching:W.__returned=W}let It=this.#g(Z);if(!te&&!It)return k&&(k.fetch="hit"),this.#I(Z),y&&this.#N(Z),k&&this.#S(k,Z),W;let ft=this.#_(d,Z,Se,x),ht=ft.__staleWhileFetching!==void 0&&D;return k&&(k.fetch=It?"stale":"refresh",ht&&It&&(k.returnedStale=!0)),ht?ft.__staleWhileFetching:ft.__returned=ft}}forceFetch(d,c={}){let D=i.tracing.hasSubscribers,{status:y=a()?{}:void 0}=c;c.status=y,y&&c.context&&(y.context=c.context);let p=this.#X(d,c);return y&&D&&(y.trace=!0,i.tracing.tracePromise(()=>p,y).catch(()=>{})),p}async#X(d,c={}){let D=await this.#W(d,c);if(D===void 0)throw new Error("fetch() returned undefined");return D}memo(d,c={}){let{status:D=i.metrics.hasSubscribers?{}:void 0}=c;c.status=D,D&&(D.op="memo",D.key=d,c.context&&(D.context=c.context),D.cache=this);let y=this.#Q(d,c);return D&&(D.value=y),i.metrics.hasSubscribers&&i.metrics.publish(D),y}#Q(d,c={}){let D=this.#T;if(!D)throw new Error("no memoMethod provided to constructor");let{context:y,status:p,forceRefresh:C,...A}=c;p&&C&&(p.forceRefresh=!0);let S=this.#k(d,A),L=C||S===void 0;if(p&&(p.memo=L?"miss":"hit",L||(p.value=S)),!L)return S;let T=D(d,S,{options:A,context:y});return p&&(p.value=T),this.#L(d,T,A),T}get(d,c={}){let{status:D=i.metrics.hasSubscribers?{}:void 0}=c;c.status=D,D&&(D.op="get",D.key=d,D.cache=this);let y=this.#k(d,c);return D&&(y!==void 0&&(D.value=y),i.metrics.hasSubscribers&&i.metrics.publish(D)),y}#k(d,c={}){let{allowStale:D=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:p=this.noDeleteOnStaleGet,status:C}=c,A=this.#i.get(d);if(A===void 0){C&&(C.get="miss");return}let S=this.#e[A],L=this.#r(S);return C&&this.#S(C,A),this.#g(A)?L?(C&&(C.get="stale-fetching"),D&&S.__staleWhileFetching!==void 0?(C&&(C.returnedStale=!0),S.__staleWhileFetching):void 0):(p||this.#w(d,"expire"),C&&(C.get="stale"),D?(C&&(C.returnedStale=!0),S):void 0):(C&&(C.get=L?"fetching":"hit"),this.#I(A),y&&this.#N(A),L?S.__staleWhileFetching:S)}#H(d,c){this.#p[c]=d,this.#f[d]=c}#I(d){d!==this.#a&&(d===this.#l?this.#l=this.#f[d]:this.#H(this.#p[d],this.#f[d]),this.#H(this.#a,d),this.#a=d)}delete(d){return this.#w(d,"delete")}#w(d,c){i.metrics.hasSubscribers&&i.metrics.publish({op:"delete",delete:c,key:d,cache:this});let D=!1;if(this.#o!==0){let y=this.#i.get(d);if(y!==void 0)if(this.#m?.[y]&&(clearTimeout(this.#m?.[y]),this.#m[y]=void 0),D=!0,this.#o===1)this.#V(c);else{this.#B(y);let p=this.#e[y];if(this.#r(p)?p.__abortController.abort(new Error("deleted")):(this.#C||this.#h)&&(this.#C&&this.#t?.(p,d,c),this.#h&&this.#u?.push([p,d,c])),this.#i.delete(d),this.#s[y]=void 0,this.#e[y]=void 0,y===this.#a)this.#a=this.#p[y];else if(y===this.#l)this.#l=this.#f[y];else{let C=this.#p[y];this.#f[C]=this.#f[y];let A=this.#f[y];this.#p[A]=this.#p[y]}this.#o--,this.#E.push(y)}}if(this.#h&&this.#u?.length){let y=this.#u,p;for(;p=y?.shift();)this.#D?.(...p)}return D}clear(){return this.#V("delete")}#V(d){for(let c of this.#F({allowStale:!0})){let D=this.#e[c];if(this.#r(D))D.__abortController.abort(new Error("deleted"));else{let y=this.#s[c];this.#C&&this.#t?.(D,y,d),this.#h&&this.#u?.push([D,y,d])}}if(this.#i.clear(),this.#e.fill(void 0),this.#s.fill(void 0),this.#d&&this.#A){this.#d.fill(0),this.#A.fill(0);for(let c of this.#m??[])c!==void 0&&clearTimeout(c);this.#m?.fill(void 0)}if(this.#v&&this.#v.fill(0),this.#l=0,this.#a=0,this.#E.length=0,this.#b=0,this.#o=0,this.#h&&this.#u){let c=this.#u,D;for(;D=c?.shift();)this.#D?.(...D)}}};return Wt.LRUCache=F,Wt}h(w0,"requireIndex_min");var Hn,no;function S0(){if(no)return Hn;no=1;var t=Object.defineProperty,e=h((a,u)=>t(a,"name",{value:u,configurable:!0}),"$");const r=e((...a)=>a.every(u=>u)?a.join(""):"","maybeJoin"),n=e(a=>a?encodeURIComponent(a):"","maybeEncode"),s=e(a=>a.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),"formatHashFragment"),i={sshtemplate:e(({domain:a,user:u,project:l,committish:f})=>`git@${a}:${u}/${l}.git${r("#",f)}`,"sshtemplate"),sshurltemplate:e(({domain:a,user:u,project:l,committish:f})=>`git+ssh://git@${a}/${u}/${l}.git${r("#",f)}`,"sshurltemplate"),edittemplate:e(({domain:a,user:u,project:l,committish:f,editpath:g,path:m})=>`https://${a}/${u}/${l}${r("/",g,"/",n(f||"HEAD"),"/",m)}`,"edittemplate"),browsetemplate:e(({domain:a,user:u,project:l,committish:f,treepath:g})=>`https://${a}/${u}/${l}${r("/",g,"/",n(f))}`,"browsetemplate"),browsetreetemplate:e(({domain:a,user:u,project:l,committish:f,treepath:g,path:m,fragment:v,hashformat:$})=>`https://${a}/${u}/${l}/${g}/${n(f||"HEAD")}/${m}${r("#",$(v||""))}`,"browsetreetemplate"),browseblobtemplate:e(({domain:a,user:u,project:l,committish:f,blobpath:g,path:m,fragment:v,hashformat:$})=>`https://${a}/${u}/${l}/${g}/${n(f||"HEAD")}/${m}${r("#",$(v||""))}`,"browseblobtemplate"),docstemplate:e(({domain:a,user:u,project:l,treepath:f,committish:g})=>`https://${a}/${u}/${l}${r("/",f,"/",n(g))}#readme`,"docstemplate"),httpstemplate:e(({auth:a,domain:u,user:l,project:f,committish:g})=>`git+https://${r(a,"@")}${u}/${l}/${f}.git${r("#",g)}`,"httpstemplate"),filetemplate:e(({domain:a,user:u,project:l,committish:f,path:g})=>`https://${a}/${u}/${l}/raw/${n(f||"HEAD")}/${g}`,"filetemplate"),shortcuttemplate:e(({type:a,user:u,project:l,committish:f})=>`${a}:${u}/${l}${r("#",f)}`,"shortcuttemplate"),pathtemplate:e(({user:a,project:u,committish:l})=>`${a}/${u}${r("#",l)}`,"pathtemplate"),bugstemplate:e(({domain:a,user:u,project:l})=>`https://${a}/${u}/${l}/issues`,"bugstemplate"),hashformat:s},o={};o.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:e(({auth:a,user:u,project:l,committish:f,path:g})=>`https://${r(a,"@")}raw.githubusercontent.com/${u}/${l}/${n(f||"HEAD")}/${g}`,"filetemplate"),gittemplate:e(({auth:a,domain:u,user:l,project:f,committish:g})=>`git://${r(a,"@")}${u}/${l}/${f}.git${r("#",g)}`,"gittemplate"),tarballtemplate:e(({domain:a,user:u,project:l,committish:f})=>`https://codeload.${a}/${u}/${l}/tar.gz/${n(f||"HEAD")}`,"tarballtemplate"),extract:e(a=>{let[,u,l,f,g]=a.pathname.split("/",5);if(!(f&&f!=="tree")&&(f||(g=a.hash.slice(1)),l&&l.endsWith(".git")&&(l=l.slice(0,-4)),!(!u||!l)))return{user:u,project:l,committish:g}},"extract")},o.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:e(({domain:a,user:u,project:l,committish:f,treepath:g,path:m,editpath:v})=>`https://${a}/${u}/${l}${r("/",g,"/",n(f||"HEAD"),"/",m,v)}`,"edittemplate"),tarballtemplate:e(({domain:a,user:u,project:l,committish:f})=>`https://${a}/${u}/${l}/get/${n(f||"HEAD")}.tar.gz`,"tarballtemplate"),extract:e(a=>{let[,u,l,f]=a.pathname.split("/",4);if(!["get"].includes(f)&&(l&&l.endsWith(".git")&&(l=l.slice(0,-4)),!(!u||!l)))return{user:u,project:l,committish:a.hash.slice(1)}},"extract")},o.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:e(({domain:a,user:u,project:l,committish:f})=>`https://${a}/api/v4/projects/${n(u+"/"+l)}/repository/archive.tar.gz?sha=${n(f||"HEAD")}`,"tarballtemplate"),extract:e(a=>{const u=a.pathname.slice(1);if(u.includes("/-/")||u.includes("/archive.tar.gz"))return;const l=u.split("/");let f=l.pop();f.endsWith(".git")&&(f=f.slice(0,-4));const g=l.join("/");if(!(!g||!f))return{user:g,project:f,committish:a.hash.slice(1)}},"extract")},o.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:e(({domain:a,project:u,committish:l})=>`git@${a}:${u}.git${r("#",l)}`,"sshtemplate"),sshurltemplate:e(({domain:a,project:u,committish:l})=>`git+ssh://git@${a}/${u}.git${r("#",l)}`,"sshurltemplate"),edittemplate:e(({domain:a,user:u,project:l,committish:f,editpath:g})=>`https://${a}/${u}/${l}${r("/",n(f))}/${g}`,"edittemplate"),browsetemplate:e(({domain:a,project:u,committish:l})=>`https://${a}/${u}${r("/",n(l))}`,"browsetemplate"),browsetreetemplate:e(({domain:a,project:u,committish:l,path:f,hashformat:g})=>`https://${a}/${u}${r("/",n(l))}${r("#",g(f))}`,"browsetreetemplate"),browseblobtemplate:e(({domain:a,project:u,committish:l,path:f,hashformat:g})=>`https://${a}/${u}${r("/",n(l))}${r("#",g(f))}`,"browseblobtemplate"),docstemplate:e(({domain:a,project:u,committish:l})=>`https://${a}/${u}${r("/",n(l))}`,"docstemplate"),httpstemplate:e(({domain:a,project:u,committish:l})=>`git+https://${a}/${u}.git${r("#",l)}`,"httpstemplate"),filetemplate:e(({user:a,project:u,committish:l,path:f})=>`https://gist.githubusercontent.com/${a}/${u}/raw${r("/",n(l))}/${f}`,"filetemplate"),shortcuttemplate:e(({type:a,project:u,committish:l})=>`${a}:${u}${r("#",l)}`,"shortcuttemplate"),pathtemplate:e(({project:a,committish:u})=>`${a}${r("#",u)}`,"pathtemplate"),bugstemplate:e(({domain:a,project:u})=>`https://${a}/${u}`,"bugstemplate"),gittemplate:e(({domain:a,project:u,committish:l})=>`git://${a}/${u}.git${r("#",l)}`,"gittemplate"),tarballtemplate:e(({project:a,committish:u})=>`https://codeload.github.com/gist/${a}/tar.gz/${n(u||"HEAD")}`,"tarballtemplate"),extract:e(a=>{let[,u,l,f]=a.pathname.split("/",4);if(f!=="raw"){if(!l){if(!u)return;l=u,u=null}return l.endsWith(".git")&&(l=l.slice(0,-4)),{user:u,project:l,committish:a.hash.slice(1)}}},"extract"),hashformat:e(function(a){return a&&"file-"+s(a)},"hashformat")},o.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:e(({domain:a,user:u,project:l,committish:f,path:g})=>`https://${a}/${u}/${l}/blob/${n(f)||"HEAD"}/${g}`,"filetemplate"),httpstemplate:e(({domain:a,user:u,project:l,committish:f})=>`https://${a}/${u}/${l}${r("#",f)}`,"httpstemplate"),tarballtemplate:e(({domain:a,user:u,project:l,committish:f})=>`https://${a}/${u}/${l}/archive/${n(f)||"HEAD"}.tar.gz`,"tarballtemplate"),bugstemplate:e(()=>null,"bugstemplate"),extract:e(a=>{let[,u,l,f]=a.pathname.split("/",4);if(!["archive"].includes(f)&&(l&&l.endsWith(".git")&&(l=l.slice(0,-4)),!(!u||!l)))return{user:u,project:l,committish:a.hash.slice(1)}},"extract")};for(const[a,u]of Object.entries(o))o[a]=Object.assign({},i,u);return Hn=o,Hn}h(S0,"requireHosts");var Vn,so;function Lu(){if(so)return Vn;so=1;var t=Object.defineProperty,e=h((o,a)=>t(o,"name",{value:a,configurable:!0}),"s");const r=e((o,a,u)=>{const l=o.indexOf(u);return o.lastIndexOf(a,l>-1?l:1/0)},"lastIndexOfBefore"),n=e(o=>{try{return new URL(o)}catch{}},"safeUrl"),s=e((o,a)=>{const u=o.indexOf(":"),l=o.slice(0,u+1);if(Object.prototype.hasOwnProperty.call(a,l)||o.substr(u,3)==="://")return o;const f=o.indexOf("@");return f>-1?f>u?`git+ssh://${o}`:o:`${o.slice(0,u+1)}//${o.slice(u+1)}`},"correctProtocol"),i=e(o=>{const a=r(o,"@","#"),u=r(o,":","#");return u>a&&(o=o.slice(0,u)+"/"+o.slice(u+1)),r(o,":","#")===-1&&o.indexOf("//")===-1&&(o=`git+ssh://${o}`),o},"correctUrl");return Vn=h((o,a)=>{const u=a?s(o,a):o;return n(u)||n(i(u))},"parseUrl"),Vn}h(Lu,"requireParseUrl");var Yn,io;function L0(){if(io)return Yn;io=1;var t=Object.defineProperty,e=h((s,i)=>t(s,"name",{value:i,configurable:!0}),"S");const r=Lu(),n=e(s=>{const i=s.indexOf("#"),o=s.indexOf("/"),a=s.indexOf("/",o+1),u=s.indexOf(":"),l=/\s/.exec(s),f=s.indexOf("@"),g=!l||i>-1&&l.index>i,m=f===-1||i>-1&&f>i,v=u===-1||i>-1&&u>i,$=a===-1||i>-1&&a>i,b=o>0,F=i>-1?s[i-1]!=="/":!s.endsWith("/"),E=!s.startsWith(".");return g&&b&&F&&E&&m&&v&&$},"isGitHubShorthand");return Yn=h((s,i,{gitHosts:o,protocols:a})=>{if(!s)return;const u=n(s)?`github:${s}`:s,l=r(u,a);if(!l)return;const f=o.byShortcut[l.protocol],g=o.byDomain[l.hostname.startsWith("www.")?l.hostname.slice(4):l.hostname],m=f||g;if(!m)return;const v=o[f||g];let $=null;a[l.protocol]?.auth&&(l.username||l.password)&&($=`${l.username}${l.password?":"+l.password:""}`);let b=null,F=null,E=null,d=null;try{if(f){let c=l.pathname.startsWith("/")?l.pathname.slice(1):l.pathname;const D=c.indexOf("@");D>-1&&(c=c.slice(D+1));const y=c.lastIndexOf("/");y>-1?(F=decodeURIComponent(c.slice(0,y)),F||(F=null),E=decodeURIComponent(c.slice(y+1))):E=decodeURIComponent(c),E.endsWith(".git")&&(E=E.slice(0,-4)),l.hash&&(b=decodeURIComponent(l.hash.slice(1))),d="shortcut"}else{if(!v.protocols.includes(l.protocol))return;const c=v.extract(l);if(!c)return;F=c.user&&decodeURIComponent(c.user),E=decodeURIComponent(c.project),b=decodeURIComponent(c.committish),d=a[l.protocol]?.name||l.protocol.slice(0,-1)}}catch(c){if(c instanceof URIError)return;throw c}return[m,F,$,E,b,d,i]},"fromUrl"),Yn}h(L0,"requireFromUrl");var zn,oo;function O0(){if(oo)return zn;oo=1;var t=Object.defineProperty,e=h((l,f)=>t(l,"name",{value:f,configurable:!0}),"o");const{LRUCache:r}=w0(),n=S0(),s=L0(),i=Lu(),o=new r({max:1e3});function a(l){try{const{protocol:f,hostname:g,pathname:m}=new URL(l);if(!g)return null;const v=/(?:git\+)http:$/.test(f)?"http:":"https:",$=m.replace(/\.git$/,"");return`${v}//${g}${$}`}catch{return null}}h(a,"unknownHostedUrl"),e(a,"unknownHostedUrl");class u{static{h(this,"GitHost")}static{e(this,"GitHost")}constructor(f,g,m,v,$,b,F={}){Object.assign(this,u.#n[f],{type:f,user:g,auth:m,project:v,committish:$,default:b,opts:F})}static#n={byShortcut:{},byDomain:{}};static#c={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(f,g){u.#n[f]=g,u.#n.byDomain[g.domain]=f,u.#n.byShortcut[`${f}:`]=f,u.#c[`${f}:`]={name:f}}static fromUrl(f,g){if(typeof f!="string")return;const m=f+JSON.stringify(g||{});if(!o.has(m)){const v=s(f,g,{gitHosts:u.#n,protocols:u.#c});o.set(m,v?new u(...v):void 0)}return o.get(m)}static fromManifest(f,g={}){if(!f||typeof f!="object")return;const m=f.repository,v=m&&(typeof m=="string"?m:typeof m=="object"&&typeof m.url=="string"?m.url:null);if(!v)throw new Error("no repository");const $=v&&u.fromUrl(v.replace(/^git\+/,""),g)||null;if($)return $;const b=a(v);return u.fromUrl(b,g)||b}static parseUrl(f){return i(f)}#t(f,g){if(typeof f!="function")return null;const m={...this,...this.opts,...g};m.path||(m.path=""),m.path.startsWith("/")&&(m.path=m.path.slice(1)),m.noCommittish&&(m.committish=null);const v=f(m);return m.noGitPlus&&v.startsWith("git+")?v.slice(4):v}hash(){return this.committish?`#${this.committish}`:""}ssh(f){return this.#t(this.sshtemplate,f)}sshurl(f){return this.#t(this.sshurltemplate,f)}browse(f,...g){return typeof f!="string"?this.#t(this.browsetemplate,f):typeof g[0]!="string"?this.#t(this.browsetreetemplate,{...g[0],path:f}):this.#t(this.browsetreetemplate,{...g[1],fragment:g[0],path:f})}browseFile(f,...g){return typeof g[0]!="string"?this.#t(this.browseblobtemplate,{...g[0],path:f}):this.#t(this.browseblobtemplate,{...g[1],fragment:g[0],path:f})}docs(f){return this.#t(this.docstemplate,f)}bugs(f){return this.#t(this.bugstemplate,f)}https(f){return this.#t(this.httpstemplate,f)}git(f){return this.#t(this.gittemplate,f)}shortcut(f){return this.#t(this.shortcuttemplate,f)}path(f){return this.#t(this.pathtemplate,f)}tarball(f){return this.#t(this.tarballtemplate,{...f,noCommittish:!1})}file(f,g){return this.#t(this.filetemplate,{...g,path:f})}edit(f,g){return this.#t(this.edittemplate,{...g,path:f})}getDefaultRepresentation(){return this.default}toString(f){return this.default&&typeof this[this.default]=="function"?this[this.default](f):this.sshurl(f)}}for(const[l,f]of Object.entries(n))u.addHost(l,f);return zn=u,zn}h(O0,"requireLib");var Jn,ao;function P0(){if(ao)return Jn;ao=1;var t=Object.defineProperty,e=h((n,s)=>t(n,"name",{value:s,configurable:!0}),"r");Jn=r;function r(n){if(!n||n==="ERROR: No README data found!")return;n=n.trim().split(`
167
- `);let s=0;for(;n[s]&&n[s].trim().match(/^(#|$)/);)s++;const i=n.length;let o=s+1;for(;o<i&&n[o].trim();)o++;return n.slice(s,o).join(" ").trim()}return h(r,"extractDescription"),e(r,"extractDescription"),Jn}h(P0,"requireExtract_description");var Ou={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},Pu={web:"url",name:"url"},Nu={server:"start",tests:"test"};const N0={topLevel:Ou,bugs:Pu,script:Nu},B0=Object.defineProperty({__proto__:null,bugs:Pu,default:N0,script:Nu,topLevel:Ou},Symbol.toStringTag,{value:"Module"}),k0=Ei(B0);var Xn,uo;function I0(){if(uo)return Xn;uo=1;var t=Object.defineProperty,e=h((p,C)=>t(p,"name",{value:C,configurable:!0}),"n"),{URL:r}=vc,n=y0(),s=b0(),i=F0(),o=O0(),{isBuiltin:a}=yc,u=["dependencies","devDependencies","optionalDependencies"],l=P0(),f=k0,g=e(p=>p.includes("@")&&p.indexOf("@")<p.lastIndexOf("."),"isEmail");Xn={warn:e(function(){},"warn"),fixRepositoryField:e(function(p){if(p.repositories&&(this.warn("repositories"),p.repository=p.repositories[0]),!p.repository)return this.warn("missingRepository");typeof p.repository=="string"&&(p.repository={type:"git",url:p.repository});var C=p.repository.url||"";if(C){var A=o.fromUrl(C);A&&(C=p.repository.url=A.getDefaultRepresentation()==="shortcut"?A.https():A.toString())}C.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",C)},"fixRepositoryField"),fixTypos:e(function(p){Object.keys(f.topLevel).forEach(function(C){Object.prototype.hasOwnProperty.call(p,C)&&this.warn("typo",C,f.topLevel[C])},this)},"fixTypos"),fixScriptsField:e(function(p){if(p.scripts){if(typeof p.scripts!="object"){this.warn("nonObjectScripts"),delete p.scripts;return}Object.keys(p.scripts).forEach(function(C){typeof p.scripts[C]!="string"?(this.warn("nonStringScript"),delete p.scripts[C]):f.script[C]&&!p.scripts[f.script[C]]&&this.warn("typo",C,f.script[C],"scripts")},this)}},"fixScriptsField"),fixFilesField:e(function(p){var C=p.files;C&&!Array.isArray(C)?(this.warn("nonArrayFiles"),delete p.files):p.files&&(p.files=p.files.filter(function(A){return!A||typeof A!="string"?(this.warn("invalidFilename",A),!1):!0},this))},"fixFilesField"),fixBinField:e(function(p){if(p.bin&&typeof p.bin=="string"){var C={},A;(A=p.name.match(/^@[^/]+[/](.*)$/))?C[A[1]]=p.bin:C[p.name]=p.bin,p.bin=C}},"fixBinField"),fixManField:e(function(p){p.man&&typeof p.man=="string"&&(p.man=[p.man])},"fixManField"),fixBundleDependenciesField:e(function(p){var C="bundledDependencies",A="bundleDependencies";p[C]&&!p[A]&&(p[A]=p[C],delete p[C]),p[A]&&!Array.isArray(p[A])?(this.warn("nonArrayBundleDependencies"),delete p[A]):p[A]&&(p[A]=p[A].filter(function(S){return!S||typeof S!="string"?(this.warn("nonStringBundleDependency",S),!1):(p.dependencies||(p.dependencies={}),Object.prototype.hasOwnProperty.call(p.dependencies,S)||(this.warn("nonDependencyBundleDependency",S),p.dependencies[S]="*"),!0)},this))},"fixBundleDependenciesField"),fixDependencies:e(function(p){D(p,this.warn),d(p),this.fixBundleDependenciesField(p),["dependencies","devDependencies"].forEach(function(C){if(C in p){if(!p[C]||typeof p[C]!="object"){this.warn("nonObjectDependencies",C),delete p[C];return}Object.keys(p[C]).forEach(function(A){var S=p[C][A];typeof S!="string"&&(this.warn("nonStringDependency",A,JSON.stringify(S)),delete p[C][A]);var L=o.fromUrl(p[C][A]);L&&(p[C][A]=L.toString())},this)}},this)},"fixDependencies"),fixModulesField:e(function(p){p.modules&&(this.warn("deprecatedModules"),delete p.modules)},"fixModulesField"),fixKeywordsField:e(function(p){typeof p.keywords=="string"&&(p.keywords=p.keywords.split(/,\s+/)),p.keywords&&!Array.isArray(p.keywords)?(delete p.keywords,this.warn("nonArrayKeywords")):p.keywords&&(p.keywords=p.keywords.filter(function(C){return typeof C!="string"||!C?(this.warn("nonStringKeyword"),!1):!0},this))},"fixKeywordsField"),fixVersionField:e(function(p,C){var A=!C;if(!p.version)return p.version="",!0;if(!n(p.version,A))throw new Error('Invalid version: "'+p.version+'"');return p.version=s(p.version,A),!0},"fixVersionField"),fixPeople:e(function(p){b(p,F),b(p,E)},"fixPeople"),fixNameField:e(function(p,C){typeof C=="boolean"?C={strict:C}:typeof C>"u"&&(C={});var A=C.strict;if(!p.name&&!A){p.name="";return}if(typeof p.name!="string")throw new Error("name field must be a string.");A||(p.name=p.name.trim()),$(p.name,A,C.allowLegacyCase),a(p.name)&&this.warn("conflictingName",p.name)},"fixNameField"),fixDescriptionField:e(function(p){p.description&&typeof p.description!="string"&&(this.warn("nonStringDescription"),delete p.description),p.readme&&!p.description&&(p.description=l(p.readme)),p.description===void 0&&delete p.description,p.description||this.warn("missingDescription")},"fixDescriptionField"),fixReadmeField:e(function(p){p.readme||(this.warn("missingReadme"),p.readme="ERROR: No README data found!")},"fixReadmeField"),fixBugsField:e(function(p){if(!p.bugs&&p.repository&&p.repository.url){var C=o.fromUrl(p.repository.url);C&&C.bugs()&&(p.bugs={url:C.bugs()})}else if(p.bugs){if(typeof p.bugs=="string")g(p.bugs)?p.bugs={email:p.bugs}:r.canParse(p.bugs)?p.bugs={url:p.bugs}:this.warn("nonEmailUrlBugsString");else{y(p.bugs,this.warn);var A=p.bugs;p.bugs={},A.url&&(r.canParse(A.url)?p.bugs.url=A.url:this.warn("nonUrlBugsUrlField")),A.email&&(typeof A.email=="string"&&g(A.email)?p.bugs.email=A.email:this.warn("nonEmailBugsEmailField"))}!p.bugs.email&&!p.bugs.url&&(delete p.bugs,this.warn("emptyNormalizedBugs"))}},"fixBugsField"),fixHomepageField:e(function(p){if(!p.homepage&&p.repository&&p.repository.url){var C=o.fromUrl(p.repository.url);C&&C.docs()&&(p.homepage=C.docs())}if(p.homepage){if(typeof p.homepage!="string")return this.warn("nonUrlHomepage"),delete p.homepage;r.canParse(p.homepage)||(p.homepage="http://"+p.homepage)}},"fixHomepageField"),fixLicenseField:e(function(p){const C=p.license||p.licence;if(!C)return this.warn("missingLicense");if(typeof C!="string"||C.length<1||C.trim()==="")return this.warn("invalidLicense");if(!i(C).validForNewPackages)return this.warn("invalidLicense")},"fixLicenseField")};function m(p){if(p.charAt(0)!=="@")return!1;var C=p.slice(1).split("/");return C.length!==2?!1:C[0]&&C[1]&&C[0]===encodeURIComponent(C[0])&&C[1]===encodeURIComponent(C[1])}h(m,"isValidScopedPackageName"),e(m,"isValidScopedPackageName");function v(p){return!p.match(/[/@\s+%:]/)&&p===encodeURIComponent(p)}h(v,"isCorrectlyEncodedName"),e(v,"isCorrectlyEncodedName");function $(p,C,A){if(p.charAt(0)==="."||!(m(p)||v(p))||C&&!A&&p!==p.toLowerCase()||p.toLowerCase()==="node_modules"||p.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(p))}h($,"ensureValidName"),e($,"ensureValidName");function b(p,C){return p.author&&(p.author=C(p.author)),["maintainers","contributors"].forEach(function(A){Array.isArray(p[A])&&(p[A]=p[A].map(C))}),p}h(b,"modifyPeople"),e(b,"modifyPeople");function F(p){if(typeof p=="string")return p;var C=p.name||"",A=p.url||p.web,S=A?" ("+A+")":"",L=p.email||p.mail,T=L?" <"+L+">":"";return C+T+S}h(F,"unParsePerson"),e(F,"unParsePerson");function E(p){if(typeof p!="string")return p;var C=p.match(/^([^(<]+)/),A=p.match(/\(([^()]+)\)/),S=p.match(/<([^<>]+)>/),L={};return C&&C[0].trim()&&(L.name=C[0].trim()),S&&(L.email=S[1]),A&&(L.url=A[1]),L}h(E,"parsePerson"),e(E,"parsePerson");function d(p){var C=p.optionalDependencies;if(C){var A=p.dependencies||{};Object.keys(C).forEach(function(S){A[S]=C[S]}),p.dependencies=A}}h(d,"addOptionalDepsToDeps"),e(d,"addOptionalDepsToDeps");function c(p,C,A){if(!p)return{};if(typeof p=="string"&&(p=p.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(p))return p;A("deprecatedArrayDependencies",C);var S={};return p.filter(function(L){return typeof L=="string"}).forEach(function(L){L=L.trim().split(/(:?[@\s><=])/);var T=L.shift(),N=L.join("");N=N.trim(),N=N.replace(/^@/,""),S[T]=N}),S}h(c,"depObjectify"),e(c,"depObjectify");function D(p,C){u.forEach(function(A){p[A]&&(p[A]=c(p[A],A,C))})}h(D,"objectifyDeps"),e(D,"objectifyDeps");function y(p,C){p&&Object.keys(p).forEach(function(A){f.bugs[A]&&(C("typo",A,f.bugs[A],"bugs"),p[f.bugs[A]]=p[A],delete p[A])})}return h(y,"bugsTypos"),e(y,"bugsTypos"),Xn}h(I0,"requireFixer");var Bu="'repositories' (plural) Not supported. Please pick one as the 'repository' field",ku="No repository field.",Iu="Probably broken git url: %s",xu="scripts must be an object",Tu="script values must be string commands",ju="Invalid 'files' member",Ru="Invalid filename in 'files' list: %s",Mu="Invalid 'bundleDependencies' list. Must be array of package names",_u="Invalid bundleDependencies member: %s",Gu="Non-dependency in bundleDependencies: %s",Uu="%s field must be an object",qu="Invalid dependency: %s %s",Ku="specifying %s as array is deprecated",Wu="modules field is deprecated",Hu="keywords should be an array of strings",Vu="keywords should be an array of strings",Yu="%s is also the name of a node core module.",zu="'description' field should be a string",Ju="No description",Xu="No README data",Qu="No license field.",Zu="Bug string field must be url, email, or {email,url}",ec="bugs.url field must be a string url. Deleted.",tc="bugs.email field must be a string email. Deleted.",rc="Normalized value of bugs field is an empty object. Deleted.",nc="homepage field must be a string url. Deleted.",sc="license should be a valid SPDX license expression",ic="%s should probably be %s.";const x0={repositories:Bu,missingRepository:ku,brokenGitUrl:Iu,nonObjectScripts:xu,nonStringScript:Tu,nonArrayFiles:ju,invalidFilename:Ru,nonArrayBundleDependencies:Mu,nonStringBundleDependency:_u,nonDependencyBundleDependency:Gu,nonObjectDependencies:Uu,nonStringDependency:qu,deprecatedArrayDependencies:Ku,deprecatedModules:Wu,nonArrayKeywords:Hu,nonStringKeyword:Vu,conflictingName:Yu,nonStringDescription:zu,missingDescription:Ju,missingReadme:Xu,missingLicense:Qu,nonEmailUrlBugsString:Zu,nonUrlBugsUrlField:ec,nonEmailBugsEmailField:tc,emptyNormalizedBugs:rc,nonUrlHomepage:nc,invalidLicense:sc,typo:ic},T0=Object.defineProperty({__proto__:null,brokenGitUrl:Iu,conflictingName:Yu,default:x0,deprecatedArrayDependencies:Ku,deprecatedModules:Wu,emptyNormalizedBugs:rc,invalidFilename:Ru,invalidLicense:sc,missingDescription:Ju,missingLicense:Qu,missingReadme:Xu,missingRepository:ku,nonArrayBundleDependencies:Mu,nonArrayFiles:ju,nonArrayKeywords:Hu,nonDependencyBundleDependency:Gu,nonEmailBugsEmailField:tc,nonEmailUrlBugsString:Zu,nonObjectDependencies:Uu,nonObjectScripts:xu,nonStringBundleDependency:_u,nonStringDependency:qu,nonStringDescription:zu,nonStringKeyword:Vu,nonStringScript:Tu,nonUrlBugsUrlField:ec,nonUrlHomepage:nc,repositories:Bu,typo:ic},Symbol.toStringTag,{value:"Module"}),j0=Ei(T0);var Qn,co;function R0(){if(co)return Qn;co=1;var t=Object.defineProperty,e=h((i,o)=>t(i,"name",{value:o,configurable:!0}),"s"),r=Ac,n=j0;Qn=h(function(){var i=Array.prototype.slice.call(arguments,0),o=i.shift();if(o==="typo")return s.apply(null,i);var a=n[o]?n[o]:o+": '%s'";return i.unshift(a),r.format.apply(null,i)},"make_warning");function s(i,o,a){return a&&(i=a+"['"+i+"']",o=a+"['"+o+"']"),r.format(n.typo,i,o)}return h(s,"makeTypoWarning"),e(s,"makeTypoWarning"),Qn}h(R0,"requireMake_warning");var Zn,lo;function M0(){if(lo)return Zn;lo=1;var t=Object.defineProperty,e=h((l,f)=>t(l,"name",{value:f,configurable:!0}),"n");Zn=a;var r=I0();a.fixer=r;var n=R0(),s=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],i=["dependencies","people","typos"],o=s.map(function(l){return u(l)+"Field"});o=o.concat(i);function a(l,f,g){f===!0&&(f=null,g=!0),g||(g=!1),(!f||l.private)&&(f=e(function(){},"warn")),l.scripts&&l.scripts.install==="node-gyp rebuild"&&!l.scripts.preinstall&&(l.gypfile=!0),r.warn=function(){f(n.apply(null,arguments))},o.forEach(function(m){r["fix"+u(m)](l,g)}),l._id=l.name+"@"+l.version}h(a,"normalize"),e(a,"normalize");function u(l){return l.charAt(0).toUpperCase()+l.slice(1)}return h(u,"ucFirst"),e(u,"ucFirst"),Zn}h(M0,"requireNormalize");var _0=M0();const G0=vu(_0);var U0=Object.defineProperty,q0=h((t,e)=>U0(t,"name",{value:e,configurable:!0}),"d$1"),K0=Object.defineProperty,W0=q0((t,e)=>K0(t,"name",{value:e,configurable:!0}),"f"),H0=Object.defineProperty,kt=W0((t,e)=>H0(t,"name",{value:e,configurable:!0}),"c");const oc=kt((t,e,r)=>{const n=he(t),s=he(e),i=s===n?".":Ec(n,s);return r.some(o=>{const a=o.startsWith("./")?o.slice(2):o,u=i.startsWith("./")?i.slice(2):i;if(a==="."&&u===".")return!0;if(a.endsWith("/**")){const l=a.slice(0,-3);return u===l||u.startsWith(`${l}/`)}if(a.endsWith("/*")){const l=a.slice(0,-2);return l===""?u!=="."&&!u.includes("/"):u.startsWith(`${l}/`)||u===l}return u===a||u.startsWith(`${a}/`)})},"isPackageInWorkspace"),ac=kt(async t=>{const e=await bo("pnpm-workspace.yaml",{cwd:he(t),type:"file"});if(!e)return;const r=await $r(e),n=Array.isArray(r.packages)?r.packages:[];if(!oc(e,t,n))return;const s={};return r.catalog&&typeof r.catalog=="object"&&(s.catalog=r.catalog),r.catalogs&&typeof r.catalogs=="object"&&(s.catalogs=r.catalogs),Object.keys(s).length>0?s:void 0},"readPnpmCatalogs"),uc=kt(t=>{const e=Ao("pnpm-workspace.yaml",{cwd:he(t),type:"file"});if(!e)return;const r=Fr(e),n=Array.isArray(r.packages)?r.packages:[];if(!oc(e,t,n))return;const s={};return r.catalog&&typeof r.catalog=="object"&&(s.catalog=r.catalog),r.catalogs&&typeof r.catalogs=="object"&&(s.catalogs=r.catalogs),Object.keys(s).length>0?s:void 0},"readPnpmCatalogsSync"),V0=kt((t,e,r)=>{if(e==="catalog:")return r.catalog?.[t];if(e.startsWith("catalog:")){const n=e.slice(8);return r.catalogs?.[n]?.[t]}},"resolveCatalogReference"),Y0=kt((t,e)=>{for(const[r,n]of Object.entries(t)){if(typeof n!="string")continue;const s=V0(r,n,e);s&&(t[r]=s)}},"resolveDependenciesCatalogReferences"),bn=kt((t,e)=>{const r=["dependencies","devDependencies","peerDependencies","optionalDependencies"];for(const n of r){if(!t[n]||typeof t[n]!="object")continue;const s=t[n];Y0(s,e)}},"resolveCatalogReferences");var z0=Object.defineProperty,ee=h((t,e)=>z0(t,"name",{value:e,configurable:!0}),"l"),J0=Object.defineProperty,Y=ee((t,e)=>J0(t,"name",{value:e,configurable:!0}),"f");const X0=De(import.meta.url),Ht=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,vi=Y(t=>{if(typeof Ht<"u"&&Ht.versions&&Ht.versions.node){const[e,r]=Ht.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Ht.getBuiltinModule(t)}return X0(t)},"__cjs_getBuiltinModule"),{existsSync:cc}=vi("node:fs"),{createInterface:Q0}=vi("node:readline"),{styleText:ce}=vi("node:util");var Z0=Object.defineProperty,Q=Y((t,e)=>Z0(t,"name",{value:e,configurable:!0}),"f");const we=Q(t=>{const e=typeof t;return t!==null&&(e==="object"||e==="function")},"isObject"),em=Q(t=>{if(!we(t))return!1;for(const e in t)if(Object.hasOwn(t,e))return!1;return!0},"isEmptyObject"),lc=new Set(["__proto__","prototype","constructor"]),fc=1e6,tm=Q(t=>t>="0"&&t<="9","isDigit");function ct(t){if(t==="0")return!0;if(/^[1-9]\d*$/.test(t)){const e=Number.parseInt(t,10);return e<=Number.MAX_SAFE_INTEGER&&e<=fc}return!1}h(ct,"w");ee(ct,"b");Y(ct,"p$1");Q(ct,"shouldCoerceToNumber");function bt(t,e){return lc.has(t)?!1:(t&&ct(t)?e.push(Number.parseInt(t,10)):e.push(t),!0)}h(bt,"P");ee(bt,"P");Y(bt,"y");Q(bt,"processSegment");function En(t){if(typeof t!="string")throw new TypeError(`Expected a string, got ${typeof t}`);const e=[];let r="",n="start",s=!1,i=0;for(const o of t){if(i++,s){r+=o,s=!1;continue}if(o==="\\"){if(n==="index")throw new Error(`Invalid character '${o}' in an index at position ${i}`);if(n==="indexEnd")throw new Error(`Invalid character '${o}' after an index at position ${i}`);s=!0,n=n==="start"?"property":n;continue}switch(o){case".":{if(n==="index")throw new Error(`Invalid character '${o}' in an index at position ${i}`);if(n==="indexEnd"){n="property";break}if(!bt(r,e))return[];r="",n="property";break}case"[":{if(n==="index")throw new Error(`Invalid character '${o}' in an index at position ${i}`);if(n==="indexEnd"){n="index";break}if(n==="property"||n==="start"){if((r||n==="property")&&!bt(r,e))return[];r=""}n="index";break}case"]":{if(n==="index"){if(r==="")r=(e.pop()||"")+"[]",n="property";else{const a=Number.parseInt(r,10);!Number.isNaN(a)&&Number.isFinite(a)&&a>=0&&a<=Number.MAX_SAFE_INTEGER&&a<=fc&&r===String(a)?e.push(a):e.push(r),r="",n="indexEnd"}break}if(n==="indexEnd")throw new Error(`Invalid character '${o}' after an index at position ${i}`);r+=o;break}default:{if(n==="index"&&!tm(o))throw new Error(`Invalid character '${o}' in an index at position ${i}`);if(n==="indexEnd")throw new Error(`Invalid character '${o}' after an index at position ${i}`);n==="start"&&(n="property"),r+=o}}}switch(s&&(r+="\\"),n){case"property":{if(!bt(r,e))return[];break}case"index":throw new Error("Index was not closed");case"start":{e.push("");break}}return e}h(En,"N");ee(En,"B");Y(En,"parsePath");Q(En,"parsePath");function lt(t){if(typeof t=="string")return En(t);if(Array.isArray(t)){const e=[];for(const[r,n]of t.entries()){if(typeof n!="string"&&typeof n!="number")throw new TypeError(`Expected a string or number for path segment at index ${r}, got ${typeof n}`);if(typeof n=="number"&&!Number.isFinite(n))throw new TypeError(`Path segment at index ${r} must be a finite number, got ${n}`);if(lc.has(n))return[];typeof n=="string"&&ct(n)?e.push(Number.parseInt(n,10)):e.push(n)}return e}return[]}h(lt,"b$1");ee(lt,"k");Y(lt,"d");Q(lt,"normalizePath");function Ce(t,e,r){if(!we(t)||typeof e!="string"&&!Array.isArray(e))return r===void 0?t:r;const n=lt(e);if(n.length===0)return r;for(let s=0;s<n.length;s++){const i=n[s];if(t=t[i],t==null){if(s!==n.length-1)return r;break}}return t===void 0?r:t}h(Ce,"d");ee(Ce,"h");Y(Ce,"getProperty");Q(Ce,"getProperty");function vn(t,e,r){if(!we(t)||typeof e!="string"&&!Array.isArray(e))return t;const n=t,s=lt(e);if(s.length===0)return t;for(let i=0;i<s.length;i++){const o=s[i];if(i===s.length-1)t[o]=r;else if(!we(t[o])){const a=typeof s[i+1]=="number";t[o]=a?[]:{}}t=t[o]}return n}h(vn,"T");ee(vn,"M");Y(vn,"setProperty");Q(vn,"setProperty");function Ai(t,e){if(!we(t)||typeof e!="string"&&!Array.isArray(e))return!1;const r=lt(e);if(r.length===0)return!1;for(let n=0;n<r.length;n++){const s=r[n];if(n===r.length-1)return Object.hasOwn(t,s)?(delete t[s],!0):!1;if(t=t[s],!we(t))return!1}}h(Ai,"q");ee(Ai,"ue");Y(Ai,"deleteProperty");Q(Ai,"deleteProperty");function _e(t,e){if(!we(t)||typeof e!="string"&&!Array.isArray(e))return!1;const r=lt(e);if(r.length===0)return!1;for(const n of r){if(!we(t)||!(n in t))return!1;t=t[n]}return!0}h(_e,"m$1");ee(_e,"y");Y(_e,"hasProperty");Q(_e,"hasProperty");function pr(t){if(typeof t!="string")throw new TypeError(`Expected a string, got ${typeof t}`);return t.replaceAll(/[\\.[]/g,String.raw`\$&`)}h(pr,"E");ee(pr,"x");Y(pr,"escapePath");Q(pr,"escapePath");function An(t){const e=Object.entries(t);return Array.isArray(t)?e.map(([r,n])=>[ct(r)?Number.parseInt(r,10):r,n]):e}h(An,"D");ee(An,"R");Y(An,"m$2");Q(An,"normalizeEntries");function Cn(t,e={}){if(!Array.isArray(t))throw new TypeError(`Expected an array, got ${typeof t}`);const{preferDotForIndices:r=!1}=e,n=[];for(const[s,i]of t.entries()){if(typeof i!="string"&&typeof i!="number")throw new TypeError(`Expected a string or number for path segment at index ${s}, got ${typeof i}`);if(typeof i=="number")if(!Number.isInteger(i)||i<0){const o=pr(String(i));n.push(s===0?o:`.${o}`)}else r&&s>0?n.push(`.${i}`):n.push(`[${i}]`);else if(typeof i=="string")if(i==="")s===0||n.push(".");else if(ct(i)){const o=Number.parseInt(i,10);r&&s>0?n.push(`.${o}`):n.push(`[${o}]`)}else{const o=pr(i);n.push(s===0?o:`.${o}`)}}return n.join("")}h(Cn,"F");ee(Cn,"Y");Y(Cn,"stringifyPath");Q(Cn,"stringifyPath");function*wr(t,e=[],r=new Set){if(!we(t)||em(t)){e.length>0&&(yield Cn(e));return}if(!r.has(t)){r.add(t);for(const[n,s]of An(t))e.push(n),yield*wr(s,e,r),e.pop();r.delete(t)}}h(wr,"j$1");ee(wr,"S");Y(wr,"x");Q(wr,"deepKeysIterator");function Ci(t){return[...wr(t)]}h(Ci,"G");ee(Ci,"ge");Y(Ci,"deepKeys");Q(Ci,"deepKeys");function $i(t){const e={};if(!we(t))return e;for(const[r,n]of Object.entries(t))vn(e,r,n);return e}h($i,"K");ee($i,"de");Y($i,"unflatten");Q($i,"unflatten");var rm=Object.defineProperty,es=Y((t,e)=>rm(t,"name",{value:e,configurable:!0}),"i");const nm=es(async t=>{const{default:e=!1,message:r,transformer:n}=t,s=es(o=>{const a=ce(["cyan","bold"],"?"),u=ce(["bold"],o),l=e?`${ce(["greenBright"],"Y")}${ce(["gray"],"/n")}`:`y/${ce(["yellowBright"],"N")}`;return`${a} ${u} ${ce(["gray"],`(${l})`)}`},"formatMessage"),i=es(o=>n?n(o):o?ce(["greenBright"],"Yes"):ce(["yellowBright"],"No"),"formatAnswer");return new Promise(o=>{const a=Q0({input:process.stdin,output:process.stdout}),u=s(r);a.question(u,l=>{a.close();const f=l.trim().toLowerCase();if(f===""){o(e);return}if(f==="y"||f==="yes"){console.log(`${ce(["greenBright"],"✓")} ${i(!0)}`),o(!0);return}if(f==="n"||f==="no"){console.log(`${ce(["yellowBright"],"✗")} ${i(!1)}`),o(!1);return}console.log(`${ce(["gray"],"→")} ${i(e)}`),o(e)}),a.on("SIGINT",()=>{a.close(),console.log(`
168
- ${ce(["gray"],"→")} ${i(e)}`),o(e)})})},"confirm"),sm=typeof process.stdout<"u"&&!process.versions.deno&&!globalThis.window;var im=Object.defineProperty,J=Y((t,e)=>im(t,"name",{value:e,configurable:!0}),"l");const hc=/, ([^,]*)$/,Yr=new Map,pc=new Map;class om extends Error{static{h(this,"ke")}static{ee(this,"be")}static{Y(this,"M")}static{J(this,"PackageJsonValidationError")}constructor(e){super(`The following warnings were encountered while normalizing package data:
169
- - ${e.join(`
170
- - `)}`),this.name="PackageJsonValidationError"}}const $n=J((t,e,r=[])=>{const n=[];if(G0(t,s=>{n.push(s)},e),e&&n.length>0){const s=n.filter(i=>!r.some(o=>o instanceof RegExp?o.test(i):o===i));if(s.length>0)throw new om(s)}return t},"normalizeInput"),am=J(async t=>await $r(t),"parseYamlFile"),um=J(t=>Fr(t),"parseYamlFileSync"),cm=J(async t=>{const e=await vs(t);return Eu.parse(e)},"parseJson5File"),lm=J(t=>{const e=As(t);return Eu.parse(e)},"parseJson5FileSync"),dc=J(async(t,e)=>e?.yaml!==!1&&(t.endsWith(".yaml")||t.endsWith(".yml"))?am(t):e?.json5!==!1&&t.endsWith(".json5")?cm(t):Jr(t),"parsePackageFile"),mc=J((t,e)=>e?.yaml!==!1&&(t.endsWith(".yaml")||t.endsWith(".yml"))?um(t):e?.json5!==!1&&t.endsWith(".json5")?lm(t):Xr(t),"parsePackageFileSync"),fm=J(async(t,e={})=>{const r={type:"file"};t&&(r.cwd=t);const n=["package.json"];e.yaml!==!1&&n.push("package.yaml","package.yml"),e.json5!==!1&&n.push("package.json5");let s;for(const u of n)if(s=await bo(u,r),s)break;if(!s)throw new Jo(`No such file or directory, for ${n.join(", ").replace(hc," or $1")} found.`);const i=e.cache&&typeof e.cache!="boolean"?e.cache:pc;if(e.cache&&i.has(s))return i.get(s);const o=await dc(s,e);if(e.resolveCatalogs){const u=await ac(s);u&&bn(o,u)}$n(o,e.strict??!1,e.ignoreWarnings);const a={packageJson:o,path:s};return e.cache&&i.set(s,a),a},"findPackageJson");J((t,e={})=>{const r={type:"file"};t&&(r.cwd=t);const n=["package.json"];e.yaml!==!1&&n.push("package.yaml","package.yml"),e.json5!==!1&&n.push("package.json5");let s;for(const u of n)if(s=Ao(u,r),s)break;if(!s)throw new Jo(`No such file or directory, for ${n.join(", ").replace(hc," or $1")} found.`);const i=e.cache&&typeof e.cache!="boolean"?e.cache:pc;if(e.cache&&i.has(s))return i.get(s);const o=mc(s,e);if(e.resolveCatalogs){const u=uc(s);u&&bn(o,u)}$n(o,e.strict??!1,e.ignoreWarnings);const a={packageJson:o,path:s};return e.cache&&i.set(s,a),a},"findPackageJsonSync");J(async(t,e={})=>{const{cwd:r,...n}=e,s=ne(r??process.cwd());await Eh(mo(s,"package.json"),t,n)},"writePackageJson");J((t,e={})=>{const{cwd:r,...n}=e,s=ne(r??process.cwd());Oh(mo(s,"package.json"),t,n)},"writePackageJsonSync");const Gm=J((t,e)=>{const r=typeof t=="object"&&!Array.isArray(t);if(!r&&typeof t!="string")throw new TypeError("`packageFile` should be either an `object` or a `string`.");let n,s=!1,i;if(r)n=structuredClone(t);else if(cc(t)){i=t;const a=e?.cache&&typeof e.cache!="boolean"?e.cache:Yr;if(e?.cache&&a.has(i))return a.get(i);n=mc(i,e),s=!0}else n=st(t);if(e?.resolveCatalogs)if(s){const a=uc(t);a&&bn(n,a)}else throw new Error("The 'resolveCatalogs' option can only be used on a file path.");$n(n,e?.strict??!1,e?.ignoreWarnings);const o=n;return s&&e?.cache&&(typeof e.cache=="boolean"?Yr:e.cache).set(i,o),o},"parsePackageJsonSync"),Um=J(async(t,e)=>{const r=typeof t=="object"&&!Array.isArray(t);if(!r&&typeof t!="string")throw new TypeError("`packageFile` should be either an `object` or a `string`.");let n,s=!1,i;if(r)n=structuredClone(t);else if(cc(t)){i=t;const a=e?.cache&&typeof e.cache!="boolean"?e.cache:Yr;if(e?.cache&&a.has(i))return a.get(i);n=await dc(i,e),s=!0}else n=st(t);if(e?.resolveCatalogs)if(s){const a=await ac(t);a&&bn(n,a)}else throw new Error("The 'resolveCatalogs' option can only be used on a file path.");$n(n,e?.strict??!1,e?.ignoreWarnings);const o=n;return s&&e?.cache&&(typeof e.cache=="boolean"?Yr:e.cache).set(i,o),o},"parsePackageJson");J((t,e,r)=>Ce(t,e,r),"getPackageJsonProperty");J((t,e)=>_e(t,e),"hasPackageJsonProperty");J((t,e,r)=>{const n=Ce(t,"dependencies",{}),s=Ce(t,"devDependencies",{}),i=Ce(t,"peerDependencies",{}),o={...n,...s,...r?.peerDeps===!1?{}:i};for(const a of e)if(_e(o,a))return!0;return!1},"hasPackageJsonAnyDependency");J(async(t,e,r="dependencies",n={})=>{const s=Ce(t,"dependencies",{}),i=Ce(t,"devDependencies",{}),o=Ce(t,"peerDependencies",{}),a=[],u={deps:!0,devDeps:!0,peerDeps:!1,...n};for(const l of e)u.deps&&_e(s,l)||u.devDeps&&_e(i,l)||u.peerDeps&&_e(o,l)||a.push(l);if(a.length!==0){if(process.env.CI||sm&&!process.stdout.isTTY){const l=`Skipping package installation for [${e.join(", ")}] because the process is not interactive.`;if(n.throwOnWarn)throw new Error(l);n.logger?.warn?n.logger.warn(l):console.warn(l);return}if(typeof u.confirm?.message=="function"&&(u.confirm.message=u.confirm.message(a)),u.confirm?.message===void 0){const l=`${a.length===1?"Package is":"Packages are"} required for this config: ${a.join(", ")}. Do you want to install them?`;u.confirm===void 0?u.confirm={message:l}:u.confirm.message=l}await nm(u.confirm)&&await bc(a,{...u.installPackage,cwd:u.cwd?ne(u.cwd):void 0,dev:r==="devDependencies"})}},"ensurePackages");var hm=Object.defineProperty,pm=h((t,e)=>hm(t,"name",{value:e,configurable:!0}),"b"),dm=Object.defineProperty,mm=pm((t,e)=>dm(t,"name",{value:e,configurable:!0}),"h"),gm=Object.defineProperty,ts=mm((t,e)=>gm(t,"name",{value:e,configurable:!0}),"a");let fo;const Dm=new Map,qm=ts((t,e,r,n)=>{const{ignoreSideEffectsForRoot:s,...i}=t;fo??=new Cc({...i,roots:[...i.roots??[],e],tsconfig:n?{configFile:n,references:"auto"}:void 0});const o=fo;return{name:"oxc-resolve",resolveId:{async handler(a,u,l){const{isEntry:f}=l,g=f||!u?he(a):he(u),{error:m,path:v}=await o.async(g,a);if(m){r.debug(m,{context:[{basedir:e,extensions:i.extensions,id:v}]});return}let $=ts(F=>!1,"hasModuleSideEffects");try{const{packageJson:F,path:E}=await fm(he(v),{cache:Dm}),d=he(E);if(!s||e!==d){const c=F.sideEffects;if(typeof c=="boolean")$=ts(()=>c,"hasModuleSideEffects");else if(Array.isArray(c)){const D=c.map(y=>y.includes("/")?y:`**/${y}`);$=Dc(D,void 0,{resolve:d})}}}catch(F){const E=F instanceof Error?F.message:String(F);console.debug(E,{context:[{basedir:g,caller:"Resolver",error:F,extensions:i.extensions,id:v}]})}const b=await this.resolve(v,u,{skipSelf:!0,...l});if(b)return b.external?!1:b.id!==v?b:{id:v,meta:b.meta,moduleSideEffects:$(v)}},order:"post"}}},"oxcResolvePlugin");export{As as $,Eu as B,hr as C,qm as I,Um as N,vs as a,$u as b,d0 as c,Cu as d,m0 as e,Ft as f,Au as g,g0 as h,ke as i,y0 as j,b0 as k,G0 as l,ah as m,Be as n,fm as o,Gm as p,vu as q,D0 as r};