@visulima/vis 4.0.1 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/LICENSE.md +403 -921
- package/README.md +2 -2
- package/dashboard/dist/index.html +12 -12
- package/dist/bin.js +1 -1
- package/dist/binx.js +1 -1
- package/dist/packem_chunks/bloom-status.js +1 -1
- package/dist/packem_chunks/bloom-sync.js +1 -1
- package/dist/packem_chunks/catalog.js +34 -34
- package/dist/packem_chunks/cli-exec.js +1 -1
- package/dist/packem_chunks/cli-main.js +157 -157
- package/dist/packem_chunks/doctor-probe.js +1 -1
- package/dist/packem_chunks/fix.js +1 -1
- package/dist/packem_chunks/git.js +4 -3
- package/dist/packem_chunks/handler13.js +1 -1
- package/dist/packem_chunks/handler14.js +1 -1
- package/dist/packem_chunks/handler15.js +1 -1
- package/dist/packem_chunks/handler2.js +1 -1
- package/dist/packem_chunks/handler20.js +1 -1
- package/dist/packem_chunks/handler23.js +1 -1
- package/dist/packem_chunks/handler24.js +1 -1
- package/dist/packem_chunks/handler26.js +1 -1
- package/dist/packem_chunks/handler28.js +1 -1
- package/dist/packem_chunks/handler3.js +1 -1
- package/dist/packem_chunks/handler39.js +6 -6
- package/dist/packem_chunks/handler40.js +1 -75
- package/dist/packem_chunks/handler50.js +1 -1
- package/dist/packem_chunks/handler53.js +1 -1
- package/dist/packem_chunks/handler54.js +1 -1
- package/dist/packem_chunks/handler56.js +6 -6
- package/dist/packem_chunks/handler59.js +73 -9
- package/dist/packem_chunks/handler6.js +1 -1
- package/dist/packem_chunks/handler60.js +11 -3
- package/dist/packem_chunks/handler61.js +3 -22
- package/dist/packem_chunks/handler62.js +21 -60
- package/dist/packem_chunks/handler63.js +61 -3
- package/dist/packem_chunks/handler64.js +3 -6
- package/dist/packem_chunks/handler65.js +6 -9
- package/dist/packem_chunks/handler66.js +1 -1
- package/dist/packem_chunks/handler67.js +1 -1
- package/dist/packem_chunks/handler68.js +1 -1
- package/dist/packem_chunks/handler69.js +1 -1
- package/dist/packem_chunks/handler70.js +1 -1
- package/dist/packem_chunks/handler72.js +1 -1
- package/dist/packem_chunks/handler73.js +1 -1
- package/dist/packem_chunks/handler74.js +1 -1
- package/dist/packem_chunks/handler75.js +1 -1
- package/dist/packem_chunks/handler76.js +1 -1
- package/dist/packem_chunks/handler78.js +1 -1
- package/dist/packem_chunks/heal.js +1 -1
- package/dist/packem_chunks/help-command.js +5 -5
- package/dist/packem_chunks/index6.js +7 -21
- package/dist/packem_chunks/index7.js +47 -47
- package/dist/packem_chunks/prompts.js +1 -1
- package/dist/packem_chunks/resolveFormatter.js +7 -5
- package/dist/packem_chunks/root-handler.js +1 -0
- package/dist/packem_chunks/shell-runner.js +1 -1
- package/dist/packem_chunks/status.js +1 -1
- package/dist/packem_chunks/sync.js +1 -1
- package/dist/packem_chunks/version-resolver.js +3 -2
- package/dist/packem_shared/DEFAULT_BREAKING_SECTION-DUAcKVLD.js +1 -0
- package/dist/packem_shared/DEFAULT_CONVENTIONAL_HEADING-D7oNGUcP.js +1 -0
- package/dist/packem_shared/{affected-selection-DLrq50Mz.js → affected-selection-DP4GM66N.js} +1 -1
- package/dist/packem_shared/{api.d-BPftyU9r.d.ts → api.d-C10vHKJZ.d.ts} +1 -1
- package/dist/packem_shared/{bin-As0Wq5ZN.js → bin-BO1M68aW.js} +1 -1
- package/dist/packem_shared/buildCompareUrl-BLaukjgu.js +1 -0
- package/dist/packem_shared/conventional-CGiOOEq1.js +4 -0
- package/dist/packem_shared/{cyclonedx-B1vzerwP.js → cyclonedx-CX2fFvDi.js} +1 -1
- package/dist/packem_shared/docker-Dy-X_BuM.js +59 -0
- package/dist/packem_shared/hasBulletMarker-BX2KwzI5.js +1 -0
- package/dist/packem_shared/{index-CcVv0V1y.js → index-rcfHhvVo.js} +1 -1
- package/dist/packem_shared/index.server-sXNQYpsl.js +2 -0
- package/dist/packem_shared/main-CgDAlZkm.js +1 -0
- package/dist/packem_shared/{package-version-BFsJ8iyZ.js → package-version-BO37_qsn.js} +1 -1
- package/dist/packem_shared/{project-name-filter-DdXd3P3a.js → project-name-filter-C_mppI1h.js} +1 -1
- package/dist/packem_shared/release-heading-DRpkhETz.js +1 -0
- package/dist/packem_shared/{resolve-explicit-ZZEPWdpP.js → resolve-explicit-CsTmALmE.js} +1 -1
- package/dist/packem_shared/run-D-uVGHQ4.js +10 -0
- package/dist/packem_shared/{s1ngularity-R-zLjQjp.js → s1ngularity-BRk_GMUj.js} +1 -1
- package/dist/packem_shared/{scan-progress-5uTRdC1G.js → scan-progress-DRIGQRMr.js} +1 -1
- package/dist/packem_shared/{typosquats-Cdsnf6aN.js → typosquats-CSkIFgF5.js} +1 -1
- package/dist/packem_shared/{vis-user-error-DJvfOpBX.js → vis-user-error-YIyfYNBK.js} +1 -1
- package/dist/release/core/changelog/index.d.ts +274 -31
- package/dist/release/core/changelog/index.js +1 -1
- package/dist/release/plugin-sdk.d.ts +2 -2
- package/dist/release/types.d.ts +44 -2
- package/index.js +52 -52
- package/package.json +11 -11
- package/schemas/vis-config.schema.json +19 -1
- package/schemas/vis-release-config.schema.json +19 -1
- package/dist/packem_shared/docker-Bex05Qcn.js +0 -59
- package/dist/packem_shared/index.server-BAjDJSEu.js +0 -2
- package/dist/packem_shared/main-BP-w-K-6.js +0 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import{createRequire as Xs}from"node:module";import{e as Le,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 Ze 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(V){throw new Ze(`${g}: parse failed — ${V.message}`)}const h=V=>V.packages?Object.keys(V.packages).length:0;let e;for(const V of s){const[ne]=V.errors;if(ne)throw new Ze(`${g}: parse failed — ${ne.message}`);const M=V.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 Ze(`${g}: top-level value is not an object`);const d=e.importers??{},w=ht(e.packages),m=ht(e.snapshots),A=new Set(["."]);for(const V of a.closure)A.add(V.relativeRoot===""?".":V.relativeRoot);const x={};for(const[V,ne]of Object.entries(d))A.has(V)&&(x[V]=ne);const Y=new Set,y=new Set,v=[];for(const V of Object.values(x))for(const ne of ao(V))v.push(ne);for(;v.length>0;){const{name:V,version:ne}=v.shift(),M=co(V,ne);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 Se=e.snapshots?.[ve];if(Se)for(const xe of pt(Se))v.push(xe)}const ge=w.get(le)??w.get(M)??[];for(const ve of ge){if(Y.has(ve))continue;Y.add(ve);const Se=e.packages?.[ve];if(Se&&!e.snapshots)for(const xe of pt(Se))v.push(xe)}}const $={lockfileVersion:e.lockfileVersion};for(const V of["settings","overrides","patchedDependencies","catalogs"])e[V]!==void 0&&($[V]=e[V]);if($.importers=x,e.packages){const V={};for(const ne of Object.keys(e.packages))Y.has(ne)&&(V[ne]=e.packages[ne]);$.packages=V}if(e.snapshots){const V={};for(const ne of Object.keys(e.snapshots))y.has(ne)&&(V[ne]=e.snapshots[ne]);$.snapshots=V}const P=Object.keys(e.packages??{}).length,ie=Object.keys($.packages??{}).length,oe=P-ie,R=Object.keys(d).length-Object.keys(x).length;return{content:oo($,{lineWidth:0}),message:`${g}: kept ${ie}/${P} packages and ${Object.keys(x).length} importers (dropped ${oe} packages, ${R} 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],w=a[e+1];if(s){d===`
|
|
2
|
+
`&&(s=!1,g+=d);continue}if(h){d==="*"&&w==="/"&&(h=!1,e+=1);continue}if(C){if(d==="\\"){g+=d,w!==void 0&&(g+=w,e+=1);continue}d==='"'&&(C=!1),g+=d;continue}if(d==='"'){C=!0,g+=d;continue}if(d==="/"&&w==="/"){s=!0,e+=1;continue}if(d==="/"&&w==="*"){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(P){throw new Ze(`bun.lock: parse failed — ${P.message}`)}if(!C||typeof C!="object")throw new Ze("bun.lock: top-level value is not an object");const s=C.workspaces??{},h=C.packages??{},e=new Set([""]);for(const P of a.closure)e.add(P.relativeRoot===""?"":P.relativeRoot);const d={},w=[];for(const[P,ie]of Object.entries(s))e.has(P)&&(d[P]=ie,w.push(...ho(ie)));const m=new Set;for(const{name:P}of w)m.add(P);const A=[...m];for(;A.length>0;){const P=A.shift();for(const ie of Object.keys(h)){if(ie.split("/")[0]!==P&&ie!==P)continue;const R=go(h[ie]);for(const V of mo(R))m.has(V)||(m.add(V),A.push(V))}}const x={};for(const[P,ie]of Object.entries(h)){const oe=P.split("/")[0];(m.has(oe)||m.has(P))&&(x[P]=ie)}const Y={...C,packages:x,workspaces:d},y=Object.keys(h).length,v=Object.keys(x).length,$=y-v;return{content:`${JSON.stringify(Y,null,2)}
|
|
3
|
+
`,message:`bun.lock: kept ${v}/${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 Ze(`${g}: parse failed — ${$.message}`)}if(!s||typeof s!="object")throw new Ze(`${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,w=[];for(const $ of Object.keys(h))e.has($)&&(d.add($),w.push($));for(const[$,P]of Object.entries(h))P.link===!0&&typeof P.resolved=="string"&&e.has(P.resolved)&&d.add($);for(;w.length>0;){const $=w.shift(),P=h[$];if(P)for(const ie of vo(P)){const oe=$o(h,$,ie);if(!oe||d.has(oe))continue;d.add(oe);const R=h[oe];R.link===!0&&typeof R.resolved=="string"&&h[R.resolved]!==void 0&&!d.has(R.resolved)?(d.add(R.resolved),w.push(R.resolved)):w.push(oe)}}const m={};for(const $ of Object.keys(h))d.has($)&&(m[$]=h[$]);const A=m[""];A&&Array.isArray(A.workspaces)&&(A.workspaces=A.workspaces.filter($=>{if(typeof $!="string")return!1;const P=$.replace(/\/?\*+$/,"").replace(/\/$/,"");if(P===""||P==="*")return!0;for(const ie of e)if(ie===$||ie===P||ie.startsWith(`${P}/`))return!0;return!1}));const x={...s,packages:m};delete x.dependencies;const Y=Object.keys(h).length,y=Object.keys(m).length,v=Y-y;return{content:`${JSON.stringify(x,null,2)}
|
|
4
|
+
`,message:`${g}: kept ${y}/${Y} entries (dropped ${v})`,status:"pruned"}};var Qn={},Fe={},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'"'+w(y.text)+'"'},class:function(y){var v="",$;for($=0;$<y.parts.length;$++)v+=y.parts[$]instanceof Array?m(y.parts[$][0])+"-"+m(y.parts[$][1]):m(y.parts[$]);return"["+(y.inverted?"^":"")+v+"]"},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 w(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(v){return"\\x0"+d(v)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(v){return"\\x"+d(v)})}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(v){return"\\x0"+d(v)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(v){return"\\x"+d(v)})}function A(y){return e[y.type](y)}function x(y){var v=new Array(y.length),$,P;for($=0;$<y.length;$++)v[$]=A(y[$]);if(v.sort(),v.length>0){for($=1,P=1;$<v.length;$++)v[$-1]!==v[$]&&(v[P]=v[$],P++);v.length=P}switch(v.length){case 1:return v[0];case 2:return v[0]+" or "+v[1];default:return v.slice(0,-1).join(", ")+", or "+v[v.length-1]}}function Y(y){return y?'"'+w(y)+'"':"end of input"}return"Expected "+x(s)+" but "+Y(h)+" found."};function C(s,h){h=h!==void 0?h:{};var e={},d={Start:Vi},w=Vi,m=function(r){return r||[]},A=function(r,t,o){return[{command:r,type:t}].concat(o||[])},x=function(r,t){return[{command:r,type:t||";"}]},Y=function(r){return r},y=";",v=ce(";",!1),$="&",P=ce("&",!1),ie=function(r,t){return t?{chain:r,then:t}:{chain:r}},oe=function(r,t){return{type:r,line:t}},R="&&",V=ce("&&",!1),ne="||",M=ce("||",!1),le=function(r,t){return t?{...r,then:t}:r},we=function(r,t){return{type:r,chain:t}},ge="|&",ve=ce("|&",!1),Se="|",xe=ce("|",!1),je="=",Be=ce("=",!1),$e=function(r,t){return{name:r,args:[t]}},Ne=function(r){return{name:r,args:[]}},Qe="(",Ee=ce("(",!1),re=")",Ie=ce(")",!1),De=function(r,t){return{type:"subshell",subshell:r,args:t}},Oe="{",Pe=ce("{",!1),_e="}",B=ce("}",!1),G=function(r,t){return{type:"group",group:r,args:t}},X=function(r,t){return{type:"command",args:t,envs:r}},me=function(r){return{type:"envs",envs:r}},qe=function(r){return r},ze=function(r){return r},Me=/^[0-9]/,Ye=We([["0","9"]],!1,!1),er=function(r,t,o){return{type:"redirection",subtype:t,fd:r!==null?parseInt(r):null,args:[o]}},or=">>",hr=ce(">>",!1),fr=">&",lr=ce(">&",!1),Cr=">",gr=ce(">",!1),Ke="<<<",rr=ce("<<<",!1),Ge="<&",dr=ce("<&",!1),mr="<",yr=ce("<",!1),Ue=function(r){return{type:"argument",segments:[].concat(...r)}},n=function(r){return r},k="$'",j=ce("$'",!1),J="'",l=ce("'",!1),b=function(r){return[{type:"text",text:r}]},E='""',T=ce('""',!1),O=function(){return{type:"text",text:""}},q='"',U=ce('"',!1),N=function(r){return r},Z=function(r){return{type:"arithmetic",arithmetic:r,quoted:!0}},Q=function(r){return{type:"shell",shell:r,quoted:!0}},ae=function(r){return{type:"variable",...r,quoted:!0}},de=function(r){return{type:"text",text:r}},se=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=We(["'"],!0,!1),$r=function(r){return r.join("")},sn=/^[^$"]/,on=We(["$",'"'],!0,!1),Kr=`\\
|
|
5
|
+
`,xn=ce(`\\
|
|
6
|
+
`,!1),_n=function(){return""},vr="\\",Ar=ce("\\",!1),On=/^[\\$"`]/,fn=We(["\\","$",'"',"`"],!1,!1),Xe=function(r){return r},Ur="\\a",Tn=ce("\\a",!1),Rn=function(){return"a"},ln="\\b",jn=ce("\\b",!1),Fn=function(){return"\b"},u=/^[Ee]/,he=We(["E","e"],!1,!1),Lr=function(){return"\x1B"},He="\\f",Hr=ce("\\f",!1),ee=function(){return"\f"},Sr="\\n",cn=ce("\\n",!1),Ae=function(){return`
|
|
7
|
+
`},nr="\\r",Ln=ce("\\r",!1),In=function(){return"\r"},Er="\\t",an=ce("\\t",!1),un=function(){return" "},te="\\v",Nn=ce("\\v",!1),pn=function(){return"\v"},Pn=/^[\\'"?]/,hn=We(["\\","'",'"',"?"],!1,!1),Ir=function(r){return String.fromCharCode(parseInt(r,16))},Wr="\\x",Nr=ce("\\x",!1),wr="\\u",Mn=ce("\\u",!1),Vr="\\U",gn=ce("\\U",!1),Dn=function(r){return String.fromCodePoint(parseInt(r,16))},kr=/^[0-7]/,qn=We([["0","7"]],!1,!1),Yn=/^[0-9a-fA-f]/,dn=We([["0","9"],["a","f"],["A","f"]],!1,!1),ir=Rs(),xr="{}",mn=ce("{}",!1),_r=function(){return"{}"},Pr="-",Or=ce("-",!1),cr="+",be=ce("+",!1),ar=".",ur=ce(".",!1),yn=function(r,t,o){return{type:"number",value:(r==="-"?-1:1)*parseFloat(t.join("")+"."+o.join(""))}},Mr=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}},_=function(r){return r},K="*",D=ce("*",!1),z="/",ue=ce("/",!1),ye=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},tr="${",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},Mi=/^[a-zA-Z0-9_]/,Di=We([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),qi=function(){return Ts()},Yi=/^[$@*?#a-zA-Z0-9_\-]/,Bi=We(["$","@","*","?","#",["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),ks=/^[()}<>$|&; \t"']/,xs=We(["(",")","}","<",">","$","|","&",";"," "," ",'"',"'"],!1,!1),_s=/^[<>&; \t"']/,Os=We(["<",">","&",";"," "," ",'"',"'"],!1,!1),Ki=/^[ \t]/,Ui=We([" "," "],!1,!1),i=0,W=0,$n=[{line:1,column:1}],sr=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+'".');w=d[h.startRule]}function Ts(){return s.substring(W,i)}function ce(r,t){return{type:"literal",text:r,ignoreCase:t}}function We(r,t,o){return{type:"class",parts:r,inverted:t,ignoreCase:o}}function Rs(){return{type:"any"}}function js(){return{type:"end"}}function Hi(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=Hi(r),c=Hi(t);return{start:{offset:r,line:o.line,column:o.column},end:{offset:t,line:c.line,column:c.column}}}function I(r){i<sr||(i>sr&&(sr=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=H();o!==e;)t.push(o),o=H();return t!==e?(o=Jr(),o===e&&(o=null),o!==e?(W=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=Kn(),t!==e){for(o=[],c=H();c!==e;)o.push(c),c=H();o!==e?(c=Gi(),c!==e?(S=Ls(),S===e&&(S=null),S!==e?(W=r,t=A(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=Kn(),t!==e){for(o=[],c=H();c!==e;)o.push(c),c=H();o!==e?(c=Gi(),c===e&&(c=null),c!==e?(W=r,t=x(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=H();o!==e;)t.push(o),o=H();if(t!==e)if(o=Jr(),o!==e){for(c=[],S=H();S!==e;)c.push(S),S=H();c!==e?(W=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&&I(v)),r===e&&(s.charCodeAt(i)===38?(r=$,i++):(r=e,F===0&&I(P))),r}function Kn(){var r,t,o;return r=i,t=Ji(),t!==e?(o=Is(),o===e&&(o=null),o!==e?(W=r,t=ie(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=H();o!==e;)t.push(o),o=H();if(t!==e)if(o=Ns(),o!==e){for(c=[],S=H();S!==e;)c.push(S),S=H();if(c!==e)if(S=Kn(),S!==e){for(L=[],fe=H();fe!==e;)L.push(fe),fe=H();L!==e?(W=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)===R?(r=R,i+=2):(r=e,F===0&&I(V)),r===e&&(s.substr(i,2)===ne?(r=ne,i+=2):(r=e,F===0&&I(M))),r}function Ji(){var r,t,o;return r=i,t=Ds(),t!==e?(o=Ps(),o===e&&(o=null),o!==e?(W=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=H();o!==e;)t.push(o),o=H();if(t!==e)if(o=Ms(),o!==e){for(c=[],S=H();S!==e;)c.push(S),S=H();if(c!==e)if(S=Ji(),S!==e){for(L=[],fe=H();fe!==e;)L.push(fe),fe=H();L!==e?(W=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 Ms(){var r;return s.substr(i,2)===ge?(r=ge,i+=2):(r=e,F===0&&I(ve)),r===e&&(s.charCodeAt(i)===124?(r=Se,i++):(r=e,F===0&&I(xe))),r}function An(){var r,t,o,c,S,L;if(r=i,t=ft(),t!==e)if(s.charCodeAt(i)===61?(o=je,i++):(o=e,F===0&&I(Be)),o!==e)if(c=Xi(),c!==e){for(S=[],L=H();L!==e;)S.push(L),L=H();S!==e?(W=r,t=$e(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=je,i++):(o=e,F===0&&I(Be)),o!==e){for(c=[],S=H();S!==e;)c.push(S),S=H();c!==e?(W=r,t=Ne(t),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e;return r}function Ds(){var r,t,o,c,S,L,fe,pe,ke,Te,Je;for(r=i,t=[],o=H();o!==e;)t.push(o),o=H();if(t!==e)if(s.charCodeAt(i)===40?(o=Qe,i++):(o=e,F===0&&I(Ee)),o!==e){for(c=[],S=H();S!==e;)c.push(S),S=H();if(c!==e)if(S=Jr(),S!==e){for(L=[],fe=H();fe!==e;)L.push(fe),fe=H();if(L!==e)if(s.charCodeAt(i)===41?(fe=re,i++):(fe=e,F===0&&I(Ie)),fe!==e){for(pe=[],ke=H();ke!==e;)pe.push(ke),ke=H();if(pe!==e){for(ke=[],Te=Qr();Te!==e;)ke.push(Te),Te=Qr();if(ke!==e){for(Te=[],Je=H();Je!==e;)Te.push(Je),Je=H();Te!==e?(W=r,t=De(S,ke),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=H();o!==e;)t.push(o),o=H();if(t!==e)if(s.charCodeAt(i)===123?(o=Oe,i++):(o=e,F===0&&I(Pe)),o!==e){for(c=[],S=H();S!==e;)c.push(S),S=H();if(c!==e)if(S=Jr(),S!==e){for(L=[],fe=H();fe!==e;)L.push(fe),fe=H();if(L!==e)if(s.charCodeAt(i)===125?(fe=_e,i++):(fe=e,F===0&&I(B)),fe!==e){for(pe=[],ke=H();ke!==e;)pe.push(ke),ke=H();if(pe!==e){for(ke=[],Te=Qr();Te!==e;)ke.push(Te),Te=Qr();if(ke!==e){for(Te=[],Je=H();Je!==e;)Te.push(Je),Je=H();Te!==e?(W=r,t=G(S,ke),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=H();o!==e;)t.push(o),o=H();if(t!==e){for(o=[],c=An();c!==e;)o.push(c),c=An();if(o!==e){for(c=[],S=H();S!==e;)c.push(S),S=H();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=H();fe!==e;)L.push(fe),fe=H();L!==e?(W=r,t=X(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=H();o!==e;)t.push(o),o=H();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=H();S!==e;)c.push(S),S=H();c!==e?(W=r,t=me(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=H();o!==e;)t.push(o),o=H();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=H();S!==e;)c.push(S),S=H();c!==e?(W=r,t=qe(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=H();o!==e;)t.push(o),o=H();if(t!==e?(o=Qr(),o!==e?(W=r,t=ze(o),r=t):(i=r,r=e)):(i=r,r=e),r===e){for(r=i,t=[],o=H();o!==e;)t.push(o),o=H();t!==e?(o=wn(),o!==e?(W=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=H();o!==e;)t.push(o),o=H();return t!==e?(Me.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&I(Ye)),o===e&&(o=null),o!==e?(c=qs(),c!==e?(S=wn(),S!==e?(W=r,t=er(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)===or?(r=or,i+=2):(r=e,F===0&&I(hr)),r===e&&(s.substr(i,2)===fr?(r=fr,i+=2):(r=e,F===0&&I(lr)),r===e&&(s.charCodeAt(i)===62?(r=Cr,i++):(r=e,F===0&&I(gr)),r===e&&(s.substr(i,3)===Ke?(r=Ke,i+=3):(r=e,F===0&&I(rr)),r===e&&(s.substr(i,2)===Ge?(r=Ge,i+=2):(r=e,F===0&&I(dr)),r===e&&(s.charCodeAt(i)===60?(r=mr,i++):(r=e,F===0&&I(yr))))))),r}function wn(){var r,t,o;for(r=i,t=[],o=H();o!==e;)t.push(o),o=H();return t!==e?(o=Xi(),o!==e?(W=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&&(W=r,t=Ue(t)),r=t,r}function Zi(){var r,t;return r=i,t=Ys(),t!==e&&(W=r,t=n(t)),r=t,r===e&&(r=i,t=Bs(),t!==e&&(W=r,t=n(t)),r=t,r===e&&(r=i,t=Ks(),t!==e&&(W=r,t=n(t)),r=t,r===e&&(r=i,t=Us(),t!==e&&(W=r,t=n(t)),r=t))),r}function Ys(){var r,t,o,c;return r=i,s.substr(i,2)===k?(t=k,i+=2):(t=e,F===0&&I(j)),t!==e?(o=Vs(),o!==e?(s.charCodeAt(i)===39?(c=J,i++):(c=e,F===0&&I(l)),c!==e?(W=r,t=b(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=J,i++):(t=e,F===0&&I(l)),t!==e?(o=Hs(),o!==e?(s.charCodeAt(i)===39?(c=J,i++):(c=e,F===0&&I(l)),c!==e?(W=r,t=b(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r}function Ks(){var r,t,o,c;if(r=i,s.substr(i,2)===E?(t=E,i+=2):(t=e,F===0&&I(T)),t!==e&&(W=r,t=O()),r=t,r===e)if(r=i,s.charCodeAt(i)===34?(t=q,i++):(t=e,F===0&&I(U)),t!==e){for(o=[],c=et();c!==e;)o.push(c),c=et();o!==e?(s.charCodeAt(i)===34?(c=q,i++):(c=e,F===0&&I(U)),c!==e?(W=r,t=N(o),r=t):(i=r,r=e)):(i=r,r=e)}else i=r,r=e;return r}function Us(){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&&(W=r,t=N(t)),r=t,r}function et(){var r,t;return r=i,t=st(),t!==e&&(W=r,t=Z(t)),r=t,r===e&&(r=i,t=ot(),t!==e&&(W=r,t=Q(t)),r=t,r===e&&(r=i,t=Vn(),t!==e&&(W=r,t=ae(t)),r=t,r===e&&(r=i,t=Ws(),t!==e&&(W=r,t=de(t)),r=t))),r}function rt(){var r,t;return r=i,t=st(),t!==e&&(W=r,t=se(t)),r=t,r===e&&(r=i,t=ot(),t!==e&&(W=r,t=En(t)),r=t,r===e&&(r=i,t=Vn(),t!==e&&(W=r,t=kn(t)),r=t,r===e&&(r=i,t=Qs(),t!==e&&(W=r,t=tn(t)),r=t,r===e&&(r=i,t=Js(),t!==e&&(W=r,t=de(t)),r=t)))),r}function Hs(){var r,t,o;for(r=i,t=[],jr.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&I(Fr));o!==e;)t.push(o),jr.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&I(Fr));return t!==e&&(W=r,t=$r(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&&I(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&&I(on)));else t=e;return t!==e&&(W=r,t=$r(t)),r=t,r}function nt(){var r,t,o;return r=i,s.substr(i,2)===Kr?(t=Kr,i+=2):(t=e,F===0&&I(xn)),t!==e&&(W=r,t=_n()),r=t,r===e&&(r=i,s.charCodeAt(i)===92?(t=vr,i++):(t=e,F===0&&I(Ar)),t!==e?(On.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&I(fn)),o!==e?(W=r,t=Xe(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&&I(Fr)));o!==e;)t.push(o),o=it(),o===e&&(jr.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&I(Fr)));return t!==e&&(W=r,t=$r(t)),r=t,r}function it(){var r,t,o;return r=i,s.substr(i,2)===Ur?(t=Ur,i+=2):(t=e,F===0&&I(Tn)),t!==e&&(W=r,t=Rn()),r=t,r===e&&(r=i,s.substr(i,2)===ln?(t=ln,i+=2):(t=e,F===0&&I(jn)),t!==e&&(W=r,t=Fn()),r=t,r===e&&(r=i,s.charCodeAt(i)===92?(t=vr,i++):(t=e,F===0&&I(Ar)),t!==e?(u.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&I(he)),o!==e?(W=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&&I(Hr)),t!==e&&(W=r,t=ee()),r=t,r===e&&(r=i,s.substr(i,2)===Sr?(t=Sr,i+=2):(t=e,F===0&&I(cn)),t!==e&&(W=r,t=Ae()),r=t,r===e&&(r=i,s.substr(i,2)===nr?(t=nr,i+=2):(t=e,F===0&&I(Ln)),t!==e&&(W=r,t=In()),r=t,r===e&&(r=i,s.substr(i,2)===Er?(t=Er,i+=2):(t=e,F===0&&I(an)),t!==e&&(W=r,t=un()),r=t,r===e&&(r=i,s.substr(i,2)===te?(t=te,i+=2):(t=e,F===0&&I(Nn)),t!==e&&(W=r,t=pn()),r=t,r===e&&(r=i,s.charCodeAt(i)===92?(t=vr,i++):(t=e,F===0&&I(Ar)),t!==e?(Pn.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&I(hn)),o!==e?(W=r,t=Xe(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,ke,Te,Je,Gn;return r=i,s.charCodeAt(i)===92?(t=vr,i++):(t=e,F===0&&I(Ar)),t!==e?(o=Un(),o!==e?(W=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&&I(Nr)),t!==e?(o=i,c=i,S=Un(),S!==e?(L=Ve(),L!==e?(S=[S,L],c=S):(i=c,c=e)):(i=c,c=e),c===e&&(c=Un()),c!==e?o=s.substring(o,i):o=c,o!==e?(W=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&&I(Mn)),t!==e?(o=i,c=i,S=Ve(),S!==e?(L=Ve(),L!==e?(fe=Ve(),fe!==e?(pe=Ve(),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?(W=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&&I(gn)),t!==e?(o=i,c=i,S=Ve(),S!==e?(L=Ve(),L!==e?(fe=Ve(),fe!==e?(pe=Ve(),pe!==e?(ke=Ve(),ke!==e?(Te=Ve(),Te!==e?(Je=Ve(),Je!==e?(Gn=Ve(),Gn!==e?(S=[S,L,fe,pe,ke,Te,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?(W=r,t=Dn(o),r=t):(i=r,r=e)):(i=r,r=e)))),r}function Un(){var r;return kr.test(s.charAt(i))?(r=s.charAt(i),i++):(r=e,F===0&&I(qn)),r}function Ve(){var r;return Yn.test(s.charAt(i))?(r=s.charAt(i),i++):(r=e,F===0&&I(dn)),r}function Js(){var r,t,o,c,S;if(r=i,t=[],o=i,s.charCodeAt(i)===92?(c=vr,i++):(c=e,F===0&&I(Ar)),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&I(ir)),S!==e?(W=o,c=Xe(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&&I(mn)),c!==e&&(W=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&&I(ir)),S!==e?(W=o,c=Xe(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=vr,i++):(c=e,F===0&&I(Ar)),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&I(ir)),S!==e?(W=o,c=Xe(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&&I(mn)),c!==e&&(W=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&&I(ir)),S!==e?(W=o,c=Xe(S),o=c):(i=o,o=e)):(i=o,o=e)));else t=e;return t!==e&&(W=r,t=$r(t)),r=t,r}function Hn(){var r,t,o,c,S,L;if(r=i,s.charCodeAt(i)===45?(t=Pr,i++):(t=e,F===0&&I(Or)),t===e&&(s.charCodeAt(i)===43?(t=cr,i++):(t=e,F===0&&I(be))),t===e&&(t=null),t!==e){if(o=[],Me.test(s.charAt(i))?(c=s.charAt(i),i++):(c=e,F===0&&I(Ye)),c!==e)for(;c!==e;)o.push(c),Me.test(s.charAt(i))?(c=s.charAt(i),i++):(c=e,F===0&&I(Ye));else o=e;if(o!==e)if(s.charCodeAt(i)===46?(c=ar,i++):(c=e,F===0&&I(ur)),c!==e){if(S=[],Me.test(s.charAt(i))?(L=s.charAt(i),i++):(L=e,F===0&&I(Ye)),L!==e)for(;L!==e;)S.push(L),Me.test(s.charAt(i))?(L=s.charAt(i),i++):(L=e,F===0&&I(Ye));else S=e;S!==e?(W=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&&I(Or)),t===e&&(s.charCodeAt(i)===43?(t=cr,i++):(t=e,F===0&&I(be))),t===e&&(t=null),t!==e){if(o=[],Me.test(s.charAt(i))?(c=s.charAt(i),i++):(c=e,F===0&&I(Ye)),c!==e)for(;c!==e;)o.push(c),Me.test(s.charAt(i))?(c=s.charAt(i),i++):(c=e,F===0&&I(Ye));else o=e;o!==e?(W=r,t=Mr(t,o),r=t):(i=r,r=e)}else i=r,r=e;if(r===e&&(r=i,t=Vn(),t!==e&&(W=r,t=f(t)),r=t,r===e&&(r=i,t=Tr(),t!==e&&(W=r,t=p(t)),r=t,r===e)))if(r=i,s.charCodeAt(i)===40?(t=Qe,i++):(t=e,F===0&&I(Ee)),t!==e){for(o=[],c=H();c!==e;)o.push(c),c=H();if(o!==e)if(c=tt(),c!==e){for(S=[],L=H();L!==e;)S.push(L),L=H();S!==e?(s.charCodeAt(i)===41?(L=re,i++):(L=e,F===0&&I(Ie)),L!==e?(W=r,t=_(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=Hn(),t!==e){for(o=[],c=i,S=[],L=H();L!==e;)S.push(L),L=H();if(S!==e)if(s.charCodeAt(i)===42?(L=K,i++):(L=e,F===0&&I(D)),L===e&&(s.charCodeAt(i)===47?(L=z,i++):(L=e,F===0&&I(ue))),L!==e){for(fe=[],pe=H();pe!==e;)fe.push(pe),pe=H();fe!==e?(pe=Hn(),pe!==e?(W=c,S=ye(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=H();L!==e;)S.push(L),L=H();if(S!==e)if(s.charCodeAt(i)===42?(L=K,i++):(L=e,F===0&&I(D)),L===e&&(s.charCodeAt(i)===47?(L=z,i++):(L=e,F===0&&I(ue))),L!==e){for(fe=[],pe=H();pe!==e;)fe.push(pe),pe=H();fe!==e?(pe=Hn(),pe!==e?(W=c,S=ye(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?(W=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=H();L!==e;)S.push(L),L=H();if(S!==e)if(s.charCodeAt(i)===43?(L=cr,i++):(L=e,F===0&&I(be)),L===e&&(s.charCodeAt(i)===45?(L=Pr,i++):(L=e,F===0&&I(Or))),L!==e){for(fe=[],pe=H();pe!==e;)fe.push(pe),pe=H();fe!==e?(pe=Wn(),pe!==e?(W=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=H();L!==e;)S.push(L),L=H();if(S!==e)if(s.charCodeAt(i)===43?(L=cr,i++):(L=e,F===0&&I(be)),L===e&&(s.charCodeAt(i)===45?(L=Pr,i++):(L=e,F===0&&I(Or))),L!==e){for(fe=[],pe=H();pe!==e;)fe.push(pe),pe=H();fe!==e?(pe=Wn(),pe!==e?(W=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?(W=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&&I(cs)),t!==e){for(o=[],c=H();c!==e;)o.push(c),c=H();if(o!==e)if(c=tt(),c!==e){for(S=[],L=H();L!==e;)S.push(L),L=H();S!==e?(s.substr(i,2)===Ri?(L=Ri,i+=2):(L=e,F===0&&I(as)),L!==e?(W=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&&I(ps)),t!==e?(o=Jr(),o!==e?(s.charCodeAt(i)===41?(c=re,i++):(c=e,F===0&&I(Ie)),c!==e?(W=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)===tr?(t=tr,i+=2):(t=e,F===0&&I(Gr)),t!==e?(o=Tr(),o!==e?(s.substr(i,2)===Fi?(c=Fi,i+=2):(c=e,F===0&&I(gs)),c!==e?(S=Qi(),S!==e?(s.charCodeAt(i)===125?(L=_e,i++):(L=e,F===0&&I(B)),L!==e?(W=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)===tr?(t=tr,i+=2):(t=e,F===0&&I(Gr)),t!==e?(o=Tr(),o!==e?(s.substr(i,3)===Li?(c=Li,i+=3):(c=e,F===0&&I(ms)),c!==e?(W=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)===tr?(t=tr,i+=2):(t=e,F===0&&I(Gr)),t!==e?(o=Tr(),o!==e?(s.substr(i,2)===Ii?(c=Ii,i+=2):(c=e,F===0&&I($s)),c!==e?(S=Qi(),S!==e?(s.charCodeAt(i)===125?(L=_e,i++):(L=e,F===0&&I(B)),L!==e?(W=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)===tr?(t=tr,i+=2):(t=e,F===0&&I(Gr)),t!==e?(o=Tr(),o!==e?(s.substr(i,3)===Ni?(c=Ni,i+=3):(c=e,F===0&&I(As)),c!==e?(W=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)===tr?(t=tr,i+=2):(t=e,F===0&&I(Gr)),t!==e?(o=Tr(),o!==e?(s.charCodeAt(i)===125?(c=_e,i++):(c=e,F===0&&I(B)),c!==e?(W=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&&I(Cs)),t!==e?(o=Tr(),o!==e?(W=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?(W=i,o=Ss(t),o?o=void 0:o=e,o!==e?(W=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&&I(ir)),S!==e?(W=o,c=Xe(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&&I(ir)),S!==e?(W=o,c=Xe(S),o=c):(i=o,o=e)):(i=o,o=e);else t=e;return t!==e&&(W=r,t=$r(t)),r=t,r}function ft(){var r,t,o;if(r=i,t=[],Mi.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&I(Di)),o!==e)for(;o!==e;)t.push(o),Mi.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&I(Di));else t=e;return t!==e&&(W=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&&I(Bi)),o!==e)for(;o!==e;)t.push(o),Yi.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&I(Bi));else t=e;return t!==e&&(W=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&&I(xs)),r}function ct(){var r;return _s.test(s.charAt(i))?(r=s.charAt(i),i++):(r=e,F===0&&I(Os)),r}function H(){var r,t;if(r=[],Ki.test(s.charAt(i))?(t=s.charAt(i),i++):(t=e,F===0&&I(Ui)),t!==e)for(;t!==e;)r.push(t),Ki.test(s.charAt(i))?(t=s.charAt(i),i++):(t=e,F===0&&I(Ui));else r=e;return r}if(vn=w(),vn!==e&&i===s.length)return vn;throw vn!==e&&i<s.length&&I(js()),Fs(Bn,sr<s.length?s.charAt(sr):null,sr<s.length?Wi(sr,sr+1):Wi(sr,sr))}return zn={SyntaxError:g,parse:C},zn}var dt;function bo(){if(dt)return Fe;dt=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.parseShell=g,Fe.stringifyShellLine=C,Fe.stringifyShell=C,Fe.stringifyCommandLine=s,Fe.stringifyCommandLineThen=h,Fe.stringifyCommandChain=e,Fe.stringifyCommandChainThen=d,Fe.stringifyCommand=w,Fe.stringifyEnvSegment=m,Fe.stringifyArgument=A,Fe.stringifyRedirectArgument=x,Fe.stringifyValueArgument=Y,Fe.stringifyArgumentSegment=ie,Fe.stringifyArithmeticExpression=oe;const a=wo();function g(R,V={isGlobPattern:()=>!1}){try{return(0,a.parse)(R,V)}catch(ne){throw ne.location&&(ne.message=ne.message.replace(/(\.)?$/,` (line ${ne.location.start.line}, column ${ne.location.start.column})$1`)),ne}}function C(R,{endSemicolon:V=!1}={}){return R.map(({command:ne,type:M},le)=>`${s(ne)}${M===";"?le!==R.length-1||V?";":"":" &"}`).join(" ")}function s(R){return`${e(R.chain)}${R.then?` ${h(R.then)}`:""}`}function h(R){return`${R.type} ${s(R.line)}`}function e(R){return`${w(R)}${R.then?` ${d(R.then)}`:""}`}function d(R){return`${R.type} ${e(R.chain)}`}function w(R){switch(R.type){case"command":return`${R.envs.length>0?`${R.envs.map(V=>m(V)).join(" ")} `:""}${R.args.map(V=>A(V)).join(" ")}`;case"subshell":return`(${C(R.subshell)})${R.args.length>0?` ${R.args.map(V=>x(V)).join(" ")}`:""}`;case"group":return`{ ${C(R.group,{endSemicolon:!0})} }${R.args.length>0?` ${R.args.map(V=>x(V)).join(" ")}`:""}`;case"envs":return R.envs.map(V=>m(V)).join(" ");default:throw new Error(`Unsupported command type: "${R.type}"`)}}function m(R){return`${R.name}=${R.args[0]?Y(R.args[0]):""}`}function A(R){switch(R.type){case"redirection":return x(R);case"argument":return Y(R);default:throw new Error(`Unsupported argument type: "${R.type}"`)}}function x(R){return`${R.subtype} ${R.args.map(V=>Y(V)).join(" ")}`}function Y(R){return R.segments.map(V=>ie(V)).join("")}const y=new Map([["\f","\\f"],[`
|
|
8
|
+
`,"\\n"],["\r","\\r"],[" ","\\t"],["\v","\\v"],["\0","\\0"]]),v=new Map([["\\","\\\\"],["$","\\$"],['"','\\"'],...Array.from(y,([R,V])=>[R,`"$'${V}'"`])]),$=R=>y.get(R)??`\\x${R.charCodeAt(0).toString(16).padStart(2,"0")}`,P=R=>v.get(R)??`"$'${$(R)}'"`;function ie(R){const V=(M,le)=>le?`"${M}"`:M,ne=M=>M===""?"''":M.match(/[()}<>$|&;"'\n\t ]/)?M.match(/['\t\p{C}]/u)?M.match(/'/)?`"${M.replace(/["$\t\p{C}]/u,P)}"`:`$'${M.replace(/[\t\p{C}]/u,$)}'`:`'${M}'`:M;switch(R.type){case"text":return ne(R.text);case"glob":return R.pattern;case"shell":return V(`$(${C(R.shell)})`,R.quoted);case"variable":return V(typeof R.defaultValue>"u"?typeof R.alternativeValue>"u"?`\${${R.name}}`:R.alternativeValue.length===0?`\${${R.name}:+}`:`\${${R.name}:+${R.alternativeValue.map(M=>Y(M)).join(" ")}}`:R.defaultValue.length===0?`\${${R.name}:-}`:`\${${R.name}:-${R.defaultValue.map(M=>Y(M)).join(" ")}}`,R.quoted);case"arithmetic":return`$(( ${oe(R.arithmetic)} ))`;default:throw new Error(`Unsupported argument segment type: "${R.type}"`)}}function oe(R){const V=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}"`)}},ne=(le,we)=>we?`( ${le} )`:le,M=le=>ne(oe(le),!["number","variable"].includes(le.type));switch(R.type){case"number":return String(R.value);case"variable":return R.name;default:return`${M(R.left)} ${V(R.type)} ${M(R.right)}`}}return Fe}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'"'+w(y.text)+'"'},class:function(y){var v="",$;for($=0;$<y.parts.length;$++)v+=y.parts[$]instanceof Array?m(y.parts[$][0])+"-"+m(y.parts[$][1]):m(y.parts[$]);return"["+(y.inverted?"^":"")+v+"]"},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 w(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(v){return"\\x0"+d(v)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(v){return"\\x"+d(v)})}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(v){return"\\x0"+d(v)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(v){return"\\x"+d(v)})}function A(y){return e[y.type](y)}function x(y){var v=new Array(y.length),$,P;for($=0;$<y.length;$++)v[$]=A(y[$]);if(v.sort(),v.length>0){for($=1,P=1;$<v.length;$++)v[$-1]!==v[$]&&(v[P]=v[$],P++);v.length=P}switch(v.length){case 1:return v[0];case 2:return v[0]+" or "+v[1];default:return v.slice(0,-1).join(", ")+", or "+v[v.length-1]}}function Y(y){return y?'"'+w(y)+'"':"end of input"}return"Expected "+x(s)+" but "+Y(h)+" found."};function C(s,h){h=h!==void 0?h:{};var e={},d={resolution:Ie},w=Ie,m="/",A=je("/",!1),x=function(B,G){return{from:B,descriptor:G}},Y=function(B){return{descriptor:B}},y="@",v=je("@",!1),$=function(B,G){return{fullName:B,description:G}},P=function(B){return{fullName:B}},ie=function(){return xe()},oe=/^[^\/@]/,R=Be(["/","@"],!0,!1),V=/^[^\/]/,ne=Be(["/"],!0,!1),M=0,le=0,we=[{line:1,column:1}],ge=0,ve=[],Se;if("startRule"in h){if(!(h.startRule in d))throw new Error(`Can't start parsing from rule "`+h.startRule+'".');w=d[h.startRule]}function xe(){return s.substring(le,M)}function je(B,G){return{type:"literal",text:B,ignoreCase:G}}function Be(B,G,X){return{type:"class",parts:B,inverted:G,ignoreCase:X}}function $e(){return{type:"end"}}function Ne(B){var G=we[B],X;if(G)return G;for(X=B-1;!we[X];)X--;for(G=we[X],G={line:G.line,column:G.column};X<B;)s.charCodeAt(X)===10?(G.line++,G.column=1):G.column++,X++;return we[B]=G,G}function Qe(B,G){var X=Ne(B),me=Ne(G);return{start:{offset:B,line:X.line,column:X.column},end:{offset:G,line:me.line,column:me.column}}}function Ee(B){M<ge||(M>ge&&(ge=M,ve=[]),ve.push(B))}function re(B,G,X){return new g(g.buildMessage(B,G),B,G,X)}function Ie(){var B,G,X,me;return B=M,G=De(),G!==e?(s.charCodeAt(M)===47?(X=m,M++):(X=e,Ee(A)),X!==e?(me=De(),me!==e?(le=B,G=x(G,me),B=G):(M=B,B=e)):(M=B,B=e)):(M=B,B=e),B===e&&(B=M,G=De(),G!==e&&(le=B,G=Y(G)),B=G),B}function De(){var B,G,X,me;return B=M,G=Oe(),G!==e?(s.charCodeAt(M)===64?(X=y,M++):(X=e,Ee(v)),X!==e?(me=_e(),me!==e?(le=B,G=$(G,me),B=G):(M=B,B=e)):(M=B,B=e)):(M=B,B=e),B===e&&(B=M,G=Oe(),G!==e&&(le=B,G=P(G)),B=G),B}function Oe(){var B,G,X,me,qe;return B=M,s.charCodeAt(M)===64?(G=y,M++):(G=e,Ee(v)),G!==e?(X=Pe(),X!==e?(s.charCodeAt(M)===47?(me=m,M++):(me=e,Ee(A)),me!==e?(qe=Pe(),qe!==e?(le=B,G=ie(),B=G):(M=B,B=e)):(M=B,B=e)):(M=B,B=e)):(M=B,B=e),B===e&&(B=M,G=Pe(),G!==e&&(le=B,G=ie()),B=G),B}function Pe(){var B,G,X;if(B=M,G=[],oe.test(s.charAt(M))?(X=s.charAt(M),M++):(X=e,Ee(R)),X!==e)for(;X!==e;)G.push(X),oe.test(s.charAt(M))?(X=s.charAt(M),M++):(X=e,Ee(R));else G=e;return G!==e&&(le=B,G=ie()),B=G,B}function _e(){var B,G,X;if(B=M,G=[],V.test(s.charAt(M))?(X=s.charAt(M),M++):(X=e,Ee(ne)),X!==e)for(;X!==e;)G.push(X),V.test(s.charAt(M))?(X=s.charAt(M),M++):(X=e,Ee(ne));else G=e;return G!==e&&(le=B,G=ie()),B=G,B}if(Se=w(),Se!==e&&M===s.length)return Se;throw Se!==e&&M<s.length&&Ee($e()),re(ve,ge<s.length?s.charAt(ge):null,ge<s.length?Qe(ge,ge+1):Qe(ge,ge))}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={},Ce={},Dr={},br={},$t;function Yr(){if($t)return br;$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,w){var m,A,x,Y;if(w)for(Y=Object.keys(w),m=0,A=Y.length;m<A;m+=1)x=Y[m],d[x]=w[x];return d}function h(d,w){var m="",A;for(A=0;A<w;A+=1)m+=d;return m}function e(d){return d===0&&Number.NEGATIVE_INFINITY===1/d}return br.isNothing=a,br.isObject=g,br.toArray=C,br.repeat=h,br.isNegativeZero=e,br.extend=s,br}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,w,m,A;if(!this.buffer)return null;for(s=s||4,h=h||75,e="",d=this.position;d>0&&`\0\r
|
|
9
|
+
\u2028\u2029`.indexOf(this.buffer.charAt(d-1))===-1;)if(d-=1,this.position-d>h/2-1){e=" ... ",d+=5;break}for(w="",m=this.position;m<this.buffer.length&&`\0\r
|
|
10
|
+
\u2028\u2029`.indexOf(this.buffer.charAt(m))===-1;)if(m+=1,m-this.position>h/2-1){w=" ... ",m-=5;break}return A=this.buffer.slice(d,m),a.repeat(" ",s)+e+A+w+`
|
|
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 Re(){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(w){e[w].forEach(function(m){d[String(m)]=w})}),d}function h(e,d){if(d=d||{},Object.keys(d).forEach(function(w){if(g.indexOf(w)===-1)throw new a('Unknown option "'+w+'" 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(w){return w},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=Re();function s(d,w,m){var A=[];return d.include.forEach(function(x){m=s(x,w,m)}),d[w].forEach(function(x){m.forEach(function(Y,y){Y.tag===x.tag&&Y.kind===x.kind&&A.push(y)}),m.push(x)}),m.filter(function(x,Y){return A.indexOf(Y)===-1})}function h(){var d={scalar:{},sequence:{},mapping:{},fallback:{}},w,m;function A(x){d[x.kind][x.tag]=d.fallback[x.tag]=x}for(w=0,m=arguments.length;w<m;w+=1)arguments[w].forEach(A);return d}function e(d){this.include=d.include||[],this.implicit=d.implicit||[],this.explicit=d.explicit||[],this.implicit.forEach(function(w){if(w.loadKind&&w.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 w,m;switch(arguments.length){case 1:w=e.DEFAULT,m=arguments[0];break;case 2:w=arguments[0],m=arguments[1];break;default:throw new g("Wrong number of arguments for Schema.create function")}if(w=a.toArray(w),m=a.toArray(m),!w.every(function(A){return A instanceof e}))throw new g("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!m.every(function(A){return A instanceof C}))throw new g("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:w,explicit:m})},ni=e,ni}var ii,Ct;function ko(){if(Ct)return ii;Ct=1;var a=Re();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=Re();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=Re();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=Re();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=Re();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=Re();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 A=m.length,x=0,Y=!1,y;if(!A)return!1;if(y=m[x],(y==="-"||y==="+")&&(y=m[++x]),y==="0"){if(x+1===A)return!0;if(y=m[++x],y==="b"){for(x++;x<A;x++)if(y=m[x],y!=="_"){if(y!=="0"&&y!=="1")return!1;Y=!0}return Y&&y!=="_"}if(y==="x"){for(x++;x<A;x++)if(y=m[x],y!=="_"){if(!C(m.charCodeAt(x)))return!1;Y=!0}return Y&&y!=="_"}for(;x<A;x++)if(y=m[x],y!=="_"){if(!s(m.charCodeAt(x)))return!1;Y=!0}return Y&&y!=="_"}if(y==="_")return!1;for(;x<A;x++)if(y=m[x],y!=="_"){if(y===":")break;if(!h(m.charCodeAt(x)))return!1;Y=!0}return!Y||y==="_"?!1:y!==":"?!0:/^(:[0-5]?[0-9])+$/.test(m.slice(x))}function d(m){var A=m,x=1,Y,y,v=[];return A.indexOf("_")!==-1&&(A=A.replace(/_/g,"")),Y=A[0],(Y==="-"||Y==="+")&&(Y==="-"&&(x=-1),A=A.slice(1),Y=A[0]),A==="0"?0:Y==="0"?A[1]==="b"?x*parseInt(A.slice(2),2):A[1]==="x"?x*parseInt(A,16):x*parseInt(A,8):A.indexOf(":")!==-1?(A.split(":").forEach(function($){v.unshift(parseInt($,10))}),A=0,y=1,v.forEach(function($){A+=$*y,y*=60}),x*A):x*parseInt(A,10)}function w(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:w,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=Re(),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 A,x,Y,y;return A=m.replace(/_/g,"").toLowerCase(),x=A[0]==="-"?-1:1,y=[],"+-".indexOf(A[0])>=0&&(A=A.slice(1)),A===".inf"?x===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:A===".nan"?NaN:A.indexOf(":")>=0?(A.split(":").forEach(function(v){y.unshift(parseFloat(v,10))}),A=0,Y=1,y.forEach(function(v){A+=v*Y,Y*=60}),x*A):x*parseFloat(A,10)}var e=/^[-+]?[0-9]+e/;function d(m,A){var x;if(isNaN(m))switch(A){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===m)switch(A){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===m)switch(A){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(a.isNegativeZero(m))return"-0.0";return x=m.toString(10),e.test(x)?x.replace("e",".e"):x}function w(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:w,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=Re(),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 w,m,A,x,Y,y,v,$=0,P=null,ie,oe,R;if(w=g.exec(d),w===null&&(w=C.exec(d)),w===null)throw new Error("Date resolve error");if(m=+w[1],A=+w[2]-1,x=+w[3],!w[4])return new Date(Date.UTC(m,A,x));if(Y=+w[4],y=+w[5],v=+w[6],w[7]){for($=w[7].slice(0,3);$.length<3;)$+="0";$=+$}return w[9]&&(ie=+w[10],oe=+(w[11]||0),P=(ie*60+oe)*6e4,w[9]==="-"&&(P=-P)),R=new Date(Date.UTC(m,A,x,Y,y,v,$)),P&&R.setTime(R.getTime()-P),R}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=Re();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=Re(),s=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
13
|
+
\r`;function h(m){if(m===null)return!1;var A,x,Y=0,y=m.length,v=s;for(x=0;x<y;x++)if(A=v.indexOf(m.charAt(x)),!(A>64)){if(A<0)return!1;Y+=6}return Y%8===0}function e(m){var A,x,Y=m.replace(/[\r\n=]/g,""),y=Y.length,v=s,$=0,P=[];for(A=0;A<y;A++)A%4===0&&A&&(P.push($>>16&255),P.push($>>8&255),P.push($&255)),$=$<<6|v.indexOf(Y.charAt(A));return x=y%4*6,x===0?(P.push($>>16&255),P.push($>>8&255),P.push($&255)):x===18?(P.push($>>10&255),P.push($>>2&255)):x===12&&P.push($>>4&255),a?a.from?a.from(P):new a(P):P}function d(m){var A="",x=0,Y,y,v=m.length,$=s;for(Y=0;Y<v;Y++)Y%3===0&&Y&&(A+=$[x>>18&63],A+=$[x>>12&63],A+=$[x>>6&63],A+=$[x&63]),x=(x<<8)+m[Y];return y=v%3,y===0?(A+=$[x>>18&63],A+=$[x>>12&63],A+=$[x>>6&63],A+=$[x&63]):y===2?(A+=$[x>>10&63],A+=$[x>>4&63],A+=$[x<<2&63],A+=$[64]):y===1&&(A+=$[x>>2&63],A+=$[x<<4&63],A+=$[64],A+=$[64]),A}function w(m){return a&&a.isBuffer(m)}return di=new C("tag:yaml.org,2002:binary",{kind:"scalar",resolve:h,construct:e,predicate:w,represent:d}),di}var mi,Nt;function No(){if(Nt)return mi;Nt=1;var a=Re(),g=Object.prototype.hasOwnProperty,C=Object.prototype.toString;function s(e){if(e===null)return!0;var d={},w,m,A,x,Y,y=e;for(w=0,m=y.length;w<m;w+=1){if(A=y[w],Y=!1,C.call(A)!=="[object Object]")return!1;for(x in A)if(g.call(A,x))if(!Y)Y=!0;else return!1;if(!Y||g.call(d,x))return!1;Object.defineProperty(d,x,{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=Re(),g=Object.prototype.toString;function C(h){if(h===null)return!0;var e,d,w,m,A,x=h;for(A=new Array(x.length),e=0,d=x.length;e<d;e+=1){if(w=x[e],g.call(w)!=="[object Object]"||(m=Object.keys(w),m.length!==1))return!1;A[e]=[m[0],w[m[0]]]}return!0}function s(h){if(h===null)return[];var e,d,w,m,A,x=h;for(A=new Array(x.length),e=0,d=x.length;e<d;e+=1)w=x[e],m=Object.keys(w),A[e]=[m[0],w[m[0]]];return A}return yi=new a("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:C,construct:s}),yi}var $i,Mt;function Mo(){if(Mt)return $i;Mt=1;var a=Re(),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,Dt;function rn(){if(Dt)return vi;Dt=1;var a=Br();return vi=new a({include:[os()],implicit:[Fo(),Lo()],explicit:[Io(),No(),Po(),Mo()]}),vi}var Ai,qt;function Do(){if(qt)return Ai;qt=1;var a=Re();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=Re();function g(e){if(e===null||e.length===0)return!1;var d=e,w=/\/([gim]*)$/.exec(e),m="";return!(d[0]==="/"&&(w&&(m=w[1]),m.length>3||d[d.length-m.length-1]!=="/"))}function C(e){var d=e,w=/\/([gim]*)$/.exec(e),m="";return d[0]==="/"&&(w&&(m=w[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=Re();function s(w){if(w===null)return!1;try{var m="("+w+")",A=a.parse(m,{range:!0});return!(A.type!=="Program"||A.body.length!==1||A.body[0].type!=="ExpressionStatement"||A.body[0].expression.type!=="ArrowFunctionExpression"&&A.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function h(w){var m="("+w+")",A=a.parse(m,{range:!0}),x=[],Y;if(A.type!=="Program"||A.body.length!==1||A.body[0].type!=="ExpressionStatement"||A.body[0].expression.type!=="ArrowFunctionExpression"&&A.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return A.body[0].expression.params.forEach(function(y){x.push(y.name)}),Y=A.body[0].expression.body.range,A.body[0].expression.body.type==="BlockStatement"?new Function(x,m.slice(Y[0]+1,Y[1]-1)):new Function(x,"return "+m.slice(Y[0],Y[1]))}function e(w){return w.toString()}function d(w){return Object.prototype.toString.call(w)==="[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,Kt;function Sn(){if(Kt)return Ci;Kt=1;var a=Br();return Ci=a.DEFAULT=new a({include:[rn()],explicit:[Do(),qo(),Yo()]}),Ci}var Ut;function Bo(){if(Ut)return Dr;Ut=1;var a=Yr(),g=nn(),C=Eo(),s=rn(),h=Sn(),e=Object.prototype.hasOwnProperty,d=1,w=2,m=3,A=4,x=1,Y=2,y=3,v=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,$=/[\x85\u2028\u2029]/,P=/[,\[\]\{\}]/,ie=/^(?:!|!!|![a-z\-]+!)$/i,oe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function R(n){return Object.prototype.toString.call(n)}function V(n){return n===10||n===13}function ne(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 k;return 48<=n&&n<=57?n-48:(k=n|32,97<=k&&k<=102?k-97+10:-1)}function ge(n){return n===120?2:n===117?4:n===85?8:0}function ve(n){return 48<=n&&n<=57?n-48:-1}function Se(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 xe(n){return n<=65535?String.fromCharCode(n):String.fromCharCode((n-65536>>10)+55296,(n-65536&1023)+56320)}function je(n,k,j){k==="__proto__"?Object.defineProperty(n,k,{configurable:!0,enumerable:!0,writable:!0,value:j}):n[k]=j}for(var Be=new Array(256),$e=new Array(256),Ne=0;Ne<256;Ne++)Be[Ne]=Se(Ne)?1:0,$e[Ne]=Se(Ne);function Qe(n,k){this.input=n,this.filename=k.filename||null,this.schema=k.schema||h,this.onWarning=k.onWarning||null,this.legacy=k.legacy||!1,this.json=k.json||!1,this.listener=k.listener||null,this.maxTotalMergeKeys=typeof k.maxTotalMergeKeys=="number"?k.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 Ee(n,k){return new g(k,new C(n.filename,n.input,n.position,n.line,n.position-n.lineStart))}function re(n,k){throw Ee(n,k)}function Ie(n,k){n.onWarning&&n.onWarning.call(null,Ee(n,k))}var De={YAML:function(k,j,J){var l,b,E;k.version!==null&&re(k,"duplication of %YAML directive"),J.length!==1&&re(k,"YAML directive accepts exactly one argument"),l=/^([0-9]+)\.([0-9]+)$/.exec(J[0]),l===null&&re(k,"ill-formed argument of the YAML directive"),b=parseInt(l[1],10),E=parseInt(l[2],10),b!==1&&re(k,"unacceptable YAML version of the document"),k.version=J[0],k.checkLineBreaks=E<2,E!==1&&E!==2&&Ie(k,"unsupported YAML version of the document")},TAG:function(k,j,J){var l,b;J.length!==2&&re(k,"TAG directive accepts exactly two arguments"),l=J[0],b=J[1],ie.test(l)||re(k,"ill-formed tag handle (first argument) of the TAG directive"),e.call(k.tagMap,l)&&re(k,'there is a previously declared suffix for "'+l+'" tag handle'),oe.test(b)||re(k,"ill-formed tag prefix (second argument) of the TAG directive"),k.tagMap[l]=b}};function Oe(n,k,j,J){var l,b,E,T;if(k<j){if(T=n.input.slice(k,j),J)for(l=0,b=T.length;l<b;l+=1)E=T.charCodeAt(l),E===9||32<=E&&E<=1114111||re(n,"expected valid JSON character");else v.test(T)&&re(n,"the stream contains non-printable characters");n.result+=T}}function Pe(n){n.totalMergeKeys+=1,n.maxTotalMergeKeys!==-1&&n.totalMergeKeys>n.maxTotalMergeKeys&&re(n,"merge keys exceeded maxTotalMergeKeys ("+n.maxTotalMergeKeys+")")}function _e(n,k,j,J){var l,b,E,T;for(a.isObject(j)||re(n,"cannot merge mappings; the provided source object is unacceptable"),Pe(n),l=Object.keys(j),E=0,T=l.length;E<T;E+=1)b=l[E],Pe(n),e.call(k,b)||(je(k,b,j[b]),J[b]=!0)}function B(n,k,j,J,l,b,E,T){var O,q;if(Array.isArray(l))for(l=Array.prototype.slice.call(l),O=0,q=l.length;O<q;O+=1)Array.isArray(l[O])&&re(n,"nested arrays are not supported inside keys"),typeof l=="object"&&R(l[O])==="[object Object]"&&(l[O]="[object Object]");if(typeof l=="object"&&R(l)==="[object Object]"&&(l="[object Object]"),l=String(l),k===null&&(k={}),J==="tag:yaml.org,2002:merge")if(Array.isArray(b))for(b.length>100&&re(n,"abnormal merge sequence size"),O=0,q=b.length;O<q;O+=1)_e(n,k,b[O],j);else _e(n,k,b,j);else!n.json&&!e.call(j,l)&&e.call(k,l)&&(n.line=E||n.line,n.position=T||n.position,re(n,"duplicated mapping key")),je(k,l,b),delete j[l];return k}function G(n){var k;k=n.input.charCodeAt(n.position),k===10?n.position++:k===13?(n.position++,n.input.charCodeAt(n.position)===10&&n.position++):re(n,"a line break is expected"),n.line+=1,n.lineStart=n.position}function X(n,k,j){for(var J=0,l=n.input.charCodeAt(n.position);l!==0;){for(;ne(l);)l=n.input.charCodeAt(++n.position);if(k&&l===35)do l=n.input.charCodeAt(++n.position);while(l!==10&&l!==13&&l!==0);if(V(l))for(G(n),l=n.input.charCodeAt(n.position),J++,n.lineIndent=0;l===32;)n.lineIndent++,l=n.input.charCodeAt(++n.position);else break}return j!==-1&&J!==0&&n.lineIndent<j&&Ie(n,"deficient indentation"),J}function me(n){var k=n.position,j;return j=n.input.charCodeAt(k),!!((j===45||j===46)&&j===n.input.charCodeAt(k+1)&&j===n.input.charCodeAt(k+2)&&(k+=3,j=n.input.charCodeAt(k),j===0||M(j)))}function qe(n,k){k===1?n.result+=" ":k>1&&(n.result+=a.repeat(`
|
|
15
|
+
`,k-1))}function ze(n,k,j){var J,l,b,E,T,O,q,U,N=n.kind,Z=n.result,Q;if(Q=n.input.charCodeAt(n.position),M(Q)||le(Q)||Q===35||Q===38||Q===42||Q===33||Q===124||Q===62||Q===39||Q===34||Q===37||Q===64||Q===96||(Q===63||Q===45)&&(l=n.input.charCodeAt(n.position+1),M(l)||j&&le(l)))return!1;for(n.kind="scalar",n.result="",b=E=n.position,T=!1;Q!==0;){if(Q===58){if(l=n.input.charCodeAt(n.position+1),M(l)||j&&le(l))break}else if(Q===35){if(J=n.input.charCodeAt(n.position-1),M(J))break}else{if(n.position===n.lineStart&&me(n)||j&&le(Q))break;if(V(Q))if(O=n.line,q=n.lineStart,U=n.lineIndent,X(n,!1,-1),n.lineIndent>=k){T=!0,Q=n.input.charCodeAt(n.position);continue}else{n.position=E,n.line=O,n.lineStart=q,n.lineIndent=U;break}}T&&(Oe(n,b,E,!1),qe(n,n.line-O),b=E=n.position,T=!1),ne(Q)||(E=n.position+1),Q=n.input.charCodeAt(++n.position)}return Oe(n,b,E,!1),n.result?!0:(n.kind=N,n.result=Z,!1)}function Me(n,k){var j,J,l;if(j=n.input.charCodeAt(n.position),j!==39)return!1;for(n.kind="scalar",n.result="",n.position++,J=l=n.position;(j=n.input.charCodeAt(n.position))!==0;)if(j===39)if(Oe(n,J,n.position,!0),j=n.input.charCodeAt(++n.position),j===39)J=n.position,n.position++,l=n.position;else return!0;else V(j)?(Oe(n,J,l,!0),qe(n,X(n,!1,k)),J=l=n.position):n.position===n.lineStart&&me(n)?re(n,"unexpected end of the document within a single quoted scalar"):(n.position++,l=n.position);re(n,"unexpected end of the stream within a single quoted scalar")}function Ye(n,k){var j,J,l,b,E,T;if(T=n.input.charCodeAt(n.position),T!==34)return!1;for(n.kind="scalar",n.result="",n.position++,j=J=n.position;(T=n.input.charCodeAt(n.position))!==0;){if(T===34)return Oe(n,j,n.position,!0),n.position++,!0;if(T===92){if(Oe(n,j,n.position,!0),T=n.input.charCodeAt(++n.position),V(T))X(n,!1,k);else if(T<256&&Be[T])n.result+=$e[T],n.position++;else if((E=ge(T))>0){for(l=E,b=0;l>0;l--)T=n.input.charCodeAt(++n.position),(E=we(T))>=0?b=(b<<4)+E:re(n,"expected hexadecimal character");n.result+=xe(b),n.position++}else re(n,"unknown escape sequence");j=J=n.position}else V(T)?(Oe(n,j,J,!0),qe(n,X(n,!1,k)),j=J=n.position):n.position===n.lineStart&&me(n)?re(n,"unexpected end of the document within a double quoted scalar"):(n.position++,J=n.position)}re(n,"unexpected end of the stream within a double quoted scalar")}function er(n,k){var j=!0,J,l=n.tag,b,E=n.anchor,T,O,q,U,N,Z={},Q,ae,de,se;if(se=n.input.charCodeAt(n.position),se===91)O=93,N=!1,b=[];else if(se===123)O=125,N=!0,b={};else return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=b),se=n.input.charCodeAt(++n.position);se!==0;){if(X(n,!0,k),se=n.input.charCodeAt(n.position),se===O)return n.position++,n.tag=l,n.anchor=E,n.kind=N?"mapping":"sequence",n.result=b,!0;j||re(n,"missed comma between flow collection entries"),ae=Q=de=null,q=U=!1,se===63&&(T=n.input.charCodeAt(n.position+1),M(T)&&(q=U=!0,n.position++,X(n,!0,k))),J=n.line,Ke(n,k,d,!1,!0),ae=n.tag,Q=n.result,X(n,!0,k),se=n.input.charCodeAt(n.position),(U||n.line===J)&&se===58&&(q=!0,se=n.input.charCodeAt(++n.position),X(n,!0,k),Ke(n,k,d,!1,!0),de=n.result),N?B(n,b,Z,ae,Q,de):q?b.push(B(n,null,Z,ae,Q,de)):b.push(Q),X(n,!0,k),se=n.input.charCodeAt(n.position),se===44?(j=!0,se=n.input.charCodeAt(++n.position)):j=!1}re(n,"unexpected end of the stream within a flow collection")}function or(n,k){var j,J,l=x,b=!1,E=!1,T=k,O=0,q=!1,U,N;if(N=n.input.charCodeAt(n.position),N===124)J=!1;else if(N===62)J=!0;else return!1;for(n.kind="scalar",n.result="";N!==0;)if(N=n.input.charCodeAt(++n.position),N===43||N===45)x===l?l=N===43?y:Y:re(n,"repeat of a chomping mode identifier");else if((U=ve(N))>=0)U===0?re(n,"bad explicit indentation width of a block scalar; it cannot be less than one"):E?re(n,"repeat of an indentation width identifier"):(T=k+U-1,E=!0);else break;if(ne(N)){do N=n.input.charCodeAt(++n.position);while(ne(N));if(N===35)do N=n.input.charCodeAt(++n.position);while(!V(N)&&N!==0)}for(;N!==0;){for(G(n),n.lineIndent=0,N=n.input.charCodeAt(n.position);(!E||n.lineIndent<T)&&N===32;)n.lineIndent++,N=n.input.charCodeAt(++n.position);if(!E&&n.lineIndent>T&&(T=n.lineIndent),V(N)){O++;continue}if(n.lineIndent<T){l===y?n.result+=a.repeat(`
|
|
16
|
+
`,b?1+O:O):l===x&&b&&(n.result+=`
|
|
17
|
+
`);break}for(J?ne(N)?(q=!0,n.result+=a.repeat(`
|
|
18
|
+
`,b?1+O:O)):q?(q=!1,n.result+=a.repeat(`
|
|
19
|
+
`,O+1)):O===0?b&&(n.result+=" "):n.result+=a.repeat(`
|
|
20
|
+
`,O):n.result+=a.repeat(`
|
|
21
|
+
`,b?1+O:O),b=!0,E=!0,O=0,j=n.position;!V(N)&&N!==0;)N=n.input.charCodeAt(++n.position);Oe(n,j,n.position,!1)}return!0}function hr(n,k){var j,J=n.tag,l=n.anchor,b=[],E,T=!1,O;for(n.anchor!==null&&(n.anchorMap[n.anchor]=b),O=n.input.charCodeAt(n.position);O!==0&&!(O!==45||(E=n.input.charCodeAt(n.position+1),!M(E)));){if(T=!0,n.position++,X(n,!0,-1)&&n.lineIndent<=k){b.push(null),O=n.input.charCodeAt(n.position);continue}if(j=n.line,Ke(n,k,m,!1,!0),b.push(n.result),X(n,!0,-1),O=n.input.charCodeAt(n.position),(n.line===j||n.lineIndent>k)&&O!==0)re(n,"bad indentation of a sequence entry");else if(n.lineIndent<k)break}return T?(n.tag=J,n.anchor=l,n.kind="sequence",n.result=b,!0):!1}function fr(n,k,j){var J,l,b,E,T=n.tag,O=n.anchor,q={},U={},N=null,Z=null,Q=null,ae=!1,de=!1,se;for(n.anchor!==null&&(n.anchorMap[n.anchor]=q),se=n.input.charCodeAt(n.position);se!==0;){if(J=n.input.charCodeAt(n.position+1),b=n.line,E=n.position,(se===63||se===58)&&M(J))se===63?(ae&&(B(n,q,U,N,Z,null),N=Z=Q=null),de=!0,ae=!0,l=!0):ae?(ae=!1,l=!0):re(n,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),n.position+=1,se=J;else if(Ke(n,j,w,!1,!0))if(n.line===b){for(se=n.input.charCodeAt(n.position);ne(se);)se=n.input.charCodeAt(++n.position);if(se===58)se=n.input.charCodeAt(++n.position),M(se)||re(n,"a whitespace character is expected after the key-value separator within a block mapping"),ae&&(B(n,q,U,N,Z,null),N=Z=Q=null),de=!0,ae=!1,l=!1,N=n.tag,Z=n.result;else if(de)re(n,"can not read an implicit mapping pair; a colon is missed");else return n.tag=T,n.anchor=O,!0}else if(de)re(n,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.tag=T,n.anchor=O,!0;else break;if((n.line===b||n.lineIndent>k)&&(Ke(n,k,A,!0,l)&&(ae?Z=n.result:Q=n.result),ae||(B(n,q,U,N,Z,Q,b,E),N=Z=Q=null),X(n,!0,-1),se=n.input.charCodeAt(n.position)),n.lineIndent>k&&se!==0)re(n,"bad indentation of a mapping entry");else if(n.lineIndent<k)break}return ae&&B(n,q,U,N,Z,null),de&&(n.tag=T,n.anchor=O,n.kind="mapping",n.result=q),de}function lr(n){var k,j=!1,J=!1,l,b,E;if(E=n.input.charCodeAt(n.position),E!==33)return!1;if(n.tag!==null&&re(n,"duplication of a tag property"),E=n.input.charCodeAt(++n.position),E===60?(j=!0,E=n.input.charCodeAt(++n.position)):E===33?(J=!0,l="!!",E=n.input.charCodeAt(++n.position)):l="!",k=n.position,j){do E=n.input.charCodeAt(++n.position);while(E!==0&&E!==62);n.position<n.length?(b=n.input.slice(k,n.position),E=n.input.charCodeAt(++n.position)):re(n,"unexpected end of the stream within a verbatim tag")}else{for(;E!==0&&!M(E);)E===33&&(J?re(n,"tag suffix cannot contain exclamation marks"):(l=n.input.slice(k-1,n.position+1),ie.test(l)||re(n,"named tag handle cannot contain such characters"),J=!0,k=n.position+1)),E=n.input.charCodeAt(++n.position);b=n.input.slice(k,n.position),P.test(b)&&re(n,"tag suffix cannot contain flow indicator characters")}return b&&!oe.test(b)&&re(n,"tag name cannot contain such characters: "+b),j?n.tag=b:e.call(n.tagMap,l)?n.tag=n.tagMap[l]+b:l==="!"?n.tag="!"+b:l==="!!"?n.tag="tag:yaml.org,2002:"+b:re(n,'undeclared tag handle "'+l+'"'),!0}function Cr(n){var k,j;if(j=n.input.charCodeAt(n.position),j!==38)return!1;for(n.anchor!==null&&re(n,"duplication of an anchor property"),j=n.input.charCodeAt(++n.position),k=n.position;j!==0&&!M(j)&&!le(j);)j=n.input.charCodeAt(++n.position);return n.position===k&&re(n,"name of an anchor node must contain at least one character"),n.anchor=n.input.slice(k,n.position),!0}function gr(n){var k,j,J;if(J=n.input.charCodeAt(n.position),J!==42)return!1;for(J=n.input.charCodeAt(++n.position),k=n.position;J!==0&&!M(J)&&!le(J);)J=n.input.charCodeAt(++n.position);return n.position===k&&re(n,"name of an alias node must contain at least one character"),j=n.input.slice(k,n.position),e.call(n.anchorMap,j)||re(n,'unidentified alias "'+j+'"'),n.result=n.anchorMap[j],X(n,!0,-1),!0}function Ke(n,k,j,J,l){var b,E,T,O=1,q=!1,U=!1,N,Z,Q,ae,de;if(n.listener!==null&&n.listener("open",n),n.tag=null,n.anchor=null,n.kind=null,n.result=null,b=E=T=A===j||m===j,J&&X(n,!0,-1)&&(q=!0,n.lineIndent>k?O=1:n.lineIndent===k?O=0:n.lineIndent<k&&(O=-1)),O===1)for(;lr(n)||Cr(n);)X(n,!0,-1)?(q=!0,T=b,n.lineIndent>k?O=1:n.lineIndent===k?O=0:n.lineIndent<k&&(O=-1)):T=!1;if(T&&(T=q||l),(O===1||A===j)&&(d===j||w===j?ae=k:ae=k+1,de=n.position-n.lineStart,O===1?T&&(hr(n,de)||fr(n,de,ae))||er(n,ae)?U=!0:(E&&or(n,ae)||Me(n,ae)||Ye(n,ae)?U=!0:gr(n)?(U=!0,(n.tag!==null||n.anchor!==null)&&re(n,"alias node should not have any properties")):ze(n,ae,d===j)&&(U=!0,n.tag===null&&(n.tag="?")),n.anchor!==null&&(n.anchorMap[n.anchor]=n.result)):O===0&&(U=T&&hr(n,de))),n.tag!==null&&n.tag!=="!")if(n.tag==="?"){for(n.result!==null&&n.kind!=="scalar"&&re(n,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+n.kind+'"'),N=0,Z=n.implicitTypes.length;N<Z;N+=1)if(Q=n.implicitTypes[N],Q.resolve(n.result)){n.result=Q.construct(n.result),n.tag=Q.tag,n.anchor!==null&&(n.anchorMap[n.anchor]=n.result);break}}else e.call(n.typeMap[n.kind||"fallback"],n.tag)?(Q=n.typeMap[n.kind||"fallback"][n.tag],n.result!==null&&Q.kind!==n.kind&&re(n,"unacceptable node kind for !<"+n.tag+'> tag; it should be "'+Q.kind+'", not "'+n.kind+'"'),Q.resolve(n.result)?(n.result=Q.construct(n.result),n.anchor!==null&&(n.anchorMap[n.anchor]=n.result)):re(n,"cannot resolve a node with !<"+n.tag+"> explicit tag")):re(n,"unknown tag !<"+n.tag+">");return n.listener!==null&&n.listener("close",n),n.tag!==null||n.anchor!==null||U}function rr(n){var k=n.position,j,J,l,b=!1,E;for(n.version=null,n.checkLineBreaks=n.legacy,n.tagMap={},n.anchorMap={};(E=n.input.charCodeAt(n.position))!==0&&(X(n,!0,-1),E=n.input.charCodeAt(n.position),!(n.lineIndent>0||E!==37));){for(b=!0,E=n.input.charCodeAt(++n.position),j=n.position;E!==0&&!M(E);)E=n.input.charCodeAt(++n.position);for(J=n.input.slice(j,n.position),l=[],J.length<1&&re(n,"directive name must not be less than one character in length");E!==0;){for(;ne(E);)E=n.input.charCodeAt(++n.position);if(E===35){do E=n.input.charCodeAt(++n.position);while(E!==0&&!V(E));break}if(V(E))break;for(j=n.position;E!==0&&!M(E);)E=n.input.charCodeAt(++n.position);l.push(n.input.slice(j,n.position))}E!==0&&G(n),e.call(De,J)?De[J](n,J,l):Ie(n,'unknown document directive "'+J+'"')}if(X(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,X(n,!0,-1)):b&&re(n,"directives end mark is expected"),Ke(n,n.lineIndent-1,A,!1,!0),X(n,!0,-1),n.checkLineBreaks&&$.test(n.input.slice(k,n.position))&&Ie(n,"non-ASCII line breaks are interpreted as content"),n.documents.push(n.result),n.position===n.lineStart&&me(n)){n.input.charCodeAt(n.position)===46&&(n.position+=3,X(n,!0,-1));return}if(n.position<n.length-1)re(n,"end of the stream or a document separator is expected");else return}function Ge(n,k){n=String(n),k=k||{},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 j=new Qe(n,k),J=n.indexOf("\0");for(J!==-1&&(j.position=J,re(j,"null byte is not allowed in input")),j.input+="\0";j.input.charCodeAt(j.position)===32;)j.lineIndent+=1,j.position+=1;for(;j.position<j.length-1;)rr(j);return j.documents}function dr(n,k,j){k!==null&&typeof k=="object"&&typeof j>"u"&&(j=k,k=null);var J=Ge(n,j);if(typeof k!="function")return J;for(var l=0,b=J.length;l<b;l+=1)k(J[l])}function mr(n,k){var j=Ge(n,k);if(j.length!==0){if(j.length===1)return j[0];throw new g("expected a single document in the stream, but found more")}}function yr(n,k,j){return typeof k=="object"&&k!==null&&typeof j>"u"&&(j=k,k=null),dr(n,k,a.extend({schema:s},j))}function Ue(n,k){return mr(n,a.extend({schema:s},k))}return Dr.loadAll=dr,Dr.load=mr,Dr.safeLoadAll=yr,Dr.safeLoad=Ue,Dr}var bn={},Ht;function Ko(){if(Ht)return bn;Ht=1;var a=Yr(),g=nn(),C=Sn(),s=rn(),h=Object.prototype.toString,e=Object.prototype.hasOwnProperty,d=9,w=10,m=13,A=32,x=33,Y=34,y=35,v=37,$=38,P=39,ie=42,oe=44,R=45,V=58,ne=61,M=62,le=63,we=64,ge=91,ve=93,Se=96,xe=123,je=124,Be=125,$e={};$e[0]="\\0",$e[7]="\\a",$e[8]="\\b",$e[9]="\\t",$e[10]="\\n",$e[11]="\\v",$e[12]="\\f",$e[13]="\\r",$e[27]="\\e",$e[34]='\\"',$e[92]="\\\\",$e[133]="\\N",$e[160]="\\_",$e[8232]="\\L",$e[8233]="\\P";var Ne=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Qe(l,b){var E,T,O,q,U,N,Z;if(b===null)return{};for(E={},T=Object.keys(b),O=0,q=T.length;O<q;O+=1)U=T[O],N=String(b[U]),U.slice(0,2)==="!!"&&(U="tag:yaml.org,2002:"+U.slice(2)),Z=l.compiledTypeMap.fallback[U],Z&&e.call(Z.styleAliases,N)&&(N=Z.styleAliases[N]),E[U]=N;return E}function Ee(l){var b,E,T;if(b=l.toString(16).toUpperCase(),l<=255)E="x",T=2;else if(l<=65535)E="u",T=4;else if(l<=4294967295)E="U",T=8;else throw new g("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+E+a.repeat("0",T-b.length)+b}function re(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 Ie(l,b){for(var E=a.repeat(" ",b),T=0,O=-1,q="",U,N=l.length;T<N;)O=l.indexOf(`
|
|
23
|
+
`,T),O===-1?(U=l.slice(T),T=N):(U=l.slice(T,O+1),T=O+1),U.length&&U!==`
|
|
24
|
+
`&&(q+=E),q+=U;return q}function De(l,b){return`
|
|
25
|
+
`+a.repeat(" ",l.indent*b)}function Oe(l,b){var E,T,O;for(E=0,T=l.implicitTypes.length;E<T;E+=1)if(O=l.implicitTypes[E],O.resolve(b))return!0;return!1}function Pe(l){return l===A||l===d}function _e(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 B(l){return _e(l)&&!Pe(l)&&l!==65279&&l!==m&&l!==w}function G(l,b){return _e(l)&&l!==65279&&l!==oe&&l!==ge&&l!==ve&&l!==xe&&l!==Be&&l!==V&&(l!==y||b&&B(b))}function X(l){return _e(l)&&l!==65279&&!Pe(l)&&l!==R&&l!==le&&l!==V&&l!==oe&&l!==ge&&l!==ve&&l!==xe&&l!==Be&&l!==y&&l!==$&&l!==ie&&l!==x&&l!==je&&l!==ne&&l!==M&&l!==P&&l!==Y&&l!==v&&l!==we&&l!==Se}function me(l){var b=/^\n* /;return b.test(l)}var qe=1,ze=2,Me=3,Ye=4,er=5;function or(l,b,E,T,O){var q,U,N,Z=!1,Q=!1,ae=T!==-1,de=-1,se=X(l.charCodeAt(0))&&!Pe(l.charCodeAt(l.length-1));if(b)for(q=0;q<l.length;q++){if(U=l.charCodeAt(q),!_e(U))return er;N=q>0?l.charCodeAt(q-1):null,se=se&&G(U,N)}else{for(q=0;q<l.length;q++){if(U=l.charCodeAt(q),U===w)Z=!0,ae&&(Q=Q||q-de-1>T&&l[de+1]!==" ",de=q);else if(!_e(U))return er;N=q>0?l.charCodeAt(q-1):null,se=se&&G(U,N)}Q=Q||ae&&q-de-1>T&&l[de+1]!==" "}return!Z&&!Q?se&&!O(l)?qe:ze:E>9&&me(l)?er:Q?Ye:Me}function hr(l,b,E,T){l.dump=(function(){if(b.length===0)return"''";if(!l.noCompatMode&&Ne.indexOf(b)!==-1)return"'"+b+"'";var O=l.indent*Math.max(1,E),q=l.lineWidth===-1?-1:Math.max(Math.min(l.lineWidth,40),l.lineWidth-O),U=T||l.flowLevel>-1&&E>=l.flowLevel;function N(Z){return Oe(l,Z)}switch(or(b,U,l.indent,q,N)){case qe:return b;case ze:return"'"+b.replace(/'/g,"''")+"'";case Me:return"|"+fr(b,l.indent)+lr(Ie(b,O));case Ye:return">"+fr(b,l.indent)+lr(Ie(Cr(b,q),O));case er:return'"'+Ke(b)+'"';default:throw new g("impossible error: invalid scalar style")}})()}function fr(l,b){var E=me(l)?String(b):"",T=l[l.length-1]===`
|
|
26
|
+
`,O=T&&(l[l.length-2]===`
|
|
27
|
+
`||l===`
|
|
28
|
+
`),q=O?"+":T?"":"-";return E+q+`
|
|
29
|
+
`}function lr(l){return l[l.length-1]===`
|
|
30
|
+
`?l.slice(0,-1):l}function Cr(l,b){for(var E=/(\n+)([^\n]*)/g,T=(function(){var Q=l.indexOf(`
|
|
31
|
+
`);return Q=Q!==-1?Q:l.length,E.lastIndex=Q,gr(l.slice(0,Q),b)})(),O=l[0]===`
|
|
32
|
+
`||l[0]===" ",q,U;U=E.exec(l);){var N=U[1],Z=U[2];q=Z[0]===" ",T+=N+(!O&&!q&&Z!==""?`
|
|
33
|
+
`:"")+gr(Z,b),O=q}return T}function gr(l,b){if(l===""||l[0]===" ")return l;for(var E=/ [^ ]/g,T,O=0,q,U=0,N=0,Z="";T=E.exec(l);)N=T.index,N-O>b&&(q=U>O?U:N,Z+=`
|
|
34
|
+
`+l.slice(O,q),O=q+1),U=N;return Z+=`
|
|
35
|
+
`,l.length-O>b&&U>O?Z+=l.slice(O,U)+`
|
|
36
|
+
`+l.slice(U+1):Z+=l.slice(O),Z.slice(1)}function Ke(l){for(var b="",E,T,O,q=0;q<l.length;q++){if(E=l.charCodeAt(q),E>=55296&&E<=56319&&(T=l.charCodeAt(q+1),T>=56320&&T<=57343)){b+=Ee((E-55296)*1024+T-56320+65536),q++;continue}O=$e[E],b+=!O&&_e(E)?l[q]:O||Ee(E)}return b}function rr(l,b,E){var T="",O=l.tag,q,U;for(q=0,U=E.length;q<U;q+=1)Ue(l,b,E[q],!1,!1)&&(q!==0&&(T+=","+(l.condenseFlow?"":" ")),T+=l.dump);l.tag=O,l.dump="["+T+"]"}function Ge(l,b,E,T){var O="",q=l.tag,U,N;for(U=0,N=E.length;U<N;U+=1)Ue(l,b+1,E[U],!0,!0)&&((!T||U!==0)&&(O+=De(l,b)),l.dump&&w===l.dump.charCodeAt(0)?O+="-":O+="- ",O+=l.dump);l.tag=q,l.dump=O||"[]"}function dr(l,b,E){var T="",O=l.tag,q=Object.keys(E),U,N,Z,Q,ae;for(U=0,N=q.length;U<N;U+=1)ae="",U!==0&&(ae+=", "),l.condenseFlow&&(ae+='"'),Z=q[U],Q=E[Z],Ue(l,b,Z,!1,!1)&&(l.dump.length>1024&&(ae+="? "),ae+=l.dump+(l.condenseFlow?'"':"")+":"+(l.condenseFlow?"":" "),Ue(l,b,Q,!1,!1)&&(ae+=l.dump,T+=ae));l.tag=O,l.dump="{"+T+"}"}function mr(l,b,E,T){var O="",q=l.tag,U=Object.keys(E),N,Z,Q,ae,de,se;if(l.sortKeys===!0)U.sort();else if(typeof l.sortKeys=="function")U.sort(l.sortKeys);else if(l.sortKeys)throw new g("sortKeys must be a boolean or a function");for(N=0,Z=U.length;N<Z;N+=1)se="",(!T||N!==0)&&(se+=De(l,b)),Q=U[N],ae=E[Q],Ue(l,b+1,Q,!0,!0,!0)&&(de=l.tag!==null&&l.tag!=="?"||l.dump&&l.dump.length>1024,de&&(l.dump&&w===l.dump.charCodeAt(0)?se+="?":se+="? "),se+=l.dump,de&&(se+=De(l,b)),Ue(l,b+1,ae,!0,de)&&(l.dump&&w===l.dump.charCodeAt(0)?se+=":":se+=": ",se+=l.dump,O+=se));l.tag=q,l.dump=O||"{}"}function yr(l,b,E){var T,O,q,U,N,Z;for(O=E?l.explicitTypes:l.implicitTypes,q=0,U=O.length;q<U;q+=1)if(N=O[q],(N.instanceOf||N.predicate)&&(!N.instanceOf||typeof b=="object"&&b instanceof N.instanceOf)&&(!N.predicate||N.predicate(b))){if(l.tag=E?N.tag:"?",N.represent){if(Z=l.styleMap[N.tag]||N.defaultStyle,h.call(N.represent)==="[object Function]")T=N.represent(b,Z);else if(e.call(N.represent,Z))T=N.represent[Z](b,Z);else throw new g("!<"+N.tag+'> tag resolver accepts not "'+Z+'" style');l.dump=T}return!0}return!1}function Ue(l,b,E,T,O,q){l.tag=null,l.dump=E,yr(l,E,!1)||yr(l,E,!0);var U=h.call(l.dump);T&&(T=l.flowLevel<0||l.flowLevel>b);var N=U==="[object Object]"||U==="[object Array]",Z,Q;if(N&&(Z=l.duplicates.indexOf(E),Q=Z!==-1),(l.tag!==null&&l.tag!=="?"||Q||l.indent!==2&&b>0)&&(O=!1),Q&&l.usedDuplicates[Z])l.dump="*ref_"+Z;else{if(N&&Q&&!l.usedDuplicates[Z]&&(l.usedDuplicates[Z]=!0),U==="[object Object]")T&&Object.keys(l.dump).length!==0?(mr(l,b,l.dump,O),Q&&(l.dump="&ref_"+Z+l.dump)):(dr(l,b,l.dump),Q&&(l.dump="&ref_"+Z+" "+l.dump));else if(U==="[object Array]"){var ae=l.noArrayIndent&&b>0?b-1:b;T&&l.dump.length!==0?(Ge(l,ae,l.dump,O),Q&&(l.dump="&ref_"+Z+l.dump)):(rr(l,ae,l.dump),Q&&(l.dump="&ref_"+Z+" "+l.dump))}else if(U==="[object String]")l.tag!=="?"&&hr(l,l.dump,b,q);else{if(l.skipInvalid)return!1;throw new g("unacceptable kind of an object to dump "+U)}l.tag!==null&&l.tag!=="?"&&(l.dump="!<"+l.tag+"> "+l.dump)}return!0}function n(l,b){var E=[],T=[],O,q;for(k(l,E,T),O=0,q=T.length;O<q;O+=1)b.duplicates.push(E[T[O]]);b.usedDuplicates=new Array(q)}function k(l,b,E){var T,O,q;if(l!==null&&typeof l=="object")if(O=b.indexOf(l),O!==-1)E.indexOf(O)===-1&&E.push(O);else if(b.push(l),Array.isArray(l))for(O=0,q=l.length;O<q;O+=1)k(l[O],b,E);else for(T=Object.keys(l),O=0,q=T.length;O<q;O+=1)k(l[T[O]],b,E)}function j(l,b){b=b||{};var E=new re(b);return E.noRefs||n(l,E),Ue(E,0,l,!0,!0)?E.dump+`
|
|
37
|
+
`:""}function J(l,b){return j(l,a.extend({schema:s},b))}return bn.dump=j,bn.safeDump=J,bn}var Wt;function Uo(){if(Wt)return Ce;Wt=1;var a=Bo(),g=Ko();function C(s){return function(){throw new Error("Function "+s+" is deprecated and cannot be used.")}}return Ce.Type=Re(),Ce.Schema=Br(),Ce.FAILSAFE_SCHEMA=xi(),Ce.JSON_SCHEMA=ss(),Ce.CORE_SCHEMA=os(),Ce.DEFAULT_SAFE_SCHEMA=rn(),Ce.DEFAULT_FULL_SCHEMA=Sn(),Ce.load=a.load,Ce.loadAll=a.loadAll,Ce.safeLoad=a.safeLoad,Ce.safeLoadAll=a.safeLoadAll,Ce.dump=g.dump,Ce.safeDump=g.safeDump,Ce.YAMLException=nn(),Ce.MINIMAL_SCHEMA=xi(),Ce.SAFE_SCHEMA=rn(),Ce.DEFAULT_SCHEMA=Sn(),Ce.scan=C("scan"),Ce.parse=C("parse"),Ce.compose=C("compose"),Ce.addConstructor=C("addConstructor"),Ce}var Si,Vt;function Ho(){if(Vt)return Si;Vt=1;var a=Uo();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'"'+w(y.text)+'"'},class:function(y){var v="",$;for($=0;$<y.parts.length;$++)v+=y.parts[$]instanceof Array?m(y.parts[$][0])+"-"+m(y.parts[$][1]):m(y.parts[$]);return"["+(y.inverted?"^":"")+v+"]"},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 w(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(v){return"\\x0"+d(v)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(v){return"\\x"+d(v)})}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(v){return"\\x0"+d(v)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(v){return"\\x"+d(v)})}function A(y){return e[y.type](y)}function x(y){var v=new Array(y.length),$,P;for($=0;$<y.length;$++)v[$]=A(y[$]);if(v.sort(),v.length>0){for($=1,P=1;$<v.length;$++)v[$-1]!==v[$]&&(v[P]=v[$],P++);v.length=P}switch(v.length){case 1:return v[0];case 2:return v[0]+" or "+v[1];default:return v.slice(0,-1).join(", ")+", or "+v[v.length-1]}}function Y(y){return y?'"'+w(y)+'"':"end of input"}return"Expected "+x(s)+" but "+Y(h)+" found."};function C(s,h){h=h!==void 0?h:{};var e={},d={Start:pn},w=pn,m=function(f){return[].concat(...f)},A="-",x=Ae("-",!1),Y=function(f){return f},y=function(f){return Object.assign({},...f)},v="#",$=Ae("#",!1),P=Ln(),ie=function(){return{}},oe=":",R=Ae(":",!1),V=function(f,p){return{[f]:p}},ne=",",M=Ae(",",!1),le=function(f,p){return p},we=function(f,p,_){return Object.assign({},...[f].concat(p).map(K=>({[K]:_})))},ge=function(f){return f},ve=function(f){return f},Se=Er("correct indentation"),xe=" ",je=Ae(" ",!1),Be=function(f){return f.length===Mr*yn},$e=function(f){return f.length===(Mr+1)*yn},Ne=function(){return Mr++,!0},Qe=function(){return Mr--,!0},Ee=function(){return cn()},re=Er("pseudostring"),Ie=/^[^\r\n\t ?:,\][{}#&*!|>'"%@`\-]/,De=nr(["\r",`
|
|
38
|
+
`," "," ","?",":",",","]","[","{","}","#","&","*","!","|",">","'",'"',"%","@","`","-"],!0,!1),Oe=/^[^\r\n\t ,\][{}:#"']/,Pe=nr(["\r",`
|
|
39
|
+
`," "," ",",","]","[","{","}",":","#",'"',"'"],!0,!1),_e=function(){return cn().replace(/^ *| *$/g,"")},B="--",G=Ae("--",!1),X=/^[a-zA-Z\/0-9]/,me=nr([["a","z"],["A","Z"],"/",["0","9"]],!1,!1),qe=/^[^\r\n\t :,]/,ze=nr(["\r",`
|
|
40
|
+
`," "," ",":",","],!0,!1),Me="null",Ye=Ae("null",!1),er=function(){return null},or="true",hr=Ae("true",!1),fr=function(){return!0},lr="false",Cr=Ae("false",!1),gr=function(){return!1},Ke=Er("string"),rr='"',Ge=Ae('"',!1),dr=function(){return""},mr=function(f){return f},yr=function(f){return f.join("")},Ue=/^[^"\\\0-\x1F\x7F]/,n=nr(['"',"\\",["\0",""],""],!0,!1),k='\\"',j=Ae('\\"',!1),J=function(){return'"'},l="\\\\",b=Ae("\\\\",!1),E=function(){return"\\"},T="\\/",O=Ae("\\/",!1),q=function(){return"/"},U="\\b",N=Ae("\\b",!1),Z=function(){return"\b"},Q="\\f",ae=Ae("\\f",!1),de=function(){return"\f"},se="\\n",En=Ae("\\n",!1),kn=function(){return`
|
|
41
|
+
`},tn="\\r",jr=Ae("\\r",!1),Fr=function(){return"\r"},$r="\\t",sn=Ae("\\t",!1),on=function(){return" "},Kr="\\u",xn=Ae("\\u",!1),_n=function(f,p,_,K){return String.fromCharCode(parseInt(`0x${f}${p}${_}${K}`))},vr=/^[0-9a-fA-F]/,Ar=nr([["0","9"],["a","f"],["A","F"]],!1,!1),On=Er("blank space"),fn=/^[ \t]/,Xe=nr([" "," "],!1,!1),Ur=`\r
|
|
42
|
+
`,Tn=Ae(`\r
|
|
43
|
+
`,!1),Rn=`
|
|
44
|
+
`,ln=Ae(`
|
|
45
|
+
`,!1),jn="\r",Fn=Ae("\r",!1),u=0,he=0,Lr=[{line:1,column:1}],He=0,Hr=[],ee=0,Sr;if("startRule"in h){if(!(h.startRule in d))throw new Error(`Can't start parsing from rule "`+h.startRule+'".');w=d[h.startRule]}function cn(){return s.substring(he,u)}function Ae(f,p){return{type:"literal",text:f,ignoreCase:p}}function nr(f,p,_){return{type:"class",parts:f,inverted:p,ignoreCase:_}}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],_;if(p)return p;for(_=f-1;!Lr[_];)_--;for(p=Lr[_],p={line:p.line,column:p.column};_<f;)s.charCodeAt(_)===10?(p.line++,p.column=1):p.column++,_++;return Lr[f]=p,p}function un(f,p){var _=an(f),K=an(p);return{start:{offset:f,line:_.line,column:_.column},end:{offset:p,line:K.line,column:K.column}}}function te(f){u<He||(u>He&&(He=u,Hr=[]),Hr.push(f))}function Nn(f,p,_){return new g(g.buildMessage(f,p),f,p,_)}function pn(){var f;return f=Ir(),f}function Pn(){var f,p,_;for(f=u,p=[],_=hn();_!==e;)p.push(_),_=hn();return p!==e&&(he=f,p=m(p)),f=p,f}function hn(){var f,p,_,K,D;return f=u,p=wr(),p!==e?(s.charCodeAt(u)===45?(_=A,u++):(_=e,ee===0&&te(x)),_!==e?(K=be(),K!==e?(D=Nr(),D!==e?(he=f,p=Y(D),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e),f}function Ir(){var f,p,_;for(f=u,p=[],_=Wr();_!==e;)p.push(_),_=Wr();return p!==e&&(he=f,p=y(p)),f=p,f}function Wr(){var f,p,_,K,D,z,ue,ye,pr;if(f=u,p=be(),p===e&&(p=null),p!==e){if(_=u,s.charCodeAt(u)===35?(K=v,u++):(K=e,ee===0&&te($)),K!==e){if(D=[],z=u,ue=u,ee++,ye=ur(),ee--,ye===e?ue=void 0:(u=ue,ue=e),ue!==e?(s.length>u?(ye=s.charAt(u),u++):(ye=e,ee===0&&te(P)),ye!==e?(ue=[ue,ye],z=ue):(u=z,z=e)):(u=z,z=e),z!==e)for(;z!==e;)D.push(z),z=u,ue=u,ee++,ye=ur(),ee--,ye===e?ue=void 0:(u=ue,ue=e),ue!==e?(s.length>u?(ye=s.charAt(u),u++):(ye=e,ee===0&&te(P)),ye!==e?(ue=[ue,ye],z=ue):(u=z,z=e)):(u=z,z=e);else D=e;D!==e?(K=[K,D],_=K):(u=_,_=e)}else u=_,_=e;if(_===e&&(_=null),_!==e){if(K=[],D=ar(),D!==e)for(;D!==e;)K.push(D),D=ar();else K=e;K!==e?(he=f,p=ie(),f=p):(u=f,f=e)}else u=f,f=e}else u=f,f=e;if(f===e&&(f=u,p=wr(),p!==e?(_=Dn(),_!==e?(K=be(),K===e&&(K=null),K!==e?(s.charCodeAt(u)===58?(D=oe,u++):(D=e,ee===0&&te(R)),D!==e?(z=be(),z===e&&(z=null),z!==e?(ue=Nr(),ue!==e?(he=f,p=V(_,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=wr(),p!==e?(_=kr(),_!==e?(K=be(),K===e&&(K=null),K!==e?(s.charCodeAt(u)===58?(D=oe,u++):(D=e,ee===0&&te(R)),D!==e?(z=be(),z===e&&(z=null),z!==e?(ue=Nr(),ue!==e?(he=f,p=V(_,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=wr(),p!==e)if(_=kr(),_!==e)if(K=be(),K!==e)if(D=Yn(),D!==e){if(z=[],ue=ar(),ue!==e)for(;ue!==e;)z.push(ue),ue=ar();else z=e;z!==e?(he=f,p=V(_,D),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=wr(),p!==e)if(_=kr(),_!==e){if(K=[],D=u,z=be(),z===e&&(z=null),z!==e?(s.charCodeAt(u)===44?(ue=ne,u++):(ue=e,ee===0&&te(M)),ue!==e?(ye=be(),ye===e&&(ye=null),ye!==e?(pr=kr(),pr!==e?(he=D,z=le(_,pr),D=z):(u=D,D=e)):(u=D,D=e)):(u=D,D=e)):(u=D,D=e),D!==e)for(;D!==e;)K.push(D),D=u,z=be(),z===e&&(z=null),z!==e?(s.charCodeAt(u)===44?(ue=ne,u++):(ue=e,ee===0&&te(M)),ue!==e?(ye=be(),ye===e&&(ye=null),ye!==e?(pr=kr(),pr!==e?(he=D,z=le(_,pr),D=z):(u=D,D=e)):(u=D,D=e)):(u=D,D=e)):(u=D,D=e);else K=e;K!==e?(D=be(),D===e&&(D=null),D!==e?(s.charCodeAt(u)===58?(z=oe,u++):(z=e,ee===0&&te(R)),z!==e?(ue=be(),ue===e&&(ue=null),ue!==e?(ye=Nr(),ye!==e?(he=f,p=we(_,K,ye),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,_,K,D,z,ue;if(f=u,p=u,ee++,_=u,K=ur(),K!==e?(D=Mn(),D!==e?(s.charCodeAt(u)===45?(z=A,u++):(z=e,ee===0&&te(x)),z!==e?(ue=be(),ue!==e?(K=[K,D,z,ue],_=K):(u=_,_=e)):(u=_,_=e)):(u=_,_=e)):(u=_,_=e),ee--,_!==e?(u=p,p=void 0):p=e,p!==e?(_=ar(),_!==e?(K=Vr(),K!==e?(D=Pn(),D!==e?(z=gn(),z!==e?(he=f,p=ge(D),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?(_=Vr(),_!==e?(K=Ir(),K!==e?(D=gn(),D!==e?(he=f,p=ge(K),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(_=[],K=ar(),K!==e)for(;K!==e;)_.push(K),K=ar();else _=e;_!==e?(he=f,p=ve(p),f=p):(u=f,f=e)}else u=f,f=e;return f}function wr(){var f,p,_;for(ee++,f=u,p=[],s.charCodeAt(u)===32?(_=xe,u++):(_=e,ee===0&&te(je));_!==e;)p.push(_),s.charCodeAt(u)===32?(_=xe,u++):(_=e,ee===0&&te(je));return p!==e?(he=u,_=Be(p),_?_=void 0:_=e,_!==e?(p=[p,_],f=p):(u=f,f=e)):(u=f,f=e),ee--,f===e&&(p=e,ee===0&&te(Se)),f}function Mn(){var f,p,_;for(f=u,p=[],s.charCodeAt(u)===32?(_=xe,u++):(_=e,ee===0&&te(je));_!==e;)p.push(_),s.charCodeAt(u)===32?(_=xe,u++):(_=e,ee===0&&te(je));return p!==e?(he=u,_=$e(p),_?_=void 0:_=e,_!==e?(p=[p,_],f=p):(u=f,f=e)):(u=f,f=e),f}function Vr(){var f;return he=u,f=Ne(),f?f=void 0:f=e,f}function gn(){var f;return he=u,f=Qe(),f?f=void 0:f=e,f}function Dn(){var f;return f=_r(),f===e&&(f=dn()),f}function kr(){var f,p,_;if(f=_r(),f===e){if(f=u,p=[],_=ir(),_!==e)for(;_!==e;)p.push(_),_=ir();else p=e;p!==e&&(he=f,p=Ee()),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=ir())),f}function dn(){var f,p,_,K,D,z;if(ee++,f=u,Ie.test(s.charAt(u))?(p=s.charAt(u),u++):(p=e,ee===0&&te(De)),p!==e){for(_=[],K=u,D=be(),D===e&&(D=null),D!==e?(Oe.test(s.charAt(u))?(z=s.charAt(u),u++):(z=e,ee===0&&te(Pe)),z!==e?(D=[D,z],K=D):(u=K,K=e)):(u=K,K=e);K!==e;)_.push(K),K=u,D=be(),D===e&&(D=null),D!==e?(Oe.test(s.charAt(u))?(z=s.charAt(u),u++):(z=e,ee===0&&te(Pe)),z!==e?(D=[D,z],K=D):(u=K,K=e)):(u=K,K=e);_!==e?(he=f,p=_e(),f=p):(u=f,f=e)}else u=f,f=e;return ee--,f===e&&(p=e,ee===0&&te(re)),f}function ir(){var f,p,_,K,D;if(f=u,s.substr(u,2)===B?(p=B,u+=2):(p=e,ee===0&&te(G)),p===e&&(p=null),p!==e)if(X.test(s.charAt(u))?(_=s.charAt(u),u++):(_=e,ee===0&&te(me)),_!==e){for(K=[],qe.test(s.charAt(u))?(D=s.charAt(u),u++):(D=e,ee===0&&te(ze));D!==e;)K.push(D),qe.test(s.charAt(u))?(D=s.charAt(u),u++):(D=e,ee===0&&te(ze));K!==e?(he=f,p=_e(),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,ee===0&&te(Ye)),p!==e&&(he=f,p=er()),f=p,f}function mn(){var f,p;return f=u,s.substr(u,4)===or?(p=or,u+=4):(p=e,ee===0&&te(hr)),p!==e&&(he=f,p=fr()),f=p,f===e&&(f=u,s.substr(u,5)===lr?(p=lr,u+=5):(p=e,ee===0&&te(Cr)),p!==e&&(he=f,p=gr()),f=p),f}function _r(){var f,p,_,K;return ee++,f=u,s.charCodeAt(u)===34?(p=rr,u++):(p=e,ee===0&&te(Ge)),p!==e?(s.charCodeAt(u)===34?(_=rr,u++):(_=e,ee===0&&te(Ge)),_!==e?(he=f,p=dr(),f=p):(u=f,f=e)):(u=f,f=e),f===e&&(f=u,s.charCodeAt(u)===34?(p=rr,u++):(p=e,ee===0&&te(Ge)),p!==e?(_=Pr(),_!==e?(s.charCodeAt(u)===34?(K=rr,u++):(K=e,ee===0&&te(Ge)),K!==e?(he=f,p=mr(_),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)),ee--,f===e&&(p=e,ee===0&&te(Ke)),f}function Pr(){var f,p,_;if(f=u,p=[],_=Or(),_!==e)for(;_!==e;)p.push(_),_=Or();else p=e;return p!==e&&(he=f,p=yr(p)),f=p,f}function Or(){var f,p,_,K,D,z;return Ue.test(s.charAt(u))?(f=s.charAt(u),u++):(f=e,ee===0&&te(n)),f===e&&(f=u,s.substr(u,2)===k?(p=k,u+=2):(p=e,ee===0&&te(j)),p!==e&&(he=f,p=J()),f=p,f===e&&(f=u,s.substr(u,2)===l?(p=l,u+=2):(p=e,ee===0&&te(b)),p!==e&&(he=f,p=E()),f=p,f===e&&(f=u,s.substr(u,2)===T?(p=T,u+=2):(p=e,ee===0&&te(O)),p!==e&&(he=f,p=q()),f=p,f===e&&(f=u,s.substr(u,2)===U?(p=U,u+=2):(p=e,ee===0&&te(N)),p!==e&&(he=f,p=Z()),f=p,f===e&&(f=u,s.substr(u,2)===Q?(p=Q,u+=2):(p=e,ee===0&&te(ae)),p!==e&&(he=f,p=de()),f=p,f===e&&(f=u,s.substr(u,2)===se?(p=se,u+=2):(p=e,ee===0&&te(En)),p!==e&&(he=f,p=kn()),f=p,f===e&&(f=u,s.substr(u,2)===tn?(p=tn,u+=2):(p=e,ee===0&&te(jr)),p!==e&&(he=f,p=Fr()),f=p,f===e&&(f=u,s.substr(u,2)===$r?(p=$r,u+=2):(p=e,ee===0&&te(sn)),p!==e&&(he=f,p=on()),f=p,f===e&&(f=u,s.substr(u,2)===Kr?(p=Kr,u+=2):(p=e,ee===0&&te(xn)),p!==e?(_=cr(),_!==e?(K=cr(),K!==e?(D=cr(),D!==e?(z=cr(),z!==e?(he=f,p=_n(_,K,D,z),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 vr.test(s.charAt(u))?(f=s.charAt(u),u++):(f=e,ee===0&&te(Ar)),f}function be(){var f,p;if(ee++,f=[],fn.test(s.charAt(u))?(p=s.charAt(u),u++):(p=e,ee===0&&te(Xe)),p!==e)for(;p!==e;)f.push(p),fn.test(s.charAt(u))?(p=s.charAt(u),u++):(p=e,ee===0&&te(Xe));else f=e;return ee--,f===e&&(p=e,ee===0&&te(On)),f}function ar(){var f,p,_,K,D,z;if(f=u,p=ur(),p!==e){for(_=[],K=u,D=be(),D===e&&(D=null),D!==e?(z=ur(),z!==e?(D=[D,z],K=D):(u=K,K=e)):(u=K,K=e);K!==e;)_.push(K),K=u,D=be(),D===e&&(D=null),D!==e?(z=ur(),z!==e?(D=[D,z],K=D):(u=K,K=e)):(u=K,K=e);_!==e?(p=[p,_],f=p):(u=f,f=e)}else u=f,f=e;return f}function ur(){var f;return s.substr(u,2)===Ur?(f=Ur,u+=2):(f=e,ee===0&&te(Tn)),f===e&&(s.charCodeAt(u)===10?(f=Rn,u++):(f=e,ee===0&&te(ln)),f===e&&(s.charCodeAt(u)===13?(f=jn,u++):(f=e,ee===0&&te(Fn)))),f}const yn=2;let Mr=0;if(Sr=w(),Sr!==e&&u===s.length)return Sr;throw Sr!==e&&u<s.length&&te(In()),Nn(Hr,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=Ho(),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(v){return v.match(C)?v:JSON.stringify(v)}function d(v){return typeof v>"u"?!0:typeof v=="object"&&v!==null&&!Array.isArray(v)?Object.keys(v).every($=>d(v[$])):!1}function w(v,$,P){if(v===null)return`null
|
|
46
|
+
`;if(typeof v=="number"||typeof v=="boolean")return`${v.toString()}
|
|
47
|
+
`;if(typeof v=="string")return`${e(v)}
|
|
48
|
+
`;if(Array.isArray(v)){if(v.length===0)return`[]
|
|
49
|
+
`;const ie=" ".repeat($);return`
|
|
50
|
+
${v.map(R=>`${ie}- ${w(R,$+1,!1)}`).join("")}`}if(typeof v=="object"&&v){const[ie,oe]=v instanceof h?[v.data,!1]:[v,!0],R=" ".repeat($),V=Object.keys(ie);oe&&V.sort((M,le)=>{const we=s.indexOf(M),ge=s.indexOf(le);return we===-1&&ge===-1?M<le?-1:M>le?1:0:we!==-1&&ge===-1?-1:we===-1&&ge!==-1?1:we-ge});const ne=V.filter(M=>!d(ie[M])).map((M,le)=>{const we=ie[M],ge=e(M),ve=w(we,$+1,!0),Se=le>0||P?R:"",xe=ge.length>1024?`? ${ge}
|
|
51
|
+
${Se}:`:`${ge}:`,je=ve.startsWith(`
|
|
52
|
+
`)?ve:` ${ve}`;return`${Se}${xe}${je}`}).join($===0?`
|
|
53
|
+
`:"")||`
|
|
54
|
+
`;return P?`
|
|
55
|
+
${ne}`:`${ne}`}throw new Error(`Unsupported value type (${v})`)}function m(v){try{const $=w(v,0,!1);return $!==`
|
|
56
|
+
`?$:""}catch($){throw $.location&&($.message=$.message.replace(/(\.)?$/,` (line ${$.location.start.line}, column ${$.location.start.column})$1`)),$}}m.PreserveOrdering=h;function A(v){return v.endsWith(`
|
|
57
|
+
`)||(v+=`
|
|
58
|
+
`),(0,g.parse)(v)}const x=/^(#.*(\r?\n))*?#\s+yarn\s+lockfile\s+v1\r?\n/i;function Y(v){if(x.test(v))return A(v);const $=(0,a.load)(v,{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(v){return Y(v)}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 w=h.get(e);w?w.push(d):h.set(e,[d])}for(const[e,d]of h){const w=g.get(e);w?w.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(w=>h.has(w))).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 w=d.split("@workspace:")[1];w!==void 0&&(w==="."||s.has(w))&&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 Ze(`yarn.lock: parse failed — ${y.message}`)}if(!C||typeof C!="object")throw new Ze("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[v,$]of Object.entries(y.deps)){if(typeof $!="string"||$.startsWith("workspace:")||$.startsWith("link:")||$.startsWith("portal:"))continue;const P=Xt(s,v,$);for(const ie of P)h.add(ie)}const d=[...h];for(;d.length>0;){const y=d.shift();if(y==="__metadata")continue;const v=C[y];if(v)for(const{name:$,spec:P}of Zo(v)){if(P.startsWith("workspace:")||P.startsWith("link:")||P.startsWith("portal:"))continue;const ie=Xt(s,$,P);for(const oe of ie)h.has(oe)||(h.add(oe),d.push(oe))}}const w={};for(const y of Object.keys(C))h.has(y)&&(w[y]=C[y]);const m=Object.keys(C).length-(C[Zr]===void 0?0:1),A=h.size-(h.has(Zr)?1:0),x=m-A,Y=C[Zr]!==void 0;return{content:zt.stringifySyml(w),message:`yarn.lock (${Y?"berry":"classic"}): kept ${A}/${m} entries (dropped ${x})`,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 Ze(`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 w of d)h.has(w.target)||(h.add(w.target),C.add(w.target),s.push(w.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(Le(a,s.name),Le(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=P=>{console.log(P)},outDir:h,projectGraph:e,pruneLockfile:d=!0,workspace:w,workspaceRoot:m}=a,A=g.filter(P=>w.projects[P]===void 0);if(A.length>0)throw new Error(`Unknown focus project(s): ${A.join(", ")}. Check project names in your workspace.`);const x=ff(g,e),Y=Le(h,"workspace"),y=Le(h,"sources");ki(Y,{force:!0,recursive:!0}),ki(y,{force:!0,recursive:!0}),qr(Y);for(const P of of)en(Le(m,P),Le(Y,P));const v=Zt(Le(m,"package.json")),$=[{deps:v?.deps,name:v?.name,relativeRoot:""}];for(const P of x){const ie=w.projects[P];if(!ie?.root)continue;for(const R of tf)en(Le(m,ie.root,R),Le(Y,ie.root,R));const oe=Zt(Le(m,ie.root,"package.json"));$.push({deps:oe?.deps,name:oe?.name,relativeRoot:ie.root})}for(const{file:P,manager:ie}of sf){const oe=Le(m,P);if(!es(oe))continue;const R=Le(Y,P);if(!d){en(oe,R);continue}const V=P.endsWith(".lockb")?at(oe):at(oe,"utf8");try{const ne=rf({closure:$,displayName:P,lockfileContent:V,packageManager:ie});ne.status==="pruned"&&ne.content!==void 0?(qr(_i(R)),ut(R,ne.content)):en(oe,R),s(ne.message)}catch(ne){if(ne instanceof Ze)s(`${P}: pruning failed (${ne.message}); copying verbatim`),en(oe,R);else throw ne}}if(C){qr(y);for(const P of g){const ie=w.projects[P];ie?.root&&ls(Le(m,ie.root),Le(y,ie.root))}}return ut(Le(h,Cn),`${JSON.stringify({focus:g,projects:[...x].sort()},null,2)}
|
|
59
|
+
`),{projects:[...x]}},df=a=>{const{contextRoot:g,workspace:C,workspaceRoot:s}=a,h=Le(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),w=[];for(const[m,A]of Object.entries(C.projects)){if(d.has(m)||!A.root)continue;const x=Le(s,A.root),Y=to(s,x);Y===""||Y==="."||Y.startsWith("..")||(ki(x,{force:!0,recursive:!0}),w.push(Y))}return{removed:w}};export{df as p,ff as r,gf as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const n=/^[*+-]\s+/,c=new RegExp("^(?:[\\p{Emoji_Presentation}\\p{Extended_Pictographic}][\\uFE0E\\uFE0F]?\\p{Emoji_Modifier}?(?:\\u200D[\\p{Emoji_Presentation}\\p{Extended_Pictographic}][\\uFE0E\\uFE0F]?\\p{Emoji_Modifier}?)*|:\\w+:)\\s+","u"),a=/^([a-z][\w-]*)(?:\(([^()]*)\))?(!)?:[ \t](.*)$/i,p="BREAKING CHANGE",_="BREAKING-CHANGE",N=e=>n.test(e),u=e=>e.replace(n,"").trim(),d=e=>{const t=u(e).replace(c,""),i=a.exec(t);if(!i)return;const[,r,o,E,s]=i;return{breakingMarker:E==="!",breakingNote:t.includes(p)||t.includes(_),scope:o===void 0||o.trim()===""?void 0:o.trim(),subject:s.trim(),type:r.toLowerCase()}},R=e=>e.breakingMarker||e.breakingNote;export{N as hasBulletMarker,R as isBreakingChange,d as parseConventionalHeader,u as stripBulletMarker};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"./vis-user-error-
|
|
1
|
+
import{b as e}from"./vis-user-error-YIyfYNBK.js";const o={filter:{alias:"F",description:"Filter packages by name pattern",multiple:!0,type:String},parallel:{defaultValue:!1,description:"Run concurrently without topological ordering",type:Boolean},recursive:{alias:"r",defaultValue:!1,description:"Run in every workspace package",type:Boolean},reverse:{defaultValue:!1,description:"Reverse topological execution order",type:Boolean},"shell-mode":{alias:"c",defaultValue:!1,description:"Execute within shell environment",type:Boolean},"workspace-root":{alias:"w",defaultValue:!1,description:"Run on workspace root only",type:Boolean}},l=e({argument:{description:"Command to execute followed by arguments",name:"command",type:String},description:"Execute a local node_modules/.bin command (no remote fallback)",examples:[["vis exec eslint .","Run local eslint"],["vis exec tsc --noEmit","Run local TypeScript check"],["vis exec -r -- eslint .","Run in all workspace packages"],["vis exec -c 'echo $PATH'","Shell mode"]],group:"Run & Execute",loader:()=>import("../packem_chunks/handler.js"),name:"exec",options:o});export{l as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const G=/^-{1,2}(no-color|no-colors|color=false|color=never)$/,D=/^-{1,2}(color=256)$/,P=/^-{1,2}(color=16m|color=full|color=truecolor)$/,L=/^-{1,2}(color|colors|color=true|color=always)$/,F=/-mono|dumb/i,Y=/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/,j=/-256(color)?$/i,W=/^screen|^tmux|^xterm|^vt[1-5]\d\d|^ansi|color|mintty|rxvt|cygwin|linux/i,V=()=>{const t=globalThis.process?.getBuiltinModule;return typeof t!="function"?"":t("node:os").release()},_=(t,e={})=>{const{isTTY:s,sniffFlags:i=!0}=e,c=globalThis,g=c.Deno!=null,u=c.process??c.Deno??{},$=u.argv??u.args??[],p=i?$.indexOf("--"):-1,a=f=>{if(!i)return!1;const R=$.findIndex(k=>f.test(k));return R!==-1&&(p===-1||R<p)};let n={};try{n=g?c.Deno.env.toObject():u.env??{}}catch{}const o="FORCE_COLOR",b=o in n,l=n[o]??void 0,m=typeof l=="string",y=typeof l=="number";let B;if(l==="true")B=1;else if(l==="false")B=0;else if(m&&l.length===0)B=1;else if(m&&l.length>0){const f=Number.parseInt(l,10);B=Number.isNaN(f)?void 0:Math.max(0,Math.min(f,3))}else y&&(B=Number.isNaN(l)?void 0:Math.max(0,Math.min(l,3)));if(l!=="true"&&l!=="false"&&B!==void 0&&B<4)return B;const w=b&&B!==void 0&&B>0;if(b&&B===0||a(G)||!w&&"NO_COLOR"in n)return 0;if(a(D))return 2;if(a(P))return 3;if(a(L))return 1;const T=B??0;if("TF_BUILD"in n&&"AGENT_NAME"in n)return 1;if(n.TERM&&F.test(n.TERM))return T;if(g?c.Deno.build.os==="windows":u.platform==="win32"){if("WT_SESSION"in n)return 3;if("ANSICON"in n)return 1;try{let f;g?f=c.Deno.osRelease():typeof u.os?.release=="function"?f=u.os.release():f=V();const R=f.split(".");return Number(R[0])>=10&&Number(R[2])>=10586?Number(R[2])>=14931?3:2:1}catch{}}if("CI"in n)return["GITEA_ACTIONS","CIRCLECI","GITHUB_WORKFLOW","GITHUB_ACTIONS"].some(f=>f in n)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(f=>f in n)||n.CI_NAME==="codeship"?1:T;if(n.TERMINAL_EMULATOR?.includes("JediTerm"))return 3;if("TEAMCITY_VERSION"in n)return Y.test(n.TEAMCITY_VERSION)?1:0;if(n.COLORTERM==="truecolor"||n.TERM==="xterm-kitty"||n.TERM==="xterm-ghostty"||n.TERM==="wezterm")return 3;if("TERM_PROGRAM"in n){const f=Number.parseInt((n.TERM_PROGRAM_VERSION??"").split(".")[0],10);if(n.TERM_PROGRAM==="iTerm.app")return f>=3?3:2;if(n.TERM_PROGRAM==="Apple_Terminal")return 2}if(j.test(n.TERM))return 2;let O;return s!==void 0?O=s:g?O=t==="out"?c.Deno.stdout.isTerminal():c.Deno.stderr.isTerminal():"PM2_HOME"in n&&"pm_id"in n?O=!0:O=!!u[`std${t}`]?.isTTY,O&&W.test(n.TERM)||"COLORTERM"in n?1:T},H=()=>_("out"),U=()=>_("err");function q({onlyFirst:t=!1}={}){const e="(?:\\u001B\\][^\\u0007\\u001B\\u009C]*(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(e,t?void 0:"g")}const M=(t,e,s)=>e>t?e:Math.min(t,s),z=/^#?([a-f\d]{3}|[a-f\d]{6})$/i,J=t=>{let[,e]=z.exec(t)??[];const s=e?e.length:0;if(s===3){const c=e.charAt(0),g=e.charAt(1),u=e.charAt(2);e=c+c+g+g+u+u}else if(s!==6)return globalThis.process?.env?.NODE_ENV!=="production"&&console.warn(`[@visulima/colorize] Invalid hex color "${t}"; expected a 3- or 6-digit hex string (e.g. "#96C" or "#E0115F"). Falling back to black.`),[0,0,0];const i=Number.parseInt(e,16);return[i>>16&255,i>>8&255,i&255]},v=(t,e,s)=>t===e&&e===s?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/51)+6*Math.round(e/51)+Math.round(s/51),C=t=>{let e,s,i;if(t<8)return 30+t;if(t<16)return 90+(t-8);if(t>=232)e=s=i=((t-232)*10+8)/255;else{t-=16;const u=t%36;e=Math.floor(t/36)/5,s=Math.floor(u/6)/5,i=u%6/5}const c=Math.max(e,s,i)*2;if(c===0)return 30;const g=30+(Math.round(i)<<2|Math.round(s)<<1|Math.round(e));return c===2?g+60:g},S=(t,e,s)=>C(v(t,e,s)),h=39,d=49,N=10,E={close:"",open:""},I=t=>{const e=t>0?(o,b)=>({close:`\x1B[${String(b)}m`,open:`\x1B[${String(o)}m`}):()=>E,s=o=>(b,l,m)=>o(v(Number(b),Number(l),Number(m))),i=o=>b=>{const[l,m,y]=J(b);return o(l,m,y)};let c=o=>e(`38;5;${String(o)}`,h),g=o=>e(`48;5;${String(o)}`,d),u=(o,b,l)=>e(`38;2;${String(o)};${String(b)};${String(l)}`,h),$=(o,b,l)=>e(`48;2;${String(o)};${String(b)};${String(l)}`,d);t===1?(c=o=>e(C(Number(o)),h),g=o=>e(C(Number(o))+N,d),u=(o,b,l)=>e(S(Number(o),Number(b),Number(l)),h),$=(o,b,l)=>e(S(Number(o),Number(b),Number(l))+N,d)):t===2&&(u=s(c),$=s(g));const p={bold:e(1,22),dim:e(2,22),hidden:e(8,28),inverse:e(7,27),italic:e(3,23),overline:e(53,55),reset:e(0,0),strike:e(9,29),strikethrough:e(9,29),underline:e(4,24),underlineCurly:e("4:3",24),underlineDashed:e("4:5",24),underlineDotted:e("4:4",24),underlineDouble:e("4:2",24),visible:E},a={bgBlack:e(40,d),bgBlackBright:e(100,d),bgBlue:e(44,d),bgBlueBright:e(104,d),bgCyan:e(46,d),bgCyanBright:e(106,d),bgGray:e(100,d),bgGreen:e(42,d),bgGreenBright:e(102,d),bgGrey:e(100,d),bgMagenta:e(45,d),bgMagentaBright:e(105,d),bgRed:e(41,d),bgRedBright:e(101,d),bgWhite:e(47,d),bgWhiteBright:e(107,d),bgYellow:e(43,d),bgYellowBright:e(103,d),black:e(30,h),blackBright:e(90,h),blue:e(34,h),blueBright:e(94,h),cyan:e(36,h),cyanBright:e(96,h),gray:e(90,h),green:e(32,h),greenBright:e(92,h),grey:e(90,h),magenta:e(35,h),magentaBright:e(95,h),red:e(31,h),redBright:e(91,h),white:e(37,h),whiteBright:e(97,h),yellow:e(33,h),yellowBright:e(93,h)},n={bg:o=>g(M(o,0,255)),bgHex:i($),bgRgb:(o,b,l)=>$(M(o,0,255),M(b,0,255),M(l,0,255)),fg:o=>c(M(o,0,255)),hex:i(u),rgb:(o,b,l)=>u(M(o,0,255),M(b,0,255),M(l,0,255))};return{baseColors:a,baseStyles:p,styleMethods:n}},x=H(),K=U();I(x);const X=(t,e,s)=>{if(e==="")return t;let i=t.indexOf(e);if(i<0)return t;const c=e.length;let g=0,u="";for(;~i;)u+=t.slice(g,i)+s,g=i+c,i=t.indexOf(e,g);return u+t.slice(g)},Z=(t,e,s)=>{if(t==null||t==="")return"";let i;if(t.raw===void 0?i=String(t):i=String.raw(t,...e),i.includes("\x1B"))for(let c=s;c;c=c.props)i=X(i,c.close,c.open);return i.includes(`
|
|
2
|
+
`)&&(i=i.replace(/(\r*\n)/g,`${s.closeStack}$1${s.openStack}`)),s.openStack+i+s.closeStack},A=function(t){const e=t?.level??x,{baseColors:s,baseStyles:i,styleMethods:c}=I(e),g={};let u=null;const $=({props:a},{close:n,open:o})=>{const b=(a?.openStack??"")+o,l=n+(a?.closeStack??""),m=(y,...B)=>Z(y,B,m.props);return Object.setPrototypeOf(m,u),m.props={close:n,closeStack:l,open:o,openStack:b,props:a},m.open=b,m.close=l,m},p=a=>String(a);p.strip=a=>a.replaceAll(q(),"");for(const a in s)g[a]={get(){const n=$(this,s[a]);return Object.defineProperty(this,a,{value:n}),n}};for(const a in i)g[a]={get(){const n=$(this,i[a]);return Object.defineProperty(this,a,{value:n}),n}};for(const a in c)g[a]={get(){return(...n)=>$(this,c[a](...n))}};return g.ansi256=g.fg,g.bgAnsi256=g.bg,u=Object.defineProperties({},g),Object.setPrototypeOf(p,u),p},r=new A;new A({level:K});r.ansi256;r.bg;r.bgAnsi256;r.bgHex;r.bgRgb;r.fg;r.hex;r.rgb;r.strip;r.bgBlack;r.bgBlackBright;r.bgBlue;r.bgBlueBright;r.bgCyan;r.bgCyanBright;r.bgGray;r.bgGreen;r.bgGreenBright;r.bgGrey;r.bgMagenta;r.bgMagentaBright;r.bgRed;r.bgRedBright;r.bgWhite;r.bgWhiteBright;r.bgYellow;r.bgYellowBright;r.black;r.blackBright;r.blue;r.blueBright;const Q=r.bold,ee=r.cyan;r.cyanBright;const re=r.dim;r.gray;const te=r.green;r.greenBright;r.grey;r.hidden;const ne=r.inverse;r.italic;const oe=r.magenta;r.magentaBright;r.overline;const ie=r.red;r.redBright;r.reset;r.strike;r.strikethrough;const se=r.underline;r.underlineCurly;r.underlineDashed;r.underlineDotted;r.underlineDouble;r.visible;r.white;r.whiteBright;const le=r.yellow;r.yellowBright;export{U as $,re as F,te as J,ne as P,oe as T,ie as X,le as b,se as e,Q as j,ee as q,r as t,H as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRequire as $}from"node:module";let O;const S=t=>(O??=$(import.meta.url))(t),d=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,l=t=>{if(typeof d<"u"&&d.versions&&d.versions.node){const[e,s]=d.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return d.getBuiltinModule(t)}return S(t)},{spawn:T}=l("node:child_process"),{cwd:x}=d,{basename:k,normalize:A,delimiter:f,resolve:y,dirname:g}=l("node:path"),{fileURLToPath:j}=l("node:url"),{pipeline:R}=l("node:stream/promises"),{PassThrough:N}=l("node:stream"),z=l("node:readline"),{openSync:B,readSync:M,closeSync:W,statSync:q}=l("node:fs"),H=/^path$/i,E={key:"PATH",value:""};function P(t){for(const e in t){if(!Object.prototype.hasOwnProperty.call(t,e)||!H.test(e))continue;const s=t[e];return s?{key:e,value:s}:E}return E}function I(t,e){const s=e.value.split(f),o=[];let n=typeof t=="string"?t:j(t,{windows:!1}),i;do o.push(y(n,"node_modules",".bin")),i=n,n=g(n);while(n!==i);o.push(g(process.execPath));const r=o.concat(s).join(f);return{key:e.key,value:r}}function L(t,e,s=!0){const o={...process.env,...e};if(!s)return o;const n=I(t,P(o));return o[n.key]=n.value,o}const F=t=>{let e=t.length;const s=new N,o=()=>{--e===0&&s.end()};for(const n of t)R(n,s,{end:!1}).then(o).catch(o);return s},m=/([()\][%!^"`<>&|;, *?])/g,D=/^#!\s*(.+)/,X=/\.(?:com|exe)$/i,J=/node_modules[\\/]\.bin[\\/][^\\/]+\.cmd$/i,U=process.platform==="win32",V=[".EXE",".CMD",".BAT",".COM"],Z=[""];function G(t,e=[],s={}){if(s.shell===!0||!U)return{command:t,args:e,options:s};let o=C(t,s),n=null;if(o!==null){const r=Buffer.alloc(150);let a=null;try{a=B(o,"r"),M(a,r,0,150,0)}catch{}finally{a!==null&&W(a)}const c=r.toString().match(D);if(c!==null){const u=c[1].trim(),h=u.indexOf(" "),_=h!==-1?u.slice(0,h):u,p=h!==-1?u.slice(h+1):"",w=k(_);n=w==="env"?p||null:w}}if(n!==null&&o!==null&&(e=[o,...e],t=n,o=C(t,s)),o===null||!X.test(o)){const i=o!==null&&J.test(o);t=A(t),t=t.replace(m,"^$1"),e=e.map(r=>(r=r.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),r=r.replace(/(?=(\\+?)?)\1$/,"$1$1"),r=`"${r}"`,r=r.replace(m,"^$1"),i&&(r=r.replace(m,"^$1")),r)),e=["/d","/s","/c",`"${[t,...e].join(" ")}"`],t=s.env?.comspec??"cmd.exe",s={...s,windowsVerbatimArguments:!0}}return{command:t,args:e,options:s}}function C(t,e){const s=(e.cwd??x()).toString(),o=e.env??process.env,n=P(o).value,i=t.includes("/")||t.includes("\\")?[""]:[s,...n.split(f)];let r=o.PATHEXT?o.PATHEXT.split(f):V;t.includes(".")&&r[0]!==""&&(r=["",...r]);for(const a of[r,Z])for(const c of i){const u=c.startsWith('"')&&c.endsWith('"')&&c.length>1?c.slice(1,-1):c,h=y(s,u,t);for(const _ of a){const p=h+_;try{if(q(p).isFile())return p}catch{}}}return null}var v=class extends Error{result;output;exitCode;get signalCode(){return this.result.signalCode}constructor(t,e,s,o){let n="The process";s&&(n=`The command \`${o?.length?`${s} ${o.map(r=>/[ "'`()]/.test(r)?JSON.stringify(r):r).join(" ")}`:s}\``);const i=t.exitCode??1;super(t.signalCode!==null?`${n} was killed by the signal ${t.signalCode}`:`${n} exited with a non-zero status (${i})`),this.result=t,this.output=e,this.exitCode=i,Object.defineProperty(this,"result",{enumerable:!1,writable:!1,configurable:!1})}};const K={timeout:void 0,persist:!1},Q={windowsHide:!0};function Y(t){const e=new AbortController;for(const s of t){if(s.aborted)return e.abort(),s;const o=()=>{e.abort(s.reason)};s.addEventListener("abort",o,{signal:e.signal})}return e.signal}async function b(t){let e="";try{for await(const s of t)e+=s.toString()}catch{}return e}var tt=class{_process;_aborted=!1;_options;_command;_args;_resolveClose;_processClosed;_thrownError;get process(){return this._process}get pid(){return this._process?.pid}get exitCode(){if(this._process&&this._process.exitCode!==null)return this._process.exitCode}get signalCode(){return this._process?.signalCode??null}constructor(t,e,s){this._options={...K,...s},this._command=t,this._args=e??[],this._processClosed=new Promise(o=>{this._resolveClose=o})}kill(t){return this._process?.kill(t)===!0}get aborted(){return this._aborted}get killed(){return this._process?.killed===!0}pipe(t,e,s){return st(t,e,{...s,stdin:this})}async*[Symbol.asyncIterator](){const t=this._process;if(!t)return;const e=[];this._streamErr&&e.push(this._streamErr),this._streamOut&&e.push(this._streamOut);const s=F(e),o=z.createInterface({input:s});for await(const n of o)yield n.toString();if(await this._processClosed,t.removeAllListeners(),this._thrownError)throw this._thrownError;if(this._options?.throwOnError&&(this.exitCode!==0&&this.exitCode!==void 0||this.signalCode!==null))throw new v(this,void 0,this._command,this._args)}async _waitForOutput(){const t=this._process;if(!t)throw new Error("No process was started");const[e,s]=await Promise.all([this._streamOut?b(this._streamOut):"",this._streamErr?b(this._streamErr):""]);await this._processClosed;const{stdin:o}=this._options;if(o&&typeof o!="string"&&await o,t.removeAllListeners(),this._thrownError)throw this._thrownError;const n={stderr:s,stdout:e,exitCode:this.exitCode};if(this._options.throwOnError&&(this.exitCode!==0&&this.exitCode!==void 0||this.signalCode!==null))throw new v(this,n,this._command,this._args);return n}then(t,e){return this._waitForOutput().then(t,e)}_streamOut;_streamErr;spawn(){const t=this._options,e={...Q,...t.nodeOptions},s=e?.cwd??x(),o=[];this._resetState(),t.timeout!==void 0&&o.push(AbortSignal.timeout(t.timeout)),t.signal!==void 0&&o.push(t.signal),t.persist===!0&&(e.detached=!0),o.length>0&&(e.signal=Y(o)),e.env=L(s,e.env,t.nodePath);const n=G(this._command,this._args,e),i=T(n.command,n.args,n.options);if(i.stderr&&(this._streamErr=i.stderr),i.stdout&&(this._streamOut=i.stdout),this._process=i,i.once("error",this._onError),i.once("close",this._onClose),i.stdin){const{stdin:r}=t;typeof r=="string"?i.stdin.end(r):r?.process?.stdout?.pipe(i.stdin)}}_resetState(){this._aborted=!1,this._processClosed=new Promise(t=>{this._resolveClose=t}),this._thrownError=void 0}_onError=t=>{if(t.name==="AbortError"&&(!(t.cause instanceof Error)||t.cause.name!=="TimeoutError")){this._aborted=!0;return}this._thrownError=t};_onClose=()=>{this._resolveClose&&this._resolveClose()}};const et=(t,e,s)=>{const o=new tt(t,e,s);return o.spawn(),o},st=et;export{et as x};
|