complete-cli 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/107.js +1 -0
  2. package/dist/140.js +1 -0
  3. package/dist/242.js +1 -0
  4. package/dist/269.js +1 -0
  5. package/dist/309.js +1 -0
  6. package/dist/367.js +1 -0
  7. package/dist/541.js +1 -0
  8. package/dist/55.js +1 -0
  9. package/dist/717.js +1 -0
  10. package/dist/742.js +1 -0
  11. package/dist/769.js +1 -0
  12. package/dist/770.js +1 -0
  13. package/dist/914.js +1 -0
  14. package/dist/951.js +1 -0
  15. package/dist/main.js +3 -25
  16. package/dist/main.js.LICENSE.txt +78 -0
  17. package/file-templates/dynamic/package.json +9 -10
  18. package/file-templates/static/scripts/build.ts +1 -2
  19. package/package.json +18 -20
  20. package/src/commands/CheckCommand.ts +1 -1
  21. package/src/commands/InitCommand.ts +1 -1
  22. package/src/commands/NukeCommand.ts +1 -2
  23. package/src/commands/PublishCommand.ts +4 -4
  24. package/src/commands/init/createProject.ts +3 -3
  25. package/src/commands/init/getAuthorName.ts +1 -1
  26. package/src/commands/init/packageManager.ts +8 -8
  27. package/src/commands/init/vsCodeInit.ts +27 -8
  28. package/src/git.ts +12 -9
  29. package/src/main.ts +0 -3
  30. package/dist/commands/CheckCommand.js +0 -142
  31. package/dist/commands/InitCommand.js +0 -64
  32. package/dist/commands/NukeCommand.js +0 -13
  33. package/dist/commands/PublishCommand.js +0 -163
  34. package/dist/commands/UpdateCommand.js +0 -15
  35. package/dist/commands/check/check.test.js +0 -86
  36. package/dist/commands/check/getTruncatedText.js +0 -139
  37. package/dist/commands/init/checkIfProjectPathExists.js +0 -21
  38. package/dist/commands/init/createProject.js +0 -131
  39. package/dist/commands/init/getAuthorName.js +0 -17
  40. package/dist/commands/init/getProjectPath.js +0 -80
  41. package/dist/commands/init/packageManager.js +0 -35
  42. package/dist/commands/init/vsCodeInit.js +0 -75
  43. package/dist/constants.js +0 -17
  44. package/dist/git.js +0 -129
  45. package/dist/interfaces/GitHubCLIHostsYAML.js +0 -1
  46. package/dist/prompt.js +0 -53
  47. package/dist/validateNoteVersion.js +0 -25
  48. package/src/validateNoteVersion.ts +0 -39
