UNPKG

phaser4-rex-plugins

Version:
2 lines 56.5 kB
var t,e;t=void 0,e=function(){let t=class{constructor(){this.tests=[]}clear(){return this.tests.length=0,this}add(t,e){return this.tests.push({name:t,function:e}),this}getTestResults(t){for(var e,n={},i=0,r=this.tests.length;i<r;i++)e=this.tests[i].name,(0,this.tests[i].function)(t)?n[e]=!0:n.hasOwnProperty(e)||(n[e]=!1);return n}anyPassTest(t,e,n){for(var i,r=0,o=this.tests.length;r<o;r++){if(i=this.tests[r].name,(0,this.tests[r].function)(t)){e&&(n?e.call(n,i):e(i));break}i=!1}return e?this:i}eachPassTest(t,e,n){for(var i,r=0,o=this.tests.length;r<o;r++)i=this.tests[r].name,(0,this.tests[r].function)(t)&&(n?e.call(n,i):e(i));return this}eachTest(t,e,n){for(var i,r,o=0,a=this.tests.length;o<a;o++)r=this.tests[o].name,i=(0,this.tests[o].function)(t),n?e.call(n,r,i):e(r,i);return this}}; /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function e(t){return null==t}var n={isNothing:e,isObject:function(t){return"object"==typeof t&&null!==t},toArray:function(t){return Array.isArray(t)?t:e(t)?[]:[t]},repeat:function(t,e){var n,i="";for(n=0;n<e;n+=1)i+=t;return i},isNegativeZero:function(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t},extend:function(t,e){var n,i,r,o;if(e)for(n=0,i=(o=Object.keys(e)).length;n<i;n+=1)t[r=o[n]]=e[r];return t}};function i(t,e){var n="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+="\n\n"+t.mark.snippet),i+" "+n):i}function r(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=i(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.toString=function(t){return this.name+": "+i(this,t)};var o=r;function a(t,e,n,i,r){var o="",a="",s=Math.floor(r/2)-1;return i-e>s&&(e=i-s+(o=" ... ").length),n-i>s&&(n=i+s-(a=" ...").length),{str:o+t.slice(e,n).replace(/\t/g,"→")+a,pos:i-e+o.length}}function s(t,e){return n.repeat(" ",e-t.length)+t}var l=function(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var i,r=/\r?\n|\r|\0/g,o=[0],l=[],c=-1;i=r.exec(t.buffer);)l.push(i.index),o.push(i.index+i[0].length),t.position<=i.index&&c<0&&(c=o.length-2);c<0&&(c=o.length-1);var u,p,h="",f=Math.min(t.line+e.linesAfter,l.length).toString().length,d=e.maxLength-(e.indent+f+3);for(u=1;u<=e.linesBefore&&!(c-u<0);u++)p=a(t.buffer,o[c-u],l[c-u],t.position-(o[c]-o[c-u]),d),h=n.repeat(" ",e.indent)+s((t.line-u+1).toString(),f)+" | "+p.str+"\n"+h;for(p=a(t.buffer,o[c],l[c],t.position,d),h+=n.repeat(" ",e.indent)+s((t.line+1).toString(),f)+" | "+p.str+"\n",h+=n.repeat("-",e.indent+f+3+p.pos)+"^\n",u=1;u<=e.linesAfter&&!(c+u>=l.length);u++)p=a(t.buffer,o[c+u],l[c+u],t.position-(o[c]-o[c+u]),d),h+=n.repeat(" ",e.indent)+s((t.line+u+1).toString(),f)+" | "+p.str+"\n";return h.replace(/\n$/,"")},c=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],u=["scalar","sequence","mapping"],p=function(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===c.indexOf(e))throw new o('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=function(t){var e={};return null!==t&&Object.keys(t).forEach((function(n){t[n].forEach((function(t){e[String(t)]=n}))})),e}(e.styleAliases||null),-1===u.indexOf(this.kind))throw new o('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')};function h(t,e){var n=[];return t[e].forEach((function(t){var e=n.length;n.forEach((function(n,i){n.tag===t.tag&&n.kind===t.kind&&n.multi===t.multi&&(e=i)})),n[e]=t})),n}function f(t){return this.extend(t)}f.prototype.extend=function(t){var e=[],n=[];if(t instanceof p)n.push(t);else if(Array.isArray(t))n=n.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new o("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit))}e.forEach((function(t){if(!(t instanceof p))throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new o("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new o("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(t){if(!(t instanceof p))throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var i=Object.create(f.prototype);return i.implicit=(this.implicit||[]).concat(e),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=h(i,"implicit"),i.compiledExplicit=h(i,"explicit"),i.compiledTypeMap=function(){var t,e,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(t){t.multi?(n.multi[t.kind].push(t),n.multi.fallback.push(t)):n[t.kind][t.tag]=n.fallback[t.tag]=t}for(t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(i);return n}(i.compiledImplicit,i.compiledExplicit),i};var d=f,g=new p("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}}),y=new p("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}}),m=new p("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}}),b=new d({explicit:[g,y,m]}),v=new p("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)},construct:function(){return null},predicate:function(t){return null===t},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),k=new p("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)},construct:function(t){return"true"===t||"True"===t||"TRUE"===t},predicate:function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function A(t){return 48<=t&&t<=55}function _(t){return 48<=t&&t<=57}var x=new p("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,n,i=t.length,r=0,o=!1;if(!i)return!1;if("-"!==(e=t[r])&&"+"!==e||(e=t[++r]),"0"===e){if(r+1===i)return!0;if("b"===(e=t[++r])){for(r++;r<i;r++)if("_"!==(e=t[r])){if("0"!==e&&"1"!==e)return!1;o=!0}return o&&"_"!==e}if("x"===e){for(r++;r<i;r++)if("_"!==(e=t[r])){if(!(48<=(n=t.charCodeAt(r))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;o=!0}return o&&"_"!==e}if("o"===e){for(r++;r<i;r++)if("_"!==(e=t[r])){if(!A(t.charCodeAt(r)))return!1;o=!0}return o&&"_"!==e}}if("_"===e)return!1;for(;r<i;r++)if("_"!==(e=t[r])){if(!_(t.charCodeAt(r)))return!1;o=!0}return!(!o||"_"===e)},construct:function(t){var e,n=t,i=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(e=n[0])&&"+"!==e||("-"===e&&(i=-1),e=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===e){if("b"===n[1])return i*parseInt(n.slice(2),2);if("x"===n[1])return i*parseInt(n.slice(2),16);if("o"===n[1])return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!n.isNegativeZero(t)},represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),w=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),I=/^[-+]?[0-9]+e/,C=new p("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return null!==t&&!(!w.test(t)||"_"===t[t.length-1])},construct:function(t){var e,n;return n="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:n*parseFloat(e,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||n.isNegativeZero(t))},represent:function(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(t))return"-0.0";return i=t.toString(10),I.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"}),S=b.extend({implicit:[v,k,x,C]}),O=S,T=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),j=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),E=new p("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==T.exec(t)||null!==j.exec(t))},construct:function(t){var e,n,i,r,o,a,s,l,c=0,u=null;if(null===(e=T.exec(t))&&(e=j.exec(t)),null===e)throw new Error("Date resolve error");if(n=+e[1],i=+e[2]-1,r=+e[3],!e[4])return new Date(Date.UTC(n,i,r));if(o=+e[4],a=+e[5],s=+e[6],e[7]){for(c=e[7].slice(0,3);c.length<3;)c+="0";c=+c}return e[9]&&(u=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(u=-u)),l=new Date(Date.UTC(n,i,r,o,a,s,c)),u&&l.setTime(l.getTime()-u),l},instanceOf:Date,represent:function(t){return t.toISOString()}}),N=new p("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return"<<"===t||null===t}}),F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",M=new p("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,n,i=0,r=t.length,o=F;for(n=0;n<r;n++)if(!((e=o.indexOf(t.charAt(n)))>64)){if(e<0)return!1;i+=6}return i%8==0},construct:function(t){var e,n,i=t.replace(/[\r\n=]/g,""),r=i.length,o=F,a=0,s=[];for(e=0;e<r;e++)e%4==0&&e&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|o.indexOf(i.charAt(e));return 0==(n=r%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===n?(s.push(a>>10&255),s.push(a>>2&255)):12===n&&s.push(a>>4&255),new Uint8Array(s)},predicate:function(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)},represent:function(t){var e,n,i="",r=0,o=t.length,a=F;for(e=0;e<o;e++)e%3==0&&e&&(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]),r=(r<<8)+t[e];return 0==(n=o%3)?(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]):2===n?(i+=a[r>>10&63],i+=a[r>>4&63],i+=a[r<<2&63],i+=a[64]):1===n&&(i+=a[r>>2&63],i+=a[r<<4&63],i+=a[64],i+=a[64]),i}}),L=Object.prototype.hasOwnProperty,$=Object.prototype.toString,P=new p("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,n,i,r,o,a=[],s=t;for(e=0,n=s.length;e<n;e+=1){if(i=s[e],o=!1,"[object Object]"!==$.call(i))return!1;for(r in i)if(L.call(i,r)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==a.indexOf(r))return!1;a.push(r)}return!0},construct:function(t){return null!==t?t:[]}}),D=Object.prototype.toString,U=new p("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,n,i,r,o,a=t;for(o=new Array(a.length),e=0,n=a.length;e<n;e+=1){if(i=a[e],"[object Object]"!==D.call(i))return!1;if(1!==(r=Object.keys(i)).length)return!1;o[e]=[r[0],i[r[0]]]}return!0},construct:function(t){if(null===t)return[];var e,n,i,r,o,a=t;for(o=new Array(a.length),e=0,n=a.length;e<n;e+=1)i=a[e],r=Object.keys(i),o[e]=[r[0],i[r[0]]];return o}}),q=Object.prototype.hasOwnProperty,R=new p("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(t){if(null===t)return!0;var e,n=t;for(e in n)if(q.call(n,e)&&null!==n[e])return!1;return!0},construct:function(t){return null!==t?t:{}}}),Y=O.extend({implicit:[E,N],explicit:[M,P,U,R]}),B=Object.prototype.hasOwnProperty,G=1,K=2,W=3,H=4,V=1,Q=2,Z=3,z=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,J=/[\x85\u2028\u2029]/,X=/[,\[\]\{\}]/,tt=/^(?:!|!!|![a-z\-]+!)$/i,et=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function nt(t){return Object.prototype.toString.call(t)}function it(t){return 10===t||13===t}function rt(t){return 9===t||32===t}function ot(t){return 9===t||32===t||10===t||13===t}function at(t){return 44===t||91===t||93===t||123===t||125===t}function st(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function lt(t){return 48===t?"\0":97===t?"":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"…":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function ct(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}for(var ut=new Array(256),pt=new Array(256),ht=0;ht<256;ht++)ut[ht]=lt(ht)?1:0,pt[ht]=lt(ht);function ft(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Y,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function dt(t,e){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=l(n),new o(e,n)}function gt(t,e){throw dt(t,e)}function yt(t,e){t.onWarning&&t.onWarning.call(null,dt(t,e))}var mt={YAML:function(t,e,n){var i,r,o;null!==t.version&&gt(t,"duplication of %YAML directive"),1!==n.length&&gt(t,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&gt(t,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&gt(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,1!==o&&2!==o&&yt(t,"unsupported YAML version of the document")},TAG:function(t,e,n){var i,r;2!==n.length&&gt(t,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],tt.test(i)||gt(t,"ill-formed tag handle (first argument) of the TAG directive"),B.call(t.tagMap,i)&&gt(t,'there is a previously declared suffix for "'+i+'" tag handle'),et.test(r)||gt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(e){gt(t,"tag prefix is malformed: "+r)}t.tagMap[i]=r}};function bt(t,e,n,i){var r,o,a,s;if(e<n){if(s=t.input.slice(e,n),i)for(r=0,o=s.length;r<o;r+=1)9===(a=s.charCodeAt(r))||32<=a&&a<=1114111||gt(t,"expected valid JSON character");else z.test(s)&&gt(t,"the stream contains non-printable characters");t.result+=s}}function vt(t,e,i,r){var o,a,s,l;for(n.isObject(i)||gt(t,"cannot merge mappings; the provided source object is unacceptable"),s=0,l=(o=Object.keys(i)).length;s<l;s+=1)a=o[s],B.call(e,a)||(e[a]=i[a],r[a]=!0)}function kt(t,e,n,i,r,o,a,s,l){var c,u;if(Array.isArray(r))for(c=0,u=(r=Array.prototype.slice.call(r)).length;c<u;c+=1)Array.isArray(r[c])&&gt(t,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===nt(r[c])&&(r[c]="[object Object]");if("object"==typeof r&&"[object Object]"===nt(r)&&(r="[object Object]"),r=String(r),null===e&&(e={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)vt(t,e,o[c],n);else vt(t,e,o,n);else t.json||B.call(n,r)||!B.call(e,r)||(t.line=a||t.line,t.lineStart=s||t.lineStart,t.position=l||t.position,gt(t,"duplicated mapping key")),"__proto__"===r?Object.defineProperty(e,r,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[r]=o,delete n[r];return e}function At(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):gt(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function _t(t,e,n){for(var i=0,r=t.input.charCodeAt(t.position);0!==r;){for(;rt(r);)9===r&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),r=t.input.charCodeAt(++t.position);if(e&&35===r)do{r=t.input.charCodeAt(++t.position)}while(10!==r&&13!==r&&0!==r);if(!it(r))break;for(At(t),r=t.input.charCodeAt(t.position),i++,t.lineIndent=0;32===r;)t.lineIndent++,r=t.input.charCodeAt(++t.position)}return-1!==n&&0!==i&&t.lineIndent<n&&yt(t,"deficient indentation"),i}function xt(t){var e,n=t.position;return!(45!==(e=t.input.charCodeAt(n))&&46!==e||e!==t.input.charCodeAt(n+1)||e!==t.input.charCodeAt(n+2)||(n+=3,0!==(e=t.input.charCodeAt(n))&&!ot(e)))}function wt(t,e){1===e?t.result+=" ":e>1&&(t.result+=n.repeat("\n",e-1))}function It(t,e){var n,i,r=t.tag,o=t.anchor,a=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),i=t.input.charCodeAt(t.position);0!==i&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,gt(t,"tab characters must not be used in indentation")),45===i)&&ot(t.input.charCodeAt(t.position+1));)if(s=!0,t.position++,_t(t,!0,-1)&&t.lineIndent<=e)a.push(null),i=t.input.charCodeAt(t.position);else if(n=t.line,Ot(t,e,W,!1,!0),a.push(t.result),_t(t,!0,-1),i=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>e)&&0!==i)gt(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!s&&(t.tag=r,t.anchor=o,t.kind="sequence",t.result=a,!0)}function Ct(t){var e,n,i,r,o=!1,a=!1;if(33!==(r=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&gt(t,"duplication of a tag property"),60===(r=t.input.charCodeAt(++t.position))?(o=!0,r=t.input.charCodeAt(++t.position)):33===r?(a=!0,n="!!",r=t.input.charCodeAt(++t.position)):n="!",e=t.position,o){do{r=t.input.charCodeAt(++t.position)}while(0!==r&&62!==r);t.position<t.length?(i=t.input.slice(e,t.position),r=t.input.charCodeAt(++t.position)):gt(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==r&&!ot(r);)33===r&&(a?gt(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),tt.test(n)||gt(t,"named tag handle cannot contain such characters"),a=!0,e=t.position+1)),r=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),X.test(i)&&gt(t,"tag suffix cannot contain flow indicator characters")}i&&!et.test(i)&&gt(t,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(e){gt(t,"tag name is malformed: "+i)}return o?t.tag=i:B.call(t.tagMap,n)?t.tag=t.tagMap[n]+i:"!"===n?t.tag="!"+i:"!!"===n?t.tag="tag:yaml.org,2002:"+i:gt(t,'undeclared tag handle "'+n+'"'),!0}function St(t){var e,n;if(38!==(n=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&gt(t,"duplication of an anchor property"),n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!ot(n)&&!at(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&gt(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Ot(t,e,i,r,o){var a,s,l,c,u,p,h,f,d,g=1,y=!1,m=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=s=l=H===i||W===i,r&&_t(t,!0,-1)&&(y=!0,t.lineIndent>e?g=1:t.lineIndent===e?g=0:t.lineIndent<e&&(g=-1)),1===g)for(;Ct(t)||St(t);)_t(t,!0,-1)?(y=!0,l=a,t.lineIndent>e?g=1:t.lineIndent===e?g=0:t.lineIndent<e&&(g=-1)):l=!1;if(l&&(l=y||o),1!==g&&H!==i||(f=G===i||K===i?e:e+1,d=t.position-t.lineStart,1===g?l&&(It(t,d)||function(t,e,n){var i,r,o,a,s,l,c,u=t.tag,p=t.anchor,h={},f=Object.create(null),d=null,g=null,y=null,m=!1,b=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=h),c=t.input.charCodeAt(t.position);0!==c;){if(m||-1===t.firstTabInLine||(t.position=t.firstTabInLine,gt(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),o=t.line,63!==c&&58!==c||!ot(i)){if(a=t.line,s=t.lineStart,l=t.position,!Ot(t,n,K,!1,!0))break;if(t.line===o){for(c=t.input.charCodeAt(t.position);rt(c);)c=t.input.charCodeAt(++t.position);if(58===c)ot(c=t.input.charCodeAt(++t.position))||gt(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(kt(t,h,f,d,g,null,a,s,l),d=g=y=null),b=!0,m=!1,r=!1,d=t.tag,g=t.result;else{if(!b)return t.tag=u,t.anchor=p,!0;gt(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return t.tag=u,t.anchor=p,!0;gt(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(m&&(kt(t,h,f,d,g,null,a,s,l),d=g=y=null),b=!0,m=!0,r=!0):m?(m=!1,r=!0):gt(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,c=i;if((t.line===o||t.lineIndent>e)&&(m&&(a=t.line,s=t.lineStart,l=t.position),Ot(t,e,H,!0,r)&&(m?g=t.result:y=t.result),m||(kt(t,h,f,d,g,y,a,s,l),d=g=y=null),_t(t,!0,-1),c=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&0!==c)gt(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&kt(t,h,f,d,g,null,a,s,l),b&&(t.tag=u,t.anchor=p,t.kind="mapping",t.result=h),b}(t,d,f))||function(t,e){var n,i,r,o,a,s,l,c,u,p,h,f,d=!0,g=t.tag,y=t.anchor,m=Object.create(null);if(91===(f=t.input.charCodeAt(t.position)))a=93,c=!1,o=[];else{if(123!==f)return!1;a=125,c=!0,o={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),f=t.input.charCodeAt(++t.position);0!==f;){if(_t(t,!0,e),(f=t.input.charCodeAt(t.position))===a)return t.position++,t.tag=g,t.anchor=y,t.kind=c?"mapping":"sequence",t.result=o,!0;d?44===f&&gt(t,"expected the node content, but found ','"):gt(t,"missed comma between flow collection entries"),h=null,s=l=!1,63===f&&ot(t.input.charCodeAt(t.position+1))&&(s=l=!0,t.position++,_t(t,!0,e)),n=t.line,i=t.lineStart,r=t.position,Ot(t,e,G,!1,!0),p=t.tag,u=t.result,_t(t,!0,e),f=t.input.charCodeAt(t.position),!l&&t.line!==n||58!==f||(s=!0,f=t.input.charCodeAt(++t.position),_t(t,!0,e),Ot(t,e,G,!1,!0),h=t.result),c?kt(t,o,m,p,u,h,n,i,r):s?o.push(kt(t,null,m,p,u,h,n,i,r)):o.push(u),_t(t,!0,e),44===(f=t.input.charCodeAt(t.position))?(d=!0,f=t.input.charCodeAt(++t.position)):d=!1}gt(t,"unexpected end of the stream within a flow collection")}(t,f)?m=!0:(s&&function(t,e){var i,r,o,a,s,l=V,c=!1,u=!1,p=e,h=0,f=!1;if(124===(a=t.input.charCodeAt(t.position)))r=!1;else{if(62!==a)return!1;r=!0}for(t.kind="scalar",t.result="";0!==a;)if(43===(a=t.input.charCodeAt(++t.position))||45===a)V===l?l=43===a?Z:Q:gt(t,"repeat of a chomping mode identifier");else{if(!((o=48<=(s=a)&&s<=57?s-48:-1)>=0))break;0===o?gt(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?gt(t,"repeat of an indentation width identifier"):(p=e+o-1,u=!0)}if(rt(a)){do{a=t.input.charCodeAt(++t.position)}while(rt(a));if(35===a)do{a=t.input.charCodeAt(++t.position)}while(!it(a)&&0!==a)}for(;0!==a;){for(At(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!u||t.lineIndent<p)&&32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);if(!u&&t.lineIndent>p&&(p=t.lineIndent),it(a))h++;else{if(t.lineIndent<p){l===Z?t.result+=n.repeat("\n",c?1+h:h):l===V&&c&&(t.result+="\n");break}for(r?rt(a)?(f=!0,t.result+=n.repeat("\n",c?1+h:h)):f?(f=!1,t.result+=n.repeat("\n",h+1)):0===h?c&&(t.result+=" "):t.result+=n.repeat("\n",h):t.result+=n.repeat("\n",c?1+h:h),c=!0,u=!0,h=0,i=t.position;!it(a)&&0!==a;)a=t.input.charCodeAt(++t.position);bt(t,i,t.position,!1)}}return!0}(t,f)||function(t,e){var n,i,r;if(39!==(n=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;0!==(n=t.input.charCodeAt(t.position));)if(39===n){if(bt(t,i,t.position,!0),39!==(n=t.input.charCodeAt(++t.position)))return!0;i=t.position,t.position++,r=t.position}else it(n)?(bt(t,i,r,!0),wt(t,_t(t,!1,e)),i=r=t.position):t.position===t.lineStart&&xt(t)?gt(t,"unexpected end of the document within a single quoted scalar"):(t.position++,r=t.position);gt(t,"unexpected end of the stream within a single quoted scalar")}(t,f)||function(t,e){var n,i,r,o,a,s,l;if(34!==(s=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;0!==(s=t.input.charCodeAt(t.position));){if(34===s)return bt(t,n,t.position,!0),t.position++,!0;if(92===s){if(bt(t,n,t.position,!0),it(s=t.input.charCodeAt(++t.position)))_t(t,!1,e);else if(s<256&&ut[s])t.result+=pt[s],t.position++;else if((a=120===(l=s)?2:117===l?4:85===l?8:0)>0){for(r=a,o=0;r>0;r--)(a=st(s=t.input.charCodeAt(++t.position)))>=0?o=(o<<4)+a:gt(t,"expected hexadecimal character");t.result+=ct(o),t.position++}else gt(t,"unknown escape sequence");n=i=t.position}else it(s)?(bt(t,n,i,!0),wt(t,_t(t,!1,e)),n=i=t.position):t.position===t.lineStart&&xt(t)?gt(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}gt(t,"unexpected end of the stream within a double quoted scalar")}(t,f)?m=!0:function(t){var e,n,i;if(42!==(i=t.input.charCodeAt(t.position)))return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!ot(i)&&!at(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&gt(t,"name of an alias node must contain at least one character"),n=t.input.slice(e,t.position),B.call(t.anchorMap,n)||gt(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],_t(t,!0,-1),!0}(t)?(m=!0,null===t.tag&&null===t.anchor||gt(t,"alias node should not have any properties")):function(t,e,n){var i,r,o,a,s,l,c,u,p=t.kind,h=t.result;if(ot(u=t.input.charCodeAt(t.position))||at(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(ot(i=t.input.charCodeAt(t.position+1))||n&&at(i)))return!1;for(t.kind="scalar",t.result="",r=o=t.position,a=!1;0!==u;){if(58===u){if(ot(i=t.input.charCodeAt(t.position+1))||n&&at(i))break}else if(35===u){if(ot(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&xt(t)||n&&at(u))break;if(it(u)){if(s=t.line,l=t.lineStart,c=t.lineIndent,_t(t,!1,-1),t.lineIndent>=e){a=!0,u=t.input.charCodeAt(t.position);continue}t.position=o,t.line=s,t.lineStart=l,t.lineIndent=c;break}}a&&(bt(t,r,o,!1),wt(t,t.line-s),r=o=t.position,a=!1),rt(u)||(o=t.position+1),u=t.input.charCodeAt(++t.position)}return bt(t,r,o,!1),!!t.result||(t.kind=p,t.result=h,!1)}(t,f,G===i)&&(m=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===g&&(m=l&&It(t,d))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&gt(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),c=0,u=t.implicitTypes.length;c<u;c+=1)if((h=t.implicitTypes[c]).resolve(t.result)){t.result=h.construct(t.result),t.tag=h.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(B.call(t.typeMap[t.kind||"fallback"],t.tag))h=t.typeMap[t.kind||"fallback"][t.tag];else for(h=null,c=0,u=(p=t.typeMap.multi[t.kind||"fallback"]).length;c<u;c+=1)if(t.tag.slice(0,p[c].tag.length)===p[c].tag){h=p[c];break}h||gt(t,"unknown tag !<"+t.tag+">"),null!==t.result&&h.kind!==t.kind&&gt(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+h.kind+'", not "'+t.kind+'"'),h.resolve(t.result,t.tag)?(t.result=h.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):gt(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||m}function Tt(t){var e,n,i,r,o=t.position,a=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(r=t.input.charCodeAt(t.position))&&(_t(t,!0,-1),r=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==r));){for(a=!0,r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!ot(r);)r=t.input.charCodeAt(++t.position);for(i=[],(n=t.input.slice(e,t.position)).length<1&&gt(t,"directive name must not be less than one character in length");0!==r;){for(;rt(r);)r=t.input.charCodeAt(++t.position);if(35===r){do{r=t.input.charCodeAt(++t.position)}while(0!==r&&!it(r));break}if(it(r))break;for(e=t.position;0!==r&&!ot(r);)r=t.input.charCodeAt(++t.position);i.push(t.input.slice(e,t.position))}0!==r&&At(t),B.call(mt,n)?mt[n](t,n,i):yt(t,'unknown document directive "'+n+'"')}_t(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,_t(t,!0,-1)):a&&gt(t,"directives end mark is expected"),Ot(t,t.lineIndent-1,H,!1,!0),_t(t,!0,-1),t.checkLineBreaks&&J.test(t.input.slice(o,t.position))&&yt(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&xt(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,_t(t,!0,-1)):t.position<t.length-1&&gt(t,"end of the stream or a document separator is expected")}function jt(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var n=new ft(t,e),i=t.indexOf("\0");for(-1!==i&&(n.position=i,gt(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Tt(n);return n.documents}var Et={loadAll:function(t,e,n){null!==e&&"object"==typeof e&&void 0===n&&(n=e,e=null);var i=jt(t,n);if("function"!=typeof e)return i;for(var r=0,o=i.length;r<o;r+=1)e(i[r])},load:function(t,e){var n=jt(t,e);if(0!==n.length){if(1===n.length)return n[0];throw new o("expected a single document in the stream, but found more")}}},Nt=Object.prototype.toString,Ft=Object.prototype.hasOwnProperty,Mt=65279,Lt=9,$t=10,Pt=13,Dt=32,Ut=33,qt=34,Rt=35,Yt=37,Bt=38,Gt=39,Kt=42,Wt=44,Ht=45,Vt=58,Qt=61,Zt=62,zt=63,Jt=64,Xt=91,te=93,ee=96,ne=123,ie=124,re=125,oe={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},ae=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],se=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function le(t){var e,i,r;if(e=t.toString(16).toUpperCase(),t<=255)i="x",r=2;else if(t<=65535)i="u",r=4;else{if(!(t<=4294967295))throw new o("code point within a string may not be greater than 0xFFFFFFFF");i="U",r=8}return"\\"+i+n.repeat("0",r-e.length)+e}var ce=1,ue=2;function pe(t){this.schema=t.schema||Y,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=n.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(t,e){var n,i,r,o,a,s,l;if(null===e)return{};for(n={},r=0,o=(i=Object.keys(e)).length;r<o;r+=1)a=i[r],s=String(e[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=t.compiledTypeMap.fallback[a])&&Ft.call(l.styleAliases,s)&&(s=l.styleAliases[s]),n[a]=s;return n}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?ue:ce,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function he(t,e){for(var i,r=n.repeat(" ",e),o=0,a=-1,s="",l=t.length;o<l;)-1===(a=t.indexOf("\n",o))?(i=t.slice(o),o=l):(i=t.slice(o,a+1),o=a+1),i.length&&"\n"!==i&&(s+=r),s+=i;return s}function fe(t,e){return"\n"+n.repeat(" ",t.indent*e)}function de(t){return t===Dt||t===Lt}function ge(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&t!==Mt||65536<=t&&t<=1114111}function ye(t){return ge(t)&&t!==Mt&&t!==Pt&&t!==$t}function me(t,e,n){var i=ye(t),r=i&&!de(t);return(n?i:i&&t!==Wt&&t!==Xt&&t!==te&&t!==ne&&t!==re)&&t!==Rt&&!(e===Vt&&!r)||ye(e)&&!de(e)&&t===Rt||e===Vt&&r}function be(t,e){var n,i=t.charCodeAt(e);return i>=55296&&i<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}function ve(t){return/^\n* /.test(t)}var ke=1,Ae=2,_e=3,xe=4,we=5;function Ie(t,e,n,i,r,o,a,s){var l,c,u=0,p=null,h=!1,f=!1,d=-1!==i,g=-1,y=ge(c=be(t,0))&&c!==Mt&&!de(c)&&c!==Ht&&c!==zt&&c!==Vt&&c!==Wt&&c!==Xt&&c!==te&&c!==ne&&c!==re&&c!==Rt&&c!==Bt&&c!==Kt&&c!==Ut&&c!==ie&&c!==Qt&&c!==Zt&&c!==Gt&&c!==qt&&c!==Yt&&c!==Jt&&c!==ee&&function(t){return!de(t)&&t!==Vt}(be(t,t.length-1));if(e||a)for(l=0;l<t.length;u>=65536?l+=2:l++){if(!ge(u=be(t,l)))return we;y=y&&me(u,p,s),p=u}else{for(l=0;l<t.length;u>=65536?l+=2:l++){if((u=be(t,l))===$t)h=!0,d&&(f=f||l-g-1>i&&" "!==t[g+1],g=l);else if(!ge(u))return we;y=y&&me(u,p,s),p=u}f=f||d&&l-g-1>i&&" "!==t[g+1]}return h||f?n>9&&ve(t)?we:a?o===ue?we:Ae:f?xe:_e:!y||a||r(t)?o===ue?we:Ae:ke}function Ce(t,e,n,i,r){t.dump=function(){if(0===e.length)return t.quotingType===ue?'""':"''";if(!t.noCompatMode&&(-1!==ae.indexOf(e)||se.test(e)))return t.quotingType===ue?'"'+e+'"':"'"+e+"'";var a=t.indent*Math.max(1,n),s=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-a),l=i||t.flowLevel>-1&&n>=t.flowLevel;switch(Ie(e,l,t.indent,s,(function(e){return function(t,e){var n,i;for(n=0,i=t.implicitTypes.length;n<i;n+=1)if(t.implicitTypes[n].resolve(e))return!0;return!1}(t,e)}),t.quotingType,t.forceQuotes&&!i,r)){case ke:return e;case Ae:return"'"+e.replace(/'/g,"''")+"'";case _e:return"|"+Se(e,t.indent)+Oe(he(e,a));case xe:return">"+Se(e,t.indent)+Oe(he(function(t,e){for(var n,i,r,o=/(\n+)([^\n]*)/g,a=(r=-1!==(r=t.indexOf("\n"))?r:t.length,o.lastIndex=r,Te(t.slice(0,r),e)),s="\n"===t[0]||" "===t[0];i=o.exec(t);){var l=i[1],c=i[2];n=" "===c[0],a+=l+(s||n||""===c?"":"\n")+Te(c,e),s=n}return a}(e,s),a));case we:return'"'+function(t){for(var e,n="",i=0,r=0;r<t.length;i>=65536?r+=2:r++)i=be(t,r),!(e=oe[i])&&ge(i)?(n+=t[r],i>=65536&&(n+=t[r+1])):n+=e||le(i);return n}(e)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function Se(t,e){var n=ve(t)?String(e):"",i="\n"===t[t.length-1];return n+(!i||"\n"!==t[t.length-2]&&"\n"!==t?i?"":"-":"+")+"\n"}function Oe(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function Te(t,e){if(""===t||" "===t[0])return t;for(var n,i,r=/ [^ ]/g,o=0,a=0,s=0,l="";n=r.exec(t);)(s=n.index)-o>e&&(i=a>o?a:s,l+="\n"+t.slice(o,i),o=i+1),a=s;return l+="\n",t.length-o>e&&a>o?l+=t.slice(o,a)+"\n"+t.slice(a+1):l+=t.slice(o),l.slice(1)}function je(t,e,n,i){var r,o,a,s="",l=t.tag;for(r=0,o=n.length;r<o;r+=1)a=n[r],t.replacer&&(a=t.replacer.call(n,String(r),a)),(Ne(t,e+1,a,!0,!0,!1,!0)||void 0===a&&Ne(t,e+1,null,!0,!0,!1,!0))&&(i&&""===s||(s+=fe(t,e)),t.dump&&$t===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=l,t.dump=s||"[]"}function Ee(t,e,n){var i,r,a,s,l,c;for(a=0,s=(r=n?t.explicitTypes:t.implicitTypes).length;a<s;a+=1)if(((l=r[a]).instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof e&&e instanceof l.instanceOf)&&(!l.predicate||l.predicate(e))){if(n?l.multi&&l.representName?t.tag=l.representName(e):t.tag=l.tag:t.tag="?",l.represent){if(c=t.styleMap[l.tag]||l.defaultStyle,"[object Function]"===Nt.call(l.represent))i=l.represent(e,c);else{if(!Ft.call(l.represent,c))throw new o("!<"+l.tag+'> tag resolver accepts not "'+c+'" style');i=l.represent[c](e,c)}t.dump=i}return!0}return!1}function Ne(t,e,n,i,r,a,s){t.tag=null,t.dump=n,Ee(t,n,!1)||Ee(t,n,!0);var l,c=Nt.call(t.dump),u=i;i&&(i=t.flowLevel<0||t.flowLevel>e);var p,h,f="[object Object]"===c||"[object Array]"===c;if(f&&(h=-1!==(p=t.duplicates.indexOf(n))),(null!==t.tag&&"?"!==t.tag||h||2!==t.indent&&e>0)&&(r=!1),h&&t.usedDuplicates[p])t.dump="*ref_"+p;else{if(f&&h&&!t.usedDuplicates[p]&&(t.usedDuplicates[p]=!0),"[object Object]"===c)i&&0!==Object.keys(t.dump).length?(function(t,e,n,i){var r,a,s,l,c,u,p="",h=t.tag,f=Object.keys(n);if(!0===t.sortKeys)f.sort();else if("function"==typeof t.sortKeys)f.sort(t.sortKeys);else if(t.sortKeys)throw new o("sortKeys must be a boolean or a function");for(r=0,a=f.length;r<a;r+=1)u="",i&&""===p||(u+=fe(t,e)),l=n[s=f[r]],t.replacer&&(l=t.replacer.call(n,s,l)),Ne(t,e+1,s,!0,!0,!0)&&((c=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&$t===t.dump.charCodeAt(0)?u+="?":u+="? "),u+=t.dump,c&&(u+=fe(t,e)),Ne(t,e+1,l,!0,c)&&(t.dump&&$t===t.dump.charCodeAt(0)?u+=":":u+=": ",p+=u+=t.dump));t.tag=h,t.dump=p||"{}"}(t,e,t.dump,r),h&&(t.dump="&ref_"+p+t.dump)):(function(t,e,n){var i,r,o,a,s,l="",c=t.tag,u=Object.keys(n);for(i=0,r=u.length;i<r;i+=1)s="",""!==l&&(s+=", "),t.condenseFlow&&(s+='"'),a=n[o=u[i]],t.replacer&&(a=t.replacer.call(n,o,a)),Ne(t,e,o,!1,!1)&&(t.dump.length>1024&&(s+="? "),s+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Ne(t,e,a,!1,!1)&&(l+=s+=t.dump));t.tag=c,t.dump="{"+l+"}"}(t,e,t.dump),h&&(t.dump="&ref_"+p+" "+t.dump));else if("[object Array]"===c)i&&0!==t.dump.length?(t.noArrayIndent&&!s&&e>0?je(t,e-1,t.dump,r):je(t,e,t.dump,r),h&&(t.dump="&ref_"+p+t.dump)):(function(t,e,n){var i,r,o,a="",s=t.tag;for(i=0,r=n.length;i<r;i+=1)o=n[i],t.replacer&&(o=t.replacer.call(n,String(i),o)),(Ne(t,e,o,!1,!1)||void 0===o&&Ne(t,e,null,!1,!1))&&(""!==a&&(a+=","+(t.condenseFlow?"":" ")),a+=t.dump);t.tag=s,t.dump="["+a+"]"}(t,e,t.dump),h&&(t.dump="&ref_"+p+" "+t.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(t.skipInvalid)return!1;throw new o("unacceptable kind of an object to dump "+c)}"?"!==t.tag&&Ce(t,t.dump,e,a,u)}null!==t.tag&&"?"!==t.tag&&(l=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),l="!"===t.tag[0]?"!"+l:"tag:yaml.org,2002:"===l.slice(0,18)?"!!"+l.slice(18):"!<"+l+">",t.dump=l+" "+t.dump)}return!0}function Fe(t,e){var n,i,r=[],o=[];for(Me(t,r,o),n=0,i=o.length;n<i;n+=1)e.duplicates.push(r[o[n]]);e.usedDuplicates=new Array(i)}function Me(t,e,n){var i,r,o;if(null!==t&&"object"==typeof t)if(-1!==(r=e.indexOf(t)))-1===n.indexOf(r)&&n.push(r);else if(e.push(t),Array.isArray(t))for(r=0,o=t.length;r<o;r+=1)Me(t[r],e,n);else for(r=0,o=(i=Object.keys(t)).length;r<o;r+=1)Me(t[i[r]],e,n)}function Le(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var $e={Type:p,Schema:d,FAILSAFE_SCHEMA:b,JSON_SCHEMA:S,CORE_SCHEMA:O,DEFAULT_SCHEMA:Y,load:Et.load,loadAll:Et.loadAll,dump:function(t,e){var n=new pe(e=e||{});n.noRefs||Fe(t,n);var i=t;return n.replacer&&(i=n.replacer.call({"":i},"",i)),Ne(n,0,i,!0,!0)?n.dump+"\n":""},YAMLException:o,types:{binary:M,float:C,map:m,null:v,pairs:U,set:R,timestamp:E,bool:k,int:x,merge:N,omap:P,seq:y,str:g},safeLoad:Le("safeLoad","load"),safeLoadAll:Le("safeLoadAll","loadAll"),safeDump:Le("safeDump","dump")};function Pe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function De(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ue={};!function(t){var e=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,11],n=[1,3],i=[1,4],r=[1,5],o=[1,6],a=[1,8],s=[1,9],l=[1,10],c=[1,13],u=[1,14],p=[1,15],h=[1,16],f=[1,17],d=[1,18],g=[1,19],y=[1,20],m=[1,21],b=[1,22],v=[1,23],k=[1,24],A=[1,25],_=[1,26],x=[5,7,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,30],w=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30],I=[5,7,12,13,14,19,20,21,22,23,24,25,26,28,30],C=[5,7,12,13,14,15,16,17,19,20,21,22,23,24,25,26,28,30],S=[5,7,12,19,20,21,22,23,24,25,26,28,30],O=[5,7,12,25,26,28,30],T=[7,28],j={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,expression_list:6,",":7,dot_name:8,".":9,NAME:10,"[":11,"]":12,"+":13,"-":14,"*":15,"/":16,"%":17,"^":18,">":19,"<":20,"==":21,"!=":22,">=":23,"<=":24,"||":25,"&&":26,"(":27,")":28,"?":29,":":30,true:31,false:32,QUOTED_STRING:33,NUMBER:34,HEXNUMBER:35,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",7:",",9:".",10:"NAME",11:"[",12:"]",13:"+",14:"-",15:"*",16:"/",17:"%",18:"^",19:">",20:"<",21:"==",22:"!=",23:">=",24:"<=",25:"||",26:"&&",27:"(",28:")",29:"?",30:":",31:"true",32:"false",33:"QUOTED_STRING",34:"NUMBER",35:"HEXNUMBER"},productions_:[0,[3,2],[6,3],[6,1],[8,3],[8,4],[8,1],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,3],[4,7],[4,1],[4,1],[4,1],[4,3],[4,4],[4,1],[4,1],[4,1]],performAction:function(t,e,n,i,r,o,a){var s=o.length-1;switch(r){case 1:var l=o[s-1];return"function"==typeof l?l:function(t){return l};case 2:case 4:this.$=o[s-2].concat([o[s]]);break;case 3:case 6:this.$=[o[s]];break;case 5:this.$=o[s-3].concat([o[s-1]]);break;case 7:this.$=function(t){return F(i.parser,t,"_add",[o[s-2],o[s]])};break;case 8:this.$=function(t){return F(i.parser,t,"_subtract",[o[s-2],o[s]])};break;case 9:this.$=function(t){return F(i.parser,t,"_multiply",[o[s-2],o[s]])};break;case 10:this.$=function(t){return F(i.parser,t,"_divide",[o[s-2],o[s]])};break;case 11:this.$=function(t){return F(i.parser,t,"_mod",[o[s-2],o[s]])};break;case 12:this.$=function(t){return F(i.parser,t,"_pow",[o[s-2],o[s]])};break;case 13:this.$=function(t){return 1==F(i.parser,t,"_greaterThen",[o[s-2],o[s]])};break;case 14:this.$=function(t){return 1==F(i.parser,t,"_lessThen",[o[s-2],o[s]])};break;case 15:this.$=function(t){return 1==F(i.parser,t,"_equalTo",[o[s-2],o[s]])};break;case 16:this.$=function(t){return 0==F(i.parser,t,"_equalTo",[o[s-2],o[s]])};break;case 17:this.$=function(t){return 0==F(i.parser,t,"_lessThen",[o[s-2],o[s]])};break;case 18:this.$=function(t){return 0==F(i.parser,t,"_greaterThen",[o[s-2],o[s]])};break;case 19:this.$=function(t){return 1==F(i.parser,t,"_or",[o[s-2],o[s]])};break;case 20:this.$=function(t){return 1==F(i.parser,t,"_and",[o[s-2],o[s]])};break;case 21:this.$=function(t){return-E(o[s],t)};break;case 22:this.$=function(t){return E(o[s-1],t)};break;case 23:this.$=function(t){return E(o[s-5],t)?E(o[s-2],t):E(o[s],t)};break;case 24:this.$=!0;break;case 25:this.$=!1;break;case 26:this.$=function(t){return i.parser.getDotProperty(t,N(o[s],t),0)};break;case 27:this.$=function(t){return M(i.parser,t,N(o[s-2],t),void 0,!0)};break;case 28:this.$=function(t){return M(i.parser,t,N(o[s-3],t),o[s-1],!0)};break;case 29:this.$=t.slice(1,-1);break;case 30:this.$=Number(t);break;case 31:this.$=parseInt(t,16)}},table:[{3:1,4:2,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{1:[3]},{5:[1,12],13:c,14:u,15:p,16:h,17:f,18:d,19:g,20:y,21:m,22:b,23:v,24:k,25:A,26:_},{4:27,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:28,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},t(x,[2,24]),t(x,[2,25]),t(x,[2,26],{9:[1,30],11:[1,31],27:[1,29]}),t(x,[2,29]),t(x,[2,30]),t(x,[2,31]),t(w,[2,6]),{1:[2,1]},{4:32,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:33,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:34,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:35,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:36,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:37,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:38,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:39,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:40,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:41,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:42,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:43,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:44,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:45,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},t(x,[2,21]),{13:c,14:u,15:p,16:h,17:f,18:d,19:g,20:y,21:m,22:b,23:v,24:k,25:A,26:_,28:[1,46]},{4:49,6:48,8:7,10:e,14:n,27:i,28:[1,47],31:r,32:o,33:a,34:s,35:l},{10:[1,50]},{4:51,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},t(I,[2,7],{15:p,16:h,17:f,18:d}),t(I,[2,8],{15:p,16:h,17:f,18:d}),t(C,[2,9],{18:d}),t(C,[2,10],{18:d}),t([5,7,12,13,14,17,19,20,21,22,23,24,25,26,28,30],[2,11],{15:p,16:h,18:d}),t(x,[2,12]),t(S,[2,13],{13:c,14:u,15:p,16:h,17:f,18:d}),t(S,[2,14],{13:c,14:u,15:p,16:h,17:f,18:d}),t(S,[2,15],{13:c,14:u,15:p,16:h,17:f,18:d}),t(S,[2,16],{13:c,14:u,15:p,16:h,17:f,18:d}),t(S,[2,17],{13:c,14:u,15:p,16:h,17:f,18:d}),t(S,[2,18],{13:c,14:u,15:p,16:h,17:f,18:d}),t(O,[2,19],{13:c,14:u,15:p,16:h,17:f,18:d,19:g,20:y,21:m,22:b,23:v,24:k}),t(O,[2,20],{13:c,14:u,15:p,16:h,17:f,18:d,19:g,20:y,21:m,22:b,23:v,24:k}),t(x,[2,22],{29:[1,52]}),t(x,[2,27]),{7:[1,54],28:[1,53]},t(T,[2,3],{13:c,14:u,15:p,16:h,17:f,18:d,19:g,20:y,21:m,22:b,23:v,24:k,25:A,26:_}),t(w,[2,4]),{12:[1,55],13:c,14:u,15:p,16:h,17:f,18:d,19:g,20:y,21:m,22:b,23:v,24:k,25:A,26:_},{4:56,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},t(x,[2,28]),{4:57,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},t(w,[2,5]),{13:c,14:u,15:p,16:h,17:f,18:d,19:g,20:y,21:m,22:b,23:v,24:k,25:A,26:_,30:[1,58]},t(T,[2,2],{13:c,14:u,15:p,16:h,17:f,18:d,19:g,20:y,21:m,22:b,23:v,24:k,25:A,26:_}),{4:59,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},t([5,7,12,28,30],[2,23],{13:c,14:u,15:p,16:h,17:f,18:d,19:g,20:y,21:m,22:b,23:v,24:k,25:A,26:_})],defaultActions:{12:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[null],r=[],o=this.table,a="",s=0,l=0,c=r.slice.call(arguments,1),u=Object.create(this.lexer),p={yy:{}};for(var h in this.yy)Object.prototype.hasOwnProperty.call(this.yy,h)&&(p.yy[h]=this.yy[h]);u.setInput(t,p.yy),p.yy.lexer=u,p.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var f=u.yylloc;r.push(f);var d=u.options&&u.options.ranges;"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var g,y,m,b,v,k,A,_,x,w={};;){if(y=n[n.length-1],this.defaultActions[y]?m=this.defaultActions[y]:(null==g&&(x=void 0,"number"!=typeof(x=u.lex()||1)&&(x=e.symbols_[x]||x),g=x),m=o[y]&&o[y][g]),void 0===m||!m.length||!m[0]){var I="";for(v in _=[],o[y])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");I=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==g?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(I,{text:u.match,token:this.terminals_[g]||g,line:u.yylineno,loc:f,expected:_})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+g);switch(m[0]){case 1:n.push(g),i.push(u.yytext),r.push(u.yylloc),n.push(m[1]),g=null,l=u.yyleng,a=u.yytext,s=u.yylineno,f=u.yylloc;break;case 2:if(k=this.productions_[m[1]][1],w.$=i[i.length-k],w._$={first_line:r[r.length-(k||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(k||1)].first_column,last_column:r[r.length-1].last_column},d&&(w._$.range=[r[r.length-(k||1)].range[0],r[r.length-1].range[1]]),void 0!==(b=this.performAction.apply(w,[a,l,s,p.yy,m[1],i,r].concat(c))))return b;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),r=r.slice(0,-1*k)),n.push(this.productions_[m[1]][0]),i.push(w.$),r.push(w._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}};function E(t,e){return"function"==typeof t?t(e):t}function N(t,e){return t&&(t=t.map((function(t){return E(t,e)}))),t}function F(t,e,n,i){return t[n].apply(t,N(i,e))}function M(t,e,n,i,r){var o,a,s;if((o="string"==typeof n?r?n.split("."):[n]:n).length>1){var l=o.pop();a=(s=t.getDotProperty(e,o))[l]}else a=t.getProperty(e,n),s=t;return null==a&&(a=t.getProperty(e,"defaultHandler"),s=t),a.apply(s,N(i,e))}var L=function(){var t={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},th