setup-python/node_modules/prettier/parser-yaml.js

2 lines
132 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e.prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.yaml=t())}(this,function(){"use strict";var e=function(e,t){var n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n};var t=function(e){return/^\s*#[^\n\S]*@(prettier|format)\s*?(\n|$)/.test(e)};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t){return e(t={exports:{}},t.exports),t.exports}function a(e){return(a="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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 u(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function s(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&&c(e,t)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t,n){return(l=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&&c(a,n.prototype),a}).apply(null,arguments)}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=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 l(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?h(e):t}function v(e,t,n){return(v="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=f(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)}var g=function(e,t){return(g=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 m=function(){return(m=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 y(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 _(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 b(e){return this instanceof b?(this.v=e,this):new b(e)}var w=Object.freeze({__extends:function(e,t){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return m},__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&&(n[r[a]]=e[r[a]])}return n},__decorate:function(e,t,n,r){var o,i=arguments.length,u=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":a(Reflect))&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(u=(i<3?o(u):i>3?o(t,n,u):o(t,n))||u);return i>3&&u&&Object.defineProperty(t,n,u),u},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":a(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{s(r.next(e))}catch(e){o(e)}}function u(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){e.done?a(e.value):new n(function(t){t(e.value)}).then(i,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){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,u])}}},__exportStar:function(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])},__values:y,__read:_,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e},__await:b,__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||u(e,t)})})}function u(e,t){try{(n=a[e](t)).value instanceof b?Promise.resolve(n.value.v).then(s,f):c(o[0][2],n)}catch(e){c(o[0][3],e)}var n}function s(e){u("next",e)}function f(e){u("throw",e)}function c(e,t){e(t),o.shift(),o.length&&u(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:b(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=y(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}}}),O=r(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});n(O);var E=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(t,n){o(this,e),this.start=t,this.end=n||t}return u(e,null,[{key:"copy",value:function(t){return new e(t.start,t.end)}}]),u(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,e.exports=t.default,e.exports.default=t.default});n(E);var M=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Char=t.Type=void 0;var n,r=(n=E)&&n.__esModule?n:{default:n};function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==u.return||u.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var i={ALIAS:"ALIAS",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"};t.Type=i;var s={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."};t.Char=s;var f=function(){function e(t,n,r){o(this,e),this.context=r||null,this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=t,this.value=null}return u(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!==s.DIRECTIVES_END&&r!==s.DOCUMENT_END)return!1;var o=e[t+1],i=e[t+2];if(o!==r||i!==r)return!1;var u=e[t+3];return!u||"\n"===u||"\t"===u||" "===u}},{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){var n=e[t];return"\n"===n||"\t"===n||" "===n}},{key:"atCollectionItem",value:function(t,n){var r=t[n];return("?"===r||":"===r||"-"===r)&&e.atBlank(t,n+1)}},{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="",u=t[n+1];" "===u||"\t"===u||"\n"===u;){switch(u){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}u=t[n+1]}return i||(i=" "),u&&a<=r&&(o=!0),{fold:i,offset:n,error:o}}}]),u(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){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]===s.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,s.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,s.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]===s.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]!==s.COMMENT)return!0;return!1}},{key:"jsonLike",get:function(){return-1!==[i.FLOW_MAP,i.FLOW_SEQ,i.QUOTE_DOUBLE,i.QUOTE_SINGLE].indexOf(this.type)}},{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,s.TAG,!1);if(null!=t){if("<"===t[1])return{verbatim:t.slice(2,-1)};var n=a(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=f});n(M);var S=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLWarning=t.YAMLSyntaxError=t.YAMLSemanticError=t.YAMLReferenceError=void 0;var n,r=(n=M)&&n.__esModule?n:{default:n};var a=function(e){function t(e,n){var a;if(o(this,t),!(n&&e instanceof r.default))throw new Error("Invalid arguments for new YAMLReferenceError");return(a=p(this,f(t).call(this))).name="YAMLReferenceError",a.message=n,a.source=e,a}return s(t,d(ReferenceError)),t}();t.YAMLReferenceError=a;var i=function(e){function t(e,n){var a;if(o(this,t),!(n&&e instanceof r.default))throw new Error("Invalid arguments for new YAMLSemanticError");return(a=p(this,f(t).call(this))).name="YAMLSemanticError",a.message=n,a.source=e,a}return s(t,d(SyntaxError)),t}();t.YAMLSemanticError=i;var u=function(e){function t(e,n){var a;if(o(this,t),!(n&&e instanceof r.default))throw new Error("Invalid arguments for new YAMLSyntaxError");return(a=p(this,f(t).call(this))).name="YAMLSyntaxError",a.message=n,a.source=e,a}return s(t,d(SyntaxError)),t}();t.YAMLSyntaxError=u;var c=function(e){function t(e,n){var a;if(o(this,t),!(n&&e instanceof r.default))throw new Error("Invalid arguments for new YAMLWarning");return(a=p(this,f(t).call(this))).name="YAMLWarning",a.message=n,a.source=e,a}return s(t,d(Error)),t}();t.YAMLWarning=c});n(S);var A=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=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}(M),a=(n=E)&&n.__esModule?n:{default:n};var i=function(e){function t(){return o(this,t),p(this,f(t).call(this,r.Type.COMMENT))}return s(t,r.default),u(t,[{key:"parse",value:function(e,t){this.context=e;e.src;var n=this.parseComment(t);return this.range=new a.default(t,n),n}}]),t}();t.default=i,e.exports=t.default,e.exports.default=t.default});n(A);var P=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=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}(M),a=(n=E)&&n.__esModule?n:{default:n};var i=function(e){function t(){var e;return o(this,t),(e=p(this,f(t).call(this,r.Type.DIRECTIVE))).name=null,e}return s(t,r.default),u(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}}]),u(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,r=t[n];r&&"\n"!==r&&"#"!==r;)r=t[n+=1];return this.valueRange=new a.default(e,n),n}},{key:"parse",value:function(e,t){this.context=e;e.src;var n=this.parseName(t+1);return n=this.parseParameters(n),n=this.parseComment(n),this.range=new a.default(t,n),n}},{key:"parameters",get:function(){var e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}}]),t}();t.default=i,e.exports=t.default,e.exports.default=t.default});n(P);var T=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(A),r=c(P),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}(M),i=c(E);function c(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){var e;return o(this,t),(e=p(this,f(t).call(this,a.Type.DOCUMENT))).directives=null,e.contents=null,e}return s(t,a.default),u(t,null,[{key:"startCommentOrEndBlankLine",value:function(e,t){var n=a.default.endOfWhiteSpace(e,t),r=e[n];return"#"===r||"\n"===r?n:t}}]),u(t,[{key:"parseDirectives",value:function(e){var o=this.context.src;this.directives=[];for(var i=!1,u=e;!a.default.atDocumentBoundary(o,u,a.Char.DIRECTIVES_END);)switch(o[u=t.startCommentOrEndBlankLine(o,u)]){case"\n":u+=1;break;case"#":var s=new n.default;u=s.parse({src:o},u),this.directives.push(s);break;case"%":var f=new r.default;u=f.parse({parent:this,src:o},u),this.directives.push(f),i=!0;break;default:return i?this.error=new S.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),u}return o[u]?u+3:(i?this.error=new S.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),u)}},{key:"parseContents",value:function(e){var r=this.context,o=r.parseNode,u=r.src;this.contents||(this.contents=[]);for(var s=e;"-"===u[s-1];)s-=1;var f=a.default.endOfWhiteSpace(u,e),c=s===e;for(this.valueRange=new i.default(f);!a.default.atDocumentBoundary(u,f,a.Char.DOCUMENT_END);){switch(u[f]){case"\n":s=f+=1,c=!0;break;case"#":var l=new n.default;f=l.parse({src:u},f),this.contents.push(l);break;default:var d=a.default.endOfIndent(u,f),h=o({atLineStart:c,indent:-1,inFlow:!1,inCollection:!1,lineStart:s,parent:this},d);if(!h)return this.valueRange.end=d;this.contents.push(h),f=h.range.end,c=!1}f=t.startCommentOrEndBlankLine(u,f)}if(this.valueRange.end=f,u[f]&&u[f+=3]){if("#"===u[f=a.default.endOfWhiteSpace(u,f)]){var p=new n.default;f=p.parse({src:u},f),this.contents.push(p)}switch(u[f]){case"\n":f+=1;break;case void 0:break;default:this.error=new S.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return f}},{key:"parse",value:function(e,t){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=v(f(t.prototype),"setOrigRanges",this).call(this,e,n),this.directives.forEach(function(t){n=t.setOrigRanges(e,n)}),this.contents.forEach(function(t){n=t.setOrigRanges(e,n)}),n}},{key:"toString",value:function(){var e=this.contents,t=(this.context.src,this.directives),n=this.value;if(null!=n)return n;var r=t.join("");return e.length>0&&((t.length>0||e[0].type===a.Type.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}]),t}();t.default=l,e.exports=t.default,e.exports.default=t.default});n(T);var L=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(M),r=a(E);function a(e){return e&&e.__esModule?e:{default:e}}var i=function(e){function t(){return o(this,t),p(this,f(t).apply(this,arguments))}return s(t,n.default),u(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}();t.default=i,e.exports=t.default,e.exports.default=t.default});n(L);var k=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Chomp=void 0;var n,r=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}(M),a=(n=E)&&n.__esModule?n:{default:n};var i={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};t.Chomp=i;var c=function(e){function t(e,n){var r;return o(this,t),(r=p(this,f(t).call(this,e,n))).blockIndent=null,r.chomping=i.CLIP,r.header=null,r}return s(t,r.default),u(t,[{key:"parseBlockHeader",value:function(e){for(var t=this.context.src,n=e+1,r="";;){var o=t[n];switch(o){case"-":this.chomping=i.STRIP;break;case"+":this.chomping=i.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r+=o;break;default:return this.blockIndent=Number(r)||null,this.header=new a.default(e,n),n}n+=1}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,n=t.indent,o=(t.inFlow,t.src),i=e,u=this.blockIndent?n+this.blockIndent-1:n,s=1,f=o[i];"\n"===f&&(i+=1,!r.default.atDocumentBoundary(o,i));f=o[i]){var c=r.default.endOfBlockIndent(o,u,i);if(null===c)break;if(!this.blockIndent){var l=c-(i+n);if("\n"!==o[c]){if(l<s){i-=1;break}this.blockIndent=l,u=n+this.blockIndent-1}else l>s&&(s=l)}i=r.default.endOfLine(o,c)}return this.valueRange=new a.default(e+1,i),i}},{key:"parse",value:function(e,t){this.context=e;var n=e.src,a=this.parseBlockHeader(t);return a=r.default.endOfWhiteSpace(n,a),a=this.parseComment(a),a=this.parseBlockValue(a)}},{key:"setOrigRanges",value:function(e,n){return n=v(f(t.prototype),"setOrigRanges",this).call(this,e,n),this.header?this.header.setOrigRange(e,n):n}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end,a=this.context,o=a.indent,u=a.src;if(this.valueRange.isEmpty())return"";for(var s=null,f=u[n-1];"\n"===f||"\t"===f||" "===f;){if((n-=1)<=t){if(this.chomping===i.KEEP)break;return""}"\n"===f&&(s=n),f=u[n-1]}var c=n+1;s&&(this.chomping===i.KEEP?(c=s,n=this.valueRange.end):n=s);for(var l=o+this.blockIndent,d=this.type===r.Type.BLOCK_FOLDED,h=!0,p="",v="",g=!1,m=t;m<n;++m){for(var y=0;y<l&&" "===u[m];++y)m+=1;var _=u[m];if("\n"===_)"\n"===v?p+="\n":v="\n";else{var b=r.default.endOfLine(u,m),w=u.slice(m,b);m=b,d&&(" "===_||"\t"===_)&&m<c?(" "===v?v="\n":g||h||"\n"!==v||(v="\n\n"),p+=v+w,v=b<n&&u[b]||"",g=!0):(p+=v+w,v=d&&m<c?" ":"\n",g=!1),h&&""!==w&&(h=!1)}}return this.chomping===i.STRIP?p:p+"\n"}}]),t}();t.default=c});n(k);var x=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=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}(M),a=(n=E)&&n.__esModule?n:{default:n};var i=function(e){function t(e,n){var r;return o(this,t),(r=p(this,f(t).call(this,e,n))).node=null,r}return s(t,r.default),u(t,[{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,o=e.src,i=e.atLineStart,u=e.lineStart;i||this.type!==r.Type.SEQ_ITEM||(this.error=new S.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));for(var s=i?t-u:e.indent,f=r.default.endOfWhiteSpace(o,t+1),c=o[f];"\n"===c||"#"===c;){var l=f+1;if("#"===c){var d=r.default.endOfLine(o,l);this.props.push(new a.default(f,d)),f=d}else i=!0,u=l,f=r.default.endOfWhiteSpace(o,l);c=o[f]}r.default.nextNodeIsIndented(c,f-(u+s),this.type!==r.Type.SEQ_ITEM)?(this.node=n({atLineStart:i,inCollection:!1,indent:s,lineStart:u,parent:this},f),this.node&&(f=this.node.range.end)):c&&u>t+1&&(f=u-1);var h=this.node?this.node.valueRange.end:f;return this.valueRange=new a.default(t,h),f}},{key:"setOrigRanges",value:function(e,n){return n=v(f(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)}}]),t}();t.default=i,e.exports=t.default,e.exports.default=t.default});n(x);var C=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;i(x);var n=i(A),r=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}(M),a=i(E);function i(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){var n;o(this,t),(n=p(this,f(t).call(this,e.type===r.Type.SEQ_ITEM?r.Type.SEQ:r.Type.MAP))).items=[e];for(var a=e.props.length-1;a>=0;--a)if(e.props[a].start<e.context.lineStart){n.props=e.props.slice(0,a+1),e.props=e.props.slice(a+1);var i=e.props[0]||e.valueRange;e.range.start=i.start;break}return n}return s(t,r.default),u(t,[{key:"parse",value:function(e,t){this.context=e;var o=e.parseNode,i=e.src,u=r.default.startOfLine(i,t),s=this.items[0];s.context.parent=this,this.valueRange=a.default.copy(s.valueRange);for(var f=s.range.start-s.context.lineStart,c=t,l=i[c=r.default.normalizeOffset(i,c)],d=r.default.endOfWhiteSpace(i,u)===c;l;){for(;"\n"===l||"#"===l;){if("#"===l){var h=new n.default;if(c=h.parse({src:i},c),this.items.push(h),this.valueRange.end=c,c>=i.length){l=null;break}}if(u=c+1,c=r.default.endOfIndent(i,u),r.default.atBlank(i,c)){var p=r.default.endOfWhiteSpace(i,c),v=i[p];v&&"\n"!==v&&"#"!==v||(c=p)}l=i[c],d=!0}if(!l)break;if(c!==u+f&&(d||":"!==l)){u>t&&(c=u);break}if(s.type===r.Type.SEQ_ITEM!=("-"===l)){var g=!0;if("-"===l){var m=i[c+1];g=!m||"\n"===m||"\t"===m||" "===m}if(g){u>t&&(c=u);break}}var y=o({atLineStart:d,inCollection:!0,indent:f,lineStart:u,parent:this},c);if(!y)return c;if(this.items.push(y),this.valueRange.end=y.valueRange.end,d=!1,(l=i[c=r.default.normalizeOffset(i,y.range.end)])&&"\n"!==l&&"#"!==l){for(var _=c-1,b=i[_];" "===b||"\t"===b;)b=i[--_];"\n"===b&&(u=_+1,d=!0)}}return c}},{key:"setOrigRanges",value:function(e,n){return n=v(f(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,a=this.value;if(null!=a)return a;for(var o=e.slice(n.start,t[0].range.start)+String(t[0]),i=1;i<t.length;++i){var u=t[i],s=u.context,f=s.atLineStart,c=s.indent;if(f)for(var l=0;l<c;++l)o+=" ";o+=String(u)}return r.default.addStringTerminator(e,n.end,o)}}]),t}();t.default=c,e.exports=t.default,e.exports.default=t.default});n(C);var R=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(A),r=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}(M),a=i(E);function i(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,n){var r;return o(this,t),(r=p(this,f(t).call(this,e,n))).items=null,r}return s(t,r.default),u(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===r.Type.COMMENT&&this.nodeIsJsonLike(e-1))}},{key:"parse",value:function(e,t){this.context=e;var o=e.parseNode,i=e.src,u=e.indent,s=e.lineStart,f=i[t];this.items=[{char:f,offset:t}];var c=r.default.endOfWhiteSpace(i,t+1);for(f=i[c];f&&"]"!==f&&"}"!==f;){switch(f){case"\n":s=c+1,(c=r.default.endOfIndent(i,s))-s<=u&&(this.error=new S.YAMLSemanticError(this,"Insufficient indentation in flow collection"));break;case",":this.items.push({char:f,offset:c}),c+=1;break;case"#":var l=new n.default;c=l.parse({src:i},c),this.items.push(l);break;case"?":case":":var d=i[c+1];if("\n"===d||"\t"===d||" "===d||","===d||":"===f&&this.prevNodeIsJsonLike()){this.items.push({char:f,offset:c}),c+=1;break}default:var h=o({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:s,parent:this},c);if(!h)return this.valueRange=new a.default(t,c),c;this.items.push(h),c=r.default.normalizeOffset(i,h.range.end)}f=i[c=r.default.endOfWhiteSpace(i,c)]}return this.valueRange=new a.default(t,c+1),f&&(this.items.push({char:f,offset:c}),c=r.default.endOfWhiteSpace(i,c+1),c=this.parseComment(c)),c}},{key:"setOrigRanges",value:function(e,n){return n=v(f(t.prototype),"setOrigRanges",this).call(this,e,n),this.items.forEach(function(t){if(t instanceof r.default)n=t.setOrigRanges(e,n);else if(0===e.length)t.origOffset=t.offset;else{for(var a=n;a<e.length&&!(e[a]>t.offset);)++a;t.origOffset=t.offset+a,n=a}}),n}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,a=this.value;if(null!=a)return a;var o=t.filter(function(e){return e instanceof r.default}),i="",u=n.start;return o.forEach(function(t){var n=e.slice(u,t.range.start);u=t.range.end,i+=n+String(t)}),i+=e.slice(u,n.end),r.default.addStringTerminator(e,n.end,i)}}]),t}();t.default=c,e.exports=t.default,e.exports.default=t.default});n(R);var N=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(M),r=a(E);function a(e){return e&&e.__esModule?e:{default:e}}var i=function(e){function t(){return o(this,t),p(this,f(t).apply(this,arguments))}return s(t,n.default),u(t,[{key:"parseBlockValue",value:function(e){for(var r=this.context,a=r.indent,o=r.inFlow,i=r.src,u=e,s=i[u];"\n"===s&&!n.default.atDocumentBoundary(i,u+1);s=i[u]){var f=n.default.endOfBlockIndent(i,a,u+1);if(null===f||"#"===i[f])break;u=t.endOfLine(i,f,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,u=a,s=i[u];return s&&"#"!==s&&"\n"!==s&&(u=t.endOfLine(i,a,o)),this.valueRange=new r.default(a,u),u=n.default.endOfWhiteSpace(i,u),u=this.parseComment(u),this.hasComment&&!this.valueRange.isEmpty()||(u=this.parseBlockValue(u)),u}},{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="",u=t;u<r;++u){var s=a[u];if("\n"===s){var f=n.default.foldNewline(a,u,-1);i+=f.fold,u=f.offset}else if(" "===s||"\t"===s){for(var c=u,l=a[u+1];u<r&&(" "===l||"\t"===l);)l=a[(u+=1)+1];"\n"!==l&&(i+=u>c?a.slice(c,u+1):s)}else i+=s}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&&("\n"===o||"\t"===o||" "===o||","===o))break;if((" "===r||"\t"===r)&&"#"===o)break;a+=1,r=o}return a}}]),t}();t.default=i,e.exports=t.default,e.exports.default=t.default});n(N);var I=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(M),r=a(E);function a(e){return e&&e.__esModule?e:{default:e}}var i=function(e){function t(){return o(this,t),p(this,f(t).apply(this,arguments))}return s(t,n.default),u(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 S.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,u=o.src;'"'!==u[a-1]&&e.push(new S.YAMLSyntaxError(this,'Missing closing "quote'));for(var s="",f=r+1;f<a-1;++f){var c=u[f];if("\n"===c){n.default.atDocumentBoundary(u,f+1)&&e.push(new S.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));var l=n.default.foldNewline(u,f,i);s+=l.fold,f=l.offset,l.error&&e.push(new S.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===c)switch(u[f+=1]){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(f+1,2,e),f+=2;break;case"u":s+=this.parseCharCode(f+1,4,e),f+=4;break;case"U":s+=this.parseCharCode(f+1,8,e),f+=8;break;case"\n":for(;" "===u[f+1]||"\t"===u[f+1];)f+=1;break;default:e.push(new S.YAMLSyntaxError(this,"Invalid escape sequence ".concat(u.substr(f-1,2)))),s+="\\"+u[f]}else if(" "===c||"\t"===c){for(var d=f,h=u[f+1];" "===h||"\t"===h;)h=u[(f+=1)+1];"\n"!==h&&(s+=f>d?u.slice(d,f+1):c)}else s+=c}return e.length>0?{errors:e,str:s}:s}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}}]),t}();t.default=i,e.exports=t.default,e.exports.default=t.default});n(I);var D=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(M),r=a(E);function a(e){return e&&e.__esModule?e:{default:e}}var i=function(e){function t(){return o(this,t),p(this,f(t).apply(this,arguments))}return s(t,n.default),u(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,u=o.src;"'"!==u[a-1]&&e.push(new S.YAMLSyntaxError(this,"Missing closing 'quote"));for(var s="",f=r+1;f<a-1;++f){var c=u[f];if("\n"===c){n.default.atDocumentBoundary(u,f+1)&&e.push(new S.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));var l=n.default.foldNewline(u,f,i);s+=l.fold,f=l.offset,l.error&&e.push(new S.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===c)s+=c,"'"!==u[f+=1]&&e.push(new S.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(" "===c||"\t"===c){for(var d=f,h=u[f+1];" "===h||"\t"===h;)h=u[(f+=1)+1];"\n"!==h&&(s+=f>d?u.slice(d,f+1):c)}else s+=c}return e.length>0?{errors:e,str:s}:s}}],[{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}();t.default=i,e.exports=t.default,e.exports.default=t.default});n(D);var j=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=p(L),r=p(k),a=p(C),i=p(x),s=p(R),f=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}(M),c=p(N),l=p(I),d=p(D),h=p(E);function p(e){return e&&e.__esModule?e:{default:e}}var v=function(){function e(){var t,u,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,O=m.lineStart,E=m.parent;o(this,e),p=function(t,o){if(f.default.atDocumentBoundary(v.src,o))return null;var u,p=new e(v,t),g=p.parseProps(o),m=g.props,y=g.type,_=g.valueStart;switch(y){case f.Type.ALIAS:u=new n.default(y,m);break;case f.Type.BLOCK_FOLDED:case f.Type.BLOCK_LITERAL:u=new r.default(y,m);break;case f.Type.FLOW_MAP:case f.Type.FLOW_SEQ:u=new s.default(y,m);break;case f.Type.MAP_KEY:case f.Type.MAP_VALUE:case f.Type.SEQ_ITEM:u=new i.default(y,m);break;case f.Type.COMMENT:case f.Type.PLAIN:u=new c.default(y,m);break;case f.Type.QUOTE_DOUBLE:u=new l.default(y,m);break;case f.Type.QUOTE_SINGLE:u=new d.default(y,m);break;default:return u.error=new S.YAMLSyntaxError(u,"Unknown node type: ".concat(JSON.stringify(y))),u.range=new h.default(o,o+1),u}var b=u.parse(p,_),w="\n"===v.src[b]?b+1:b;if(w<=o&&(u.error=new Error("Node#parse consumed no characters"),u.error.parseEnd=w,u.error.source=u,w=o+1),u.range=new h.default(o,w),p.nodeStartsCollection(u)){u.error||p.atLineStart||p.parent.type!==f.Type.DOCUMENT||(u.error=new S.YAMLSyntaxError(u,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var O=new a.default(u);return b=O.parse(new e(p),b),O.range=new h.default(o,b),O}return u},(u="parseNode")in(t=this)?Object.defineProperty(t,u,{value:p,enumerable:!0,configurable:!0,writable:!0}):t[u]=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!=O?O:g.lineStart,this.parent=null!=E?E:g.parent||{},this.src=g.src}return u(e,null,[{key:"parseType",value:function(e,t,n){switch(e[t]){case"*":return f.Type.ALIAS;case">":return f.Type.BLOCK_FOLDED;case"|":return f.Type.BLOCK_LITERAL;case"{":return f.Type.FLOW_MAP;case"[":return f.Type.FLOW_SEQ;case"?":return!n&&f.default.atBlank(e,t+1)?f.Type.MAP_KEY:f.Type.PLAIN;case":":return!n&&f.default.atBlank(e,t+1)?f.Type.MAP_VALUE:f.Type.PLAIN;case"-":return!n&&f.default.atBlank(e,t+1)?f.Type.SEQ_ITEM:f.Type.PLAIN;case'"':return f.Type.QUOTE_DOUBLE;case"'":return f.Type.QUOTE_SINGLE;default:return f.Type.PLAIN}}}]),u(e,[{key:"nodeStartsCollection",value:function(e){var t=this.inCollection,n=this.inFlow,r=this.src;if(t||n)return!1;if(e instanceof i.default)return!0;var a=e.range.end;return"\n"!==r[a]&&"\n"!==r[a-1]&&":"===r[a=f.default.endOfWhiteSpace(r,a)]}},{key:"parseProps",value:function(t){for(var n=this.inFlow,r=this.parent,a=this.src,o=[],i=!1,u=a[t=f.default.endOfWhiteSpace(a,t)];u===f.Char.ANCHOR||u===f.Char.COMMENT||u===f.Char.TAG||"\n"===u;){if("\n"===u){var s=t+1,c=f.default.endOfIndent(a,s),l=c-(s+this.indent),d=r.type===f.Type.SEQ_ITEM&&r.context.atLineStart;if(!f.default.nextNodeIsIndented(a[c],l,!d))break;this.atLineStart=!0,this.lineStart=s,i=!1,t=c}else if(u===f.Char.COMMENT){var p=f.default.endOfLine(a,t+1);o.push(new h.default(t,p)),t=p}else{var v=f.default.endOfIdentifier(a,t+1);u===f.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=f.default.endOfIdentifier(a,v+5)),o.push(new h.default(t,v)),i=!0,t=f.default.endOfWhiteSpace(a,v)}u=a[t]}return i&&":"===u&&f.default.atBlank(a,t+1)&&(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,e.exports=t.default,e.exports.default=t.default});n(j);var B=r(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=new r.default({src:e}),o=[],i=0;for(;i<e.length;){var u=new n.default;i=u.parse(a,i),o.push(u)}return o.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<o.length;++r)n=o[r].setOrigRanges(t,n);return t.splice(0,t.length),!0},o.toString=function(){return o.join("...\n")},o};var n=a(T),r=a(j);function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default});n(B);var Y=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,r){return Array.isArray(t)?t.map(function(t,n){return e(t,String(n),r)}):t&&"function"==typeof t.toJSON?t.toJSON(n,r):t},e.exports=t.default,e.exports.default=t.default});n(Y);var F=r(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}});n(F);var U=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function e(){o(this,e)},e.exports=t.default,e.exports.default=t.default});n(U);var Q=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(F),r=a(U);function a(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}var c=function(e){function t(){var e,n;o(this,t);for(var r=arguments.length,a=new Array(r),u=0;u<r;u++)a[u]=arguments[u];return i(h(h(n=p(this,(e=f(t)).call.apply(e,[this].concat(a))))),"items",[]),n}return s(t,r.default),u(t,[{key:"toJSON",value:function(){return null}},{key:"toString",value:function(e,r,a){var o=this,i=r.blockItem,u=r.flowChars,s=r.itemIndent,f=e,c=f.doc,l=f.indent,d=this.type&&"FLOW"===this.type.substr(0,4)||e.inFlow;d&&(s+=" "),e=Object.assign({},e,{indent:s,inFlow:d,type:null});var h,p=!1,v=!1,g=this.items.reduce(function(t,r,a){var i=r&&r.commentBefore;i&&(p=!0,i.match(/^.*$/gm).forEach(function(e){t.push({type:"comment",str:"#".concat(e)})}));var u=r&&r.comment;u&&(p=!0);var f=c.schema.stringify(r,e,function(){u=null});return v||-1===f.indexOf("\n")||(v=!0),d&&a<o.items.length-1&&(f+=","),f=(0,n.default)(f,s,u),t.push({type:"item",str:f}),t},[]);if(0===g.length)h=u.start+u.end;else if(d){var m=u.start,y=u.end,_=g.map(function(e){return e.str});h=p||v||_.reduce(function(e,t){return e+t.length+2},2)>t.maxFlowStringSingleLineLength?"".concat(m,"\n ").concat(l).concat(_.join("\n ".concat(l)),"\n").concat(l).concat(y):"".concat(m," ").concat(_.join(" ")," ").concat(y)}else h=g.map(i).join("\n".concat(l));return this.comment&&(h+="\n"+this.comment.replace(/^/gm,"".concat(l,"#")),a&&a()),h}}]),t}();t.default=c,i(c,"maxFlowStringSingleLineLength",60),e.exports=t.default,e.exports.default=t.default});n(Q);var W=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(Y),r=a(U);function a(e){return e&&e.__esModule?e:{default:e}}var i=function(e){function t(e){var n;return o(this,t),(n=p(this,f(t).call(this))).value=e,n}return s(t,r.default),u(t,[{key:"toJSON",value:function(e,t){return t?this.value:(0,n.default)(this.value,e,t)}},{key:"toString",value:function(){return String(this.value)}}]),t}();t.default=i,e.exports=t.default,e.exports.default=t.default});n(W);var V=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=d(F),r=d(Y),i=d(Q),c=d(U),l=d(W);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 o(this,t),(n=p(this,f(t).call(this))).key=e,n.value=r,n.type="PAIR",n}return s(t,c.default),u(t,[{key:"toJSON",value:function(e,t){var n={},a=this.stringKey;return n[a]=(0,r.default)(this.value,a,t),n}},{key:"toString",value:function(e,t){if(!e||!e.doc)return JSON.stringify(this);var r=this.key,a=this.value,o=r instanceof c.default&&r.comment,u=!r||o||r instanceof i.default,s=e,f=s.doc,l=s.indent;e=Object.assign({},e,{implicitKey:!u,indent:l+" "});var d=f.schema.stringify(r,e,function(){o=null});o&&(d=(0,n.default)(d,e.indent,o)),e.implicitKey=!1;var h=f.schema.stringify(a,e,t),p=a&&a.commentBefore?" #".concat(a.commentBefore.replace(/\n+(?!\n|$)/g,"$&".concat(e.indent,"#"))):"";return u?"? ".concat(d,"\n").concat(l,":").concat(p?"".concat(p,"\n").concat(e.indent):" ").concat(h):a instanceof i.default?"".concat(d,":").concat(p,"\n").concat(e.indent).concat(h):"".concat(d,":").concat(p?"".concat(p,"\n").concat(e.indent):" ").concat(h)}},{key:"commentBefore",get:function(){return this.key&&this.key.commentBefore},set:function(e){null==this.key&&(this.key=new l.default(null)),this.key.commentBefore=e}},{key:"comment",get:function(){return this.value&&this.value.comment},set:function(e){null==this.value&&(this.value=new l.default(null)),this.value.comment=e}},{key:"stringKey",get:function(){var e=(0,r.default)(this.key);if(null===e)return"";if("object"===a(e))try{return JSON.stringify(e)}catch(e){}return String(e)}}]),t}();t.default=h,e.exports=t.default,e.exports.default=t.default});n(V);var K=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(Y),r=a(Q);function a(e){return e&&e.__esModule?e:{default:e}}var i=function(e){function t(){return o(this,t),p(this,f(t).apply(this,arguments))}return s(t,r.default),u(t,[{key:"toJSON",value:function(e,t){return this.items.map(function(e,r){return(0,n.default)(e,String(r),t)})}},{key:"toString",value:function(e,n){return e?v(f(t.prototype),"toString",this).call(this,e,{blockItem:function(e){var t=e.type,n=e.str;return"comment"===t?n:"- ".concat(n)},flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" "},n):JSON.stringify(this)}}]),t}();t.default=i,e.exports=t.default,e.exports.default=t.default});n(K);var $=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MERGE_KEY=void 0;var n=i(V),r=i(W),a=i(K);function i(e){return e&&e.__esModule?e:{default:e}}var c="<<";t.MERGE_KEY=c;var l=function(e){function t(e){var i;if(o(this,t),e instanceof n.default){var u=e.value;u instanceof a.default||((u=new a.default).items.push(e.value),u.range=e.value.range),(i=p(this,f(t).call(this,e.key,u))).range=e.range}else i=p(this,f(t).call(this,new r.default(c),new a.default));return i.type="MERGE_PAIR",p(i)}return s(t,n.default),u(t,[{key:"toString",value:function(e,n){var r=this.value;if(r.items.length>1)return v(f(t.prototype),"toString",this).call(this,e,n);this.value=r.items[0];var a=v(f(t.prototype),"toString",this).call(this,e,n);return this.value=r,a}}]),t}();t.default=l});n($);var q=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(Y),r=c(Q),a=c($),i=c(V);function c(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return o(this,t),p(this,f(t).apply(this,arguments))}return s(t,r.default),u(t,[{key:"toJSON",value:function(e,r){return this.items.reduce(function(e,o){if(o instanceof a.default)!function(){for(var n=Object.keys(e),a=o.value.items,i=a.length-1;i>=0;--i){var u=a[i].source;if(!(u instanceof t))throw new Error("Merge sources must be maps");!function(){var t=u.toJSON("",r);Object.keys(t).forEach(function(r){n.includes(r)||(e[r]=t[r])})}()}}();else{var i=o.stringKey,u=o.value;e[i]=(0,n.default)(u,i,r)}return e},{})}},{key:"toString",value:function(e,n){return e?(this.items.forEach(function(e){if(!(e instanceof i.default))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(e)," instead"))}),v(f(t.prototype),"toString",this).call(this,e,{blockItem:function(e){return e.str},flowChars:{start:"{",end:"}"},itemIndent:e.indent||""},n)):JSON.stringify(this)}}]),t}();t.default=l,e.exports=t.default,e.exports.default=t.default});n(q);var J=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var u=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(null==t)return new o.default(null);if("object"!==a(t))return u?new o.default(t):t;if(Array.isArray(t)){var s=new i.default;return s.items=t.map(function(t){return e(t,u)}),s}var f=new n.default;return f.items=Object.keys(t).map(function(n){var a=e(n,u),o=e(t[n],u);return new r.default(a,o)}),f};var n=u(q),r=u(V),o=u(W),i=u(K);function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default});n(J);var G=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(Y),r=a(U);function a(e){return e&&e.__esModule?e:{default:e}}var i,c,l,d=function(e){function t(e){var n;return o(this,t),(n=p(this,f(t).call(this))).source=e,n.type=M.Type.ALIAS,n}return s(t,r.default),u(t,null,[{key:"stringify",value:function(e,t){var n=e.range,r=e.source,a=t.anchors,o=t.doc,i=t.implicitKey,u=Object.keys(a).find(function(e){return a[e]===r});if(u)return"*".concat(u).concat(i?" ":"");var s=o.anchors.getName(r)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(s," [").concat(n,"]"))}}]),u(t,[{key:"toJSON",value:function(e,t){return(0,n.default)(this.source,e,t)}},{key:"tag",set:function(e){throw new Error("Alias nodes cannot have tags")}}]),t}();t.default=d,l=!0,(c="default")in(i=d)?Object.defineProperty(i,c,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[c]=l,e.exports=t.default,e.exports.default=t.default});n(G);var H=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=f(G),r=f(q),a=f($),i=f(W),s=f(K);function f(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(){var t,n,r;o(this,e),r={},(n="map")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r}return u(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),u=0;u<o;u++)i[u]=arguments[u];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){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("a")}r[n]=t}return n}}],[{key:"validAnchorNode",value:function(e){return e instanceof i.default||e instanceof s.default||e instanceof r.default}}]),e}();t.default=c,e.exports=t.default,e.exports.default=t.default});n(H);var z=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(Q),r=i(V),o=i(W);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return Object.keys(function e(t,i){if(t&&"object"===a(t)){var u=t.tag;t instanceof n.default?(u&&(i[u]=!0),t.items.forEach(function(t){return e(t,i)})):t instanceof r.default?(e(t.key,i),e(t.value,i)):t instanceof o.default&&u&&(i[u]=!0)}return i}(e,{}))},e.exports=t.default,e.exports.default=t.default});n(z);var Z=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,a,o){var i=o.indentAtStart,u=o.lineWidth,s=void 0===u?80:u,f=o.minContentWidth,c=void 0===f?20:f,l=o.onFold,d=o.onOverflow;if(!s||s<0)return e;var h=Math.max(1+c,1+s-t.length);if(e.length<=h)return e;for(var p=[],v={},g=s-("number"==typeof i?i:t.length),m=void 0,y=void 0,_=!1,b=0,w=e[0];w;w=e[b+=1]){if(a===r&&"\\"===w)switch(e[b+1]){case"x":w=e[b+=4];break;case"u":w=e[b+=6];break;case"U":w=e[b+=10];break;default:w=e[b+=2]}if("\n"===w){if(a===n)for(var O=e[b+1];" "===O||"\t"===O;){do{w=e[b+=1]}while(w&&"\n"!==w);O=e[b+1]}g=b+h,m=void 0}else{if(" "===w&&y&&" "!==y&&"\n"!==y&&"\t"!==y){var E=e[b+1];E&&" "!==E&&"\n"!==E&&"\t"!==E&&(m=b)}if(b>=g)if(m)p.push(m),g=m+h,m=void 0;else if(a===r){for(;" "===y||"\t"===y;)y=w,w=e[b+=1],_=!0;p.push(b-2),v[b-2]=!0,g=b-2+h,m=void 0}else _=!0}y=w}_&&d&&d();if(0===p.length)return e;l&&l();for(var M=e.slice(0,p[0]),S=0;S<p.length;++S){var A=p[S],P=p[S+1]||e.length;a===r&&v[A]&&(M+="".concat(e[A],"\\")),M+="\n".concat(t).concat(e.slice(A+1,P))}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});n(Z);var X=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=f,t.str=t.resolve=t.strOptions=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}(Z);var r={defaultType:M.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};t.strOptions=r;var a=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},o=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):""};function i(e,t){var a=t.implicitKey,o=t.indent,i=r.doubleQuoted,u=i.jsonEncoding,s=i.minMultiLineLength,f=JSON.stringify(e);if(u)return f;for(var c="",l=0,d=0,h=f[d];h;h=f[++d])if(" "===h&&"\\"===f[d+1]&&"n"===f[d+2]&&(c+=f.slice(l,d)+"\\ ",l=d+=1,h="\\"),"\\"===h)switch(f[d+1]){case"u":c+=f.slice(l,d);var p=f.substr(d+2,4);switch(p){case"0000":c+="\\0";break;case"0007":c+="\\a";break;case"000b":c+="\\v";break;case"001b":c+="\\e";break;case"0085":c+="\\N";break;case"00a0":c+="\\_";break;case"2028":c+="\\L";break;case"2029":c+="\\P";break;default:"00"===p.substr(0,2)?c+="\\x"+p.substr(2):c+=f.substr(d,6)}l=(d+=5)+1;break;case"n":if(a||'"'===f[d+2]||f.length<s)d+=1;else{for(c+=f.slice(l,d)+"\n\n";"\\"===f[d+2]&&"n"===f[d+3]&&'"'!==f[d+4];)c+="\n",d+=2;c+=o," "===f[d+2]&&(c+="\\"),l=(d+=1)+1}break;default:d+=1}return c=l?c+f.slice(l):f,a?c:(0,n.default)(c,o,n.FOLD_QUOTED,r.fold)}function u(e,t){var a=t.indent,o=t.implicitKey;if(o){if(/\n/.test(e))return i(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return i(e,t);var u="'"+e.replace(/'/g,"''").replace(/\n+/g,"$&\n".concat(a))+"'";return o?u:(0,n.default)(u,a,n.FOLD_FLOW,r.fold)}function s(e,t,o){var u=e.comment,s=e.type,f=e.value;if(/\n[\t ]+$/.test(f)||/^\s*$/.test(f))return i(f,t);var c=t.indent||(t.forceBlockIndent?" ":""),l=c?"2":"1",d=s!==M.Type.BLOCK_FOLDED&&(s===M.Type.BLOCK_LITERAL||!a(f,r.fold.lineWidth-c.length)),h=d?"|":">";if(!f)return h+"\n";var p="",v="";if(f=f.replace(/[\n\t ]*$/,function(e){var t=e.indexOf("\n");return-1===t?h+="-":f!==e&&t===e.length-1||(h+="+"),v=e.replace(/\n$/,""),""}).replace(/^[\n ]*/,function(e){-1!==e.indexOf(" ")&&(h+=l);var t=e.match(/ +$/);return t?(p=e.slice(0,-t[0].length),t[0]):(p=e,"")}),v&&(v=v.replace(/\n+(?!\n|$)/g,"$&".concat(c))),p&&(p=p.replace(/\n+/g,"$&".concat(c))),u&&(h+=" #"+u.replace(/ ?[\r\n]+/g," "),o&&o()),!f)return"".concat(h).concat(l,"\n").concat(c).concat(v);if(d)return f=f.replace(/\n+/g,"$&".concat(c)),"".concat(h,"\n").concat(c).concat(p).concat(f).concat(v);f=f.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(c));var g=(0,n.default)("".concat(p).concat(f).concat(v),c,n.FOLD_BLOCK,r.fold);return"".concat(h,"\n").concat(c).concat(g)}function f(e,t,a){var o=r.defaultType,f=t.implicitKey,c=t.inFlow,l=e,d=l.type,h=l.value;"string"!=typeof h&&(h=String(h),e=Object.assign({},e,{value:h}));var p=function(o){switch(o){case M.Type.BLOCK_FOLDED:case M.Type.BLOCK_LITERAL:return s(e,t,a);case M.Type.QUOTE_DOUBLE:return i(h,t);case M.Type.QUOTE_SINGLE:return u(h,t);case M.Type.PLAIN:return function(e,t,a){var o=e.comment,f=e.type,c=e.value,l=t.implicitKey,d=t.indent,h=t.inFlow,p=t.tags;if(l&&/[\n[\]{},]/.test(c)||h&&/[[\]{},]/.test(c))return i(c,t);if(!c||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(c))return l||h||-1===c.indexOf("\n")?-1!==c.indexOf('"')&&-1===c.indexOf("'")?u(c,t):i(c,t):s(e,t,a);if(!l&&!h&&f!==M.Type.PLAIN&&-1!==c.indexOf("\n"))return s(e,t,a);var v=c.replace(/\n+/g,"$&\n".concat(d));if("string"!=typeof p.resolveScalar(v).value)return i(c,t);var g=l?v:(0,n.default)(v,d,n.FOLD_FLOW,r.fold);return!o||h||-1===g.indexOf("\n")&&-1===o.indexOf("\n")?g:(a&&a(),(0,F.addCommentBefore)(g,d,o))}(e,t,a);default:return null}};d!==M.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(h)?d=M.Type.QUOTE_DOUBLE:!f&&!c||d!==M.Type.BLOCK_FOLDED&&d!==M.Type.BLOCK_LITERAL||(d=M.Type.QUOTE_DOUBLE);var v=p(d);if(null===v&&null===(v=p(o)))throw new Error("Unsupported default string type ".concat(o));return v}t.resolve=o;var c={class:String,default:!0,tag:"tag:yaml.org,2002:str",resolve:o,stringify:f,options:r};t.str=c});n(X);var ee=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),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 u=n-1;u>=0;--u){var s=t.items[u];if(s&&s.range){i=s.range.end+2*(n-u);break}}if(i>a+1024){var f=String(r).substr(0,8)+"..."+String(r).substr(-8);e.push(new S.YAMLSemanticError(t,'The "'.concat(f,'" key is too long')))}},t.resolveComments=function(e,t){t.forEach(function(t){var n=t.comment,r=t.before,a=e.items[r];a?a.commentBefore?a.commentBefore+="\n"+n:a.commentBefore=n:e.comment?e.comment+="\n"+n:e.comment=n})}});n(ee);var te=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==M.Type.MAP&&t.type!==M.Type.FLOW_MAP){var u="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new S.YAMLSyntaxError(t,u)),null}var s=t.type===M.Type.FLOW_MAP?function(e,t){for(var n=[],r=[],a=void 0,i=null,u=!1,s="{",f=0;f<t.items.length;++f){(0,ee.checkKeyLength)(e.errors,t,f,a,i);var c=t.items[f];if("string"==typeof c.char){var l=c.char;if("?"===l&&void 0===a&&!u){u=!0,s=":";continue}if(":"===l){if(void 0===a&&(a=null),":"===s){s=",";continue}}else if(u&&(void 0===a&&","!==l&&(a=null),u=!1),void 0!==a&&(r.push(new o.default(a)),a=void 0,i=null,","===l)){s=":";continue}if("}"===l){if(f===t.items.length-1)continue}else if(l===s){s=":";continue}e.errors.push(new S.YAMLSyntaxError(t,"Flow map contains an unexpected ".concat(l)))}else c.type===M.Type.COMMENT?n.push({comment:c.comment,before:r.length}):void 0===a?(","===s&&e.errors.push(new S.YAMLSemanticError(c,"Separator , missing in flow map")),a=e.resolveNode(c),i=u?null:c.range.start):(","!==s&&e.errors.push(new S.YAMLSemanticError(c,"Indicator : missing in flow map entry")),r.push(new o.default(a,e.resolveNode(c))),a=void 0,u=!1)}"}"!==t.items[t.items.length-1].char&&e.errors.push(new S.YAMLSemanticError(t,"Expected flow map to end with }"));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,u=null,s=0;s<t.items.length;++s){var f=t.items[s];switch(f.type){case M.Type.COMMENT:r.push({comment:f.comment,before:a.length});break;case M.Type.MAP_KEY:void 0!==i&&a.push(new o.default(i)),f.error&&e.errors.push(f.error),i=e.resolveNode(f.node),u=null;break;case M.Type.MAP_VALUE:if(void 0===i&&(i=null),f.error&&e.errors.push(f.error),!f.context.atLineStart&&f.node&&f.node.type===M.Type.MAP&&!f.node.context.atLineStart){e.errors.push(new S.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(M.Type.PLAIN,[])).context={parent:f,src:f.context.src};var l=f.range.start+1,d=f.range.origStart+1;c.range={start:l,end:l},c.valueRange={start:l,end:l},"number"==typeof f.range.origStart&&(c.range.origStart=c.range.origEnd=d,c.valueRange.origStart=c.valueRange.origEnd=d)}a.push(new o.default(i,e.resolveNode(c))),(0,ee.checkKeyLength)(e.errors,t,s,i,u),i=void 0,u=null;break;default:void 0!==i&&a.push(new o.default(i)),i=e.resolveNode(f),u=f.range.start,f.error&&e.errors.push(f.error);var h=t.items[s+1];if(!h||h.type!==M.Type.MAP_VALUE){e.errors.push(new S.YAMLSemanticError(f,"Implicit map keys need to be followed by map values"))}if(f.valueRangeContainsNewline){e.errors.push(new S.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),f=s.comments,c=s.items,l=new r.default;l.items=c,(0,ee.resolveComments)(l,f);for(var d=0;d<c.length;++d){var h=c[d].key;if(e.schema.merge&&h&&h.value===a.MERGE_KEY){c[d]=new a.default(c[d]);var p=c[d].value.items,v=null;p.some(function(e){if(e instanceof i.default){var t=e.source.type;return t!==M.Type.MAP&&t!==M.Type.FLOW_MAP&&(v="Merge nodes aliases can only point to maps")}return v="Merge nodes can only have Alias nodes as values"}),v&&e.errors.push(new S.YAMLSemanticError(t,v))}else for(var g=d+1;g<c.length;++g){var m=c[g].key;if(h===m||h&&m&&h.hasOwnProperty("value")&&h.value===m.value){var y='Map keys must be unique; "'.concat(h,'" is repeated');e.errors.push(new S.YAMLSemanticError(t,y));break}}}return t.resolved=l,l};var n=u(N),r=u(q),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}($),o=u(V),i=u(G);function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default});n(te);var ne=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==M.Type.SEQ&&t.type!==M.Type.FLOW_SEQ){var a="A ".concat(t.type," node cannot be resolved as a sequence");return e.errors.push(new S.YAMLSyntaxError(t,a)),null}var o=t.type===M.Type.FLOW_SEQ?function(e,t){for(var r=[],a=[],o=!1,i=void 0,u=null,s="[",f=0;f<t.items.length;++f){var c=t.items[f];if("string"==typeof c.char){var l=c.char;if(":"===l||!o&&void 0===i||(o&&void 0===i&&(i=s?a.pop():null),a.push(new n.default(i)),o=!1,i=void 0,u=null),l===s)s=null;else if(s||"?"!==l){if("["!==s&&":"===l&&void 0===i){if(","===s){if((i=a.pop())instanceof n.default){e.errors.push(new S.YAMLSemanticError(l,"Chaining flow sequence pairs is invalid (e.g. [ a : b : c ])"))}o||(0,ee.checkKeyLength)(e.errors,t,f,i,u)}else i=null;u=null,o=!1,s=null}else if("["===s||"]"!==l||f<t.items.length-1){var d="Flow sequence contains an unexpected ".concat(l);e.errors.push(new S.YAMLSyntaxError(t,d))}}else o=!0}else if(c.type===M.Type.COMMENT)r.push({comment:c.comment,before:a.length});else{if(s){var h="Expected a ".concat(s," here in flow sequence");e.errors.push(new S.YAMLSemanticError(c,h))}var p=e.resolveNode(c);void 0===i?a.push(p):(a.push(new n.default(i,p)),i=void 0),u=c.range.start,s=","}}"]"!==t.items[t.items.length-1].char&&e.errors.push(new S.YAMLSemanticError(t,"Expected flow sequence to end with ]"));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 M.Type.COMMENT:n.push({comment:o.comment,before:r.length});break;case M.Type.SEQ_ITEM:if(o.error&&e.errors.push(o.error),r.push(e.resolveNode(o.node)),o.hasProps){e.errors.push(new S.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 S.YAMLSyntaxError(o,"Unexpected ".concat(o.type," node in sequence")))}}return{comments:n,items:r}}(e,t),i=o.comments,u=o.items,s=new r.default;return s.items=u,(0,ee.resolveComments)(s,i),t.resolved=s,s};var n=a(V),r=a(K);function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default});n(ne);var re=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.seq=t.map=void 0;var n=i(q),r=i(K),a=i(te),o=i(ne);function i(e){return e&&e.__esModule?e:{default:e}}var u={class:n.default,default:!0,tag:"tag:yaml.org,2002:map",resolve:a.default,stringify:function(e,t,n){return e.toString(t,n)}};t.map=u;var s={class:r.default,default:!0,tag:"tag:yaml.org,2002:seq",resolve:o.default,stringify:function(e,t,n){return e.toString(t,n)}};t.seq=s;var f=[u,s,X.str];t.default=f});n(re);var ae=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.nullOptions=t.stringifyNumber=void 0;var n,r=(n=re)&&n.__esModule?n:{default:n};var a=function(e){var t=e.value;return isFinite(t)?JSON.stringify(t):isNaN(t)?".nan":t<0?"-.inf":".inf"};t.stringifyNumber=a;var o={nullStr:"null"};t.nullOptions=o;var i=r.default.concat([{class:null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:o,stringify:function(){return o.nullStr}},{class:Boolean,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]}},{class:Number,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)}},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function(e){return parseInt(e,10)},stringify:a},{class:Number,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)}},{class:Number,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:a},{class:Number,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:a}]);t.default=i});n(ae);var oe=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=[re.map,re.seq,{class:String,default:!0,tag:"tag:yaml.org,2002:str",resolve:X.resolve},{class:null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function(){return null}},{class:Boolean,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$/,resolve:function(){return!0}},{class:Boolean,default:!0,tag:"tag:yaml.org,2002:bool",test:/^false$/,resolve:function(){return!1}},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function(e){return parseInt(e,10)}},{class:Number,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)}}];n.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var r=n;t.default=r,e.exports=t.default,e.exports.default=t.default});n(oe);var ie="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},ue=[],se=[],fe="undefined"!=typeof Uint8Array?Uint8Array:Array,ce=!1;function le(){ce=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)ue[t]=e[t],se[e.charCodeAt(t)]=t;se["-".charCodeAt(0)]=62,se["_".charCodeAt(0)]=63}function de(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(ue[(a=r)>>18&63]+ue[a>>12&63]+ue[a>>6&63]+ue[63&a]);return o.join("")}function he(e){var t;ce||le();for(var n=e.length,r=n%3,a="",o=[],i=0,u=n-r;i<u;i+=16383)o.push(de(e,i,i+16383>u?u:i+16383));return 1===r?(t=e[n-1],a+=ue[t>>2],a+=ue[t<<4&63],a+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],a+=ue[t>>10],a+=ue[t>>4&63],a+=ue[t<<2&63],a+="="),o.push(a),o.join("")}function pe(e,t,n,r,a){var o,i,u=8*a-r-1,s=(1<<u)-1,f=s>>1,c=-7,l=n?a-1:0,d=n?-1:1,h=e[t+l];for(l+=d,o=h&(1<<-c)-1,h>>=-c,c+=u;c>0;o=256*o+e[t+l],l+=d,c-=8);for(i=o&(1<<-c)-1,o>>=-c,c+=r;c>0;i=256*i+e[t+l],l+=d,c-=8);if(0===o)o=1-f;else{if(o===s)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 ve(e,t,n,r,a,o){var i,u,s,f=8*o-a-1,c=(1<<f)-1,l=c>>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?(u=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-i))<1&&(i--,s*=2),(t+=i+l>=1?d/s:d*Math.pow(2,1-l))*s>=2&&(i++,s/=2),i+l>=c?(u=0,i=c):i+l>=1?(u=(t*s-1)*Math.pow(2,a),i+=l):(u=t*Math.pow(2,l-1)*Math.pow(2,a),i=0));a>=8;e[n+h]=255&u,h+=p,u/=256,a-=8);for(i=i<<a|u,f+=a;f>0;e[n+h]=255&i,h+=p,i/=256,f-=8);e[n+h-p]|=128*v}var ge={}.toString,me=Array.isArray||function(e){return"[object Array]"==ge.call(e)};function ye(){return be.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function _e(e,t){if(ye()<t)throw new RangeError("Invalid typed array length");return be.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=be.prototype:(null===e&&(e=new be(t)),e.length=t),e}function be(e,t,n){if(!(be.TYPED_ARRAY_SUPPORT||this instanceof be))return new be(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 Ee(this,e)}return we(this,e,t,n)}function we(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);be.TYPED_ARRAY_SUPPORT?(e=t).__proto__=be.prototype:e=Me(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!be.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Pe(t,n),a=(e=_e(e,r)).write(t,n);a!==r&&(e=e.slice(0,a));return e}(e,t,n):function(e,t){if(Ae(t)){var n=0|Se(t.length);return 0===(e=_e(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?_e(e,0):Me(e,t);if("Buffer"===t.type&&me(t.data))return Me(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Oe(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 Ee(e,t){if(Oe(t),e=_e(e,t<0?0:0|Se(t)),!be.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function Me(e,t){var n=t.length<0?0:0|Se(t.length);e=_e(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function Se(e){if(e>=ye())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ye().toString(16)+" bytes");return 0|e}function Ae(e){return!(null==e||!e._isBuffer)}function Pe(e,t){if(Ae(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 Xe(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return et(e).length;default:if(r)return Xe(e).length;t=(""+t).toLowerCase(),r=!0}}function Te(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Le(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=be.from(t,r)),Ae(t))return 0===t.length?-1:ke(e,t,n,r,a);if("number"==typeof t)return t&=255,be.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):ke(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function ke(e,t,n,r,a){var o,i=1,u=e.length,s=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,u/=2,s/=2,n/=2}function f(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){var c=-1;for(o=n;o<u;o++)if(f(e,o)===f(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===s)return c*i}else-1!==c&&(o-=o-c),c=-1}else for(n+s>u&&(n=u-s),o=n;o>=0;o--){for(var l=!0,d=0;d<s;d++)if(f(e,o+d)!==f(t,d)){l=!1;break}if(l)return o}return-1}function xe(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 u=parseInt(t.substr(2*i,2),16);if(isNaN(u))return i;e[n+i]=u}return i}function Ce(e,t,n,r){return tt(Xe(t,e.length-n),e,n,r)}function Re(e,t,n,r){return tt(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Ne(e,t,n,r){return Re(e,t,n,r)}function Ie(e,t,n,r){return tt(et(t),e,n,r)}function De(e,t,n,r){return tt(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 je(e,t,n){return 0===t&&n===e.length?he(e):he(e.slice(t,n))}function Be(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a<n;){var o,i,u,s,f=e[a],c=null,l=f>239?4:f>223?3:f>191?2:1;if(a+l<=n)switch(l){case 1:f<128&&(c=f);break;case 2:128==(192&(o=e[a+1]))&&(s=(31&f)<<6|63&o)>127&&(c=s);break;case 3:o=e[a+1],i=e[a+2],128==(192&o)&&128==(192&i)&&(s=(15&f)<<12|(63&o)<<6|63&i)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:o=e[a+1],i=e[a+2],u=e[a+3],128==(192&o)&&128==(192&i)&&128==(192&u)&&(s=(15&f)<<18|(63&o)<<12|(63&i)<<6|63&u)>65535&&s<1114112&&(c=s)}null===c?(c=65533,l=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),a+=l}return function(e){var t=e.length;if(t<=Ye)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Ye));return n}(r)}be.TYPED_ARRAY_SUPPORT=void 0===ie.TYPED_ARRAY_SUPPORT||ie.TYPED_ARRAY_SUPPORT,be.poolSize=8192,be._augment=function(e){return e.__proto__=be.prototype,e},be.from=function(e,t,n){return we(null,e,t,n)},be.TYPED_ARRAY_SUPPORT&&(be.prototype.__proto__=Uint8Array.prototype,be.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&be[Symbol.species]),be.alloc=function(e,t,n){return function(e,t,n,r){return Oe(t),t<=0?_e(e,t):void 0!==n?"string"==typeof r?_e(e,t).fill(n,r):_e(e,t).fill(n):_e(e,t)}(null,e,t,n)},be.allocUnsafe=function(e){return Ee(null,e)},be.allocUnsafeSlow=function(e){return Ee(null,e)},be.isBuffer=function(e){return null!=e&&(!!e._isBuffer||nt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&nt(e.slice(0,0))}(e))},be.compare=function(e,t){if(!Ae(e)||!Ae(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},be.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}},be.concat=function(e,t){if(!me(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return be.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=be.allocUnsafe(t),a=0;for(n=0;n<e.length;++n){var o=e[n];if(!Ae(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,a),a+=o.length}return r},be.byteLength=Pe,be.prototype._isBuffer=!0,be.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)Te(this,t,t+1);return this},be.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)Te(this,t,t+3),Te(this,t+1,t+2);return this},be.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)Te(this,t,t+7),Te(this,t+1,t+6),Te(this,t+2,t+5),Te(this,t+3,t+4);return this},be.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Be(this,0,e):function(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 Qe(this,t,n);case"utf8":case"utf-8":return Be(this,t,n);case"ascii":return Fe(this,t,n);case"latin1":case"binary":return Ue(this,t,n);case"base64":return je(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return We(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},be.prototype.equals=function(e){if(!Ae(e))throw new TypeError("Argument must be a Buffer");return this===e||0===be.compare(this,e)},be.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+">"},be.prototype.compare=function(e,t,n,r,a){if(!Ae(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(t>>>=0,n>>>=0,r>>>=0,a>>>=0,this===e)return 0;for(var o=a-r,i=n-t,u=Math.min(o,i),s=this.slice(r,a),f=e.slice(t,n),c=0;c<u;++c)if(s[c]!==f[c]){o=s[c],i=f[c];break}return o<i?-1:i<o?1:0},be.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},be.prototype.indexOf=function(e,t,n){return Le(this,e,t,n,!0)},be.prototype.lastIndexOf=function(e,t,n){return Le(this,e,t,n,!1)},be.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 xe(this,e,t,n);case"utf8":case"utf-8":return Ce(this,e,t,n);case"ascii":return Re(this,e,t,n);case"latin1":case"binary":return Ne(this,e,t,n);case"base64":return Ie(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},be.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Ye=4096;function Fe(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 Ue(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 Qe(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+=Ze(e[o]);return a}function We(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 Ve(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 Ke(e,t,n,r,a,o){if(!Ae(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 $e(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 qe(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 Je(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 Ge(e,t,n,r,a){return a||Je(e,0,n,4),ve(e,t,n,r,23,4),n+4}function He(e,t,n,r,a){return a||Je(e,0,n,8),ve(e,t,n,r,52,8),n+8}be.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),be.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=be.prototype;else{var a=t-e;n=new be(a,void 0);for(var o=0;o<a;++o)n[o]=this[o+e]}return n},be.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||Ve(e,t,this.length);for(var r=this[e],a=1,o=0;++o<t&&(a*=256);)r+=this[e+o]*a;return r},be.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||Ve(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},be.prototype.readUInt8=function(e,t){return t||Ve(e,1,this.length),this[e]},be.prototype.readUInt16LE=function(e,t){return t||Ve(e,2,this.length),this[e]|this[e+1]<<8},be.prototype.readUInt16BE=function(e,t){return t||Ve(e,2,this.length),this[e]<<8|this[e+1]},be.prototype.readUInt32LE=function(e,t){return t||Ve(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},be.prototype.readUInt32BE=function(e,t){return t||Ve(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},be.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Ve(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},be.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Ve(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},be.prototype.readInt8=function(e,t){return t||Ve(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},be.prototype.readInt16LE=function(e,t){t||Ve(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},be.prototype.readInt16BE=function(e,t){t||Ve(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},be.prototype.readInt32LE=function(e,t){return t||Ve(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},be.prototype.readInt32BE=function(e,t){return t||Ve(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},be.prototype.readFloatLE=function(e,t){return t||Ve(e,4,this.length),pe(this,e,!0,23,4)},be.prototype.readFloatBE=function(e,t){return t||Ve(e,4,this.length),pe(this,e,!1,23,4)},be.prototype.readDoubleLE=function(e,t){return t||Ve(e,8,this.length),pe(this,e,!0,52,8)},be.prototype.readDoubleBE=function(e,t){return t||Ve(e,8,this.length),pe(this,e,!1,52,8)},be.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Ke(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},be.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Ke(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},be.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,1,255,0),be.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},be.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,2,65535,0),be.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):$e(this,e,t,!0),t+2},be.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,2,65535,0),be.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):$e(this,e,t,!1),t+2},be.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,4,4294967295,0),be.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},be.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,4,4294967295,0),be.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},be.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);Ke(this,e,t,n,a-1,-a)}var o=0,i=1,u=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===u&&0!==this[t+o-1]&&(u=1),this[t+o]=(e/i>>0)-u&255;return t+n},be.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);Ke(this,e,t,n,a-1,-a)}var o=n-1,i=1,u=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===u&&0!==this[t+o+1]&&(u=1),this[t+o]=(e/i>>0)-u&255;return t+n},be.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,1,127,-128),be.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},be.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,2,32767,-32768),be.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):$e(this,e,t,!0),t+2},be.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,2,32767,-32768),be.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):$e(this,e,t,!1),t+2},be.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,4,2147483647,-2147483648),be.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},be.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Ke(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),be.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},be.prototype.writeFloatLE=function(e,t,n){return Ge(this,e,t,!0,n)},be.prototype.writeFloatBE=function(e,t,n){return Ge(this,e,t,!1,n)},be.prototype.writeDoubleLE=function(e,t,n){return He(this,e,t,!0,n)},be.prototype.writeDoubleBE=function(e,t,n){return He(this,e,t,!1,n)},be.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||!be.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},be.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&&!be.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=Ae(e)?e:Xe(new be(e,r).toString()),u=i.length;for(o=0;o<n-t;++o)this[o+t]=i[o%u]}return this};var ze=/[^+\/0-9A-Za-z-_]/g;function Ze(e){return e<16?"0"+e.toString(16):e.toString(16)}function Xe(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 et(e){return function(e){var t,n,r,a,o,i;ce||le();var u=e.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[u-2]?2:"="===e[u-1]?1:0,i=new fe(3*u/4-o),r=o>0?u-4:u;var s=0;for(t=0,n=0;t<r;t+=4,n+=3)a=se[e.charCodeAt(t)]<<18|se[e.charCodeAt(t+1)]<<12|se[e.charCodeAt(t+2)]<<6|se[e.charCodeAt(t+3)],i[s++]=a>>16&255,i[s++]=a>>8&255,i[s++]=255&a;return 2===o?(a=se[e.charCodeAt(t)]<<2|se[e.charCodeAt(t+1)]>>4,i[s++]=255&a):1===o&&(a=se[e.charCodeAt(t)]<<10|se[e.charCodeAt(t+1)]<<4|se[e.charCodeAt(t+2)]>>2,i[s++]=a>>8&255,i[s++]=255&a),i}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(ze,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function tt(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 nt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var rt=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.binary=void 0;var n={class:Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:function(e,t){var n=(0,X.resolve)(e,t);return be.from(n,"base64")},options:{defaultType:M.Type.BLOCK_LITERAL,lineWidth:76},stringify:function(e,t,r){var a,o=e.comment,i=e.type,u=e.value;if(a=u instanceof be?u.toString("base64"):be.from(u.buffer).toString("base64"),i||(i=n.options.defaultType),i===M.Type.QUOTE_DOUBLE)u=a;else{for(var s=n.options.lineWidth,f=Math.ceil(a.length/s),c=new Array(f),l=0,d=0;l<f;++l,d+=s)c[l]=a.substr(d,s);u=c.join(i===M.Type.BLOCK_LITERAL?"\n":" ")}return(0,X.stringify)({comment:o,type:i,value:u},t,r)}};t.binary=n;var r=[n];t.default=r});n(rt);var at=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=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,ae.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={class:Number,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={class:Number,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={class: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,u,s,f){s&&(s=(s+"00").substr(1,3));var c=Date.UTC(t,r-1,a,o||0,i||0,u||0,s||0);if(f&&"Z"!==f){var l=n(f[0],f.slice(1));Math.abs(l)<30&&(l*=60),c-=6e4*l}return new Date(c)},stringify:function(e){return e.value.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};t.timestamp=i;var u=[a,o,i];t.default=u});n(at);var ot=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.boolOptions=t.nullOptions=void 0;var n=o(rt),r=o(at),a=o(re);function o(e){return e&&e.__esModule?e:{default:e}}var i={nullStr:"null"};t.nullOptions=i;var u={trueStr:"true",falseStr:"false"};t.boolOptions=u;var s=a.default.concat([{class:null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:i,stringify:function(){return i.nullStr}},{class:Boolean,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:u,stringify:function(e){return e.value?u.trueStr:u.falseStr}},{class:Boolean,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:u,stringify:function(e){return e.value?u.trueStr:u.falseStr}},{class:Number,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)}},{class:Number,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)}},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:function(e){return parseInt(e.replace(/_/g,""),10)},stringify:ae.stringifyNumber},{class:Number,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)}},{class:Number,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:ae.stringifyNumber},{class:Number,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?([0-9][0-9_]*)?\.[0-9_]*([eE][-+]?[0-9]+)?$/,resolve:function(e){return parseFloat(e.replace(/_/g,""))},stringify:ae.stringifyNumber}],r.default,n.default);t.default=s});n(ot);var it=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DefaultTags=t.defaultPrefix=t.availableSchema=void 0;var n=v(J),r=v(G),i=v(Q),s=v(ae),f=v(re),c=v(oe),l=v(U),d=v(V),h=v(W),p=v(ot);function v(e){return e&&e.__esModule?e:{default:e}}var g={core:s.default,failsafe:f.default,json:c.default,"yaml-1.1":p.default};t.availableSchema=g;t.defaultPrefix="tag:yaml.org,2002:";var m={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};t.DefaultTags=m;var y=function(){function e(t){var n=t.merge,r=t.schema,a=t.tags;if(o(this,e),this.merge=!!n,this.name=r,this.schema=g[r],!this.schema){var i=Object.keys(g).map(function(e){return JSON.stringify(e)}).join(", ");throw new Error("Unknown schema; use ".concat(i,", or { tag, test, resolve }[]"))}Array.isArray(a)?this.schema=this.schema.concat(a):"function"==typeof a&&(this.schema=a(this.schema.slice()))}return u(e,null,[{key:"defaultStringifier",value:function(e){return JSON.stringify(e)}}]),u(e,[{key:"resolveScalar",value:function(e,t){t||(t=this.schema);for(var n=0;n<t.length;++n){var r=t[n],a=r.format,o=r.test,i=r.resolve;if(o){var u=e.match(o);if(u){var s=new h.default(i.apply(null,u));return a&&(s.format=a),s}}}return this.schema.scalarFallback&&(e=this.schema.scalarFallback(e)),new h.default(e)}},{key:"resolveNode",value:function(e,t,n){var r=this.schema.filter(function(e){return e.tag===n}),a=r.find(function(e){return!e.test});t.error&&e.errors.push(t.error);try{if(a){var o=a.resolve(e,t);o instanceof i.default||(o=new h.default(o)),t.resolved=o}else{var u=(0,X.resolve)(e,t);"string"==typeof u&&r.length>0&&(t.resolved=this.resolveScalar(u,r))}}catch(n){n.source||(n.source=t),e.errors.push(n),t.resolved=null}return t.resolved?(n&&(t.resolved.tag=n),t.resolved):null}},{key:"resolveNodeWithFallback",value:function(e,t,n){var r=this.resolveNode(e,t,n);if(t.hasOwnProperty("resolved"))return r;var a,o=(a=t.type)===M.Type.FLOW_MAP||a===M.Type.MAP?m.MAP:function(e){var t=e.type;return t===M.Type.FLOW_SEQ||t===M.Type.SEQ}(t)?m.SEQ:m.STR;if(o){e.warnings.push(new S.YAMLWarning(t,"The tag ".concat(n," is unavailable, falling back to ").concat(o)));var i=this.resolveNode(e,t,o);return i.tag=n,i}return e.errors.push(new S.YAMLReferenceError(t,"The tag ".concat(n," is unavailable"))),null}},{key:"getTagObject",value:function(e){if(e instanceof r.default)return r.default;if(e.tag){var t=this.schema.find(function(t){var n=t.format;return t.tag===e.tag&&n===e.format});if(t||(t=this.schema.find(function(t){return t.tag===e.tag})),t)return t}if(null===e.value){var n=this.schema.find(function(e){return null===e.class&&!e.format});if(!n)throw new Error("Tag not resolved for null value");return n}var o=e;if(e.hasOwnProperty("value"))switch(a(e.value)){case"boolean":o=new Boolean;break;case"number":o=new Number;break;case"string":o=new String;break;default:o=e.value}var i=this.schema.find(function(t){return t.class&&o instanceof t.class&&t.format===e.format});if(i||(i=this.schema.find(function(e){return e.class&&o instanceof e.class&&!e.format})),!i){var u=o&&o.constructor?o.constructor.name:a(o);throw new Error("Tag not resolved for ".concat(u," value"))}return i}},{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&&e.tag!==t.tag?o.push(a.stringifyTag(e.tag)):t.default||o.push(a.stringifyTag(t.tag)),o.join(" ")}},{key:"stringify",value:function(t,r,a){if(t instanceof l.default||(t=(0,n.default)(t,!0)),r.tags=this,t instanceof d.default)return t.toString(r,a);var o=this.getTagObject(t),u=this.stringifyProps(t,o,r),s=o.stringify||e.defaultStringifier,f=s(t,r,a);return u?t instanceof i.default&&"{"!==f[0]&&"["!==f[0]?"".concat(u,"\n").concat(r.indent).concat(f):"".concat(u," ").concat(f):f}}]),e}();t.default=y});n(it);var ut=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=d(F),r=d(H),a=d(z),i=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}(it),s=d(G),f=d(Q),c=d(Y),l=d(W);function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==u.return||u.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var p,v,g,m=function(){function e(t){o(this,e),this.anchors=new r.default,this.commentBefore=null,this.comment=null,this.contents=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return u(e,[{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"setSchema",value:function(){this.schema||(this.schema=new i.default(Object.assign({},this.getDefaults(),this.options)))}},{key:"parse",value:function(e){var t=this;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.error,u=e.valueRange;i&&(i.source||(i.source=this),this.errors.push(i));var s=[];r.forEach(function(e){var n=e.comment,r=e.name;switch(r){case"TAG":t.resolveTagDirective(e);break;case"YAML":case"YAML:1.0":t.resolveYamlDirective(e);break;default:if(r){var a="YAML only supports %TAG and %YAML directives, and not %".concat(r);t.warnings.push(new S.YAMLWarning(e,a))}}n&&s.push(n)}),this.range=u?[u.start,u.end]:null,this.setSchema(),this.anchors._cstAliases=[],this.commentBefore=s.join("\n")||null;var c={before:[],after:[]},l=[];switch(o.forEach(function(e){if(e.valueRange){if(1===l.length){t.errors.push(new S.YAMLSyntaxError(e,"Document is not valid YAML (bad indentation?)"))}l.push(t.resolveNode(e))}else if(e.comment){(0===l.length?c.before:c.after).push(e.comment)}}),l.length){case 0:this.contents=null,c.after=c.before;break;case 1:if(this.contents=l[0],this.contents){var d=c.before.join("\n")||null;if(d){var h=this.contents instanceof f.default&&this.contents.items[0]?this.contents.items[0]:this.contents;h.commentBefore=h.commentBefore?"".concat(d,"\n").concat(h.commentBefore):d}}else c.after=c.before.concat(c.after);break;default:this.contents=l,this.contents[0]?this.contents[0].commentBefore=c.before.join("\n")||null:c.after=c.before.concat(c.after)}return this.comment=c.after.join("\n")||null,this.anchors.resolveNodes(),this}},{key:"resolveTagDirective",value:function(e){var t=h(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 S.YAMLSemanticError(e,"The %TAG directive must only be given at most once per handle in the same document."))}else{this.errors.push(new S.YAMLSemanticError(e,"Insufficient parameters given for %TAG directive"))}}},{key:"resolveYamlDirective",value:function(t){var n=h(t.parameters,1)[0];if("YAML:1.0"===t.name&&(n="1.0"),this.version){this.errors.push(new S.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 S.YAMLWarning(t,a))}this.version=n}else{this.errors.push(new S.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,o=t.suffix,u=t.verbatim;if(u){if("!"!==u&&"!!"!==u)return u;var s="Verbatim tags aren't resolved, so ".concat(u," is invalid.");this.errors.push(new S.YAMLSemanticError(e,s))}else if("!"!==a||o){var f=this.tagPrefixes.find(function(e){return e.handle===a});if(!f){var c=this.getDefaults().tagPrefixes;c&&(f=c.find(function(e){return e.handle===a}))}if(f){if(o){if("!"===a&&"1.0"===(this.version||this.options.version)){if("^"===o[0])return o;if(/[:/]/.test(o)){var l=o.match(/^([a-z0-9-]+)\/(.*)/i);return l?"tag:".concat(l[1],".yaml.org,2002:").concat(l[2]):"tag:".concat(o)}}return f.prefix+decodeURIComponent(o)}this.errors.push(new S.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 S.YAMLSemanticError(e,d))}}else r=!0}switch(n){case M.Type.BLOCK_FOLDED:case M.Type.BLOCK_LITERAL:case M.Type.QUOTE_DOUBLE:case M.Type.QUOTE_SINGLE:return i.DefaultTags.STR;case M.Type.FLOW_MAP:case M.Type.MAP:return i.DefaultTags.MAP;case M.Type.FLOW_SEQ:case M.Type.SEQ:return i.DefaultTags.SEQ;case M.Type.PLAIN:return r?i.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,i=!1,u={before:[],after:[]};if((function(e){return e&&-1!==[M.Type.MAP_KEY,M.Type.MAP_VALUE,M.Type.SEQ_ITEM].indexOf(e.type)}(e.context.parent)?e.context.parent.props.concat(e.props):e.props).forEach(function(t,n){var a=t.start,s=t.end;switch(e.context.src[a]){case M.Char.COMMENT:if(!e.commentHasRequiredWhitespace(a)){r.push(new S.YAMLSemanticError(e,"Comments must be separated from other tokens by white space characters"))}var f=e.context.src.slice(a+1,s),c=e.header,l=e.valueRange;l&&(a>l.start||c&&a>c.start)?u.after.push(f):u.before.push(f);break;case M.Char.ANCHOR:if(o){r.push(new S.YAMLSemanticError(e,"A node can have at most one anchor"))}o=!0;break;case M.Char.TAG:if(i){r.push(new S.YAMLSemanticError(e,"A node can have at most one tag"))}i=!0}}),o){var f=e.anchor,c=n.getNode(f);c&&(n.map[n.newName(f)]=c),n.map[f]=e}if(e.type===M.Type.ALIAS){if(o||i){r.push(new S.YAMLSemanticError(e,"An alias node must not specify any properties"))}var l=e.rawValue,d=n.getNode(l);if(!d){var h="Aliased anchor not found: ".concat(l);return r.push(new S.YAMLReferenceError(e,h)),null}if(t=new s.default(d),n._cstAliases.push(t),!d.resolved){this.warnings.push(new S.YAMLWarning(e,"Alias node contains a circular reference, which cannot be resolved as JSON"))}}else{var p=this.resolveTagName(e);if(p)t=a.resolveNodeWithFallback(this,e,p);else{if(e.type!==M.Type.PLAIN){var v="Failed to resolve ".concat(e.type," node here");return r.push(new S.YAMLSyntaxError(e,v)),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 g=u.before.join("\n");g&&(t.commentBefore=t.commentBefore?"".concat(t.commentBefore,"\n").concat(g):g);var m=u.after.join("\n");m&&(t.comment=t.comment?"".concat(t.comment,"\n").concat(m):m)}return e.resolved=t}},{key:"listNonDefaultTags",value:function(){return(0,a.default)(this.contents).filter(function(e){return 0!==e.indexOf(i.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.warnings.find(function(e){return/circular reference/.test(e.message)});if(t)throw new S.YAMLSemanticError(t.source,t.message);var n=this.options.keepBlobsInJSON&&("string"!=typeof e||!(this.contents instanceof l.default));return(0,c.default)(this.contents,e,n)}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");this.setSchema();var e=[];this.commentBefore&&e.push(this.commentBefore.replace(/^/gm,"#"));var 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&&e.push("---");var o={anchors:{},doc:this,indent:""};if(this.contents){this.contents.commentBefore&&e.push(this.contents.commentBefore.replace(/^/gm,"#")),o.forceBlockIndent=!!this.comment;var i=this.contents.comment,u=this.schema.stringify(this.contents,o,function(){i=null});e.push((0,n.default)(u,"",i))}else void 0!==this.contents&&e.push(this.schema.stringify(this.contents,o));return this.comment&&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:i.defaultPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:i.defaultPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:i.defaultPrefix}]}},v in p?Object.defineProperty(p,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[v]=g,e.exports=t.default,e.exports.default=t.default});n(ut);var st=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(B),r=i(J),a=i(ut);function i(e){return e&&e.__esModule?e:{default:e}}var u={keepNodeTypes:!0,keepBlobsInJSON:!0,tags:null,version:"1.2"},c=function(e){function t(e){return o(this,t),p(this,f(t).call(this,Object.assign({},u,e)))}return s(t,a.default),t}();function l(e,t){var r=(0,n.default)(e),a=new c(t).parse(r[0]);if(r.length>1){a.errors.unshift(new S.YAMLSemanticError(r[1],"Source contains multiple documents; please use YAML.parseAllDocuments()"))}return a}var d={createNode:r.default,defaultOptions:u,Document:c,parse:function(e,t){var n=l(e,t);if(n.warnings.forEach(function(e){return console.warn(e)}),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){return(0,n.default)(e).map(function(e){return new c(t).parse(e)})},parseCST:n.default,parseDocument:l,stringify:function(e,t){var n=new c(t);return n.contents=e,String(n)}};t.default=d,e.exports=t.default,e.exports.default=t.default});n(st);var ft=r(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})}});n(ft);var ct=r(function(e,t){t.__esModule=!0,t.getPointText=function(e){return e.line+":"+e.column}});n(ct);var lt=r(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&&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 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){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 u=n.position,r=u.start,o=u.end,s=[o.line].concat(r.line===o.line?[]:r.line),f=0,c=s;f<c.length;f++){var l=c[f],d=t[l-1].trailingNode;(!d||o.column>=d.position.end.column)&&(t[l-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 "+ct.getPointText(e.position.start));return ft.defineParents(e,o),void(o.trailingComment=e)}for(var i=a;i>=r.position.start.line;i--){var u=t[i-1].trailingNode,s=void 0;if(u)s=u;else{if(i===a||!t[i-1].comment)continue;s=t[i-1].comment._parent}for(;;){if(n(s,e))return ft.defineParents(e,s),void s.endComments.push(e);if(!s._parent)break;s=s._parent}break}for(var i=a+1;i<=r.position.end.line;i++){var f=t[i-1].leadingAttachableNode;if(f)return ft.defineParents(e,f),void f.leadingComments.push(e)}var c=r.children[1];ft.defineParents(e,c),c.endComments.push(e)}(e,t,r[0])})}});n(lt);var dt=r(function(e,t){t.__esModule=!0,t.createNode=function(e,t){return{type:e,position:t}}});n(dt);var ht=r(function(e,t){t.__esModule=!0,t.createRoot=function(e,t,n){return w.__assign({},dt.createNode("root",e),{children:t,comments:n})}});n(ht);var pt=r(function(e,t){t.__esModule=!0,t.createLeadingCommentAttachable=function(){return{leadingComments:[]}}});n(pt);var vt=r(function(e,t){t.__esModule=!0,t.createTrailingCommentAttachable=function(e){return void 0===e&&(e=null),{trailingComment:e}}});n(vt);var gt=r(function(e,t){t.__esModule=!0,t.createCommentAttachable=function(){return w.__assign({},pt.createLeadingCommentAttachable(),vt.createTrailingCommentAttachable())}});n(gt);var mt=r(function(e,t){t.__esModule=!0,t.createAlias=function(e,t,n){return w.__assign({},dt.createNode("alias",e),gt.createCommentAttachable(),t,{value:n})}});n(mt);var yt=r(function(e,t){t.__esModule=!0,t.transformAlias=function(e,t){var n=e.cstNode;return mt.createAlias(t.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),t.transformContent(e),n.rawValue)}});n(yt);var _t=r(function(e,t){t.__esModule=!0,t.createBlockFolded=function(e){return w.__assign({},e,{type:"blockFolded"})}});n(_t);var bt=r(function(e,t){t.__esModule=!0,t.createBlockValue=function(e,t,n,r,a,o){return w.__assign({},dt.createNode("blockValue",e),pt.createLeadingCommentAttachable(),t,{chomping:n,indent:r,value:a,indicatorComment:o})}});n(bt);var wt=r(function(e,t){t.__esModule=!0,function(e){e.Tag="!",e.Anchor="&",e.Comment="#"}(t.PropLeadingCharacter||(t.PropLeadingCharacter={}))});n(wt);var Ot=r(function(e,t){t.__esModule=!0,t.createAnchor=function(e,t){return w.__assign({},dt.createNode("anchor",e),{value:t})}});n(Ot);var Et=r(function(e,t){t.__esModule=!0,t.createComment=function(e,t){return w.__assign({},dt.createNode("comment",e),{value:t})}});n(Et);var Mt=r(function(e,t){t.__esModule=!0,t.createContent=function(e,t,n){return{anchor:t,tag:e,middleComments:n}}});n(Mt);var St=r(function(e,t){t.__esModule=!0,t.createTag=function(e,t){return w.__assign({},dt.createNode("tag",e),{value:t})}});n(St);var At=r(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,u=null,s=0,f=r.props;s<f.length;s++){var c=f[s],l=t.text[c.origStart];switch(l){case wt.PropLeadingCharacter.Tag:o=o||c,i=St.createTag(t.transformRange(c),e.tag);break;case wt.PropLeadingCharacter.Anchor:o=o||c,u=Ot.createAnchor(t.transformRange(c),r.anchor);break;case wt.PropLeadingCharacter.Comment:var d=Et.createComment(t.transformRange(c),t.text.slice(c.origStart+1,c.origEnd));t.comments.push(d),!n(d)&&o&&o.origEnd<=c.origStart&&c.origEnd<=r.valueRange.origStart&&a.push(d);break;default:throw new Error("Unexpected leading character "+JSON.stringify(l))}}return Mt.createContent(i,u,a)}});n(At);var Pt=r(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}),u=null,s=At.transformContent(e,t,function(e){if(!(i.start.offset<e.position.start.offset&&e.position.end.offset<i.end.offset))return!1;if(u)throw new Error("Unexpected multiple indicator comments at "+ct.getPointText(e.position.start));return u=e,!0});return bt.createBlockValue(i,s,n[r.chomping],o?r.blockIndent:null,r.strValue,u)}});n(Pt);var Tt=r(function(e,t){t.__esModule=!0,t.transformBlockFolded=function(e,t){return _t.createBlockFolded(Pt.transformAstBlockValue(e,t))}});n(Tt);var Lt=r(function(e,t){t.__esModule=!0,t.createBlockLiteral=function(e){return w.__assign({},e,{type:"blockLiteral"})}});n(Lt);var kt=r(function(e,t){t.__esModule=!0,t.transformBlockLiteral=function(e,t){return Lt.createBlockLiteral(Pt.transformAstBlockValue(e,t))}});n(kt);var xt=r(function(e,t){t.__esModule=!0,t.transformComment=function(e,t){return Et.createComment(t.transformRange(e.range),e.comment)}});n(xt);var Ct=r(function(e,t){t.__esModule=!0,t.createDirective=function(e,t,n){return w.__assign({},dt.createNode("directive",e),gt.createCommentAttachable(),{name:t,parameters:n})}});n(Ct);var Rt=r(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(Et.createComment(t.transformRange(a),t.text.slice(a.origStart+1,a.origEnd)));break;default:throw new Error("Unexpected leading character "+JSON.stringify(o))}}}});n(Rt);var Nt=r(function(e,t){t.__esModule=!0,t.transformDirective=function(e,t){return Rt.extractPropComments(e,t),Ct.createDirective(t.transformRange(e.range),e.name,e.parameters)}});n(Nt);var It=r(function(e,t){t.__esModule=!0,t.createDocument=function(e,t,n,r){return w.__assign({},dt.createNode("document",e),vt.createTrailingCommentAttachable(r),{children:[t,n]})}});n(It);var Dt=r(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}}});n(Dt);var jt=r(function(e,t){t.__esModule=!0,t.createEndCommentAttachable=function(e){return void 0===e&&(e=[]),{endComments:e}}});n(jt);var Bt=r(function(e,t){t.__esModule=!0,t.createDocumentBody=function(e,t,n){return w.__assign({},dt.createNode("documentBody",e),jt.createEndCommentAttachable(n),{children:t?[t]:[]})}});n(Bt);var Yt=r(function(e,t){t.__esModule=!0,t.getLast=function(e){return e[e.length-1]}});n(Yt);var Ft=r(function(e,t){t.__esModule=!0,t.getMatchIndex=function(e,t){var n=e.match(t);return n?n.index:-1}});n(Ft);var Ut=r(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=[],u=!1,s=e.contents.length-1;s>=0;s--){var f=e.contents[s];if("COMMENT"===f.type){var c=t.transformNode(f);n&&n.line===c.position.start.line?i.unshift(c):u?r.unshift(c):c.position.start.offset>=e.valueRange.origEnd?o.unshift(c):a.unshift(c)}else u=!0}if(o.length>1)throw new Error("Unexpected multiple document trailing comments at "+ct.getPointText(o[1].position.start));if(i.length>1)throw new Error("Unexpected multiple documentHead trailing comments at "+ct.getPointText(i[1].position.start));return{comments:r,endComments:a,documentTrailingComment:Yt.getLast(o)||null,documentHeadTrailingComment:Yt.getLast(i)||null}}(a,t,n),i=o.comments,u=o.endComments,s=o.documentTrailingComment,f=o.documentHeadTrailingComment,c=t.transformNode(e.contents),l=function(e,t,n){var r=Ft.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,c,t),d=l.position,h=l.documentEndPoint;return(r=t.comments).push.apply(r,i.concat(u)),{documentBody:Bt.createDocumentBody(d,c,u),documentEndPoint:h,documentTrailingComment:s,documentHeadTrailingComment:f}}});n(Ut);var Qt=r(function(e,t){t.__esModule=!0,t.createDocumentHead=function(e,t,n,r){return w.__assign({},dt.createNode("documentHead",e),jt.createEndCommentAttachable(n),vt.createTrailingCommentAttachable(r),{children:t})}});n(Qt);var Wt=r(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 u=t.transformNode(e.directives[i]);"comment"===u.type?o?r.unshift(u):a.unshift(u):(o=!0,n.unshift(u))}return{directives:n,comments:r,endComments:a}}(r,t),o=a.directives,i=a.comments,u=a.endComments,s=function(e,t,n){var r=Ft.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};return 0!==t.length&&(a.origStart=t[0].position.start.offset),{position:n.transformRange(a),endMarkerPoint:-1===r?null:n.transformOffset(r)}}(r,o,t),f=s.position,c=s.endMarkerPoint;return(n=t.comments).push.apply(n,i.concat(u)),{createDocumentHeadWithTrailingComment:function(e){return e&&t.comments.push(e),Qt.createDocumentHead(f,o,u,e)},documentHeadEndMarkerPoint:c}}});n(Wt);var Vt=r(function(e,t){t.__esModule=!0,t.transformDocument=function(e,t){var n=Wt.transformDocumentHead(e,t),r=n.createDocumentHeadWithTrailingComment,a=n.documentHeadEndMarkerPoint,o=Ut.transformDocumentBody(e,t,a),i=o.documentBody,u=o.documentEndPoint,s=o.documentTrailingComment,f=r(o.documentHeadTrailingComment);return s&&t.comments.push(s),It.createDocument(Dt.createPosition(f.position.start,u),f,i,s)}});n(Vt);var Kt=r(function(e,t){t.__esModule=!0,t.createFlowCollection=function(e,t,n){return w.__assign({},dt.createNode("flowCollection",e),gt.createCommentAttachable(),t,{children:n})}});n(Kt);var $t=r(function(e,t){t.__esModule=!0,t.createFlowMapping=function(e,t,n){return w.__assign({},Kt.createFlowCollection(e,t,n),{type:"flowMapping"})}});n($t);var qt=r(function(e,t){t.__esModule=!0,t.createFlowMappingItem=function(e,t,n){return w.__assign({},dt.createNode("flowMappingItem",e),pt.createLeadingCommentAttachable(),{children:[t,n]})}});n(qt);var Jt=r(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}});n(Jt);var Gt=r(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]}}});n(Gt);var Ht=r(function(e,t){t.__esModule=!0,t.createSlicer=function(e,t){var n=t;return function(t){return e.slice(n,n=t)}}});n(Ht);var zt=r(function(e,t){t.__esModule=!0,t.groupCstFlowCollectionItems=function(e){for(var t=[],n=Ht.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}});n(zt);var Zt=r(function(e,t){t.__esModule=!0,t.createMappingKey=function(e,t){return w.__assign({},dt.createNode("mappingKey",e),vt.createTrailingCommentAttachable(),jt.createEndCommentAttachable(),{children:t?[t]:[]})}});n(Zt);var Xt=r(function(e,t){t.__esModule=!0,t.createMappingValue=function(e,t){return w.__assign({},dt.createNode("mappingValue",e),gt.createCommentAttachable(),jt.createEndCommentAttachable(),{children:t?[t]:[]})}});n(Xt);var en=r(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),u=o||r?Zt.createMappingKey(t.transformRange({origStart:r?r.origStart:o.position.start.offset,origEnd:o?o.position.end.offset:r.origStart+1}),o):null,s=i||a?Xt.createMappingValue(t.transformRange({origStart:a?a.origStart:i.position.start.offset,origEnd:i?i.position.end.offset:a.origStart+1}),i):null;return n(Dt.createPosition(u?u.position.start:s.position.start,s?s.position.end:u.position.end),u||Zt.createMappingKey(Dt.createEmptyPosition(s.position.start),null),s||Xt.createMappingValue(Dt.createEmptyPosition(u.position.end),null))}});n(en);var tn=r(function(e,t){t.__esModule=!0,t.transformFlowMap=function(e,t){var n=Jt.extractComments(e.cstNode.items,t),r=zt.groupCstFlowCollectionItems(n),a=e.items.map(function(e,n){var a=r[n],o=Gt.getFlowMapItemAdditionalRanges(a),i=o.additionalKeyRange,u=o.additionalValueRange;return en.transformAstPair(e,t,qt.createFlowMappingItem,i,u)}),o=n[0],i=Yt.getLast(n);return $t.createFlowMapping(t.transformRange({origStart:o.origOffset,origEnd:i.origOffset+1}),t.transformContent(e),a)}});n(tn);var nn=r(function(e,t){t.__esModule=!0,t.createFlowSequence=function(e,t,n){return w.__assign({},Kt.createFlowCollection(e,t,n),{type:"flowSequence"})}});n(nn);var rn=r(function(e,t){t.__esModule=!0,t.createFlowSequenceItem=function(e,t){return w.__assign({},dt.createNode("flowSequenceItem",e),{children:[t]})}});n(rn);var an=r(function(e,t){t.__esModule=!0,t.transformFlowSeq=function(e,t){var n=Jt.extractComments(e.cstNode.items,t),r=zt.groupCstFlowCollectionItems(n),a=e.items.map(function(e,n){if("PAIR"!==e.type){var a=t.transformNode(e);return rn.createFlowSequenceItem(Dt.createPosition(a.position.start,a.position.end),a)}var o=r[n],i=Gt.getFlowMapItemAdditionalRanges(o),u=i.additionalKeyRange,s=i.additionalValueRange;return en.transformAstPair(e,t,qt.createFlowMappingItem,u,s)}),o=n[0],i=Yt.getLast(n);return nn.createFlowSequence(t.transformRange({origStart:o.origOffset,origEnd:i.origOffset+1}),t.transformContent(e),a)}});n(an);var on=r(function(e,t){t.__esModule=!0,t.createMapping=function(e,t,n){return w.__assign({},dt.createNode("mapping",e),pt.createLeadingCommentAttachable(),t,{children:n})}});n(on);var un=r(function(e,t){t.__esModule=!0,t.createMappingItem=function(e,t,n){return w.__assign({},dt.createNode("mappingItem",e),pt.createLeadingCommentAttachable(),{children:[t,n]})}});n(un);var sn=r(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 Rt.extractPropComments(e,t)});var r=function(e){for(var t=[],n=Ht.createSlicer(e,0),r=!1,a=0;a<e.length;a++){var o=e[a];"MAP_VALUE"!==o.type?(r&&t.push(n(a)),r=!0):(t.push(n(a+1)),r=!1)}return r&&t.push(n(1/0)),t}(Jt.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],u=o[1];return en.transformAstPair(e,t,un.createMappingItem,i,u)});return on.createMapping(Dt.createPosition(a[0].position.start,Yt.getLast(a).position.end),t.transformContent(e),a)}});n(sn);var fn=r(function(e,t){t.__esModule=!0,t.createPlain=function(e,t,n){return w.__assign({},dt.createNode("plain",e),gt.createCommentAttachable(),t,{value:n})}});n(fn);var cn=r(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}});n(cn);var ln=r(function(e,t){t.__esModule=!0,t.transformPlain=function(e,t){var n=e.cstNode;return fn.createPlain(t.transformRange({origStart:n.valueRange.origStart,origEnd:cn.findLastCharIndex(t.text,n.valueRange.origEnd-1,/\S/)+1}),t.transformContent(e),n.strValue)}});n(ln);var dn=r(function(e,t){t.__esModule=!0,t.createQuoteDouble=function(e){return w.__assign({},e,{type:"quoteDouble"})}});n(dn);var hn=r(function(e,t){t.__esModule=!0,t.createQuoteValue=function(e,t,n){return w.__assign({},dt.createNode("quoteValue",e),t,gt.createCommentAttachable(),{value:n})}});n(hn);var pn=r(function(e,t){t.__esModule=!0,t.transformAstQuoteValue=function(e,t){var n=e.cstNode;return hn.createQuoteValue(t.transformRange(n.valueRange),t.transformContent(e),n.strValue)}});n(pn);var vn=r(function(e,t){t.__esModule=!0,t.transformQuoteDouble=function(e,t){return dn.createQuoteDouble(pn.transformAstQuoteValue(e,t))}});n(vn);var gn=r(function(e,t){t.__esModule=!0,t.createQuoteSingle=function(e){return w.__assign({},e,{type:"quoteSingle"})}});n(gn);var mn=r(function(e,t){t.__esModule=!0,t.transformQuoteSingle=function(e,t){return gn.createQuoteSingle(pn.transformAstQuoteValue(e,t))}});n(mn);var yn=r(function(e,t){t.__esModule=!0,t.createSequence=function(e,t,n){return w.__assign({},dt.createNode("sequence",e),pt.createLeadingCommentAttachable(),jt.createEndCommentAttachable(),t,{children:n})}});n(yn);var _n=r(function(e,t){t.__esModule=!0,t.createSequenceItem=function(e,t){return w.__assign({},dt.createNode("sequenceItem",e),gt.createCommentAttachable(),jt.createEndCommentAttachable(),{children:t?[t]:[]})}});n(_n);var bn=r(function(e,t){t.__esModule=!0,t.transformSeq=function(e,t){var n=Jt.extractComments(e.cstNode.items,t).map(function(n,r){Rt.extractPropComments(n,t);var a=t.transformNode(e.items[r]);return _n.createSequenceItem(Dt.createPosition(t.transformOffset(n.valueRange.origStart),null===a?t.transformOffset(n.valueRange.origStart+1):a.position.end),a)});return yn.createSequence(Dt.createPosition(n[0].position.start,Yt.getLast(n).position.end),t.transformContent(e),n)}});n(bn);var wn=r(function(e,t){t.__esModule=!0,t.transformNode=function(e,t){if(null===e)return null;switch(e.type){case"ALIAS":return yt.transformAlias(e,t);case"BLOCK_FOLDED":return Tt.transformBlockFolded(e,t);case"BLOCK_LITERAL":return kt.transformBlockLiteral(e,t);case"COMMENT":return xt.transformComment(e,t);case"DIRECTIVE":return Nt.transformDirective(e,t);case"DOCUMENT":return Vt.transformDocument(e,t);case"FLOW_MAP":return tn.transformFlowMap(e,t);case"FLOW_SEQ":return an.transformFlowSeq(e,t);case"MAP":return sn.transformMap(e,t);case"PLAIN":return ln.transformPlain(e,t);case"QUOTE_DOUBLE":return vn.transformQuoteDouble(e,t);case"QUOTE_SINGLE":return mn.transformQuoteSingle(e,t);case"SEQ":return bn.transformSeq(e,t);default:throw new Error("Unexpected node type "+e.type)}}});n(wn);var On=r(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}});n(On);var En=r(function(e,t){t.__esModule=!0,t.transformError=function(e,t){var n=e.source.range||e.source.valueRange;return On.createError(e.message,t.text,t.transformRange(n))}});n(En);var Mn=r(function(e,t){t.__esModule=!0,t.createPoint=function(e,t,n){return{offset:e,line:t,column:n}}});n(Mn);var Sn=r(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 Mn.createPoint(e,n.line+1,n.column+1)}});n(Sn);var An=r(function(e,t){t.__esModule=!0,t.transformRange=function(e,t){return Dt.createPosition(t.transformOffset(e.origStart),t.transformOffset(e.origEnd))}});n(An);var Pn=r(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"===a(t)&&r(t)!==n)for(var o=0,i=Object.keys(t);o<i.length;o++){var u=i[o];if("context"!==u&&"error"!==u){var s=t[u];Array.isArray(s)?s.forEach(function(t){return e(t,r)}):e(s,r)}}}(e,t)})}}});n(Pn);var Tn=r(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}});n(Tn);var Ln=r(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)}}});n(Ln);var kn=r(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 u(e,t){return t.offset>e.offset}t.__esModule=!0,t.updatePositions=function e(t){if(null!==t&&"children"in t){var s=t.children;if(s.forEach(e),"document"===t.type){var f=t.children,c=f[0],l=f[1];c.position.start.offset===c.position.end.offset?c.position.start=c.position.end=l.position.start:l.position.start.offset===l.position.end.offset&&(l.position.start=l.position.end=c.position.end)}var d=Ln.createUpdater(t.position,n,r,i),h=Ln.createUpdater(t.position,a,o,u);"endComments"in t&&0!==t.endComments.length&&(d(t.endComments[0].position.start),h(Yt.getLast(t.endComments).position.end));var p=s.filter(function(e){return null!==e});if(0!==p.length){var v=p[0],g=Yt.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)}}}});n(kn);var xn=r(function(e,t){t.__esModule=!0,t.parse=function(e){var t=st.parseCST(e);Pn.addOrigRange(t);var n=t.map(function(e){return new st.Document({merge:!0,keepCstNodes:!0}).parse(e)}),r=[],a={text:e,locator:new O.default(e),comments:r,transformOffset:function(e){return Sn.transformOffset(e,a)},transformRange:function(e){return An.transformRange(e,a)},transformNode:function(e){return wn.transformNode(e,a)},transformContent:function(e){return At.transformContent(e,a)}},o=n.find(function(e){return 0!==e.errors.length});if(o)throw En.transformError(o.errors[0],a);var i=ht.createRoot(a.transformRange({origStart:0,origEnd:a.text.length}),n.map(a.transformNode),r);return lt.attachComments(i),kn.updatePositions(i),Tn.removeFakeNodes(i),i}});n(xn);var Cn=r(function(e,t){t.__esModule=!0,w.__exportStar(xn,t)});return n(Cn),{parsers:{yaml:{astFormat:"yaml",parse:function(t){try{var n=Cn.parse(t);return delete n.comments,n}catch(t){throw t&&t.position?e(t.message,t.position):t}},hasPragma:t,locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}}}}});