package/dist/107.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";exports.id=107,exports.ids=[107],exports.modules={2107:(e,t,n)=>{n.r(t),n.d(t,{default:()=>en,languages:()=>Ue,options:()=>Ve,parsers:()=>Qe,printers:()=>Xt});var r=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),u=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},f=(e,t,n)=>(n=null!=e?r(a(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of o(t))!l.call(e,n)&&undefined!==n&&i(e,n,{get:()=>t[n],enumerable:!(r=s(t,n))||r.enumerable});return e})(!t&&e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)),p=c((e=>{var t={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},n={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};function r(e){let t=[0],n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function i(e){let t,n;return"string"==typeof e?(t=r(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=r(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function s(e,t){if("number"!=typeof e||e<0)return null;let{lineStarts:n,src:r}=i(t);if(!n||!r||e>r.length)return null;for(let t=0;t<n.length;++t){let r=n[t];if(e<r)return{line:t,col:e-n[t-1]+1};if(e===r)return{line:t+1,col:1}}let s=n.length;return{line:s,col:e-n[s-1]+1}}var o=class e{static copy(t){return new e(t.start,t.end)}constructor(e,t){this.start=e,this.end=t||e}isEmpty(){return"number"!=typeof this.start||!this.end||this.end<=this.start}setOrigRange(e,t){let{start:n,end:r}=this;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;let i=t;for(;i<e.length&&!(e[i]>n);)++i;this.origStart=n+i;let s=i;for(;i<e.length&&!(e[i]>=r);)++i;return this.origEnd=r+i,s}},a=class e{static addStringTerminator(t,n,r){if("\n"===r[r.length-1])return r;let i=e.endOfWhiteSpace(t,n);return i>=t.length||"\n"===t[i]?r+"\n":r}static atDocumentBoundary(e,n,r){let i=e[n];if(!i)return!0;let s=e[n-1];if(s&&"\n"!==s)return!1;if(r){if(i!==r)return!1}else if(i!==t.DIRECTIVES_END&&i!==t.DOCUMENT_END)return!1;let o=e[n+1],a=e[n+2];if(o!==i||a!==i)return!1;let l=e[n+3];return!l||"\n"===l||"\t"===l||" "===l}static endOfIdentifier(e,t){let n=e[t],r="<"===n,i=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===i.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;" "===n;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&"\n"!==n;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;"\t"===n||" "===n;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}static endOfBlockIndent(t,n,r){let i=e.endOfIndent(t,r);if(i>r+n)return i;{let n=e.endOfWhiteSpace(t,i),r=t[n];if(!r||"\n"===r)return n}return null}static atBlank(e,t,n){let r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}static nextNodeIsIndented(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}static normalizeOffset(t,n){let r=t[n];return r?"\n"!==r&&"\n"===t[n-1]?n-1:e.endOfWhiteSpace(t,n):n}static foldNewline(t,n,r){let i=0,s=!1,o="",a=t[n+1];for(;" "===a||"\t"===a||"\n"===a;){switch(a){case"\n":i=0,n+=1,o+="\n";break;case"\t":i<=r&&(s=!0),n=e.endOfWhiteSpace(t,n+2)-1;break;case" ":i+=1,n+=1}a=t[n+1]}return o||(o=" "),a&&i<=r&&(s=!0),{fold:o,offset:n,error:s}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null}getPropValue(e,t,n){if(!this.context)return null;let{src:r}=this.context,i=this.props[e];return i&&r[i.start]===t?r.slice(i.start+(n?1:0),i.end):null}get anchor(){for(let e=0;e<this.props.length;++e){let n=this.getPropValue(e,t.ANCHOR,!0);if(null!=n)return n}return null}get comment(){let e=[];for(let n=0;n<this.props.length;++n){let r=this.getPropValue(n,t.COMMENT,!0);null!=r&&e.push(r)}return e.length>0?e.join("\n"):null}commentHasRequiredWhitespace(t){let{src:n}=this.context;if(this.header&&t===this.header.end||!this.valueRange)return!1;let{end:r}=this.valueRange;return t!==r||e.atBlank(n,r-1)}get hasComment(){if(this.context){let{src:e}=this.context;for(let n=0;n<this.props.length;++n)if(e[this.props[n].start]===t.COMMENT)return!0}return!1}get hasProps(){if(this.context){let{src:e}=this.context;for(let n=0;n<this.props.length;++n)if(e[this.props[n].start]!==t.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return-1!==[n.FLOW_MAP,n.FLOW_SEQ,n.QUOTE_DOUBLE,n.QUOTE_SINGLE].indexOf(this.type)}get rangeAsLinePos(){if(!this.range||!this.context)return;let e=s(this.range.start,this.context.root);return e?{start:e,end:s(this.range.end,this.context.root)}:void 0}get rawValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;return this.context.src.slice(e,t)}get tag(){for(let e=0;e<this.props.length;++e){let n=this.getPropValue(e,t.TAG,!1);if(null!=n){if("<"===n[1])return{verbatim:n.slice(2,-1)};{let[e,t,r]=n.match(/^(.*!)([^!]*)$/);return{handle:t,suffix:r}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;let{start:e,end:t}=this.valueRange,{src:n}=this.context;for(let r=e;r<t;++r)if("\n"===n[r])return!0;return!1}parseComment(n){let{src:r}=this.context;if(r[n]===t.COMMENT){let t=e.endOfLine(r,n+1),i=new o(n,t);return this.props.push(i),t}return n}setOrigRanges(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach((n=>n.setOrigRange(e,t))),t}toString(){let{context:{src:t},range:n,value:r}=this;if(null!=r)return r;let i=t.slice(n.start,n.end);return e.addStringTerminator(t,n.end,i)}},l=class extends Error{constructor(e,t,n){if(!(n&&t instanceof a))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=n,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new o(this.offset,this.offset+1);let t=e&&s(this.offset,e);if(t){let e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:t,col:n}=this.linePos.start;this.message+=` at line ${t}, column ${n}`;let r=e&&function({start:e,end:t},n,r=80){let s=function(e,t){let{lineStarts:n,src:r}=i(t);if(!n||!(e>=1)||e>n.length)return null;let s=n[e-1],o=n[e];for(;o&&o>s&&"\n"===r[o-1];)--o;return r.slice(s,o)}(e.line,n);if(!s)return null;let{col:o}=e;if(s.length>r)if(o<=r-10)s=s.substr(0,r-1)+"…";else{let e=Math.round(r/2);s.length>o+e&&(s=s.substr(0,o+e-1)+"…"),o-=s.length-r,s="…"+s.substr(1-r)}let a=1,l="";return t&&(t.line===e.line&&o+(t.col-e.col)<=r+1?a=t.col-e.col:(a=Math.min(s.length+1,r)-o,l="…")),`${s}\n${o>1?" ".repeat(o-1):""}${"^".repeat(a)}${l}`}(this.linePos,e);r&&(this.message+=`:\n\n${r}\n`)}delete this.source}},c=class extends l{constructor(e,t){super("YAMLSemanticError",e,t)}};e.Char=t,e.Node=a,e.PlainValue=class e extends a{static endOfLine(e,t,n){let r=e[t],i=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){let t=e[i+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t)||(" "===r||"\t"===r)&&"#"===t)break;i+=1,r=t}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange,{src:n}=this.context,r=n[t-1];for(;e<t&&("\n"===r||"\t"===r||" "===r);)r=n[--t-1];let i="";for(let r=e;r<t;++r){let e=n[r];if("\n"===e){let{fold:e,offset:t}=a.foldNewline(n,r,-1);i+=e,r=t}else if(" "===e||"\t"===e){let s=r,o=n[r+1];for(;r<t&&(" "===o||"\t"===o);)r+=1,o=n[r+1];"\n"!==o&&(i+=r>s?n.slice(s,r+1):e)}else i+=e}let s=n[e];switch(s){case"\t":return{errors:[new c(this,"Plain value cannot start with a tab character")],str:i};case"@":case"`":return{errors:[new c(this,`Plain value cannot start with reserved character ${s}`)],str:i};default:return i}}parseBlockValue(t){let{indent:n,inFlow:r,src:i}=this.context,s=t,o=t;for(let t=i[s];"\n"===t&&!a.atDocumentBoundary(i,s+1);t=i[s]){let t=a.endOfBlockIndent(i,n,s+1);if(null===t||"#"===i[t])break;"\n"===i[t]?s=t:(o=e.endOfLine(i,t,r),s=o)}return this.valueRange.isEmpty()&&(this.valueRange.start=t),this.valueRange.end=o,o}parse(t,n){this.context=t;let{inFlow:r,src:i}=t,s=n,l=i[s];return l&&"#"!==l&&"\n"!==l&&(s=e.endOfLine(i,n,r)),this.valueRange=new o(n,s),s=a.endOfWhiteSpace(i,s),s=this.parseComment(s),(!this.hasComment||this.valueRange.isEmpty())&&(s=this.parseBlockValue(s)),s}},e.Range=o,e.Type=n,e.YAMLError=l,e.YAMLReferenceError=class extends l{constructor(e,t){super("YAMLReferenceError",e,t)}},e.YAMLSemanticError=c,e.YAMLSyntaxError=class extends l{constructor(e,t){super("YAMLSyntaxError",e,t)}},e.YAMLWarning=class extends l{constructor(e,t){super("YAMLWarning",e,t)}},e._defineProperty=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.defaultTagPrefix="tag:yaml.org,2002:",e.defaultTags={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"}})),d=c((e=>{var t=p(),n=class extends t.Node{constructor(){super(t.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,n){return this.context=e,this.range=new t.Range(n,n+1),n+1}},r=class extends t.Node{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,r){this.context=e;let{parseNode:i,src:s}=e,{atLineStart:o,lineStart:a}=e;!o&&this.type===t.Type.SEQ_ITEM&&(this.error=new t.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let l=o?r-a:e.indent,c=t.Node.endOfWhiteSpace(s,r+1),u=s[c],f="#"===u,p=[],d=null;for(;"\n"===u||"#"===u;){if("#"===u){let e=t.Node.endOfLine(s,c+1);p.push(new t.Range(c,e)),c=e}else o=!0,a=c+1,"\n"===s[t.Node.endOfWhiteSpace(s,a)]&&0===p.length&&(d=new n,a=d.parse({src:s},a)),c=t.Node.endOfIndent(s,a);u=s[c]}if(t.Node.nextNodeIsIndented(u,c-(a+l),this.type!==t.Type.SEQ_ITEM)?this.node=i({atLineStart:o,inCollection:!1,indent:l,lineStart:a,parent:this},c):u&&a>r+1&&(c=a-1),this.node){if(d){let t=e.parent.items||e.parent.contents;t&&t.push(d)}p.length&&Array.prototype.push.apply(this.props,p),c=this.node.range.end}else if(f){let e=p[0];this.props.push(e),c=e.end}else c=t.Node.endOfLine(s,r+1);let h=this.node?this.node.valueRange.end:c;return this.valueRange=new t.Range(r,h),c}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){let{context:{src:e},node:n,range:r,value:i}=this;if(null!=i)return i;let s=n?e.slice(r.start,n.range.start)+String(n):e.slice(r.start,r.end);return t.Node.addStringTerminator(e,r.end,s)}},i=class extends t.Node{constructor(){super(t.Type.COMMENT)}parse(e,n){this.context=e;let r=this.parseComment(n);return this.range=new t.Range(n,r),r}};function s(e){let n=e;for(;n instanceof r;)n=n.node;if(!(n instanceof o))return null;let i=n.items.length,s=-1;for(let e=i-1;e>=0;--e){let r=n.items[e];if(r.type===t.Type.COMMENT){let{indent:t,lineStart:n}=r.context;if(t>0&&r.range.start>=n+t)break;s=e}else{if(r.type!==t.Type.BLANK_LINE)break;s=e}}if(-1===s)return null;let a=n.items.splice(s,i-s),l=a[0].range.start;for(;n.range.end=l,n.valueRange&&n.valueRange.end>l&&(n.valueRange.end=l),n!==e;)n=n.context.parent;return a}var o=class e extends t.Node{static nextContentHasIndent(n,r,i){let s=t.Node.endOfLine(n,r)+1,o=n[r=t.Node.endOfWhiteSpace(n,s)];return!!o&&(r>=s+i||("#"===o||"\n"===o)&&e.nextContentHasIndent(n,r,i))}constructor(e){super(e.type===t.Type.SEQ_ITEM?t.Type.SEQ:t.Type.MAP);for(let t=e.props.length-1;t>=0;--t)if(e.props[t].start<e.context.lineStart){this.props=e.props.slice(0,t+1),e.props=e.props.slice(t+1);let n=e.props[0]||e.valueRange;e.range.start=n.start;break}this.items=[e];let n=s(e);n&&Array.prototype.push.apply(this.items,n)}get includesTrailingLines(){return this.items.length>0}parse(r,o){this.context=r;let{parseNode:a,src:l}=r,c=t.Node.startOfLine(l,o),u=this.items[0];u.context.parent=this,this.valueRange=t.Range.copy(u.valueRange);let f=u.range.start-u.context.lineStart,p=o;p=t.Node.normalizeOffset(l,p);let d=l[p],h=t.Node.endOfWhiteSpace(l,c)===p,m=!1;for(;d;){for(;"\n"===d||"#"===d;){if(h&&"\n"===d&&!m){let e=new n;if(p=e.parse({src:l},p),this.valueRange.end=p,p>=l.length){d=null;break}this.items.push(e),p-=1}else if("#"===d){if(p<c+f&&!e.nextContentHasIndent(l,p,f))return p;let t=new i;if(p=t.parse({indent:f,lineStart:c,src:l},p),this.items.push(t),this.valueRange.end=p,p>=l.length){d=null;break}}if(c=p+1,p=t.Node.endOfIndent(l,c),t.Node.atBlank(l,p)){let e=t.Node.endOfWhiteSpace(l,p),n=l[e];(!n||"\n"===n||"#"===n)&&(p=e)}d=l[p],h=!0}if(!d)break;if(p!==c+f&&(h||":"!==d)){if(p<c+f){c>o&&(p=c);break}if(!this.error){let e="All collection items must start at the same column";this.error=new t.YAMLSyntaxError(this,e)}}if(u.type===t.Type.SEQ_ITEM){if("-"!==d){c>o&&(p=c);break}}else if("-"===d&&!this.error){let e=l[p+1];if(!e||"\n"===e||"\t"===e||" "===e){let e="A collection cannot be both a mapping and a sequence";this.error=new t.YAMLSyntaxError(this,e)}}let r=a({atLineStart:h,inCollection:!0,indent:f,lineStart:c,parent:this},p);if(!r)return p;if(this.items.push(r),this.valueRange.end=r.valueRange.end,p=t.Node.normalizeOffset(l,r.range.end),d=l[p],h=!1,m=r.includesTrailingLines,d){let e=p-1,t=l[e];for(;" "===t||"\t"===t;)t=l[--e];"\n"===t&&(c=e+1,h=!0)}let g=s(r);g&&Array.prototype.push.apply(this.items,g)}return p}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{t=n.setOrigRanges(e,t)})),t}toString(){let{context:{src:e},items:n,range:r,value:i}=this;if(null!=i)return i;let s=e.slice(r.start,n[0].range.start)+String(n[0]);for(let e=1;e<n.length;++e){let t=n[e],{atLineStart:r,indent:i}=t.context;if(r)for(let e=0;e<i;++e)s+=" ";s+=String(t)}return t.Node.addStringTerminator(e,r.end,s)}},a=class extends t.Node{constructor(){super(t.Type.DIRECTIVE),this.name=null}get parameters(){let e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){let{src:t}=this.context,n=e,r=t[n];for(;r&&"\n"!==r&&"\t"!==r&&" "!==r;)r=t[n+=1];return this.name=t.slice(e,n),n}parseParameters(e){let{src:n}=this.context,r=e,i=n[r];for(;i&&"\n"!==i&&"#"!==i;)i=n[r+=1];return this.valueRange=new t.Range(e,r),r}parse(e,n){this.context=e;let r=this.parseName(n+1);return r=this.parseParameters(r),r=this.parseComment(r),this.range=new t.Range(n,r),r}},l=class e extends t.Node{static startCommentOrEndBlankLine(e,n){let r=t.Node.endOfWhiteSpace(e,n),i=e[r];return"#"===i||"\n"===i?r:n}constructor(){super(t.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(r){let{src:s}=this.context;this.directives=[];let o=!0,l=!1,c=r;for(;!t.Node.atDocumentBoundary(s,c,t.Char.DIRECTIVES_END);)switch(c=e.startCommentOrEndBlankLine(s,c),s[c]){case"\n":if(o){let e=new n;c=e.parse({src:s},c),c<s.length&&this.directives.push(e)}else c+=1,o=!0;break;case"#":{let e=new i;c=e.parse({src:s},c),this.directives.push(e),o=!1}break;case"%":{let e=new a;c=e.parse({parent:this,src:s},c),this.directives.push(e),l=!0,o=!1}break;default:return l?this.error=new t.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),c}return s[c]?(this.directivesEndMarker=new t.Range(c,c+3),c+3):(l?this.error=new t.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),c)}parseContents(r){let{parseNode:o,src:a}=this.context;this.contents||(this.contents=[]);let l=r;for(;"-"===a[l-1];)l-=1;let c=t.Node.endOfWhiteSpace(a,r),u=l===r;for(this.valueRange=new t.Range(c);!t.Node.atDocumentBoundary(a,c,t.Char.DOCUMENT_END);){switch(a[c]){case"\n":if(u){let e=new n;c=e.parse({src:a},c),c<a.length&&this.contents.push(e)}else c+=1,u=!0;l=c;break;case"#":{let e=new i;c=e.parse({src:a},c),this.contents.push(e),u=!1}break;default:{let e=t.Node.endOfIndent(a,c),n=o({atLineStart:u,indent:-1,inFlow:!1,inCollection:!1,lineStart:l,parent:this},e);if(!n)return this.valueRange.end=e;this.contents.push(n),c=n.range.end,u=!1;let r=s(n);r&&Array.prototype.push.apply(this.contents,r)}}c=e.startCommentOrEndBlankLine(a,c)}if(this.valueRange.end=c,a[c]&&(this.documentEndMarker=new t.Range(c,c+3),c+=3,a[c])){if(c=t.Node.endOfWhiteSpace(a,c),"#"===a[c]){let e=new i;c=e.parse({src:a},c),this.contents.push(e)}switch(a[c]){case"\n":c+=1;break;case void 0:break;default:this.error=new t.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return c}parse(e,t){e.root=this,this.context=e;let{src:n}=e,r=65279===n.charCodeAt(t)?t+1:t;return r=this.parseDirectives(r),r=this.parseContents(r),r}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.directives.forEach((n=>{t=n.setOrigRanges(e,t)})),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach((n=>{t=n.setOrigRanges(e,t)})),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}toString(){let{contents:e,directives:n,value:r}=this;if(null!=r)return r;let i=n.join("");return e.length>0&&((n.length>0||e[0].type===t.Type.COMMENT)&&(i+="---\n"),i+=e.join("")),"\n"!==i[i.length-1]&&(i+="\n"),i}},c=class extends t.Node{parse(e,n){this.context=e;let{src:r}=e,i=t.Node.endOfIdentifier(r,n+1);return this.valueRange=new t.Range(n+1,i),i=t.Node.endOfWhiteSpace(r,i),i=this.parseComment(i),i}},u="KEEP",f="STRIP",d=class extends t.Node{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping="CLIP",this.header=null}get includesTrailingLines(){return this.chomping===u}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{indent:r,src:i}=this.context;if(this.valueRange.isEmpty())return"";let s=null,o=i[n-1];for(;"\n"===o||"\t"===o||" "===o;){if(n-=1,n<=e){if(this.chomping===u)break;return""}"\n"===o&&(s=n),o=i[n-1]}let a=n+1;s&&(this.chomping===u?(a=s,n=this.valueRange.end):n=s);let l=r+this.blockIndent,c=this.type===t.Type.BLOCK_FOLDED,p=!0,d="",h="",m=!1;for(let r=e;r<n;++r){for(let e=0;e<l&&" "===i[r];++e)r+=1;let e=i[r];if("\n"===e)"\n"===h?d+="\n":h="\n";else{let s=t.Node.endOfLine(i,r),o=i.slice(r,s);r=s,c&&(" "===e||"\t"===e)&&r<a?(" "===h?h="\n":!m&&!p&&"\n"===h&&(h="\n\n"),d+=h+o,h=s<n&&i[s]||"",m=!0):(d+=h+o,h=c&&r<a?" ":"\n",m=!1),p&&""!==o&&(p=!1)}}return this.chomping===f?d:d+"\n"}parseBlockHeader(e){let{src:n}=this.context,r=e+1,i="";for(;;){let s=n[r];switch(s){case"-":this.chomping=f;break;case"+":this.chomping=u;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":i+=s;break;default:return this.blockIndent=Number(i)||null,this.header=new t.Range(e,r),r}r+=1}}parseBlockValue(e){let{indent:n,src:r}=this.context,i=!!this.blockIndent,s=e,o=e,a=1;for(let e=r[s];"\n"===e&&(s+=1,!t.Node.atDocumentBoundary(r,s));e=r[s]){let e=t.Node.endOfBlockIndent(r,n,s);if(null===e)break;let l=r[e],c=e-(s+n);if(this.blockIndent){if(l&&"\n"!==l&&c<this.blockIndent){if("#"===r[e])break;if(!this.error){let e="Block scalars must not be less indented than their "+(i?"explicit indentation indicator":"first line");this.error=new t.YAMLSemanticError(this,e)}}}else if("\n"!==r[e]){if(c<a){let e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new t.YAMLSemanticError(this,e)}this.blockIndent=c}else c>a&&(a=c);s="\n"===r[e]?e:o=t.Node.endOfLine(r,e)}return this.chomping!==u&&(s=r[o]?o+1:o),this.valueRange=new t.Range(e+1,s),s}parse(e,n){this.context=e;let{src:r}=e,i=this.parseBlockHeader(n);return i=t.Node.endOfWhiteSpace(r,i),i=this.parseComment(i),i=this.parseBlockValue(i),i}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}},h=class extends t.Node{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(e=this.items.length){let n=this.items[e-1];return!!n&&(n.jsonLike||n.type===t.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,r){this.context=e;let{parseNode:s,src:o}=e,{indent:a,lineStart:l}=e,c=o[r];this.items=[{char:c,offset:r}];let u=t.Node.endOfWhiteSpace(o,r+1);for(c=o[u];c&&"]"!==c&&"}"!==c;){switch(c){case"\n":if(l=u+1,"\n"===o[t.Node.endOfWhiteSpace(o,l)]){let e=new n;l=e.parse({src:o},l),this.items.push(e)}if(u=t.Node.endOfIndent(o,l),u<=l+a&&(c=o[u],u<l+a||"]"!==c&&"}"!==c)){let e="Insufficient indentation in flow collection";this.error=new t.YAMLSemanticError(this,e)}break;case",":this.items.push({char:c,offset:u}),u+=1;break;case"#":{let e=new i;u=e.parse({src:o},u),this.items.push(e)}break;case"?":case":":{let e=o[u+1];if("\n"===e||"\t"===e||" "===e||","===e||":"===c&&this.prevNodeIsJsonLike()){this.items.push({char:c,offset:u}),u+=1;break}}default:{let e=s({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:l,parent:this},u);if(!e)return this.valueRange=new t.Range(r,u),u;this.items.push(e),u=t.Node.normalizeOffset(o,e.range.end)}}u=t.Node.endOfWhiteSpace(o,u),c=o[u]}return this.valueRange=new t.Range(r,u+1),c&&(this.items.push({char:c,offset:u}),u=t.Node.endOfWhiteSpace(o,u+1),u=this.parseComment(u)),u}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.items.forEach((r=>{if(r instanceof t.Node)n=r.setOrigRanges(e,n);else if(0===e.length)r.origOffset=r.offset;else{let t=n;for(;t<e.length&&!(e[t]>r.offset);)++t;r.origOffset=r.offset+t,n=t}})),n}toString(){let{context:{src:e},items:n,range:r,value:i}=this;if(null!=i)return i;let s=n.filter((e=>e instanceof t.Node)),o="",a=r.start;return s.forEach((t=>{let n=e.slice(a,t.range.start);a=t.range.end,o+=n+String(t),"\n"===o[o.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)})),o+=e.slice(a,r.end),t.Node.addStringTerminator(e,r.end,o)}},m=class e extends t.Node{static endOfQuote(e,t){let n=e[t];for(;n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:i,src:s}=this.context;'"'!==s[r-1]&&e.push(new t.YAMLSyntaxError(this,'Missing closing "quote'));let o="";for(let a=n+1;a<r-1;++a){let n=s[a];if("\n"===n){t.Node.atDocumentBoundary(s,a+1)&&e.push(new t.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:n,offset:r,error:l}=t.Node.foldNewline(s,a,i);o+=n,a=r,l&&e.push(new t.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===n)switch(a+=1,s[a]){case"0":o+="\0";break;case"a":o+="";break;case"b":o+="\b";break;case"e":o+="";break;case"f":o+="\f";break;case"n":o+="\n";break;case"r":o+="\r";break;case"t":case"\t":o+="\t";break;case"v":o+="\v";break;case"N":o+="…";break;case"_":o+=" ";break;case"L":o+="\u2028";break;case"P":o+="\u2029";break;case" ":o+=" ";break;case'"':o+='"';break;case"/":o+="/";break;case"\\":o+="\\";break;case"x":o+=this.parseCharCode(a+1,2,e),a+=2;break;case"u":o+=this.parseCharCode(a+1,4,e),a+=4;break;case"U":o+=this.parseCharCode(a+1,8,e),a+=8;break;case"\n":for(;" "===s[a+1]||"\t"===s[a+1];)a+=1;break;default:e.push(new t.YAMLSyntaxError(this,`Invalid escape sequence ${s.substr(a-1,2)}`)),o+="\\"+s[a]}else if(" "===n||"\t"===n){let e=a,t=s[a+1];for(;" "===t||"\t"===t;)a+=1,t=s[a+1];"\n"!==t&&(o+=a>e?s.slice(e,a+1):n)}else o+=n}return e.length>0?{errors:e,str:o}:o}parseCharCode(e,n,r){let{src:i}=this.context,s=i.substr(e,n),o=s.length===n&&/^[0-9a-fA-F]+$/.test(s)?parseInt(s,16):NaN;return isNaN(o)?(r.push(new t.YAMLSyntaxError(this,`Invalid escape sequence ${i.substr(e-2,n+2)}`)),i.substr(e-2,n+2)):String.fromCodePoint(o)}parse(n,r){this.context=n;let{src:i}=n,s=e.endOfQuote(i,r+1);return this.valueRange=new t.Range(r,s),s=t.Node.endOfWhiteSpace(i,s),s=this.parseComment(s),s}},g=class e extends t.Node{static endOfQuote(e,t){let n=e[t];for(;n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:i,src:s}=this.context;"'"!==s[r-1]&&e.push(new t.YAMLSyntaxError(this,"Missing closing 'quote"));let o="";for(let a=n+1;a<r-1;++a){let n=s[a];if("\n"===n){t.Node.atDocumentBoundary(s,a+1)&&e.push(new t.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:n,offset:r,error:l}=t.Node.foldNewline(s,a,i);o+=n,a=r,l&&e.push(new t.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===n)o+=n,a+=1,"'"!==s[a]&&e.push(new t.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(" "===n||"\t"===n){let e=a,t=s[a+1];for(;" "===t||"\t"===t;)a+=1,t=s[a+1];"\n"!==t&&(o+=a>e?s.slice(e,a+1):n)}else o+=n}return e.length>0?{errors:e,str:o}:o}parse(n,r){this.context=n;let{src:i}=n,s=e.endOfQuote(i,r+1);return this.valueRange=new t.Range(r,s),s=t.Node.endOfWhiteSpace(i,s),s=this.parseComment(s),s}},y=class e{static parseType(e,n,r){switch(e[n]){case"*":return t.Type.ALIAS;case">":return t.Type.BLOCK_FOLDED;case"|":return t.Type.BLOCK_LITERAL;case"{":return t.Type.FLOW_MAP;case"[":return t.Type.FLOW_SEQ;case"?":return!r&&t.Node.atBlank(e,n+1,!0)?t.Type.MAP_KEY:t.Type.PLAIN;case":":return!r&&t.Node.atBlank(e,n+1,!0)?t.Type.MAP_VALUE:t.Type.PLAIN;case"-":return!r&&t.Node.atBlank(e,n+1,!0)?t.Type.SEQ_ITEM:t.Type.PLAIN;case'"':return t.Type.QUOTE_DOUBLE;case"'":return t.Type.QUOTE_SINGLE;default:return t.Type.PLAIN}}constructor(n={},{atLineStart:i,inCollection:s,inFlow:a,indent:l,lineStart:u,parent:f}={}){t._defineProperty(this,"parseNode",((n,i)=>{if(t.Node.atDocumentBoundary(this.src,i))return null;let s=new e(this,n),{props:a,type:l,valueStart:u}=s.parseProps(i),f=function(e,n){switch(e){case t.Type.ALIAS:return new c(e,n);case t.Type.BLOCK_FOLDED:case t.Type.BLOCK_LITERAL:return new d(e,n);case t.Type.FLOW_MAP:case t.Type.FLOW_SEQ:return new h(e,n);case t.Type.MAP_KEY:case t.Type.MAP_VALUE:case t.Type.SEQ_ITEM:return new r(e,n);case t.Type.COMMENT:case t.Type.PLAIN:return new t.PlainValue(e,n);case t.Type.QUOTE_DOUBLE:return new m(e,n);case t.Type.QUOTE_SINGLE:return new g(e,n);default:return null}}(l,a),p=f.parse(s,u);if(f.range=new t.Range(i,p),p<=i&&(f.error=new Error("Node#parse consumed no characters"),f.error.parseEnd=p,f.error.source=f,f.range.end=i+1),s.nodeStartsCollection(f)){!f.error&&!s.atLineStart&&s.parent.type===t.Type.DOCUMENT&&(f.error=new t.YAMLSyntaxError(f,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let n=new o(f);return p=n.parse(new e(s),p),n.range=new t.Range(i,p),n}return f})),this.atLineStart=i??(n.atLineStart||!1),this.inCollection=s??(n.inCollection||!1),this.inFlow=a??(n.inFlow||!1),this.indent=l??n.indent,this.lineStart=u??n.lineStart,this.parent=f??(n.parent||{}),this.root=n.root,this.src=n.src}nodeStartsCollection(e){let{inCollection:n,inFlow:i,src:s}=this;if(n||i)return!1;if(e instanceof r)return!0;let o=e.range.end;return"\n"!==s[o]&&"\n"!==s[o-1]&&(o=t.Node.endOfWhiteSpace(s,o),":"===s[o])}parseProps(n){let{inFlow:r,parent:i,src:s}=this,o=[],a=!1,l=s[n=this.atLineStart?t.Node.endOfIndent(s,n):t.Node.endOfWhiteSpace(s,n)];for(;l===t.Char.ANCHOR||l===t.Char.COMMENT||l===t.Char.TAG||"\n"===l;){if("\n"===l){let e,r=n;do{e=r+1,r=t.Node.endOfIndent(s,e)}while("\n"===s[r]);let o=r-(e+this.indent),l=i.type===t.Type.SEQ_ITEM&&i.context.atLineStart;if("#"!==s[r]&&!t.Node.nextNodeIsIndented(s[r],o,!l))break;this.atLineStart=!0,this.lineStart=e,a=!1,n=r}else if(l===t.Char.COMMENT){let e=t.Node.endOfLine(s,n+1);o.push(new t.Range(n,e)),n=e}else{let e=t.Node.endOfIdentifier(s,n+1);l===t.Char.TAG&&","===s[e]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(n+1,e+13))&&(e=t.Node.endOfIdentifier(s,e+5)),o.push(new t.Range(n,e)),a=!0,n=t.Node.endOfWhiteSpace(s,e)}l=s[n]}return a&&":"===l&&t.Node.atBlank(s,n+1,!0)&&(n-=1),{props:o,type:e.parseType(s,n,r),valueStart:n}}};e.parse=function(e){let t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,((e,n)=>(e.length>1&&t.push(n),"\n"))));let n=[],r=0;do{let t=new l,i=new y({src:e});r=t.parse(i,r),n.push(t)}while(r<e.length);return n.setOrigRanges=()=>{if(0===t.length)return!1;for(let e=1;e<t.length;++e)t[e]-=e;let e=0;for(let r=0;r<n.length;++r)e=n[r].setOrigRanges(t,e);return t.splice(0,t.length),!0},n.toString=()=>n.join("...\n"),n}})),h=c((e=>{var t=p();function n(e,t,n){return n?-1===n.indexOf("\n")?`${e} #${n}`:`${e}\n`+n.replace(/^/gm,`${t||""}#`):e}var r=class{};function i(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>i(e,String(t),n)));if(e&&"function"==typeof e.toJSON){let r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=e=>{r.res=e,delete n.onCreate});let i=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(i),i}return n&&n.keep||"bigint"!=typeof e?e:Number(e)}var s=class extends r{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:i(this.value,e,t)}toString(){return String(this.value)}};function o(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else{let e={};Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=e}}return e.createNode(r,!1)}var a=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done,l=class e extends r{constructor(e){super(),t._defineProperty(this,"items",[]),this.schema=e}addIn(t,n){if(a(t))this.add(n);else{let[r,...i]=t,s=this.get(r,!0);if(s instanceof e)s.addIn(i,n);else{if(void 0!==s||!this.schema)throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`);this.set(r,o(this.schema,i,n))}}}deleteIn([t,...n]){if(0===n.length)return this.delete(t);let r=this.get(t,!0);if(r instanceof e)return r.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn([t,...n],r){let i=this.get(t,!0);return 0===n.length?!r&&i instanceof s?i.value:i:i instanceof e?i.getIn(n,r):void 0}hasAllNullValues(){return this.items.every((e=>{if(!e||"PAIR"!==e.type)return!1;let t=e.value;return null==t||t instanceof s&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn([t,...n]){if(0===n.length)return this.has(t);let r=this.get(t,!0);return r instanceof e&&r.hasIn(n)}setIn([t,...n],r){if(0===n.length)this.set(t,r);else{let i=this.get(t,!0);if(i instanceof e)i.setIn(n,r);else{if(void 0!==i||!this.schema)throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`);this.set(t,o(this.schema,n,r))}}}toJSON(){return null}toString(r,{blockItem:i,flowChars:s,isMap:o,itemIndent:a},l,c){let{indent:u,indentStep:f,stringify:p}=r,d=this.type===t.Type.FLOW_MAP||this.type===t.Type.FLOW_SEQ||r.inFlow;d&&(a+=f);let h=o&&this.hasAllNullValues();r=Object.assign({},r,{allNullValues:h,indent:a,inFlow:d,type:null});let m,g=!1,y=!1,E=this.items.reduce(((e,t,i)=>{let s;t&&(!g&&t.spaceBefore&&e.push({type:"comment",str:""}),t.commentBefore&&t.commentBefore.match(/^.*$/gm).forEach((t=>{e.push({type:"comment",str:`#${t}`})})),t.comment&&(s=t.comment),d&&(!g&&t.spaceBefore||t.commentBefore||t.comment||t.key&&(t.key.commentBefore||t.key.comment)||t.value&&(t.value.commentBefore||t.value.comment))&&(y=!0)),g=!1;let o=p(t,r,(()=>s=null),(()=>g=!0));return d&&!y&&o.includes("\n")&&(y=!0),d&&i<this.items.length-1&&(o+=","),o=n(o,a,s),g&&(s||d)&&(g=!1),e.push({type:"item",str:o}),e}),[]);if(0===E.length)m=s.start+s.end;else if(d){let{start:t,end:n}=s,r=E.map((e=>e.str));if(y||r.reduce(((e,t)=>e+t.length+2),2)>e.maxFlowStringSingleLineLength){m=t;for(let e of r)m+=e?`\n${f}${u}${e}`:"\n";m+=`\n${u}${n}`}else m=`${t} ${r.join(" ")} ${n}`}else{let e=E.map(i);m=e.shift();for(let t of e)m+=t?`\n${u}${t}`:"\n"}return this.comment?(m+="\n"+this.comment.replace(/^/gm,`${u}#`),l&&l()):g&&c&&c(),m}};function c(e){let t=e instanceof s?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}t._defineProperty(l,"maxFlowStringSingleLineLength",60);var u=class extends l{add(e){this.items.push(e)}delete(e){let t=c(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let n=c(e);if("number"!=typeof n)return;let r=this.items[n];return!t&&r instanceof s?r.value:r}has(e){let t=c(e);return"number"==typeof t&&t<this.items.length}set(e,t){let n=c(e);if("number"!=typeof n)throw new Error(`Expected a valid index, not ${e}.`);this.items[n]=t}toJSON(e,t){let n=[];t&&t.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(i(e,String(r++),t));return n}toString(e,t,n){return e?super.toString(e,{blockItem:e=>"comment"===e.type?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,n):JSON.stringify(this)}},f=class e extends r{constructor(t,n=null){super(),this.key=t,this.value=n,this.type=e.Type.PAIR}get commentBefore(){return this.key instanceof r?this.key.commentBefore:void 0}set commentBefore(e){if(null==this.key&&(this.key=new s(null)),!(this.key instanceof r))throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.");this.key.commentBefore=e}addToJSMap(e,t){let n=i(this.key,"",e);if(t instanceof Map){let r=i(this.value,n,e);t.set(n,r)}else if(t instanceof Set)t.add(n);else{let s=((e,t,n)=>null===t?"":"object"!=typeof t?String(t):e instanceof r&&n&&n.doc?e.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(t))(this.key,n,e),o=i(this.value,s,e);s in t?Object.defineProperty(t,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[s]=o}return t}toJSON(e,t){let n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,i,o){if(!e||!e.doc)return JSON.stringify(this);let{indent:a,indentSeq:c,simpleKeys:f}=e.doc.options,{key:p,value:d}=this,h=p instanceof r&&p.comment;if(f){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(p instanceof l)throw new Error("With simple keys, collection cannot be used as a key value")}let m=!f&&(!p||h||(p instanceof r?p instanceof l||p.type===t.Type.BLOCK_FOLDED||p.type===t.Type.BLOCK_LITERAL:"object"==typeof p)),{doc:g,indent:y,indentStep:E,stringify:v}=e;e=Object.assign({},e,{implicitKey:!m,indent:y+E});let S=!1,b=v(p,e,(()=>h=null),(()=>S=!0));if(b=n(b,e.indent,h),!m&&b.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");m=!0}if(e.allNullValues&&!f)return this.comment?(b=n(b,e.indent,this.comment),i&&i()):S&&!h&&o&&o(),e.inFlow&&!m?b:`? ${b}`;b=m?`? ${b}\n${y}:`:`${b}:`,this.comment&&(b=n(b,e.indent,this.comment),i&&i());let w="",O=null;d instanceof r?(d.spaceBefore&&(w="\n"),d.commentBefore&&(w+=`\n${d.commentBefore.replace(/^/gm,`${e.indent}#`)}`),O=d.comment):d&&"object"==typeof d&&(d=g.schema.createNode(d,!0)),e.implicitKey=!1,!m&&!this.comment&&d instanceof s&&(e.indentAtStart=b.length+1),S=!1,!c&&a>=2&&!e.inFlow&&!m&&d instanceof u&&d.type!==t.Type.FLOW_SEQ&&!d.tag&&!g.anchors.getName(d)&&(e.indent=e.indent.substr(2));let N=v(d,e,(()=>O=null),(()=>S=!0)),A=" ";return w||this.comment?A=`${w}\n${e.indent}`:!m&&d instanceof l?(!("["===N[0]||"{"===N[0])||N.includes("\n"))&&(A=`\n${e.indent}`):"\n"===N[0]&&(A=""),S&&!O&&o&&o(),n(b+A+N,e.indent,O)}};t._defineProperty(f,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var d=(e,t)=>{if(e instanceof h){let n=t.get(e.source);return n.count*n.aliasCount}if(e instanceof l){let n=0;for(let r of e.items){let e=d(r,t);e>n&&(n=e)}return n}if(e instanceof f){let n=d(e.key,t),r=d(e.value,t);return Math.max(n,r)}return 1},h=class e extends r{static stringify({range:e,source:t},{anchors:n,doc:r,implicitKey:i,inStringifyKey:s}){let o=Object.keys(n).find((e=>n[e]===t));if(!o&&s&&(o=r.anchors.getName(t)||r.anchors.newName()),o)return`*${o}${i?" ":""}`;let a=r.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${a} [${e}]`)}constructor(e){super(),this.source=e,this.type=t.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,n){if(!n)return i(this.source,e,n);let{anchors:r,maxAliasCount:s}=n,o=r.get(this.source);if(!o||void 0===o.res){let e="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new t.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}if(s>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=d(this.source,r)),o.count*o.aliasCount>s)){let e="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new t.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}return o.res}toString(t){return e.stringify(this,t)}};function m(e,t){let n=t instanceof s?t.value:t;for(let r of e)if(r instanceof f&&(r.key===t||r.key===n||r.key&&r.key.value===n))return r}t._defineProperty(h,"default",!0);var g=class extends l{add(e,t){e?e instanceof f||(e=new f(e.key||e,e.value)):e=new f(e);let n=m(this.items,e.key),r=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error(`Key ${e.key} already set`);n.value=e.value}else if(r){let t=this.items.findIndex((t=>r(e,t)<0));-1===t?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){let t=m(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let n=m(this.items,e),r=n&&n.value;return!t&&r instanceof s?r.value:r}has(e){return!!m(this.items,e)}set(e,t){this.add(new f(e,t),!0)}toJSON(e,t,n){let r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(let e of this.items)e.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!(e instanceof f))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}},y=class extends f{constructor(e){if(e instanceof f){let t=e.value;t instanceof u||(t=new u,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new s("<<"),new u);this.type=f.Type.MERGE_PAIR}addToJSMap(e,t){for(let{source:n}of this.value.items){if(!(n instanceof g))throw new Error("Merge sources must be maps");let r=n.toJSON(null,e,Map);for(let[e,n]of r)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}return t}toString(e,t){let n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];let r=super.toString(e,t);return this.value=n,r}},E={defaultType:t.Type.BLOCK_LITERAL,lineWidth:76},v={defaultType:t.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function S(e,t,n){for(let{format:n,test:r,resolve:i}of t)if(r){let t=e.match(r);if(t){let e=i.apply(null,t);return e instanceof s||(e=new s(e)),n&&(e.format=n),e}}return n&&(e=n(e)),new s(e)}var b="flow",w="block",O="quoted",N=(e,t)=>{let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t};function A(e,t,n,{indentAtStart:r,lineWidth:i=80,minContentWidth:s=20,onFold:o,onOverflow:a}){if(!i||i<0)return e;let l=Math.max(1+s,1+i-t.length);if(e.length<=l)return e;let c=[],u={},f=i-t.length;"number"==typeof r&&(r>i-Math.max(2,s)?c.push(0):f=i-r);let p,d,h=!1,m=-1,g=-1,y=-1;n===w&&(m=N(e,m),-1!==m&&(f=m+l));for(let t;t=e[m+=1];){if(n===O&&"\\"===t){switch(g=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}y=m}if("\n"===t)n===w&&(m=N(e,m)),f=m+l,p=void 0;else{if(" "===t&&d&&" "!==d&&"\n"!==d&&"\t"!==d){let t=e[m+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(p=m)}if(m>=f)if(p)c.push(p),f=p+l,p=void 0;else if(n===O){for(;" "===d||"\t"===d;)d=t,t=e[m+=1],h=!0;let n=m>y+1?m-2:g-1;if(u[n])return e;c.push(n),u[n]=!0,f=n+l,p=void 0}else h=!0}d=t}if(h&&a&&a(),0===c.length)return e;o&&o();let E=e.slice(0,c[0]);for(let r=0;r<c.length;++r){let i=c[r],s=c[r+1]||e.length;0===i?E=`\n${t}${e.slice(0,s)}`:(n===O&&u[i]&&(E+=`${e[i]}\\`),E+=`\n${t}${e.slice(i+1,s)}`)}return E}var L=({indentAtStart:e})=>e?Object.assign({indentAtStart:e},v.fold):v.fold,M=e=>/^(%|---|\.\.\.)/m.test(e);function T(e,t){let{implicitKey:n}=t,{jsonEncoding:r,minMultiLineLength:i}=v.doubleQuoted,s=JSON.stringify(e);if(r)return s;let o=t.indent||(M(e)?" ":""),a="",l=0;for(let e=0,t=s[e];t;t=s[++e])if(" "===t&&"\\"===s[e+1]&&"n"===s[e+2]&&(a+=s.slice(l,e)+"\\ ",e+=1,l=e,t="\\"),"\\"===t)switch(s[e+1]){case"u":{a+=s.slice(l,e);let t=s.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:"00"===t.substr(0,2)?a+="\\x"+t.substr(2):a+=s.substr(e,6)}e+=5,l=e+1}break;case"n":if(n||'"'===s[e+2]||s.length<i)e+=1;else{for(a+=s.slice(l,e)+"\n\n";"\\"===s[e+2]&&"n"===s[e+3]&&'"'!==s[e+4];)a+="\n",e+=2;a+=o," "===s[e+2]&&(a+="\\"),e+=1,l=e+1}break;default:e+=1}return a=l?a+s.slice(l):s,n?a:A(a,o,O,L(t))}function x(e,t){if(t.implicitKey){if(/\n/.test(e))return T(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return T(e,t);let n=t.indent||(M(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?r:A(r,n,b,L(t))}function k({comment:e,type:n,value:r},i,s,o){if(/\n[\t ]+$/.test(r)||/^\s*$/.test(r))return T(r,i);let a=i.indent||(i.forceBlockIndent||M(r)?" ":""),l=a?"2":"1",c=n!==t.Type.BLOCK_FOLDED&&(n===t.Type.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if("\n"===e[t]){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}(r,v.fold.lineWidth,a.length)),u=c?"|":">";if(!r)return u+"\n";let f="",p="";if(r=r.replace(/[\n\t ]*$/,(e=>{let t=e.indexOf("\n");return-1===t?u+="-":(r===e||t!==e.length-1)&&(u+="+",o&&o()),p=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(e=>{-1!==e.indexOf(" ")&&(u+=l);let t=e.match(/ +$/);return t?(f=e.slice(0,-t[0].length),t[0]):(f=e,"")})),p&&(p=p.replace(/\n+(?!\n|$)/g,`$&${a}`)),f&&(f=f.replace(/\n+/g,`$&${a}`)),e&&(u+=" #"+e.replace(/ ?[\r\n]+/g," "),s&&s()),!r)return`${u}${l}\n${a}${p}`;if(c)return r=r.replace(/\n+/g,`$&${a}`),`${u}\n${a}${f}${r}${p}`;r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${a}`);let d=A(`${f}${r}${p}`,a,w,v.fold);return`${u}\n${a}${d}`}function C(e,n){let r,i,s;switch(n.type){case t.Type.FLOW_MAP:r="}",i="flow map";break;case t.Type.FLOW_SEQ:r="]",i="flow sequence";break;default:return void e.push(new t.YAMLSemanticError(n,"Not a flow collection!?"))}for(let e=n.items.length-1;e>=0;--e){let r=n.items[e];if(!r||r.type!==t.Type.COMMENT){s=r;break}}if(s&&s.char!==r){let o,a=`Expected ${i} to end with ${r}`;"number"==typeof s.offset?(o=new t.YAMLSemanticError(n,a),o.offset=s.offset+1):(o=new t.YAMLSemanticError(s,a),s.range&&s.range.end&&(o.offset=s.range.end-s.range.start)),e.push(o)}}function I(e,n){let r=n.context.src[n.range.start-1];if("\n"!==r&&"\t"!==r&&" "!==r){let r="Comments must be separated from other tokens by white space characters";e.push(new t.YAMLSemanticError(n,r))}}function $(e,n){let r=String(n),i=r.substr(0,8)+"..."+r.substr(-8);return new t.YAMLSemanticError(e,`The "${i}" key is too long`)}function P(e,t){for(let{afterKey:n,before:r,comment:i}of t){let t=e.items[r];t?(n&&t.value&&(t=t.value),void 0===i?(n||!t.commentBefore)&&(t.spaceBefore=!0):t.commentBefore?t.commentBefore+="\n"+i:t.commentBefore=i):void 0!==i&&(e.comment?e.comment+="\n"+i:e.comment=i)}}function R(e,t){let n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((n=>{n.source||(n.source=t),e.errors.push(n)})),n.str):""}function _(e,t,n){let{tags:r}=e.schema,i=[];for(let o of r)if(o.tag===n){if(!o.test){let n=o.resolve(e,t);return n instanceof l?n:new s(n)}i.push(o)}let o=R(e,t);return"string"==typeof o&&i.length>0?S(o,i,r.scalarFallback):null}function Y(e,n){if(!n)return null;n.error&&e.errors.push(n.error);let{comments:r,hasAnchor:i,hasTag:s}=function(e,n){let r={before:[],after:[]},i=!1,s=!1,o=(e=>{if(!e)return!1;let{type:n}=e;return n===t.Type.MAP_KEY||n===t.Type.MAP_VALUE||n===t.Type.SEQ_ITEM})(n.context.parent)?n.context.parent.props.concat(n.props):n.props;for(let{start:a,end:l}of o)switch(n.context.src[a]){case t.Char.COMMENT:{if(!n.commentHasRequiredWhitespace(a)){let r="Comments must be separated from other tokens by white space characters";e.push(new t.YAMLSemanticError(n,r))}let{header:i,valueRange:s}=n;(s&&(a>s.start||i&&a>i.start)?r.after:r.before).push(n.context.src.slice(a+1,l));break}case t.Char.ANCHOR:if(i){let r="A node can have at most one anchor";e.push(new t.YAMLSemanticError(n,r))}i=!0;break;case t.Char.TAG:if(s){let r="A node can have at most one tag";e.push(new t.YAMLSemanticError(n,r))}s=!0}return{comments:r,hasAnchor:i,hasTag:s}}(e.errors,n);if(i){let{anchors:t}=e,r=n.anchor,i=t.getNode(r);i&&(t.map[t.newName(r)]=i),t.map[r]=n}if(n.type===t.Type.ALIAS&&(i||s)){let r="An alias node must not specify any properties";e.errors.push(new t.YAMLSemanticError(n,r))}let o=function(e,n){let{anchors:r,errors:i,schema:s}=e;if(n.type===t.Type.ALIAS){let e=n.rawValue,s=r.getNode(e);if(!s){let r=`Aliased anchor not found: ${e}`;return i.push(new t.YAMLReferenceError(n,r)),null}let o=new h(s);return r._cstAliases.push(o),o}let o=function(e,n){let{tag:r,type:i}=n,s=!1;if(r){let{handle:i,suffix:o,verbatim:a}=r;if(a){if("!"!==a&&"!!"!==a)return a;let r=`Verbatim tags aren't resolved, so ${a} is invalid.`;e.errors.push(new t.YAMLSemanticError(n,r))}else if("!"!==i||o)try{return function(e,n){let{handle:r,suffix:i}=n.tag,s=e.tagPrefixes.find((e=>e.handle===r));if(!s){let i=e.getDefaults().tagPrefixes;if(i&&(s=i.find((e=>e.handle===r))),!s)throw new t.YAMLSemanticError(n,`The ${r} tag handle is non-default and was not declared.`)}if(!i)throw new t.YAMLSemanticError(n,`The ${r} tag has no suffix.`);if("!"===r&&"1.0"===(e.version||e.options.version)){if("^"===i[0])return e.warnings.push(new t.YAMLWarning(n,"YAML 1.0 ^ tag expansion is not supported")),i;if(/[:/]/.test(i)){let e=i.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${i}`}}return s.prefix+decodeURIComponent(i)}(e,n)}catch(t){e.errors.push(t)}else s=!0}switch(i){case t.Type.BLOCK_FOLDED:case t.Type.BLOCK_LITERAL:case t.Type.QUOTE_DOUBLE:case t.Type.QUOTE_SINGLE:return t.defaultTags.STR;case t.Type.FLOW_MAP:case t.Type.MAP:return t.defaultTags.MAP;case t.Type.FLOW_SEQ:case t.Type.SEQ:return t.defaultTags.SEQ;case t.Type.PLAIN:return s?t.defaultTags.STR:null;default:return null}}(e,n);if(o)return function(e,n,r){try{let t=_(e,n,r);if(t)return r&&n.tag&&(t.tag=r),t}catch(t){return t.source||(t.source=n),e.errors.push(t),null}try{let i=function({type:e}){switch(e){case t.Type.FLOW_MAP:case t.Type.MAP:return t.defaultTags.MAP;case t.Type.FLOW_SEQ:case t.Type.SEQ:return t.defaultTags.SEQ;default:return t.defaultTags.STR}}(n);if(!i)throw new Error(`The tag ${r} is unavailable`);let s=`The tag ${r} is unavailable, falling back to ${i}`;e.warnings.push(new t.YAMLWarning(n,s));let o=_(e,n,i);return o.tag=r,o}catch(r){let i=new t.YAMLReferenceError(n,r.message);return i.stack=r.stack,e.errors.push(i),null}}(e,n,o);if(n.type!==t.Type.PLAIN){let e=`Failed to resolve ${n.type} node here`;return i.push(new t.YAMLSyntaxError(n,e)),null}try{return S(R(e,n),s.tags,s.tags.scalarFallback)}catch(e){return e.source||(e.source=n),i.push(e),null}}(e,n);if(o){o.range=[n.range.start,n.range.end],e.options.keepCstNodes&&(o.cstNode=n),e.options.keepNodeTypes&&(o.type=n.type);let t=r.before.join("\n");t&&(o.commentBefore=o.commentBefore?`${o.commentBefore}\n${t}`:t);let i=r.after.join("\n");i&&(o.comment=o.comment?`${o.comment}\n${i}`:i)}return n.resolved=o}function B(e,n){if(!(({context:{lineStart:e,node:n,src:r},props:i})=>{if(0===i.length)return!1;let{start:s}=i[0];if(n&&s>n.valueRange.start||r[s]!==t.Char.COMMENT)return!1;for(let t=e;t<s;++t)if("\n"===r[t])return!1;return!0})(e))return;let r=e.getPropValue(0,t.Char.COMMENT,!0),i=!1,s=n.value.commentBefore;if(s&&s.startsWith(r))n.value.commentBefore=s.substr(r.length+1),i=!0;else{let t=n.value.comment;!e.node&&t&&t.startsWith(r)&&(n.value.comment=t.substr(r.length+1),i=!0)}i&&(n.comment=r)}e.Alias=h,e.Collection=l,e.Merge=y,e.Node=r,e.Pair=f,e.Scalar=s,e.YAMLMap=g,e.YAMLSeq=u,e.addComment=n,e.binaryOptions=E,e.boolOptions={trueStr:"true",falseStr:"false"},e.findPair=m,e.intOptions={asBigInt:!1},e.isEmptyPath=a,e.nullOptions={nullStr:"null"},e.resolveMap=function(e,n){if(n.type!==t.Type.MAP&&n.type!==t.Type.FLOW_MAP){let r=`A ${n.type} node cannot be resolved as a mapping`;return e.errors.push(new t.YAMLSyntaxError(n,r)),null}let{comments:r,items:i}=n.type===t.Type.FLOW_MAP?function(e,n){let r,i=[],s=[],o=!1,a="{";for(let l=0;l<n.items.length;++l){let c=n.items[l];if("string"==typeof c.char){let{char:i,offset:u}=c;if("?"===i&&void 0===r&&!o){o=!0,a=":";continue}if(":"===i){if(void 0===r&&(r=null),":"===a){a=",";continue}}else if(o&&(void 0===r&&","!==i&&(r=null),o=!1),void 0!==r&&(s.push(new f(r)),r=void 0,","===i)){a=":";continue}if("}"===i){if(l===n.items.length-1)continue}else if(i===a){a=":";continue}let p=`Flow map contains an unexpected ${i}`,d=new t.YAMLSyntaxError(n,p);d.offset=u,e.errors.push(d)}else c.type===t.Type.BLANK_LINE?i.push({afterKey:!!r,before:s.length}):c.type===t.Type.COMMENT?(I(e.errors,c),i.push({afterKey:!!r,before:s.length,comment:c.comment})):void 0===r?(","===a&&e.errors.push(new t.YAMLSemanticError(c,"Separator , missing in flow map")),r=Y(e,c)):(","!==a&&e.errors.push(new t.YAMLSemanticError(c,"Indicator : missing in flow map entry")),s.push(new f(r,Y(e,c))),r=void 0,o=!1)}return C(e.errors,n),void 0!==r&&s.push(new f(r)),{comments:i,items:s}}(e,n):function(e,n){let r,i=[],s=[],o=null;for(let a=0;a<n.items.length;++a){let l=n.items[a];switch(l.type){case t.Type.BLANK_LINE:i.push({afterKey:!!r,before:s.length});break;case t.Type.COMMENT:i.push({afterKey:!!r,before:s.length,comment:l.comment});break;case t.Type.MAP_KEY:void 0!==r&&s.push(new f(r)),l.error&&e.errors.push(l.error),r=Y(e,l.node),o=null;break;case t.Type.MAP_VALUE:{if(void 0===r&&(r=null),l.error&&e.errors.push(l.error),!l.context.atLineStart&&l.node&&l.node.type===t.Type.MAP&&!l.node.context.atLineStart){let n="Nested mappings are not allowed in compact mappings";e.errors.push(new t.YAMLSemanticError(l.node,n))}let i=l.node;if(!i&&l.props.length>0){i=new t.PlainValue(t.Type.PLAIN,[]),i.context={parent:l,src:l.context.src};let e=l.range.start+1;if(i.range={start:e,end:e},i.valueRange={start:e,end:e},"number"==typeof l.range.origStart){let e=l.range.origStart+1;i.range.origStart=i.range.origEnd=e,i.valueRange.origStart=i.valueRange.origEnd=e}}let a=new f(r,Y(e,i));B(l,a),s.push(a),r&&"number"==typeof o&&l.range.start>o+1024&&e.errors.push($(n,r)),r=void 0,o=null}break;default:void 0!==r&&s.push(new f(r)),r=Y(e,l),o=l.range.start,l.error&&e.errors.push(l.error);e:for(let r=a+1;;++r){let i=n.items[r];switch(i&&i.type){case t.Type.BLANK_LINE:case t.Type.COMMENT:continue e;case t.Type.MAP_VALUE:break e;default:{let n="Implicit map keys need to be followed by map values";e.errors.push(new t.YAMLSemanticError(l,n));break e}}}if(l.valueRangeContainsNewline){let n="Implicit map keys need to be on a single line";e.errors.push(new t.YAMLSemanticError(l,n))}}}return void 0!==r&&s.push(new f(r)),{comments:i,items:s}}(e,n),s=new g;s.items=i,P(s,r);let o=!1;for(let r=0;r<i.length;++r){let{key:s}=i[r];if(s instanceof l&&(o=!0),e.schema.merge&&s&&"<<"===s.value){i[r]=new y(i[r]);let s=i[r].value.items,o=null;s.some((e=>{if(e instanceof h){let{type:n}=e.source;return n!==t.Type.MAP&&n!==t.Type.FLOW_MAP&&(o="Merge nodes aliases can only point to maps")}return o="Merge nodes can only have Alias nodes as values"})),o&&e.errors.push(new t.YAMLSemanticError(n,o))}else for(let o=r+1;o<i.length;++o){let{key:r}=i[o];if(s===r||s&&r&&Object.prototype.hasOwnProperty.call(s,"value")&&s.value===r.value){let r=`Map keys must be unique; "${s}" is repeated`;e.errors.push(new t.YAMLSemanticError(n,r));break}}}if(o&&!e.options.mapAsMap){let r="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new t.YAMLWarning(n,r))}return n.resolved=s,s},e.resolveNode=Y,e.resolveSeq=function(e,n){if(n.type!==t.Type.SEQ&&n.type!==t.Type.FLOW_SEQ){let r=`A ${n.type} node cannot be resolved as a sequence`;return e.errors.push(new t.YAMLSyntaxError(n,r)),null}let{comments:r,items:i}=n.type===t.Type.FLOW_SEQ?function(e,n){let r,i=[],s=[],o=!1,a=null,l="[",c=null;for(let u=0;u<n.items.length;++u){let p=n.items[u];if("string"==typeof p.char){let{char:i,offset:d}=p;if(":"!==i&&(o||void 0!==r)&&(o&&void 0===r&&(r=l?s.pop():null),s.push(new f(r)),o=!1,r=void 0,a=null),i===l)l=null;else if(l||"?"!==i){if("["!==l&&":"===i&&void 0===r){if(","===l){if(r=s.pop(),r instanceof f){let r="Chaining flow sequence pairs is invalid",i=new t.YAMLSemanticError(n,r);i.offset=d,e.errors.push(i)}if(!o&&"number"==typeof a){let i=p.range?p.range.start:p.offset;i>a+1024&&e.errors.push($(n,r));let{src:s}=c.context;for(let n=a;n<i;++n)if("\n"===s[n]){let n="Implicit keys of flow sequence pairs need to be on a single line";e.errors.push(new t.YAMLSemanticError(c,n));break}}}else r=null;a=null,o=!1,l=null}else if("["===l||"]"!==i||u<n.items.length-1){let r=`Flow sequence contains an unexpected ${i}`,s=new t.YAMLSyntaxError(n,r);s.offset=d,e.errors.push(s)}}else o=!0}else if(p.type===t.Type.BLANK_LINE)i.push({before:s.length});else if(p.type===t.Type.COMMENT)I(e.errors,p),i.push({comment:p.comment,before:s.length});else{if(l){let n=`Expected a ${l} in flow sequence`;e.errors.push(new t.YAMLSemanticError(p,n))}let n=Y(e,p);void 0===r?(s.push(n),c=p):(s.push(new f(r,n)),r=void 0),a=p.range.start,l=","}}return C(e.errors,n),void 0!==r&&s.push(new f(r)),{comments:i,items:s}}(e,n):function(e,n){let r=[],i=[];for(let s=0;s<n.items.length;++s){let o=n.items[s];switch(o.type){case t.Type.BLANK_LINE:r.push({before:i.length});break;case t.Type.COMMENT:r.push({comment:o.comment,before:i.length});break;case t.Type.SEQ_ITEM:if(o.error&&e.errors.push(o.error),i.push(Y(e,o.node)),o.hasProps){let n="Sequence items cannot have tags or anchors before the - indicator";e.errors.push(new t.YAMLSemanticError(o,n))}break;default:o.error&&e.errors.push(o.error),e.errors.push(new t.YAMLSyntaxError(o,`Unexpected ${o.type} node in sequence`))}}return{comments:r,items:i}}(e,n),s=new u;if(s.items=i,P(s,r),!e.options.mapAsMap&&i.some((e=>e instanceof f&&e.key instanceof l))){let r="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new t.YAMLWarning(n,r))}return n.resolved=s,s},e.resolveString=R,e.strOptions=v,e.stringifyNumber=function({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(i)){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let n=t-(i.length-e-1);for(;n-- >0;)i+="0"}return i},e.stringifyString=function(e,n,r,i){let{defaultType:s}=v,{implicitKey:o,inFlow:a}=n,{type:l,value:c}=e;"string"!=typeof c&&(c=String(c),e=Object.assign({},e,{value:c}));let u=s=>{switch(s){case t.Type.BLOCK_FOLDED:case t.Type.BLOCK_LITERAL:return k(e,n,r,i);case t.Type.QUOTE_DOUBLE:return T(c,n);case t.Type.QUOTE_SINGLE:return x(c,n);case t.Type.PLAIN:return function(e,n,r,i){let{comment:s,type:o,value:a}=e,{actualString:l,implicitKey:c,indent:u,inFlow:f}=n;if(c&&/[\n[\]{},]/.test(a)||f&&/[[\]{},]/.test(a))return T(a,n);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return c||f||-1===a.indexOf("\n")?-1!==a.indexOf('"')&&-1===a.indexOf("'")?x(a,n):T(a,n):k(e,n,r,i);if(!c&&!f&&o!==t.Type.PLAIN&&-1!==a.indexOf("\n"))return k(e,n,r,i);if(""===u&&M(a))return n.forceBlockIndent=!0,k(e,n,r,i);let p=a.replace(/\n+/g,`$&\n${u}`);if(l){let{tags:e}=n.doc.schema;if("string"!=typeof S(p,e,e.scalarFallback).value)return T(a,n)}let d=c?p:A(p,u,b,L(n));return!s||f||-1===d.indexOf("\n")&&-1===s.indexOf("\n")?d:(r&&r(),function(e,t,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${t}#`)}\n${t}${e}`:e}(d,u,s))}(e,n,r,i);default:return null}};(l!==t.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)||(o||a)&&(l===t.Type.BLOCK_FOLDED||l===t.Type.BLOCK_LITERAL))&&(l=t.Type.QUOTE_DOUBLE);let f=u(l);if(null===f&&(f=u(s),null===f))throw new Error(`Unsupported default string type ${s}`);return f},e.toJSON=i})),m=c((e=>{var t=p(),n=h(),r={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,r)=>{let i=n.resolveString(e,r);if("function"==typeof Buffer)return Buffer.from(i,"base64");if("function"==typeof atob){let e=atob(i.replace(/[\n\r]/g,"")),t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}{let n="This environment does not support reading binary tags; either Buffer or atob is required";return e.errors.push(new t.YAMLReferenceError(r,n)),null}},options:n.binaryOptions,stringify:({comment:e,type:r,value:i},s,o,a)=>{let l;if("function"==typeof Buffer)l=i instanceof Buffer?i.toString("base64"):Buffer.from(i.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<i.length;++t)e+=String.fromCharCode(i[t]);l=btoa(e)}}if(r||(r=n.binaryOptions.defaultType),r===t.Type.QUOTE_DOUBLE)i=l;else{let{lineWidth:e}=n.binaryOptions,s=Math.ceil(l.length/e),o=new Array(s);for(let t=0,n=0;t<s;++t,n+=e)o[t]=l.substr(n,e);i=o.join(r===t.Type.BLOCK_LITERAL?"\n":" ")}return n.stringifyString({comment:e,type:r,value:i},s,o,a)}};function i(e,r){let i=n.resolveSeq(e,r);for(let e=0;e<i.items.length;++e){let s=i.items[e];if(!(s instanceof n.Pair)){if(s instanceof n.YAMLMap){if(s.items.length>1){let e="Each pair must have its own sequence indicator";throw new t.YAMLSemanticError(r,e)}let e=s.items[0]||new n.Pair;s.commentBefore&&(e.commentBefore=e.commentBefore?`${s.commentBefore}\n${e.commentBefore}`:s.commentBefore),s.comment&&(e.comment=e.comment?`${s.comment}\n${e.comment}`:s.comment),s=e}i.items[e]=s instanceof n.Pair?s:new n.Pair(s)}}return i}function s(e,t,r){let i=new n.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";for(let n of t){let t,s;if(Array.isArray(n)){if(2!==n.length)throw new TypeError(`Expected [key, value] tuple: ${n}`);t=n[0],s=n[1]}else if(n&&n instanceof Object){let e=Object.keys(n);if(1!==e.length)throw new TypeError(`Expected { key: value } tuple: ${n}`);t=e[0],s=n[t]}else t=n;let o=e.createPair(t,s,r);i.items.push(o)}return i}var o={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:i,createNode:s},a=class e extends n.YAMLSeq{constructor(){super(),t._defineProperty(this,"add",n.YAMLMap.prototype.add.bind(this)),t._defineProperty(this,"delete",n.YAMLMap.prototype.delete.bind(this)),t._defineProperty(this,"get",n.YAMLMap.prototype.get.bind(this)),t._defineProperty(this,"has",n.YAMLMap.prototype.has.bind(this)),t._defineProperty(this,"set",n.YAMLMap.prototype.set.bind(this)),this.tag=e.tag}toJSON(e,t){let r=new Map;t&&t.onCreate&&t.onCreate(r);for(let e of this.items){let i,s;if(e instanceof n.Pair?(i=n.toJSON(e.key,"",t),s=n.toJSON(e.value,i,t)):i=n.toJSON(e,"",t),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,s)}return r}};t._defineProperty(a,"tag","tag:yaml.org,2002:omap");var l={identify:e=>e instanceof Map,nodeClass:a,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,r){let s=i(e,r),o=[];for(let{key:e}of s.items)if(e instanceof n.Scalar){if(o.includes(e.value)){let e="Ordered maps must not include duplicate keys";throw new t.YAMLSemanticError(r,e)}o.push(e.value)}return Object.assign(new a,s)},createNode:function(e,t,n){let r=s(e,t,n),i=new a;return i.items=r.items,i}},c=class e extends n.YAMLMap{constructor(){super(),this.tag=e.tag}add(e){let t=e instanceof n.Pair?e:new n.Pair(e);n.findPair(this.items,t.key)||this.items.push(t)}get(e,t){let r=n.findPair(this.items,e);return!t&&r instanceof n.Pair?r.key instanceof n.Scalar?r.key.value:r.key:r}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);let r=n.findPair(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new n.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw new Error("Set items must all have null values")}};t._defineProperty(c,"tag","tag:yaml.org,2002:set");var u={identify:e=>e instanceof Set,nodeClass:c,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,r){let i=n.resolveMap(e,r);if(!i.hasAllNullValues())throw new t.YAMLSemanticError(r,"Set items must all have null values");return Object.assign(new c,i)},createNode:function(e,t,n){let r=new c;for(let i of t)r.items.push(e.createPair(i,null,n));return r}},f=(e,t)=>{let n=t.split(":").reduce(((e,t)=>60*e+Number(t)),0);return"-"===e?-n:n},d=({value:e})=>{if(isNaN(e)||!isFinite(e))return n.stringifyNumber(e);let t="";e<0&&(t="-",e=Math.abs(e));let r=[e%60];return e<60?r.unshift(0):(e=Math.round((e-r[0])/60),r.unshift(e%60),e>=60&&(e=Math.round((e-r[0])/60),r.unshift(e))),t+r.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")},m={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,n)=>f(t,n.replace(/_/g,"")),stringify:d},g={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,n)=>f(t,n.replace(/_/g,"")),stringify:d},y={identify:e=>e 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:(e,t,n,r,i,s,o,a,l)=>{a&&(a=(a+"00").substr(1,3));let c=Date.UTC(t,n-1,r,i||0,s||0,o||0,a||0);if(l&&"Z"!==l){let e=f(l[0],l.slice(1));Math.abs(e)<30&&(e*=60),c-=6e4*e}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function E(e){let t={};return e?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function v(e,t){E(!1)&&console.warn(t?`${t}: ${e}`:e)}var S={};e.binary=r,e.floatTime=g,e.intTime=m,e.omap=l,e.pairs=o,e.set=u,e.timestamp=y,e.warn=v,e.warnFileDeprecation=function(e){E(!0)&&v(`The endpoint 'yaml/${e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/")}' will be removed in a future release.`,"DeprecationWarning")},e.warnOptionDeprecation=function(e,t){if(!S[e]&&E(!0)){S[e]=!0;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".",v(n,"DeprecationWarning")}}})),g=c((e=>{var t=p(),n=h(),r=m(),i={createNode:function(e,t,r){let i=new n.YAMLMap(e);if(t instanceof Map)for(let[n,s]of t)i.items.push(e.createPair(n,s,r));else if(t&&"object"==typeof t)for(let n of Object.keys(t))i.items.push(e.createPair(n,t[n],r));return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i},default:!0,nodeClass:n.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:n.resolveMap},s={createNode:function(e,t,r){let i=new n.YAMLSeq(e);if(t&&t[Symbol.iterator])for(let n of t){let t=e.createNode(n,r.wrapScalars,null,r);i.items.push(t)}return i},default:!0,nodeClass:n.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:n.resolveSeq},o={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:n.resolveString,stringify:(e,t,r,i)=>(t=Object.assign({actualString:!0},t),n.stringifyString(e,t,r,i)),options:n.strOptions},a=[i,s,o],l=e=>"bigint"==typeof e||Number.isInteger(e),c=(e,t,r)=>n.intOptions.asBigInt?BigInt(e):parseInt(t,r);function u(e,t,r){let{value:i}=e;return l(i)&&i>=0?r+i.toString(t):n.stringifyNumber(e)}var f={identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:n.nullOptions,stringify:()=>n.nullOptions.nullStr},d={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>"t"===e[0]||"T"===e[0],options:n.boolOptions,stringify:({value:e})=>e?n.boolOptions.trueStr:n.boolOptions.falseStr},g={identify:e=>l(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>c(e,t,8),options:n.intOptions,stringify:e=>u(e,8,"0o")},y={identify:l,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>c(e,e,10),options:n.intOptions,stringify:n.stringifyNumber},E={identify:e=>l(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>c(e,t,16),options:n.intOptions,stringify:e=>u(e,16,"0x")},v={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:n.stringifyNumber},S={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()},b={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,r){let i=t||r,s=new n.Scalar(parseFloat(e));return i&&"0"===i[i.length-1]&&(s.minFractionDigits=i.length),s},stringify:n.stringifyNumber},w=a.concat([f,d,g,y,E,v,S,b]),O=e=>"bigint"==typeof e||Number.isInteger(e),N=({value:e})=>JSON.stringify(e),A=[i,s,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:n.resolveString,stringify:N},{identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:N},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:N},{identify:O,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>n.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>O(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:N}];A.scalarFallback=e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)};var L=({value:e})=>e?n.boolOptions.trueStr:n.boolOptions.falseStr,M=e=>"bigint"==typeof e||Number.isInteger(e);function T(e,t,r){let i=t.replace(/_/g,"");if(n.intOptions.asBigInt){switch(r){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`}let t=BigInt(i);return"-"===e?BigInt(-1)*t:t}let s=parseInt(i,r);return"-"===e?-1*s:s}function x(e,t,r){let{value:i}=e;if(M(i)){let e=i.toString(t);return i<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}var k=a.concat([{identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:n.nullOptions,stringify:()=>n.nullOptions.nullStr},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:n.boolOptions,stringify:L},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:n.boolOptions,stringify:L},{identify:M,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>T(t,n,2),stringify:e=>x(e,2,"0b")},{identify:M,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>T(t,n,8),stringify:e=>x(e,8,"0")},{identify:M,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>T(t,n,10),stringify:n.stringifyNumber},{identify:M,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>T(t,n,16),stringify:e=>x(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:n.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){let r=new n.Scalar(parseFloat(e.replace(/_/g,"")));if(t){let e=t.replace(/_/g,"");"0"===e[e.length-1]&&(r.minFractionDigits=e.length)}return r},stringify:n.stringifyNumber}],r.binary,r.omap,r.pairs,r.set,r.intTime,r.floatTime,r.timestamp),C={core:w,failsafe:a,json:A,yaml11:k},I={binary:r.binary,bool:d,float:b,floatExp:S,floatNaN:v,floatTime:r.floatTime,int:y,intHex:E,intOct:g,intTime:r.intTime,map:i,null:f,omap:r.omap,pairs:r.pairs,seq:s,set:r.set,timestamp:r.timestamp};var $=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0,P=class e{constructor({customTags:e,merge:t,schema:n,sortMapEntries:i,tags:s}){this.merge=!!t,this.name=n,this.sortMapEntries=!0===i?$:i||null,!e&&s&&r.warnOptionDeprecation("tags","customTags"),this.tags=function(e,t,n,r){let i=e[r.replace(/\W/g,"")];if(!i){let t=Object.keys(e).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${t}`)}if(Array.isArray(n))for(let e of n)i=i.concat(e);else"function"==typeof n&&(i=n(i.slice()));for(let e=0;e<i.length;++e){let n=i[e];if("string"==typeof n){let r=t[n];if(!r){let e=Object.keys(t).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${e}`)}i[e]=r}}return i}(C,I,e||s,n)}createNode(t,r,o,a){let l={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:r};return function(e,t,r){if(e instanceof n.Node)return e;let{defaultPrefix:o,onTagObj:a,prevObjects:l,schema:c,wrapScalars:u}=r;t&&t.startsWith("!!")&&(t=o+t.slice(2));let f=function(e,t,n){if(t){let e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))||e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format))}(e,t,c.tags);if(!f){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e)return u?new n.Scalar(e):e;f=e instanceof Map?i:e[Symbol.iterator]?s:i}a&&(a(f),delete r.onTagObj);let p={value:void 0,node:void 0};if(e&&"object"==typeof e&&l){let t=l.get(e);if(t){let e=new n.Alias(t);return r.aliasNodes.push(e),e}p.value=e,l.set(e,p)}return p.node=f.createNode?f.createNode(r.schema,e,r):u?new n.Scalar(e):e,t&&p.node instanceof n.Node&&(p.node.tag=t),p.node}(t,o,a?Object.assign(a,l):l)}createPair(e,t,r){r||(r={wrapScalars:!0});let i=this.createNode(e,r.wrapScalars,null,r),s=this.createNode(t,r.wrapScalars,null,r);return new n.Pair(i,s)}};t._defineProperty(P,"defaultPrefix",t.defaultTagPrefix),t._defineProperty(P,"defaultTags",t.defaultTags),e.Schema=P})),y=c((e=>{var t=p(),n=h(),r=g(),i={get binary(){return n.binaryOptions},set binary(e){Object.assign(n.binaryOptions,e)},get bool(){return n.boolOptions},set bool(e){Object.assign(n.boolOptions,e)},get int(){return n.intOptions},set int(e){Object.assign(n.intOptions,e)},get null(){return n.nullOptions},set null(e){Object.assign(n.nullOptions,e)},get str(){return n.strOptions},set str(e){Object.assign(n.strOptions,e)}},s={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:t.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:t.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:t.defaultTagPrefix}]}};function o(e,t){if("1.0"===(e.version||e.options.version)){let e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];let n=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?`!${n[1]}/${n[2]}`:`!${t.replace(/^tag:/,"")}`}let n=e.tagPrefixes.find((e=>0===t.indexOf(e.prefix)));if(!n){let r=e.getDefaults().tagPrefixes;n=r&&r.find((e=>0===t.indexOf(e.prefix)))}if(!n)return"!"===t[0]?t:`!<${t}>`;let r=t.substr(n.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return n.handle+r}function a(e,t,r,i){let s,{anchors:a,schema:l}=t.doc;if(!(e instanceof n.Node)){let t={aliasNodes:[],onTagObj:e=>s=e,prevObjects:new Map};e=l.createNode(e,!0,null,t);for(let e of t.aliasNodes){e.source=e.source.node;let t=a.getName(e.source);t||(t=a.newName(),a.map[t]=e.source)}}if(e instanceof n.Pair)return e.toString(t,r,i);s||(s=function(e,t){if(t instanceof n.Alias)return n.Alias;if(t.tag){let n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))||n[0]}let r,i;if(t instanceof n.Scalar){i=t.value;let n=e.filter((e=>e.identify&&e.identify(i)||e.class&&i instanceof e.class));r=n.find((e=>e.format===t.format))||n.find((e=>!e.format))}else i=t,r=e.find((e=>e.nodeClass&&i instanceof e.nodeClass));if(!r){let e=i&&i.constructor?i.constructor.name:typeof i;throw new Error(`Tag not resolved for ${e} value`)}return r}(l.tags,e));let c=function(e,t,{anchors:n,doc:r}){let i=[],s=r.anchors.getName(e);return s&&(n[s]=e,i.push(`&${s}`)),e.tag?i.push(o(r,e.tag)):t.default||i.push(o(r,t.tag)),i.join(" ")}(e,s,t);c.length>0&&(t.indentAtStart=(t.indentAtStart||0)+c.length+1);let u="function"==typeof s.stringify?s.stringify(e,t,r,i):e instanceof n.Scalar?n.stringifyString(e,t,r,i):e.toString(t,r,i);return c?e instanceof n.Scalar||"{"===u[0]||"["===u[0]?`${c} ${u}`:`${c}\n${t.indent}${u}`:u}var l=class e{static validAnchorNode(e){return e instanceof n.Scalar||e instanceof n.YAMLSeq||e instanceof n.YAMLMap}constructor(e){t._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,t){return this.setAnchor(e,t),new n.Alias(e)}createMergePair(...e){let t=new n.Merge;return t.value.items=e.map((e=>{if(e instanceof n.Alias){if(e.source instanceof n.YAMLMap)return e}else if(e instanceof n.YAMLMap)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")})),t}getName(e){let{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);let t=Object.keys(this.map);for(let n=1;;++n){let r=`${e}${n}`;if(!t.includes(r))return r}}resolveNodes(){let{map:e,_cstAliases:t}=this;Object.keys(e).forEach((t=>{e[t]=e[t].resolved})),t.forEach((e=>{e.source=e.source.resolved})),delete this._cstAliases}setAnchor(t,n){if(null!=t&&!e.validAnchorNode(t))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");let{map:r}=this,i=t&&Object.keys(r).find((e=>r[e]===t));if(i){if(!n)return i;i!==n&&(delete r[i],r[n]=t)}else{if(!n){if(!t)return null;n=this.newName()}r[n]=t}return n}},c=(e,t)=>{if(e&&"object"==typeof e){let{tag:r}=e;e instanceof n.Collection?(r&&(t[r]=!0),e.items.forEach((e=>c(e,t)))):e instanceof n.Pair?(c(e.key,t),c(e.value,t)):e instanceof n.Scalar&&r&&(t[r]=!0)}return t};function u({tagPrefixes:e},n){let[r,i]=n.parameters;if(!r||!i){let e="Insufficient parameters given for %TAG directive";throw new t.YAMLSemanticError(n,e)}if(e.some((e=>e.handle===r))){let e="The %TAG directive must only be given at most once per handle in the same document.";throw new t.YAMLSemanticError(n,e)}return{handle:r,prefix:i}}function f(e,n){let[r]=n.parameters;if("YAML:1.0"===n.name&&(r="1.0"),!r){let e="Insufficient parameters given for %YAML directive";throw new t.YAMLSemanticError(n,e)}if(!s[r]){let i=`Document will be parsed as YAML ${e.version||e.options.version} rather than YAML ${r}`;e.warnings.push(new t.YAMLWarning(n,i))}return r}function d(e){if(e instanceof n.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var m=class e{constructor(e){this.anchors=new l(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return d(this.contents),this.contents.add(e)}addIn(e,t){d(this.contents),this.contents.addIn(e,t)}delete(e){return d(this.contents),this.contents.delete(e)}deleteIn(e){return n.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):(d(this.contents),this.contents.deleteIn(e))}getDefaults(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof n.Collection?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&this.contents instanceof n.Scalar?this.contents.value:this.contents:this.contents instanceof n.Collection?this.contents.getIn(e,t):void 0}has(e){return this.contents instanceof n.Collection&&this.contents.has(e)}hasIn(e){return n.isEmptyPath(e)?void 0!==this.contents:this.contents instanceof n.Collection&&this.contents.hasIn(e)}set(e,t){d(this.contents),this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:(d(this.contents),this.contents.setIn(e,t))}setSchema(e,t){if(!e&&!t&&this.schema)return;"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);let n=Object.assign({},this.getDefaults(),this.options);this.schema=new r.Schema(n)}parse(e,r){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:i=[],contents:s=[],directivesEndMarker:o,error:a,valueRange:l}=e;if(a&&(a.source||(a.source=this),this.errors.push(a)),function(e,n,r){let i=[],s=!1;for(let r of n){let{comment:n,name:o}=r;switch(o){case"TAG":try{e.tagPrefixes.push(u(e,r))}catch(t){e.errors.push(t)}s=!0;break;case"YAML":case"YAML:1.0":if(e.version){let n="The %YAML directive must only be given at most once per document.";e.errors.push(new t.YAMLSemanticError(r,n))}try{e.version=f(e,r)}catch(t){e.errors.push(t)}s=!0;break;default:if(o){let n=`YAML only supports %TAG and %YAML directives, and not %${o}`;e.warnings.push(new t.YAMLWarning(r,n))}}n&&i.push(n)}if(r&&!s&&"1.1"===(e.version||r.version||e.options.version)){let t=({handle:e,prefix:t})=>({handle:e,prefix:t});e.tagPrefixes=r.tagPrefixes.map(t),e.version=r.version}e.commentBefore=i.join("\n")||null}(this,i,r),o&&(this.directivesEndMarker=!0),this.range=l?[l.start,l.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(e,r){let i,s={before:[],after:[]},o=!1;for(let a of r)if(a.valueRange){if(void 0!==i){let n="Document contains trailing content not separated by a ... or --- line";e.errors.push(new t.YAMLSyntaxError(a,n));break}let r=n.resolveNode(e,a);o&&(r.spaceBefore=!0,o=!1),i=r}else null!==a.comment?(void 0===i?s.before:s.after).push(a.comment):a.type===t.Type.BLANK_LINE&&(o=!0,void 0===i&&s.before.length>0&&!e.commentBefore&&(e.commentBefore=s.before.join("\n"),s.before=[]));if(e.contents=i||null,i){let t=s.before.join("\n");if(t){let e=i instanceof n.Collection&&i.items[0]?i.items[0]:i;e.commentBefore=e.commentBefore?`${t}\n${e.commentBefore}`:t}e.comment=s.after.join("\n")||null}else e.comment=s.before.concat(s.after).join("\n")||null}(this,s),this.anchors.resolveNodes(),this.options.prettyErrors){for(let e of this.errors)e instanceof t.YAMLError&&e.makePretty();for(let e of this.warnings)e instanceof t.YAMLError&&e.makePretty()}return this}listNonDefaultTags(){return(e=>Object.keys(c(e,{})))(this.contents).filter((e=>0!==e.indexOf(r.Schema.defaultPrefix)))}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){let n=this.tagPrefixes.find((t=>t.handle===e));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((t=>t.handle!==e))}toJSON(e,t){let{keepBlobsInJSON:r,mapAsMap:i,maxAliasCount:s}=this.options,o=r&&("string"!=typeof e||!(this.contents instanceof n.Scalar)),l={doc:this,indentStep:" ",keep:o,mapAsMap:o&&!!i,maxAliasCount:s,stringify:a},c=Object.keys(this.anchors.map);c.length>0&&(l.anchors=new Map(c.map((e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}]))));let u=n.toJSON(this.contents,e,l);if("function"==typeof t&&l.anchors)for(let{count:e,res:n}of l.anchors.values())t(n,e);return u}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let e=this.options.indent;if(!Number.isInteger(e)||e<=0){let t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();let t=[],r=!1;if(this.version){let e="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?e="%YAML:1.0":"1.1"===this.version&&(e="%YAML 1.1")),t.push(e),r=!0}let i=this.listNonDefaultTags();this.tagPrefixes.forEach((({handle:e,prefix:n})=>{i.some((e=>0===e.indexOf(n)))&&(t.push(`%TAG ${e} ${n}`),r=!0)})),(r||this.directivesEndMarker)&&t.push("---"),this.commentBefore&&((r||!this.directivesEndMarker)&&t.unshift(""),t.unshift(this.commentBefore.replace(/^/gm,"#")));let s={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:a},o=!1,l=null;if(this.contents){this.contents instanceof n.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&t.push(""),this.contents.commentBefore&&t.push(this.contents.commentBefore.replace(/^/gm,"#")),s.forceBlockIndent=!!this.comment,l=this.contents.comment);let e=l?null:()=>o=!0,i=a(this.contents,s,(()=>l=null),e);t.push(n.addComment(i,"",l))}else void 0!==this.contents&&t.push(a(this.contents,s));return this.comment&&((!o||l)&&""!==t[t.length-1]&&t.push(""),t.push(this.comment.replace(/^/gm,"#"))),t.join("\n")+"\n"}};t._defineProperty(m,"defaults",s),e.Document=m,e.defaultOptions={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},e.scalarOptions=i})),E=c((e=>{var t=d(),n=y(),r=g(),i=p(),s=m();h();var o=class extends n.Document{constructor(e){super(Object.assign({},n.defaultOptions,e))}};function a(e,n){let r=t.parse(e),s=new o(n).parse(r[0]);if(r.length>1){let e="Source contains multiple documents; please use YAML.parseAllDocuments()";s.errors.unshift(new i.YAMLSemanticError(r[1],e))}return s}var l={createNode:function(e,t=!0,i){void 0===i&&"string"==typeof t&&(i=t,t=!0);let s=Object.assign({},n.Document.defaults[n.defaultOptions.version],n.defaultOptions);return new r.Schema(s).createNode(e,t,i)},defaultOptions:n.defaultOptions,Document:o,parse:function(e,t){let n=a(e,t);if(n.warnings.forEach((e=>s.warn(e))),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,n){let r,i=[];for(let s of t.parse(e)){let e=new o(n);e.parse(s,r),i.push(e),r=e}return i},parseCST:t.parse,parseDocument:a,scalarOptions:n.scalarOptions,stringify:function(e,t){let n=new o(t);return n.contents=e,String(n)}};e.YAML=l})),v=c(((e,t)=>{t.exports=E().YAML})),S=c((e=>{var t=h(),n=p();e.findPair=t.findPair,e.parseMap=t.resolveMap,e.parseSeq=t.resolveSeq,e.stringifyNumber=t.stringifyNumber,e.stringifyString=t.stringifyString,e.toJSON=t.toJSON,e.Type=n.Type,e.YAMLError=n.YAMLError,e.YAMLReferenceError=n.YAMLReferenceError,e.YAMLSemanticError=n.YAMLSemanticError,e.YAMLSyntaxError=n.YAMLSyntaxError,e.YAMLWarning=n.YAMLWarning})),b={};u(b,{languages:()=>Ue,options:()=>Ve,parsers:()=>Qe,printers:()=>Xt});var w=(e,t,n,r)=>{if(!e||null!=t)return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},O="string",N="array",A="cursor",L="indent",M="align",T="trim",x="group",k="fill",C="if-break",I="indent-if-break",$="line-suffix",P="line-suffix-boundary",R="line",_="label",Y="break-parent",B=new Set([A,L,M,T,x,k,C,I,$,P,R,_,Y]),D=(e,t,n)=>{if(!e||null!=t)return Array.isArray(t)||"string"==typeof t?t[n<0?t.length+n:n]:t.at(n)},F=function(e){if("string"==typeof e)return O;if(Array.isArray(e))return N;if(!e)return;let{type:t}=e;return B.has(t)?t:void 0};var W=class extends Error{name="InvalidDocError";constructor(e){super(function(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', \nExpected it to be 'string' or 'object'.`;if(F(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if("[object Object]"!==n)return`Unexpected doc '${n}'.`;let r=(e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e))([...B].map((e=>`'${e}'`)));return`Unexpected doc.type '${e.type}'.\nExpected it to be ${r}.`}(e)),this.doc=e}};var j=()=>{},q=j,U=j,K=j;function V(e,t){return q(t),{type:M,contents:t,n:e}}function Q(e,t={}){return q(e),U(t.expandedStates,!0),{type:x,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function J(e){return V(Number.NEGATIVE_INFINITY,e)}function H(e){return V({type:"root"},e)}function G(e,t){return Q(e[0],{...t,expandedStates:e})}function z(e){return K(e),{type:k,parts:e}}function Z(e,t="",n={}){return q(e),""!==t&&q(t),{type:C,breakContents:e,flatContents:t,groupId:n.groupId}}var X={type:Y},ee={type:R},te={type:R,soft:!0},ne=[{type:R,hard:!0},X],re=[{type:R,hard:!0,literal:!0},X];function ie(e,t){q(e),U(t);let n=[];for(let r=0;r<t.length;r++)0!==r&&n.push(e),n.push(t[r]);return n}function se(e){return(t,n,r)=>{let i=!(null==r||!r.backwards);if(!1===n)return!1;let{length:s}=t,o=n;for(;o>=0&&o<s;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;i?o--:o++}return(-1===o||o===s)&&o}}se(/\s/u);var oe=se(" \t");se(",; \t"),se(/[^\n\r]/u);var ae=function(e,t,n){let r=!(null==n||!n.backwards);if(!1===t)return!1;let i=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t},le=function(e,t){let n=t-1;return n=oe(e,n,{backwards:!0}),n=ae(e,n,{backwards:!0}),n=oe(e,n,{backwards:!0}),n!==ae(e,n,{backwards:!0})},ce=class extends Error{name="UnexpectedNodeError";constructor(e,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}};function ue(e,t){let{node:n}=e;if("root"===n.type&&t.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/u.test(t.filepath))return async e=>{let n=await e(t.originalText,{parser:"json"});return n?[n,ne]:void 0}}ue.getVisitorKeys=()=>[];var fe=ue,pe=null;function de(e){if(null!==pe&&(pe.property,1)){let e=pe;return pe=de.prototype=null,e}return pe=de.prototype=e??Object.create(null),new de}for(let e=0;e<=10;e++)de();var he=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["content","children"],comment:[],tag:[],anchor:[]}).map((([e,t])=>[e,[...t,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]]))),me=function(e,t="type"){return function(e){de(e)}(e),function(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${r}'.`),{node:n});return i}}(he);function ge(e){return e.position.start.offset}var ye=function(e){return Array.isArray(e)&&e.length>0};function Ee(e,t){return"string"==typeof(null==e?void 0:e.type)&&(!t||t.includes(e.type))}function ve(e,t,n){return t("children"in e?{...e,children:e.children.map((n=>ve(n,t,e)))}:e,n)}function Se(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1})}function be(e){let{node:t}=e;switch(t.type){case"tag":case"anchor":case"comment":return!1}let n=e.stack.length;for(let t=1;t<n;t++){let n=e.stack[t],r=e.stack[t-1];if(Array.isArray(r)&&"number"==typeof n&&n!==r.length-1)return!1}return!0}function we(e){return ye(e.children)?we(D(!1,e.children,-1)):e}function Oe(e){return"prettier-ignore"===e.value.trim()}function Ne(e){return!ye(e.children)&&!function(e){return Ae(e)||Le(e)||Me(e)||Te(e)||xe(e)}(e)}function Ae(e){return ye(null==e?void 0:e.leadingComments)}function Le(e){return ye(null==e?void 0:e.middleComments)}function Me(e){return null==e?void 0:e.indicatorComment}function Te(e){return null==e?void 0:e.trailingComment}function xe(e){return ye(null==e?void 0:e.endComments)}function ke(e){let t,n=[];for(let r of e.split(/( +)/u))" "!==r?" "===t?n.push(r):n.push((n.pop()||"")+r):void 0===t&&n.unshift(""),t=r;return" "===t&&n.push((n.pop()||"")+" "),""===n[0]&&(n.shift(),n.unshift(" "+(n.shift()||""))),n}function Ce(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var Ie=new WeakMap;function $e(e,t){let n,{node:r,root:i}=e;return Ie.has(i)?n=Ie.get(i):(n=new Set,Ie.set(i,n)),n.has(r.position.end.line)||(n.add(r.position.end.line),!function(e,t){let n=0,r=t.length;for(let i=e.position.end.offset-1;i<r;i++){let e=t[i];if("\n"===e&&n++,1===n&&/\S/u.test(e))return!1;if(2===n)return!0}return!1}(r,t)||Pe(e.parent))?"":te}function Pe(e){return xe(e)&&!Ee(e,["documentHead","documentBody","flowMapping","flowSequence"])}function Re(e,t){return V(" ".repeat(e),t)}function _e(e,t,n){return e.map((({isLast:r,node:i,next:s})=>[t(),r?"":[",",ee,i.position.start.line!==s.position.start.line?$e(e,n.originalText):""]]),"children")}function Ye(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/mu.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes("\n");case"always":return!/[\n ]/u.test(e.value);default:return!1}}function Be(e){switch(e.type){case"document":Se(e,"head",(()=>e.children[0])),Se(e,"body",(()=>e.children[1]));break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Se(e,"content",(()=>e.children[0]));break;case"mappingItem":case"flowMappingItem":Se(e,"key",(()=>e.children[0])),Se(e,"value",(()=>e.children[1]))}return e}function De(e,t){return Te(e)||t&&(t.head.children.length>0||xe(t.head))}function Fe(e,t,n){let r=function(e,t,n){let r=t.split("\n").map(((e,t,n)=>0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimEnd():e.trimStart()));return"preserve"===n.proseWrap?r.map((e=>0===e.length?[]:[e])):r.map((e=>0===e.length?[]:ke(e))).reduce(((t,n,i)=>0!==i&&r[i-1].length>0&&n.length>0&&("quoteDouble"!==e||!D(!1,D(!1,t,-1),-1).endsWith("\\"))?[...t.slice(0,-1),[...D(!1,t,-1),...n]]:[...t,n]),[]).map((e=>"never"===n.proseWrap?[e.join(" ")]:e))}(e,t,n);return ie(ne,r.map((e=>z(ie(ee,e)))))}function We(e,t){if(Ee(e))switch(e.type){case"comment":if(function(e){return/^\s*@(?:prettier|format)\s*$/u.test(e)}(e.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}}We.ignoredProperties=new Set(["position"]);var je={preprocess:function(e){return ve(e,Be)},embed:fe,print:function(e,t,n){let{node:r}=e,i=[];"mappingValue"!==r.type&&Ae(r)&&i.push([ie(ne,e.map(n,"leadingComments")),ne]);let{tag:s,anchor:o}=r;s&&i.push(n("tag")),s&&o&&i.push(" "),o&&i.push(n("anchor"));let a="";return Ee(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!be(e)&&(a=$e(e,t.originalText)),(s||o)&&(Ee(r,["sequence","mapping"])&&!Le(r)?i.push(ne):i.push(" ")),Le(r)&&i.push([1===r.middleComments.length?"":ne,ie(ne,e.map(n,"middleComments")),ne]),function(e){let{node:t}=e;if("documentBody"===t.type){let t=e.parent.head;return xe(t)&&Oe(D(!1,t.endComments,-1))}return Ae(t)&&Oe(D(!1,t.leadingComments,-1))}(e)?i.push(function(e,t=re){return function(e,t){if("string"==typeof e)return t(e);let n=new Map;return function e(r){if(n.has(r))return n.get(r);let i=function(n){switch(F(n)){case N:return t(n.map(e));case k:return t({...n,parts:n.parts.map(e)});case C:return t({...n,breakContents:e(n.breakContents),flatContents:e(n.flatContents)});case x:{let{expandedStates:r,contents:i}=n;return r?(r=r.map(e),i=r[0]):i=e(i),t({...n,contents:i,expandedStates:r})}case M:case L:case I:case _:case $:return t({...n,contents:e(n.contents)});case O:case A:case T:case P:case R:case Y:return t(n);default:throw new W(n)}}(r);return n.set(r,i),i}(e)}(e,(e=>"string"==typeof e?ie(t,e.split("\n")):e))}(t.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):i.push(Q(function(e,t,n){let{node:r}=e;switch(r.type){case"root":{let t=[];e.each((({node:e,next:r,isFirst:i})=>{i||t.push(ne),t.push(n()),De(e,r)?(t.push(ne,"..."),Te(e)&&t.push(" ",n("trailingComment"))):r&&!Te(r.head)&&t.push(ne,"---")}),"children");let i=we(r);return(!Ee(i,["blockLiteral","blockFolded"])||"keep"!==i.chomping)&&t.push(ne),t}case"document":{let i=[];return"head"===function(e,t){let n=e.node;if(e.isFirst&&/---(?:\s|$)/u.test(t.originalText.slice(ge(n),ge(n)+4))||n.head.children.length>0||xe(n.head)||Te(n.head))return"head";let r=e.next;return!De(n,r)&&!!r&&"root"}(e,t)&&((r.head.children.length>0||r.head.endComments.length>0)&&i.push(n("head")),Te(r.head)?i.push(["---"," ",n(["head","trailingComment"])]):i.push("---")),function(e){return e.body.children.length>0||xe(e.body)}(r)&&i.push(n("body")),ie(ne,i)}case"documentHead":return ie(ne,[...e.map(n,"children"),...e.map(n,"endComments")]);case"documentBody":{let{children:t,endComments:i}=r,s="";if(t.length>0&&i.length>0){let e=we(r);Ee(e,["blockFolded","blockLiteral"])?"keep"!==e.chomping&&(s=[ne,ne]):s=ne}return[ie(ne,e.map(n,"children")),s,ie(ne,e.map(n,"endComments"))]}case"directive":return["%",ie(" ",[r.name,...r.parameters])];case"comment":return["#",r.value];case"alias":return["*",r.value];case"tag":return t.originalText.slice(r.position.start.offset,r.position.end.offset);case"anchor":return["&",r.value];case"plain":return Fe(r.type,t.originalText.slice(r.position.start.offset,r.position.end.offset),t);case"quoteDouble":case"quoteSingle":{let e="'",n='"',i=t.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if("quoteSingle"===r.type&&i.includes("\\")||"quoteDouble"===r.type&&/\\[^"]/u.test(i)){let s="quoteDouble"===r.type?n:e;return[s,Fe(r.type,i,t),s]}if(i.includes(n))return[e,Fe(r.type,"quoteDouble"===r.type?w(!1,w(!1,i,String.raw`\"`,n),"'",e.repeat(2)):i,t),e];if(i.includes(e))return[n,Fe(r.type,"quoteSingle"===r.type?w(!1,i,"''",e):i,t),n];let s=t.singleQuote?e:n;return[s,Fe(r.type,i,t),s]}case"blockFolded":case"blockLiteral":return function(e,t,n){let{node:r}=e,i=e.ancestors.filter((e=>"sequence"===e.type||"mapping"===e.type)).length,s=be(e),o=["blockFolded"===r.type?">":"|"];null!==r.indent&&o.push(r.indent.toString()),"clip"!==r.chomping&&o.push("keep"===r.chomping?"+":"-"),Me(r)&&o.push(" ",t("indicatorComment"));let a=function(e,{parentIndent:t,isLastDescendant:n,options:r}){let i,s=e.position.start.line===e.position.end.line?"":r.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*\n(.*)$/su)[1];if(null===e.indent){let e=s.match(/^(?<leadingSpace> *)[^\n\r ]/mu);i=e?e.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else i=e.indent-1+t;let o=s.split("\n").map((e=>e.slice(i)));return"preserve"===r.proseWrap||"blockLiteral"===e.type?a(o.map((e=>0===e.length?[]:[e]))):a(o.map((e=>0===e.length?[]:ke(e))).reduce(((e,t,n)=>0!==n&&o[n-1].length>0&&t.length>0&&!/^\s/u.test(t[0])&&!/^\s|\s$/u.test(D(!1,e,-1))?[...e.slice(0,-1),[...D(!1,e,-1),...t]]:[...e,t]),[]).map((e=>e.reduce(((e,t)=>e.length>0&&/\s$/u.test(D(!1,e,-1))?[...e.slice(0,-1),D(!1,e,-1)+" "+t]:[...e,t]),[]))).map((e=>"never"===r.proseWrap?[e.join(" ")]:e)));function a(t){if("keep"===e.chomping)return 0===D(!1,t,-1).length?t.slice(0,-1):t;let r=0;for(let e=t.length-1;e>=0&&0===t[e].length;e--)r++;return 0===r?t:r>=2&&!n?t.slice(0,-(r-1)):t.slice(0,-r)}}(r,{parentIndent:i,isLastDescendant:s,options:n}),l=[];for(let[e,t]of a.entries())0===e&&l.push(ne),l.push(z(ie(ee,t))),e!==a.length-1?l.push(0===t.length?ne:H(re)):"keep"===r.chomping&&s&&l.push(J(0===t.length?ne:re));return null===r.indent?o.push(function(e){return V(-1,e)}(Re(n.tabWidth,l))):o.push(J(Re(r.indent-1+i,l))),o}(e,n,t);case"mapping":case"sequence":return ie(ne,e.map(n,"children"));case"sequenceItem":return["- ",Re(2,r.content?n("content"):"")];case"mappingKey":case"mappingValue":return r.content?n("content"):"";case"mappingItem":case"flowMappingItem":return function(e,t,n){var r;let{node:i,parent:s}=e,{key:o,value:a}=i,l=Ne(o),c=Ne(a);if(l&&c)return": ";let u=t("key"),f=function(e){var t;return"alias"===(null==(t=e.key.content)?void 0:t.type)}(i)?" ":"";if(c)return"flowMappingItem"===i.type&&"flowMapping"===s.type?u:"mappingItem"===i.type&&Ye(o.content,n)&&!Te(o.content)&&"tag:yaml.org,2002:set"!==(null==(r=s.tag)?void 0:r.value)?[u,f,":"]:["? ",Re(2,u)];let p=t("value");if(l)return[": ",Re(2,p)];if(Ae(a)||!Ce(o.content))return["? ",Re(2,u),ne,...e.map((()=>[t(),ne]),"value","leadingComments"),": ",Re(2,p)];if(function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(o.content)&&!Ae(o.content)&&!Le(o.content)&&!Te(o.content)&&!xe(o)&&!Ae(a.content)&&!Le(a.content)&&!xe(a)&&Ye(a.content,n))return[u,f,": ",p];let d=Symbol("mappingKey"),h=Q([Z("? "),Q(Re(2,u),{id:d})]),m=[ne,": ",Re(2,p)],g=[f,":"];Ae(a.content)||xe(a)&&a.content&&!Ee(a.content,["mapping","sequence"])||"mapping"===s.type&&Te(o.content)&&Ce(a.content)||Ee(a.content,["mapping","sequence"])&&null===a.content.tag&&null===a.content.anchor?g.push(ne):a.content?g.push(ee):Te(a)&&g.push(" "),g.push(p);let y=Re(n.tabWidth,g);return!Ye(o.content,n)||Ae(o.content)||Le(o.content)||xe(o)?G([[h,Z(m,y,{groupId:d})]]):G([[u,y]])}(e,n,t);case"flowMapping":case"flowSequence":return function(e,t,n){let{node:r}=e,i="flowMapping"===r.type,s=i?"{":"[",o=i?"}":"]",a=te;i&&r.children.length>0&&n.bracketSpacing&&(a=ee);let l=D(!1,r.children,-1),c="flowMappingItem"===(null==l?void 0:l.type)&&Ne(l.key)&&Ne(l.value);return[s,Re(n.tabWidth,[a,_e(e,t,n),"none"===n.trailingComma?"":Z(","),xe(r)?[ne,ie(ne,e.map(t,"endComments"))]:""]),c?"":a,o]}(e,n,t);case"flowSequenceItem":return n("content");default:throw new ce(r,"YAML")}}(e,t,n))),Te(r)&&!Ee(r,["document","documentHead"])&&i.push(function(e){return q(e),{type:$,contents:e}}(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===e.parent.type&&"mapping"===e.getParentNode(2).type&&Ce(r)?"":X,n("trailingComment")])),Pe(r)&&i.push(Re("sequenceItem"===r.type?2:0,[ne,ie(ne,e.map((({node:e})=>[le(t.originalText,ge(e))?ne:"",n()]),"endComments"))])),i.push(a),i},massageAstNode:We,insertPragma:function(e){return`# @format\n\n${e}`},getVisitorKeys:me},qe=je,Ue=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"]}],Ke={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Ve={bracketSpacing:Ke.bracketSpacing,singleQuote:Ke.singleQuote,proseWrap:Ke.proseWrap},Qe={};u(Qe,{yaml:()=>Zt});var Je,He,Ge,ze=function(){function e(e){this.length=e.length;for(var t=[0],n=0;n<e.length;)switch(e[n]){case"\n":n+=1,t.push(n);break;case"\r":"\n"===e[n+=1]&&(n+=1),t.push(n);break;default:n++}this.offsets=t}return e.prototype.locationForIndex=function(e){if(e<0||e>this.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.length:this.offsets[e+1])-t},e}();function Ze(e,t=null){"children"in e&&e.children.forEach((t=>Ze(t,e))),"anchor"in e&&e.anchor&&Ze(e.anchor,e),"tag"in e&&e.tag&&Ze(e.tag,e),"leadingComments"in e&&e.leadingComments.forEach((t=>Ze(t,e))),"middleComments"in e&&e.middleComments.forEach((t=>Ze(t,e))),"indicatorComment"in e&&e.indicatorComment&&Ze(e.indicatorComment,e),"trailingComment"in e&&e.trailingComment&&Ze(e.trailingComment,e),"endComments"in e&&e.endComments.forEach((t=>Ze(t,e))),Object.defineProperty(e,"_parent",{value:t,enumerable:!1})}function Xe(e){return`${e.line}:${e.column}`}function et(e){Ze(e);let t=function(e){let t=Array.from(new Array(e.position.end.line),(()=>({})));for(let n of e.comments)t[n.position.start.line-1].comment=n;return tt(t,e),t}(e),n=e.children.slice();e.comments.sort(((e,t)=>e.position.start.offset-t.position.end.offset)).filter((e=>!e._parent)).forEach((e=>{for(;n.length>1&&e.position.start.line>n[0].position.end.line;)n.shift();!function(e,t,n){let r=e.position.start.line,{trailingAttachableNode:i}=t[r-1];if(i){if(i.trailingComment)throw new Error(`Unexpected multiple trailing comment at ${Xe(e.position.start)}`);return Ze(e,i),void(i.trailingComment=e)}for(let i=r;i>=n.position.start.line;i--){let n,{trailingNode:s}=t[i-1];if(s)n=s;else{if(i===r||!t[i-1].comment)continue;n=t[i-1].comment._parent}if(("sequence"===n.type||"mapping"===n.type)&&(n=n.children[0]),"mappingItem"===n.type){let[e,t]=n.children;n=rt(e)?e:t}for(;;){if(nt(n,e))return Ze(e,n),void n.endComments.push(e);if(!n._parent)break;n=n._parent}break}for(let i=r+1;i<=n.position.end.line;i++){let{leadingAttachableNode:n}=t[i-1];if(n)return Ze(e,n),void n.leadingComments.push(e)}let s=n.children[1];Ze(e,s),s.endComments.push(e)}(e,t,n[0])}))}function tt(e,t){if(t.position.start.offset!==t.position.end.offset){if("leadingComments"in t){let{start:n}=t.position,{leadingAttachableNode:r}=e[n.line-1];(!r||n.column<r.position.start.column)&&(e[n.line-1].leadingAttachableNode=t)}if("trailingComment"in t&&t.position.end.column>1&&"document"!==t.type&&"documentHead"!==t.type){let{end:n}=t.position,{trailingAttachableNode:r}=e[n.line-1];(!r||n.column>=r.position.end.column)&&(e[n.line-1].trailingAttachableNode=t)}if("root"!==t.type&&"document"!==t.type&&"documentHead"!==t.type&&"documentBody"!==t.type){let{start:n,end:r}=t.position,i=[r.line].concat(n.line===r.line?[]:n.line);for(let n of i){let i=e[n-1].trailingNode;(!i||r.column>=i.position.end.column)&&(e[n-1].trailingNode=t)}}"children"in t&&t.children.forEach((t=>{tt(e,t)}))}}function nt(e,t){if(e.position.start.offset<t.position.start.offset&&e.position.end.offset>t.position.end.offset)switch(e.type){case"flowMapping":case"flowSequence":return 0===e.children.length||t.position.start.line>e.children[e.children.length-1].position.end.line}if(t.position.end.offset<e.position.end.offset)return!1;switch(e.type){case"sequenceItem":return t.position.start.column>e.position.start.column;case"mappingKey":case"mappingValue":return t.position.start.column>e._parent.position.start.column&&(0===e.children.length||1===e.children.length&&"blockFolded"!==e.children[0].type&&"blockLiteral"!==e.children[0].type)&&("mappingValue"===e.type||rt(e));default:return!1}}function rt(e){return e.position.start!==e.position.end&&(0===e.children.length||e.position.start.offset!==e.children[0].position.start.offset)}function it(e,t){return{type:e,position:t}}function st(e){switch(e.type){case"DOCUMENT":for(let t=e.contents.length-1;t>=0;t--)"BLANK_LINE"===e.contents[t].type?e.contents.splice(t,1):st(e.contents[t]);for(let t=e.directives.length-1;t>=0;t--)"BLANK_LINE"===e.directives[t].type&&e.directives.splice(t,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(let t=e.items.length-1;t>=0;t--){let n=e.items[t];"char"in n||("BLANK_LINE"===n.type?e.items.splice(t,1):st(n))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":e.node&&st(e.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error(`Unexpected node type ${JSON.stringify(e.type)}`)}}function ot(e=null){return{trailingComment:e}}function at(){return{leadingComments:[],...ot()}}function lt(e,t){return{...it("anchor",e),value:t}}function ct(e,t){return{...it("comment",e),value:t}}function ut(e,t){return{...it("tag",e),value:t}}function ft(e,t,n=()=>!1){let r=e.cstNode,i=[],s=null,o=null,a=null;for(let l of r.props){let c=t.text[l.origStart];switch(c){case Je.Tag:s=s||l,o=ut(t.transformRange(l),e.tag);break;case Je.Anchor:s=s||l,a=lt(t.transformRange(l),r.anchor);break;case Je.Comment:{let e=ct(t.transformRange(l),t.text.slice(l.origStart+1,l.origEnd));t.comments.push(e),!n(e)&&s&&s.origEnd<=l.origStart&&l.origEnd<=r.valueRange.origStart&&i.push(e);break}default:throw new Error(`Unexpected leading character ${JSON.stringify(c)}`)}}return function(e,t,n){return{anchor:t,tag:e,middleComments:n}}(o,a,i)}function pt(e,t){let n=e.cstNode,r="CLIP"===n.chomping?0:1,i=n.header.origEnd-n.header.origStart-1-r!=0,s=t.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),o=null,a=ft(e,t,(e=>{if(!(s.start.offset<e.position.start.offset&&e.position.end.offset<s.end.offset))return!1;if(o)throw new Error(`Unexpected multiple indicator comments at ${Xe(e.position.start)}`);return o=e,!0}));return function(e,t,n,r,i,s){return{...it("blockValue",e),leadingComments:[],...t,chomping:n,indent:r,value:i,indicatorComment:s}}(s,a,Ge[n.chomping],i?n.blockIndent:null,n.strValue,o)}function dt(e,t){for(let n of e.props){let e=t.text[n.origStart];if(e!==Je.Comment)throw new Error(`Unexpected leading character ${JSON.stringify(e)}`);t.comments.push(ct(t.transformRange(n),t.text.slice(n.origStart+1,n.origEnd)))}}function ht(e,t){return{start:e,end:t}}function mt(e){return{start:e,end:e}}function gt(e=[]){return{endComments:e}}function yt(e,t,n){return{...it("documentBody",e),...gt(n),children:t?[t]:[]}}function Et(e){return e[e.length-1]}function vt(e,t){let n=e.match(t);return n?n.index:-1}function St(e,t){let{createDocumentHeadWithTrailingComment:n,documentHeadEndMarkerPoint:r}=function(e,t){let n=e.cstNode,{directives:r,comments:i,endComments:s}=function(e,t){let n=[],r=[],i=[],s=!1;for(let o=e.directives.length-1;o>=0;o--){let a=t.transformNode(e.directives[o]);"comment"===a.type?s?r.unshift(a):i.unshift(a):(s=!0,n.unshift(a))}return{directives:n,comments:r,endComments:i}}(n,t),{position:o,endMarkerPoint:a}=function(e,t,n){let r=vt(n.text.slice(0,e.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);let i=-1===r?{origStart:e.valueRange.origStart,origEnd:e.valueRange.origStart}:{origStart:r,origEnd:r+3};return 0!==t.length&&(i.origStart=t[0].position.start.offset),{position:n.transformRange(i),endMarkerPoint:-1===r?null:n.transformOffset(r)}}(n,r,t);return t.comments.push(...i,...s),{createDocumentHeadWithTrailingComment:e=>(e&&t.comments.push(e),function(e,t,n,r){return{...it("documentHead",e),...gt(n),...ot(r),children:t}}(o,r,s,e)),documentHeadEndMarkerPoint:a}}(e,t),{documentBody:i,documentEndPoint:s,documentTrailingComment:o,documentHeadTrailingComment:a}=function(e,t,n){let r=e.cstNode,{comments:i,endComments:s,documentTrailingComment:o,documentHeadTrailingComment:a}=function(e,t,n){let r=[],i=[],s=[],o=!1;for(let a=e.contents.length-1;a>=0;a--){let l=e.contents[a];if("COMMENT"===l.type){let a=t.transformNode(l);n&&n.line===a.position.start.line?s.unshift(a):o?r.unshift(a):a.position.start.offset>=e.valueRange.origEnd?i.unshift(a):r.unshift(a)}else o=!0}if(i.length>1)throw new Error(`Unexpected multiple document trailing comments at ${Xe(i[1].position.start)}`);if(s.length>1)throw new Error(`Unexpected multiple documentHead trailing comments at ${Xe(s[1].position.start)}`);return{comments:r,endComments:[],documentTrailingComment:Et(i)||null,documentHeadTrailingComment:Et(s)||null}}(r,t,n),l=t.transformNode(e.contents),{position:c,documentEndPoint:u}=function(e,t,n){let r=vt(n.text.slice(e.valueRange.origEnd),/^\.\.\./),i=-1===r?e.valueRange.origEnd:Math.max(0,e.valueRange.origEnd-1);"\r"===n.text[i-1]&&i--;let s=n.transformRange({origStart:null!==t?t.position.start.offset:i,origEnd:i});return{position:s,documentEndPoint:-1===r?s.end:n.transformOffset(e.valueRange.origEnd+3)}}(r,l,t);return t.comments.push(...i,...s),{documentBody:yt(c,l,s),documentEndPoint:u,documentTrailingComment:o,documentHeadTrailingComment:a}}(e,t,r),l=n(a);return o&&t.comments.push(o),function(e,t,n,r){return{...it("document",e),...ot(r),children:[t,n]}}(ht(l.position.start,s),l,i,o)}function bt(e,t,n){return{...it("flowCollection",e),...at(),...gt(),...t,children:n}}function wt(e,t,n){return{...it("flowMappingItem",e),leadingComments:[],children:[t,n]}}function Ot(e,t){let n=[];for(let r of e)r&&"type"in r&&"COMMENT"===r.type?t.comments.push(t.transformNode(r)):n.push(r);return n}function Nt(e){let[t,n]=["?",":"].map((t=>{let n=e.find((e=>"char"in e&&e.char===t));return n?{origStart:n.origOffset,origEnd:n.origOffset+1}:null}));return{additionalKeyRange:t,additionalValueRange:n}}function At(e,t){let n=t;return t=>e.slice(n,n=t)}function Lt(e){let t=[],n=At(e,1),r=!1;for(let i=1;i<e.length-1;i++){let s=e[i];"char"in s&&","===s.char?(t.push(n(i)),n(i+1),r=!1):r=!0}return r&&t.push(n(e.length-1)),t}function Mt(e,t){return{...it("mappingKey",e),...ot(),...gt(),children:t?[t]:[]}}function Tt(e,t){return{...it("mappingValue",e),...at(),...gt(),children:t?[t]:[]}}function xt(e,t,n,r,i){let s=t.transformNode(e.key),o=t.transformNode(e.value),a=s||r?Mt(t.transformRange({origStart:r?r.origStart:s.position.start.offset,origEnd:s?s.position.end.offset:r.origStart+1}),s):null,l=o||i?Tt(t.transformRange({origStart:i?i.origStart:o.position.start.offset,origEnd:o?o.position.end.offset:i.origStart+1}),o):null;return n(ht(a?a.position.start:l.position.start,l?l.position.end:a.position.end),a||Mt(mt(l.position.start),null),l||Tt(mt(a.position.end),null))}function kt(e,t,n){return{...it("mappingItem",e),leadingComments:[],children:[t,n]}}function Ct(e,t,n){for(let r=t;r>=0;r--)if(n.test(e[r]))return r;return-1}function It(e,t){let n=e.cstNode;return function(e,t,n){return{...it("quoteValue",e),...t,...at(),value:n}}(t.transformRange(n.valueRange),t.transformContent(e),n.strValue)}function $t(e,t){if(null===e||void 0===e.type&&null===e.value)return null;switch(e.type){case"ALIAS":return function(e,t){let n=e.cstNode;return function(e,t,n){return{...it("alias",e),...at(),...t,value:n}}(t.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),t.transformContent(e),n.rawValue)}(e,t);case"BLOCK_FOLDED":return function(e,t){return function(e){return{...e,type:"blockFolded"}}(pt(e,t))}(e,t);case"BLOCK_LITERAL":return function(e,t){return function(e){return{...e,type:"blockLiteral"}}(pt(e,t))}(e,t);case"COMMENT":return function(e,t){return ct(t.transformRange(e.range),e.comment)}(e,t);case"DIRECTIVE":return function(e,t){return dt(e,t),function(e,t,n){return{...it("directive",e),...at(),name:t,parameters:n}}(t.transformRange(e.range),e.name,e.parameters)}(e,t);case"DOCUMENT":return St(e,t);case"FLOW_MAP":return function(e,t){let n=Ot(e.cstNode.items,t),r=Lt(n),i=e.items.map(((e,n)=>{let i=r[n],{additionalKeyRange:s,additionalValueRange:o}=Nt(i);return xt(e,t,wt,s,o)})),s=n[0],o=Et(n);return function(e,t,n){return{...bt(e,t,n),type:"flowMapping"}}(t.transformRange({origStart:s.origOffset,origEnd:o.origOffset+1}),t.transformContent(e),i)}(e,t);case"FLOW_SEQ":return function(e,t){let n=Ot(e.cstNode.items,t),r=Lt(n),i=e.items.map(((e,n)=>{if("PAIR"!==e.type){let n=t.transformNode(e);return function(e,t){return{...it("flowSequenceItem",e),children:[t]}}(ht(n.position.start,n.position.end),n)}{let i=r[n],{additionalKeyRange:s,additionalValueRange:o}=Nt(i);return xt(e,t,wt,s,o)}})),s=n[0],o=Et(n);return function(e,t,n){return{...bt(e,t,n),type:"flowSequence"}}(t.transformRange({origStart:s.origOffset,origEnd:o.origOffset+1}),t.transformContent(e),i)}(e,t);case"MAP":return function(e,t){let n=e.cstNode;n.items.filter((e=>"MAP_KEY"===e.type||"MAP_VALUE"===e.type)).forEach((e=>dt(e,t)));let r=function(e){let t=[],n=At(e,0),r=!1;for(let i=0;i<e.length;i++)"MAP_VALUE"!==e[i].type?(r&&t.push(n(i)),r=!0):(t.push(n(i+1)),r=!1);return r&&t.push(n(1/0)),t}(Ot(n.items,t)),i=e.items.map(((e,n)=>{let i=r[n],[s,o]="MAP_VALUE"===i[0].type?[null,i[0].range]:[i[0].range,1===i.length?null:i[1].range];return xt(e,t,kt,s,o)}));return function(e,t,n){return{...it("mapping",e),leadingComments:[],...t,children:n}}(ht(i[0].position.start,Et(i).position.end),t.transformContent(e),i)}(e,t);case"PLAIN":return function(e,t){let n=e.cstNode;return function(e,t,n){return{...it("plain",e),...at(),...t,value:n}}(t.transformRange({origStart:n.valueRange.origStart,origEnd:Ct(t.text,n.valueRange.origEnd-1,/\S/)+1}),t.transformContent(e),n.strValue)}(e,t);case"QUOTE_DOUBLE":return function(e,t){return function(e){return{...e,type:"quoteDouble"}}(It(e,t))}(e,t);case"QUOTE_SINGLE":return function(e,t){return function(e){return{...e,type:"quoteSingle"}}(It(e,t))}(e,t);case"SEQ":return function(e,t){let n=Ot(e.cstNode.items,t).map(((n,r)=>{dt(n,t);let i=t.transformNode(e.items[r]);return function(e,t){return{...it("sequenceItem",e),...at(),...gt(),children:t?[t]:[]}}(ht(t.transformOffset(n.valueRange.origStart),null===i?t.transformOffset(n.valueRange.origStart+1):i.position.end),i)}));return function(e,t,n){return{...it("sequence",e),leadingComments:[],...gt(),...t,children:n}}(ht(n[0].position.start,Et(n).position.end),t.transformContent(e),n)}(e,t);default:throw new Error(`Unexpected node type ${e.type}`)}}function Pt(e,t){let n=e.source.range||e.source.valueRange;return function(e,t,n){let r=new SyntaxError(e);return r.name="YAMLSyntaxError",r.source=t,r.position=n,r}(e.message,t.text,t.transformRange(n))}function Rt(e){if(!e.setOrigRanges()){let t=e=>function(e){return"number"==typeof e.start}(e)?(e.origStart=e.start,e.origEnd=e.end,!0):function(e){return"number"==typeof e.offset}(e)?(e.origOffset=e.offset,!0):void 0;e.forEach((e=>_t(e,t)))}}function _t(e,t){if(e&&"object"==typeof e&&!0!==t(e))for(let n of Object.keys(e)){if("context"===n||"error"===n)continue;let r=e[n];Array.isArray(r)?r.forEach((e=>_t(e,t))):_t(r,t)}}function Yt(e){if("children"in e){if(1===e.children.length){let t=e.children[0];if("plain"===t.type&&null===t.tag&&null===t.anchor&&""===t.value)return e.children.splice(0,1),e}e.children.forEach(Yt)}return e}function Bt(e,t,n,r){let i=t(e);return t=>{r(i,t)&&n(e,i=t)}}function Dt(e){if(null===e||!("children"in e))return;let t=e.children;if(t.forEach(Dt),"document"===e.type){let[t,n]=e.children;t.position.start.offset===t.position.end.offset?t.position.start=t.position.end=n.position.start:n.position.start.offset===n.position.end.offset&&(n.position.start=n.position.end=t.position.end)}let n=Bt(e.position,Ft,Wt,Ut),r=Bt(e.position,jt,qt,Kt);"endComments"in e&&0!==e.endComments.length&&(n(e.endComments[0].position.start),r(Et(e.endComments).position.end));let i=t.filter((e=>null!==e));if(0!==i.length){let e=i[0],t=Et(i);n(e.position.start),r(t.position.end),"leadingComments"in e&&0!==e.leadingComments.length&&n(e.leadingComments[0].position.start),"tag"in e&&e.tag&&n(e.tag.position.start),"anchor"in e&&e.anchor&&n(e.anchor.position.start),"trailingComment"in t&&t.trailingComment&&r(t.trailingComment.position.end)}}function Ft(e){return e.start}function Wt(e,t){e.start=t}function jt(e){return e.end}function qt(e,t){e.end=t}function Ut(e,t){return t.offset<e.offset}function Kt(e,t){return t.offset>e.offset}(He=Je||(Je={})).Tag="!",He.Anchor="&",He.Comment="#",function(e){e.CLIP="clip",e.STRIP="strip",e.KEEP="keep"}(Ge||(Ge={}));var Vt=f(v(),1),Qt=f(S(),1),Jt=(Qt.default.findPair,Qt.default.toJSON,Qt.default.parseMap,Qt.default.parseSeq,Qt.default.stringifyNumber,Qt.default.stringifyString,Qt.default.Type,Qt.default.YAMLError,Qt.default.YAMLReferenceError,Qt.default.YAMLSemanticError),{Document:Ht,parseCST:Gt}=(Qt.default.YAMLSyntaxError,Qt.default.YAMLWarning,Vt.default);function zt(e){let t=Gt(e);Rt(t);let n=t.map((e=>new Ht({merge:!1,keepCstNodes:!0}).parse(e))),r=[],i={text:e,locator:new ze(e),comments:r,transformOffset:e=>function(e,t){e<0?e=0:e>t.text.length&&(e=t.text.length);let n=t.locator.locationForIndex(e);return function(e,t,n){return{offset:e,line:t,column:n}}(e,n.line+1,n.column+1)}(e,i),transformRange:e=>function(e,t){return ht(t.transformOffset(e.origStart),t.transformOffset(e.origEnd))}(e,i),transformNode:e=>$t(e,i),transformContent:e=>ft(e,i)};for(let e of n)for(let t of e.errors)if(!(t instanceof Jt&&'Map keys must be unique; "<<" is repeated'===t.message))throw Pt(t,i);n.forEach((e=>st(e.cstNode)));let s=function(e,t,n){return{...it("root",e),children:t,comments:n}}(i.transformRange({origStart:0,origEnd:i.text.length}),n.map(i.transformNode),r);return et(s),Dt(s),Yt(s),s}var Zt={astFormat:"yaml",parse:function(e){try{let t=zt(e);return delete t.comments,t}catch(e){throw null!=e&&e.position?function(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)}(e.message,{loc:e.position,cause:e}):e}},hasPragma:function(e){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/u.test(e)},locStart:ge,locEnd:function(e){return e.position.end.offset}},Xt={yaml:qe},en=b}};
package/dist/140.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";exports.id=140,exports.ids=[140],exports.modules={3140:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Fn,parsers:()=>E});var r=Object.defineProperty,s=e=>{throw TypeError(e)},i=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},a=(e,t,n)=>t.has(e)||s("Cannot "+n),o=(e,t,n)=>(a(e,t,"read from private field"),n?n.call(e):t.get(e)),l=(e,t,n)=>t.has(e)?s("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),c=(e,t,n,r)=>(a(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),u=(e,t,n)=>(a(e,t,"access private method"),n),p={};i(p,{parsers:()=>E});var h,d,m,f,x,v,y,g,N,I,w,E={};function S(e,t){return function(e,t,n){let r=e.length;if(r!==t.length)return!1;for(let s=0;s<r;s++)if(!n(e[s],t[s]))return!1;return!0}(e,t,((e,t)=>e.isEquivalent(t)))}i(E,{__ng_action:()=>Ln,__ng_binding:()=>Rn,__ng_directive:()=>Bn,__ng_interpolation:()=>Dn}),(d=h||(h={}))[d.Emulated=0]="Emulated",d[d.None=2]="None",d[d.ShadowDom=3]="ShadowDom",function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(m||(m={})),function(e){e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"}(f||(f={})),function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"}(x||(x={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(v||(v={})),function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"}(y||(y={})),function(e){e[e.None=0]="None",e[e.Const=1]="Const"}(g||(g={})),function(e){e[e.Dynamic=0]="Dynamic",e[e.Bool=1]="Bool",e[e.String=2]="String",e[e.Int=3]="Int",e[e.Number=4]="Number",e[e.Function=5]="Function",e[e.Inferred=6]="Inferred",e[e.None=7]="None"}(N||(N={})),function(e){e[e.Minus=0]="Minus",e[e.Plus=1]="Plus"}(I||(I={})),function(e){e[e.Equals=0]="Equals",e[e.NotEquals=1]="NotEquals",e[e.Identical=2]="Identical",e[e.NotIdentical=3]="NotIdentical",e[e.Minus=4]="Minus",e[e.Plus=5]="Plus",e[e.Divide=6]="Divide",e[e.Multiply=7]="Multiply",e[e.Modulo=8]="Modulo",e[e.And=9]="And",e[e.Or=10]="Or",e[e.BitwiseOr=11]="BitwiseOr",e[e.BitwiseAnd=12]="BitwiseAnd",e[e.Lower=13]="Lower",e[e.LowerEquals=14]="LowerEquals",e[e.Bigger=15]="Bigger",e[e.BiggerEquals=16]="BiggerEquals",e[e.NullishCoalesce=17]="NullishCoalesce"}(w||(w={}));var C,P=class{type;sourceSpan;constructor(e,t){this.type=e||null,this.sourceSpan=t||null}prop(e,t){return new V(this,e,null,t)}key(e,t,n){return new W(this,e,t,n)}callFn(e,t,n){return new k(this,e,null,t,n)}instantiate(e,t,n){return new L(this,e,t,n)}conditional(e,t=null,n){return new B(this,e,t,null,n)}equals(e,t){return new F(w.Equals,this,e,null,t)}notEquals(e,t){return new F(w.NotEquals,this,e,null,t)}identical(e,t){return new F(w.Identical,this,e,null,t)}notIdentical(e,t){return new F(w.NotIdentical,this,e,null,t)}minus(e,t){return new F(w.Minus,this,e,null,t)}plus(e,t){return new F(w.Plus,this,e,null,t)}divide(e,t){return new F(w.Divide,this,e,null,t)}multiply(e,t){return new F(w.Multiply,this,e,null,t)}modulo(e,t){return new F(w.Modulo,this,e,null,t)}and(e,t){return new F(w.And,this,e,null,t)}bitwiseOr(e,t,n=!0){return new F(w.BitwiseOr,this,e,null,t,n)}bitwiseAnd(e,t,n=!0){return new F(w.BitwiseAnd,this,e,null,t,n)}or(e,t){return new F(w.Or,this,e,null,t)}lower(e,t){return new F(w.Lower,this,e,null,t)}lowerEquals(e,t){return new F(w.LowerEquals,this,e,null,t)}bigger(e,t){return new F(w.Bigger,this,e,null,t)}biggerEquals(e,t){return new F(w.BiggerEquals,this,e,null,t)}isBlank(e){return this.equals(TYPED_NULL_EXPR,e)}nullishCoalesce(e,t){return new F(w.NullishCoalesce,this,e,null,t)}toStmt(){return new $(this,null)}},O=class e extends P{name;constructor(e,t,n){super(t,n),this.name=e}isEquivalent(t){return t instanceof e&&this.name===t.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadVarExpr(this,t)}clone(){return new e(this.name,this.type,this.sourceSpan)}set(e){return new T(this.name,e,null,this.sourceSpan)}},b=class e extends P{expr;constructor(e,t,n){super(t,n),this.expr=e}visitExpression(e,t){return e.visitTypeofExpr(this,t)}isEquivalent(t){return t instanceof e&&t.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new e(this.expr.clone())}},T=class e extends P{name;value;constructor(e,t,n,r){super(n||t.type,r),this.name=e,this.value=t}isEquivalent(t){return t instanceof e&&this.name===t.name&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteVarExpr(this,t)}clone(){return new e(this.name,this.value.clone(),this.type,this.sourceSpan)}toDeclStmt(e,t){return new H(this.name,this.value,e,t,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(void 0,C.Final)}},A=class e extends P{receiver;index;value;constructor(e,t,n,r,s){super(r||n.type,s),this.receiver=e,this.index=t,this.value=n}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteKeyExpr(this,t)}clone(){return new e(this.receiver.clone(),this.index.clone(),this.value.clone(),this.type,this.sourceSpan)}},M=class e extends P{receiver;name;value;constructor(e,t,n,r,s){super(r||n.type,s),this.receiver=e,this.name=t,this.value=n}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWritePropExpr(this,t)}clone(){return new e(this.receiver.clone(),this.name,this.value.clone(),this.type,this.sourceSpan)}},k=class e extends P{fn;args;pure;constructor(e,t,n,r,s=!1){super(n,r),this.fn=e,this.args=t,this.pure=s}get receiver(){return this.fn}isEquivalent(t){return t instanceof e&&this.fn.isEquivalent(t.fn)&&S(this.args,t.args)&&this.pure===t.pure}isConstant(){return!1}visitExpression(e,t){return e.visitInvokeFunctionExpr(this,t)}clone(){return new e(this.fn.clone(),this.args.map((e=>e.clone())),this.type,this.sourceSpan,this.pure)}},L=class e extends P{classExpr;args;constructor(e,t,n,r){super(n,r),this.classExpr=e,this.args=t}isEquivalent(t){return t instanceof e&&this.classExpr.isEquivalent(t.classExpr)&&S(this.args,t.args)}isConstant(){return!1}visitExpression(e,t){return e.visitInstantiateExpr(this,t)}clone(){return new e(this.classExpr.clone(),this.args.map((e=>e.clone())),this.type,this.sourceSpan)}},R=class e extends P{value;constructor(e,t,n){super(t,n),this.value=e}isEquivalent(t){return t instanceof e&&this.value===t.value}isConstant(){return!0}visitExpression(e,t){return e.visitLiteralExpr(this,t)}clone(){return new e(this.value,this.type,this.sourceSpan)}},D=class e extends P{value;typeParams;constructor(e,t,n=null,r){super(t,r),this.value=e,this.typeParams=n}isEquivalent(t){return t instanceof e&&this.value.name===t.value.name&&this.value.moduleName===t.value.moduleName}isConstant(){return!1}visitExpression(e,t){return e.visitExternalExpr(this,t)}clone(){return new e(this.value,this.type,this.typeParams,this.sourceSpan)}},B=class e extends P{condition;falseCase;trueCase;constructor(e,t,n=null,r,s){super(r||t.type,s),this.condition=e,this.falseCase=n,this.trueCase=t}isEquivalent(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&this.trueCase.isEquivalent(t.trueCase)&&function(e,t){return null==e||null==t?e==t:e.isEquivalent(t)}(this.falseCase,t.falseCase)}isConstant(){return!1}visitExpression(e,t){return e.visitConditionalExpr(this,t)}clone(){var t;return new e(this.condition.clone(),this.trueCase.clone(),null==(t=this.falseCase)?void 0:t.clone(),this.type,this.sourceSpan)}},F=class e extends P{operator;rhs;parens;lhs;constructor(e,t,n,r,s,i=!0){super(r||t.type,s),this.operator=e,this.rhs=n,this.parens=i,this.lhs=t}isEquivalent(t){return t instanceof e&&this.operator===t.operator&&this.lhs.isEquivalent(t.lhs)&&this.rhs.isEquivalent(t.rhs)}isConstant(){return!1}visitExpression(e,t){return e.visitBinaryOperatorExpr(this,t)}clone(){return new e(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan,this.parens)}},V=class e extends P{receiver;name;constructor(e,t,n,r){super(n,r),this.receiver=e,this.name=t}get index(){return this.name}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadPropExpr(this,t)}set(e){return new M(this.receiver,this.name,e,null,this.sourceSpan)}clone(){return new e(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},W=class e extends P{receiver;index;constructor(e,t,n,r){super(n,r),this.receiver=e,this.index=t}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)}isConstant(){return!1}visitExpression(e,t){return e.visitReadKeyExpr(this,t)}set(e){return new A(this.receiver,this.index,e,null,this.sourceSpan)}clone(){return new e(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},_=class e extends P{entries;constructor(e,t,n){super(t,n),this.entries=e}isConstant(){return this.entries.every((e=>e.isConstant()))}isEquivalent(t){return t instanceof e&&S(this.entries,t.entries)}visitExpression(e,t){return e.visitLiteralArrayExpr(this,t)}clone(){return new e(this.entries.map((e=>e.clone())),this.type,this.sourceSpan)}},K=class e extends P{entries;valueType=null;constructor(e,t,n){super(t,n),this.entries=e,t&&(this.valueType=t.valueType)}isEquivalent(t){return t instanceof e&&S(this.entries,t.entries)}isConstant(){return this.entries.every((e=>e.value.isConstant()))}visitExpression(e,t){return e.visitLiteralMapExpr(this,t)}clone(){let t=this.entries.map((e=>e.clone()));return new e(t,this.type,this.sourceSpan)}};!function(e){e[e.None=0]="None",e[e.Final=1]="Final",e[e.Private=2]="Private",e[e.Exported=4]="Exported",e[e.Static=8]="Static"}(C||(C={}));var q=class{modifiers;sourceSpan;leadingComments;constructor(e=C.None,t=null,n){this.modifiers=e,this.sourceSpan=t,this.leadingComments=n}hasModifier(e){return!!(this.modifiers&e)}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}},H=class e extends q{name;value;type;constructor(e,t,n,r,s,i){super(r,s,i),this.name=e,this.value=t,this.type=n||t&&t.type||null}isEquivalent(t){return t instanceof e&&this.name===t.name&&(this.value?!!t.value&&this.value.isEquivalent(t.value):!t.value)}visitStatement(e,t){return e.visitDeclareVarStmt(this,t)}},$=class e extends q{expr;constructor(e,t,n){super(C.None,t,n),this.expr=e}isEquivalent(t){return t instanceof e&&this.expr.isEquivalent(t.expr)}visitStatement(e,t){return e.visitExpressionStmt(this,t)}};new O("<unknown>",void 0,void 0),class e{static INSTANCE=new e;keyOf(e){if(e instanceof R&&"string"==typeof e.value)return`"${e.value}"`;if(e instanceof R)return String(e.value);if(e instanceof _){let t=[];for(let n of e.entries)t.push(this.keyOf(n));return`[${t.join(",")}]`}if(e instanceof K){let t=[];for(let n of e.entries){let e=n.key;n.quoted&&(e=`"${e}"`),t.push(e+":"+this.keyOf(n.value))}return`{${t.join(",")}}`}if(e instanceof D)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof O)return`read(${e.name})`;if(e instanceof b)return`typeof(${this.keyOf(e.expr)})`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}};var U,j,G="@angular/core",z=class{static NEW_METHOD="factory";static TRANSFORM_METHOD="transform";static PATCH_DEPS="patchedDeps";static core={name:null,moduleName:G};static namespaceHTML={name:"ɵɵnamespaceHTML",moduleName:G};static namespaceMathML={name:"ɵɵnamespaceMathML",moduleName:G};static namespaceSVG={name:"ɵɵnamespaceSVG",moduleName:G};static element={name:"ɵɵelement",moduleName:G};static elementStart={name:"ɵɵelementStart",moduleName:G};static elementEnd={name:"ɵɵelementEnd",moduleName:G};static advance={name:"ɵɵadvance",moduleName:G};static syntheticHostProperty={name:"ɵɵsyntheticHostProperty",moduleName:G};static syntheticHostListener={name:"ɵɵsyntheticHostListener",moduleName:G};static attribute={name:"ɵɵattribute",moduleName:G};static attributeInterpolate1={name:"ɵɵattributeInterpolate1",moduleName:G};static attributeInterpolate2={name:"ɵɵattributeInterpolate2",moduleName:G};static attributeInterpolate3={name:"ɵɵattributeInterpolate3",moduleName:G};static attributeInterpolate4={name:"ɵɵattributeInterpolate4",moduleName:G};static attributeInterpolate5={name:"ɵɵattributeInterpolate5",moduleName:G};static attributeInterpolate6={name:"ɵɵattributeInterpolate6",moduleName:G};static attributeInterpolate7={name:"ɵɵattributeInterpolate7",moduleName:G};static attributeInterpolate8={name:"ɵɵattributeInterpolate8",moduleName:G};static attributeInterpolateV={name:"ɵɵattributeInterpolateV",moduleName:G};static classProp={name:"ɵɵclassProp",moduleName:G};static elementContainerStart={name:"ɵɵelementContainerStart",moduleName:G};static elementContainerEnd={name:"ɵɵelementContainerEnd",moduleName:G};static elementContainer={name:"ɵɵelementContainer",moduleName:G};static styleMap={name:"ɵɵstyleMap",moduleName:G};static styleMapInterpolate1={name:"ɵɵstyleMapInterpolate1",moduleName:G};static styleMapInterpolate2={name:"ɵɵstyleMapInterpolate2",moduleName:G};static styleMapInterpolate3={name:"ɵɵstyleMapInterpolate3",moduleName:G};static styleMapInterpolate4={name:"ɵɵstyleMapInterpolate4",moduleName:G};static styleMapInterpolate5={name:"ɵɵstyleMapInterpolate5",moduleName:G};static styleMapInterpolate6={name:"ɵɵstyleMapInterpolate6",moduleName:G};static styleMapInterpolate7={name:"ɵɵstyleMapInterpolate7",moduleName:G};static styleMapInterpolate8={name:"ɵɵstyleMapInterpolate8",moduleName:G};static styleMapInterpolateV={name:"ɵɵstyleMapInterpolateV",moduleName:G};static classMap={name:"ɵɵclassMap",moduleName:G};static classMapInterpolate1={name:"ɵɵclassMapInterpolate1",moduleName:G};static classMapInterpolate2={name:"ɵɵclassMapInterpolate2",moduleName:G};static classMapInterpolate3={name:"ɵɵclassMapInterpolate3",moduleName:G};static classMapInterpolate4={name:"ɵɵclassMapInterpolate4",moduleName:G};static classMapInterpolate5={name:"ɵɵclassMapInterpolate5",moduleName:G};static classMapInterpolate6={name:"ɵɵclassMapInterpolate6",moduleName:G};static classMapInterpolate7={name:"ɵɵclassMapInterpolate7",moduleName:G};static classMapInterpolate8={name:"ɵɵclassMapInterpolate8",moduleName:G};static classMapInterpolateV={name:"ɵɵclassMapInterpolateV",moduleName:G};static styleProp={name:"ɵɵstyleProp",moduleName:G};static stylePropInterpolate1={name:"ɵɵstylePropInterpolate1",moduleName:G};static stylePropInterpolate2={name:"ɵɵstylePropInterpolate2",moduleName:G};static stylePropInterpolate3={name:"ɵɵstylePropInterpolate3",moduleName:G};static stylePropInterpolate4={name:"ɵɵstylePropInterpolate4",moduleName:G};static stylePropInterpolate5={name:"ɵɵstylePropInterpolate5",moduleName:G};static stylePropInterpolate6={name:"ɵɵstylePropInterpolate6",moduleName:G};static stylePropInterpolate7={name:"ɵɵstylePropInterpolate7",moduleName:G};static stylePropInterpolate8={name:"ɵɵstylePropInterpolate8",moduleName:G};static stylePropInterpolateV={name:"ɵɵstylePropInterpolateV",moduleName:G};static nextContext={name:"ɵɵnextContext",moduleName:G};static resetView={name:"ɵɵresetView",moduleName:G};static templateCreate={name:"ɵɵtemplate",moduleName:G};static defer={name:"ɵɵdefer",moduleName:G};static deferWhen={name:"ɵɵdeferWhen",moduleName:G};static deferOnIdle={name:"ɵɵdeferOnIdle",moduleName:G};static deferOnImmediate={name:"ɵɵdeferOnImmediate",moduleName:G};static deferOnTimer={name:"ɵɵdeferOnTimer",moduleName:G};static deferOnHover={name:"ɵɵdeferOnHover",moduleName:G};static deferOnInteraction={name:"ɵɵdeferOnInteraction",moduleName:G};static deferOnViewport={name:"ɵɵdeferOnViewport",moduleName:G};static deferPrefetchWhen={name:"ɵɵdeferPrefetchWhen",moduleName:G};static deferPrefetchOnIdle={name:"ɵɵdeferPrefetchOnIdle",moduleName:G};static deferPrefetchOnImmediate={name:"ɵɵdeferPrefetchOnImmediate",moduleName:G};static deferPrefetchOnTimer={name:"ɵɵdeferPrefetchOnTimer",moduleName:G};static deferPrefetchOnHover={name:"ɵɵdeferPrefetchOnHover",moduleName:G};static deferPrefetchOnInteraction={name:"ɵɵdeferPrefetchOnInteraction",moduleName:G};static deferPrefetchOnViewport={name:"ɵɵdeferPrefetchOnViewport",moduleName:G};static deferHydrateWhen={name:"ɵɵdeferHydrateWhen",moduleName:G};static deferHydrateNever={name:"ɵɵdeferHydrateNever",moduleName:G};static deferHydrateOnIdle={name:"ɵɵdeferHydrateOnIdle",moduleName:G};static deferHydrateOnImmediate={name:"ɵɵdeferHydrateOnImmediate",moduleName:G};static deferHydrateOnTimer={name:"ɵɵdeferHydrateOnTimer",moduleName:G};static deferHydrateOnHover={name:"ɵɵdeferHydrateOnHover",moduleName:G};static deferHydrateOnInteraction={name:"ɵɵdeferHydrateOnInteraction",moduleName:G};static deferHydrateOnViewport={name:"ɵɵdeferHydrateOnViewport",moduleName:G};static deferEnableTimerScheduling={name:"ɵɵdeferEnableTimerScheduling",moduleName:G};static conditional={name:"ɵɵconditional",moduleName:G};static repeater={name:"ɵɵrepeater",moduleName:G};static repeaterCreate={name:"ɵɵrepeaterCreate",moduleName:G};static repeaterTrackByIndex={name:"ɵɵrepeaterTrackByIndex",moduleName:G};static repeaterTrackByIdentity={name:"ɵɵrepeaterTrackByIdentity",moduleName:G};static componentInstance={name:"ɵɵcomponentInstance",moduleName:G};static text={name:"ɵɵtext",moduleName:G};static enableBindings={name:"ɵɵenableBindings",moduleName:G};static disableBindings={name:"ɵɵdisableBindings",moduleName:G};static getCurrentView={name:"ɵɵgetCurrentView",moduleName:G};static textInterpolate={name:"ɵɵtextInterpolate",moduleName:G};static textInterpolate1={name:"ɵɵtextInterpolate1",moduleName:G};static textInterpolate2={name:"ɵɵtextInterpolate2",moduleName:G};static textInterpolate3={name:"ɵɵtextInterpolate3",moduleName:G};static textInterpolate4={name:"ɵɵtextInterpolate4",moduleName:G};static textInterpolate5={name:"ɵɵtextInterpolate5",moduleName:G};static textInterpolate6={name:"ɵɵtextInterpolate6",moduleName:G};static textInterpolate7={name:"ɵɵtextInterpolate7",moduleName:G};static textInterpolate8={name:"ɵɵtextInterpolate8",moduleName:G};static textInterpolateV={name:"ɵɵtextInterpolateV",moduleName:G};static restoreView={name:"ɵɵrestoreView",moduleName:G};static pureFunction0={name:"ɵɵpureFunction0",moduleName:G};static pureFunction1={name:"ɵɵpureFunction1",moduleName:G};static pureFunction2={name:"ɵɵpureFunction2",moduleName:G};static pureFunction3={name:"ɵɵpureFunction3",moduleName:G};static pureFunction4={name:"ɵɵpureFunction4",moduleName:G};static pureFunction5={name:"ɵɵpureFunction5",moduleName:G};static pureFunction6={name:"ɵɵpureFunction6",moduleName:G};static pureFunction7={name:"ɵɵpureFunction7",moduleName:G};static pureFunction8={name:"ɵɵpureFunction8",moduleName:G};static pureFunctionV={name:"ɵɵpureFunctionV",moduleName:G};static pipeBind1={name:"ɵɵpipeBind1",moduleName:G};static pipeBind2={name:"ɵɵpipeBind2",moduleName:G};static pipeBind3={name:"ɵɵpipeBind3",moduleName:G};static pipeBind4={name:"ɵɵpipeBind4",moduleName:G};static pipeBindV={name:"ɵɵpipeBindV",moduleName:G};static hostProperty={name:"ɵɵhostProperty",moduleName:G};static property={name:"ɵɵproperty",moduleName:G};static propertyInterpolate={name:"ɵɵpropertyInterpolate",moduleName:G};static propertyInterpolate1={name:"ɵɵpropertyInterpolate1",moduleName:G};static propertyInterpolate2={name:"ɵɵpropertyInterpolate2",moduleName:G};static propertyInterpolate3={name:"ɵɵpropertyInterpolate3",moduleName:G};static propertyInterpolate4={name:"ɵɵpropertyInterpolate4",moduleName:G};static propertyInterpolate5={name:"ɵɵpropertyInterpolate5",moduleName:G};static propertyInterpolate6={name:"ɵɵpropertyInterpolate6",moduleName:G};static propertyInterpolate7={name:"ɵɵpropertyInterpolate7",moduleName:G};static propertyInterpolate8={name:"ɵɵpropertyInterpolate8",moduleName:G};static propertyInterpolateV={name:"ɵɵpropertyInterpolateV",moduleName:G};static i18n={name:"ɵɵi18n",moduleName:G};static i18nAttributes={name:"ɵɵi18nAttributes",moduleName:G};static i18nExp={name:"ɵɵi18nExp",moduleName:G};static i18nStart={name:"ɵɵi18nStart",moduleName:G};static i18nEnd={name:"ɵɵi18nEnd",moduleName:G};static i18nApply={name:"ɵɵi18nApply",moduleName:G};static i18nPostprocess={name:"ɵɵi18nPostprocess",moduleName:G};static pipe={name:"ɵɵpipe",moduleName:G};static projection={name:"ɵɵprojection",moduleName:G};static projectionDef={name:"ɵɵprojectionDef",moduleName:G};static reference={name:"ɵɵreference",moduleName:G};static inject={name:"ɵɵinject",moduleName:G};static injectAttribute={name:"ɵɵinjectAttribute",moduleName:G};static directiveInject={name:"ɵɵdirectiveInject",moduleName:G};static invalidFactory={name:"ɵɵinvalidFactory",moduleName:G};static invalidFactoryDep={name:"ɵɵinvalidFactoryDep",moduleName:G};static templateRefExtractor={name:"ɵɵtemplateRefExtractor",moduleName:G};static forwardRef={name:"forwardRef",moduleName:G};static resolveForwardRef={name:"resolveForwardRef",moduleName:G};static replaceMetadata={name:"ɵɵreplaceMetadata",moduleName:G};static ɵɵdefineInjectable={name:"ɵɵdefineInjectable",moduleName:G};static declareInjectable={name:"ɵɵngDeclareInjectable",moduleName:G};static InjectableDeclaration={name:"ɵɵInjectableDeclaration",moduleName:G};static resolveWindow={name:"ɵɵresolveWindow",moduleName:G};static resolveDocument={name:"ɵɵresolveDocument",moduleName:G};static resolveBody={name:"ɵɵresolveBody",moduleName:G};static getComponentDepsFactory={name:"ɵɵgetComponentDepsFactory",moduleName:G};static defineComponent={name:"ɵɵdefineComponent",moduleName:G};static declareComponent={name:"ɵɵngDeclareComponent",moduleName:G};static setComponentScope={name:"ɵɵsetComponentScope",moduleName:G};static ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:G};static ViewEncapsulation={name:"ViewEncapsulation",moduleName:G};static ComponentDeclaration={name:"ɵɵComponentDeclaration",moduleName:G};static FactoryDeclaration={name:"ɵɵFactoryDeclaration",moduleName:G};static declareFactory={name:"ɵɵngDeclareFactory",moduleName:G};static FactoryTarget={name:"ɵɵFactoryTarget",moduleName:G};static defineDirective={name:"ɵɵdefineDirective",moduleName:G};static declareDirective={name:"ɵɵngDeclareDirective",moduleName:G};static DirectiveDeclaration={name:"ɵɵDirectiveDeclaration",moduleName:G};static InjectorDef={name:"ɵɵInjectorDef",moduleName:G};static InjectorDeclaration={name:"ɵɵInjectorDeclaration",moduleName:G};static defineInjector={name:"ɵɵdefineInjector",moduleName:G};static declareInjector={name:"ɵɵngDeclareInjector",moduleName:G};static NgModuleDeclaration={name:"ɵɵNgModuleDeclaration",moduleName:G};static ModuleWithProviders={name:"ModuleWithProviders",moduleName:G};static defineNgModule={name:"ɵɵdefineNgModule",moduleName:G};static declareNgModule={name:"ɵɵngDeclareNgModule",moduleName:G};static setNgModuleScope={name:"ɵɵsetNgModuleScope",moduleName:G};static registerNgModuleType={name:"ɵɵregisterNgModuleType",moduleName:G};static PipeDeclaration={name:"ɵɵPipeDeclaration",moduleName:G};static definePipe={name:"ɵɵdefinePipe",moduleName:G};static declarePipe={name:"ɵɵngDeclarePipe",moduleName:G};static declareClassMetadata={name:"ɵɵngDeclareClassMetadata",moduleName:G};static declareClassMetadataAsync={name:"ɵɵngDeclareClassMetadataAsync",moduleName:G};static setClassMetadata={name:"ɵsetClassMetadata",moduleName:G};static setClassMetadataAsync={name:"ɵsetClassMetadataAsync",moduleName:G};static setClassDebugInfo={name:"ɵsetClassDebugInfo",moduleName:G};static queryRefresh={name:"ɵɵqueryRefresh",moduleName:G};static viewQuery={name:"ɵɵviewQuery",moduleName:G};static loadQuery={name:"ɵɵloadQuery",moduleName:G};static contentQuery={name:"ɵɵcontentQuery",moduleName:G};static viewQuerySignal={name:"ɵɵviewQuerySignal",moduleName:G};static contentQuerySignal={name:"ɵɵcontentQuerySignal",moduleName:G};static queryAdvance={name:"ɵɵqueryAdvance",moduleName:G};static twoWayProperty={name:"ɵɵtwoWayProperty",moduleName:G};static twoWayBindingSet={name:"ɵɵtwoWayBindingSet",moduleName:G};static twoWayListener={name:"ɵɵtwoWayListener",moduleName:G};static declareLet={name:"ɵɵdeclareLet",moduleName:G};static storeLet={name:"ɵɵstoreLet",moduleName:G};static readContextLet={name:"ɵɵreadContextLet",moduleName:G};static attachSourceLocations={name:"ɵɵattachSourceLocations",moduleName:G};static NgOnChangesFeature={name:"ɵɵNgOnChangesFeature",moduleName:G};static InheritDefinitionFeature={name:"ɵɵInheritDefinitionFeature",moduleName:G};static CopyDefinitionFeature={name:"ɵɵCopyDefinitionFeature",moduleName:G};static ProvidersFeature={name:"ɵɵProvidersFeature",moduleName:G};static HostDirectivesFeature={name:"ɵɵHostDirectivesFeature",moduleName:G};static InputTransformsFeatureFeature={name:"ɵɵInputTransformsFeature",moduleName:G};static ExternalStylesFeature={name:"ɵɵExternalStylesFeature",moduleName:G};static listener={name:"ɵɵlistener",moduleName:G};static getInheritedFactory={name:"ɵɵgetInheritedFactory",moduleName:G};static sanitizeHtml={name:"ɵɵsanitizeHtml",moduleName:G};static sanitizeStyle={name:"ɵɵsanitizeStyle",moduleName:G};static sanitizeResourceUrl={name:"ɵɵsanitizeResourceUrl",moduleName:G};static sanitizeScript={name:"ɵɵsanitizeScript",moduleName:G};static sanitizeUrl={name:"ɵɵsanitizeUrl",moduleName:G};static sanitizeUrlOrResourceUrl={name:"ɵɵsanitizeUrlOrResourceUrl",moduleName:G};static trustConstantHtml={name:"ɵɵtrustConstantHtml",moduleName:G};static trustConstantResourceUrl={name:"ɵɵtrustConstantResourceUrl",moduleName:G};static validateIframeAttribute={name:"ɵɵvalidateIframeAttribute",moduleName:G};static InputSignalBrandWriteType={name:"ɵINPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:G};static UnwrapDirectiveSignalInputs={name:"ɵUnwrapDirectiveSignalInputs",moduleName:G};static unwrapWritableSignal={name:"ɵunwrapWritableSignal",moduleName:G}};!function(e){e[e.Class=0]="Class",e[e.Function=1]="Function"}(U||(U={})),function(e){e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule"}(j||(j={}));var Q,Y,X,J,Z=class{input;errLocation;ctxLocation;message;constructor(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message=`Parser Error: ${e} ${n} [${t}] in ${r}`}},ee=class{start;end;constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new Pe(e+this.start,e+this.end)}},te=class{span;sourceSpan;constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}},ne=class extends te{nameSpan;constructor(e,t,n){super(e,t),this.nameSpan=n}},re=class extends te{visit(e,t=null){}},se=class extends te{visit(e,t=null){return e.visitImplicitReceiver(this,t)}},ie=class extends se{visit(e,t=null){var n;return null==(n=e.visitThisReceiver)?void 0:n.call(e,this,t)}},ae=class extends te{expressions;constructor(e,t,n){super(e,t),this.expressions=n}visit(e,t=null){return e.visitChain(this,t)}},oe=class extends te{condition;trueExp;falseExp;constructor(e,t,n,r,s){super(e,t),this.condition=n,this.trueExp=r,this.falseExp=s}visit(e,t=null){return e.visitConditional(this,t)}},le=class extends ne{receiver;name;constructor(e,t,n,r,s){super(e,t,n),this.receiver=r,this.name=s}visit(e,t=null){return e.visitPropertyRead(this,t)}},ce=class extends ne{receiver;name;value;constructor(e,t,n,r,s,i){super(e,t,n),this.receiver=r,this.name=s,this.value=i}visit(e,t=null){return e.visitPropertyWrite(this,t)}},ue=class extends ne{receiver;name;constructor(e,t,n,r,s){super(e,t,n),this.receiver=r,this.name=s}visit(e,t=null){return e.visitSafePropertyRead(this,t)}},pe=class extends te{receiver;key;constructor(e,t,n,r){super(e,t),this.receiver=n,this.key=r}visit(e,t=null){return e.visitKeyedRead(this,t)}},he=class extends te{receiver;key;constructor(e,t,n,r){super(e,t),this.receiver=n,this.key=r}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}},de=class extends te{receiver;key;value;constructor(e,t,n,r,s){super(e,t),this.receiver=n,this.key=r,this.value=s}visit(e,t=null){return e.visitKeyedWrite(this,t)}},me=class extends ne{exp;name;args;constructor(e,t,n,r,s,i){super(e,t,i),this.exp=n,this.name=r,this.args=s}visit(e,t=null){return e.visitPipe(this,t)}},fe=class extends te{value;constructor(e,t,n){super(e,t),this.value=n}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}},xe=class extends te{expressions;constructor(e,t,n){super(e,t),this.expressions=n}visit(e,t=null){return e.visitLiteralArray(this,t)}},ve=class extends te{keys;values;constructor(e,t,n,r){super(e,t),this.keys=n,this.values=r}visit(e,t=null){return e.visitLiteralMap(this,t)}},ye=class extends te{strings;expressions;constructor(e,t,n,r){super(e,t),this.strings=n,this.expressions=r}visit(e,t=null){return e.visitInterpolation(this,t)}},ge=class extends te{operation;left;right;constructor(e,t,n,r,s){super(e,t),this.operation=n,this.left=r,this.right=s}visit(e,t=null){return e.visitBinary(this,t)}},Ne=class e extends ge{operator;expr;left=null;right=null;operation=null;static createMinus(t,n,r){return new e(t,n,"-",r,"-",new fe(t,n,0),r)}static createPlus(t,n,r){return new e(t,n,"+",r,"-",r,new fe(t,n,0))}constructor(e,t,n,r,s,i,a){super(e,t,s,i,a),this.operator=n,this.expr=r}visit(e,t=null){return void 0!==e.visitUnary?e.visitUnary(this,t):e.visitBinary(this,t)}},Ie=class extends te{expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitPrefixNot(this,t)}},we=class extends te{expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitTypeofExpression(this,t)}},Ee=class extends te{expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitNonNullAssert(this,t)}},Se=class extends te{receiver;args;argumentSpan;constructor(e,t,n,r,s){super(e,t),this.receiver=n,this.args=r,this.argumentSpan=s}visit(e,t=null){return e.visitCall(this,t)}},Ce=class extends te{receiver;args;argumentSpan;constructor(e,t,n,r,s){super(e,t),this.receiver=n,this.args=r,this.argumentSpan=s}visit(e,t=null){return e.visitSafeCall(this,t)}},Pe=class{start;end;constructor(e,t){this.start=e,this.end=t}},Oe=class extends te{ast;source;location;errors;constructor(e,t,n,r,s){super(new ee(0,null===t?0:t.length),new Pe(r,null===t?r:r+t.length)),this.ast=e,this.source=t,this.location=n,this.errors=s}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}},be=class{sourceSpan;key;value;constructor(e,t,n){this.sourceSpan=e,this.key=t,this.value=n}},Te=class{sourceSpan;key;value;constructor(e,t,n){this.sourceSpan=e,this.key=t,this.value=n}},Ae=class{visit(e,t){e.visit(this,t)}visitUnary(e,t){this.visit(e.expr,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitKeyedWrite(e,t){this.visit(e.receiver,t),this.visit(e.key,t),this.visit(e.value,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitPrefixNot(e,t){this.visit(e.expression,t)}visitTypeofExpression(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitPropertyWrite(e,t){this.visit(e.receiver,t),this.visit(e.value,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitSafeCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitAll(e,t){for(let n of e)this.visit(n,t)}};!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.LITERAL_ATTR=1]="LITERAL_ATTR",e[e.ANIMATION=2]="ANIMATION",e[e.TWO_WAY=3]="TWO_WAY"}(Q||(Q={})),function(e){e[e.Regular=0]="Regular",e[e.Animation=1]="Animation",e[e.TwoWay=2]="TwoWay"}(Y||(Y={})),function(e){e[e.Property=0]="Property",e[e.Attribute=1]="Attribute",e[e.Class=2]="Class",e[e.Style=3]="Style",e[e.Animation=4]="Animation",e[e.TwoWay=5]="TwoWay"}(X||(X={})),function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"}(J||(J={}));var Me,ke,Le,Re,De=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Be=new class e{start;end;static fromArray(t){return t?(function(e,t){if(null!=t&&(!Array.isArray(t)||2!=t.length))throw new Error("Expected 'interpolation' to be an array, [start, end].");if(null!=t){let e=t[0],n=t[1];De.forEach((t=>{if(t.test(e)||t.test(n))throw new Error(`['${e}', '${n}'] contains unusable interpolation symbol.`)}))}}(0,t),new e(t[0],t[1])):Be}constructor(e,t){this.start=e,this.end=t}}("{{","}}"),Fe=46,Ve=58,We=125;function _e(e){return e>=9&&e<=32||160==e}function Ke(e){return 48<=e&&e<=57}function qe(e){return 39===e||34===e||96===e}!function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(Me||(Me={})),function(e){e[e.Inline=0]="Inline",e[e.SideEffect=1]="SideEffect",e[e.Omit=2]="Omit"}(ke||(ke={})),function(e){e[e.Global=0]="Global",e[e.Local=1]="Local"}(Le||(Le={})),function(e){e[e.Directive=0]="Directive",e[e.Pipe=1]="Pipe",e[e.NgModule=2]="NgModule"}(Re||(Re={}));var He,$e,Ue,je,Ge,ze,Qe,Ye,Xe,Je,Ze,et,tt,nt="-shadowcsshost",rt="-shadowcsscontext",st="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",it=(new RegExp(nt+st,"gim"),new RegExp("(:(where|is)\\()?("+rt+st+")","gim"),new RegExp(rt+st,"im"),new RegExp(nt+"-no-combinator"+"(?![^(]*\\))","g"),"%COMMENT%");new RegExp(it,"g"),new RegExp(`(\\s*(?:${it}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),new RegExp("%COMMA_IN_PLACEHOLDER%","g"),new RegExp("%SEMI_IN_PLACEHOLDER%","g"),new RegExp("%COLON_IN_PLACEHOLDER%","g"),function(e){e[e.ListEnd=0]="ListEnd",e[e.Statement=1]="Statement",e[e.Variable=2]="Variable",e[e.ElementStart=3]="ElementStart",e[e.Element=4]="Element",e[e.Template=5]="Template",e[e.ElementEnd=6]="ElementEnd",e[e.ContainerStart=7]="ContainerStart",e[e.Container=8]="Container",e[e.ContainerEnd=9]="ContainerEnd",e[e.DisableBindings=10]="DisableBindings",e[e.Conditional=11]="Conditional",e[e.EnableBindings=12]="EnableBindings",e[e.Text=13]="Text",e[e.Listener=14]="Listener",e[e.InterpolateText=15]="InterpolateText",e[e.Binding=16]="Binding",e[e.Property=17]="Property",e[e.StyleProp=18]="StyleProp",e[e.ClassProp=19]="ClassProp",e[e.StyleMap=20]="StyleMap",e[e.ClassMap=21]="ClassMap",e[e.Advance=22]="Advance",e[e.Pipe=23]="Pipe",e[e.Attribute=24]="Attribute",e[e.ExtractedAttribute=25]="ExtractedAttribute",e[e.Defer=26]="Defer",e[e.DeferOn=27]="DeferOn",e[e.DeferWhen=28]="DeferWhen",e[e.I18nMessage=29]="I18nMessage",e[e.HostProperty=30]="HostProperty",e[e.Namespace=31]="Namespace",e[e.ProjectionDef=32]="ProjectionDef",e[e.Projection=33]="Projection",e[e.RepeaterCreate=34]="RepeaterCreate",e[e.Repeater=35]="Repeater",e[e.TwoWayProperty=36]="TwoWayProperty",e[e.TwoWayListener=37]="TwoWayListener",e[e.DeclareLet=38]="DeclareLet",e[e.StoreLet=39]="StoreLet",e[e.I18nStart=40]="I18nStart",e[e.I18n=41]="I18n",e[e.I18nEnd=42]="I18nEnd",e[e.I18nExpression=43]="I18nExpression",e[e.I18nApply=44]="I18nApply",e[e.IcuStart=45]="IcuStart",e[e.IcuEnd=46]="IcuEnd",e[e.IcuPlaceholder=47]="IcuPlaceholder",e[e.I18nContext=48]="I18nContext",e[e.I18nAttributes=49]="I18nAttributes",e[e.SourceLocation=50]="SourceLocation"}(He||(He={})),function(e){e[e.LexicalRead=0]="LexicalRead",e[e.Context=1]="Context",e[e.TrackContext=2]="TrackContext",e[e.ReadVariable=3]="ReadVariable",e[e.NextContext=4]="NextContext",e[e.Reference=5]="Reference",e[e.StoreLet=6]="StoreLet",e[e.ContextLetReference=7]="ContextLetReference",e[e.GetCurrentView=8]="GetCurrentView",e[e.RestoreView=9]="RestoreView",e[e.ResetView=10]="ResetView",e[e.PureFunctionExpr=11]="PureFunctionExpr",e[e.PureFunctionParameterExpr=12]="PureFunctionParameterExpr",e[e.PipeBinding=13]="PipeBinding",e[e.PipeBindingVariadic=14]="PipeBindingVariadic",e[e.SafePropertyRead=15]="SafePropertyRead",e[e.SafeKeyedRead=16]="SafeKeyedRead",e[e.SafeInvokeFunction=17]="SafeInvokeFunction",e[e.SafeTernaryExpr=18]="SafeTernaryExpr",e[e.EmptyExpr=19]="EmptyExpr",e[e.AssignTemporaryExpr=20]="AssignTemporaryExpr",e[e.ReadTemporaryExpr=21]="ReadTemporaryExpr",e[e.SlotLiteralExpr=22]="SlotLiteralExpr",e[e.ConditionalCase=23]="ConditionalCase",e[e.ConstCollected=24]="ConstCollected",e[e.TwoWayBindingSet=25]="TwoWayBindingSet"}($e||($e={})),function(e){e[e.None=0]="None",e[e.AlwaysInline=1]="AlwaysInline"}(Ue||(Ue={})),function(e){e[e.Context=0]="Context",e[e.Identifier=1]="Identifier",e[e.SavedView=2]="SavedView",e[e.Alias=3]="Alias"}(je||(je={})),function(e){e[e.Normal=0]="Normal",e[e.TemplateDefinitionBuilder=1]="TemplateDefinitionBuilder"}(Ge||(Ge={})),function(e){e[e.Attribute=0]="Attribute",e[e.ClassName=1]="ClassName",e[e.StyleProperty=2]="StyleProperty",e[e.Property=3]="Property",e[e.Template=4]="Template",e[e.I18n=5]="I18n",e[e.Animation=6]="Animation",e[e.TwoWayProperty=7]="TwoWayProperty"}(ze||(ze={})),function(e){e[e.Creation=0]="Creation",e[e.Postproccessing=1]="Postproccessing"}(Qe||(Qe={})),function(e){e[e.I18nText=0]="I18nText",e[e.I18nAttribute=1]="I18nAttribute"}(Ye||(Ye={})),function(e){e[e.None=0]="None",e[e.ElementTag=1]="ElementTag",e[e.TemplateTag=2]="TemplateTag",e[e.OpenTag=4]="OpenTag",e[e.CloseTag=8]="CloseTag",e[e.ExpressionIndex=16]="ExpressionIndex"}(Xe||(Xe={})),function(e){e[e.HTML=0]="HTML",e[e.SVG=1]="SVG",e[e.Math=2]="Math"}(Je||(Je={})),function(e){e[e.Idle=0]="Idle",e[e.Immediate=1]="Immediate",e[e.Timer=2]="Timer",e[e.Hover=3]="Hover",e[e.Interaction=4]="Interaction",e[e.Viewport=5]="Viewport",e[e.Never=6]="Never"}(Ze||(Ze={})),function(e){e[e.RootI18n=0]="RootI18n",e[e.Icu=1]="Icu",e[e.Attr=2]="Attr"}(et||(et={})),function(e){e[e.NgTemplate=0]="NgTemplate",e[e.Structural=1]="Structural",e[e.Block=2]="Block"}(tt||(tt={})),Symbol("ConsumesSlot"),Symbol("DependsOnSlotContext");var at,ot,lt,ct=Symbol("ConsumesVars"),ut=Symbol("UsesVarOffset"),pt=class{strings;expressions;i18nPlaceholders;constructor(e,t,n){if(this.strings=e,this.expressions=t,this.i18nPlaceholders=n,0!==n.length&&n.length!==t.length)throw new Error(`Expected ${t.length} placeholders to match interpolation expression count, but got ${n.length}`)}},ht=class extends P{constructor(e=null){super(null,e)}};!function(e){e[e.None=0]="None",e[e.InChildOperation=1]="InChildOperation"}(at||(at={})),new Set([He.Element,He.ElementStart,He.Container,He.ContainerStart,He.Template,He.RepeaterCreate]),function(e){e[e.Tmpl=0]="Tmpl",e[e.Host=1]="Host",e[e.Both=2]="Both"}(ot||(ot={})),Object.freeze([]),new Map([[He.ElementEnd,[He.ElementStart,He.Element]],[He.ContainerEnd,[He.ContainerStart,He.Container]],[He.I18nEnd,[He.I18nStart,He.I18n]]]),new Set([He.Pipe]),[k,_,K,class e extends ht{receiver;args;kind=$e.SafeInvokeFunction;constructor(e,t){super(),this.receiver=e,this.args=t}visitExpression(e,t){this.receiver.visitExpression(e,t);for(let n of this.args)n.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.receiver=void this.receiver;for(let e=0;e<this.args.length;e++)this.args[e]=void this.args[e]}clone(){return new e(this.receiver.clone(),this.args.map((e=>e.clone())))}},class e extends ht{target;targetSlot;name;args;kind=$e.PipeBinding;[ct]=!0;[ut]=!0;varOffset=null;constructor(e,t,n,r){super(),this.target=e,this.targetSlot=t,this.name=n,this.args=r}visitExpression(e,t){for(let n of this.args)n.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){for(let e=0;e<this.args.length;e++)this.args[e]=void this.args[e]}clone(){let t=new e(this.target,this.targetSlot,this.name,this.args.map((e=>e.clone())));return t.varOffset=this.varOffset,t}}].map((e=>e.constructor.name)),function(e){e.HEX="hexadecimal",e.DEC="decimal"}(lt||(lt={}));var dt,mt=" \f\n\r\t\v ᠎ - \u2028\u2029   \ufeff";new RegExp(`[^${mt}]`),new RegExp(`[${mt}]{2,}`,"g"),function(e){e[e.Character=0]="Character",e[e.Identifier=1]="Identifier",e[e.PrivateIdentifier=2]="PrivateIdentifier",e[e.Keyword=3]="Keyword",e[e.String=4]="String",e[e.Operator=5]="Operator",e[e.Number=6]="Number",e[e.Error=7]="Error"}(dt||(dt={}));var ft=["var","let","as","null","undefined","true","false","if","else","this","typeof"],xt=class{tokenize(e){let t=new It(e),n=[],r=t.scanToken();for(;null!=r;)n.push(r),r=t.scanToken();return n}},vt=class{index;end;type;numValue;strValue;constructor(e,t,n,r,s){this.index=e,this.end=t,this.type=n,this.numValue=r,this.strValue=s}isCharacter(e){return this.type==dt.Character&&this.numValue==e}isNumber(){return this.type==dt.Number}isString(){return this.type==dt.String}isOperator(e){return this.type==dt.Operator&&this.strValue==e}isIdentifier(){return this.type==dt.Identifier}isPrivateIdentifier(){return this.type==dt.PrivateIdentifier}isKeyword(){return this.type==dt.Keyword}isKeywordLet(){return this.type==dt.Keyword&&"let"==this.strValue}isKeywordAs(){return this.type==dt.Keyword&&"as"==this.strValue}isKeywordNull(){return this.type==dt.Keyword&&"null"==this.strValue}isKeywordUndefined(){return this.type==dt.Keyword&&"undefined"==this.strValue}isKeywordTrue(){return this.type==dt.Keyword&&"true"==this.strValue}isKeywordFalse(){return this.type==dt.Keyword&&"false"==this.strValue}isKeywordThis(){return this.type==dt.Keyword&&"this"==this.strValue}isKeywordTypeof(){return this.type===dt.Keyword&&"typeof"===this.strValue}isError(){return this.type==dt.Error}toNumber(){return this.type==dt.Number?this.numValue:-1}toString(){switch(this.type){case dt.Character:case dt.Identifier:case dt.Keyword:case dt.Operator:case dt.PrivateIdentifier:case dt.String:case dt.Error:return this.strValue;case dt.Number:return this.numValue.toString();default:return null}}};function yt(e,t,n){return new vt(e,t,dt.Character,n,String.fromCharCode(n))}function gt(e,t,n){return new vt(e,t,dt.Operator,0,n)}var Nt=new vt(-1,-1,dt.Character,0,""),It=class{input;length;peek=0;index=-1;constructor(e){this.input=e,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,t=this.length,n=this.peek,r=this.index;for(;n<=32;){if(++r>=t){n=0;break}n=e.charCodeAt(r)}if(this.peek=n,this.index=r,r>=t)return null;if(wt(n))return this.scanIdentifier();if(Ke(n))return this.scanNumber(r);let s=r;switch(n){case Fe:return this.advance(),Ke(this.peek)?this.scanNumber(s):yt(s,this.index,Fe);case 40:case 41:case 123:case We:case 91:case 93:case 44:case Ve:case 59:return this.scanCharacter(s,n);case 39:case 34:return this.scanString();case 35:return this.scanPrivateIdentifier();case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(s,String.fromCharCode(n));case 63:return this.scanQuestion(s);case 60:case 62:return this.scanComplexOperator(s,String.fromCharCode(n),61,"=");case 33:case 61:return this.scanComplexOperator(s,String.fromCharCode(n),61,"=",61,"=");case 38:return this.scanComplexOperator(s,"&",38,"&");case 124:return this.scanComplexOperator(s,"|",124,"|");case 160:for(;_e(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(n)}]`,0)}scanCharacter(e,t){return this.advance(),yt(e,this.index,t)}scanOperator(e,t){return this.advance(),gt(e,this.index,t)}scanComplexOperator(e,t,n,r,s,i){this.advance();let a=t;return this.peek==n&&(this.advance(),a+=r),null!=s&&this.peek==s&&(this.advance(),a+=i),gt(e,this.index,a)}scanIdentifier(){let e=this.index;for(this.advance();Et(this.peek);)this.advance();let t=this.input.substring(e,this.index);return ft.indexOf(t)>-1?function(e,t,n){return new vt(e,t,dt.Keyword,0,n)}(e,this.index,t):function(e,t,n){return new vt(e,t,dt.Identifier,0,n)}(e,this.index,t)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!wt(this.peek))return this.error("Invalid character [#]",-1);for(;Et(this.peek);)this.advance();let t=this.input.substring(e,this.index);return function(e,t,n){return new vt(e,t,dt.PrivateIdentifier,0,n)}(e,this.index,t)}scanNumber(e){let t=this.index===e,n=!1;for(this.advance();;){if(!Ke(this.peek))if(95===this.peek){if(!Ke(this.input.charCodeAt(this.index-1))||!Ke(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);n=!0}else if(this.peek===Fe)t=!1;else{if(!St(this.peek))break;if(this.advance(),Ct(this.peek)&&this.advance(),!Ke(this.peek))return this.error("Invalid exponent",-1);t=!1}this.advance()}let r=this.input.substring(e,this.index);n&&(r=r.replace(/_/g,""));let s=t?function(e){let t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}(r):parseFloat(r);return function(e,t,n){return new vt(e,t,dt.Number,n,"")}(e,this.index,s)}scanString(){let e=this.index,t=this.peek;this.advance();let n="",r=this.index,s=this.input;for(;this.peek!=t;)if(92==this.peek){let e;if(n+=s.substring(r,this.index),this.advance(),117==this.peek){let t=s.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(t))return this.error(`Invalid unicode escape [\\u${t}]`,0);e=parseInt(t,16);for(let e=0;e<5;e++)this.advance()}else e=Pt(this.peek),this.advance();n+=String.fromCharCode(e),r=this.index}else{if(0==this.peek)return this.error("Unterminated quote",0);this.advance()}let i=s.substring(r,this.index);return this.advance(),function(e,t,n){return new vt(e,t,dt.String,0,n)}(e,this.index,n+i)}scanQuestion(e){this.advance();let t="?";return(63===this.peek||this.peek===Fe)&&(t+=this.peek===Fe?".":"?",this.advance()),gt(e,this.index,t)}error(e,t){let n=this.index+t;return function(e,t,n){return new vt(e,t,dt.Error,0,n)}(n,this.index,`Lexer Error: ${e} at column ${n} in expression [${this.input}]`)}};function wt(e){return 97<=e&&e<=122||65<=e&&e<=90||95==e||36==e}function Et(e){return function(e){return e>=97&&e<=122||e>=65&&e<=90}(e)||Ke(e)||95==e||36==e}function St(e){return 101==e||69==e}function Ct(e){return 45==e||43==e}function Pt(e){switch(e){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return e}}var Ot,bt=class{strings;expressions;offsets;constructor(e,t,n){this.strings=e,this.expressions=t,this.offsets=n}},Tt=class{templateBindings;warnings;errors;constructor(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n}},At=class{_lexer;errors=[];constructor(e){this._lexer=e}parseAction(e,t,n,r=Be){this._checkNoInterpolation(e,t,r);let s=this._stripComments(e),i=this._lexer.tokenize(s),a=new Bt(e,t,n,i,1,this.errors,0).parseChain();return new Oe(a,e,t,n,this.errors)}parseBinding(e,t,n,r=Be){let s=this._parseBindingAst(e,t,n,r);return new Oe(s,e,t,n,this.errors)}checkSimpleExpression(e){let t=new Ft;return e.visit(t),t.errors}parseSimpleBinding(e,t,n,r=Be){let s=this._parseBindingAst(e,t,n,r),i=this.checkSimpleExpression(s);return i.length>0&&this._reportError(`Host binding expression cannot contain ${i.join(" ")}`,e,t),new Oe(s,e,t,n,this.errors)}_reportError(e,t,n,r){this.errors.push(new Z(e,t,n,r))}_parseBindingAst(e,t,n,r){this._checkNoInterpolation(e,t,r);let s=this._stripComments(e),i=this._lexer.tokenize(s);return new Bt(e,t,n,i,0,this.errors,0).parseChain()}parseTemplateBindings(e,t,n,r,s){let i=this._lexer.tokenize(t);return new Bt(t,n,s,i,0,this.errors,0).parseTemplateBindings({source:e,span:new Pe(r,r+e.length)})}parseInterpolation(e,t,n,r,s=Be){let{strings:i,expressions:a,offsets:o}=this.splitInterpolation(e,t,r,s);if(0===a.length)return null;let l=[];for(let r=0;r<a.length;++r){let s=a[r].text,i=this._stripComments(s),c=this._lexer.tokenize(i),u=new Bt(e,t,n,c,0,this.errors,o[r]).parseChain();l.push(u)}return this.createInterpolationAst(i.map((e=>e.text)),l,e,t,n)}parseInterpolationExpression(e,t,n){let r=this._stripComments(e),s=this._lexer.tokenize(r),i=new Bt(e,t,n,s,0,this.errors,0).parseChain();return this.createInterpolationAst(["",""],[i],e,t,n)}createInterpolationAst(e,t,n,r,s){let i=new ee(0,n.length),a=new ye(i,i.toAbsolute(s),e,t);return new Oe(a,n,r,s,this.errors)}splitInterpolation(e,t,n,r=Be){let s=[],i=[],a=[],o=n?function(e){let t=new Map,n=0,r=0,s=0;for(;s<e.length;){let i=e[s];if(9===i.type){let[e,t]=i.parts;n+=t.length,r+=e.length}else{let e=i.parts.reduce(((e,t)=>e+t.length),0);r+=e,n+=e}t.set(r,n),s++}return t}(n):null,l=0,c=!1,u=!1,{start:p,end:h}=r;for(;l<e.length;)if(c){let n=l,r=n+p.length,s=this._getInterpolationEndIndex(e,h,r);if(-1===s){c=!1,u=!0;break}let d=s+h.length,m=e.substring(r,s);0===m.trim().length&&this._reportError("Blank expressions are not allowed in interpolated strings",e,`at column ${l} in`,t),i.push({text:m,start:n,end:d});let f=((null==o?void 0:o.get(n))??n)+p.length;a.push(f),l=d,c=!1}else{let t=l;l=e.indexOf(p,l),-1===l&&(l=e.length);let n=e.substring(t,l);s.push({text:n,start:t,end:l}),c=!0}if(!c)if(u){let t=s[s.length-1];t.text+=e.substring(l),t.end=e.length}else s.push({text:e.substring(l),start:l,end:e.length});return new bt(s,i,a)}wrapLiteralPrimitive(e,t,n){let r=new ee(0,null==e?0:e.length);return new Oe(new fe(r,r.toAbsolute(n),e),e,t,n,this.errors)}_stripComments(e){let t=this._commentStart(e);return null!=t?e.substring(0,t):e}_commentStart(e){let t=null;for(let n=0;n<e.length-1;n++){let r=e.charCodeAt(n),s=e.charCodeAt(n+1);if(47===r&&47==s&&null==t)return n;t===r?t=null:null==t&&qe(r)&&(t=r)}return null}_checkNoInterpolation(e,t,{start:n,end:r}){let s=-1,i=-1;for(let t of this._forEachUnquotedChar(e,0))if(-1===s)e.startsWith(n)&&(s=t);else if(i=this._getInterpolationEndIndex(e,r,t),i>-1)break;s>-1&&i>-1&&this._reportError(`Got interpolation (${n}${r}) where expression was expected`,e,`at column ${s} in`,t)}_getInterpolationEndIndex(e,t,n){for(let r of this._forEachUnquotedChar(e,n)){if(e.startsWith(t,r))return r;if(e.startsWith("//",r))return e.indexOf(t,r)}return-1}*_forEachUnquotedChar(e,t){let n=null,r=0;for(let s=t;s<e.length;s++){let t=e[s];!qe(e.charCodeAt(s))||null!==n&&n!==t||r%2!=0?null===n&&(yield s):n=null===n?t:null,r="\\"===t?r+1:0}}};!function(e){e[e.None=0]="None",e[e.Writable=1]="Writable"}(Ot||(Ot={}));var Mt,kt,Lt,Rt,Dt,Bt=class{input;location;absoluteOffset;tokens;parseFlags;errors;offset;rparensExpected=0;rbracketsExpected=0;rbracesExpected=0;context=Ot.None;sourceSpanCache=new Map;index=0;constructor(e,t,n,r,s,i,a){this.input=e,this.location=t,this.absoluteOffset=n,this.tokens=r,this.parseFlags=s,this.errors=i,this.offset=a}peek(e){let t=this.index+e;return t<this.tokens.length?this.tokens[t]:Nt}get next(){return this.peek(0)}get atEOF(){return this.index>=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:0===this.tokens.length?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let n=this.currentEndIndex;if(void 0!==t&&t>this.currentEndIndex&&(n=t),e>n){let t=n;n=e,e=t}return new ee(e,n)}sourceSpan(e,t){let n=`${e}@${this.inputIndex}:${t}`;return this.sourceSpanCache.has(n)||this.sourceSpanCache.set(n,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(n)}advance(){this.index++}withContext(e,t){this.context|=e;let n=t();return this.context^=e,n}consumeOptionalCharacter(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return!!this.next.isOperator(e)&&(this.advance(),!0)}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===Nt?"end of input":`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null)}expectIdentifierOrKeywordOrString(){let e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),"")}parseChain(){let e=[],t=this.inputIndex;for(;this.index<this.tokens.length;){let t=this.parsePipe();if(e.push(t),this.consumeOptionalCharacter(59))for(1&this.parseFlags||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(59););else if(this.index<this.tokens.length){let e=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===e)break}}if(0===e.length){let e=this.offset,t=this.offset+this.input.length;return new re(this.span(e,t),this.sourceSpan(e,t))}return 1==e.length?e[0]:new ae(this.span(t),this.sourceSpan(t),e)}parsePipe(){let e=this.inputIndex,t=this.parseExpression();if(this.consumeOptionalOperator("|")){1&this.parseFlags&&this.error("Cannot have a pipe in an action expression");do{let n,r,s=this.inputIndex,i=this.expectIdentifierOrKeyword();null!==i?n=this.sourceSpan(s):(i="",r=-1!==this.next.index?this.next.index:this.input.length+this.offset,n=new ee(r,r).toAbsolute(this.absoluteOffset));let a=[];for(;this.consumeOptionalCharacter(Ve);)a.push(this.parseExpression());t=new me(this.span(e),this.sourceSpan(e,r),t,i,a,n)}while(this.consumeOptionalOperator("|"))}return t}parseExpression(){return this.parseConditional()}parseConditional(){let e=this.inputIndex,t=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let n,r=this.parsePipe();if(this.consumeOptionalCharacter(Ve))n=this.parsePipe();else{let t=this.inputIndex,r=this.input.substring(e,t);this.error(`Conditional expression ${r} requires all 3 expressions`),n=new re(this.span(e),this.sourceSpan(e))}return new oe(this.span(e),this.sourceSpan(e),t,r,n)}return t}parseLogicalOr(){let e=this.inputIndex,t=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){let n=this.parseLogicalAnd();t=new ge(this.span(e),this.sourceSpan(e),"||",t,n)}return t}parseLogicalAnd(){let e=this.inputIndex,t=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){let n=this.parseNullishCoalescing();t=new ge(this.span(e),this.sourceSpan(e),"&&",t,n)}return t}parseNullishCoalescing(){let e=this.inputIndex,t=this.parseEquality();for(;this.consumeOptionalOperator("??");){let n=this.parseEquality();t=new ge(this.span(e),this.sourceSpan(e),"??",t,n)}return t}parseEquality(){let e=this.inputIndex,t=this.parseRelational();for(;this.next.type==dt.Operator;){let n=this.next.strValue;switch(n){case"==":case"===":case"!=":case"!==":this.advance();let r=this.parseRelational();t=new ge(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseRelational(){let e=this.inputIndex,t=this.parseAdditive();for(;this.next.type==dt.Operator;){let n=this.next.strValue;switch(n){case"<":case">":case"<=":case">=":this.advance();let r=this.parseAdditive();t=new ge(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseAdditive(){let e=this.inputIndex,t=this.parseMultiplicative();for(;this.next.type==dt.Operator;){let n=this.next.strValue;switch(n){case"+":case"-":this.advance();let r=this.parseMultiplicative();t=new ge(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseMultiplicative(){let e=this.inputIndex,t=this.parsePrefix();for(;this.next.type==dt.Operator;){let n=this.next.strValue;switch(n){case"*":case"%":case"/":this.advance();let r=this.parsePrefix();t=new ge(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parsePrefix(){if(this.next.type==dt.Operator){let e,t=this.inputIndex;switch(this.next.strValue){case"+":return this.advance(),e=this.parsePrefix(),Ne.createPlus(this.span(t),this.sourceSpan(t),e);case"-":return this.advance(),e=this.parsePrefix(),Ne.createMinus(this.span(t),this.sourceSpan(t),e);case"!":return this.advance(),e=this.parsePrefix(),new Ie(this.span(t),this.sourceSpan(t),e)}}else if(this.next.isKeywordTypeof()){this.advance();let e=this.inputIndex,t=this.parsePrefix();return new we(this.span(e),this.sourceSpan(e),t)}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(Fe))t=this.parseAccessMember(t,e,!1);else if(this.consumeOptionalOperator("?."))t=this.consumeOptionalCharacter(40)?this.parseCall(t,e,!0):this.consumeOptionalCharacter(91)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMember(t,e,!0);else if(this.consumeOptionalCharacter(91))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(40))t=this.parseCall(t,e,!1);else{if(!this.consumeOptionalOperator("!"))return t;t=new Ee(this.span(e),this.sourceSpan(e),t)}}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;let e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}if(this.next.isKeywordNull())return this.advance(),new fe(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new fe(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new fe(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new fe(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new ie(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;let t=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new xe(this.span(e),this.sourceSpan(e),t)}if(this.next.isCharacter(123))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new se(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let t=this.next.toNumber();return this.advance(),new fe(this.span(e),this.sourceSpan(e),t)}if(this.next.isString()){let t=this.next.toString();return this.advance(),new fe(this.span(e),this.sourceSpan(e),t)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new re(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new re(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new re(this.span(e),this.sourceSpan(e)))}parseExpressionList(e){let t=[];do{if(this.next.isCharacter(e))break;t.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return t}parseLiteralMap(){let e=[],t=[],n=this.inputIndex;if(this.expectCharacter(123),!this.consumeOptionalCharacter(We)){this.rbracesExpected++;do{let n=this.inputIndex,r=this.next.isString(),s=this.expectIdentifierOrKeywordOrString(),i={key:s,quoted:r};if(e.push(i),r)this.expectCharacter(Ve),t.push(this.parsePipe());else if(this.consumeOptionalCharacter(Ve))t.push(this.parsePipe());else{i.isShorthandInitialized=!0;let e=this.span(n),r=this.sourceSpan(n);t.push(new le(e,r,r,new se(e,r),s))}}while(this.consumeOptionalCharacter(44)&&!this.next.isCharacter(We));this.rbracesExpected--,this.expectCharacter(We)}return new ve(this.span(n),this.sourceSpan(n),e,t)}parseAccessMember(e,t,n){let r,s=this.inputIndex,i=this.withContext(Ot.Writable,(()=>{let t=this.expectIdentifierOrKeyword()??"";return 0===t.length&&this.error("Expected identifier for property access",e.span.end),t})),a=this.sourceSpan(s);if(n)this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),r=new re(this.span(t),this.sourceSpan(t))):r=new ue(this.span(t),this.sourceSpan(t),a,e,i);else if(this.consumeOptionalOperator("=")){if(!(1&this.parseFlags))return this.error("Bindings cannot contain assignments"),new re(this.span(t),this.sourceSpan(t));let n=this.parseConditional();r=new ce(this.span(t),this.sourceSpan(t),a,e,i,n)}else r=new le(this.span(t),this.sourceSpan(t),a,e,i);return r}parseCall(e,t,n){let r=this.inputIndex;this.rparensExpected++;let s=this.parseCallArguments(),i=this.span(r,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(41),this.rparensExpected--;let a=this.span(t),o=this.sourceSpan(t);return n?new Ce(a,o,e,s,i):new Se(a,o,e,s,i)}parseCallArguments(){if(this.next.isCharacter(41))return[];let e=[];do{e.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return e}expectTemplateBindingKey(){let e="",t=!1,n=this.currentAbsoluteOffset;do{e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator("-"),t&&(e+="-")}while(t);return{source:e,span:new Pe(n,n+e.length)}}parseTemplateBindings(e){let t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index<this.tokens.length;){let n=this.parseLetBinding();if(n)t.push(n);else{let n=this.expectTemplateBindingKey(),r=this.parseAsBinding(n);r?t.push(r):(n.source=e.source+n.source.charAt(0).toUpperCase()+n.source.substring(1),t.push(...this.parseDirectiveKeywordBindings(n)))}this.consumeStatementTerminator()}return new Tt(t,[],this.errors)}parseKeyedReadOrWrite(e,t,n){return this.withContext(Ot.Writable,(()=>{this.rbracketsExpected++;let r=this.parsePipe();if(r instanceof re&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(93),!this.consumeOptionalOperator("="))return n?new he(this.span(t),this.sourceSpan(t),e,r):new pe(this.span(t),this.sourceSpan(t),e,r);if(!n){let n=this.parseConditional();return new de(this.span(t),this.sourceSpan(t),e,r,n)}return this.error("The '?.' operator cannot be used in the assignment"),new re(this.span(t),this.sourceSpan(t))}))}parseDirectiveKeywordBindings(e){let t=[];this.consumeOptionalCharacter(Ve);let n=this.getDirectiveBoundTarget(),r=this.currentAbsoluteOffset,s=this.parseAsBinding(e);s||(this.consumeStatementTerminator(),r=this.currentAbsoluteOffset);let i=new Pe(e.span.start,r);return t.push(new Te(i,e,n)),s&&t.push(s),t}getDirectiveBoundTarget(){if(this.next===Nt||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:t,end:n}=e.span,r=this.input.substring(t,n);return new Oe(e,r,this.location,this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let t=this.expectTemplateBindingKey();this.consumeStatementTerminator();let n=new Pe(e.span.start,this.currentAbsoluteOffset);return new be(n,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let t=this.expectTemplateBindingKey(),n=null;this.consumeOptionalOperator("=")&&(n=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let r=new Pe(e,this.currentAbsoluteOffset);return new be(r,t,n)}consumeStatementTerminator(){this.consumeOptionalCharacter(59)||this.consumeOptionalCharacter(44)}error(e,t=null){this.errors.push(new Z(e,this.input,this.locationText(t),this.location)),this.skip()}locationText(e=null){return null==e&&(e=this.index),e<this.tokens.length?`at column ${this.tokens[e].index+1} in`:"at the end of the expression"}_reportErrorForPrivateIdentifier(e,t){let n=`Private identifiers are not supported. Unexpected private identifier: ${e}`;null!==t&&(n+=`, ${t}`),this.error(n)}skip(){let e=this.next;for(;this.index<this.tokens.length&&!e.isCharacter(59)&&!e.isOperator("|")&&(this.rparensExpected<=0||!e.isCharacter(41))&&(this.rbracesExpected<=0||!e.isCharacter(We))&&(this.rbracketsExpected<=0||!e.isCharacter(93))&&!(this.context&Ot.Writable&&e.isOperator("="));)this.next.isError()&&this.errors.push(new Z(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}},Ft=class extends Ae{errors=[];visitPipe(){this.errors.push("pipes")}},Vt=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"}));function Wt(e){return t=>t.kind===e}function _t(e,t){return n=>n.kind===e&&t===n.expression instanceof pt}function Kt({start:e,end:t},n){let r=e,s=t;for(;s!==r&&/\s/.test(n[s-1]);)s--;for(;r!==s&&/\s/.test(n[r]);)r++;return{start:r,end:s}}function qt({start:e,end:t},n){let r=e,s=t;for(;s!==n.length&&/\s/.test(n[s]);)s++;for(;0!==r&&/\s/.test(n[r-1]);)r--;return{start:r,end:s}}function Ht(e,t){return"("===t[e.start-1]&&")"===t[e.end]?{start:e.start-1,end:e.end+1}:e}function $t(e){return"string"==typeof e?t=>t===e:t=>e.test(t)}function Ut(e){let{start:t,end:n}=e;return{start:t,end:n,range:[t,n]}}function jt(e,t=!0){return n=>{let r=new xt,s=new At(r),{text:i,comments:a}=function(e,t){let n=t?(e=>At.prototype._commentStart(e))(e):null;if(null===n)return{text:e,comments:[]};let r={type:"CommentLine",value:e.slice(n+2),...Ut({start:n,end:e.length})};return{text:e.slice(0,n),comments:[r]}}(n,t),o=e(i,s);if(0!==o.errors.length){let[{message:e}]=o.errors;throw new SyntaxError(e.replace(/^Parser Error: | at column \d+ in [^]*$/g,""))}return{result:o,comments:a,text:i}}}Array.from(Vt).reduce(((e,[t,n])=>(e.set(t,n),e)),new Map),new At(new xt),Wt(He.StyleMap),Wt(He.ClassMap),Wt(He.StyleProp),Wt(He.ClassProp),_t(He.Attribute,!0),_t(He.Property,!0),_t(He.Attribute,!1),_t(He.HostProperty,!0),_t(He.HostProperty,!1),Wt(He.Attribute),Wt(He.StyleMap),Wt(He.ClassMap),Wt(He.StyleProp),Wt(He.ClassProp),new Set([He.Listener,He.TwoWayListener,He.StyleMap,He.ClassMap,He.StyleProp,He.ClassProp,He.Property,He.TwoWayProperty,He.HostProperty,He.Attribute]),new Map([["window",z.resolveWindow],["document",z.resolveDocument],["body",z.resolveBody]]),new Map([[x.HTML,z.sanitizeHtml],[x.RESOURCE_URL,z.sanitizeResourceUrl],[x.SCRIPT,z.sanitizeScript],[x.STYLE,z.sanitizeStyle],[x.URL,z.sanitizeUrl]]),new Map([[x.HTML,z.trustConstantHtml],[x.RESOURCE_URL,z.trustConstantResourceUrl]]),function(e){e[e.None=0]="None",e[e.ViewContextRead=1]="ViewContextRead",e[e.ViewContextWrite=2]="ViewContextWrite",e[e.SideEffectful=4]="SideEffectful"}(Mt||(Mt={})),new Map([[X.Property,ze.Property],[X.TwoWay,ze.TwoWayProperty],[X.Attribute,ze.Attribute],[X.Class,ze.ClassName],[X.Style,ze.StyleProperty],[X.Animation,ze.Animation]]),Symbol("queryAdvancePlaceholder"),function(e){e[e.NG_CONTENT=0]="NG_CONTENT",e[e.STYLE=1]="STYLE",e[e.STYLESHEET=2]="STYLESHEET",e[e.SCRIPT=3]="SCRIPT",e[e.OTHER=4]="OTHER"}(kt||(kt={})),function(e){e.IDLE="idle",e.TIMER="timer",e.INTERACTION="interaction",e.IMMEDIATE="immediate",e.HOVER="hover",e.VIEWPORT="viewport",e.NEVER="never"}(Lt||(Lt={})),new class{full;major;minor;patch;constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}}("19.1.2"),function(e){e[e.Extract=0]="Extract",e[e.Merge=1]="Merge"}(Rt||(Rt={})),function(e){e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule"}(Dt||(Dt={}));var Gt=jt(((e,t)=>t.parseBinding(e,"",0))),zt=(jt(((e,t)=>t.parseSimpleBinding(e,"",0))),jt(((e,t)=>t.parseAction(e,"",0)))),Qt=jt(((e,t)=>t.parseInterpolationExpression(e,"",0))),Yt=jt(((e,t)=>t.parseTemplateBindings("",e,"",0,0)),!1),Xt=(e,t,n)=>{if(!e||null!=t)return Array.isArray(t)||"string"==typeof t?t[n<0?t.length+n:n]:t.at(n)},Jt=class{text;constructor(e){this.text=e}getCharacterIndex(e,t){return function(e,t,n){let r=$t(t);for(let t=n;t<e.length;t++)if(r(e[t]))return t;throw new Error(`Cannot find character ${t} from index ${n} in ${JSON.stringify(e)}`)}(this.text,e,t)}getCharacterLastIndex(e,t){return function(e,t,n){let r=$t(t);for(let t=n;t>=0;t--)if(r(e[t]))return t;throw new Error(`Cannot find front char ${t} from index ${n} in ${JSON.stringify(e)}`)}(this.text,e,t)}transformSpan(e,{stripSpaces:t=!1,hasParentParens:n=!1}={}){if(!t)return Ut(e);let{outerSpan:r,innerSpan:s,hasParens:i}=function(e,t,n){let r=0,s={start:e.start,end:e.end};for(;;){let e=qt(s,t),n=Ht(e,t);if(e.start===n.start&&e.end===n.end)break;s.start=n.start,s.end=n.end,r++}return{hasParens:0!==(n?r-1:r),outerSpan:Kt(n?{start:s.start+1,end:s.end-1}:s,t),innerSpan:Kt(e,t)}}(e,this.text,n),a=Ut(s);return i&&(a.extra={parenthesized:!0,parenStart:r.start,parenEnd:r.end}),a}createNode(e,{stripSpaces:t=!0,hasParentParens:n=!1}={}){let{type:r,start:s,end:i}=e,a={...e,...this.transformSpan({start:s,end:i},{stripSpaces:t,hasParentParens:n})};switch(r){case"NumericLiteral":case"StringLiteral":{let e=this.text.slice(a.start,a.end),{value:t}=a;a.extra={...a.extra,raw:e,rawValue:t};break}case"ObjectProperty":{let{shorthand:e}=a;e&&(a.extra={...a.extra,shorthand:e});break}}return a}};function Zt(e){var t;return!(null==(t=e.extra)||!t.parenthesized)}function en(e){return Zt(e)?e.extra.parenStart:e.start}function tn(e){return Zt(e)?e.extra.parenEnd:e.end}function nn(e){return("OptionalCallExpression"===e.type||"OptionalMemberExpression"===e.type)&&!Zt(e)}function rn(e,t){let{start:n,end:r}=e.sourceSpan;return n>=r||/^\s+$/.test(t.slice(n,r))}var sn,an,on,ln,cn,un,pn,hn=class extends Jt{constructor(e,t){super(t),l(this,on),l(this,sn),l(this,an),c(this,sn,e),c(this,an,t)}get node(){return u(this,on,un).call(this,o(this,sn))}transformNode(e){return u(this,on,pn).call(this,e)}};function dn(e){return e instanceof Te}function mn(e){return e instanceof be}sn=new WeakMap,an=new WeakMap,on=new WeakSet,ln=function(e,{stripSpaces:t=!0,hasParentParens:n=!1}={}){return this.createNode(e,{stripSpaces:t,hasParentParens:n})},cn=function(e,t,{computed:n,optional:r,end:s=tn(t),hasParentParens:i=!1}){if(rn(e,o(this,an))||e.sourceSpan.start===t.start)return t;let a=u(this,on,un).call(this,e),l=nn(a);return u(this,on,ln).call(this,{type:r||l?"OptionalMemberExpression":"MemberExpression",object:a,property:t,computed:n,...r?{optional:!0}:l?{optional:!1}:void 0,start:en(a),end:s},{hasParentParens:i})},un=function(e,t=!1){return u(this,on,pn).call(this,e,t)},pn=function(e,t=!1){if(e instanceof ye){let{expressions:t}=e;if(1!==t.length)throw new Error("Unexpected 'Interpolation'");return u(this,on,un).call(this,t[0])}if(e instanceof Ne)return u(this,on,ln).call(this,{type:"UnaryExpression",prefix:!0,argument:u(this,on,un).call(this,e.expr),operator:e.operator,...e.sourceSpan},{hasParentParens:t});if(e instanceof ge){let{left:n,operation:r,right:s}=e,i=u(this,on,un).call(this,n),a=u(this,on,un).call(this,s),o={left:i,right:a,start:en(i),end:tn(a)};return"&&"===r||"||"===r||"??"===r?u(this,on,ln).call(this,{...o,type:"LogicalExpression",operator:r},{hasParentParens:t}):u(this,on,ln).call(this,{...o,type:"BinaryExpression",operator:r},{hasParentParens:t})}if(e instanceof me){let{exp:n,name:r,args:s}=e,i=u(this,on,un).call(this,n),a=en(i),o=tn(i),l=this.getCharacterIndex(/\S/,this.getCharacterIndex("|",o)+1),c=u(this,on,ln).call(this,{type:"Identifier",name:r,start:l,end:l+r.length}),p=s.map((e=>u(this,on,un).call(this,e)));return u(this,on,ln).call(this,{type:"NGPipeExpression",left:i,right:c,arguments:p,start:a,end:tn(0===p.length?c:Xt(!1,p,-1))},{hasParentParens:t})}if(e instanceof ae)return u(this,on,ln).call(this,{type:"NGChainedExpression",expressions:e.expressions.map((e=>u(this,on,un).call(this,e))),...e.sourceSpan},{hasParentParens:t});if(e instanceof oe){let{condition:n,trueExp:r,falseExp:s}=e,i=u(this,on,un).call(this,n),a=u(this,on,un).call(this,r),o=u(this,on,un).call(this,s);return u(this,on,ln).call(this,{type:"ConditionalExpression",test:i,consequent:a,alternate:o,start:en(i),end:tn(o)},{hasParentParens:t})}if(e instanceof re)return u(this,on,ln).call(this,{type:"NGEmptyExpression",...e.sourceSpan},{hasParentParens:t});if(e instanceof se)return u(this,on,ln).call(this,{type:"ThisExpression",...e.sourceSpan},{hasParentParens:t});if(e instanceof pe||e instanceof he)return u(this,on,cn).call(this,e.receiver,u(this,on,un).call(this,e.key),{computed:!0,optional:e instanceof he,end:e.sourceSpan.end,hasParentParens:t});if(e instanceof xe)return u(this,on,ln).call(this,{type:"ArrayExpression",elements:e.expressions.map((e=>u(this,on,un).call(this,e))),...e.sourceSpan},{hasParentParens:t});if(e instanceof ve){let{keys:n,values:r}=e,s=r.map((e=>u(this,on,un).call(this,e))),i=n.map((({key:t,quoted:n},r)=>{let i=s[r],a=en(i),o=tn(i),l=this.getCharacterIndex(/\S/,0===r?e.sourceSpan.start+1:this.getCharacterIndex(",",tn(s[r-1]))+1),c={start:l,end:a===l?o:this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex(":",a-1)-1)+1},p=n?u(this,on,ln).call(this,{type:"StringLiteral",value:t,...c}):u(this,on,ln).call(this,{type:"Identifier",name:t,...c}),h=p.end<p.start||l===a;return u(this,on,ln).call(this,{type:"ObjectProperty",key:p,value:i,shorthand:h,computed:!1,start:en(p),end:o})}));return u(this,on,ln).call(this,{type:"ObjectExpression",properties:i,...e.sourceSpan},{hasParentParens:t})}if(e instanceof fe){let{value:n}=e;switch(typeof n){case"boolean":return u(this,on,ln).call(this,{type:"BooleanLiteral",value:n,...e.sourceSpan},{hasParentParens:t});case"number":return u(this,on,ln).call(this,{type:"NumericLiteral",value:n,...e.sourceSpan},{hasParentParens:t});case"object":return u(this,on,ln).call(this,{type:"NullLiteral",...e.sourceSpan},{hasParentParens:t});case"string":return u(this,on,ln).call(this,{type:"StringLiteral",value:n,...e.sourceSpan},{hasParentParens:t});case"undefined":return u(this,on,ln).call(this,{type:"Identifier",name:"undefined",...e.sourceSpan},{hasParentParens:t});default:throw new Error("Unexpected LiteralPrimitive value type "+typeof n)}}if(e instanceof Se||e instanceof Ce){let n=e instanceof Ce,{receiver:r,args:s}=e,i=1===s.length?[u(this,on,un).call(this,s[0],!0)]:s.map((e=>u(this,on,un).call(this,e))),a=u(this,on,un).call(this,r),o=nn(a),l=n||o?"OptionalCallExpression":"CallExpression";return u(this,on,ln).call(this,{type:l,callee:a,arguments:i,optional:"OptionalCallExpression"===l?n:void 0,start:en(a),end:e.sourceSpan.end},{hasParentParens:t})}if(e instanceof Ee){let n=u(this,on,un).call(this,e.expression);return u(this,on,ln).call(this,{type:"TSNonNullExpression",expression:n,start:en(n),end:e.sourceSpan.end},{hasParentParens:t})}let n=e instanceof Ie;if(n||e instanceof we){let r=u(this,on,un).call(this,e.expression),s=n?"!":"typeof",{start:i}=e.sourceSpan;if(!n){let e=this.text.lastIndexOf(s,i);if(-1===e)throw new Error(`Cannot find operator ${s} from index ${i} in ${JSON.stringify(this.text)}`);i=e}return u(this,on,ln).call(this,{type:"UnaryExpression",prefix:!0,operator:s,argument:r,start:i,end:tn(r)},{hasParentParens:t})}if(e instanceof le||e instanceof ue){let{receiver:n,name:r}=e,s=this.getCharacterLastIndex(/\S/,e.sourceSpan.end-1)+1,i=u(this,on,ln).call(this,{type:"Identifier",name:r,start:s-r.length,end:s},rn(n,o(this,an))?{hasParentParens:t}:{});return u(this,on,cn).call(this,n,i,{computed:!1,optional:e instanceof ue,hasParentParens:t})}if(e instanceof de){let n=u(this,on,un).call(this,e.key),r=u(this,on,un).call(this,e.value),s=u(this,on,cn).call(this,e.receiver,n,{computed:!0,optional:!1,end:this.getCharacterIndex("]",tn(n))+1});return u(this,on,ln).call(this,{type:"AssignmentExpression",left:s,operator:"=",right:r,start:en(s),end:tn(r)},{hasParentParens:t})}if(e instanceof ce){let{receiver:n,name:r,value:s}=e,i=u(this,on,un).call(this,s),a=this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex("=",en(i)-1)-1)+1,o=u(this,on,ln).call(this,{type:"Identifier",name:r,start:a-r.length,end:a}),l=u(this,on,cn).call(this,n,o,{computed:!1,optional:!1});return u(this,on,ln).call(this,{type:"AssignmentExpression",left:l,operator:"=",right:i,start:en(l),end:tn(i)},{hasParentParens:t})}throw Object.assign(new Error("Unexpected node"),{node:e})};var fn,xn,vn,yn,gn,Nn,In,wn,En,Sn,Cn,Pn,On=class extends hn{constructor(e,t){super(void 0,t),l(this,vn),l(this,fn),l(this,xn),c(this,fn,e),c(this,xn,t);for(let t of e)u(this,vn,En).call(this,t)}get expressions(){return u(this,vn,Cn).call(this)}};function bn({result:{ast:e},text:t,comments:n}){return Object.assign(function(e,t){return new hn(e,t).node}(e,t),{comments:n})}fn=new WeakMap,xn=new WeakMap,vn=new WeakSet,yn=function(){return o(this,fn)[0].key},gn=function(e,{stripSpaces:t=!0}={}){return this.createNode(e,{stripSpaces:t})},Nn=function(e){return this.transformNode(e)},In=function(e){return function(e){return e.slice(0,1).toLowerCase()+e.slice(1)}(e.slice(o(this,vn,yn).source.length))},wn=function(e){let t=o(this,xn);if('"'!==t[e.start]&&"'"!==t[e.start])return;let n=t[e.start],r=!1;for(let s=e.start+1;s<t.length;s++)switch(t[s]){case n:if(!r)return void(e.end=s+1);default:r=!1;break;case"\\":r=!r}},En=function(e){u(this,vn,wn).call(this,e.key.span),mn(e)&&e.value&&u(this,vn,wn).call(this,e.value.span)},Sn=function(e){if(!e.value||e.value.source)return e.value;let t=this.getCharacterIndex(/\S/,e.sourceSpan.start);return{source:"$implicit",span:{start:t,end:t}}},Cn=function(){let e=o(this,fn),[t]=e,n=0===o(this,xn).slice(t.sourceSpan.start,t.sourceSpan.end).trim().length?e.slice(1):e,r=[],s=null;for(let[e,t]of n.entries()){if(s&&dn(s)&&mn(t)&&t.value&&t.value.source===s.key.source){let e=u(this,vn,gn).call(this,{type:"NGMicrosyntaxKey",name:t.key.source,...t.key.span}),n=(e,t)=>({...e,...this.transformSpan({start:e.start,end:t})}),s=t=>({...n(t,e.end),alias:e}),i=r.pop();if("NGMicrosyntaxExpression"===i.type)r.push(s(i));else{if("NGMicrosyntaxKeyedExpression"!==i.type)throw new Error(`Unexpected type ${i.type}`);{let e=s(i.expression);r.push(n({...i,expression:e},e.end))}}}else r.push(u(this,vn,Pn).call(this,t,e));s=t}return u(this,vn,gn).call(this,{type:"NGMicrosyntax",body:r,...0===r.length?e[0].sourceSpan:{start:r[0].start,end:Xt(!1,r,-1).end}})},Pn=function(e,t){if(dn(e)){let{key:n,value:r}=e;return r?0===t?u(this,vn,gn).call(this,{type:"NGMicrosyntaxExpression",expression:u(this,vn,Nn).call(this,r.ast),alias:null,...r.sourceSpan}):u(this,vn,gn).call(this,{type:"NGMicrosyntaxKeyedExpression",key:u(this,vn,gn).call(this,{type:"NGMicrosyntaxKey",name:u(this,vn,In).call(this,n.source),...n.span}),expression:u(this,vn,gn).call(this,{type:"NGMicrosyntaxExpression",expression:u(this,vn,Nn).call(this,r.ast),alias:null,...r.sourceSpan}),start:n.span.start,end:r.sourceSpan.end}):u(this,vn,gn).call(this,{type:"NGMicrosyntaxKey",name:u(this,vn,In).call(this,n.source),...n.span})}{let{key:t,sourceSpan:n}=e;if(/^let\s$/.test(o(this,xn).slice(n.start,n.start+4))){let{value:r}=e;return u(this,vn,gn).call(this,{type:"NGMicrosyntaxLet",key:u(this,vn,gn).call(this,{type:"NGMicrosyntaxKey",name:t.source,...t.span}),value:r?u(this,vn,gn).call(this,{type:"NGMicrosyntaxKey",name:r.source,...r.span}):null,start:n.start,end:r?r.span.end:t.span.end})}{let n=u(this,vn,Sn).call(this,e);return u(this,vn,gn).call(this,{type:"NGMicrosyntaxAs",key:u(this,vn,gn).call(this,{type:"NGMicrosyntaxKey",name:n.source,...n.span}),alias:u(this,vn,gn).call(this,{type:"NGMicrosyntaxKey",name:t.source,...t.span}),start:n.span.start,end:t.span.end})}}};var Tn=e=>bn(zt(e));function An(e){var t,n,r;let s=(null==(t=e.range)?void 0:t[0])??e.start,i=null==(r=(null==(n=e.declaration)?void 0:n.decorators)??e.decorators)?void 0:r[0];return i?Math.min(An(i),s):s}function Mn(e){var t;return(null==(t=e.range)?void 0:t[1])??e.end}function kn(e){return{astFormat:"estree",parse(t){let n=e(t);return{type:"NGRoot",node:e===Tn&&"NGChainedExpression"!==n.type?{...n,type:"NGChainedExpression",expressions:[n]}:n}},locStart:An,locEnd:Mn}}var Ln=kn(Tn),Rn=kn((e=>bn(Gt(e)))),Dn=kn((e=>bn(Qt(e)))),Bn=kn((e=>function({result:{templateBindings:e},text:t}){return function(e,t){return new On(e,t).expressions}(e,t)}(Yt(e)))),Fn=p}};