@visulima/vis 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE.md +159 -19
  3. package/dashboard/dist/index.html +12 -12
  4. package/dist/bin.js +1 -1
  5. package/dist/binx.js +1 -1
  6. package/dist/packem_chunks/CONFIG_FILES.js +1 -1
  7. package/dist/packem_chunks/bloom-status.js +1 -1
  8. package/dist/packem_chunks/bloom-sync.js +1 -1
  9. package/dist/packem_chunks/catalog.js +2 -2
  10. package/dist/packem_chunks/cli-exec.js +1 -1
  11. package/dist/packem_chunks/cli-main.js +132 -132
  12. package/dist/packem_chunks/doctor-probe.js +2 -2
  13. package/dist/packem_chunks/fix.js +5 -5
  14. package/dist/packem_chunks/handler13.js +1 -1
  15. package/dist/packem_chunks/handler14.js +1 -1
  16. package/dist/packem_chunks/handler15.js +1 -1
  17. package/dist/packem_chunks/handler2.js +1 -1
  18. package/dist/packem_chunks/handler20.js +1 -1
  19. package/dist/packem_chunks/handler23.js +1 -1
  20. package/dist/packem_chunks/handler24.js +1 -1
  21. package/dist/packem_chunks/handler26.js +1 -1
  22. package/dist/packem_chunks/handler28.js +1 -1
  23. package/dist/packem_chunks/handler3.js +1 -1
  24. package/dist/packem_chunks/handler50.js +4 -4
  25. package/dist/packem_chunks/handler53.js +1 -1
  26. package/dist/packem_chunks/handler54.js +1 -1
  27. package/dist/packem_chunks/handler59.js +1 -1
  28. package/dist/packem_chunks/handler60.js +1 -1
  29. package/dist/packem_chunks/handler61.js +7 -7
  30. package/dist/packem_chunks/handler62.js +1 -1
  31. package/dist/packem_chunks/handler63.js +1 -1
  32. package/dist/packem_chunks/handler65.js +2 -2
  33. package/dist/packem_chunks/handler66.js +1 -1
  34. package/dist/packem_chunks/handler67.js +25 -24
  35. package/dist/packem_chunks/handler68.js +153 -25
  36. package/dist/packem_chunks/handler69.js +10 -153
  37. package/dist/packem_chunks/handler70.js +22 -10
  38. package/dist/packem_chunks/handler71.js +4 -4
  39. package/dist/packem_chunks/handler72.js +3 -3
  40. package/dist/packem_chunks/handler73.js +6 -6
  41. package/dist/packem_chunks/handler74.js +1 -1
  42. package/dist/packem_chunks/handler75.js +1 -1
  43. package/dist/packem_chunks/handler77.js +1 -1
  44. package/dist/packem_chunks/handler78.js +20 -20
  45. package/dist/packem_chunks/heal.js +4 -4
  46. package/dist/packem_chunks/help-command.js +5 -5
  47. package/dist/packem_chunks/index4.js +6 -8
  48. package/dist/packem_chunks/index6.js +5 -5
  49. package/dist/packem_chunks/prompts.js +1 -1
  50. package/dist/packem_chunks/prune.js +1 -1
  51. package/dist/packem_chunks/shell-runner.js +1 -1
  52. package/dist/packem_chunks/status.js +1 -1
  53. package/dist/packem_chunks/sync.js +1 -1
  54. package/dist/packem_chunks/tar.js +3 -3
  55. package/dist/packem_shared/{advisories-CyDqzi5j.js → advisories-DZd1uGqa.js} +1 -1
  56. package/dist/packem_shared/{affected-selection-DPQR-Bd3.js → affected-selection-CoRXp5H4.js} +1 -1
  57. package/dist/packem_shared/{bin-wafzkjaB.js → bin-C2eYtJ_N.js} +1 -1
  58. package/dist/packem_shared/{cyclonedx-C_ezHg8b.js → cyclonedx-B1vzerwP.js} +1 -1
  59. package/dist/packem_shared/{docker-Br_iFmI-.js → docker-Bex05Qcn.js} +16 -16
  60. package/dist/packem_shared/giget-D8Kwb0kD.js +2 -0
  61. package/dist/packem_shared/index.server-BAjDJSEu.js +2 -0
  62. package/dist/packem_shared/main-BP-w-K-6.js +1 -0
  63. package/dist/packem_shared/{osv-bloom-5wDAoZ1e.js → osv-bloom-1JS__1or.js} +1 -1
  64. package/dist/packem_shared/{package-version-BJkg7-6H.js → package-version-Bb7KGF36.js} +3 -3
  65. package/dist/packem_shared/{project-name-filter-BeREbPMI.js → project-name-filter-DYaIbrXa.js} +1 -1
  66. package/dist/packem_shared/{resolve-explicit-COmP7eqr.js → resolve-explicit-DYaHAVDg.js} +1 -1
  67. package/dist/packem_shared/{s1ngularity-RZOHbGrE.js → s1ngularity-C8sva2SO.js} +1 -1
  68. package/dist/packem_shared/{scan-progress-C9nMDLis.js → scan-progress-aVHGZYWf.js} +1 -1
  69. package/dist/packem_shared/{target-merge-D1xbylFw.js → target-merge-DCGow6Kw.js} +1 -1
  70. package/dist/packem_shared/{typosquats-D8ppc5kr.js → typosquats-Cdsnf6aN.js} +1 -1
  71. package/dist/packem_shared/{vis-user-error-jhNwmkZp.js → vis-user-error-CAu9wIbe.js} +1 -1
  72. package/index.js +26 -26
  73. package/package.json +14 -14
  74. package/dist/packem_shared/giget-CVyyR7x8.js +0 -2
  75. package/dist/packem_shared/index.server-CwSgbeN7.js +0 -2
  76. package/dist/packem_shared/main-BjJN8kWj.js +0 -1
