@visulima/cerebro 1.0.30 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/chunk-5IGWF4F6.js +5 -0
- package/dist/chunk-5IGWF4F6.js.map +1 -0
- package/dist/chunk-764E7XDY.cjs +9 -0
- package/dist/chunk-764E7XDY.cjs.map +1 -0
- package/dist/has-new-version-K56NONHR.cjs +154 -0
- package/dist/has-new-version-K56NONHR.cjs.map +1 -0
- package/dist/has-new-version-OSREQM5M.js +149 -0
- package/dist/has-new-version-OSREQM5M.js.map +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.js +5 -5
- package/package.json +8 -8
- package/dist/chunk-PWMRAKYI.cjs +0 -10
- package/dist/chunk-PWMRAKYI.cjs.map +0 -1
- package/dist/chunk-UVO7F3US.js +0 -5
- package/dist/chunk-UVO7F3US.js.map +0 -1
- package/dist/has-new-version-3M7UODVZ.js +0 -166
- package/dist/has-new-version-3M7UODVZ.js.map +0 -1
- package/dist/has-new-version-7HVFGBV7.cjs +0 -170
- package/dist/has-new-version-7HVFGBV7.cjs.map +0 -1
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { b, d, a, c } from './chunk-UVO7F3US.js';
|
|
2
|
-
import { existsSync, readFileSync, lstatSync, mkdirSync, statSync, accessSync, writeFileSync, renameSync, chownSync, chmodSync, unlinkSync } from 'node:fs';
|
|
3
|
-
import { execSync } from 'node:child_process';
|
|
4
|
-
import { stat, access, readFile, mkdir, writeFile, rename, chown, chmod, unlink } from 'node:fs/promises';
|
|
5
|
-
import { fileURLToPath } from 'node:url';
|
|
6
|
-
import { brotliDecompress, unzip, brotliDecompressSync, unzipSync } from 'node:zlib';
|
|
7
|
-
import { env, cwd } from 'node:process';
|
|
8
|
-
import { get } from 'node:https';
|
|
9
|
-
|
|
10
|
-
var D=b(j=>{d();var Ms=Symbol.for("yaml.alias"),tn=Symbol.for("yaml.document"),$t=Symbol.for("yaml.map"),sn=Symbol.for("yaml.pair"),qs=Symbol.for("yaml.scalar"),Rt=Symbol.for("yaml.seq"),ne=Symbol.for("yaml.node.type"),Tf=t=>!!t&&typeof t=="object"&&t[ne]===Ms,Df=t=>!!t&&typeof t=="object"&&t[ne]===tn,$f=t=>!!t&&typeof t=="object"&&t[ne]===$t,Rf=t=>!!t&&typeof t=="object"&&t[ne]===sn,rn=t=>!!t&&typeof t=="object"&&t[ne]===qs,Ff=t=>!!t&&typeof t=="object"&&t[ne]===Rt;function nn(t){if(t&&typeof t=="object")switch(t[ne]){case $t:case Rt:return !0}return !1}function _f(t){if(t&&typeof t=="object")switch(t[ne]){case Ms:case $t:case qs:case Rt:return !0}return !1}var Mf=t=>(rn(t)||nn(t))&&!!t.anchor;j.ALIAS=Ms;j.DOC=tn;j.MAP=$t;j.NODE_TYPE=ne;j.PAIR=sn;j.SCALAR=qs;j.SEQ=Rt;j.hasAnchor=Mf;j.isAlias=Tf;j.isCollection=nn;j.isDocument=Df;j.isMap=$f;j.isNode=_f;j.isPair=Rf;j.isScalar=rn;j.isSeq=Ff;});var Ve=b(xs=>{d();var B=D(),Y=Symbol("break visit"),on=Symbol("skip children"),Z=Symbol("remove node");function Ft(t,e){let s=an(e);B.isDocument(t)?De(null,t.contents,s,Object.freeze([t]))===Z&&(t.contents=null):De(null,t,s,Object.freeze([]));}Ft.BREAK=Y;Ft.SKIP=on;Ft.REMOVE=Z;function De(t,e,s,i){let r=ln(t,e,s,i);if(B.isNode(r)||B.isPair(r))return cn(t,i,r),De(t,r,s,i);if(typeof r!="symbol"){if(B.isCollection(e)){i=Object.freeze(i.concat(e));for(let n=0;n<e.items.length;++n){let o=De(n,e.items[n],s,i);if(typeof o=="number")n=o-1;else {if(o===Y)return Y;o===Z&&(e.items.splice(n,1),n-=1);}}}else if(B.isPair(e)){i=Object.freeze(i.concat(e));let n=De("key",e.key,s,i);if(n===Y)return Y;n===Z&&(e.key=null);let o=De("value",e.value,s,i);if(o===Y)return Y;o===Z&&(e.value=null);}}return r}async function _t(t,e){let s=an(e);B.isDocument(t)?await $e(null,t.contents,s,Object.freeze([t]))===Z&&(t.contents=null):await $e(null,t,s,Object.freeze([]));}_t.BREAK=Y;_t.SKIP=on;_t.REMOVE=Z;async function $e(t,e,s,i){let r=await ln(t,e,s,i);if(B.isNode(r)||B.isPair(r))return cn(t,i,r),$e(t,r,s,i);if(typeof r!="symbol"){if(B.isCollection(e)){i=Object.freeze(i.concat(e));for(let n=0;n<e.items.length;++n){let o=await $e(n,e.items[n],s,i);if(typeof o=="number")n=o-1;else {if(o===Y)return Y;o===Z&&(e.items.splice(n,1),n-=1);}}}else if(B.isPair(e)){i=Object.freeze(i.concat(e));let n=await $e("key",e.key,s,i);if(n===Y)return Y;n===Z&&(e.key=null);let o=await $e("value",e.value,s,i);if(o===Y)return Y;o===Z&&(e.value=null);}}return r}function an(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}function ln(t,e,s,i){if(typeof s=="function")return s(t,e,i);if(B.isMap(e))return s.Map?.(t,e,i);if(B.isSeq(e))return s.Seq?.(t,e,i);if(B.isPair(e))return s.Pair?.(t,e,i);if(B.isScalar(e))return s.Scalar?.(t,e,i);if(B.isAlias(e))return s.Alias?.(t,e,i)}function cn(t,e,s){let i=e[e.length-1];if(B.isCollection(i))i.items[t]=s;else if(B.isPair(i))t==="key"?i.key=s:i.value=s;else if(B.isDocument(i))i.contents=s;else {let r=B.isAlias(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${r} parent`)}}xs.visit=Ft;xs.visitAsync=_t;});var Bs=b(un=>{d();var fn=D(),qf=Ve(),xf={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Bf=t=>t.replace(/[!,[\]{}]/g,e=>xf[e]),Xe=class t{constructor(e,s){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},t.defaultYaml,e),this.tags=Object.assign({},t.defaultTags,s);}clone(){let e=new t(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new t(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:t.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},t.defaultTags);break}return e}add(e,s){this.atNextDocument&&(this.yaml={explicit:t.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},t.defaultTags),this.atNextDocument=!1);let i=e.trim().split(/[ \t]+/),r=i.shift();switch(r){case"%TAG":{if(i.length!==2&&(s(0,"%TAG directive should contain exactly two parts"),i.length<2))return !1;let[n,o]=i;return this.tags[n]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return s(0,"%YAML directive should contain exactly one part"),!1;let[n]=i;if(n==="1.1"||n==="1.2")return this.yaml.version=n,!0;{let o=/^\d+\.\d+$/.test(n);return s(6,`Unsupported YAML version ${n}`,o),!1}}default:return s(0,`Unknown directive ${r}`,!0),!1}}tagName(e,s){if(e==="!")return "!";if(e[0]!=="!")return s(`Not a valid tag: ${e}`),null;if(e[1]==="<"){let o=e.slice(2,-1);return o==="!"||o==="!!"?(s(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&s("Verbatim tags must end with a >"),o)}let[,i,r]=e.match(/^(.*!)([^!]*)$/s);r||s(`The ${e} tag has no suffix`);let n=this.tags[i];if(n)try{return n+decodeURIComponent(r)}catch(o){return s(String(o)),null}return i==="!"?e:(s(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[s,i]of Object.entries(this.tags))if(e.startsWith(i))return s+Bf(e.substring(i.length));return e[0]==="!"?e:`!<${e}>`}toString(e){let s=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags),r;if(e&&i.length>0&&fn.isNode(e.contents)){let n={};qf.visit(e.contents,(o,a)=>{fn.isNode(a)&&a.tag&&(n[a.tag]=!0);}),r=Object.keys(n);}else r=[];for(let[n,o]of i)n==="!!"&&o==="tag:yaml.org,2002:"||(!e||r.some(a=>a.startsWith(o)))&&s.push(`%TAG ${n} ${o}`);return s.join(`
|
|
11
|
-
`)}};Xe.defaultYaml={explicit:!1,version:"1.2"};Xe.defaultTags={"!!":"tag:yaml.org,2002:"};un.Directives=Xe;});var Mt=b(Qe=>{d();var hn=D(),Uf=Ve();function Gf(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){let s=`Anchor must not contain whitespace or control characters: ${JSON.stringify(t)}`;throw new Error(s)}return !0}function pn(t){let e=new Set;return Uf.visit(t,{Value(s,i){i.anchor&&e.add(i.anchor);}}),e}function dn(t,e){for(let s=1;;++s){let i=`${t}${s}`;if(!e.has(i))return i}}function jf(t,e){let s=[],i=new Map,r=null;return {onAnchor:n=>{s.push(n),r||(r=pn(t));let o=dn(e,r);return r.add(o),o},setAnchors:()=>{for(let n of s){let o=i.get(n);if(typeof o=="object"&&o.anchor&&(hn.isScalar(o.node)||hn.isCollection(o.node)))o.node.anchor=o.anchor;else {let a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=n,a}}},sourceObjects:i}}Qe.anchorIsValid=Gf;Qe.anchorNames=pn;Qe.createNodeAnchors=jf;Qe.findNewAnchor=dn;});var Us=b(mn=>{d();function Ze(t,e,s,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let r=0,n=i.length;r<n;++r){let o=i[r],a=Ze(t,i,String(r),o);a===void 0?delete i[r]:a!==o&&(i[r]=a);}else if(i instanceof Map)for(let r of Array.from(i.keys())){let n=i.get(r),o=Ze(t,i,r,n);o===void 0?i.delete(r):o!==n&&i.set(r,o);}else if(i instanceof Set)for(let r of Array.from(i)){let n=Ze(t,i,r,r);n===void 0?i.delete(r):n!==r&&(i.delete(r),i.add(n));}else for(let[r,n]of Object.entries(i)){let o=Ze(t,i,r,n);o===void 0?delete i[r]:o!==n&&(i[r]=o);}return t.call(e,s,i)}mn.applyReviver=Ze;});var ae=b(yn=>{d();var Yf=D();function gn(t,e,s){if(Array.isArray(t))return t.map((i,r)=>gn(i,String(r),s));if(t&&typeof t.toJSON=="function"){if(!s||!Yf.hasAnchor(t))return t.toJSON(e,s);let i={aliasCount:0,count:1,res:void 0};s.anchors.set(t,i),s.onCreate=n=>{i.res=n,delete s.onCreate;};let r=t.toJSON(e,s);return s.onCreate&&s.onCreate(r),r}return typeof t=="bigint"&&!s?.keep?Number(t):t}yn.toJS=gn;});var qt=b(wn=>{d();var Wf=Us(),bn=D(),Kf=ae(),Gs=class{constructor(e){Object.defineProperty(this,bn.NODE_TYPE,{value:e});}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:s,maxAliasCount:i,onAnchor:r,reviver:n}={}){if(!bn.isDocument(e))throw new TypeError("A document argument is required");let o={anchors:new Map,doc:e,keep:!0,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},a=Kf.toJS(this,"",o);if(typeof r=="function")for(let{count:l,res:c}of o.anchors.values())r(c,l);return typeof n=="function"?Wf.applyReviver(n,{"":a},"",a):a}};wn.NodeBase=Gs;});var et=b(vn=>{d();var Jf=Mt(),Sn=Ve(),xt=D(),zf=qt(),Hf=ae(),js=class extends zf.NodeBase{constructor(e){super(xt.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}});}resolve(e){let s;return Sn.visit(e,{Node:(i,r)=>{if(r===this)return Sn.visit.BREAK;r.anchor===this.source&&(s=r);}}),s}toJSON(e,s){if(!s)return {source:this.source};let{anchors:i,doc:r,maxAliasCount:n}=s,o=this.resolve(r);if(!o){let l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=i.get(o);if(a||(Hf.toJS(o,null,s),a=i.get(o)),!a||a.res===void 0){let l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(n>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=Bt(r,o,i)),a.count*a.aliasCount>n)){let l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(e,s,i){let r=`*${this.source}`;if(e){if(Jf.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let n=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(n)}if(e.implicitKey)return `${r} `}return r}};function Bt(t,e,s){if(xt.isAlias(e)){let i=e.resolve(t),r=s&&i&&s.get(i);return r?r.count*r.aliasCount:0}else if(xt.isCollection(e)){let i=0;for(let r of e.items){let n=Bt(t,r,s);n>i&&(i=n);}return i}else if(xt.isPair(e)){let i=Bt(t,e.key,s),r=Bt(t,e.value,s);return Math.max(i,r)}return 1}vn.Alias=js;});var M=b(Ys=>{d();var Vf=D(),Xf=qt(),Qf=ae(),Zf=t=>!t||typeof t!="function"&&typeof t!="object",le=class extends Xf.NodeBase{constructor(e){super(Vf.SCALAR),this.value=e;}toJSON(e,s){return s?.keep?this.value:Qf.toJS(this.value,e,s)}toString(){return String(this.value)}};le.BLOCK_FOLDED="BLOCK_FOLDED";le.BLOCK_LITERAL="BLOCK_LITERAL";le.PLAIN="PLAIN";le.QUOTE_DOUBLE="QUOTE_DOUBLE";le.QUOTE_SINGLE="QUOTE_SINGLE";Ys.Scalar=le;Ys.isScalarValue=Zf;});var tt=b(En=>{d();var eu=et(),Ae=D(),Ln=M(),tu="tag:yaml.org,2002:";function su(t,e,s){if(e){let i=s.filter(n=>n.tag===e),r=i.find(n=>!n.format)??i[0];if(!r)throw new Error(`Tag ${e} not found`);return r}return s.find(i=>i.identify?.(t)&&!i.format)}function iu(t,e,s){if(Ae.isDocument(t)&&(t=t.contents),Ae.isNode(t))return t;if(Ae.isPair(t)){let u=s.schema[Ae.MAP].createNode?.(s.schema,null,s);return u.items.push(t),u}(t instanceof String||t instanceof Number||t instanceof Boolean||typeof BigInt<"u"&&t instanceof BigInt)&&(t=t.valueOf());let{aliasDuplicateObjects:i,onAnchor:r,onTagObj:n,schema:o,sourceObjects:a}=s,l;if(i&&t&&typeof t=="object"){if(l=a.get(t),l)return l.anchor||(l.anchor=r(t)),new eu.Alias(l.anchor);l={anchor:null,node:null},a.set(t,l);}e?.startsWith("!!")&&(e=tu+e.slice(2));let c=su(t,e,o.tags);if(!c){if(t&&typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object"){let u=new Ln.Scalar(t);return l&&(l.node=u),u}c=t instanceof Map?o[Ae.MAP]:Symbol.iterator in Object(t)?o[Ae.SEQ]:o[Ae.MAP];}n&&(n(c),delete s.onTagObj);let d=c?.createNode?c.createNode(s.schema,t,s):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(s.schema,t,s):new Ln.Scalar(t);return e?d.tag=e:c.default||(d.tag=c.tag),l&&(l.node=d),d}En.createNode=iu;});var jt=b(Gt=>{d();var ru=tt(),ee=D(),nu=qt();function Ws(t,e,s){let i=s;for(let r=e.length-1;r>=0;--r){let n=e[r];if(typeof n=="number"&&Number.isInteger(n)&&n>=0){let o=[];o[n]=i,i=o;}else i=new Map([[n,i]]);}return ru.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:t,sourceObjects:new Map})}var An=t=>t==null||typeof t=="object"&&!!t[Symbol.iterator]().next().done,Ut=class extends nu.NodeBase{constructor(e,s){super(e),Object.defineProperty(this,"schema",{value:s,configurable:!0,enumerable:!1,writable:!0});}clone(e){let s=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(s.schema=e),s.items=s.items.map(i=>ee.isNode(i)||ee.isPair(i)?i.clone(e):i),this.range&&(s.range=this.range.slice()),s}addIn(e,s){if(An(e))this.add(s);else {let[i,...r]=e,n=this.get(i,!0);if(ee.isCollection(n))n.addIn(r,s);else if(n===void 0&&this.schema)this.set(i,Ws(this.schema,r,s));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`)}}deleteIn(e){let[s,...i]=e;if(i.length===0)return this.delete(s);let r=this.get(s,!0);if(ee.isCollection(r))return r.deleteIn(i);throw new Error(`Expected YAML collection at ${s}. Remaining path: ${i}`)}getIn(e,s){let[i,...r]=e,n=this.get(i,!0);return r.length===0?!s&&ee.isScalar(n)?n.value:n:ee.isCollection(n)?n.getIn(r,s):void 0}hasAllNullValues(e){return this.items.every(s=>{if(!ee.isPair(s))return !1;let i=s.value;return i==null||e&&ee.isScalar(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(e){let[s,...i]=e;if(i.length===0)return this.has(s);let r=this.get(s,!0);return ee.isCollection(r)?r.hasIn(i):!1}setIn(e,s){let[i,...r]=e;if(r.length===0)this.set(i,s);else {let n=this.get(i,!0);if(ee.isCollection(n))n.setIn(r,s);else if(n===void 0&&this.schema)this.set(i,Ws(this.schema,r,s));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`)}}};Ut.maxFlowStringSingleLineLength=60;Gt.Collection=Ut;Gt.collectionFromPath=Ws;Gt.isEmptyPath=An;});var st=b(Yt=>{d();var ou=t=>t.replace(/^(?!$)(?: $)?/gm,"#");function Ks(t,e){return /^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}var au=(t,e,s)=>t.endsWith(`
|
|
12
|
-
`)?Ks(s,e):s.includes(`
|
|
13
|
-
`)?`
|
|
14
|
-
`+Ks(s,e):(t.endsWith(" ")?"":" ")+s;Yt.indentComment=Ks;Yt.lineComment=au;Yt.stringifyComment=ou;});var Cn=b(it=>{d();var lu="flow",Js="block",Wt="quoted";function cu(t,e,s="flow",{indentAtStart:i,lineWidth:r=80,minContentWidth:n=20,onFold:o,onOverflow:a}={}){if(!r||r<0)return t;let l=Math.max(1+n,1+r-e.length);if(t.length<=l)return t;let c=[],d={},u=r-e.length;typeof i=="number"&&(i>r-Math.max(2,n)?c.push(0):u=r-i);let p,g,y=!1,h=-1,m=-1,v=-1;s===Js&&(h=Nn(t,h,e.length),h!==-1&&(u=h+l));for(let O;O=t[h+=1];){if(s===Wt&&O==="\\"){switch(m=h,t[h+1]){case"x":h+=3;break;case"u":h+=5;break;case"U":h+=9;break;default:h+=1;}v=h;}if(O===`
|
|
15
|
-
`)s===Js&&(h=Nn(t,h,e.length)),u=h+e.length+l,p=void 0;else {if(O===" "&&g&&g!==" "&&g!==`
|
|
16
|
-
`&&g!==" "){let C=t[h+1];C&&C!==" "&&C!==`
|
|
17
|
-
`&&C!==" "&&(p=h);}if(h>=u)if(p)c.push(p),u=p+l,p=void 0;else if(s===Wt){for(;g===" "||g===" ";)g=O,O=t[h+=1],y=!0;let C=h>v+1?h-2:m-1;if(d[C])return t;c.push(C),d[C]=!0,u=C+l,p=void 0;}else y=!0;}g=O;}if(y&&a&&a(),c.length===0)return t;o&&o();let E=t.slice(0,c[0]);for(let O=0;O<c.length;++O){let C=c[O],P=c[O+1]||t.length;C===0?E=`
|
|
18
|
-
${e}${t.slice(0,P)}`:(s===Wt&&d[C]&&(E+=`${t[C]}\\`),E+=`
|
|
19
|
-
${e}${t.slice(C+1,P)}`);}return E}function Nn(t,e,s){let i=e,r=e+1,n=t[r];for(;n===" "||n===" ";)if(e<r+s)n=t[++e];else {do n=t[++e];while(n&&n!==`
|
|
20
|
-
`);i=e,r=e+1,n=t[r];}return i}it.FOLD_BLOCK=Js;it.FOLD_FLOW=lu;it.FOLD_QUOTED=Wt;it.foldFlowLines=cu;});var nt=b(On=>{d();var te=M(),ce=Cn(),Jt=(t,e)=>({indentAtStart:e?t.indent.length:t.indentAtStart,lineWidth:t.options.lineWidth,minContentWidth:t.options.minContentWidth}),zt=t=>/^(%|---|\.\.\.)/m.test(t);function fu(t,e,s){if(!e||e<0)return !1;let i=e-s,r=t.length;if(r<=i)return !1;for(let n=0,o=0;n<r;++n)if(t[n]===`
|
|
21
|
-
`){if(n-o>i)return !0;if(o=n+1,r-o<=i)return !1}return !0}function rt(t,e){let s=JSON.stringify(t);if(e.options.doubleQuotedAsJSON)return s;let{implicitKey:i}=e,r=e.options.doubleQuotedMinMultiLineLength,n=e.indent||(zt(t)?" ":""),o="",a=0;for(let l=0,c=s[l];c;c=s[++l])if(c===" "&&s[l+1]==="\\"&&s[l+2]==="n"&&(o+=s.slice(a,l)+"\\ ",l+=1,a=l,c="\\"),c==="\\")switch(s[l+1]){case"u":{o+=s.slice(a,l);let d=s.substr(l+2,4);switch(d){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:d.substr(0,2)==="00"?o+="\\x"+d.substr(2):o+=s.substr(l,6);}l+=5,a=l+1;}break;case"n":if(i||s[l+2]==='"'||s.length<r)l+=1;else {for(o+=s.slice(a,l)+`
|
|
22
|
-
|
|
23
|
-
`;s[l+2]==="\\"&&s[l+3]==="n"&&s[l+4]!=='"';)o+=`
|
|
24
|
-
`,l+=2;o+=n,s[l+2]===" "&&(o+="\\"),l+=1,a=l+1;}break;default:l+=1;}return o=a?o+s.slice(a):s,i?o:ce.foldFlowLines(o,n,ce.FOLD_QUOTED,Jt(e,!1))}function zs(t,e){if(e.options.singleQuote===!1||e.implicitKey&&t.includes(`
|
|
25
|
-
`)||/[ \t]\n|\n[ \t]/.test(t))return rt(t,e);let s=e.indent||(zt(t)?" ":""),i="'"+t.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
26
|
-
${s}`)+"'";return e.implicitKey?i:ce.foldFlowLines(i,s,ce.FOLD_FLOW,Jt(e,!1))}function Re(t,e){let{singleQuote:s}=e.options,i;if(s===!1)i=rt;else {let r=t.includes('"'),n=t.includes("'");r&&!n?i=zs:n&&!r?i=rt:i=s?zs:rt;}return i(t,e)}var Hs;try{Hs=new RegExp(`(^|(?<!
|
|
27
|
-
))
|
|
28
|
-
+(?!
|
|
29
|
-
|$)`,"g");}catch{Hs=/\n+(?!\n|$)/g;}function Kt({comment:t,type:e,value:s},i,r,n){let{blockQuote:o,commentString:a,lineWidth:l}=i.options;if(!o||/\n[\t ]+$/.test(s)||/^\s*$/.test(s))return Re(s,i);let c=i.indent||(i.forceBlockIndent||zt(s)?" ":""),d=o==="literal"?!0:o==="folded"||e===te.Scalar.BLOCK_FOLDED?!1:e===te.Scalar.BLOCK_LITERAL?!0:!fu(s,l,c.length);if(!s)return d?`|
|
|
30
|
-
`:`>
|
|
31
|
-
`;let u,p;for(p=s.length;p>0;--p){let L=s[p-1];if(L!==`
|
|
32
|
-
`&&L!==" "&&L!==" ")break}let g=s.substring(p),y=g.indexOf(`
|
|
33
|
-
`);y===-1?u="-":s===g||y!==g.length-1?(u="+",n&&n()):u="",g&&(s=s.slice(0,-g.length),g[g.length-1]===`
|
|
34
|
-
`&&(g=g.slice(0,-1)),g=g.replace(Hs,`$&${c}`));let h=!1,m,v=-1;for(m=0;m<s.length;++m){let L=s[m];if(L===" ")h=!0;else if(L===`
|
|
35
|
-
`)v=m;else break}let E=s.substring(0,v<m?v+1:m);E&&(s=s.substring(E.length),E=E.replace(/\n+/g,`$&${c}`));let C=(d?"|":">")+(h?c?"2":"1":"")+u;if(t&&(C+=" "+a(t.replace(/ ?[\r\n]+/g," ")),r&&r()),d)return s=s.replace(/\n+/g,`$&${c}`),`${C}
|
|
36
|
-
${c}${E}${s}${g}`;s=s.replace(/\n+/g,`
|
|
37
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let P=ce.foldFlowLines(`${E}${s}${g}`,c,ce.FOLD_BLOCK,Jt(i,!0));return `${C}
|
|
38
|
-
${c}${P}`}function uu(t,e,s,i){let{type:r,value:n}=t,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:d}=e;if(a&&n.includes(`
|
|
39
|
-
`)||d&&/[[\]{},]/.test(n))return Re(n,e);if(!n||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(n))return a||d||!n.includes(`
|
|
40
|
-
`)?Re(n,e):Kt(t,e,s,i);if(!a&&!d&&r!==te.Scalar.PLAIN&&n.includes(`
|
|
41
|
-
`))return Kt(t,e,s,i);if(zt(n)){if(l==="")return e.forceBlockIndent=!0,Kt(t,e,s,i);if(a&&l===c)return Re(n,e)}let u=n.replace(/\n+/g,`$&
|
|
42
|
-
${l}`);if(o){let p=h=>h.default&&h.tag!=="tag:yaml.org,2002:str"&&h.test?.test(u),{compat:g,tags:y}=e.doc.schema;if(y.some(p)||g?.some(p))return Re(n,e)}return a?u:ce.foldFlowLines(u,l,ce.FOLD_FLOW,Jt(e,!1))}function hu(t,e,s,i){let{implicitKey:r,inFlow:n}=e,o=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)}),{type:a}=t;a!==te.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=te.Scalar.QUOTE_DOUBLE);let l=d=>{switch(d){case te.Scalar.BLOCK_FOLDED:case te.Scalar.BLOCK_LITERAL:return r||n?Re(o.value,e):Kt(o,e,s,i);case te.Scalar.QUOTE_DOUBLE:return rt(o.value,e);case te.Scalar.QUOTE_SINGLE:return zs(o.value,e);case te.Scalar.PLAIN:return uu(o,e,s,i);default:return null}},c=l(a);if(c===null){let{defaultKeyType:d,defaultStringType:u}=e.options,p=r&&d||u;if(c=l(p),c===null)throw new Error(`Unsupported default string type ${p}`)}return c}On.stringifyString=hu;});var ot=b(Vs=>{d();var pu=Mt(),fe=D(),du=st(),mu=nt();function gu(t,e){let s=Object.assign({blockQuote:!0,commentString:du.stringifyComment,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,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e),i;switch(s.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null;}return {anchors:new Set,doc:t,flowCollectionPadding:s.flowCollectionPadding?" ":"",indent:"",indentStep:typeof s.indent=="number"?" ".repeat(s.indent):" ",inFlow:i,options:s}}function yu(t,e){if(e.tag){let r=t.filter(n=>n.tag===e.tag);if(r.length>0)return r.find(n=>n.format===e.format)??r[0]}let s,i;if(fe.isScalar(e)){i=e.value;let r=t.filter(n=>n.identify?.(i));s=r.find(n=>n.format===e.format)??r.find(n=>!n.format);}else i=e,s=t.find(r=>r.nodeClass&&i instanceof r.nodeClass);if(!s){let r=i?.constructor?.name??typeof i;throw new Error(`Tag not resolved for ${r} value`)}return s}function bu(t,e,{anchors:s,doc:i}){if(!i.directives)return "";let r=[],n=(fe.isScalar(t)||fe.isCollection(t))&&t.anchor;n&&pu.anchorIsValid(n)&&(s.add(n),r.push(`&${n}`));let o=t.tag?t.tag:e.default?null:e.tag;return o&&r.push(i.directives.tagString(o)),r.join(" ")}function wu(t,e,s,i){if(fe.isPair(t))return t.toString(e,s,i);if(fe.isAlias(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 r,n=fe.isNode(t)?t:e.doc.createNode(t,{onTagObj:l=>r=l});r||(r=yu(e.doc.schema.tags,n));let o=bu(n,r,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);let a=typeof r.stringify=="function"?r.stringify(n,e,s,i):fe.isScalar(n)?mu.stringifyString(n,e,s,i):n.toString(e,s,i);return o?fe.isScalar(n)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o}
|
|
43
|
-
${e.indent}${a}`:a}Vs.createStringifyContext=gu;Vs.stringify=wu;});var Tn=b(In=>{d();var ue=D(),Pn=M(),kn=ot(),at=st();function Su({key:t,value:e},s,i,r){let{allNullValues:n,doc:o,indent:a,indentStep:l,options:{commentString:c,indentSeq:d,simpleKeys:u}}=s,p=ue.isNode(t)&&t.comment||null;if(u){if(p)throw new Error("With simple keys, key nodes cannot have comments");if(ue.isCollection(t)){let I="With simple keys, collection cannot be used as a key value";throw new Error(I)}}let g=!u&&(!t||p&&e==null&&!s.inFlow||ue.isCollection(t)||(ue.isScalar(t)?t.type===Pn.Scalar.BLOCK_FOLDED||t.type===Pn.Scalar.BLOCK_LITERAL:typeof t=="object"));s=Object.assign({},s,{allNullValues:!1,implicitKey:!g&&(u||!n),indent:a+l});let y=!1,h=!1,m=kn.stringify(t,s,()=>y=!0,()=>h=!0);if(!g&&!s.inFlow&&m.length>1024){if(u)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0;}if(s.inFlow){if(n||e==null)return y&&i&&i(),m===""?"?":g?`? ${m}`:m}else if(n&&!u||e==null&&g)return m=`? ${m}`,p&&!y?m+=at.lineComment(m,s.indent,c(p)):h&&r&&r(),m;y&&(p=null),g?(p&&(m+=at.lineComment(m,s.indent,c(p))),m=`? ${m}
|
|
44
|
-
${a}:`):(m=`${m}:`,p&&(m+=at.lineComment(m,s.indent,c(p))));let v,E,O;ue.isNode(e)?(v=!!e.spaceBefore,E=e.commentBefore,O=e.comment):(v=!1,E=null,O=null,e&&typeof e=="object"&&(e=o.createNode(e))),s.implicitKey=!1,!g&&!p&&ue.isScalar(e)&&(s.indentAtStart=m.length+1),h=!1,!d&&l.length>=2&&!s.inFlow&&!g&&ue.isSeq(e)&&!e.flow&&!e.tag&&!e.anchor&&(s.indent=s.indent.substring(2));let C=!1,P=kn.stringify(e,s,()=>C=!0,()=>h=!0),L=" ";if(p||v||E){if(L=v?`
|
|
45
|
-
`:"",E){let I=c(E);L+=`
|
|
46
|
-
${at.indentComment(I,s.indent)}`;}P===""&&!s.inFlow?L===`
|
|
47
|
-
`&&(L=`
|
|
48
|
-
|
|
49
|
-
`):L+=`
|
|
50
|
-
${s.indent}`;}else if(!g&&ue.isCollection(e)){let I=P[0],_=P.indexOf(`
|
|
51
|
-
`),x=_!==-1,V=s.inFlow??e.flow??e.items.length===0;if(x||!V){let Ie=!1;if(x&&(I==="&"||I==="!")){let U=P.indexOf(" ");I==="&"&&U!==-1&&U<_&&P[U+1]==="!"&&(U=P.indexOf(" ",U+1)),(U===-1||_<U)&&(Ie=!0);}Ie||(L=`
|
|
52
|
-
${s.indent}`);}}else (P===""||P[0]===`
|
|
53
|
-
`)&&(L="");return m+=L+P,s.inFlow?C&&i&&i():O&&!C?m+=at.lineComment(m,s.indent,c(O)):h&&r&&r(),m}In.stringifyPair=Su;});var Qs=b(Xs=>{d();function vu(t,...e){t==="debug"&&console.log(...e);}function Lu(t,e){(t==="debug"||t==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(e):console.warn(e));}Xs.debug=vu;Xs.warn=Lu;});var ti=b($n=>{d();var Eu=Qs(),Au=ot(),Fe=D(),Nu=M(),Zs=ae(),Dn="<<";function Cu(t,e,{key:s,value:i}){if(t?.doc.schema.merge&&Ou(s))if(i=Fe.isAlias(i)?i.resolve(t.doc):i,Fe.isSeq(i))for(let r of i.items)ei(t,e,r);else if(Array.isArray(i))for(let r of i)ei(t,e,r);else ei(t,e,i);else {let r=Zs.toJS(s,"",t);if(e instanceof Map)e.set(r,Zs.toJS(i,r,t));else if(e instanceof Set)e.add(r);else {let n=Pu(s,r,t),o=Zs.toJS(i,n,t);n in e?Object.defineProperty(e,n,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[n]=o;}}return e}var Ou=t=>t===Dn||Fe.isScalar(t)&&t.value===Dn&&(!t.type||t.type===Nu.Scalar.PLAIN);function ei(t,e,s){let i=t&&Fe.isAlias(s)?s.resolve(t.doc):s;if(!Fe.isMap(i))throw new Error("Merge sources must be maps or map aliases");let r=i.toJSON(null,t,Map);for(let[n,o]of r)e instanceof Map?e.has(n)||e.set(n,o):e instanceof Set?e.add(n):Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}function Pu(t,e,s){if(e===null)return "";if(typeof e!="object")return String(e);if(Fe.isNode(t)&&s?.doc){let i=Au.createStringifyContext(s.doc,{});i.anchors=new Set;for(let n of s.anchors.keys())i.anchors.add(n.anchor);i.inFlow=!0,i.inStringifyKey=!0;let r=t.toString(i);if(!s.mapKeyWarned){let n=JSON.stringify(r);n.length>40&&(n=n.substring(0,36)+'..."'),Eu.warn(s.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${n}. Set mapAsMap: true to use object keys.`),s.mapKeyWarned=!0;}return r}return JSON.stringify(e)}$n.addPairToJSMap=Cu;});var he=b(si=>{d();var Rn=tt(),ku=Tn(),Iu=ti(),Ht=D();function Tu(t,e,s){let i=Rn.createNode(t,void 0,s),r=Rn.createNode(e,void 0,s);return new Vt(i,r)}var Vt=class t{constructor(e,s=null){Object.defineProperty(this,Ht.NODE_TYPE,{value:Ht.PAIR}),this.key=e,this.value=s;}clone(e){let{key:s,value:i}=this;return Ht.isNode(s)&&(s=s.clone(e)),Ht.isNode(i)&&(i=i.clone(e)),new t(s,i)}toJSON(e,s){let i=s?.mapAsMap?new Map:{};return Iu.addPairToJSMap(s,i,this)}toString(e,s,i){return e?.doc?ku.stringifyPair(this,e,s,i):JSON.stringify(this)}};si.Pair=Vt;si.createPair=Tu;});var ii=b(_n=>{d();var Ne=D(),Fn=ot(),Xt=st();function Du(t,e,s){return (e.inFlow??t.flow?Ru:$u)(t,e,s)}function $u({comment:t,items:e},s,{blockItemPrefix:i,flowChars:r,itemIndent:n,onChompKeep:o,onComment:a}){let{indent:l,options:{commentString:c}}=s,d=Object.assign({},s,{indent:n,type:null}),u=!1,p=[];for(let y=0;y<e.length;++y){let h=e[y],m=null;if(Ne.isNode(h))!u&&h.spaceBefore&&p.push(""),Qt(s,p,h.commentBefore,u),h.comment&&(m=h.comment);else if(Ne.isPair(h)){let E=Ne.isNode(h.key)?h.key:null;E&&(!u&&E.spaceBefore&&p.push(""),Qt(s,p,E.commentBefore,u));}u=!1;let v=Fn.stringify(h,d,()=>m=null,()=>u=!0);m&&(v+=Xt.lineComment(v,n,c(m))),u&&m&&(u=!1),p.push(i+v);}let g;if(p.length===0)g=r.start+r.end;else {g=p[0];for(let y=1;y<p.length;++y){let h=p[y];g+=h?`
|
|
54
|
-
${l}${h}`:`
|
|
55
|
-
`;}}return t?(g+=`
|
|
56
|
-
`+Xt.indentComment(c(t),l),a&&a()):u&&o&&o(),g}function Ru({items:t},e,{flowChars:s,itemIndent:i}){let{indent:r,indentStep:n,flowCollectionPadding:o,options:{commentString:a}}=e;i+=n;let l=Object.assign({},e,{indent:i,inFlow:!0,type:null}),c=!1,d=0,u=[];for(let y=0;y<t.length;++y){let h=t[y],m=null;if(Ne.isNode(h))h.spaceBefore&&u.push(""),Qt(e,u,h.commentBefore,!1),h.comment&&(m=h.comment);else if(Ne.isPair(h)){let E=Ne.isNode(h.key)?h.key:null;E&&(E.spaceBefore&&u.push(""),Qt(e,u,E.commentBefore,!1),E.comment&&(c=!0));let O=Ne.isNode(h.value)?h.value:null;O?(O.comment&&(m=O.comment),O.commentBefore&&(c=!0)):h.value==null&&E?.comment&&(m=E.comment);}m&&(c=!0);let v=Fn.stringify(h,l,()=>m=null);y<t.length-1&&(v+=","),m&&(v+=Xt.lineComment(v,i,a(m))),!c&&(u.length>d||v.includes(`
|
|
57
|
-
`))&&(c=!0),u.push(v),d=u.length;}let{start:p,end:g}=s;if(u.length===0)return p+g;if(!c){let y=u.reduce((h,m)=>h+m.length+2,2);c=e.options.lineWidth>0&&y>e.options.lineWidth;}if(c){let y=p;for(let h of u)y+=h?`
|
|
58
|
-
${n}${r}${h}`:`
|
|
59
|
-
`;return `${y}
|
|
60
|
-
${r}${g}`}else return `${p}${o}${u.join(" ")}${o}${g}`}function Qt({indent:t,options:{commentString:e}},s,i,r){if(i&&r&&(i=i.replace(/^\n+/,"")),i){let n=Xt.indentComment(e(i),t);s.push(n.trimStart());}}_n.stringifyCollection=Du;});var de=b(ni=>{d();var Fu=ii(),_u=ti(),Mu=jt(),pe=D(),Zt=he(),qu=M();function lt(t,e){let s=pe.isScalar(e)?e.value:e;for(let i of t)if(pe.isPair(i)&&(i.key===e||i.key===s||pe.isScalar(i.key)&&i.key.value===s))return i}var ri=class extends Mu.Collection{static get tagName(){return "tag:yaml.org,2002:map"}constructor(e){super(pe.MAP,e),this.items=[];}static from(e,s,i){let{keepUndefined:r,replacer:n}=i,o=new this(e),a=(l,c)=>{if(typeof n=="function")c=n.call(s,l,c);else if(Array.isArray(n)&&!n.includes(l))return;(c!==void 0||r)&&o.items.push(Zt.createPair(l,c,i));};if(s instanceof Map)for(let[l,c]of s)a(l,c);else if(s&&typeof s=="object")for(let l of Object.keys(s))a(l,s[l]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,s){let i;pe.isPair(e)?i=e:!e||typeof e!="object"||!("key"in e)?i=new Zt.Pair(e,e?.value):i=new Zt.Pair(e.key,e.value);let r=lt(this.items,i.key),n=this.schema?.sortMapEntries;if(r){if(!s)throw new Error(`Key ${i.key} already set`);pe.isScalar(r.value)&&qu.isScalarValue(i.value)?r.value.value=i.value:r.value=i.value;}else if(n){let o=this.items.findIndex(a=>n(i,a)<0);o===-1?this.items.push(i):this.items.splice(o,0,i);}else this.items.push(i);}delete(e){let s=lt(this.items,e);return s?this.items.splice(this.items.indexOf(s),1).length>0:!1}get(e,s){let r=lt(this.items,e)?.value;return (!s&&pe.isScalar(r)?r.value:r)??void 0}has(e){return !!lt(this.items,e)}set(e,s){this.add(new Zt.Pair(e,s),!0);}toJSON(e,s,i){let r=i?new i:s?.mapAsMap?new Map:{};s?.onCreate&&s.onCreate(r);for(let n of this.items)_u.addPairToJSMap(s,r,n);return r}toString(e,s,i){if(!e)return JSON.stringify(this);for(let r of this.items)if(!pe.isPair(r))throw new Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`);return !e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Fu.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:i,onComment:s})}};ni.YAMLMap=ri;ni.findPair=lt;});var _e=b(qn=>{d();var xu=D(),Mn=de(),Bu={collection:"map",default:!0,nodeClass:Mn.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(t,e){return xu.isMap(t)||e("Expected a mapping for this tag"),t},createNode:(t,e,s)=>Mn.YAMLMap.from(t,e,s)};qn.map=Bu;});var me=b(xn=>{d();var Uu=tt(),Gu=ii(),ju=jt(),ts=D(),Yu=M(),Wu=ae(),oi=class extends ju.Collection{static get tagName(){return "tag:yaml.org,2002:seq"}constructor(e){super(ts.SEQ,e),this.items=[];}add(e){this.items.push(e);}delete(e){let s=es(e);return typeof s!="number"?!1:this.items.splice(s,1).length>0}get(e,s){let i=es(e);if(typeof i!="number")return;let r=this.items[i];return !s&&ts.isScalar(r)?r.value:r}has(e){let s=es(e);return typeof s=="number"&&s<this.items.length}set(e,s){let i=es(e);if(typeof i!="number")throw new Error(`Expected a valid index, not ${e}.`);let r=this.items[i];ts.isScalar(r)&&Yu.isScalarValue(s)?r.value=s:this.items[i]=s;}toJSON(e,s){let i=[];s?.onCreate&&s.onCreate(i);let r=0;for(let n of this.items)i.push(Wu.toJS(n,String(r++),s));return i}toString(e,s,i){return e?Gu.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:i,onComment:s}):JSON.stringify(this)}static from(e,s,i){let{replacer:r}=i,n=new this(e);if(s&&Symbol.iterator in Object(s)){let o=0;for(let a of s){if(typeof r=="function"){let l=s instanceof Set?a:String(o++);a=r.call(s,l,a);}n.items.push(Uu.createNode(a,void 0,i));}}return n}};function es(t){let e=ts.isScalar(t)?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}xn.YAMLSeq=oi;});var Me=b(Un=>{d();var Ku=D(),Bn=me(),Ju={collection:"seq",default:!0,nodeClass:Bn.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(t,e){return Ku.isSeq(t)||e("Expected a sequence for this tag"),t},createNode:(t,e,s)=>Bn.YAMLSeq.from(t,e,s)};Un.seq=Ju;});var ct=b(Gn=>{d();var zu=nt(),Hu={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify(t,e,s,i){return e=Object.assign({actualString:!0},e),zu.stringifyString(t,e,s,i)}};Gn.string=Hu;});var ss=b(Wn=>{d();var jn=M(),Yn={identify:t=>t==null,createNode:()=>new jn.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new jn.Scalar(null),stringify:({source:t},e)=>typeof t=="string"&&Yn.test.test(t)?t:e.options.nullStr};Wn.nullTag=Yn;});var ai=b(Jn=>{d();var Vu=M(),Kn={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>new Vu.Scalar(t[0]==="t"||t[0]==="T"),stringify({source:t,value:e},s){if(t&&Kn.test.test(t)){let i=t[0]==="t"||t[0]==="T";if(e===i)return t}return e?s.options.trueStr:s.options.falseStr}};Jn.boolTag=Kn;});var qe=b(zn=>{d();function Xu({format:t,minFractionDigits:e,tag:s,value:i}){if(typeof i=="bigint")return String(i);let r=typeof i=="number"?i:Number(i);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let n=JSON.stringify(i);if(!t&&e&&(!s||s==="tag:yaml.org,2002:float")&&/^\d/.test(n)){let o=n.indexOf(".");o<0&&(o=n.length,n+=".");let a=e-(n.length-o-1);for(;a-- >0;)n+="0";}return n}zn.stringifyNumber=Xu;});var ci=b(is=>{d();var Qu=M(),li=qe(),Zu={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:li.stringifyNumber},eh={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify(t){let e=Number(t.value);return isFinite(e)?e.toExponential():li.stringifyNumber(t)}},th={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){let e=new Qu.Scalar(parseFloat(t)),s=t.indexOf(".");return s!==-1&&t[t.length-1]==="0"&&(e.minFractionDigits=t.length-s-1),e},stringify:li.stringifyNumber};is.float=th;is.floatExp=eh;is.floatNaN=Zu;});var ui=b(ns=>{d();var Hn=qe(),rs=t=>typeof t=="bigint"||Number.isInteger(t),fi=(t,e,s,{intAsBigInt:i})=>i?BigInt(t):parseInt(t.substring(e),s);function Vn(t,e,s){let{value:i}=t;return rs(i)&&i>=0?s+i.toString(e):Hn.stringifyNumber(t)}var sh={identify:t=>rs(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(t,e,s)=>fi(t,2,8,s),stringify:t=>Vn(t,8,"0o")},ih={identify:rs,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(t,e,s)=>fi(t,0,10,s),stringify:Hn.stringifyNumber},rh={identify:t=>rs(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(t,e,s)=>fi(t,2,16,s),stringify:t=>Vn(t,16,"0x")};ns.int=ih;ns.intHex=rh;ns.intOct=sh;});var Qn=b(Xn=>{d();var nh=_e(),oh=ss(),ah=Me(),lh=ct(),ch=ai(),hi=ci(),pi=ui(),fh=[nh.map,ah.seq,lh.string,oh.nullTag,ch.boolTag,pi.intOct,pi.int,pi.intHex,hi.floatNaN,hi.floatExp,hi.float];Xn.schema=fh;});var to=b(eo=>{d();var uh=M(),hh=_e(),ph=Me();function Zn(t){return typeof t=="bigint"||Number.isInteger(t)}var os=({value:t})=>JSON.stringify(t),dh=[{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:os},{identify:t=>t==null,createNode:()=>new uh.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:os},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:os},{identify:Zn,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(t,e,{intAsBigInt:s})=>s?BigInt(t):parseInt(t,10),stringify:({value:t})=>Zn(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:os}],mh={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},gh=[hh.map,ph.seq].concat(dh,mh);eo.schema=gh;});var mi=b(so=>{d();var di=M(),yh=nt(),bh={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if(typeof Buffer=="function")return Buffer.from(t,"base64");if(typeof atob=="function"){let s=atob(t.replace(/[\n\r]/g,"")),i=new Uint8Array(s.length);for(let r=0;r<s.length;++r)i[r]=s.charCodeAt(r);return i}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),t},stringify({comment:t,type:e,value:s},i,r,n){let o=s,a;if(typeof Buffer=="function")a=o instanceof Buffer?o.toString("base64"):Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let l="";for(let c=0;c<o.length;++c)l+=String.fromCharCode(o[c]);a=btoa(l);}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=di.Scalar.BLOCK_LITERAL),e!==di.Scalar.QUOTE_DOUBLE){let l=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),c=Math.ceil(a.length/l),d=new Array(c);for(let u=0,p=0;u<c;++u,p+=l)d[u]=a.substr(p,l);a=d.join(e===di.Scalar.BLOCK_LITERAL?`
|
|
61
|
-
`:" ");}return yh.stringifyString({comment:t,type:e,value:a},i,r,n)}};so.binary=bh;});var cs=b(ls=>{d();var as=D(),gi=he(),wh=M(),Sh=me();function io(t,e){if(as.isSeq(t))for(let s=0;s<t.items.length;++s){let i=t.items[s];if(!as.isPair(i)){if(as.isMap(i)){i.items.length>1&&e("Each pair must have its own sequence indicator");let r=i.items[0]||new gi.Pair(new wh.Scalar(null));if(i.commentBefore&&(r.key.commentBefore=r.key.commentBefore?`${i.commentBefore}
|
|
62
|
-
${r.key.commentBefore}`:i.commentBefore),i.comment){let n=r.value??r.key;n.comment=n.comment?`${i.comment}
|
|
63
|
-
${n.comment}`:i.comment;}i=r;}t.items[s]=as.isPair(i)?i:new gi.Pair(i);}}else e("Expected a sequence for this tag");return t}function ro(t,e,s){let{replacer:i}=s,r=new Sh.YAMLSeq(t);r.tag="tag:yaml.org,2002:pairs";let n=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof i=="function"&&(o=i.call(e,String(n++),o));let a,l;if(Array.isArray(o))if(o.length===2)a=o[0],l=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){let c=Object.keys(o);if(c.length===1)a=c[0],l=o[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=o;r.items.push(gi.createPair(a,l,s));}return r}var vh={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:io,createNode:ro};ls.createPairs=ro;ls.pairs=vh;ls.resolvePairs=io;});var wi=b(bi=>{d();var no=D(),yi=ae(),ft=de(),Lh=me(),oo=cs(),Ce=class t extends Lh.YAMLSeq{constructor(){super(),this.add=ft.YAMLMap.prototype.add.bind(this),this.delete=ft.YAMLMap.prototype.delete.bind(this),this.get=ft.YAMLMap.prototype.get.bind(this),this.has=ft.YAMLMap.prototype.has.bind(this),this.set=ft.YAMLMap.prototype.set.bind(this),this.tag=t.tag;}toJSON(e,s){if(!s)return super.toJSON(e);let i=new Map;s?.onCreate&&s.onCreate(i);for(let r of this.items){let n,o;if(no.isPair(r)?(n=yi.toJS(r.key,"",s),o=yi.toJS(r.value,n,s)):n=yi.toJS(r,"",s),i.has(n))throw new Error("Ordered maps must not include duplicate keys");i.set(n,o);}return i}static from(e,s,i){let r=oo.createPairs(e,s,i),n=new this;return n.items=r.items,n}};Ce.tag="tag:yaml.org,2002:omap";var Eh={collection:"seq",identify:t=>t instanceof Map,nodeClass:Ce,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){let s=oo.resolvePairs(t,e),i=[];for(let{key:r}of s.items)no.isScalar(r)&&(i.includes(r.value)?e(`Ordered maps must not include duplicate keys: ${r.value}`):i.push(r.value));return Object.assign(new Ce,s)},createNode:(t,e,s)=>Ce.from(t,e,s)};bi.YAMLOMap=Ce;bi.omap=Eh;});var uo=b(Si=>{d();var ao=M();function lo({value:t,source:e},s){return e&&(t?co:fo).test.test(e)?e:t?s.options.trueStr:s.options.falseStr}var co={identify:t=>t===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new ao.Scalar(!0),stringify:lo},fo={identify:t=>t===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new ao.Scalar(!1),stringify:lo};Si.falseTag=fo;Si.trueTag=co;});var ho=b(fs=>{d();var Ah=M(),vi=qe(),Nh={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:vi.stringifyNumber},Ch={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify(t){let e=Number(t.value);return isFinite(e)?e.toExponential():vi.stringifyNumber(t)}},Oh={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){let e=new Ah.Scalar(parseFloat(t.replace(/_/g,""))),s=t.indexOf(".");if(s!==-1){let i=t.substring(s+1).replace(/_/g,"");i[i.length-1]==="0"&&(e.minFractionDigits=i.length);}return e},stringify:vi.stringifyNumber};fs.float=Oh;fs.floatExp=Ch;fs.floatNaN=Nh;});var mo=b(ht=>{d();var po=qe(),ut=t=>typeof t=="bigint"||Number.isInteger(t);function us(t,e,s,{intAsBigInt:i}){let r=t[0];if((r==="-"||r==="+")&&(e+=1),t=t.substring(e).replace(/_/g,""),i){switch(s){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`;break}let o=BigInt(t);return r==="-"?BigInt(-1)*o:o}let n=parseInt(t,s);return r==="-"?-1*n:n}function Li(t,e,s){let{value:i}=t;if(ut(i)){let r=i.toString(e);return i<0?"-"+s+r.substr(1):s+r}return po.stringifyNumber(t)}var Ph={identify:ut,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,s)=>us(t,2,2,s),stringify:t=>Li(t,2,"0b")},kh={identify:ut,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,s)=>us(t,1,8,s),stringify:t=>Li(t,8,"0")},Ih={identify:ut,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(t,e,s)=>us(t,0,10,s),stringify:po.stringifyNumber},Th={identify:ut,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(t,e,s)=>us(t,2,16,s),stringify:t=>Li(t,16,"0x")};ht.int=Ih;ht.intBin=Ph;ht.intHex=Th;ht.intOct=kh;});var Ai=b(Ei=>{d();var ds=D(),hs=he(),ps=de(),Oe=class t extends ps.YAMLMap{constructor(e){super(e),this.tag=t.tag;}add(e){let s;ds.isPair(e)?s=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?s=new hs.Pair(e.key,null):s=new hs.Pair(e,null),ps.findPair(this.items,s.key)||this.items.push(s);}get(e,s){let i=ps.findPair(this.items,e);return !s&&ds.isPair(i)?ds.isScalar(i.key)?i.key.value:i.key:i}set(e,s){if(typeof s!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof s}`);let i=ps.findPair(this.items,e);i&&!s?this.items.splice(this.items.indexOf(i),1):!i&&s&&this.items.push(new hs.Pair(e));}toJSON(e,s){return super.toJSON(e,s,Set)}toString(e,s,i){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),s,i);throw new Error("Set items must all have null values")}static from(e,s,i){let{replacer:r}=i,n=new this(e);if(s&&Symbol.iterator in Object(s))for(let o of s)typeof r=="function"&&(o=r.call(s,o,o)),n.items.push(hs.createPair(o,null,i));return n}};Oe.tag="tag:yaml.org,2002:set";var Dh={collection:"map",identify:t=>t instanceof Set,nodeClass:Oe,default:!1,tag:"tag:yaml.org,2002:set",createNode:(t,e,s)=>Oe.from(t,e,s),resolve(t,e){if(ds.isMap(t)){if(t.hasAllNullValues(!0))return Object.assign(new Oe,t);e("Set items must all have null values");}else e("Expected a mapping for this tag");return t}};Ei.YAMLSet=Oe;Ei.set=Dh;});var Ci=b(ms=>{d();var $h=qe();function Ni(t,e){let s=t[0],i=s==="-"||s==="+"?t.substring(1):t,r=o=>e?BigInt(o):Number(o),n=i.replace(/_/g,"").split(":").reduce((o,a)=>o*r(60)+r(a),r(0));return s==="-"?r(-1)*n:n}function go(t){let{value:e}=t,s=o=>o;if(typeof e=="bigint")s=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return $h.stringifyNumber(t);let i="";e<0&&(i="-",e*=s(-1));let r=s(60),n=[e%r];return e<60?n.unshift(0):(e=(e-n[0])/r,n.unshift(e%r),e>=60&&(e=(e-n[0])/r,n.unshift(e))),i+n.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var Rh={identify:t=>typeof t=="bigint"||Number.isInteger(t),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(t,e,{intAsBigInt:s})=>Ni(t,s),stringify:go},Fh={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:t=>Ni(t,!1),stringify:go},yo={identify:t=>t instanceof Date,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){let e=t.match(yo.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,s,i,r,n,o,a]=e.map(Number),l=e[7]?Number((e[7]+"00").substr(1,3)):0,c=Date.UTC(s,i-1,r,n||0,o||0,a||0,l),d=e[8];if(d&&d!=="Z"){let u=Ni(d,!1);Math.abs(u)<30&&(u*=60),c-=6e4*u;}return new Date(c)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};ms.floatTime=Fh;ms.intTime=Rh;ms.timestamp=yo;});var So=b(wo=>{d();var _h=_e(),Mh=ss(),qh=Me(),xh=ct(),Bh=mi(),bo=uo(),Oi=ho(),gs=mo(),Uh=wi(),Gh=cs(),jh=Ai(),Pi=Ci(),Yh=[_h.map,qh.seq,xh.string,Mh.nullTag,bo.trueTag,bo.falseTag,gs.intBin,gs.intOct,gs.int,gs.intHex,Oi.floatNaN,Oi.floatExp,Oi.float,Bh.binary,Uh.omap,Gh.pairs,jh.set,Pi.intTime,Pi.floatTime,Pi.timestamp];wo.schema=Yh;});var Io=b(Ti=>{d();var Ao=_e(),Wh=ss(),No=Me(),Kh=ct(),Jh=ai(),ki=ci(),Ii=ui(),zh=Qn(),Hh=to(),Co=mi(),Oo=wi(),Po=cs(),vo=So(),ko=Ai(),ys=Ci(),Lo=new Map([["core",zh.schema],["failsafe",[Ao.map,No.seq,Kh.string]],["json",Hh.schema],["yaml11",vo.schema],["yaml-1.1",vo.schema]]),Eo={binary:Co.binary,bool:Jh.boolTag,float:ki.float,floatExp:ki.floatExp,floatNaN:ki.floatNaN,floatTime:ys.floatTime,int:Ii.int,intHex:Ii.intHex,intOct:Ii.intOct,intTime:ys.intTime,map:Ao.map,null:Wh.nullTag,omap:Oo.omap,pairs:Po.pairs,seq:No.seq,set:ko.set,timestamp:ys.timestamp},Vh={"tag:yaml.org,2002:binary":Co.binary,"tag:yaml.org,2002:omap":Oo.omap,"tag:yaml.org,2002:pairs":Po.pairs,"tag:yaml.org,2002:set":ko.set,"tag:yaml.org,2002:timestamp":ys.timestamp};function Xh(t,e){let s=Lo.get(e);if(!s)if(Array.isArray(t))s=[];else {let i=Array.from(Lo.keys()).filter(r=>r!=="yaml11").map(r=>JSON.stringify(r)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${i} or define customTags array`)}if(Array.isArray(t))for(let i of t)s=s.concat(i);else typeof t=="function"&&(s=t(s.slice()));return s.map(i=>{if(typeof i!="string")return i;let r=Eo[i];if(r)return r;let n=Object.keys(Eo).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown custom tag "${i}"; use one of ${n}`)})}Ti.coreKnownTags=Vh;Ti.getTags=Xh;});var Ri=b(To=>{d();var Di=D(),Qh=_e(),Zh=Me(),ep=ct(),bs=Io(),tp=(t,e)=>t.key<e.key?-1:t.key>e.key?1:0,$i=class t{constructor({compat:e,customTags:s,merge:i,resolveKnownTags:r,schema:n,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?bs.getTags(e,"compat"):e?bs.getTags(null,e):null,this.merge=!!i,this.name=typeof n=="string"&&n||"core",this.knownTags=r?bs.coreKnownTags:{},this.tags=bs.getTags(s,this.name),this.toStringOptions=a??null,Object.defineProperty(this,Di.MAP,{value:Qh.map}),Object.defineProperty(this,Di.SCALAR,{value:ep.string}),Object.defineProperty(this,Di.SEQ,{value:Zh.seq}),this.sortMapEntries=typeof o=="function"?o:o===!0?tp:null;}clone(){let e=Object.create(t.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};To.Schema=$i;});var $o=b(Do=>{d();var sp=D(),Fi=ot(),pt=st();function ip(t,e){let s=[],i=e.directives===!0;if(e.directives!==!1&&t.directives){let l=t.directives.toString(t);l?(s.push(l),i=!0):t.directives.docStart&&(i=!0);}i&&s.push("---");let r=Fi.createStringifyContext(t,e),{commentString:n}=r.options;if(t.commentBefore){s.length!==1&&s.unshift("");let l=n(t.commentBefore);s.unshift(pt.indentComment(l,""));}let o=!1,a=null;if(t.contents){if(sp.isNode(t.contents)){if(t.contents.spaceBefore&&i&&s.push(""),t.contents.commentBefore){let d=n(t.contents.commentBefore);s.push(pt.indentComment(d,""));}r.forceBlockIndent=!!t.comment,a=t.contents.comment;}let l=a?void 0:()=>o=!0,c=Fi.stringify(t.contents,r,()=>a=null,l);a&&(c+=pt.lineComment(c,"",n(a))),(c[0]==="|"||c[0]===">")&&s[s.length-1]==="---"?s[s.length-1]=`--- ${c}`:s.push(c);}else s.push(Fi.stringify(t.contents,r));if(t.directives?.docEnd)if(t.comment){let l=n(t.comment);l.includes(`
|
|
64
|
-
`)?(s.push("..."),s.push(pt.indentComment(l,""))):s.push(`... ${l}`);}else s.push("...");else {let l=t.comment;l&&o&&(l=l.replace(/^\n+/,"")),l&&((!o||a)&&s[s.length-1]!==""&&s.push(""),s.push(pt.indentComment(n(l),"")));}return s.join(`
|
|
65
|
-
`)+`
|
|
66
|
-
`}Do.stringifyDocument=ip;});var dt=b(Ro=>{d();var rp=et(),xe=jt(),J=D(),np=he(),op=ae(),ap=Ri(),lp=$o(),_i=Mt(),cp=Us(),fp=tt(),Mi=Bs(),qi=class t{constructor(e,s,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,J.NODE_TYPE,{value:J.DOC});let r=null;typeof s=="function"||Array.isArray(s)?r=s:i===void 0&&s&&(i=s,s=void 0);let n=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},i);this.options=n;let{version:o}=n;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Mi.Directives({version:o}),this.setSchema(o,i),this.contents=e===void 0?null:this.createNode(e,r,i);}clone(){let e=Object.create(t.prototype,{[J.NODE_TYPE]:{value:J.DOC}});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=J.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Be(this.contents)&&this.contents.add(e);}addIn(e,s){Be(this.contents)&&this.contents.addIn(e,s);}createAlias(e,s){if(!e.anchor){let i=_i.anchorNames(this);e.anchor=!s||i.has(s)?_i.findNewAnchor(s||"a",i):s;}return new rp.Alias(e.anchor)}createNode(e,s,i){let r;if(typeof s=="function")e=s.call({"":e},"",e),r=s;else if(Array.isArray(s)){let m=E=>typeof E=="number"||E instanceof String||E instanceof Number,v=s.filter(m).map(String);v.length>0&&(s=s.concat(v)),r=s;}else i===void 0&&s&&(i=s,s=void 0);let{aliasDuplicateObjects:n,anchorPrefix:o,flow:a,keepUndefined:l,onTagObj:c,tag:d}=i??{},{onAnchor:u,setAnchors:p,sourceObjects:g}=_i.createNodeAnchors(this,o||"a"),y={aliasDuplicateObjects:n??!0,keepUndefined:l??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:g},h=fp.createNode(e,d,y);return a&&J.isCollection(h)&&(h.flow=!0),p(),h}createPair(e,s,i={}){let r=this.createNode(e,null,i),n=this.createNode(s,null,i);return new np.Pair(r,n)}delete(e){return Be(this.contents)?this.contents.delete(e):!1}deleteIn(e){return xe.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):Be(this.contents)?this.contents.deleteIn(e):!1}get(e,s){return J.isCollection(this.contents)?this.contents.get(e,s):void 0}getIn(e,s){return xe.isEmptyPath(e)?!s&&J.isScalar(this.contents)?this.contents.value:this.contents:J.isCollection(this.contents)?this.contents.getIn(e,s):void 0}has(e){return J.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return xe.isEmptyPath(e)?this.contents!==void 0:J.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,s){this.contents==null?this.contents=xe.collectionFromPath(this.schema,[e],s):Be(this.contents)&&this.contents.set(e,s);}setIn(e,s){xe.isEmptyPath(e)?this.contents=s:this.contents==null?this.contents=xe.collectionFromPath(this.schema,Array.from(e),s):Be(this.contents)&&this.contents.setIn(e,s);}setSchema(e,s={}){typeof e=="number"&&(e=String(e));let i;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Mi.Directives({version:"1.1"}),i={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Mi.Directives({version:e}),i={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{let r=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${r}`)}}if(s.schema instanceof Object)this.schema=s.schema;else if(i)this.schema=new ap.Schema(Object.assign(i,s));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:s,mapAsMap:i,maxAliasCount:r,onAnchor:n,reviver:o}={}){let a={anchors:new Map,doc:this,keep:!e,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},l=op.toJS(this.contents,s??"",a);if(typeof n=="function")for(let{count:c,res:d}of a.anchors.values())n(d,c);return typeof o=="function"?cp.applyReviver(o,{"":l},"",l):l}toJSON(e,s){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:s})}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)){let s=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${s}`)}return lp.stringifyDocument(this,e)}};function Be(t){if(J.isCollection(t))return !0;throw new Error("Expected a YAML collection as document contents")}Ro.Document=qi;});var yt=b(gt=>{d();var mt=class extends Error{constructor(e,s,i,r){super(),this.name=e,this.code=i,this.message=r,this.pos=s;}},xi=class extends mt{constructor(e,s,i){super("YAMLParseError",e,s,i);}},Bi=class extends mt{constructor(e,s,i){super("YAMLWarning",e,s,i);}},up=(t,e)=>s=>{if(s.pos[0]===-1)return;s.linePos=s.pos.map(a=>e.linePos(a));let{line:i,col:r}=s.linePos[0];s.message+=` at line ${i}, column ${r}`;let n=r-1,o=t.substring(e.lineStarts[i-1],e.lineStarts[i]).replace(/[\n\r]+$/,"");if(n>=60&&o.length>80){let a=Math.min(n-39,o.length-79);o="\u2026"+o.substring(a),n-=a-1;}if(o.length>80&&(o=o.substring(0,79)+"\u2026"),i>1&&/^ *$/.test(o.substring(0,n))){let a=t.substring(e.lineStarts[i-2],e.lineStarts[i-1]);a.length>80&&(a=a.substring(0,79)+`\u2026
|
|
67
|
-
`),o=a+o;}if(/[^ ]/.test(o)){let a=1,l=s.linePos[1];l&&l.line===i&&l.col>r&&(a=Math.max(1,Math.min(l.col-r,80-n)));let c=" ".repeat(n)+"^".repeat(a);s.message+=`:
|
|
68
|
-
|
|
69
|
-
${o}
|
|
70
|
-
${c}
|
|
71
|
-
`;}};gt.YAMLError=mt;gt.YAMLParseError=xi;gt.YAMLWarning=Bi;gt.prettifyError=up;});var bt=b(Fo=>{d();function hp(t,{flow:e,indicator:s,next:i,offset:r,onError:n,startOnNewline:o}){let a=!1,l=o,c=o,d="",u="",p=!1,g=!1,y=!1,h=null,m=null,v=null,E=null,O=null;for(let L of t)switch(y&&(L.type!=="space"&&L.type!=="newline"&&L.type!=="comma"&&n(L.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y=!1),L.type){case"space":!e&&l&&s!=="doc-start"&&L.source[0]===" "&&n(L,"TAB_AS_INDENT","Tabs are not allowed as indentation"),c=!0;break;case"comment":{c||n(L,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let I=L.source.substring(1)||" ";d?d+=u+I:d=I,u="",l=!1;break}case"newline":l?d?d+=L.source:a=!0:u+=L.source,l=!0,p=!0,(h||m)&&(g=!0),c=!0;break;case"anchor":h&&n(L,"MULTIPLE_ANCHORS","A node can have at most one anchor"),L.source.endsWith(":")&&n(L.offset+L.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),h=L,O===null&&(O=L.offset),l=!1,c=!1,y=!0;break;case"tag":{m&&n(L,"MULTIPLE_TAGS","A node can have at most one tag"),m=L,O===null&&(O=L.offset),l=!1,c=!1,y=!0;break}case s:(h||m)&&n(L,"BAD_PROP_ORDER",`Anchors and tags must be after the ${L.source} indicator`),E&&n(L,"UNEXPECTED_TOKEN",`Unexpected ${L.source} in ${e??"collection"}`),E=L,l=!1,c=!1;break;case"comma":if(e){v&&n(L,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),v=L,l=!1,c=!1;break}default:n(L,"UNEXPECTED_TOKEN",`Unexpected ${L.type} token`),l=!1,c=!1;}let C=t[t.length-1],P=C?C.offset+C.source.length:r;return y&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&n(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:v,found:E,spaceBefore:a,comment:d,hasNewline:p,hasNewlineAfterProp:g,anchor:h,tag:m,end:P,start:O??P}}Fo.resolveProps=hp;});var ws=b(_o=>{d();function Ui(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes(`
|
|
72
|
-
`))return !0;if(t.end){for(let e of t.end)if(e.type==="newline")return !0}return !1;case"flow-collection":for(let e of t.items){for(let s of e.start)if(s.type==="newline")return !0;if(e.sep){for(let s of e.sep)if(s.type==="newline")return !0}if(Ui(e.key)||Ui(e.value))return !0}return !1;default:return !0}}_o.containsNewline=Ui;});var Gi=b(Mo=>{d();var pp=ws();function dp(t,e,s){if(e?.type==="flow-collection"){let i=e.end[0];i.indent===t&&(i.source==="]"||i.source==="}")&&pp.containsNewline(e)&&s(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0);}}Mo.flowIndentCheck=dp;});var ji=b(xo=>{d();var qo=D();function mp(t,e,s){let{uniqueKeys:i}=t.options;if(i===!1)return !1;let r=typeof i=="function"?i:(n,o)=>n===o||qo.isScalar(n)&&qo.isScalar(o)&&n.value===o.value&&!(n.value==="<<"&&t.schema.merge);return e.some(n=>r(n.key,s))}xo.mapIncludes=mp;});var Wo=b(Yo=>{d();var Bo=he(),gp=de(),Uo=bt(),yp=ws(),Go=Gi(),bp=ji(),jo="All mapping items must start at the same column";function wp({composeNode:t,composeEmptyNode:e},s,i,r,n){let o=n?.nodeClass??gp.YAMLMap,a=new o(s.schema);s.atRoot&&(s.atRoot=!1);let l=i.offset,c=null;for(let d of i.items){let{start:u,key:p,sep:g,value:y}=d,h=Uo.resolveProps(u,{indicator:"explicit-key-ind",next:p??g?.[0],offset:l,onError:r,startOnNewline:!0}),m=!h.found;if(m){if(p&&(p.type==="block-seq"?r(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==i.indent&&r(l,"BAD_INDENT",jo)),!h.anchor&&!h.tag&&!g){c=h.end,h.comment&&(a.comment?a.comment+=`
|
|
73
|
-
`+h.comment:a.comment=h.comment);continue}(h.hasNewlineAfterProp||yp.containsNewline(p))&&r(p??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line");}else h.found?.indent!==i.indent&&r(l,"BAD_INDENT",jo);let v=h.end,E=p?t(s,p,h,r):e(s,v,u,null,h,r);s.schema.compat&&Go.flowIndentCheck(i.indent,p,r),bp.mapIncludes(s,a.items,E)&&r(v,"DUPLICATE_KEY","Map keys must be unique");let O=Uo.resolveProps(g??[],{indicator:"map-value-ind",next:y,offset:E.range[2],onError:r,startOnNewline:!p||p.type==="block-scalar"});if(l=O.end,O.found){m&&(y?.type==="block-map"&&!O.hasNewline&&r(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),s.options.strict&&h.start<O.found.offset-1024&&r(E.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let C=y?t(s,y,O,r):e(s,l,g,null,O,r);s.schema.compat&&Go.flowIndentCheck(i.indent,y,r),l=C.range[2];let P=new Bo.Pair(E,C);s.options.keepSourceTokens&&(P.srcToken=d),a.items.push(P);}else {m&&r(E.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),O.comment&&(E.comment?E.comment+=`
|
|
74
|
-
`+O.comment:E.comment=O.comment);let C=new Bo.Pair(E);s.options.keepSourceTokens&&(C.srcToken=d),a.items.push(C);}}return c&&c<l&&r(c,"IMPOSSIBLE","Map comment with trailing content"),a.range=[i.offset,l,c??l],a}Yo.resolveBlockMap=wp;});var Jo=b(Ko=>{d();var Sp=me(),vp=bt(),Lp=Gi();function Ep({composeNode:t,composeEmptyNode:e},s,i,r,n){let o=n?.nodeClass??Sp.YAMLSeq,a=new o(s.schema);s.atRoot&&(s.atRoot=!1);let l=i.offset,c=null;for(let{start:d,value:u}of i.items){let p=vp.resolveProps(d,{indicator:"seq-item-ind",next:u,offset:l,onError:r,startOnNewline:!0});if(!p.found)if(p.anchor||p.tag||u)u&&u.type==="block-seq"?r(p.end,"BAD_INDENT","All sequence items must start at the same column"):r(l,"MISSING_CHAR","Sequence item without - indicator");else {c=p.end,p.comment&&(a.comment=p.comment);continue}let g=u?t(s,u,p,r):e(s,p.end,d,null,p,r);s.schema.compat&&Lp.flowIndentCheck(i.indent,u,r),l=g.range[2],a.items.push(g);}return a.range=[i.offset,l,c??l],a}Ko.resolveBlockSeq=Ep;});var Ue=b(zo=>{d();function Ap(t,e,s,i){let r="";if(t){let n=!1,o="";for(let a of t){let{source:l,type:c}=a;switch(c){case"space":n=!0;break;case"comment":{s&&!n&&i(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let d=l.substring(1)||" ";r?r+=o+d:r=d,o="";break}case"newline":r&&(o+=l),n=!0;break;default:i(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`);}e+=l.length;}}return {comment:r,offset:e}}zo.resolveEnd=Ap;});var Qo=b(Xo=>{d();var Np=D(),Cp=he(),Ho=de(),Op=me(),Pp=Ue(),Vo=bt(),kp=ws(),Ip=ji(),Yi="Block collections are not allowed within flow collections",Wi=t=>t&&(t.type==="block-map"||t.type==="block-seq");function Tp({composeNode:t,composeEmptyNode:e},s,i,r,n){let o=i.start.source==="{",a=o?"flow map":"flow sequence",l=n?.nodeClass??(o?Ho.YAMLMap:Op.YAMLSeq),c=new l(s.schema);c.flow=!0;let d=s.atRoot;d&&(s.atRoot=!1);let u=i.offset+i.start.source.length;for(let m=0;m<i.items.length;++m){let v=i.items[m],{start:E,key:O,sep:C,value:P}=v,L=Vo.resolveProps(E,{flow:a,indicator:"explicit-key-ind",next:O??C?.[0],offset:u,onError:r,startOnNewline:!1});if(!L.found){if(!L.anchor&&!L.tag&&!C&&!P){m===0&&L.comma?r(L.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):m<i.items.length-1&&r(L.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),L.comment&&(c.comment?c.comment+=`
|
|
75
|
-
`+L.comment:c.comment=L.comment),u=L.end;continue}!o&&s.options.strict&&kp.containsNewline(O)&&r(O,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");}if(m===0)L.comma&&r(L.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(L.comma||r(L.start,"MISSING_CHAR",`Missing , between ${a} items`),L.comment){let I="";e:for(let _ of E)switch(_.type){case"comma":case"space":break;case"comment":I=_.source.substring(1);break e;default:break e}if(I){let _=c.items[c.items.length-1];Np.isPair(_)&&(_=_.value??_.key),_.comment?_.comment+=`
|
|
76
|
-
`+I:_.comment=I,L.comment=L.comment.substring(I.length+1);}}if(!o&&!C&&!L.found){let I=P?t(s,P,L,r):e(s,L.end,C,null,L,r);c.items.push(I),u=I.range[2],Wi(P)&&r(I.range,"BLOCK_IN_FLOW",Yi);}else {let I=L.end,_=O?t(s,O,L,r):e(s,I,E,null,L,r);Wi(O)&&r(_.range,"BLOCK_IN_FLOW",Yi);let x=Vo.resolveProps(C??[],{flow:a,indicator:"map-value-ind",next:P,offset:_.range[2],onError:r,startOnNewline:!1});if(x.found){if(!o&&!L.found&&s.options.strict){if(C)for(let U of C){if(U===x.found)break;if(U.type==="newline"){r(U,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}L.start<x.found.offset-1024&&r(x.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");}}else P&&("source"in P&&P.source&&P.source[0]===":"?r(P,"MISSING_CHAR",`Missing space after : in ${a}`):r(x.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let V=P?t(s,P,x,r):x.found?e(s,x.end,C,null,x,r):null;V?Wi(P)&&r(V.range,"BLOCK_IN_FLOW",Yi):x.comment&&(_.comment?_.comment+=`
|
|
77
|
-
`+x.comment:_.comment=x.comment);let Ie=new Cp.Pair(_,V);if(s.options.keepSourceTokens&&(Ie.srcToken=v),o){let U=c;Ip.mapIncludes(s,U.items,_)&&r(I,"DUPLICATE_KEY","Map keys must be unique"),U.items.push(Ie);}else {let U=new Ho.YAMLMap(s.schema);U.flow=!0,U.items.push(Ie),c.items.push(U);}u=V?V.range[2]:x.end;}}let p=o?"}":"]",[g,...y]=i.end,h=u;if(g&&g.source===p)h=g.offset+g.source.length;else {let m=a[0].toUpperCase()+a.substring(1),v=d?`${m} must end with a ${p}`:`${m} in block collection must be sufficiently indented and end with a ${p}`;r(u,d?"MISSING_CHAR":"BAD_INDENT",v),g&&g.source.length!==1&&y.unshift(g);}if(y.length>0){let m=Pp.resolveEnd(y,h,s.options.strict,r);m.comment&&(c.comment?c.comment+=`
|
|
78
|
-
`+m.comment:c.comment=m.comment),c.range=[i.offset,h,m.offset];}else c.range=[i.offset,h,h];return c}Xo.resolveFlowCollection=Tp;});var ea=b(Zo=>{d();var Dp=D(),$p=M(),Rp=de(),Fp=me(),_p=Wo(),Mp=Jo(),qp=Qo();function Ki(t,e,s,i,r,n){let o=s.type==="block-map"?_p.resolveBlockMap(t,e,s,i,n):s.type==="block-seq"?Mp.resolveBlockSeq(t,e,s,i,n):qp.resolveFlowCollection(t,e,s,i,n),a=o.constructor;return r==="!"||r===a.tagName?(o.tag=a.tagName,o):(r&&(o.tag=r),o)}function xp(t,e,s,i,r){let n=i?e.directives.tagName(i.source,u=>r(i,"TAG_RESOLVE_FAILED",u)):null,o=s.type==="block-map"?"map":s.type==="block-seq"?"seq":s.start.source==="{"?"map":"seq";if(!i||!n||n==="!"||n===Rp.YAMLMap.tagName&&o==="map"||n===Fp.YAMLSeq.tagName&&o==="seq"||!o)return Ki(t,e,s,r,n);let a=e.schema.tags.find(u=>u.tag===n&&u.collection===o);if(!a){let u=e.schema.knownTags[n];if(u&&u.collection===o)e.schema.tags.push(Object.assign({},u,{default:!1})),a=u;else return u?.collection?r(i,"BAD_COLLECTION_TYPE",`${u.tag} used for ${o} collection, but expects ${u.collection}`,!0):r(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,!0),Ki(t,e,s,r,n)}let l=Ki(t,e,s,r,n,a),c=a.resolve?.(l,u=>r(i,"TAG_RESOLVE_FAILED",u),e.options)??l,d=Dp.isNode(c)?c:new $p.Scalar(c);return d.range=l.range,d.tag=n,a?.format&&(d.format=a.format),d}Zo.composeCollection=xp;});var zi=b(ta=>{d();var Ji=M();function Bp(t,e,s){let i=t.offset,r=Up(t,e,s);if(!r)return {value:"",type:null,comment:"",range:[i,i,i]};let n=r.mode===">"?Ji.Scalar.BLOCK_FOLDED:Ji.Scalar.BLOCK_LITERAL,o=t.source?Gp(t.source):[],a=o.length;for(let h=o.length-1;h>=0;--h){let m=o[h][1];if(m===""||m==="\r")a=h;else break}if(a===0){let h=r.chomp==="+"&&o.length>0?`
|
|
79
|
-
`.repeat(Math.max(1,o.length-1)):"",m=i+r.length;return t.source&&(m+=t.source.length),{value:h,type:n,comment:r.comment,range:[i,m,m]}}let l=t.indent+r.indent,c=t.offset+r.length,d=0;for(let h=0;h<a;++h){let[m,v]=o[h];if(v===""||v==="\r")r.indent===0&&m.length>l&&(l=m.length);else {m.length<l&&s(c+m.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),r.indent===0&&(l=m.length),d=h;break}c+=m.length+v.length+1;}for(let h=o.length-1;h>=a;--h)o[h][0].length>l&&(a=h+1);let u="",p="",g=!1;for(let h=0;h<d;++h)u+=o[h][0].slice(l)+`
|
|
80
|
-
`;for(let h=d;h<a;++h){let[m,v]=o[h];c+=m.length+v.length+1;let E=v[v.length-1]==="\r";if(E&&(v=v.slice(0,-1)),v&&m.length<l){let C=`Block scalar lines must not be less indented than their ${r.indent?"explicit indentation indicator":"first line"}`;s(c-v.length-(E?2:1),"BAD_INDENT",C),m="";}n===Ji.Scalar.BLOCK_LITERAL?(u+=p+m.slice(l)+v,p=`
|
|
81
|
-
`):m.length>l||v[0]===" "?(p===" "?p=`
|
|
82
|
-
`:!g&&p===`
|
|
83
|
-
`&&(p=`
|
|
84
|
-
|
|
85
|
-
`),u+=p+m.slice(l)+v,p=`
|
|
86
|
-
`,g=!0):v===""?p===`
|
|
87
|
-
`?u+=`
|
|
88
|
-
`:p=`
|
|
89
|
-
`:(u+=p+v,p=" ",g=!1);}switch(r.chomp){case"-":break;case"+":for(let h=a;h<o.length;++h)u+=`
|
|
90
|
-
`+o[h][0].slice(l);u[u.length-1]!==`
|
|
91
|
-
`&&(u+=`
|
|
92
|
-
`);break;default:u+=`
|
|
93
|
-
`;}let y=i+r.length+t.source.length;return {value:u,type:n,comment:r.comment,range:[i,y,y]}}function Up({offset:t,props:e},s,i){if(e[0].type!=="block-scalar-header")return i(e[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:r}=e[0],n=r[0],o=0,a="",l=-1;for(let p=1;p<r.length;++p){let g=r[p];if(!a&&(g==="-"||g==="+"))a=g;else {let y=Number(g);!o&&y?o=y:l===-1&&(l=t+p);}}l!==-1&&i(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${r}`);let c=!1,d="",u=r.length;for(let p=1;p<e.length;++p){let g=e[p];switch(g.type){case"space":c=!0;case"newline":u+=g.source.length;break;case"comment":s&&!c&&i(g,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),u+=g.source.length,d=g.source.substring(1);break;case"error":i(g,"UNEXPECTED_TOKEN",g.message),u+=g.source.length;break;default:{let y=`Unexpected token in block scalar header: ${g.type}`;i(g,"UNEXPECTED_TOKEN",y);let h=g.source;h&&typeof h=="string"&&(u+=h.length);}}}return {mode:n,indent:o,chomp:a,comment:d,length:u}}function Gp(t){let e=t.split(/\n( *)/),s=e[0],i=s.match(/^( *)/),n=[i?.[1]?[i[1],s.slice(i[1].length)]:["",s]];for(let o=1;o<e.length;o+=2)n.push([e[o],e[o+1]]);return n}ta.resolveBlockScalar=Bp;});var Vi=b(ia=>{d();var Hi=M(),jp=Ue();function Yp(t,e,s){let{offset:i,type:r,source:n,end:o}=t,a,l,c=(p,g,y)=>s(i+p,g,y);switch(r){case"scalar":a=Hi.Scalar.PLAIN,l=Wp(n,c);break;case"single-quoted-scalar":a=Hi.Scalar.QUOTE_SINGLE,l=Kp(n,c);break;case"double-quoted-scalar":a=Hi.Scalar.QUOTE_DOUBLE,l=Jp(n,c);break;default:return s(t,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${r}`),{value:"",type:null,comment:"",range:[i,i+n.length,i+n.length]}}let d=i+n.length,u=jp.resolveEnd(o,d,e,s);return {value:l,type:a,comment:u.comment,range:[i,d,u.offset]}}function Wp(t,e){let s="";switch(t[0]){case" ":s="a tab character";break;case",":s="flow indicator character ,";break;case"%":s="directive indicator character %";break;case"|":case">":{s=`block scalar indicator ${t[0]}`;break}case"@":case"`":{s=`reserved character ${t[0]}`;break}}return s&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${s}`),sa(t)}function Kp(t,e){return (t[t.length-1]!=="'"||t.length===1)&&e(t.length,"MISSING_CHAR","Missing closing 'quote"),sa(t.slice(1,-1)).replace(/''/g,"'")}function sa(t){let e,s;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
94
|
-
`,"sy"),s=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
95
|
-
`,"sy");}catch{e=/(.*?)[ \t]*\r?\n/sy,s=/[ \t]*(.*?)[ \t]*\r?\n/sy;}let i=e.exec(t);if(!i)return t;let r=i[1],n=" ",o=e.lastIndex;for(s.lastIndex=o;i=s.exec(t);)i[1]===""?n===`
|
|
96
|
-
`?r+=n:n=`
|
|
97
|
-
`:(r+=n+i[1],n=" "),o=s.lastIndex;let a=/[ \t]*(.*)/sy;return a.lastIndex=o,i=a.exec(t),r+n+(i?.[1]??"")}function Jp(t,e){let s="";for(let i=1;i<t.length-1;++i){let r=t[i];if(!(r==="\r"&&t[i+1]===`
|
|
98
|
-
`))if(r===`
|
|
99
|
-
`){let{fold:n,offset:o}=zp(t,i);s+=n,i=o;}else if(r==="\\"){let n=t[++i],o=Hp[n];if(o)s+=o;else if(n===`
|
|
100
|
-
`)for(n=t[i+1];n===" "||n===" ";)n=t[++i+1];else if(n==="\r"&&t[i+1]===`
|
|
101
|
-
`)for(n=t[++i+1];n===" "||n===" ";)n=t[++i+1];else if(n==="x"||n==="u"||n==="U"){let a={x:2,u:4,U:8}[n];s+=Vp(t,i+1,a,e),i+=a;}else {let a=t.substr(i-1,2);e(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),s+=a;}}else if(r===" "||r===" "){let n=i,o=t[i+1];for(;o===" "||o===" ";)o=t[++i+1];o!==`
|
|
102
|
-
`&&!(o==="\r"&&t[i+2]===`
|
|
103
|
-
`)&&(s+=i>n?t.slice(n,i+1):r);}else s+=r;}return (t[t.length-1]!=='"'||t.length===1)&&e(t.length,"MISSING_CHAR",'Missing closing "quote'),s}function zp(t,e){let s="",i=t[e+1];for(;(i===" "||i===" "||i===`
|
|
104
|
-
`||i==="\r")&&!(i==="\r"&&t[e+2]!==`
|
|
105
|
-
`);)i===`
|
|
106
|
-
`&&(s+=`
|
|
107
|
-
`),e+=1,i=t[e+1];return s||(s=" "),{fold:s,offset:e}}var Hp={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
108
|
-
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Vp(t,e,s,i){let r=t.substr(e,s),o=r.length===s&&/^[0-9a-fA-F]+$/.test(r)?parseInt(r,16):NaN;if(isNaN(o)){let a=t.substr(e-2,s+2);return i(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(o)}ia.resolveFlowScalar=Yp;});var oa=b(na=>{d();var Ge=D(),ra=M(),Xp=zi(),Qp=Vi();function Zp(t,e,s,i){let{value:r,type:n,comment:o,range:a}=e.type==="block-scalar"?Xp.resolveBlockScalar(e,t.options.strict,i):Qp.resolveFlowScalar(e,t.options.strict,i),l=s?t.directives.tagName(s.source,u=>i(s,"TAG_RESOLVE_FAILED",u)):null,c=s&&l?ed(t.schema,r,l,s,i):e.type==="scalar"?td(t,r,e,i):t.schema[Ge.SCALAR],d;try{let u=c.resolve(r,p=>i(s??e,"TAG_RESOLVE_FAILED",p),t.options);d=Ge.isScalar(u)?u:new ra.Scalar(u);}catch(u){let p=u instanceof Error?u.message:String(u);i(s??e,"TAG_RESOLVE_FAILED",p),d=new ra.Scalar(r);}return d.range=a,d.source=r,n&&(d.type=n),l&&(d.tag=l),c.format&&(d.format=c.format),o&&(d.comment=o),d}function ed(t,e,s,i,r){if(s==="!")return t[Ge.SCALAR];let n=[];for(let a of t.tags)if(!a.collection&&a.tag===s)if(a.default&&a.test)n.push(a);else return a;for(let a of n)if(a.test?.test(e))return a;let o=t.knownTags[s];return o&&!o.collection?(t.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(r(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,s!=="tag:yaml.org,2002:str"),t[Ge.SCALAR])}function td({directives:t,schema:e},s,i,r){let n=e.tags.find(o=>o.default&&o.test?.test(s))||e[Ge.SCALAR];if(e.compat){let o=e.compat.find(a=>a.default&&a.test?.test(s))??e[Ge.SCALAR];if(n.tag!==o.tag){let a=t.tagString(n.tag),l=t.tagString(o.tag),c=`Value may be parsed as either ${a} or ${l}`;r(i,"TAG_RESOLVE_FAILED",c,!0);}}return n}na.composeScalar=Zp;});var la=b(aa=>{d();function sd(t,e,s){if(e){s===null&&(s=e.length);for(let i=s-1;i>=0;--i){let r=e[i];switch(r.type){case"space":case"comment":case"newline":t-=r.source.length;continue}for(r=e[++i];r?.type==="space";)t+=r.source.length,r=e[++i];break}}return t}aa.emptyScalarPosition=sd;});var ua=b(Qi=>{d();var id=et(),rd=ea(),ca=oa(),nd=Ue(),od=la(),ad={composeNode:fa,composeEmptyNode:Xi};function fa(t,e,s,i){let{spaceBefore:r,comment:n,anchor:o,tag:a}=s,l,c=!0;switch(e.type){case"alias":l=ld(t,e,i),(o||a)&&i(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=ca.composeScalar(t,e,a,i),o&&(l.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":l=rd.composeCollection(ad,t,e,a,i),o&&(l.anchor=o.source.substring(1));break;default:{let d=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;i(e,"UNEXPECTED_TOKEN",d),l=Xi(t,e.offset,void 0,null,s,i),c=!1;}}return o&&l.anchor===""&&i(o,"BAD_ALIAS","Anchor cannot be an empty string"),r&&(l.spaceBefore=!0),n&&(e.type==="scalar"&&e.source===""?l.comment=n:l.commentBefore=n),t.options.keepSourceTokens&&c&&(l.srcToken=e),l}function Xi(t,e,s,i,{spaceBefore:r,comment:n,anchor:o,tag:a,end:l},c){let d={type:"scalar",offset:od.emptyScalarPosition(e,s,i),indent:-1,source:""},u=ca.composeScalar(t,d,a,c);return o&&(u.anchor=o.source.substring(1),u.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),r&&(u.spaceBefore=!0),n&&(u.comment=n,u.range[2]=l),u}function ld({options:t},{offset:e,source:s,end:i},r){let n=new id.Alias(s.substring(1));n.source===""&&r(e,"BAD_ALIAS","Alias cannot be an empty string"),n.source.endsWith(":")&&r(e+s.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=e+s.length,a=nd.resolveEnd(i,o,t.strict,r);return n.range=[e,o,a.offset],a.comment&&(n.comment=a.comment),n}Qi.composeEmptyNode=Xi;Qi.composeNode=fa;});var da=b(pa=>{d();var cd=dt(),ha=ua(),fd=Ue(),ud=bt();function hd(t,e,{offset:s,start:i,value:r,end:n},o){let a=Object.assign({_directives:e},t),l=new cd.Document(void 0,a),c={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},d=ud.resolveProps(i,{indicator:"doc-start",next:r??n?.[0],offset:s,onError:o,startOnNewline:!0});d.found&&(l.directives.docStart=!0,r&&(r.type==="block-map"||r.type==="block-seq")&&!d.hasNewline&&o(d.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=r?ha.composeNode(c,r,d,o):ha.composeEmptyNode(c,d.end,i,null,d,o);let u=l.contents.range[2],p=fd.resolveEnd(n,u,!1,o);return p.comment&&(l.comment=p.comment),l.range=[s,u,p.offset],l}pa.composeDoc=hd;});var er=b(ya=>{d();var pd=Bs(),dd=dt(),wt=yt(),ma=D(),md=da(),gd=Ue();function St(t){if(typeof t=="number")return [t,t+1];if(Array.isArray(t))return t.length===2?t:[t[0],t[1]];let{offset:e,source:s}=t;return [e,e+(typeof s=="string"?s.length:1)]}function ga(t){let e="",s=!1,i=!1;for(let r=0;r<t.length;++r){let n=t[r];switch(n[0]){case"#":e+=(e===""?"":i?`
|
|
109
|
-
|
|
110
|
-
`:`
|
|
111
|
-
`)+(n.substring(1)||" "),s=!0,i=!1;break;case"%":t[r+1]?.[0]!=="#"&&(r+=1),s=!1;break;default:s||(i=!0),s=!1;}}return {comment:e,afterEmptyLine:i}}var Zi=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(s,i,r,n)=>{let o=St(s);n?this.warnings.push(new wt.YAMLWarning(o,i,r)):this.errors.push(new wt.YAMLParseError(o,i,r));},this.directives=new pd.Directives({version:e.version||"1.2"}),this.options=e;}decorate(e,s){let{comment:i,afterEmptyLine:r}=ga(this.prelude);if(i){let n=e.contents;if(s)e.comment=e.comment?`${e.comment}
|
|
112
|
-
${i}`:i;else if(r||e.directives.docStart||!n)e.commentBefore=i;else if(ma.isCollection(n)&&!n.flow&&n.items.length>0){let o=n.items[0];ma.isPair(o)&&(o=o.key);let a=o.commentBefore;o.commentBefore=a?`${i}
|
|
113
|
-
${a}`:i;}else {let o=n.commentBefore;n.commentBefore=o?`${i}
|
|
114
|
-
${o}`:i;}}s?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[];}streamInfo(){return {comment:ga(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,s=!1,i=-1){for(let r of e)yield*this.next(r);yield*this.end(s,i);}*next(e){switch(process.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,(s,i,r)=>{let n=St(e);n[0]+=s,this.onError(n,"BAD_DIRECTIVE",i,r);}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let s=md.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!s.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(s,!1),this.doc&&(yield this.doc),this.doc=s,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let s=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,i=new wt.YAMLParseError(St(e),"UNEXPECTED_TOKEN",s);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){let i="Unexpected doc-end without preceding document";this.errors.push(new wt.YAMLParseError(St(e),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;let s=gd.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),s.comment){let i=this.doc.comment;this.doc.comment=i?`${i}
|
|
115
|
-
${s.comment}`:s.comment;}this.doc.range[2]=s.offset;break}default:this.errors.push(new wt.YAMLParseError(St(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`));}}*end(e=!1,s=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let i=Object.assign({_directives:this.directives},this.options),r=new dd.Document(void 0,i);this.atDirectives&&this.onError(s,"MISSING_CHAR","Missing directives-end indicator line"),r.range=[0,s,s],this.decorate(r,!1),yield r;}}};ya.Composer=Zi;});var Sa=b(Ss=>{d();var yd=zi(),bd=Vi(),wd=yt(),ba=nt();function Sd(t,e=!0,s){if(t){let i=(r,n,o)=>{let a=typeof r=="number"?r:Array.isArray(r)?r[0]:r.offset;if(s)s(a,n,o);else throw new wd.YAMLParseError([a,a+1],n,o)};switch(t.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return bd.resolveFlowScalar(t,e,i);case"block-scalar":return yd.resolveBlockScalar(t,e,i)}}return null}function vd(t,e){let{implicitKey:s=!1,indent:i,inFlow:r=!1,offset:n=-1,type:o="PLAIN"}=e,a=ba.stringifyString({type:o,value:t},{implicitKey:s,indent:i>0?" ".repeat(i):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}}),l=e.end??[{type:"newline",offset:-1,indent:i,source:`
|
|
116
|
-
`}];switch(a[0]){case"|":case">":{let c=a.indexOf(`
|
|
117
|
-
`),d=a.substring(0,c),u=a.substring(c+1)+`
|
|
118
|
-
`,p=[{type:"block-scalar-header",offset:n,indent:i,source:d}];return wa(p,l)||p.push({type:"newline",offset:-1,indent:i,source:`
|
|
119
|
-
`}),{type:"block-scalar",offset:n,indent:i,props:p,source:u}}case'"':return {type:"double-quoted-scalar",offset:n,indent:i,source:a,end:l};case"'":return {type:"single-quoted-scalar",offset:n,indent:i,source:a,end:l};default:return {type:"scalar",offset:n,indent:i,source:a,end:l}}}function Ld(t,e,s={}){let{afterKey:i=!1,implicitKey:r=!1,inFlow:n=!1,type:o}=s,a="indent"in t?t.indent:null;if(i&&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":{let c=t.props[0];if(c.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN";}let l=ba.stringifyString({type:o,value:e},{implicitKey:r||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:n,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":Ed(t,l);break;case'"':tr(t,l,"double-quoted-scalar");break;case"'":tr(t,l,"single-quoted-scalar");break;default:tr(t,l,"scalar");}}function Ed(t,e){let s=e.indexOf(`
|
|
120
|
-
`),i=e.substring(0,s),r=e.substring(s+1)+`
|
|
121
|
-
`;if(t.type==="block-scalar"){let n=t.props[0];if(n.type!=="block-scalar-header")throw new Error("Invalid block scalar header");n.source=i,t.source=r;}else {let{offset:n}=t,o="indent"in t?t.indent:-1,a=[{type:"block-scalar-header",offset:n,indent:o,source:i}];wa(a,"end"in t?t.end:void 0)||a.push({type:"newline",offset:-1,indent:o,source:`
|
|
122
|
-
`});for(let l of Object.keys(t))l!=="type"&&l!=="offset"&&delete t[l];Object.assign(t,{type:"block-scalar",indent:o,props:a,source:r});}}function wa(t,e){if(e)for(let s of e)switch(s.type){case"space":case"comment":t.push(s);break;case"newline":return t.push(s),!0}return !1}function tr(t,e,s){switch(t.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":t.type=s,t.source=e;break;case"block-scalar":{let i=t.props.slice(1),r=e.length;t.props[0].type==="block-scalar-header"&&(r-=t.props[0].source.length);for(let n of i)n.offset+=r;delete t.props,Object.assign(t,{type:s,source:e,end:i});break}case"block-map":case"block-seq":{let r={type:"newline",offset:t.offset+e.length,indent:t.indent,source:`
|
|
123
|
-
`};delete t.items,Object.assign(t,{type:s,source:e,end:[r]});break}default:{let i="indent"in t?t.indent:-1,r="end"in t&&Array.isArray(t.end)?t.end.filter(n=>n.type==="space"||n.type==="comment"||n.type==="newline"):[];for(let n of Object.keys(t))n!=="type"&&n!=="offset"&&delete t[n];Object.assign(t,{type:s,indent:i,source:e,end:r});}}}Ss.createScalarToken=vd;Ss.resolveAsScalar=Sd;Ss.setScalarValue=Ld;});var La=b(va=>{d();var Ad=t=>"type"in t?Ls(t):vs(t);function Ls(t){switch(t.type){case"block-scalar":{let e="";for(let s of t.props)e+=Ls(s);return e+t.source}case"block-map":case"block-seq":{let e="";for(let s of t.items)e+=vs(s);return e}case"flow-collection":{let e=t.start.source;for(let s of t.items)e+=vs(s);for(let s of t.end)e+=s.source;return e}case"document":{let e=vs(t);if(t.end)for(let s of t.end)e+=s.source;return e}default:{let e=t.source;if("end"in t&&t.end)for(let s of t.end)e+=s.source;return e}}}function vs({start:t,key:e,sep:s,value:i}){let r="";for(let n of t)r+=n.source;if(e&&(r+=Ls(e)),s)for(let n of s)r+=n.source;return i&&(r+=Ls(i)),r}va.stringify=Ad;});var Ca=b(Na=>{d();var sr=Symbol("break visit"),Nd=Symbol("skip children"),Ea=Symbol("remove item");function Pe(t,e){"type"in t&&t.type==="document"&&(t={start:t.start,value:t.value}),Aa(Object.freeze([]),t,e);}Pe.BREAK=sr;Pe.SKIP=Nd;Pe.REMOVE=Ea;Pe.itemAtPath=(t,e)=>{let s=t;for(let[i,r]of e){let n=s?.[i];if(n&&"items"in n)s=n.items[r];else return}return s};Pe.parentCollection=(t,e)=>{let s=Pe.itemAtPath(t,e.slice(0,-1)),i=e[e.length-1][0],r=s?.[i];if(r&&"items"in r)return r;throw new Error("Parent collection not found")};function Aa(t,e,s){let i=s(e,t);if(typeof i=="symbol")return i;for(let r of ["key","value"]){let n=e[r];if(n&&"items"in n){for(let o=0;o<n.items.length;++o){let a=Aa(Object.freeze(t.concat([[r,o]])),n.items[o],s);if(typeof a=="number")o=a-1;else {if(a===sr)return sr;a===Ea&&(n.items.splice(o,1),o-=1);}}typeof i=="function"&&r==="key"&&(i=i(e,t));}}return typeof i=="function"?i(e,t):i}Na.visit=Pe;});var Es=b(W=>{d();var ir=Sa(),Cd=La(),Od=Ca(),rr="\uFEFF",nr="",or="",ar="",Pd=t=>!!t&&"items"in t,kd=t=>!!t&&(t.type==="scalar"||t.type==="single-quoted-scalar"||t.type==="double-quoted-scalar"||t.type==="block-scalar");function Id(t){switch(t){case rr:return "<BOM>";case nr:return "<DOC>";case or:return "<FLOW_END>";case ar:return "<SCALAR>";default:return JSON.stringify(t)}}function Td(t){switch(t){case rr:return "byte-order-mark";case nr:return "doc-mode";case or:return "flow-error-end";case ar:return "scalar";case"---":return "doc-start";case"...":return "doc-end";case"":case`
|
|
124
|
-
`:case`\r
|
|
125
|
-
`: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}W.createScalarToken=ir.createScalarToken;W.resolveAsScalar=ir.resolveAsScalar;W.setScalarValue=ir.setScalarValue;W.stringify=Cd.stringify;W.visit=Od.visit;W.BOM=rr;W.DOCUMENT=nr;W.FLOW_END=or;W.SCALAR=ar;W.isCollection=Pd;W.isScalar=kd;W.prettyToken=Id;W.tokenType=Td;});var ur=b(Pa=>{d();var vt=Es();function z(t){switch(t){case void 0:case" ":case`
|
|
126
|
-
`:case"\r":case" ":return !0;default:return !1}}var Oa="0123456789ABCDEFabcdef".split(""),Dd="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),lr=",[]{}".split(""),$d=` ,[]{}
|
|
127
|
-
\r `.split(""),cr=t=>!t||$d.includes(t),fr=class{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,s=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!s;let i=this.next??"stream";for(;i&&(s||this.hasChars(1));)i=yield*this.parseNext(i);}atLineEnd(){let e=this.pos,s=this.buffer[e];for(;s===" "||s===" ";)s=this.buffer[++e];return !s||s==="#"||s===`
|
|
128
|
-
`?!0:s==="\r"?this.buffer[e+1]===`
|
|
129
|
-
`:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let s=this.buffer[e];if(this.indentNext>0){let i=0;for(;s===" ";)s=this.buffer[++i+e];if(s==="\r"){let r=this.buffer[i+e+1];if(r===`
|
|
130
|
-
`||!r&&!this.atEnd)return e+i+1}return s===`
|
|
131
|
-
`||i>=this.indentNext||!s&&!this.atEnd?e+i:-1}if(s==="-"||s==="."){let i=this.buffer.substr(e,3);if((i==="---"||i==="...")&&z(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(`
|
|
132
|
-
`,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]===vt.BOM&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let s=e.length,i=e.indexOf("#");if(i!==-1){let n=e[i-1];(n===" "||n===" ")&&(s=i-1);}for(;;){let n=e[s-1];if(n===" "||n===" ")s-=1;else break}let r=(yield*this.pushCount(s))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){let s=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-s),yield*this.pushNewline(),"stream"}return yield vt.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let 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");let s=this.peek(3);if(s==="---"&&z(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(s==="..."&&z(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!z(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,s]=this.peek(2);if(!s&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&z(s)){let i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,yield*this.parseBlockStart()}return "doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext("doc");let s=yield*this.pushIndicators();switch(e[s]){case"#":yield*this.pushCount(e.length-s);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(cr),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return s+=yield*this.parseBlockScalarHeader(),s+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-s),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,s,i=-1;do e=yield*this.pushNewline(),e>0?(s=yield*this.pushSpaces(!1),this.indentValue=i=s):s=0,s+=yield*this.pushSpaces(!0);while(e+s>0);let r=this.getLine();if(r===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&r[0]!=="#"||i===0&&(r.startsWith("---")||r.startsWith("..."))&&z(r[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(r[0]==="]"||r[0]==="}")))return this.flowLevel=0,yield vt.FLOW_END,yield*this.parseLineStart();let n=0;for(;r[n]===",";)n+=yield*this.pushCount(1),n+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(n+=yield*this.pushIndicators(),r[n]){case void 0:return "flow";case"#":return yield*this.pushCount(r.length-n),"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(cr),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let o=this.charAt(1);if(this.flowKey||z(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),s=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;s!==-1&&this.buffer[s+1]==="'";)s=this.buffer.indexOf("'",s+2);else for(;s!==-1;){let n=0;for(;this.buffer[s-1-n]==="\\";)n+=1;if(n%2===0)break;s=this.buffer.indexOf('"',s+1);}let i=this.buffer.substring(0,s),r=i.indexOf(`
|
|
133
|
-
`,this.pos);if(r!==-1){for(;r!==-1;){let n=this.continueScalar(r+1);if(n===-1)break;r=i.indexOf(`
|
|
134
|
-
`,n);}r!==-1&&(s=r-(i[r-1]==="\r"?2:1));}if(s===-1){if(!this.atEnd)return this.setNext("quoted-scalar");s=this.buffer.length;}return yield*this.pushToIndex(s+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let s=this.buffer[++e];if(s==="+")this.blockScalarKeep=!0;else if(s>"0"&&s<="9")this.blockScalarIndent=Number(s)-1;else if(s!=="-")break}return yield*this.pushUntil(s=>z(s)||s==="#")}*parseBlockScalar(){let e=this.pos-1,s=0,i;e:for(let r=this.pos;i=this.buffer[r];++r)switch(i){case" ":s+=1;break;case`
|
|
135
|
-
`:e=r,s=0;break;case"\r":{let n=this.buffer[r+1];if(!n&&!this.atEnd)return this.setNext("block-scalar");if(n===`
|
|
136
|
-
`)break}default:break e}if(!i&&!this.atEnd)return this.setNext("block-scalar");if(s>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=s:this.indentNext+=this.blockScalarIndent;do{let r=this.continueScalar(e+1);if(r===-1)break;e=this.buffer.indexOf(`
|
|
137
|
-
`,r);}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length;}}if(!this.blockScalarKeep)do{let r=e-1,n=this.buffer[r];n==="\r"&&(n=this.buffer[--r]);let o=r;for(;n===" "||n===" ";)n=this.buffer[--r];if(n===`
|
|
138
|
-
`&&r>=this.pos&&r+1+s>o)e=r;else break}while(!0);return yield vt.SCALAR,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,s=this.pos-1,i=this.pos-1,r;for(;r=this.buffer[++i];)if(r===":"){let n=this.buffer[i+1];if(z(n)||e&&n===",")break;s=i;}else if(z(r)){let n=this.buffer[i+1];if(r==="\r"&&(n===`
|
|
139
|
-
`?(i+=1,r=`
|
|
140
|
-
`,n=this.buffer[i+1]):s=i),n==="#"||e&&lr.includes(n))break;if(r===`
|
|
141
|
-
`){let o=this.continueScalar(i+1);if(o===-1)break;i=Math.max(i,o-2);}}else {if(e&&lr.includes(r))break;s=i;}return !r&&!this.atEnd?this.setNext("plain-scalar"):(yield vt.SCALAR,yield*this.pushToIndex(s+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,s){let i=this.buffer.slice(this.pos,e);return i?(yield i,this.pos+=i.length,i.length):(s&&(yield ""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return (yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return (yield*this.pushUntil(cr))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,s=this.charAt(1);if(z(s)||e&&lr.includes(s))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,s=this.buffer[e];for(;!z(s)&&s!==">";)s=this.buffer[++e];return yield*this.pushToIndex(s===">"?e+1:e,!1)}else {let e=this.pos+1,s=this.buffer[e];for(;s;)if(Dd.includes(s))s=this.buffer[++e];else if(s==="%"&&Oa.includes(this.buffer[e+1])&&Oa.includes(this.buffer[e+2]))s=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
|
|
142
|
-
`?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
|
|
143
|
-
`?yield*this.pushCount(2):0}*pushSpaces(e){let s=this.pos-1,i;do i=this.buffer[++s];while(i===" "||e&&i===" ");let r=s-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=s),r}*pushUntil(e){let s=this.pos,i=this.buffer[s];for(;!e(i);)i=this.buffer[++s];return yield*this.pushToIndex(s,!1)}};Pa.Lexer=fr;});var pr=b(ka=>{d();var hr=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let s=0,i=this.lineStarts.length;for(;s<i;){let n=s+i>>1;this.lineStarts[n]<e?s=n+1:i=n;}if(this.lineStarts[s]===e)return {line:s+1,col:1};if(s===0)return {line:0,col:e};let r=this.lineStarts[s-1];return {line:s,col:e-r+1}};}};ka.LineCounter=hr;});var mr=b(Ra=>{d();var Ia=Es(),Rd=ur();function H(t,e){for(let s=0;s<t.length;++s)if(t[s].type===e)return !0;return !1}function Ta(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}function $a(t){switch(t?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return !0;default:return !1}}function As(t){switch(t.type){case"document":return t.start;case"block-map":{let 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 []}}function je(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)}function Da(t){if(t.start.type==="flow-seq-start")for(let e of t.items)e.sep&&!e.value&&!H(e.start,"explicit-key-ind")&&!H(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,$a(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep);}var dr=class{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 Rd.Lexer,this.onNewLine=e;}*parse(e,s=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let i of this.lexer.lex(e,s))yield*this.next(i);s||(yield*this.end());}*next(e){if(this.source=e,process.env.LOG_TOKENS&&console.log("|",Ia.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let s=Ia.tokenType(e);if(s)if(s==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else {switch(this.type=s,yield*this.step(),s){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 {let i=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:i,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(){let e=this.peek(1);if(this.type==="doc-end"&&(!e||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){let s=e??this.stack.pop();if(!s)yield {type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield s;else {let i=this.peek(1);switch(s.type==="block-scalar"?s.indent="indent"in i?i.indent:0:s.type==="flow-collection"&&i.type==="document"&&(s.indent=0),s.type==="flow-collection"&&Da(s),i.type){case"document":i.value=s;break;case"block-scalar":i.props.push(s);break;case"block-map":{let r=i.items[i.items.length-1];if(r.value){i.items.push({start:[],key:s,sep:[]}),this.onKeyLine=!0;return}else if(r.sep)r.value=s;else {Object.assign(r,{key:s,sep:[]}),this.onKeyLine=!H(r.start,"explicit-key-ind");return}break}case"block-seq":{let r=i.items[i.items.length-1];r.value?i.items.push({start:[],value:s}):r.value=s;break}case"flow-collection":{let r=i.items[i.items.length-1];!r||r.value?i.items.push({start:[],key:s,sep:[]}):r.sep?r.value=s:Object.assign(r,{key:s,sep:[]});return}default:yield*this.pop(),yield*this.pop(s);}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(s.type==="block-map"||s.type==="block-seq")){let r=s.items[s.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&Ta(r.start)===-1&&(s.indent===0||r.start.every(n=>n.type!=="comment"||n.indent<s.indent))&&(i.type==="document"?i.end=r.start:i.items.push({start:r.start}),s.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":{let 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":{Ta(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}let s=this.startBlockValue(e);s?this.stack.push(s):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"){let s=As(this.peek(2)),i=je(s),r;e.end?(r=e.end,r.push(this.sourceToken),delete e.end):r=[this.sourceToken];let n={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:i,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=n;}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 s=this.source.indexOf(`
|
|
144
|
-
`)+1;for(;s!==0;)this.onNewLine(this.offset+s),s=this.source.indexOf(`
|
|
145
|
-
`,s)+1;}yield*this.pop();break;default:yield*this.pop(),yield*this.step();}}*blockMap(e){let s=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,s.value){let i="end"in s.value?s.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):e.items.push({start:[this.sourceToken]});}else s.sep?s.sep.push(this.sourceToken):s.start.push(this.sourceToken);return;case"space":case"comment":if(s.value)e.items.push({start:[this.sourceToken]});else if(s.sep)s.sep.push(this.sourceToken);else {if(this.atIndentedComment(s.start,e.indent)){let r=e.items[e.items.length-2]?.value?.end;if(Array.isArray(r)){Array.prototype.push.apply(r,s.start),r.push(this.sourceToken),e.items.pop();return}}s.start.push(this.sourceToken);}return}if(this.indent>=e.indent){let i=!this.onKeyLine&&this.indent===e.indent&&s.sep&&this.type!=="seq-item-ind",r=[];if(i&&s.sep&&!s.value){let n=[];for(let o=0;o<s.sep.length;++o){let a=s.sep[o];switch(a.type){case"newline":n.push(o);break;case"space":break;case"comment":a.indent>e.indent&&(n.length=0);break;default:n.length=0;}}n.length>=2&&(r=s.sep.splice(n[1]));}switch(this.type){case"anchor":case"tag":i||s.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):s.sep?s.sep.push(this.sourceToken):s.start.push(this.sourceToken);return;case"explicit-key-ind":!s.sep&&!H(s.start,"explicit-key-ind")?s.start.push(this.sourceToken):i||s.value?(r.push(this.sourceToken),e.items.push({start:r})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(H(s.start,"explicit-key-ind"))if(s.sep)if(s.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(H(s.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if($a(s.key)&&!H(s.sep,"newline")){let n=je(s.start),o=s.key,a=s.sep;a.push(this.sourceToken),delete s.key,delete s.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:o,sep:a}]});}else r.length>0?s.sep=s.sep.concat(r,this.sourceToken):s.sep.push(this.sourceToken);else if(H(s.start,"newline"))Object.assign(s,{key:null,sep:[this.sourceToken]});else {let n=je(s.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]});}else s.sep?s.value||i?e.items.push({start:r,key:null,sep:[this.sourceToken]}):H(s.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):s.sep.push(this.sourceToken):Object.assign(s,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);i||s.value?(e.items.push({start:r,key:n,sep:[]}),this.onKeyLine=!0):s.sep?this.stack.push(n):(Object.assign(s,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let n=this.startBlockValue(e);if(n){i&&n.type!=="block-seq"&&H(s.start,"explicit-key-ind")&&e.items.push({start:r}),this.stack.push(n);return}}}}yield*this.pop(),yield*this.step();}*blockSequence(e){let s=e.items[e.items.length-1];switch(this.type){case"newline":if(s.value){let i="end"in s.value?s.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):e.items.push({start:[this.sourceToken]});}else s.start.push(this.sourceToken);return;case"space":case"comment":if(s.value)e.items.push({start:[this.sourceToken]});else {if(this.atIndentedComment(s.start,e.indent)){let r=e.items[e.items.length-2]?.value?.end;if(Array.isArray(r)){Array.prototype.push.apply(r,s.start),r.push(this.sourceToken),e.items.pop();return}}s.start.push(this.sourceToken);}return;case"anchor":case"tag":if(s.value||this.indent<=e.indent)break;s.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;s.value||H(s.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):s.start.push(this.sourceToken);return}if(this.indent>e.indent){let i=this.startBlockValue(e);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step();}*flowCollection(e){let s=e.items[e.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i&&i.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!s||s.sep?e.items.push({start:[this.sourceToken]}):s.start.push(this.sourceToken);return;case"map-value-ind":!s||s.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):s.sep?s.sep.push(this.sourceToken):Object.assign(s,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!s||s.value?e.items.push({start:[this.sourceToken]}):s.sep?s.sep.push(this.sourceToken):s.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let r=this.flowScalar(this.type);!s||s.value?e.items.push({start:[],key:r,sep:[]}):s.sep?this.stack.push(r):Object.assign(s,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let i=this.startBlockValue(e);i?this.stack.push(i):(yield*this.pop(),yield*this.step());}else {let i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===e.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){let r=As(i),n=je(r);Da(e);let o=e.end.splice(1,e.end.length);o.push(this.sourceToken);let a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,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 s=this.source.indexOf(`
|
|
146
|
-
`)+1;for(;s!==0;)this.onNewLine(this.offset+s),s=this.source.indexOf(`
|
|
147
|
-
`,s)+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;let s=As(e),i=je(s);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i}]}}case"map-value-ind":{this.onKeyLine=!0;let s=As(e),i=je(s);return {type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,s){return this.type!=="comment"||this.indent<=s?!1:e.every(i=>i.type==="newline"||i.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;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop());}}};Ra.Parser=dr;});var xa=b(Et=>{d();var Fa=er(),Fd=dt(),Lt=yt(),_d=Qs(),Md=pr(),_a=mr();function Ma(t){let e=t.prettyErrors!==!1;return {lineCounter:t.lineCounter||e&&new Md.LineCounter||null,prettyErrors:e}}function qd(t,e={}){let{lineCounter:s,prettyErrors:i}=Ma(e),r=new _a.Parser(s?.addNewLine),n=new Fa.Composer(e),o=Array.from(n.compose(r.parse(t)));if(i&&s)for(let a of o)a.errors.forEach(Lt.prettifyError(t,s)),a.warnings.forEach(Lt.prettifyError(t,s));return o.length>0?o:Object.assign([],{empty:!0},n.streamInfo())}function qa(t,e={}){let{lineCounter:s,prettyErrors:i}=Ma(e),r=new _a.Parser(s?.addNewLine),n=new Fa.Composer(e),o=null;for(let a of n.compose(r.parse(t),!0,t.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new Lt.YAMLParseError(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&s&&(o.errors.forEach(Lt.prettifyError(t,s)),o.warnings.forEach(Lt.prettifyError(t,s))),o}function xd(t,e,s){let i;typeof e=="function"?i=e:s===void 0&&e&&typeof e=="object"&&(s=e);let r=qa(t,s);if(!r)return null;if(r.warnings.forEach(n=>_d.warn(r.options.logLevel,n)),r.errors.length>0){if(r.options.logLevel!=="silent")throw r.errors[0];r.errors=[];}return r.toJS(Object.assign({reviver:i},s))}function Bd(t,e,s){let i=null;if(typeof e=="function"||Array.isArray(e)?i=e:s===void 0&&e&&(s=e),typeof s=="string"&&(s=s.length),typeof s=="number"){let r=Math.round(s);s=r<1?void 0:r>8?{indent:8}:{indent:r};}if(t===void 0){let{keepUndefined:r}=s??e??{};if(!r)return}return new Fd.Document(t,i,s).toString(s)}Et.parse=xd;Et.parseAllDocuments=qd;Et.parseDocument=qa;Et.stringify=Bd;});var Ua=b($=>{d();var Ud=er(),Gd=dt(),jd=Ri(),gr=yt(),Yd=et(),ge=D(),Wd=he(),Kd=M(),Jd=de(),zd=me(),Hd=Es(),Vd=ur(),Xd=pr(),Qd=mr(),Ns=xa(),Ba=Ve();$.Composer=Ud.Composer;$.Document=Gd.Document;$.Schema=jd.Schema;$.YAMLError=gr.YAMLError;$.YAMLParseError=gr.YAMLParseError;$.YAMLWarning=gr.YAMLWarning;$.Alias=Yd.Alias;$.isAlias=ge.isAlias;$.isCollection=ge.isCollection;$.isDocument=ge.isDocument;$.isMap=ge.isMap;$.isNode=ge.isNode;$.isPair=ge.isPair;$.isScalar=ge.isScalar;$.isSeq=ge.isSeq;$.Pair=Wd.Pair;$.Scalar=Kd.Scalar;$.YAMLMap=Jd.YAMLMap;$.YAMLSeq=zd.YAMLSeq;$.CST=Hd;$.Lexer=Vd.Lexer;$.LineCounter=Xd.LineCounter;$.Parser=Qd.Parser;$.parse=Ns.parse;$.parseAllDocuments=Ns.parseAllDocuments;$.parseDocument=Ns.parseDocument;$.stringify=Ns.stringify;$.visit=Ba.visit;$.visitAsync=Ba.visitAsync;});var yr=b((C1,al)=>{d();var Gm=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};al.exports=Gm;});var br=b((P1,ll)=>{d();var jm="2.0.0",Ym=Number.MAX_SAFE_INTEGER||9007199254740991,Wm=16,Km=250,Jm=["major","premajor","minor","preminor","patch","prepatch","prerelease"];ll.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Wm,MAX_SAFE_BUILD_LENGTH:Km,MAX_SAFE_INTEGER:Ym,RELEASE_TYPES:Jm,SEMVER_SPEC_VERSION:jm,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};});var fl=b((oe,cl)=>{d();var{MAX_SAFE_COMPONENT_LENGTH:wr,MAX_SAFE_BUILD_LENGTH:zm,MAX_LENGTH:Hm}=br(),Vm=yr();oe=cl.exports={};var Xm=oe.re=[],Qm=oe.safeRe=[],A=oe.src=[],N=oe.t={},Zm=0,Sr="[a-zA-Z0-9-]",eg=[["\\s",1],["\\d",Hm],[Sr,zm]],tg=t=>{for(let[e,s]of eg)t=t.split(`${e}*`).join(`${e}{0,${s}}`).split(`${e}+`).join(`${e}{1,${s}}`);return t},k=(t,e,s)=>{let i=tg(e),r=Zm++;Vm(t,r,e),N[t]=r,A[r]=e,Xm[r]=new RegExp(e,s?"g":void 0),Qm[r]=new RegExp(i,s?"g":void 0);};k("NUMERICIDENTIFIER","0|[1-9]\\d*");k("NUMERICIDENTIFIERLOOSE","\\d+");k("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Sr}*`);k("MAINVERSION",`(${A[N.NUMERICIDENTIFIER]})\\.(${A[N.NUMERICIDENTIFIER]})\\.(${A[N.NUMERICIDENTIFIER]})`);k("MAINVERSIONLOOSE",`(${A[N.NUMERICIDENTIFIERLOOSE]})\\.(${A[N.NUMERICIDENTIFIERLOOSE]})\\.(${A[N.NUMERICIDENTIFIERLOOSE]})`);k("PRERELEASEIDENTIFIER",`(?:${A[N.NUMERICIDENTIFIER]}|${A[N.NONNUMERICIDENTIFIER]})`);k("PRERELEASEIDENTIFIERLOOSE",`(?:${A[N.NUMERICIDENTIFIERLOOSE]}|${A[N.NONNUMERICIDENTIFIER]})`);k("PRERELEASE",`(?:-(${A[N.PRERELEASEIDENTIFIER]}(?:\\.${A[N.PRERELEASEIDENTIFIER]})*))`);k("PRERELEASELOOSE",`(?:-?(${A[N.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${A[N.PRERELEASEIDENTIFIERLOOSE]})*))`);k("BUILDIDENTIFIER",`${Sr}+`);k("BUILD",`(?:\\+(${A[N.BUILDIDENTIFIER]}(?:\\.${A[N.BUILDIDENTIFIER]})*))`);k("FULLPLAIN",`v?${A[N.MAINVERSION]}${A[N.PRERELEASE]}?${A[N.BUILD]}?`);k("FULL",`^${A[N.FULLPLAIN]}$`);k("LOOSEPLAIN",`[v=\\s]*${A[N.MAINVERSIONLOOSE]}${A[N.PRERELEASELOOSE]}?${A[N.BUILD]}?`);k("LOOSE",`^${A[N.LOOSEPLAIN]}$`);k("GTLT","((?:<|>)?=?)");k("XRANGEIDENTIFIERLOOSE",`${A[N.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);k("XRANGEIDENTIFIER",`${A[N.NUMERICIDENTIFIER]}|x|X|\\*`);k("XRANGEPLAIN",`[v=\\s]*(${A[N.XRANGEIDENTIFIER]})(?:\\.(${A[N.XRANGEIDENTIFIER]})(?:\\.(${A[N.XRANGEIDENTIFIER]})(?:${A[N.PRERELEASE]})?${A[N.BUILD]}?)?)?`);k("XRANGEPLAINLOOSE",`[v=\\s]*(${A[N.XRANGEIDENTIFIERLOOSE]})(?:\\.(${A[N.XRANGEIDENTIFIERLOOSE]})(?:\\.(${A[N.XRANGEIDENTIFIERLOOSE]})(?:${A[N.PRERELEASELOOSE]})?${A[N.BUILD]}?)?)?`);k("XRANGE",`^${A[N.GTLT]}\\s*${A[N.XRANGEPLAIN]}$`);k("XRANGELOOSE",`^${A[N.GTLT]}\\s*${A[N.XRANGEPLAINLOOSE]}$`);k("COERCEPLAIN",`(^|[^\\d])(\\d{1,${wr}})(?:\\.(\\d{1,${wr}}))?(?:\\.(\\d{1,${wr}}))?`);k("COERCE",`${A[N.COERCEPLAIN]}(?:$|[^\\d])`);k("COERCEFULL",A[N.COERCEPLAIN]+`(?:${A[N.PRERELEASE]})?(?:${A[N.BUILD]})?(?:$|[^\\d])`);k("COERCERTL",A[N.COERCE],!0);k("COERCERTLFULL",A[N.COERCEFULL],!0);k("LONETILDE","(?:~>?)");k("TILDETRIM",`(\\s*)${A[N.LONETILDE]}\\s+`,!0);oe.tildeTrimReplace="$1~";k("TILDE",`^${A[N.LONETILDE]}${A[N.XRANGEPLAIN]}$`);k("TILDELOOSE",`^${A[N.LONETILDE]}${A[N.XRANGEPLAINLOOSE]}$`);k("LONECARET","(?:\\^)");k("CARETTRIM",`(\\s*)${A[N.LONECARET]}\\s+`,!0);oe.caretTrimReplace="$1^";k("CARET",`^${A[N.LONECARET]}${A[N.XRANGEPLAIN]}$`);k("CARETLOOSE",`^${A[N.LONECARET]}${A[N.XRANGEPLAINLOOSE]}$`);k("COMPARATORLOOSE",`^${A[N.GTLT]}\\s*(${A[N.LOOSEPLAIN]})$|^$`);k("COMPARATOR",`^${A[N.GTLT]}\\s*(${A[N.FULLPLAIN]})$|^$`);k("COMPARATORTRIM",`(\\s*)${A[N.GTLT]}\\s*(${A[N.LOOSEPLAIN]}|${A[N.XRANGEPLAIN]})`,!0);oe.comparatorTrimReplace="$1$2$3";k("HYPHENRANGE",`^\\s*(${A[N.XRANGEPLAIN]})\\s+-\\s+(${A[N.XRANGEPLAIN]})\\s*$`);k("HYPHENRANGELOOSE",`^\\s*(${A[N.XRANGEPLAINLOOSE]})\\s+-\\s+(${A[N.XRANGEPLAINLOOSE]})\\s*$`);k("STAR","(<|>)?=?\\s*\\*");k("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");k("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");});var hl=b((T1,ul)=>{d();var sg=Object.freeze({loose:!0}),ig=Object.freeze({}),rg=t=>t?typeof t!="object"?sg:t:ig;ul.exports=rg;});var gl=b(($1,ml)=>{d();var pl=/^[0-9]+$/,dl=(t,e)=>{let s=pl.test(t),i=pl.test(e);return s&&i&&(t=+t,e=+e),t===e?0:s&&!i?-1:i&&!s?1:t<e?-1:1},ng=(t,e)=>dl(e,t);ml.exports={compareIdentifiers:dl,rcompareIdentifiers:ng};});var vl=b((F1,Sl)=>{d();var Cs=yr(),{MAX_LENGTH:yl,MAX_SAFE_INTEGER:Os}=br(),{safeRe:bl,t:wl}=fl(),og=hl(),{compareIdentifiers:Ye}=gl(),vr=class t{constructor(e,s){if(s=og(s),e instanceof t){if(e.loose===!!s.loose&&e.includePrerelease===!!s.includePrerelease)return e;e=e.version;}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>yl)throw new TypeError(`version is longer than ${yl} characters`);Cs("SemVer",e,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;let i=e.trim().match(s.loose?bl[wl.LOOSE]:bl[wl.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>Os||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Os||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Os||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let n=+r;if(n>=0&&n<Os)return n}return r}):this.prerelease=[],this.build=i[5]?i[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(e){if(Cs("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options);}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),Ye(this.major,e.major)||Ye(this.minor,e.minor)||Ye(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let s=0;do{let i=this.prerelease[s],r=e.prerelease[s];if(Cs("prerelease compare",s,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return -1;if(i===r)continue;return Ye(i,r)}while(++s)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let s=0;do{let i=this.build[s],r=e.build[s];if(Cs("prerelease compare",s,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return -1;if(i===r)continue;return Ye(i,r)}while(++s)}inc(e,s,i){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s,i),this.inc("pre",s,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",s,i),this.inc("pre",s,i);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":{let r=Number(i)?1:0;if(!s&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[r];else {let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);if(n===-1){if(s===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r);}}if(s){let n=[s,r];i===!1&&(n=[s]),Ye(this.prerelease[0],s)===0?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n;}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Sl.exports=vr;});var Lr=b((M1,El)=>{d();var Ll=vl(),ag=(t,e,s=!1)=>{if(t instanceof Ll)return t;try{return new Ll(t,e)}catch(i){if(!s)return null;throw i}};El.exports=ag;});var Nl=b((x1,Al)=>{d();var lg=Lr(),cg=(t,e)=>{let s=lg(t,e);return s?s.version:null};Al.exports=cg;});var Ol=b((U1,Cl)=>{d();var fg=Lr(),ug=(t,e)=>{let s=fg(t.trim().replace(/^[=v]+/,""),e);return s?s.version:null};Cl.exports=ug;});var Er=b((j1,hg)=>{hg.exports=["0BSD","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","AMDPLPA","AML","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Glyph","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","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","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-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Protection","BSD-Source-Code","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Borceux","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","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-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-4.0","CC-PDDC","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","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","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Crossword","CrystalStacker","Cube","D-FSL-1.0","DL-DE-BY-2.0","DOC","DRL-1.0","DSDP","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FDK-AAC","FSFAP","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Frameworx-1.0","FreeBSD-DOC","FreeImage","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","Giftware","Glide","Glulxe","Graphics-Gems","HP-1986","HPND","HPND-Markus-Kuhn","HPND-export-US","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ImageMagick","Imlib2","Info-ZIP","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","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","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","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-copyleft","MIT","MIT-0","MIT-CMU","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MITNFA","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","MakeIndex","Martin-Birgmeier","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCGL-UK-2.0","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","Net-SNMP","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","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","OML","OPL-1.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","PDDL-1.0","PHP-3.0","PHP-3.01","PSF-2.0","Parity-6.0.0","Parity-7.0.0","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","SAX-PD","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","SimPL-2.0","Sleepycat","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TU-Berlin-1.0","TU-Berlin-2.0","UCAR","UCL-1.0","UPL-1.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Wsuipa","X11","X11-distribute-modifications-variant","XFree86-1.1","XSkat","Xerox","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","blessing","bzip2-1.0.6","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","diffmark","dvipdfm","eGenix","etalab-2.0","gSOAP-1.3b","gnuplot","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","mpi-permissive","mpich2","mplus","psfrag","psutils","snprintf","w3m","xinetd","xlock","xpp","zlib-acknowledgement"];});var Pl=b((Y1,pg)=>{pg.exports=["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","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"];});var kl=b((W1,dg)=>{dg.exports=["389-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-3.1","gnu-javamail-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","i2p-gpl-java-exception","Libtool-exception","Linux-syscall-note","LLVM-exception","LZMA-exception","mif-exception","Nokia-Qt-exception-1.1","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","Swift-exception","u-boot-exception-2.0","Universal-FOSS-exception-1.0","WxWindows-exception-3.1"];});var Tl=b((K1,Il)=>{d();var mg=[].concat(Er()).concat(Pl()),gg=kl();Il.exports=function(t){var e=0;function s(){return e<t.length}function i(y){if(y instanceof RegExp){var h=t.slice(e),m=h.match(y);if(m)return e+=m[0].length,m[0]}else if(t.indexOf(y,e)===e)return e+=y.length,y}function r(){i(/[ ]*/);}function n(){for(var y,h=["WITH","AND","OR","(",")",":","+"],m=0;m<h.length&&(y=i(h[m]),!y);m++);if(y==="+"&&e>1&&t[e-2]===" ")throw new Error("Space before `+`");return y&&{type:"OPERATOR",string:y}}function o(){return i(/[A-Za-z0-9-.]+/)}function a(){var y=o();if(!y)throw new Error("Expected idstring at offset "+e);return y}function l(){if(i("DocumentRef-")){var y=a();return {type:"DOCUMENTREF",string:y}}}function c(){if(i("LicenseRef-")){var y=a();return {type:"LICENSEREF",string:y}}}function d(){var y=e,h=o();if(mg.indexOf(h)!==-1)return {type:"LICENSE",string:h};if(gg.indexOf(h)!==-1)return {type:"EXCEPTION",string:h};e=y;}function u(){return n()||l()||c()||d()}for(var p=[];s()&&(r(),!!s());){var g=u();if(!g)throw new Error("Unexpected `"+t[e]+"` at offset "+e);p.push(g);}return p};});var $l=b((z1,Dl)=>{d();Dl.exports=function(t){var e=0;function s(){return e<t.length}function i(){return s()?t[e]:null}function r(){if(!s())throw new Error;e++;}function n(h){var m=i();if(m&&m.type==="OPERATOR"&&h===m.string)return r(),m.string}function o(){if(n("WITH")){var h=i();if(h&&h.type==="EXCEPTION")return r(),h.string;throw new Error("Expected exception after `WITH`")}}function a(){var h=e,m="",v=i();if(v.type==="DOCUMENTREF"&&(r(),m+="DocumentRef-"+v.string+":",!n(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(v=i(),v.type==="LICENSEREF")return r(),m+="LicenseRef-"+v.string,{license:m};e=h;}function l(){var h=i();if(h&&h.type==="LICENSE"){r();var m={license:h.string};n("+")&&(m.plus=!0);var v=o();return v&&(m.exception=v),m}}function c(){var h=n("(");if(h){var m=g();if(!n(")"))throw new Error("Expected `)`");return m}}function d(){return c()||a()||l()}function u(h,m){return function v(){var E=m();if(E){if(!n(h))return E;var O=v();if(!O)throw new Error("Expected expression");return {left:E,conjunction:h.toLowerCase(),right:O}}}}var p=u("AND",d),g=u("OR",p),y=g();if(!y||s())throw new Error("Syntax error");return y};});var Ar=b((V1,Rl)=>{d();var yg=Tl(),bg=$l();Rl.exports=function(t){return bg(yg(t))};});var jl=b((Q1,Gl)=>{d();var wg=Ar(),Sg=Er();function Ps(t){try{return wg(t),!0}catch{return !1}}function Ul(t,e){var s=e[0].length-t[0].length;return s!==0?s:t[0].toUpperCase().localeCompare(e[0].toUpperCase())}var Fl=[["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(Ul),vg=0,Lg=1,_l=[function(t){return t.toUpperCase()},function(t){return t.trim()},function(t){return t.replace(/\./g,"")},function(t){return t.replace(/\s+/g,"")},function(t){return t.replace(/\s+/g,"-")},function(t){return t.replace("v","-")},function(t){return t.replace(/,?\s*(\d)/,"-$1")},function(t){return t.replace(/,?\s*(\d)/,"-$1.0")},function(t){return t.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(t){return t.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(t){return t[0].toUpperCase()+t.slice(1)},function(t){return t.replace("/","-")},function(t){return t.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(t){return t.indexOf("3.0")!==-1?t+"-or-later":t+"-only"},function(t){return t+"only"},function(t){return t.replace(/(\d)$/,"-$1.0")},function(t){return t.replace(/(-| )?(\d)$/,"-$2-Clause")},function(t){return t.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(t){return t.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(t){return t.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(t){return t.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(t){return t.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(t){return t.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(t){return "CC-"+t},function(t){return "CC-"+t+"-4.0"},function(t){return t.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(t){return "CC-"+t.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],Nr=Sg.map(function(t){var e=/^(.*)-\d+\.\d+$/.exec(t);return e?[e[0],e[1]]:[t,null]}).reduce(function(t,e){var s=e[1];return t[s]=t[s]||[],t[s].push(e[0]),t},{}),Eg=Object.keys(Nr).map(function(e){return [e,Nr[e]]}).filter(function(e){return e[1].length===1&&e[0]!==null&&e[0]!=="APL"}).map(function(e){return [e[0],e[1][0]]});Nr=void 0;var Ml=[["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(Eg).sort(Ul),Ag=0,Ng=1,ql=function(t){for(var e=0;e<_l.length;e++){var s=_l[e](t).trim();if(s!==t&&Ps(s))return s}return null},xl=function(t){for(var e=t.toUpperCase(),s=0;s<Ml.length;s++){var i=Ml[s];if(e.indexOf(i[Ag])>-1)return i[Ng]}return null},Bl=function(t,e){for(var s=0;s<Fl.length;s++){var i=Fl[s],r=i[vg];if(t.indexOf(r)>-1){var n=t.replace(r,i[Lg]),o=e(n);if(o!==null)return o}}return null};Gl.exports=function(t,e){e=e||{};var s=e.upgrade===void 0?!0:!!e.upgrade;function i(a){return s?Cg(a):a}var r=typeof t=="string"&&t.trim().length!==0;if(!r)throw Error("Invalid argument. Expected non-empty string.");if(t=t.trim(),Ps(t))return i(t);var n=t.replace(/\+$/,"").trim();if(Ps(n))return i(n);var o=ql(t);return o!==null||(o=Bl(t,function(a){return Ps(a)?a:ql(a)}),o!==null)||(o=xl(t),o!==null)||(o=Bl(t,xl),o!==null)?i(o):null};function Cg(t){return ["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(t)!==-1?t+"-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(t)!==-1?t.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(t)!==-1?t+"-or-later":t}});var Jl=b((e0,Kl)=>{d();var Og=Ar(),Pg=jl(),Yl='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',kg=/^SEE LICEN[CS]E IN (.+)$/;function Wl(t,e){return e.slice(0,t.length)===t}function Cr(t){if(t.hasOwnProperty("license")){var e=t.license;return Wl("LicenseRef",e)||Wl("DocumentRef",e)}else return Cr(t.left)||Cr(t.right)}Kl.exports=function(t){var e;try{e=Og(t);}catch{var s;if(t==="UNLICENSED"||t==="UNLICENCED")return {validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(s=kg.exec(t))return {validForOldPackages:!0,validForNewPackages:!0,inFile:s[1]};var i={validForOldPackages:!1,validForNewPackages:!1,warnings:[Yl]};if(t.trim().length!==0){var r=Pg(t);r&&i.warnings.push('license is similar to the valid expression "'+r+'"');}return i}return Cr(e)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[Yl]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}};});var Ql=b(Is=>{d();Object.defineProperty(Is,"__esModule",{value:!0});Is.LRUCache=void 0;var Ct=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Hl=new Set,Or=typeof process=="object"&&process?process:{},Vl=(t,e,s,i)=>{typeof Or.emitWarning=="function"?Or.emitWarning(t,e,s,i):console.error(`[${s}] ${e}: ${t}`);},ks=globalThis.AbortController,zl=globalThis.AbortSignal;if(typeof ks>"u"){zl=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,r){this._onabort.push(r);}},ks=class{constructor(){e();}signal=new zl;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let r of this.signal._onabort)r(i);this.signal.onabort?.(i);}}};let t=Or.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,Vl("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e));};}var Ig=t=>!Hl.has(t),we=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Xl=t=>we(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?We:null:null,We=class extends Array{constructor(e){super(e),this.fill(0);}},Pr=class t{heap;length;static#i=!1;static create(e){let s=Xl(e);if(!s)return [];t.#i=!0;let i=new t(e,s);return t.#i=!1,i}constructor(e,s){if(!t.#i)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new s(e),this.length=0;}push(e){this.heap[this.length++]=e;}pop(){return this.heap[--this.length]}},kr=class t{#i;#c;#t;#m;#k;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#n;#g;#o;#r;#e;#u;#p;#f;#a;#y;#l;#L;#E;#b;#w;#N;#h;static unsafeExposeInternals(e){return {starts:e.#E,ttls:e.#b,sizes:e.#L,keyMap:e.#o,keyList:e.#r,valList:e.#e,next:e.#u,prev:e.#p,get head(){return e.#f},get tail(){return e.#a},free:e.#y,isBackgroundFetch:s=>e.#s(s),backgroundFetch:(s,i,r,n)=>e.#D(s,i,r,n),moveToTail:s=>e.#P(s),indexes:s=>e.#S(s),rindexes:s=>e.#v(s),isStale:s=>e.#d(s)}}get max(){return this.#i}get maxSize(){return this.#c}get calculatedSize(){return this.#g}get size(){return this.#n}get fetchMethod(){return this.#k}get dispose(){return this.#t}get disposeAfter(){return this.#m}constructor(e){let{max:s=0,ttl:i,ttlResolution:r=1,ttlAutopurge:n,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:c,disposeAfter:d,noDisposeOnSet:u,noUpdateTTL:p,maxSize:g=0,maxEntrySize:y=0,sizeCalculation:h,fetchMethod:m,noDeleteOnFetchRejection:v,noDeleteOnStaleGet:E,allowStaleOnFetchRejection:O,allowStaleOnFetchAbort:C,ignoreFetchAbort:P}=e;if(s!==0&&!we(s))throw new TypeError("max option must be a nonnegative integer");let L=s?Xl(s):Array;if(!L)throw new Error("invalid max value: "+s);if(this.#i=s,this.#c=g,this.maxEntrySize=y||this.#c,this.sizeCalculation=h,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(m!==void 0&&typeof m!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#k=m,this.#N=!!m,this.#o=new Map,this.#r=new Array(s).fill(void 0),this.#e=new Array(s).fill(void 0),this.#u=new L(s),this.#p=new L(s),this.#f=0,this.#a=0,this.#y=Pr.create(s),this.#n=0,this.#g=0,typeof c=="function"&&(this.#t=c),typeof d=="function"?(this.#m=d,this.#l=[]):(this.#m=void 0,this.#l=void 0),this.#w=!!this.#t,this.#h=!!this.#m,this.noDisposeOnSet=!!u,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!v,this.allowStaleOnFetchRejection=!!O,this.allowStaleOnFetchAbort=!!C,this.ignoreFetchAbort=!!P,this.maxEntrySize!==0){if(this.#c!==0&&!we(this.#c))throw new TypeError("maxSize must be a positive integer if specified");if(!we(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#q();}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!E,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=we(r)||r===0?r:1,this.ttlAutopurge=!!n,this.ttl=i||0,this.ttl){if(!we(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#$();}if(this.#i===0&&this.ttl===0&&this.#c===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#i&&!this.#c){let I="LRU_CACHE_UNBOUNDED";Ig(I)&&(Hl.add(I),Vl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",I,t));}}getRemainingTTL(e){return this.#o.has(e)?1/0:0}#$(){let e=new We(this.#i),s=new We(this.#i);this.#b=e,this.#E=s,this.#R=(n,o,a=Ct.now())=>{if(s[n]=o!==0?a:0,e[n]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#d(n)&&this.delete(this.#r[n]);},o+1);l.unref&&l.unref();}},this.#C=n=>{s[n]=e[n]!==0?Ct.now():0;},this.#A=(n,o)=>{if(e[o]){let a=e[o],l=s[o];n.ttl=a,n.start=l,n.now=i||r();let c=n.now-l;n.remainingTTL=a-c;}};let i=0,r=()=>{let n=Ct.now();if(this.ttlResolution>0){i=n;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref();}return n};this.getRemainingTTL=n=>{let o=this.#o.get(n);if(o===void 0)return 0;let a=e[o],l=s[o];if(a===0||l===0)return 1/0;let c=(i||r())-l;return a-c},this.#d=n=>e[n]!==0&&s[n]!==0&&(i||r())-s[n]>e[n];}#C=()=>{};#A=()=>{};#R=()=>{};#d=()=>!1;#q(){let e=new We(this.#i);this.#g=0,this.#L=e,this.#O=s=>{this.#g-=e[s],e[s]=0;},this.#F=(s,i,r,n)=>{if(this.#s(i))return 0;if(!we(r))if(n){if(typeof n!="function")throw new TypeError("sizeCalculation must be a function");if(r=n(i,s),!we(r))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 r},this.#I=(s,i,r)=>{if(e[s]=i,this.#c){let n=this.#c-e[s];for(;this.#g>n;)this.#T(!0);}this.#g+=e[s],r&&(r.entrySize=i,r.totalCalculatedSize=this.#g);};}#O=e=>{};#I=(e,s,i)=>{};#F=(e,s,i,r)=>{if(i||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#S({allowStale:e=this.allowStale}={}){if(this.#n)for(let s=this.#a;!(!this.#_(s)||((e||!this.#d(s))&&(yield s),s===this.#f));)s=this.#p[s];}*#v({allowStale:e=this.allowStale}={}){if(this.#n)for(let s=this.#f;!(!this.#_(s)||((e||!this.#d(s))&&(yield s),s===this.#a));)s=this.#u[s];}#_(e){return e!==void 0&&this.#o.get(this.#r[e])===e}*entries(){for(let e of this.#S())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#s(this.#e[e])&&(yield [this.#r[e],this.#e[e]]);}*rentries(){for(let e of this.#v())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#s(this.#e[e])&&(yield [this.#r[e],this.#e[e]]);}*keys(){for(let e of this.#S()){let s=this.#r[e];s!==void 0&&!this.#s(this.#e[e])&&(yield s);}}*rkeys(){for(let e of this.#v()){let s=this.#r[e];s!==void 0&&!this.#s(this.#e[e])&&(yield s);}}*values(){for(let e of this.#S())this.#e[e]!==void 0&&!this.#s(this.#e[e])&&(yield this.#e[e]);}*rvalues(){for(let e of this.#v())this.#e[e]!==void 0&&!this.#s(this.#e[e])&&(yield this.#e[e]);}[Symbol.iterator](){return this.entries()}find(e,s={}){for(let i of this.#S()){let r=this.#e[i],n=this.#s(r)?r.__staleWhileFetching:r;if(n!==void 0&&e(n,this.#r[i],this))return this.get(this.#r[i],s)}}forEach(e,s=this){for(let i of this.#S()){let r=this.#e[i],n=this.#s(r)?r.__staleWhileFetching:r;n!==void 0&&e.call(s,n,this.#r[i],this);}}rforEach(e,s=this){for(let i of this.#v()){let r=this.#e[i],n=this.#s(r)?r.__staleWhileFetching:r;n!==void 0&&e.call(s,n,this.#r[i],this);}}purgeStale(){let e=!1;for(let s of this.#v({allowStale:!0}))this.#d(s)&&(this.delete(this.#r[s]),e=!0);return e}dump(){let e=[];for(let s of this.#S({allowStale:!0})){let i=this.#r[s],r=this.#e[s],n=this.#s(r)?r.__staleWhileFetching:r;if(n===void 0||i===void 0)continue;let o={value:n};if(this.#b&&this.#E){o.ttl=this.#b[s];let a=Ct.now()-this.#E[s];o.start=Math.floor(Date.now()-a);}this.#L&&(o.size=this.#L[s]),e.unshift([i,o]);}return e}load(e){this.clear();for(let[s,i]of e){if(i.start){let r=Date.now()-i.start;i.start=Ct.now()-r;}this.set(s,i.value,i);}}set(e,s,i={}){if(s===void 0)return this.delete(e),this;let{ttl:r=this.ttl,start:n,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:c=this.noUpdateTTL}=i,d=this.#F(e,s,i.size||0,a);if(this.maxEntrySize&&d>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(e),this;let u=this.#n===0?void 0:this.#o.get(e);if(u===void 0)u=this.#n===0?this.#a:this.#y.length!==0?this.#y.pop():this.#n===this.#i?this.#T(!1):this.#n,this.#r[u]=e,this.#e[u]=s,this.#o.set(e,u),this.#u[this.#a]=u,this.#p[u]=this.#a,this.#a=u,this.#n++,this.#I(u,d,l),l&&(l.set="add"),c=!1;else {this.#P(u);let p=this.#e[u];if(s!==p){if(this.#N&&this.#s(p)){p.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:g}=p;g!==void 0&&!o&&(this.#w&&this.#t?.(g,e,"set"),this.#h&&this.#l?.push([g,e,"set"]));}else o||(this.#w&&this.#t?.(p,e,"set"),this.#h&&this.#l?.push([p,e,"set"]));if(this.#O(u),this.#I(u,d,l),this.#e[u]=s,l){l.set="replace";let g=p&&this.#s(p)?p.__staleWhileFetching:p;g!==void 0&&(l.oldValue=g);}}else l&&(l.set="update");}if(r!==0&&!this.#b&&this.#$(),this.#b&&(c||this.#R(u,r,n),l&&this.#A(l,u)),!o&&this.#h&&this.#l){let p=this.#l,g;for(;g=p?.shift();)this.#m?.(...g);}return this}pop(){try{for(;this.#n;){let e=this.#e[this.#f];if(this.#T(!0),this.#s(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#l){let e=this.#l,s;for(;s=e?.shift();)this.#m?.(...s);}}}#T(e){let s=this.#f,i=this.#r[s],r=this.#e[s];return this.#N&&this.#s(r)?r.__abortController.abort(new Error("evicted")):(this.#w||this.#h)&&(this.#w&&this.#t?.(r,i,"evict"),this.#h&&this.#l?.push([r,i,"evict"])),this.#O(s),e&&(this.#r[s]=void 0,this.#e[s]=void 0,this.#y.push(s)),this.#n===1?(this.#f=this.#a=0,this.#y.length=0):this.#f=this.#u[s],this.#o.delete(i),this.#n--,s}has(e,s={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:r}=s,n=this.#o.get(e);if(n!==void 0){let o=this.#e[n];if(this.#s(o)&&o.__staleWhileFetching===void 0)return !1;if(this.#d(n))r&&(r.has="stale",this.#A(r,n));else return i&&this.#C(n),r&&(r.has="hit",this.#A(r,n)),!0}else r&&(r.has="miss");return !1}peek(e,s={}){let{allowStale:i=this.allowStale}=s,r=this.#o.get(e);if(r!==void 0&&(i||!this.#d(r))){let n=this.#e[r];return this.#s(n)?n.__staleWhileFetching:n}}#D(e,s,i,r){let n=s===void 0?void 0:this.#e[s];if(this.#s(n))return n;let o=new ks,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:r},c=(h,m=!1)=>{let{aborted:v}=o.signal,E=i.ignoreFetchAbort&&h!==void 0;if(i.status&&(v&&!m?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,E&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),v&&!E&&!m)return u(o.signal.reason);let O=g;return this.#e[s]===g&&(h===void 0?O.__staleWhileFetching?this.#e[s]=O.__staleWhileFetching:this.delete(e):(i.status&&(i.status.fetchUpdated=!0),this.set(e,h,l.options))),h},d=h=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=h),u(h)),u=h=>{let{aborted:m}=o.signal,v=m&&i.allowStaleOnFetchAbort,E=v||i.allowStaleOnFetchRejection,O=E||i.noDeleteOnFetchRejection,C=g;if(this.#e[s]===g&&(!O||C.__staleWhileFetching===void 0?this.delete(e):v||(this.#e[s]=C.__staleWhileFetching)),E)return i.status&&C.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),C.__staleWhileFetching;if(C.__returned===C)throw h},p=(h,m)=>{let v=this.#k?.(e,n,l);v&&v instanceof Promise&&v.then(E=>h(E===void 0?void 0:E),m),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(h(void 0),i.allowStaleOnFetchAbort&&(h=E=>c(E,!0)));});};i.status&&(i.status.fetchDispatched=!0);let g=new Promise(p).then(c,d),y=Object.assign(g,{__abortController:o,__staleWhileFetching:n,__returned:void 0});return s===void 0?(this.set(e,y,{...l.options,status:void 0}),s=this.#o.get(e)):this.#e[s]=y,y}#s(e){if(!this.#N)return !1;let s=e;return !!s&&s instanceof Promise&&s.hasOwnProperty("__staleWhileFetching")&&s.__abortController instanceof ks}async fetch(e,s={}){let{allowStale:i=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:p=this.allowStaleOnFetchRejection,ignoreFetchAbort:g=this.ignoreFetchAbort,allowStaleOnFetchAbort:y=this.allowStaleOnFetchAbort,context:h,forceRefresh:m=!1,status:v,signal:E}=s;if(!this.#N)return v&&(v.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:r,noDeleteOnStaleGet:n,status:v});let O={allowStale:i,updateAgeOnGet:r,noDeleteOnStaleGet:n,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:c,noUpdateTTL:d,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:p,allowStaleOnFetchAbort:y,ignoreFetchAbort:g,status:v,signal:E},C=this.#o.get(e);if(C===void 0){v&&(v.fetch="miss");let P=this.#D(e,C,O,h);return P.__returned=P}else {let P=this.#e[C];if(this.#s(P)){let V=i&&P.__staleWhileFetching!==void 0;return v&&(v.fetch="inflight",V&&(v.returnedStale=!0)),V?P.__staleWhileFetching:P.__returned=P}let L=this.#d(C);if(!m&&!L)return v&&(v.fetch="hit"),this.#P(C),r&&this.#C(C),v&&this.#A(v,C),P;let I=this.#D(e,C,O,h),x=I.__staleWhileFetching!==void 0&&i;return v&&(v.fetch=L?"stale":"refresh",x&&L&&(v.returnedStale=!0)),x?I.__staleWhileFetching:I.__returned=I}}get(e,s={}){let{allowStale:i=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:o}=s,a=this.#o.get(e);if(a!==void 0){let l=this.#e[a],c=this.#s(l);return o&&this.#A(o,a),this.#d(a)?(o&&(o.get="stale"),c?(o&&i&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?l.__staleWhileFetching:void 0):(n||this.delete(e),o&&i&&(o.returnedStale=!0),i?l:void 0)):(o&&(o.get="hit"),c?l.__staleWhileFetching:(this.#P(a),r&&this.#C(a),l))}else o&&(o.get="miss");}#M(e,s){this.#p[s]=e,this.#u[e]=s;}#P(e){e!==this.#a&&(e===this.#f?this.#f=this.#u[e]:this.#M(this.#p[e],this.#u[e]),this.#M(this.#a,e),this.#a=e);}delete(e){let s=!1;if(this.#n!==0){let i=this.#o.get(e);if(i!==void 0)if(s=!0,this.#n===1)this.clear();else {this.#O(i);let r=this.#e[i];this.#s(r)?r.__abortController.abort(new Error("deleted")):(this.#w||this.#h)&&(this.#w&&this.#t?.(r,e,"delete"),this.#h&&this.#l?.push([r,e,"delete"])),this.#o.delete(e),this.#r[i]=void 0,this.#e[i]=void 0,i===this.#a?this.#a=this.#p[i]:i===this.#f?this.#f=this.#u[i]:(this.#u[this.#p[i]]=this.#u[i],this.#p[this.#u[i]]=this.#p[i]),this.#n--,this.#y.push(i);}}if(this.#h&&this.#l?.length){let i=this.#l,r;for(;r=i?.shift();)this.#m?.(...r);}return s}clear(){for(let e of this.#v({allowStale:!0})){let s=this.#e[e];if(this.#s(s))s.__abortController.abort(new Error("deleted"));else {let i=this.#r[e];this.#w&&this.#t?.(s,i,"delete"),this.#h&&this.#l?.push([s,i,"delete"]);}}if(this.#o.clear(),this.#e.fill(void 0),this.#r.fill(void 0),this.#b&&this.#E&&(this.#b.fill(0),this.#E.fill(0)),this.#L&&this.#L.fill(0),this.#f=0,this.#a=0,this.#y.length=0,this.#g=0,this.#n=0,this.#h&&this.#l){let e=this.#l,s;for(;s=e?.shift();)this.#m?.(...s);}}};Is.LRUCache=kr;});var tc=b((a0,ec)=>{d();var T=(...t)=>t.every(e=>e)?t.join(""):"",q=t=>t?encodeURIComponent(t):"",Zl=t=>t.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),Tg={sshtemplate:({domain:t,user:e,project:s,committish:i})=>`git@${t}:${e}/${s}.git${T("#",i)}`,sshurltemplate:({domain:t,user:e,project:s,committish:i})=>`git+ssh://git@${t}/${e}/${s}.git${T("#",i)}`,edittemplate:({domain:t,user:e,project:s,committish:i,editpath:r,path:n})=>`https://${t}/${e}/${s}${T("/",r,"/",q(i||"HEAD"),"/",n)}`,browsetemplate:({domain:t,user:e,project:s,committish:i,treepath:r})=>`https://${t}/${e}/${s}${T("/",r,"/",q(i))}`,browsetreetemplate:({domain:t,user:e,project:s,committish:i,treepath:r,path:n,fragment:o,hashformat:a})=>`https://${t}/${e}/${s}/${r}/${q(i||"HEAD")}/${n}${T("#",a(o||""))}`,browseblobtemplate:({domain:t,user:e,project:s,committish:i,blobpath:r,path:n,fragment:o,hashformat:a})=>`https://${t}/${e}/${s}/${r}/${q(i||"HEAD")}/${n}${T("#",a(o||""))}`,docstemplate:({domain:t,user:e,project:s,treepath:i,committish:r})=>`https://${t}/${e}/${s}${T("/",i,"/",q(r))}#readme`,httpstemplate:({auth:t,domain:e,user:s,project:i,committish:r})=>`git+https://${T(t,"@")}${e}/${s}/${i}.git${T("#",r)}`,filetemplate:({domain:t,user:e,project:s,committish:i,path:r})=>`https://${t}/${e}/${s}/raw/${q(i||"HEAD")}/${r}`,shortcuttemplate:({type:t,user:e,project:s,committish:i})=>`${t}:${e}/${s}${T("#",i)}`,pathtemplate:({user:t,project:e,committish:s})=>`${t}/${e}${T("#",s)}`,bugstemplate:({domain:t,user:e,project:s})=>`https://${t}/${e}/${s}/issues`,hashformat:Zl},Se={};Se.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:t,user:e,project:s,committish:i,path:r})=>`https://${T(t,"@")}raw.githubusercontent.com/${e}/${s}/${q(i||"HEAD")}/${r}`,gittemplate:({auth:t,domain:e,user:s,project:i,committish:r})=>`git://${T(t,"@")}${e}/${s}/${i}.git${T("#",r)}`,tarballtemplate:({domain:t,user:e,project:s,committish:i})=>`https://codeload.${t}/${e}/${s}/tar.gz/${q(i||"HEAD")}`,extract:t=>{let[,e,s,i,r]=t.pathname.split("/",5);if(!(i&&i!=="tree")&&(i||(r=t.hash.slice(1)),s&&s.endsWith(".git")&&(s=s.slice(0,-4)),!(!e||!s)))return {user:e,project:s,committish:r}}};Se.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:t,user:e,project:s,committish:i,treepath:r,path:n,editpath:o})=>`https://${t}/${e}/${s}${T("/",r,"/",q(i||"HEAD"),"/",n,o)}`,tarballtemplate:({domain:t,user:e,project:s,committish:i})=>`https://${t}/${e}/${s}/get/${q(i||"HEAD")}.tar.gz`,extract:t=>{let[,e,s,i]=t.pathname.split("/",4);if(!["get"].includes(i)&&(s&&s.endsWith(".git")&&(s=s.slice(0,-4)),!(!e||!s)))return {user:e,project:s,committish:t.hash.slice(1)}}};Se.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:t,domain:e,user:s,project:i,committish:r})=>`git+https://${T(t,"@")}${e}/${s}/${i}.git${T("#",r)}`,tarballtemplate:({domain:t,user:e,project:s,committish:i})=>`https://${t}/${e}/${s}/repository/archive.tar.gz?ref=${q(i||"HEAD")}`,extract:t=>{let e=t.pathname.slice(1);if(e.includes("/-/")||e.includes("/archive.tar.gz"))return;let s=e.split("/"),i=s.pop();i.endsWith(".git")&&(i=i.slice(0,-4));let r=s.join("/");if(!(!r||!i))return {user:r,project:i,committish:t.hash.slice(1)}}};Se.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:t,project:e,committish:s})=>`git@${t}:${e}.git${T("#",s)}`,sshurltemplate:({domain:t,project:e,committish:s})=>`git+ssh://git@${t}/${e}.git${T("#",s)}`,edittemplate:({domain:t,user:e,project:s,committish:i,editpath:r})=>`https://${t}/${e}/${s}${T("/",q(i))}/${r}`,browsetemplate:({domain:t,project:e,committish:s})=>`https://${t}/${e}${T("/",q(s))}`,browsetreetemplate:({domain:t,project:e,committish:s,path:i,hashformat:r})=>`https://${t}/${e}${T("/",q(s))}${T("#",r(i))}`,browseblobtemplate:({domain:t,project:e,committish:s,path:i,hashformat:r})=>`https://${t}/${e}${T("/",q(s))}${T("#",r(i))}`,docstemplate:({domain:t,project:e,committish:s})=>`https://${t}/${e}${T("/",q(s))}`,httpstemplate:({domain:t,project:e,committish:s})=>`git+https://${t}/${e}.git${T("#",s)}`,filetemplate:({user:t,project:e,committish:s,path:i})=>`https://gist.githubusercontent.com/${t}/${e}/raw${T("/",q(s))}/${i}`,shortcuttemplate:({type:t,project:e,committish:s})=>`${t}:${e}${T("#",s)}`,pathtemplate:({project:t,committish:e})=>`${t}${T("#",e)}`,bugstemplate:({domain:t,project:e})=>`https://${t}/${e}`,gittemplate:({domain:t,project:e,committish:s})=>`git://${t}/${e}.git${T("#",s)}`,tarballtemplate:({project:t,committish:e})=>`https://codeload.github.com/gist/${t}/tar.gz/${q(e||"HEAD")}`,extract:t=>{let[,e,s,i]=t.pathname.split("/",4);if(i!=="raw"){if(!s){if(!e)return;s=e,e=null;}return s.endsWith(".git")&&(s=s.slice(0,-4)),{user:e,project:s,committish:t.hash.slice(1)}}},hashformat:function(t){return t&&"file-"+Zl(t)}};Se.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:t,user:e,project:s,committish:i,path:r})=>`https://${t}/${e}/${s}/blob/${q(i)||"HEAD"}/${r}`,httpstemplate:({domain:t,user:e,project:s,committish:i})=>`https://${t}/${e}/${s}.git${T("#",i)}`,tarballtemplate:({domain:t,user:e,project:s,committish:i})=>`https://${t}/${e}/${s}/archive/${q(i)||"HEAD"}.tar.gz`,bugstemplate:({user:t,project:e})=>`https://todo.sr.ht/${t}/${e}`,extract:t=>{let[,e,s,i]=t.pathname.split("/",4);if(!["archive"].includes(i)&&(s&&s.endsWith(".git")&&(s=s.slice(0,-4)),!(!e||!s)))return {user:e,project:s,committish:t.hash.slice(1)}}};for(let[t,e]of Object.entries(Se))Se[t]=Object.assign({},Tg,e);ec.exports=Se;});var Tr=b((c0,ic)=>{d();var Dg=a("url"),Ir=(t,e,s)=>{let i=t.indexOf(s);return t.lastIndexOf(e,i>-1?i:1/0)},sc=t=>{try{return new Dg.URL(t)}catch{}},$g=(t,e)=>{let s=t.indexOf(":"),i=t.slice(0,s+1);if(Object.prototype.hasOwnProperty.call(e,i))return t;let r=t.indexOf("@");return r>-1?r>s?`git+ssh://${t}`:t:t.indexOf("//")===s+1?t:`${t.slice(0,s+1)}//${t.slice(s+1)}`},Rg=t=>{let e=Ir(t,"@","#"),s=Ir(t,":","#");return s>e&&(t=t.slice(0,s)+"/"+t.slice(s+1)),Ir(t,":","#")===-1&&t.indexOf("//")===-1&&(t=`git+ssh://${t}`),t};ic.exports=(t,e)=>{let s=e?$g(t,e):t;return sc(s)||sc(Rg(s))};});var nc=b((u0,rc)=>{d();var Fg=Tr(),_g=t=>{let e=t.indexOf("#"),s=t.indexOf("/"),i=t.indexOf("/",s+1),r=t.indexOf(":"),n=/\s/.exec(t),o=t.indexOf("@"),a=!n||e>-1&&n.index>e,l=o===-1||e>-1&&o>e,c=r===-1||e>-1&&r>e,d=i===-1||e>-1&&i>e,u=s>0,p=e>-1?t[e-1]!=="/":!t.endsWith("/"),g=!t.startsWith(".");return a&&u&&p&&g&&l&&c&&d};rc.exports=(t,e,{gitHosts:s,protocols:i})=>{if(!t)return;let r=_g(t)?`github:${t}`:t,n=Fg(r,i);if(!n)return;let o=s.byShortcut[n.protocol],a=s.byDomain[n.hostname.startsWith("www.")?n.hostname.slice(4):n.hostname],l=o||a;if(!l)return;let c=s[o||a],d=null;i[n.protocol]?.auth&&(n.username||n.password)&&(d=`${n.username}${n.password?":"+n.password:""}`);let u=null,p=null,g=null,y=null;try{if(o){let h=n.pathname.startsWith("/")?n.pathname.slice(1):n.pathname,m=h.indexOf("@");m>-1&&(h=h.slice(m+1));let v=h.lastIndexOf("/");v>-1?(p=decodeURIComponent(h.slice(0,v)),p||(p=null),g=decodeURIComponent(h.slice(v+1))):g=decodeURIComponent(h),g.endsWith(".git")&&(g=g.slice(0,-4)),n.hash&&(u=decodeURIComponent(n.hash.slice(1))),y="shortcut";}else {if(!c.protocols.includes(n.protocol))return;let h=c.extract(n);if(!h)return;p=h.user&&decodeURIComponent(h.user),g=decodeURIComponent(h.project),u=decodeURIComponent(h.committish),y=i[n.protocol]?.name||n.protocol.slice(0,-1);}}catch(h){if(h instanceof URIError)return;throw h}return [l,p,d,g,u,y,e]};});var ac=b((p0,oc)=>{d();var{LRUCache:Mg}=Ql(),qg=tc(),xg=nc(),Bg=Tr(),Dr=new Mg({max:1e3}),Ts=class t{constructor(e,s,i,r,n,o,a={}){Object.assign(this,t.#i[e],{type:e,user:s,auth:i,project:r,committish:n,default:o,opts:a});}static#i={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(e,s){t.#i[e]=s,t.#i.byDomain[s.domain]=e,t.#i.byShortcut[`${e}:`]=e,t.#c[`${e}:`]={name:e};}static fromUrl(e,s){if(typeof e!="string")return;let i=e+JSON.stringify(s||{});if(!Dr.has(i)){let r=xg(e,s,{gitHosts:t.#i,protocols:t.#c});Dr.set(i,r?new t(...r):void 0);}return Dr.get(i)}static parseUrl(e){return Bg(e)}#t(e,s){if(typeof e!="function")return null;let i={...this,...this.opts,...s};i.path||(i.path=""),i.path.startsWith("/")&&(i.path=i.path.slice(1)),i.noCommittish&&(i.committish=null);let r=e(i);return i.noGitPlus&&r.startsWith("git+")?r.slice(4):r}hash(){return this.committish?`#${this.committish}`:""}ssh(e){return this.#t(this.sshtemplate,e)}sshurl(e){return this.#t(this.sshurltemplate,e)}browse(e,...s){return typeof e!="string"?this.#t(this.browsetemplate,e):typeof s[0]!="string"?this.#t(this.browsetreetemplate,{...s[0],path:e}):this.#t(this.browsetreetemplate,{...s[1],fragment:s[0],path:e})}browseFile(e,...s){return typeof s[0]!="string"?this.#t(this.browseblobtemplate,{...s[0],path:e}):this.#t(this.browseblobtemplate,{...s[1],fragment:s[0],path:e})}docs(e){return this.#t(this.docstemplate,e)}bugs(e){return this.#t(this.bugstemplate,e)}https(e){return this.#t(this.httpstemplate,e)}git(e){return this.#t(this.gittemplate,e)}shortcut(e){return this.#t(this.shortcuttemplate,e)}path(e){return this.#t(this.pathtemplate,e)}tarball(e){return this.#t(this.tarballtemplate,{...e,noCommittish:!1})}file(e,s){return this.#t(this.filetemplate,{...s,path:e})}edit(e,s){return this.#t(this.edittemplate,{...s,path:e})}getDefaultRepresentation(){return this.default}toString(e){return this.default&&typeof this[this.default]=="function"?this[this.default](e):this.sshurl(e)}};for(let[t,e]of Object.entries(qg))Ts.addHost(t,e);oc.exports=Ts;});var fc=b((m0,cc)=>{d();var Ug="Function.prototype.bind called on incompatible ",Gg=Object.prototype.toString,jg=Math.max,Yg="[object Function]",lc=function(e,s){for(var i=[],r=0;r<e.length;r+=1)i[r]=e[r];for(var n=0;n<s.length;n+=1)i[n+e.length]=s[n];return i},Wg=function(e,s){for(var i=[],r=s||0,n=0;r<e.length;r+=1,n+=1)i[n]=e[r];return i},Kg=function(t,e){for(var s="",i=0;i<t.length;i+=1)s+=t[i],i+1<t.length&&(s+=e);return s};cc.exports=function(e){var s=this;if(typeof s!="function"||Gg.apply(s)!==Yg)throw new TypeError(Ug+s);for(var i=Wg(arguments,1),r,n=function(){if(this instanceof r){var d=s.apply(this,lc(i,arguments));return Object(d)===d?d:this}return s.apply(e,lc(i,arguments))},o=jg(0,s.length-i.length),a=[],l=0;l<o;l++)a[l]="$"+l;if(r=Function("binder","return function ("+Kg(a,",")+"){ return binder.apply(this,arguments); }")(n),s.prototype){var c=function(){};c.prototype=s.prototype,r.prototype=new c,c.prototype=null;}return r};});var hc=b((y0,uc)=>{d();var Jg=fc();uc.exports=Function.prototype.bind||Jg;});var dc=b((w0,pc)=>{d();var zg=hc();pc.exports=zg.call(Function.call,Object.prototype.hasOwnProperty);});var mc=b((v0,Hg)=>{Hg.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]};});var wc=b((L0,bc)=>{d();var Vg=dc();function Xg(t,e){for(var s=t.split("."),i=e.split(" "),r=i.length>1?i[0]:"=",n=(i.length>1?i[1]:i[0]).split("."),o=0;o<3;++o){var a=parseInt(s[o]||0,10),l=parseInt(n[o]||0,10);if(a!==l)return r==="<"?a<l:r===">="?a>=l:!1}return r===">="}function gc(t,e){var s=e.split(/ ?&& ?/);if(s.length===0)return !1;for(var i=0;i<s.length;++i)if(!Xg(t,s[i]))return !1;return !0}function Qg(t,e){if(typeof e=="boolean")return e;var s=typeof t>"u"?process.versions&&process.versions.node:t;if(typeof s!="string")throw new TypeError(typeof t>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(e&&typeof e=="object"){for(var i=0;i<e.length;++i)if(gc(s,e[i]))return !0;return !1}return gc(s,e)}var yc=mc();bc.exports=function(e,s){return Vg(yc,e)&&Qg(s,yc[e])};});var vc=b((A0,Sc)=>{d();Sc.exports=Zg;function Zg(t){if(!t||t==="ERROR: No README data found!")return;t=t.trim().split(`
|
|
148
|
-
`);let e=0;for(;t[e]&&t[e].trim().match(/^(#|$)/);)e++;let s=t.length,i=e+1;for(;i<s&&t[i].trim();)i++;return t.slice(e,i).join(" ").trim()}});var Lc=b((C0,ey)=>{ey.exports={topLevel:{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"},bugs:{web:"url",name:"url"},script:{server:"start",tests:"test"}};});var Cc=b((O0,Nc)=>{d();var ty=Nl(),sy=Ol(),iy=Jl(),Ds=ac(),ry=wc(),ny=["dependencies","devDependencies","optionalDependencies"],oy=vc(),$r=a("url"),ve=Lc(),Ec=t=>t.includes("@")&&t.indexOf("@")<t.lastIndexOf(".");Nc.exports={warn:function(){},fixRepositoryField:function(t){if(t.repositories&&(this.warn("repositories"),t.repository=t.repositories[0]),!t.repository)return this.warn("missingRepository");typeof t.repository=="string"&&(t.repository={type:"git",url:t.repository});var e=t.repository.url||"";if(e){var s=Ds.fromUrl(e);s&&(e=t.repository.url=s.getDefaultRepresentation()==="shortcut"?s.https():s.toString());}e.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",e);},fixTypos:function(t){Object.keys(ve.topLevel).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&this.warn("typo",e,ve.topLevel[e]);},this);},fixScriptsField:function(t){if(t.scripts){if(typeof t.scripts!="object"){this.warn("nonObjectScripts"),delete t.scripts;return}Object.keys(t.scripts).forEach(function(e){typeof t.scripts[e]!="string"?(this.warn("nonStringScript"),delete t.scripts[e]):ve.script[e]&&!t.scripts[ve.script[e]]&&this.warn("typo",e,ve.script[e],"scripts");},this);}},fixFilesField:function(t){var e=t.files;e&&!Array.isArray(e)?(this.warn("nonArrayFiles"),delete t.files):t.files&&(t.files=t.files.filter(function(s){return !s||typeof s!="string"?(this.warn("invalidFilename",s),!1):!0},this));},fixBinField:function(t){if(t.bin&&typeof t.bin=="string"){var e={},s;(s=t.name.match(/^@[^/]+[/](.*)$/))?e[s[1]]=t.bin:e[t.name]=t.bin,t.bin=e;}},fixManField:function(t){t.man&&typeof t.man=="string"&&(t.man=[t.man]);},fixBundleDependenciesField:function(t){var e="bundledDependencies",s="bundleDependencies";t[e]&&!t[s]&&(t[s]=t[e],delete t[e]),t[s]&&!Array.isArray(t[s])?(this.warn("nonArrayBundleDependencies"),delete t[s]):t[s]&&(t[s]=t[s].filter(function(i){return !i||typeof i!="string"?(this.warn("nonStringBundleDependency",i),!1):(t.dependencies||(t.dependencies={}),Object.prototype.hasOwnProperty.call(t.dependencies,i)||(this.warn("nonDependencyBundleDependency",i),t.dependencies[i]="*"),!0)},this));},fixDependencies:function(t){dy(t,this.warn),hy(t,this.warn),this.fixBundleDependenciesField(t),["dependencies","devDependencies"].forEach(function(e){if(e in t){if(!t[e]||typeof t[e]!="object"){this.warn("nonObjectDependencies",e),delete t[e];return}Object.keys(t[e]).forEach(function(s){var i=t[e][s];typeof i!="string"&&(this.warn("nonStringDependency",s,JSON.stringify(i)),delete t[e][s]);var r=Ds.fromUrl(t[e][s]);r&&(t[e][s]=r.toString());},this);}},this);},fixModulesField:function(t){t.modules&&(this.warn("deprecatedModules"),delete t.modules);},fixKeywordsField:function(t){typeof t.keywords=="string"&&(t.keywords=t.keywords.split(/,\s+/)),t.keywords&&!Array.isArray(t.keywords)?(delete t.keywords,this.warn("nonArrayKeywords")):t.keywords&&(t.keywords=t.keywords.filter(function(e){return typeof e!="string"||!e?(this.warn("nonStringKeyword"),!1):!0},this));},fixVersionField:function(t,e){var s=!e;if(!t.version)return t.version="",!0;if(!ty(t.version,s))throw new Error('Invalid version: "'+t.version+'"');return t.version=sy(t.version,s),!0},fixPeople:function(t){Ac(t,fy),Ac(t,uy);},fixNameField:function(t,e){typeof e=="boolean"?e={strict:e}:typeof e>"u"&&(e={});var s=e.strict;if(!t.name&&!s){t.name="";return}if(typeof t.name!="string")throw new Error("name field must be a string.");s||(t.name=t.name.trim()),cy(t.name,s,e.allowLegacyCase),ry(t.name)&&this.warn("conflictingName",t.name);},fixDescriptionField:function(t){t.description&&typeof t.description!="string"&&(this.warn("nonStringDescription"),delete t.description),t.readme&&!t.description&&(t.description=oy(t.readme)),t.description===void 0&&delete t.description,t.description||this.warn("missingDescription");},fixReadmeField:function(t){t.readme||(this.warn("missingReadme"),t.readme="ERROR: No README data found!");},fixBugsField:function(t){if(!t.bugs&&t.repository&&t.repository.url){var e=Ds.fromUrl(t.repository.url);e&&e.bugs()&&(t.bugs={url:e.bugs()});}else if(t.bugs){if(typeof t.bugs=="string")Ec(t.bugs)?t.bugs={email:t.bugs}:$r.parse(t.bugs).protocol?t.bugs={url:t.bugs}:this.warn("nonEmailUrlBugsString");else {my(t.bugs,this.warn);var s=t.bugs;t.bugs={},s.url&&(typeof s.url=="string"&&$r.parse(s.url).protocol?t.bugs.url=s.url:this.warn("nonUrlBugsUrlField")),s.email&&(typeof s.email=="string"&&Ec(s.email)?t.bugs.email=s.email:this.warn("nonEmailBugsEmailField"));}!t.bugs.email&&!t.bugs.url&&(delete t.bugs,this.warn("emptyNormalizedBugs"));}},fixHomepageField:function(t){if(!t.homepage&&t.repository&&t.repository.url){var e=Ds.fromUrl(t.repository.url);e&&e.docs()&&(t.homepage=e.docs());}if(t.homepage){if(typeof t.homepage!="string")return this.warn("nonUrlHomepage"),delete t.homepage;$r.parse(t.homepage).protocol||(t.homepage="http://"+t.homepage);}},fixLicenseField:function(t){let e=t.license||t.licence;if(!e)return this.warn("missingLicense");if(typeof e!="string"||e.length<1||e.trim()==="")return this.warn("invalidLicense");if(!iy(e).validForNewPackages)return this.warn("invalidLicense")}};function ay(t){if(t.charAt(0)!=="@")return !1;var e=t.slice(1).split("/");return e.length!==2?!1:e[0]&&e[1]&&e[0]===encodeURIComponent(e[0])&&e[1]===encodeURIComponent(e[1])}function ly(t){return !t.match(/[/@\s+%:]/)&&t===encodeURIComponent(t)}function cy(t,e,s){if(t.charAt(0)==="."||!(ay(t)||ly(t))||e&&!s&&t!==t.toLowerCase()||t.toLowerCase()==="node_modules"||t.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(t))}function Ac(t,e){return t.author&&(t.author=e(t.author)),["maintainers","contributors"].forEach(function(s){Array.isArray(t[s])&&(t[s]=t[s].map(e));}),t}function fy(t){if(typeof t=="string")return t;var e=t.name||"",s=t.url||t.web,i=s?" ("+s+")":"",r=t.email||t.mail,n=r?" <"+r+">":"";return e+n+i}function uy(t){if(typeof t!="string")return t;var e=t.match(/^([^(<]+)/),s=t.match(/\(([^()]+)\)/),i=t.match(/<([^<>]+)>/),r={};return e&&e[0].trim()&&(r.name=e[0].trim()),i&&(r.email=i[1]),s&&(r.url=s[1]),r}function hy(t){var e=t.optionalDependencies;if(e){var s=t.dependencies||{};Object.keys(e).forEach(function(i){s[i]=e[i];}),t.dependencies=s;}}function py(t,e,s){if(!t)return {};if(typeof t=="string"&&(t=t.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(t))return t;s("deprecatedArrayDependencies",e);var i={};return t.filter(function(r){return typeof r=="string"}).forEach(function(r){r=r.trim().split(/(:?[@\s><=])/);var n=r.shift(),o=r.join("");o=o.trim(),o=o.replace(/^@/,""),i[n]=o;}),i}function dy(t,e){ny.forEach(function(s){t[s]&&(t[s]=py(t[s],s,e));});}function my(t,e){t&&Object.keys(t).forEach(function(s){ve.bugs[s]&&(e("typo",s,ve.bugs[s],"bugs"),t[ve.bugs[s]]=t[s],delete t[s]);});}});var Oc=b((k0,gy)=>{gy.exports={repositories:"'repositories' (plural) Not supported. Please pick one as the 'repository' field",missingRepository:"No repository field.",brokenGitUrl:"Probably broken git url: %s",nonObjectScripts:"scripts must be an object",nonStringScript:"script values must be string commands",nonArrayFiles:"Invalid 'files' member",invalidFilename:"Invalid filename in 'files' list: %s",nonArrayBundleDependencies:"Invalid 'bundleDependencies' list. Must be array of package names",nonStringBundleDependency:"Invalid bundleDependencies member: %s",nonDependencyBundleDependency:"Non-dependency in bundleDependencies: %s",nonObjectDependencies:"%s field must be an object",nonStringDependency:"Invalid dependency: %s %s",deprecatedArrayDependencies:"specifying %s as array is deprecated",deprecatedModules:"modules field is deprecated",nonArrayKeywords:"keywords should be an array of strings",nonStringKeyword:"keywords should be an array of strings",conflictingName:"%s is also the name of a node core module.",nonStringDescription:"'description' field should be a string",missingDescription:"No description",missingReadme:"No README data",missingLicense:"No license field.",nonEmailUrlBugsString:"Bug string field must be url, email, or {email,url}",nonUrlBugsUrlField:"bugs.url field must be a string url. Deleted.",nonEmailBugsEmailField:"bugs.email field must be a string email. Deleted.",emptyNormalizedBugs:"Normalized value of bugs field is an empty object. Deleted.",nonUrlHomepage:"homepage field must be a string url. Deleted.",invalidLicense:"license should be a valid SPDX license expression",typo:"%s should probably be %s."};});var Ic=b((I0,kc)=>{d();var Pc=a("util"),Rr=Oc();kc.exports=function(){var t=Array.prototype.slice.call(arguments,0),e=t.shift();if(e==="typo")return yy.apply(null,t);var s=Rr[e]?Rr[e]:e+": '%s'";return t.unshift(s),Pc.format.apply(null,t)};function yy(t,e,s){return s&&(t=s+"['"+t+"']",e=s+"['"+e+"']"),Pc.format(Rr.typo,t,e)}});var Rc=b((D0,$c)=>{d();$c.exports=Tc;var Fr=Cc();Tc.fixer=Fr;var by=Ic(),wy=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],Sy=["dependencies","people","typos"],_r=wy.map(function(t){return Dc(t)+"Field"});_r=_r.concat(Sy);function Tc(t,e,s){e===!0&&(e=null,s=!0),s||(s=!1),(!e||t.private)&&(e=function(){}),t.scripts&&t.scripts.install==="node-gyp rebuild"&&!t.scripts.preinstall&&(t.gypfile=!0),Fr.warn=function(){e(by.apply(null,arguments));},_r.forEach(function(i){Fr["fix"+Dc(i)](t,s);}),t._id=t.name+"@"+t.version;}function Dc(t){return t.charAt(0).toUpperCase()+t.slice(1)}});d();d();var Xc=(t,e)=>{let s=t.split(".").map(Number),i=e.split(".").map(Number);for(let[r,n]of s.entries()){if(n>i[r])return !0;if(n<i[r])return !1}return !1},Gr=Xc;d();d();d();d();d();var Qc=class extends Error{constructor(t){super(`ENOENT: ${t}`);}get code(){return "ENOENT"}set code(t){throw new Error("Cannot overwrite code ENOENT")}get name(){return "NotFoundError"}set name(t){throw new Error("Cannot overwrite name of NotFoundError")}},Ee=Qc,Zc=class extends Error{constructor(t){super(`EPERM: Operation not permitted, ${t}`);}get code(){return "EPERM"}set code(t){throw new Error("Cannot overwrite code EPERM")}get name(){return "PermissionError"}set name(t){throw new Error("Cannot overwrite name of PermissionError")}},ze=Zc;d();d();var ef=class jr extends Error{fileName;codeFrame;name="JSONError";#i;constructor(e){super(),this.#i=e,Error.captureStackTrace(this,jr);}get message(){return `${this.#i}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
|
|
149
|
-
|
|
150
|
-
${this.codeFrame}
|
|
151
|
-
`:""}`}set message(e){this.#i=e;}},Yr=ef;var tf=t=>{if(!t||!(t instanceof URL)&&typeof t!="string")throw new TypeError("Path must be a non-empty string or URL.")},re=tf,sf=t=>t.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
|
|
152
|
-
`),rf=sf,nf=globalThis.process||Object.create(null),Wr={versions:{}},of=new Proxy(nf,{get(t,e){if(e in t)return t[e];if(e in Wr)return Wr[e]}}),Kr=of,af=(t,e,s,i)=>{let r={column:0,line:-1,...t.start},n={...r,...t.end},o=r.line,a=r.column,l=n.line,c=n.column,d=Math.max(o-(s+1),0),u=Math.min(e.length,l+i);o===-1&&(d=0),l===-1&&(u=e.length);let p=l-o,g={};if(p)for(let y=0;y<=p;y++){let h=y+o;if(!a)g[h]=!0;else if(y===0){let m=e[h-1]?.length;g[h]=[a,(m??0)-a+1];}else if(y===p)g[h]=[0,c];else {let m=e[h-y]?.length;g[h]=[0,m];}}else a===c?g[o]=a?[a,0]:!0:g[o]=[a,(c??0)-(a??0)];return {end:u,markerLines:g,start:d}},lf=af,cf=Kr.platform==="win32"&&!Kr.env?.WT_SESSION?">":"\u276F",ff=(t,e,s)=>{let i={linesAbove:2,linesBelow:3,showGutter:!0,showLineNumbers:!0,tabWidth:4,...s,color:{gutter:y=>y,marker:y=>y,message:y=>y,...s?.color}},r=e.start&&typeof e.start.column=="number",n=rf(t).split(`
|
|
153
|
-
`);typeof i?.tabWidth=="number"&&(n=n.map(y=>y.replaceAll(" "," ".repeat(i.tabWidth))));let{end:o,markerLines:a,start:l}=lf(e,n,i.linesAbove,i.linesBelow),c=String(o).length,{gutter:d,marker:u,message:p}=i.color,g=n.slice(l,o).map((y,h)=>{let m=l+1+h,v=a[m],E=` ${m}`.slice(-c),O=!a[m+1],C=` ${E}${i.showGutter?" |":""}`;if(v){let P="";if(Array.isArray(v)){let L=y.replaceAll(/[^\t]/g," ").slice(0,Math.max(v[0]-1,0)),I=v[1]||1;P=[`
|
|
154
|
-
`,d(C.replaceAll(/\d/g," "))," ",L,u("^").repeat(I)].join(""),O&&i.message&&(P+=` ${p(i.message)}`);}return [u(cf),d(C),y.length>0?` ${y}`:"",P].join("")}return ` ${d(C)}${y.length>0?` ${y}`:""}`}).join(`
|
|
155
|
-
`);return i.message&&!r&&(g=`${" ".repeat(c+1)}${i.message}
|
|
156
|
-
${g}`),g},Jr=(t,e)=>{let s=0,i=e.length-2;for(;s<i;){let r=s+(i-s>>1);if(t<e[r])i=r-1;else if(t>=e[r+1])s=r+1;else {s=r;break}}return s},uf=t=>t.split(/\n|\r(?!\n)/).reduce((e,s)=>(e.push(e.at(-1)+s.length+1),e),[0]),hf=(t,e,s)=>{let i=s?.skipChecks??!1;if(!i&&(!Array.isArray(t)&&typeof t!="string"||(typeof t=="string"||Array.isArray(t))&&t.length===0))return {column:0,line:0};if(!i&&(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"){let n=uf(t),o=Jr(e,n);return {column:e-n[o]+1,line:o+1}}let r=Jr(e,t);return {column:e-t[r]+1,line:r+1}},pf=hf,df=t=>`\\u{${t.codePointAt(0).toString(16)}}`,mf=(t,e,s)=>ff(t,{start:e},{tabWidth:!1,...s}),gf=(t,e)=>{let s=/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/.exec(e);if(!s)return;let{column:i,index:r,line:n}=s.groups;return n&&i?{column:Number(i),line:Number(n)}:(r=Number(r),r===t.length&&(r=t.length-1),pf(t,r))},yf=t=>t.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(e,s,i)=>`"${i}"(${df(i)})`);function bf(t,e,s,i){typeof e=="string"&&(typeof s=="object"&&(i=s),s=e,e=void 0);let r;try{return JSON.parse(t,e)}catch(a){r=a.message;}let n;t?(n=gf(t,r),r=yf(r)):r+=" while parsing empty string";let o=new Yr(r);throw o.fileName=s,n&&(o.codeFrame=mf(t,n,i)),o}var Te=bf,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.")},Pt=wf;d();d();var Sf=Object.defineProperty,vf=(t,e)=>{for(var s in e)Sf(t,s,{get:e[s],enumerable:!0});},Lf=/^[A-Z]:\//i,Ef=(t="")=>t&&t.replaceAll("\\","/").replace(Lf,e=>e.toUpperCase()),Q=Ef,Hr={};vf(Hr,{basename:()=>Dt,delimiter:()=>Qr,dirname:()=>F,extname:()=>Tt,format:()=>en,isAbsolute:()=>X,join:()=>R,normalize:()=>It,normalizeString:()=>kt,parse:()=>He,relative:()=>Zr,resolve:()=>K,sep:()=>Xr,toNamespacedPath:()=>_s});var Af=/^[/\\]{2}/,Nf=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Vr=/^[A-Z]:$/i,zr=/^\/([A-Z]:)?$/i,Cf=/.(\.[^./]+)$/,Of=()=>typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/",Xr="/",Qr=":",kt=(t,e)=>{let s="",i=0,r=-1,n=0,o=null;for(let a=0;a<=t.length;++a){if(a<t.length)o=t[a];else {if(o==="/")break;o="/";}if(o==="/"){if(!(r===a-1||n===1))if(n===2){if(s.length<2||i!==2||!s.endsWith(".")||s.at(-2)!=="."){if(s.length>2){let l=s.lastIndexOf("/");l===-1?(s="",i=0):(s=s.slice(0,l),i=s.length-1-s.lastIndexOf("/")),r=a,n=0;continue}else if(s.length>0){s="",i=0,r=a,n=0;continue}}e&&(s+=s.length>0?"/..":"..",i=2);}else s.length>0?s+=`/${t.slice(r+1,a)}`:s=t.slice(r+1,a),i=a-r-1;r=a,n=0;}else o==="."&&n!==-1?++n:n=-1;}return s},X=t=>Nf.test(t),It=function(t){if(t.length===0)return ".";t=Q(t);let e=Af.exec(t),s=X(t),i=t.at(-1)==="/";return t=kt(t,!s),t.length===0?s?"/":i?"./":".":(i&&(t+="/"),Vr.test(t)&&(t+="/"),e?s?`//${t}`:`//./${t}`:s&&!X(t)?`/${t}`:t)},R=function(...t){if(t.length===0)return ".";let e;for(let s of t)s&&s.length>0&&(e===void 0?e=s:e+=`/${s}`);return e===void 0?".":It(e.replaceAll(/\/{2,}/g,"/"))},K=function(...t){t=t.map(i=>Q(i));let e="",s=!1;for(let i=t.length-1;i>=-1&&!s;i--){let r=i>=0?t[i]:Of();!r||r.length===0||(e=`${r}/${e}`,s=X(r));}return e=kt(e,!s),s&&!X(e)?`/${e}`:e.length>0?e:"."},_s=function(t){return Q(t)},Tt=function(t){return Cf.exec(Q(t))?.[1]??""},Zr=function(t,e){let s=K(t).replace(zr,"$1").split("/"),i=K(e).replace(zr,"$1").split("/");if(i[0][1]===":"&&s[0][1]===":"&&s[0]!==i[0])return i.join("/");let r=[...s];for(let n of r){if(i[0]!==n)break;s.shift(),i.shift();}return [...s.map(()=>".."),...i].join("/")},F=t=>{let e=Q(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Vr.test(e[0])&&(e[0]+="/"),e.join("/")||(X(t)?"/":".")},en=function(t){let e=[t.root,t.dir,t.base??t.name+t.ext].filter(Boolean);return Q(t.root?K(...e):e.join("/"))},Dt=(t,e)=>{let s=Q(t).split("/").pop();return e&&s.endsWith(e)?s.slice(0,-e.length):s},He=function(t){let e=Q(t).split("/").shift();e===""?e="/":e+="/";let s=Dt(t),i=Tt(s);return {base:s,dir:F(t),ext:i,name:s.slice(0,s.length-i.length),root:e}};d();var kf=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"],If=kf;new Set(If);var G=t=>Q(t instanceof URL?fileURLToPath(t):t);c(Ua(),1);var ke=2;var Za=Symbol("findUpStop"),Wa=t=>{if(t.isFile())return "file";if(t.isDirectory())return "dir";if(t.isSymbolicLink())return "symlink"};var gm=t=>{re(t);try{let e=lstatSync(t);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${Wa(e)}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{mkdirSync(t,{recursive:!0});}catch(e){if(e.code!=="EEXIST")throw e;let s=lstatSync(t);if(!s.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${Wa(s)}'`)}},el=gm;process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE);process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE);var ym=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[]`");let s=e.cwd?G(e.cwd):process.cwd(),i=K(s),{root:r}=He(i),n=G(e.stopAt??r),o=K(i,n),a=e.type??"file",l=async function(c){return typeof t=="function"?[await t(c)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]};for(;i&&i!==o&&i!==r;){for await(let c of await l(i)){if(c===Za)return;if(c===void 0)continue;let d=X(c)?c:K(i,c);try{let u=await stat(d);if(a==="file"&&u.isFile()||a==="directory"&&u.isDirectory())return d}catch{}}i=F(i);}},ye=ym,bm=(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[]`");let s=e.cwd?G(e.cwd):process.cwd(),i=K(s),{root:r}=He(i),n=G(e.stopAt??r),o=K(i,n),a=e.type??"file",l=function(c){return typeof t=="function"?[t(c)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]};for(;i&&i!==o&&i!==r;){for(let c of l(i)){if(c===Za)return;if(c===void 0)continue;let d=X(c)?c:K(i,c);try{let u=statSync(d);if(a==="file"&&u.isFile()||a==="directory"&&u.isDirectory())return d}catch{}}i=F(i);}},be=bm;async function wm(t,e=0){re(t),t=G(t);try{return await access(t,e),!0}catch{return !1}}var se=wm;function Sm(t,e=0){re(t),t=G(t);try{return accessSync(t,e),!0}catch{return !1}}var ie=Sm,vm={brotli:brotliDecompress,gzip:unzip,none:(t,e)=>{e(null,t);}},Lm=async(t,e)=>{if(re(t),t=G(t),!await se(t))throw new ze(`unable to read the non-accessible file: ${t}`);if(!await se(t,4))throw new Error(`Unable to read the non-readable file: ${t}`);let{buffer:s,compression:i,encoding:r,flag:n}=e??{};return await readFile(t,n?{encoding:r,flag:n}:{encoding:r}).then(async o=>await new Promise((a,l)=>{vm[i??"none"](o,(c,d)=>{c?l(c):a(s?d:d.toString());});})).catch(o=>{throw o})},Em=Lm,Am={brotli:brotliDecompressSync,gzip:unzipSync,none:t=>t},Nm=(t,e)=>{if(re(t),t=G(t),!ie(t))throw new ze(`unable to read the non-accessible file: ${t}`);if(!ie(t,4))throw new ze(`invalid access to read file at: ${t}`);let{buffer:s,compression:i,encoding:r,flag:n}=e??{},o=readFileSync(t,n?{encoding:r,flag:n}:{encoding:r}),a=Am[i??"none"](o);return s?a:a.toString()},Cm=Nm;async function Om(t,e,s){typeof e=="object"&&(s=e,e=void 0);let i=await Em(t,{buffer:!0,encoding:void 0}),r=new TextDecoder().decode(i),{beforeParse:n,color:o}=s??{};return typeof n=="function"&&(r=n(r)),Te(r,e,G(t),{color:o})}var tl=Om;function Pm(t,e,s){typeof e=="object"&&(s=e,e=void 0);let i=Cm(t,{buffer:!0,encoding:void 0}),r=new TextDecoder().decode(i),{beforeParse:n,color:o}=s??{};return typeof n=="function"&&(r=n(r)),Te(r,e,G(t),{color:o})}var Nt=Pm;var km=new TextEncoder,Im=t=>{if(t instanceof Uint8Array)return t;if(typeof t=="string")return km.encode(t);if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t)){let e=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength);return new Uint8Array(e)}throw new TypeError("Invalid contents type. Expected string or ArrayBuffer.")},sl=Im,Tm=async(t,e,s)=>{s={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...s},re(t),Pt(e),t=G(t);try{let i=await se(t,0);if(!i&&s.recursive){let o=F(t);await se(o,0)||await mkdir(o,{recursive:!0});}let r;await writeFile(`${t}.tmp`,sl(e),{encoding:s.encoding,flag:s.flag}),i&&!s.overwrite&&(r=await stat(t),s.chown===void 0&&(s.chown={gid:r.gid,uid:r.uid}),await rename(t,`${t}.bak`));let n=`${t}.tmp`;if(s.chown)try{await chown(n,s.chown.uid,s.chown.gid);}catch{}await chmod(n,r&&!s.mode?r.mode:s.mode??438),await rename(n,t);}catch(i){throw new Error(`Failed to write file at: ${t} - ${i.message}`,{cause:i})}finally{await se(`${t}.tmp`)&&await unlink(`${t}.tmp`);}},Dm=Tm,$m=(t,e,s)=>{s={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...s},re(t),Pt(e),t=G(t);try{let i=ie(t,0);if(!i&&s.recursive){let o=F(t);ie(o,0)||mkdirSync(o,{recursive:!0});}let r;writeFileSync(`${t}.tmp`,sl(e),{encoding:s.encoding,flag:s.flag}),i&&!s.overwrite&&(r=statSync(t),s.chown===void 0&&(s.chown={gid:r.gid,uid:r.uid}),renameSync(t,`${t}.bak`));let n=`${t}.tmp`;if(s.chown)try{chownSync(n,s.chown.uid,s.chown.gid);}catch{}chmodSync(n,r&&!s.mode?r.mode:s.mode??438),renameSync(n,t);}catch(i){throw new Error(`Failed to write file at: ${t} - ${i.message}`,{cause:i})}finally{ie(`${t}.tmp`)&&unlinkSync(`${t}.tmp`);}},Rm=$m,Fm=/^(?:( )+|\t+)/,At="space",il="tab";function Ka(t,e){let s=new Map,i=0,r,n;for(let o of t.split(/\n/g)){if(!o)continue;let a,l,c,d,u,p=o.match(Fm);if(p===null)i=0,r="";else {if(a=p[0].length,l=p[1]?At:il,e&&l===At&&a===1)continue;l!==r&&(i=0),r=l,c=1,d=0;let g=a-i;if(i=a,g===0)c=0,d=1;else {let y=g>0?g:-g;n=_m(l,y);}u=s.get(n),u=u===void 0?[1,0]:[u[0]+c,u[1]+d],s.set(n,u);}}return s}function _m(t,e){return (t===At?"s":"t")+String(e)}function Mm(t){let e=t[0]==="s"?At:il,s=Number(t.slice(1));return {type:e,amount:s}}function qm(t){let e,s=0,i=0;for(let[r,[n,o]]of t)(n>s||n===s&&o>i)&&(s=n,i=o,e=r);return e}function xm(t,e){return (t===At?" ":" ").repeat(e)}function rl(t){if(typeof t!="string")throw new TypeError("Expected a string");let e=Ka(t,!0);e.size===0&&(e=Ka(t,!1));let s=qm(e),i,r=0,n="";return s!==void 0&&({type:i,amount:r}=Mm(s),n=xm(i,r)),{amount:r,type:i,indent:n}}var Bm=async(t,e,s={})=>{let{detectIndent:i,indent:r,replacer:n,stringify:o=JSON.stringify,...a}={indent:" ",...s},l=r,c=`
|
|
157
|
-
`;if(await se(t,4))try{let u=await readFile(t,"utf8");if(i){let{indent:p}=rl(u);l=p;}c=u.endsWith(`
|
|
158
|
-
`)?`
|
|
159
|
-
`:"";}catch(u){if(u.code!=="ENOENT")throw u}let d=o(e,n,l);await Dm(t,`${d}${c}`,a);},nl=Bm,Um=(t,e,s={})=>{let{detectIndent:i,indent:r,replacer:n,stringify:o=JSON.stringify,...a}={indent:" ",...s},l=r,c=`
|
|
160
|
-
`;if(ie(t,4))try{let u=readFileSync(t,"utf8");if(i){let{indent:p}=rl(u);l=p;}c=u.endsWith(`
|
|
161
|
-
`)?`
|
|
162
|
-
`:"";}catch(u){if(u.code!=="ENOENT")throw u}let d=o(e,n,l);Rm(t,`${d}${c}`,a);},ol=Um;d();d();d();var $s=c(Rc(),1),vy=Object.defineProperty,Ly=(t,e)=>vy(t,"name",{value:e,configurable:!0}),Ay=Object.defineProperty,Ot=Ly((t,e)=>Ay(t,"name",{value:e,configurable:!0}),"r"),Fc=new Map;Ot(async(t,e={})=>{let s=await ye("package.json",{...t&&{cwd:t},type:"file"});if(!s)throw new Ee("No such file or directory, for package.json found.");let i=e.cache&&typeof e.cache!="boolean"?e.cache:Fc;if(e.cache&&i.has(s))return i.get(s);let r=await tl(s);(0, $s.default)(r);let n={packageJson:r,path:s};return i.set(s,n),n},"findPackageJson");Ot((t,e={})=>{let s=be("package.json",{...t&&{cwd:t},type:"file"});if(!s)throw new Ee("No such file or directory, for package.json found.");let i=e.cache&&typeof e.cache!="boolean"?e.cache:Fc;if(e.cache&&i.has(s))return i.get(s);let r=Nt(s);(0, $s.default)(r);let n={packageJson:r,path:s};return i.set(s,n),n},"findPackageJsonSync");Ot(async(t,e={})=>{let{cwd:s,...i}=e,r=G(e.cwd??process.cwd());await nl(R(r,"package.json"),t,i);},"writePackageJson");Ot((t,e={})=>{let{cwd:s,...i}=e,r=G(e.cwd??process.cwd());ol(R(r,"package.json"),t,i);},"writePackageJsonSync");var Mr=Ot(t=>{let e=t!==null&&typeof t=="object"&&!Array.isArray(t);if(!e&&typeof t!="string")throw new TypeError("`packageFile` should be either an `object` or a `string`.");let s=e?structuredClone(t):existsSync(t)?Nt(t):Te(t);return (0, $s.default)(s),s},"parsePackageJson");var Ny=Object.defineProperty,Cy=(t,e)=>Ny(t,"name",{value:e,configurable:!0}),ky=Object.defineProperty,Le=Cy((t,e)=>ky(t,"name",{value:e,configurable:!0}),"e"),qr=["yarn.lock","package-lock.json","pnpm-lock.yaml","npm-shrinkwrap.json","bun.lockb"],Mc=Le(t=>{let e;if(qr.forEach(i=>{!e&&existsSync(R(t,i))&&(e=R(t,i));}),e)return e;let s=R(t,"package.json");if(existsSync(s)&&Mr(readFileSync(s,"utf8")).packageManager!==void 0)return s},"packageMangerFindUpMatcher"),qc=Le(t=>{if(!t)throw new Ee("Could not find a package manager");if(t.endsWith("package.json")){let e=Mr(t);if(e.packageManager){let s=["npm","yarn","pnpm","bun"].find(i=>e.packageManager.startsWith(i));if(s)return {packageManager:s,path:F(t)}}}if(t.endsWith("yarn.lock"))return {packageManager:"yarn",path:F(t)};if(t.endsWith("package-lock.json")||t.endsWith("npm-shrinkwrap.json"))return {packageManager:"npm",path:F(t)};if(t.endsWith("pnpm-lock.yaml"))return {packageManager:"pnpm",path:F(t)};if(t.endsWith("bun.lockb"))return {packageManager:"bun",path:F(t)};throw new Ee("Could not find a package manager")},"findPackageManagerOnFile"),xc=Le(async t=>{let e=await ye(qr,{type:"file",...t&&{cwd:t}});if(!e)throw new Error("Could not find lock file");return e},"findLockFile"),Bc=Le(t=>{let e=be(qr,{type:"file",...t&&{cwd:t}});if(!e)throw new Error("Could not find lock file");return e},"findLockFileSync");Le(async t=>{let e=await ye(Mc,{...t&&{cwd:t}});return qc(e)},"findPackageManager");Le(t=>{let e=be(Mc,{...t&&{cwd:t}});return qc(e)},"findPackageManagerSync");Le(t=>execSync(`${t} --version`).toString("utf8").trim(),"getPackageManagerVersion");Le(async()=>{if(!process.env.npm_config_user_agent)return;let t=process.env.npm_config_user_agent.split(" ")[0],e=t.lastIndexOf("/"),s=t.slice(0,Math.max(0,e));return {name:s==="npminstall"?"cnpm":s,version:t.slice(Math.max(0,e+1))}},"identifyInitiatingPackageManager");d();var Iy=Object.defineProperty,Ty=(t,e)=>Iy(t,"name",{value:e,configurable:!0}),$y=Object.defineProperty,xr=Ty((t,e)=>$y(t,"name",{value:e,configurable:!0}),"i"),Uc=xr(t=>{if(existsSync(R(t,"package.json"))){let e=Nt(R(t,"package.json"));if(e.name&&e.private!==!0)return "package.json"}},"packageJsonMatcher"),Gc=xr(async t=>{try{let i=await xc(t);return F(i)}catch{}let e=await ye(".git/config",{...t&&{cwd:t},type:"file"});if(e)return F(F(e));let s=await ye(Uc,{...t&&{cwd:t},type:"file"});if(s)return F(s);throw new Error("Could not find root directory")},"findPackageRoot"),jc=xr(t=>{try{let i=Bc(t);return F(i)}catch{}let e=be(".git/config",{...t&&{cwd:t},type:"file"});if(e)return F(F(e));let s=be(Uc,{...t&&{cwd:t},type:"file"});if(s)return F(s);throw new Error("Could not find root directory")},"findPackageRootSync");var Ry=Object.defineProperty,Fy=(t,e)=>Ry(t,"name",{value:e,configurable:!0}),_y=Object.defineProperty,Br=Fy((t,e)=>_y(t,"name",{value:e,configurable:!0}),"f"),Rs=Br((t,e)=>(e?.create&&el(t),t),"useDirectory");Br(async(t,e)=>{if(env.CACHE_DIR&&!["0","1","false","true"].includes(env.CACHE_DIR))return Rs(R(env.CACHE_DIR,t),e);let s=await Gc(e?.cwd??cwd());if(!s)return;let i=R(s,"node_modules"),r=R(i,".cache"),n=R(r,t);if(!(existsSync(n)&&!await se(n,ke))&&!(existsSync(r)&&!await se(r,ke))&&!(existsSync(i)&&!await se(i,ke)))return Rs(n,e)},"findCacheDirectory");var Wc=Br((t,e)=>{if(env.CACHE_DIR&&!["0","1","false","true"].includes(env.CACHE_DIR))return Rs(R(env.CACHE_DIR,t),e);let s=jc(e?.cwd??cwd());if(!s)return;let i=R(s,"node_modules"),r=R(i,".cache"),n=R(r,t);if(!(existsSync(n)&&!ie(n,ke))&&!(existsSync(r)&&!ie(r,ke))&&!(existsSync(i)&&!ie(i,ke)))return Rs(n,e)},"findCacheDirectorySync");var By="last-update-check.json",Jc=t=>{let e=Wc(t);if(e===void 0)throw new Error("Could not find cache directory");return R(e,By)},zc=t=>{let e=Jc(t);try{if(!existsSync(e))return;let{lastUpdateCheck:s}=JSON.parse(readFileSync(e,"utf8"));return s}catch{return}},Hc=t=>{let e=Jc(t),s=F(e);existsSync(s)||mkdirSync(s,{recursive:!0}),writeFileSync(e,JSON.stringify({lastUpdateCheck:Date.now()}));};d();var Gy=async(t,e,s)=>{let i=s.replace("__NAME__",t);return await new Promise((r,n)=>{get(i,o=>{let a="";o.on("data",l=>a+=l),o.on("end",()=>{try{let c=JSON.parse(a)[e];c||n(new Error("Error getting version")),r(c);}catch{n(new Error("Could not parse version response"));}});}).on("error",o=>n(o));})},Vc=Gy;var jy=async({alwaysRun:t,debug:e,distTag:s="latest",pkg:i,registryUrl:r="https://registry.npmjs.org/-/package/__NAME__/dist-tags",updateCheckInterval:n=1e3*60*60*24})=>{let o=zc(i.name);if(t||!o||o<Date.now()-n){let a=await Vc(i.name,s,r);if(Hc(i.name),Gr(a,i.version))return a;e&&console.error(`Latest version (${a}) not newer than current version (${i.version})`);}else e&&console.error(`Too recent to check for a new update. simpleUpdateNotifier() interval set to ${n}ms but only ${Date.now()-o}ms since last check.`);return null},Pv=jy;
|
|
163
|
-
|
|
164
|
-
export { Pv as default };
|
|
165
|
-
//# sourceMappingURL=out.js.map
|
|
166
|
-
//# sourceMappingURL=has-new-version-3M7UODVZ.js.map
|