webhook-action/node_modules/prettier/parser-yaml.js

150 lines
127 KiB
JavaScript
Raw Normal View History

2022-11-10 10:43:16 +00:00
(function(e){if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var i=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};i.prettierPlugins=i.prettierPlugins||{},i.prettierPlugins.yaml=e()}})(function(){"use strict";var wt=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var ur=wt((mr,lt)=>{var De=Object.defineProperty,St=Object.getOwnPropertyDescriptor,Fe=Object.getOwnPropertyNames,Et=Object.prototype.hasOwnProperty,xe=(r,e)=>function(){return r&&(e=(0,r[Fe(r)[0]])(r=0)),e},F=(r,e)=>function(){return e||(0,r[Fe(r)[0]])((e={exports:{}}).exports,e),e.exports},Mt=(r,e)=>{for(var n in e)De(r,n,{get:e[n],enumerable:!0})},Ot=(r,e,n,c)=>{if(e&&typeof e=="object"||typeof e=="function")for(let h of Fe(e))!Et.call(r,h)&&h!==n&&De(r,h,{get:()=>e[h],enumerable:!(c=St(e,h))||c.enumerable});return r},se=r=>Ot(De({},"__esModule",{value:!0}),r),Ke,$e,Te,D=xe({"<define:process>"(){Ke={},$e=[],Te={env:Ke,argv:$e}}}),Lt=F({"src/common/parser-create-error.js"(r,e){"use strict";D();function n(c,h){let d=new SyntaxError(c+" ("+h.start.line+":"+h.start.column+")");return d.loc=h,d}e.exports=n}}),At=F({"src/language-yaml/pragma.js"(r,e){"use strict";D();function n(d){return/^\s*@(?:prettier|format)\s*$/.test(d)}function c(d){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(d)}function h(d){return`# @format
`.concat(d)}e.exports={isPragma:n,hasPragma:c,insertPragma:h}}}),Nt=F({"src/language-yaml/loc.js"(r,e){"use strict";D();function n(h){return h.position.start.offset}function c(h){return h.position.end.offset}e.exports={locStart:n,locEnd:c}}}),te={};Mt(te,{__assign:()=>qe,__asyncDelegator:()=>Wt,__asyncGenerator:()=>Ft,__asyncValues:()=>Vt,__await:()=>Ce,__awaiter:()=>Rt,__classPrivateFieldGet:()=>$t,__classPrivateFieldSet:()=>Jt,__createBinding:()=>Bt,__decorate:()=>kt,__exportStar:()=>jt,__extends:()=>Tt,__generator:()=>qt,__importDefault:()=>Kt,__importStar:()=>Ut,__makeTemplateObject:()=>Qt,__metadata:()=>It,__param:()=>Pt,__read:()=>He,__rest:()=>Ct,__spread:()=>Yt,__spreadArrays:()=>Dt,__values:()=>Ye});function Tt(r,e){Re(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function Ct(r,e){var n={};for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&e.indexOf(c)<0&&(n[c]=r[c]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,c=Object.getOwnPropertySymbols(r);h<c.length;h++)e.indexOf(c[h])<0&&Object.prototype.propertyIsEnumerable.call(r,c[h])&&(n[c[h]]=r[c[h]]);return n}function kt(r,e,n,c){var h=arguments.length,d=h<3?e:c===null?c=Object.getOwnPropertyDescriptor(e,n):c,y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(r,e,n,c);else for(var E=r.length-1;E>=0;E--)(y=r[E])&&(d=(h<3?y(d):h>3?y(e,n,d):y(e,n))||d);return h>3&&d&&Object.defineProperty(e,n,d),d}function Pt(r,e){return function(n,c){e(n,c,r)}}function It(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}function Rt(r,e,n,c){function h(d){return d instanceof n?d:new n(function(y){y(d)})}return new(n||(n=Promise))(function(d,y){function E(M){try{S(c.next(M))}catch(T){y(T)}}function I(M){try{S(c.throw(M))}catch(T){y(T)}}function S(M){M.done?d(M.value):h(M.value).then(E,I)}S((c=c.apply(r,e||[])).next())})}function qt(r,e){var n={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},c,h,d,y;return y={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(y[Symbol.iterator]=function(){return this}),y;function E(S){return function(M){return I([S,M])}}function I(S){if(c)throw new TypeError("Generator is already executing.");for(;n;)try{if(c=1,h&&(d=S[0]&2?h.return:S[0]?h.throw||((d=h.return)&&d.call(h),0):h.next)&&!(d=d.call(h,S[1])).done)return d;switch(h=0,d&&(S=[S[0]&2,d.value]),S[0]){case 0:case 1:d=S;break;case 4:return n.label++,{value:S[1],done:!1};case 5:n.label++,h=S[1],S=[0];continue;case 7:S=n.ops.pop(),n.trys.pop();continue;default:if(d=n.trys,!(d=d.length>0&&d[d.length-1])&&(S[0]===6||S[0]===2)){n=0;continue}if(S[0]===3&&(!d||S[1]>d[0]&&S[1]<d[3])){n.label=S[1];break}if(S[0]===6&&n.label<d[1]){n.label=d[1],d=S;break}if(d&&n.label<d[2]){n.label=d[2],n.ops.push(S);break}d[2]&&n.ops.pop(),n.trys.pop();continue}S=e.call(r,n)}catch(M){S=[6,M],h=0}finally{c=d=0}if(S[0]&5)throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}}function Bt(r,e,n,c){c===void 0&&(c=n),r[c]=e[n]}function jt(r,e){for(var n in r)n!=="default"&&!e.hasOwnProperty(n)&&(e[n]=r[n])}function Ye(r){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&r[e],c=0;if(n)return n.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&c>=r.length&&(r=void 0),{value:r&&r[c++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function He(r,e){var n=typeof Symbol=="function"&&r[Symbol.iterator];if(!n)return r;var c=n.call(r),h,d=[],y;try{for(;(e===void 0||e-- >0)&&!(h=c.next()).done;)d.push(h.value)}catch(E){y={error:E}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(y)throw y.error}}return d}function Yt(){for(var r=[],e=0;e<arguments.length;e++)r=r.concat(He(arguments[e]));return r}function Dt(){for(var r=0,e=0,n=arguments.length;e<n;e++)r+=arguments[e].length;for(var c=Array(r),h=0,e=0;e<n;e++)for(var d=arguments[e],y=0,E=d.length;y<E;y++,h++)c[h]=d[y];return c}function Ce(r){return this instanceof Ce?(this.v=r,this):new Ce(r)}function
`,n="\r",c=function(){function h(d){this.string=d;for(var y=[0],E=0;E<d.length;)switch(d[E]){case e:E+=e.length,y.push(E);break;case n:E+=n.length,d[E]===e&&(E+=e.length),y.push(E);break;default:E++;break}this.offsets=y}return h.prototype.locationForIndex=function(d){if(d<0||d>this.string.length)return null;for(var y=0,E=this.offsets;E[y+1]<=d;)y++;var I=d-E[y];return{line:y,column:I}},h.prototype.indexForLocation=function(d){var y=d.line,E=d.column;return y<0||y>=this.offsets.length||E<0||E>this.lengthOfLine(y)?null:this.offsets[y]+E},h.prototype.lengthOfLine=function(d){var y=this.offsets[d],E=d===this.offsets.length-1?this.string.length:this.offsets[d+1];return E-y},h}();r.LinesAndColumns=c,r.default=c}}),Ht=F({"node_modules/yaml-unist-parser/lib/utils/define-parents.js"(r){"use strict";D(),r.__esModule=!0;function e(n,c){c===void 0&&(c=null),"children"in n&&n.children.forEach(function(h){return e(h,n)}),"anchor"in n&&n.anchor&&e(n.anchor,n),"tag"in n&&n.tag&&e(n.tag,n),"leadingComments"in n&&n.leadingComments.forEach(function(h){return e(h,n)}),"middleComments"in n&&n.middleComments.forEach(function(h){return e(h,n)}),"indicatorComment"in n&&n.indicatorComment&&e(n.indicatorComment,n),"trailingComment"in n&&n.trailingComment&&e(n.trailingComment,n),"endComments"in n&&n.endComments.forEach(function(h){return e(h,n)}),Object.defineProperty(n,"_parent",{value:c,enumerable:!1})}r.defineParents=e}}),We=F({"node_modules/yaml-unist-parser/lib/utils/get-point-text.js"(r){"use strict";D(),r.__esModule=!0;function e(n){return n.line+":"+n.column}r.getPointText=e}}),Gt=F({"node_modules/yaml-unist-parser/lib/attach.js"(r){"use strict";D(),r.__esModule=!0;var e=Ht(),n=We();function c(S){e.defineParents(S);var M=h(S),T=S.children.slice();S.comments.sort(function(P,C){return P.position.start.offset-C.position.end.offset}).filter(function(P){return!P._parent}).forEach(function(P){for(;T.length>1&&P.position.start.line>T[0].position.end.line;)T.shift();y(P,M,T[0])})}r.attachComments=c;function h(S){for(var M=Array.from(new Array(S.position.end.line),function(){return{}}),T=0,P=S.comments;T<P.length;T++){var C=P[T];M[C.position.start.line-1].comment=C}return d(M,S),M}function d(S,M){if(M.position.start.offset!==M.position.end.offset){if("leadingComments"in M){var T=M.position.start,P=S[T.line-1].leadingAttachableNode;(!P||T.column<P.position.start.column)&&(S[T.line-1].leadingAttachableNode=M)}if("trailingComment"in M&&M.position.end.column>1&&M.type!=="document"&&M.type!=="documentHead"){var C=M.position.end,q=S[C.line-1].trailingAttachableNode;(!q||C.column>=q.position.end.column)&&(S[C.line-1].trailingAttachableNode=M)}if(M.type!=="root"&&M.type!=="document"&&M.type!=="documentHead"&&M.type!=="documentBody")for(var R=M.position,T=R.start,C=R.end,j=[C.line].concat(T.line===C.line?[]:T.line),K=0,m=j;K<m.length;K++){var a=m[K],t=S[a-1].trailingNode;(!t||C.column>=t.position.end.column)&&(S[a-1].trailingNode=M)}"children"in M&&M.children.forEach(function(s){d(S,s)})}}function y(S,M,T){var P=S.position.start.line,C=M[P-1].trailingAttachableNode;if(C){if(C.trailingComment)throw new Error("Unexpected multiple trailing comment at "+n.getPointText(S.position.start));e.defineParents(S,C),C.trailingComment=S;return}for(var q=P;q>=T.position.start.line;q--){var R=M[q-1].trailingNode,j=void 0;if(R)j=R;else if(q!==P&&M[q-1].comment)j=M[q-1].comment._parent;else continue;if((j.type==="sequence"||j.type==="mapping")&&(j=j.children[0]),j.type==="mappingItem"){var K=j.children,m=K[0],a=K[1];j=I(m)?m:a}for(;;){if(E(j,S)){e.defineParents(S,j),j.endComments.push(S);return}if(!j._parent)break;j=j._parent}break}for(var q=P+1;q<=T.position.end.line;q++){var t=M[q-1].leadingAttachableNode;if(t){e.defineParents(S,t),t.leadingComments.push(S);return}}var s=T.children[1];e.defineParents(S,s),s.endComments.push(S)}function E(S,M){if(S.position.start.offset<M.position.start.offset&&S.position.end.offset>M.position.end.offset)switch(S.type){case"flowMapping":case"flowSequence":return S.children.length===0||M.position.start.line>S.children[S.children.length-1].p
`);for(;s!==-1;)s+=1,t.push(s),s=a.indexOf(`
`,s);return t}function y(a){let t,s;return typeof a=="string"?(t=d(a),s=a):(Array.isArray(a)&&(a=a[0]),a&&a.context&&(a.lineStarts||(a.lineStarts=d(a.context.src)),t=a.lineStarts,s=a.context.src)),{lineStarts:t,src:s}}function E(a,t){if(typeof a!="number"||a<0)return null;let{lineStarts:s,src:i}=y(t);if(!s||!i||a>i.length)return null;for(let g=0;g<s.length;++g){let u=s[g];if(a<u)return{line:g,col:a-s[g-1]+1};if(a===u)return{line:g+1,col:1}}let f=s.length;return{line:f,col:a-s[f-1]+1}}function I(a,t){let{lineStarts:s,src:i}=y(t);if(!s||!(a>=1)||a>s.length)return null;let f=s[a-1],g=s[a];for(;g&&g>f&&i[g-1]===`
`;)--g;return i.slice(f,g)}function S(a,t){let{start:s,end:i}=a,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:80,g=I(s.line,t);if(!g)return null;let{col:u}=s;if(g.length>f)if(u<=f-10)g=g.substr(0,f-1)+"\u2026";else{let $=Math.round(f/2);g.length>u+$&&(g=g.substr(0,u+$-1)+"\u2026"),u-=g.length-f,g="\u2026"+g.substr(1-f)}let p=1,L="";i&&(i.line===s.line&&u+(i.col-s.col)<=f+1?p=i.col-s.col:(p=Math.min(g.length+1,f)-u,L="\u2026"));let k=u>1?" ".repeat(u-1):"",B="^".repeat(p);return"".concat(g,`
`).concat(k).concat(B).concat(L)}var M=class{static copy(a){return new M(a.start,a.end)}constructor(a,t){this.start=a,this.end=t||a}isEmpty(){return typeof this.start!="number"||!this.end||this.end<=this.start}setOrigRange(a,t){let{start:s,end:i}=this;if(a.length===0||i<=a[0])return this.origStart=s,this.origEnd=i,t;let f=t;for(;f<a.length&&!(a[f]>s);)++f;this.origStart=s+f;let g=f;for(;f<a.length&&!(a[f]>=i);)++f;return this.origEnd=i+f,g}},T=class{static addStringTerminator(a,t,s){if(s[s.length-1]===`
`)return s;let i=T.endOfWhiteSpace(a,t);return i>=a.length||a[i]===`
`?s+`
`:s}static atDocumentBoundary(a,t,s){let i=a[t];if(!i)return!0;let f=a[t-1];if(f&&f!==`
`)return!1;if(s){if(i!==s)return!1}else if(i!==e.DIRECTIVES_END&&i!==e.DOCUMENT_END)return!1;let g=a[t+1],u=a[t+2];if(g!==i||u!==i)return!1;let p=a[t+3];return!p||p===`
`||p===" "||p===" "}static endOfIdentifier(a,t){let s=a[t],i=s==="<",f=i?[`
`," "," ",">"]:[`
`," "," ","[","]","{","}",","];for(;s&&f.indexOf(s)===-1;)s=a[t+=1];return i&&s===">"&&(t+=1),t}static endOfIndent(a,t){let s=a[t];for(;s===" ";)s=a[t+=1];return t}static endOfLine(a,t){let s=a[t];for(;s&&s!==`
`;)s=a[t+=1];return t}static endOfWhiteSpace(a,t){let s=a[t];for(;s===" "||s===" ";)s=a[t+=1];return t}static startOfLine(a,t){let s=a[t-1];if(s===`
`)return t;for(;s&&s!==`
`;)s=a[t-=1];return t+1}static endOfBlockIndent(a,t,s){let i=T.endOfIndent(a,s);if(i>s+t)return i;{let f=T.endOfWhiteSpace(a,i),g=a[f];if(!g||g===`
`)return f}return null}static atBlank(a,t,s){let i=a[t];return i===`
`||i===" "||i===" "||s&&!i}static nextNodeIsIndented(a,t,s){return!a||t<0?!1:t>0?!0:s&&a==="-"}static normalizeOffset(a,t){let s=a[t];return s?s!==`
`&&a[t-1]===`
`?t-1:T.endOfWhiteSpace(a,t):t}static foldNewline(a,t,s){let i=0,f=!1,g="",u=a[t+1];for(;u===" "||u===" "||u===`
`;){switch(u){case`
`:i=0,t+=1,g+=`
`;break;case" ":i<=s&&(f=!0),t=T.endOfWhiteSpace(a,t+2)-1;break;case" ":i+=1,t+=1;break}u=a[t+1]}return g||(g=" "),u&&i<=s&&(f=!0),{fold:g,offset:t,error:f}}constructor(a,t,s){Object.defineProperty(this,"context",{value:s||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=a,this.value=null}getPropValue(a,t,s){if(!this.context)return null;let{src:i}=this.context,f=this.props[a];return f&&i[f.start]===t?i.slice(f.start+(s?1:0),f.end):null}get anchor(){for(let a=0;a<this.props.length;++a){let t=this.getPropValue(a,e.ANCHOR,!0);if(t!=null)return t}return null}get comment(){let a=[];for(let t=0;t<this.props.length;++t){let s=this.getPropValue(t,e.COMMENT,!0);s!=null&&a.push(s)}return a.length>0?a.join(`
`):null}commentHasRequiredWhitespace(a){let{src:t}=this.context;if(this.header&&a===this.header.end||!this.valueRange)return!1;let{end:s}=this.valueRange;return a!==s||T.atBlank(t,s-1)}get hasComment(){if(this.context){let{src:a}=this.context;for(let t=0;t<this.props.length;++t)if(a[this.props[t].start]===e.COMMENT)return!0}return!1}get hasProps(){if(this.context){let{src:a}=this.context;for(let t=0;t<this.props.length;++t)if(a[this.props[t].start]!==e.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return[n.FLOW_MAP,n.FLOW_SEQ,n.QUOTE_DOUBLE,n.QUOTE_SINGLE].indexOf(this.type)!==-1}get rangeAsLinePos(){if(!this.range||!this.context)return;let a=E(this.range.start,this.context.root);if(!a)return;let t=E(this.range.end,this.context.root);return{start:a,end:t}}get rawValue(){if(!this.valueRange||!this.context)return null;let{start:a,end:t}=this.valueRange;return this.context.src.slice(a,t)}get tag(){for(let a=0;a<this.props.length;++a){let t=this.getPropValue(a,e.TAG,!1);if(t!=null){if(t[1]==="<")return{verbatim:t.slice(2,-1)};{let[s,i,f]=t.match(/^(.*!)([^!]*)$/);return{handle:i,suffix:f}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;let{start:a,end:t}=this.valueRange,{src:s}=this.context;for(let i=a;i<t;++i)if(s[i]===`
`)return!0;return!1}parseComment(a){let{src:t}=this.context;if(t[a]===e.COMMENT){let s=T.endOfLine(t,a+1),i=new M(a,s);return this.props.push(i),s}return a}setOrigRanges(a,t){return this.range&&(t=this.range.setOrigRange(a,t)),this.valueRange&&this.valueRange.setOrigRange(a,t),this.props.forEach(s=>s.setOrigRange(a,t)),t}toString(){let{context:{src:a},range:t,value:s}=this;if(s!=null)return s;let i=a.slice(t.start,t.end);return T.addStringTerminator(a,t.end,i)}},P=class extends Error{constructor(a,t,s){if(!s||!(t instanceof T))throw new Error("Invalid arguments for new ".concat(a));super(),this.name=a,this.message=s,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let a=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new M(this.offset,this.offset+1);let t=a&&E(this.offset,a);if(t){let s={line:t.line,col:t.col+1};this.linePos={start:t,end:s}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:t,col:s}=this.linePos.start;this.message+=" at line ".concat(t,", column ").concat(s);let i=a&&S(this.linePos,a);i&&(this.message+=`:
`.concat(i,`
`))}delete this.source}},C=class extends P{constructor(a,t){super("YAMLReferenceError",a,t)}},q=class extends P{constructor(a,t){super("YAMLSemanticError",a,t)}},R=class extends P{constructor(a,t){super("YAMLSyntaxError",a,t)}},j=class extends P{constructor(a,t){super("YAMLWarning",a,t)}};function K(a,t,s){return t in a?Object.defineProperty(a,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[t]=s,a}var m=class extends T{static endOfLine(a,t,s){let i=a[t],f=t;for(;i&&i!==`
`&&!(s&&(i==="["||i==="]"||i==="{"||i==="}"||i===","));){let g=a[f+1];if(i===":"&&(!g||g===`
`||g===" "||g===" "||s&&g===",")||(i===" "||i===" ")&&g==="#")break;f+=1,i=g}return f}get strValue(){if(!this.valueRange||!this.context)return null;let{start:a,end:t}=this.valueRange,{src:s}=this.context,i=s[t-1];for(;a<t&&(i===`
`||i===" "||i===" ");)i=s[--t-1];let f="";for(let u=a;u<t;++u){let p=s[u];if(p===`
`){let{fold:L,offset:k}=T.foldNewline(s,u,-1);f+=L,u=k}else if(p===" "||p===" "){let L=u,k=s[u+1];for(;u<t&&(k===" "||k===" ");)u+=1,k=s[u+1];k!==`
`&&(f+=u>L?s.slice(L,u+1):p)}else f+=p}let g=s[a];switch(g){case" ":{let u="Plain value cannot start with a tab character";return{errors:[new q(this,u)],str:f}}case"@":case"`":{let u="Plain value cannot start with reserved character ".concat(g);return{errors:[new q(this,u)],str:f}}default:return f}}parseBlockValue(a){let{indent:t,inFlow:s,src:i}=this.context,f=a,g=a;for(let u=i[f];u===`
`&&!T.atDocumentBoundary(i,f+1);u=i[f]){let p=T.endOfBlockIndent(i,t,f+1);if(p===null||i[p]==="#")break;i[p]===`
`?f=p:(g=m.endOfLine(i,p,s),f=g)}return this.valueRange.isEmpty()&&(this.valueRange.start=a),this.valueRange.end=g,g}parse(a,t){this.context=a;let{inFlow:s,src:i}=a,f=t,g=i[f];return g&&g!=="#"&&g!==`
`&&(f=m.endOfLine(i,t,s)),this.valueRange=new M(t,f),f=T.endOfWhiteSpace(i,f),f=this.parseComment(f),(!this.hasComment||this.valueRange.isEmpty())&&(f=this.parseBlockValue(f)),f}};r.Char=e,r.Node=T,r.PlainValue=m,r.Range=M,r.Type=n,r.YAMLError=P,r.YAMLReferenceError=C,r.YAMLSemanticError=q,r.YAMLSyntaxError=R,r.YAMLWarning=j,r._defineProperty=K,r.defaultTagPrefix=c,r.defaultTags=h}}),Gn=F({"node_modules/yaml/dist/parse-cst.js"(r){"use strict";D();var e=Me(),n=class extends e.Node{constructor(){super(e.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(m,a){return this.context=m,this.range=new e.Range(a,a+1),a+1}},c=class extends e.Node{constructor(m,a){super(m,a),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(m,a){this.context=m;let{parseNode:t,src:s}=m,{atLineStart:i,lineStart:f}=m;!i&&this.type===e.Type.SEQ_ITEM&&(this.error=new e.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let g=i?a-f:m.indent,u=e.Node.endOfWhiteSpace(s,a+1),p=s[u],L=p==="#",k=[],B=null;for(;p===`
`||p==="#";){if(p==="#"){let Q=e.Node.endOfLine(s,u+1);k.push(new e.Range(u,Q)),u=Q}else{i=!0,f=u+1;let Q=e.Node.endOfWhiteSpace(s,f);s[Q]===`
`&&k.length===0&&(B=new n,f=B.parse({src:s},f)),u=e.Node.endOfIndent(s,f)}p=s[u]}if(e.Node.nextNodeIsIndented(p,u-(f+g),this.type!==e.Type.SEQ_ITEM)?this.node=t({atLineStart:i,inCollection:!1,indent:g,lineStart:f,parent:this},u):p&&f>a+1&&(u=f-1),this.node){if(B){let Q=m.parent.items||m.parent.contents;Q&&Q.push(B)}k.length&&Array.prototype.push.apply(this.props,k),u=this.node.range.end}else if(L){let Q=k[0];this.props.push(Q),u=Q.end}else u=e.Node.endOfLine(s,a+1);let $=this.node?this.node.valueRange.end:u;return this.valueRange=new e.Range(a,$),u}setOrigRanges(m,a){return a=super.setOrigRanges(m,a),this.node?this.node.setOrigRanges(m,a):a}toString(){let{context:{src:m},node:a,range:t,value:s}=this;if(s!=null)return s;let i=a?m.slice(t.start,a.range.start)+String(a):m.slice(t.start,t.end);return e.Node.addStringTerminator(m,t.end,i)}},h=class extends e.Node{constructor(){super(e.Type.COMMENT)}parse(m,a){this.context=m;let t=this.parseComment(a);return this.range=new e.Range(a,t),t}};function d(m){let a=m;for(;a instanceof c;)a=a.node;if(!(a instanceof y))return null;let t=a.items.length,s=-1;for(let g=t-1;g>=0;--g){let u=a.items[g];if(u.type===e.Type.COMMENT){let{indent:p,lineStart:L}=u.context;if(p>0&&u.range.start>=L+p)break;s=g}else if(u.type===e.Type.BLANK_LINE)s=g;else break}if(s===-1)return null;let i=a.items.splice(s,t-s),f=i[0].range.start;for(;a.range.end=f,a.valueRange&&a.valueRange.end>f&&(a.valueRange.end=f),a!==m;)a=a.context.parent;return i}var y=class extends e.Node{static nextContentHasIndent(m,a,t){let s=e.Node.endOfLine(m,a)+1;a=e.Node.endOfWhiteSpace(m,s);let i=m[a];return i?a>=s+t?!0:i!=="#"&&i!==`
`?!1:y.nextContentHasIndent(m,a,t):!1}constructor(m){super(m.type===e.Type.SEQ_ITEM?e.Type.SEQ:e.Type.MAP);for(let t=m.props.length-1;t>=0;--t)if(m.props[t].start<m.context.lineStart){this.props=m.props.slice(0,t+1),m.props=m.props.slice(t+1);let s=m.props[0]||m.valueRange;m.range.start=s.start;break}this.items=[m];let a=d(m);a&&Array.prototype.push.apply(this.items,a)}get includesTrailingLines(){return this.items.length>0}parse(m,a){this.context=m;let{parseNode:t,src:s}=m,i=e.Node.startOfLine(s,a),f=this.items[0];f.context.parent=this,this.valueRange=e.Range.copy(f.valueRange);let g=f.range.start-f.context.lineStart,u=a;u=e.Node.normalizeOffset(s,u);let p=s[u],L=e.Node.endOfWhiteSpace(s,i)===u,k=!1;for(;p;){for(;p===`
`||p==="#";){if(L&&p===`
`&&!k){let Q=new n;if(u=Q.parse({src:s},u),this.valueRange.end=u,u>=s.length){p=null;break}this.items.push(Q),u-=1}else if(p==="#"){if(u<i+g&&!y.nextContentHasIndent(s,u,g))return u;let Q=new h;if(u=Q.parse({indent:g,lineStart:i,src:s},u),this.items.push(Q),this.valueRange.end=u,u>=s.length){p=null;break}}if(i=u+1,u=e.Node.endOfIndent(s,i),e.Node.atBlank(s,u)){let Q=e.Node.endOfWhiteSpace(s,u),z=s[Q];(!z||z===`
`||z==="#")&&(u=Q)}p=s[u],L=!0}if(!p)break;if(u!==i+g&&(L||p!==":")){if(u<i+g){i>a&&(u=i);break}else if(!this.error){let Q="All collection items must start at the same column";this.error=new e.YAMLSyntaxError(this,Q)}}if(f.type===e.Type.SEQ_ITEM){if(p!=="-"){i>a&&(u=i);break}}else if(p==="-"&&!this.error){let Q=s[u+1];if(!Q||Q===`
`||Q===" "||Q===" "){let z="A collection cannot be both a mapping and a sequence";this.error=new e.YAMLSyntaxError(this,z)}}let B=t({atLineStart:L,inCollection:!0,indent:g,lineStart:i,parent:this},u);if(!B)return u;if(this.items.push(B),this.valueRange.end=B.valueRange.end,u=e.Node.normalizeOffset(s,B.range.end),p=s[u],L=!1,k=B.includesTrailingLines,p){let Q=u-1,z=s[Q];for(;z===" "||z===" ";)z=s[--Q];z===`
`&&(i=Q+1,L=!0)}let $=d(B);$&&Array.prototype.push.apply(this.items,$)}return u}setOrigRanges(m,a){return a=super.setOrigRanges(m,a),this.items.forEach(t=>{a=t.setOrigRanges(m,a)}),a}toString(){let{context:{src:m},items:a,range:t,value:s}=this;if(s!=null)return s;let i=m.slice(t.start,a[0].range.start)+String(a[0]);for(let f=1;f<a.length;++f){let g=a[f],{atLineStart:u,indent:p}=g.context;if(u)for(let L=0;L<p;++L)i+=" ";i+=String(g)}return e.Node.addStringTerminator(m,t.end,i)}},E=class extends e.Node{constructor(){super(e.Type.DIRECTIVE),this.name=null}get parameters(){let m=this.rawValue;return m?m.trim().split(/[ \t]+/):[]}parseName(m){let{src:a}=this.context,t=m,s=a[t];for(;s&&s!==`
`&&s!==" "&&s!==" ";)s=a[t+=1];return this.name=a.slice(m,t),t}parseParameters(m){let{src:a}=this.context,t=m,s=a[t];for(;s&&s!==`
`&&s!=="#";)s=a[t+=1];return this.valueRange=new e.Range(m,t),t}parse(m,a){this.context=m;let t=this.parseName(a+1);return t=this.parseParameters(t),t=this.parseComment(t),this.range=new e.Range(a,t),t}},I=class extends e.Node{static startCommentOrEndBlankLine(m,a){let t=e.Node.endOfWhiteSpace(m,a),s=m[t];return s==="#"||s===`
`?t:a}constructor(){super(e.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(m){let{src:a}=this.context;this.directives=[];let t=!0,s=!1,i=m;for(;!e.Node.atDocumentBoundary(a,i,e.Char.DIRECTIVES_END);)switch(i=I.startCommentOrEndBlankLine(a,i),a[i]){case`
`:if(t){let f=new n;i=f.parse({src:a},i),i<a.length&&this.directives.push(f)}else i+=1,t=!0;break;case"#":{let f=new h;i=f.parse({src:a},i),this.directives.push(f),t=!1}break;case"%":{let f=new E;i=f.parse({parent:this,src:a},i),this.directives.push(f),s=!0,t=!1}break;default:return s?this.error=new e.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i}return a[i]?(this.directivesEndMarker=new e.Range(i,i+3),i+3):(s?this.error=new e.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}parseContents(m){let{parseNode:a,src:t}=this.context;this.contents||(this.contents=[]);let s=m;for(;t[s-1]==="-";)s-=1;let i=e.Node.endOfWhiteSpace(t,m),f=s===m;for(this.valueRange=new e.Range(i);!e.Node.atDocumentBoundary(t,i,e.Char.DOCUMENT_END);){switch(t[i]){case`
`:if(f){let g=new n;i=g.parse({src:t},i),i<t.length&&this.contents.push(g)}else i+=1,f=!0;s=i;break;case"#":{let g=new h;i=g.parse({src:t},i),this.contents.push(g),f=!1}break;default:{let g=e.Node.endOfIndent(t,i),p=a({atLineStart:f,indent:-1,inFlow:!1,inCollection:!1,lineStart:s,parent:this},g);if(!p)return this.valueRange.end=g;this.contents.push(p),i=p.range.end,f=!1;let L=d(p);L&&Array.prototype.push.apply(this.contents,L)}}i=I.startCommentOrEndBlankLine(t,i)}if(this.valueRange.end=i,t[i]&&(this.documentEndMarker=new e.Range(i,i+3),i+=3,t[i])){if(i=e.Node.endOfWhiteSpace(t,i),t[i]==="#"){let g=new h;i=g.parse({src:t},i),this.contents.push(g)}switch(t[i]){case`
`:i+=1;break;case void 0:break;default:this.error=new e.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return i}parse(m,a){m.root=this,this.context=m;let{src:t}=m,s=t.charCodeAt(a)===65279?a+1:a;return s=this.parseDirectives(s),s=this.parseContents(s),s}setOrigRanges(m,a){return a=super.setOrigRanges(m,a),this.directives.forEach(t=>{a=t.setOrigRanges(m,a)}),this.directivesEndMarker&&(a=this.directivesEndMarker.setOrigRange(m,a)),this.contents.forEach(t=>{a=t.setOrigRanges(m,a)}),this.documentEndMarker&&(a=this.documentEndMarker.setOrigRange(m,a)),a}toString(){let{contents:m,directives:a,value:t}=this;if(t!=null)return t;let s=a.join("");return m.length>0&&((a.length>0||m[0].type===e.Type.COMMENT)&&(s+=`---
`),s+=m.join("")),s[s.length-1]!==`
`&&(s+=`
`),s}},S=class extends e.Node{parse(m,a){this.context=m;let{src:t}=m,s=e.Node.endOfIdentifier(t,a+1);return this.valueRange=new e.Range(a+1,s),s=e.Node.endOfWhiteSpace(t,s),s=this.parseComment(s),s}},M={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},T=class extends e.Node{constructor(m,a){super(m,a),this.blockIndent=null,this.chomping=M.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===M.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:m,end:a}=this.valueRange,{indent:t,src:s}=this.context;if(this.valueRange.isEmpty())return"";let i=null,f=s[a-1];for(;f===`
`||f===" "||f===" ";){if(a-=1,a<=m){if(this.chomping===M.KEEP)break;return""}f===`
`&&(i=a),f=s[a-1]}let g=a+1;i&&(this.chomping===M.KEEP?(g=i,a=this.valueRange.end):a=i);let u=t+this.blockIndent,p=this.type===e.Type.BLOCK_FOLDED,L=!0,k="",B="",$=!1;for(let Q=m;Q<a;++Q){for(let ie=0;ie<u&&s[Q]===" ";++ie)Q+=1;let z=s[Q];if(z===`
`)B===`
`?k+=`
`:B=`
`;else{let ie=e.Node.endOfLine(s,Q),ue=s.slice(Q,ie);Q=ie,p&&(z===" "||z===" ")&&Q<g?(B===" "?B=`
`:!$&&!L&&B===`
`&&(B=`
`),k+=B+ue,B=ie<a&&s[ie]||"",$=!0):(k+=B+ue,B=p&&Q<g?" ":`
`,$=!1),L&&ue!==""&&(L=!1)}}return this.chomping===M.STRIP?k:k+`
`}parseBlockHeader(m){let{src:a}=this.context,t=m+1,s="";for(;;){let i=a[t];switch(i){case"-":this.chomping=M.STRIP;break;case"+":this.chomping=M.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":s+=i;break;default:return this.blockIndent=Number(s)||null,this.header=new e.Range(m,t),t}t+=1}}parseBlockValue(m){let{indent:a,src:t}=this.context,s=!!this.blockIndent,i=m,f=m,g=1;for(let u=t[i];u===`
`&&(i+=1,!e.Node.atDocumentBoundary(t,i));u=t[i]){let p=e.Node.endOfBlockIndent(t,a,i);if(p===null)break;let L=t[p],k=p-(i+a);if(this.blockIndent){if(L&&L!==`
`&&k<this.blockIndent){if(t[p]==="#")break;if(!this.error){let B=s?"explicit indentation indicator":"first line",$="Block scalars must not be less indented than their ".concat(B);this.error=new e.YAMLSemanticError(this,$)}}}else if(t[p]!==`
`){if(k<g){let B="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new e.YAMLSemanticError(this,B)}this.blockIndent=k}else k>g&&(g=k);t[p]===`
`?i=p:i=f=e.Node.endOfLine(t,p)}return this.chomping!==M.KEEP&&(i=t[f]?f+1:f),this.valueRange=new e.Range(m+1,i),i}parse(m,a){this.context=m;let{src:t}=m,s=this.parseBlockHeader(a);return s=e.Node.endOfWhiteSpace(t,s),s=this.parseComment(s),s=this.parseBlockValue(s),s}setOrigRanges(m,a){return a=super.setOrigRanges(m,a),this.header?this.header.setOrigRange(m,a):a}},P=class extends e.Node{constructor(m,a){super(m,a),this.items=null}prevNodeIsJsonLike(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.items.length,a=this.items[m-1];return!!a&&(a.jsonLike||a.type===e.Type.COMMENT&&this.prevNodeIsJsonLike(m-1))}parse(m,a){this.context=m;let{parseNode:t,src:s}=m,{indent:i,lineStart:f}=m,g=s[a];this.items=[{char:g,offset:a}];let u=e.Node.endOfWhiteSpace(s,a+1);for(g=s[u];g&&g!=="]"&&g!=="}";){switch(g){case`
`:{f=u+1;let p=e.Node.endOfWhiteSpace(s,f);if(s[p]===`
`){let L=new n;f=L.parse({src:s},f),this.items.push(L)}if(u=e.Node.endOfIndent(s,f),u<=f+i&&(g=s[u],u<f+i||g!=="]"&&g!=="}")){let L="Insufficient indentation in flow collection";this.error=new e.YAMLSemanticError(this,L)}}break;case",":this.items.push({char:g,offset:u}),u+=1;break;case"#":{let p=new h;u=p.parse({src:s},u),this.items.push(p)}break;case"?":case":":{let p=s[u+1];if(p===`
`||p===" "||p===" "||p===","||g===":"&&this.prevNodeIsJsonLike()){this.items.push({char:g,offset:u}),u+=1;break}}default:{let p=t({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:f,parent:this},u);if(!p)return this.valueRange=new e.Range(a,u),u;this.items.push(p),u=e.Node.normalizeOffset(s,p.range.end)}}u=e.Node.endOfWhiteSpace(s,u),g=s[u]}return this.valueRange=new e.Range(a,u+1),g&&(this.items.push({char:g,offset:u}),u=e.Node.endOfWhiteSpace(s,u+1),u=this.parseComment(u)),u}setOrigRanges(m,a){return a=super.setOrigRanges(m,a),this.items.forEach(t=>{if(t instanceof e.Node)a=t.setOrigRanges(m,a);else if(m.length===0)t.origOffset=t.offset;else{let s=a;for(;s<m.length&&!(m[s]>t.offset);)++s;t.origOffset=t.offset+s,a=s}}),a}toString(){let{context:{src:m},items:a,range:t,value:s}=this;if(s!=null)return s;let i=a.filter(u=>u instanceof e.Node),f="",g=t.start;return i.forEach(u=>{let p=m.slice(g,u.range.start);g=u.range.end,f+=p+String(u),f[f.length-1]===`
`&&m[g-1]!==`
`&&m[g]===`
`&&(g+=1)}),f+=m.slice(g,t.end),e.Node.addStringTerminator(m,t.end,f)}},C=class extends e.Node{static endOfQuote(m,a){let t=m[a];for(;t&&t!=='"';)a+=t==="\\"?2:1,t=m[a];return a+1}get strValue(){if(!this.valueRange||!this.context)return null;let m=[],{start:a,end:t}=this.valueRange,{indent:s,src:i}=this.context;i[t-1]!=='"'&&m.push(new e.YAMLSyntaxError(this,'Missing closing "quote'));let f="";for(let g=a+1;g<t-1;++g){let u=i[g];if(u===`
`){e.Node.atDocumentBoundary(i,g+1)&&m.push(new e.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:p,offset:L,error:k}=e.Node.foldNewline(i,g,s);f+=p,g=L,k&&m.push(new e.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if(u==="\\")switch(g+=1,i[g]){case"0":f+="\0";break;case"a":f+="\x07";break;case"b":f+="\b";break;case"e":f+="\x1B";break;case"f":f+="\f";break;case"n":f+=`
`;break;case"r":f+="\r";break;case"t":f+=" ";break;case"v":f+="\v";break;case"N":f+="\x85";break;case"_":f+="\xA0";break;case"L":f+="\u2028";break;case"P":f+="\u2029";break;case" ":f+=" ";break;case'"':f+='"';break;case"/":f+="/";break;case"\\":f+="\\";break;case" ":f+=" ";break;case"x":f+=this.parseCharCode(g+1,2,m),g+=2;break;case"u":f+=this.parseCharCode(g+1,4,m),g+=4;break;case"U":f+=this.parseCharCode(g+1,8,m),g+=8;break;case`
`:for(;i[g+1]===" "||i[g+1]===" ";)g+=1;break;default:m.push(new e.YAMLSyntaxError(this,"Invalid escape sequence ".concat(i.substr(g-1,2)))),f+="\\"+i[g]}else if(u===" "||u===" "){let p=g,L=i[g+1];for(;L===" "||L===" ";)g+=1,L=i[g+1];L!==`
`&&(f+=g>p?i.slice(p,g+1):u)}else f+=u}return m.length>0?{errors:m,str:f}:f}parseCharCode(m,a,t){let{src:s}=this.context,i=s.substr(m,a),g=i.length===a&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(g)?(t.push(new e.YAMLSyntaxError(this,"Invalid escape sequence ".concat(s.substr(m-2,a+2)))),s.substr(m-2,a+2)):String.fromCodePoint(g)}parse(m,a){this.context=m;let{src:t}=m,s=C.endOfQuote(t,a+1);return this.valueRange=new e.Range(a,s),s=e.Node.endOfWhiteSpace(t,s),s=this.parseComment(s),s}},q=class extends e.Node{static endOfQuote(m,a){let t=m[a];for(;t;)if(t==="'"){if(m[a+1]!=="'")break;t=m[a+=2]}else t=m[a+=1];return a+1}get strValue(){if(!this.valueRange||!this.context)return null;let m=[],{start:a,end:t}=this.valueRange,{indent:s,src:i}=this.context;i[t-1]!=="'"&&m.push(new e.YAMLSyntaxError(this,"Missing closing 'quote"));let f="";for(let g=a+1;g<t-1;++g){let u=i[g];if(u===`
`){e.Node.atDocumentBoundary(i,g+1)&&m.push(new e.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:p,offset:L,error:k}=e.Node.foldNewline(i,g,s);f+=p,g=L,k&&m.push(new e.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if(u==="'")f+=u,g+=1,i[g]!=="'"&&m.push(new e.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(u===" "||u===" "){let p=g,L=i[g+1];for(;L===" "||L===" ";)g+=1,L=i[g+1];L!==`
`&&(f+=g>p?i.slice(p,g+1):u)}else f+=u}return m.length>0?{errors:m,str:f}:f}parse(m,a){this.context=m;let{src:t}=m,s=q.endOfQuote(t,a+1);return this.valueRange=new e.Range(a,s),s=e.Node.endOfWhiteSpace(t,s),s=this.parseComment(s),s}};function R(m,a){switch(m){case e.Type.ALIAS:return new S(m,a);case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:return new T(m,a);case e.Type.FLOW_MAP:case e.Type.FLOW_SEQ:return new P(m,a);case e.Type.MAP_KEY:case e.Type.MAP_VALUE:case e.Type.SEQ_ITEM:return new c(m,a);case e.Type.COMMENT:case e.Type.PLAIN:return new e.PlainValue(m,a);case e.Type.QUOTE_DOUBLE:return new C(m,a);case e.Type.QUOTE_SINGLE:return new q(m,a);default:return null}}var j=class{static parseType(m,a,t){switch(m[a]){case"*":return e.Type.ALIAS;case">":return e.Type.BLOCK_FOLDED;case"|":return e.Type.BLOCK_LITERAL;case"{":return e.Type.FLOW_MAP;case"[":return e.Type.FLOW_SEQ;case"?":return!t&&e.Node.atBlank(m,a+1,!0)?e.Type.MAP_KEY:e.Type.PLAIN;case":":return!t&&e.Node.atBlank(m,a+1,!0)?e.Type.MAP_VALUE:e.Type.PLAIN;case"-":return!t&&e.Node.atBlank(m,a+1,!0)?e.Type.SEQ_ITEM:e.Type.PLAIN;case'"':return e.Type.QUOTE_DOUBLE;case"'":return e.Type.QUOTE_SINGLE;default:return e.Type.PLAIN}}constructor(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{atLineStart:a,inCollection:t,inFlow:s,indent:i,lineStart:f,parent:g}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e._defineProperty(this,"parseNode",(u,p)=>{if(e.Node.atDocumentBoundary(this.src,p))return null;let L=new j(this,u),{props:k,type:B,valueStart:$}=L.parseProps(p),Q=R(B,k),z=Q.parse(L,$);if(Q.range=new e.Range(p,z),z<=p&&(Q.error=new Error("Node#parse consumed no characters"),Q.error.parseEnd=z,Q.error.source=Q,Q.range.end=p+1),L.nodeStartsCollection(Q)){!Q.error&&!L.atLineStart&&L.parent.type===e.Type.DOCUMENT&&(Q.error=new e.YAMLSyntaxError(Q,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let ie=new y(Q);return z=ie.parse(new j(L),z),ie.range=new e.Range(p,z),ie}return Q}),this.atLineStart=a!=null?a:m.atLineStart||!1,this.inCollection=t!=null?t:m.inCollection||!1,this.inFlow=s!=null?s:m.inFlow||!1,this.indent=i!=null?i:m.indent,this.lineStart=f!=null?f:m.lineStart,this.parent=g!=null?g:m.parent||{},this.root=m.root,this.src=m.src}nodeStartsCollection(m){let{inCollection:a,inFlow:t,src:s}=this;if(a||t)return!1;if(m instanceof c)return!0;let i=m.range.end;return s[i]===`
`||s[i-1]===`
`?!1:(i=e.Node.endOfWhiteSpace(s,i),s[i]===":")}parseProps(m){let{inFlow:a,parent:t,src:s}=this,i=[],f=!1;m=this.atLineStart?e.Node.endOfIndent(s,m):e.Node.endOfWhiteSpace(s,m);let g=s[m];for(;g===e.Char.ANCHOR||g===e.Char.COMMENT||g===e.Char.TAG||g===`
`;){if(g===`
`){let p=m,L;do L=p+1,p=e.Node.endOfIndent(s,L);while(s[p]===`
`);let k=p-(L+this.indent),B=t.type===e.Type.SEQ_ITEM&&t.context.atLineStart;if(s[p]!=="#"&&!e.Node.nextNodeIsIndented(s[p],k,!B))break;this.atLineStart=!0,this.lineStart=L,f=!1,m=p}else if(g===e.Char.COMMENT){let p=e.Node.endOfLine(s,m+1);i.push(new e.Range(m,p)),m=p}else{let p=e.Node.endOfIdentifier(s,m+1);g===e.Char.TAG&&s[p]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(m+1,p+13))&&(p=e.Node.endOfIdentifier(s,p+5)),i.push(new e.Range(m,p)),f=!0,m=e.Node.endOfWhiteSpace(s,p)}g=s[m]}f&&g===":"&&e.Node.atBlank(s,m+1,!0)&&(m-=1);let u=j.parseType(s,m,a);return{props:i,type:u,valueStart:m}}};function K(m){let a=[];m.indexOf("\r")!==-1&&(m=m.replace(/\r\n?/g,(i,f)=>(i.length>1&&a.push(f),`
`)));let t=[],s=0;do{let i=new I,f=new j({src:m});s=i.parse(f,s),t.push(i)}while(s<m.length);return t.setOrigRanges=()=>{if(a.length===0)return!1;for(let f=1;f<a.length;++f)a[f]-=f;let i=0;for(let f=0;f<t.length;++f)i=t[f].setOrigRanges(a,i);return a.splice(0,a.length),!0},t.toString=()=>t.join(`...
`),t}r.parse=K}}),ke=F({"node_modules/yaml/dist/resolveSeq-d03cb037.js"(r){"use strict";D();var e=Me();function n(o,l,_){if(!_)return o;let v=_.replace(/[\s\S]^/gm,"$&".concat(l,"#"));return"#".concat(v,`
`).concat(l).concat(o)}function c(o,l,_){return _?_.indexOf(`
`)===-1?"".concat(o," #").concat(_):"".concat(o,`
`)+_.replace(/^/gm,"".concat(l||"","#")):o}var h=class{};function d(o,l,_){if(Array.isArray(o))return o.map((v,b)=>d(v,String(b),_));if(o&&typeof o.toJSON=="function"){let v=_&&_.anchors&&_.anchors.get(o);v&&(_.onCreate=w=>{v.res=w,delete _.onCreate});let b=o.toJSON(l,_);return v&&_.onCreate&&_.onCreate(b),b}return(!_||!_.keep)&&typeof o=="bigint"?Number(o):o}var y=class extends h{constructor(o){super(),this.value=o}toJSON(o,l){return l&&l.keep?this.value:d(this.value,o,l)}toString(){return String(this.value)}};function E(o,l,_){let v=_;for(let b=l.length-1;b>=0;--b){let w=l[b];if(Number.isInteger(w)&&w>=0){let A=[];A[w]=v,v=A}else{let A={};Object.defineProperty(A,w,{value:v,writable:!0,enumerable:!0,configurable:!0}),v=A}}return o.createNode(v,!1)}var I=o=>o==null||typeof o=="object"&&o[Symbol.iterator]().next().done,S=class extends h{constructor(o){super(),e._defineProperty(this,"items",[]),this.schema=o}addIn(o,l){if(I(o))this.add(l);else{let[_,...v]=o,b=this.get(_,!0);if(b instanceof S)b.addIn(v,l);else if(b===void 0&&this.schema)this.set(_,E(this.schema,v,l));else throw new Error("Expected YAML collection at ".concat(_,". Remaining path: ").concat(v))}}deleteIn(o){let[l,..._]=o;if(_.length===0)return this.delete(l);let v=this.get(l,!0);if(v instanceof S)return v.deleteIn(_);throw new Error("Expected YAML collection at ".concat(l,". Remaining path: ").concat(_))}getIn(o,l){let[_,...v]=o,b=this.get(_,!0);return v.length===0?!l&&b instanceof y?b.value:b:b instanceof S?b.getIn(v,l):void 0}hasAllNullValues(){return this.items.every(o=>{if(!o||o.type!=="PAIR")return!1;let l=o.value;return l==null||l instanceof y&&l.value==null&&!l.commentBefore&&!l.comment&&!l.tag})}hasIn(o){let[l,..._]=o;if(_.length===0)return this.has(l);let v=this.get(l,!0);return v instanceof S?v.hasIn(_):!1}setIn(o,l){let[_,...v]=o;if(v.length===0)this.set(_,l);else{let b=this.get(_,!0);if(b instanceof S)b.setIn(v,l);else if(b===void 0&&this.schema)this.set(_,E(this.schema,v,l));else throw new Error("Expected YAML collection at ".concat(_,". Remaining path: ").concat(v))}}toJSON(){return null}toString(o,l,_,v){let{blockItem:b,flowChars:w,isMap:A,itemIndent:N}=l,{indent:Y,indentStep:W,stringify:U}=o,H=this.type===e.Type.FLOW_MAP||this.type===e.Type.FLOW_SEQ||o.inFlow;H&&(N+=W);let oe=A&&this.hasAllNullValues();o=Object.assign({},o,{allNullValues:oe,indent:N,inFlow:H,type:null});let le=!1,Z=!1,ee=this.items.reduce((de,re,he)=>{let ce;re&&(!le&&re.spaceBefore&&de.push({type:"comment",str:""}),re.commentBefore&&re.commentBefore.match(/^.*$/gm).forEach(Ie=>{de.push({type:"comment",str:"#".concat(Ie)})}),re.comment&&(ce=re.comment),H&&(!le&&re.spaceBefore||re.commentBefore||re.comment||re.key&&(re.key.commentBefore||re.key.comment)||re.value&&(re.value.commentBefore||re.value.comment))&&(Z=!0)),le=!1;let fe=U(re,o,()=>ce=null,()=>le=!0);return H&&!Z&&fe.includes(`
`)&&(Z=!0),H&&he<this.items.length-1&&(fe+=","),fe=c(fe,N,ce),le&&(ce||H)&&(le=!1),de.push({type:"item",str:fe}),de},[]),X;if(ee.length===0)X=w.start+w.end;else if(H){let{start:de,end:re}=w,he=ee.map(ce=>ce.str);if(Z||he.reduce((ce,fe)=>ce+fe.length+2,2)>S.maxFlowStringSingleLineLength){X=de;for(let ce of he)X+=ce?`
`.concat(W).concat(Y).concat(ce):`
`;X+=`
`.concat(Y).concat(re)}else X="".concat(de," ").concat(he.join(" ")," ").concat(re)}else{let de=ee.map(b);X=de.shift();for(let re of de)X+=re?`
`.concat(Y).concat(re):`
`}return this.comment?(X+=`
`+this.comment.replace(/^/gm,"".concat(Y,"#")),_&&_()):le&&v&&v(),X}};e._defineProperty(S,"maxFlowStringSingleLineLength",60);function M(o){let l=o instanceof y?o.value:o;return l&&typeof l=="string"&&(l=Number(l)),Number.isInteger(l)&&l>=0?l:null}var T=class extends S{add(o){this.items.push(o)}delete(o){let l=M(o);return typeof l!="number"?!1:this.items.splice(l,1).length>0}get(o,l){let _=M(o);if(typeof _!="number")return;let v=this.items[_];return!l&&v instanceof y?v.value:v}has(o){let l=M(o);return typeof l=="number"&&l<this.items.length}set(o,l){let _=M(o);if(typeof _!="number")throw new Error("Expected a valid index, not ".concat(o,"."));this.items[_]=l}toJSON(o,l){let _=[];l&&l.onCreate&&l.onCreate(_);let v=0;for(let b of this.items)_.push(d(b,String(v++),l));return _}toString(o,l,_){return o?super.toString(o,{blockItem:v=>v.type==="comment"?v.str:"- ".concat(v.str),flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(o.indent||"")+" "},l,_):JSON.stringify(this)}},P=(o,l,_)=>l===null?"":typeof l!="object"?String(l):o instanceof h&&_&&_.doc?o.toString({anchors:Object.create(null),doc:_.doc,indent:"",indentStep:_.indentStep,inFlow:!0,inStringifyKey:!0,stringify:_.stringify}):JSON.stringify(l),C=class extends h{constructor(o){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;super(),this.key=o,this.value=l,this.type=C.Type.PAIR}get commentBefore(){return this.key instanceof h?this.key.commentBefore:void 0}set commentBefore(o){if(this.key==null&&(this.key=new y(null)),this.key instanceof h)this.key.commentBefore=o;else{let l="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(l)}}addToJSMap(o,l){let _=d(this.key,"",o);if(l instanceof Map){let v=d(this.value,_,o);l.set(_,v)}else if(l instanceof Set)l.add(_);else{let v=P(this.key,_,o),b=d(this.value,v,o);v in l?Object.defineProperty(l,v,{value:b,writable:!0,enumerable:!0,configurable:!0}):l[v]=b}return l}toJSON(o,l){let _=l&&l.mapAsMap?new Map:{};return this.addToJSMap(l,_)}toString(o,l,_){if(!o||!o.doc)return JSON.stringify(this);let{indent:v,indentSeq:b,simpleKeys:w}=o.doc.options,{key:A,value:N}=this,Y=A instanceof h&&A.comment;if(w){if(Y)throw new Error("With simple keys, key nodes cannot have comments");if(A instanceof S){let ce="With simple keys, collection cannot be used as a key value";throw new Error(ce)}}let W=!w&&(!A||Y||(A instanceof h?A instanceof S||A.type===e.Type.BLOCK_FOLDED||A.type===e.Type.BLOCK_LITERAL:typeof A=="object")),{doc:U,indent:H,indentStep:oe,stringify:le}=o;o=Object.assign({},o,{implicitKey:!W,indent:H+oe});let Z=!1,ee=le(A,o,()=>Y=null,()=>Z=!0);if(ee=c(ee,o.indent,Y),!W&&ee.length>1024){if(w)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");W=!0}if(o.allNullValues&&!w)return this.comment?(ee=c(ee,o.indent,this.comment),l&&l()):Z&&!Y&&_&&_(),o.inFlow&&!W?ee:"? ".concat(ee);ee=W?"? ".concat(ee,`
`).concat(H,":"):"".concat(ee,":"),this.comment&&(ee=c(ee,o.indent,this.comment),l&&l());let X="",de=null;if(N instanceof h){if(N.spaceBefore&&(X=`
`),N.commentBefore){let ce=N.commentBefore.replace(/^/gm,"".concat(o.indent,"#"));X+=`
`.concat(ce)}de=N.comment}else N&&typeof N=="object"&&(N=U.schema.createNode(N,!0));o.implicitKey=!1,!W&&!this.comment&&N instanceof y&&(o.indentAtStart=ee.length+1),Z=!1,!b&&v>=2&&!o.inFlow&&!W&&N instanceof T&&N.type!==e.Type.FLOW_SEQ&&!N.tag&&!U.anchors.getName(N)&&(o.indent=o.indent.substr(2));let re=le(N,o,()=>de=null,()=>Z=!0),he=" ";return X||this.comment?he="".concat(X,`
`).concat(o.indent):!W&&N instanceof S?(!(re[0]==="["||re[0]==="{")||re.includes(`
`))&&(he=`
`.concat(o.indent)):re[0]===`
`&&(he=""),Z&&!de&&_&&_(),c(ee+he+re,o.indent,de)}};e._defineProperty(C,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var q=(o,l)=>{if(o instanceof R){let _=l.get(o.source);return _.count*_.aliasCount}else if(o instanceof S){let _=0;for(let v of o.items){let b=q(v,l);b>_&&(_=b)}return _}else if(o instanceof C){let _=q(o.key,l),v=q(o.value,l);return Math.max(_,v)}return 1},R=class extends h{static stringify(o,l){let{range:_,source:v}=o,{anchors:b,doc:w,implicitKey:A,inStringifyKey:N}=l,Y=Object.keys(b).find(U=>b[U]===v);if(!Y&&N&&(Y=w.anchors.getName(v)||w.anchors.newName()),Y)return"*".concat(Y).concat(A?" ":"");let W=w.anchors.getName(v)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(W," [").concat(_,"]"))}constructor(o){super(),this.source=o,this.type=e.Type.ALIAS}set tag(o){throw new Error("Alias nodes cannot have tags")}toJSON(o,l){if(!l)return d(this.source,o,l);let{anchors:_,maxAliasCount:v}=l,b=_.get(this.source);if(!b||b.res===void 0){let w="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new e.YAMLReferenceError(this.cstNode,w):new ReferenceError(w)}if(v>=0&&(b.count+=1,b.aliasCount===0&&(b.aliasCount=q(this.source,_)),b.count*b.aliasCount>v)){let w="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new e.YAMLReferenceError(this.cstNode,w):new ReferenceError(w)}return b.res}toString(o){return R.stringify(this,o)}};e._defineProperty(R,"default",!0);function j(o,l){let _=l instanceof y?l.value:l;for(let v of o)if(v instanceof C&&(v.key===l||v.key===_||v.key&&v.key.value===_))return v}var K=class extends S{add(o,l){o?o instanceof C||(o=new C(o.key||o,o.value)):o=new C(o);let _=j(this.items,o.key),v=this.schema&&this.schema.sortMapEntries;if(_)if(l)_.value=o.value;else throw new Error("Key ".concat(o.key," already set"));else if(v){let b=this.items.findIndex(w=>v(o,w)<0);b===-1?this.items.push(o):this.items.splice(b,0,o)}else this.items.push(o)}delete(o){let l=j(this.items,o);return l?this.items.splice(this.items.indexOf(l),1).length>0:!1}get(o,l){let _=j(this.items,o),v=_&&_.value;return!l&&v instanceof y?v.value:v}has(o){return!!j(this.items,o)}set(o,l){this.add(new C(o,l),!0)}toJSON(o,l,_){let v=_?new _:l&&l.mapAsMap?new Map:{};l&&l.onCreate&&l.onCreate(v);for(let b of this.items)b.addToJSMap(l,v);return v}toString(o,l,_){if(!o)return JSON.stringify(this);for(let v of this.items)if(!(v instanceof C))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(v)," instead"));return super.toString(o,{blockItem:v=>v.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:o.indent||""},l,_)}},m="<<",a=class extends C{constructor(o){if(o instanceof C){let l=o.value;l instanceof T||(l=new T,l.items.push(o.value),l.range=o.value.range),super(o.key,l),this.range=o.range}else super(new y(m),new T);this.type=C.Type.MERGE_PAIR}addToJSMap(o,l){for(let{source:_}of this.value.items){if(!(_ instanceof K))throw new Error("Merge sources must be maps");let v=_.toJSON(null,o,Map);for(let[b,w]of v)l instanceof Map?l.has(b)||l.set(b,w):l instanceof Set?l.add(b):Object.prototype.hasOwnProperty.call(l,b)||Object.defineProperty(l,b,{value:w,writable:!0,enumerable:!0,configurable:!0})}return l}toString(o,l){let _=this.value;if(_.items.length>1)return super.toString(o,l);this.value=_.items[0];let v=super.toString(o,l);return this.value=_,v}},t={defaultType:e.Type.BLOCK_LITERAL,lineWidth:76},s={trueStr:"true",falseStr:"false"},i={asBigInt:!1},f={nullStr:"null"},g={defaultType:e.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function u(o,l,_){for(let{format:v,test:b,resolve:w}of l)if(b){let A=o.match(b);if(A){let N=w.apply(null,A);return N instanceof y||(N=new y(N)),v&&(N.format=v),N}}return _&&(o=_(o)),new y(o)}var p="flow",L="block",k="quoted",B=(o,l)=>{let _=o[l+1];for(;_===" "||_===" ";){do _=o[l+=1];while(_&&_!==`
`);_=o[l+1]}return l};function $(o,l,_,v){let{indentAtStart:b,lineWidth:w=80,minContentWidth:A=20,onFold:N,onOverflow:Y}=v;if(!w||w<0)return o;let W=Math.max(1+A,1+w-l.length);if(o.length<=W)return o;let U=[],H={},oe=w-l.length;typeof b=="number"&&(b>w-Math.max(2,A)?U.push(0):oe=w-b);let le,Z,ee=!1,X=-1,de=-1,re=-1;_===L&&(X=B(o,X),X!==-1&&(oe=X+W));for(let ce;ce=o[X+=1];){if(_===k&&ce==="\\"){switch(de=X,o[X+1]){case"x":X+=3;break;case"u":X+=5;break;case"U":X+=9;break;default:X+=1}re=X}if(ce===`
`)_===L&&(X=B(o,X)),oe=X+W,le=void 0;else{if(ce===" "&&Z&&Z!==" "&&Z!==`
`&&Z!==" "){let fe=o[X+1];fe&&fe!==" "&&fe!==`
`&&fe!==" "&&(le=X)}if(X>=oe)if(le)U.push(le),oe=le+W,le=void 0;else if(_===k){for(;Z===" "||Z===" ";)Z=ce,ce=o[X+=1],ee=!0;let fe=X>re+1?X-2:de-1;if(H[fe])return o;U.push(fe),H[fe]=!0,oe=fe+W,le=void 0}else ee=!0}Z=ce}if(ee&&Y&&Y(),U.length===0)return o;N&&N();let he=o.slice(0,U[0]);for(let ce=0;ce<U.length;++ce){let fe=U[ce],Ie=U[ce+1]||o.length;fe===0?he=`
`.concat(l).concat(o.slice(0,Ie)):(_===k&&H[fe]&&(he+="".concat(o[fe],"\\")),he+=`
`.concat(l).concat(o.slice(fe+1,Ie)))}return he}var Q=o=>{let{indentAtStart:l}=o;return l?Object.assign({indentAtStart:l},g.fold):g.fold},z=o=>/^(%|---|\.\.\.)/m.test(o);function ie(o,l,_){if(!l||l<0)return!1;let v=l-_,b=o.length;if(b<=v)return!1;for(let w=0,A=0;w<b;++w)if(o[w]===`
`){if(w-A>v)return!0;if(A=w+1,b-A<=v)return!1}return!0}function ue(o,l){let{implicitKey:_}=l,{jsonEncoding:v,minMultiLineLength:b}=g.doubleQuoted,w=JSON.stringify(o);if(v)return w;let A=l.indent||(z(o)?" ":""),N="",Y=0;for(let W=0,U=w[W];U;U=w[++W])if(U===" "&&w[W+1]==="\\"&&w[W+2]==="n"&&(N+=w.slice(Y,W)+"\\ ",W+=1,Y=W,U="\\"),U==="\\")switch(w[W+1]){case"u":{N+=w.slice(Y,W);let H=w.substr(W+2,4);switch(H){case"0000":N+="\\0";break;case"0007":N+="\\a";break;case"000b":N+="\\v";break;case"001b":N+="\\e";break;case"0085":N+="\\N";break;case"00a0":N+="\\_";break;case"2028":N+="\\L";break;case"2029":N+="\\P";break;default:H.substr(0,2)==="00"?N+="\\x"+H.substr(2):N+=w.substr(W,6)}W+=5,Y=W+1}break;case"n":if(_||w[W+2]==='"'||w.length<b)W+=1;else{for(N+=w.slice(Y,W)+`
`;w[W+2]==="\\"&&w[W+3]==="n"&&w[W+4]!=='"';)N+=`
`,W+=2;N+=A,w[W+2]===" "&&(N+="\\"),W+=1,Y=W+1}break;default:W+=1}return N=Y?N+w.slice(Y):w,_?N:$(N,A,k,Q(l))}function pe(o,l){if(l.implicitKey){if(/\n/.test(o))return ue(o,l)}else if(/[ \t]\n|\n[ \t]/.test(o))return ue(o,l);let _=l.indent||(z(o)?" ":""),v="'"+o.replace(/'/g,"''").replace(/\n+/g,`$&
`.concat(_))+"'";return l.implicitKey?v:$(v,_,p,Q(l))}function ge(o,l,_,v){let{comment:b,type:w,value:A}=o;if(/\n[\t ]+$/.test(A)||/^\s*$/.test(A))return ue(A,l);let N=l.indent||(l.forceBlockIndent||z(A)?" ":""),Y=N?"2":"1",W=w===e.Type.BLOCK_FOLDED?!1:w===e.Type.BLOCK_LITERAL?!0:!ie(A,g.fold.lineWidth,N.length),U=W?"|":">";if(!A)return U+`
`;let H="",oe="";if(A=A.replace(/[\n\t ]*$/,Z=>{let ee=Z.indexOf(`
`);return ee===-1?U+="-":(A===Z||ee!==Z.length-1)&&(U+="+",v&&v()),oe=Z.replace(/\n$/,""),""}).replace(/^[\n ]*/,Z=>{Z.indexOf(" ")!==-1&&(U+=Y);let ee=Z.match(/ +$/);return ee?(H=Z.slice(0,-ee[0].length),ee[0]):(H=Z,"")}),oe&&(oe=oe.replace(/\n+(?!\n|$)/g,"$&".concat(N))),H&&(H=H.replace(/\n+/g,"$&".concat(N))),b&&(U+=" #"+b.replace(/ ?[\r\n]+/g," "),_&&_()),!A)return"".concat(U).concat(Y,`
`).concat(N).concat(oe);if(W)return A=A.replace(/\n+/g,"$&".concat(N)),"".concat(U,`
`).concat(N).concat(H).concat(A).concat(oe);A=A.replace(/\n+/g,`
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(N));let le=$("".concat(H).concat(A).concat(oe),N,L,g.fold);return"".concat(U,`
`).concat(N).concat(le)}function O(o,l,_,v){let{comment:b,type:w,value:A}=o,{actualString:N,implicitKey:Y,indent:W,inFlow:U}=l;if(Y&&/[\n[\]{},]/.test(A)||U&&/[[\]{},]/.test(A))return ue(A,l);if(!A||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(A))return Y||U||A.indexOf(`
`)===-1?A.indexOf('"')!==-1&&A.indexOf("'")===-1?pe(A,l):ue(A,l):ge(o,l,_,v);if(!Y&&!U&&w!==e.Type.PLAIN&&A.indexOf(`
`)!==-1)return ge(o,l,_,v);if(W===""&&z(A))return l.forceBlockIndent=!0,ge(o,l,_,v);let H=A.replace(/\n+/g,`$&
`.concat(W));if(N){let{tags:le}=l.doc.schema;if(typeof u(H,le,le.scalarFallback).value!="string")return ue(A,l)}let oe=Y?H:$(H,W,p,Q(l));return b&&!U&&(oe.indexOf(`
`)!==-1||b.indexOf(`
`)!==-1)?(_&&_(),n(oe,W,b)):oe}function V(o,l,_,v){let{defaultType:b}=g,{implicitKey:w,inFlow:A}=l,{type:N,value:Y}=o;typeof Y!="string"&&(Y=String(Y),o=Object.assign({},o,{value:Y}));let W=H=>{switch(H){case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:return ge(o,l,_,v);case e.Type.QUOTE_DOUBLE:return ue(Y,l);case e.Type.QUOTE_SINGLE:return pe(Y,l);case e.Type.PLAIN:return O(o,l,_,v);default:return null}};(N!==e.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(Y)||(w||A)&&(N===e.Type.BLOCK_FOLDED||N===e.Type.BLOCK_LITERAL))&&(N=e.Type.QUOTE_DOUBLE);let U=W(N);if(U===null&&(U=W(b),U===null))throw new Error("Unsupported default string type ".concat(b));return U}function J(o){let{format:l,minFractionDigits:_,tag:v,value:b}=o;if(typeof b=="bigint")return String(b);if(!isFinite(b))return isNaN(b)?".nan":b<0?"-.inf":".inf";let w=JSON.stringify(b);if(!l&&_&&(!v||v==="tag:yaml.org,2002:float")&&/^\d/.test(w)){let A=w.indexOf(".");A<0&&(A=w.length,w+=".");let N=_-(w.length-A-1);for(;N-- >0;)w+="0"}return w}function x(o,l){let _,v;switch(l.type){case e.Type.FLOW_MAP:_="}",v="flow map";break;case e.Type.FLOW_SEQ:_="]",v="flow sequence";break;default:o.push(new e.YAMLSemanticError(l,"Not a flow collection!?"));return}let b;for(let w=l.items.length-1;w>=0;--w){let A=l.items[w];if(!A||A.type!==e.Type.COMMENT){b=A;break}}if(b&&b.char!==_){let w="Expected ".concat(v," to end with ").concat(_),A;typeof b.offset=="number"?(A=new e.YAMLSemanticError(l,w),A.offset=b.offset+1):(A=new e.YAMLSemanticError(b,w),b.range&&b.range.end&&(A.offset=b.range.end-b.range.start)),o.push(A)}}function G(o,l){let _=l.context.src[l.range.start-1];if(_!==`
`&&_!==" "&&_!==" "){let v="Comments must be separated from other tokens by white space characters";o.push(new e.YAMLSemanticError(l,v))}}function ne(o,l){let _=String(l),v=_.substr(0,8)+"..."+_.substr(-8);return new e.YAMLSemanticError(o,'The "'.concat(v,'" key is too long'))}function _e(o,l){for(let{afterKey:_,before:v,comment:b}of l){let w=o.items[v];w?(_&&w.value&&(w=w.value),b===void 0?(_||!w.commentBefore)&&(w.spaceBefore=!0):w.commentBefore?w.commentBefore+=`
`+b:w.commentBefore=b):b!==void 0&&(o.comment?o.comment+=`
`+b:o.comment=b)}}function ye(o,l){let _=l.strValue;return _?typeof _=="string"?_:(_.errors.forEach(v=>{v.source||(v.source=l),o.errors.push(v)}),_.str):""}function be(o,l){let{handle:_,suffix:v}=l.tag,b=o.tagPrefixes.find(w=>w.handle===_);if(!b){let w=o.getDefaults().tagPrefixes;if(w&&(b=w.find(A=>A.handle===_)),!b)throw new e.YAMLSemanticError(l,"The ".concat(_," tag handle is non-default and was not declared."))}if(!v)throw new e.YAMLSemanticError(l,"The ".concat(_," tag has no suffix."));if(_==="!"&&(o.version||o.options.version)==="1.0"){if(v[0]==="^")return o.warnings.push(new e.YAMLWarning(l,"YAML 1.0 ^ tag expansion is not supported")),v;if(/[:/]/.test(v)){let w=v.match(/^([a-z0-9-]+)\/(.*)/i);return w?"tag:".concat(w[1],".yaml.org,2002:").concat(w[2]):"tag:".concat(v)}}return b.prefix+decodeURIComponent(v)}function ve(o,l){let{tag:_,type:v}=l,b=!1;if(_){let{handle:w,suffix:A,verbatim:N}=_;if(N){if(N!=="!"&&N!=="!!")return N;let Y="Verbatim tags aren't resolved, so ".concat(N," is invalid.");o.errors.push(new e.YAMLSemanticError(l,Y))}else if(w==="!"&&!A)b=!0;else try{return be(o,l)}catch(Y){o.errors.push(Y)}}switch(v){case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:case e.Type.QUOTE_DOUBLE:case e.Type.QUOTE_SINGLE:return e.defaultTags.STR;case e.Type.FLOW_MAP:case e.Type.MAP:return e.defaultTags.MAP;case e.Type.FLOW_SEQ:case e.Type.SEQ:return e.defaultTags.SEQ;case e.Type.PLAIN:return b?e.defaultTags.STR:null;default:return null}}function Ne(o,l,_){let{tags:v}=o.schema,b=[];for(let A of v)if(A.tag===_)if(A.test)b.push(A);else{let N=A.resolve(o,l);return N instanceof S?N:new y(N)}let w=ye(o,l);return typeof w=="string"&&b.length>0?u(w,b,v.scalarFallback):null}function Pe(o){let{type:l}=o;switch(l){case e.Type.FLOW_MAP:case e.Type.MAP:return e.defaultTags.MAP;case e.Type.FLOW_SEQ:case e.Type.SEQ:return e.defaultTags.SEQ;default:return e.defaultTags.STR}}function ct(o,l,_){try{let v=Ne(o,l,_);if(v)return _&&l.tag&&(v.tag=_),v}catch(v){return v.source||(v.source=l),o.errors.push(v),null}try{let v=Pe(l);if(!v)throw new Error("The tag ".concat(_," is unavailable"));let b="The tag ".concat(_," is unavailable, falling back to ").concat(v);o.warnings.push(new e.YAMLWarning(l,b));let w=Ne(o,l,v);return w.tag=_,w}catch(v){let b=new e.YAMLReferenceError(l,v.message);return b.stack=v.stack,o.errors.push(b),null}}var ut=o=>{if(!o)return!1;let{type:l}=o;return l===e.Type.MAP_KEY||l===e.Type.MAP_VALUE||l===e.Type.SEQ_ITEM};function ft(o,l){let _={before:[],after:[]},v=!1,b=!1,w=ut(l.context.parent)?l.context.parent.props.concat(l.props):l.props;for(let{start:A,end:N}of w)switch(l.context.src[A]){case e.Char.COMMENT:{if(!l.commentHasRequiredWhitespace(A)){let H="Comments must be separated from other tokens by white space characters";o.push(new e.YAMLSemanticError(l,H))}let{header:Y,valueRange:W}=l;(W&&(A>W.start||Y&&A>Y.start)?_.after:_.before).push(l.context.src.slice(A+1,N));break}case e.Char.ANCHOR:if(v){let Y="A node can have at most one anchor";o.push(new e.YAMLSemanticError(l,Y))}v=!0;break;case e.Char.TAG:if(b){let Y="A node can have at most one tag";o.push(new e.YAMLSemanticError(l,Y))}b=!0;break}return{comments:_,hasAnchor:v,hasTag:b}}function mt(o,l){let{anchors:_,errors:v,schema:b}=o;if(l.type===e.Type.ALIAS){let A=l.rawValue,N=_.getNode(A);if(!N){let W="Aliased anchor not found: ".concat(A);return v.push(new e.YAMLReferenceError(l,W)),null}let Y=new R(N);return _._cstAliases.push(Y),Y}let w=ve(o,l);if(w)return ct(o,l,w);if(l.type!==e.Type.PLAIN){let A="Failed to resolve ".concat(l.type," node here");return v.push(new e.YAMLSyntaxError(l,A)),null}try{let A=ye(o,l);return u(A,b.tags,b.tags.scalarFallback)}catch(A){return A.source||(A.source=l),v.push(A),null}}function we(o,l){if(!l)return null;l.error&&o.errors.push(l.error);let{comments:_,hasAnchor:v,hasTag:b}=ft(o.errors,l);if(v){let{anchors:A}=o,N=l.anchor,Y=A.getNode(N);Y&&(A.map[A.newName(N)]=Y),A.map[N]=l}if(l.type===e.Type.ALIAS&&(v||b)){let A="An alias node must not specify any properties";o.errors.push(new e.YAMLSemanticError(l,A))}let w=mt(o,l);if(w){w.ra
`);A&&(w.commentBefore=w.commentBefore?"".concat(w.commentBefore,`
`).concat(A):A);let N=_.after.join(`
`);N&&(w.comment=w.comment?"".concat(w.comment,`
`).concat(N):N)}return l.resolved=w}function dt(o,l){if(l.type!==e.Type.MAP&&l.type!==e.Type.FLOW_MAP){let A="A ".concat(l.type," node cannot be resolved as a mapping");return o.errors.push(new e.YAMLSyntaxError(l,A)),null}let{comments:_,items:v}=l.type===e.Type.FLOW_MAP?_t(o,l):pt(o,l),b=new K;b.items=v,_e(b,_);let w=!1;for(let A=0;A<v.length;++A){let{key:N}=v[A];if(N instanceof S&&(w=!0),o.schema.merge&&N&&N.value===m){v[A]=new a(v[A]);let Y=v[A].value.items,W=null;Y.some(U=>{if(U instanceof R){let{type:H}=U.source;return H===e.Type.MAP||H===e.Type.FLOW_MAP?!1:W="Merge nodes aliases can only point to maps"}return W="Merge nodes can only have Alias nodes as values"}),W&&o.errors.push(new e.YAMLSemanticError(l,W))}else for(let Y=A+1;Y<v.length;++Y){let{key:W}=v[Y];if(N===W||N&&W&&Object.prototype.hasOwnProperty.call(N,"value")&&N.value===W.value){let U='Map keys must be unique; "'.concat(N,'" is repeated');o.errors.push(new e.YAMLSemanticError(l,U));break}}}if(w&&!o.options.mapAsMap){let A="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";o.warnings.push(new e.YAMLWarning(l,A))}return l.resolved=b,b}var ht=o=>{let{context:{lineStart:l,node:_,src:v},props:b}=o;if(b.length===0)return!1;let{start:w}=b[0];if(_&&w>_.valueRange.start||v[w]!==e.Char.COMMENT)return!1;for(let A=l;A<w;++A)if(v[A]===`
`)return!1;return!0};function gt(o,l){if(!ht(o))return;let _=o.getPropValue(0,e.Char.COMMENT,!0),v=!1,b=l.value.commentBefore;if(b&&b.startsWith(_))l.value.commentBefore=b.substr(_.length+1),v=!0;else{let w=l.value.comment;!o.node&&w&&w.startsWith(_)&&(l.value.comment=w.substr(_.length+1),v=!0)}v&&(l.comment=_)}function pt(o,l){let _=[],v=[],b,w=null;for(let A=0;A<l.items.length;++A){let N=l.items[A];switch(N.type){case e.Type.BLANK_LINE:_.push({afterKey:!!b,before:v.length});break;case e.Type.COMMENT:_.push({afterKey:!!b,before:v.length,comment:N.comment});break;case e.Type.MAP_KEY:b!==void 0&&v.push(new C(b)),N.error&&o.errors.push(N.error),b=we(o,N.node),w=null;break;case e.Type.MAP_VALUE:{if(b===void 0&&(b=null),N.error&&o.errors.push(N.error),!N.context.atLineStart&&N.node&&N.node.type===e.Type.MAP&&!N.node.context.atLineStart){let U="Nested mappings are not allowed in compact mappings";o.errors.push(new e.YAMLSemanticError(N.node,U))}let Y=N.node;if(!Y&&N.props.length>0){Y=new e.PlainValue(e.Type.PLAIN,[]),Y.context={parent:N,src:N.context.src};let U=N.range.start+1;if(Y.range={start:U,end:U},Y.valueRange={start:U,end:U},typeof N.range.origStart=="number"){let H=N.range.origStart+1;Y.range.origStart=Y.range.origEnd=H,Y.valueRange.origStart=Y.valueRange.origEnd=H}}let W=new C(b,we(o,Y));gt(N,W),v.push(W),b&&typeof w=="number"&&N.range.start>w+1024&&o.errors.push(ne(l,b)),b=void 0,w=null}break;default:b!==void 0&&v.push(new C(b)),b=we(o,N),w=N.range.start,N.error&&o.errors.push(N.error);e:for(let Y=A+1;;++Y){let W=l.items[Y];switch(W&&W.type){case e.Type.BLANK_LINE:case e.Type.COMMENT:continue e;case e.Type.MAP_VALUE:break e;default:{let U="Implicit map keys need to be followed by map values";o.errors.push(new e.YAMLSemanticError(N,U));break e}}}if(N.valueRangeContainsNewline){let Y="Implicit map keys need to be on a single line";o.errors.push(new e.YAMLSemanticError(N,Y))}}}return b!==void 0&&v.push(new C(b)),{comments:_,items:v}}function _t(o,l){let _=[],v=[],b,w=!1,A="{";for(let N=0;N<l.items.length;++N){let Y=l.items[N];if(typeof Y.char=="string"){let{char:W,offset:U}=Y;if(W==="?"&&b===void 0&&!w){w=!0,A=":";continue}if(W===":"){if(b===void 0&&(b=null),A===":"){A=",";continue}}else if(w&&(b===void 0&&W!==","&&(b=null),w=!1),b!==void 0&&(v.push(new C(b)),b=void 0,W===",")){A=":";continue}if(W==="}"){if(N===l.items.length-1)continue}else if(W===A){A=":";continue}let H="Flow map contains an unexpected ".concat(W),oe=new e.YAMLSyntaxError(l,H);oe.offset=U,o.errors.push(oe)}else Y.type===e.Type.BLANK_LINE?_.push({afterKey:!!b,before:v.length}):Y.type===e.Type.COMMENT?(G(o.errors,Y),_.push({afterKey:!!b,before:v.length,comment:Y.comment})):b===void 0?(A===","&&o.errors.push(new e.YAMLSemanticError(Y,"Separator , missing in flow map")),b=we(o,Y)):(A!==","&&o.errors.push(new e.YAMLSemanticError(Y,"Indicator : missing in flow map entry")),v.push(new C(b,we(o,Y))),b=void 0,w=!1)}return x(o.errors,l),b!==void 0&&v.push(new C(b)),{comments:_,items:v}}function vt(o,l){if(l.type!==e.Type.SEQ&&l.type!==e.Type.FLOW_SEQ){let w="A ".concat(l.type," node cannot be resolved as a sequence");return o.errors.push(new e.YAMLSyntaxError(l,w)),null}let{comments:_,items:v}=l.type===e.Type.FLOW_SEQ?bt(o,l):yt(o,l),b=new T;if(b.items=v,_e(b,_),!o.options.mapAsMap&&v.some(w=>w instanceof C&&w.key instanceof S)){let w="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";o.warnings.push(new e.YAMLWarning(l,w))}return l.resolved=b,b}function yt(o,l){let _=[],v=[];for(let b=0;b<l.items.length;++b){let w=l.items[b];switch(w.type){case e.Type.BLANK_LINE:_.push({before:v.length});break;case e.Type.COMMENT:_.push({comment:w.comment,before:v.length});break;case e.Type.SEQ_ITEM:if(w.error&&o.errors.push(w.error),v.push(we(o,w.node)),w.hasProps){let A="Sequence items cannot have tags or anchors before the - indicator";o.errors.push(new e.YAMLSemanticError(w,A))}break;default:w.error&&o.errors.push(w.error),o.errors.push(new e.YAMLSyntaxError(w,"Unexpected ".concat(w.type," node in se
`){let X="Implicit keys of flow sequence pairs need to be on a single line";o.errors.push(new e.YAMLSemanticError(Y,X));break}}}else w=null;A=null,b=!1,N=null}else if(N==="["||H!=="]"||W<l.items.length-1){let le="Flow sequence contains an unexpected ".concat(H),Z=new e.YAMLSyntaxError(l,le);Z.offset=oe,o.errors.push(Z)}}else if(U.type===e.Type.BLANK_LINE)_.push({before:v.length});else if(U.type===e.Type.COMMENT)G(o.errors,U),_.push({comment:U.comment,before:v.length});else{if(N){let oe="Expected a ".concat(N," in flow sequence");o.errors.push(new e.YAMLSemanticError(U,oe))}let H=we(o,U);w===void 0?(v.push(H),Y=U):(v.push(new C(w,H)),w=void 0),A=U.range.start,N=","}}return x(o.errors,l),w!==void 0&&v.push(new C(w)),{comments:_,items:v}}r.Alias=R,r.Collection=S,r.Merge=a,r.Node=h,r.Pair=C,r.Scalar=y,r.YAMLMap=K,r.YAMLSeq=T,r.addComment=c,r.binaryOptions=t,r.boolOptions=s,r.findPair=j,r.intOptions=i,r.isEmptyPath=I,r.nullOptions=f,r.resolveMap=dt,r.resolveNode=we,r.resolveSeq=vt,r.resolveString=ye,r.strOptions=g,r.stringifyNumber=J,r.stringifyString=V,r.toJSON=d}}),it=F({"node_modules/yaml/dist/warnings-1000a372.js"(r){"use strict";D();var e=Me(),n=ke(),c={identify:u=>u instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(u,p)=>{let L=n.resolveString(u,p);if(typeof Buffer=="function")return Buffer.from(L,"base64");if(typeof atob=="function"){let k=atob(L.replace(/[\n\r]/g,"")),B=new Uint8Array(k.length);for(let $=0;$<k.length;++$)B[$]=k.charCodeAt($);return B}else{let k="This environment does not support reading binary tags; either Buffer or atob is required";return u.errors.push(new e.YAMLReferenceError(p,k)),null}},options:n.binaryOptions,stringify:(u,p,L,k)=>{let{comment:B,type:$,value:Q}=u,z;if(typeof Buffer=="function")z=Q instanceof Buffer?Q.toString("base64"):Buffer.from(Q.buffer).toString("base64");else if(typeof btoa=="function"){let ie="";for(let ue=0;ue<Q.length;++ue)ie+=String.fromCharCode(Q[ue]);z=btoa(ie)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if($||($=n.binaryOptions.defaultType),$===e.Type.QUOTE_DOUBLE)Q=z;else{let{lineWidth:ie}=n.binaryOptions,ue=Math.ceil(z.length/ie),pe=new Array(ue);for(let ge=0,O=0;ge<ue;++ge,O+=ie)pe[ge]=z.substr(O,ie);Q=pe.join($===e.Type.BLOCK_LITERAL?`
`:" ")}return n.stringifyString({comment:B,type:$,value:Q},p,L,k)}};function h(u,p){let L=n.resolveSeq(u,p);for(let k=0;k<L.items.length;++k){let B=L.items[k];if(!(B instanceof n.Pair)){if(B instanceof n.YAMLMap){if(B.items.length>1){let Q="Each pair must have its own sequence indicator";throw new e.YAMLSemanticError(p,Q)}let $=B.items[0]||new n.Pair;B.commentBefore&&($.commentBefore=$.commentBefore?"".concat(B.commentBefore,`
`).concat($.commentBefore):B.commentBefore),B.comment&&($.comment=$.comment?"".concat(B.comment,`
`).concat($.comment):B.comment),B=$}L.items[k]=B instanceof n.Pair?B:new n.Pair(B)}}return L}function d(u,p,L){let k=new n.YAMLSeq(u);k.tag="tag:yaml.org,2002:pairs";for(let B of p){let $,Q;if(Array.isArray(B))if(B.length===2)$=B[0],Q=B[1];else throw new TypeError("Expected [key, value] tuple: ".concat(B));else if(B&&B instanceof Object){let ie=Object.keys(B);if(ie.length===1)$=ie[0],Q=B[$];else throw new TypeError("Expected { key: value } tuple: ".concat(B))}else $=B;let z=u.createPair($,Q,L);k.items.push(z)}return k}var y={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:h,createNode:d},E=class extends n.YAMLSeq{constructor(){super(),e._defineProperty(this,"add",n.YAMLMap.prototype.add.bind(this)),e._defineProperty(this,"delete",n.YAMLMap.prototype.delete.bind(this)),e._defineProperty(this,"get",n.YAMLMap.prototype.get.bind(this)),e._defineProperty(this,"has",n.YAMLMap.prototype.has.bind(this)),e._defineProperty(this,"set",n.YAMLMap.prototype.set.bind(this)),this.tag=E.tag}toJSON(u,p){let L=new Map;p&&p.onCreate&&p.onCreate(L);for(let k of this.items){let B,$;if(k instanceof n.Pair?(B=n.toJSON(k.key,"",p),$=n.toJSON(k.value,B,p)):B=n.toJSON(k,"",p),L.has(B))throw new Error("Ordered maps must not include duplicate keys");L.set(B,$)}return L}};e._defineProperty(E,"tag","tag:yaml.org,2002:omap");function I(u,p){let L=h(u,p),k=[];for(let{key:B}of L.items)if(B instanceof n.Scalar)if(k.includes(B.value)){let $="Ordered maps must not include duplicate keys";throw new e.YAMLSemanticError(p,$)}else k.push(B.value);return Object.assign(new E,L)}function S(u,p,L){let k=d(u,p,L),B=new E;return B.items=k.items,B}var M={identify:u=>u instanceof Map,nodeClass:E,default:!1,tag:"tag:yaml.org,2002:omap",resolve:I,createNode:S},T=class extends n.YAMLMap{constructor(){super(),this.tag=T.tag}add(u){let p=u instanceof n.Pair?u:new n.Pair(u);n.findPair(this.items,p.key)||this.items.push(p)}get(u,p){let L=n.findPair(this.items,u);return!p&&L instanceof n.Pair?L.key instanceof n.Scalar?L.key.value:L.key:L}set(u,p){if(typeof p!="boolean")throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(typeof p));let L=n.findPair(this.items,u);L&&!p?this.items.splice(this.items.indexOf(L),1):!L&&p&&this.items.push(new n.Pair(u))}toJSON(u,p){return super.toJSON(u,p,Set)}toString(u,p,L){if(!u)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(u,p,L);throw new Error("Set items must all have null values")}};e._defineProperty(T,"tag","tag:yaml.org,2002:set");function P(u,p){let L=n.resolveMap(u,p);if(!L.hasAllNullValues())throw new e.YAMLSemanticError(p,"Set items must all have null values");return Object.assign(new T,L)}function C(u,p,L){let k=new T;for(let B of p)k.items.push(u.createPair(B,null,L));return k}var q={identify:u=>u instanceof Set,nodeClass:T,default:!1,tag:"tag:yaml.org,2002:set",resolve:P,createNode:C},R=(u,p)=>{let L=p.split(":").reduce((k,B)=>k*60+Number(B),0);return u==="-"?-L:L},j=u=>{let{value:p}=u;if(isNaN(p)||!isFinite(p))return n.stringifyNumber(p);let L="";p<0&&(L="-",p=Math.abs(p));let k=[p%60];return p<60?k.unshift(0):(p=Math.round((p-k[0])/60),k.unshift(p%60),p>=60&&(p=Math.round((p-k[0])/60),k.unshift(p))),L+k.map(B=>B<10?"0"+String(B):String(B)).join(":").replace(/000000\d*$/,"")},K={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(u,p,L)=>R(p,L.replace(/_/g,"")),stringify:j},m={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(u,p,L)=>R(p,L.replace(/_/g,"")),stringify:j},a={identify:u=>u instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(u,p,L,k,B,$,Q,z,ie)=>{z&&(z=(z+"00").substr(1,3));let ue=Date.UTC(p,L-1,k,B||0,$||0,Q||0,z||0);if(ie&&ie!=="Z"){let pe=R(ie[0],ie.slice(1));Math.abs(pe)<30&
`).concat(s.indent).concat(k):k}var T=class{static validAnchorNode(t){return t instanceof n.Scalar||t instanceof n.YAMLSeq||t instanceof n.YAMLMap}constructor(t){e._defineProperty(this,"map",Object.create(null)),this.prefix=t}createAlias(t,s){return this.setAnchor(t,s),new n.Alias(t)}createMergePair(){let t=new n.Merge;for(var s=arguments.length,i=new Array(s),f=0;f<s;f++)i[f]=arguments[f];return t.value.items=i.map(g=>{if(g instanceof n.Alias){if(g.source instanceof n.YAMLMap)return g}else if(g instanceof n.YAMLMap)return this.createAlias(g);throw new Error("Merge sources must be Map nodes or their Aliases")}),t}getName(t){let{map:s}=this;return Object.keys(s).find(i=>s[i]===t)}getNames(){return Object.keys(this.map)}getNode(t){return this.map[t]}newName(t){t||(t=this.prefix);let s=Object.keys(this.map);for(let i=1;;++i){let f="".concat(t).concat(i);if(!s.includes(f))return f}}resolveNodes(){let{map:t,_cstAliases:s}=this;Object.keys(t).forEach(i=>{t[i]=t[i].resolved}),s.forEach(i=>{i.source=i.source.resolved}),delete this._cstAliases}setAnchor(t,s){if(t!=null&&!T.validAnchorNode(t))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(s&&/[\x00-\x19\s,[\]{}]/.test(s))throw new Error("Anchor names must not contain whitespace or control characters");let{map:i}=this,f=t&&Object.keys(i).find(g=>i[g]===t);if(f)if(s)f!==s&&(delete i[f],i[s]=t);else return f;else{if(!s){if(!t)return null;s=this.newName()}i[s]=t}return s}},P=(t,s)=>{if(t&&typeof t=="object"){let{tag:i}=t;t instanceof n.Collection?(i&&(s[i]=!0),t.items.forEach(f=>P(f,s))):t instanceof n.Pair?(P(t.key,s),P(t.value,s)):t instanceof n.Scalar&&i&&(s[i]=!0)}return s},C=t=>Object.keys(P(t,{}));function q(t,s){let i={before:[],after:[]},f,g=!1;for(let u of s)if(u.valueRange){if(f!==void 0){let L="Document contains trailing content not separated by a ... or --- line";t.errors.push(new e.YAMLSyntaxError(u,L));break}let p=n.resolveNode(t,u);g&&(p.spaceBefore=!0,g=!1),f=p}else u.comment!==null?(f===void 0?i.before:i.after).push(u.comment):u.type===e.Type.BLANK_LINE&&(g=!0,f===void 0&&i.before.length>0&&!t.commentBefore&&(t.commentBefore=i.before.join(`
`),i.before=[]));if(t.contents=f||null,!f)t.comment=i.before.concat(i.after).join(`
`)||null;else{let u=i.before.join(`
`);if(u){let p=f instanceof n.Collection&&f.items[0]?f.items[0]:f;p.commentBefore=p.commentBefore?"".concat(u,`
`).concat(p.commentBefore):u}t.comment=i.after.join(`
`)||null}}function R(t,s){let{tagPrefixes:i}=t,[f,g]=s.parameters;if(!f||!g){let u="Insufficient parameters given for %TAG directive";throw new e.YAMLSemanticError(s,u)}if(i.some(u=>u.handle===f)){let u="The %TAG directive must only be given at most once per handle in the same document.";throw new e.YAMLSemanticError(s,u)}return{handle:f,prefix:g}}function j(t,s){let[i]=s.parameters;if(s.name==="YAML:1.0"&&(i="1.0"),!i){let f="Insufficient parameters given for %YAML directive";throw new e.YAMLSemanticError(s,f)}if(!y[i]){let f=t.version||t.options.version,g="Document will be parsed as YAML ".concat(f," rather than YAML ").concat(i);t.warnings.push(new e.YAMLWarning(s,g))}return i}function K(t,s,i){let f=[],g=!1;for(let u of s){let{comment:p,name:L}=u;switch(L){case"TAG":try{t.tagPrefixes.push(R(t,u))}catch(k){t.errors.push(k)}g=!0;break;case"YAML":case"YAML:1.0":if(t.version){let k="The %YAML directive must only be given at most once per document.";t.errors.push(new e.YAMLSemanticError(u,k))}try{t.version=j(t,u)}catch(k){t.errors.push(k)}g=!0;break;default:if(L){let k="YAML only supports %TAG and %YAML directives, and not %".concat(L);t.warnings.push(new e.YAMLWarning(u,k))}}p&&f.push(p)}if(i&&!g&&(t.version||i.version||t.options.version)==="1.1"){let u=p=>{let{handle:L,prefix:k}=p;return{handle:L,prefix:k}};t.tagPrefixes=i.tagPrefixes.map(u),t.version=i.version}t.commentBefore=f.join(`
`)||null}function m(t){if(t instanceof n.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var a=class{constructor(t){this.anchors=new T(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(t){return m(this.contents),this.contents.add(t)}addIn(t,s){m(this.contents),this.contents.addIn(t,s)}delete(t){return m(this.contents),this.contents.delete(t)}deleteIn(t){return n.isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):(m(this.contents),this.contents.deleteIn(t))}getDefaults(){return a.defaults[this.version]||a.defaults[this.options.version]||{}}get(t,s){return this.contents instanceof n.Collection?this.contents.get(t,s):void 0}getIn(t,s){return n.isEmptyPath(t)?!s&&this.contents instanceof n.Scalar?this.contents.value:this.contents:this.contents instanceof n.Collection?this.contents.getIn(t,s):void 0}has(t){return this.contents instanceof n.Collection?this.contents.has(t):!1}hasIn(t){return n.isEmptyPath(t)?this.contents!==void 0:this.contents instanceof n.Collection?this.contents.hasIn(t):!1}set(t,s){m(this.contents),this.contents.set(t,s)}setIn(t,s){n.isEmptyPath(t)?this.contents=s:(m(this.contents),this.contents.setIn(t,s))}setSchema(t,s){if(!t&&!s&&this.schema)return;typeof t=="number"&&(t=t.toFixed(1)),t==="1.0"||t==="1.1"||t==="1.2"?(this.version?this.version=t:this.options.version=t,delete this.options.schema):t&&typeof t=="string"&&(this.options.schema=t),Array.isArray(s)&&(this.options.customTags=s);let i=Object.assign({},this.getDefaults(),this.options);this.schema=new c.Schema(i)}parse(t,s){this.options.keepCstNodes&&(this.cstNode=t),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:i=[],contents:f=[],directivesEndMarker:g,error:u,valueRange:p}=t;if(u&&(u.source||(u.source=this),this.errors.push(u)),K(this,i,s),g&&(this.directivesEndMarker=!0),this.range=p?[p.start,p.end]:null,this.setSchema(),this.anchors._cstAliases=[],q(this,f),this.anchors.resolveNodes(),this.options.prettyErrors){for(let L of this.errors)L instanceof e.YAMLError&&L.makePretty();for(let L of this.warnings)L instanceof e.YAMLError&&L.makePretty()}return this}listNonDefaultTags(){return C(this.contents).filter(t=>t.indexOf(c.Schema.defaultPrefix)!==0)}setTagPrefix(t,s){if(t[0]!=="!"||t[t.length-1]!=="!")throw new Error("Handle must start and end with !");if(s){let i=this.tagPrefixes.find(f=>f.handle===t);i?i.prefix=s:this.tagPrefixes.push({handle:t,prefix:s})}else this.tagPrefixes=this.tagPrefixes.filter(i=>i.handle!==t)}toJSON(t,s){let{keepBlobsInJSON:i,mapAsMap:f,maxAliasCount:g}=this.options,u=i&&(typeof t!="string"||!(this.contents instanceof n.Scalar)),p={doc:this,indentStep:" ",keep:u,mapAsMap:u&&!!f,maxAliasCount:g,stringify:M},L=Object.keys(this.anchors.map);L.length>0&&(p.anchors=new Map(L.map(B=>[this.anchors.map[B],{alias:[],aliasCount:0,count:1}])));let k=n.toJSON(this.contents,t,p);if(typeof s=="function"&&p.anchors)for(let{count:B,res:$}of p.anchors.values())s($,B);return k}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let t=this.options.indent;if(!Number.isInteger(t)||t<=0){let L=JSON.stringify(t);throw new Error('"indent" option must be a positive integer, not '.concat(L))}this.setSchema();let s=[],i=!1;if(this.version){let L="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?L="%YAML:1.0":this.version==="1.1"&&(L="%YAML 1.1")),s.push(L),i=!0}let f=this.listNonDefaultTags();this.tagPrefixes.forEach(L=>{let{handle:k,prefix:B}=L;f.some($=>$.indexOf(B)===0)&&(s.push("%TAG ".concat(k," ").concat(B)),i=!0)}),(i||this.directivesEndMarker)&&s.push("---"),this.commentBefore&&((i||!this.directivesEndMarker)&&s.unshift(""),s.unshift(this.commentBefore.replace(/^/gm,"#")));let g={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(t),stringify:M},u=!1,p=null;if(this.contents){this.contents instanceof n.Node&&(this.contents.spaceBefore&
`)+`
`}};e._defineProperty(a,"defaults",y),r.Document=a,r.defaultOptions=h,r.scalarOptions=d}}),Zn=F({"node_modules/yaml/dist/index.js"(r){"use strict";D();var e=Gn(),n=zn(),c=ot(),h=Me(),d=it();ke();function y(C){let q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,R=arguments.length>2?arguments[2]:void 0;R===void 0&&typeof q=="string"&&(R=q,q=!0);let j=Object.assign({},n.Document.defaults[n.defaultOptions.version],n.defaultOptions);return new c.Schema(j).createNode(C,q,R)}var E=class extends n.Document{constructor(C){super(Object.assign({},n.defaultOptions,C))}};function I(C,q){let R=[],j;for(let K of e.parse(C)){let m=new E(q);m.parse(K,j),R.push(m),j=m}return R}function S(C,q){let R=e.parse(C),j=new E(q).parse(R[0]);if(R.length>1){let K="Source contains multiple documents; please use YAML.parseAllDocuments()";j.errors.unshift(new h.YAMLSemanticError(R[1],K))}return j}function M(C,q){let R=S(C,q);if(R.warnings.forEach(j=>d.warn(j)),R.errors.length>0)throw R.errors[0];return R.toJSON()}function T(C,q){let R=new E(q);return R.contents=C,String(R)}var P={createNode:y,defaultOptions:n.defaultOptions,Document:E,parse:M,parseAllDocuments:I,parseCST:e.parse,parseDocument:S,scalarOptions:n.scalarOptions,stringify:T};r.YAML=P}}),Je=F({"node_modules/yaml/index.js"(r,e){D(),e.exports=Zn().YAML}}),Xn=F({"node_modules/yaml/dist/util.js"(r){"use strict";D();var e=ke(),n=Me();r.findPair=e.findPair,r.parseMap=e.resolveMap,r.parseSeq=e.resolveSeq,r.stringifyNumber=e.stringifyNumber,r.stringifyString=e.stringifyString,r.toJSON=e.toJSON,r.Type=n.Type,r.YAMLError=n.YAMLError,r.YAMLReferenceError=n.YAMLReferenceError,r.YAMLSemanticError=n.YAMLSemanticError,r.YAMLSyntaxError=n.YAMLSyntaxError,r.YAMLWarning=n.YAMLWarning}}),er=F({"node_modules/yaml/util.js"(r){D();var e=Xn();r.findPair=e.findPair,r.toJSON=e.toJSON,r.parseMap=e.parseMap,r.parseSeq=e.parseSeq,r.stringifyNumber=e.stringifyNumber,r.stringifyString=e.stringifyString,r.Type=e.Type,r.YAMLError=e.YAMLError,r.YAMLReferenceError=e.YAMLReferenceError,r.YAMLSemanticError=e.YAMLSemanticError,r.YAMLSyntaxError=e.YAMLSyntaxError,r.YAMLWarning=e.YAMLWarning}}),tr=F({"node_modules/yaml-unist-parser/lib/yaml.js"(r){"use strict";D(),r.__esModule=!0;var e=Je();r.Document=e.Document;var n=Je();r.parseCST=n.parseCST;var c=er();r.YAMLError=c.YAMLError,r.YAMLSyntaxError=c.YAMLSyntaxError,r.YAMLSemanticError=c.YAMLSemanticError}}),nr=F({"node_modules/yaml-unist-parser/lib/parse.js"(r){"use strict";D(),r.__esModule=!0;var e=xt(),n=Gt(),c=zt(),h=Zt(),d=Fn(),y=ze(),E=Vn(),I=Un(),S=Kn(),M=$n(),T=Jn(),P=Hn(),C=tr();function q(R){var j=C.parseCST(R);M.addOrigRange(j);for(var K=j.map(function(k){return new C.Document({merge:!1,keepCstNodes:!0}).parse(k)}),m=new e.default(R),a=[],t={text:R,locator:m,comments:a,transformOffset:function(k){return I.transformOffset(k,t)},transformRange:function(k){return S.transformRange(k,t)},transformNode:function(k){return d.transformNode(k,t)},transformContent:function(k){return y.transformContent(k,t)}},s=0,i=K;s<i.length;s++)for(var f=i[s],g=0,u=f.errors;g<u.length;g++){var p=u[g];if(!(p instanceof C.YAMLSemanticError&&p.message==='Map keys must be unique; "<<" is repeated'))throw E.transformError(p,t)}K.forEach(function(k){return h.removeCstBlankLine(k.cstNode)});var L=c.createRoot(t.transformRange({origStart:0,origEnd:t.text.length}),K.map(t.transformNode),a);return n.attachComments(L),P.updatePositions(L),T.removeFakeNodes(L),L}r.parse=q}}),rr=F({"node_modules/yaml-unist-parser/lib/index.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te));e.__exportStar(nr(),r)}});D();var sr=Lt(),{hasPragma:ar}=At(),{locStart:ir,locEnd:or}=Nt();function lr(r){let{parse:e}=rr();try{let n=e(r);return delete n.comments,n}catch(n){throw n!=null&&n.position?sr(n.message,n.position):n}}var cr={astFormat:"yaml",parse:lr,hasPragma:ar,locStart:ir,locEnd:or};lt.exports={parsers:{yaml:cr}}});return ur();});