@@ -1,28 +1,28 @@
1
1
  import{createRequire as Xs}from"node:module";import{e as Ie,a as to,m as _i}from"./index-DHD8wb6Z.js";import{h as so,S as oo}from"./index-BisalDCf.js";import{y as fo}from"./isAccessibleSync-DYKTrrvc-CSnBISfV.js";import{p as ns}from"./readJsonSync-CbryXYxN-B2aSeDpC.js";import{U as ut,h as lo}from"./writeFileSync-DJoHk3Ks-CgQ-VNNT.js";let Zs;const eo=a=>(Zs??=Xs(import.meta.url))(a),zr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ro=a=>{if(typeof zr<"u"&&zr.versions&&zr.versions.node){const[g,C]=zr.versions.node.split(".").map(Number);if(g>22||g===22&&C>=3||g===20&&C>=16)return zr.getBuiltinModule(a)}return eo(a)},{rmSync:ki,existsSync:es,readFileSync:at,cpSync:rs,lstatSync:no,readdirSync:io}=ro("node:fs");class er extends Error{constructor(g){super(g),this.name="LockfilePruneError"}}const is=a=>{let g=a.startsWith("/")?a.slice(1):a;const C=g.indexOf("(");return C!==-1&&(g=g.slice(0,C)),g},co=(a,g)=>{if(!(g.startsWith("link:")||g.startsWith("file:")||g.startsWith("workspace:")))return`${a}@${g}`},ao=a=>{const g=[];for(const C of[a.dependencies,a.devDependencies,a.optionalDependencies])if(C)for(const[s,h]of Object.entries(C))h?.version&&g.push({name:s,version:h.version});return g},pt=a=>{const g=[];for(const C of[a.dependencies,a.optionalDependencies])if(C)for(const[s,h]of Object.entries(C))typeof h=="string"&&g.push({name:s,version:h});return g},ht=a=>{const g=new Map;if(!a)return g;for(const C of Object.keys(a)){const s=is(C),h=g.get(s);h?h.push(C):g.set(s,[C])}return g},ts=a=>{const g=a.displayName??"pnpm-lock.yaml",C=typeof a.lockfileContent=="string"?a.lockfileContent:a.lockfileContent.toString("utf8");let s;try{s=so(C)}catch(J){throw new er(`${g}: parse failed — ${J.message}`)}const h=J=>J.packages?Object.keys(J.packages).length:0;let e;for(const J of s){const[re]=J.errors;if(re)throw new er(`${g}: parse failed — ${re.message}`);const M=J.toJS();if(!M||typeof M!="object")continue;const le=M;(e===void 0||h(le)>h(e))&&(e=le)}if(e===void 0)throw new er(`${g}: top-level value is not an object`);const d=e.importers??{},b=ht(e.packages),m=ht(e.snapshots),w=new Set(["."]);for(const J of a.closure)w.add(J.relativeRoot===""?".":J.relativeRoot);const k={};for(const[J,re]of Object.entries(d))w.has(J)&&(k[J]=re);const Y=new Set,y=new Set,A=[];for(const J of Object.values(k))for(const re of ao(J))A.push(re);for(;A.length>0;){const{name:J,version:re}=A.shift(),M=co(J,re);if(!M)continue;const le=is(M),we=m.get(le)??m.get(M)??[];for(const ve of we){if(y.has(ve))continue;y.add(ve);const Ee=e.snapshots?.[ve];if(Ee)for(const Oe of pt(Ee))A.push(Oe)}const de=b.get(le)??b.get(M)??[];for(const ve of de){if(Y.has(ve))continue;Y.add(ve);const Ee=e.packages?.[ve];if(Ee&&!e.snapshots)for(const Oe of pt(Ee))A.push(Oe)}}const $={lockfileVersion:e.lockfileVersion};for(const J of["settings","overrides","patchedDependencies","catalogs"])e[J]!==void 0&&($[J]=e[J]);if($.importers=k,e.packages){const J={};for(const re of Object.keys(e.packages))Y.has(re)&&(J[re]=e.packages[re]);$.packages=J}if(e.snapshots){const J={};for(const re of Object.keys(e.snapshots))y.has(re)&&(J[re]=e.snapshots[re]);$.snapshots=J}const D=Object.keys(e.packages??{}).length,ne=Object.keys($.packages??{}).length,oe=D-ne,O=Object.keys(d).length-Object.keys(k).length;return{content:oo($,{lineWidth:0}),message:`${g}: kept ${ne}/${D} packages and ${Object.keys(k).length} importers (dropped ${oe} packages, ${O} importers)`,status:"pruned"}},uo=a=>ts({...a,displayName:a.displayName??"aube-lock.yaml"}),po=a=>{let g="",C=!1,s=!1,h=!1;for(let e=0;e<a.length;e+=1){const d=a[e],b=a[e+1];if(s){d===`
2
2
  `&&(s=!1,g+=d);continue}if(h){d==="*"&&b==="/"&&(h=!1,e+=1);continue}if(C){if(d==="\\"){g+=d,b!==void 0&&(g+=b,e+=1);continue}d==='"'&&(C=!1),g+=d;continue}if(d==='"'){C=!0,g+=d;continue}if(d==="/"&&b==="/"){s=!0,e+=1;continue}if(d==="/"&&b==="*"){h=!0,e+=1;continue}g+=d}return g},ho=a=>{const g=[];for(const C of[a.dependencies,a.devDependencies,a.optionalDependencies,a.peerDependencies])if(C)for(const[s,h]of Object.entries(C))typeof h=="string"&&g.push({name:s,spec:h});return g},go=a=>{for(const g of a)if(typeof g=="object"&&!Array.isArray(g))return g},mo=a=>{if(!a)return[];const g=[];for(const C of["dependencies","optionalDependencies","peerDependencies"]){const s=a[C];s!==null&&typeof s=="object"&&!Array.isArray(s)&&g.push(...Object.keys(s))}return g},yo=a=>{if(Buffer.isBuffer(a.lockfileContent))return{message:"bun.lockb is binary; run `bun install --save-text-lockfile` to regenerate as bun.lock, then rerun `vis docker scaffold`.",status:"skipped"};const g=po(a.lockfileContent);let C;try{C=JSON.parse(g)}catch(D){throw new er(`bun.lock: parse failed — ${D.message}`)}if(!C||typeof C!="object")throw new er("bun.lock: top-level value is not an object");const s=C.workspaces??{},h=C.packages??{},e=new Set([""]);for(const D of a.closure)e.add(D.relativeRoot===""?"":D.relativeRoot);const d={},b=[];for(const[D,ne]of Object.entries(s))e.has(D)&&(d[D]=ne,b.push(...ho(ne)));const m=new Set;for(const{name:D}of b)m.add(D);const w=[...m];for(;w.length>0;){const D=w.shift();for(const ne of Object.keys(h)){if(ne.split("/")[0]!==D&&ne!==D)continue;const O=go(h[ne]);for(const J of mo(O))m.has(J)||(m.add(J),w.push(J))}}const k={};for(const[D,ne]of Object.entries(h)){const oe=D.split("/")[0];(m.has(oe)||m.has(D))&&(k[D]=ne)}const Y={...C,packages:k,workspaces:d},y=Object.keys(h).length,A=Object.keys(k).length,$=y-A;return{content:`${JSON.stringify(Y,null,2)}
3
3
  `,message:`bun.lock: kept ${A}/${y} packages (dropped ${$})`,status:"pruned"}},Jn="node_modules/",$o=(a,g,C)=>{let s=g;for(;;){const h=s===""?`${Jn}${C}`:`${s}/${Jn}${C}`;if(a[h]!==void 0)return h;if(s==="")return;const e=s.lastIndexOf(`/${Jn.slice(0,-1)}/`);s=e===-1?"":s.slice(0,e)}},vo=a=>{const g=[];for(const C of[a.dependencies,a.devDependencies,a.optionalDependencies,a.peerDependencies])if(C)for(const s of Object.keys(C))g.push(s);return g},Ao=a=>{const g=a.displayName??"package-lock.json",C=typeof a.lockfileContent=="string"?a.lockfileContent:a.lockfileContent.toString("utf8");let s;try{s=JSON.parse(C)}catch($){throw new er(`${g}: parse failed — ${$.message}`)}if(!s||typeof s!="object")throw new er(`${g}: top-level value is not an object`);const h=s.packages??{},e=new Set([""]);for(const $ of a.closure)$.relativeRoot!==""&&e.add($.relativeRoot);const d=new Set,b=[];for(const $ of Object.keys(h))e.has($)&&(d.add($),b.push($));for(const[$,D]of Object.entries(h))D.link===!0&&typeof D.resolved=="string"&&e.has(D.resolved)&&d.add($);for(;b.length>0;){const $=b.shift(),D=h[$];if(D)for(const ne of vo(D)){const oe=$o(h,$,ne);if(!oe||d.has(oe))continue;d.add(oe);const O=h[oe];O.link===!0&&typeof O.resolved=="string"&&h[O.resolved]!==void 0&&!d.has(O.resolved)?(d.add(O.resolved),b.push(O.resolved)):b.push(oe)}}const m={};for(const $ of Object.keys(h))d.has($)&&(m[$]=h[$]);const w=m[""];w&&Array.isArray(w.workspaces)&&(w.workspaces=w.workspaces.filter($=>{if(typeof $!="string")return!1;const D=$.replace(/\/?\*+$/,"").replace(/\/$/,"");if(D===""||D==="*")return!0;for(const ne of e)if(ne===$||ne===D||ne.startsWith(`${D}/`))return!0;return!1}));const k={...s,packages:m};delete k.dependencies;const Y=Object.keys(h).length,y=Object.keys(m).length,A=Y-y;return{content:`${JSON.stringify(k,null,2)}
4
- `,message:`${g}: kept ${y}/${Y} entries (dropped ${A})`,status:"pruned"}};var Qn={},Te={},zn,gt;function wo(){if(gt)return zn;gt=1;function a(s,h){function e(){this.constructor=s}e.prototype=h.prototype,s.prototype=new e}function g(s,h,e,d){this.message=s,this.expected=h,this.found=e,this.location=d,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,g)}a(g,Error),g.buildMessage=function(s,h){var e={literal:function(y){return'"'+b(y.text)+'"'},class:function(y){var A="",$;for($=0;$<y.parts.length;$++)A+=y.parts[$]instanceof Array?m(y.parts[$][0])+"-"+m(y.parts[$][1]):m(y.parts[$]);return"["+(y.inverted?"^":"")+A+"]"},any:function(y){return"any character"},end:function(y){return"end of input"},other:function(y){return y.description}};function d(y){return y.charCodeAt(0).toString(16).toUpperCase()}function b(y){return y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(A){return"\\x0"+d(A)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(A){return"\\x"+d(A)})}function m(y){return y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(A){return"\\x0"+d(A)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(A){return"\\x"+d(A)})}function w(y){return e[y.type](y)}function k(y){var A=new Array(y.length),$,D;for($=0;$<y.length;$++)A[$]=w(y[$]);if(A.sort(),A.length>0){for($=1,D=1;$<A.length;$++)A[$-1]!==A[$]&&(A[D]=A[$],D++);A.length=D}switch(A.length){case 1:return A[0];case 2:return A[0]+" or "+A[1];default:return A.slice(0,-1).join(", ")+", or "+A[A.length-1]}}function Y(y){return y?'"'+b(y)+'"':"end of input"}return"Expected "+k(s)+" but "+Y(h)+" found."};function C(s,h){h=h!==void 0?h:{};var e={},d={Start:Vi},b=Vi,m=function(r){return r||[]},w=function(r,t,o){return[{command:r,type:t}].concat(o||[])},k=function(r,t){return[{command:r,type:t||";"}]},Y=function(r){return r},y=";",A=ce(";",!1),$="&",D=ce("&",!1),ne=function(r,t){return t?{chain:r,then:t}:{chain:r}},oe=function(r,t){return{type:r,line:t}},O="&&",J=ce("&&",!1),re="||",M=ce("||",!1),le=function(r,t){return t?{...r,then:t}:r},we=function(r,t){return{type:r,chain:t}},de="|&",ve=ce("|&",!1),Ee="|",Oe=ce("|",!1),Le="=",Be=ce("=",!1),ye=function(r,t){return{name:r,args:[t]}},Pe=function(r){return{name:r,args:[]}},Qe="(",xe=ce("(",!1),ee=")",Ne=ce(")",!1),qe=function(r,t){return{type:"subshell",subshell:r,args:t}},Re="{",De=ce("{",!1),be="}",K=ce("}",!1),B=function(r,t){return{type:"group",group:r,args:t}},te=function(r,t){return{type:"command",args:t,envs:r}},$e=function(r){return{type:"envs",envs:r}},Ve=function(r){return r},ze=function(r){return r},Me=/^[0-9]/,Ye=Ke([["0","9"]],!1,!1),rr=function(r,t,o){return{type:"redirection",subtype:t,fd:r!==null?parseInt(r):null,args:[o]}},nr=">>",wr=ce(">>",!1),fr=">&",lr=ce(">&",!1),br=">",Ue=ce(">",!1),hr="<<<",Xe=ce("<<<",!1),Ge="<&",gr=ce("<&",!1),Cr="<",dr=ce("<",!1),n=function(r){return{type:"argument",segments:[].concat(...r)}},E=function(r){return r},R="$'",Q=ce("$'",!1),I="'",l=ce("'",!1),v=function(r){return[{type:"text",text:r}]},_='""',T=ce('""',!1),P=function(){return{type:"text",text:""}},U='"',j=ce('"',!1),z=function(r){return r},W=function(r){return{type:"arithmetic",arithmetic:r,quoted:!0}},ie=function(r){return{type:"shell",shell:r,quoted:!0}},ge=function(r){return{type:"variable",...r,quoted:!0}},ae=function(r){return{type:"text",text:r}},ke=function(r){return{type:"arithmetic",arithmetic:r,quoted:!1}},En=function(r){return{type:"shell",shell:r,quoted:!1}},kn=function(r){return{type:"variable",...r,quoted:!1}},tn=function(r){return{type:"glob",pattern:r}},jr=/^[^']/,Fr=Ke(["'"],!0,!1),mr=function(r){return r.join("")},sn=/^[^$"]/,on=Ke(["$",'"'],!0,!1),Ur=`\\
4
+ `,message:`${g}: kept ${y}/${Y} entries (dropped ${A})`,status:"pruned"}};var Qn={},Le={},zn,gt;function wo(){if(gt)return zn;gt=1;function a(s,h){function e(){this.constructor=s}e.prototype=h.prototype,s.prototype=new e}function g(s,h,e,d){this.message=s,this.expected=h,this.found=e,this.location=d,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,g)}a(g,Error),g.buildMessage=function(s,h){var e={literal:function(y){return'"'+b(y.text)+'"'},class:function(y){var A="",$;for($=0;$<y.parts.length;$++)A+=y.parts[$]instanceof Array?m(y.parts[$][0])+"-"+m(y.parts[$][1]):m(y.parts[$]);return"["+(y.inverted?"^":"")+A+"]"},any:function(y){return"any character"},end:function(y){return"end of input"},other:function(y){return y.description}};function d(y){return y.charCodeAt(0).toString(16).toUpperCase()}function b(y){return y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(A){return"\\x0"+d(A)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(A){return"\\x"+d(A)})}function m(y){return y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(A){return"\\x0"+d(A)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(A){return"\\x"+d(A)})}function w(y){return e[y.type](y)}function k(y){var A=new Array(y.length),$,D;for($=0;$<y.length;$++)A[$]=w(y[$]);if(A.sort(),A.length>0){for($=1,D=1;$<A.length;$++)A[$-1]!==A[$]&&(A[D]=A[$],D++);A.length=D}switch(A.length){case 1:return A[0];case 2:return A[0]+" or "+A[1];default:return A.slice(0,-1).join(", ")+", or "+A[A.length-1]}}function Y(y){return y?'"'+b(y)+'"':"end of input"}return"Expected "+k(s)+" but "+Y(h)+" found."};function C(s,h){h=h!==void 0?h:{};var e={},d={Start:Vi},b=Vi,m=function(r){return r||[]},w=function(r,t,o){return[{command:r,type:t}].concat(o||[])},k=function(r,t){return[{command:r,type:t||";"}]},Y=function(r){return r},y=";",A=ce(";",!1),$="&",D=ce("&",!1),ne=function(r,t){return t?{chain:r,then:t}:{chain:r}},oe=function(r,t){return{type:r,line:t}},O="&&",J=ce("&&",!1),re="||",M=ce("||",!1),le=function(r,t){return t?{...r,then:t}:r},we=function(r,t){return{type:r,chain:t}},de="|&",ve=ce("|&",!1),Ee="|",Oe=ce("|",!1),Fe="=",Be=ce("=",!1),ye=function(r,t){return{name:r,args:[t]}},Pe=function(r){return{name:r,args:[]}},Qe="(",xe=ce("(",!1),ee=")",Ne=ce(")",!1),qe=function(r,t){return{type:"subshell",subshell:r,args:t}},Te="{",De=ce("{",!1),be="}",K=ce("}",!1),B=function(r,t){return{type:"group",group:r,args:t}},te=function(r,t){return{type:"command",args:t,envs:r}},$e=function(r){return{type:"envs",envs:r}},Ve=function(r){return r},ze=function(r){return r},Me=/^[0-9]/,Ye=Ke([["0","9"]],!1,!1),rr=function(r,t,o){return{type:"redirection",subtype:t,fd:r!==null?parseInt(r):null,args:[o]}},nr=">>",wr=ce(">>",!1),fr=">&",lr=ce(">&",!1),br=">",Ue=ce(">",!1),hr="<<<",Xe=ce("<<<",!1),Ge="<&",gr=ce("<&",!1),Cr="<",dr=ce("<",!1),n=function(r){return{type:"argument",segments:[].concat(...r)}},E=function(r){return r},R="$'",Q=ce("$'",!1),I="'",l=ce("'",!1),v=function(r){return[{type:"text",text:r}]},_='""',T=ce('""',!1),P=function(){return{type:"text",text:""}},U='"',j=ce('"',!1),z=function(r){return r},W=function(r){return{type:"arithmetic",arithmetic:r,quoted:!0}},ie=function(r){return{type:"shell",shell:r,quoted:!0}},ge=function(r){return{type:"variable",...r,quoted:!0}},ae=function(r){return{type:"text",text:r}},ke=function(r){return{type:"arithmetic",arithmetic:r,quoted:!1}},En=function(r){return{type:"shell",shell:r,quoted:!1}},kn=function(r){return{type:"variable",...r,quoted:!1}},tn=function(r){return{type:"glob",pattern:r}},jr=/^[^']/,Fr=Ke(["'"],!0,!1),mr=function(r){return r.join("")},sn=/^[^$"]/,on=Ke(["$",'"'],!0,!1),Ur=`\\
5
5
  `,xn=ce(`\\
6
6
  `,!1),_n=function(){return""},yr="\\",$r=ce("\\",!1),On=/^[\\$"`]/,fn=Ke(["\\","$",'"',"`"],!1,!1),Ze=function(r){return r},Hr="\\a",Tn=ce("\\a",!1),Rn=function(){return"a"},ln="\\b",jn=ce("\\b",!1),Fn=function(){return"\b"},u=/^[Ee]/,he=Ke(["E","e"],!1,!1),Lr=function(){return"\x1B"},He="\\f",Kr=ce("\\f",!1),Z=function(){return"\f"},Sr="\\n",cn=ce("\\n",!1),Ae=function(){return`
7
- `},ir="\\r",Ln=ce("\\r",!1),In=function(){return"\r"},Er="\\t",an=ce("\\t",!1),un=function(){return" "},se="\\v",Nn=ce("\\v",!1),pn=function(){return"\v"},Pn=/^[\\'"?]/,hn=Ke(["\\","'",'"',"?"],!1,!1),Ir=function(r){return String.fromCharCode(parseInt(r,16))},Wr="\\x",Nr=ce("\\x",!1),vr="\\u",Dn=ce("\\u",!1),Vr="\\U",gn=ce("\\U",!1),Mn=function(r){return String.fromCodePoint(parseInt(r,16))},kr=/^[0-7]/,qn=Ke([["0","7"]],!1,!1),Yn=/^[0-9a-fA-f]/,dn=Ke([["0","9"],["a","f"],["A","f"]],!1,!1),tr=Rs(),xr="{}",mn=ce("{}",!1),_r=function(){return"{}"},Pr="-",Or=ce("-",!1),cr="+",Ce=ce("+",!1),ar=".",ur=ce(".",!1),yn=function(r,t,o){return{type:"number",value:(r==="-"?-1:1)*parseFloat(t.join("")+"."+o.join(""))}},Dr=function(r,t){return{type:"number",value:(r==="-"?-1:1)*parseInt(t.join(""))}},f=function(r){return{type:"variable",...r}},p=function(r){return{type:"variable",name:r}},x=function(r){return r},H="*",q=ce("*",!1),X="/",ue=ce("/",!1),me=function(r,t,o){return{type:t==="*"?"multiplication":"division",right:o}},pr=function(r,t){return t.reduce((o,c)=>({left:o,...c}),r)},Oi=function(r,t,o){return{type:t==="+"?"addition":"subtraction",right:o}},Ti="$((",cs=ce("$((",!1),Ri="))",as=ce("))",!1),us=function(r){return r},ji="$(",ps=ce("$(",!1),hs=function(r){return r},sr="${",Gr=ce("${",!1),Fi=":-",gs=ce(":-",!1),ds=function(r,t){return{name:r,defaultValue:t}},Li=":-}",ms=ce(":-}",!1),ys=function(r){return{name:r,defaultValue:[]}},Ii=":+",$s=ce(":+",!1),vs=function(r,t){return{name:r,alternativeValue:t}},Ni=":+}",As=ce(":+}",!1),ws=function(r){return{name:r,alternativeValue:[]}},Pi=function(r){return{name:r}},bs="$",Cs=ce("$",!1),Ss=function(r){return h.isGlobPattern(r)},Es=function(r){return r},Di=/^[a-zA-Z0-9_]/,Mi=Ke([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),qi=function(){return Ts()},Yi=/^[$@*?#a-zA-Z0-9_\-]/,Bi=Ke(["$","@","*","?","#",["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),ks=/^[()}<>$|&; \t"']/,xs=Ke(["(",")","}","<",">","$","|","&",";"," "," ",'"',"'"],!1,!1),_s=/^[<>&; \t"']/,Os=Ke(["<",">","&",";"," "," ",'"',"'"],!1,!1),Ui=/^[ \t]/,Hi=Ke([" "," "],!1,!1),i=0,G=0,$n=[{line:1,column:1}],or=0,Bn=[],F=0,vn;if("startRule"in h){if(!(h.startRule in d))throw new Error(`Can't start parsing from rule "`+h.startRule+'".');b=d[h.startRule]}function Ts(){return s.substring(G,i)}function ce(r,t){return{type:"literal",text:r,ignoreCase:t}}function Ke(r,t,o){return{type:"class",parts:r,inverted:t,ignoreCase:o}}function Rs(){return{type:"any"}}function js(){return{type:"end"}}function Ki(r){var t=$n[r],o;if(t)return t;for(o=r-1;!$n[o];)o--;for(t=$n[o],t={line:t.line,column:t.column};o<r;)s.charCodeAt(o)===10?(t.line++,t.column=1):t.column++,o++;return $n[r]=t,t}function Wi(r,t){var o=Ki(r),c=Ki(t);return{start:{offset:r,line:o.line,column:o.column},end:{offset:t,line:c.line,column:c.column}}}function N(r){i<or||(i>or&&(or=i,Bn=[]),Bn.push(r))}function Fs(r,t,o){return new g(g.buildMessage(r,t),r,t,o)}function Vi(){var r,t,o;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();return t!==e?(o=Jr(),o===e&&(o=null),o!==e?(G=r,t=m(o),r=t):(i=r,r=e)):(i=r,r=e),r}function Jr(){var r,t,o,c,S;if(r=i,t=Un(),t!==e){for(o=[],c=V();c!==e;)o.push(c),c=V();o!==e?(c=Gi(),c!==e?(S=Ls(),S===e&&(S=null),S!==e?(G=r,t=w(t,c,S),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e)}else i=r,r=e;if(r===e)if(r=i,t=Un(),t!==e){for(o=[],c=V();c!==e;)o.push(c),c=V();o!==e?(c=Gi(),c===e&&(c=null),c!==e?(G=r,t=k(t,c),r=t):(i=r,r=e)):(i=r,r=e)}else i=r,r=e;return r}function Ls(){var r,t,o,c,S;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e)if(o=Jr(),o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();c!==e?(G=r,t=Y(o),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e;return r}function Gi(){var r;return s.charCodeAt(i)===59?(r=y,i++):(r=e,F===0&&N(A)),r===e&&(s.charCodeAt(i)===38?(r=$,i++):(r=e,F===0&&N(D))),r}function Un(){var r,t,o;return r=i,t=Ji(),t!==e?(o=Is(),o===e&&(o=null),o!==e?(G=r,t=ne(t,o),r=t):(i=r,r=e)):(i=r,r=e),r}function Is(){var r,t,o,c,S,L,fe;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e)if(o=Ns(),o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();if(c!==e)if(S=Un(),S!==e){for(L=[],fe=V();fe!==e;)L.push(fe),fe=V();L!==e?(G=r,t=oe(o,S),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e}else i=r,r=e;else i=r,r=e;return r}function Ns(){var r;return s.substr(i,2)===O?(r=O,i+=2):(r=e,F===0&&N(J)),r===e&&(s.substr(i,2)===re?(r=re,i+=2):(r=e,F===0&&N(M))),r}function Ji(){var r,t,o;return r=i,t=Ms(),t!==e?(o=Ps(),o===e&&(o=null),o!==e?(G=r,t=le(t,o),r=t):(i=r,r=e)):(i=r,r=e),r}function Ps(){var r,t,o,c,S,L,fe;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e)if(o=Ds(),o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();if(c!==e)if(S=Ji(),S!==e){for(L=[],fe=V();fe!==e;)L.push(fe),fe=V();L!==e?(G=r,t=we(o,S),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e}else i=r,r=e;else i=r,r=e;return r}function Ds(){var r;return s.substr(i,2)===de?(r=de,i+=2):(r=e,F===0&&N(ve)),r===e&&(s.charCodeAt(i)===124?(r=Ee,i++):(r=e,F===0&&N(Oe))),r}function An(){var r,t,o,c,S,L;if(r=i,t=ft(),t!==e)if(s.charCodeAt(i)===61?(o=Le,i++):(o=e,F===0&&N(Be)),o!==e)if(c=Xi(),c!==e){for(S=[],L=V();L!==e;)S.push(L),L=V();S!==e?(G=r,t=ye(t,c),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e;else i=r,r=e;if(r===e)if(r=i,t=ft(),t!==e)if(s.charCodeAt(i)===61?(o=Le,i++):(o=e,F===0&&N(Be)),o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();c!==e?(G=r,t=Pe(t),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e;return r}function Ms(){var r,t,o,c,S,L,fe,pe,_e,je,Je;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e)if(s.charCodeAt(i)===40?(o=Qe,i++):(o=e,F===0&&N(xe)),o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();if(c!==e)if(S=Jr(),S!==e){for(L=[],fe=V();fe!==e;)L.push(fe),fe=V();if(L!==e)if(s.charCodeAt(i)===41?(fe=ee,i++):(fe=e,F===0&&N(Ne)),fe!==e){for(pe=[],_e=V();_e!==e;)pe.push(_e),_e=V();if(pe!==e){for(_e=[],je=Qr();je!==e;)_e.push(je),je=Qr();if(_e!==e){for(je=[],Je=V();Je!==e;)je.push(Je),Je=V();je!==e?(G=r,t=qe(S,_e),r=t):(i=r,r=e)}else i=r,r=e}else i=r,r=e}else i=r,r=e;else i=r,r=e}else i=r,r=e;else i=r,r=e}else i=r,r=e;else i=r,r=e;if(r===e){for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e)if(s.charCodeAt(i)===123?(o=Re,i++):(o=e,F===0&&N(De)),o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();if(c!==e)if(S=Jr(),S!==e){for(L=[],fe=V();fe!==e;)L.push(fe),fe=V();if(L!==e)if(s.charCodeAt(i)===125?(fe=be,i++):(fe=e,F===0&&N(K)),fe!==e){for(pe=[],_e=V();_e!==e;)pe.push(_e),_e=V();if(pe!==e){for(_e=[],je=Qr();je!==e;)_e.push(je),je=Qr();if(_e!==e){for(je=[],Je=V();Je!==e;)je.push(Je),Je=V();je!==e?(G=r,t=B(S,_e),r=t):(i=r,r=e)}else i=r,r=e}else i=r,r=e}else i=r,r=e;else i=r,r=e}else i=r,r=e;else i=r,r=e}else i=r,r=e;else i=r,r=e;if(r===e){for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e){for(o=[],c=An();c!==e;)o.push(c),c=An();if(o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();if(c!==e){if(S=[],L=zi(),L!==e)for(;L!==e;)S.push(L),L=zi();else S=e;if(S!==e){for(L=[],fe=V();fe!==e;)L.push(fe),fe=V();L!==e?(G=r,t=te(o,S),r=t):(i=r,r=e)}else i=r,r=e}else i=r,r=e}else i=r,r=e}else i=r,r=e;if(r===e){for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e){if(o=[],c=An(),c!==e)for(;c!==e;)o.push(c),c=An();else o=e;if(o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();c!==e?(G=r,t=$e(o),r=t):(i=r,r=e)}else i=r,r=e}else i=r,r=e}}}return r}function Qi(){var r,t,o,c,S;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e){if(o=[],c=wn(),c!==e)for(;c!==e;)o.push(c),c=wn();else o=e;if(o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();c!==e?(G=r,t=Ve(o),r=t):(i=r,r=e)}else i=r,r=e}else i=r,r=e;return r}function zi(){var r,t,o;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e?(o=Qr(),o!==e?(G=r,t=ze(o),r=t):(i=r,r=e)):(i=r,r=e),r===e){for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();t!==e?(o=wn(),o!==e?(G=r,t=ze(o),r=t):(i=r,r=e)):(i=r,r=e)}return r}function Qr(){var r,t,o,c,S;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();return t!==e?(Me.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Ye)),o===e&&(o=null),o!==e?(c=qs(),c!==e?(S=wn(),S!==e?(G=r,t=rr(o,c,S),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r}function qs(){var r;return s.substr(i,2)===nr?(r=nr,i+=2):(r=e,F===0&&N(wr)),r===e&&(s.substr(i,2)===fr?(r=fr,i+=2):(r=e,F===0&&N(lr)),r===e&&(s.charCodeAt(i)===62?(r=br,i++):(r=e,F===0&&N(Ue)),r===e&&(s.substr(i,3)===hr?(r=hr,i+=3):(r=e,F===0&&N(Xe)),r===e&&(s.substr(i,2)===Ge?(r=Ge,i+=2):(r=e,F===0&&N(gr)),r===e&&(s.charCodeAt(i)===60?(r=Cr,i++):(r=e,F===0&&N(dr))))))),r}function wn(){var r,t,o;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();return t!==e?(o=Xi(),o!==e?(G=r,t=ze(o),r=t):(i=r,r=e)):(i=r,r=e),r}function Xi(){var r,t,o;if(r=i,t=[],o=Zi(),o!==e)for(;o!==e;)t.push(o),o=Zi();else t=e;return t!==e&&(G=r,t=n(t)),r=t,r}function Zi(){var r,t;return r=i,t=Ys(),t!==e&&(G=r,t=E(t)),r=t,r===e&&(r=i,t=Bs(),t!==e&&(G=r,t=E(t)),r=t,r===e&&(r=i,t=Us(),t!==e&&(G=r,t=E(t)),r=t,r===e&&(r=i,t=Hs(),t!==e&&(G=r,t=E(t)),r=t))),r}function Ys(){var r,t,o,c;return r=i,s.substr(i,2)===R?(t=R,i+=2):(t=e,F===0&&N(Q)),t!==e?(o=Vs(),o!==e?(s.charCodeAt(i)===39?(c=I,i++):(c=e,F===0&&N(l)),c!==e?(G=r,t=v(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r}function Bs(){var r,t,o,c;return r=i,s.charCodeAt(i)===39?(t=I,i++):(t=e,F===0&&N(l)),t!==e?(o=Ks(),o!==e?(s.charCodeAt(i)===39?(c=I,i++):(c=e,F===0&&N(l)),c!==e?(G=r,t=v(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r}function Us(){var r,t,o,c;if(r=i,s.substr(i,2)===_?(t=_,i+=2):(t=e,F===0&&N(T)),t!==e&&(G=r,t=P()),r=t,r===e)if(r=i,s.charCodeAt(i)===34?(t=U,i++):(t=e,F===0&&N(j)),t!==e){for(o=[],c=et();c!==e;)o.push(c),c=et();o!==e?(s.charCodeAt(i)===34?(c=U,i++):(c=e,F===0&&N(j)),c!==e?(G=r,t=z(o),r=t):(i=r,r=e)):(i=r,r=e)}else i=r,r=e;return r}function Hs(){var r,t,o;if(r=i,t=[],o=rt(),o!==e)for(;o!==e;)t.push(o),o=rt();else t=e;return t!==e&&(G=r,t=z(t)),r=t,r}function et(){var r,t;return r=i,t=st(),t!==e&&(G=r,t=W(t)),r=t,r===e&&(r=i,t=ot(),t!==e&&(G=r,t=ie(t)),r=t,r===e&&(r=i,t=Vn(),t!==e&&(G=r,t=ge(t)),r=t,r===e&&(r=i,t=Ws(),t!==e&&(G=r,t=ae(t)),r=t))),r}function rt(){var r,t;return r=i,t=st(),t!==e&&(G=r,t=ke(t)),r=t,r===e&&(r=i,t=ot(),t!==e&&(G=r,t=En(t)),r=t,r===e&&(r=i,t=Vn(),t!==e&&(G=r,t=kn(t)),r=t,r===e&&(r=i,t=Qs(),t!==e&&(G=r,t=tn(t)),r=t,r===e&&(r=i,t=Js(),t!==e&&(G=r,t=ae(t)),r=t)))),r}function Ks(){var r,t,o;for(r=i,t=[],jr.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Fr));o!==e;)t.push(o),jr.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Fr));return t!==e&&(G=r,t=mr(t)),r=t,r}function Ws(){var r,t,o;if(r=i,t=[],o=nt(),o===e&&(sn.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(on))),o!==e)for(;o!==e;)t.push(o),o=nt(),o===e&&(sn.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(on)));else t=e;return t!==e&&(G=r,t=mr(t)),r=t,r}function nt(){var r,t,o;return r=i,s.substr(i,2)===Ur?(t=Ur,i+=2):(t=e,F===0&&N(xn)),t!==e&&(G=r,t=_n()),r=t,r===e&&(r=i,s.charCodeAt(i)===92?(t=yr,i++):(t=e,F===0&&N($r)),t!==e?(On.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(fn)),o!==e?(G=r,t=Ze(o),r=t):(i=r,r=e)):(i=r,r=e)),r}function Vs(){var r,t,o;for(r=i,t=[],o=it(),o===e&&(jr.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Fr)));o!==e;)t.push(o),o=it(),o===e&&(jr.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Fr)));return t!==e&&(G=r,t=mr(t)),r=t,r}function it(){var r,t,o;return r=i,s.substr(i,2)===Hr?(t=Hr,i+=2):(t=e,F===0&&N(Tn)),t!==e&&(G=r,t=Rn()),r=t,r===e&&(r=i,s.substr(i,2)===ln?(t=ln,i+=2):(t=e,F===0&&N(jn)),t!==e&&(G=r,t=Fn()),r=t,r===e&&(r=i,s.charCodeAt(i)===92?(t=yr,i++):(t=e,F===0&&N($r)),t!==e?(u.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(he)),o!==e?(G=r,t=Lr(),r=t):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===He?(t=He,i+=2):(t=e,F===0&&N(Kr)),t!==e&&(G=r,t=Z()),r=t,r===e&&(r=i,s.substr(i,2)===Sr?(t=Sr,i+=2):(t=e,F===0&&N(cn)),t!==e&&(G=r,t=Ae()),r=t,r===e&&(r=i,s.substr(i,2)===ir?(t=ir,i+=2):(t=e,F===0&&N(Ln)),t!==e&&(G=r,t=In()),r=t,r===e&&(r=i,s.substr(i,2)===Er?(t=Er,i+=2):(t=e,F===0&&N(an)),t!==e&&(G=r,t=un()),r=t,r===e&&(r=i,s.substr(i,2)===se?(t=se,i+=2):(t=e,F===0&&N(Nn)),t!==e&&(G=r,t=pn()),r=t,r===e&&(r=i,s.charCodeAt(i)===92?(t=yr,i++):(t=e,F===0&&N($r)),t!==e?(Pn.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(hn)),o!==e?(G=r,t=Ze(o),r=t):(i=r,r=e)):(i=r,r=e),r===e&&(r=Gs()))))))))),r}function Gs(){var r,t,o,c,S,L,fe,pe,_e,je,Je,Gn;return r=i,s.charCodeAt(i)===92?(t=yr,i++):(t=e,F===0&&N($r)),t!==e?(o=Hn(),o!==e?(G=r,t=Ir(o),r=t):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===Wr?(t=Wr,i+=2):(t=e,F===0&&N(Nr)),t!==e?(o=i,c=i,S=Hn(),S!==e?(L=We(),L!==e?(S=[S,L],c=S):(i=c,c=e)):(i=c,c=e),c===e&&(c=Hn()),c!==e?o=s.substring(o,i):o=c,o!==e?(G=r,t=Ir(o),r=t):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===vr?(t=vr,i+=2):(t=e,F===0&&N(Dn)),t!==e?(o=i,c=i,S=We(),S!==e?(L=We(),L!==e?(fe=We(),fe!==e?(pe=We(),pe!==e?(S=[S,L,fe,pe],c=S):(i=c,c=e)):(i=c,c=e)):(i=c,c=e)):(i=c,c=e),c!==e?o=s.substring(o,i):o=c,o!==e?(G=r,t=Ir(o),r=t):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===Vr?(t=Vr,i+=2):(t=e,F===0&&N(gn)),t!==e?(o=i,c=i,S=We(),S!==e?(L=We(),L!==e?(fe=We(),fe!==e?(pe=We(),pe!==e?(_e=We(),_e!==e?(je=We(),je!==e?(Je=We(),Je!==e?(Gn=We(),Gn!==e?(S=[S,L,fe,pe,_e,je,Je,Gn],c=S):(i=c,c=e)):(i=c,c=e)):(i=c,c=e)):(i=c,c=e)):(i=c,c=e)):(i=c,c=e)):(i=c,c=e)):(i=c,c=e),c!==e?o=s.substring(o,i):o=c,o!==e?(G=r,t=Mn(o),r=t):(i=r,r=e)):(i=r,r=e)))),r}function Hn(){var r;return kr.test(s.charAt(i))?(r=s.charAt(i),i++):(r=e,F===0&&N(qn)),r}function We(){var r;return Yn.test(s.charAt(i))?(r=s.charAt(i),i++):(r=e,F===0&&N(dn)),r}function Js(){var r,t,o,c,S;if(r=i,t=[],o=i,s.charCodeAt(i)===92?(c=yr,i++):(c=e,F===0&&N($r)),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&N(tr)),S!==e?(G=o,c=Ze(S),o=c):(i=o,o=e)):(i=o,o=e),o===e&&(o=i,s.substr(i,2)===xr?(c=xr,i+=2):(c=e,F===0&&N(mn)),c!==e&&(G=o,c=_r()),o=c,o===e&&(o=i,c=i,F++,S=lt(),F--,S===e?c=void 0:(i=c,c=e),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&N(tr)),S!==e?(G=o,c=Ze(S),o=c):(i=o,o=e)):(i=o,o=e))),o!==e)for(;o!==e;)t.push(o),o=i,s.charCodeAt(i)===92?(c=yr,i++):(c=e,F===0&&N($r)),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&N(tr)),S!==e?(G=o,c=Ze(S),o=c):(i=o,o=e)):(i=o,o=e),o===e&&(o=i,s.substr(i,2)===xr?(c=xr,i+=2):(c=e,F===0&&N(mn)),c!==e&&(G=o,c=_r()),o=c,o===e&&(o=i,c=i,F++,S=lt(),F--,S===e?c=void 0:(i=c,c=e),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&N(tr)),S!==e?(G=o,c=Ze(S),o=c):(i=o,o=e)):(i=o,o=e)));else t=e;return t!==e&&(G=r,t=mr(t)),r=t,r}function Kn(){var r,t,o,c,S,L;if(r=i,s.charCodeAt(i)===45?(t=Pr,i++):(t=e,F===0&&N(Or)),t===e&&(s.charCodeAt(i)===43?(t=cr,i++):(t=e,F===0&&N(Ce))),t===e&&(t=null),t!==e){if(o=[],Me.test(s.charAt(i))?(c=s.charAt(i),i++):(c=e,F===0&&N(Ye)),c!==e)for(;c!==e;)o.push(c),Me.test(s.charAt(i))?(c=s.charAt(i),i++):(c=e,F===0&&N(Ye));else o=e;if(o!==e)if(s.charCodeAt(i)===46?(c=ar,i++):(c=e,F===0&&N(ur)),c!==e){if(S=[],Me.test(s.charAt(i))?(L=s.charAt(i),i++):(L=e,F===0&&N(Ye)),L!==e)for(;L!==e;)S.push(L),Me.test(s.charAt(i))?(L=s.charAt(i),i++):(L=e,F===0&&N(Ye));else S=e;S!==e?(G=r,t=yn(t,o,S),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e}else i=r,r=e;if(r===e){if(r=i,s.charCodeAt(i)===45?(t=Pr,i++):(t=e,F===0&&N(Or)),t===e&&(s.charCodeAt(i)===43?(t=cr,i++):(t=e,F===0&&N(Ce))),t===e&&(t=null),t!==e){if(o=[],Me.test(s.charAt(i))?(c=s.charAt(i),i++):(c=e,F===0&&N(Ye)),c!==e)for(;c!==e;)o.push(c),Me.test(s.charAt(i))?(c=s.charAt(i),i++):(c=e,F===0&&N(Ye));else o=e;o!==e?(G=r,t=Dr(t,o),r=t):(i=r,r=e)}else i=r,r=e;if(r===e&&(r=i,t=Vn(),t!==e&&(G=r,t=f(t)),r=t,r===e&&(r=i,t=Tr(),t!==e&&(G=r,t=p(t)),r=t,r===e)))if(r=i,s.charCodeAt(i)===40?(t=Qe,i++):(t=e,F===0&&N(xe)),t!==e){for(o=[],c=V();c!==e;)o.push(c),c=V();if(o!==e)if(c=tt(),c!==e){for(S=[],L=V();L!==e;)S.push(L),L=V();S!==e?(s.charCodeAt(i)===41?(L=ee,i++):(L=e,F===0&&N(Ne)),L!==e?(G=r,t=x(c),r=t):(i=r,r=e)):(i=r,r=e)}else i=r,r=e;else i=r,r=e}else i=r,r=e}return r}function Wn(){var r,t,o,c,S,L,fe,pe;if(r=i,t=Kn(),t!==e){for(o=[],c=i,S=[],L=V();L!==e;)S.push(L),L=V();if(S!==e)if(s.charCodeAt(i)===42?(L=H,i++):(L=e,F===0&&N(q)),L===e&&(s.charCodeAt(i)===47?(L=X,i++):(L=e,F===0&&N(ue))),L!==e){for(fe=[],pe=V();pe!==e;)fe.push(pe),pe=V();fe!==e?(pe=Kn(),pe!==e?(G=c,S=me(t,L,pe),c=S):(i=c,c=e)):(i=c,c=e)}else i=c,c=e;else i=c,c=e;for(;c!==e;){for(o.push(c),c=i,S=[],L=V();L!==e;)S.push(L),L=V();if(S!==e)if(s.charCodeAt(i)===42?(L=H,i++):(L=e,F===0&&N(q)),L===e&&(s.charCodeAt(i)===47?(L=X,i++):(L=e,F===0&&N(ue))),L!==e){for(fe=[],pe=V();pe!==e;)fe.push(pe),pe=V();fe!==e?(pe=Kn(),pe!==e?(G=c,S=me(t,L,pe),c=S):(i=c,c=e)):(i=c,c=e)}else i=c,c=e;else i=c,c=e}o!==e?(G=r,t=pr(t,o),r=t):(i=r,r=e)}else i=r,r=e;return r}function tt(){var r,t,o,c,S,L,fe,pe;if(r=i,t=Wn(),t!==e){for(o=[],c=i,S=[],L=V();L!==e;)S.push(L),L=V();if(S!==e)if(s.charCodeAt(i)===43?(L=cr,i++):(L=e,F===0&&N(Ce)),L===e&&(s.charCodeAt(i)===45?(L=Pr,i++):(L=e,F===0&&N(Or))),L!==e){for(fe=[],pe=V();pe!==e;)fe.push(pe),pe=V();fe!==e?(pe=Wn(),pe!==e?(G=c,S=Oi(t,L,pe),c=S):(i=c,c=e)):(i=c,c=e)}else i=c,c=e;else i=c,c=e;for(;c!==e;){for(o.push(c),c=i,S=[],L=V();L!==e;)S.push(L),L=V();if(S!==e)if(s.charCodeAt(i)===43?(L=cr,i++):(L=e,F===0&&N(Ce)),L===e&&(s.charCodeAt(i)===45?(L=Pr,i++):(L=e,F===0&&N(Or))),L!==e){for(fe=[],pe=V();pe!==e;)fe.push(pe),pe=V();fe!==e?(pe=Wn(),pe!==e?(G=c,S=Oi(t,L,pe),c=S):(i=c,c=e)):(i=c,c=e)}else i=c,c=e;else i=c,c=e}o!==e?(G=r,t=pr(t,o),r=t):(i=r,r=e)}else i=r,r=e;return r}function st(){var r,t,o,c,S,L;if(r=i,s.substr(i,3)===Ti?(t=Ti,i+=3):(t=e,F===0&&N(cs)),t!==e){for(o=[],c=V();c!==e;)o.push(c),c=V();if(o!==e)if(c=tt(),c!==e){for(S=[],L=V();L!==e;)S.push(L),L=V();S!==e?(s.substr(i,2)===Ri?(L=Ri,i+=2):(L=e,F===0&&N(as)),L!==e?(G=r,t=us(c),r=t):(i=r,r=e)):(i=r,r=e)}else i=r,r=e;else i=r,r=e}else i=r,r=e;return r}function ot(){var r,t,o,c;return r=i,s.substr(i,2)===ji?(t=ji,i+=2):(t=e,F===0&&N(ps)),t!==e?(o=Jr(),o!==e?(s.charCodeAt(i)===41?(c=ee,i++):(c=e,F===0&&N(Ne)),c!==e?(G=r,t=hs(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r}function Vn(){var r,t,o,c,S,L;return r=i,s.substr(i,2)===sr?(t=sr,i+=2):(t=e,F===0&&N(Gr)),t!==e?(o=Tr(),o!==e?(s.substr(i,2)===Fi?(c=Fi,i+=2):(c=e,F===0&&N(gs)),c!==e?(S=Qi(),S!==e?(s.charCodeAt(i)===125?(L=be,i++):(L=e,F===0&&N(K)),L!==e?(G=r,t=ds(o,S),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===sr?(t=sr,i+=2):(t=e,F===0&&N(Gr)),t!==e?(o=Tr(),o!==e?(s.substr(i,3)===Li?(c=Li,i+=3):(c=e,F===0&&N(ms)),c!==e?(G=r,t=ys(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===sr?(t=sr,i+=2):(t=e,F===0&&N(Gr)),t!==e?(o=Tr(),o!==e?(s.substr(i,2)===Ii?(c=Ii,i+=2):(c=e,F===0&&N($s)),c!==e?(S=Qi(),S!==e?(s.charCodeAt(i)===125?(L=be,i++):(L=e,F===0&&N(K)),L!==e?(G=r,t=vs(o,S),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===sr?(t=sr,i+=2):(t=e,F===0&&N(Gr)),t!==e?(o=Tr(),o!==e?(s.substr(i,3)===Ni?(c=Ni,i+=3):(c=e,F===0&&N(As)),c!==e?(G=r,t=ws(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===sr?(t=sr,i+=2):(t=e,F===0&&N(Gr)),t!==e?(o=Tr(),o!==e?(s.charCodeAt(i)===125?(c=be,i++):(c=e,F===0&&N(K)),c!==e?(G=r,t=Pi(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.charCodeAt(i)===36?(t=bs,i++):(t=e,F===0&&N(Cs)),t!==e?(o=Tr(),o!==e?(G=r,t=Pi(o),r=t):(i=r,r=e)):(i=r,r=e)))))),r}function Qs(){var r,t,o;return r=i,t=zs(),t!==e?(G=i,o=Ss(t),o?o=void 0:o=e,o!==e?(G=r,t=Es(t),r=t):(i=r,r=e)):(i=r,r=e),r}function zs(){var r,t,o,c,S;if(r=i,t=[],o=i,c=i,F++,S=ct(),F--,S===e?c=void 0:(i=c,c=e),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&N(tr)),S!==e?(G=o,c=Ze(S),o=c):(i=o,o=e)):(i=o,o=e),o!==e)for(;o!==e;)t.push(o),o=i,c=i,F++,S=ct(),F--,S===e?c=void 0:(i=c,c=e),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&N(tr)),S!==e?(G=o,c=Ze(S),o=c):(i=o,o=e)):(i=o,o=e);else t=e;return t!==e&&(G=r,t=mr(t)),r=t,r}function ft(){var r,t,o;if(r=i,t=[],Di.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Mi)),o!==e)for(;o!==e;)t.push(o),Di.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Mi));else t=e;return t!==e&&(G=r,t=qi()),r=t,r}function Tr(){var r,t,o;if(r=i,t=[],Yi.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Bi)),o!==e)for(;o!==e;)t.push(o),Yi.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Bi));else t=e;return t!==e&&(G=r,t=qi()),r=t,r}function lt(){var r;return ks.test(s.charAt(i))?(r=s.charAt(i),i++):(r=e,F===0&&N(xs)),r}function ct(){var r;return _s.test(s.charAt(i))?(r=s.charAt(i),i++):(r=e,F===0&&N(Os)),r}function V(){var r,t;if(r=[],Ui.test(s.charAt(i))?(t=s.charAt(i),i++):(t=e,F===0&&N(Hi)),t!==e)for(;t!==e;)r.push(t),Ui.test(s.charAt(i))?(t=s.charAt(i),i++):(t=e,F===0&&N(Hi));else r=e;return r}if(vn=b(),vn!==e&&i===s.length)return vn;throw vn!==e&&i<s.length&&N(js()),Fs(Bn,or<s.length?s.charAt(or):null,or<s.length?Wi(or,or+1):Wi(or,or))}return zn={SyntaxError:g,parse:C},zn}var dt;function bo(){if(dt)return Te;dt=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.parseShell=g,Te.stringifyShellLine=C,Te.stringifyShell=C,Te.stringifyCommandLine=s,Te.stringifyCommandLineThen=h,Te.stringifyCommandChain=e,Te.stringifyCommandChainThen=d,Te.stringifyCommand=b,Te.stringifyEnvSegment=m,Te.stringifyArgument=w,Te.stringifyRedirectArgument=k,Te.stringifyValueArgument=Y,Te.stringifyArgumentSegment=ne,Te.stringifyArithmeticExpression=oe,Te.stringifyShellLine=C,Te.stringifyShell=C;const a=wo();function g(O,J={isGlobPattern:()=>!1}){try{return(0,a.parse)(O,J)}catch(re){throw re.location&&(re.message=re.message.replace(/(\.)?$/,` (line ${re.location.start.line}, column ${re.location.start.column})$1`)),re}}function C(O,{endSemicolon:J=!1}={}){return O.map(({command:re,type:M},le)=>`${s(re)}${M===";"?le!==O.length-1||J?";":"":" &"}`).join(" ")}function s(O){return`${e(O.chain)}${O.then?` ${h(O.then)}`:""}`}function h(O){return`${O.type} ${s(O.line)}`}function e(O){return`${b(O)}${O.then?` ${d(O.then)}`:""}`}function d(O){return`${O.type} ${e(O.chain)}`}function b(O){switch(O.type){case"command":return`${O.envs.length>0?`${O.envs.map(J=>m(J)).join(" ")} `:""}${O.args.map(J=>w(J)).join(" ")}`;case"subshell":return`(${C(O.subshell)})${O.args.length>0?` ${O.args.map(J=>k(J)).join(" ")}`:""}`;case"group":return`{ ${C(O.group,{endSemicolon:!0})} }${O.args.length>0?` ${O.args.map(J=>k(J)).join(" ")}`:""}`;case"envs":return O.envs.map(J=>m(J)).join(" ");default:throw new Error(`Unsupported command type: "${O.type}"`)}}function m(O){return`${O.name}=${O.args[0]?Y(O.args[0]):""}`}function w(O){switch(O.type){case"redirection":return k(O);case"argument":return Y(O);default:throw new Error(`Unsupported argument type: "${O.type}"`)}}function k(O){return`${O.subtype} ${O.args.map(J=>Y(J)).join(" ")}`}function Y(O){return O.segments.map(J=>ne(J)).join("")}const y=new Map([["\f","\\f"],[`
8
- `,"\\n"],["\r","\\r"],[" ","\\t"],["\v","\\v"],["\0","\\0"]]),A=new Map([["\\","\\\\"],["$","\\$"],['"','\\"'],...Array.from(y,([O,J])=>[O,`"$'${J}'"`])]),$=O=>y.get(O)??`\\x${O.charCodeAt(0).toString(16).padStart(2,"0")}`,D=O=>A.get(O)??`"$'${$(O)}'"`;function ne(O){const J=(M,le)=>le?`"${M}"`:M,re=M=>M===""?"''":M.match(/[()}<>$|&;"'\n\t ]/)?M.match(/['\t\p{C}]/u)?M.match(/'/)?`"${M.replace(/["$\t\p{C}]/u,D)}"`:`$'${M.replace(/[\t\p{C}]/u,$)}'`:`'${M}'`:M;switch(O.type){case"text":return re(O.text);case"glob":return O.pattern;case"shell":return J(`$(${C(O.shell)})`,O.quoted);case"variable":return J(typeof O.defaultValue>"u"?typeof O.alternativeValue>"u"?`\${${O.name}}`:O.alternativeValue.length===0?`\${${O.name}:+}`:`\${${O.name}:+${O.alternativeValue.map(M=>Y(M)).join(" ")}}`:O.defaultValue.length===0?`\${${O.name}:-}`:`\${${O.name}:-${O.defaultValue.map(M=>Y(M)).join(" ")}}`,O.quoted);case"arithmetic":return`$(( ${oe(O.arithmetic)} ))`;default:throw new Error(`Unsupported argument segment type: "${O.type}"`)}}function oe(O){const J=le=>{switch(le){case"addition":return"+";case"subtraction":return"-";case"multiplication":return"*";case"division":return"/";default:throw new Error(`Can't extract operator from arithmetic expression of type "${le}"`)}},re=(le,we)=>we?`( ${le} )`:le,M=le=>re(oe(le),!["number","variable"].includes(le.type));switch(O.type){case"number":return String(O.value);case"variable":return O.name;default:return`${M(O.left)} ${J(O.type)} ${M(O.right)}`}}return Te}var Xr={},Xn,mt;function Co(){if(mt)return Xn;mt=1;function a(s,h){function e(){this.constructor=s}e.prototype=h.prototype,s.prototype=new e}function g(s,h,e,d){this.message=s,this.expected=h,this.found=e,this.location=d,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,g)}a(g,Error),g.buildMessage=function(s,h){var e={literal:function(y){return'"'+b(y.text)+'"'},class:function(y){var A="",$;for($=0;$<y.parts.length;$++)A+=y.parts[$]instanceof Array?m(y.parts[$][0])+"-"+m(y.parts[$][1]):m(y.parts[$]);return"["+(y.inverted?"^":"")+A+"]"},any:function(y){return"any character"},end:function(y){return"end of input"},other:function(y){return y.description}};function d(y){return y.charCodeAt(0).toString(16).toUpperCase()}function b(y){return y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(A){return"\\x0"+d(A)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(A){return"\\x"+d(A)})}function m(y){return y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(A){return"\\x0"+d(A)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(A){return"\\x"+d(A)})}function w(y){return e[y.type](y)}function k(y){var A=new Array(y.length),$,D;for($=0;$<y.length;$++)A[$]=w(y[$]);if(A.sort(),A.length>0){for($=1,D=1;$<A.length;$++)A[$-1]!==A[$]&&(A[D]=A[$],D++);A.length=D}switch(A.length){case 1:return A[0];case 2:return A[0]+" or "+A[1];default:return A.slice(0,-1).join(", ")+", or "+A[A.length-1]}}function Y(y){return y?'"'+b(y)+'"':"end of input"}return"Expected "+k(s)+" but "+Y(h)+" found."};function C(s,h){h=h!==void 0?h:{};var e={},d={resolution:Ne},b=Ne,m="/",w=Le("/",!1),k=function(K,B){return{from:K,descriptor:B}},Y=function(K){return{descriptor:K}},y="@",A=Le("@",!1),$=function(K,B){return{fullName:K,description:B}},D=function(K){return{fullName:K}},ne=function(){return Oe()},oe=/^[^\/@]/,O=Be(["/","@"],!0,!1),J=/^[^\/]/,re=Be(["/"],!0,!1),M=0,le=0,we=[{line:1,column:1}],de=0,ve=[],Ee;if("startRule"in h){if(!(h.startRule in d))throw new Error(`Can't start parsing from rule "`+h.startRule+'".');b=d[h.startRule]}function Oe(){return s.substring(le,M)}function Le(K,B){return{type:"literal",text:K,ignoreCase:B}}function Be(K,B,te){return{type:"class",parts:K,inverted:B,ignoreCase:te}}function ye(){return{type:"end"}}function Pe(K){var B=we[K],te;if(B)return B;for(te=K-1;!we[te];)te--;for(B=we[te],B={line:B.line,column:B.column};te<K;)s.charCodeAt(te)===10?(B.line++,B.column=1):B.column++,te++;return we[K]=B,B}function Qe(K,B){var te=Pe(K),$e=Pe(B);return{start:{offset:K,line:te.line,column:te.column},end:{offset:B,line:$e.line,column:$e.column}}}function xe(K){M<de||(M>de&&(de=M,ve=[]),ve.push(K))}function ee(K,B,te){return new g(g.buildMessage(K,B),K,B,te)}function Ne(){var K,B,te,$e;return K=M,B=qe(),B!==e?(s.charCodeAt(M)===47?(te=m,M++):(te=e,xe(w)),te!==e?($e=qe(),$e!==e?(le=K,B=k(B,$e),K=B):(M=K,K=e)):(M=K,K=e)):(M=K,K=e),K===e&&(K=M,B=qe(),B!==e&&(le=K,B=Y(B)),K=B),K}function qe(){var K,B,te,$e;return K=M,B=Re(),B!==e?(s.charCodeAt(M)===64?(te=y,M++):(te=e,xe(A)),te!==e?($e=be(),$e!==e?(le=K,B=$(B,$e),K=B):(M=K,K=e)):(M=K,K=e)):(M=K,K=e),K===e&&(K=M,B=Re(),B!==e&&(le=K,B=D(B)),K=B),K}function Re(){var K,B,te,$e,Ve;return K=M,s.charCodeAt(M)===64?(B=y,M++):(B=e,xe(A)),B!==e?(te=De(),te!==e?(s.charCodeAt(M)===47?($e=m,M++):($e=e,xe(w)),$e!==e?(Ve=De(),Ve!==e?(le=K,B=ne(),K=B):(M=K,K=e)):(M=K,K=e)):(M=K,K=e)):(M=K,K=e),K===e&&(K=M,B=De(),B!==e&&(le=K,B=ne()),K=B),K}function De(){var K,B,te;if(K=M,B=[],oe.test(s.charAt(M))?(te=s.charAt(M),M++):(te=e,xe(O)),te!==e)for(;te!==e;)B.push(te),oe.test(s.charAt(M))?(te=s.charAt(M),M++):(te=e,xe(O));else B=e;return B!==e&&(le=K,B=ne()),K=B,K}function be(){var K,B,te;if(K=M,B=[],J.test(s.charAt(M))?(te=s.charAt(M),M++):(te=e,xe(re)),te!==e)for(;te!==e;)B.push(te),J.test(s.charAt(M))?(te=s.charAt(M),M++):(te=e,xe(re));else B=e;return B!==e&&(le=K,B=ne()),K=B,K}if(Ee=b(),Ee!==e&&M===s.length)return Ee;throw Ee!==e&&M<s.length&&xe(ye()),ee(ve,de<s.length?s.charAt(de):null,de<s.length?Qe(de,de+1):Qe(de,de))}return Xn={SyntaxError:g,parse:C},Xn}var yt;function So(){if(yt)return Xr;yt=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.parseResolution=g,Xr.stringifyResolution=C;const a=Co();function g(s){const h=s.match(/^\*{1,2}\/(.*)/);if(h)throw new Error(`The override for '${s}' includes a glob pattern. Glob patterns have been removed since their behaviours don't match what you'd expect. Set the override to '${h[1]}' instead.`);try{return(0,a.parse)(s)}catch(e){throw e.location&&(e.message=e.message.replace(/(\.)?$/,` (line ${e.location.start.line}, column ${e.location.start.column})$1`)),e}}function C(s){let h="";return s.from&&(h+=s.from.fullName,s.from.description&&(h+=`@${s.from.description}`),h+="/"),h+=s.descriptor.fullName,s.descriptor.description&&(h+=`@${s.descriptor.description}`),h}return Xr}var Rr={},Se={},Mr={},Ar={},$t;function Yr(){if($t)return Ar;$t=1;function a(d){return typeof d>"u"||d===null}function g(d){return typeof d=="object"&&d!==null}function C(d){return Array.isArray(d)?d:a(d)?[]:[d]}function s(d,b){var m,w,k,Y;if(b)for(Y=Object.keys(b),m=0,w=Y.length;m<w;m+=1)k=Y[m],d[k]=b[k];return d}function h(d,b){var m="",w;for(w=0;w<b;w+=1)m+=d;return m}function e(d){return d===0&&Number.NEGATIVE_INFINITY===1/d}return Ar.isNothing=a,Ar.isObject=g,Ar.toArray=C,Ar.repeat=h,Ar.isNegativeZero=e,Ar.extend=s,Ar}var Zn,vt;function nn(){if(vt)return Zn;vt=1;function a(g,C){Error.call(this),this.name="YAMLException",this.reason=g,this.mark=C,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.prototype.toString=function(C){var s=this.name+": ";return s+=this.reason||"(unknown reason)",!C&&this.mark&&(s+=" "+this.mark.toString()),s},Zn=a,Zn}var ei,At;function Eo(){if(At)return ei;At=1;var a=Yr();function g(C,s,h,e,d){this.name=C,this.buffer=s,this.position=h,this.line=e,this.column=d}return g.prototype.getSnippet=function(s,h){var e,d,b,m,w;if(!this.buffer)return null;for(s=s||4,h=h||75,e="",d=this.position;d>0&&`\0\r
7
+ `},ir="\\r",Ln=ce("\\r",!1),In=function(){return"\r"},Er="\\t",an=ce("\\t",!1),un=function(){return" "},se="\\v",Nn=ce("\\v",!1),pn=function(){return"\v"},Pn=/^[\\'"?]/,hn=Ke(["\\","'",'"',"?"],!1,!1),Ir=function(r){return String.fromCharCode(parseInt(r,16))},Wr="\\x",Nr=ce("\\x",!1),vr="\\u",Dn=ce("\\u",!1),Vr="\\U",gn=ce("\\U",!1),Mn=function(r){return String.fromCodePoint(parseInt(r,16))},kr=/^[0-7]/,qn=Ke([["0","7"]],!1,!1),Yn=/^[0-9a-fA-f]/,dn=Ke([["0","9"],["a","f"],["A","f"]],!1,!1),tr=Rs(),xr="{}",mn=ce("{}",!1),_r=function(){return"{}"},Pr="-",Or=ce("-",!1),cr="+",Ce=ce("+",!1),ar=".",ur=ce(".",!1),yn=function(r,t,o){return{type:"number",value:(r==="-"?-1:1)*parseFloat(t.join("")+"."+o.join(""))}},Dr=function(r,t){return{type:"number",value:(r==="-"?-1:1)*parseInt(t.join(""))}},f=function(r){return{type:"variable",...r}},p=function(r){return{type:"variable",name:r}},x=function(r){return r},H="*",q=ce("*",!1),X="/",ue=ce("/",!1),me=function(r,t,o){return{type:t==="*"?"multiplication":"division",right:o}},pr=function(r,t){return t.reduce((o,c)=>({left:o,...c}),r)},Oi=function(r,t,o){return{type:t==="+"?"addition":"subtraction",right:o}},Ti="$((",cs=ce("$((",!1),Ri="))",as=ce("))",!1),us=function(r){return r},ji="$(",ps=ce("$(",!1),hs=function(r){return r},sr="${",Gr=ce("${",!1),Fi=":-",gs=ce(":-",!1),ds=function(r,t){return{name:r,defaultValue:t}},Li=":-}",ms=ce(":-}",!1),ys=function(r){return{name:r,defaultValue:[]}},Ii=":+",$s=ce(":+",!1),vs=function(r,t){return{name:r,alternativeValue:t}},Ni=":+}",As=ce(":+}",!1),ws=function(r){return{name:r,alternativeValue:[]}},Pi=function(r){return{name:r}},bs="$",Cs=ce("$",!1),Ss=function(r){return h.isGlobPattern(r)},Es=function(r){return r},Di=/^[a-zA-Z0-9_]/,Mi=Ke([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),qi=function(){return Ts()},Yi=/^[$@*?#a-zA-Z0-9_\-]/,Bi=Ke(["$","@","*","?","#",["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),ks=/^[()}<>$|&; \t"']/,xs=Ke(["(",")","}","<",">","$","|","&",";"," "," ",'"',"'"],!1,!1),_s=/^[<>&; \t"']/,Os=Ke(["<",">","&",";"," "," ",'"',"'"],!1,!1),Ui=/^[ \t]/,Hi=Ke([" "," "],!1,!1),i=0,G=0,$n=[{line:1,column:1}],or=0,Bn=[],F=0,vn;if("startRule"in h){if(!(h.startRule in d))throw new Error(`Can't start parsing from rule "`+h.startRule+'".');b=d[h.startRule]}function Ts(){return s.substring(G,i)}function ce(r,t){return{type:"literal",text:r,ignoreCase:t}}function Ke(r,t,o){return{type:"class",parts:r,inverted:t,ignoreCase:o}}function Rs(){return{type:"any"}}function js(){return{type:"end"}}function Ki(r){var t=$n[r],o;if(t)return t;for(o=r-1;!$n[o];)o--;for(t=$n[o],t={line:t.line,column:t.column};o<r;)s.charCodeAt(o)===10?(t.line++,t.column=1):t.column++,o++;return $n[r]=t,t}function Wi(r,t){var o=Ki(r),c=Ki(t);return{start:{offset:r,line:o.line,column:o.column},end:{offset:t,line:c.line,column:c.column}}}function N(r){i<or||(i>or&&(or=i,Bn=[]),Bn.push(r))}function Fs(r,t,o){return new g(g.buildMessage(r,t),r,t,o)}function Vi(){var r,t,o;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();return t!==e?(o=Jr(),o===e&&(o=null),o!==e?(G=r,t=m(o),r=t):(i=r,r=e)):(i=r,r=e),r}function Jr(){var r,t,o,c,S;if(r=i,t=Un(),t!==e){for(o=[],c=V();c!==e;)o.push(c),c=V();o!==e?(c=Gi(),c!==e?(S=Ls(),S===e&&(S=null),S!==e?(G=r,t=w(t,c,S),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e)}else i=r,r=e;if(r===e)if(r=i,t=Un(),t!==e){for(o=[],c=V();c!==e;)o.push(c),c=V();o!==e?(c=Gi(),c===e&&(c=null),c!==e?(G=r,t=k(t,c),r=t):(i=r,r=e)):(i=r,r=e)}else i=r,r=e;return r}function Ls(){var r,t,o,c,S;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e)if(o=Jr(),o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();c!==e?(G=r,t=Y(o),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e;return r}function Gi(){var r;return s.charCodeAt(i)===59?(r=y,i++):(r=e,F===0&&N(A)),r===e&&(s.charCodeAt(i)===38?(r=$,i++):(r=e,F===0&&N(D))),r}function Un(){var r,t,o;return r=i,t=Ji(),t!==e?(o=Is(),o===e&&(o=null),o!==e?(G=r,t=ne(t,o),r=t):(i=r,r=e)):(i=r,r=e),r}function Is(){var r,t,o,c,S,L,fe;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e)if(o=Ns(),o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();if(c!==e)if(S=Un(),S!==e){for(L=[],fe=V();fe!==e;)L.push(fe),fe=V();L!==e?(G=r,t=oe(o,S),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e}else i=r,r=e;else i=r,r=e;return r}function Ns(){var r;return s.substr(i,2)===O?(r=O,i+=2):(r=e,F===0&&N(J)),r===e&&(s.substr(i,2)===re?(r=re,i+=2):(r=e,F===0&&N(M))),r}function Ji(){var r,t,o;return r=i,t=Ms(),t!==e?(o=Ps(),o===e&&(o=null),o!==e?(G=r,t=le(t,o),r=t):(i=r,r=e)):(i=r,r=e),r}function Ps(){var r,t,o,c,S,L,fe;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e)if(o=Ds(),o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();if(c!==e)if(S=Ji(),S!==e){for(L=[],fe=V();fe!==e;)L.push(fe),fe=V();L!==e?(G=r,t=we(o,S),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e}else i=r,r=e;else i=r,r=e;return r}function Ds(){var r;return s.substr(i,2)===de?(r=de,i+=2):(r=e,F===0&&N(ve)),r===e&&(s.charCodeAt(i)===124?(r=Ee,i++):(r=e,F===0&&N(Oe))),r}function An(){var r,t,o,c,S,L;if(r=i,t=ft(),t!==e)if(s.charCodeAt(i)===61?(o=Fe,i++):(o=e,F===0&&N(Be)),o!==e)if(c=Xi(),c!==e){for(S=[],L=V();L!==e;)S.push(L),L=V();S!==e?(G=r,t=ye(t,c),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e;else i=r,r=e;if(r===e)if(r=i,t=ft(),t!==e)if(s.charCodeAt(i)===61?(o=Fe,i++):(o=e,F===0&&N(Be)),o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();c!==e?(G=r,t=Pe(t),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e;return r}function Ms(){var r,t,o,c,S,L,fe,pe,_e,Re,Je;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e)if(s.charCodeAt(i)===40?(o=Qe,i++):(o=e,F===0&&N(xe)),o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();if(c!==e)if(S=Jr(),S!==e){for(L=[],fe=V();fe!==e;)L.push(fe),fe=V();if(L!==e)if(s.charCodeAt(i)===41?(fe=ee,i++):(fe=e,F===0&&N(Ne)),fe!==e){for(pe=[],_e=V();_e!==e;)pe.push(_e),_e=V();if(pe!==e){for(_e=[],Re=Qr();Re!==e;)_e.push(Re),Re=Qr();if(_e!==e){for(Re=[],Je=V();Je!==e;)Re.push(Je),Je=V();Re!==e?(G=r,t=qe(S,_e),r=t):(i=r,r=e)}else i=r,r=e}else i=r,r=e}else i=r,r=e;else i=r,r=e}else i=r,r=e;else i=r,r=e}else i=r,r=e;else i=r,r=e;if(r===e){for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e)if(s.charCodeAt(i)===123?(o=Te,i++):(o=e,F===0&&N(De)),o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();if(c!==e)if(S=Jr(),S!==e){for(L=[],fe=V();fe!==e;)L.push(fe),fe=V();if(L!==e)if(s.charCodeAt(i)===125?(fe=be,i++):(fe=e,F===0&&N(K)),fe!==e){for(pe=[],_e=V();_e!==e;)pe.push(_e),_e=V();if(pe!==e){for(_e=[],Re=Qr();Re!==e;)_e.push(Re),Re=Qr();if(_e!==e){for(Re=[],Je=V();Je!==e;)Re.push(Je),Je=V();Re!==e?(G=r,t=B(S,_e),r=t):(i=r,r=e)}else i=r,r=e}else i=r,r=e}else i=r,r=e;else i=r,r=e}else i=r,r=e;else i=r,r=e}else i=r,r=e;else i=r,r=e;if(r===e){for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e){for(o=[],c=An();c!==e;)o.push(c),c=An();if(o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();if(c!==e){if(S=[],L=zi(),L!==e)for(;L!==e;)S.push(L),L=zi();else S=e;if(S!==e){for(L=[],fe=V();fe!==e;)L.push(fe),fe=V();L!==e?(G=r,t=te(o,S),r=t):(i=r,r=e)}else i=r,r=e}else i=r,r=e}else i=r,r=e}else i=r,r=e;if(r===e){for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e){if(o=[],c=An(),c!==e)for(;c!==e;)o.push(c),c=An();else o=e;if(o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();c!==e?(G=r,t=$e(o),r=t):(i=r,r=e)}else i=r,r=e}else i=r,r=e}}}return r}function Qi(){var r,t,o,c,S;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e){if(o=[],c=wn(),c!==e)for(;c!==e;)o.push(c),c=wn();else o=e;if(o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();c!==e?(G=r,t=Ve(o),r=t):(i=r,r=e)}else i=r,r=e}else i=r,r=e;return r}function zi(){var r,t,o;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e?(o=Qr(),o!==e?(G=r,t=ze(o),r=t):(i=r,r=e)):(i=r,r=e),r===e){for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();t!==e?(o=wn(),o!==e?(G=r,t=ze(o),r=t):(i=r,r=e)):(i=r,r=e)}return r}function Qr(){var r,t,o,c,S;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();return t!==e?(Me.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Ye)),o===e&&(o=null),o!==e?(c=qs(),c!==e?(S=wn(),S!==e?(G=r,t=rr(o,c,S),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r}function qs(){var r;return s.substr(i,2)===nr?(r=nr,i+=2):(r=e,F===0&&N(wr)),r===e&&(s.substr(i,2)===fr?(r=fr,i+=2):(r=e,F===0&&N(lr)),r===e&&(s.charCodeAt(i)===62?(r=br,i++):(r=e,F===0&&N(Ue)),r===e&&(s.substr(i,3)===hr?(r=hr,i+=3):(r=e,F===0&&N(Xe)),r===e&&(s.substr(i,2)===Ge?(r=Ge,i+=2):(r=e,F===0&&N(gr)),r===e&&(s.charCodeAt(i)===60?(r=Cr,i++):(r=e,F===0&&N(dr))))))),r}function wn(){var r,t,o;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();return t!==e?(o=Xi(),o!==e?(G=r,t=ze(o),r=t):(i=r,r=e)):(i=r,r=e),r}function Xi(){var r,t,o;if(r=i,t=[],o=Zi(),o!==e)for(;o!==e;)t.push(o),o=Zi();else t=e;return t!==e&&(G=r,t=n(t)),r=t,r}function Zi(){var r,t;return r=i,t=Ys(),t!==e&&(G=r,t=E(t)),r=t,r===e&&(r=i,t=Bs(),t!==e&&(G=r,t=E(t)),r=t,r===e&&(r=i,t=Us(),t!==e&&(G=r,t=E(t)),r=t,r===e&&(r=i,t=Hs(),t!==e&&(G=r,t=E(t)),r=t))),r}function Ys(){var r,t,o,c;return r=i,s.substr(i,2)===R?(t=R,i+=2):(t=e,F===0&&N(Q)),t!==e?(o=Vs(),o!==e?(s.charCodeAt(i)===39?(c=I,i++):(c=e,F===0&&N(l)),c!==e?(G=r,t=v(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r}function Bs(){var r,t,o,c;return r=i,s.charCodeAt(i)===39?(t=I,i++):(t=e,F===0&&N(l)),t!==e?(o=Ks(),o!==e?(s.charCodeAt(i)===39?(c=I,i++):(c=e,F===0&&N(l)),c!==e?(G=r,t=v(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r}function Us(){var r,t,o,c;if(r=i,s.substr(i,2)===_?(t=_,i+=2):(t=e,F===0&&N(T)),t!==e&&(G=r,t=P()),r=t,r===e)if(r=i,s.charCodeAt(i)===34?(t=U,i++):(t=e,F===0&&N(j)),t!==e){for(o=[],c=et();c!==e;)o.push(c),c=et();o!==e?(s.charCodeAt(i)===34?(c=U,i++):(c=e,F===0&&N(j)),c!==e?(G=r,t=z(o),r=t):(i=r,r=e)):(i=r,r=e)}else i=r,r=e;return r}function Hs(){var r,t,o;if(r=i,t=[],o=rt(),o!==e)for(;o!==e;)t.push(o),o=rt();else t=e;return t!==e&&(G=r,t=z(t)),r=t,r}function et(){var r,t;return r=i,t=st(),t!==e&&(G=r,t=W(t)),r=t,r===e&&(r=i,t=ot(),t!==e&&(G=r,t=ie(t)),r=t,r===e&&(r=i,t=Vn(),t!==e&&(G=r,t=ge(t)),r=t,r===e&&(r=i,t=Ws(),t!==e&&(G=r,t=ae(t)),r=t))),r}function rt(){var r,t;return r=i,t=st(),t!==e&&(G=r,t=ke(t)),r=t,r===e&&(r=i,t=ot(),t!==e&&(G=r,t=En(t)),r=t,r===e&&(r=i,t=Vn(),t!==e&&(G=r,t=kn(t)),r=t,r===e&&(r=i,t=Qs(),t!==e&&(G=r,t=tn(t)),r=t,r===e&&(r=i,t=Js(),t!==e&&(G=r,t=ae(t)),r=t)))),r}function Ks(){var r,t,o;for(r=i,t=[],jr.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Fr));o!==e;)t.push(o),jr.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Fr));return t!==e&&(G=r,t=mr(t)),r=t,r}function Ws(){var r,t,o;if(r=i,t=[],o=nt(),o===e&&(sn.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(on))),o!==e)for(;o!==e;)t.push(o),o=nt(),o===e&&(sn.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(on)));else t=e;return t!==e&&(G=r,t=mr(t)),r=t,r}function nt(){var r,t,o;return r=i,s.substr(i,2)===Ur?(t=Ur,i+=2):(t=e,F===0&&N(xn)),t!==e&&(G=r,t=_n()),r=t,r===e&&(r=i,s.charCodeAt(i)===92?(t=yr,i++):(t=e,F===0&&N($r)),t!==e?(On.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(fn)),o!==e?(G=r,t=Ze(o),r=t):(i=r,r=e)):(i=r,r=e)),r}function Vs(){var r,t,o;for(r=i,t=[],o=it(),o===e&&(jr.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Fr)));o!==e;)t.push(o),o=it(),o===e&&(jr.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Fr)));return t!==e&&(G=r,t=mr(t)),r=t,r}function it(){var r,t,o;return r=i,s.substr(i,2)===Hr?(t=Hr,i+=2):(t=e,F===0&&N(Tn)),t!==e&&(G=r,t=Rn()),r=t,r===e&&(r=i,s.substr(i,2)===ln?(t=ln,i+=2):(t=e,F===0&&N(jn)),t!==e&&(G=r,t=Fn()),r=t,r===e&&(r=i,s.charCodeAt(i)===92?(t=yr,i++):(t=e,F===0&&N($r)),t!==e?(u.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(he)),o!==e?(G=r,t=Lr(),r=t):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===He?(t=He,i+=2):(t=e,F===0&&N(Kr)),t!==e&&(G=r,t=Z()),r=t,r===e&&(r=i,s.substr(i,2)===Sr?(t=Sr,i+=2):(t=e,F===0&&N(cn)),t!==e&&(G=r,t=Ae()),r=t,r===e&&(r=i,s.substr(i,2)===ir?(t=ir,i+=2):(t=e,F===0&&N(Ln)),t!==e&&(G=r,t=In()),r=t,r===e&&(r=i,s.substr(i,2)===Er?(t=Er,i+=2):(t=e,F===0&&N(an)),t!==e&&(G=r,t=un()),r=t,r===e&&(r=i,s.substr(i,2)===se?(t=se,i+=2):(t=e,F===0&&N(Nn)),t!==e&&(G=r,t=pn()),r=t,r===e&&(r=i,s.charCodeAt(i)===92?(t=yr,i++):(t=e,F===0&&N($r)),t!==e?(Pn.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(hn)),o!==e?(G=r,t=Ze(o),r=t):(i=r,r=e)):(i=r,r=e),r===e&&(r=Gs()))))))))),r}function Gs(){var r,t,o,c,S,L,fe,pe,_e,Re,Je,Gn;return r=i,s.charCodeAt(i)===92?(t=yr,i++):(t=e,F===0&&N($r)),t!==e?(o=Hn(),o!==e?(G=r,t=Ir(o),r=t):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===Wr?(t=Wr,i+=2):(t=e,F===0&&N(Nr)),t!==e?(o=i,c=i,S=Hn(),S!==e?(L=We(),L!==e?(S=[S,L],c=S):(i=c,c=e)):(i=c,c=e),c===e&&(c=Hn()),c!==e?o=s.substring(o,i):o=c,o!==e?(G=r,t=Ir(o),r=t):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===vr?(t=vr,i+=2):(t=e,F===0&&N(Dn)),t!==e?(o=i,c=i,S=We(),S!==e?(L=We(),L!==e?(fe=We(),fe!==e?(pe=We(),pe!==e?(S=[S,L,fe,pe],c=S):(i=c,c=e)):(i=c,c=e)):(i=c,c=e)):(i=c,c=e),c!==e?o=s.substring(o,i):o=c,o!==e?(G=r,t=Ir(o),r=t):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===Vr?(t=Vr,i+=2):(t=e,F===0&&N(gn)),t!==e?(o=i,c=i,S=We(),S!==e?(L=We(),L!==e?(fe=We(),fe!==e?(pe=We(),pe!==e?(_e=We(),_e!==e?(Re=We(),Re!==e?(Je=We(),Je!==e?(Gn=We(),Gn!==e?(S=[S,L,fe,pe,_e,Re,Je,Gn],c=S):(i=c,c=e)):(i=c,c=e)):(i=c,c=e)):(i=c,c=e)):(i=c,c=e)):(i=c,c=e)):(i=c,c=e)):(i=c,c=e),c!==e?o=s.substring(o,i):o=c,o!==e?(G=r,t=Mn(o),r=t):(i=r,r=e)):(i=r,r=e)))),r}function Hn(){var r;return kr.test(s.charAt(i))?(r=s.charAt(i),i++):(r=e,F===0&&N(qn)),r}function We(){var r;return Yn.test(s.charAt(i))?(r=s.charAt(i),i++):(r=e,F===0&&N(dn)),r}function Js(){var r,t,o,c,S;if(r=i,t=[],o=i,s.charCodeAt(i)===92?(c=yr,i++):(c=e,F===0&&N($r)),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&N(tr)),S!==e?(G=o,c=Ze(S),o=c):(i=o,o=e)):(i=o,o=e),o===e&&(o=i,s.substr(i,2)===xr?(c=xr,i+=2):(c=e,F===0&&N(mn)),c!==e&&(G=o,c=_r()),o=c,o===e&&(o=i,c=i,F++,S=lt(),F--,S===e?c=void 0:(i=c,c=e),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&N(tr)),S!==e?(G=o,c=Ze(S),o=c):(i=o,o=e)):(i=o,o=e))),o!==e)for(;o!==e;)t.push(o),o=i,s.charCodeAt(i)===92?(c=yr,i++):(c=e,F===0&&N($r)),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&N(tr)),S!==e?(G=o,c=Ze(S),o=c):(i=o,o=e)):(i=o,o=e),o===e&&(o=i,s.substr(i,2)===xr?(c=xr,i+=2):(c=e,F===0&&N(mn)),c!==e&&(G=o,c=_r()),o=c,o===e&&(o=i,c=i,F++,S=lt(),F--,S===e?c=void 0:(i=c,c=e),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&N(tr)),S!==e?(G=o,c=Ze(S),o=c):(i=o,o=e)):(i=o,o=e)));else t=e;return t!==e&&(G=r,t=mr(t)),r=t,r}function Kn(){var r,t,o,c,S,L;if(r=i,s.charCodeAt(i)===45?(t=Pr,i++):(t=e,F===0&&N(Or)),t===e&&(s.charCodeAt(i)===43?(t=cr,i++):(t=e,F===0&&N(Ce))),t===e&&(t=null),t!==e){if(o=[],Me.test(s.charAt(i))?(c=s.charAt(i),i++):(c=e,F===0&&N(Ye)),c!==e)for(;c!==e;)o.push(c),Me.test(s.charAt(i))?(c=s.charAt(i),i++):(c=e,F===0&&N(Ye));else o=e;if(o!==e)if(s.charCodeAt(i)===46?(c=ar,i++):(c=e,F===0&&N(ur)),c!==e){if(S=[],Me.test(s.charAt(i))?(L=s.charAt(i),i++):(L=e,F===0&&N(Ye)),L!==e)for(;L!==e;)S.push(L),Me.test(s.charAt(i))?(L=s.charAt(i),i++):(L=e,F===0&&N(Ye));else S=e;S!==e?(G=r,t=yn(t,o,S),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e}else i=r,r=e;if(r===e){if(r=i,s.charCodeAt(i)===45?(t=Pr,i++):(t=e,F===0&&N(Or)),t===e&&(s.charCodeAt(i)===43?(t=cr,i++):(t=e,F===0&&N(Ce))),t===e&&(t=null),t!==e){if(o=[],Me.test(s.charAt(i))?(c=s.charAt(i),i++):(c=e,F===0&&N(Ye)),c!==e)for(;c!==e;)o.push(c),Me.test(s.charAt(i))?(c=s.charAt(i),i++):(c=e,F===0&&N(Ye));else o=e;o!==e?(G=r,t=Dr(t,o),r=t):(i=r,r=e)}else i=r,r=e;if(r===e&&(r=i,t=Vn(),t!==e&&(G=r,t=f(t)),r=t,r===e&&(r=i,t=Tr(),t!==e&&(G=r,t=p(t)),r=t,r===e)))if(r=i,s.charCodeAt(i)===40?(t=Qe,i++):(t=e,F===0&&N(xe)),t!==e){for(o=[],c=V();c!==e;)o.push(c),c=V();if(o!==e)if(c=tt(),c!==e){for(S=[],L=V();L!==e;)S.push(L),L=V();S!==e?(s.charCodeAt(i)===41?(L=ee,i++):(L=e,F===0&&N(Ne)),L!==e?(G=r,t=x(c),r=t):(i=r,r=e)):(i=r,r=e)}else i=r,r=e;else i=r,r=e}else i=r,r=e}return r}function Wn(){var r,t,o,c,S,L,fe,pe;if(r=i,t=Kn(),t!==e){for(o=[],c=i,S=[],L=V();L!==e;)S.push(L),L=V();if(S!==e)if(s.charCodeAt(i)===42?(L=H,i++):(L=e,F===0&&N(q)),L===e&&(s.charCodeAt(i)===47?(L=X,i++):(L=e,F===0&&N(ue))),L!==e){for(fe=[],pe=V();pe!==e;)fe.push(pe),pe=V();fe!==e?(pe=Kn(),pe!==e?(G=c,S=me(t,L,pe),c=S):(i=c,c=e)):(i=c,c=e)}else i=c,c=e;else i=c,c=e;for(;c!==e;){for(o.push(c),c=i,S=[],L=V();L!==e;)S.push(L),L=V();if(S!==e)if(s.charCodeAt(i)===42?(L=H,i++):(L=e,F===0&&N(q)),L===e&&(s.charCodeAt(i)===47?(L=X,i++):(L=e,F===0&&N(ue))),L!==e){for(fe=[],pe=V();pe!==e;)fe.push(pe),pe=V();fe!==e?(pe=Kn(),pe!==e?(G=c,S=me(t,L,pe),c=S):(i=c,c=e)):(i=c,c=e)}else i=c,c=e;else i=c,c=e}o!==e?(G=r,t=pr(t,o),r=t):(i=r,r=e)}else i=r,r=e;return r}function tt(){var r,t,o,c,S,L,fe,pe;if(r=i,t=Wn(),t!==e){for(o=[],c=i,S=[],L=V();L!==e;)S.push(L),L=V();if(S!==e)if(s.charCodeAt(i)===43?(L=cr,i++):(L=e,F===0&&N(Ce)),L===e&&(s.charCodeAt(i)===45?(L=Pr,i++):(L=e,F===0&&N(Or))),L!==e){for(fe=[],pe=V();pe!==e;)fe.push(pe),pe=V();fe!==e?(pe=Wn(),pe!==e?(G=c,S=Oi(t,L,pe),c=S):(i=c,c=e)):(i=c,c=e)}else i=c,c=e;else i=c,c=e;for(;c!==e;){for(o.push(c),c=i,S=[],L=V();L!==e;)S.push(L),L=V();if(S!==e)if(s.charCodeAt(i)===43?(L=cr,i++):(L=e,F===0&&N(Ce)),L===e&&(s.charCodeAt(i)===45?(L=Pr,i++):(L=e,F===0&&N(Or))),L!==e){for(fe=[],pe=V();pe!==e;)fe.push(pe),pe=V();fe!==e?(pe=Wn(),pe!==e?(G=c,S=Oi(t,L,pe),c=S):(i=c,c=e)):(i=c,c=e)}else i=c,c=e;else i=c,c=e}o!==e?(G=r,t=pr(t,o),r=t):(i=r,r=e)}else i=r,r=e;return r}function st(){var r,t,o,c,S,L;if(r=i,s.substr(i,3)===Ti?(t=Ti,i+=3):(t=e,F===0&&N(cs)),t!==e){for(o=[],c=V();c!==e;)o.push(c),c=V();if(o!==e)if(c=tt(),c!==e){for(S=[],L=V();L!==e;)S.push(L),L=V();S!==e?(s.substr(i,2)===Ri?(L=Ri,i+=2):(L=e,F===0&&N(as)),L!==e?(G=r,t=us(c),r=t):(i=r,r=e)):(i=r,r=e)}else i=r,r=e;else i=r,r=e}else i=r,r=e;return r}function ot(){var r,t,o,c;return r=i,s.substr(i,2)===ji?(t=ji,i+=2):(t=e,F===0&&N(ps)),t!==e?(o=Jr(),o!==e?(s.charCodeAt(i)===41?(c=ee,i++):(c=e,F===0&&N(Ne)),c!==e?(G=r,t=hs(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r}function Vn(){var r,t,o,c,S,L;return r=i,s.substr(i,2)===sr?(t=sr,i+=2):(t=e,F===0&&N(Gr)),t!==e?(o=Tr(),o!==e?(s.substr(i,2)===Fi?(c=Fi,i+=2):(c=e,F===0&&N(gs)),c!==e?(S=Qi(),S!==e?(s.charCodeAt(i)===125?(L=be,i++):(L=e,F===0&&N(K)),L!==e?(G=r,t=ds(o,S),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===sr?(t=sr,i+=2):(t=e,F===0&&N(Gr)),t!==e?(o=Tr(),o!==e?(s.substr(i,3)===Li?(c=Li,i+=3):(c=e,F===0&&N(ms)),c!==e?(G=r,t=ys(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===sr?(t=sr,i+=2):(t=e,F===0&&N(Gr)),t!==e?(o=Tr(),o!==e?(s.substr(i,2)===Ii?(c=Ii,i+=2):(c=e,F===0&&N($s)),c!==e?(S=Qi(),S!==e?(s.charCodeAt(i)===125?(L=be,i++):(L=e,F===0&&N(K)),L!==e?(G=r,t=vs(o,S),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===sr?(t=sr,i+=2):(t=e,F===0&&N(Gr)),t!==e?(o=Tr(),o!==e?(s.substr(i,3)===Ni?(c=Ni,i+=3):(c=e,F===0&&N(As)),c!==e?(G=r,t=ws(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===sr?(t=sr,i+=2):(t=e,F===0&&N(Gr)),t!==e?(o=Tr(),o!==e?(s.charCodeAt(i)===125?(c=be,i++):(c=e,F===0&&N(K)),c!==e?(G=r,t=Pi(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.charCodeAt(i)===36?(t=bs,i++):(t=e,F===0&&N(Cs)),t!==e?(o=Tr(),o!==e?(G=r,t=Pi(o),r=t):(i=r,r=e)):(i=r,r=e)))))),r}function Qs(){var r,t,o;return r=i,t=zs(),t!==e?(G=i,o=Ss(t),o?o=void 0:o=e,o!==e?(G=r,t=Es(t),r=t):(i=r,r=e)):(i=r,r=e),r}function zs(){var r,t,o,c,S;if(r=i,t=[],o=i,c=i,F++,S=ct(),F--,S===e?c=void 0:(i=c,c=e),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&N(tr)),S!==e?(G=o,c=Ze(S),o=c):(i=o,o=e)):(i=o,o=e),o!==e)for(;o!==e;)t.push(o),o=i,c=i,F++,S=ct(),F--,S===e?c=void 0:(i=c,c=e),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&N(tr)),S!==e?(G=o,c=Ze(S),o=c):(i=o,o=e)):(i=o,o=e);else t=e;return t!==e&&(G=r,t=mr(t)),r=t,r}function ft(){var r,t,o;if(r=i,t=[],Di.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Mi)),o!==e)for(;o!==e;)t.push(o),Di.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Mi));else t=e;return t!==e&&(G=r,t=qi()),r=t,r}function Tr(){var r,t,o;if(r=i,t=[],Yi.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Bi)),o!==e)for(;o!==e;)t.push(o),Yi.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Bi));else t=e;return t!==e&&(G=r,t=qi()),r=t,r}function lt(){var r;return ks.test(s.charAt(i))?(r=s.charAt(i),i++):(r=e,F===0&&N(xs)),r}function ct(){var r;return _s.test(s.charAt(i))?(r=s.charAt(i),i++):(r=e,F===0&&N(Os)),r}function V(){var r,t;if(r=[],Ui.test(s.charAt(i))?(t=s.charAt(i),i++):(t=e,F===0&&N(Hi)),t!==e)for(;t!==e;)r.push(t),Ui.test(s.charAt(i))?(t=s.charAt(i),i++):(t=e,F===0&&N(Hi));else r=e;return r}if(vn=b(),vn!==e&&i===s.length)return vn;throw vn!==e&&i<s.length&&N(js()),Fs(Bn,or<s.length?s.charAt(or):null,or<s.length?Wi(or,or+1):Wi(or,or))}return zn={SyntaxError:g,parse:C},zn}var dt;function bo(){if(dt)return Le;dt=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.parseShell=g,Le.stringifyShellLine=C,Le.stringifyShell=C,Le.stringifyCommandLine=s,Le.stringifyCommandLineThen=h,Le.stringifyCommandChain=e,Le.stringifyCommandChainThen=d,Le.stringifyCommand=b,Le.stringifyEnvSegment=m,Le.stringifyArgument=w,Le.stringifyRedirectArgument=k,Le.stringifyValueArgument=Y,Le.stringifyArgumentSegment=ne,Le.stringifyArithmeticExpression=oe;const a=wo();function g(O,J={isGlobPattern:()=>!1}){try{return(0,a.parse)(O,J)}catch(re){throw re.location&&(re.message=re.message.replace(/(\.)?$/,` (line ${re.location.start.line}, column ${re.location.start.column})$1`)),re}}function C(O,{endSemicolon:J=!1}={}){return O.map(({command:re,type:M},le)=>`${s(re)}${M===";"?le!==O.length-1||J?";":"":" &"}`).join(" ")}function s(O){return`${e(O.chain)}${O.then?` ${h(O.then)}`:""}`}function h(O){return`${O.type} ${s(O.line)}`}function e(O){return`${b(O)}${O.then?` ${d(O.then)}`:""}`}function d(O){return`${O.type} ${e(O.chain)}`}function b(O){switch(O.type){case"command":return`${O.envs.length>0?`${O.envs.map(J=>m(J)).join(" ")} `:""}${O.args.map(J=>w(J)).join(" ")}`;case"subshell":return`(${C(O.subshell)})${O.args.length>0?` ${O.args.map(J=>k(J)).join(" ")}`:""}`;case"group":return`{ ${C(O.group,{endSemicolon:!0})} }${O.args.length>0?` ${O.args.map(J=>k(J)).join(" ")}`:""}`;case"envs":return O.envs.map(J=>m(J)).join(" ");default:throw new Error(`Unsupported command type: "${O.type}"`)}}function m(O){return`${O.name}=${O.args[0]?Y(O.args[0]):""}`}function w(O){switch(O.type){case"redirection":return k(O);case"argument":return Y(O);default:throw new Error(`Unsupported argument type: "${O.type}"`)}}function k(O){return`${O.subtype} ${O.args.map(J=>Y(J)).join(" ")}`}function Y(O){return O.segments.map(J=>ne(J)).join("")}const y=new Map([["\f","\\f"],[`
8
+ `,"\\n"],["\r","\\r"],[" ","\\t"],["\v","\\v"],["\0","\\0"]]),A=new Map([["\\","\\\\"],["$","\\$"],['"','\\"'],...Array.from(y,([O,J])=>[O,`"$'${J}'"`])]),$=O=>y.get(O)??`\\x${O.charCodeAt(0).toString(16).padStart(2,"0")}`,D=O=>A.get(O)??`"$'${$(O)}'"`;function ne(O){const J=(M,le)=>le?`"${M}"`:M,re=M=>M===""?"''":M.match(/[()}<>$|&;"'\n\t ]/)?M.match(/['\t\p{C}]/u)?M.match(/'/)?`"${M.replace(/["$\t\p{C}]/u,D)}"`:`$'${M.replace(/[\t\p{C}]/u,$)}'`:`'${M}'`:M;switch(O.type){case"text":return re(O.text);case"glob":return O.pattern;case"shell":return J(`$(${C(O.shell)})`,O.quoted);case"variable":return J(typeof O.defaultValue>"u"?typeof O.alternativeValue>"u"?`\${${O.name}}`:O.alternativeValue.length===0?`\${${O.name}:+}`:`\${${O.name}:+${O.alternativeValue.map(M=>Y(M)).join(" ")}}`:O.defaultValue.length===0?`\${${O.name}:-}`:`\${${O.name}:-${O.defaultValue.map(M=>Y(M)).join(" ")}}`,O.quoted);case"arithmetic":return`$(( ${oe(O.arithmetic)} ))`;default:throw new Error(`Unsupported argument segment type: "${O.type}"`)}}function oe(O){const J=le=>{switch(le){case"addition":return"+";case"subtraction":return"-";case"multiplication":return"*";case"division":return"/";default:throw new Error(`Can't extract operator from arithmetic expression of type "${le}"`)}},re=(le,we)=>we?`( ${le} )`:le,M=le=>re(oe(le),!["number","variable"].includes(le.type));switch(O.type){case"number":return String(O.value);case"variable":return O.name;default:return`${M(O.left)} ${J(O.type)} ${M(O.right)}`}}return Le}var Xr={},Xn,mt;function Co(){if(mt)return Xn;mt=1;function a(s,h){function e(){this.constructor=s}e.prototype=h.prototype,s.prototype=new e}function g(s,h,e,d){this.message=s,this.expected=h,this.found=e,this.location=d,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,g)}a(g,Error),g.buildMessage=function(s,h){var e={literal:function(y){return'"'+b(y.text)+'"'},class:function(y){var A="",$;for($=0;$<y.parts.length;$++)A+=y.parts[$]instanceof Array?m(y.parts[$][0])+"-"+m(y.parts[$][1]):m(y.parts[$]);return"["+(y.inverted?"^":"")+A+"]"},any:function(y){return"any character"},end:function(y){return"end of input"},other:function(y){return y.description}};function d(y){return y.charCodeAt(0).toString(16).toUpperCase()}function b(y){return y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(A){return"\\x0"+d(A)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(A){return"\\x"+d(A)})}function m(y){return y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(A){return"\\x0"+d(A)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(A){return"\\x"+d(A)})}function w(y){return e[y.type](y)}function k(y){var A=new Array(y.length),$,D;for($=0;$<y.length;$++)A[$]=w(y[$]);if(A.sort(),A.length>0){for($=1,D=1;$<A.length;$++)A[$-1]!==A[$]&&(A[D]=A[$],D++);A.length=D}switch(A.length){case 1:return A[0];case 2:return A[0]+" or "+A[1];default:return A.slice(0,-1).join(", ")+", or "+A[A.length-1]}}function Y(y){return y?'"'+b(y)+'"':"end of input"}return"Expected "+k(s)+" but "+Y(h)+" found."};function C(s,h){h=h!==void 0?h:{};var e={},d={resolution:Ne},b=Ne,m="/",w=Fe("/",!1),k=function(K,B){return{from:K,descriptor:B}},Y=function(K){return{descriptor:K}},y="@",A=Fe("@",!1),$=function(K,B){return{fullName:K,description:B}},D=function(K){return{fullName:K}},ne=function(){return Oe()},oe=/^[^\/@]/,O=Be(["/","@"],!0,!1),J=/^[^\/]/,re=Be(["/"],!0,!1),M=0,le=0,we=[{line:1,column:1}],de=0,ve=[],Ee;if("startRule"in h){if(!(h.startRule in d))throw new Error(`Can't start parsing from rule "`+h.startRule+'".');b=d[h.startRule]}function Oe(){return s.substring(le,M)}function Fe(K,B){return{type:"literal",text:K,ignoreCase:B}}function Be(K,B,te){return{type:"class",parts:K,inverted:B,ignoreCase:te}}function ye(){return{type:"end"}}function Pe(K){var B=we[K],te;if(B)return B;for(te=K-1;!we[te];)te--;for(B=we[te],B={line:B.line,column:B.column};te<K;)s.charCodeAt(te)===10?(B.line++,B.column=1):B.column++,te++;return we[K]=B,B}function Qe(K,B){var te=Pe(K),$e=Pe(B);return{start:{offset:K,line:te.line,column:te.column},end:{offset:B,line:$e.line,column:$e.column}}}function xe(K){M<de||(M>de&&(de=M,ve=[]),ve.push(K))}function ee(K,B,te){return new g(g.buildMessage(K,B),K,B,te)}function Ne(){var K,B,te,$e;return K=M,B=qe(),B!==e?(s.charCodeAt(M)===47?(te=m,M++):(te=e,xe(w)),te!==e?($e=qe(),$e!==e?(le=K,B=k(B,$e),K=B):(M=K,K=e)):(M=K,K=e)):(M=K,K=e),K===e&&(K=M,B=qe(),B!==e&&(le=K,B=Y(B)),K=B),K}function qe(){var K,B,te,$e;return K=M,B=Te(),B!==e?(s.charCodeAt(M)===64?(te=y,M++):(te=e,xe(A)),te!==e?($e=be(),$e!==e?(le=K,B=$(B,$e),K=B):(M=K,K=e)):(M=K,K=e)):(M=K,K=e),K===e&&(K=M,B=Te(),B!==e&&(le=K,B=D(B)),K=B),K}function Te(){var K,B,te,$e,Ve;return K=M,s.charCodeAt(M)===64?(B=y,M++):(B=e,xe(A)),B!==e?(te=De(),te!==e?(s.charCodeAt(M)===47?($e=m,M++):($e=e,xe(w)),$e!==e?(Ve=De(),Ve!==e?(le=K,B=ne(),K=B):(M=K,K=e)):(M=K,K=e)):(M=K,K=e)):(M=K,K=e),K===e&&(K=M,B=De(),B!==e&&(le=K,B=ne()),K=B),K}function De(){var K,B,te;if(K=M,B=[],oe.test(s.charAt(M))?(te=s.charAt(M),M++):(te=e,xe(O)),te!==e)for(;te!==e;)B.push(te),oe.test(s.charAt(M))?(te=s.charAt(M),M++):(te=e,xe(O));else B=e;return B!==e&&(le=K,B=ne()),K=B,K}function be(){var K,B,te;if(K=M,B=[],J.test(s.charAt(M))?(te=s.charAt(M),M++):(te=e,xe(re)),te!==e)for(;te!==e;)B.push(te),J.test(s.charAt(M))?(te=s.charAt(M),M++):(te=e,xe(re));else B=e;return B!==e&&(le=K,B=ne()),K=B,K}if(Ee=b(),Ee!==e&&M===s.length)return Ee;throw Ee!==e&&M<s.length&&xe(ye()),ee(ve,de<s.length?s.charAt(de):null,de<s.length?Qe(de,de+1):Qe(de,de))}return Xn={SyntaxError:g,parse:C},Xn}var yt;function So(){if(yt)return Xr;yt=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.parseResolution=g,Xr.stringifyResolution=C;const a=Co();function g(s){const h=s.match(/^\*{1,2}\/(.*)/);if(h)throw new Error(`The override for '${s}' includes a glob pattern. Glob patterns have been removed since their behaviours don't match what you'd expect. Set the override to '${h[1]}' instead.`);try{return(0,a.parse)(s)}catch(e){throw e.location&&(e.message=e.message.replace(/(\.)?$/,` (line ${e.location.start.line}, column ${e.location.start.column})$1`)),e}}function C(s){let h="";return s.from&&(h+=s.from.fullName,s.from.description&&(h+=`@${s.from.description}`),h+="/"),h+=s.descriptor.fullName,s.descriptor.description&&(h+=`@${s.descriptor.description}`),h}return Xr}var Rr={},Se={},Mr={},Ar={},$t;function Yr(){if($t)return Ar;$t=1;function a(d){return typeof d>"u"||d===null}function g(d){return typeof d=="object"&&d!==null}function C(d){return Array.isArray(d)?d:a(d)?[]:[d]}function s(d,b){var m,w,k,Y;if(b)for(Y=Object.keys(b),m=0,w=Y.length;m<w;m+=1)k=Y[m],d[k]=b[k];return d}function h(d,b){var m="",w;for(w=0;w<b;w+=1)m+=d;return m}function e(d){return d===0&&Number.NEGATIVE_INFINITY===1/d}return Ar.isNothing=a,Ar.isObject=g,Ar.toArray=C,Ar.repeat=h,Ar.isNegativeZero=e,Ar.extend=s,Ar}var Zn,vt;function nn(){if(vt)return Zn;vt=1;function a(g,C){Error.call(this),this.name="YAMLException",this.reason=g,this.mark=C,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.prototype.toString=function(C){var s=this.name+": ";return s+=this.reason||"(unknown reason)",!C&&this.mark&&(s+=" "+this.mark.toString()),s},Zn=a,Zn}var ei,At;function Eo(){if(At)return ei;At=1;var a=Yr();function g(C,s,h,e,d){this.name=C,this.buffer=s,this.position=h,this.line=e,this.column=d}return g.prototype.getSnippet=function(s,h){var e,d,b,m,w;if(!this.buffer)return null;for(s=s||4,h=h||75,e="",d=this.position;d>0&&`\0\r
9
9
  …\u2028\u2029`.indexOf(this.buffer.charAt(d-1))===-1;)if(d-=1,this.position-d>h/2-1){e=" ... ",d+=5;break}for(b="",m=this.position;m<this.buffer.length&&`\0\r
