prettier 1.19.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/parser-yaml.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e=e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.yaml={}))}(this,(function(e){"use strict";var t=function(e,t){var n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n};var n=function(e){return/^\s*#[^\n\S]*@(prettier|format)\s*?(\n|$)/.test(e)},r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e,t){return e(t={exports:{}},t.exports),t.exports}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return(h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&d(a,n.prototype),a}).apply(null,arguments)}function p(e){var t="function"==typeof Map?new Map:void 0;return(p=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return h(e,arguments,c(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),d(r,e)})(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?v(e):t}function m(e,t,n){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function y(e,t){return b(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}(e,t)||w()}function _(e){return b(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||w()}function b(e){if(Array.isArray(e))return e}function w(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e=e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.yaml={}))}(this,(function(e){"use strict";var t=function(e,t){const n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n};var n={isPragma:function(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\n\S]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n".concat(e)}},r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e,t){return e(t={exports:{}},t.exports),t.exports}
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
@@ -12,4 +12,5 @@
12
12
 
13
13
  See the Apache Version 2.0 License for specific language governing permissions
14
14
  and limitations under the License.
15
- ***************************************************************************** */var E=function(e,t){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var O=function(){return(O=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function M(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function S(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function A(e){return this instanceof A?(this.v=e,this):new A(e)}var k=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}E(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return O},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},__decorate:function(e,t,n,r){var a,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":i(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(s=(o<3?a(s):o>3?a(t,n,s):a(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":i(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?a(e.value):new n((function(t){t(e.value)})).then(i,s)}u((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},__exportStar:function(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])},__values:M,__read:S,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(S(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),a=0;for(t=0;t<n;t++)for(var o=arguments[t],i=0,s=o.length;i<s;i++,a++)r[a]=o[i];return r},__await:A,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,a=n.apply(e,t||[]),o=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){a[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=a[e](t)).value instanceof A?Promise.resolve(n.value.v).then(u,f):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){s("next",e)}function f(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,a){t[r]=e[r]?function(t){return(n=!n)?{value:A(e[r](t)),done:"return"===r}:a?a(t):t}:a}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=M(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,a){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,a,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),L=o((function(e,t){var n="\n",r="\r",a=function(){function e(e){this.string=e;for(var t=[0],a=0;a<e.length;)switch(e[a]){case n:a+=n.length,t.push(a);break;case r:e[a+=r.length]===n&&(a+=n.length),t.push(a);break;default:a++}this.offsets=t}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.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?null: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.string.length:this.offsets[e+1])-t},e}();t.__esModule=!0,t.default=a}));a(L);var T=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Type=t.Char=void 0;t.Char={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."};t.Type={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"}}));a(T);T.Type,T.Char;var P=o((function(e,t){function n(e){for(var t=[0],n=e.indexOf("\n");-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function r(e){var t,r;return"string"==typeof e?(t=n(e),r=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=n(e.context.src)),t=e.lineStarts,r=e.context.src)),{lineStarts:t,src:r}}function a(e,t){var n=r(t),a=n.lineStarts,o=n.src;if(!a||!(e>=1)||e>a.length)return null;for(var i=a[e-1],s=a[e];s&&s>i&&"\n"===o[s-1];)--s;return o.slice(i,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.getLinePos=function(e,t){if("number"!=typeof e||e<0)return null;var n=r(t),a=n.lineStarts,o=n.src;if(!a||!o||e>o.length)return null;for(var i=0;i<a.length;++i){var s=a[i];if(e<s)return{line:i,col:e-a[i-1]+1};if(e===s)return{line:i+1,col:1}}var u=a.length;return{line:u,col:e-a[u-1]+1}},t.getLine=a,t.getPrettyContext=function(e,t){var n=e.start,r=e.end,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:80,i=a(n.line,t);if(!i)return null;var s=n.col;if(i.length>o)if(s<=o-10)i=i.substr(0,o-1)+"…";else{var u=Math.round(o/2);i.length>s+u&&(i=i.substr(0,s+u-1)+"…"),s-=i.length-o,i="…"+i.substr(1-o)}var f=1,l="";r&&(r.line===n.line&&s+(r.col-n.col)<=o+1?f=r.col-n.col:(f=Math.min(i.length+1,o)-s,l="…"));var c=s>1?" ".repeat(s-1):"",d="^".repeat(f);return"".concat(i,"\n").concat(c).concat(d).concat(l)}}));a(P);P.getLinePos,P.getLine,P.getPrettyContext;var C=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(t,n){s(this,e),this.start=t,this.end=n||t}return f(e,null,[{key:"copy",value:function(t){return new e(t.start,t.end)}}]),f(e,[{key:"isEmpty",value:function(){return"number"!=typeof this.start||!this.end||this.end<=this.start}},{key:"setOrigRange",value:function(e,t){var n=this.start,r=this.end;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;for(var a=t;a<e.length&&!(e[a]>n);)++a;this.origStart=n+a;for(var o=a;a<e.length&&!(e[a]>=r);)++a;return this.origEnd=r+a,o}}]),e}();t.default=n}));a(C);var N=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=C)&&n.__esModule?n:{default:n};var a=function(){function e(t,n,r){s(this,e),Object.defineProperty(this,"context",{value:r||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=t,this.value=null}return f(e,null,[{key:"addStringTerminator",value:function(t,n,r){if("\n"===r[r.length-1])return r;var a=e.endOfWhiteSpace(t,n);return a>=t.length||"\n"===t[a]?r+"\n":r}},{key:"atDocumentBoundary",value:function(e,t,n){var r=e[t];if(!r)return!0;var a=e[t-1];if(a&&"\n"!==a)return!1;if(n){if(r!==n)return!1}else if(r!==T.Char.DIRECTIVES_END&&r!==T.Char.DOCUMENT_END)return!1;var o=e[t+1],i=e[t+2];if(o!==r||i!==r)return!1;var s=e[t+3];return!s||"\n"===s||"\t"===s||" "===s}},{key:"endOfIdentifier",value:function(e,t){for(var n=e[t],r="<"===n,a=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];n&&-1===a.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}},{key:"endOfIndent",value:function(e,t){for(var n=e[t];" "===n;)n=e[t+=1];return t}},{key:"endOfLine",value:function(e,t){for(var n=e[t];n&&"\n"!==n;)n=e[t+=1];return t}},{key:"endOfWhiteSpace",value:function(e,t){for(var n=e[t];"\t"===n||" "===n;)n=e[t+=1];return t}},{key:"startOfLine",value:function(e,t){var n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}},{key:"endOfBlockIndent",value:function(t,n,r){var a=e.endOfIndent(t,r);if(a>r+n)return a;var o=e.endOfWhiteSpace(t,a),i=t[o];return i&&"\n"!==i?null:o}},{key:"atBlank",value:function(e,t,n){var r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}},{key:"atCollectionItem",value:function(t,n){var r=t[n];return("?"===r||":"===r||"-"===r)&&e.atBlank(t,n+1,!0)}},{key:"nextNodeIsIndented",value:function(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}},{key:"normalizeOffset",value:function(t,n){var r=t[n];return r?"\n"!==r&&"\n"===t[n-1]?n-1:e.endOfWhiteSpace(t,n):n}},{key:"foldNewline",value:function(t,n,r){for(var a=0,o=!1,i="",s=t[n+1];" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":a=0,n+=1,i+="\n";break;case"\t":a<=r&&(o=!0),n=e.endOfWhiteSpace(t,n+2)-1;break;case" ":a+=1,n+=1}s=t[n+1]}return i||(i=" "),s&&a<=r&&(o=!0),{fold:i,offset:n,error:o}}}]),f(e,[{key:"getPropValue",value:function(e,t,n){if(!this.context)return null;var r=this.context.src,a=this.props[e];return a&&r[a.start]===t?r.slice(a.start+(n?1:0),a.end):null}},{key:"commentHasRequiredWhitespace",value:function(t){var n=this.context.src;if(this.header&&t===this.header.end)return!1;if(!this.valueRange)return!1;var r=this.valueRange.end;return t!==r||e.atBlank(n,r-1)}},{key:"parseComment",value:function(t){var n=this.context.src;if(n[t]===T.Char.COMMENT){var a=e.endOfLine(n,t+1),o=new r.default(t,a);return this.props.push(o),a}return t}},{key:"setOrigRanges",value:function(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach((function(n){return n.setOrigRange(e,t)})),t}},{key:"toString",value:function(){var t=this.context.src,n=this.range,r=this.value;if(null!=r)return r;var a=t.slice(n.start,n.end);return e.addStringTerminator(t,n.end,a)}},{key:"anchor",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,T.Char.ANCHOR,!0);if(null!=t)return t}return null}},{key:"comment",get:function(){for(var e=[],t=0;t<this.props.length;++t){var n=this.getPropValue(t,T.Char.COMMENT,!0);null!=n&&e.push(n)}return e.length>0?e.join("\n"):null}},{key:"hasComment",get:function(){if(this.context)for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]===T.Char.COMMENT)return!0;return!1}},{key:"hasProps",get:function(){if(this.context)for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]!==T.Char.COMMENT)return!0;return!1}},{key:"includesTrailingLines",get:function(){return!1}},{key:"jsonLike",get:function(){return-1!==[T.Type.FLOW_MAP,T.Type.FLOW_SEQ,T.Type.QUOTE_DOUBLE,T.Type.QUOTE_SINGLE].indexOf(this.type)}},{key:"rangeAsLinePos",get:function(){if(this.range&&this.context){var e=(0,P.getLinePos)(this.range.start,this.context.root);if(e)return{start:e,end:(0,P.getLinePos)(this.range.end,this.context.root)}}}},{key:"rawValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end;return this.context.src.slice(t,n)}},{key:"tag",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,T.Char.TAG,!1);if(null!=t){if("<"===t[1])return{verbatim:t.slice(2,-1)};var n=y(t.match(/^(.*!)([^!]*)$/),3);n[0];return{handle:n[1],suffix:n[2]}}}return null}},{key:"valueRangeContainsNewline",get:function(){if(!this.valueRange||!this.context)return!1;for(var e=this.valueRange,t=e.start,n=e.end,r=this.context.src,a=t;a<n;++a)if("\n"===r[a])return!0;return!1}}]),e}();t.default=a}));a(N);var x=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLWarning=t.YAMLSyntaxError=t.YAMLSemanticError=t.YAMLReferenceError=t.YAMLError=void 0;var n=a(N),r=a(C);function a(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(e,r,a){var o;if(s(this,t),!(a&&r instanceof n.default))throw new Error("Invalid arguments for new ".concat(e));return(o=g(this,c(t).call(this))).name=e,o.message=a,o.source=r,o}return l(t,e),f(t,[{key:"makePretty",value:function(){if(this.source){this.nodeType=this.source.type;var e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new r.default(this.offset,this.offset+1);var t=e&&(0,P.getLinePos)(this.offset,e);if(t){var n={line:t.line,col:t.col+1};this.linePos={start:t,end:n}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){var a=this.linePos.start,o=a.line,i=a.col;this.message+=" at line ".concat(o,", column ").concat(i);var s=e&&(0,P.getPrettyContext)(this.linePos,e);s&&(this.message+=":\n\n".concat(s,"\n"))}delete this.source}}}]),t}(p(Error));t.YAMLError=o;var i=function(e){function t(e,n){return s(this,t),g(this,c(t).call(this,"YAMLReferenceError",e,n))}return l(t,e),t}(o);t.YAMLReferenceError=i;var u=function(e){function t(e,n){return s(this,t),g(this,c(t).call(this,"YAMLSemanticError",e,n))}return l(t,e),t}(o);t.YAMLSemanticError=u;var d=function(e){function t(e,n){return s(this,t),g(this,c(t).call(this,"YAMLSyntaxError",e,n))}return l(t,e),t}(o);t.YAMLSyntaxError=d;var h=function(e){function t(e,n){return s(this,t),g(this,c(t).call(this,"YAMLWarning",e,n))}return l(t,e),t}(o);t.YAMLWarning=h}));a(x);x.YAMLWarning,x.YAMLSyntaxError,x.YAMLSemanticError,x.YAMLReferenceError,x.YAMLError;var R=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(N),r=a(C);function a(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(){return s(this,t),g(this,c(t).call(this,T.Type.BLANK_LINE))}return l(t,e),f(t,[{key:"parse",value:function(e,t){this.context=e;for(var a=e.src,o=t+1;n.default.atBlank(a,o);){var i=n.default.endOfWhiteSpace(a,o);if("\n"!==i)break;o=i+1}return this.range=new r.default(t,o),o}},{key:"includesTrailingLines",get:function(){return!0}}]),t}(n.default);t.default=o}));a(R);var I=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(R),r=o(N),a=o(C);function o(e){return e&&e.__esModule?e:{default:e}}var i=function(e){function t(e,n){var r;return s(this,t),(r=g(this,c(t).call(this,e,n))).node=null,r}return l(t,e),f(t,[{key:"parse",value:function(e,t){this.context=e;var o=e.parseNode,i=e.src,s=e.atLineStart,u=e.lineStart;s||this.type!==T.Type.SEQ_ITEM||(this.error=new x.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));for(var f=s?t-u:e.indent,l=r.default.endOfWhiteSpace(i,t+1),c=i[l],d="#"===c,h=[],p=null;"\n"===c||"#"===c;){if("#"===c){var v=r.default.endOfLine(i,l+1);h.push(new a.default(l,v)),l=v}else{s=!0,u=l+1,"\n"===i[r.default.endOfWhiteSpace(i,u)]&&0===h.length&&(u=(p=new n.default).parse({src:i},u)),l=r.default.endOfIndent(i,u)}c=i[l]}if(r.default.nextNodeIsIndented(c,l-(u+f),this.type!==T.Type.SEQ_ITEM)?this.node=o({atLineStart:s,inCollection:!1,indent:f,lineStart:u,parent:this},l):c&&u>t+1&&(l=u-1),this.node){if(p){var g=e.parent.items||e.parent.contents;g&&g.push(p)}h.length&&Array.prototype.push.apply(this.props,h),l=this.node.range.end}else if(d){var m=h[0];this.props.push(m),l=m.end}else l=r.default.endOfLine(i,t+1);var y=this.node?this.node.valueRange.end:l;return this.valueRange=new a.default(t,y),l}},{key:"setOrigRanges",value:function(e,n){return n=m(c(t.prototype),"setOrigRanges",this).call(this,e,n),this.node?this.node.setOrigRanges(e,n):n}},{key:"toString",value:function(){var e=this.context.src,t=this.node,n=this.range,a=this.value;if(null!=a)return a;var o=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return r.default.addStringTerminator(e,n.end,o)}},{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}}]),t}(r.default);t.default=i}));a(I);var B=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(N),r=a(C);function a(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(){return s(this,t),g(this,c(t).call(this,T.Type.COMMENT))}return l(t,e),f(t,[{key:"parse",value:function(e,t){this.context=e;var n=this.parseComment(t);return this.range=new r.default(t,n),n}}]),t}(n.default);t.default=o}));a(B);var D=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.grabCollectionEndComments=d,t.default=void 0;var n=u(R),r=u(I),a=u(B),o=u(N),i=u(C);function u(e){return e&&e.__esModule?e:{default:e}}function d(e){for(var t=e;t instanceof r.default;)t=t.node;if(!(t instanceof h))return null;for(var n=t.items.length,a=-1,o=n-1;o>=0;--o){var i=t.items[o];if(i.type===T.Type.COMMENT){var s=i.context,u=s.indent,f=s.lineStart;if(u>0&&i.range.start>=f+u)break;a=o}else{if(i.type!==T.Type.BLANK_LINE)break;a=o}}if(-1===a)return null;for(var l=t.items.splice(a,n-a),c=l[0].range.start;t.range.end=c,t.valueRange&&t.valueRange.end>c&&(t.valueRange.end=c),t!==e;)t=t.context.parent;return l}var h=function(e){function t(e){var n;s(this,t),n=g(this,c(t).call(this,e.type===T.Type.SEQ_ITEM?T.Type.SEQ:T.Type.MAP));for(var r=e.props.length-1;r>=0;--r)if(e.props[r].start<e.context.lineStart){n.props=e.props.slice(0,r+1),e.props=e.props.slice(r+1);var a=e.props[0]||e.valueRange;e.range.start=a.start;break}n.items=[e];var o=d(e);return o&&Array.prototype.push.apply(n.items,o),n}return l(t,e),f(t,null,[{key:"nextContentHasIndent",value:function(e,n,r){var a=o.default.endOfLine(e,n)+1,i=e[n=o.default.endOfWhiteSpace(e,a)];return!!i&&(n>=a+r||("#"===i||"\n"===i)&&t.nextContentHasIndent(e,n,r))}}]),f(t,[{key:"parse",value:function(e,r){this.context=e;var s=e.parseNode,u=e.src,f=o.default.startOfLine(u,r),l=this.items[0];l.context.parent=this,this.valueRange=i.default.copy(l.valueRange);for(var c=l.range.start-l.context.lineStart,h=r,p=u[h=o.default.normalizeOffset(u,h)],v=o.default.endOfWhiteSpace(u,f)===h,g=!1;p;){for(;"\n"===p||"#"===p;){if(v&&"\n"===p&&!g){var m=new n.default;if(h=m.parse({src:u},h),this.valueRange.end=h,h>=u.length){p=null;break}this.items.push(m),h-=1}else if("#"===p){if(h<f+c&&!t.nextContentHasIndent(u,h,c))return h;var y=new a.default;if(h=y.parse({indent:c,lineStart:f,src:u},h),this.items.push(y),this.valueRange.end=h,h>=u.length){p=null;break}}if(f=h+1,h=o.default.endOfIndent(u,f),o.default.atBlank(u,h)){var _=o.default.endOfWhiteSpace(u,h),b=u[_];b&&"\n"!==b&&"#"!==b||(h=_)}p=u[h],v=!0}if(!p)break;if(h!==f+c&&(v||":"!==p)){f>r&&(h=f);break}if(l.type===T.Type.SEQ_ITEM!=("-"===p)){var w=!0;if("-"===p){var E=u[h+1];w=!E||"\n"===E||"\t"===E||" "===E}if(w){f>r&&(h=f);break}}var O=s({atLineStart:v,inCollection:!0,indent:c,lineStart:f,parent:this},h);if(!O)return h;if(this.items.push(O),this.valueRange.end=O.valueRange.end,p=u[h=o.default.normalizeOffset(u,O.range.end)],v=!1,g=O.includesTrailingLines,p){for(var M=h-1,S=u[M];" "===S||"\t"===S;)S=u[--M];"\n"===S&&(f=M+1,v=!0)}var A=d(O);A&&Array.prototype.push.apply(this.items,A)}return h}},{key:"setOrigRanges",value:function(e,n){return n=m(c(t.prototype),"setOrigRanges",this).call(this,e,n),this.items.forEach((function(t){n=t.setOrigRanges(e,n)})),n}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,r=this.value;if(null!=r)return r;for(var a=e.slice(n.start,t[0].range.start)+String(t[0]),i=1;i<t.length;++i){var s=t[i],u=s.context,f=u.atLineStart,l=u.indent;if(f)for(var c=0;c<l;++c)a+=" ";a+=String(s)}return o.default.addStringTerminator(e,n.end,a)}},{key:"includesTrailingLines",get:function(){return this.items.length>0}}]),t}(o.default);t.default=h}));a(D);D.grabCollectionEndComments;var j=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(N),r=a(C);function a(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(){var e;return s(this,t),(e=g(this,c(t).call(this,T.Type.DIRECTIVE))).name=null,e}return l(t,e),f(t,null,[{key:"endOfDirective",value:function(e,t){for(var n=e[t];n&&"\n"!==n&&"#"!==n;)n=e[t+=1];for(n=e[t-1];" "===n||"\t"===n;)n=e[(t-=1)-1];return t}}]),f(t,[{key:"parseName",value:function(e){for(var t=this.context.src,n=e,r=t[n];r&&"\n"!==r&&"\t"!==r&&" "!==r;)r=t[n+=1];return this.name=t.slice(e,n),n}},{key:"parseParameters",value:function(e){for(var t=this.context.src,n=e,a=t[n];a&&"\n"!==a&&"#"!==a;)a=t[n+=1];return this.valueRange=new r.default(e,n),n}},{key:"parse",value:function(e,t){this.context=e;var n=this.parseName(t+1);return n=this.parseParameters(n),n=this.parseComment(n),this.range=new r.default(t,n),n}},{key:"parameters",get:function(){var e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}}]),t}(n.default);t.default=o}));a(j);var Y=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(R),r=u(B),a=u(j),o=u(N),i=u(C);function u(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(){var e;return s(this,t),(e=g(this,c(t).call(this,T.Type.DOCUMENT))).directives=null,e.contents=null,e.directivesEndMarker=null,e.documentEndMarker=null,e}return l(t,e),f(t,null,[{key:"startCommentOrEndBlankLine",value:function(e,t){var n=o.default.endOfWhiteSpace(e,t),r=e[n];return"#"===r||"\n"===r?n:t}}]),f(t,[{key:"parseDirectives",value:function(e){var s=this.context.src;this.directives=[];for(var u=!0,f=!1,l=e;!o.default.atDocumentBoundary(s,l,T.Char.DIRECTIVES_END);)switch(s[l=t.startCommentOrEndBlankLine(s,l)]){case"\n":if(u){var c=new n.default;(l=c.parse({src:s},l))<s.length&&this.directives.push(c)}else l+=1,u=!0;break;case"#":var d=new r.default;l=d.parse({src:s},l),this.directives.push(d),u=!1;break;case"%":var h=new a.default;l=h.parse({parent:this,src:s},l),this.directives.push(h),f=!0,u=!1;break;default:return f?this.error=new x.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l}return s[l]?(this.directivesEndMarker=new i.default(l,l+3),l+3):(f?this.error=new x.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l)}},{key:"parseContents",value:function(e){var a=this.context,s=a.parseNode,u=a.src;this.contents||(this.contents=[]);for(var f=e;"-"===u[f-1];)f-=1;var l=o.default.endOfWhiteSpace(u,e),c=f===e;for(this.valueRange=new i.default(l);!o.default.atDocumentBoundary(u,l,T.Char.DOCUMENT_END);){switch(u[l]){case"\n":if(c){var d=new n.default;(l=d.parse({src:u},l))<u.length&&this.contents.push(d)}else l+=1,c=!0;f=l;break;case"#":var h=new r.default;l=h.parse({src:u},l),this.contents.push(h),c=!1;break;default:var p=o.default.endOfIndent(u,l),v=s({atLineStart:c,indent:-1,inFlow:!1,inCollection:!1,lineStart:f,parent:this},p);if(!v)return this.valueRange.end=p;this.contents.push(v),l=v.range.end,c=!1;var g=(0,D.grabCollectionEndComments)(v);g&&Array.prototype.push.apply(this.contents,g)}l=t.startCommentOrEndBlankLine(u,l)}if(this.valueRange.end=l,u[l]&&(this.documentEndMarker=new i.default(l,l+3),u[l+=3])){if("#"===u[l=o.default.endOfWhiteSpace(u,l)]){var m=new r.default;l=m.parse({src:u},l),this.contents.push(m)}switch(u[l]){case"\n":l+=1;break;case void 0:break;default:this.error=new x.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return l}},{key:"parse",value:function(e,t){e.root=this,this.context=e;var n=65279===e.src.charCodeAt(t)?t+1:t;return n=this.parseDirectives(n),n=this.parseContents(n)}},{key:"setOrigRanges",value:function(e,n){return n=m(c(t.prototype),"setOrigRanges",this).call(this,e,n),this.directives.forEach((function(t){n=t.setOrigRanges(e,n)})),this.directivesEndMarker&&(n=this.directivesEndMarker.setOrigRange(e,n)),this.contents.forEach((function(t){n=t.setOrigRanges(e,n)})),this.documentEndMarker&&(n=this.documentEndMarker.setOrigRange(e,n)),n}},{key:"toString",value:function(){var e=this.contents,t=this.directives,n=this.value;if(null!=n)return n;var r=t.join("");return e.length>0&&((t.length>0||e[0].type===T.Type.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}]),t}(o.default);t.default=d}));a(Y);var F=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(N),r=a(C);function a(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(){return s(this,t),g(this,c(t).apply(this,arguments))}return l(t,e),f(t,[{key:"parse",value:function(e,t){this.context=e;var a=e.src,o=n.default.endOfIdentifier(a,t+1);return this.valueRange=new r.default(t+1,o),o=n.default.endOfWhiteSpace(a,o),o=this.parseComment(o)}}]),t}(n.default);t.default=o}));a(F);var U=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Chomp=void 0;var n=a(N),r=a(C);function a(e){return e&&e.__esModule?e:{default:e}}var o={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};t.Chomp=o;var i=function(e){function t(e,n){var r;return s(this,t),(r=g(this,c(t).call(this,e,n))).blockIndent=null,r.chomping=o.CLIP,r.header=null,r}return l(t,e),f(t,[{key:"parseBlockHeader",value:function(e){for(var t=this.context.src,n=e+1,a="";;){var i=t[n];switch(i){case"-":this.chomping=o.STRIP;break;case"+":this.chomping=o.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":a+=i;break;default:return this.blockIndent=Number(a)||null,this.header=new r.default(e,n),n}n+=1}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,a=t.indent,i=t.src,s=e,u=e,f=this.blockIndent?a+this.blockIndent-1:a,l=1,c=i[s];"\n"===c&&(s+=1,!n.default.atDocumentBoundary(i,s));c=i[s]){var d=n.default.endOfBlockIndent(i,f,s);if(null===d)break;if(!this.blockIndent){var h=d-(s+a);if("\n"!==i[d]){if(h<l){s-=1;break}this.blockIndent=h,f=a+this.blockIndent-1}else h>l&&(l=h)}s="\n"===i[d]?d:u=n.default.endOfLine(i,d)}return this.chomping!==o.KEEP&&(s=i[u]?u+1:u),this.valueRange=new r.default(e+1,s),s}},{key:"parse",value:function(e,t){this.context=e;var r=e.src,a=this.parseBlockHeader(t);return a=n.default.endOfWhiteSpace(r,a),a=this.parseComment(a),a=this.parseBlockValue(a)}},{key:"setOrigRanges",value:function(e,n){return n=m(c(t.prototype),"setOrigRanges",this).call(this,e,n),this.header?this.header.setOrigRange(e,n):n}},{key:"includesTrailingLines",get:function(){return this.chomping===o.KEEP}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,r=e.end,a=this.context,i=a.indent,s=a.src;if(this.valueRange.isEmpty())return"";for(var u=null,f=s[r-1];"\n"===f||"\t"===f||" "===f;){if((r-=1)<=t){if(this.chomping===o.KEEP)break;return""}"\n"===f&&(u=r),f=s[r-1]}var l=r+1;u&&(this.chomping===o.KEEP?(l=u,r=this.valueRange.end):r=u);for(var c=i+this.blockIndent,d=this.type===T.Type.BLOCK_FOLDED,h=!0,p="",v="",g=!1,m=t;m<r;++m){for(var y=0;y<c&&" "===s[m];++y)m+=1;var _=s[m];if("\n"===_)"\n"===v?p+="\n":v="\n";else{var b=n.default.endOfLine(s,m),w=s.slice(m,b);m=b,d&&(" "===_||"\t"===_)&&m<l?(" "===v?v="\n":g||h||"\n"!==v||(v="\n\n"),p+=v+w,v=b<r&&s[b]||"",g=!0):(p+=v+w,v=d&&m<l?" ":"\n",g=!1),h&&""!==w&&(h=!1)}}return this.chomping===o.STRIP?p:p+"\n"}}]),t}(n.default);t.default=i}));a(U);U.Chomp;var K=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(R),r=i(B),a=i(N),o=i(C);function i(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e,n){var r;return s(this,t),(r=g(this,c(t).call(this,e,n))).items=null,r}return l(t,e),f(t,[{key:"prevNodeIsJsonLike",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items.length,t=this.items[e-1];return!!t&&(t.jsonLike||t.type===T.Type.COMMENT&&this.nodeIsJsonLike(e-1))}},{key:"parse",value:function(e,t){this.context=e;var i=e.parseNode,s=e.src,u=e.indent,f=e.lineStart,l=s[t];this.items=[{char:l,offset:t}];var c=a.default.endOfWhiteSpace(s,t+1);for(l=s[c];l&&"]"!==l&&"}"!==l;){switch(l){case"\n":if(f=c+1,"\n"===s[a.default.endOfWhiteSpace(s,f)]){var d=new n.default;f=d.parse({src:s},f),this.items.push(d)}if((c=a.default.endOfIndent(s,f))<=f+u&&(l=s[c],c<f+u||"]"!==l&&"}"!==l)){this.error=new x.YAMLSemanticError(this,"Insufficient indentation in flow collection")}break;case",":this.items.push({char:l,offset:c}),c+=1;break;case"#":var h=new r.default;c=h.parse({src:s},c),this.items.push(h);break;case"?":case":":var p=s[c+1];if("\n"===p||"\t"===p||" "===p||","===p||":"===l&&this.prevNodeIsJsonLike()){this.items.push({char:l,offset:c}),c+=1;break}default:var v=i({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:f,parent:this},c);if(!v)return this.valueRange=new o.default(t,c),c;this.items.push(v),c=a.default.normalizeOffset(s,v.range.end)}l=s[c=a.default.endOfWhiteSpace(s,c)]}return this.valueRange=new o.default(t,c+1),l&&(this.items.push({char:l,offset:c}),c=a.default.endOfWhiteSpace(s,c+1),c=this.parseComment(c)),c}},{key:"setOrigRanges",value:function(e,n){return n=m(c(t.prototype),"setOrigRanges",this).call(this,e,n),this.items.forEach((function(t){if(t instanceof a.default)n=t.setOrigRanges(e,n);else if(0===e.length)t.origOffset=t.offset;else{for(var r=n;r<e.length&&!(e[r]>t.offset);)++r;t.origOffset=t.offset+r,n=r}})),n}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,r=this.value;if(null!=r)return r;var o=t.filter((function(e){return e instanceof a.default})),i="",s=n.start;return o.forEach((function(t){var n=e.slice(s,t.range.start);s=t.range.end,"\n"===(i+=n+String(t))[i.length-1]&&"\n"!==e[s-1]&&"\n"===e[s]&&(s+=1)})),i+=e.slice(s,n.end),a.default.addStringTerminator(e,n.end,i)}}]),t}(a.default);t.default=u}));a(K);var W=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(N),r=a(C);function a(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(){return s(this,t),g(this,c(t).apply(this,arguments))}return l(t,e),f(t,[{key:"parseBlockValue",value:function(e){for(var r=this.context,a=r.indent,o=r.inFlow,i=r.src,s=e,u=e,f=i[s];"\n"===f&&!n.default.atDocumentBoundary(i,s+1);f=i[s]){var l=n.default.endOfBlockIndent(i,a,s+1);if(null===l||"#"===i[l])break;s="\n"===i[l]?l:u=t.endOfLine(i,l,o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=u,u}},{key:"parse",value:function(e,a){this.context=e;var o=e.inFlow,i=e.src,s=a,u=i[s];return u&&"#"!==u&&"\n"!==u&&(s=t.endOfLine(i,a,o)),this.valueRange=new r.default(a,s),s=n.default.endOfWhiteSpace(i,s),s=this.parseComment(s),this.hasComment&&!this.valueRange.isEmpty()||(s=this.parseBlockValue(s)),s}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var e=this.valueRange,t=e.start,r=e.end,a=this.context.src,o=a[r-1];t<r&&("\n"===o||"\t"===o||" "===o);)o=a[--r-1];for(o=a[t];t<r&&("\n"===o||"\t"===o||" "===o);)o=a[++t];for(var i="",s=t;s<r;++s){var u=a[s];if("\n"===u){var f=n.default.foldNewline(a,s,-1);i+=f.fold,s=f.offset}else if(" "===u||"\t"===u){for(var l=s,c=a[s+1];s<r&&(" "===c||"\t"===c);)c=a[(s+=1)+1];"\n"!==c&&(i+=s>l?a.slice(l,s+1):u)}else i+=u}return i}}],[{key:"endOfLine",value:function(e,t,n){for(var r=e[t],a=t;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){var o=e[a+1];if(":"===r&&(!o||"\n"===o||"\t"===o||" "===o||n&&","===o))break;if((" "===r||"\t"===r)&&"#"===o)break;a+=1,r=o}return a}}]),t}(n.default);t.default=o}));a(W);var Q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(N),r=a(C);function a(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(){return s(this,t),g(this,c(t).apply(this,arguments))}return l(t,e),f(t,[{key:"parseCharCode",value:function(e,t,n){var r=this.context.src,a=r.substr(e,t),o=a.length===t&&/^[0-9a-fA-F]+$/.test(a)?parseInt(a,16):NaN;return isNaN(o)?(n.push(new x.YAMLSyntaxError(this,"Invalid escape sequence ".concat(r.substr(e-2,t+2)))),r.substr(e-2,t+2)):String.fromCodePoint(o)}},{key:"parse",value:function(e,a){this.context=e;var o=e.src,i=t.endOfQuote(o,a+1);return this.valueRange=new r.default(a,i),i=n.default.endOfWhiteSpace(o,i),i=this.parseComment(i)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,r=t.start,a=t.end,o=this.context,i=o.indent,s=o.src;'"'!==s[a-1]&&e.push(new x.YAMLSyntaxError(this,'Missing closing "quote'));for(var u="",f=r+1;f<a-1;++f){var l=s[f];if("\n"===l){n.default.atDocumentBoundary(s,f+1)&&e.push(new x.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));var c=n.default.foldNewline(s,f,i);u+=c.fold,f=c.offset,c.error&&e.push(new x.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===l)switch(s[f+=1]){case"0":u+="\0";break;case"a":u+="";break;case"b":u+="\b";break;case"e":u+="";break;case"f":u+="\f";break;case"n":u+="\n";break;case"r":u+="\r";break;case"t":u+="\t";break;case"v":u+="\v";break;case"N":u+="…";break;case"_":u+=" ";break;case"L":u+="\u2028";break;case"P":u+="\u2029";break;case" ":u+=" ";break;case'"':u+='"';break;case"/":u+="/";break;case"\\":u+="\\";break;case"\t":u+="\t";break;case"x":u+=this.parseCharCode(f+1,2,e),f+=2;break;case"u":u+=this.parseCharCode(f+1,4,e),f+=4;break;case"U":u+=this.parseCharCode(f+1,8,e),f+=8;break;case"\n":for(;" "===s[f+1]||"\t"===s[f+1];)f+=1;break;default:e.push(new x.YAMLSyntaxError(this,"Invalid escape sequence ".concat(s.substr(f-1,2)))),u+="\\"+s[f]}else if(" "===l||"\t"===l){for(var d=f,h=s[f+1];" "===h||"\t"===h;)h=s[(f+=1)+1];"\n"!==h&&(u+=f>d?s.slice(d,f+1):l)}else u+=l}return e.length>0?{errors:e,str:u}:u}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}}]),t}(n.default);t.default=o}));a(Q);var V=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(N),r=a(C);function a(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(){return s(this,t),g(this,c(t).apply(this,arguments))}return l(t,e),f(t,[{key:"parse",value:function(e,a){this.context=e;var o=e.src,i=t.endOfQuote(o,a+1);return this.valueRange=new r.default(a,i),i=n.default.endOfWhiteSpace(o,i),i=this.parseComment(i)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,r=t.start,a=t.end,o=this.context,i=o.indent,s=o.src;"'"!==s[a-1]&&e.push(new x.YAMLSyntaxError(this,"Missing closing 'quote"));for(var u="",f=r+1;f<a-1;++f){var l=s[f];if("\n"===l){n.default.atDocumentBoundary(s,f+1)&&e.push(new x.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));var c=n.default.foldNewline(s,f,i);u+=c.fold,f=c.offset,c.error&&e.push(new x.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===l)u+=l,"'"!==s[f+=1]&&e.push(new x.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(" "===l||"\t"===l){for(var d=f,h=s[f+1];" "===h||"\t"===h;)h=s[(f+=1)+1];"\n"!==h&&(u+=f>d?s.slice(d,f+1):l)}else u+=l}return e.length>0?{errors:e,str:u}:u}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}}]),t}(n.default);t.default=o}));a(V);var $=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=p(F),r=p(U),a=p(D),o=p(I),i=p(K),u=p(N),l=p(W),c=p(Q),d=p(V),h=p(C);function p(e){return e&&e.__esModule?e:{default:e}}var v=function(){function e(){var t,f,p,v=this,g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},y=m.atLineStart,_=m.inCollection,b=m.inFlow,w=m.indent,E=m.lineStart,O=m.parent;s(this,e),p=function(t,s){if(u.default.atDocumentBoundary(v.src,s))return null;var f,p=new e(v,t),g=p.parseProps(s),m=g.props,y=g.type,_=g.valueStart;switch(y){case T.Type.ALIAS:f=new n.default(y,m);break;case T.Type.BLOCK_FOLDED:case T.Type.BLOCK_LITERAL:f=new r.default(y,m);break;case T.Type.FLOW_MAP:case T.Type.FLOW_SEQ:f=new i.default(y,m);break;case T.Type.MAP_KEY:case T.Type.MAP_VALUE:case T.Type.SEQ_ITEM:f=new o.default(y,m);break;case T.Type.COMMENT:case T.Type.PLAIN:f=new l.default(y,m);break;case T.Type.QUOTE_DOUBLE:f=new c.default(y,m);break;case T.Type.QUOTE_SINGLE:f=new d.default(y,m);break;default:return f.error=new x.YAMLSyntaxError(f,"Unknown node type: ".concat(JSON.stringify(y))),f.range=new h.default(s,s+1),f}var b=f.parse(p,_);if(f.range=new h.default(s,b),b<=s&&(f.error=new Error("Node#parse consumed no characters"),f.error.parseEnd=b,f.error.source=f,f.range.end=s+1),p.nodeStartsCollection(f)){f.error||p.atLineStart||p.parent.type!==T.Type.DOCUMENT||(f.error=new x.YAMLSyntaxError(f,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var w=new a.default(f);return b=w.parse(new e(p),b),w.range=new h.default(s,b),w}return f},(f="parseNode")in(t=this)?Object.defineProperty(t,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):t[f]=p,this.atLineStart=null!=y?y:g.atLineStart||!1,this.inCollection=null!=_?_:g.inCollection||!1,this.inFlow=null!=b?b:g.inFlow||!1,this.indent=null!=w?w:g.indent,this.lineStart=null!=E?E:g.lineStart,this.parent=null!=O?O:g.parent||{},this.root=g.root,this.src=g.src}return f(e,null,[{key:"parseType",value:function(e,t,n){switch(e[t]){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!n&&u.default.atBlank(e,t+1,!0)?T.Type.MAP_KEY:T.Type.PLAIN;case":":return!n&&u.default.atBlank(e,t+1,!0)?T.Type.MAP_VALUE:T.Type.PLAIN;case"-":return!n&&u.default.atBlank(e,t+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}}}]),f(e,[{key:"nodeStartsCollection",value:function(e){var t=this.inCollection,n=this.inFlow,r=this.src;if(t||n)return!1;if(e instanceof o.default)return!0;var a=e.range.end;return"\n"!==r[a]&&"\n"!==r[a-1]&&":"===r[a=u.default.endOfWhiteSpace(r,a)]}},{key:"parseProps",value:function(t){for(var n=this.inFlow,r=this.parent,a=this.src,o=[],i=!1,s=a[t=u.default.endOfWhiteSpace(a,t)];s===T.Char.ANCHOR||s===T.Char.COMMENT||s===T.Char.TAG||"\n"===s;){if("\n"===s){var f=t+1,l=u.default.endOfIndent(a,f),c=l-(f+this.indent),d=r.type===T.Type.SEQ_ITEM&&r.context.atLineStart;if(!u.default.nextNodeIsIndented(a[l],c,!d))break;this.atLineStart=!0,this.lineStart=f,i=!1,t=l}else if(s===T.Char.COMMENT){var p=u.default.endOfLine(a,t+1);o.push(new h.default(t,p)),t=p}else{var v=u.default.endOfIdentifier(a,t+1);s===T.Char.TAG&&","===a[v]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(a.slice(t+1,v+13))&&(v=u.default.endOfIdentifier(a,v+5)),o.push(new h.default(t,v)),i=!0,t=u.default.endOfWhiteSpace(a,v)}s=a[t]}return i&&":"===s&&u.default.atBlank(a,t+1,!0)&&(t-=1),{props:o,type:e.parseType(a,t,n),valueStart:t}}},{key:"pretty",get:function(){var e={start:"".concat(this.lineStart," + ").concat(this.indent),in:[],parent:this.parent.type};return this.atLineStart||(e.start+=" + N"),this.inCollection&&e.in.push("collection"),this.inFlow&&e.in.push("flow"),e}}]),e}();t.default=v}));a($);var q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,(function(e,n){return e.length>1&&t.push(n),"\n"})));var a=[],o=0;do{var i=new n.default,s=new r.default({src:e});o=i.parse(s,o),a.push(i)}while(o<e.length);return a.setOrigRanges=function(){if(0===t.length)return!1;for(var e=1;e<t.length;++e)t[e]-=e;for(var n=0,r=0;r<a.length;++r)n=a[r].setOrigRanges(t,n);return t.splice(0,t.length),!0},a.toString=function(){return a.join("...\n")},a};var n=a(Y),r=a($);function a(e){return e&&e.__esModule?e:{default:e}}}));a(q);var J=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addCommentBefore=function(e,t,n){if(!n)return e;var r=n.replace(/[\s\S]^/gm,"$&".concat(t,"#"));return"#".concat(r,"\n").concat(t).concat(e)},t.default=function(e,t,n){return n?-1===n.indexOf("\n")?"".concat(e," #").concat(n):"".concat(e,"\n")+n.replace(/^/gm,"".concat(t||"","#")):e}}));a(J);J.addCommentBefore;var G=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,r){if(Array.isArray(t))return t.map((function(t,n){return e(t,String(n),r)}));if(t&&"function"==typeof t.toJSON){var a=r&&r.anchors&&r.anchors.find((function(e){return e.node===t}));a&&(r.onCreate=function(e){a.res=e,delete r.onCreate});var o=t.toJSON(n,r);return a&&r.onCreate&&r.onCreate(o),o}return t}}));a(G);var H=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function e(){s(this,e)}}));a(H);var z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(G);function r(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(e){var n;return s(this,t),(n=g(this,c(t).call(this))).value=e,n}return l(t,e),f(t,[{key:"toJSON",value:function(e,t){return t&&t.keep?this.value:(0,n.default)(this.value,e,t)}},{key:"toString",value:function(){return String(this.value)}}]),t}(r(H).default);t.default=a}));a(z);var Z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=d(J),r=d(G),a=d(X),o=d(H),u=d(z);function d(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return s(this,t),(n=g(this,c(t).call(this))).key=e,n.value=r,n.type="PAIR",n}return l(t,e),f(t,[{key:"addToJSMap",value:function(e,t){var n=(0,r.default)(this.key,"",e);if(t instanceof Map){var a=(0,r.default)(this.value,n,e);t.set(n,a)}else if(t instanceof Set)t.add(n);else{var s=function(e,t,n){return null===t?"":"object"!==i(t)?String(t):e instanceof o.default&&n&&n.doc?e.toString({anchors:{},doc:n.doc,indent:"",inFlow:!0,inStringifyKey:!0}):JSON.stringify(t)}(this.key,n,e);t[s]=(0,r.default)(this.value,s,e)}return t}},{key:"toJSON",value:function(e,t){var n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}},{key:"toString",value:function(e,t,r){if(!e||!e.doc)return JSON.stringify(this);var s=e.doc.options.simpleKeys,u=this.key,f=this.value,l=u instanceof o.default&&u.comment;if(s){if(l)throw new Error("With simple keys, key nodes cannot have comments");if(u instanceof a.default){throw new Error("With simple keys, collection cannot be used as a key value")}}var c=!s&&(!u||l||u instanceof a.default||u.type===T.Type.BLOCK_FOLDED||u.type===T.Type.BLOCK_LITERAL),d=e,h=d.doc,p=d.indent;e=Object.assign({},e,{implicitKey:!c,indent:p+" "});var v=!1,g=h.schema.stringify(u,e,(function(){return l=null}),(function(){return v=!0}));if(g=(0,n.default)(g,e.indent,l),e.allNullValues&&!s)return this.comment?(g=(0,n.default)(g,e.indent,this.comment),t&&t()):v&&!l&&r&&r(),e.inFlow?g:"? ".concat(g);g=c?"? ".concat(g,"\n").concat(p,":"):"".concat(g,":"),this.comment&&(g=(0,n.default)(g,e.indent,this.comment),t&&t());var m="",y=null;if(f instanceof o.default){if(f.spaceBefore&&(m="\n"),f.commentBefore){var _=f.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));m+="\n".concat(_)}y=f.comment}else f&&"object"===i(f)&&(f=h.schema.createNode(f,!0));e.implicitKey=!1,v=!1;var b=h.schema.stringify(f,e,(function(){return y=null}),(function(){return v=!0})),w=" ";if(m||this.comment)w="".concat(m,"\n").concat(e.indent);else if(!c&&f instanceof a.default){("["===b[0]||"{"===b[0])&&!b.includes("\n")||(w="\n".concat(e.indent))}return v&&!y&&r&&r(),(0,n.default)(g+w+b,e.indent,y)}},{key:"commentBefore",get:function(){return this.key&&this.key.commentBefore},set:function(e){null==this.key&&(this.key=new u.default(null)),this.key.commentBefore=e}}]),t}(o.default);t.default=h}));a(Z);var X=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isEmptyPath=void 0;var n=u(J),r=u(H),a=u(Z),o=u(z);function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){return null==e||"object"===i(e)&&e[Symbol.iterator]().next().done};t.isEmptyPath=h;var p=function(e){function t(){var e,n;s(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return d(v(n=g(this,(e=c(t)).call.apply(e,[this].concat(a)))),"items",[]),n}return l(t,e),f(t,[{key:"addIn",value:function(e,n){if(h(e))this.add(n);else{var r=_(e),a=r[0],o=r.slice(1),i=this.get(a,!0);if(!(i instanceof t))throw new Error("Expected YAML collection at ".concat(a,". Remaining path: ").concat(o));i.addIn(o,n)}}},{key:"deleteIn",value:function(e){var n=_(e),r=n[0],a=n.slice(1);if(0===a.length)return this.delete(r);var o=this.get(r,!0);if(o instanceof t)return o.deleteIn(a);throw new Error("Expected YAML collection at ".concat(r,". Remaining path: ").concat(a))}},{key:"getIn",value:function(e,n){var r=_(e),a=r[0],i=r.slice(1),s=this.get(a,!0);return 0===i.length?!n&&s instanceof o.default?s.value:s:s instanceof t?s.getIn(i,n):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every((function(e){if(!(e instanceof a.default))return!1;var t=e.value;return null==t||t instanceof o.default&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}},{key:"hasIn",value:function(e){var n=_(e),r=n[0],a=n.slice(1);if(0===a.length)return this.has(r);var o=this.get(r,!0);return o instanceof t&&o.hasIn(a)}},{key:"setIn",value:function(e,n){var r=_(e),a=r[0],o=r.slice(1);if(0===o.length)this.set(a,n);else{var i=this.get(a,!0);if(!(i instanceof t))throw new Error("Expected YAML collection at ".concat(a,". Remaining path: ").concat(o));i.setIn(o,n)}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(e,r,a,o){var i=this,s=r.blockItem,u=r.flowChars,f=r.isMap,l=r.itemIndent,c=e,d=c.doc,h=c.indent,p=this.type&&"FLOW"===this.type.substr(0,4)||e.inFlow;p&&(l+=" ");var v=f&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:v,indent:l,inFlow:p,type:null});var g,m=!1,y=!1,_=this.items.reduce((function(t,r,a){var o;r&&(!m&&r.spaceBefore&&t.push({type:"comment",str:""}),r.commentBefore&&r.commentBefore.match(/^.*$/gm).forEach((function(e){t.push({type:"comment",str:"#".concat(e)})})),r.comment&&(o=r.comment),p&&(!m&&r.spaceBefore||r.commentBefore||r.comment||r.key&&(r.key.commentBefore||r.key.comment)||r.value&&(r.value.commentBefore||r.value.comment))&&(y=!0)),m=!1;var s=d.schema.stringify(r,e,(function(){return o=null}),(function(){return m=!0}));return p&&!y&&s.includes("\n")&&(y=!0),p&&a<i.items.length-1&&(s+=","),s=(0,n.default)(s,l,o),m&&(o||p)&&(m=!1),t.push({type:"item",str:s}),t}),[]);if(0===_.length)g=u.start+u.end;else if(p){var b=u.start,w=u.end,E=_.map((function(e){return e.str}));if(y||E.reduce((function(e,t){return e+t.length+2}),2)>t.maxFlowStringSingleLineLength){g=b;var O=!0,M=!1,S=void 0;try{for(var A,k=E[Symbol.iterator]();!(O=(A=k.next()).done);O=!0){var L=A.value;g+=L?"\n ".concat(h).concat(L):"\n"}}catch(e){M=!0,S=e}finally{try{O||null==k.return||k.return()}finally{if(M)throw S}}g+="\n".concat(h).concat(w)}else g="".concat(b," ").concat(E.join(" ")," ").concat(w)}else{var T=_.map(s);g=T.shift();var P=!0,C=!1,N=void 0;try{for(var x,R=T[Symbol.iterator]();!(P=(x=R.next()).done);P=!0){var I=x.value;g+=I?"\n".concat(h).concat(I):"\n"}}catch(e){C=!0,N=e}finally{try{P||null==R.return||R.return()}finally{if(C)throw N}}}return this.comment?(g+="\n"+this.comment.replace(/^/gm,"".concat(h,"#")),a&&a()):m&&o&&o(),g}}]),t}(r.default);t.default=p,d(p,"maxFlowStringSingleLineLength",60)}));a(X);X.isEmptyPath;var ee=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(G),r=i(X),a=i(H),o=i(Z);function i(e){return e&&e.__esModule?e:{default:e}}var u,d,h,p=function e(t,n){if(t instanceof v){var a=n.find((function(e){return e.node===t.source}));return a.count*a.aliasCount}if(t instanceof r.default){var i=0,s=!0,u=!1,f=void 0;try{for(var l,c=t.items[Symbol.iterator]();!(s=(l=c.next()).done);s=!0){var d=e(l.value,n);d>i&&(i=d)}}catch(e){u=!0,f=e}finally{try{s||null==c.return||c.return()}finally{if(u)throw f}}return i}if(t instanceof o.default){var h=e(t.key,n),p=e(t.value,n);return Math.max(h,p)}return 1},v=function(e){function t(e){var n;return s(this,t),(n=g(this,c(t).call(this))).source=e,n.type=T.Type.ALIAS,n}return l(t,e),f(t,null,[{key:"stringify",value:function(e,t){var n=e.range,r=e.source,a=t.anchors,o=t.doc,i=t.implicitKey,s=t.inStringifyKey,u=Object.keys(a).find((function(e){return a[e]===r}));if(!u&&s&&(u=o.anchors.getName(r)||o.anchors.newName()),u)return"*".concat(u).concat(i?" ":"");var f=o.anchors.getName(r)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(f," [").concat(n,"]"))}}]),f(t,[{key:"toJSON",value:function(e,t){var r=this;if(!t)return(0,n.default)(this.source,e,t);var a=t.anchors,o=t.maxAliasCount,i=a.find((function(e){return e.node===r.source}));if(!i||void 0===i.res){var s="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new x.YAMLReferenceError(this.cstNode,s):new ReferenceError(s)}if(o>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=p(this.source,a)),i.count*i.aliasCount>o)){var u="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new x.YAMLReferenceError(this.cstNode,u):new ReferenceError(u)}return i.res}},{key:"toString",value:function(e){return t.stringify(this,e)}},{key:"tag",set:function(e){throw new Error("Alias nodes cannot have tags")}}]),t}(a.default);t.default=v,h=!0,(d="default")in(u=v)?Object.defineProperty(u,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):u[d]=h}));a(ee);var te=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.findPair=i,t.default=void 0;var n=o(X),r=o(Z),a=o(z);function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=t instanceof a.default?t.value:t,o=!0,i=!1,s=void 0;try{for(var u,f=e[Symbol.iterator]();!(o=(u=f.next()).done);o=!0){var l=u.value;if(l instanceof r.default){if(l.key===t||l.key===n)return l;if(l.key&&l.key.value===n)return l}}}catch(e){i=!0,s=e}finally{try{o||null==f.return||f.return()}finally{if(i)throw s}}}var u=function(e){function t(){return s(this,t),g(this,c(t).apply(this,arguments))}return l(t,e),f(t,[{key:"add",value:function(e){if(e?e instanceof r.default||(e=new r.default(e.key||e,e.value)):e=new r.default(e),i(this.items,e.key))throw new Error("Key ".concat(e.key," already set"));this.items.push(e)}},{key:"delete",value:function(e){var t=i(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}},{key:"get",value:function(e,t){var n=i(this.items,e),r=n&&n.value;return!t&&r instanceof a.default?r.value:r}},{key:"has",value:function(e){return!!i(this.items,e)}},{key:"set",value:function(e,t){var n=i(this.items,e);n?n.value=t:this.items.push(new r.default(e,t))}},{key:"toJSON",value:function(e,t,n){var r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);var a=!0,o=!1,i=void 0;try{for(var s,u=this.items[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){s.value.addToJSMap(t,r)}}catch(e){o=!0,i=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw i}}return r}},{key:"toString",value:function(e,n,a){if(!e)return JSON.stringify(this);var o=!0,i=!1,s=void 0;try{for(var u,f=this.items[Symbol.iterator]();!(o=(u=f.next()).done);o=!0){var l=u.value;if(!(l instanceof r.default))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(l)," instead"))}}catch(e){i=!0,s=e}finally{try{o||null==f.return||f.return()}finally{if(i)throw s}}return m(c(t.prototype),"toString",this).call(this,e,{blockItem:function(e){return e.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,a)}}]),t}(n.default);t.default=u}));a(te);te.findPair;var ne=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(G),r=o(X),a=o(z);function o(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e instanceof a.default?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}var u=function(e){function t(){return s(this,t),g(this,c(t).apply(this,arguments))}return l(t,e),f(t,[{key:"add",value:function(e){this.items.push(e)}},{key:"delete",value:function(e){var t=i(e);return"number"==typeof t&&this.items.splice(t,1).length>0}},{key:"get",value:function(e,t){var n=i(e);if("number"==typeof n){var r=this.items[n];return!t&&r instanceof a.default?r.value:r}}},{key:"has",value:function(e){var t=i(e);return"number"==typeof t&&t<this.items.length}},{key:"set",value:function(e,t){var n=i(e);if("number"!=typeof n)throw new Error("Expected a valid index, not ".concat(e,"."));this.items[n]=t}},{key:"toJSON",value:function(e,t){var r=[];t&&t.onCreate&&t.onCreate(r);var a=0,o=!0,i=!1,s=void 0;try{for(var u,f=this.items[Symbol.iterator]();!(o=(u=f.next()).done);o=!0){var l=u.value;r.push((0,n.default)(l,String(a++),t))}}catch(e){i=!0,s=e}finally{try{o||null==f.return||f.return()}finally{if(i)throw s}}return r}},{key:"toString",value:function(e,n,r){return e?m(c(t.prototype),"toString",this).call(this,e,{blockItem:function(e){return"comment"===e.type?e.str:"- ".concat(e.str)},flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},n,r):JSON.stringify(this)}}]),t}(r.default);t.default=u}));a(ne);var re=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MERGE_KEY=void 0;var n=i(te),r=i(Z),a=i(z),o=i(ne);function i(e){return e&&e.__esModule?e:{default:e}}var u="<<";t.MERGE_KEY=u;var d=function(e){function t(e){var n;if(s(this,t),e instanceof r.default){var i=e.value;i instanceof o.default||((i=new o.default).items.push(e.value),i.range=e.value.range),(n=g(this,c(t).call(this,e.key,i))).range=e.range}else n=g(this,c(t).call(this,new a.default(u),new o.default));return n.type="MERGE_PAIR",g(n)}return l(t,e),f(t,[{key:"addToJSMap",value:function(e,t){var r=!0,a=!1,o=void 0;try{for(var i,s=this.value.items[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var u=i.value.source;if(!(u instanceof n.default))throw new Error("Merge sources must be maps");var f=u.toJSON(null,e,Map),l=!0,c=!1,d=void 0;try{for(var h,p=f[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var v=y(h.value,2),g=v[0],m=v[1];t instanceof Map?t.has(g)||t.set(g,m):t instanceof Set?t.add(g):Object.prototype.hasOwnProperty.call(t,g)||(t[g]=m)}}catch(e){c=!0,d=e}finally{try{l||null==p.return||p.return()}finally{if(c)throw d}}}}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return t}},{key:"toString",value:function(e,n){var r=this.value;if(r.items.length>1)return m(c(t.prototype),"toString",this).call(this,e,n);this.value=r.items[0];var a=m(c(t.prototype),"toString",this).call(this,e,n);return this.value=r,a}}]),t}(r.default);t.default=d}));a(re);re.MERGE_KEY;var ae=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(ee),r=u(te),a=u(re),o=u(z),i=u(ne);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){var n,r,a;s(this,e),a={},(r="map")in(n=this)?Object.defineProperty(n,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[r]=a,this.prefix=t}return f(e,null,[{key:"validAnchorNode",value:function(e){return e instanceof o.default||e instanceof i.default||e instanceof r.default}}]),f(e,[{key:"createAlias",value:function(e,t){return this.setAnchor(e,t),new n.default(e)}},{key:"createMergePair",value:function(){for(var e=this,t=new a.default,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return t.value.items=i.map((function(t){if(t instanceof n.default){if(t.source instanceof r.default)return t}else if(t instanceof r.default)return e.createAlias(t);throw new Error("Merge sources must be Map nodes or their Aliases")})),t}},{key:"getName",value:function(e){var t=this.map;return Object.keys(t).find((function(n){return t[n]===e}))}},{key:"getNode",value:function(e){return this.map[e]}},{key:"newName",value:function(e){e||(e=this.prefix);for(var t=Object.keys(this.map),n=1;;++n){var r="".concat(e).concat(n);if(-1===t.indexOf(r))return r}}},{key:"resolveNodes",value:function(){var e=this.map,t=this._cstAliases;Object.keys(e).forEach((function(t){e[t]=e[t].resolved})),t.forEach((function(e){e.source=e.source.resolved})),delete this._cstAliases}},{key:"setAnchor",value:function(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");var r=this.map,a=t&&Object.keys(r).find((function(e){return r[e]===t}));if(a){if(!n)return a;a!==n&&(delete r[a],r[n]=t)}else{if(!n){if(!t)return null;n=this.newName()}r[n]=t}return n}}]),e}();t.default=l}));a(ae);var oe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(X),r=o(Z),a=o(z);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return Object.keys(function e(t,o){if(t&&"object"===i(t)){var s=t.tag;t instanceof n.default?(s&&(o[s]=!0),t.items.forEach((function(t){return e(t,o)}))):t instanceof r.default?(e(t.key,o),e(t.value,o)):t instanceof a.default&&s&&(o[s]=!0)}return o}(e,{}))}}));a(oe);var ie=o((function(e,t){function n(e,t){if(!r||!r._YAML_SILENCE_WARNINGS){var n=(r&&r.process).emitWarning;n?n(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.warn=n,t.warnFileDeprecation=function(e){if(r&&r._YAML_SILENCE_DEPRECATION_WARNINGS)return;var t=e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");n("The endpoint 'yaml/".concat(t,"' will be removed in a future release."),"DeprecationWarning")},t.warnOptionDeprecation=function(e,t){if(r&&r._YAML_SILENCE_DEPRECATION_WARNINGS)return;if(a[e])return;a[e]=!0;var o="The option '".concat(e,"' will be removed in a future release");n(o+=t?", use '".concat(t,"' instead."):".","DeprecationWarning")};var a={}}));a(ie);ie.warn,ie.warnFileDeprecation,ie.warnOptionDeprecation;var se=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,o,i){var s=i.indentAtStart,u=i.lineWidth,f=void 0===u?80:u,l=i.minContentWidth,c=void 0===l?20:l,d=i.onFold,h=i.onOverflow;if(!f||f<0)return e;var p=Math.max(1+c,1+f-t.length);if(e.length<=p)return e;var v,g=[],m={},y=f-("number"==typeof s?s:t.length),_=void 0,b=void 0,w=!1,E=-1;o===n&&-1!==(E=a(e,E))&&(y=E+p);for(;v=e[E+=1];){if(o===r&&"\\"===v)switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}if("\n"===v)o===n&&(E=a(e,E)),y=E+p,_=void 0;else{if(" "===v&&b&&" "!==b&&"\n"!==b&&"\t"!==b){var O=e[E+1];O&&" "!==O&&"\n"!==O&&"\t"!==O&&(_=E)}if(E>=y)if(_)g.push(_),y=_+p,_=void 0;else if(o===r){for(;" "===b||"\t"===b;)b=v,v=e[E+=1],w=!0;g.push(E-2),m[E-2]=!0,y=E-2+p,_=void 0}else w=!0}b=v}w&&h&&h();if(0===g.length)return e;d&&d();for(var M=e.slice(0,g[0]),S=0;S<g.length;++S){var A=g[S],k=g[S+1]||e.length;o===r&&m[A]&&(M+="".concat(e[A],"\\")),M+="\n".concat(t).concat(e.slice(A+1,k))}return M},t.FOLD_QUOTED=t.FOLD_BLOCK=t.FOLD_FLOW=void 0;t.FOLD_FLOW="flow";var n="block";t.FOLD_BLOCK=n;var r="quoted";t.FOLD_QUOTED=r;var a=function(e,t){for(var n=e[t+1];" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t}}));a(se);se.FOLD_QUOTED,se.FOLD_BLOCK,se.FOLD_FLOW;var ue=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.strOptions=t.nullOptions=t.boolOptions=t.binaryOptions=void 0;var n={defaultType:T.Type.BLOCK_LITERAL,lineWidth:76};t.binaryOptions=n;t.boolOptions={trueStr:"true",falseStr:"false"};t.nullOptions={nullStr:"null"};var r={defaultType:T.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};t.strOptions=r}));a(ue);ue.strOptions,ue.nullOptions,ue.boolOptions,ue.binaryOptions;var fe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyNumber=function(e){var t=e.format,n=e.minFractionDigits,r=e.tag,a=e.value;if(!isFinite(a))return isNaN(a)?".nan":a<0?"-.inf":".inf";var o=JSON.stringify(a);if(!t&&n&&(!r||"tag:yaml.org,2002:float"===r)&&/^\d/.test(o)){var i=o.indexOf(".");i<0&&(i=o.length,o+=".");for(var s=n-(o.length-i-1);s-- >0;)o+="0"}return o},t.stringifyString=function(e,t,i,s){var u=ue.strOptions.defaultType,f=t.implicitKey,l=t.inFlow,c=e,d=c.type,h=c.value;"string"!=typeof h&&(h=String(h),e=Object.assign({},e,{value:h}));var p=function(u){switch(u){case T.Type.BLOCK_FOLDED:case T.Type.BLOCK_LITERAL:return o(e,t,i,s);case T.Type.QUOTE_DOUBLE:return r(h,t);case T.Type.QUOTE_SINGLE:return a(h,t);case T.Type.PLAIN:return function(e,t,i,s){var u=e.comment,f=e.type,l=e.value,c=t.actualString,d=t.implicitKey,h=t.indent,p=t.inFlow,v=t.tags;if(d&&/[\n[\]{},]/.test(l)||p&&/[[\]{},]/.test(l))return r(l,t);if(!l||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(l))return d||p||-1===l.indexOf("\n")?-1!==l.indexOf('"')&&-1===l.indexOf("'")?a(l,t):r(l,t):o(e,t,i,s);if(!d&&!p&&f!==T.Type.PLAIN&&-1!==l.indexOf("\n"))return o(e,t,i,s);var g=l.replace(/\n+/g,"$&\n".concat(h));if(c&&"string"!=typeof v.resolveScalar(g).value)return r(l,t);var m=d?g:(0,n.default)(g,h,n.FOLD_FLOW,ue.strOptions.fold);if(u&&!p&&(-1!==m.indexOf("\n")||-1!==u.indexOf("\n")))return i&&i(),(0,J.addCommentBefore)(m,h,u);return m}(e,t,i,s);default:return null}};d!==T.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(h)?d=T.Type.QUOTE_DOUBLE:!f&&!l||d!==T.Type.BLOCK_FOLDED&&d!==T.Type.BLOCK_LITERAL||(d=T.Type.QUOTE_DOUBLE);var v=p(d);if(null===v&&null===(v=p(u)))throw new Error("Unsupported default string type ".concat(u));return v};var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(se);function r(e,t){var r=t.implicitKey,a=t.indent,o=ue.strOptions.doubleQuoted,i=o.jsonEncoding,s=o.minMultiLineLength,u=JSON.stringify(e);if(i)return u;for(var f="",l=0,c=0,d=u[c];d;d=u[++c])if(" "===d&&"\\"===u[c+1]&&"n"===u[c+2]&&(f+=u.slice(l,c)+"\\ ",l=c+=1,d="\\"),"\\"===d)switch(u[c+1]){case"u":f+=u.slice(l,c);var h=u.substr(c+2,4);switch(h){case"0000":f+="\\0";break;case"0007":f+="\\a";break;case"000b":f+="\\v";break;case"001b":f+="\\e";break;case"0085":f+="\\N";break;case"00a0":f+="\\_";break;case"2028":f+="\\L";break;case"2029":f+="\\P";break;default:"00"===h.substr(0,2)?f+="\\x"+h.substr(2):f+=u.substr(c,6)}l=(c+=5)+1;break;case"n":if(r||'"'===u[c+2]||u.length<s)c+=1;else{for(f+=u.slice(l,c)+"\n\n";"\\"===u[c+2]&&"n"===u[c+3]&&'"'!==u[c+4];)f+="\n",c+=2;f+=a," "===u[c+2]&&(f+="\\"),l=(c+=1)+1}break;default:c+=1}return f=l?f+u.slice(l):u,r?f:(0,n.default)(f,a,n.FOLD_QUOTED,ue.strOptions.fold)}function a(e,t){var a=t.indent,o=t.implicitKey;if(o){if(/\n/.test(e))return r(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return r(e,t);var i="'"+e.replace(/'/g,"''").replace(/\n+/g,"$&\n".concat(a))+"'";return o?i:(0,n.default)(i,a,n.FOLD_FLOW,ue.strOptions.fold)}function o(e,t,a,o){var i=e.comment,s=e.type,u=e.value;if(/\n[\t ]+$/.test(u)||/^\s*$/.test(u))return r(u,t);var f=t.indent||(t.forceBlockIndent?" ":""),l=f?"2":"1",c=s!==T.Type.BLOCK_FOLDED&&(s===T.Type.BLOCK_LITERAL||!function(e,t){var n=e.length;if(n<=t)return!1;for(var r=0,a=0;r<n;++r)if("\n"===e[r]){if(r-a>t)return!0;if(n-(a=r+1)<=t)return!1}return!0}(u,ue.strOptions.fold.lineWidth-f.length)),d=c?"|":">";if(!u)return d+"\n";var h="",p="";if(u=u.replace(/[\n\t ]*$/,(function(e){var t=e.indexOf("\n");return-1===t?d+="-":u!==e&&t===e.length-1||(d+="+",o&&o()),p=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(function(e){-1!==e.indexOf(" ")&&(d+=l);var t=e.match(/ +$/);return t?(h=e.slice(0,-t[0].length),t[0]):(h=e,"")})),p&&(p=p.replace(/\n+(?!\n|$)/g,"$&".concat(f))),h&&(h=h.replace(/\n+/g,"$&".concat(f))),i&&(d+=" #"+i.replace(/ ?[\r\n]+/g," "),a&&a()),!u)return"".concat(d).concat(l,"\n").concat(f).concat(p);if(c)return u=u.replace(/\n+/g,"$&".concat(f)),"".concat(d,"\n").concat(f).concat(h).concat(u).concat(p);u=u.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(f));var v=(0,n.default)("".concat(h).concat(u).concat(p),f,n.FOLD_BLOCK,ue.strOptions.fold);return"".concat(d,"\n").concat(f).concat(v)}}));a(fe);fe.stringifyNumber,fe.stringifyString;var le=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.checkFlowCollectionEnd=function(e,t){var n,r,a;switch(t.type){case T.Type.FLOW_MAP:n="}",r="flow map";break;case T.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:return void e.push(new x.YAMLSemanticError(t,"Not a flow collection!?"))}for(var o=t.items.length-1;o>=0;--o){var i=t.items[o];if(!i||i.type!==T.Type.COMMENT){a=i;break}}if(a&&a.char!==n){var s,u="Expected ".concat(r," to end with ").concat(n);"number"==typeof a.offset?(s=new x.YAMLSemanticError(t,u)).offset=a.offset+1:(s=new x.YAMLSemanticError(a,u),a.range&&a.range.end&&(s.offset=a.range.end-a.range.start)),e.push(s)}},t.checkKeyLength=function(e,t,n,r,a){if(!r||"number"!=typeof a)return;var o=t.items[n],i=o&&o.range&&o.range.start;if(!i)for(var s=n-1;s>=0;--s){var u=t.items[s];if(u&&u.range){i=u.range.end+2*(n-s);break}}if(i>a+1024){var f=String(r).substr(0,8)+"..."+String(r).substr(-8);e.push(new x.YAMLSemanticError(t,'The "'.concat(f,'" key is too long')))}},t.resolveComments=function(e,t){var n=!0,r=!1,a=void 0;try{for(var o,i=t[Symbol.iterator]();!(n=(o=i.next()).done);n=!0){var s=o.value,u=s.afterKey,f=s.before,l=s.comment,c=e.items[f];c?(u&&c.value&&(c=c.value),void 0===l?!u&&c.commentBefore||(c.spaceBefore=!0):c.commentBefore?c.commentBefore+="\n"+l:c.commentBefore=l):void 0!==l&&(e.comment?e.comment+="\n"+l:e.comment=l)}}catch(e){r=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw a}}}}));a(le);le.checkFlowCollectionEnd,le.checkKeyLength,le.resolveComments;var ce=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==T.Type.MAP&&t.type!==T.Type.FLOW_MAP){var u="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new x.YAMLSyntaxError(t,u)),null}var f=t.type===T.Type.FLOW_MAP?function(e,t){for(var n=[],r=[],a=void 0,i=null,s=!1,u="{",f=0;f<t.items.length;++f){(0,le.checkKeyLength)(e.errors,t,f,a,i);var l=t.items[f];if("string"==typeof l.char){var c=l.char,d=l.offset;if("?"===c&&void 0===a&&!s){s=!0,u=":";continue}if(":"===c){if(void 0===a&&(a=null),":"===u){u=",";continue}}else if(s&&(void 0===a&&","!==c&&(a=null),s=!1),void 0!==a&&(r.push(new o.default(a)),a=void 0,i=null,","===c)){u=":";continue}if("}"===c){if(f===t.items.length-1)continue}else if(c===u){u=":";continue}var h="Flow map contains an unexpected ".concat(c),p=new x.YAMLSyntaxError(t,h);p.offset=d,e.errors.push(p)}else l.type===T.Type.BLANK_LINE?n.push({afterKey:!!a,before:r.length}):l.type===T.Type.COMMENT?n.push({afterKey:!!a,before:r.length,comment:l.comment}):void 0===a?(","===u&&e.errors.push(new x.YAMLSemanticError(l,"Separator , missing in flow map")),a=e.resolveNode(l),i=s?null:l.range.start):(","!==u&&e.errors.push(new x.YAMLSemanticError(l,"Indicator : missing in flow map entry")),r.push(new o.default(a,e.resolveNode(l))),a=void 0,s=!1)}(0,le.checkFlowCollectionEnd)(e.errors,t),void 0!==a&&r.push(new o.default(a));return{comments:n,items:r}}(e,t):function(e,t){for(var r=[],a=[],i=void 0,s=null,u=0;u<t.items.length;++u){var f=t.items[u];switch(f.type){case T.Type.BLANK_LINE:r.push({afterKey:!!i,before:a.length});break;case T.Type.COMMENT:r.push({afterKey:!!i,before:a.length,comment:f.comment});break;case T.Type.MAP_KEY:void 0!==i&&a.push(new o.default(i)),f.error&&e.errors.push(f.error),i=e.resolveNode(f.node),s=null;break;case T.Type.MAP_VALUE:if(void 0===i&&(i=null),f.error&&e.errors.push(f.error),!f.context.atLineStart&&f.node&&f.node.type===T.Type.MAP&&!f.node.context.atLineStart){e.errors.push(new x.YAMLSemanticError(f.node,"Nested mappings are not allowed in compact mappings"))}var c=f.node;if(!c&&f.props.length>0){(c=new n.default(T.Type.PLAIN,[])).context={parent:f,src:f.context.src};var d=f.range.start+1;if(c.range={start:d,end:d},c.valueRange={start:d,end:d},"number"==typeof f.range.origStart){var h=f.range.origStart+1;c.range.origStart=c.range.origEnd=h,c.valueRange.origStart=c.valueRange.origEnd=h}}var p=new o.default(i,e.resolveNode(c));l(f,p),a.push(p),(0,le.checkKeyLength)(e.errors,t,u,i,s),i=void 0,s=null;break;default:void 0!==i&&a.push(new o.default(i)),i=e.resolveNode(f),s=f.range.start,f.error&&e.errors.push(f.error);e:for(var v=u+1;;++v){var g=t.items[v];switch(g&&g.type){case T.Type.BLANK_LINE:case T.Type.COMMENT:continue e;case T.Type.MAP_VALUE:break e;default:e.errors.push(new x.YAMLSemanticError(f,"Implicit map keys need to be followed by map values"));break e}}if(f.valueRangeContainsNewline){e.errors.push(new x.YAMLSemanticError(f,"Implicit map keys need to be on a single line"))}}}void 0!==i&&a.push(new o.default(i));return{comments:r,items:a}}(e,t),c=f.comments,d=f.items,h=new r.default;h.items=d,(0,le.resolveComments)(h,c);for(var p=!1,v=0;v<d.length;++v){var g=d[v].key;if(g instanceof s.default&&(p=!0),e.schema.merge&&g&&g.value===a.MERGE_KEY){d[v]=new a.default(d[v]);var m=d[v].value.items,y=null;m.some((function(e){if(e instanceof i.default){var t=e.source.type;return t!==T.Type.MAP&&t!==T.Type.FLOW_MAP&&(y="Merge nodes aliases can only point to maps")}return y="Merge nodes can only have Alias nodes as values"})),y&&e.errors.push(new x.YAMLSemanticError(t,y))}else for(var _=v+1;_<d.length;++_){var b=d[_].key;if(g===b||g&&b&&Object.prototype.hasOwnProperty.call(g,"value")&&g.value===b.value){var w='Map keys must be unique; "'.concat(g,'" is repeated');e.errors.push(new x.YAMLSemanticError(t,w));break}}}if(p&&!e.options.mapAsMap){e.warnings.push(new x.YAMLWarning(t,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this."))}return t.resolved=h,h};var n=u(W),r=u(te),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(re),o=u(Z),i=u(ee),s=u(X);function u(e){return e&&e.__esModule?e:{default:e}}var f=function(e){var t=e.context,n=t.lineStart,r=t.node,a=t.src,o=e.props;if(0===o.length)return!1;var i=o[0].start;if(r&&i>r.valueRange.start)return!1;if(a[i]!==T.Char.COMMENT)return!1;for(var s=n;s<i;++s)if("\n"===a[s])return!1;return!0};function l(e,t){if(f(e)){var n=e.getPropValue(0,T.Char.COMMENT,!0),r=!1,a=t.value.commentBefore;if(a&&a.startsWith(n))t.value.commentBefore=a.substr(n.length+1),r=!0;else{var o=t.value.comment;!e.node&&o&&o.startsWith(n)&&(t.value.comment=o.substr(n.length+1),r=!0)}r&&(t.comment=n)}}}));a(ce);var de=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(te),r=a(ce);function a(e){return e&&e.__esModule?e:{default:e}}var o={createNode:function(e,t,r){var a=new n.default;if(t instanceof Map){var o=!0,s=!1,u=void 0;try{for(var f,l=t[Symbol.iterator]();!(o=(f=l.next()).done);o=!0){var c=y(f.value,2),d=c[0],h=c[1];a.items.push(e.createPair(d,h,r))}}catch(e){s=!0,u=e}finally{try{o||null==l.return||l.return()}finally{if(s)throw u}}}else if(t&&"object"===i(t))for(var p=0,v=Object.keys(t);p<v.length;p++){var g=v[p];a.items.push(e.createPair(g,t[g],r))}return a},default:!0,nodeClass:n.default,tag:"tag:yaml.org,2002:map",resolve:r.default};t.default=o}));a(de);var he=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==T.Type.SEQ&&t.type!==T.Type.FLOW_SEQ){var o="A ".concat(t.type," node cannot be resolved as a sequence");return e.errors.push(new x.YAMLSyntaxError(t,o)),null}var i=t.type===T.Type.FLOW_SEQ?function(e,t){for(var r=[],a=[],o=!1,i=void 0,s=null,u="[",f=0;f<t.items.length;++f){var l=t.items[f];if("string"==typeof l.char){var c=l.char,d=l.offset;if(":"===c||!o&&void 0===i||(o&&void 0===i&&(i=u?a.pop():null),a.push(new n.default(i)),o=!1,i=void 0,s=null),c===u)u=null;else if(u||"?"!==c){if("["!==u&&":"===c&&void 0===i){if(","===u){if((i=a.pop())instanceof n.default){var h=new x.YAMLSemanticError(t,"Chaining flow sequence pairs is invalid");h.offset=d,e.errors.push(h)}o||(0,le.checkKeyLength)(e.errors,t,f,i,s)}else i=null;s=null,o=!1,u=null}else if("["===u||"]"!==c||f<t.items.length-1){var p="Flow sequence contains an unexpected ".concat(c),v=new x.YAMLSyntaxError(t,p);v.offset=d,e.errors.push(v)}}else o=!0}else if(l.type===T.Type.BLANK_LINE)r.push({before:a.length});else if(l.type===T.Type.COMMENT)r.push({comment:l.comment,before:a.length});else{if(u){var g="Expected a ".concat(u," in flow sequence");e.errors.push(new x.YAMLSemanticError(l,g))}var m=e.resolveNode(l);void 0===i?a.push(m):(a.push(new n.default(i,m)),i=void 0),s=l.range.start,u=","}}(0,le.checkFlowCollectionEnd)(e.errors,t),void 0!==i&&a.push(new n.default(i));return{comments:r,items:a}}(e,t):function(e,t){for(var n=[],r=[],a=0;a<t.items.length;++a){var o=t.items[a];switch(o.type){case T.Type.BLANK_LINE:n.push({before:r.length});break;case T.Type.COMMENT:n.push({comment:o.comment,before:r.length});break;case T.Type.SEQ_ITEM:if(o.error&&e.errors.push(o.error),r.push(e.resolveNode(o.node)),o.hasProps){e.errors.push(new x.YAMLSemanticError(o,"Sequence items cannot have tags or anchors before the - indicator"))}break;default:o.error&&e.errors.push(o.error),e.errors.push(new x.YAMLSyntaxError(o,"Unexpected ".concat(o.type," node in sequence")))}}return{comments:n,items:r}}(e,t),s=i.comments,u=i.items,f=new r.default;if(f.items=u,(0,le.resolveComments)(f,s),!e.options.mapAsMap&&u.some((function(e){return e instanceof n.default&&e.key instanceof a.default}))){e.warnings.push(new x.YAMLWarning(t,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this."))}return t.resolved=f,f};var n=o(Z),r=o(ne),a=o(X);function o(e){return e&&e.__esModule?e:{default:e}}}));a(he);var pe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(he),r=a(ne);function a(e){return e&&e.__esModule?e:{default:e}}var o={createNode:function(e,t,n){var a=new r.default;if(t&&t[Symbol.iterator]){var o=!0,i=!1,s=void 0;try{for(var u,f=t[Symbol.iterator]();!(o=(u=f.next()).done);o=!0){var l=u.value,c=e.createNode(l,n.wrapScalars,null,n);a.items.push(c)}}catch(e){i=!0,s=e}finally{try{o||null==f.return||f.return()}finally{if(i)throw s}}}return a},default:!0,nodeClass:r.default,tag:"tag:yaml.org,2002:seq",resolve:n.default};t.default=o}));a(pe);var ve=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.resolveString=void 0;var n=function(e,t){var n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((function(n){n.source||(n.source=t),e.errors.push(n)})),n.str):""};t.resolveString=n;var r={identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:n,stringify:function(e,t,n,r){return t=Object.assign({actualString:!0},t),(0,fe.stringifyString)(e,t,n,r)},options:ue.strOptions};t.default=r}));a(ve);ve.resolveString;var ge=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(de),r=o(pe),a=o(ve);function o(e){return e&&e.__esModule?e:{default:e}}var i=[n.default,r.default,a.default];t.default=i}));a(ge);var me=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(z);function r(e){return e&&e.__esModule?e:{default:e}}var a=r(ge).default.concat([{identify:function(e){return null==e},createNode:function(e,t,r){return r.wrapScalars?new n.default(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:ue.nullOptions,stringify:function(){return ue.nullOptions.nullStr}},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function(e){return"t"===e[0]||"T"===e[0]},options:ue.boolOptions,stringify:function(e){return e.value?ue.boolOptions.trueStr:ue.boolOptions.falseStr}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function(e,t){return parseInt(t,8)},stringify:function(e){return"0o"+e.value.toString(8)}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function(e){return parseInt(e,10)},stringify:fe.stringifyNumber},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function(e,t){return parseInt(t,16)},stringify:function(e){return"0x"+e.value.toString(16)}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:fe.stringifyNumber},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:0|[1-9][0-9]*)(\.[0-9]*)?[eE][-+]?[0-9]+$/,resolve:function(e){return parseFloat(e)},stringify:function(e){var t=e.value;return Number(t).toExponential()}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:0|[1-9][0-9]*)\.([0-9]*)$/,resolve:function(e,t){var r=new n.default(parseFloat(e));return t&&"0"===t[t.length-1]&&(r.minFractionDigits=t.length),r},stringify:fe.stringifyNumber}]);t.default=a}));a(me);var ye=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(de),r=o(pe),a=o(z);function o(e){return e&&e.__esModule?e:{default:e}}var i=[n.default,r.default,{identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:ve.resolveString,stringify:function(e){return JSON.stringify(e)}},{identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new a.default(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function(){return null},stringify:function(e){return JSON.stringify(e)}},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$/,resolve:function(){return!0},stringify:function(e){return JSON.stringify(e)}},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^false$/,resolve:function(){return!1},stringify:function(e){return JSON.stringify(e)}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function(e){return parseInt(e,10)},stringify:function(e){return JSON.stringify(e)}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function(e){return parseFloat(e)},stringify:function(e){return JSON.stringify(e)}}];i.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var s=i;t.default=s}));a(ye);var _e="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},be=[],we=[],Ee="undefined"!=typeof Uint8Array?Uint8Array:Array,Oe=!1;function Me(){Oe=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)be[t]=e[t],we[e.charCodeAt(t)]=t;we["-".charCodeAt(0)]=62,we["_".charCodeAt(0)]=63}function Se(e,t,n){for(var r,a,o=[],i=t;i<n;i+=3)r=(e[i]<<16)+(e[i+1]<<8)+e[i+2],o.push(be[(a=r)>>18&63]+be[a>>12&63]+be[a>>6&63]+be[63&a]);return o.join("")}function Ae(e){var t;Oe||Me();for(var n=e.length,r=n%3,a="",o=[],i=0,s=n-r;i<s;i+=16383)o.push(Se(e,i,i+16383>s?s:i+16383));return 1===r?(t=e[n-1],a+=be[t>>2],a+=be[t<<4&63],a+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],a+=be[t>>10],a+=be[t>>4&63],a+=be[t<<2&63],a+="="),o.push(a),o.join("")}function ke(e,t,n,r,a){var o,i,s=8*a-r-1,u=(1<<s)-1,f=u>>1,l=-7,c=n?a-1:0,d=n?-1:1,h=e[t+c];for(c+=d,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+c],c+=d,l-=8);for(i=o&(1<<-l)-1,o>>=-l,l+=r;l>0;i=256*i+e[t+c],c+=d,l-=8);if(0===o)o=1-f;else{if(o===u)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,r),o-=f}return(h?-1:1)*i*Math.pow(2,o-r)}function Le(e,t,n,r,a,o){var i,s,u,f=8*o-a-1,l=(1<<f)-1,c=l>>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=l):(i=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-i))<1&&(i--,u*=2),(t+=i+c>=1?d/u:d*Math.pow(2,1-c))*u>=2&&(i++,u/=2),i+c>=l?(s=0,i=l):i+c>=1?(s=(t*u-1)*Math.pow(2,a),i+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,a),i=0));a>=8;e[n+h]=255&s,h+=p,s/=256,a-=8);for(i=i<<a|s,f+=a;f>0;e[n+h]=255&i,h+=p,i/=256,f-=8);e[n+h-p]|=128*v}var Te={}.toString,Pe=Array.isArray||function(e){return"[object Array]"==Te.call(e)};function Ce(){return xe.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ne(e,t){if(Ce()<t)throw new RangeError("Invalid typed array length");return xe.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=xe.prototype:(null===e&&(e=new xe(t)),e.length=t),e}function xe(e,t,n){if(!(xe.TYPED_ARRAY_SUPPORT||this instanceof xe))return new xe(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Be(this,e)}return Re(this,e,t,n)}function Re(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);xe.TYPED_ARRAY_SUPPORT?(e=t).__proto__=xe.prototype:e=De(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!xe.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Fe(t,n),a=(e=Ne(e,r)).write(t,n);a!==r&&(e=e.slice(0,a));return e}(e,t,n):function(e,t){if(Ye(t)){var n=0|je(t.length);return 0===(e=Ne(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?Ne(e,0):De(e,t);if("Buffer"===t.type&&Pe(t.data))return De(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Ie(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Be(e,t){if(Ie(t),e=Ne(e,t<0?0:0|je(t)),!xe.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function De(e,t){var n=t.length<0?0:0|je(t.length);e=Ne(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function je(e){if(e>=Ce())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ce().toString(16)+" bytes");return 0|e}function Ye(e){return!(null==e||!e._isBuffer)}function Fe(e,t){if(Ye(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return ht(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return pt(e).length;default:if(r)return ht(e).length;t=(""+t).toLowerCase(),r=!0}}function Ue(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return nt(this,t,n);case"utf8":case"utf-8":return Ze(this,t,n);case"ascii":return et(this,t,n);case"latin1":case"binary":return tt(this,t,n);case"base64":return ze(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rt(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Ke(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function We(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=xe.from(t,r)),Ye(t))return 0===t.length?-1:Qe(e,t,n,r,a);if("number"==typeof t)return t&=255,xe.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Qe(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function Qe(e,t,n,r,a){var o,i=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,s/=2,u/=2,n/=2}function f(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){var l=-1;for(o=n;o<s;o++)if(f(e,o)===f(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*i}else-1!==l&&(o-=o-l),l=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var c=!0,d=0;d<u;d++)if(f(e,o+d)!==f(t,d)){c=!1;break}if(c)return o}return-1}function Ve(e,t,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r))>a&&(r=a):r=a;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var i=0;i<r;++i){var s=parseInt(t.substr(2*i,2),16);if(isNaN(s))return i;e[n+i]=s}return i}function $e(e,t,n,r){return vt(ht(t,e.length-n),e,n,r)}function qe(e,t,n,r){return vt(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Je(e,t,n,r){return qe(e,t,n,r)}function Ge(e,t,n,r){return vt(pt(t),e,n,r)}function He(e,t,n,r){return vt(function(e,t){for(var n,r,a,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=e.charCodeAt(i),r=n>>8,a=n%256,o.push(a),o.push(r);return o}(t,e.length-n),e,n,r)}function ze(e,t,n){return 0===t&&n===e.length?Ae(e):Ae(e.slice(t,n))}function Ze(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a<n;){var o,i,s,u,f=e[a],l=null,c=f>239?4:f>223?3:f>191?2:1;if(a+c<=n)switch(c){case 1:f<128&&(l=f);break;case 2:128==(192&(o=e[a+1]))&&(u=(31&f)<<6|63&o)>127&&(l=u);break;case 3:o=e[a+1],i=e[a+2],128==(192&o)&&128==(192&i)&&(u=(15&f)<<12|(63&o)<<6|63&i)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[a+1],i=e[a+2],s=e[a+3],128==(192&o)&&128==(192&i)&&128==(192&s)&&(u=(15&f)<<18|(63&o)<<12|(63&i)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,c=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),a+=c}return function(e){var t=e.length;if(t<=Xe)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Xe));return n}(r)}xe.TYPED_ARRAY_SUPPORT=void 0===_e.TYPED_ARRAY_SUPPORT||_e.TYPED_ARRAY_SUPPORT,xe.poolSize=8192,xe._augment=function(e){return e.__proto__=xe.prototype,e},xe.from=function(e,t,n){return Re(null,e,t,n)},xe.TYPED_ARRAY_SUPPORT&&(xe.prototype.__proto__=Uint8Array.prototype,xe.__proto__=Uint8Array),xe.alloc=function(e,t,n){return function(e,t,n,r){return Ie(t),t<=0?Ne(e,t):void 0!==n?"string"==typeof r?Ne(e,t).fill(n,r):Ne(e,t).fill(n):Ne(e,t)}(null,e,t,n)},xe.allocUnsafe=function(e){return Be(null,e)},xe.allocUnsafeSlow=function(e){return Be(null,e)},xe.isBuffer=function(e){return null!=e&&(!!e._isBuffer||gt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&gt(e.slice(0,0))}(e))},xe.compare=function(e,t){if(!Ye(e)||!Ye(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,a=0,o=Math.min(n,r);a<o;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:r<n?1:0},xe.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},xe.concat=function(e,t){if(!Pe(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return xe.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=xe.allocUnsafe(t),a=0;for(n=0;n<e.length;++n){var o=e[n];if(!Ye(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,a),a+=o.length}return r},xe.byteLength=Fe,xe.prototype._isBuffer=!0,xe.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Ke(this,t,t+1);return this},xe.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Ke(this,t,t+3),Ke(this,t+1,t+2);return this},xe.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Ke(this,t,t+7),Ke(this,t+1,t+6),Ke(this,t+2,t+5),Ke(this,t+3,t+4);return this},xe.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Ze(this,0,e):Ue.apply(this,arguments)},xe.prototype.equals=function(e){if(!Ye(e))throw new TypeError("Argument must be a Buffer");return this===e||0===xe.compare(this,e)},xe.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},xe.prototype.compare=function(e,t,n,r,a){if(!Ye(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(a>>>=0)-(r>>>=0),i=(n>>>=0)-(t>>>=0),s=Math.min(o,i),u=this.slice(r,a),f=e.slice(t,n),l=0;l<s;++l)if(u[l]!==f[l]){o=u[l],i=f[l];break}return o<i?-1:i<o?1:0},xe.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},xe.prototype.indexOf=function(e,t,n){return We(this,e,t,n,!0)},xe.prototype.lastIndexOf=function(e,t,n){return We(this,e,t,n,!1)},xe.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Ve(this,e,t,n);case"utf8":case"utf-8":return $e(this,e,t,n);case"ascii":return qe(this,e,t,n);case"latin1":case"binary":return Je(this,e,t,n);case"base64":return Ge(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return He(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},xe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Xe=4096;function et(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(127&e[a]);return r}function tt(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function nt(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var a="",o=t;o<n;++o)a+=dt(e[o]);return a}function rt(e,t,n){for(var r=e.slice(t,n),a="",o=0;o<r.length;o+=2)a+=String.fromCharCode(r[o]+256*r[o+1]);return a}function at(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function ot(e,t,n,r,a,o){if(!Ye(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function it(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,o=Math.min(e.length-n,2);a<o;++a)e[n+a]=(t&255<<8*(r?a:1-a))>>>8*(r?a:1-a)}function st(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,o=Math.min(e.length-n,4);a<o;++a)e[n+a]=t>>>8*(r?a:3-a)&255}function ut(e,t,n,r,a,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function ft(e,t,n,r,a){return a||ut(e,0,n,4),Le(e,t,n,r,23,4),n+4}function lt(e,t,n,r,a){return a||ut(e,0,n,8),Le(e,t,n,r,52,8),n+8}xe.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),xe.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=xe.prototype;else{var a=t-e;n=new xe(a,void 0);for(var o=0;o<a;++o)n[o]=this[o+e]}return n},xe.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||at(e,t,this.length);for(var r=this[e],a=1,o=0;++o<t&&(a*=256);)r+=this[e+o]*a;return r},xe.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||at(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},xe.prototype.readUInt8=function(e,t){return t||at(e,1,this.length),this[e]},xe.prototype.readUInt16LE=function(e,t){return t||at(e,2,this.length),this[e]|this[e+1]<<8},xe.prototype.readUInt16BE=function(e,t){return t||at(e,2,this.length),this[e]<<8|this[e+1]},xe.prototype.readUInt32LE=function(e,t){return t||at(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},xe.prototype.readUInt32BE=function(e,t){return t||at(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},xe.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||at(e,t,this.length);for(var r=this[e],a=1,o=0;++o<t&&(a*=256);)r+=this[e+o]*a;return r>=(a*=128)&&(r-=Math.pow(2,8*t)),r},xe.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||at(e,t,this.length);for(var r=t,a=1,o=this[e+--r];r>0&&(a*=256);)o+=this[e+--r]*a;return o>=(a*=128)&&(o-=Math.pow(2,8*t)),o},xe.prototype.readInt8=function(e,t){return t||at(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},xe.prototype.readInt16LE=function(e,t){t||at(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},xe.prototype.readInt16BE=function(e,t){t||at(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},xe.prototype.readInt32LE=function(e,t){return t||at(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},xe.prototype.readInt32BE=function(e,t){return t||at(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},xe.prototype.readFloatLE=function(e,t){return t||at(e,4,this.length),ke(this,e,!0,23,4)},xe.prototype.readFloatBE=function(e,t){return t||at(e,4,this.length),ke(this,e,!1,23,4)},xe.prototype.readDoubleLE=function(e,t){return t||at(e,8,this.length),ke(this,e,!0,52,8)},xe.prototype.readDoubleBE=function(e,t){return t||at(e,8,this.length),ke(this,e,!1,52,8)},xe.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||ot(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,o=0;for(this[t]=255&e;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},xe.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||ot(this,e,t,n,Math.pow(2,8*n)-1,0);var a=n-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},xe.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||ot(this,e,t,1,255,0),xe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},xe.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||ot(this,e,t,2,65535,0),xe.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):it(this,e,t,!0),t+2},xe.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||ot(this,e,t,2,65535,0),xe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):it(this,e,t,!1),t+2},xe.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||ot(this,e,t,4,4294967295,0),xe.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):st(this,e,t,!0),t+4},xe.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||ot(this,e,t,4,4294967295,0),xe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):st(this,e,t,!1),t+4},xe.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);ot(this,e,t,n,a-1,-a)}var o=0,i=1,s=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/i>>0)-s&255;return t+n},xe.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);ot(this,e,t,n,a-1,-a)}var o=n-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i>>0)-s&255;return t+n},xe.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||ot(this,e,t,1,127,-128),xe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},xe.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||ot(this,e,t,2,32767,-32768),xe.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):it(this,e,t,!0),t+2},xe.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||ot(this,e,t,2,32767,-32768),xe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):it(this,e,t,!1),t+2},xe.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||ot(this,e,t,4,2147483647,-2147483648),xe.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):st(this,e,t,!0),t+4},xe.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||ot(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),xe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):st(this,e,t,!1),t+4},xe.prototype.writeFloatLE=function(e,t,n){return ft(this,e,t,!0,n)},xe.prototype.writeFloatBE=function(e,t,n){return ft(this,e,t,!1,n)},xe.prototype.writeDoubleLE=function(e,t,n){return lt(this,e,t,!0,n)},xe.prototype.writeDoubleBE=function(e,t,n){return lt(this,e,t,!1,n)},xe.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var a,o=r-n;if(this===e&&n<t&&t<r)for(a=o-1;a>=0;--a)e[a+t]=this[a+n];else if(o<1e3||!xe.TYPED_ARRAY_SUPPORT)for(a=0;a<o;++a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},xe.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var a=e.charCodeAt(0);a<256&&(e=a)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!xe.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var i=Ye(e)?e:ht(new xe(e,r).toString()),s=i.length;for(o=0;o<n-t;++o)this[o+t]=i[o%s]}return this};var ct=/[^+\/0-9A-Za-z-_]/g;function dt(e){return e<16?"0"+e.toString(16):e.toString(16)}function ht(e,t){var n;t=t||1/0;for(var r=e.length,a=null,o=[],i=0;i<r;++i){if((n=e.charCodeAt(i))>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function pt(e){return function(e){var t,n,r,a,o,i;Oe||Me();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,i=new Ee(3*s/4-o),r=o>0?s-4:s;var u=0;for(t=0,n=0;t<r;t+=4,n+=3)a=we[e.charCodeAt(t)]<<18|we[e.charCodeAt(t+1)]<<12|we[e.charCodeAt(t+2)]<<6|we[e.charCodeAt(t+3)],i[u++]=a>>16&255,i[u++]=a>>8&255,i[u++]=255&a;return 2===o?(a=we[e.charCodeAt(t)]<<2|we[e.charCodeAt(t+1)]>>4,i[u++]=255&a):1===o&&(a=we[e.charCodeAt(t)]<<10|we[e.charCodeAt(t+1)]<<4|we[e.charCodeAt(t+2)]>>2,i[u++]=a>>8&255,i[u++]=255&a),i}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(ct,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function vt(e,t,n,r){for(var a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function gt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var mt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={identify:function(e){return e instanceof Uint8Array},default:!1,tag:"tag:yaml.org,2002:binary",resolve:function(e,t){var n=(0,ve.resolveString)(e,t);return xe.from(n,"base64")},options:ue.binaryOptions,stringify:function(e,t,n,r){var a,o=e.comment,i=e.type,s=e.value;if(a=s instanceof xe?s.toString("base64"):xe.from(s.buffer).toString("base64"),i||(i=ue.binaryOptions.defaultType),i===T.Type.QUOTE_DOUBLE)s=a;else{for(var u=ue.binaryOptions.lineWidth,f=Math.ceil(a.length/u),l=new Array(f),c=0,d=0;c<f;++c,d+=u)l[c]=a.substr(d,u);s=l.join(i===T.Type.BLOCK_LITERAL?"\n":" ")}return(0,fe.stringifyString)({comment:o,type:i,value:s},t,n,r)}};t.default=n}));a(mt);var yt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parsePairs=s,t.createPairs=u,t.default=void 0;var n=i(te),r=i(Z),a=i(he),o=i(ne);function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var o=(0,a.default)(e,t),i=0;i<o.items.length;++i){var s=o.items[i];if(!(s instanceof r.default)){if(s instanceof n.default){if(s.items.length>1){throw new x.YAMLSemanticError(t,"Each pair must have its own sequence indicator")}var u=s.items[0]||new r.default;s.commentBefore&&(u.commentBefore=u.commentBefore?"".concat(s.commentBefore,"\n").concat(u.commentBefore):s.commentBefore),s.comment&&(u.comment=u.comment?"".concat(s.comment,"\n").concat(u.comment):s.comment),s=u}o.items[i]=s instanceof r.default?s:new r.default(s)}}return o}function u(e,t,n){var r=new o.default;r.tag="tag:yaml.org,2002:pairs";var a=!0,i=!1,s=void 0;try{for(var u,f=t[Symbol.iterator]();!(a=(u=f.next()).done);a=!0){var l=u.value,c=void 0,d=void 0;if(Array.isArray(l)){if(2!==l.length)throw new TypeError("Expected [key, value] tuple: ".concat(l));c=l[0],d=l[1]}else if(l&&l instanceof Object){var h=Object.keys(l);if(1!==h.length)throw new TypeError("Expected { key: value } tuple: ".concat(l));d=l[c=h[0]]}else c=l;var p=e.createPair(c,d,n);r.items.push(p)}}catch(e){i=!0,s=e}finally{try{a||null==f.return||f.return()}finally{if(i)throw s}}return r}var f={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:s,createNode:u};t.default=f}));a(yt);yt.parsePairs,yt.createPairs;var _t=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.YAMLOMap=void 0;var n=i(G),r=i(te),a=i(Z),o=i(z);function i(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(e){function t(){var e;return s(this,t),u(v(e=g(this,c(t).call(this))),"add",r.default.prototype.add.bind(v(e))),u(v(e),"delete",r.default.prototype.delete.bind(v(e))),u(v(e),"get",r.default.prototype.get.bind(v(e))),u(v(e),"has",r.default.prototype.has.bind(v(e))),u(v(e),"set",r.default.prototype.set.bind(v(e))),e.tag=t.tag,e}return l(t,e),f(t,[{key:"toJSON",value:function(e,t){var r=new Map;t&&t.onCreate&&t.onCreate(r);var o=!0,i=!1,s=void 0;try{for(var u,f=this.items[Symbol.iterator]();!(o=(u=f.next()).done);o=!0){var l=u.value,c=void 0,d=void 0;if(l instanceof a.default?(c=(0,n.default)(l.key,"",t),d=(0,n.default)(l.value,c,t)):c=(0,n.default)(l,"",t),r.has(c))throw new Error("Ordered maps must not include duplicate keys");r.set(c,d)}}catch(e){i=!0,s=e}finally{try{o||null==f.return||f.return()}finally{if(i)throw s}}return r}}]),t}(i(ne).default);t.YAMLOMap=d,u(d,"tag","tag:yaml.org,2002:omap");var h={identify:function(e){return e instanceof Map},nodeClass:d,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){var n=(0,yt.parsePairs)(e,t),r=[],a=!0,i=!1,s=void 0;try{for(var u,f=n.items[Symbol.iterator]();!(a=(u=f.next()).done);a=!0){var l=u.value.key;if(l instanceof o.default){if(r.includes(l.value)){throw new x.YAMLSemanticError(t,"Ordered maps must not include duplicate keys")}r.push(l.value)}}}catch(e){i=!0,s=e}finally{try{a||null==f.return||f.return()}finally{if(i)throw s}}return Object.assign(new d,n)},createNode:function(e,t,n){var r=(0,yt.createPairs)(e,t,n),a=new d;return a.items=r.items,a}};t.default=h}));a(_t);_t.YAMLOMap;var bt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.YAMLSet=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(te),r=u(Z),a=u(ce),o=u(z);function u(e){return e&&e.__esModule?e:{default:e}}var d,h,p,v=function(e){function t(){var e;return s(this,t),(e=g(this,c(t).call(this))).tag=t.tag,e}return l(t,e),f(t,[{key:"add",value:function(e){var t=e instanceof r.default?e:new r.default(e);(0,n.findPair)(this.items,t.key)||this.items.push(t)}},{key:"get",value:function(e,t){var a=(0,n.findPair)(this.items,e);return!t&&a instanceof r.default?a.key instanceof o.default?a.key.value:a.key:a}},{key:"set",value:function(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(i(t)));var a=(0,n.findPair)(this.items,e);a&&!t?this.items.splice(this.items.indexOf(a),1):!a&&t&&this.items.push(new r.default(e))}},{key:"toJSON",value:function(e,n){return m(c(t.prototype),"toJSON",this).call(this,e,n,Set)}},{key:"toString",value:function(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return m(c(t.prototype),"toString",this).call(this,e,n,r);throw new Error("Set items must all have null values")}}]),t}(n.default);t.YAMLSet=v,p="tag:yaml.org,2002:set",(h="tag")in(d=v)?Object.defineProperty(d,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[h]=p;var y={identify:function(e){return e instanceof Set},nodeClass:v,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){var n=(0,a.default)(e,t);if(!n.hasAllNullValues())throw new x.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new v,n)},createNode:function(e,t,n){var r=new v,a=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){var f=s.value;r.items.push(e.createPair(f,null,n))}}catch(e){o=!0,i=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw i}}return r}};t.default=y}));a(bt);bt.YAMLSet;var wt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=t.floatTime=t.intTime=void 0;var n=function(e,t){var n=t.split(":").reduce((function(e,t){return 60*e+Number(t)}),0);return"-"===e?-n:n},r=function(e){var t=e.value;if(isNaN(t)||!isFinite(t))return(0,fe.stringifyNumber)(t);var n="";t<0&&(n="-",t=Math.abs(t));var r=[t%60];return t<60?r.unshift(0):(t=Math.round((t-r[0])/60),r.unshift(t%60),t>=60&&(t=Math.round((t-r[0])/60),r.unshift(t))),n+r.map((function(e){return e<10?"0"+String(e):String(e)})).join(":").replace(/000000\d*$/,"")},a={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function(e,t,r){return n(t,r.replace(/_/g,""))},stringify:r};t.intTime=a;var o={identify:function(e){return"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:function(e,t,r){return n(t,r.replace(/_/g,""))},stringify:r};t.floatTime=o;var i={identify:function(e){return 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:function(e,t,r,a,o,i,s,u,f){u&&(u=(u+"00").substr(1,3));var l=Date.UTC(t,r-1,a,o||0,i||0,s||0,u||0);if(f&&"Z"!==f){var c=n(f[0],f.slice(1));Math.abs(c)<30&&(c*=60),l-=6e4*c}return new Date(l)},stringify:function(e){return e.value.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};t.timestamp=i}));a(wt);wt.timestamp,wt.floatTime,wt.intTime;var Et=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(z),r=u(ge),a=u(mt),o=u(_t),i=u(yt),s=u(bt);function u(e){return e&&e.__esModule?e:{default:e}}var f=r.default.concat([{identify:function(e){return null==e},createNode:function(e,t,r){return r.wrapScalars?new n.default(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:ue.nullOptions,stringify:function(){return ue.nullOptions.nullStr}},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function(){return!0},options:ue.boolOptions,stringify:function(e){return e.value?ue.boolOptions.trueStr:ue.boolOptions.falseStr}},{identify:function(e){return"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:function(){return!1},options:ue.boolOptions,stringify:function(e){return e.value?ue.boolOptions.trueStr:ue.boolOptions.falseStr}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^0b([0-1_]+)$/,resolve:function(e,t){return parseInt(t.replace(/_/g,""),2)},stringify:function(e){return"0b"+e.value.toString(2)}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0([0-7_]+)$/,resolve:function(e,t){return parseInt(t.replace(/_/g,""),8)},stringify:function(e){var t=e.value;return(t<0?"-0":"0")+t.toString(8)}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:function(e){return parseInt(e.replace(/_/g,""),10)},stringify:fe.stringifyNumber},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F_]+)$/,resolve:function(e,t){return parseInt(t.replace(/_/g,""),16)},stringify:function(e){var t=e.value;return(t<0?"-0x":"0x")+t.toString(16)}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:fe.stringifyNumber},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:function(e){return parseFloat(e.replace(/_/g,""))},stringify:function(e){var t=e.value;return Number(t).toExponential()}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve:function(e,t){var r=new n.default(parseFloat(e.replace(/_/g,"")));if(t){var a=t.replace(/_/g,"");"0"===a[a.length-1]&&(r.minFractionDigits=a.length)}return r},stringify:fe.stringifyNumber}],a.default,o.default,i.default,s.default,wt.intTime,wt.floatTime,wt.timestamp);t.default=f}));a(Et);var Ot=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tags=t.schemas=void 0;var n=d(me),r=d(ge),a=d(ye),o=d(Et),i=d(de),s=d(pe),u=d(mt),f=d(_t),l=d(yt),c=d(bt);function d(e){return e&&e.__esModule?e:{default:e}}var h={core:n.default,failsafe:r.default,json:a.default,yaml11:o.default};t.schemas=h;var p={binary:u.default,floatTime:wt.floatTime,intTime:wt.intTime,map:i.default,omap:f.default,pairs:l.default,seq:s.default,set:c.default,timestamp:wt.timestamp};t.tags=p}));a(Ot);Ot.tags,Ot.schemas;var Mt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(ee),r=l(X),a=l(H),o=l(Z),u=l(z);function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(){function e(t){var n=t.customTags,r=t.merge,a=t.schema,o=t.tags;if(s(this,e),this.merge=!!r,this.name=a,this.tags=Ot.schemas[a.replace(/\W/g,"")],!this.tags){var i=Object.keys(Ot.schemas).map((function(e){return JSON.stringify(e)})).join(", ");throw new Error('Unknown schema "'.concat(a,'"; use one of ').concat(i))}if(!n&&o&&(n=o,(0,ie.warnOptionDeprecation)("tags","customTags")),Array.isArray(n)){var u=!0,f=!1,l=void 0;try{for(var c,d=n[Symbol.iterator]();!(u=(c=d.next()).done);u=!0){var h=c.value;this.tags=this.tags.concat(h)}}catch(e){f=!0,l=e}finally{try{u||null==d.return||d.return()}finally{if(f)throw l}}}else"function"==typeof n&&(this.tags=n(this.tags.slice()));for(var p=0;p<this.tags.length;++p){var v=this.tags[p];if("string"==typeof v){var g=Ot.tags[v];if(!g){var m=Object.keys(Ot.tags).map((function(e){return JSON.stringify(e)})).join(", ");throw new Error('Unknown custom tag "'.concat(v,'"; use one of ').concat(m))}this.tags[p]=g}}}return f(e,[{key:"createNode",value:function(t,r,a,o){var s;if(a){a.startsWith("!!")&&(a=e.defaultPrefix+a.slice(2));var f=this.tags.filter((function(e){return e.tag===a}));if(!(s=f.find((function(e){return!e.format}))||f[0]))throw new Error("Tag ".concat(a," not found"))}else if(!(s=this.tags.find((function(e){return(e.identify&&e.identify(t)||e.class&&t instanceof e.class)&&!e.format})))){if("function"==typeof t.toJSON&&(t=t.toJSON()),"object"!==i(t))return r?new u.default(t):t;s=t instanceof Map?Ot.tags.map:t[Symbol.iterator]?Ot.tags.seq:Ot.tags.map}o?o.wrapScalars=r:o={wrapScalars:r},o.onTagObj&&(o.onTagObj(s),delete o.onTagObj);var l={};if(t&&"object"===i(t)&&o.prevObjects){var c=o.prevObjects.find((function(e){return e.value===t}));if(c){var d=new n.default(c);return o.aliasNodes.push(d),d}l.value=t,o.prevObjects.push(l)}return l.node=s.createNode?s.createNode(this,t,o):r?new u.default(t):t,l.node}},{key:"createPair",value:function(e,t,n){var r=this.createNode(e,n.wrapScalars,null,n),a=this.createNode(t,n.wrapScalars,null,n);return new o.default(r,a)}},{key:"resolveScalar",value:function(e,t){t||(t=this.tags);for(var n=0;n<t.length;++n){var r=t[n],a=r.format,o=r.test,i=r.resolve;if(o){var s=e.match(o);if(s){var f=i.apply(null,s);return f instanceof u.default||(f=new u.default(f)),a&&(f.format=a),f}}}return this.tags.scalarFallback&&(e=this.tags.scalarFallback(e)),new u.default(e)}},{key:"resolveNode",value:function(e,t,n){var a=this.tags.filter((function(e){return e.tag===n})),o=a.find((function(e){return!e.test}));t.error&&e.errors.push(t.error);try{if(o){var i=o.resolve(e,t);i instanceof r.default||(i=new u.default(i)),t.resolved=i}else{var s=(0,ve.resolveString)(e,t);"string"==typeof s&&a.length>0&&(t.resolved=this.resolveScalar(s,a))}}catch(n){n.source||(n.source=t),e.errors.push(n),t.resolved=null}return t.resolved?(n&&t.tag&&(t.resolved.tag=n),t.resolved):null}},{key:"resolveNodeWithFallback",value:function(t,n,r){var a=this.resolveNode(t,n,r);if(Object.prototype.hasOwnProperty.call(n,"resolved"))return a;var o,i=(o=n.type)===T.Type.FLOW_MAP||o===T.Type.MAP?e.defaultTags.MAP:function(e){var t=e.type;return t===T.Type.FLOW_SEQ||t===T.Type.SEQ}(n)?e.defaultTags.SEQ:e.defaultTags.STR;if(i){t.warnings.push(new x.YAMLWarning(n,"The tag ".concat(r," is unavailable, falling back to ").concat(i)));var s=this.resolveNode(t,n,i);return s.tag=r,s}return t.errors.push(new x.YAMLReferenceError(n,"The tag ".concat(r," is unavailable"))),null}},{key:"getTagObject",value:function(e){if(e instanceof n.default)return n.default;if(e.tag){var t=this.tags.filter((function(t){return t.tag===e.tag}));if(t.length>0)return t.find((function(t){return t.format===e.format}))||t[0]}var r,a;if(e instanceof u.default){a=e.value;var o=this.tags.filter((function(e){return e.identify&&e.identify(a)||e.class&&a instanceof e.class}));r=o.find((function(t){return t.format===e.format}))||o.find((function(e){return!e.format}))}else a=e,r=this.tags.find((function(e){return e.nodeClass&&a instanceof e.nodeClass}));if(!r){var s=a&&a.constructor?a.constructor.name:i(a);throw new Error("Tag not resolved for ".concat(s," value"))}return r}},{key:"stringifyProps",value:function(e,t,n){var r=n.anchors,a=n.doc,o=[],i=a.anchors.getName(e);return i&&(r[i]=e,o.push("&".concat(i))),e.tag?o.push(a.stringifyTag(e.tag)):t.default||o.push(a.stringifyTag(t.tag)),o.join(" ")}},{key:"stringify",value:function(e,t,n,i){var s;if(!(e instanceof a.default)){var u={aliasNodes:[],onTagObj:function(e){return s=e},prevObjects:[]};e=this.createNode(e,!0,null,u);var f=t.doc.anchors,l=!0,c=!1,d=void 0;try{for(var h,p=u.aliasNodes[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var v=h.value;v.source=v.source.node;var g=f.getName(v.source);g||(g=f.newName(),f.map[g]=v.source)}}catch(e){c=!0,d=e}finally{try{l||null==p.return||p.return()}finally{if(c)throw d}}}if(t.tags=this,e instanceof o.default)return e.toString(t,n,i);s||(s=this.getTagObject(e));var m=this.stringifyProps(e,s,t),y="function"==typeof s.stringify?s.stringify(e,t,n,i):e instanceof r.default?e.toString(t,n,i):(0,fe.stringifyString)(e,t,n,i);return m?e instanceof r.default&&"{"!==y[0]&&"["!==y[0]?"".concat(m,"\n").concat(t.indent).concat(y):"".concat(m," ").concat(y):y}}]),e}();t.default=d,c(d,"defaultPrefix","tag:yaml.org,2002:"),c(d,"defaultTags",{MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"})}));a(Mt);var St=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=h(J),r=h(ae),a=h(oe),o=h(Mt),i=h(ee),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(X),l=h(H),c=h(z),d=h(G);function h(e){return e&&e.__esModule?e:{default:e}}var p,v,g,m=function(){function e(t){s(this,e),this.anchors=new r.default(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return f(e,[{key:"assertCollectionContents",value:function(){if(this.contents instanceof u.default)return!0;throw new Error("Expected a YAML collection as document contents")}},{key:"add",value:function(e){return this.assertCollectionContents(),this.contents.add(e)}},{key:"addIn",value:function(e,t){this.assertCollectionContents(),this.contents.addIn(e,t)}},{key:"delete",value:function(e){return this.assertCollectionContents(),this.contents.delete(e)}},{key:"deleteIn",value:function(e){return(0,u.isEmptyPath)(e)?null!=this.contents&&(this.contents=null,!0):(this.assertCollectionContents(),this.contents.deleteIn(e))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(e,t){return this.contents instanceof u.default?this.contents.get(e,t):void 0}},{key:"getIn",value:function(e,t){return(0,u.isEmptyPath)(e)?!t&&this.contents instanceof c.default?this.contents.value:this.contents:this.contents instanceof u.default?this.contents.getIn(e,t):void 0}},{key:"has",value:function(e){return this.contents instanceof u.default&&this.contents.has(e)}},{key:"hasIn",value:function(e){return(0,u.isEmptyPath)(e)?void 0!==this.contents:this.contents instanceof u.default&&this.contents.hasIn(e)}},{key:"set",value:function(e,t){this.assertCollectionContents(),this.contents.set(e,t)}},{key:"setIn",value:function(e,t){(0,u.isEmptyPath)(e)?this.contents=t:(this.assertCollectionContents(),this.contents.setIn(e,t))}},{key:"setSchema",value:function(e,t){if(e||t||!this.schema){"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);var n=Object.assign({},this.getDefaults(),this.options);this.schema=new o.default(n)}}},{key:"parse",value:function(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");var n=e.directives,r=void 0===n?[]:n,a=e.contents,o=void 0===a?[]:a,i=e.directivesEndMarker,s=e.error,u=e.valueRange;if(s&&(s.source||(s.source=this),this.errors.push(s)),this.parseDirectives(r,t),i&&(this.directivesEndMarker=!0),this.range=u?[u.start,u.end]:null,this.setSchema(),this.anchors._cstAliases=[],this.parseContents(o),this.anchors.resolveNodes(),this.options.prettyErrors){var f=!0,l=!1,c=void 0;try{for(var d,h=this.errors[Symbol.iterator]();!(f=(d=h.next()).done);f=!0){var p=d.value;p instanceof x.YAMLError&&p.makePretty()}}catch(e){l=!0,c=e}finally{try{f||null==h.return||h.return()}finally{if(l)throw c}}var v=!0,g=!1,m=void 0;try{for(var y,_=this.warnings[Symbol.iterator]();!(v=(y=_.next()).done);v=!0){var b=y.value;b instanceof x.YAMLError&&b.makePretty()}}catch(e){g=!0,m=e}finally{try{v||null==_.return||_.return()}finally{if(g)throw m}}}return this}},{key:"parseDirectives",value:function(e,t){var n=this,r=[],a=!1;if(e.forEach((function(e){var t=e.comment,o=e.name;switch(o){case"TAG":n.resolveTagDirective(e),a=!0;break;case"YAML":case"YAML:1.0":n.resolveYamlDirective(e),a=!0;break;default:if(o){var i="YAML only supports %TAG and %YAML directives, and not %".concat(o);n.warnings.push(new x.YAMLWarning(e,i))}}t&&r.push(t)})),t&&!a&&"1.1"===(this.version||t.version||this.options.version)){this.tagPrefixes=t.tagPrefixes.map((function(e){return{handle:e.handle,prefix:e.prefix}})),this.version=t.version}this.commentBefore=r.join("\n")||null}},{key:"parseContents",value:function(e){var t=this,n={before:[],after:[]},r=[],a=!1;switch(e.forEach((function(e){if(e.valueRange){if(1===r.length){t.errors.push(new x.YAMLSyntaxError(e,"Document is not valid YAML (bad indentation?)"))}var o=t.resolveNode(e);a&&(o.spaceBefore=!0,a=!1),r.push(o)}else if(null!==e.comment){(0===r.length?n.before:n.after).push(e.comment)}else e.type===T.Type.BLANK_LINE&&(a=!0,0===r.length&&n.before.length>0&&!t.commentBefore&&(t.commentBefore=n.before.join("\n"),n.before=[]))})),r.length){case 0:this.contents=null,n.after=n.before;break;case 1:if(this.contents=r[0],this.contents){var o=n.before.join("\n")||null;if(o){var i=this.contents instanceof u.default&&this.contents.items[0]?this.contents.items[0]:this.contents;i.commentBefore=i.commentBefore?"".concat(o,"\n").concat(i.commentBefore):o}}else n.after=n.before.concat(n.after);break;default:this.contents=r,this.contents[0]?this.contents[0].commentBefore=n.before.join("\n")||null:n.after=n.before.concat(n.after)}this.comment=n.after.join("\n")||null}},{key:"resolveTagDirective",value:function(e){var t=y(e.parameters,2),n=t[0],r=t[1];if(n&&r)if(this.tagPrefixes.every((function(e){return e.handle!==n})))this.tagPrefixes.push({handle:n,prefix:r});else{this.errors.push(new x.YAMLSemanticError(e,"The %TAG directive must only be given at most once per handle in the same document."))}else{this.errors.push(new x.YAMLSemanticError(e,"Insufficient parameters given for %TAG directive"))}}},{key:"resolveYamlDirective",value:function(t){var n=y(t.parameters,1)[0];if("YAML:1.0"===t.name&&(n="1.0"),this.version){this.errors.push(new x.YAMLSemanticError(t,"The %YAML directive must only be given at most once per document."))}if(n){if(!e.defaults[n]){var r=this.version||this.options.version,a="Document will be parsed as YAML ".concat(r," rather than YAML ").concat(n);this.warnings.push(new x.YAMLWarning(t,a))}this.version=n}else{this.errors.push(new x.YAMLSemanticError(t,"Insufficient parameters given for %YAML directive"))}}},{key:"resolveTagName",value:function(e){var t=e.tag,n=e.type,r=!1;if(t){var a=t.handle,i=t.suffix,s=t.verbatim;if(s){if("!"!==s&&"!!"!==s)return s;var u="Verbatim tags aren't resolved, so ".concat(s," is invalid.");this.errors.push(new x.YAMLSemanticError(e,u))}else if("!"!==a||i){var f=this.tagPrefixes.find((function(e){return e.handle===a}));if(!f){var l=this.getDefaults().tagPrefixes;l&&(f=l.find((function(e){return e.handle===a})))}if(f){if(i){if("!"===a&&"1.0"===(this.version||this.options.version)){if("^"===i[0])return i;if(/[:/]/.test(i)){var c=i.match(/^([a-z0-9-]+)\/(.*)/i);return c?"tag:".concat(c[1],".yaml.org,2002:").concat(c[2]):"tag:".concat(i)}}return f.prefix+decodeURIComponent(i)}this.errors.push(new x.YAMLSemanticError(e,"The ".concat(a," tag has no suffix.")))}else{var d="The ".concat(a," tag handle is non-default and was not declared.");this.errors.push(new x.YAMLSemanticError(e,d))}}else r=!0}switch(n){case T.Type.BLOCK_FOLDED:case T.Type.BLOCK_LITERAL:case T.Type.QUOTE_DOUBLE:case T.Type.QUOTE_SINGLE:return o.default.defaultTags.STR;case T.Type.FLOW_MAP:case T.Type.MAP:return o.default.defaultTags.MAP;case T.Type.FLOW_SEQ:case T.Type.SEQ:return o.default.defaultTags.SEQ;case T.Type.PLAIN:return r?o.default.defaultTags.STR:null;default:return null}}},{key:"resolveNode",value:function(e){if(!e)return null;var t,n=this.anchors,r=this.errors,a=this.schema,o=!1,s=!1,u={before:[],after:[]},f=function(e){return e&&-1!==[T.Type.MAP_KEY,T.Type.MAP_VALUE,T.Type.SEQ_ITEM].indexOf(e.type)}(e.context.parent)?e.context.parent.props.concat(e.props):e.props,l=!0,c=!1,d=void 0;try{for(var h,p=f[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var v=h.value,g=v.start,m=v.end;switch(e.context.src[g]){case T.Char.COMMENT:if(!e.commentHasRequiredWhitespace(g)){r.push(new x.YAMLSemanticError(e,"Comments must be separated from other tokens by white space characters"))}var y=e.context.src.slice(g+1,m),_=e.header,b=e.valueRange;b&&(g>b.start||_&&g>_.start)?u.after.push(y):u.before.push(y);break;case T.Char.ANCHOR:if(o){r.push(new x.YAMLSemanticError(e,"A node can have at most one anchor"))}o=!0;break;case T.Char.TAG:if(s){r.push(new x.YAMLSemanticError(e,"A node can have at most one tag"))}s=!0}}}catch(e){c=!0,d=e}finally{try{l||null==p.return||p.return()}finally{if(c)throw d}}if(o){var w=e.anchor,E=n.getNode(w);E&&(n.map[n.newName(w)]=E),n.map[w]=e}if(e.type===T.Type.ALIAS){if(o||s){r.push(new x.YAMLSemanticError(e,"An alias node must not specify any properties"))}var O=e.rawValue,M=n.getNode(O);if(!M){var S="Aliased anchor not found: ".concat(O);return r.push(new x.YAMLReferenceError(e,S)),null}t=new i.default(M),n._cstAliases.push(t)}else{var A=this.resolveTagName(e);if(A)t=a.resolveNodeWithFallback(this,e,A);else{if(e.type!==T.Type.PLAIN){var k="Failed to resolve ".concat(e.type," node here");return r.push(new x.YAMLSyntaxError(e,k)),null}try{t=a.resolveScalar(e.strValue||"")}catch(t){return t.source||(t.source=e),r.push(t),null}}}if(t){t.range=[e.range.start,e.range.end],this.options.keepCstNodes&&(t.cstNode=e),this.options.keepNodeTypes&&(t.type=e.type);var L=u.before.join("\n");L&&(t.commentBefore=t.commentBefore?"".concat(t.commentBefore,"\n").concat(L):L);var P=u.after.join("\n");P&&(t.comment=t.comment?"".concat(t.comment,"\n").concat(P):P)}return e.resolved=t}},{key:"listNonDefaultTags",value:function(){return(0,a.default)(this.contents).filter((function(e){return 0!==e.indexOf(o.default.defaultPrefix)}))}},{key:"setTagPrefix",value:function(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){var n=this.tagPrefixes.find((function(t){return t.handle===e}));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((function(t){return t.handle!==e}))}},{key:"stringifyTag",value:function(e){if("1.0"===(this.version||this.options.version)){var t=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(t)return"!"+t[1];var n=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?"!".concat(n[1],"/").concat(n[2]):"!".concat(e.replace(/^tag:/,""))}var r=this.tagPrefixes.find((function(t){return 0===e.indexOf(t.prefix)}));if(!r){var a=this.getDefaults().tagPrefixes;r=a&&a.find((function(t){return 0===e.indexOf(t.prefix)}))}if(!r)return"!"===e[0]?e:"!<".concat(e,">");var o=e.substr(r.prefix.length).replace(/[!,[\]{}]/g,(function(e){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e]}));return r.handle+o}},{key:"toJSON",value:function(e){var t=this,n=this.options,r=n.keepBlobsInJSON,a=n.mapAsMap,o=n.maxAliasCount,i=r&&("string"!=typeof e||!(this.contents instanceof c.default)),s={doc:this,keep:i,mapAsMap:i&&!!a,maxAliasCount:o},u=Object.keys(this.anchors.map);return u.length>0&&(s.anchors=u.map((function(e){return{alias:[],aliasCount:0,count:1,node:t.anchors.map[e]}}))),(0,d.default)(this.contents,e,s)}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");this.setSchema();var e=[],t=!1;if(this.version){var r="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?r="%YAML:1.0":"1.1"===this.version&&(r="%YAML 1.1")),e.push(r),t=!0}var a=this.listNonDefaultTags();this.tagPrefixes.forEach((function(n){var r=n.handle,o=n.prefix;a.some((function(e){return 0===e.indexOf(o)}))&&(e.push("%TAG ".concat(r," ").concat(o)),t=!0)})),(t||this.directivesEndMarker)&&e.push("---"),this.commentBefore&&(!t&&this.directivesEndMarker||e.unshift(""),e.unshift(this.commentBefore.replace(/^/gm,"#")));var o={anchors:{},doc:this,indent:""},i=!1,s=null;if(this.contents){this.contents instanceof l.default&&(this.contents.spaceBefore&&(t||this.directivesEndMarker)&&e.push(""),this.contents.commentBefore&&e.push(this.contents.commentBefore.replace(/^/gm,"#")),o.forceBlockIndent=!!this.comment,s=this.contents.comment);var u=s?null:function(){return i=!0},f=this.schema.stringify(this.contents,o,(function(){return s=null}),u);e.push((0,n.default)(f,"",s))}else void 0!==this.contents&&e.push(this.schema.stringify(this.contents,o));return this.comment&&(i&&!s||""===e[e.length-1]||e.push(""),e.push(this.comment.replace(/^/gm,"#"))),e.join("\n")+"\n"}}]),e}();t.default=m,p=m,v="defaults",g={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:o.default.defaultPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:o.default.defaultPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:o.default.defaultPrefix}]}},v in p?Object.defineProperty(p,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[v]=g}));a(St);var At=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(q),r=o(St),a=o(Mt);function o(e){return e&&e.__esModule?e:{default:e}}var i={anchorPrefix:"a",customTags:null,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"};var u=function(e){function t(e){return s(this,t),g(this,c(t).call(this,Object.assign({},i,e)))}return l(t,e),t}(r.default);function f(e,t){var r=(0,n.default)(e),a=new u(t).parse(r[0]);if(r.length>1){a.errors.unshift(new x.YAMLSemanticError(r[1],"Source contains multiple documents; please use YAML.parseAllDocuments()"))}return a}var d={createNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;void 0===n&&"string"==typeof t&&(n=t,t=!0);var o=Object.assign({},r.default.defaults[i.version],i);return new a.default(o).createNode(e,t,n)},defaultOptions:i,Document:u,parse:function(e,t){var n=f(e,t);if(n.warnings.forEach((function(e){return(0,ie.warn)(e)})),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){var r,a=[],o=!0,i=!1,s=void 0;try{for(var f,l=(0,n.default)(e)[Symbol.iterator]();!(o=(f=l.next()).done);o=!0){var c=f.value,d=new u(t);d.parse(c,r),a.push(d),r=d}}catch(e){i=!0,s=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw s}}return a},parseCST:n.default,parseDocument:f,stringify:function(e,t){var n=new u(t);return n.contents=e,String(n)}};t.default=d}));a(At);var kt=At.default,Lt=o((function(e,t){t.__esModule=!0,t.defineParents=function e(t,n){void 0===n&&(n=null),"children"in t&&t.children.forEach((function(n){return e(n,t)})),"anchor"in t&&t.anchor&&e(t.anchor,t),"tag"in t&&t.tag&&e(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach((function(n){return e(n,t)})),"middleComments"in t&&t.middleComments.forEach((function(n){return e(n,t)})),"indicatorComment"in t&&t.indicatorComment&&e(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&e(t.trailingComment,t),"endComments"in t&&t.endComments.forEach((function(n){return e(n,t)})),Object.defineProperty(t,"_parent",{value:n,enumerable:!1})}}));a(Lt);Lt.defineParents;var Tt=o((function(e,t){t.__esModule=!0,t.getPointText=function(e){return e.line+":"+e.column}}));a(Tt);Tt.getPointText;var Pt=o((function(e,t){function n(e,t){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||e.position.start.offset!==e.children[0].position.start.offset));default:return!1}}t.__esModule=!0,t.attachComments=function(e){Lt.defineParents(e);var t=function(e){for(var t=Array.from(new Array(e.position.end.line),(function(){return{}})),n=0,r=e.comments;n<r.length;n++){var a=r[n];t[a.position.start.line-1].comment=a}return function e(t,n){if(n.position.start.offset===n.position.end.offset)return;if("leadingComments"in n){var r=n.position.start,a=t[r.line-1].leadingAttachableNode;(!a||r.column<a.position.start.column)&&(t[r.line-1].leadingAttachableNode=n)}if("trailingComment"in n&&n.position.end.column>1&&"document"!==n.type&&"documentHead"!==n.type){var o=n.position.end,i=t[o.line-1].trailingAttachableNode;(!i||o.column>=i.position.end.column)&&(t[o.line-1].trailingAttachableNode=n)}if("root"!==n.type&&"document"!==n.type&&"documentHead"!==n.type&&"documentBody"!==n.type)for(var s=n.position,u=(r=s.start,[(o=s.end).line].concat(r.line===o.line?[]:r.line)),f=0,l=u;f<l.length;f++){var c=l[f],d=t[c-1].trailingNode;(!d||o.column>=d.position.end.column)&&(t[c-1].trailingNode=n)}"children"in n&&n.children.forEach((function(n){e(t,n)}))}(t,e),t}(e),r=e.children.slice();e.comments.sort((function(e,t){return e.position.start.offset-t.position.end.offset})).filter((function(e){return!e._parent})).forEach((function(e){for(;r.length>1&&e.position.start.line>r[0].position.end.line;)r.shift();!function(e,t,r){var a=e.position.start.line,o=t[a-1].trailingAttachableNode;if(o){if(o.trailingComment)throw new Error("Unexpected multiple trailing comment at "+Tt.getPointText(e.position.start));return Lt.defineParents(e,o),void(o.trailingComment=e)}for(var i=a;i>=r.position.start.line;i--){var s=t[i-1].trailingNode,u=void 0;if(s)u=s;else{if(i===a||!t[i-1].comment)continue;u=t[i-1].comment._parent}for(;;){if(n(u,e))return Lt.defineParents(e,u),void u.endComments.push(e);if(!u._parent)break;u=u._parent}break}for(i=a+1;i<=r.position.end.line;i++){var f=t[i-1].leadingAttachableNode;if(f)return Lt.defineParents(e,f),void f.leadingComments.push(e)}var l=r.children[1];Lt.defineParents(e,l),l.endComments.push(e)}(e,t,r[0])}))}}));a(Pt);Pt.attachComments;var Ct=o((function(e,t){t.__esModule=!0,t.createNode=function(e,t){return{type:e,position:t}}}));a(Ct);Ct.createNode;var Nt,xt=(Nt=k)&&Nt.default||Nt,Rt=o((function(e,t){t.__esModule=!0,t.createRoot=function(e,t,n){return xt.__assign(xt.__assign({},Ct.createNode("root",e)),{children:t,comments:n})}}));a(Rt);Rt.createRoot;var It=o((function(e,t){t.__esModule=!0,t.removeCstBlankLine=function e(t){switch(t.type){case"DOCUMENT":for(var n=t.contents.length-1;n>=0;n--)"BLANK_LINE"===t.contents[n].type?t.contents.splice(n,1):e(t.contents[n]);for(n=t.directives.length-1;n>=0;n--)"BLANK_LINE"===t.directives[n].type&&t.directives.splice(n,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(n=t.items.length-1;n>=0;n--){var r=t.items[n];"char"in r||("BLANK_LINE"===r.type?t.items.splice(n,1):e(r))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&e(t.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(t.type))}}}));a(It);It.removeCstBlankLine;var Bt=o((function(e,t){t.__esModule=!0,t.createLeadingCommentAttachable=function(){return{leadingComments:[]}}}));a(Bt);Bt.createLeadingCommentAttachable;var Dt=o((function(e,t){t.__esModule=!0,t.createTrailingCommentAttachable=function(e){return void 0===e&&(e=null),{trailingComment:e}}}));a(Dt);Dt.createTrailingCommentAttachable;var jt=o((function(e,t){t.__esModule=!0,t.createCommentAttachable=function(){return xt.__assign(xt.__assign({},Bt.createLeadingCommentAttachable()),Dt.createTrailingCommentAttachable())}}));a(jt);jt.createCommentAttachable;var Yt=o((function(e,t){t.__esModule=!0,t.createAlias=function(e,t,n){return xt.__assign(xt.__assign(xt.__assign(xt.__assign({},Ct.createNode("alias",e)),jt.createCommentAttachable()),t),{value:n})}}));a(Yt);Yt.createAlias;var Ft=o((function(e,t){t.__esModule=!0,t.transformAlias=function(e,t){var n=e.cstNode;return Yt.createAlias(t.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),t.transformContent(e),n.rawValue)}}));a(Ft);Ft.transformAlias;var Ut=o((function(e,t){t.__esModule=!0,t.createBlockFolded=function(e){return xt.__assign(xt.__assign({},e),{type:"blockFolded"})}}));a(Ut);Ut.createBlockFolded;var Kt=o((function(e,t){t.__esModule=!0,t.createBlockValue=function(e,t,n,r,a,o){return xt.__assign(xt.__assign(xt.__assign(xt.__assign({},Ct.createNode("blockValue",e)),Bt.createLeadingCommentAttachable()),t),{chomping:n,indent:r,value:a,indicatorComment:o})}}));a(Kt);Kt.createBlockValue;var Wt=o((function(e,t){t.__esModule=!0,function(e){e.Tag="!",e.Anchor="&",e.Comment="#"}(t.PropLeadingCharacter||(t.PropLeadingCharacter={}))}));a(Wt);Wt.PropLeadingCharacter;var Qt=o((function(e,t){t.__esModule=!0,t.createAnchor=function(e,t){return xt.__assign(xt.__assign({},Ct.createNode("anchor",e)),{value:t})}}));a(Qt);Qt.createAnchor;var Vt=o((function(e,t){t.__esModule=!0,t.createComment=function(e,t){return xt.__assign(xt.__assign({},Ct.createNode("comment",e)),{value:t})}}));a(Vt);Vt.createComment;var $t=o((function(e,t){t.__esModule=!0,t.createContent=function(e,t,n){return{anchor:t,tag:e,middleComments:n}}}));a($t);$t.createContent;var qt=o((function(e,t){t.__esModule=!0,t.createTag=function(e,t){return xt.__assign(xt.__assign({},Ct.createNode("tag",e)),{value:t})}}));a(qt);qt.createTag;var Jt=o((function(e,t){t.__esModule=!0,t.transformContent=function(e,t,n){void 0===n&&(n=function(){return!1});for(var r=e.cstNode,a=[],o=null,i=null,s=null,u=0,f=r.props;u<f.length;u++){var l=f[u],c=t.text[l.origStart];switch(c){case Wt.PropLeadingCharacter.Tag:o=o||l,i=qt.createTag(t.transformRange(l),e.tag);break;case Wt.PropLeadingCharacter.Anchor:o=o||l,s=Qt.createAnchor(t.transformRange(l),r.anchor);break;case Wt.PropLeadingCharacter.Comment:var d=Vt.createComment(t.transformRange(l),t.text.slice(l.origStart+1,l.origEnd));t.comments.push(d),!n(d)&&o&&o.origEnd<=l.origStart&&l.origEnd<=r.valueRange.origStart&&a.push(d);break;default:throw new Error("Unexpected leading character "+JSON.stringify(c))}}return $t.createContent(i,s,a)}}));a(Jt);Jt.transformContent;var Gt=o((function(e,t){var n;t.__esModule=!0,function(e){e.CLIP="clip",e.STRIP="strip",e.KEEP="keep"}(n||(n={})),t.transformAstBlockValue=function(e,t){var r=e.cstNode,a="CLIP"===r.chomping?0:1,o=r.header.origEnd-r.header.origStart-1-a!=0,i=t.transformRange({origStart:r.header.origStart,origEnd:r.valueRange.origEnd}),s=null,u=Jt.transformContent(e,t,(function(e){if(!(i.start.offset<e.position.start.offset&&e.position.end.offset<i.end.offset))return!1;if(s)throw new Error("Unexpected multiple indicator comments at "+Tt.getPointText(e.position.start));return s=e,!0}));return Kt.createBlockValue(i,u,n[r.chomping],o?r.blockIndent:null,r.strValue,s)}}));a(Gt);Gt.transformAstBlockValue;var Ht=o((function(e,t){t.__esModule=!0,t.transformBlockFolded=function(e,t){return Ut.createBlockFolded(Gt.transformAstBlockValue(e,t))}}));a(Ht);Ht.transformBlockFolded;var zt=o((function(e,t){t.__esModule=!0,t.createBlockLiteral=function(e){return xt.__assign(xt.__assign({},e),{type:"blockLiteral"})}}));a(zt);zt.createBlockLiteral;var Zt=o((function(e,t){t.__esModule=!0,t.transformBlockLiteral=function(e,t){return zt.createBlockLiteral(Gt.transformAstBlockValue(e,t))}}));a(Zt);Zt.transformBlockLiteral;var Xt=o((function(e,t){t.__esModule=!0,t.transformComment=function(e,t){return Vt.createComment(t.transformRange(e.range),e.comment)}}));a(Xt);Xt.transformComment;var en=o((function(e,t){t.__esModule=!0,t.createDirective=function(e,t,n){return xt.__assign(xt.__assign(xt.__assign({},Ct.createNode("directive",e)),jt.createCommentAttachable()),{name:t,parameters:n})}}));a(en);en.createDirective;var tn=o((function(e,t){t.__esModule=!0,t.extractPropComments=function(e,t){for(var n=0,r=e.props;n<r.length;n++){var a=r[n],o=t.text[a.origStart];switch(o){case Wt.PropLeadingCharacter.Comment:t.comments.push(Vt.createComment(t.transformRange(a),t.text.slice(a.origStart+1,a.origEnd)));break;default:throw new Error("Unexpected leading character "+JSON.stringify(o))}}}}));a(tn);tn.extractPropComments;var nn=o((function(e,t){t.__esModule=!0,t.transformDirective=function(e,t){return tn.extractPropComments(e,t),en.createDirective(t.transformRange(e.range),e.name,e.parameters)}}));a(nn);nn.transformDirective;var rn=o((function(e,t){t.__esModule=!0,t.createDocument=function(e,t,n,r){return xt.__assign(xt.__assign(xt.__assign({},Ct.createNode("document",e)),Dt.createTrailingCommentAttachable(r)),{children:[t,n]})}}));a(rn);rn.createDocument;var an=o((function(e,t){t.__esModule=!0,t.createPosition=function(e,t){return{start:e,end:t}},t.createEmptyPosition=function(e){return{start:e,end:e}}}));a(an);an.createPosition,an.createEmptyPosition;var on=o((function(e,t){t.__esModule=!0,t.createEndCommentAttachable=function(e){return void 0===e&&(e=[]),{endComments:e}}}));a(on);on.createEndCommentAttachable;var sn=o((function(e,t){t.__esModule=!0,t.createDocumentBody=function(e,t,n){return xt.__assign(xt.__assign(xt.__assign({},Ct.createNode("documentBody",e)),on.createEndCommentAttachable(n)),{children:t?[t]:[]})}}));a(sn);sn.createDocumentBody;var un=o((function(e,t){t.__esModule=!0,t.getLast=function(e){return e[e.length-1]}}));a(un);un.getLast;var fn=o((function(e,t){t.__esModule=!0,t.getMatchIndex=function(e,t){var n=e.match(t);return n?n.index:-1}}));a(fn);fn.getMatchIndex;var ln=o((function(e,t){t.__esModule=!0,t.transformDocumentBody=function(e,t,n){var r,a=e.cstNode,o=function(e,t,n){for(var r=[],a=[],o=[],i=!1,s=e.contents.length-1;s>=0;s--){var u=e.contents[s];if("COMMENT"===u.type){var f=t.transformNode(u);n&&n.line===f.position.start.line?o.unshift(f):i?r.unshift(f):f.position.start.offset>=e.valueRange.origEnd?a.unshift(f):r.unshift(f)}else i=!0}if(a.length>1)throw new Error("Unexpected multiple document trailing comments at "+Tt.getPointText(a[1].position.start));if(o.length>1)throw new Error("Unexpected multiple documentHead trailing comments at "+Tt.getPointText(o[1].position.start));return{comments:r,endComments:[],documentTrailingComment:un.getLast(a)||null,documentHeadTrailingComment:un.getLast(o)||null}}(a,t,n),i=o.comments,s=o.endComments,u=o.documentTrailingComment,f=o.documentHeadTrailingComment,l=t.transformNode(e.contents),c=function(e,t,n){var r=fn.getMatchIndex(n.text.slice(e.valueRange.origEnd),/^\.\.\./),a=-1===r?e.valueRange.origEnd:Math.max(0,e.valueRange.origEnd-1);"\r"===n.text[a-1]&&a--;var o=n.transformRange({origStart:null!==t?t.position.start.offset:a,origEnd:a}),i=-1===r?o.end:n.transformOffset(e.valueRange.origEnd+3);return{position:o,documentEndPoint:i}}(a,l,t),d=c.position,h=c.documentEndPoint;return(r=t.comments).push.apply(r,xt.__spreadArrays(i,s)),{documentBody:sn.createDocumentBody(d,l,s),documentEndPoint:h,documentTrailingComment:u,documentHeadTrailingComment:f}}}));a(ln);ln.transformDocumentBody;var cn=o((function(e,t){t.__esModule=!0,t.createDocumentHead=function(e,t,n,r){return xt.__assign(xt.__assign(xt.__assign(xt.__assign({},Ct.createNode("documentHead",e)),on.createEndCommentAttachable(n)),Dt.createTrailingCommentAttachable(r)),{children:t})}}));a(cn);cn.createDocumentHead;var dn=o((function(e,t){t.__esModule=!0,t.transformDocumentHead=function(e,t){var n,r=e.cstNode,a=function(e,t){for(var n=[],r=[],a=[],o=!1,i=e.directives.length-1;i>=0;i--){var s=t.transformNode(e.directives[i]);"comment"===s.type?o?r.unshift(s):a.unshift(s):(o=!0,n.unshift(s))}return{directives:n,comments:r,endComments:a}}(r,t),o=a.directives,i=a.comments,s=a.endComments,u=function(e,t,n){var r=fn.getMatchIndex(n.text.slice(0,e.valueRange.origStart),/---\s*$/),a=-1===r?{origStart:e.valueRange.origStart,origEnd:e.valueRange.origStart}:{origStart:r,origEnd:r+3};0!==t.length&&(a.origStart=t[0].position.start.offset);return{position:n.transformRange(a),endMarkerPoint:-1===r?null:n.transformOffset(r)}}(r,o,t),f=u.position,l=u.endMarkerPoint;return(n=t.comments).push.apply(n,xt.__spreadArrays(i,s)),{createDocumentHeadWithTrailingComment:function(e){return e&&t.comments.push(e),cn.createDocumentHead(f,o,s,e)},documentHeadEndMarkerPoint:l}}}));a(dn);dn.transformDocumentHead;var hn=o((function(e,t){t.__esModule=!0,t.transformDocument=function(e,t){var n=dn.transformDocumentHead(e,t),r=n.createDocumentHeadWithTrailingComment,a=n.documentHeadEndMarkerPoint,o=ln.transformDocumentBody(e,t,a),i=o.documentBody,s=o.documentEndPoint,u=o.documentTrailingComment,f=r(o.documentHeadTrailingComment);return u&&t.comments.push(u),rn.createDocument(an.createPosition(f.position.start,s),f,i,u)}}));a(hn);hn.transformDocument;var pn=o((function(e,t){t.__esModule=!0,t.createFlowCollection=function(e,t,n){return xt.__assign(xt.__assign(xt.__assign(xt.__assign({},Ct.createNode("flowCollection",e)),jt.createCommentAttachable()),t),{children:n})}}));a(pn);pn.createFlowCollection;var vn=o((function(e,t){t.__esModule=!0,t.createFlowMapping=function(e,t,n){return xt.__assign(xt.__assign({},pn.createFlowCollection(e,t,n)),{type:"flowMapping"})}}));a(vn);vn.createFlowMapping;var gn=o((function(e,t){t.__esModule=!0,t.createFlowMappingItem=function(e,t,n){return xt.__assign(xt.__assign(xt.__assign({},Ct.createNode("flowMappingItem",e)),Bt.createLeadingCommentAttachable()),{children:[t,n]})}}));a(gn);gn.createFlowMappingItem;var mn=o((function(e,t){t.__esModule=!0,t.extractComments=function(e,t){for(var n=[],r=0,a=e;r<a.length;r++){var o=a[r];o&&"type"in o&&"COMMENT"===o.type?t.comments.push(t.transformNode(o)):n.push(o)}return n}}));a(mn);mn.extractComments;var yn=o((function(e,t){t.__esModule=!0,t.getFlowMapItemAdditionalRanges=function(e){var t=["?",":"].map((function(t){var n=e.find((function(e){return"char"in e&&e.char===t}));return n?{origStart:n.origOffset,origEnd:n.origOffset+1}:null}));return{additionalKeyRange:t[0],additionalValueRange:t[1]}}}));a(yn);yn.getFlowMapItemAdditionalRanges;var _n=o((function(e,t){t.__esModule=!0,t.createSlicer=function(e,t){var n=t;return function(t){return e.slice(n,n=t)}}}));a(_n);_n.createSlicer;var bn=o((function(e,t){t.__esModule=!0,t.groupCstFlowCollectionItems=function(e){for(var t=[],n=_n.createSlicer(e,1),r=!1,a=1;a<e.length-1;a++){var o=e[a];"char"in o&&","===o.char?(t.push(n(a)),n(a+1),r=!1):r=!0}return r&&t.push(n(e.length-1)),t}}));a(bn);bn.groupCstFlowCollectionItems;var wn=o((function(e,t){t.__esModule=!0,t.createMappingKey=function(e,t){return xt.__assign(xt.__assign(xt.__assign(xt.__assign({},Ct.createNode("mappingKey",e)),Dt.createTrailingCommentAttachable()),on.createEndCommentAttachable()),{children:t?[t]:[]})}}));a(wn);wn.createMappingKey;var En=o((function(e,t){t.__esModule=!0,t.createMappingValue=function(e,t){return xt.__assign(xt.__assign(xt.__assign(xt.__assign({},Ct.createNode("mappingValue",e)),jt.createCommentAttachable()),on.createEndCommentAttachable()),{children:t?[t]:[]})}}));a(En);En.createMappingValue;var On=o((function(e,t){t.__esModule=!0,t.transformAstPair=function(e,t,n,r,a){var o=t.transformNode(e.key),i=t.transformNode("MERGE_PAIR"===e.type?e.value.type?e.value:e.value.items[0]:e.value),s=o||r?wn.createMappingKey(t.transformRange({origStart:r?r.origStart:o.position.start.offset,origEnd:o?o.position.end.offset:r.origStart+1}),o):null,u=i||a?En.createMappingValue(t.transformRange({origStart:a?a.origStart:i.position.start.offset,origEnd:i?i.position.end.offset:a.origStart+1}),i):null;return n(an.createPosition(s?s.position.start:u.position.start,u?u.position.end:s.position.end),s||wn.createMappingKey(an.createEmptyPosition(u.position.start),null),u||En.createMappingValue(an.createEmptyPosition(s.position.end),null))}}));a(On);On.transformAstPair;var Mn=o((function(e,t){t.__esModule=!0,t.transformFlowMap=function(e,t){var n=mn.extractComments(e.cstNode.items,t),r=bn.groupCstFlowCollectionItems(n),a=e.items.map((function(e,n){var a=r[n],o=yn.getFlowMapItemAdditionalRanges(a),i=o.additionalKeyRange,s=o.additionalValueRange;return On.transformAstPair(e,t,gn.createFlowMappingItem,i,s)})),o=n[0],i=un.getLast(n);return vn.createFlowMapping(t.transformRange({origStart:o.origOffset,origEnd:i.origOffset+1}),t.transformContent(e),a)}}));a(Mn);Mn.transformFlowMap;var Sn=o((function(e,t){t.__esModule=!0,t.createFlowSequence=function(e,t,n){return xt.__assign(xt.__assign({},pn.createFlowCollection(e,t,n)),{type:"flowSequence"})}}));a(Sn);Sn.createFlowSequence;var An=o((function(e,t){t.__esModule=!0,t.createFlowSequenceItem=function(e,t){return xt.__assign(xt.__assign({},Ct.createNode("flowSequenceItem",e)),{children:[t]})}}));a(An);An.createFlowSequenceItem;var kn=o((function(e,t){t.__esModule=!0,t.transformFlowSeq=function(e,t){var n=mn.extractComments(e.cstNode.items,t),r=bn.groupCstFlowCollectionItems(n),a=e.items.map((function(e,n){if("PAIR"!==e.type){var a=t.transformNode(e);return An.createFlowSequenceItem(an.createPosition(a.position.start,a.position.end),a)}var o=r[n],i=yn.getFlowMapItemAdditionalRanges(o),s=i.additionalKeyRange,u=i.additionalValueRange;return On.transformAstPair(e,t,gn.createFlowMappingItem,s,u)})),o=n[0],i=un.getLast(n);return Sn.createFlowSequence(t.transformRange({origStart:o.origOffset,origEnd:i.origOffset+1}),t.transformContent(e),a)}}));a(kn);kn.transformFlowSeq;var Ln=o((function(e,t){t.__esModule=!0,t.createMapping=function(e,t,n){return xt.__assign(xt.__assign(xt.__assign(xt.__assign({},Ct.createNode("mapping",e)),Bt.createLeadingCommentAttachable()),t),{children:n})}}));a(Ln);Ln.createMapping;var Tn=o((function(e,t){t.__esModule=!0,t.createMappingItem=function(e,t,n){return xt.__assign(xt.__assign(xt.__assign({},Ct.createNode("mappingItem",e)),Bt.createLeadingCommentAttachable()),{children:[t,n]})}}));a(Tn);Tn.createMappingItem;var Pn=o((function(e,t){t.__esModule=!0,t.transformMap=function(e,t){var n=e.cstNode;n.items.filter((function(e){return"MAP_KEY"===e.type||"MAP_VALUE"===e.type})).forEach((function(e){return tn.extractPropComments(e,t)}));var r=function(e){for(var t=[],n=_n.createSlicer(e,0),r=!1,a=0;a<e.length;a++){"MAP_VALUE"!==e[a].type?(r&&t.push(n(a)),r=!0):(t.push(n(a+1)),r=!1)}r&&t.push(n(1/0));return t}(mn.extractComments(n.items,t)),a=e.items.map((function(e,n){var a=r[n],o="MAP_VALUE"===a[0].type?[null,a[0].range]:[a[0].range,1===a.length?null:a[1].range],i=o[0],s=o[1];return On.transformAstPair(e,t,Tn.createMappingItem,i,s)}));return Ln.createMapping(an.createPosition(a[0].position.start,un.getLast(a).position.end),t.transformContent(e),a)}}));a(Pn);Pn.transformMap;var Cn=o((function(e,t){t.__esModule=!0,t.createPlain=function(e,t,n){return xt.__assign(xt.__assign(xt.__assign(xt.__assign({},Ct.createNode("plain",e)),jt.createCommentAttachable()),t),{value:n})}}));a(Cn);Cn.createPlain;var Nn=o((function(e,t){t.__esModule=!0,t.findLastCharIndex=function(e,t,n){for(var r=t;r>=0;r--)if(n.test(e[r]))return r;return-1}}));a(Nn);Nn.findLastCharIndex;var xn=o((function(e,t){t.__esModule=!0,t.transformPlain=function(e,t){var n=e.cstNode;return Cn.createPlain(t.transformRange({origStart:n.valueRange.origStart,origEnd:Nn.findLastCharIndex(t.text,n.valueRange.origEnd-1,/\S/)+1}),t.transformContent(e),n.strValue)}}));a(xn);xn.transformPlain;var Rn=o((function(e,t){t.__esModule=!0,t.createQuoteDouble=function(e){return xt.__assign(xt.__assign({},e),{type:"quoteDouble"})}}));a(Rn);Rn.createQuoteDouble;var In=o((function(e,t){t.__esModule=!0,t.createQuoteValue=function(e,t,n){return xt.__assign(xt.__assign(xt.__assign(xt.__assign({},Ct.createNode("quoteValue",e)),t),jt.createCommentAttachable()),{value:n})}}));a(In);In.createQuoteValue;var Bn=o((function(e,t){t.__esModule=!0,t.transformAstQuoteValue=function(e,t){var n=e.cstNode;return In.createQuoteValue(t.transformRange(n.valueRange),t.transformContent(e),n.strValue)}}));a(Bn);Bn.transformAstQuoteValue;var Dn=o((function(e,t){t.__esModule=!0,t.transformQuoteDouble=function(e,t){return Rn.createQuoteDouble(Bn.transformAstQuoteValue(e,t))}}));a(Dn);Dn.transformQuoteDouble;var jn=o((function(e,t){t.__esModule=!0,t.createQuoteSingle=function(e){return xt.__assign(xt.__assign({},e),{type:"quoteSingle"})}}));a(jn);jn.createQuoteSingle;var Yn=o((function(e,t){t.__esModule=!0,t.transformQuoteSingle=function(e,t){return jn.createQuoteSingle(Bn.transformAstQuoteValue(e,t))}}));a(Yn);Yn.transformQuoteSingle;var Fn=o((function(e,t){t.__esModule=!0,t.createSequence=function(e,t,n){return xt.__assign(xt.__assign(xt.__assign(xt.__assign(xt.__assign({},Ct.createNode("sequence",e)),Bt.createLeadingCommentAttachable()),on.createEndCommentAttachable()),t),{children:n})}}));a(Fn);Fn.createSequence;var Un=o((function(e,t){t.__esModule=!0,t.createSequenceItem=function(e,t){return xt.__assign(xt.__assign(xt.__assign(xt.__assign({},Ct.createNode("sequenceItem",e)),jt.createCommentAttachable()),on.createEndCommentAttachable()),{children:t?[t]:[]})}}));a(Un);Un.createSequenceItem;var Kn=o((function(e,t){t.__esModule=!0,t.transformSeq=function(e,t){var n=mn.extractComments(e.cstNode.items,t).map((function(n,r){tn.extractPropComments(n,t);var a=t.transformNode(e.items[r]);return Un.createSequenceItem(an.createPosition(t.transformOffset(n.valueRange.origStart),null===a?t.transformOffset(n.valueRange.origStart+1):a.position.end),a)}));return Fn.createSequence(an.createPosition(n[0].position.start,un.getLast(n).position.end),t.transformContent(e),n)}}));a(Kn);Kn.transformSeq;var Wn=o((function(e,t){t.__esModule=!0,t.transformNode=function(e,t){if(null===e)return null;switch(e.type){case"ALIAS":return Ft.transformAlias(e,t);case"BLOCK_FOLDED":return Ht.transformBlockFolded(e,t);case"BLOCK_LITERAL":return Zt.transformBlockLiteral(e,t);case"COMMENT":return Xt.transformComment(e,t);case"DIRECTIVE":return nn.transformDirective(e,t);case"DOCUMENT":return hn.transformDocument(e,t);case"FLOW_MAP":return Mn.transformFlowMap(e,t);case"FLOW_SEQ":return kn.transformFlowSeq(e,t);case"MAP":return Pn.transformMap(e,t);case"PLAIN":return xn.transformPlain(e,t);case"QUOTE_DOUBLE":return Dn.transformQuoteDouble(e,t);case"QUOTE_SINGLE":return Yn.transformQuoteSingle(e,t);case"SEQ":return Kn.transformSeq(e,t);default:throw new Error("Unexpected node type "+e.type)}}}));a(Wn);Wn.transformNode;var Qn=o((function(e,t){t.__esModule=!0,t.createError=function(e,t,n){var r=new SyntaxError(e);return r.name="YAMLSyntaxError",r.source=t,r.position=n,r}}));a(Qn);Qn.createError;var Vn=o((function(e,t){t.__esModule=!0,t.transformError=function(e,t){var n=e.source.range||e.source.valueRange;return Qn.createError(e.message,t.text,t.transformRange(n))}}));a(Vn);Vn.transformError;var $n=o((function(e,t){t.__esModule=!0,t.createPoint=function(e,t,n){return{offset:e,line:t,column:n}}}));a($n);$n.createPoint;var qn=o((function(e,t){t.__esModule=!0,t.transformOffset=function(e,t){e<0?e=0:e>t.text.length&&(e=t.text.length);var n=t.locator.locationForIndex(e);return $n.createPoint(e,n.line+1,n.column+1)}}));a(qn);qn.transformOffset;var Jn=o((function(e,t){t.__esModule=!0,t.transformRange=function(e,t){return an.createPosition(t.transformOffset(e.origStart),t.transformOffset(e.origEnd))}}));a(Jn);Jn.transformRange;var Gn=o((function(e,t){t.__esModule=!0;var n=!0;t.addOrigRange=function(e){if(!e.setOrigRanges()){var t=function(e){return function(e){return"number"==typeof e.start}(e)?(e.origStart=e.start,e.origEnd=e.end,n):function(e){return"number"==typeof e.offset}(e)?(e.origOffset=e.offset,n):void 0};e.forEach((function(e){return function e(t,r){if(!t||"object"!==i(t))return;if(r(t)===n)return;for(var a=0,o=Object.keys(t);a<o.length;a++){var s=o[a];if("context"!==s&&"error"!==s){var u=t[s];Array.isArray(u)?u.forEach((function(t){return e(t,r)})):e(u,r)}}}(e,t)}))}}}));a(Gn);Gn.addOrigRange;var Hn=o((function(e,t){t.__esModule=!0,t.removeFakeNodes=function e(t){if("children"in t){if(1===t.children.length){var n=t.children[0];if("plain"===n.type&&null===n.tag&&null===n.anchor&&""===n.value)return t.children.splice(0,1),t}t.children.forEach(e)}return t}}));a(Hn);Hn.removeFakeNodes;var zn=o((function(e,t){t.__esModule=!0,t.createUpdater=function(e,t,n,r){var a=t(e);return function(t){r(a,t)&&n(e,a=t)}}}));a(zn);zn.createUpdater;var Zn=o((function(e,t){function n(e){return e.start}function r(e,t){e.start=t}function a(e){return e.end}function o(e,t){e.end=t}function i(e,t){return t.offset<e.offset}function s(e,t){return t.offset>e.offset}t.__esModule=!0,t.updatePositions=function e(t){if(null!==t&&"children"in t){var u=t.children;if(u.forEach(e),"document"===t.type){var f=t.children,l=f[0],c=f[1];l.position.start.offset===l.position.end.offset?l.position.start=l.position.end=c.position.start:c.position.start.offset===c.position.end.offset&&(c.position.start=c.position.end=l.position.end)}var d=zn.createUpdater(t.position,n,r,i),h=zn.createUpdater(t.position,a,o,s);"endComments"in t&&0!==t.endComments.length&&(d(t.endComments[0].position.start),h(un.getLast(t.endComments).position.end));var p=u.filter((function(e){return null!==e}));if(0!==p.length){var v=p[0],g=un.getLast(p);d(v.position.start),h(g.position.end),"leadingComments"in v&&0!==v.leadingComments.length&&d(v.leadingComments[0].position.start),"tag"in v&&v.tag&&d(v.tag.position.start),"anchor"in v&&v.anchor&&d(v.anchor.position.start),"trailingComment"in g&&g.trailingComment&&h(g.trailingComment.position.end)}}}}));a(Zn);Zn.updatePositions;var Xn=o((function(e,t){t.__esModule=!0,t.parse=function(e){var t=kt.parseCST(e);Gn.addOrigRange(t);var n=t.map((function(e){return new kt.Document({merge:!0,keepCstNodes:!0}).parse(e)})),r=[],a={text:e,locator:new L.default(e),comments:r,transformOffset:function(e){return qn.transformOffset(e,a)},transformRange:function(e){return Jn.transformRange(e,a)},transformNode:function(e){return Wn.transformNode(e,a)},transformContent:function(e){return Jt.transformContent(e,a)}},o=n.find((function(e){return 0!==e.errors.length}));if(o)throw Vn.transformError(o.errors[0],a);n.forEach((function(e){return It.removeCstBlankLine(e.cstNode)}));var i=Rt.createRoot(a.transformRange({origStart:0,origEnd:a.text.length}),n.map(a.transformNode),r);return Pt.attachComments(i),Zn.updatePositions(i),Hn.removeFakeNodes(i),i}}));a(Xn);Xn.parse;var er=o((function(e,t){t.__esModule=!0,xt.__exportStar(Xn,t)}));a(er);var tr={parsers:{yaml:{astFormat:"yaml",parse:function(e){try{var n=er.parse(e);return delete n.comments,n}catch(e){throw e&&e.position?t(e.message,e.position):e}},hasPragma:n,locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}}}},nr=tr.parsers;e.default=tr,e.parsers=nr,Object.defineProperty(e,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */
16
+ var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function c(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return s}function l(e){return this instanceof l?(this.v=e,this):new l(e)}var f=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return i},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},__decorate:function(e,t,n,r){var o,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var i=e.length-1;i>=0;i--)(o=e[i])&&(s=(a<3?o(s):a>3?o(t,n,s):o(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function s(e){try{c(r.next(e))}catch(e){a(e)}}function i(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(s,i)}c((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function i(a){return function(i){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,i])}}},__exportStar:function(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])},__values:c,__read:u,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],s=0,i=a.length;s<i;s++,o++)r[o]=a[s];return r},__await:l,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),a=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||i(e,t)}))})}function i(e,t){try{(n=o[e](t)).value instanceof l?Promise.resolve(n.value.v).then(c,u):f(a[0][2],n)}catch(e){f(a[0][3],e)}var n}function c(e){i("next",e)}function u(e){i("throw",e)}function f(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:l(e[r](t)),done:"return"===r}:o?o(t):t}:o}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=c(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),d=a((function(e,t){var n=function(){function e(e){this.string=e;for(var t=[0],n=0;n<e.length;)switch(e[n]){case"\n":n+="\n".length,t.push(n);break;case"\r":"\n"===e[n+="\r".length]&&(n+="\n".length),t.push(n);break;default:n++}this.offsets=t}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.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?null: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.string.length:this.offsets[e+1])-t},e}();t.__esModule=!0,t.default=n}));o(d);var h=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Type=t.Char=void 0;t.Char={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."};t.Type={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"}}));o(h);h.Type,h.Char;var p=a((function(e,t){function n(e){const t=[0];let n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function r(e){let t,r;return"string"==typeof e?(t=n(e),r=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=n(e.context.src)),t=e.lineStarts,r=e.context.src)),{lineStarts:t,src:r}}function o(e,t){const{lineStarts:n,src:o}=r(t);if(!n||!(e>=1)||e>n.length)return null;const a=n[e-1];let s=n[e];for(;s&&s>a&&"\n"===o[s-1];)--s;return o.slice(a,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.getLinePos=function(e,t){if("number"!=typeof e||e<0)return null;const{lineStarts:n,src:o}=r(t);if(!n||!o||e>o.length)return null;for(let t=0;t<n.length;++t){const r=n[t];if(e<r)return{line:t,col:e-n[t-1]+1};if(e===r)return{line:t+1,col:1}}const a=n.length;return{line:a,col:e-n[a-1]+1}},t.getLine=o,t.getPrettyContext=function({start:e,end:t},n,r=80){let a=o(e.line,n);if(!a)return null;let{col:s}=e;if(a.length>r)if(s<=r-10)a=a.substr(0,r-1)+"…";else{const e=Math.round(r/2);a.length>s+e&&(a=a.substr(0,s+e-1)+"…"),s-=a.length-r,a="…"+a.substr(1-r)}let i=1,c="";t&&(t.line===e.line&&s+(t.col-e.col)<=r+1?i=t.col-e.col:(i=Math.min(a.length+1,r)-s,c="…"));const u=s>1?" ".repeat(s-1):"",l="^".repeat(i);return"".concat(a,"\n").concat(u).concat(l).concat(c)}}));o(p);p.getLinePos,p.getLine,p.getPrettyContext;var g=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class n{static copy(e){return new n(e.start,e.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){const{start:n,end:r}=this;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;let o=t;for(;o<e.length&&!(e[o]>n);)++o;this.origStart=n+o;const a=o;for(;o<e.length&&!(e[o]>=r);)++o;return this.origEnd=r+o,a}}t.default=n}));o(g);var m=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=g)&&n.__esModule?n:{default:n};class o{static addStringTerminator(e,t,n){if("\n"===n[n.length-1])return n;const r=o.endOfWhiteSpace(e,t);return r>=e.length||"\n"===e[r]?n+"\n":n}static atDocumentBoundary(e,t,n){const r=e[t];if(!r)return!0;const o=e[t-1];if(o&&"\n"!==o)return!1;if(n){if(r!==n)return!1}else if(r!==h.Char.DIRECTIVES_END&&r!==h.Char.DOCUMENT_END)return!1;const a=e[t+1],s=e[t+2];if(a!==r||s!==r)return!1;const i=e[t+3];return!i||"\n"===i||"\t"===i||" "===i}static endOfIdentifier(e,t){let n=e[t];const r="<"===n,o=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===o.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(e,t,n){const r=o.endOfIndent(e,n);if(r>n+t)return r;{const t=o.endOfWhiteSpace(e,r),n=e[t];if(!n||"\n"===n)return t}return null}static atBlank(e,t,n){const 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(e,t){const n=e[t];return n?"\n"!==n&&"\n"===e[t-1]?t-1:o.endOfWhiteSpace(e,t):t}static foldNewline(e,t,n){let r=0,a=!1,s="",i=e[t+1];for(;" "===i||"\t"===i||"\n"===i;){switch(i){case"\n":r=0,t+=1,s+="\n";break;case"\t":r<=n&&(a=!0),t=o.endOfWhiteSpace(e,t+2)-1;break;case" ":r+=1,t+=1}i=e[t+1]}return s||(s=" "),i&&r<=n&&(a=!0),{fold:s,offset:t,error:a}}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;const{src:r}=this.context,o=this.props[e];return o&&r[o.start]===t?r.slice(o.start+(n?1:0),o.end):null}get anchor(){for(let e=0;e<this.props.length;++e){const t=this.getPropValue(e,h.Char.ANCHOR,!0);if(null!=t)return t}return null}get comment(){const e=[];for(let t=0;t<this.props.length;++t){const n=this.getPropValue(t,h.Char.COMMENT,!0);null!=n&&e.push(n)}return e.length>0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return!1;if(!this.valueRange)return!1;const{end:n}=this.valueRange;return e!==n||o.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;t<this.props.length;++t)if(e[this.props[t].start]===h.Char.COMMENT)return!0}return!1}get hasProps(){if(this.context){const{src:e}=this.context;for(let t=0;t<this.props.length;++t)if(e[this.props[t].start]!==h.Char.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return-1!==[h.Type.FLOW_MAP,h.Type.FLOW_SEQ,h.Type.QUOTE_DOUBLE,h.Type.QUOTE_SINGLE].indexOf(this.type)}get rangeAsLinePos(){if(!this.range||!this.context)return;const e=(0,p.getLinePos)(this.range.start,this.context.root);return e?{start:e,end:(0,p.getLinePos)(this.range.end,this.context.root)}:void 0}get rawValue(){if(!this.valueRange||!this.context)return null;const{start:e,end:t}=this.valueRange;return this.context.src.slice(e,t)}get tag(){for(let e=0;e<this.props.length;++e){const t=this.getPropValue(e,h.Char.TAG,!1);if(null!=t){if("<"===t[1])return{verbatim:t.slice(2,-1)};{const[e,n,r]=t.match(/^(.*!)([^!]*)$/);return{handle:n,suffix:r}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;const{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(e){const{src:t}=this.context;if(t[e]===h.Char.COMMENT){const n=o.endOfLine(t,e+1),a=new r.default(e,n);return this.props.push(a),n}return e}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(){const{context:{src:e},range:t,value:n}=this;if(null!=n)return n;const r=e.slice(t.start,t.end);return o.addStringTerminator(e,t.end,r)}}t.default=o}));o(m);var y=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLWarning=t.YAMLSyntaxError=t.YAMLSemanticError=t.YAMLReferenceError=t.YAMLError=void 0;var n=o(m),r=o(g);function o(e){return e&&e.__esModule?e:{default:e}}class a extends Error{constructor(e,t,r){if(!(r&&t instanceof n.default))throw new Error("Invalid arguments for new ".concat(e));super(),this.name=e,this.message=r,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new r.default(this.offset,this.offset+1);const t=e&&(0,p.getLinePos)(this.offset,e);if(t){const 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){const{line:t,col:n}=this.linePos.start;this.message+=" at line ".concat(t,", column ").concat(n);const r=e&&(0,p.getPrettyContext)(this.linePos,e);r&&(this.message+=":\n\n".concat(r,"\n"))}delete this.source}}t.YAMLError=a;t.YAMLReferenceError=class extends a{constructor(e,t){super("YAMLReferenceError",e,t)}};t.YAMLSemanticError=class extends a{constructor(e,t){super("YAMLSemanticError",e,t)}};t.YAMLSyntaxError=class extends a{constructor(e,t){super("YAMLSyntaxError",e,t)}};t.YAMLWarning=class extends a{constructor(e,t){super("YAMLWarning",e,t)}}}));o(y);y.YAMLWarning,y.YAMLSyntaxError,y.YAMLSemanticError,y.YAMLReferenceError,y.YAMLError;var v=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(m),r=o(g);function o(e){return e&&e.__esModule?e:{default:e}}class a extends n.default{constructor(){super(h.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,t){this.context=e;const{src:o}=e;let a=t+1;for(;n.default.atBlank(o,a);){const e=n.default.endOfWhiteSpace(o,a);if("\n"!==e)break;a=e+1}return this.range=new r.default(t,a),a}}t.default=a}));o(v);var _=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(v),r=a(m),o=a(g);function a(e){return e&&e.__esModule?e:{default:e}}class s extends r.default{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:a,src:s}=e;let{atLineStart:i,lineStart:c}=e;i||this.type!==h.Type.SEQ_ITEM||(this.error=new y.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));const u=i?t-c:e.indent;let l=r.default.endOfWhiteSpace(s,t+1),f=s[l];const d="#"===f,p=[];let g=null;for(;"\n"===f||"#"===f;){if("#"===f){const e=r.default.endOfLine(s,l+1);p.push(new o.default(l,e)),l=e}else{i=!0,c=l+1,"\n"===s[r.default.endOfWhiteSpace(s,c)]&&0===p.length&&(g=new n.default,c=g.parse({src:s},c)),l=r.default.endOfIndent(s,c)}f=s[l]}if(r.default.nextNodeIsIndented(f,l-(c+u),this.type!==h.Type.SEQ_ITEM)?this.node=a({atLineStart:i,inCollection:!1,indent:u,lineStart:c,parent:this},l):f&&c>t+1&&(l=c-1),this.node){if(g){const t=e.parent.items||e.parent.contents;t&&t.push(g)}p.length&&Array.prototype.push.apply(this.props,p),l=this.node.range.end}else if(d){const e=p[0];this.props.push(e),l=e.end}else l=r.default.endOfLine(s,t+1);const m=this.node?this.node.valueRange.end:l;return this.valueRange=new o.default(t,m),l}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:n,value:o}=this;if(null!=o)return o;const a=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return r.default.addStringTerminator(e,n.end,a)}}t.default=s}));o(_);var b=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(m),r=o(g);function o(e){return e&&e.__esModule?e:{default:e}}class a extends n.default{constructor(){super(h.Type.COMMENT)}parse(e,t){this.context=e;const n=this.parseComment(t);return this.range=new r.default(t,n),n}}t.default=a}));o(b);var w=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.grabCollectionEndComments=c,t.default=void 0;var n=i(v),r=i(_),o=i(b),a=i(m),s=i(g);function i(e){return e&&e.__esModule?e:{default:e}}function c(e){let t=e;for(;t instanceof r.default;)t=t.node;if(!(t instanceof u))return null;const n=t.items.length;let o=-1;for(let e=n-1;e>=0;--e){const n=t.items[e];if(n.type===h.Type.COMMENT){const{indent:t,lineStart:r}=n.context;if(t>0&&n.range.start>=r+t)break;o=e}else{if(n.type!==h.Type.BLANK_LINE)break;o=e}}if(-1===o)return null;const a=t.items.splice(o,n-o),s=a[0].range.start;for(;t.range.end=s,t.valueRange&&t.valueRange.end>s&&(t.valueRange.end=s),t!==e;)t=t.context.parent;return a}class u extends a.default{static nextContentHasIndent(e,t,n){const r=a.default.endOfLine(e,t)+1,o=e[t=a.default.endOfWhiteSpace(e,r)];return!!o&&(t>=r+n||("#"===o||"\n"===o)&&u.nextContentHasIndent(e,t,n))}constructor(e){super(e.type===h.Type.SEQ_ITEM?h.Type.SEQ:h.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);const n=e.props[0]||e.valueRange;e.range.start=n.start;break}this.items=[e];const t=c(e);t&&Array.prototype.push.apply(this.items,t)}get includesTrailingLines(){return this.items.length>0}parse(e,t){this.context=e;const{parseNode:r,src:i}=e;let l=a.default.startOfLine(i,t);const f=this.items[0];f.context.parent=this,this.valueRange=s.default.copy(f.valueRange);const d=f.range.start-f.context.lineStart;let p=t;p=a.default.normalizeOffset(i,p);let g=i[p],m=a.default.endOfWhiteSpace(i,l)===p,y=!1;for(;g;){for(;"\n"===g||"#"===g;){if(m&&"\n"===g&&!y){const e=new n.default;if(p=e.parse({src:i},p),this.valueRange.end=p,p>=i.length){g=null;break}this.items.push(e),p-=1}else if("#"===g){if(p<l+d&&!u.nextContentHasIndent(i,p,d))return p;const e=new o.default;if(p=e.parse({indent:d,lineStart:l,src:i},p),this.items.push(e),this.valueRange.end=p,p>=i.length){g=null;break}}if(l=p+1,p=a.default.endOfIndent(i,l),a.default.atBlank(i,p)){const e=a.default.endOfWhiteSpace(i,p),t=i[e];t&&"\n"!==t&&"#"!==t||(p=e)}g=i[p],m=!0}if(!g)break;if(p!==l+d&&(m||":"!==g)){l>t&&(p=l);break}if(f.type===h.Type.SEQ_ITEM!=("-"===g)){let e=!0;if("-"===g){const t=i[p+1];e=!t||"\n"===t||"\t"===t||" "===t}if(e){l>t&&(p=l);break}}const e=r({atLineStart:m,inCollection:!0,indent:d,lineStart:l,parent:this},p);if(!e)return p;if(this.items.push(e),this.valueRange.end=e.valueRange.end,p=a.default.normalizeOffset(i,e.range.end),g=i[p],m=!1,y=e.includesTrailingLines,g){let e=p-1,t=i[e];for(;" "===t||"\t"===t;)t=i[--e];"\n"===t&&(l=e+1,m=!0)}const s=c(e);s&&Array.prototype.push.apply(this.items,s)}return p}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach(n=>{t=n.setOrigRanges(e,t)}),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;let o=e.slice(n.start,t[0].range.start)+String(t[0]);for(let e=1;e<t.length;++e){const n=t[e],{atLineStart:r,indent:a}=n.context;if(r)for(let e=0;e<a;++e)o+=" ";o+=String(n)}return a.default.addStringTerminator(e,n.end,o)}}t.default=u}));o(w);w.grabCollectionEndComments;var E=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(m),r=o(g);function o(e){return e&&e.__esModule?e:{default:e}}class a extends n.default{constructor(){super(h.Type.DIRECTIVE),this.name=null}get parameters(){const e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){const{src:t}=this.context;let 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){const{src:t}=this.context;let n=e,o=t[n];for(;o&&"\n"!==o&&"#"!==o;)o=t[n+=1];return this.valueRange=new r.default(e,n),n}parse(e,t){this.context=e;let n=this.parseName(t+1);return n=this.parseParameters(n),n=this.parseComment(n),this.range=new r.default(t,n),n}}t.default=a}));o(E);var O=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(v),r=i(b),o=i(E),a=i(m),s=i(g);function i(e){return e&&e.__esModule?e:{default:e}}class c extends a.default{static startCommentOrEndBlankLine(e,t){const n=a.default.endOfWhiteSpace(e,t),r=e[n];return"#"===r||"\n"===r?n:t}constructor(){super(h.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(e){const{src:t}=this.context;this.directives=[];let i=!0,u=!1,l=e;for(;!a.default.atDocumentBoundary(t,l,h.Char.DIRECTIVES_END);)switch(l=c.startCommentOrEndBlankLine(t,l),t[l]){case"\n":if(i){const e=new n.default;l=e.parse({src:t},l),l<t.length&&this.directives.push(e)}else l+=1,i=!0;break;case"#":{const e=new r.default;l=e.parse({src:t},l),this.directives.push(e),i=!1}break;case"%":{const e=new o.default;l=e.parse({parent:this,src:t},l),this.directives.push(e),u=!0,i=!1}break;default:return u?this.error=new y.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l}return t[l]?(this.directivesEndMarker=new s.default(l,l+3),l+3):(u?this.error=new y.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l)}parseContents(e){const{parseNode:t,src:o}=this.context;this.contents||(this.contents=[]);let i=e;for(;"-"===o[i-1];)i-=1;let u=a.default.endOfWhiteSpace(o,e),l=i===e;for(this.valueRange=new s.default(u);!a.default.atDocumentBoundary(o,u,h.Char.DOCUMENT_END);){switch(o[u]){case"\n":if(l){const e=new n.default;u=e.parse({src:o},u),u<o.length&&this.contents.push(e)}else u+=1,l=!0;i=u;break;case"#":{const e=new r.default;u=e.parse({src:o},u),this.contents.push(e),l=!1}break;default:{const e=a.default.endOfIndent(o,u),n=t({atLineStart:l,indent:-1,inFlow:!1,inCollection:!1,lineStart:i,parent:this},e);if(!n)return this.valueRange.end=e;this.contents.push(n),u=n.range.end,l=!1;const r=(0,w.grabCollectionEndComments)(n);r&&Array.prototype.push.apply(this.contents,r)}}u=c.startCommentOrEndBlankLine(o,u)}if(this.valueRange.end=u,o[u]&&(this.documentEndMarker=new s.default(u,u+3),u+=3,o[u])){if(u=a.default.endOfWhiteSpace(o,u),"#"===o[u]){const e=new r.default;u=e.parse({src:o},u),this.contents.push(e)}switch(o[u]){case"\n":u+=1;break;case void 0:break;default:this.error=new y.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return u}parse(e,t){e.root=this,this.context=e;const{src:n}=e;let 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(){const{contents:e,directives:t,value:n}=this;if(null!=n)return n;let r=t.join("");return e.length>0&&((t.length>0||e[0].type===h.Type.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}t.default=c}));o(O);var M=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(m),r=o(g);function o(e){return e&&e.__esModule?e:{default:e}}class a extends n.default{parse(e,t){this.context=e;const{src:o}=e;let a=n.default.endOfIdentifier(o,t+1);return this.valueRange=new r.default(t+1,a),a=n.default.endOfWhiteSpace(o,a),a=this.parseComment(a),a}}t.default=a}));o(M);var S=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Chomp=void 0;var n=o(m),r=o(g);function o(e){return e&&e.__esModule?e:{default:e}}const a={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};t.Chomp=a;class s extends n.default{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping=a.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===a.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:r,src:o}=this.context;if(this.valueRange.isEmpty())return"";let s=null,i=o[t-1];for(;"\n"===i||"\t"===i||" "===i;){if(t-=1,t<=e){if(this.chomping===a.KEEP)break;return""}"\n"===i&&(s=t),i=o[t-1]}let c=t+1;s&&(this.chomping===a.KEEP?(c=s,t=this.valueRange.end):t=s);const u=r+this.blockIndent,l=this.type===h.Type.BLOCK_FOLDED;let f=!0,d="",p="",g=!1;for(let r=e;r<t;++r){for(let e=0;e<u&&" "===o[r];++e)r+=1;const e=o[r];if("\n"===e)"\n"===p?d+="\n":p="\n";else{const a=n.default.endOfLine(o,r),s=o.slice(r,a);r=a,l&&(" "===e||"\t"===e)&&r<c?(" "===p?p="\n":g||f||"\n"!==p||(p="\n\n"),d+=p+s,p=a<t&&o[a]||"",g=!0):(d+=p+s,p=l&&r<c?" ":"\n",g=!1),f&&""!==s&&(f=!1)}}return this.chomping===a.STRIP?d:d+"\n"}parseBlockHeader(e){const{src:t}=this.context;let n=e+1,o="";for(;;){const s=t[n];switch(s){case"-":this.chomping=a.STRIP;break;case"+":this.chomping=a.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":o+=s;break;default:return this.blockIndent=Number(o)||null,this.header=new r.default(e,n),n}n+=1}}parseBlockValue(e){const{indent:t,src:o}=this.context;let s=e,i=e,c=this.blockIndent?t+this.blockIndent-1:t,u=1;for(let e=o[s];"\n"===e&&(s+=1,!n.default.atDocumentBoundary(o,s));e=o[s]){const e=n.default.endOfBlockIndent(o,c,s);if(null===e)break;if(!this.blockIndent){const n=e-(s+t);if("\n"!==o[e]){if(n<u){s-=1;break}this.blockIndent=n,c=t+this.blockIndent-1}else n>u&&(u=n)}s="\n"===o[e]?e:i=n.default.endOfLine(o,e)}return this.chomping!==a.KEEP&&(s=o[i]?i+1:i),this.valueRange=new r.default(e+1,s),s}parse(e,t){this.context=e;const{src:r}=e;let o=this.parseBlockHeader(t);return o=n.default.endOfWhiteSpace(r,o),o=this.parseComment(o),o=this.parseBlockValue(o),o}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}}t.default=s}));o(S);S.Chomp;var A=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(v),r=s(b),o=s(m),a=s(g);function s(e){return e&&e.__esModule?e:{default:e}}class i extends o.default{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(e=this.items.length){const t=this.items[e-1];return!!t&&(t.jsonLike||t.type===h.Type.COMMENT&&this.nodeIsJsonLike(e-1))}parse(e,t){this.context=e;const{parseNode:s,src:i}=e;let{indent:c,lineStart:u}=e,l=i[t];this.items=[{char:l,offset:t}];let f=o.default.endOfWhiteSpace(i,t+1);for(l=i[f];l&&"]"!==l&&"}"!==l;){switch(l){case"\n":if(u=f+1,"\n"===i[o.default.endOfWhiteSpace(i,u)]){const e=new n.default;u=e.parse({src:i},u),this.items.push(e)}if(f=o.default.endOfIndent(i,u),f<=u+c&&(l=i[f],f<u+c||"]"!==l&&"}"!==l)){const e="Insufficient indentation in flow collection";this.error=new y.YAMLSemanticError(this,e)}break;case",":this.items.push({char:l,offset:f}),f+=1;break;case"#":{const e=new r.default;f=e.parse({src:i},f),this.items.push(e)}break;case"?":case":":{const e=i[f+1];if("\n"===e||"\t"===e||" "===e||","===e||":"===l&&this.prevNodeIsJsonLike()){this.items.push({char:l,offset:f}),f+=1;break}}default:{const e=s({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:u,parent:this},f);if(!e)return this.valueRange=new a.default(t,f),f;this.items.push(e),f=o.default.normalizeOffset(i,e.range.end)}}f=o.default.endOfWhiteSpace(i,f),l=i[f]}return this.valueRange=new a.default(t,f+1),l&&(this.items.push({char:l,offset:f}),f=o.default.endOfWhiteSpace(i,f+1),f=this.parseComment(f)),f}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach(n=>{if(n instanceof o.default)t=n.setOrigRanges(e,t);else if(0===e.length)n.origOffset=n.offset;else{let r=t;for(;r<e.length&&!(e[r]>n.offset);)++r;n.origOffset=n.offset+r,t=r}}),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;const a=t.filter(e=>e instanceof o.default);let s="",i=n.start;return a.forEach(t=>{const n=e.slice(i,t.range.start);i=t.range.end,s+=n+String(t),"\n"===s[s.length-1]&&"\n"!==e[i-1]&&"\n"===e[i]&&(i+=1)}),s+=e.slice(i,n.end),o.default.addStringTerminator(e,n.end,s)}}t.default=i}));o(A);var L=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(m),r=o(g);function o(e){return e&&e.__esModule?e:{default:e}}class a extends n.default{static endOfLine(e,t,n){let r=e[t],o=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){const t=e[o+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t))break;if((" "===r||"\t"===r)&&"#"===t)break;o+=1,r=t}return o}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:r}=this.context;let o=r[t-1];for(;e<t&&("\n"===o||"\t"===o||" "===o);)o=r[--t-1];for(o=r[e];e<t&&("\n"===o||"\t"===o||" "===o);)o=r[++e];let a="";for(let o=e;o<t;++o){const e=r[o];if("\n"===e){const{fold:e,offset:t}=n.default.foldNewline(r,o,-1);a+=e,o=t}else if(" "===e||"\t"===e){const n=o;let s=r[o+1];for(;o<t&&(" "===s||"\t"===s);)o+=1,s=r[o+1];"\n"!==s&&(a+=o>n?r.slice(n,o+1):e)}else a+=e}return a}parseBlockValue(e){const{indent:t,inFlow:r,src:o}=this.context;let s=e,i=e;for(let e=o[s];"\n"===e&&!n.default.atDocumentBoundary(o,s+1);e=o[s]){const e=n.default.endOfBlockIndent(o,t,s+1);if(null===e||"#"===o[e])break;"\n"===o[e]?s=e:(i=a.endOfLine(o,e,r),s=i)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=i,i}parse(e,t){this.context=e;const{inFlow:o,src:s}=e;let i=t;const c=s[i];return c&&"#"!==c&&"\n"!==c&&(i=a.endOfLine(s,t,o)),this.valueRange=new r.default(t,i),i=n.default.endOfWhiteSpace(s,i),i=this.parseComment(i),this.hasComment&&!this.valueRange.isEmpty()||(i=this.parseBlockValue(i)),i}}t.default=a}));o(L);var T=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(m),r=o(g);function o(e){return e&&e.__esModule?e:{default:e}}class a extends n.default{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;const e=[],{start:t,end:r}=this.valueRange,{indent:o,src:a}=this.context;'"'!==a[r-1]&&e.push(new y.YAMLSyntaxError(this,'Missing closing "quote'));let s="";for(let i=t+1;i<r-1;++i){const t=a[i];if("\n"===t){n.default.atDocumentBoundary(a,i+1)&&e.push(new y.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));const{fold:t,offset:r,error:c}=n.default.foldNewline(a,i,o);s+=t,i=r,c&&e.push(new y.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===t)switch(i+=1,a[i]){case"0":s+="\0";break;case"a":s+="";break;case"b":s+="\b";break;case"e":s+="";break;case"f":s+="\f";break;case"n":s+="\n";break;case"r":s+="\r";break;case"t":s+="\t";break;case"v":s+="\v";break;case"N":s+="…";break;case"_":s+=" ";break;case"L":s+="\u2028";break;case"P":s+="\u2029";break;case" ":s+=" ";break;case'"':s+='"';break;case"/":s+="/";break;case"\\":s+="\\";break;case"\t":s+="\t";break;case"x":s+=this.parseCharCode(i+1,2,e),i+=2;break;case"u":s+=this.parseCharCode(i+1,4,e),i+=4;break;case"U":s+=this.parseCharCode(i+1,8,e),i+=8;break;case"\n":for(;" "===a[i+1]||"\t"===a[i+1];)i+=1;break;default:e.push(new y.YAMLSyntaxError(this,"Invalid escape sequence ".concat(a.substr(i-1,2)))),s+="\\"+a[i]}else if(" "===t||"\t"===t){const e=i;let n=a[i+1];for(;" "===n||"\t"===n;)i+=1,n=a[i+1];"\n"!==n&&(s+=i>e?a.slice(e,i+1):t)}else s+=t}return e.length>0?{errors:e,str:s}:s}parseCharCode(e,t,n){const{src:r}=this.context,o=r.substr(e,t),a=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(a)?(n.push(new y.YAMLSyntaxError(this,"Invalid escape sequence ".concat(r.substr(e-2,t+2)))),r.substr(e-2,t+2)):String.fromCodePoint(a)}parse(e,t){this.context=e;const{src:o}=e;let s=a.endOfQuote(o,t+1);return this.valueRange=new r.default(t,s),s=n.default.endOfWhiteSpace(o,s),s=this.parseComment(s),s}}t.default=a}));o(T);var P=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(m),r=o(g);function o(e){return e&&e.__esModule?e:{default:e}}class a extends n.default{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;const e=[],{start:t,end:r}=this.valueRange,{indent:o,src:a}=this.context;"'"!==a[r-1]&&e.push(new y.YAMLSyntaxError(this,"Missing closing 'quote"));let s="";for(let i=t+1;i<r-1;++i){const t=a[i];if("\n"===t){n.default.atDocumentBoundary(a,i+1)&&e.push(new y.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));const{fold:t,offset:r,error:c}=n.default.foldNewline(a,i,o);s+=t,i=r,c&&e.push(new y.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===t)s+=t,i+=1,"'"!==a[i]&&e.push(new y.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(" "===t||"\t"===t){const e=i;let n=a[i+1];for(;" "===n||"\t"===n;)i+=1,n=a[i+1];"\n"!==n&&(s+=i>e?a.slice(e,i+1):t)}else s+=t}return e.length>0?{errors:e,str:s}:s}parse(e,t){this.context=e;const{src:o}=e;let s=a.endOfQuote(o,t+1);return this.valueRange=new r.default(t,s),s=n.default.endOfWhiteSpace(o,s),s=this.parseComment(s),s}}t.default=a}));o(P);var C=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=d(M),r=d(S),o=d(w),a=d(_),s=d(A),i=d(m),c=d(L),u=d(T),l=d(P),f=d(g);function d(e){return e&&e.__esModule?e:{default:e}}class p{static parseType(e,t,n){switch(e[t]){case"*":return h.Type.ALIAS;case">":return h.Type.BLOCK_FOLDED;case"|":return h.Type.BLOCK_LITERAL;case"{":return h.Type.FLOW_MAP;case"[":return h.Type.FLOW_SEQ;case"?":return!n&&i.default.atBlank(e,t+1,!0)?h.Type.MAP_KEY:h.Type.PLAIN;case":":return!n&&i.default.atBlank(e,t+1,!0)?h.Type.MAP_VALUE:h.Type.PLAIN;case"-":return!n&&i.default.atBlank(e,t+1,!0)?h.Type.SEQ_ITEM:h.Type.PLAIN;case'"':return h.Type.QUOTE_DOUBLE;case"'":return h.Type.QUOTE_SINGLE;default:return h.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:d,inFlow:g,indent:m,lineStart:v,parent:_}={}){var b,w,E;E=(e,t)=>{if(i.default.atDocumentBoundary(this.src,t))return null;const d=new p(this,e),{props:g,type:m,valueStart:v}=d.parseProps(t),_=function(e,t){switch(e){case h.Type.ALIAS:return new n.default(e,t);case h.Type.BLOCK_FOLDED:case h.Type.BLOCK_LITERAL:return new r.default(e,t);case h.Type.FLOW_MAP:case h.Type.FLOW_SEQ:return new s.default(e,t);case h.Type.MAP_KEY:case h.Type.MAP_VALUE:case h.Type.SEQ_ITEM:return new a.default(e,t);case h.Type.COMMENT:case h.Type.PLAIN:return new c.default(e,t);case h.Type.QUOTE_DOUBLE:return new u.default(e,t);case h.Type.QUOTE_SINGLE:return new l.default(e,t);default:return null}}(m,g);let b=_.parse(d,v);if(_.range=new f.default(t,b),b<=t&&(_.error=new Error("Node#parse consumed no characters"),_.error.parseEnd=b,_.error.source=_,_.range.end=t+1),d.nodeStartsCollection(_)){_.error||d.atLineStart||d.parent.type!==h.Type.DOCUMENT||(_.error=new y.YAMLSyntaxError(_,"Block collection must not have preceding content here (e.g. directives-end indicator)"));const e=new o.default(_);return b=e.parse(new p(d),b),e.range=new f.default(t,b),e}return _},(w="parseNode")in(b=this)?Object.defineProperty(b,w,{value:E,enumerable:!0,configurable:!0,writable:!0}):b[w]=E,this.atLineStart=null!=t?t:e.atLineStart||!1,this.inCollection=null!=d?d:e.inCollection||!1,this.inFlow=null!=g?g:e.inFlow||!1,this.indent=null!=m?m:e.indent,this.lineStart=null!=v?v:e.lineStart,this.parent=null!=_?_:e.parent||{},this.root=e.root,this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:n,src:r}=this;if(t||n)return!1;if(e instanceof a.default)return!0;let o=e.range.end;return"\n"!==r[o]&&"\n"!==r[o-1]&&(o=i.default.endOfWhiteSpace(r,o),":"===r[o])}parseProps(e){const{inFlow:t,parent:n,src:r}=this,o=[];let a=!1,s=r[e=i.default.endOfWhiteSpace(r,e)];for(;s===h.Char.ANCHOR||s===h.Char.COMMENT||s===h.Char.TAG||"\n"===s;){if("\n"===s){const t=e+1,o=i.default.endOfIndent(r,t),s=o-(t+this.indent),c=n.type===h.Type.SEQ_ITEM&&n.context.atLineStart;if(!i.default.nextNodeIsIndented(r[o],s,!c))break;this.atLineStart=!0,this.lineStart=t,a=!1,e=o}else if(s===h.Char.COMMENT){const t=i.default.endOfLine(r,e+1);o.push(new f.default(e,t)),e=t}else{let t=i.default.endOfIdentifier(r,e+1);s===h.Char.TAG&&","===r[t]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(r.slice(e+1,t+13))&&(t=i.default.endOfIdentifier(r,t+5)),o.push(new f.default(e,t)),a=!0,e=i.default.endOfWhiteSpace(r,t)}s=r[e]}return a&&":"===s&&i.default.atBlank(r,e+1,!0)&&(e-=1),{props:o,type:p.parseType(r,e,t),valueStart:e}}}t.default=p}));o(C);var N=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,(e,n)=>(e.length>1&&t.push(n),"\n")));const o=[];let a=0;do{const t=new n.default,s=new r.default({src:e});a=t.parse(s,a),o.push(t)}while(a<e.length);return o.setOrigRanges=()=>{if(0===t.length)return!1;for(let e=1;e<t.length;++e)t[e]-=e;let e=0;for(let n=0;n<o.length;++n)e=o[n].setOrigRanges(t,e);return t.splice(0,t.length),!0},o.toString=()=>o.join("...\n"),o};var n=o(O),r=o(C);function o(e){return e&&e.__esModule?e:{default:e}}}));o(N);var x=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addCommentBefore=function(e,t,n){if(!n)return e;const r=n.replace(/[\s\S]^/gm,"$&".concat(t,"#"));return"#".concat(r,"\n").concat(t).concat(e)},t.default=function(e,t,n){return n?-1===n.indexOf("\n")?"".concat(e," #").concat(n):"".concat(e,"\n")+n.replace(/^/gm,"".concat(t||"","#")):e}}));o(x);x.addCommentBefore;var k=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,r){if(Array.isArray(t))return t.map((t,n)=>e(t,String(n),r));if(t&&"function"==typeof t.toJSON){const e=r&&r.anchors&&r.anchors.find(e=>e.node===t);e&&(r.onCreate=t=>{e.res=t,delete r.onCreate});const o=t.toJSON(n,r);return e&&r.onCreate&&r.onCreate(o),o}return t}}));o(k);var I=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class{}}));o(I);var R=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(k),r=o(I);function o(e){return e&&e.__esModule?e:{default:e}}class a extends r.default{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:(0,n.default)(this.value,e,t)}toString(){return String(this.value)}}t.default=a}));o(R);var j=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(x),r=i(k),o=i(B),a=i(I),s=i(R);function i(e){return e&&e.__esModule?e:{default:e}}class c extends a.default{constructor(e,t=null){super(),this.key=e,this.value=t,this.type="PAIR"}get commentBefore(){return this.key&&this.key.commentBefore}set commentBefore(e){null==this.key&&(this.key=new s.default(null)),this.key.commentBefore=e}addToJSMap(e,t){const n=(0,r.default)(this.key,"",e);if(t instanceof Map){const o=(0,r.default)(this.value,n,e);t.set(n,o)}else if(t instanceof Set)t.add(n);else{const o=((e,t,n)=>null===t?"":"object"!=typeof t?String(t):e instanceof a.default&&n&&n.doc?e.toString({anchors:{},doc:n.doc,indent:"",inFlow:!0,inStringifyKey:!0}):JSON.stringify(t))(this.key,n,e);t[o]=(0,r.default)(this.value,o,e)}return t}toJSON(e,t){const n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,t,r){if(!e||!e.doc)return JSON.stringify(this);const{simpleKeys:i}=e.doc.options;let{key:c,value:u}=this,l=c instanceof a.default&&c.comment;if(i){if(l)throw new Error("With simple keys, key nodes cannot have comments");if(c instanceof o.default){throw new Error("With simple keys, collection cannot be used as a key value")}}const f=!i&&(!c||l||c instanceof o.default||c.type===h.Type.BLOCK_FOLDED||c.type===h.Type.BLOCK_LITERAL),{doc:d,indent:p}=e;e=Object.assign({},e,{implicitKey:!f,indent:p+" "});let g=!1,m=d.schema.stringify(c,e,()=>l=null,()=>g=!0);if(m=(0,n.default)(m,e.indent,l),e.allNullValues&&!i)return this.comment?(m=(0,n.default)(m,e.indent,this.comment),t&&t()):g&&!l&&r&&r(),e.inFlow?m:"? ".concat(m);m=f?"? ".concat(m,"\n").concat(p,":"):"".concat(m,":"),this.comment&&(m=(0,n.default)(m,e.indent,this.comment),t&&t());let y="",v=null;if(u instanceof a.default){if(u.spaceBefore&&(y="\n"),u.commentBefore){const t=u.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));y+="\n".concat(t)}v=u.comment}else u&&"object"==typeof u&&(u=d.schema.createNode(u,!0));e.implicitKey=!1,!f&&!this.comment&&u instanceof s.default&&(e.indentAtStart=m.length+1),g=!1;const _=d.schema.stringify(u,e,()=>v=null,()=>g=!0);let b=" ";if(y||this.comment)b="".concat(y,"\n").concat(e.indent);else if(!f&&u instanceof o.default){("["===_[0]||"{"===_[0])&&!_.includes("\n")||(b="\n".concat(e.indent))}return g&&!v&&r&&r(),(0,n.default)(m+b+_,e.indent,v)}}t.default=c}));o(j);var B=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isEmptyPath=void 0;var n=s(x),r=s(I),o=s(j),a=s(R);function s(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e],o=Number.isInteger(n)&&n>=0?[]:{};o[n]=r,r=o}return e.createNode(r,!1)}const u=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done;t.isEmptyPath=u;class l extends r.default{constructor(e){super(),i(this,"items",[]),this.schema=e}addIn(e,t){if(u(e))this.add(t);else{const[n,...r]=e,o=this.get(n,!0);if(o instanceof l)o.addIn(r,t);else{if(void 0!==o||!this.schema)throw new Error("Expected YAML collection at ".concat(n,". Remaining path: ").concat(r));this.set(n,c(this.schema,r,t))}}}deleteIn([e,...t]){if(0===t.length)return this.delete(e);const n=this.get(e,!0);if(n instanceof l)return n.deleteIn(t);throw new Error("Expected YAML collection at ".concat(e,". Remaining path: ").concat(t))}getIn([e,...t],n){const r=this.get(e,!0);return 0===t.length?!n&&r instanceof a.default?r.value:r:r instanceof l?r.getIn(t,n):void 0}hasAllNullValues(){return this.items.every(e=>{if(!(e instanceof o.default))return!1;const t=e.value;return null==t||t instanceof a.default&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag})}hasIn([e,...t]){if(0===t.length)return this.has(e);const n=this.get(e,!0);return n instanceof l&&n.hasIn(t)}setIn([e,...t],n){if(0===t.length)this.set(e,n);else{const r=this.get(e,!0);if(r instanceof l)r.setIn(t,n);else{if(void 0!==r||!this.schema)throw new Error("Expected YAML collection at ".concat(e,". Remaining path: ").concat(t));this.set(e,c(this.schema,t,n))}}}toJSON(){return null}toString(e,{blockItem:t,flowChars:r,isMap:o,itemIndent:a},s,i){const{doc:c,indent:u}=e,f=this.type&&"FLOW"===this.type.substr(0,4)||e.inFlow;f&&(a+=" ");const d=o&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:d,indent:a,inFlow:f,type:null});let h=!1,p=!1;const g=this.items.reduce((t,r,o)=>{let s;r&&(!h&&r.spaceBefore&&t.push({type:"comment",str:""}),r.commentBefore&&r.commentBefore.match(/^.*$/gm).forEach(e=>{t.push({type:"comment",str:"#".concat(e)})}),r.comment&&(s=r.comment),f&&(!h&&r.spaceBefore||r.commentBefore||r.comment||r.key&&(r.key.commentBefore||r.key.comment)||r.value&&(r.value.commentBefore||r.value.comment))&&(p=!0)),h=!1;let i=c.schema.stringify(r,e,()=>s=null,()=>h=!0);return f&&!p&&i.includes("\n")&&(p=!0),f&&o<this.items.length-1&&(i+=","),i=(0,n.default)(i,a,s),h&&(s||f)&&(h=!1),t.push({type:"item",str:i}),t},[]);let m;if(0===g.length)m=r.start+r.end;else if(f){const{start:e,end:t}=r,n=g.map(e=>e.str);if(p||n.reduce((e,t)=>e+t.length+2,2)>l.maxFlowStringSingleLineLength){m=e;for(const e of n)m+=e?"\n ".concat(u).concat(e):"\n";m+="\n".concat(u).concat(t)}else m="".concat(e," ").concat(n.join(" ")," ").concat(t)}else{const e=g.map(t);m=e.shift();for(const t of e)m+=t?"\n".concat(u).concat(t):"\n"}return this.comment?(m+="\n"+this.comment.replace(/^/gm,"".concat(u,"#")),s&&s()):h&&i&&i(),m}}t.default=l,i(l,"maxFlowStringSingleLineLength",60)}));o(B);B.isEmptyPath;var D=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(k),r=s(B),o=s(I),a=s(j);function s(e){return e&&e.__esModule?e:{default:e}}const i=(e,t)=>{if(e instanceof c){const n=t.find(t=>t.node===e.source);return n.count*n.aliasCount}if(e instanceof r.default){let n=0;for(const r of e.items){const e=i(r,t);e>n&&(n=e)}return n}if(e instanceof a.default){const n=i(e.key,t),r=i(e.value,t);return Math.max(n,r)}return 1};class c extends o.default{static stringify({range:e,source:t},{anchors:n,doc:r,implicitKey:o,inStringifyKey:a}){let s=Object.keys(n).find(e=>n[e]===t);if(!s&&a&&(s=r.anchors.getName(t)||r.anchors.newName()),s)return"*".concat(s).concat(o?" ":"");const i=r.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(i," [").concat(e,"]"))}constructor(e){super(),this.source=e,this.type=h.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return(0,n.default)(this.source,e,t);const{anchors:r,maxAliasCount:o}=t,a=r.find(e=>e.node===this.source);if(!a||void 0===a.res){const e="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new y.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}if(o>=0&&(a.count+=1,0===a.aliasCount&&(a.aliasCount=i(this.source,r)),a.count*a.aliasCount>o)){const e="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new y.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}return a.res}toString(e){return c.stringify(this,e)}}var u,l,f;t.default=c,f=!0,(l="default")in(u=c)?Object.defineProperty(u,l,{value:f,enumerable:!0,configurable:!0,writable:!0}):u[l]=f}));o(D);var Y=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.findPair=s,t.default=void 0;var n=a(B),r=a(j),o=a(R);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){const n=t instanceof o.default?t.value:t;for(const o of e)if(o instanceof r.default){if(o.key===t||o.key===n)return o;if(o.key&&o.key.value===n)return o}}class i extends n.default{add(e,t){e?e instanceof r.default||(e=new r.default(e.key||e,e.value)):e=new r.default(e);const n=s(this.items,e.key),o=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error("Key ".concat(e.key," already set"));n.value=e.value}else if(o){const t=this.items.findIndex(t=>o(e,t)<0);-1===t?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){const t=s(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=s(this.items,e),r=n&&n.value;return!t&&r instanceof o.default?r.value:r}has(e){return!!s(this.items,e)}set(e,t){this.add(new r.default(e,t),!0)}toJSON(e,t,n){const r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(const e of this.items)e.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!(e instanceof r.default))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(e)," instead"));return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}}t.default=i}));o(Y);Y.findPair;var F=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(k),r=a(B),o=a(R);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){let t=e instanceof o.default?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}class i extends r.default{add(e){this.items.push(e)}delete(e){const t=s(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=s(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&r instanceof o.default?r.value:r}has(e){const t=s(e);return"number"==typeof t&&t<this.items.length}set(e,t){const n=s(e);if("number"!=typeof n)throw new Error("Expected a valid index, not ".concat(e,"."));this.items[n]=t}toJSON(e,t){const r=[];t&&t.onCreate&&t.onCreate(r);let o=0;for(const e of this.items)r.push((0,n.default)(e,String(o++),t));return r}toString(e,t,n){return e?super.toString(e,{blockItem:e=>"comment"===e.type?e.str:"- ".concat(e.str),flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,n):JSON.stringify(this)}}t.default=i}));o(F);var U=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MERGE_KEY=void 0;var n=s(Y),r=s(j),o=s(R),a=s(F);function s(e){return e&&e.__esModule?e:{default:e}}t.MERGE_KEY="<<";class i extends r.default{constructor(e){if(e instanceof r.default){let t=e.value;t instanceof a.default||(t=new a.default,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new o.default("<<"),new a.default);this.type="MERGE_PAIR"}addToJSMap(e,t){for(const{source:r}of this.value.items){if(!(r instanceof n.default))throw new Error("Merge sources must be maps");const o=r.toJSON(null,e,Map);for(const[e,n]of o)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=n)}return t}toString(e,t){const n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];const r=super.toString(e,t);return this.value=n,r}}t.default=i}));o(U);U.MERGE_KEY;var W=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(D),r=i(Y),o=i(U),a=i(R),s=i(F);function i(e){return e&&e.__esModule?e:{default:e}}class c{static validAnchorNode(e){return e instanceof a.default||e instanceof s.default||e instanceof r.default}constructor(e){var t,n,r;r={},(n="map")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this.prefix=e}createAlias(e,t){return this.setAnchor(e,t),new n.default(e)}createMergePair(...e){const t=new o.default;return t.value.items=e.map(e=>{if(e instanceof n.default){if(e.source instanceof r.default)return e}else if(e instanceof r.default)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")}),t}getName(e){const{map:t}=this;return Object.keys(t).find(n=>t[n]===e)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);const t=Object.keys(this.map);for(let n=1;;++n){const r="".concat(e).concat(n);if(!t.includes(r))return r}}resolveNodes(){const{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(e,t){if(null!=e&&!c.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(t&&/[\x00-\x19\s,[\]{}]/.test(t))throw new Error("Anchor names must not contain whitespace or control characters");const{map:n}=this,r=e&&Object.keys(n).find(t=>n[t]===e);if(r){if(!t)return r;r!==t&&(delete n[r],n[t]=e)}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}}t.default=c}));o(W);var K=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(B),r=a(j),o=a(R);function a(e){return e&&e.__esModule?e:{default:e}}const s=(e,t)=>{if(e&&"object"==typeof e){const{tag:a}=e;e instanceof n.default?(a&&(t[a]=!0),e.items.forEach(e=>s(e,t))):e instanceof r.default?(s(e.key,t),s(e.value,t)):e instanceof o.default&&a&&(t[a]=!0)}return t};t.default=e=>Object.keys(s(e,{}))}));o(K);var Q=a((function(e,t){function n(e,t){if(r&&r._YAML_SILENCE_WARNINGS)return;const{emitWarning:n}=r&&r.process;n?n(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}Object.defineProperty(t,"__esModule",{value:!0}),t.warn=n,t.warnFileDeprecation=function(e){if(r&&r._YAML_SILENCE_DEPRECATION_WARNINGS)return;const t=e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");n("The endpoint 'yaml/".concat(t,"' will be removed in a future release."),"DeprecationWarning")},t.warnOptionDeprecation=function(e,t){if(r&&r._YAML_SILENCE_DEPRECATION_WARNINGS)return;if(o[e])return;o[e]=!0;let a="The option '".concat(e,"' will be removed in a future release");a+=t?", use '".concat(t,"' instead."):".",n(a,"DeprecationWarning")};const o={}}));o(Q);Q.warn,Q.warnFileDeprecation,Q.warnOptionDeprecation;var V=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,{indentAtStart:o,lineWidth:a=80,minContentWidth:s=20,onFold:i,onOverflow:c}){if(!a||a<0)return e;const u=Math.max(1+s,1+a-t.length);if(e.length<=u)return e;const l=[],f={};let d,h=a-("number"==typeof o?o:t.length),p=void 0,g=void 0,m=!1,y=-1;"block"===r&&(y=n(e,y),-1!==y&&(h=y+u));for(;d=e[y+=1];){if("quoted"===r&&"\\"===d)switch(e[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}if("\n"===d)"block"===r&&(y=n(e,y)),h=y+u,p=void 0;else{if(" "===d&&g&&" "!==g&&"\n"!==g&&"\t"!==g){const t=e[y+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(p=y)}if(y>=h)if(p)l.push(p),h=p+u,p=void 0;else if("quoted"===r){for(;" "===g||"\t"===g;)g=d,d=e[y+=1],m=!0;l.push(y-2),f[y-2]=!0,h=y-2+u,p=void 0}else m=!0}g=d}m&&c&&c();if(0===l.length)return e;i&&i();let v=e.slice(0,l[0]);for(let n=0;n<l.length;++n){const o=l[n],a=l[n+1]||e.length;"quoted"===r&&f[o]&&(v+="".concat(e[o],"\\")),v+="\n".concat(t).concat(e.slice(o+1,a))}return v},t.FOLD_QUOTED=t.FOLD_BLOCK=t.FOLD_FLOW=void 0;t.FOLD_FLOW="flow";t.FOLD_BLOCK="block";t.FOLD_QUOTED="quoted";const 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}}));o(V);V.FOLD_QUOTED,V.FOLD_BLOCK,V.FOLD_FLOW;var q=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.strOptions=t.nullOptions=t.boolOptions=t.binaryOptions=void 0;const n={defaultType:h.Type.BLOCK_LITERAL,lineWidth:76};t.binaryOptions=n;t.boolOptions={trueStr:"true",falseStr:"false"};t.nullOptions={nullStr:"null"};const r={defaultType:h.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};t.strOptions=r}));o(q);q.strOptions,q.nullOptions,q.boolOptions,q.binaryOptions;var $=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyNumber=function({format:e,minFractionDigits:t,tag:n,value:r}){if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let o=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let n=t-(o.length-e-1);for(;n-- >0;)o+="0"}return o},t.stringifyString=function(e,t,r,c){const{defaultType:u}=q.strOptions,{implicitKey:l,inFlow:f}=t;let{type:d,value:p}=e;"string"!=typeof p&&(p=String(p),e=Object.assign({},e,{value:p}));const g=u=>{switch(u){case h.Type.BLOCK_FOLDED:case h.Type.BLOCK_LITERAL:return i(e,t,r,c);case h.Type.QUOTE_DOUBLE:return a(p,t);case h.Type.QUOTE_SINGLE:return s(p,t);case h.Type.PLAIN:return function(e,t,r,c){const{comment:u,type:l,value:f}=e,{actualString:d,implicitKey:p,indent:g,inFlow:m,tags:y}=t;if(p&&/[\n[\]{},]/.test(f)||m&&/[[\]{},]/.test(f))return a(f,t);if(!f||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(f))return p||m||-1===f.indexOf("\n")?-1!==f.indexOf('"')&&-1===f.indexOf("'")?s(f,t):a(f,t):i(e,t,r,c);if(!p&&!m&&l!==h.Type.PLAIN&&-1!==f.indexOf("\n"))return i(e,t,r,c);const v=f.replace(/\n+/g,"$&\n".concat(g));if(d&&"string"!=typeof y.resolveScalar(v).value)return a(f,t);const _=p?v:(0,n.default)(v,g,n.FOLD_FLOW,o(t));if(u&&!m&&(-1!==_.indexOf("\n")||-1!==u.indexOf("\n")))return r&&r(),(0,x.addCommentBefore)(_,g,u);return _}(e,t,r,c);default:return null}};d!==h.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(p)?d=h.Type.QUOTE_DOUBLE:!l&&!f||d!==h.Type.BLOCK_FOLDED&&d!==h.Type.BLOCK_LITERAL||(d=h.Type.QUOTE_DOUBLE);let m=g(d);if(null===m&&(m=g(u),null===m))throw new Error("Unsupported default string type ".concat(u));return m};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(V);function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}const o=({indentAtStart:e})=>e?Object.assign({indentAtStart:e},q.strOptions.fold):q.strOptions.fold;function a(e,t){const{implicitKey:r,indent:a}=t,{jsonEncoding:s,minMultiLineLength:i}=q.strOptions.doubleQuoted,c=JSON.stringify(e);if(s)return c;let u="",l=0;for(let e=0,t=c[e];t;t=c[++e])if(" "===t&&"\\"===c[e+1]&&"n"===c[e+2]&&(u+=c.slice(l,e)+"\\ ",e+=1,l=e,t="\\"),"\\"===t)switch(c[e+1]){case"u":{u+=c.slice(l,e);const t=c.substr(e+2,4);switch(t){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:"00"===t.substr(0,2)?u+="\\x"+t.substr(2):u+=c.substr(e,6)}e+=5,l=e+1}break;case"n":if(r||'"'===c[e+2]||c.length<i)e+=1;else{for(u+=c.slice(l,e)+"\n\n";"\\"===c[e+2]&&"n"===c[e+3]&&'"'!==c[e+4];)u+="\n",e+=2;u+=a," "===c[e+2]&&(u+="\\"),e+=1,l=e+1}break;default:e+=1}return u=l?u+c.slice(l):c,r?u:(0,n.default)(u,a,n.FOLD_QUOTED,o(t))}function s(e,t){const{indent:r,implicitKey:s}=t;if(s){if(/\n/.test(e))return a(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return a(e,t);const i="'"+e.replace(/'/g,"''").replace(/\n+/g,"$&\n".concat(r))+"'";return s?i:(0,n.default)(i,r,n.FOLD_FLOW,o(t))}function i({comment:e,type:t,value:r},o,s,i){if(/\n[\t ]+$/.test(r)||/^\s*$/.test(r))return a(r,o);const c=o.indent||(o.forceBlockIndent?" ":""),u=c?"2":"1",l=t!==h.Type.BLOCK_FOLDED&&(t===h.Type.BLOCK_LITERAL||!function(e,t){const n=e.length;if(n<=t)return!1;for(let r=0,o=0;r<n;++r)if("\n"===e[r]){if(r-o>t)return!0;if(o=r+1,n-o<=t)return!1}return!0}(r,q.strOptions.fold.lineWidth-c.length));let f=l?"|":">";if(!r)return f+"\n";let d="",p="";if(r=r.replace(/[\n\t ]*$/,e=>{const t=e.indexOf("\n");return-1===t?f+="-":r!==e&&t===e.length-1||(f+="+",i&&i()),p=e.replace(/\n$/,""),""}).replace(/^[\n ]*/,e=>{-1!==e.indexOf(" ")&&(f+=u);const t=e.match(/ +$/);return t?(d=e.slice(0,-t[0].length),t[0]):(d=e,"")}),p&&(p=p.replace(/\n+(?!\n|$)/g,"$&".concat(c))),d&&(d=d.replace(/\n+/g,"$&".concat(c))),e&&(f+=" #"+e.replace(/ ?[\r\n]+/g," "),s&&s()),!r)return"".concat(f).concat(u,"\n").concat(c).concat(p);if(l)return r=r.replace(/\n+/g,"$&".concat(c)),"".concat(f,"\n").concat(c).concat(d).concat(r).concat(p);r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(c));const g=(0,n.default)("".concat(d).concat(r).concat(p),c,n.FOLD_BLOCK,q.strOptions.fold);return"".concat(f,"\n").concat(c).concat(g)}}));o($);$.stringifyNumber,$.stringifyString;var J=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.checkFlowCollectionEnd=function(e,t){let n,r,o;switch(t.type){case h.Type.FLOW_MAP:n="}",r="flow map";break;case h.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:return void e.push(new y.YAMLSemanticError(t,"Not a flow collection!?"))}for(let e=t.items.length-1;e>=0;--e){const n=t.items[e];if(!n||n.type!==h.Type.COMMENT){o=n;break}}if(o&&o.char!==n){const a="Expected ".concat(r," to end with ").concat(n);let s;"number"==typeof o.offset?(s=new y.YAMLSemanticError(t,a),s.offset=o.offset+1):(s=new y.YAMLSemanticError(o,a),o.range&&o.range.end&&(s.offset=o.range.end-o.range.start)),e.push(s)}},t.checkKeyLength=function(e,t,n,r,o){if(!r||"number"!=typeof o)return;const a=t.items[n];let s=a&&a.range&&a.range.start;if(!s)for(let e=n-1;e>=0;--e){const r=t.items[e];if(r&&r.range){s=r.range.end+2*(n-e);break}}if(s>o+1024){const n=String(r).substr(0,8)+"..."+String(r).substr(-8);e.push(new y.YAMLSemanticError(t,'The "'.concat(n,'" key is too long')))}},t.resolveComments=function(e,t){for(const{afterKey:n,before:r,comment:o}of t){let t=e.items[r];t?(n&&t.value&&(t=t.value),void 0===o?!n&&t.commentBefore||(t.spaceBefore=!0):t.commentBefore?t.commentBefore+="\n"+o:t.commentBefore=o):void 0!==o&&(e.comment?e.comment+="\n"+o:e.comment=o)}}}));o(J);J.checkFlowCollectionEnd,J.checkKeyLength,J.resolveComments;var H=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==h.Type.MAP&&t.type!==h.Type.FLOW_MAP){const n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new y.YAMLSyntaxError(t,n)),null}const{comments:c,items:u}=t.type===h.Type.FLOW_MAP?function(e,t){const n=[],r=[];let o=void 0,s=null,i=!1,c="{";for(let u=0;u<t.items.length;++u){(0,J.checkKeyLength)(e.errors,t,u,o,s);const l=t.items[u];if("string"==typeof l.char){const{char:n,offset:f}=l;if("?"===n&&void 0===o&&!i){i=!0,c=":";continue}if(":"===n){if(void 0===o&&(o=null),":"===c){c=",";continue}}else if(i&&(void 0===o&&","!==n&&(o=null),i=!1),void 0!==o&&(r.push(new a.default(o)),o=void 0,s=null,","===n)){c=":";continue}if("}"===n){if(u===t.items.length-1)continue}else if(n===c){c=":";continue}const d="Flow map contains an unexpected ".concat(n),h=new y.YAMLSyntaxError(t,d);h.offset=f,e.errors.push(h)}else l.type===h.Type.BLANK_LINE?n.push({afterKey:!!o,before:r.length}):l.type===h.Type.COMMENT?n.push({afterKey:!!o,before:r.length,comment:l.comment}):void 0===o?(","===c&&e.errors.push(new y.YAMLSemanticError(l,"Separator , missing in flow map")),o=e.resolveNode(l),s=i?null:l.range.start):(","!==c&&e.errors.push(new y.YAMLSemanticError(l,"Indicator : missing in flow map entry")),r.push(new a.default(o,e.resolveNode(l))),o=void 0,i=!1)}(0,J.checkFlowCollectionEnd)(e.errors,t),void 0!==o&&r.push(new a.default(o));return{comments:n,items:r}}(e,t):function(e,t){const r=[],o=[];let s=void 0,i=null;for(let c=0;c<t.items.length;++c){const u=t.items[c];switch(u.type){case h.Type.BLANK_LINE:r.push({afterKey:!!s,before:o.length});break;case h.Type.COMMENT:r.push({afterKey:!!s,before:o.length,comment:u.comment});break;case h.Type.MAP_KEY:void 0!==s&&o.push(new a.default(s)),u.error&&e.errors.push(u.error),s=e.resolveNode(u.node),i=null;break;case h.Type.MAP_VALUE:{if(void 0===s&&(s=null),u.error&&e.errors.push(u.error),!u.context.atLineStart&&u.node&&u.node.type===h.Type.MAP&&!u.node.context.atLineStart){const t="Nested mappings are not allowed in compact mappings";e.errors.push(new y.YAMLSemanticError(u.node,t))}let r=u.node;if(!r&&u.props.length>0){r=new n.default(h.Type.PLAIN,[]),r.context={parent:u,src:u.context.src};const e=u.range.start+1;if(r.range={start:e,end:e},r.valueRange={start:e,end:e},"number"==typeof u.range.origStart){const e=u.range.origStart+1;r.range.origStart=r.range.origEnd=e,r.valueRange.origStart=r.valueRange.origEnd=e}}const f=new a.default(s,e.resolveNode(r));l(u,f),o.push(f),(0,J.checkKeyLength)(e.errors,t,c,s,i),s=void 0,i=null}break;default:void 0!==s&&o.push(new a.default(s)),s=e.resolveNode(u),i=u.range.start,u.error&&e.errors.push(u.error);e:for(let n=c+1;;++n){const r=t.items[n];switch(r&&r.type){case h.Type.BLANK_LINE:case h.Type.COMMENT:continue e;case h.Type.MAP_VALUE:break e;default:e.errors.push(new y.YAMLSemanticError(u,"Implicit map keys need to be followed by map values"));break e}}if(u.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new y.YAMLSemanticError(u,t))}}}void 0!==s&&o.push(new a.default(s));return{comments:r,items:o}}(e,t),f=new r.default;f.items=u,(0,J.resolveComments)(f,c);let d=!1;for(let n=0;n<u.length;++n){const{key:r}=u[n];if(r instanceof i.default&&(d=!0),e.schema.merge&&r&&r.value===o.MERGE_KEY){u[n]=new o.default(u[n]);const r=u[n].value.items;let a=null;r.some(e=>{if(e instanceof s.default){const{type:t}=e.source;return t!==h.Type.MAP&&t!==h.Type.FLOW_MAP&&(a="Merge nodes aliases can only point to maps")}return a="Merge nodes can only have Alias nodes as values"}),a&&e.errors.push(new y.YAMLSemanticError(t,a))}else for(let o=n+1;o<u.length;++o){const{key:n}=u[o];if(r===n||r&&n&&Object.prototype.hasOwnProperty.call(r,"value")&&r.value===n.value){const n='Map keys must be unique; "'.concat(r,'" is repeated');e.errors.push(new y.YAMLSemanticError(t,n));break}}}if(d&&!e.options.mapAsMap){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new y.YAMLWarning(t,n))}return t.resolved=f,f};var n=u(L),r=u(Y),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(U),a=u(j),s=u(D),i=u(B);function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(({context:{lineStart:e,node:t,src:n},props:r})=>{if(0===r.length)return!1;const{start:o}=r[0];if(t&&o>t.valueRange.start)return!1;if(n[o]!==h.Char.COMMENT)return!1;for(let t=e;t<o;++t)if("\n"===n[t])return!1;return!0})(e))return;const n=e.getPropValue(0,h.Char.COMMENT,!0);let r=!1;const o=t.value.commentBefore;if(o&&o.startsWith(n))t.value.commentBefore=o.substr(n.length+1),r=!0;else{const o=t.value.comment;!e.node&&o&&o.startsWith(n)&&(t.value.comment=o.substr(n.length+1),r=!0)}r&&(t.comment=n)}}));o(H);var G=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(Y),r=o(H);function o(e){return e&&e.__esModule?e:{default:e}}var a={createNode:function(e,t,r){const o=new n.default(e);if(t instanceof Map)for(const[n,a]of t)o.items.push(e.createPair(n,a,r));else if(t&&"object"==typeof t)for(const n of Object.keys(t))o.items.push(e.createPair(n,t[n],r));return"function"==typeof e.sortMapEntries&&o.items.sort(e.sortMapEntries),o},default:!0,nodeClass:n.default,tag:"tag:yaml.org,2002:map",resolve:r.default};t.default=a}));o(G);var z=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==h.Type.SEQ&&t.type!==h.Type.FLOW_SEQ){const n="A ".concat(t.type," node cannot be resolved as a sequence");return e.errors.push(new y.YAMLSyntaxError(t,n)),null}const{comments:a,items:s}=t.type===h.Type.FLOW_SEQ?function(e,t){const r=[],o=[];let a=!1,s=void 0,i=null,c="[";for(let u=0;u<t.items.length;++u){const l=t.items[u];if("string"==typeof l.char){const{char:r,offset:f}=l;if(":"===r||!a&&void 0===s||(a&&void 0===s&&(s=c?o.pop():null),o.push(new n.default(s)),a=!1,s=void 0,i=null),r===c)c=null;else if(c||"?"!==r){if("["!==c&&":"===r&&void 0===s){if(","===c){if(s=o.pop(),s instanceof n.default){const n="Chaining flow sequence pairs is invalid",r=new y.YAMLSemanticError(t,n);r.offset=f,e.errors.push(r)}a||(0,J.checkKeyLength)(e.errors,t,u,s,i)}else s=null;i=null,a=!1,c=null}else if("["===c||"]"!==r||u<t.items.length-1){const n="Flow sequence contains an unexpected ".concat(r),o=new y.YAMLSyntaxError(t,n);o.offset=f,e.errors.push(o)}}else a=!0}else if(l.type===h.Type.BLANK_LINE)r.push({before:o.length});else if(l.type===h.Type.COMMENT)r.push({comment:l.comment,before:o.length});else{if(c){const t="Expected a ".concat(c," in flow sequence");e.errors.push(new y.YAMLSemanticError(l,t))}const t=e.resolveNode(l);void 0===s?o.push(t):(o.push(new n.default(s,t)),s=void 0),i=l.range.start,c=","}}(0,J.checkFlowCollectionEnd)(e.errors,t),void 0!==s&&o.push(new n.default(s));return{comments:r,items:o}}(e,t):function(e,t){const n=[],r=[];for(let o=0;o<t.items.length;++o){const a=t.items[o];switch(a.type){case h.Type.BLANK_LINE:n.push({before:r.length});break;case h.Type.COMMENT:n.push({comment:a.comment,before:r.length});break;case h.Type.SEQ_ITEM:if(a.error&&e.errors.push(a.error),r.push(e.resolveNode(a.node)),a.hasProps){const t="Sequence items cannot have tags or anchors before the - indicator";e.errors.push(new y.YAMLSemanticError(a,t))}break;default:a.error&&e.errors.push(a.error),e.errors.push(new y.YAMLSyntaxError(a,"Unexpected ".concat(a.type," node in sequence")))}}return{comments:n,items:r}}(e,t),i=new r.default;if(i.items=s,(0,J.resolveComments)(i,a),!e.options.mapAsMap&&s.some(e=>e instanceof n.default&&e.key instanceof o.default)){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new y.YAMLWarning(t,n))}return t.resolved=i,i};var n=a(j),r=a(F),o=a(B);function a(e){return e&&e.__esModule?e:{default:e}}}));o(z);var Z=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(z),r=o(F);function o(e){return e&&e.__esModule?e:{default:e}}var a={createNode:function(e,t,n){const o=new r.default(e);if(t&&t[Symbol.iterator])for(const r of t){const t=e.createNode(r,n.wrapScalars,null,n);o.items.push(t)}return o},default:!0,nodeClass:r.default,tag:"tag:yaml.org,2002:seq",resolve:n.default};t.default=a}));o(Z);var X=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.resolveString=void 0;const n=(e,t)=>{const n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach(n=>{n.source||(n.source=t),e.errors.push(n)}),n.str):""};t.resolveString=n;var r={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:n,stringify:(e,t,n,r)=>(t=Object.assign({actualString:!0},t),(0,$.stringifyString)(e,t,n,r)),options:q.strOptions};t.default=r}));o(X);X.resolveString;var ee=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(G),r=a(Z),o=a(X);function a(e){return e&&e.__esModule?e:{default:e}}var s=[n.default,r.default,o.default];t.default=s}));o(ee);var te=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.floatObj=t.expObj=t.nanObj=t.hexObj=t.intObj=t.octObj=t.boolObj=t.nullObj=void 0;var n=o(R),r=o(ee);function o(e){return e&&e.__esModule?e:{default:e}}const a={identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.default(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:q.nullOptions,stringify:()=>q.nullOptions.nullStr};t.nullObj=a;const s={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:q.boolOptions,stringify:({value:e})=>e?q.boolOptions.trueStr:q.boolOptions.falseStr};t.boolObj=s;const i={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>parseInt(t,8),stringify:({value:e})=>"0o"+e.toString(8)};t.octObj=i;const c={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>parseInt(e,10),stringify:$.stringifyNumber};t.intObj=c;const u={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>parseInt(t,16),stringify:({value:e})=>"0x"+e.toString(16)};t.hexObj=u;const l={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:$.stringifyNumber};t.nanObj=l;const f={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:0|[1-9][0-9]*)(\.[0-9]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()};t.expObj=f;const d={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:0|[1-9][0-9]*)\.([0-9]*)$/,resolve(e,t){const r=new n.default(parseFloat(e));return t&&"0"===t[t.length-1]&&(r.minFractionDigits=t.length),r},stringify:$.stringifyNumber};t.floatObj=d;var h=r.default.concat([a,s,i,c,u,l,f,d]);t.default=h}));o(te);te.floatObj,te.expObj,te.nanObj,te.hexObj,te.intObj,te.octObj,te.boolObj,te.nullObj;var ne=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(G),r=a(Z),o=a(R);function a(e){return e&&e.__esModule?e:{default:e}}const s=[n.default,r.default,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:X.resolveString,stringify:e=>JSON.stringify(e)},{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new o.default(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:e=>JSON.stringify(e)},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:e=>JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>parseInt(e,10),stringify:e=>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:e=>JSON.stringify(e)}];s.scalarFallback=e=>{throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var i=s;t.default=i}));o(ne);var re="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},oe=[],ae=[],se="undefined"!=typeof Uint8Array?Uint8Array:Array,ie=!1;function ce(){ie=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)oe[t]=e[t],ae[e.charCodeAt(t)]=t;ae["-".charCodeAt(0)]=62,ae["_".charCodeAt(0)]=63}function ue(e,t,n){for(var r,o,a=[],s=t;s<n;s+=3)r=(e[s]<<16)+(e[s+1]<<8)+e[s+2],a.push(oe[(o=r)>>18&63]+oe[o>>12&63]+oe[o>>6&63]+oe[63&o]);return a.join("")}function le(e){var t;ie||ce();for(var n=e.length,r=n%3,o="",a=[],s=0,i=n-r;s<i;s+=16383)a.push(ue(e,s,s+16383>i?i:s+16383));return 1===r?(t=e[n-1],o+=oe[t>>2],o+=oe[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=oe[t>>10],o+=oe[t>>4&63],o+=oe[t<<2&63],o+="="),a.push(o),a.join("")}function fe(e,t,n,r,o){var a,s,i=8*o-r-1,c=(1<<i)-1,u=c>>1,l=-7,f=n?o-1:0,d=n?-1:1,h=e[t+f];for(f+=d,a=h&(1<<-l)-1,h>>=-l,l+=i;l>0;a=256*a+e[t+f],f+=d,l-=8);for(s=a&(1<<-l)-1,a>>=-l,l+=r;l>0;s=256*s+e[t+f],f+=d,l-=8);if(0===a)a=1-u;else{if(a===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),a-=u}return(h?-1:1)*s*Math.pow(2,a-r)}function de(e,t,n,r,o,a){var s,i,c,u=8*a-o-1,l=(1<<u)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=l?(i=0,s=l):s+f>=1?(i=(t*c-1)*Math.pow(2,o),s+=f):(i=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[n+h]=255&i,h+=p,i/=256,o-=8);for(s=s<<o|i,u+=o;u>0;e[n+h]=255&s,h+=p,s/=256,u-=8);e[n+h-p]|=128*g}var he={}.toString,pe=Array.isArray||function(e){return"[object Array]"==he.call(e)};function ge(){return ye.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function me(e,t){if(ge()<t)throw new RangeError("Invalid typed array length");return ye.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=ye.prototype:(null===e&&(e=new ye(t)),e.length=t),e}function ye(e,t,n){if(!(ye.TYPED_ARRAY_SUPPORT||this instanceof ye))return new ye(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return be(this,e)}return ve(this,e,t,n)}function ve(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);ye.TYPED_ARRAY_SUPPORT?(e=t).__proto__=ye.prototype:e=we(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!ye.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Me(t,n),o=(e=me(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(Oe(t)){var n=0|Ee(t.length);return 0===(e=me(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?me(e,0):we(e,t);if("Buffer"===t.type&&pe(t.data))return we(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function _e(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function be(e,t){if(_e(t),e=me(e,t<0?0:0|Ee(t)),!ye.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function we(e,t){var n=t.length<0?0:0|Ee(t.length);e=me(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function Ee(e){if(e>=ge())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ge().toString(16)+" bytes");return 0|e}function Oe(e){return!(null==e||!e._isBuffer)}function Me(e,t){if(Oe(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Ge(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return ze(e).length;default:if(r)return Ge(e).length;t=(""+t).toLowerCase(),r=!0}}function Se(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ye(this,t,n);case"utf8":case"utf-8":return je(this,t,n);case"ascii":return Be(this,t,n);case"latin1":case"binary":return De(this,t,n);case"base64":return Re(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fe(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Ae(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Le(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=ye.from(t,r)),Oe(t))return 0===t.length?-1:Te(e,t,n,r,o);if("number"==typeof t)return t&=255,ye.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Te(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function Te(e,t,n,r,o){var a,s=1,i=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,i/=2,c/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(a=n;a<i;a++)if(u(e,a)===u(t,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===c)return l*s}else-1!==l&&(a-=a-l),l=-1}else for(n+c>i&&(n=i-c),a=n;a>=0;a--){for(var f=!0,d=0;d<c;d++)if(u(e,a+d)!==u(t,d)){f=!1;break}if(f)return a}return-1}function Pe(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var s=0;s<r;++s){var i=parseInt(t.substr(2*s,2),16);if(isNaN(i))return s;e[n+s]=i}return s}function Ce(e,t,n,r){return Ze(Ge(t,e.length-n),e,n,r)}function Ne(e,t,n,r){return Ze(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function xe(e,t,n,r){return Ne(e,t,n,r)}function ke(e,t,n,r){return Ze(ze(t),e,n,r)}function Ie(e,t,n,r){return Ze(function(e,t){for(var n,r,o,a=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,o=n%256,a.push(o),a.push(r);return a}(t,e.length-n),e,n,r)}function Re(e,t,n){return 0===t&&n===e.length?le(e):le(e.slice(t,n))}function je(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var a,s,i,c,u=e[o],l=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:128==(192&(a=e[o+1]))&&(c=(31&u)<<6|63&a)>127&&(l=c);break;case 3:a=e[o+1],s=e[o+2],128==(192&a)&&128==(192&s)&&(c=(15&u)<<12|(63&a)<<6|63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:a=e[o+1],s=e[o+2],i=e[o+3],128==(192&a)&&128==(192&s)&&128==(192&i)&&(c=(15&u)<<18|(63&a)<<12|(63&s)<<6|63&i)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}ye.TYPED_ARRAY_SUPPORT=void 0===re.TYPED_ARRAY_SUPPORT||re.TYPED_ARRAY_SUPPORT,ye.poolSize=8192,ye._augment=function(e){return e.__proto__=ye.prototype,e},ye.from=function(e,t,n){return ve(null,e,t,n)},ye.TYPED_ARRAY_SUPPORT&&(ye.prototype.__proto__=Uint8Array.prototype,ye.__proto__=Uint8Array),ye.alloc=function(e,t,n){return function(e,t,n,r){return _e(t),t<=0?me(e,t):void 0!==n?"string"==typeof r?me(e,t).fill(n,r):me(e,t).fill(n):me(e,t)}(null,e,t,n)},ye.allocUnsafe=function(e){return be(null,e)},ye.allocUnsafeSlow=function(e){return be(null,e)},ye.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Xe(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Xe(e.slice(0,0))}(e))},ye.compare=function(e,t){if(!Oe(e)||!Oe(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,a=Math.min(n,r);o<a;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},ye.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ye.concat=function(e,t){if(!pe(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return ye.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=ye.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!Oe(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},ye.byteLength=Me,ye.prototype._isBuffer=!0,ye.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Ae(this,t,t+1);return this},ye.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Ae(this,t,t+3),Ae(this,t+1,t+2);return this},ye.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Ae(this,t,t+7),Ae(this,t+1,t+6),Ae(this,t+2,t+5),Ae(this,t+3,t+4);return this},ye.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?je(this,0,e):Se.apply(this,arguments)},ye.prototype.equals=function(e){if(!Oe(e))throw new TypeError("Argument must be a Buffer");return this===e||0===ye.compare(this,e)},ye.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},ye.prototype.compare=function(e,t,n,r,o){if(!Oe(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),i=Math.min(a,s),c=this.slice(r,o),u=e.slice(t,n),l=0;l<i;++l)if(c[l]!==u[l]){a=c[l],s=u[l];break}return a<s?-1:s<a?1:0},ye.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},ye.prototype.indexOf=function(e,t,n){return Le(this,e,t,n,!0)},ye.prototype.lastIndexOf=function(e,t,n){return Le(this,e,t,n,!1)},ye.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return Pe(this,e,t,n);case"utf8":case"utf-8":return Ce(this,e,t,n);case"ascii":return Ne(this,e,t,n);case"latin1":case"binary":return xe(this,e,t,n);case"base64":return ke(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ie(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},ye.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Be(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function De(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function Ye(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",a=t;a<n;++a)o+=He(e[a]);return o}function Fe(e,t,n){for(var r=e.slice(t,n),o="",a=0;a<r.length;a+=2)o+=String.fromCharCode(r[a]+256*r[a+1]);return o}function Ue(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function We(e,t,n,r,o,a){if(!Oe(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function Ke(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,a=Math.min(e.length-n,2);o<a;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function Qe(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,a=Math.min(e.length-n,4);o<a;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function Ve(e,t,n,r,o,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function qe(e,t,n,r,o){return o||Ve(e,0,n,4),de(e,t,n,r,23,4),n+4}function $e(e,t,n,r,o){return o||Ve(e,0,n,8),de(e,t,n,r,52,8),n+8}ye.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),ye.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=ye.prototype;else{var o=t-e;n=new ye(o,void 0);for(var a=0;a<o;++a)n[a]=this[a+e]}return n},ye.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||Ue(e,t,this.length);for(var r=this[e],o=1,a=0;++a<t&&(o*=256);)r+=this[e+a]*o;return r},ye.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||Ue(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},ye.prototype.readUInt8=function(e,t){return t||Ue(e,1,this.length),this[e]},ye.prototype.readUInt16LE=function(e,t){return t||Ue(e,2,this.length),this[e]|this[e+1]<<8},ye.prototype.readUInt16BE=function(e,t){return t||Ue(e,2,this.length),this[e]<<8|this[e+1]},ye.prototype.readUInt32LE=function(e,t){return t||Ue(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ye.prototype.readUInt32BE=function(e,t){return t||Ue(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ye.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Ue(e,t,this.length);for(var r=this[e],o=1,a=0;++a<t&&(o*=256);)r+=this[e+a]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},ye.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Ue(e,t,this.length);for(var r=t,o=1,a=this[e+--r];r>0&&(o*=256);)a+=this[e+--r]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*t)),a},ye.prototype.readInt8=function(e,t){return t||Ue(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ye.prototype.readInt16LE=function(e,t){t||Ue(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},ye.prototype.readInt16BE=function(e,t){t||Ue(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},ye.prototype.readInt32LE=function(e,t){return t||Ue(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ye.prototype.readInt32BE=function(e,t){return t||Ue(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ye.prototype.readFloatLE=function(e,t){return t||Ue(e,4,this.length),fe(this,e,!0,23,4)},ye.prototype.readFloatBE=function(e,t){return t||Ue(e,4,this.length),fe(this,e,!1,23,4)},ye.prototype.readDoubleLE=function(e,t){return t||Ue(e,8,this.length),fe(this,e,!0,52,8)},ye.prototype.readDoubleBE=function(e,t){return t||Ue(e,8,this.length),fe(this,e,!1,52,8)},ye.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||We(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,a=0;for(this[t]=255&e;++a<n&&(o*=256);)this[t+a]=e/o&255;return t+n},ye.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||We(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},ye.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||We(this,e,t,1,255,0),ye.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ye.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||We(this,e,t,2,65535,0),ye.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ke(this,e,t,!0),t+2},ye.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||We(this,e,t,2,65535,0),ye.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ke(this,e,t,!1),t+2},ye.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||We(this,e,t,4,4294967295,0),ye.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Qe(this,e,t,!0),t+4},ye.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||We(this,e,t,4,4294967295,0),ye.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Qe(this,e,t,!1),t+4},ye.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);We(this,e,t,n,o-1,-o)}var a=0,s=1,i=0;for(this[t]=255&e;++a<n&&(s*=256);)e<0&&0===i&&0!==this[t+a-1]&&(i=1),this[t+a]=(e/s>>0)-i&255;return t+n},ye.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);We(this,e,t,n,o-1,-o)}var a=n-1,s=1,i=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===i&&0!==this[t+a+1]&&(i=1),this[t+a]=(e/s>>0)-i&255;return t+n},ye.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||We(this,e,t,1,127,-128),ye.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ye.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||We(this,e,t,2,32767,-32768),ye.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ke(this,e,t,!0),t+2},ye.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||We(this,e,t,2,32767,-32768),ye.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ke(this,e,t,!1),t+2},ye.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||We(this,e,t,4,2147483647,-2147483648),ye.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Qe(this,e,t,!0),t+4},ye.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||We(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ye.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Qe(this,e,t,!1),t+4},ye.prototype.writeFloatLE=function(e,t,n){return qe(this,e,t,!0,n)},ye.prototype.writeFloatBE=function(e,t,n){return qe(this,e,t,!1,n)},ye.prototype.writeDoubleLE=function(e,t,n){return $e(this,e,t,!0,n)},ye.prototype.writeDoubleBE=function(e,t,n){return $e(this,e,t,!1,n)},ye.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,a=r-n;if(this===e&&n<t&&t<r)for(o=a-1;o>=0;--o)e[o+t]=this[o+n];else if(a<1e3||!ye.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},ye.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!ye.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var s=Oe(e)?e:Ge(new ye(e,r).toString()),i=s.length;for(a=0;a<n-t;++a)this[a+t]=s[a%i]}return this};var Je=/[^+\/0-9A-Za-z-_]/g;function He(e){return e<16?"0"+e.toString(16):e.toString(16)}function Ge(e,t){var n;t=t||1/0;for(var r=e.length,o=null,a=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function ze(e){return function(e){var t,n,r,o,a,s;ie||ce();var i=e.length;if(i%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[i-2]?2:"="===e[i-1]?1:0,s=new se(3*i/4-a),r=a>0?i-4:i;var c=0;for(t=0,n=0;t<r;t+=4,n+=3)o=ae[e.charCodeAt(t)]<<18|ae[e.charCodeAt(t+1)]<<12|ae[e.charCodeAt(t+2)]<<6|ae[e.charCodeAt(t+3)],s[c++]=o>>16&255,s[c++]=o>>8&255,s[c++]=255&o;return 2===a?(o=ae[e.charCodeAt(t)]<<2|ae[e.charCodeAt(t+1)]>>4,s[c++]=255&o):1===a&&(o=ae[e.charCodeAt(t)]<<10|ae[e.charCodeAt(t+1)]<<4|ae[e.charCodeAt(t+2)]>>2,s[c++]=o>>8&255,s[c++]=255&o),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Je,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Ze(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Xe(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var et=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{{const n=(0,X.resolveString)(e,t);return ye.from(n,"base64")}},options:q.binaryOptions,stringify:({comment:e,type:t,value:n},r,o,a)=>{let s;if(s=n instanceof ye?n.toString("base64"):ye.from(n.buffer).toString("base64"),t||(t=q.binaryOptions.defaultType),t===h.Type.QUOTE_DOUBLE)n=s;else{const{lineWidth:e}=q.binaryOptions,r=Math.ceil(s.length/e),o=new Array(r);for(let t=0,n=0;t<r;++t,n+=e)o[t]=s.substr(n,e);n=o.join(t===h.Type.BLOCK_LITERAL?"\n":" ")}return(0,$.stringifyString)({comment:e,type:t,value:n},r,o,a)}};t.default=n}));o(et);var tt=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parsePairs=i,t.createPairs=c,t.default=void 0;var n=s(Y),r=s(j),o=s(z),a=s(F);function s(e){return e&&e.__esModule?e:{default:e}}function i(e,t){const a=(0,o.default)(e,t);for(let e=0;e<a.items.length;++e){let o=a.items[e];if(!(o instanceof r.default)){if(o instanceof n.default){if(o.items.length>1){const e="Each pair must have its own sequence indicator";throw new y.YAMLSemanticError(t,e)}const e=o.items[0]||new r.default;o.commentBefore&&(e.commentBefore=e.commentBefore?"".concat(o.commentBefore,"\n").concat(e.commentBefore):o.commentBefore),o.comment&&(e.comment=e.comment?"".concat(o.comment,"\n").concat(e.comment):o.comment),o=e}a.items[e]=o instanceof r.default?o:new r.default(o)}}return a}function c(e,t,n){const r=new a.default(e);r.tag="tag:yaml.org,2002:pairs";for(const o of t){let t,a;if(Array.isArray(o)){if(2!==o.length)throw new TypeError("Expected [key, value] tuple: ".concat(o));t=o[0],a=o[1]}else if(o&&o instanceof Object){const e=Object.keys(o);if(1!==e.length)throw new TypeError("Expected { key: value } tuple: ".concat(o));t=e[0],a=o[t]}else t=o;const s=e.createPair(t,a,n);r.items.push(s)}return r}var u={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:i,createNode:c};t.default=u}));o(tt);tt.parsePairs,tt.createPairs;var nt=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.YAMLOMap=void 0;var n=i(k),r=i(Y),o=i(j),a=i(R),s=i(F);function i(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u extends s.default{constructor(){super(),c(this,"add",r.default.prototype.add.bind(this)),c(this,"delete",r.default.prototype.delete.bind(this)),c(this,"get",r.default.prototype.get.bind(this)),c(this,"has",r.default.prototype.has.bind(this)),c(this,"set",r.default.prototype.set.bind(this)),this.tag=u.tag}toJSON(e,t){const r=new Map;t&&t.onCreate&&t.onCreate(r);for(const e of this.items){let a,s;if(e instanceof o.default?(a=(0,n.default)(e.key,"",t),s=(0,n.default)(e.value,a,t)):a=(0,n.default)(e,"",t),r.has(a))throw new Error("Ordered maps must not include duplicate keys");r.set(a,s)}return r}}t.YAMLOMap=u,c(u,"tag","tag:yaml.org,2002:omap");var l={identify:e=>e instanceof Map,nodeClass:u,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){const n=(0,tt.parsePairs)(e,t),r=[];for(const{key:e}of n.items)if(e instanceof a.default){if(r.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new y.YAMLSemanticError(t,e)}r.push(e.value)}return Object.assign(new u,n)},createNode:function(e,t,n){const r=(0,tt.createPairs)(e,t,n),o=new u;return o.items=r.items,o}};t.default=l}));o(nt);nt.YAMLOMap;var rt=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.YAMLSet=void 0;var n,r,o,a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(Y),s=u(j),i=u(H),c=u(R);function u(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}class f extends a.default{constructor(){super(),this.tag=f.tag}add(e){const t=e instanceof s.default?e:new s.default(e);(0,a.findPair)(this.items,t.key)||this.items.push(t)}get(e,t){const n=(0,a.findPair)(this.items,e);return!t&&n instanceof s.default?n.key instanceof c.default?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(typeof t));const n=(0,a.findPair)(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new s.default(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.YAMLSet=f,o="tag:yaml.org,2002:set",(r="tag")in(n=f)?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o;var d={identify:e=>e instanceof Set,nodeClass:f,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){const n=(0,i.default)(e,t);if(!n.hasAllNullValues())throw new y.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new f,n)},createNode:function(e,t,n){const r=new f;for(const o of t)r.items.push(e.createPair(o,null,n));return r}};t.default=d}));o(rt);rt.YAMLSet;var ot=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=t.floatTime=t.intTime=void 0;const n=(e,t)=>{const n=t.split(":").reduce((e,t)=>60*e+Number(t),0);return"-"===e?-n:n},r=({value:e})=>{if(isNaN(e)||!isFinite(e))return(0,$.stringifyNumber)(e);let t="";e<0&&(t="-",e=Math.abs(e));const n=[e%60];return e<60?n.unshift(0):(e=Math.round((e-n[0])/60),n.unshift(e%60),e>=60&&(e=Math.round((e-n[0])/60),n.unshift(e))),t+n.map(e=>e<10?"0"+String(e):String(e)).join(":").replace(/000000\d*$/,"")},o={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,r)=>n(t,r.replace(/_/g,"")),stringify:r};t.intTime=o;const a={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,r)=>n(t,r.replace(/_/g,"")),stringify:r};t.floatTime=a;const s={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,r,o,a,s,i,c,u)=>{c&&(c=(c+"00").substr(1,3));let l=Date.UTC(t,r-1,o,a||0,s||0,i||0,c||0);if(u&&"Z"!==u){let e=n(u[0],u.slice(1));Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.timestamp=s}));o(ot);ot.timestamp,ot.floatTime,ot.intTime;var at=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(R),r=c(ee),o=c(et),a=c(nt),s=c(tt),i=c(rt);function c(e){return e&&e.__esModule?e:{default:e}}const u=({value:e})=>e?q.boolOptions.trueStr:q.boolOptions.falseStr;var l=r.default.concat([{identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.default(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:q.nullOptions,stringify:()=>q.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:q.boolOptions,stringify:u},{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:q.boolOptions,stringify:u},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^0b([0-1_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),2),stringify:({value:e})=>"0b"+e.toString(2)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0([0-7_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),8),stringify:({value:e})=>(e<0?"-0":"0")+e.toString(8)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:e=>parseInt(e.replace(/_/g,""),10),stringify:$.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),16),stringify:({value:e})=>(e<0?"-0x":"0x")+e.toString(16)},{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:$.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){const r=new n.default(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");"0"===e[e.length-1]&&(r.minFractionDigits=e.length)}return r},stringify:$.stringifyNumber}],o.default,a.default,s.default,i.default,ot.intTime,ot.floatTime,ot.timestamp);t.default=l}));o(at);var st=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tags=t.schemas=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(te),r=d(ee),o=d(ne),a=d(at),s=d(G),i=d(Z),c=d(et),u=d(nt),l=d(tt),f=d(rt);function d(e){return e&&e.__esModule?e:{default:e}}function h(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}const p={core:n.default,failsafe:r.default,json:o.default,yaml11:a.default};t.schemas=p;const g={binary:c.default,bool:n.boolObj,float:n.floatObj,floatExp:n.expObj,floatNaN:n.nanObj,floatTime:ot.floatTime,int:n.intObj,intHex:n.hexObj,intOct:n.octObj,intTime:ot.intTime,map:s.default,null:n.nullObj,omap:u.default,pairs:l.default,seq:i.default,set:f.default,timestamp:ot.timestamp};t.tags=g}));o(st);st.tags,st.schemas;var it=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(D),r=i(B),o=i(I),a=i(j),s=i(R);function i(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u{constructor({customTags:e,merge:t,schema:n,sortMapEntries:r,tags:o}){if(this.merge=!!t,this.name=n,this.sortMapEntries=!0===r?(e,t)=>e.key<t.key?-1:e.key>t.key?1:0:r||null,this.tags=st.schemas[n.replace(/\W/g,"")],!this.tags){const e=Object.keys(st.schemas).map(e=>JSON.stringify(e)).join(", ");throw new Error('Unknown schema "'.concat(n,'"; use one of ').concat(e))}if(!e&&o&&(e=o,(0,Q.warnOptionDeprecation)("tags","customTags")),Array.isArray(e))for(const t of e)this.tags=this.tags.concat(t);else"function"==typeof e&&(this.tags=e(this.tags.slice()));for(let e=0;e<this.tags.length;++e){const t=this.tags[e];if("string"==typeof t){const n=st.tags[t];if(!n){const e=Object.keys(st.tags).map(e=>JSON.stringify(e)).join(", ");throw new Error('Unknown custom tag "'.concat(t,'"; use one of ').concat(e))}this.tags[e]=n}}}createNode(e,t,r,a){if(e instanceof o.default)return e;let i;if(r){r.startsWith("!!")&&(r=u.defaultPrefix+r.slice(2));const e=this.tags.filter(e=>e.tag===r);if(i=e.find(e=>!e.format)||e[0],!i)throw new Error("Tag ".concat(r," not found"))}else if(i=this.tags.find(t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format),!i){if("function"==typeof e.toJSON&&(e=e.toJSON()),"object"!=typeof e)return t?new s.default(e):e;i=e instanceof Map?st.tags.map:e[Symbol.iterator]?st.tags.seq:st.tags.map}a?a.wrapScalars=t:a={wrapScalars:t},a.onTagObj&&(a.onTagObj(i),delete a.onTagObj);const c={};if(e&&"object"==typeof e&&a.prevObjects){const t=a.prevObjects.get(e);if(t){const e=new n.default(t);return a.aliasNodes.push(e),e}c.value=e,a.prevObjects.set(e,c)}return c.node=i.createNode?i.createNode(this,e,a):t?new s.default(e):e,r&&c.node instanceof o.default&&(c.node.tag=r),c.node}createPair(e,t,n){const r=this.createNode(e,n.wrapScalars,null,n),o=this.createNode(t,n.wrapScalars,null,n);return new a.default(r,o)}resolveScalar(e,t){t||(t=this.tags);for(let n=0;n<t.length;++n){const{format:r,test:o,resolve:a}=t[n];if(o){const t=e.match(o);if(t){let e=a.apply(null,t);return e instanceof s.default||(e=new s.default(e)),r&&(e.format=r),e}}}return this.tags.scalarFallback&&(e=this.tags.scalarFallback(e)),new s.default(e)}resolveNode(e,t,n){const o=this.tags.filter(({tag:e})=>e===n),a=o.find(({test:e})=>!e);t.error&&e.errors.push(t.error);try{if(a){let n=a.resolve(e,t);n instanceof r.default||(n=new s.default(n)),t.resolved=n}else{const n=(0,X.resolveString)(e,t);"string"==typeof n&&o.length>0&&(t.resolved=this.resolveScalar(n,o))}}catch(n){n.source||(n.source=t),e.errors.push(n),t.resolved=null}return t.resolved?(n&&t.tag&&(t.resolved.tag=n),t.resolved):null}resolveNodeWithFallback(e,t,n){const r=this.resolveNode(e,t,n);if(Object.prototype.hasOwnProperty.call(t,"resolved"))return r;const o=(({type:e})=>e===h.Type.FLOW_MAP||e===h.Type.MAP)(t)?u.defaultTags.MAP:(({type:e})=>e===h.Type.FLOW_SEQ||e===h.Type.SEQ)(t)?u.defaultTags.SEQ:u.defaultTags.STR;if(o){e.warnings.push(new y.YAMLWarning(t,"The tag ".concat(n," is unavailable, falling back to ").concat(o)));const r=this.resolveNode(e,t,o);return r.tag=n,r}return e.errors.push(new y.YAMLReferenceError(t,"The tag ".concat(n," is unavailable"))),null}getTagObject(e){if(e instanceof n.default)return n.default;if(e.tag){const t=this.tags.filter(t=>t.tag===e.tag);if(t.length>0)return t.find(t=>t.format===e.format)||t[0]}let t,r;if(e instanceof s.default){r=e.value;const n=this.tags.filter(e=>e.identify&&e.identify(r)||e.class&&r instanceof e.class);t=n.find(t=>t.format===e.format)||n.find(e=>!e.format)}else r=e,t=this.tags.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!t){const e=r&&r.constructor?r.constructor.name:typeof r;throw new Error("Tag not resolved for ".concat(e," value"))}return t}stringifyProps(e,t,{anchors:n,doc:r}){const o=[],a=r.anchors.getName(e);return a&&(n[a]=e,o.push("&".concat(a))),e.tag?o.push(r.stringifyTag(e.tag)):t.default||o.push(r.stringifyTag(t.tag)),o.join(" ")}stringify(e,t,n,s){let i;if(!(e instanceof o.default)){const n={aliasNodes:[],onTagObj:e=>i=e,prevObjects:new Map};e=this.createNode(e,!0,null,n);const{anchors:r}=t.doc;for(const e of n.aliasNodes){e.source=e.source.node;let t=r.getName(e.source);t||(t=r.newName(),r.map[t]=e.source)}}if(t.tags=this,e instanceof a.default)return e.toString(t,n,s);i||(i=this.getTagObject(e));const c=this.stringifyProps(e,i,t);c.length>0&&(t.indentAtStart=(t.indentAtStart||0)+c.length+1);const u="function"==typeof i.stringify?i.stringify(e,t,n,s):e instanceof r.default?e.toString(t,n,s):(0,$.stringifyString)(e,t,n,s);return c?e instanceof r.default&&"{"!==u[0]&&"["!==u[0]?"".concat(c,"\n").concat(t.indent).concat(u):"".concat(c," ").concat(u):u}}t.default=u,c(u,"defaultPrefix","tag:yaml.org,2002:"),c(u,"defaultTags",{MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"})}));o(it);var ct=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=d(x),r=d(W),o=d(K),a=d(it),s=d(D),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(B),c=d(I),u=d(R),l=d(k);function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function d(e){return e&&e.__esModule?e:{default:e}}class p{constructor(e){this.anchors=new r.default(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=[]}assertCollectionContents(){if(this.contents instanceof i.default)return!0;throw new Error("Expected a YAML collection as document contents")}add(e){return this.assertCollectionContents(),this.contents.add(e)}addIn(e,t){this.assertCollectionContents(),this.contents.addIn(e,t)}delete(e){return this.assertCollectionContents(),this.contents.delete(e)}deleteIn(e){return(0,i.isEmptyPath)(e)?null!=this.contents&&(this.contents=null,!0):(this.assertCollectionContents(),this.contents.deleteIn(e))}getDefaults(){return p.defaults[this.version]||p.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof i.default?this.contents.get(e,t):void 0}getIn(e,t){return(0,i.isEmptyPath)(e)?!t&&this.contents instanceof u.default?this.contents.value:this.contents:this.contents instanceof i.default?this.contents.getIn(e,t):void 0}has(e){return this.contents instanceof i.default&&this.contents.has(e)}hasIn(e){return(0,i.isEmptyPath)(e)?void 0!==this.contents:this.contents instanceof i.default&&this.contents.hasIn(e)}set(e,t){this.assertCollectionContents(),this.contents.set(e,t)}setIn(e,t){(0,i.isEmptyPath)(e)?this.contents=t:(this.assertCollectionContents(),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);const n=Object.assign({},this.getDefaults(),this.options);this.schema=new a.default(n)}parse(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");const{directives:n=[],contents:r=[],directivesEndMarker:o,error:a,valueRange:s}=e;if(a&&(a.source||(a.source=this),this.errors.push(a)),this.parseDirectives(n,t),o&&(this.directivesEndMarker=!0),this.range=s?[s.start,s.end]:null,this.setSchema(),this.anchors._cstAliases=[],this.parseContents(r),this.anchors.resolveNodes(),this.options.prettyErrors){for(const e of this.errors)e instanceof y.YAMLError&&e.makePretty();for(const e of this.warnings)e instanceof y.YAMLError&&e.makePretty()}return this}parseDirectives(e,t){const n=[];let r=!1;if(e.forEach(e=>{const{comment:t,name:o}=e;switch(o){case"TAG":this.resolveTagDirective(e),r=!0;break;case"YAML":case"YAML:1.0":this.resolveYamlDirective(e),r=!0;break;default:if(o){const t="YAML only supports %TAG and %YAML directives, and not %".concat(o);this.warnings.push(new y.YAMLWarning(e,t))}}t&&n.push(t)}),t&&!r&&"1.1"===(this.version||t.version||this.options.version)){const e=({handle:e,prefix:t})=>({handle:e,prefix:t});this.tagPrefixes=t.tagPrefixes.map(e),this.version=t.version}this.commentBefore=n.join("\n")||null}parseContents(e){const t={before:[],after:[]},n=[];let r=!1;switch(e.forEach(e=>{if(e.valueRange){if(1===n.length){const t="Document is not valid YAML (bad indentation?)";this.errors.push(new y.YAMLSyntaxError(e,t))}const t=this.resolveNode(e);r&&(t.spaceBefore=!0,r=!1),n.push(t)}else if(null!==e.comment){(0===n.length?t.before:t.after).push(e.comment)}else e.type===h.Type.BLANK_LINE&&(r=!0,0===n.length&&t.before.length>0&&!this.commentBefore&&(this.commentBefore=t.before.join("\n"),t.before=[]))}),n.length){case 0:this.contents=null,t.after=t.before;break;case 1:if(this.contents=n[0],this.contents){const e=t.before.join("\n")||null;if(e){const t=this.contents instanceof i.default&&this.contents.items[0]?this.contents.items[0]:this.contents;t.commentBefore=t.commentBefore?"".concat(e,"\n").concat(t.commentBefore):e}}else t.after=t.before.concat(t.after);break;default:this.contents=n,this.contents[0]?this.contents[0].commentBefore=t.before.join("\n")||null:t.after=t.before.concat(t.after)}this.comment=t.after.join("\n")||null}resolveTagDirective(e){const[t,n]=e.parameters;if(t&&n)if(this.tagPrefixes.every(e=>e.handle!==t))this.tagPrefixes.push({handle:t,prefix:n});else{const t="The %TAG directive must only be given at most once per handle in the same document.";this.errors.push(new y.YAMLSemanticError(e,t))}else{const t="Insufficient parameters given for %TAG directive";this.errors.push(new y.YAMLSemanticError(e,t))}}resolveYamlDirective(e){let[t]=e.parameters;if("YAML:1.0"===e.name&&(t="1.0"),this.version){const t="The %YAML directive must only be given at most once per document.";this.errors.push(new y.YAMLSemanticError(e,t))}if(t){if(!p.defaults[t]){const n=this.version||this.options.version,r="Document will be parsed as YAML ".concat(n," rather than YAML ").concat(t);this.warnings.push(new y.YAMLWarning(e,r))}this.version=t}else{const t="Insufficient parameters given for %YAML directive";this.errors.push(new y.YAMLSemanticError(e,t))}}resolveTagName(e){const{tag:t,type:n}=e;let r=!1;if(t){const{handle:n,suffix:o,verbatim:a}=t;if(a){if("!"!==a&&"!!"!==a)return a;const t="Verbatim tags aren't resolved, so ".concat(a," is invalid.");this.errors.push(new y.YAMLSemanticError(e,t))}else if("!"!==n||o){let t=this.tagPrefixes.find(e=>e.handle===n);if(!t){const e=this.getDefaults().tagPrefixes;e&&(t=e.find(e=>e.handle===n))}if(t){if(o){if("!"===n&&"1.0"===(this.version||this.options.version)){if("^"===o[0])return o;if(/[:/]/.test(o)){const e=o.match(/^([a-z0-9-]+)\/(.*)/i);return e?"tag:".concat(e[1],".yaml.org,2002:").concat(e[2]):"tag:".concat(o)}}return t.prefix+decodeURIComponent(o)}this.errors.push(new y.YAMLSemanticError(e,"The ".concat(n," tag has no suffix.")))}else{const t="The ".concat(n," tag handle is non-default and was not declared.");this.errors.push(new y.YAMLSemanticError(e,t))}}else r=!0}switch(n){case h.Type.BLOCK_FOLDED:case h.Type.BLOCK_LITERAL:case h.Type.QUOTE_DOUBLE:case h.Type.QUOTE_SINGLE:return a.default.defaultTags.STR;case h.Type.FLOW_MAP:case h.Type.MAP:return a.default.defaultTags.MAP;case h.Type.FLOW_SEQ:case h.Type.SEQ:return a.default.defaultTags.SEQ;case h.Type.PLAIN:return r?a.default.defaultTags.STR:null;default:return null}}resolveNode(e){if(!e)return null;const{anchors:t,errors:n,schema:r}=this;let o=!1,a=!1;const i={before:[],after:[]},c=(e=>e&&[h.Type.MAP_KEY,h.Type.MAP_VALUE,h.Type.SEQ_ITEM].includes(e.type))(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(const{start:t,end:r}of c)switch(e.context.src[t]){case h.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(t)){const t="Comments must be separated from other tokens by white space characters";n.push(new y.YAMLSemanticError(e,t))}const o=e.context.src.slice(t+1,r),{header:a,valueRange:s}=e;s&&(t>s.start||a&&t>a.start)?i.after.push(o):i.before.push(o)}break;case h.Char.ANCHOR:if(o){const t="A node can have at most one anchor";n.push(new y.YAMLSemanticError(e,t))}o=!0;break;case h.Char.TAG:if(a){const t="A node can have at most one tag";n.push(new y.YAMLSemanticError(e,t))}a=!0}if(o){const n=e.anchor,r=t.getNode(n);r&&(t.map[t.newName(n)]=r),t.map[n]=e}let u;if(e.type===h.Type.ALIAS){if(o||a){const t="An alias node must not specify any properties";n.push(new y.YAMLSemanticError(e,t))}const r=e.rawValue,i=t.getNode(r);if(!i){const t="Aliased anchor not found: ".concat(r);return n.push(new y.YAMLReferenceError(e,t)),null}u=new s.default(i),t._cstAliases.push(u)}else{const t=this.resolveTagName(e);if(t)u=r.resolveNodeWithFallback(this,e,t);else{if(e.type!==h.Type.PLAIN){const t="Failed to resolve ".concat(e.type," node here");return n.push(new y.YAMLSyntaxError(e,t)),null}try{u=r.resolveScalar(e.strValue||"")}catch(t){return t.source||(t.source=e),n.push(t),null}}}if(u){u.range=[e.range.start,e.range.end],this.options.keepCstNodes&&(u.cstNode=e),this.options.keepNodeTypes&&(u.type=e.type);const t=i.before.join("\n");t&&(u.commentBefore=u.commentBefore?"".concat(u.commentBefore,"\n").concat(t):t);const n=i.after.join("\n");n&&(u.comment=u.comment?"".concat(u.comment,"\n").concat(n):n)}return e.resolved=u}listNonDefaultTags(){return(0,o.default)(this.contents).filter(e=>0!==e.indexOf(a.default.defaultPrefix))}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){const 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)}stringifyTag(e){if("1.0"===(this.version||this.options.version)){const t=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(t)return"!"+t[1];const n=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?"!".concat(n[1],"/").concat(n[2]):"!".concat(e.replace(/^tag:/,""))}{let t=this.tagPrefixes.find(t=>0===e.indexOf(t.prefix));if(!t){const n=this.getDefaults().tagPrefixes;t=n&&n.find(t=>0===e.indexOf(t.prefix))}if(!t)return"!"===e[0]?e:"!<".concat(e,">");const n=e.substr(t.prefix.length).replace(/[!,[\]{}]/g,e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e]));return t.handle+n}}toJSON(e){const{keepBlobsInJSON:t,mapAsMap:n,maxAliasCount:r}=this.options,o=t&&("string"!=typeof e||!(this.contents instanceof u.default)),a={doc:this,keep:o,mapAsMap:o&&!!n,maxAliasCount:r},s=Object.keys(this.anchors.map);return s.length>0&&(a.anchors=s.map(e=>({alias:[],aliasCount:0,count:1,node:this.anchors.map[e]}))),(0,l.default)(this.contents,e,a)}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");this.setSchema();const e=[];let t=!1;if(this.version){let n="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?n="%YAML:1.0":"1.1"===this.version&&(n="%YAML 1.1")),e.push(n),t=!0}const r=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:n,prefix:o})=>{r.some(e=>0===e.indexOf(o))&&(e.push("%TAG ".concat(n," ").concat(o)),t=!0)}),(t||this.directivesEndMarker)&&e.push("---"),this.commentBefore&&(!t&&this.directivesEndMarker||e.unshift(""),e.unshift(this.commentBefore.replace(/^/gm,"#")));const o={anchors:{},doc:this,indent:""};let a=!1,s=null;if(this.contents){this.contents instanceof c.default&&(this.contents.spaceBefore&&(t||this.directivesEndMarker)&&e.push(""),this.contents.commentBefore&&e.push(this.contents.commentBefore.replace(/^/gm,"#")),o.forceBlockIndent=!!this.comment,s=this.contents.comment);const r=s?null:()=>a=!0,i=this.schema.stringify(this.contents,o,()=>s=null,r);e.push((0,n.default)(i,"",s))}else void 0!==this.contents&&e.push(this.schema.stringify(this.contents,o));return this.comment&&(a&&!s||""===e[e.length-1]||e.push(""),e.push(this.comment.replace(/^/gm,"#"))),e.join("\n")+"\n"}}var g,m,v;t.default=p,g=p,m="defaults",v={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:a.default.defaultPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:a.default.defaultPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:a.default.defaultPrefix}]}},m in g?Object.defineProperty(g,m,{value:v,enumerable:!0,configurable:!0,writable:!0}):g[m]=v}));o(ct);var ut=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(N),r=a(ct),o=a(it);function a(e){return e&&e.__esModule?e:{default:e}}const s={anchorPrefix:"a",customTags:null,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"};class i extends r.default{constructor(e){super(Object.assign({},s,e))}}function c(e,t){const r=(0,n.default)(e),o=new i(t).parse(r[0]);if(r.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";o.errors.unshift(new y.YAMLSemanticError(r[1],e))}return o}var u={createNode:function(e,t=!0,n){void 0===n&&"string"==typeof t&&(n=t,t=!0);const a=Object.assign({},r.default.defaults[s.version],s);return new o.default(a).createNode(e,t,n)},defaultOptions:s,Document:i,parse:function(e,t){const n=c(e,t);if(n.warnings.forEach(e=>(0,Q.warn)(e)),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){const r=[];let o;for(const a of(0,n.default)(e)){const e=new i(t);e.parse(a,o),r.push(e),o=e}return r},parseCST:n.default,parseDocument:c,stringify:function(e,t){const n=new i(t);return n.contents=e,String(n)}};t.default=u}));o(ut);var lt=ut.default,ft=a((function(e,t){t.__esModule=!0,t.defineParents=function e(t,n){void 0===n&&(n=null),"children"in t&&t.children.forEach((function(n){return e(n,t)})),"anchor"in t&&t.anchor&&e(t.anchor,t),"tag"in t&&t.tag&&e(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach((function(n){return e(n,t)})),"middleComments"in t&&t.middleComments.forEach((function(n){return e(n,t)})),"indicatorComment"in t&&t.indicatorComment&&e(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&e(t.trailingComment,t),"endComments"in t&&t.endComments.forEach((function(n){return e(n,t)})),Object.defineProperty(t,"_parent",{value:n,enumerable:!1})}}));o(ft);ft.defineParents;var dt=a((function(e,t){t.__esModule=!0,t.getPointText=function(e){return e.line+":"+e.column}}));o(dt);dt.getPointText;var ht=a((function(e,t){function n(e,t){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||e.position.start.offset!==e.children[0].position.start.offset));default:return!1}}t.__esModule=!0,t.attachComments=function(e){ft.defineParents(e);var t=function(e){for(var t=Array.from(new Array(e.position.end.line),(function(){return{}})),n=0,r=e.comments;n<r.length;n++){var o=r[n];t[o.position.start.line-1].comment=o}return function e(t,n){if(n.position.start.offset===n.position.end.offset)return;if("leadingComments"in n){var r=n.position.start,o=t[r.line-1].leadingAttachableNode;(!o||r.column<o.position.start.column)&&(t[r.line-1].leadingAttachableNode=n)}if("trailingComment"in n&&n.position.end.column>1&&"document"!==n.type&&"documentHead"!==n.type){var a=n.position.end,s=t[a.line-1].trailingAttachableNode;(!s||a.column>=s.position.end.column)&&(t[a.line-1].trailingAttachableNode=n)}if("root"!==n.type&&"document"!==n.type&&"documentHead"!==n.type&&"documentBody"!==n.type)for(var i=n.position,c=(r=i.start,[(a=i.end).line].concat(r.line===a.line?[]:r.line)),u=0,l=c;u<l.length;u++){var f=l[u],d=t[f-1].trailingNode;(!d||a.column>=d.position.end.column)&&(t[f-1].trailingNode=n)}"children"in n&&n.children.forEach((function(n){e(t,n)}))}(t,e),t}(e),r=e.children.slice();e.comments.sort((function(e,t){return e.position.start.offset-t.position.end.offset})).filter((function(e){return!e._parent})).forEach((function(e){for(;r.length>1&&e.position.start.line>r[0].position.end.line;)r.shift();!function(e,t,r){var o=e.position.start.line,a=t[o-1].trailingAttachableNode;if(a){if(a.trailingComment)throw new Error("Unexpected multiple trailing comment at "+dt.getPointText(e.position.start));return ft.defineParents(e,a),void(a.trailingComment=e)}for(var s=o;s>=r.position.start.line;s--){var i=t[s-1].trailingNode,c=void 0;if(i)c=i;else{if(s===o||!t[s-1].comment)continue;c=t[s-1].comment._parent}for(;;){if(n(c,e))return ft.defineParents(e,c),void c.endComments.push(e);if(!c._parent)break;c=c._parent}break}for(s=o+1;s<=r.position.end.line;s++){var u=t[s-1].leadingAttachableNode;if(u)return ft.defineParents(e,u),void u.leadingComments.push(e)}var l=r.children[1];ft.defineParents(e,l),l.endComments.push(e)}(e,t,r[0])}))}}));o(ht);ht.attachComments;var pt=a((function(e,t){t.__esModule=!0,t.createNode=function(e,t){return{type:e,position:t}}}));o(pt);pt.createNode;var gt,mt=(gt=f)&&gt.default||gt,yt=a((function(e,t){t.__esModule=!0,t.createRoot=function(e,t,n){return mt.__assign(mt.__assign({},pt.createNode("root",e)),{children:t,comments:n})}}));o(yt);yt.createRoot;var vt=a((function(e,t){t.__esModule=!0,t.removeCstBlankLine=function e(t){switch(t.type){case"DOCUMENT":for(var n=t.contents.length-1;n>=0;n--)"BLANK_LINE"===t.contents[n].type?t.contents.splice(n,1):e(t.contents[n]);for(n=t.directives.length-1;n>=0;n--)"BLANK_LINE"===t.directives[n].type&&t.directives.splice(n,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(n=t.items.length-1;n>=0;n--){var r=t.items[n];"char"in r||("BLANK_LINE"===r.type?t.items.splice(n,1):e(r))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&e(t.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(t.type))}}}));o(vt);vt.removeCstBlankLine;var _t=a((function(e,t){t.__esModule=!0,t.createLeadingCommentAttachable=function(){return{leadingComments:[]}}}));o(_t);_t.createLeadingCommentAttachable;var bt=a((function(e,t){t.__esModule=!0,t.createTrailingCommentAttachable=function(e){return void 0===e&&(e=null),{trailingComment:e}}}));o(bt);bt.createTrailingCommentAttachable;var wt=a((function(e,t){t.__esModule=!0,t.createCommentAttachable=function(){return mt.__assign(mt.__assign({},_t.createLeadingCommentAttachable()),bt.createTrailingCommentAttachable())}}));o(wt);wt.createCommentAttachable;var Et=a((function(e,t){t.__esModule=!0,t.createAlias=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},pt.createNode("alias",e)),wt.createCommentAttachable()),t),{value:n})}}));o(Et);Et.createAlias;var Ot=a((function(e,t){t.__esModule=!0,t.transformAlias=function(e,t){var n=e.cstNode;return Et.createAlias(t.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),t.transformContent(e),n.rawValue)}}));o(Ot);Ot.transformAlias;var Mt=a((function(e,t){t.__esModule=!0,t.createBlockFolded=function(e){return mt.__assign(mt.__assign({},e),{type:"blockFolded"})}}));o(Mt);Mt.createBlockFolded;var St=a((function(e,t){t.__esModule=!0,t.createBlockValue=function(e,t,n,r,o,a){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},pt.createNode("blockValue",e)),_t.createLeadingCommentAttachable()),t),{chomping:n,indent:r,value:o,indicatorComment:a})}}));o(St);St.createBlockValue;var At=a((function(e,t){t.__esModule=!0,function(e){e.Tag="!",e.Anchor="&",e.Comment="#"}(t.PropLeadingCharacter||(t.PropLeadingCharacter={}))}));o(At);At.PropLeadingCharacter;var Lt=a((function(e,t){t.__esModule=!0,t.createAnchor=function(e,t){return mt.__assign(mt.__assign({},pt.createNode("anchor",e)),{value:t})}}));o(Lt);Lt.createAnchor;var Tt=a((function(e,t){t.__esModule=!0,t.createComment=function(e,t){return mt.__assign(mt.__assign({},pt.createNode("comment",e)),{value:t})}}));o(Tt);Tt.createComment;var Pt=a((function(e,t){t.__esModule=!0,t.createContent=function(e,t,n){return{anchor:t,tag:e,middleComments:n}}}));o(Pt);Pt.createContent;var Ct=a((function(e,t){t.__esModule=!0,t.createTag=function(e,t){return mt.__assign(mt.__assign({},pt.createNode("tag",e)),{value:t})}}));o(Ct);Ct.createTag;var Nt=a((function(e,t){t.__esModule=!0,t.transformContent=function(e,t,n){void 0===n&&(n=function(){return!1});for(var r=e.cstNode,o=[],a=null,s=null,i=null,c=0,u=r.props;c<u.length;c++){var l=u[c],f=t.text[l.origStart];switch(f){case At.PropLeadingCharacter.Tag:a=a||l,s=Ct.createTag(t.transformRange(l),e.tag);break;case At.PropLeadingCharacter.Anchor:a=a||l,i=Lt.createAnchor(t.transformRange(l),r.anchor);break;case At.PropLeadingCharacter.Comment:var d=Tt.createComment(t.transformRange(l),t.text.slice(l.origStart+1,l.origEnd));t.comments.push(d),!n(d)&&a&&a.origEnd<=l.origStart&&l.origEnd<=r.valueRange.origStart&&o.push(d);break;default:throw new Error("Unexpected leading character "+JSON.stringify(f))}}return Pt.createContent(s,i,o)}}));o(Nt);Nt.transformContent;var xt=a((function(e,t){var n;t.__esModule=!0,function(e){e.CLIP="clip",e.STRIP="strip",e.KEEP="keep"}(n||(n={})),t.transformAstBlockValue=function(e,t){var r=e.cstNode,o="CLIP"===r.chomping?0:1,a=r.header.origEnd-r.header.origStart-1-o!=0,s=t.transformRange({origStart:r.header.origStart,origEnd:r.valueRange.origEnd}),i=null,c=Nt.transformContent(e,t,(function(e){if(!(s.start.offset<e.position.start.offset&&e.position.end.offset<s.end.offset))return!1;if(i)throw new Error("Unexpected multiple indicator comments at "+dt.getPointText(e.position.start));return i=e,!0}));return St.createBlockValue(s,c,n[r.chomping],a?r.blockIndent:null,r.strValue,i)}}));o(xt);xt.transformAstBlockValue;var kt=a((function(e,t){t.__esModule=!0,t.transformBlockFolded=function(e,t){return Mt.createBlockFolded(xt.transformAstBlockValue(e,t))}}));o(kt);kt.transformBlockFolded;var It=a((function(e,t){t.__esModule=!0,t.createBlockLiteral=function(e){return mt.__assign(mt.__assign({},e),{type:"blockLiteral"})}}));o(It);It.createBlockLiteral;var Rt=a((function(e,t){t.__esModule=!0,t.transformBlockLiteral=function(e,t){return It.createBlockLiteral(xt.transformAstBlockValue(e,t))}}));o(Rt);Rt.transformBlockLiteral;var jt=a((function(e,t){t.__esModule=!0,t.transformComment=function(e,t){return Tt.createComment(t.transformRange(e.range),e.comment)}}));o(jt);jt.transformComment;var Bt=a((function(e,t){t.__esModule=!0,t.createDirective=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign({},pt.createNode("directive",e)),wt.createCommentAttachable()),{name:t,parameters:n})}}));o(Bt);Bt.createDirective;var Dt=a((function(e,t){t.__esModule=!0,t.extractPropComments=function(e,t){for(var n=0,r=e.props;n<r.length;n++){var o=r[n],a=t.text[o.origStart];switch(a){case At.PropLeadingCharacter.Comment:t.comments.push(Tt.createComment(t.transformRange(o),t.text.slice(o.origStart+1,o.origEnd)));break;default:throw new Error("Unexpected leading character "+JSON.stringify(a))}}}}));o(Dt);Dt.extractPropComments;var Yt=a((function(e,t){t.__esModule=!0,t.transformDirective=function(e,t){return Dt.extractPropComments(e,t),Bt.createDirective(t.transformRange(e.range),e.name,e.parameters)}}));o(Yt);Yt.transformDirective;var Ft=a((function(e,t){t.__esModule=!0,t.createDocument=function(e,t,n,r){return mt.__assign(mt.__assign(mt.__assign({},pt.createNode("document",e)),bt.createTrailingCommentAttachable(r)),{children:[t,n]})}}));o(Ft);Ft.createDocument;var Ut=a((function(e,t){t.__esModule=!0,t.createPosition=function(e,t){return{start:e,end:t}},t.createEmptyPosition=function(e){return{start:e,end:e}}}));o(Ut);Ut.createPosition,Ut.createEmptyPosition;var Wt=a((function(e,t){t.__esModule=!0,t.createEndCommentAttachable=function(e){return void 0===e&&(e=[]),{endComments:e}}}));o(Wt);Wt.createEndCommentAttachable;var Kt=a((function(e,t){t.__esModule=!0,t.createDocumentBody=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign({},pt.createNode("documentBody",e)),Wt.createEndCommentAttachable(n)),{children:t?[t]:[]})}}));o(Kt);Kt.createDocumentBody;var Qt=a((function(e,t){t.__esModule=!0,t.getLast=function(e){return e[e.length-1]}}));o(Qt);Qt.getLast;var Vt=a((function(e,t){t.__esModule=!0,t.getMatchIndex=function(e,t){var n=e.match(t);return n?n.index:-1}}));o(Vt);Vt.getMatchIndex;var qt=a((function(e,t){t.__esModule=!0,t.transformDocumentBody=function(e,t,n){var r,o=e.cstNode,a=function(e,t,n){for(var r=[],o=[],a=[],s=!1,i=e.contents.length-1;i>=0;i--){var c=e.contents[i];if("COMMENT"===c.type){var u=t.transformNode(c);n&&n.line===u.position.start.line?a.unshift(u):s?r.unshift(u):u.position.start.offset>=e.valueRange.origEnd?o.unshift(u):r.unshift(u)}else s=!0}if(o.length>1)throw new Error("Unexpected multiple document trailing comments at "+dt.getPointText(o[1].position.start));if(a.length>1)throw new Error("Unexpected multiple documentHead trailing comments at "+dt.getPointText(a[1].position.start));return{comments:r,endComments:[],documentTrailingComment:Qt.getLast(o)||null,documentHeadTrailingComment:Qt.getLast(a)||null}}(o,t,n),s=a.comments,i=a.endComments,c=a.documentTrailingComment,u=a.documentHeadTrailingComment,l=t.transformNode(e.contents),f=function(e,t,n){var r=Vt.getMatchIndex(n.text.slice(e.valueRange.origEnd),/^\.\.\./),o=-1===r?e.valueRange.origEnd:Math.max(0,e.valueRange.origEnd-1);"\r"===n.text[o-1]&&o--;var a=n.transformRange({origStart:null!==t?t.position.start.offset:o,origEnd:o}),s=-1===r?a.end:n.transformOffset(e.valueRange.origEnd+3);return{position:a,documentEndPoint:s}}(o,l,t),d=f.position,h=f.documentEndPoint;return(r=t.comments).push.apply(r,mt.__spreadArrays(s,i)),{documentBody:Kt.createDocumentBody(d,l,i),documentEndPoint:h,documentTrailingComment:c,documentHeadTrailingComment:u}}}));o(qt);qt.transformDocumentBody;var $t=a((function(e,t){t.__esModule=!0,t.createDocumentHead=function(e,t,n,r){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},pt.createNode("documentHead",e)),Wt.createEndCommentAttachable(n)),bt.createTrailingCommentAttachable(r)),{children:t})}}));o($t);$t.createDocumentHead;var Jt=a((function(e,t){t.__esModule=!0,t.transformDocumentHead=function(e,t){var n,r=e.cstNode,o=function(e,t){for(var n=[],r=[],o=[],a=!1,s=e.directives.length-1;s>=0;s--){var i=t.transformNode(e.directives[s]);"comment"===i.type?a?r.unshift(i):o.unshift(i):(a=!0,n.unshift(i))}return{directives:n,comments:r,endComments:o}}(r,t),a=o.directives,s=o.comments,i=o.endComments,c=function(e,t,n){var r=Vt.getMatchIndex(n.text.slice(0,e.valueRange.origStart),/---\s*$/),o=-1===r?{origStart:e.valueRange.origStart,origEnd:e.valueRange.origStart}:{origStart:r,origEnd:r+3};0!==t.length&&(o.origStart=t[0].position.start.offset);return{position:n.transformRange(o),endMarkerPoint:-1===r?null:n.transformOffset(r)}}(r,a,t),u=c.position,l=c.endMarkerPoint;return(n=t.comments).push.apply(n,mt.__spreadArrays(s,i)),{createDocumentHeadWithTrailingComment:function(e){return e&&t.comments.push(e),$t.createDocumentHead(u,a,i,e)},documentHeadEndMarkerPoint:l}}}));o(Jt);Jt.transformDocumentHead;var Ht=a((function(e,t){t.__esModule=!0,t.transformDocument=function(e,t){var n=Jt.transformDocumentHead(e,t),r=n.createDocumentHeadWithTrailingComment,o=n.documentHeadEndMarkerPoint,a=qt.transformDocumentBody(e,t,o),s=a.documentBody,i=a.documentEndPoint,c=a.documentTrailingComment,u=r(a.documentHeadTrailingComment);return c&&t.comments.push(c),Ft.createDocument(Ut.createPosition(u.position.start,i),u,s,c)}}));o(Ht);Ht.transformDocument;var Gt=a((function(e,t){t.__esModule=!0,t.createFlowCollection=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},pt.createNode("flowCollection",e)),wt.createCommentAttachable()),t),{children:n})}}));o(Gt);Gt.createFlowCollection;var zt=a((function(e,t){t.__esModule=!0,t.createFlowMapping=function(e,t,n){return mt.__assign(mt.__assign({},Gt.createFlowCollection(e,t,n)),{type:"flowMapping"})}}));o(zt);zt.createFlowMapping;var Zt=a((function(e,t){t.__esModule=!0,t.createFlowMappingItem=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign({},pt.createNode("flowMappingItem",e)),_t.createLeadingCommentAttachable()),{children:[t,n]})}}));o(Zt);Zt.createFlowMappingItem;var Xt=a((function(e,t){t.__esModule=!0,t.extractComments=function(e,t){for(var n=[],r=0,o=e;r<o.length;r++){var a=o[r];a&&"type"in a&&"COMMENT"===a.type?t.comments.push(t.transformNode(a)):n.push(a)}return n}}));o(Xt);Xt.extractComments;var en=a((function(e,t){t.__esModule=!0,t.getFlowMapItemAdditionalRanges=function(e){var t=["?",":"].map((function(t){var n=e.find((function(e){return"char"in e&&e.char===t}));return n?{origStart:n.origOffset,origEnd:n.origOffset+1}:null}));return{additionalKeyRange:t[0],additionalValueRange:t[1]}}}));o(en);en.getFlowMapItemAdditionalRanges;var tn=a((function(e,t){t.__esModule=!0,t.createSlicer=function(e,t){var n=t;return function(t){return e.slice(n,n=t)}}}));o(tn);tn.createSlicer;var nn=a((function(e,t){t.__esModule=!0,t.groupCstFlowCollectionItems=function(e){for(var t=[],n=tn.createSlicer(e,1),r=!1,o=1;o<e.length-1;o++){var a=e[o];"char"in a&&","===a.char?(t.push(n(o)),n(o+1),r=!1):r=!0}return r&&t.push(n(e.length-1)),t}}));o(nn);nn.groupCstFlowCollectionItems;var rn=a((function(e,t){t.__esModule=!0,t.createMappingKey=function(e,t){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},pt.createNode("mappingKey",e)),bt.createTrailingCommentAttachable()),Wt.createEndCommentAttachable()),{children:t?[t]:[]})}}));o(rn);rn.createMappingKey;var on=a((function(e,t){t.__esModule=!0,t.createMappingValue=function(e,t){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},pt.createNode("mappingValue",e)),wt.createCommentAttachable()),Wt.createEndCommentAttachable()),{children:t?[t]:[]})}}));o(on);on.createMappingValue;var an=a((function(e,t){t.__esModule=!0,t.transformAstPair=function(e,t,n,r,o){var a=t.transformNode(e.key),s=t.transformNode("MERGE_PAIR"===e.type?e.value.type?e.value:e.value.items[0]:e.value),i=a||r?rn.createMappingKey(t.transformRange({origStart:r?r.origStart:a.position.start.offset,origEnd:a?a.position.end.offset:r.origStart+1}),a):null,c=s||o?on.createMappingValue(t.transformRange({origStart:o?o.origStart:s.position.start.offset,origEnd:s?s.position.end.offset:o.origStart+1}),s):null;return n(Ut.createPosition(i?i.position.start:c.position.start,c?c.position.end:i.position.end),i||rn.createMappingKey(Ut.createEmptyPosition(c.position.start),null),c||on.createMappingValue(Ut.createEmptyPosition(i.position.end),null))}}));o(an);an.transformAstPair;var sn=a((function(e,t){t.__esModule=!0,t.transformFlowMap=function(e,t){var n=Xt.extractComments(e.cstNode.items,t),r=nn.groupCstFlowCollectionItems(n),o=e.items.map((function(e,n){var o=r[n],a=en.getFlowMapItemAdditionalRanges(o),s=a.additionalKeyRange,i=a.additionalValueRange;return an.transformAstPair(e,t,Zt.createFlowMappingItem,s,i)})),a=n[0],s=Qt.getLast(n);return zt.createFlowMapping(t.transformRange({origStart:a.origOffset,origEnd:s.origOffset+1}),t.transformContent(e),o)}}));o(sn);sn.transformFlowMap;var cn=a((function(e,t){t.__esModule=!0,t.createFlowSequence=function(e,t,n){return mt.__assign(mt.__assign({},Gt.createFlowCollection(e,t,n)),{type:"flowSequence"})}}));o(cn);cn.createFlowSequence;var un=a((function(e,t){t.__esModule=!0,t.createFlowSequenceItem=function(e,t){return mt.__assign(mt.__assign({},pt.createNode("flowSequenceItem",e)),{children:[t]})}}));o(un);un.createFlowSequenceItem;var ln=a((function(e,t){t.__esModule=!0,t.transformFlowSeq=function(e,t){var n=Xt.extractComments(e.cstNode.items,t),r=nn.groupCstFlowCollectionItems(n),o=e.items.map((function(e,n){if("PAIR"!==e.type){var o=t.transformNode(e);return un.createFlowSequenceItem(Ut.createPosition(o.position.start,o.position.end),o)}var a=r[n],s=en.getFlowMapItemAdditionalRanges(a),i=s.additionalKeyRange,c=s.additionalValueRange;return an.transformAstPair(e,t,Zt.createFlowMappingItem,i,c)})),a=n[0],s=Qt.getLast(n);return cn.createFlowSequence(t.transformRange({origStart:a.origOffset,origEnd:s.origOffset+1}),t.transformContent(e),o)}}));o(ln);ln.transformFlowSeq;var fn=a((function(e,t){t.__esModule=!0,t.createMapping=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},pt.createNode("mapping",e)),_t.createLeadingCommentAttachable()),t),{children:n})}}));o(fn);fn.createMapping;var dn=a((function(e,t){t.__esModule=!0,t.createMappingItem=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign({},pt.createNode("mappingItem",e)),_t.createLeadingCommentAttachable()),{children:[t,n]})}}));o(dn);dn.createMappingItem;var hn=a((function(e,t){t.__esModule=!0,t.transformMap=function(e,t){var n=e.cstNode;n.items.filter((function(e){return"MAP_KEY"===e.type||"MAP_VALUE"===e.type})).forEach((function(e){return Dt.extractPropComments(e,t)}));var r=function(e){for(var t=[],n=tn.createSlicer(e,0),r=!1,o=0;o<e.length;o++){"MAP_VALUE"!==e[o].type?(r&&t.push(n(o)),r=!0):(t.push(n(o+1)),r=!1)}r&&t.push(n(1/0));return t}(Xt.extractComments(n.items,t)),o=e.items.map((function(e,n){var o=r[n],a="MAP_VALUE"===o[0].type?[null,o[0].range]:[o[0].range,1===o.length?null:o[1].range],s=a[0],i=a[1];return an.transformAstPair(e,t,dn.createMappingItem,s,i)}));return fn.createMapping(Ut.createPosition(o[0].position.start,Qt.getLast(o).position.end),t.transformContent(e),o)}}));o(hn);hn.transformMap;var pn=a((function(e,t){t.__esModule=!0,t.createPlain=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},pt.createNode("plain",e)),wt.createCommentAttachable()),t),{value:n})}}));o(pn);pn.createPlain;var gn=a((function(e,t){t.__esModule=!0,t.findLastCharIndex=function(e,t,n){for(var r=t;r>=0;r--)if(n.test(e[r]))return r;return-1}}));o(gn);gn.findLastCharIndex;var mn=a((function(e,t){t.__esModule=!0,t.transformPlain=function(e,t){var n=e.cstNode;return pn.createPlain(t.transformRange({origStart:n.valueRange.origStart,origEnd:gn.findLastCharIndex(t.text,n.valueRange.origEnd-1,/\S/)+1}),t.transformContent(e),n.strValue)}}));o(mn);mn.transformPlain;var yn=a((function(e,t){t.__esModule=!0,t.createQuoteDouble=function(e){return mt.__assign(mt.__assign({},e),{type:"quoteDouble"})}}));o(yn);yn.createQuoteDouble;var vn=a((function(e,t){t.__esModule=!0,t.createQuoteValue=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},pt.createNode("quoteValue",e)),t),wt.createCommentAttachable()),{value:n})}}));o(vn);vn.createQuoteValue;var _n=a((function(e,t){t.__esModule=!0,t.transformAstQuoteValue=function(e,t){var n=e.cstNode;return vn.createQuoteValue(t.transformRange(n.valueRange),t.transformContent(e),n.strValue)}}));o(_n);_n.transformAstQuoteValue;var bn=a((function(e,t){t.__esModule=!0,t.transformQuoteDouble=function(e,t){return yn.createQuoteDouble(_n.transformAstQuoteValue(e,t))}}));o(bn);bn.transformQuoteDouble;var wn=a((function(e,t){t.__esModule=!0,t.createQuoteSingle=function(e){return mt.__assign(mt.__assign({},e),{type:"quoteSingle"})}}));o(wn);wn.createQuoteSingle;var En=a((function(e,t){t.__esModule=!0,t.transformQuoteSingle=function(e,t){return wn.createQuoteSingle(_n.transformAstQuoteValue(e,t))}}));o(En);En.transformQuoteSingle;var On=a((function(e,t){t.__esModule=!0,t.createSequence=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign(mt.__assign(mt.__assign({},pt.createNode("sequence",e)),_t.createLeadingCommentAttachable()),Wt.createEndCommentAttachable()),t),{children:n})}}));o(On);On.createSequence;var Mn=a((function(e,t){t.__esModule=!0,t.createSequenceItem=function(e,t){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},pt.createNode("sequenceItem",e)),wt.createCommentAttachable()),Wt.createEndCommentAttachable()),{children:t?[t]:[]})}}));o(Mn);Mn.createSequenceItem;var Sn=a((function(e,t){t.__esModule=!0,t.transformSeq=function(e,t){var n=Xt.extractComments(e.cstNode.items,t).map((function(n,r){Dt.extractPropComments(n,t);var o=t.transformNode(e.items[r]);return Mn.createSequenceItem(Ut.createPosition(t.transformOffset(n.valueRange.origStart),null===o?t.transformOffset(n.valueRange.origStart+1):o.position.end),o)}));return On.createSequence(Ut.createPosition(n[0].position.start,Qt.getLast(n).position.end),t.transformContent(e),n)}}));o(Sn);Sn.transformSeq;var An=a((function(e,t){t.__esModule=!0,t.transformNode=function(e,t){if(null===e)return null;switch(e.type){case"ALIAS":return Ot.transformAlias(e,t);case"BLOCK_FOLDED":return kt.transformBlockFolded(e,t);case"BLOCK_LITERAL":return Rt.transformBlockLiteral(e,t);case"COMMENT":return jt.transformComment(e,t);case"DIRECTIVE":return Yt.transformDirective(e,t);case"DOCUMENT":return Ht.transformDocument(e,t);case"FLOW_MAP":return sn.transformFlowMap(e,t);case"FLOW_SEQ":return ln.transformFlowSeq(e,t);case"MAP":return hn.transformMap(e,t);case"PLAIN":return mn.transformPlain(e,t);case"QUOTE_DOUBLE":return bn.transformQuoteDouble(e,t);case"QUOTE_SINGLE":return En.transformQuoteSingle(e,t);case"SEQ":return Sn.transformSeq(e,t);default:throw new Error("Unexpected node type "+e.type)}}}));o(An);An.transformNode;var Ln=a((function(e,t){t.__esModule=!0,t.createError=function(e,t,n){var r=new SyntaxError(e);return r.name="YAMLSyntaxError",r.source=t,r.position=n,r}}));o(Ln);Ln.createError;var Tn=a((function(e,t){t.__esModule=!0,t.transformError=function(e,t){var n=e.source.range||e.source.valueRange;return Ln.createError(e.message,t.text,t.transformRange(n))}}));o(Tn);Tn.transformError;var Pn=a((function(e,t){t.__esModule=!0,t.createPoint=function(e,t,n){return{offset:e,line:t,column:n}}}));o(Pn);Pn.createPoint;var Cn=a((function(e,t){t.__esModule=!0,t.transformOffset=function(e,t){e<0?e=0:e>t.text.length&&(e=t.text.length);var n=t.locator.locationForIndex(e);return Pn.createPoint(e,n.line+1,n.column+1)}}));o(Cn);Cn.transformOffset;var Nn=a((function(e,t){t.__esModule=!0,t.transformRange=function(e,t){return Ut.createPosition(t.transformOffset(e.origStart),t.transformOffset(e.origEnd))}}));o(Nn);Nn.transformRange;var xn=a((function(e,t){t.__esModule=!0;t.addOrigRange=function(e){if(!e.setOrigRanges()){var t=function(e){return 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((function(e){return function e(t,n){if(!t||"object"!=typeof t)return;if(!0===n(t))return;for(var r=0,o=Object.keys(t);r<o.length;r++){var a=o[r];if("context"!==a&&"error"!==a){var s=t[a];Array.isArray(s)?s.forEach((function(t){return e(t,n)})):e(s,n)}}}(e,t)}))}}}));o(xn);xn.addOrigRange;var kn=a((function(e,t){t.__esModule=!0,t.removeFakeNodes=function e(t){if("children"in t){if(1===t.children.length){var n=t.children[0];if("plain"===n.type&&null===n.tag&&null===n.anchor&&""===n.value)return t.children.splice(0,1),t}t.children.forEach(e)}return t}}));o(kn);kn.removeFakeNodes;var In=a((function(e,t){t.__esModule=!0,t.createUpdater=function(e,t,n,r){var o=t(e);return function(t){r(o,t)&&n(e,o=t)}}}));o(In);In.createUpdater;var Rn=a((function(e,t){function n(e){return e.start}function r(e,t){e.start=t}function o(e){return e.end}function a(e,t){e.end=t}function s(e,t){return t.offset<e.offset}function i(e,t){return t.offset>e.offset}t.__esModule=!0,t.updatePositions=function e(t){if(null!==t&&"children"in t){var c=t.children;if(c.forEach(e),"document"===t.type){var u=t.children,l=u[0],f=u[1];l.position.start.offset===l.position.end.offset?l.position.start=l.position.end=f.position.start:f.position.start.offset===f.position.end.offset&&(f.position.start=f.position.end=l.position.end)}var d=In.createUpdater(t.position,n,r,s),h=In.createUpdater(t.position,o,a,i);"endComments"in t&&0!==t.endComments.length&&(d(t.endComments[0].position.start),h(Qt.getLast(t.endComments).position.end));var p=c.filter((function(e){return null!==e}));if(0!==p.length){var g=p[0],m=Qt.getLast(p);d(g.position.start),h(m.position.end),"leadingComments"in g&&0!==g.leadingComments.length&&d(g.leadingComments[0].position.start),"tag"in g&&g.tag&&d(g.tag.position.start),"anchor"in g&&g.anchor&&d(g.anchor.position.start),"trailingComment"in m&&m.trailingComment&&h(m.trailingComment.position.end)}}}}));o(Rn);Rn.updatePositions;var jn=a((function(e,t){t.__esModule=!0,t.parse=function(e){var t=lt.parseCST(e);xn.addOrigRange(t);var n=t.map((function(e){return new lt.Document({merge:!0,keepCstNodes:!0}).parse(e)})),r=[],o={text:e,locator:new d.default(e),comments:r,transformOffset:function(e){return Cn.transformOffset(e,o)},transformRange:function(e){return Nn.transformRange(e,o)},transformNode:function(e){return An.transformNode(e,o)},transformContent:function(e){return Nt.transformContent(e,o)}},a=n.find((function(e){return 0!==e.errors.length}));if(a)throw Tn.transformError(a.errors[0],o);n.forEach((function(e){return vt.removeCstBlankLine(e.cstNode)}));var s=yt.createRoot(o.transformRange({origStart:0,origEnd:o.text.length}),n.map(o.transformNode),r);return ht.attachComments(s),Rn.updatePositions(s),kn.removeFakeNodes(s),s}}));o(jn);jn.parse;var Bn=a((function(e,t){t.__esModule=!0,mt.__exportStar(jn,t)}));o(Bn);const{hasPragma:Dn}=n;var Yn={parsers:{yaml:{astFormat:"yaml",parse:function(e){try{const t=Bn.parse(e);return delete t.comments,t}catch(e){throw e&&e.position?t(e.message,e.position):e}},hasPragma:Dn,locStart:e=>e.position.start.offset,locEnd:e=>e.position.end.offset}}},Fn=Yn.parsers;e.default=Yn,e.parsers=Fn,Object.defineProperty(e,"__esModule",{value:!0})}));