10
10
  …\u2028\u2029`.indexOf(this.buffer.charAt(m))===-1;)if(m+=1,m-this.position>h/2-1){b=" ... ",m-=5;break}return w=this.buffer.slice(d,m),a.repeat(" ",s)+e+w+b+`
11
11
  `+a.repeat(" ",s+this.position-d+e.length)+"^"},g.prototype.toString=function(s){var h,e="";return this.name&&(e+='in "'+this.name+'" '),e+="at line "+(this.line+1)+", column "+(this.column+1),s||(h=this.getSnippet(),h&&(e+=`:
12
- `+h)),e},ei=g,ei}var ri,wt;function Fe(){if(wt)return ri;wt=1;var a=nn(),g=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],C=["scalar","sequence","mapping"];function s(e){var d={};return e!==null&&Object.keys(e).forEach(function(b){e[b].forEach(function(m){d[String(m)]=b})}),d}function h(e,d){if(d=d||{},Object.keys(d).forEach(function(b){if(g.indexOf(b)===-1)throw new a('Unknown option "'+b+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=d.kind||null,this.resolve=d.resolve||function(){return!0},this.construct=d.construct||function(b){return b},this.instanceOf=d.instanceOf||null,this.predicate=d.predicate||null,this.represent=d.represent||null,this.defaultStyle=d.defaultStyle||null,this.styleAliases=s(d.styleAliases||null),C.indexOf(this.kind)===-1)throw new a('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}return ri=h,ri}var ni,bt;function Br(){if(bt)return ni;bt=1;var a=Yr(),g=nn(),C=Fe();function s(d,b,m){var w=[];return d.include.forEach(function(k){m=s(k,b,m)}),d[b].forEach(function(k){m.forEach(function(Y,y){Y.tag===k.tag&&Y.kind===k.kind&&w.push(y)}),m.push(k)}),m.filter(function(k,Y){return w.indexOf(Y)===-1})}function h(){var d={scalar:{},sequence:{},mapping:{},fallback:{}},b,m;function w(k){d[k.kind][k.tag]=d.fallback[k.tag]=k}for(b=0,m=arguments.length;b<m;b+=1)arguments[b].forEach(w);return d}function e(d){this.include=d.include||[],this.implicit=d.implicit||[],this.explicit=d.explicit||[],this.implicit.forEach(function(b){if(b.loadKind&&b.loadKind!=="scalar")throw new g("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=s(this,"implicit",[]),this.compiledExplicit=s(this,"explicit",[]),this.compiledTypeMap=h(this.compiledImplicit,this.compiledExplicit)}return e.DEFAULT=null,e.create=function(){var b,m;switch(arguments.length){case 1:b=e.DEFAULT,m=arguments[0];break;case 2:b=arguments[0],m=arguments[1];break;default:throw new g("Wrong number of arguments for Schema.create function")}if(b=a.toArray(b),m=a.toArray(m),!b.every(function(w){return w instanceof e}))throw new g("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!m.every(function(w){return w instanceof C}))throw new g("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:b,explicit:m})},ni=e,ni}var ii,Ct;function ko(){if(Ct)return ii;Ct=1;var a=Fe();return ii=new a("tag:yaml.org,2002:str",{kind:"scalar",construct:function(g){return g!==null?g:""}}),ii}var ti,St;function xo(){if(St)return ti;St=1;var a=Fe();return ti=new a("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(g){return g!==null?g:[]}}),ti}var si,Et;function _o(){if(Et)return si;Et=1;var a=Fe();return si=new a("tag:yaml.org,2002:map",{kind:"mapping",construct:function(g){return g!==null?g:{}}}),si}var oi,kt;function xi(){if(kt)return oi;kt=1;var a=Br();return oi=new a({explicit:[ko(),xo(),_o()]}),oi}var fi,xt;function Oo(){if(xt)return fi;xt=1;var a=Fe();function g(h){if(h===null)return!0;var e=h.length;return e===1&&h==="~"||e===4&&(h==="null"||h==="Null"||h==="NULL")}function C(){return null}function s(h){return h===null}return fi=new a("tag:yaml.org,2002:null",{kind:"scalar",resolve:g,construct:C,predicate:s,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),fi}var li,_t;function To(){if(_t)return li;_t=1;var a=Fe();function g(h){if(h===null)return!1;var e=h.length;return e===4&&(h==="true"||h==="True"||h==="TRUE")||e===5&&(h==="false"||h==="False"||h==="FALSE")}function C(h){return h==="true"||h==="True"||h==="TRUE"}function s(h){return Object.prototype.toString.call(h)==="[object Boolean]"}return li=new a("tag:yaml.org,2002:bool",{kind:"scalar",resolve:g,construct:C,predicate:s,represent:{lowercase:function(h){return h?"true":"false"},uppercase:function(h){return h?"TRUE":"FALSE"},camelcase:function(h){return h?"True":"False"}},defaultStyle:"lowercase"}),li}var ci,Ot;function Ro(){if(Ot)return ci;Ot=1;var a=Yr(),g=Fe();function C(m){return 48<=m&&m<=57||65<=m&&m<=70||97<=m&&m<=102}function s(m){return 48<=m&&m<=55}function h(m){return 48<=m&&m<=57}function e(m){if(m===null)return!1;var w=m.length,k=0,Y=!1,y;if(!w)return!1;if(y=m[k],(y==="-"||y==="+")&&(y=m[++k]),y==="0"){if(k+1===w)return!0;if(y=m[++k],y==="b"){for(k++;k<w;k++)if(y=m[k],y!=="_"){if(y!=="0"&&y!=="1")return!1;Y=!0}return Y&&y!=="_"}if(y==="x"){for(k++;k<w;k++)if(y=m[k],y!=="_"){if(!C(m.charCodeAt(k)))return!1;Y=!0}return Y&&y!=="_"}for(;k<w;k++)if(y=m[k],y!=="_"){if(!s(m.charCodeAt(k)))return!1;Y=!0}return Y&&y!=="_"}if(y==="_")return!1;for(;k<w;k++)if(y=m[k],y!=="_"){if(y===":")break;if(!h(m.charCodeAt(k)))return!1;Y=!0}return!Y||y==="_"?!1:y!==":"?!0:/^(:[0-5]?[0-9])+$/.test(m.slice(k))}function d(m){var w=m,k=1,Y,y,A=[];return w.indexOf("_")!==-1&&(w=w.replace(/_/g,"")),Y=w[0],(Y==="-"||Y==="+")&&(Y==="-"&&(k=-1),w=w.slice(1),Y=w[0]),w==="0"?0:Y==="0"?w[1]==="b"?k*parseInt(w.slice(2),2):w[1]==="x"?k*parseInt(w,16):k*parseInt(w,8):w.indexOf(":")!==-1?(w.split(":").forEach(function($){A.unshift(parseInt($,10))}),w=0,y=1,A.forEach(function($){w+=$*y,y*=60}),k*w):k*parseInt(w,10)}function b(m){return Object.prototype.toString.call(m)==="[object Number]"&&m%1===0&&!a.isNegativeZero(m)}return ci=new g("tag:yaml.org,2002:int",{kind:"scalar",resolve:e,construct:d,predicate:b,represent:{binary:function(m){return m>=0?"0b"+m.toString(2):"-0b"+m.toString(2).slice(1)},octal:function(m){return m>=0?"0"+m.toString(8):"-0"+m.toString(8).slice(1)},decimal:function(m){return m.toString(10)},hexadecimal:function(m){return m>=0?"0x"+m.toString(16).toUpperCase():"-0x"+m.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ci}var ai,Tt;function jo(){if(Tt)return ai;Tt=1;var a=Yr(),g=Fe(),C=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function s(m){return!(m===null||!C.test(m)||m[m.length-1]==="_")}function h(m){var w,k,Y,y;return w=m.replace(/_/g,"").toLowerCase(),k=w[0]==="-"?-1:1,y=[],"+-".indexOf(w[0])>=0&&(w=w.slice(1)),w===".inf"?k===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:w===".nan"?NaN:w.indexOf(":")>=0?(w.split(":").forEach(function(A){y.unshift(parseFloat(A,10))}),w=0,Y=1,y.forEach(function(A){w+=A*Y,Y*=60}),k*w):k*parseFloat(w,10)}var e=/^[-+]?[0-9]+e/;function d(m,w){var k;if(isNaN(m))switch(w){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===m)switch(w){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===m)switch(w){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(a.isNegativeZero(m))return"-0.0";return k=m.toString(10),e.test(k)?k.replace("e",".e"):k}function b(m){return Object.prototype.toString.call(m)==="[object Number]"&&(m%1!==0||a.isNegativeZero(m))}return ai=new g("tag:yaml.org,2002:float",{kind:"scalar",resolve:s,construct:h,predicate:b,represent:d,defaultStyle:"lowercase"}),ai}var ui,Rt;function ss(){if(Rt)return ui;Rt=1;var a=Br();return ui=new a({include:[xi()],implicit:[Oo(),To(),Ro(),jo()]}),ui}var pi,jt;function os(){if(jt)return pi;jt=1;var a=Br();return pi=new a({include:[ss()]}),pi}var hi,Ft;function Fo(){if(Ft)return hi;Ft=1;var a=Fe(),g=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),C=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function s(d){return d===null?!1:g.exec(d)!==null||C.exec(d)!==null}function h(d){var b,m,w,k,Y,y,A,$=0,D=null,ne,oe,O;if(b=g.exec(d),b===null&&(b=C.exec(d)),b===null)throw new Error("Date resolve error");if(m=+b[1],w=+b[2]-1,k=+b[3],!b[4])return new Date(Date.UTC(m,w,k));if(Y=+b[4],y=+b[5],A=+b[6],b[7]){for($=b[7].slice(0,3);$.length<3;)$+="0";$=+$}return b[9]&&(ne=+b[10],oe=+(b[11]||0),D=(ne*60+oe)*6e4,b[9]==="-"&&(D=-D)),O=new Date(Date.UTC(m,w,k,Y,y,A,$)),D&&O.setTime(O.getTime()-D),O}function e(d){return d.toISOString()}return hi=new a("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:s,construct:h,instanceOf:Date,represent:e}),hi}var gi,Lt;function Lo(){if(Lt)return gi;Lt=1;var a=Fe();function g(C){return C==="<<"||C===null}return gi=new a("tag:yaml.org,2002:merge",{kind:"scalar",resolve:g}),gi}function fs(a){throw new Error('Could not dynamically require "'+a+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var di,It;function Io(){if(It)return di;It=1;var a;try{var g=fs;a=g("buffer").Buffer}catch{}var C=Fe(),s=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
13
- \r`;function h(m){if(m===null)return!1;var w,k,Y=0,y=m.length,A=s;for(k=0;k<y;k++)if(w=A.indexOf(m.charAt(k)),!(w>64)){if(w<0)return!1;Y+=6}return Y%8===0}function e(m){var w,k,Y=m.replace(/[\r\n=]/g,""),y=Y.length,A=s,$=0,D=[];for(w=0;w<y;w++)w%4===0&&w&&(D.push($>>16&255),D.push($>>8&255),D.push($&255)),$=$<<6|A.indexOf(Y.charAt(w));return k=y%4*6,k===0?(D.push($>>16&255),D.push($>>8&255),D.push($&255)):k===18?(D.push($>>10&255),D.push($>>2&255)):k===12&&D.push($>>4&255),a?a.from?a.from(D):new a(D):D}function d(m){var w="",k=0,Y,y,A=m.length,$=s;for(Y=0;Y<A;Y++)Y%3===0&&Y&&(w+=$[k>>18&63],w+=$[k>>12&63],w+=$[k>>6&63],w+=$[k&63]),k=(k<<8)+m[Y];return y=A%3,y===0?(w+=$[k>>18&63],w+=$[k>>12&63],w+=$[k>>6&63],w+=$[k&63]):y===2?(w+=$[k>>10&63],w+=$[k>>4&63],w+=$[k<<2&63],w+=$[64]):y===1&&(w+=$[k>>2&63],w+=$[k<<4&63],w+=$[64],w+=$[64]),w}function b(m){return a&&a.isBuffer(m)}return di=new C("tag:yaml.org,2002:binary",{kind:"scalar",resolve:h,construct:e,predicate:b,represent:d}),di}var mi,Nt;function No(){if(Nt)return mi;Nt=1;var a=Fe(),g=Object.prototype.hasOwnProperty,C=Object.prototype.toString;function s(e){if(e===null)return!0;var d={},b,m,w,k,Y,y=e;for(b=0,m=y.length;b<m;b+=1){if(w=y[b],Y=!1,C.call(w)!=="[object Object]")return!1;for(k in w)if(g.call(w,k))if(!Y)Y=!0;else return!1;if(!Y||g.call(d,k))return!1;Object.defineProperty(d,k,{value:!0})}return!0}function h(e){return e!==null?e:[]}return mi=new a("tag:yaml.org,2002:omap",{kind:"sequence",resolve:s,construct:h}),mi}var yi,Pt;function Po(){if(Pt)return yi;Pt=1;var a=Fe(),g=Object.prototype.toString;function C(h){if(h===null)return!0;var e,d,b,m,w,k=h;for(w=new Array(k.length),e=0,d=k.length;e<d;e+=1){if(b=k[e],g.call(b)!=="[object Object]"||(m=Object.keys(b),m.length!==1))return!1;w[e]=[m[0],b[m[0]]]}return!0}function s(h){if(h===null)return[];var e,d,b,m,w,k=h;for(w=new Array(k.length),e=0,d=k.length;e<d;e+=1)b=k[e],m=Object.keys(b),w[e]=[m[0],b[m[0]]];return w}return yi=new a("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:C,construct:s}),yi}var $i,Dt;function Do(){if(Dt)return $i;Dt=1;var a=Fe(),g=Object.prototype.hasOwnProperty;function C(h){if(h===null)return!0;var e,d=h;for(e in d)if(g.call(d,e)&&d[e]!==null)return!1;return!0}function s(h){return h!==null?h:{}}return $i=new a("tag:yaml.org,2002:set",{kind:"mapping",resolve:C,construct:s}),$i}var vi,Mt;function rn(){if(Mt)return vi;Mt=1;var a=Br();return vi=new a({include:[os()],implicit:[Fo(),Lo()],explicit:[Io(),No(),Po(),Do()]}),vi}var Ai,qt;function Mo(){if(qt)return Ai;qt=1;var a=Fe();function g(){return!0}function C(){}function s(){return""}function h(e){return typeof e>"u"}return Ai=new a("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:g,construct:C,predicate:h,represent:s}),Ai}var wi,Yt;function qo(){if(Yt)return wi;Yt=1;var a=Fe();function g(e){if(e===null||e.length===0)return!1;var d=e,b=/\/([gim]*)$/.exec(e),m="";return!(d[0]==="/"&&(b&&(m=b[1]),m.length>3||d[d.length-m.length-1]!=="/"))}function C(e){var d=e,b=/\/([gim]*)$/.exec(e),m="";return d[0]==="/"&&(b&&(m=b[1]),d=d.slice(1,d.length-m.length-1)),new RegExp(d,m)}function s(e){var d="/"+e.source+"/";return e.global&&(d+="g"),e.multiline&&(d+="m"),e.ignoreCase&&(d+="i"),d}function h(e){return Object.prototype.toString.call(e)==="[object RegExp]"}return wi=new a("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:g,construct:C,predicate:h,represent:s}),wi}var bi,Bt;function Yo(){if(Bt)return bi;Bt=1;var a;try{var g=fs;a=g("esprima")}catch{typeof window<"u"&&(a=window.esprima)}var C=Fe();function s(b){if(b===null)return!1;try{var m="("+b+")",w=a.parse(m,{range:!0});return!(w.type!=="Program"||w.body.length!==1||w.body[0].type!=="ExpressionStatement"||w.body[0].expression.type!=="ArrowFunctionExpression"&&w.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function h(b){var m="("+b+")",w=a.parse(m,{range:!0}),k=[],Y;if(w.type!=="Program"||w.body.length!==1||w.body[0].type!=="ExpressionStatement"||w.body[0].expression.type!=="ArrowFunctionExpression"&&w.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return w.body[0].expression.params.forEach(function(y){k.push(y.name)}),Y=w.body[0].expression.body.range,w.body[0].expression.body.type==="BlockStatement"?new Function(k,m.slice(Y[0]+1,Y[1]-1)):new Function(k,"return "+m.slice(Y[0],Y[1]))}function e(b){return b.toString()}function d(b){return Object.prototype.toString.call(b)==="[object Function]"}return bi=new C("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:s,construct:h,predicate:d,represent:e}),bi}var Ci,Ut;function Sn(){if(Ut)return Ci;Ut=1;var a=Br();return Ci=a.DEFAULT=new a({include:[rn()],explicit:[Mo(),qo(),Yo()]}),Ci}var Ht;function Bo(){if(Ht)return Mr;Ht=1;var a=Yr(),g=nn(),C=Eo(),s=rn(),h=Sn(),e=Object.prototype.hasOwnProperty,d=1,b=2,m=3,w=4,k=1,Y=2,y=3,A=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,$=/[\x85\u2028\u2029]/,D=/[,\[\]\{\}]/,ne=/^(?:!|!!|![a-z\-]+!)$/i,oe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function O(n){return Object.prototype.toString.call(n)}function J(n){return n===10||n===13}function re(n){return n===9||n===32}function M(n){return n===9||n===32||n===10||n===13}function le(n){return n===44||n===91||n===93||n===123||n===125}function we(n){var E;return 48<=n&&n<=57?n-48:(E=n|32,97<=E&&E<=102?E-97+10:-1)}function de(n){return n===120?2:n===117?4:n===85?8:0}function ve(n){return 48<=n&&n<=57?n-48:-1}function Ee(n){return n===48?"\0":n===97?"\x07":n===98?"\b":n===116||n===9?" ":n===110?`
14
- `:n===118?"\v":n===102?"\f":n===114?"\r":n===101?"\x1B":n===32?" ":n===34?'"':n===47?"/":n===92?"\\":n===78?"…":n===95?" ":n===76?"\u2028":n===80?"\u2029":""}function Oe(n){return n<=65535?String.fromCharCode(n):String.fromCharCode((n-65536>>10)+55296,(n-65536&1023)+56320)}function Le(n,E,R){E==="__proto__"?Object.defineProperty(n,E,{configurable:!0,enumerable:!0,writable:!0,value:R}):n[E]=R}for(var Be=new Array(256),ye=new Array(256),Pe=0;Pe<256;Pe++)Be[Pe]=Ee(Pe)?1:0,ye[Pe]=Ee(Pe);function Qe(n,E){this.input=n,this.filename=E.filename||null,this.schema=E.schema||h,this.onWarning=E.onWarning||null,this.legacy=E.legacy||!1,this.json=E.json||!1,this.listener=E.listener||null,this.maxTotalMergeKeys=typeof E.maxTotalMergeKeys=="number"?E.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=n.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.totalMergeKeys=0,this.documents=[]}function xe(n,E){return new g(E,new C(n.filename,n.input,n.position,n.line,n.position-n.lineStart))}function ee(n,E){throw xe(n,E)}function Ne(n,E){n.onWarning&&n.onWarning.call(null,xe(n,E))}var qe={YAML:function(E,R,Q){var I,l,v;E.version!==null&&ee(E,"duplication of %YAML directive"),Q.length!==1&&ee(E,"YAML directive accepts exactly one argument"),I=/^([0-9]+)\.([0-9]+)$/.exec(Q[0]),I===null&&ee(E,"ill-formed argument of the YAML directive"),l=parseInt(I[1],10),v=parseInt(I[2],10),l!==1&&ee(E,"unacceptable YAML version of the document"),E.version=Q[0],E.checkLineBreaks=v<2,v!==1&&v!==2&&Ne(E,"unsupported YAML version of the document")},TAG:function(E,R,Q){var I,l;Q.length!==2&&ee(E,"TAG directive accepts exactly two arguments"),I=Q[0],l=Q[1],ne.test(I)||ee(E,"ill-formed tag handle (first argument) of the TAG directive"),e.call(E.tagMap,I)&&ee(E,'there is a previously declared suffix for "'+I+'" tag handle'),oe.test(l)||ee(E,"ill-formed tag prefix (second argument) of the TAG directive"),E.tagMap[I]=l}};function Re(n,E,R,Q){var I,l,v,_;if(E<R){if(_=n.input.slice(E,R),Q)for(I=0,l=_.length;I<l;I+=1)v=_.charCodeAt(I),v===9||32<=v&&v<=1114111||ee(n,"expected valid JSON character");else A.test(_)&&ee(n,"the stream contains non-printable characters");n.result+=_}}function De(n,E,R,Q){var I,l,v,_;for(a.isObject(R)||ee(n,"cannot merge mappings; the provided source object is unacceptable"),I=Object.keys(R),v=0,_=I.length;v<_;v+=1)l=I[v],n.maxTotalMergeKeys!==-1&&++n.totalMergeKeys>n.maxTotalMergeKeys&&ee(n,"merge keys exceeded maxTotalMergeKeys ("+n.maxTotalMergeKeys+")"),e.call(E,l)||(Le(E,l,R[l]),Q[l]=!0)}function be(n,E,R,Q,I,l,v,_){var T,P;if(Array.isArray(I))for(I=Array.prototype.slice.call(I),T=0,P=I.length;T<P;T+=1)Array.isArray(I[T])&&ee(n,"nested arrays are not supported inside keys"),typeof I=="object"&&O(I[T])==="[object Object]"&&(I[T]="[object Object]");if(typeof I=="object"&&O(I)==="[object Object]"&&(I="[object Object]"),I=String(I),E===null&&(E={}),Q==="tag:yaml.org,2002:merge")if(Array.isArray(l))for(T=0,P=l.length;T<P;T+=1)De(n,E,l[T],R);else De(n,E,l,R);else!n.json&&!e.call(R,I)&&e.call(E,I)&&(n.line=v||n.line,n.position=_||n.position,ee(n,"duplicated mapping key")),Le(E,I,l),delete R[I];return E}function K(n){var E;E=n.input.charCodeAt(n.position),E===10?n.position++:E===13?(n.position++,n.input.charCodeAt(n.position)===10&&n.position++):ee(n,"a line break is expected"),n.line+=1,n.lineStart=n.position}function B(n,E,R){for(var Q=0,I=n.input.charCodeAt(n.position);I!==0;){for(;re(I);)I=n.input.charCodeAt(++n.position);if(E&&I===35)do I=n.input.charCodeAt(++n.position);while(I!==10&&I!==13&&I!==0);if(J(I))for(K(n),I=n.input.charCodeAt(n.position),Q++,n.lineIndent=0;I===32;)n.lineIndent++,I=n.input.charCodeAt(++n.position);else break}return R!==-1&&Q!==0&&n.lineIndent<R&&Ne(n,"deficient indentation"),Q}function te(n){var E=n.position,R;return R=n.input.charCodeAt(E),!!((R===45||R===46)&&R===n.input.charCodeAt(E+1)&&R===n.input.charCodeAt(E+2)&&(E+=3,R=n.input.charCodeAt(E),R===0||M(R)))}function $e(n,E){E===1?n.result+=" ":E>1&&(n.result+=a.repeat(`
15
- `,E-1))}function Ve(n,E,R){var Q,I,l,v,_,T,P,U,j=n.kind,z=n.result,W;if(W=n.input.charCodeAt(n.position),M(W)||le(W)||W===35||W===38||W===42||W===33||W===124||W===62||W===39||W===34||W===37||W===64||W===96||(W===63||W===45)&&(I=n.input.charCodeAt(n.position+1),M(I)||R&&le(I)))return!1;for(n.kind="scalar",n.result="",l=v=n.position,_=!1;W!==0;){if(W===58){if(I=n.input.charCodeAt(n.position+1),M(I)||R&&le(I))break}else if(W===35){if(Q=n.input.charCodeAt(n.position-1),M(Q))break}else{if(n.position===n.lineStart&&te(n)||R&&le(W))break;if(J(W))if(T=n.line,P=n.lineStart,U=n.lineIndent,B(n,!1,-1),n.lineIndent>=E){_=!0,W=n.input.charCodeAt(n.position);continue}else{n.position=v,n.line=T,n.lineStart=P,n.lineIndent=U;break}}_&&(Re(n,l,v,!1),$e(n,n.line-T),l=v=n.position,_=!1),re(W)||(v=n.position+1),W=n.input.charCodeAt(++n.position)}return Re(n,l,v,!1),n.result?!0:(n.kind=j,n.result=z,!1)}function ze(n,E){var R,Q,I;if(R=n.input.charCodeAt(n.position),R!==39)return!1;for(n.kind="scalar",n.result="",n.position++,Q=I=n.position;(R=n.input.charCodeAt(n.position))!==0;)if(R===39)if(Re(n,Q,n.position,!0),R=n.input.charCodeAt(++n.position),R===39)Q=n.position,n.position++,I=n.position;else return!0;else J(R)?(Re(n,Q,I,!0),$e(n,B(n,!1,E)),Q=I=n.position):n.position===n.lineStart&&te(n)?ee(n,"unexpected end of the document within a single quoted scalar"):(n.position++,I=n.position);ee(n,"unexpected end of the stream within a single quoted scalar")}function Me(n,E){var R,Q,I,l,v,_;if(_=n.input.charCodeAt(n.position),_!==34)return!1;for(n.kind="scalar",n.result="",n.position++,R=Q=n.position;(_=n.input.charCodeAt(n.position))!==0;){if(_===34)return Re(n,R,n.position,!0),n.position++,!0;if(_===92){if(Re(n,R,n.position,!0),_=n.input.charCodeAt(++n.position),J(_))B(n,!1,E);else if(_<256&&Be[_])n.result+=ye[_],n.position++;else if((v=de(_))>0){for(I=v,l=0;I>0;I--)_=n.input.charCodeAt(++n.position),(v=we(_))>=0?l=(l<<4)+v:ee(n,"expected hexadecimal character");n.result+=Oe(l),n.position++}else ee(n,"unknown escape sequence");R=Q=n.position}else J(_)?(Re(n,R,Q,!0),$e(n,B(n,!1,E)),R=Q=n.position):n.position===n.lineStart&&te(n)?ee(n,"unexpected end of the document within a double quoted scalar"):(n.position++,Q=n.position)}ee(n,"unexpected end of the stream within a double quoted scalar")}function Ye(n,E){var R=!0,Q,I=n.tag,l,v=n.anchor,_,T,P,U,j,z={},W,ie,ge,ae;if(ae=n.input.charCodeAt(n.position),ae===91)T=93,j=!1,l=[];else if(ae===123)T=125,j=!0,l={};else return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=l),ae=n.input.charCodeAt(++n.position);ae!==0;){if(B(n,!0,E),ae=n.input.charCodeAt(n.position),ae===T)return n.position++,n.tag=I,n.anchor=v,n.kind=j?"mapping":"sequence",n.result=l,!0;R||ee(n,"missed comma between flow collection entries"),ie=W=ge=null,P=U=!1,ae===63&&(_=n.input.charCodeAt(n.position+1),M(_)&&(P=U=!0,n.position++,B(n,!0,E))),Q=n.line,Ue(n,E,d,!1,!0),ie=n.tag,W=n.result,B(n,!0,E),ae=n.input.charCodeAt(n.position),(U||n.line===Q)&&ae===58&&(P=!0,ae=n.input.charCodeAt(++n.position),B(n,!0,E),Ue(n,E,d,!1,!0),ge=n.result),j?be(n,l,z,ie,W,ge):P?l.push(be(n,null,z,ie,W,ge)):l.push(W),B(n,!0,E),ae=n.input.charCodeAt(n.position),ae===44?(R=!0,ae=n.input.charCodeAt(++n.position)):R=!1}ee(n,"unexpected end of the stream within a flow collection")}function rr(n,E){var R,Q,I=k,l=!1,v=!1,_=E,T=0,P=!1,U,j;if(j=n.input.charCodeAt(n.position),j===124)Q=!1;else if(j===62)Q=!0;else return!1;for(n.kind="scalar",n.result="";j!==0;)if(j=n.input.charCodeAt(++n.position),j===43||j===45)k===I?I=j===43?y:Y:ee(n,"repeat of a chomping mode identifier");else if((U=ve(j))>=0)U===0?ee(n,"bad explicit indentation width of a block scalar; it cannot be less than one"):v?ee(n,"repeat of an indentation width identifier"):(_=E+U-1,v=!0);else break;if(re(j)){do j=n.input.charCodeAt(++n.position);while(re(j));if(j===35)do j=n.input.charCodeAt(++n.position);while(!J(j)&&j!==0)}for(;j!==0;){for(K(n),n.lineIndent=0,j=n.input.charCodeAt(n.position);(!v||n.lineIndent<_)&&j===32;)n.lineIndent++,j=n.input.charCodeAt(++n.position);if(!v&&n.lineIndent>_&&(_=n.lineIndent),J(j)){T++;continue}if(n.lineIndent<_){I===y?n.result+=a.repeat(`
12
+ `+h)),e},ei=g,ei}var ri,wt;function je(){if(wt)return ri;wt=1;var a=nn(),g=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],C=["scalar","sequence","mapping"];function s(e){var d={};return e!==null&&Object.keys(e).forEach(function(b){e[b].forEach(function(m){d[String(m)]=b})}),d}function h(e,d){if(d=d||{},Object.keys(d).forEach(function(b){if(g.indexOf(b)===-1)throw new a('Unknown option "'+b+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=d.kind||null,this.resolve=d.resolve||function(){return!0},this.construct=d.construct||function(b){return b},this.instanceOf=d.instanceOf||null,this.predicate=d.predicate||null,this.represent=d.represent||null,this.defaultStyle=d.defaultStyle||null,this.styleAliases=s(d.styleAliases||null),C.indexOf(this.kind)===-1)throw new a('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}return ri=h,ri}var ni,bt;function Br(){if(bt)return ni;bt=1;var a=Yr(),g=nn(),C=je();function s(d,b,m){var w=[];return d.include.forEach(function(k){m=s(k,b,m)}),d[b].forEach(function(k){m.forEach(function(Y,y){Y.tag===k.tag&&Y.kind===k.kind&&w.push(y)}),m.push(k)}),m.filter(function(k,Y){return w.indexOf(Y)===-1})}function h(){var d={scalar:{},sequence:{},mapping:{},fallback:{}},b,m;function w(k){d[k.kind][k.tag]=d.fallback[k.tag]=k}for(b=0,m=arguments.length;b<m;b+=1)arguments[b].forEach(w);return d}function e(d){this.include=d.include||[],this.implicit=d.implicit||[],this.explicit=d.explicit||[],this.implicit.forEach(function(b){if(b.loadKind&&b.loadKind!=="scalar")throw new g("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=s(this,"implicit",[]),this.compiledExplicit=s(this,"explicit",[]),this.compiledTypeMap=h(this.compiledImplicit,this.compiledExplicit)}return e.DEFAULT=null,e.create=function(){var b,m;switch(arguments.length){case 1:b=e.DEFAULT,m=arguments[0];break;case 2:b=arguments[0],m=arguments[1];break;default:throw new g("Wrong number of arguments for Schema.create function")}if(b=a.toArray(b),m=a.toArray(m),!b.every(function(w){return w instanceof e}))throw new g("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!m.every(function(w){return w instanceof C}))throw new g("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:b,explicit:m})},ni=e,ni}var ii,Ct;function ko(){if(Ct)return ii;Ct=1;var a=je();return ii=new a("tag:yaml.org,2002:str",{kind:"scalar",construct:function(g){return g!==null?g:""}}),ii}var ti,St;function xo(){if(St)return ti;St=1;var a=je();return ti=new a("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(g){return g!==null?g:[]}}),ti}var si,Et;function _o(){if(Et)return si;Et=1;var a=je();return si=new a("tag:yaml.org,2002:map",{kind:"mapping",construct:function(g){return g!==null?g:{}}}),si}var oi,kt;function xi(){if(kt)return oi;kt=1;var a=Br();return oi=new a({explicit:[ko(),xo(),_o()]}),oi}var fi,xt;function Oo(){if(xt)return fi;xt=1;var a=je();function g(h){if(h===null)return!0;var e=h.length;return e===1&&h==="~"||e===4&&(h==="null"||h==="Null"||h==="NULL")}function C(){return null}function s(h){return h===null}return fi=new a("tag:yaml.org,2002:null",{kind:"scalar",resolve:g,construct:C,predicate:s,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),fi}var li,_t;function To(){if(_t)return li;_t=1;var a=je();function g(h){if(h===null)return!1;var e=h.length;return e===4&&(h==="true"||h==="True"||h==="TRUE")||e===5&&(h==="false"||h==="False"||h==="FALSE")}function C(h){return h==="true"||h==="True"||h==="TRUE"}function s(h){return Object.prototype.toString.call(h)==="[object Boolean]"}return li=new a("tag:yaml.org,2002:bool",{kind:"scalar",resolve:g,construct:C,predicate:s,represent:{lowercase:function(h){return h?"true":"false"},uppercase:function(h){return h?"TRUE":"FALSE"},camelcase:function(h){return h?"True":"False"}},defaultStyle:"lowercase"}),li}var ci,Ot;function Ro(){if(Ot)return ci;Ot=1;var a=Yr(),g=je();function C(m){return 48<=m&&m<=57||65<=m&&m<=70||97<=m&&m<=102}function s(m){return 48<=m&&m<=55}function h(m){return 48<=m&&m<=57}function e(m){if(m===null)return!1;var w=m.length,k=0,Y=!1,y;if(!w)return!1;if(y=m[k],(y==="-"||y==="+")&&(y=m[++k]),y==="0"){if(k+1===w)return!0;if(y=m[++k],y==="b"){for(k++;k<w;k++)if(y=m[k],y!=="_"){if(y!=="0"&&y!=="1")return!1;Y=!0}return Y&&y!=="_"}if(y==="x"){for(k++;k<w;k++)if(y=m[k],y!=="_"){if(!C(m.charCodeAt(k)))return!1;Y=!0}return Y&&y!=="_"}for(;k<w;k++)if(y=m[k],y!=="_"){if(!s(m.charCodeAt(k)))return!1;Y=!0}return Y&&y!=="_"}if(y==="_")return!1;for(;k<w;k++)if(y=m[k],y!=="_"){if(y===":")break;if(!h(m.charCodeAt(k)))return!1;Y=!0}return!Y||y==="_"?!1:y!==":"?!0:/^(:[0-5]?[0-9])+$/.test(m.slice(k))}function d(m){var w=m,k=1,Y,y,A=[];return w.indexOf("_")!==-1&&(w=w.replace(/_/g,"")),Y=w[0],(Y==="-"||Y==="+")&&(Y==="-"&&(k=-1),w=w.slice(1),Y=w[0]),w==="0"?0:Y==="0"?w[1]==="b"?k*parseInt(w.slice(2),2):w[1]==="x"?k*parseInt(w,16):k*parseInt(w,8):w.indexOf(":")!==-1?(w.split(":").forEach(function($){A.unshift(parseInt($,10))}),w=0,y=1,A.forEach(function($){w+=$*y,y*=60}),k*w):k*parseInt(w,10)}function b(m){return Object.prototype.toString.call(m)==="[object Number]"&&m%1===0&&!a.isNegativeZero(m)}return ci=new g("tag:yaml.org,2002:int",{kind:"scalar",resolve:e,construct:d,predicate:b,represent:{binary:function(m){return m>=0?"0b"+m.toString(2):"-0b"+m.toString(2).slice(1)},octal:function(m){return m>=0?"0"+m.toString(8):"-0"+m.toString(8).slice(1)},decimal:function(m){return m.toString(10)},hexadecimal:function(m){return m>=0?"0x"+m.toString(16).toUpperCase():"-0x"+m.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ci}var ai,Tt;function jo(){if(Tt)return ai;Tt=1;var a=Yr(),g=je(),C=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function s(m){return!(m===null||!C.test(m)||m[m.length-1]==="_")}function h(m){var w,k,Y,y;return w=m.replace(/_/g,"").toLowerCase(),k=w[0]==="-"?-1:1,y=[],"+-".indexOf(w[0])>=0&&(w=w.slice(1)),w===".inf"?k===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:w===".nan"?NaN:w.indexOf(":")>=0?(w.split(":").forEach(function(A){y.unshift(parseFloat(A,10))}),w=0,Y=1,y.forEach(function(A){w+=A*Y,Y*=60}),k*w):k*parseFloat(w,10)}var e=/^[-+]?[0-9]+e/;function d(m,w){var k;if(isNaN(m))switch(w){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===m)switch(w){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===m)switch(w){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(a.isNegativeZero(m))return"-0.0";return k=m.toString(10),e.test(k)?k.replace("e",".e"):k}function b(m){return Object.prototype.toString.call(m)==="[object Number]"&&(m%1!==0||a.isNegativeZero(m))}return ai=new g("tag:yaml.org,2002:float",{kind:"scalar",resolve:s,construct:h,predicate:b,represent:d,defaultStyle:"lowercase"}),ai}var ui,Rt;function ss(){if(Rt)return ui;Rt=1;var a=Br();return ui=new a({include:[xi()],implicit:[Oo(),To(),Ro(),jo()]}),ui}var pi,jt;function os(){if(jt)return pi;jt=1;var a=Br();return pi=new a({include:[ss()]}),pi}var hi,Ft;function Fo(){if(Ft)return hi;Ft=1;var a=je(),g=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),C=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function s(d){return d===null?!1:g.exec(d)!==null||C.exec(d)!==null}function h(d){var b,m,w,k,Y,y,A,$=0,D=null,ne,oe,O;if(b=g.exec(d),b===null&&(b=C.exec(d)),b===null)throw new Error("Date resolve error");if(m=+b[1],w=+b[2]-1,k=+b[3],!b[4])return new Date(Date.UTC(m,w,k));if(Y=+b[4],y=+b[5],A=+b[6],b[7]){for($=b[7].slice(0,3);$.length<3;)$+="0";$=+$}return b[9]&&(ne=+b[10],oe=+(b[11]||0),D=(ne*60+oe)*6e4,b[9]==="-"&&(D=-D)),O=new Date(Date.UTC(m,w,k,Y,y,A,$)),D&&O.setTime(O.getTime()-D),O}function e(d){return d.toISOString()}return hi=new a("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:s,construct:h,instanceOf:Date,represent:e}),hi}var gi,Lt;function Lo(){if(Lt)return gi;Lt=1;var a=je();function g(C){return C==="<<"||C===null}return gi=new a("tag:yaml.org,2002:merge",{kind:"scalar",resolve:g}),gi}function fs(a){throw new Error('Could not dynamically require "'+a+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var di,It;function Io(){if(It)return di;It=1;var a;try{var g=fs;a=g("buffer").Buffer}catch{}var C=je(),s=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
13
+ \r`;function h(m){if(m===null)return!1;var w,k,Y=0,y=m.length,A=s;for(k=0;k<y;k++)if(w=A.indexOf(m.charAt(k)),!(w>64)){if(w<0)return!1;Y+=6}return Y%8===0}function e(m){var w,k,Y=m.replace(/[\r\n=]/g,""),y=Y.length,A=s,$=0,D=[];for(w=0;w<y;w++)w%4===0&&w&&(D.push($>>16&255),D.push($>>8&255),D.push($&255)),$=$<<6|A.indexOf(Y.charAt(w));return k=y%4*6,k===0?(D.push($>>16&255),D.push($>>8&255),D.push($&255)):k===18?(D.push($>>10&255),D.push($>>2&255)):k===12&&D.push($>>4&255),a?a.from?a.from(D):new a(D):D}function d(m){var w="",k=0,Y,y,A=m.length,$=s;for(Y=0;Y<A;Y++)Y%3===0&&Y&&(w+=$[k>>18&63],w+=$[k>>12&63],w+=$[k>>6&63],w+=$[k&63]),k=(k<<8)+m[Y];return y=A%3,y===0?(w+=$[k>>18&63],w+=$[k>>12&63],w+=$[k>>6&63],w+=$[k&63]):y===2?(w+=$[k>>10&63],w+=$[k>>4&63],w+=$[k<<2&63],w+=$[64]):y===1&&(w+=$[k>>2&63],w+=$[k<<4&63],w+=$[64],w+=$[64]),w}function b(m){return a&&a.isBuffer(m)}return di=new C("tag:yaml.org,2002:binary",{kind:"scalar",resolve:h,construct:e,predicate:b,represent:d}),di}var mi,Nt;function No(){if(Nt)return mi;Nt=1;var a=je(),g=Object.prototype.hasOwnProperty,C=Object.prototype.toString;function s(e){if(e===null)return!0;var d={},b,m,w,k,Y,y=e;for(b=0,m=y.length;b<m;b+=1){if(w=y[b],Y=!1,C.call(w)!=="[object Object]")return!1;for(k in w)if(g.call(w,k))if(!Y)Y=!0;else return!1;if(!Y||g.call(d,k))return!1;Object.defineProperty(d,k,{value:!0})}return!0}function h(e){return e!==null?e:[]}return mi=new a("tag:yaml.org,2002:omap",{kind:"sequence",resolve:s,construct:h}),mi}var yi,Pt;function Po(){if(Pt)return yi;Pt=1;var a=je(),g=Object.prototype.toString;function C(h){if(h===null)return!0;var e,d,b,m,w,k=h;for(w=new Array(k.length),e=0,d=k.length;e<d;e+=1){if(b=k[e],g.call(b)!=="[object Object]"||(m=Object.keys(b),m.length!==1))return!1;w[e]=[m[0],b[m[0]]]}return!0}function s(h){if(h===null)return[];var e,d,b,m,w,k=h;for(w=new Array(k.length),e=0,d=k.length;e<d;e+=1)b=k[e],m=Object.keys(b),w[e]=[m[0],b[m[0]]];return w}return yi=new a("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:C,construct:s}),yi}var $i,Dt;function Do(){if(Dt)return $i;Dt=1;var a=je(),g=Object.prototype.hasOwnProperty;function C(h){if(h===null)return!0;var e,d=h;for(e in d)if(g.call(d,e)&&d[e]!==null)return!1;return!0}function s(h){return h!==null?h:{}}return $i=new a("tag:yaml.org,2002:set",{kind:"mapping",resolve:C,construct:s}),$i}var vi,Mt;function rn(){if(Mt)return vi;Mt=1;var a=Br();return vi=new a({include:[os()],implicit:[Fo(),Lo()],explicit:[Io(),No(),Po(),Do()]}),vi}var Ai,qt;function Mo(){if(qt)return Ai;qt=1;var a=je();function g(){return!0}function C(){}function s(){return""}function h(e){return typeof e>"u"}return Ai=new a("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:g,construct:C,predicate:h,represent:s}),Ai}var wi,Yt;function qo(){if(Yt)return wi;Yt=1;var a=je();function g(e){if(e===null||e.length===0)return!1;var d=e,b=/\/([gim]*)$/.exec(e),m="";return!(d[0]==="/"&&(b&&(m=b[1]),m.length>3||d[d.length-m.length-1]!=="/"))}function C(e){var d=e,b=/\/([gim]*)$/.exec(e),m="";return d[0]==="/"&&(b&&(m=b[1]),d=d.slice(1,d.length-m.length-1)),new RegExp(d,m)}function s(e){var d="/"+e.source+"/";return e.global&&(d+="g"),e.multiline&&(d+="m"),e.ignoreCase&&(d+="i"),d}function h(e){return Object.prototype.toString.call(e)==="[object RegExp]"}return wi=new a("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:g,construct:C,predicate:h,represent:s}),wi}var bi,Bt;function Yo(){if(Bt)return bi;Bt=1;var a;try{var g=fs;a=g("esprima")}catch{typeof window<"u"&&(a=window.esprima)}var C=je();function s(b){if(b===null)return!1;try{var m="("+b+")",w=a.parse(m,{range:!0});return!(w.type!=="Program"||w.body.length!==1||w.body[0].type!=="ExpressionStatement"||w.body[0].expression.type!=="ArrowFunctionExpression"&&w.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function h(b){var m="("+b+")",w=a.parse(m,{range:!0}),k=[],Y;if(w.type!=="Program"||w.body.length!==1||w.body[0].type!=="ExpressionStatement"||w.body[0].expression.type!=="ArrowFunctionExpression"&&w.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return w.body[0].expression.params.forEach(function(y){k.push(y.name)}),Y=w.body[0].expression.body.range,w.body[0].expression.body.type==="BlockStatement"?new Function(k,m.slice(Y[0]+1,Y[1]-1)):new Function(k,"return "+m.slice(Y[0],Y[1]))}function e(b){return b.toString()}function d(b){return Object.prototype.toString.call(b)==="[object Function]"}return bi=new C("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:s,construct:h,predicate:d,represent:e}),bi}var Ci,Ut;function Sn(){if(Ut)return Ci;Ut=1;var a=Br();return Ci=a.DEFAULT=new a({include:[rn()],explicit:[Mo(),qo(),Yo()]}),Ci}var Ht;function Bo(){if(Ht)return Mr;Ht=1;var a=Yr(),g=nn(),C=Eo(),s=rn(),h=Sn(),e=Object.prototype.hasOwnProperty,d=1,b=2,m=3,w=4,k=1,Y=2,y=3,A=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,$=/[\x85\u2028\u2029]/,D=/[,\[\]\{\}]/,ne=/^(?:!|!!|![a-z\-]+!)$/i,oe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function O(n){return Object.prototype.toString.call(n)}function J(n){return n===10||n===13}function re(n){return n===9||n===32}function M(n){return n===9||n===32||n===10||n===13}function le(n){return n===44||n===91||n===93||n===123||n===125}function we(n){var E;return 48<=n&&n<=57?n-48:(E=n|32,97<=E&&E<=102?E-97+10:-1)}function de(n){return n===120?2:n===117?4:n===85?8:0}function ve(n){return 48<=n&&n<=57?n-48:-1}function Ee(n){return n===48?"\0":n===97?"\x07":n===98?"\b":n===116||n===9?" ":n===110?`
14
+ `:n===118?"\v":n===102?"\f":n===114?"\r":n===101?"\x1B":n===32?" ":n===34?'"':n===47?"/":n===92?"\\":n===78?"…":n===95?" ":n===76?"\u2028":n===80?"\u2029":""}function Oe(n){return n<=65535?String.fromCharCode(n):String.fromCharCode((n-65536>>10)+55296,(n-65536&1023)+56320)}function Fe(n,E,R){E==="__proto__"?Object.defineProperty(n,E,{configurable:!0,enumerable:!0,writable:!0,value:R}):n[E]=R}for(var Be=new Array(256),ye=new Array(256),Pe=0;Pe<256;Pe++)Be[Pe]=Ee(Pe)?1:0,ye[Pe]=Ee(Pe);function Qe(n,E){this.input=n,this.filename=E.filename||null,this.schema=E.schema||h,this.onWarning=E.onWarning||null,this.legacy=E.legacy||!1,this.json=E.json||!1,this.listener=E.listener||null,this.maxTotalMergeKeys=typeof E.maxTotalMergeKeys=="number"?E.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=n.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.totalMergeKeys=0,this.documents=[]}function xe(n,E){return new g(E,new C(n.filename,n.input,n.position,n.line,n.position-n.lineStart))}function ee(n,E){throw xe(n,E)}function Ne(n,E){n.onWarning&&n.onWarning.call(null,xe(n,E))}var qe={YAML:function(E,R,Q){var I,l,v;E.version!==null&&ee(E,"duplication of %YAML directive"),Q.length!==1&&ee(E,"YAML directive accepts exactly one argument"),I=/^([0-9]+)\.([0-9]+)$/.exec(Q[0]),I===null&&ee(E,"ill-formed argument of the YAML directive"),l=parseInt(I[1],10),v=parseInt(I[2],10),l!==1&&ee(E,"unacceptable YAML version of the document"),E.version=Q[0],E.checkLineBreaks=v<2,v!==1&&v!==2&&Ne(E,"unsupported YAML version of the document")},TAG:function(E,R,Q){var I,l;Q.length!==2&&ee(E,"TAG directive accepts exactly two arguments"),I=Q[0],l=Q[1],ne.test(I)||ee(E,"ill-formed tag handle (first argument) of the TAG directive"),e.call(E.tagMap,I)&&ee(E,'there is a previously declared suffix for "'+I+'" tag handle'),oe.test(l)||ee(E,"ill-formed tag prefix (second argument) of the TAG directive"),E.tagMap[I]=l}};function Te(n,E,R,Q){var I,l,v,_;if(E<R){if(_=n.input.slice(E,R),Q)for(I=0,l=_.length;I<l;I+=1)v=_.charCodeAt(I),v===9||32<=v&&v<=1114111||ee(n,"expected valid JSON character");else A.test(_)&&ee(n,"the stream contains non-printable characters");n.result+=_}}function De(n,E,R,Q){var I,l,v,_;for(a.isObject(R)||ee(n,"cannot merge mappings; the provided source object is unacceptable"),I=Object.keys(R),v=0,_=I.length;v<_;v+=1)l=I[v],n.maxTotalMergeKeys!==-1&&++n.totalMergeKeys>n.maxTotalMergeKeys&&ee(n,"merge keys exceeded maxTotalMergeKeys ("+n.maxTotalMergeKeys+")"),e.call(E,l)||(Fe(E,l,R[l]),Q[l]=!0)}function be(n,E,R,Q,I,l,v,_){var T,P;if(Array.isArray(I))for(I=Array.prototype.slice.call(I),T=0,P=I.length;T<P;T+=1)Array.isArray(I[T])&&ee(n,"nested arrays are not supported inside keys"),typeof I=="object"&&O(I[T])==="[object Object]"&&(I[T]="[object Object]");if(typeof I=="object"&&O(I)==="[object Object]"&&(I="[object Object]"),I=String(I),E===null&&(E={}),Q==="tag:yaml.org,2002:merge")if(Array.isArray(l))for(T=0,P=l.length;T<P;T+=1)De(n,E,l[T],R);else De(n,E,l,R);else!n.json&&!e.call(R,I)&&e.call(E,I)&&(n.line=v||n.line,n.position=_||n.position,ee(n,"duplicated mapping key")),Fe(E,I,l),delete R[I];return E}function K(n){var E;E=n.input.charCodeAt(n.position),E===10?n.position++:E===13?(n.position++,n.input.charCodeAt(n.position)===10&&n.position++):ee(n,"a line break is expected"),n.line+=1,n.lineStart=n.position}function B(n,E,R){for(var Q=0,I=n.input.charCodeAt(n.position);I!==0;){for(;re(I);)I=n.input.charCodeAt(++n.position);if(E&&I===35)do I=n.input.charCodeAt(++n.position);while(I!==10&&I!==13&&I!==0);if(J(I))for(K(n),I=n.input.charCodeAt(n.position),Q++,n.lineIndent=0;I===32;)n.lineIndent++,I=n.input.charCodeAt(++n.position);else break}return R!==-1&&Q!==0&&n.lineIndent<R&&Ne(n,"deficient indentation"),Q}function te(n){var E=n.position,R;return R=n.input.charCodeAt(E),!!((R===45||R===46)&&R===n.input.charCodeAt(E+1)&&R===n.input.charCodeAt(E+2)&&(E+=3,R=n.input.charCodeAt(E),R===0||M(R)))}function $e(n,E){E===1?n.result+=" ":E>1&&(n.result+=a.repeat(`
15
+ `,E-1))}function Ve(n,E,R){var Q,I,l,v,_,T,P,U,j=n.kind,z=n.result,W;if(W=n.input.charCodeAt(n.position),M(W)||le(W)||W===35||W===38||W===42||W===33||W===124||W===62||W===39||W===34||W===37||W===64||W===96||(W===63||W===45)&&(I=n.input.charCodeAt(n.position+1),M(I)||R&&le(I)))return!1;for(n.kind="scalar",n.result="",l=v=n.position,_=!1;W!==0;){if(W===58){if(I=n.input.charCodeAt(n.position+1),M(I)||R&&le(I))break}else if(W===35){if(Q=n.input.charCodeAt(n.position-1),M(Q))break}else{if(n.position===n.lineStart&&te(n)||R&&le(W))break;if(J(W))if(T=n.line,P=n.lineStart,U=n.lineIndent,B(n,!1,-1),n.lineIndent>=E){_=!0,W=n.input.charCodeAt(n.position);continue}else{n.position=v,n.line=T,n.lineStart=P,n.lineIndent=U;break}}_&&(Te(n,l,v,!1),$e(n,n.line-T),l=v=n.position,_=!1),re(W)||(v=n.position+1),W=n.input.charCodeAt(++n.position)}return Te(n,l,v,!1),n.result?!0:(n.kind=j,n.result=z,!1)}function ze(n,E){var R,Q,I;if(R=n.input.charCodeAt(n.position),R!==39)return!1;for(n.kind="scalar",n.result="",n.position++,Q=I=n.position;(R=n.input.charCodeAt(n.position))!==0;)if(R===39)if(Te(n,Q,n.position,!0),R=n.input.charCodeAt(++n.position),R===39)Q=n.position,n.position++,I=n.position;else return!0;else J(R)?(Te(n,Q,I,!0),$e(n,B(n,!1,E)),Q=I=n.position):n.position===n.lineStart&&te(n)?ee(n,"unexpected end of the document within a single quoted scalar"):(n.position++,I=n.position);ee(n,"unexpected end of the stream within a single quoted scalar")}function Me(n,E){var R,Q,I,l,v,_;if(_=n.input.charCodeAt(n.position),_!==34)return!1;for(n.kind="scalar",n.result="",n.position++,R=Q=n.position;(_=n.input.charCodeAt(n.position))!==0;){if(_===34)return Te(n,R,n.position,!0),n.position++,!0;if(_===92){if(Te(n,R,n.position,!0),_=n.input.charCodeAt(++n.position),J(_))B(n,!1,E);else if(_<256&&Be[_])n.result+=ye[_],n.position++;else if((v=de(_))>0){for(I=v,l=0;I>0;I--)_=n.input.charCodeAt(++n.position),(v=we(_))>=0?l=(l<<4)+v:ee(n,"expected hexadecimal character");n.result+=Oe(l),n.position++}else ee(n,"unknown escape sequence");R=Q=n.position}else J(_)?(Te(n,R,Q,!0),$e(n,B(n,!1,E)),R=Q=n.position):n.position===n.lineStart&&te(n)?ee(n,"unexpected end of the document within a double quoted scalar"):(n.position++,Q=n.position)}ee(n,"unexpected end of the stream within a double quoted scalar")}function Ye(n,E){var R=!0,Q,I=n.tag,l,v=n.anchor,_,T,P,U,j,z={},W,ie,ge,ae;if(ae=n.input.charCodeAt(n.position),ae===91)T=93,j=!1,l=[];else if(ae===123)T=125,j=!0,l={};else return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=l),ae=n.input.charCodeAt(++n.position);ae!==0;){if(B(n,!0,E),ae=n.input.charCodeAt(n.position),ae===T)return n.position++,n.tag=I,n.anchor=v,n.kind=j?"mapping":"sequence",n.result=l,!0;R||ee(n,"missed comma between flow collection entries"),ie=W=ge=null,P=U=!1,ae===63&&(_=n.input.charCodeAt(n.position+1),M(_)&&(P=U=!0,n.position++,B(n,!0,E))),Q=n.line,Ue(n,E,d,!1,!0),ie=n.tag,W=n.result,B(n,!0,E),ae=n.input.charCodeAt(n.position),(U||n.line===Q)&&ae===58&&(P=!0,ae=n.input.charCodeAt(++n.position),B(n,!0,E),Ue(n,E,d,!1,!0),ge=n.result),j?be(n,l,z,ie,W,ge):P?l.push(be(n,null,z,ie,W,ge)):l.push(W),B(n,!0,E),ae=n.input.charCodeAt(n.position),ae===44?(R=!0,ae=n.input.charCodeAt(++n.position)):R=!1}ee(n,"unexpected end of the stream within a flow collection")}function rr(n,E){var R,Q,I=k,l=!1,v=!1,_=E,T=0,P=!1,U,j;if(j=n.input.charCodeAt(n.position),j===124)Q=!1;else if(j===62)Q=!0;else return!1;for(n.kind="scalar",n.result="";j!==0;)if(j=n.input.charCodeAt(++n.position),j===43||j===45)k===I?I=j===43?y:Y:ee(n,"repeat of a chomping mode identifier");else if((U=ve(j))>=0)U===0?ee(n,"bad explicit indentation width of a block scalar; it cannot be less than one"):v?ee(n,"repeat of an indentation width identifier"):(_=E+U-1,v=!0);else break;if(re(j)){do j=n.input.charCodeAt(++n.position);while(re(j));if(j===35)do j=n.input.charCodeAt(++n.position);while(!J(j)&&j!==0)}for(;j!==0;){for(K(n),n.lineIndent=0,j=n.input.charCodeAt(n.position);(!v||n.lineIndent<_)&&j===32;)n.lineIndent++,j=n.input.charCodeAt(++n.position);if(!v&&n.lineIndent>_&&(_=n.lineIndent),J(j)){T++;continue}if(n.lineIndent<_){I===y?n.result+=a.repeat(`
16
16
  `,l?1+T:T):I===k&&l&&(n.result+=`
17
17
  `);break}for(Q?re(j)?(P=!0,n.result+=a.repeat(`
18
18
  `,l?1+T:T)):P?(P=!1,n.result+=a.repeat(`
19
19
  `,T+1)):T===0?l&&(n.result+=" "):n.result+=a.repeat(`
20
20
  `,T):n.result+=a.repeat(`
21
- `,l?1+T:T),l=!0,v=!0,T=0,R=n.position;!J(j)&&j!==0;)j=n.input.charCodeAt(++n.position);Re(n,R,n.position,!1)}return!0}function nr(n,E){var R,Q=n.tag,I=n.anchor,l=[],v,_=!1,T;for(n.anchor!==null&&(n.anchorMap[n.anchor]=l),T=n.input.charCodeAt(n.position);T!==0&&!(T!==45||(v=n.input.charCodeAt(n.position+1),!M(v)));){if(_=!0,n.position++,B(n,!0,-1)&&n.lineIndent<=E){l.push(null),T=n.input.charCodeAt(n.position);continue}if(R=n.line,Ue(n,E,m,!1,!0),l.push(n.result),B(n,!0,-1),T=n.input.charCodeAt(n.position),(n.line===R||n.lineIndent>E)&&T!==0)ee(n,"bad indentation of a sequence entry");else if(n.lineIndent<E)break}return _?(n.tag=Q,n.anchor=I,n.kind="sequence",n.result=l,!0):!1}function wr(n,E,R){var Q,I,l,v,_=n.tag,T=n.anchor,P={},U={},j=null,z=null,W=null,ie=!1,ge=!1,ae;for(n.anchor!==null&&(n.anchorMap[n.anchor]=P),ae=n.input.charCodeAt(n.position);ae!==0;){if(Q=n.input.charCodeAt(n.position+1),l=n.line,v=n.position,(ae===63||ae===58)&&M(Q))ae===63?(ie&&(be(n,P,U,j,z,null),j=z=W=null),ge=!0,ie=!0,I=!0):ie?(ie=!1,I=!0):ee(n,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),n.position+=1,ae=Q;else if(Ue(n,R,b,!1,!0))if(n.line===l){for(ae=n.input.charCodeAt(n.position);re(ae);)ae=n.input.charCodeAt(++n.position);if(ae===58)ae=n.input.charCodeAt(++n.position),M(ae)||ee(n,"a whitespace character is expected after the key-value separator within a block mapping"),ie&&(be(n,P,U,j,z,null),j=z=W=null),ge=!0,ie=!1,I=!1,j=n.tag,z=n.result;else if(ge)ee(n,"can not read an implicit mapping pair; a colon is missed");else return n.tag=_,n.anchor=T,!0}else if(ge)ee(n,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.tag=_,n.anchor=T,!0;else break;if((n.line===l||n.lineIndent>E)&&(Ue(n,E,w,!0,I)&&(ie?z=n.result:W=n.result),ie||(be(n,P,U,j,z,W,l,v),j=z=W=null),B(n,!0,-1),ae=n.input.charCodeAt(n.position)),n.lineIndent>E&&ae!==0)ee(n,"bad indentation of a mapping entry");else if(n.lineIndent<E)break}return ie&&be(n,P,U,j,z,null),ge&&(n.tag=_,n.anchor=T,n.kind="mapping",n.result=P),ge}function fr(n){var E,R=!1,Q=!1,I,l,v;if(v=n.input.charCodeAt(n.position),v!==33)return!1;if(n.tag!==null&&ee(n,"duplication of a tag property"),v=n.input.charCodeAt(++n.position),v===60?(R=!0,v=n.input.charCodeAt(++n.position)):v===33?(Q=!0,I="!!",v=n.input.charCodeAt(++n.position)):I="!",E=n.position,R){do v=n.input.charCodeAt(++n.position);while(v!==0&&v!==62);n.position<n.length?(l=n.input.slice(E,n.position),v=n.input.charCodeAt(++n.position)):ee(n,"unexpected end of the stream within a verbatim tag")}else{for(;v!==0&&!M(v);)v===33&&(Q?ee(n,"tag suffix cannot contain exclamation marks"):(I=n.input.slice(E-1,n.position+1),ne.test(I)||ee(n,"named tag handle cannot contain such characters"),Q=!0,E=n.position+1)),v=n.input.charCodeAt(++n.position);l=n.input.slice(E,n.position),D.test(l)&&ee(n,"tag suffix cannot contain flow indicator characters")}return l&&!oe.test(l)&&ee(n,"tag name cannot contain such characters: "+l),R?n.tag=l:e.call(n.tagMap,I)?n.tag=n.tagMap[I]+l:I==="!"?n.tag="!"+l:I==="!!"?n.tag="tag:yaml.org,2002:"+l:ee(n,'undeclared tag handle "'+I+'"'),!0}function lr(n){var E,R;if(R=n.input.charCodeAt(n.position),R!==38)return!1;for(n.anchor!==null&&ee(n,"duplication of an anchor property"),R=n.input.charCodeAt(++n.position),E=n.position;R!==0&&!M(R)&&!le(R);)R=n.input.charCodeAt(++n.position);return n.position===E&&ee(n,"name of an anchor node must contain at least one character"),n.anchor=n.input.slice(E,n.position),!0}function br(n){var E,R,Q;if(Q=n.input.charCodeAt(n.position),Q!==42)return!1;for(Q=n.input.charCodeAt(++n.position),E=n.position;Q!==0&&!M(Q)&&!le(Q);)Q=n.input.charCodeAt(++n.position);return n.position===E&&ee(n,"name of an alias node must contain at least one character"),R=n.input.slice(E,n.position),e.call(n.anchorMap,R)||ee(n,'unidentified alias "'+R+'"'),n.result=n.anchorMap[R],B(n,!0,-1),!0}function Ue(n,E,R,Q,I){var l,v,_,T=1,P=!1,U=!1,j,z,W,ie,ge;if(n.listener!==null&&n.listener("open",n),n.tag=null,n.anchor=null,n.kind=null,n.result=null,l=v=_=w===R||m===R,Q&&B(n,!0,-1)&&(P=!0,n.lineIndent>E?T=1:n.lineIndent===E?T=0:n.lineIndent<E&&(T=-1)),T===1)for(;fr(n)||lr(n);)B(n,!0,-1)?(P=!0,_=l,n.lineIndent>E?T=1:n.lineIndent===E?T=0:n.lineIndent<E&&(T=-1)):_=!1;if(_&&(_=P||I),(T===1||w===R)&&(d===R||b===R?ie=E:ie=E+1,ge=n.position-n.lineStart,T===1?_&&(nr(n,ge)||wr(n,ge,ie))||Ye(n,ie)?U=!0:(v&&rr(n,ie)||ze(n,ie)||Me(n,ie)?U=!0:br(n)?(U=!0,(n.tag!==null||n.anchor!==null)&&ee(n,"alias node should not have any properties")):Ve(n,ie,d===R)&&(U=!0,n.tag===null&&(n.tag="?")),n.anchor!==null&&(n.anchorMap[n.anchor]=n.result)):T===0&&(U=_&&nr(n,ge))),n.tag!==null&&n.tag!=="!")if(n.tag==="?"){for(n.result!==null&&n.kind!=="scalar"&&ee(n,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+n.kind+'"'),j=0,z=n.implicitTypes.length;j<z;j+=1)if(W=n.implicitTypes[j],W.resolve(n.result)){n.result=W.construct(n.result),n.tag=W.tag,n.anchor!==null&&(n.anchorMap[n.anchor]=n.result);break}}else e.call(n.typeMap[n.kind||"fallback"],n.tag)?(W=n.typeMap[n.kind||"fallback"][n.tag],n.result!==null&&W.kind!==n.kind&&ee(n,"unacceptable node kind for !<"+n.tag+'> tag; it should be "'+W.kind+'", not "'+n.kind+'"'),W.resolve(n.result)?(n.result=W.construct(n.result),n.anchor!==null&&(n.anchorMap[n.anchor]=n.result)):ee(n,"cannot resolve a node with !<"+n.tag+"> explicit tag")):ee(n,"unknown tag !<"+n.tag+">");return n.listener!==null&&n.listener("close",n),n.tag!==null||n.anchor!==null||U}function hr(n){var E=n.position,R,Q,I,l=!1,v;for(n.version=null,n.checkLineBreaks=n.legacy,n.tagMap={},n.anchorMap={};(v=n.input.charCodeAt(n.position))!==0&&(B(n,!0,-1),v=n.input.charCodeAt(n.position),!(n.lineIndent>0||v!==37));){for(l=!0,v=n.input.charCodeAt(++n.position),R=n.position;v!==0&&!M(v);)v=n.input.charCodeAt(++n.position);for(Q=n.input.slice(R,n.position),I=[],Q.length<1&&ee(n,"directive name must not be less than one character in length");v!==0;){for(;re(v);)v=n.input.charCodeAt(++n.position);if(v===35){do v=n.input.charCodeAt(++n.position);while(v!==0&&!J(v));break}if(J(v))break;for(R=n.position;v!==0&&!M(v);)v=n.input.charCodeAt(++n.position);I.push(n.input.slice(R,n.position))}v!==0&&K(n),e.call(qe,Q)?qe[Q](n,Q,I):Ne(n,'unknown document directive "'+Q+'"')}if(B(n,!0,-1),n.lineIndent===0&&n.input.charCodeAt(n.position)===45&&n.input.charCodeAt(n.position+1)===45&&n.input.charCodeAt(n.position+2)===45?(n.position+=3,B(n,!0,-1)):l&&ee(n,"directives end mark is expected"),Ue(n,n.lineIndent-1,w,!1,!0),B(n,!0,-1),n.checkLineBreaks&&$.test(n.input.slice(E,n.position))&&Ne(n,"non-ASCII line breaks are interpreted as content"),n.documents.push(n.result),n.position===n.lineStart&&te(n)){n.input.charCodeAt(n.position)===46&&(n.position+=3,B(n,!0,-1));return}if(n.position<n.length-1)ee(n,"end of the stream or a document separator is expected");else return}function Xe(n,E){n=String(n),E=E||{},n.length!==0&&(n.charCodeAt(n.length-1)!==10&&n.charCodeAt(n.length-1)!==13&&(n+=`
22
- `),n.charCodeAt(0)===65279&&(n=n.slice(1)));var R=new Qe(n,E),Q=n.indexOf("\0");for(Q!==-1&&(R.position=Q,ee(R,"null byte is not allowed in input")),R.input+="\0";R.input.charCodeAt(R.position)===32;)R.lineIndent+=1,R.position+=1;for(;R.position<R.length-1;)hr(R);return R.documents}function Ge(n,E,R){E!==null&&typeof E=="object"&&typeof R>"u"&&(R=E,E=null);var Q=Xe(n,R);if(typeof E!="function")return Q;for(var I=0,l=Q.length;I<l;I+=1)E(Q[I])}function gr(n,E){var R=Xe(n,E);if(R.length!==0){if(R.length===1)return R[0];throw new g("expected a single document in the stream, but found more")}}function Cr(n,E,R){return typeof E=="object"&&E!==null&&typeof R>"u"&&(R=E,E=null),Ge(n,E,a.extend({schema:s},R))}function dr(n,E){return gr(n,a.extend({schema:s},E))}return Mr.loadAll=Ge,Mr.load=gr,Mr.safeLoadAll=Cr,Mr.safeLoad=dr,Mr}var bn={},Kt;function Uo(){if(Kt)return bn;Kt=1;var a=Yr(),g=nn(),C=Sn(),s=rn(),h=Object.prototype.toString,e=Object.prototype.hasOwnProperty,d=9,b=10,m=13,w=32,k=33,Y=34,y=35,A=37,$=38,D=39,ne=42,oe=44,O=45,J=58,re=61,M=62,le=63,we=64,de=91,ve=93,Ee=96,Oe=123,Le=124,Be=125,ye={};ye[0]="\\0",ye[7]="\\a",ye[8]="\\b",ye[9]="\\t",ye[10]="\\n",ye[11]="\\v",ye[12]="\\f",ye[13]="\\r",ye[27]="\\e",ye[34]='\\"',ye[92]="\\\\",ye[133]="\\N",ye[160]="\\_",ye[8232]="\\L",ye[8233]="\\P";var Pe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Qe(l,v){var _,T,P,U,j,z,W;if(v===null)return{};for(_={},T=Object.keys(v),P=0,U=T.length;P<U;P+=1)j=T[P],z=String(v[j]),j.slice(0,2)==="!!"&&(j="tag:yaml.org,2002:"+j.slice(2)),W=l.compiledTypeMap.fallback[j],W&&e.call(W.styleAliases,z)&&(z=W.styleAliases[z]),_[j]=z;return _}function xe(l){var v,_,T;if(v=l.toString(16).toUpperCase(),l<=255)_="x",T=2;else if(l<=65535)_="u",T=4;else if(l<=4294967295)_="U",T=8;else throw new g("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+_+a.repeat("0",T-v.length)+v}function ee(l){this.schema=l.schema||C,this.indent=Math.max(1,l.indent||2),this.noArrayIndent=l.noArrayIndent||!1,this.skipInvalid=l.skipInvalid||!1,this.flowLevel=a.isNothing(l.flowLevel)?-1:l.flowLevel,this.styleMap=Qe(this.schema,l.styles||null),this.sortKeys=l.sortKeys||!1,this.lineWidth=l.lineWidth||80,this.noRefs=l.noRefs||!1,this.noCompatMode=l.noCompatMode||!1,this.condenseFlow=l.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ne(l,v){for(var _=a.repeat(" ",v),T=0,P=-1,U="",j,z=l.length;T<z;)P=l.indexOf(`
21
+ `,l?1+T:T),l=!0,v=!0,T=0,R=n.position;!J(j)&&j!==0;)j=n.input.charCodeAt(++n.position);Te(n,R,n.position,!1)}return!0}function nr(n,E){var R,Q=n.tag,I=n.anchor,l=[],v,_=!1,T;for(n.anchor!==null&&(n.anchorMap[n.anchor]=l),T=n.input.charCodeAt(n.position);T!==0&&!(T!==45||(v=n.input.charCodeAt(n.position+1),!M(v)));){if(_=!0,n.position++,B(n,!0,-1)&&n.lineIndent<=E){l.push(null),T=n.input.charCodeAt(n.position);continue}if(R=n.line,Ue(n,E,m,!1,!0),l.push(n.result),B(n,!0,-1),T=n.input.charCodeAt(n.position),(n.line===R||n.lineIndent>E)&&T!==0)ee(n,"bad indentation of a sequence entry");else if(n.lineIndent<E)break}return _?(n.tag=Q,n.anchor=I,n.kind="sequence",n.result=l,!0):!1}function wr(n,E,R){var Q,I,l,v,_=n.tag,T=n.anchor,P={},U={},j=null,z=null,W=null,ie=!1,ge=!1,ae;for(n.anchor!==null&&(n.anchorMap[n.anchor]=P),ae=n.input.charCodeAt(n.position);ae!==0;){if(Q=n.input.charCodeAt(n.position+1),l=n.line,v=n.position,(ae===63||ae===58)&&M(Q))ae===63?(ie&&(be(n,P,U,j,z,null),j=z=W=null),ge=!0,ie=!0,I=!0):ie?(ie=!1,I=!0):ee(n,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),n.position+=1,ae=Q;else if(Ue(n,R,b,!1,!0))if(n.line===l){for(ae=n.input.charCodeAt(n.position);re(ae);)ae=n.input.charCodeAt(++n.position);if(ae===58)ae=n.input.charCodeAt(++n.position),M(ae)||ee(n,"a whitespace character is expected after the key-value separator within a block mapping"),ie&&(be(n,P,U,j,z,null),j=z=W=null),ge=!0,ie=!1,I=!1,j=n.tag,z=n.result;else if(ge)ee(n,"can not read an implicit mapping pair; a colon is missed");else return n.tag=_,n.anchor=T,!0}else if(ge)ee(n,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.tag=_,n.anchor=T,!0;else break;if((n.line===l||n.lineIndent>E)&&(Ue(n,E,w,!0,I)&&(ie?z=n.result:W=n.result),ie||(be(n,P,U,j,z,W,l,v),j=z=W=null),B(n,!0,-1),ae=n.input.charCodeAt(n.position)),n.lineIndent>E&&ae!==0)ee(n,"bad indentation of a mapping entry");else if(n.lineIndent<E)break}return ie&&be(n,P,U,j,z,null),ge&&(n.tag=_,n.anchor=T,n.kind="mapping",n.result=P),ge}function fr(n){var E,R=!1,Q=!1,I,l,v;if(v=n.input.charCodeAt(n.position),v!==33)return!1;if(n.tag!==null&&ee(n,"duplication of a tag property"),v=n.input.charCodeAt(++n.position),v===60?(R=!0,v=n.input.charCodeAt(++n.position)):v===33?(Q=!0,I="!!",v=n.input.charCodeAt(++n.position)):I="!",E=n.position,R){do v=n.input.charCodeAt(++n.position);while(v!==0&&v!==62);n.position<n.length?(l=n.input.slice(E,n.position),v=n.input.charCodeAt(++n.position)):ee(n,"unexpected end of the stream within a verbatim tag")}else{for(;v!==0&&!M(v);)v===33&&(Q?ee(n,"tag suffix cannot contain exclamation marks"):(I=n.input.slice(E-1,n.position+1),ne.test(I)||ee(n,"named tag handle cannot contain such characters"),Q=!0,E=n.position+1)),v=n.input.charCodeAt(++n.position);l=n.input.slice(E,n.position),D.test(l)&&ee(n,"tag suffix cannot contain flow indicator characters")}return l&&!oe.test(l)&&ee(n,"tag name cannot contain such characters: "+l),R?n.tag=l:e.call(n.tagMap,I)?n.tag=n.tagMap[I]+l:I==="!"?n.tag="!"+l:I==="!!"?n.tag="tag:yaml.org,2002:"+l:ee(n,'undeclared tag handle "'+I+'"'),!0}function lr(n){var E,R;if(R=n.input.charCodeAt(n.position),R!==38)return!1;for(n.anchor!==null&&ee(n,"duplication of an anchor property"),R=n.input.charCodeAt(++n.position),E=n.position;R!==0&&!M(R)&&!le(R);)R=n.input.charCodeAt(++n.position);return n.position===E&&ee(n,"name of an anchor node must contain at least one character"),n.anchor=n.input.slice(E,n.position),!0}function br(n){var E,R,Q;if(Q=n.input.charCodeAt(n.position),Q!==42)return!1;for(Q=n.input.charCodeAt(++n.position),E=n.position;Q!==0&&!M(Q)&&!le(Q);)Q=n.input.charCodeAt(++n.position);return n.position===E&&ee(n,"name of an alias node must contain at least one character"),R=n.input.slice(E,n.position),e.call(n.anchorMap,R)||ee(n,'unidentified alias "'+R+'"'),n.result=n.anchorMap[R],B(n,!0,-1),!0}function Ue(n,E,R,Q,I){var l,v,_,T=1,P=!1,U=!1,j,z,W,ie,ge;if(n.listener!==null&&n.listener("open",n),n.tag=null,n.anchor=null,n.kind=null,n.result=null,l=v=_=w===R||m===R,Q&&B(n,!0,-1)&&(P=!0,n.lineIndent>E?T=1:n.lineIndent===E?T=0:n.lineIndent<E&&(T=-1)),T===1)for(;fr(n)||lr(n);)B(n,!0,-1)?(P=!0,_=l,n.lineIndent>E?T=1:n.lineIndent===E?T=0:n.lineIndent<E&&(T=-1)):_=!1;if(_&&(_=P||I),(T===1||w===R)&&(d===R||b===R?ie=E:ie=E+1,ge=n.position-n.lineStart,T===1?_&&(nr(n,ge)||wr(n,ge,ie))||Ye(n,ie)?U=!0:(v&&rr(n,ie)||ze(n,ie)||Me(n,ie)?U=!0:br(n)?(U=!0,(n.tag!==null||n.anchor!==null)&&ee(n,"alias node should not have any properties")):Ve(n,ie,d===R)&&(U=!0,n.tag===null&&(n.tag="?")),n.anchor!==null&&(n.anchorMap[n.anchor]=n.result)):T===0&&(U=_&&nr(n,ge))),n.tag!==null&&n.tag!=="!")if(n.tag==="?"){for(n.result!==null&&n.kind!=="scalar"&&ee(n,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+n.kind+'"'),j=0,z=n.implicitTypes.length;j<z;j+=1)if(W=n.implicitTypes[j],W.resolve(n.result)){n.result=W.construct(n.result),n.tag=W.tag,n.anchor!==null&&(n.anchorMap[n.anchor]=n.result);break}}else e.call(n.typeMap[n.kind||"fallback"],n.tag)?(W=n.typeMap[n.kind||"fallback"][n.tag],n.result!==null&&W.kind!==n.kind&&ee(n,"unacceptable node kind for !<"+n.tag+'> tag; it should be "'+W.kind+'", not "'+n.kind+'"'),W.resolve(n.result)?(n.result=W.construct(n.result),n.anchor!==null&&(n.anchorMap[n.anchor]=n.result)):ee(n,"cannot resolve a node with !<"+n.tag+"> explicit tag")):ee(n,"unknown tag !<"+n.tag+">");return n.listener!==null&&n.listener("close",n),n.tag!==null||n.anchor!==null||U}function hr(n){var E=n.position,R,Q,I,l=!1,v;for(n.version=null,n.checkLineBreaks=n.legacy,n.tagMap={},n.anchorMap={};(v=n.input.charCodeAt(n.position))!==0&&(B(n,!0,-1),v=n.input.charCodeAt(n.position),!(n.lineIndent>0||v!==37));){for(l=!0,v=n.input.charCodeAt(++n.position),R=n.position;v!==0&&!M(v);)v=n.input.charCodeAt(++n.position);for(Q=n.input.slice(R,n.position),I=[],Q.length<1&&ee(n,"directive name must not be less than one character in length");v!==0;){for(;re(v);)v=n.input.charCodeAt(++n.position);if(v===35){do v=n.input.charCodeAt(++n.position);while(v!==0&&!J(v));break}if(J(v))break;for(R=n.position;v!==0&&!M(v);)v=n.input.charCodeAt(++n.position);I.push(n.input.slice(R,n.position))}v!==0&&K(n),e.call(qe,Q)?qe[Q](n,Q,I):Ne(n,'unknown document directive "'+Q+'"')}if(B(n,!0,-1),n.lineIndent===0&&n.input.charCodeAt(n.position)===45&&n.input.charCodeAt(n.position+1)===45&&n.input.charCodeAt(n.position+2)===45?(n.position+=3,B(n,!0,-1)):l&&ee(n,"directives end mark is expected"),Ue(n,n.lineIndent-1,w,!1,!0),B(n,!0,-1),n.checkLineBreaks&&$.test(n.input.slice(E,n.position))&&Ne(n,"non-ASCII line breaks are interpreted as content"),n.documents.push(n.result),n.position===n.lineStart&&te(n)){n.input.charCodeAt(n.position)===46&&(n.position+=3,B(n,!0,-1));return}if(n.position<n.length-1)ee(n,"end of the stream or a document separator is expected");else return}function Xe(n,E){n=String(n),E=E||{},n.length!==0&&(n.charCodeAt(n.length-1)!==10&&n.charCodeAt(n.length-1)!==13&&(n+=`
22
+ `),n.charCodeAt(0)===65279&&(n=n.slice(1)));var R=new Qe(n,E),Q=n.indexOf("\0");for(Q!==-1&&(R.position=Q,ee(R,"null byte is not allowed in input")),R.input+="\0";R.input.charCodeAt(R.position)===32;)R.lineIndent+=1,R.position+=1;for(;R.position<R.length-1;)hr(R);return R.documents}function Ge(n,E,R){E!==null&&typeof E=="object"&&typeof R>"u"&&(R=E,E=null);var Q=Xe(n,R);if(typeof E!="function")return Q;for(var I=0,l=Q.length;I<l;I+=1)E(Q[I])}function gr(n,E){var R=Xe(n,E);if(R.length!==0){if(R.length===1)return R[0];throw new g("expected a single document in the stream, but found more")}}function Cr(n,E,R){return typeof E=="object"&&E!==null&&typeof R>"u"&&(R=E,E=null),Ge(n,E,a.extend({schema:s},R))}function dr(n,E){return gr(n,a.extend({schema:s},E))}return Mr.loadAll=Ge,Mr.load=gr,Mr.safeLoadAll=Cr,Mr.safeLoad=dr,Mr}var bn={},Kt;function Uo(){if(Kt)return bn;Kt=1;var a=Yr(),g=nn(),C=Sn(),s=rn(),h=Object.prototype.toString,e=Object.prototype.hasOwnProperty,d=9,b=10,m=13,w=32,k=33,Y=34,y=35,A=37,$=38,D=39,ne=42,oe=44,O=45,J=58,re=61,M=62,le=63,we=64,de=91,ve=93,Ee=96,Oe=123,Fe=124,Be=125,ye={};ye[0]="\\0",ye[7]="\\a",ye[8]="\\b",ye[9]="\\t",ye[10]="\\n",ye[11]="\\v",ye[12]="\\f",ye[13]="\\r",ye[27]="\\e",ye[34]='\\"',ye[92]="\\\\",ye[133]="\\N",ye[160]="\\_",ye[8232]="\\L",ye[8233]="\\P";var Pe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Qe(l,v){var _,T,P,U,j,z,W;if(v===null)return{};for(_={},T=Object.keys(v),P=0,U=T.length;P<U;P+=1)j=T[P],z=String(v[j]),j.slice(0,2)==="!!"&&(j="tag:yaml.org,2002:"+j.slice(2)),W=l.compiledTypeMap.fallback[j],W&&e.call(W.styleAliases,z)&&(z=W.styleAliases[z]),_[j]=z;return _}function xe(l){var v,_,T;if(v=l.toString(16).toUpperCase(),l<=255)_="x",T=2;else if(l<=65535)_="u",T=4;else if(l<=4294967295)_="U",T=8;else throw new g("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+_+a.repeat("0",T-v.length)+v}function ee(l){this.schema=l.schema||C,this.indent=Math.max(1,l.indent||2),this.noArrayIndent=l.noArrayIndent||!1,this.skipInvalid=l.skipInvalid||!1,this.flowLevel=a.isNothing(l.flowLevel)?-1:l.flowLevel,this.styleMap=Qe(this.schema,l.styles||null),this.sortKeys=l.sortKeys||!1,this.lineWidth=l.lineWidth||80,this.noRefs=l.noRefs||!1,this.noCompatMode=l.noCompatMode||!1,this.condenseFlow=l.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ne(l,v){for(var _=a.repeat(" ",v),T=0,P=-1,U="",j,z=l.length;T<z;)P=l.indexOf(`
23
23
  `,T),P===-1?(j=l.slice(T),T=z):(j=l.slice(T,P+1),T=P+1),j.length&&j!==`
24
24
  `&&(U+=_),U+=j;return U}function qe(l,v){return`
25
- `+a.repeat(" ",l.indent*v)}function Re(l,v){var _,T,P;for(_=0,T=l.implicitTypes.length;_<T;_+=1)if(P=l.implicitTypes[_],P.resolve(v))return!0;return!1}function De(l){return l===w||l===d}function be(l){return 32<=l&&l<=126||161<=l&&l<=55295&&l!==8232&&l!==8233||57344<=l&&l<=65533&&l!==65279||65536<=l&&l<=1114111}function K(l){return be(l)&&!De(l)&&l!==65279&&l!==m&&l!==b}function B(l,v){return be(l)&&l!==65279&&l!==oe&&l!==de&&l!==ve&&l!==Oe&&l!==Be&&l!==J&&(l!==y||v&&K(v))}function te(l){return be(l)&&l!==65279&&!De(l)&&l!==O&&l!==le&&l!==J&&l!==oe&&l!==de&&l!==ve&&l!==Oe&&l!==Be&&l!==y&&l!==$&&l!==ne&&l!==k&&l!==Le&&l!==re&&l!==M&&l!==D&&l!==Y&&l!==A&&l!==we&&l!==Ee}function $e(l){var v=/^\n* /;return v.test(l)}var Ve=1,ze=2,Me=3,Ye=4,rr=5;function nr(l,v,_,T,P){var U,j,z,W=!1,ie=!1,ge=T!==-1,ae=-1,ke=te(l.charCodeAt(0))&&!De(l.charCodeAt(l.length-1));if(v)for(U=0;U<l.length;U++){if(j=l.charCodeAt(U),!be(j))return rr;z=U>0?l.charCodeAt(U-1):null,ke=ke&&B(j,z)}else{for(U=0;U<l.length;U++){if(j=l.charCodeAt(U),j===b)W=!0,ge&&(ie=ie||U-ae-1>T&&l[ae+1]!==" ",ae=U);else if(!be(j))return rr;z=U>0?l.charCodeAt(U-1):null,ke=ke&&B(j,z)}ie=ie||ge&&U-ae-1>T&&l[ae+1]!==" "}return!W&&!ie?ke&&!P(l)?Ve:ze:_>9&&$e(l)?rr:ie?Ye:Me}function wr(l,v,_,T){l.dump=(function(){if(v.length===0)return"''";if(!l.noCompatMode&&Pe.indexOf(v)!==-1)return"'"+v+"'";var P=l.indent*Math.max(1,_),U=l.lineWidth===-1?-1:Math.max(Math.min(l.lineWidth,40),l.lineWidth-P),j=T||l.flowLevel>-1&&_>=l.flowLevel;function z(W){return Re(l,W)}switch(nr(v,j,l.indent,U,z)){case Ve:return v;case ze:return"'"+v.replace(/'/g,"''")+"'";case Me:return"|"+fr(v,l.indent)+lr(Ne(v,P));case Ye:return">"+fr(v,l.indent)+lr(Ne(br(v,U),P));case rr:return'"'+hr(v)+'"';default:throw new g("impossible error: invalid scalar style")}})()}function fr(l,v){var _=$e(l)?String(v):"",T=l[l.length-1]===`
25
+ `+a.repeat(" ",l.indent*v)}function Te(l,v){var _,T,P;for(_=0,T=l.implicitTypes.length;_<T;_+=1)if(P=l.implicitTypes[_],P.resolve(v))return!0;return!1}function De(l){return l===w||l===d}function be(l){return 32<=l&&l<=126||161<=l&&l<=55295&&l!==8232&&l!==8233||57344<=l&&l<=65533&&l!==65279||65536<=l&&l<=1114111}function K(l){return be(l)&&!De(l)&&l!==65279&&l!==m&&l!==b}function B(l,v){return be(l)&&l!==65279&&l!==oe&&l!==de&&l!==ve&&l!==Oe&&l!==Be&&l!==J&&(l!==y||v&&K(v))}function te(l){return be(l)&&l!==65279&&!De(l)&&l!==O&&l!==le&&l!==J&&l!==oe&&l!==de&&l!==ve&&l!==Oe&&l!==Be&&l!==y&&l!==$&&l!==ne&&l!==k&&l!==Fe&&l!==re&&l!==M&&l!==D&&l!==Y&&l!==A&&l!==we&&l!==Ee}function $e(l){var v=/^\n* /;return v.test(l)}var Ve=1,ze=2,Me=3,Ye=4,rr=5;function nr(l,v,_,T,P){var U,j,z,W=!1,ie=!1,ge=T!==-1,ae=-1,ke=te(l.charCodeAt(0))&&!De(l.charCodeAt(l.length-1));if(v)for(U=0;U<l.length;U++){if(j=l.charCodeAt(U),!be(j))return rr;z=U>0?l.charCodeAt(U-1):null,ke=ke&&B(j,z)}else{for(U=0;U<l.length;U++){if(j=l.charCodeAt(U),j===b)W=!0,ge&&(ie=ie||U-ae-1>T&&l[ae+1]!==" ",ae=U);else if(!be(j))return rr;z=U>0?l.charCodeAt(U-1):null,ke=ke&&B(j,z)}ie=ie||ge&&U-ae-1>T&&l[ae+1]!==" "}return!W&&!ie?ke&&!P(l)?Ve:ze:_>9&&$e(l)?rr:ie?Ye:Me}function wr(l,v,_,T){l.dump=(function(){if(v.length===0)return"''";if(!l.noCompatMode&&Pe.indexOf(v)!==-1)return"'"+v+"'";var P=l.indent*Math.max(1,_),U=l.lineWidth===-1?-1:Math.max(Math.min(l.lineWidth,40),l.lineWidth-P),j=T||l.flowLevel>-1&&_>=l.flowLevel;function z(W){return Te(l,W)}switch(nr(v,j,l.indent,U,z)){case Ve:return v;case ze:return"'"+v.replace(/'/g,"''")+"'";case Me:return"|"+fr(v,l.indent)+lr(Ne(v,P));case Ye:return">"+fr(v,l.indent)+lr(Ne(br(v,U),P));case rr:return'"'+hr(v)+'"';default:throw new g("impossible error: invalid scalar style")}})()}function fr(l,v){var _=$e(l)?String(v):"",T=l[l.length-1]===`
26
26
  `,P=T&&(l[l.length-2]===`
27
27
  `||l===`
28
28
  `),U=P?"+":T?"":"-";return _+U+`
@@ -34,26 +34,26 @@ import{createRequire as Xs}from"node:module";import{e as Ie,a as to,m as _i}from
34
34
  `+l.slice(P,U),P=U+1),j=z;return W+=`
35
35
  `,l.length-P>v&&j>P?W+=l.slice(P,j)+`
36
36
  `+l.slice(j+1):W+=l.slice(P),W.slice(1)}function hr(l){for(var v="",_,T,P,U=0;U<l.length;U++){if(_=l.charCodeAt(U),_>=55296&&_<=56319&&(T=l.charCodeAt(U+1),T>=56320&&T<=57343)){v+=xe((_-55296)*1024+T-56320+65536),U++;continue}P=ye[_],v+=!P&&be(_)?l[U]:P||xe(_)}return v}function Xe(l,v,_){var T="",P=l.tag,U,j;for(U=0,j=_.length;U<j;U+=1)n(l,v,_[U],!1,!1)&&(U!==0&&(T+=","+(l.condenseFlow?"":" ")),T+=l.dump);l.tag=P,l.dump="["+T+"]"}function Ge(l,v,_,T){var P="",U=l.tag,j,z;for(j=0,z=_.length;j<z;j+=1)n(l,v+1,_[j],!0,!0)&&((!T||j!==0)&&(P+=qe(l,v)),l.dump&&b===l.dump.charCodeAt(0)?P+="-":P+="- ",P+=l.dump);l.tag=U,l.dump=P||"[]"}function gr(l,v,_){var T="",P=l.tag,U=Object.keys(_),j,z,W,ie,ge;for(j=0,z=U.length;j<z;j+=1)ge="",j!==0&&(ge+=", "),l.condenseFlow&&(ge+='"'),W=U[j],ie=_[W],n(l,v,W,!1,!1)&&(l.dump.length>1024&&(ge+="? "),ge+=l.dump+(l.condenseFlow?'"':"")+":"+(l.condenseFlow?"":" "),n(l,v,ie,!1,!1)&&(ge+=l.dump,T+=ge));l.tag=P,l.dump="{"+T+"}"}function Cr(l,v,_,T){var P="",U=l.tag,j=Object.keys(_),z,W,ie,ge,ae,ke;if(l.sortKeys===!0)j.sort();else if(typeof l.sortKeys=="function")j.sort(l.sortKeys);else if(l.sortKeys)throw new g("sortKeys must be a boolean or a function");for(z=0,W=j.length;z<W;z+=1)ke="",(!T||z!==0)&&(ke+=qe(l,v)),ie=j[z],ge=_[ie],n(l,v+1,ie,!0,!0,!0)&&(ae=l.tag!==null&&l.tag!=="?"||l.dump&&l.dump.length>1024,ae&&(l.dump&&b===l.dump.charCodeAt(0)?ke+="?":ke+="? "),ke+=l.dump,ae&&(ke+=qe(l,v)),n(l,v+1,ge,!0,ae)&&(l.dump&&b===l.dump.charCodeAt(0)?ke+=":":ke+=": ",ke+=l.dump,P+=ke));l.tag=U,l.dump=P||"{}"}function dr(l,v,_){var T,P,U,j,z,W;for(P=_?l.explicitTypes:l.implicitTypes,U=0,j=P.length;U<j;U+=1)if(z=P[U],(z.instanceOf||z.predicate)&&(!z.instanceOf||typeof v=="object"&&v instanceof z.instanceOf)&&(!z.predicate||z.predicate(v))){if(l.tag=_?z.tag:"?",z.represent){if(W=l.styleMap[z.tag]||z.defaultStyle,h.call(z.represent)==="[object Function]")T=z.represent(v,W);else if(e.call(z.represent,W))T=z.represent[W](v,W);else throw new g("!<"+z.tag+'> tag resolver accepts not "'+W+'" style');l.dump=T}return!0}return!1}function n(l,v,_,T,P,U){l.tag=null,l.dump=_,dr(l,_,!1)||dr(l,_,!0);var j=h.call(l.dump);T&&(T=l.flowLevel<0||l.flowLevel>v);var z=j==="[object Object]"||j==="[object Array]",W,ie;if(z&&(W=l.duplicates.indexOf(_),ie=W!==-1),(l.tag!==null&&l.tag!=="?"||ie||l.indent!==2&&v>0)&&(P=!1),ie&&l.usedDuplicates[W])l.dump="*ref_"+W;else{if(z&&ie&&!l.usedDuplicates[W]&&(l.usedDuplicates[W]=!0),j==="[object Object]")T&&Object.keys(l.dump).length!==0?(Cr(l,v,l.dump,P),ie&&(l.dump="&ref_"+W+l.dump)):(gr(l,v,l.dump),ie&&(l.dump="&ref_"+W+" "+l.dump));else if(j==="[object Array]"){var ge=l.noArrayIndent&&v>0?v-1:v;T&&l.dump.length!==0?(Ge(l,ge,l.dump,P),ie&&(l.dump="&ref_"+W+l.dump)):(Xe(l,ge,l.dump),ie&&(l.dump="&ref_"+W+" "+l.dump))}else if(j==="[object String]")l.tag!=="?"&&wr(l,l.dump,v,U);else{if(l.skipInvalid)return!1;throw new g("unacceptable kind of an object to dump "+j)}l.tag!==null&&l.tag!=="?"&&(l.dump="!<"+l.tag+"> "+l.dump)}return!0}function E(l,v){var _=[],T=[],P,U;for(R(l,_,T),P=0,U=T.length;P<U;P+=1)v.duplicates.push(_[T[P]]);v.usedDuplicates=new Array(U)}function R(l,v,_){var T,P,U;if(l!==null&&typeof l=="object")if(P=v.indexOf(l),P!==-1)_.indexOf(P)===-1&&_.push(P);else if(v.push(l),Array.isArray(l))for(P=0,U=l.length;P<U;P+=1)R(l[P],v,_);else for(T=Object.keys(l),P=0,U=T.length;P<U;P+=1)R(l[T[P]],v,_)}function Q(l,v){v=v||{};var _=new ee(v);return _.noRefs||E(l,_),n(_,0,l,!0,!0)?_.dump+`
37
- `:""}function I(l,v){return Q(l,a.extend({schema:s},v))}return bn.dump=Q,bn.safeDump=I,bn}var Wt;function Ho(){if(Wt)return Se;Wt=1;var a=Bo(),g=Uo();function C(s){return function(){throw new Error("Function "+s+" is deprecated and cannot be used.")}}return Se.Type=Fe(),Se.Schema=Br(),Se.FAILSAFE_SCHEMA=xi(),Se.JSON_SCHEMA=ss(),Se.CORE_SCHEMA=os(),Se.DEFAULT_SAFE_SCHEMA=rn(),Se.DEFAULT_FULL_SCHEMA=Sn(),Se.load=a.load,Se.loadAll=a.loadAll,Se.safeLoad=a.safeLoad,Se.safeLoadAll=a.safeLoadAll,Se.dump=g.dump,Se.safeDump=g.safeDump,Se.YAMLException=nn(),Se.MINIMAL_SCHEMA=xi(),Se.SAFE_SCHEMA=rn(),Se.DEFAULT_SCHEMA=Sn(),Se.scan=C("scan"),Se.parse=C("parse"),Se.compose=C("compose"),Se.addConstructor=C("addConstructor"),Se}var Si,Vt;function Ko(){if(Vt)return Si;Vt=1;var a=Ho();return Si=a,Si}var Ei,Gt;function Wo(){if(Gt)return Ei;Gt=1;function a(s,h){function e(){this.constructor=s}e.prototype=h.prototype,s.prototype=new e}function g(s,h,e,d){this.message=s,this.expected=h,this.found=e,this.location=d,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,g)}a(g,Error),g.buildMessage=function(s,h){var e={literal:function(y){return'"'+b(y.text)+'"'},class:function(y){var A="",$;for($=0;$<y.parts.length;$++)A+=y.parts[$]instanceof Array?m(y.parts[$][0])+"-"+m(y.parts[$][1]):m(y.parts[$]);return"["+(y.inverted?"^":"")+A+"]"},any:function(y){return"any character"},end:function(y){return"end of input"},other:function(y){return y.description}};function d(y){return y.charCodeAt(0).toString(16).toUpperCase()}function b(y){return y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(A){return"\\x0"+d(A)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(A){return"\\x"+d(A)})}function m(y){return y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(A){return"\\x0"+d(A)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(A){return"\\x"+d(A)})}function w(y){return e[y.type](y)}function k(y){var A=new Array(y.length),$,D;for($=0;$<y.length;$++)A[$]=w(y[$]);if(A.sort(),A.length>0){for($=1,D=1;$<A.length;$++)A[$-1]!==A[$]&&(A[D]=A[$],D++);A.length=D}switch(A.length){case 1:return A[0];case 2:return A[0]+" or "+A[1];default:return A.slice(0,-1).join(", ")+", or "+A[A.length-1]}}function Y(y){return y?'"'+b(y)+'"':"end of input"}return"Expected "+k(s)+" but "+Y(h)+" found."};function C(s,h){h=h!==void 0?h:{};var e={},d={Start:pn},b=pn,m=function(f){return[].concat(...f)},w="-",k=Ae("-",!1),Y=function(f){return f},y=function(f){return Object.assign({},...f)},A="#",$=Ae("#",!1),D=Ln(),ne=function(){return{}},oe=":",O=Ae(":",!1),J=function(f,p){return{[f]:p}},re=",",M=Ae(",",!1),le=function(f,p){return p},we=function(f,p,x){return Object.assign({},...[f].concat(p).map(H=>({[H]:x})))},de=function(f){return f},ve=function(f){return f},Ee=Er("correct indentation"),Oe=" ",Le=Ae(" ",!1),Be=function(f){return f.length===Dr*yn},ye=function(f){return f.length===(Dr+1)*yn},Pe=function(){return Dr++,!0},Qe=function(){return Dr--,!0},xe=function(){return cn()},ee=Er("pseudostring"),Ne=/^[^\r\n\t ?:,\][{}#&*!|>'"%@`\-]/,qe=ir(["\r",`
38
- `," "," ","?",":",",","]","[","{","}","#","&","*","!","|",">","'",'"',"%","@","`","-"],!0,!1),Re=/^[^\r\n\t ,\][{}:#"']/,De=ir(["\r",`
37
+ `:""}function I(l,v){return Q(l,a.extend({schema:s},v))}return bn.dump=Q,bn.safeDump=I,bn}var Wt;function Ho(){if(Wt)return Se;Wt=1;var a=Bo(),g=Uo();function C(s){return function(){throw new Error("Function "+s+" is deprecated and cannot be used.")}}return Se.Type=je(),Se.Schema=Br(),Se.FAILSAFE_SCHEMA=xi(),Se.JSON_SCHEMA=ss(),Se.CORE_SCHEMA=os(),Se.DEFAULT_SAFE_SCHEMA=rn(),Se.DEFAULT_FULL_SCHEMA=Sn(),Se.load=a.load,Se.loadAll=a.loadAll,Se.safeLoad=a.safeLoad,Se.safeLoadAll=a.safeLoadAll,Se.dump=g.dump,Se.safeDump=g.safeDump,Se.YAMLException=nn(),Se.MINIMAL_SCHEMA=xi(),Se.SAFE_SCHEMA=rn(),Se.DEFAULT_SCHEMA=Sn(),Se.scan=C("scan"),Se.parse=C("parse"),Se.compose=C("compose"),Se.addConstructor=C("addConstructor"),Se}var Si,Vt;function Ko(){if(Vt)return Si;Vt=1;var a=Ho();return Si=a,Si}var Ei,Gt;function Wo(){if(Gt)return Ei;Gt=1;function a(s,h){function e(){this.constructor=s}e.prototype=h.prototype,s.prototype=new e}function g(s,h,e,d){this.message=s,this.expected=h,this.found=e,this.location=d,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,g)}a(g,Error),g.buildMessage=function(s,h){var e={literal:function(y){return'"'+b(y.text)+'"'},class:function(y){var A="",$;for($=0;$<y.parts.length;$++)A+=y.parts[$]instanceof Array?m(y.parts[$][0])+"-"+m(y.parts[$][1]):m(y.parts[$]);return"["+(y.inverted?"^":"")+A+"]"},any:function(y){return"any character"},end:function(y){return"end of input"},other:function(y){return y.description}};function d(y){return y.charCodeAt(0).toString(16).toUpperCase()}function b(y){return y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(A){return"\\x0"+d(A)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(A){return"\\x"+d(A)})}function m(y){return y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(A){return"\\x0"+d(A)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(A){return"\\x"+d(A)})}function w(y){return e[y.type](y)}function k(y){var A=new Array(y.length),$,D;for($=0;$<y.length;$++)A[$]=w(y[$]);if(A.sort(),A.length>0){for($=1,D=1;$<A.length;$++)A[$-1]!==A[$]&&(A[D]=A[$],D++);A.length=D}switch(A.length){case 1:return A[0];case 2:return A[0]+" or "+A[1];default:return A.slice(0,-1).join(", ")+", or "+A[A.length-1]}}function Y(y){return y?'"'+b(y)+'"':"end of input"}return"Expected "+k(s)+" but "+Y(h)+" found."};function C(s,h){h=h!==void 0?h:{};var e={},d={Start:pn},b=pn,m=function(f){return[].concat(...f)},w="-",k=Ae("-",!1),Y=function(f){return f},y=function(f){return Object.assign({},...f)},A="#",$=Ae("#",!1),D=Ln(),ne=function(){return{}},oe=":",O=Ae(":",!1),J=function(f,p){return{[f]:p}},re=",",M=Ae(",",!1),le=function(f,p){return p},we=function(f,p,x){return Object.assign({},...[f].concat(p).map(H=>({[H]:x})))},de=function(f){return f},ve=function(f){return f},Ee=Er("correct indentation"),Oe=" ",Fe=Ae(" ",!1),Be=function(f){return f.length===Dr*yn},ye=function(f){return f.length===(Dr+1)*yn},Pe=function(){return Dr++,!0},Qe=function(){return Dr--,!0},xe=function(){return cn()},ee=Er("pseudostring"),Ne=/^[^\r\n\t ?:,\][{}#&*!|>'"%@`\-]/,qe=ir(["\r",`
38
+ `," "," ","?",":",",","]","[","{","}","#","&","*","!","|",">","'",'"',"%","@","`","-"],!0,!1),Te=/^[^\r\n\t ,\][{}:#"']/,De=ir(["\r",`
39
39
  `," "," ",",","]","[","{","}",":","#",'"',"'"],!0,!1),be=function(){return cn().replace(/^ *| *$/g,"")},K="--",B=Ae("--",!1),te=/^[a-zA-Z\/0-9]/,$e=ir([["a","z"],["A","Z"],"/",["0","9"]],!1,!1),Ve=/^[^\r\n\t :,]/,ze=ir(["\r",`
40
40
  `," "," ",":",","],!0,!1),Me="null",Ye=Ae("null",!1),rr=function(){return null},nr="true",wr=Ae("true",!1),fr=function(){return!0},lr="false",br=Ae("false",!1),Ue=function(){return!1},hr=Er("string"),Xe='"',Ge=Ae('"',!1),gr=function(){return""},Cr=function(f){return f},dr=function(f){return f.join("")},n=/^[^"\\\0-\x1F\x7F]/,E=ir(['"',"\\",["\0",""],""],!0,!1),R='\\"',Q=Ae('\\"',!1),I=function(){return'"'},l="\\\\",v=Ae("\\\\",!1),_=function(){return"\\"},T="\\/",P=Ae("\\/",!1),U=function(){return"/"},j="\\b",z=Ae("\\b",!1),W=function(){return"\b"},ie="\\f",ge=Ae("\\f",!1),ae=function(){return"\f"},ke="\\n",En=Ae("\\n",!1),kn=function(){return`
41
41
  `},tn="\\r",jr=Ae("\\r",!1),Fr=function(){return"\r"},mr="\\t",sn=Ae("\\t",!1),on=function(){return" "},Ur="\\u",xn=Ae("\\u",!1),_n=function(f,p,x,H){return String.fromCharCode(parseInt(`0x${f}${p}${x}${H}`))},yr=/^[0-9a-fA-F]/,$r=ir([["0","9"],["a","f"],["A","F"]],!1,!1),On=Er("blank space"),fn=/^[ \t]/,Ze=ir([" "," "],!1,!1),Hr=`\r
42
42
  `,Tn=Ae(`\r
43
43
  `,!1),Rn=`
44
44
  `,ln=Ae(`
45
- `,!1),jn="\r",Fn=Ae("\r",!1),u=0,he=0,Lr=[{line:1,column:1}],He=0,Kr=[],Z=0,Sr;if("startRule"in h){if(!(h.startRule in d))throw new Error(`Can't start parsing from rule "`+h.startRule+'".');b=d[h.startRule]}function cn(){return s.substring(he,u)}function Ae(f,p){return{type:"literal",text:f,ignoreCase:p}}function ir(f,p,x){return{type:"class",parts:f,inverted:p,ignoreCase:x}}function Ln(){return{type:"any"}}function In(){return{type:"end"}}function Er(f){return{type:"other",description:f}}function an(f){var p=Lr[f],x;if(p)return p;for(x=f-1;!Lr[x];)x--;for(p=Lr[x],p={line:p.line,column:p.column};x<f;)s.charCodeAt(x)===10?(p.line++,p.column=1):p.column++,x++;return Lr[f]=p,p}function un(f,p){var x=an(f),H=an(p);return{start:{offset:f,line:x.line,column:x.column},end:{offset:p,line:H.line,column:H.column}}}function se(f){u<He||(u>He&&(He=u,Kr=[]),Kr.push(f))}function Nn(f,p,x){return new g(g.buildMessage(f,p),f,p,x)}function pn(){var f;return f=Ir(),f}function Pn(){var f,p,x;for(f=u,p=[],x=hn();x!==e;)p.push(x),x=hn();return p!==e&&(he=f,p=m(p)),f=p,f}function hn(){var f,p,x,H,q;return f=u,p=vr(),p!==e?(s.charCodeAt(u)===45?(x=w,u++):(x=e,Z===0&&se(k)),x!==e?(H=Ce(),H!==e?(q=Nr(),q!==e?(he=f,p=Y(q),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e),f}function Ir(){var f,p,x;for(f=u,p=[],x=Wr();x!==e;)p.push(x),x=Wr();return p!==e&&(he=f,p=y(p)),f=p,f}function Wr(){var f,p,x,H,q,X,ue,me,pr;if(f=u,p=Ce(),p===e&&(p=null),p!==e){if(x=u,s.charCodeAt(u)===35?(H=A,u++):(H=e,Z===0&&se($)),H!==e){if(q=[],X=u,ue=u,Z++,me=ur(),Z--,me===e?ue=void 0:(u=ue,ue=e),ue!==e?(s.length>u?(me=s.charAt(u),u++):(me=e,Z===0&&se(D)),me!==e?(ue=[ue,me],X=ue):(u=X,X=e)):(u=X,X=e),X!==e)for(;X!==e;)q.push(X),X=u,ue=u,Z++,me=ur(),Z--,me===e?ue=void 0:(u=ue,ue=e),ue!==e?(s.length>u?(me=s.charAt(u),u++):(me=e,Z===0&&se(D)),me!==e?(ue=[ue,me],X=ue):(u=X,X=e)):(u=X,X=e);else q=e;q!==e?(H=[H,q],x=H):(u=x,x=e)}else u=x,x=e;if(x===e&&(x=null),x!==e){if(H=[],q=ar(),q!==e)for(;q!==e;)H.push(q),q=ar();else H=e;H!==e?(he=f,p=ne(),f=p):(u=f,f=e)}else u=f,f=e}else u=f,f=e;if(f===e&&(f=u,p=vr(),p!==e?(x=Mn(),x!==e?(H=Ce(),H===e&&(H=null),H!==e?(s.charCodeAt(u)===58?(q=oe,u++):(q=e,Z===0&&se(O)),q!==e?(X=Ce(),X===e&&(X=null),X!==e?(ue=Nr(),ue!==e?(he=f,p=J(x,ue),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e),f===e&&(f=u,p=vr(),p!==e?(x=kr(),x!==e?(H=Ce(),H===e&&(H=null),H!==e?(s.charCodeAt(u)===58?(q=oe,u++):(q=e,Z===0&&se(O)),q!==e?(X=Ce(),X===e&&(X=null),X!==e?(ue=Nr(),ue!==e?(he=f,p=J(x,ue),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e),f===e))){if(f=u,p=vr(),p!==e)if(x=kr(),x!==e)if(H=Ce(),H!==e)if(q=Yn(),q!==e){if(X=[],ue=ar(),ue!==e)for(;ue!==e;)X.push(ue),ue=ar();else X=e;X!==e?(he=f,p=J(x,q),f=p):(u=f,f=e)}else u=f,f=e;else u=f,f=e;else u=f,f=e;else u=f,f=e;if(f===e)if(f=u,p=vr(),p!==e)if(x=kr(),x!==e){if(H=[],q=u,X=Ce(),X===e&&(X=null),X!==e?(s.charCodeAt(u)===44?(ue=re,u++):(ue=e,Z===0&&se(M)),ue!==e?(me=Ce(),me===e&&(me=null),me!==e?(pr=kr(),pr!==e?(he=q,X=le(x,pr),q=X):(u=q,q=e)):(u=q,q=e)):(u=q,q=e)):(u=q,q=e),q!==e)for(;q!==e;)H.push(q),q=u,X=Ce(),X===e&&(X=null),X!==e?(s.charCodeAt(u)===44?(ue=re,u++):(ue=e,Z===0&&se(M)),ue!==e?(me=Ce(),me===e&&(me=null),me!==e?(pr=kr(),pr!==e?(he=q,X=le(x,pr),q=X):(u=q,q=e)):(u=q,q=e)):(u=q,q=e)):(u=q,q=e);else H=e;H!==e?(q=Ce(),q===e&&(q=null),q!==e?(s.charCodeAt(u)===58?(X=oe,u++):(X=e,Z===0&&se(O)),X!==e?(ue=Ce(),ue===e&&(ue=null),ue!==e?(me=Nr(),me!==e?(he=f,p=we(x,H,me),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)}else u=f,f=e;else u=f,f=e}return f}function Nr(){var f,p,x,H,q,X,ue;if(f=u,p=u,Z++,x=u,H=ur(),H!==e?(q=Dn(),q!==e?(s.charCodeAt(u)===45?(X=w,u++):(X=e,Z===0&&se(k)),X!==e?(ue=Ce(),ue!==e?(H=[H,q,X,ue],x=H):(u=x,x=e)):(u=x,x=e)):(u=x,x=e)):(u=x,x=e),Z--,x!==e?(u=p,p=void 0):p=e,p!==e?(x=ar(),x!==e?(H=Vr(),H!==e?(q=Pn(),q!==e?(X=gn(),X!==e?(he=f,p=de(q),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e),f===e&&(f=u,p=ur(),p!==e?(x=Vr(),x!==e?(H=Ir(),H!==e?(q=gn(),q!==e?(he=f,p=de(H),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e),f===e))if(f=u,p=qn(),p!==e){if(x=[],H=ar(),H!==e)for(;H!==e;)x.push(H),H=ar();else x=e;x!==e?(he=f,p=ve(p),f=p):(u=f,f=e)}else u=f,f=e;return f}function vr(){var f,p,x;for(Z++,f=u,p=[],s.charCodeAt(u)===32?(x=Oe,u++):(x=e,Z===0&&se(Le));x!==e;)p.push(x),s.charCodeAt(u)===32?(x=Oe,u++):(x=e,Z===0&&se(Le));return p!==e?(he=u,x=Be(p),x?x=void 0:x=e,x!==e?(p=[p,x],f=p):(u=f,f=e)):(u=f,f=e),Z--,f===e&&(p=e,Z===0&&se(Ee)),f}function Dn(){var f,p,x;for(f=u,p=[],s.charCodeAt(u)===32?(x=Oe,u++):(x=e,Z===0&&se(Le));x!==e;)p.push(x),s.charCodeAt(u)===32?(x=Oe,u++):(x=e,Z===0&&se(Le));return p!==e?(he=u,x=ye(p),x?x=void 0:x=e,x!==e?(p=[p,x],f=p):(u=f,f=e)):(u=f,f=e),f}function Vr(){var f;return he=u,f=Pe(),f?f=void 0:f=e,f}function gn(){var f;return he=u,f=Qe(),f?f=void 0:f=e,f}function Mn(){var f;return f=_r(),f===e&&(f=dn()),f}function kr(){var f,p,x;if(f=_r(),f===e){if(f=u,p=[],x=tr(),x!==e)for(;x!==e;)p.push(x),x=tr();else p=e;p!==e&&(he=f,p=xe()),f=p}return f}function qn(){var f;return f=xr(),f===e&&(f=mn(),f===e&&(f=_r(),f===e&&(f=dn()))),f}function Yn(){var f;return f=xr(),f===e&&(f=_r(),f===e&&(f=tr())),f}function dn(){var f,p,x,H,q,X;if(Z++,f=u,Ne.test(s.charAt(u))?(p=s.charAt(u),u++):(p=e,Z===0&&se(qe)),p!==e){for(x=[],H=u,q=Ce(),q===e&&(q=null),q!==e?(Re.test(s.charAt(u))?(X=s.charAt(u),u++):(X=e,Z===0&&se(De)),X!==e?(q=[q,X],H=q):(u=H,H=e)):(u=H,H=e);H!==e;)x.push(H),H=u,q=Ce(),q===e&&(q=null),q!==e?(Re.test(s.charAt(u))?(X=s.charAt(u),u++):(X=e,Z===0&&se(De)),X!==e?(q=[q,X],H=q):(u=H,H=e)):(u=H,H=e);x!==e?(he=f,p=be(),f=p):(u=f,f=e)}else u=f,f=e;return Z--,f===e&&(p=e,Z===0&&se(ee)),f}function tr(){var f,p,x,H,q;if(f=u,s.substr(u,2)===K?(p=K,u+=2):(p=e,Z===0&&se(B)),p===e&&(p=null),p!==e)if(te.test(s.charAt(u))?(x=s.charAt(u),u++):(x=e,Z===0&&se($e)),x!==e){for(H=[],Ve.test(s.charAt(u))?(q=s.charAt(u),u++):(q=e,Z===0&&se(ze));q!==e;)H.push(q),Ve.test(s.charAt(u))?(q=s.charAt(u),u++):(q=e,Z===0&&se(ze));H!==e?(he=f,p=be(),f=p):(u=f,f=e)}else u=f,f=e;else u=f,f=e;return f}function xr(){var f,p;return f=u,s.substr(u,4)===Me?(p=Me,u+=4):(p=e,Z===0&&se(Ye)),p!==e&&(he=f,p=rr()),f=p,f}function mn(){var f,p;return f=u,s.substr(u,4)===nr?(p=nr,u+=4):(p=e,Z===0&&se(wr)),p!==e&&(he=f,p=fr()),f=p,f===e&&(f=u,s.substr(u,5)===lr?(p=lr,u+=5):(p=e,Z===0&&se(br)),p!==e&&(he=f,p=Ue()),f=p),f}function _r(){var f,p,x,H;return Z++,f=u,s.charCodeAt(u)===34?(p=Xe,u++):(p=e,Z===0&&se(Ge)),p!==e?(s.charCodeAt(u)===34?(x=Xe,u++):(x=e,Z===0&&se(Ge)),x!==e?(he=f,p=gr(),f=p):(u=f,f=e)):(u=f,f=e),f===e&&(f=u,s.charCodeAt(u)===34?(p=Xe,u++):(p=e,Z===0&&se(Ge)),p!==e?(x=Pr(),x!==e?(s.charCodeAt(u)===34?(H=Xe,u++):(H=e,Z===0&&se(Ge)),H!==e?(he=f,p=Cr(x),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)),Z--,f===e&&(p=e,Z===0&&se(hr)),f}function Pr(){var f,p,x;if(f=u,p=[],x=Or(),x!==e)for(;x!==e;)p.push(x),x=Or();else p=e;return p!==e&&(he=f,p=dr(p)),f=p,f}function Or(){var f,p,x,H,q,X;return n.test(s.charAt(u))?(f=s.charAt(u),u++):(f=e,Z===0&&se(E)),f===e&&(f=u,s.substr(u,2)===R?(p=R,u+=2):(p=e,Z===0&&se(Q)),p!==e&&(he=f,p=I()),f=p,f===e&&(f=u,s.substr(u,2)===l?(p=l,u+=2):(p=e,Z===0&&se(v)),p!==e&&(he=f,p=_()),f=p,f===e&&(f=u,s.substr(u,2)===T?(p=T,u+=2):(p=e,Z===0&&se(P)),p!==e&&(he=f,p=U()),f=p,f===e&&(f=u,s.substr(u,2)===j?(p=j,u+=2):(p=e,Z===0&&se(z)),p!==e&&(he=f,p=W()),f=p,f===e&&(f=u,s.substr(u,2)===ie?(p=ie,u+=2):(p=e,Z===0&&se(ge)),p!==e&&(he=f,p=ae()),f=p,f===e&&(f=u,s.substr(u,2)===ke?(p=ke,u+=2):(p=e,Z===0&&se(En)),p!==e&&(he=f,p=kn()),f=p,f===e&&(f=u,s.substr(u,2)===tn?(p=tn,u+=2):(p=e,Z===0&&se(jr)),p!==e&&(he=f,p=Fr()),f=p,f===e&&(f=u,s.substr(u,2)===mr?(p=mr,u+=2):(p=e,Z===0&&se(sn)),p!==e&&(he=f,p=on()),f=p,f===e&&(f=u,s.substr(u,2)===Ur?(p=Ur,u+=2):(p=e,Z===0&&se(xn)),p!==e?(x=cr(),x!==e?(H=cr(),H!==e?(q=cr(),q!==e?(X=cr(),X!==e?(he=f,p=_n(x,H,q,X),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)))))))))),f}function cr(){var f;return yr.test(s.charAt(u))?(f=s.charAt(u),u++):(f=e,Z===0&&se($r)),f}function Ce(){var f,p;if(Z++,f=[],fn.test(s.charAt(u))?(p=s.charAt(u),u++):(p=e,Z===0&&se(Ze)),p!==e)for(;p!==e;)f.push(p),fn.test(s.charAt(u))?(p=s.charAt(u),u++):(p=e,Z===0&&se(Ze));else f=e;return Z--,f===e&&(p=e,Z===0&&se(On)),f}function ar(){var f,p,x,H,q,X;if(f=u,p=ur(),p!==e){for(x=[],H=u,q=Ce(),q===e&&(q=null),q!==e?(X=ur(),X!==e?(q=[q,X],H=q):(u=H,H=e)):(u=H,H=e);H!==e;)x.push(H),H=u,q=Ce(),q===e&&(q=null),q!==e?(X=ur(),X!==e?(q=[q,X],H=q):(u=H,H=e)):(u=H,H=e);x!==e?(p=[p,x],f=p):(u=f,f=e)}else u=f,f=e;return f}function ur(){var f;return s.substr(u,2)===Hr?(f=Hr,u+=2):(f=e,Z===0&&se(Tn)),f===e&&(s.charCodeAt(u)===10?(f=Rn,u++):(f=e,Z===0&&se(ln)),f===e&&(s.charCodeAt(u)===13?(f=jn,u++):(f=e,Z===0&&se(Fn)))),f}const yn=2;let Dr=0;if(Sr=b(),Sr!==e&&u===s.length)return Sr;throw Sr!==e&&u<s.length&&se(In()),Nn(Kr,He<s.length?s.charAt(He):null,He<s.length?un(He,He+1):un(He,He))}return Ei={SyntaxError:g,parse:C},Ei}var Jt;function Vo(){if(Jt)return Rr;Jt=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.PreserveOrdering=void 0,Rr.stringifySyml=m,Rr.parseSyml=y;const a=Ko(),g=Wo(),C=/^(?![-?:,\][{}#&*!|>'"%@` \t\r\n]).([ \t]*(?![,\][{}:# \t\r\n]).)*$/,s=["__metadata","version","resolution","dependencies","peerDependencies","dependenciesMeta","peerDependenciesMeta","binaries"];class h{constructor($){this.data=$}}Rr.PreserveOrdering=h;function e(A){return A.match(C)?A:JSON.stringify(A)}function d(A){return typeof A>"u"?!0:typeof A=="object"&&A!==null&&!Array.isArray(A)?Object.keys(A).every($=>d(A[$])):!1}function b(A,$,D){if(A===null)return`null
45
+ `,!1),jn="\r",Fn=Ae("\r",!1),u=0,he=0,Lr=[{line:1,column:1}],He=0,Kr=[],Z=0,Sr;if("startRule"in h){if(!(h.startRule in d))throw new Error(`Can't start parsing from rule "`+h.startRule+'".');b=d[h.startRule]}function cn(){return s.substring(he,u)}function Ae(f,p){return{type:"literal",text:f,ignoreCase:p}}function ir(f,p,x){return{type:"class",parts:f,inverted:p,ignoreCase:x}}function Ln(){return{type:"any"}}function In(){return{type:"end"}}function Er(f){return{type:"other",description:f}}function an(f){var p=Lr[f],x;if(p)return p;for(x=f-1;!Lr[x];)x--;for(p=Lr[x],p={line:p.line,column:p.column};x<f;)s.charCodeAt(x)===10?(p.line++,p.column=1):p.column++,x++;return Lr[f]=p,p}function un(f,p){var x=an(f),H=an(p);return{start:{offset:f,line:x.line,column:x.column},end:{offset:p,line:H.line,column:H.column}}}function se(f){u<He||(u>He&&(He=u,Kr=[]),Kr.push(f))}function Nn(f,p,x){return new g(g.buildMessage(f,p),f,p,x)}function pn(){var f;return f=Ir(),f}function Pn(){var f,p,x;for(f=u,p=[],x=hn();x!==e;)p.push(x),x=hn();return p!==e&&(he=f,p=m(p)),f=p,f}function hn(){var f,p,x,H,q;return f=u,p=vr(),p!==e?(s.charCodeAt(u)===45?(x=w,u++):(x=e,Z===0&&se(k)),x!==e?(H=Ce(),H!==e?(q=Nr(),q!==e?(he=f,p=Y(q),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e),f}function Ir(){var f,p,x;for(f=u,p=[],x=Wr();x!==e;)p.push(x),x=Wr();return p!==e&&(he=f,p=y(p)),f=p,f}function Wr(){var f,p,x,H,q,X,ue,me,pr;if(f=u,p=Ce(),p===e&&(p=null),p!==e){if(x=u,s.charCodeAt(u)===35?(H=A,u++):(H=e,Z===0&&se($)),H!==e){if(q=[],X=u,ue=u,Z++,me=ur(),Z--,me===e?ue=void 0:(u=ue,ue=e),ue!==e?(s.length>u?(me=s.charAt(u),u++):(me=e,Z===0&&se(D)),me!==e?(ue=[ue,me],X=ue):(u=X,X=e)):(u=X,X=e),X!==e)for(;X!==e;)q.push(X),X=u,ue=u,Z++,me=ur(),Z--,me===e?ue=void 0:(u=ue,ue=e),ue!==e?(s.length>u?(me=s.charAt(u),u++):(me=e,Z===0&&se(D)),me!==e?(ue=[ue,me],X=ue):(u=X,X=e)):(u=X,X=e);else q=e;q!==e?(H=[H,q],x=H):(u=x,x=e)}else u=x,x=e;if(x===e&&(x=null),x!==e){if(H=[],q=ar(),q!==e)for(;q!==e;)H.push(q),q=ar();else H=e;H!==e?(he=f,p=ne(),f=p):(u=f,f=e)}else u=f,f=e}else u=f,f=e;if(f===e&&(f=u,p=vr(),p!==e?(x=Mn(),x!==e?(H=Ce(),H===e&&(H=null),H!==e?(s.charCodeAt(u)===58?(q=oe,u++):(q=e,Z===0&&se(O)),q!==e?(X=Ce(),X===e&&(X=null),X!==e?(ue=Nr(),ue!==e?(he=f,p=J(x,ue),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e),f===e&&(f=u,p=vr(),p!==e?(x=kr(),x!==e?(H=Ce(),H===e&&(H=null),H!==e?(s.charCodeAt(u)===58?(q=oe,u++):(q=e,Z===0&&se(O)),q!==e?(X=Ce(),X===e&&(X=null),X!==e?(ue=Nr(),ue!==e?(he=f,p=J(x,ue),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e),f===e))){if(f=u,p=vr(),p!==e)if(x=kr(),x!==e)if(H=Ce(),H!==e)if(q=Yn(),q!==e){if(X=[],ue=ar(),ue!==e)for(;ue!==e;)X.push(ue),ue=ar();else X=e;X!==e?(he=f,p=J(x,q),f=p):(u=f,f=e)}else u=f,f=e;else u=f,f=e;else u=f,f=e;else u=f,f=e;if(f===e)if(f=u,p=vr(),p!==e)if(x=kr(),x!==e){if(H=[],q=u,X=Ce(),X===e&&(X=null),X!==e?(s.charCodeAt(u)===44?(ue=re,u++):(ue=e,Z===0&&se(M)),ue!==e?(me=Ce(),me===e&&(me=null),me!==e?(pr=kr(),pr!==e?(he=q,X=le(x,pr),q=X):(u=q,q=e)):(u=q,q=e)):(u=q,q=e)):(u=q,q=e),q!==e)for(;q!==e;)H.push(q),q=u,X=Ce(),X===e&&(X=null),X!==e?(s.charCodeAt(u)===44?(ue=re,u++):(ue=e,Z===0&&se(M)),ue!==e?(me=Ce(),me===e&&(me=null),me!==e?(pr=kr(),pr!==e?(he=q,X=le(x,pr),q=X):(u=q,q=e)):(u=q,q=e)):(u=q,q=e)):(u=q,q=e);else H=e;H!==e?(q=Ce(),q===e&&(q=null),q!==e?(s.charCodeAt(u)===58?(X=oe,u++):(X=e,Z===0&&se(O)),X!==e?(ue=Ce(),ue===e&&(ue=null),ue!==e?(me=Nr(),me!==e?(he=f,p=we(x,H,me),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)}else u=f,f=e;else u=f,f=e}return f}function Nr(){var f,p,x,H,q,X,ue;if(f=u,p=u,Z++,x=u,H=ur(),H!==e?(q=Dn(),q!==e?(s.charCodeAt(u)===45?(X=w,u++):(X=e,Z===0&&se(k)),X!==e?(ue=Ce(),ue!==e?(H=[H,q,X,ue],x=H):(u=x,x=e)):(u=x,x=e)):(u=x,x=e)):(u=x,x=e),Z--,x!==e?(u=p,p=void 0):p=e,p!==e?(x=ar(),x!==e?(H=Vr(),H!==e?(q=Pn(),q!==e?(X=gn(),X!==e?(he=f,p=de(q),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e),f===e&&(f=u,p=ur(),p!==e?(x=Vr(),x!==e?(H=Ir(),H!==e?(q=gn(),q!==e?(he=f,p=de(H),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e),f===e))if(f=u,p=qn(),p!==e){if(x=[],H=ar(),H!==e)for(;H!==e;)x.push(H),H=ar();else x=e;x!==e?(he=f,p=ve(p),f=p):(u=f,f=e)}else u=f,f=e;return f}function vr(){var f,p,x;for(Z++,f=u,p=[],s.charCodeAt(u)===32?(x=Oe,u++):(x=e,Z===0&&se(Fe));x!==e;)p.push(x),s.charCodeAt(u)===32?(x=Oe,u++):(x=e,Z===0&&se(Fe));return p!==e?(he=u,x=Be(p),x?x=void 0:x=e,x!==e?(p=[p,x],f=p):(u=f,f=e)):(u=f,f=e),Z--,f===e&&(p=e,Z===0&&se(Ee)),f}function Dn(){var f,p,x;for(f=u,p=[],s.charCodeAt(u)===32?(x=Oe,u++):(x=e,Z===0&&se(Fe));x!==e;)p.push(x),s.charCodeAt(u)===32?(x=Oe,u++):(x=e,Z===0&&se(Fe));return p!==e?(he=u,x=ye(p),x?x=void 0:x=e,x!==e?(p=[p,x],f=p):(u=f,f=e)):(u=f,f=e),f}function Vr(){var f;return he=u,f=Pe(),f?f=void 0:f=e,f}function gn(){var f;return he=u,f=Qe(),f?f=void 0:f=e,f}function Mn(){var f;return f=_r(),f===e&&(f=dn()),f}function kr(){var f,p,x;if(f=_r(),f===e){if(f=u,p=[],x=tr(),x!==e)for(;x!==e;)p.push(x),x=tr();else p=e;p!==e&&(he=f,p=xe()),f=p}return f}function qn(){var f;return f=xr(),f===e&&(f=mn(),f===e&&(f=_r(),f===e&&(f=dn()))),f}function Yn(){var f;return f=xr(),f===e&&(f=_r(),f===e&&(f=tr())),f}function dn(){var f,p,x,H,q,X;if(Z++,f=u,Ne.test(s.charAt(u))?(p=s.charAt(u),u++):(p=e,Z===0&&se(qe)),p!==e){for(x=[],H=u,q=Ce(),q===e&&(q=null),q!==e?(Te.test(s.charAt(u))?(X=s.charAt(u),u++):(X=e,Z===0&&se(De)),X!==e?(q=[q,X],H=q):(u=H,H=e)):(u=H,H=e);H!==e;)x.push(H),H=u,q=Ce(),q===e&&(q=null),q!==e?(Te.test(s.charAt(u))?(X=s.charAt(u),u++):(X=e,Z===0&&se(De)),X!==e?(q=[q,X],H=q):(u=H,H=e)):(u=H,H=e);x!==e?(he=f,p=be(),f=p):(u=f,f=e)}else u=f,f=e;return Z--,f===e&&(p=e,Z===0&&se(ee)),f}function tr(){var f,p,x,H,q;if(f=u,s.substr(u,2)===K?(p=K,u+=2):(p=e,Z===0&&se(B)),p===e&&(p=null),p!==e)if(te.test(s.charAt(u))?(x=s.charAt(u),u++):(x=e,Z===0&&se($e)),x!==e){for(H=[],Ve.test(s.charAt(u))?(q=s.charAt(u),u++):(q=e,Z===0&&se(ze));q!==e;)H.push(q),Ve.test(s.charAt(u))?(q=s.charAt(u),u++):(q=e,Z===0&&se(ze));H!==e?(he=f,p=be(),f=p):(u=f,f=e)}else u=f,f=e;else u=f,f=e;return f}function xr(){var f,p;return f=u,s.substr(u,4)===Me?(p=Me,u+=4):(p=e,Z===0&&se(Ye)),p!==e&&(he=f,p=rr()),f=p,f}function mn(){var f,p;return f=u,s.substr(u,4)===nr?(p=nr,u+=4):(p=e,Z===0&&se(wr)),p!==e&&(he=f,p=fr()),f=p,f===e&&(f=u,s.substr(u,5)===lr?(p=lr,u+=5):(p=e,Z===0&&se(br)),p!==e&&(he=f,p=Ue()),f=p),f}function _r(){var f,p,x,H;return Z++,f=u,s.charCodeAt(u)===34?(p=Xe,u++):(p=e,Z===0&&se(Ge)),p!==e?(s.charCodeAt(u)===34?(x=Xe,u++):(x=e,Z===0&&se(Ge)),x!==e?(he=f,p=gr(),f=p):(u=f,f=e)):(u=f,f=e),f===e&&(f=u,s.charCodeAt(u)===34?(p=Xe,u++):(p=e,Z===0&&se(Ge)),p!==e?(x=Pr(),x!==e?(s.charCodeAt(u)===34?(H=Xe,u++):(H=e,Z===0&&se(Ge)),H!==e?(he=f,p=Cr(x),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)),Z--,f===e&&(p=e,Z===0&&se(hr)),f}function Pr(){var f,p,x;if(f=u,p=[],x=Or(),x!==e)for(;x!==e;)p.push(x),x=Or();else p=e;return p!==e&&(he=f,p=dr(p)),f=p,f}function Or(){var f,p,x,H,q,X;return n.test(s.charAt(u))?(f=s.charAt(u),u++):(f=e,Z===0&&se(E)),f===e&&(f=u,s.substr(u,2)===R?(p=R,u+=2):(p=e,Z===0&&se(Q)),p!==e&&(he=f,p=I()),f=p,f===e&&(f=u,s.substr(u,2)===l?(p=l,u+=2):(p=e,Z===0&&se(v)),p!==e&&(he=f,p=_()),f=p,f===e&&(f=u,s.substr(u,2)===T?(p=T,u+=2):(p=e,Z===0&&se(P)),p!==e&&(he=f,p=U()),f=p,f===e&&(f=u,s.substr(u,2)===j?(p=j,u+=2):(p=e,Z===0&&se(z)),p!==e&&(he=f,p=W()),f=p,f===e&&(f=u,s.substr(u,2)===ie?(p=ie,u+=2):(p=e,Z===0&&se(ge)),p!==e&&(he=f,p=ae()),f=p,f===e&&(f=u,s.substr(u,2)===ke?(p=ke,u+=2):(p=e,Z===0&&se(En)),p!==e&&(he=f,p=kn()),f=p,f===e&&(f=u,s.substr(u,2)===tn?(p=tn,u+=2):(p=e,Z===0&&se(jr)),p!==e&&(he=f,p=Fr()),f=p,f===e&&(f=u,s.substr(u,2)===mr?(p=mr,u+=2):(p=e,Z===0&&se(sn)),p!==e&&(he=f,p=on()),f=p,f===e&&(f=u,s.substr(u,2)===Ur?(p=Ur,u+=2):(p=e,Z===0&&se(xn)),p!==e?(x=cr(),x!==e?(H=cr(),H!==e?(q=cr(),q!==e?(X=cr(),X!==e?(he=f,p=_n(x,H,q,X),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)))))))))),f}function cr(){var f;return yr.test(s.charAt(u))?(f=s.charAt(u),u++):(f=e,Z===0&&se($r)),f}function Ce(){var f,p;if(Z++,f=[],fn.test(s.charAt(u))?(p=s.charAt(u),u++):(p=e,Z===0&&se(Ze)),p!==e)for(;p!==e;)f.push(p),fn.test(s.charAt(u))?(p=s.charAt(u),u++):(p=e,Z===0&&se(Ze));else f=e;return Z--,f===e&&(p=e,Z===0&&se(On)),f}function ar(){var f,p,x,H,q,X;if(f=u,p=ur(),p!==e){for(x=[],H=u,q=Ce(),q===e&&(q=null),q!==e?(X=ur(),X!==e?(q=[q,X],H=q):(u=H,H=e)):(u=H,H=e);H!==e;)x.push(H),H=u,q=Ce(),q===e&&(q=null),q!==e?(X=ur(),X!==e?(q=[q,X],H=q):(u=H,H=e)):(u=H,H=e);x!==e?(p=[p,x],f=p):(u=f,f=e)}else u=f,f=e;return f}function ur(){var f;return s.substr(u,2)===Hr?(f=Hr,u+=2):(f=e,Z===0&&se(Tn)),f===e&&(s.charCodeAt(u)===10?(f=Rn,u++):(f=e,Z===0&&se(ln)),f===e&&(s.charCodeAt(u)===13?(f=jn,u++):(f=e,Z===0&&se(Fn)))),f}const yn=2;let Dr=0;if(Sr=b(),Sr!==e&&u===s.length)return Sr;throw Sr!==e&&u<s.length&&se(In()),Nn(Kr,He<s.length?s.charAt(He):null,He<s.length?un(He,He+1):un(He,He))}return Ei={SyntaxError:g,parse:C},Ei}var Jt;function Vo(){if(Jt)return Rr;Jt=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.PreserveOrdering=void 0,Rr.stringifySyml=m,Rr.parseSyml=y;const a=Ko(),g=Wo(),C=/^(?![-?:,\][{}#&*!|>'"%@` \t\r\n]).([ \t]*(?![,\][{}:# \t\r\n]).)*$/,s=["__metadata","version","resolution","dependencies","peerDependencies","dependenciesMeta","peerDependenciesMeta","binaries"];class h{constructor($){this.data=$}}Rr.PreserveOrdering=h;function e(A){return A.match(C)?A:JSON.stringify(A)}function d(A){return typeof A>"u"?!0:typeof A=="object"&&A!==null&&!Array.isArray(A)?Object.keys(A).every($=>d(A[$])):!1}function b(A,$,D){if(A===null)return`null
46
46
  `;if(typeof A=="number"||typeof A=="boolean")return`${A.toString()}
47
47
  `;if(typeof A=="string")return`${e(A)}
48
48
  `;if(Array.isArray(A)){if(A.length===0)return`[]
49
49
  `;const ne=" ".repeat($);return`
50
50
  ${A.map(O=>`${ne}- ${b(O,$+1,!1)}`).join("")}`}if(typeof A=="object"&&A){const[ne,oe]=A instanceof h?[A.data,!1]:[A,!0],O=" ".repeat($),J=Object.keys(ne);oe&&J.sort((M,le)=>{const we=s.indexOf(M),de=s.indexOf(le);return we===-1&&de===-1?M<le?-1:M>le?1:0:we!==-1&&de===-1?-1:we===-1&&de!==-1?1:we-de});const re=J.filter(M=>!d(ne[M])).map((M,le)=>{const we=ne[M],de=e(M),ve=b(we,$+1,!0),Ee=le>0||D?O:"",Oe=de.length>1024?`? ${de}
51
- ${Ee}:`:`${de}:`,Le=ve.startsWith(`
52
- `)?ve:` ${ve}`;return`${Ee}${Oe}${Le}`}).join($===0?`
51
+ ${Ee}:`:`${de}:`,Fe=ve.startsWith(`
52
+ `)?ve:` ${ve}`;return`${Ee}${Oe}${Fe}`}).join($===0?`
53
53
  `:"")||`
54
54
  `;return D?`
55
55
  ${re}`:`${re}`}throw new Error(`Unsupported value type (${A})`)}function m(A){try{const $=b(A,0,!1);return $!==`
56
56
  `?$:""}catch($){throw $.location&&($.message=$.message.replace(/(\.)?$/,` (line ${$.location.start.line}, column ${$.location.start.column})$1`)),$}}m.PreserveOrdering=h;function w(A){return A.endsWith(`
57
57
  `)||(A+=`
58
- `),(0,g.parse)(A)}const k=/^(#.*(\r?\n))*?#\s+yarn\s+lockfile\s+v1\r?\n/i;function Y(A){if(k.test(A))return w(A);const $=(0,a.safeLoad)(A,{schema:a.FAILSAFE_SCHEMA,json:!0});if($==null)return{};if(typeof $!="object")throw new Error(`Expected an indexed object, got a ${typeof $} instead. Does your file follow Yaml's rules?`);if(Array.isArray($))throw new Error("Expected an indexed object, got an array instead. Does your file follow Yaml's rules?");return $}function y(A){return Y(A)}return Rr}var Qt;function Go(){return Qt||(Qt=1,(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.stringifySyml=a.parseSyml=a.stringifyResolution=a.parseResolution=a.stringifyValueArgument=a.stringifyShellLine=a.stringifyRedirectArgument=a.stringifyEnvSegment=a.stringifyCommandLineThen=a.stringifyCommandLine=a.stringifyCommandChainThen=a.stringifyCommandChain=a.stringifyCommand=a.stringifyArithmeticExpression=a.stringifyArgumentSegment=a.stringifyArgument=a.stringifyShell=a.parseShell=void 0;var g=bo();Object.defineProperty(a,"parseShell",{enumerable:!0,get:function(){return g.parseShell}}),Object.defineProperty(a,"stringifyShell",{enumerable:!0,get:function(){return g.stringifyShell}}),Object.defineProperty(a,"stringifyArgument",{enumerable:!0,get:function(){return g.stringifyArgument}}),Object.defineProperty(a,"stringifyArgumentSegment",{enumerable:!0,get:function(){return g.stringifyArgumentSegment}}),Object.defineProperty(a,"stringifyArithmeticExpression",{enumerable:!0,get:function(){return g.stringifyArithmeticExpression}}),Object.defineProperty(a,"stringifyCommand",{enumerable:!0,get:function(){return g.stringifyCommand}}),Object.defineProperty(a,"stringifyCommandChain",{enumerable:!0,get:function(){return g.stringifyCommandChain}}),Object.defineProperty(a,"stringifyCommandChainThen",{enumerable:!0,get:function(){return g.stringifyCommandChainThen}}),Object.defineProperty(a,"stringifyCommandLine",{enumerable:!0,get:function(){return g.stringifyCommandLine}}),Object.defineProperty(a,"stringifyCommandLineThen",{enumerable:!0,get:function(){return g.stringifyCommandLineThen}}),Object.defineProperty(a,"stringifyEnvSegment",{enumerable:!0,get:function(){return g.stringifyEnvSegment}}),Object.defineProperty(a,"stringifyRedirectArgument",{enumerable:!0,get:function(){return g.stringifyRedirectArgument}}),Object.defineProperty(a,"stringifyShellLine",{enumerable:!0,get:function(){return g.stringifyShellLine}}),Object.defineProperty(a,"stringifyValueArgument",{enumerable:!0,get:function(){return g.stringifyValueArgument}});var C=So();Object.defineProperty(a,"parseResolution",{enumerable:!0,get:function(){return C.parseResolution}}),Object.defineProperty(a,"stringifyResolution",{enumerable:!0,get:function(){return C.stringifyResolution}});var s=Vo();Object.defineProperty(a,"parseSyml",{enumerable:!0,get:function(){return s.parseSyml}}),Object.defineProperty(a,"stringifySyml",{enumerable:!0,get:function(){return s.stringifySyml}})})(Qn)),Qn}var zt=Go();const Zr="__metadata",Jo=a=>{const g=a.trim();if(g==="")return;const C=g.startsWith("@")?1:0,s=g.indexOf("@",C);if(s!==-1)return{name:g.slice(0,s),spec:g.slice(s+1)}},Qo=a=>a.split(",").map(g=>Jo(g)).filter(g=>g!==void 0),zo=a=>{const g=new Map;for(const C of Object.keys(a)){if(C==="__metadata")continue;const s=Qo(C),h=new Map;for(const{name:e,spec:d}of s){const b=h.get(e);b?b.push(d):h.set(e,[d])}for(const[e,d]of h){const b=g.get(e);b?b.push({key:C,specs:d}):g.set(e,[{key:C,specs:d}])}}return g},Xt=(a,g,C)=>{const s=a.get(g);if(!s)return[];const h=new Set([C]);return C.includes(":")?C.startsWith("npm:")&&h.add(C.slice(4)):h.add(`npm:${C}`),s.filter(d=>d.specs.some(b=>h.has(b))).map(d=>d.key)},Xo=(a,g)=>{const C=new Set,s=new Set(g.map(h=>h.relativeRoot).filter(h=>h!==""));for(const[h,e]of Object.entries(a)){if(h==="__metadata")continue;const{resolution:d}=e;if(typeof d!="string"||!d.includes("@workspace:"))continue;const b=d.split("@workspace:")[1];b!==void 0&&(b==="."||s.has(b))&&C.add(h)}return C},Zo=a=>{const g=[];for(const C of[a.dependencies,a.optionalDependencies])if(C)for(const[s,h]of Object.entries(C))typeof h=="string"&&g.push({name:s,spec:h});return g},ef=a=>{const g=typeof a.lockfileContent=="string"?a.lockfileContent:a.lockfileContent.toString("utf8");let C;try{C=zt.parseSyml(g)}catch(y){throw new er(`yarn.lock: parse failed — ${y.message}`)}if(!C||typeof C!="object")throw new er("yarn.lock: top-level value is not an object");const s=zo(C),h=new Set;C[Zr]!==void 0&&h.add(Zr);const e=Xo(C,a.closure);for(const y of e)h.add(y);for(const y of a.closure)if(y.deps)for(const[A,$]of Object.entries(y.deps)){if(typeof $!="string"||$.startsWith("workspace:")||$.startsWith("link:")||$.startsWith("portal:"))continue;const D=Xt(s,A,$);for(const ne of D)h.add(ne)}const d=[...h];for(;d.length>0;){const y=d.shift();if(y==="__metadata")continue;const A=C[y];if(A)for(const{name:$,spec:D}of Zo(A)){if(D.startsWith("workspace:")||D.startsWith("link:")||D.startsWith("portal:"))continue;const ne=Xt(s,$,D);for(const oe of ne)h.has(oe)||(h.add(oe),d.push(oe))}}const b={};for(const y of Object.keys(C))h.has(y)&&(b[y]=C[y]);const m=Object.keys(C).length-(C[Zr]===void 0?0:1),w=h.size-(h.has(Zr)?1:0),k=m-w,Y=C[Zr]!==void 0;return{content:zt.stringifySyml(b),message:`yarn.lock (${Y?"berry":"classic"}): kept ${w}/${m} entries (dropped ${k})`,status:"pruned"}},rf=a=>{switch(a.packageManager){case"aube":return uo(a);case"bun":return yo(a);case"npm":return Ao(a);case"pnpm":return ts(a);case"yarn":return ef(a);default:{const g=a.packageManager;throw new er(`Unsupported package manager: ${g}`)}}},nf=(a,g)=>{const C=new Set,s=[a],h=new Set([a]);for(;s.length>0;){const e=s.shift(),d=g.dependencies[e]??[];for(const b of d)h.has(b.target)||(h.add(b.target),C.add(b.target),s.push(b.target))}return C},Cn="vis-docker-manifest.json",tf=["package.json","project.json"],sf=[{file:"bun.lock",manager:"bun"},{file:"bun.lockb",manager:"bun"},{file:"npm-shrinkwrap.json",manager:"npm"},{file:"package-lock.json",manager:"npm"},{file:"pnpm-lock.yaml",manager:"pnpm"},{file:"yarn.lock",manager:"yarn"}],of=["package.json","pnpm-workspace.yaml",".npmrc","vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],ff=(a,g)=>{const C=new Set(a);for(const s of a){const h=nf(s,g);for(const e of h)C.add(e)}return C},qr=a=>{lo(a)},en=(a,g)=>{try{return qr(_i(g)),rs(a,g),!0}catch(C){if(C.code==="ENOENT")return!1;throw C}},ls=(a,g)=>{let C;try{C=no(a)}catch{return}if(!C.isSymbolicLink()){if(C.isFile()){qr(_i(g)),rs(a,g);return}qr(g);for(const s of io(a,{withFileTypes:!0}))s.name==="node_modules"||s.name===".git"||s.isSymbolicLink()||ls(Ie(a,s.name),Ie(g,s.name))}},Zt=a=>{if(!es(a))return;let g;try{g=ns(a)}catch{return}const C={};for(const s of["dependencies","devDependencies","optionalDependencies","peerDependencies"]){const h=g[s];if(!(h===null||typeof h!="object"||Array.isArray(h)))for(const[e,d]of Object.entries(h))typeof d=="string"&&(C[e]=d)}return{deps:C,name:typeof g.name=="string"?g.name:void 0}},gf=a=>{const{focus:g,includeSources:C=!1,log:s=D=>{console.log(D)},outDir:h,projectGraph:e,pruneLockfile:d=!0,workspace:b,workspaceRoot:m}=a,w=g.filter(D=>b.projects[D]===void 0);if(w.length>0)throw new Error(`Unknown focus project(s): ${w.join(", ")}. Check project names in your workspace.`);const k=ff(g,e),Y=Ie(h,"workspace"),y=Ie(h,"sources");ki(Y,{force:!0,recursive:!0}),ki(y,{force:!0,recursive:!0}),qr(Y);for(const D of of)en(Ie(m,D),Ie(Y,D));const A=Zt(Ie(m,"package.json")),$=[{deps:A?.deps,name:A?.name,relativeRoot:""}];for(const D of k){const ne=b.projects[D];if(!ne?.root)continue;for(const O of tf)en(Ie(m,ne.root,O),Ie(Y,ne.root,O));const oe=Zt(Ie(m,ne.root,"package.json"));$.push({deps:oe?.deps,name:oe?.name,relativeRoot:ne.root})}for(const{file:D,manager:ne}of sf){const oe=Ie(m,D);if(!es(oe))continue;const O=Ie(Y,D);if(!d){en(oe,O);continue}const J=D.endsWith(".lockb")?at(oe):at(oe,"utf8");try{const re=rf({closure:$,displayName:D,lockfileContent:J,packageManager:ne});re.status==="pruned"&&re.content!==void 0?(qr(_i(O)),ut(O,re.content)):en(oe,O),s(re.message)}catch(re){if(re instanceof er)s(`${D}: pruning failed (${re.message}); copying verbatim`),en(oe,O);else throw re}}if(C){qr(y);for(const D of g){const ne=b.projects[D];ne?.root&&ls(Ie(m,ne.root),Ie(y,ne.root))}}return ut(Ie(h,Cn),`${JSON.stringify({focus:g,projects:[...k].sort()},null,2)}
58
+ `),(0,g.parse)(A)}const k=/^(#.*(\r?\n))*?#\s+yarn\s+lockfile\s+v1\r?\n/i;function Y(A){if(k.test(A))return w(A);const $=(0,a.load)(A,{schema:a.FAILSAFE_SCHEMA,json:!0});if($==null)return{};if(typeof $!="object")throw new Error(`Expected an indexed object, got a ${typeof $} instead. Does your file follow Yaml's rules?`);if(Array.isArray($))throw new Error("Expected an indexed object, got an array instead. Does your file follow Yaml's rules?");return $}function y(A){return Y(A)}return Rr}var Qt;function Go(){return Qt||(Qt=1,(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.stringifySyml=a.parseSyml=a.stringifyResolution=a.parseResolution=a.stringifyValueArgument=a.stringifyShellLine=a.stringifyRedirectArgument=a.stringifyEnvSegment=a.stringifyCommandLineThen=a.stringifyCommandLine=a.stringifyCommandChainThen=a.stringifyCommandChain=a.stringifyCommand=a.stringifyArithmeticExpression=a.stringifyArgumentSegment=a.stringifyArgument=a.stringifyShell=a.parseShell=void 0;var g=bo();Object.defineProperty(a,"parseShell",{enumerable:!0,get:function(){return g.parseShell}}),Object.defineProperty(a,"stringifyShell",{enumerable:!0,get:function(){return g.stringifyShell}}),Object.defineProperty(a,"stringifyArgument",{enumerable:!0,get:function(){return g.stringifyArgument}}),Object.defineProperty(a,"stringifyArgumentSegment",{enumerable:!0,get:function(){return g.stringifyArgumentSegment}}),Object.defineProperty(a,"stringifyArithmeticExpression",{enumerable:!0,get:function(){return g.stringifyArithmeticExpression}}),Object.defineProperty(a,"stringifyCommand",{enumerable:!0,get:function(){return g.stringifyCommand}}),Object.defineProperty(a,"stringifyCommandChain",{enumerable:!0,get:function(){return g.stringifyCommandChain}}),Object.defineProperty(a,"stringifyCommandChainThen",{enumerable:!0,get:function(){return g.stringifyCommandChainThen}}),Object.defineProperty(a,"stringifyCommandLine",{enumerable:!0,get:function(){return g.stringifyCommandLine}}),Object.defineProperty(a,"stringifyCommandLineThen",{enumerable:!0,get:function(){return g.stringifyCommandLineThen}}),Object.defineProperty(a,"stringifyEnvSegment",{enumerable:!0,get:function(){return g.stringifyEnvSegment}}),Object.defineProperty(a,"stringifyRedirectArgument",{enumerable:!0,get:function(){return g.stringifyRedirectArgument}}),Object.defineProperty(a,"stringifyShellLine",{enumerable:!0,get:function(){return g.stringifyShellLine}}),Object.defineProperty(a,"stringifyValueArgument",{enumerable:!0,get:function(){return g.stringifyValueArgument}});var C=So();Object.defineProperty(a,"parseResolution",{enumerable:!0,get:function(){return C.parseResolution}}),Object.defineProperty(a,"stringifyResolution",{enumerable:!0,get:function(){return C.stringifyResolution}});var s=Vo();Object.defineProperty(a,"parseSyml",{enumerable:!0,get:function(){return s.parseSyml}}),Object.defineProperty(a,"stringifySyml",{enumerable:!0,get:function(){return s.stringifySyml}})})(Qn)),Qn}var zt=Go();const Zr="__metadata",Jo=a=>{const g=a.trim();if(g==="")return;const C=g.startsWith("@")?1:0,s=g.indexOf("@",C);if(s!==-1)return{name:g.slice(0,s),spec:g.slice(s+1)}},Qo=a=>a.split(",").map(g=>Jo(g)).filter(g=>g!==void 0),zo=a=>{const g=new Map;for(const C of Object.keys(a)){if(C==="__metadata")continue;const s=Qo(C),h=new Map;for(const{name:e,spec:d}of s){const b=h.get(e);b?b.push(d):h.set(e,[d])}for(const[e,d]of h){const b=g.get(e);b?b.push({key:C,specs:d}):g.set(e,[{key:C,specs:d}])}}return g},Xt=(a,g,C)=>{const s=a.get(g);if(!s)return[];const h=new Set([C]);return C.includes(":")?C.startsWith("npm:")&&h.add(C.slice(4)):h.add(`npm:${C}`),s.filter(d=>d.specs.some(b=>h.has(b))).map(d=>d.key)},Xo=(a,g)=>{const C=new Set,s=new Set(g.map(h=>h.relativeRoot).filter(h=>h!==""));for(const[h,e]of Object.entries(a)){if(h==="__metadata")continue;const{resolution:d}=e;if(typeof d!="string"||!d.includes("@workspace:"))continue;const b=d.split("@workspace:")[1];b!==void 0&&(b==="."||s.has(b))&&C.add(h)}return C},Zo=a=>{const g=[];for(const C of[a.dependencies,a.optionalDependencies])if(C)for(const[s,h]of Object.entries(C))typeof h=="string"&&g.push({name:s,spec:h});return g},ef=a=>{const g=typeof a.lockfileContent=="string"?a.lockfileContent:a.lockfileContent.toString("utf8");let C;try{C=zt.parseSyml(g)}catch(y){throw new er(`yarn.lock: parse failed — ${y.message}`)}if(!C||typeof C!="object")throw new er("yarn.lock: top-level value is not an object");const s=zo(C),h=new Set;C[Zr]!==void 0&&h.add(Zr);const e=Xo(C,a.closure);for(const y of e)h.add(y);for(const y of a.closure)if(y.deps)for(const[A,$]of Object.entries(y.deps)){if(typeof $!="string"||$.startsWith("workspace:")||$.startsWith("link:")||$.startsWith("portal:"))continue;const D=Xt(s,A,$);for(const ne of D)h.add(ne)}const d=[...h];for(;d.length>0;){const y=d.shift();if(y==="__metadata")continue;const A=C[y];if(A)for(const{name:$,spec:D}of Zo(A)){if(D.startsWith("workspace:")||D.startsWith("link:")||D.startsWith("portal:"))continue;const ne=Xt(s,$,D);for(const oe of ne)h.has(oe)||(h.add(oe),d.push(oe))}}const b={};for(const y of Object.keys(C))h.has(y)&&(b[y]=C[y]);const m=Object.keys(C).length-(C[Zr]===void 0?0:1),w=h.size-(h.has(Zr)?1:0),k=m-w,Y=C[Zr]!==void 0;return{content:zt.stringifySyml(b),message:`yarn.lock (${Y?"berry":"classic"}): kept ${w}/${m} entries (dropped ${k})`,status:"pruned"}},rf=a=>{switch(a.packageManager){case"aube":return uo(a);case"bun":return yo(a);case"npm":return Ao(a);case"pnpm":return ts(a);case"yarn":return ef(a);default:{const g=a.packageManager;throw new er(`Unsupported package manager: ${g}`)}}},nf=(a,g)=>{const C=new Set,s=[a],h=new Set([a]);for(;s.length>0;){const e=s.shift(),d=g.dependencies[e]??[];for(const b of d)h.has(b.target)||(h.add(b.target),C.add(b.target),s.push(b.target))}return C},Cn="vis-docker-manifest.json",tf=["package.json","project.json"],sf=[{file:"bun.lock",manager:"bun"},{file:"bun.lockb",manager:"bun"},{file:"npm-shrinkwrap.json",manager:"npm"},{file:"package-lock.json",manager:"npm"},{file:"pnpm-lock.yaml",manager:"pnpm"},{file:"yarn.lock",manager:"yarn"}],of=["package.json","pnpm-workspace.yaml",".npmrc","vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],ff=(a,g)=>{const C=new Set(a);for(const s of a){const h=nf(s,g);for(const e of h)C.add(e)}return C},qr=a=>{lo(a)},en=(a,g)=>{try{return qr(_i(g)),rs(a,g),!0}catch(C){if(C.code==="ENOENT")return!1;throw C}},ls=(a,g)=>{let C;try{C=no(a)}catch{return}if(!C.isSymbolicLink()){if(C.isFile()){qr(_i(g)),rs(a,g);return}qr(g);for(const s of io(a,{withFileTypes:!0}))s.name==="node_modules"||s.name===".git"||s.isSymbolicLink()||ls(Ie(a,s.name),Ie(g,s.name))}},Zt=a=>{if(!es(a))return;let g;try{g=ns(a)}catch{return}const C={};for(const s of["dependencies","devDependencies","optionalDependencies","peerDependencies"]){const h=g[s];if(!(h===null||typeof h!="object"||Array.isArray(h)))for(const[e,d]of Object.entries(h))typeof d=="string"&&(C[e]=d)}return{deps:C,name:typeof g.name=="string"?g.name:void 0}},gf=a=>{const{focus:g,includeSources:C=!1,log:s=D=>{console.log(D)},outDir:h,projectGraph:e,pruneLockfile:d=!0,workspace:b,workspaceRoot:m}=a,w=g.filter(D=>b.projects[D]===void 0);if(w.length>0)throw new Error(`Unknown focus project(s): ${w.join(", ")}. Check project names in your workspace.`);const k=ff(g,e),Y=Ie(h,"workspace"),y=Ie(h,"sources");ki(Y,{force:!0,recursive:!0}),ki(y,{force:!0,recursive:!0}),qr(Y);for(const D of of)en(Ie(m,D),Ie(Y,D));const A=Zt(Ie(m,"package.json")),$=[{deps:A?.deps,name:A?.name,relativeRoot:""}];for(const D of k){const ne=b.projects[D];if(!ne?.root)continue;for(const O of tf)en(Ie(m,ne.root,O),Ie(Y,ne.root,O));const oe=Zt(Ie(m,ne.root,"package.json"));$.push({deps:oe?.deps,name:oe?.name,relativeRoot:ne.root})}for(const{file:D,manager:ne}of sf){const oe=Ie(m,D);if(!es(oe))continue;const O=Ie(Y,D);if(!d){en(oe,O);continue}const J=D.endsWith(".lockb")?at(oe):at(oe,"utf8");try{const re=rf({closure:$,displayName:D,lockfileContent:J,packageManager:ne});re.status==="pruned"&&re.content!==void 0?(qr(_i(O)),ut(O,re.content)):en(oe,O),s(re.message)}catch(re){if(re instanceof er)s(`${D}: pruning failed (${re.message}); copying verbatim`),en(oe,O);else throw re}}if(C){qr(y);for(const D of g){const ne=b.projects[D];ne?.root&&ls(Ie(m,ne.root),Ie(y,ne.root))}}return ut(Ie(h,Cn),`${JSON.stringify({focus:g,projects:[...k].sort()},null,2)}
59
59
  `),{projects:[...k]}},df=a=>{const{contextRoot:g,workspace:C,workspaceRoot:s}=a,h=Ie(g,Cn);if(!fo(h))throw new Error(`No ${Cn} at ${g}. Run \`vis docker scaffold\` first.`);const e=ns(h);if(!Array.isArray(e.projects))throw new TypeError(`Invalid ${Cn}: "projects" must be an array.`);const d=new Set(e.projects),b=[];for(const[m,w]of Object.entries(C.projects)){if(d.has(m)||!w.root)continue;const k=Ie(s,w.root),Y=to(s,k);Y===""||Y==="."||Y.startsWith("..")||(ki(k,{force:!0,recursive:!0}),b.push(Y))}return{removed:b}};export{df as p,ff as r,gf as s};