/*! For license information please see vendor-27545368.js.LICENSE.txt */ (self.webpackChunkscriptcat=self.webpackChunkscriptcat||[]).push([[30],{91033:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;a.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),O="undefined"!=typeof WeakMap?new WeakMap:new r,S=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new E(t,n,this);O.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){S.prototype[e]=function(){var t;return(t=O.get(this))[e].apply(t,arguments)}}));var A=void 0!==s.ResizeObserver?s.ResizeObserver:S;const k=/^(352|451)$/.test(n.j)?null:A},60053:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(!(0>>1;rs(c,n))us(l,c)?(e[r]=l,e[u]=n,r=u):(e[r]=c,e[a]=n,r=a);else{if(!(us(l,n)))break e;e[r]=l,e[u]=n,r=u}}}return t}function s(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,c=a.now();t.unstable_now=function(){return a.now()-c}}var u=[],l=[],f=1,h=null,p=3,d=!1,m=!1,y=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(l);null!==t;){if(null===t.callback)o(l);else{if(!(t.startTime<=e))break;o(l),t.sortIndex=t.expirationTime,n(u,t)}t=r(l)}}function E(e){if(y=!1,w(e),!m)if(null!==r(u))m=!0,R(O);else{var t=r(l);null!==t&&P(E,t.startTime-e)}}function O(e,n){m=!1,y&&(y=!1,v(N),N=-1),d=!0;var s=p;try{for(w(n),h=r(u);null!==h&&(!(h.expirationTime>n)||e&&!I());){var i=h.callback;if("function"==typeof i){h.callback=null,p=h.priorityLevel;var a=i(h.expirationTime<=n);n=t.unstable_now(),"function"==typeof a?h.callback=a:h===r(u)&&o(u),w(n)}else o(u);h=r(u)}if(null!==h)var c=!0;else{var f=r(l);null!==f&&P(E,f.startTime-n),c=!1}return c}finally{h=null,p=s,d=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,A=!1,k=null,N=-1,x=5,T=-1;function I(){return!(t.unstable_now()-Te||125i?(e.sortIndex=s,n(l,e),null===r(u)&&e===r(l)&&(y?(v(N),N=-1):y=!0,P(E,s-i))):(e.sortIndex=a,n(u,e),m||d||(m=!0,R(O))),e},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},63840:(e,t,n)=>{"use strict";e.exports=n(60053)},13727:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>s}),!/^(352|451)$/.test(n.j))var r=n(14686);function o(e){return e===Object(e)&&0!==Object.keys(e).length}const s=/^(352|451)$/.test(n.j)?null:function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(o(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:(0,r.Z)(e,t));if(!n){var s=function(e){return!1===e?{block:"end",inline:"nearest"}:o(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,s=e.left;r.scroll&&n?r.scroll({top:o,left:s,behavior:t}):(r.scrollTop=o,r.scrollLeft=s)}))}((0,r.Z)(e,s),s.behavior)}}},14686:(e,t,n)=>{"use strict";function r(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function o(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function s(e,t){if(e.clientHeightt||s>e&&i=t&&a>=n?s-e-r:i>t&&an?i-t+o:0}n.d(t,{Z:()=>a});const a=function(e,t){var n=t.scrollMode,o=t.block,a=t.inline,c=t.boundary,u=t.skipOverflowHiddenElements,l="function"==typeof c?c:function(e){return e!==c};if(!r(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,h=[],p=e;r(p)&&l(p);){if((p=p.parentNode)===f){h.push(p);break}p===document.body&&s(p)&&!s(document.documentElement)||s(p,u)&&h.push(p)}for(var d=window.visualViewport?visualViewport.width:innerWidth,m=window.visualViewport?visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),b=v.height,w=v.width,E=v.top,O=v.right,S=v.bottom,A=v.left,k="start"===o||"nearest"===o?E:"end"===o?S:E+b/2,N="center"===a?A+w/2:"end"===a?O:A,x=[],T=0;T=0&&A>=0&&S<=m&&O<=d&&E>=R&&S<=_&&A>=$&&O<=P)return x;var M=getComputedStyle(I),D=parseInt(M.borderLeftWidth,10),B=parseInt(M.borderTopWidth,10),U=parseInt(M.borderRightWidth,10),F=parseInt(M.borderBottomWidth,10),q=0,V=0,K="offsetWidth"in I?I.offsetWidth-I.clientWidth-D-U:0,G="offsetHeight"in I?I.offsetHeight-I.clientHeight-B-F:0;if(f===I)q="start"===o?k:"end"===o?k-m:"nearest"===o?i(g,g+m,m,B,F,g+k,g+k+b,b):k-m/2,V="start"===a?N:"center"===a?N-d/2:"end"===a?N-d:i(y,y+d,d,D,U,y+N,y+N+w,w),q=Math.max(0,q+g),V=Math.max(0,V+y);else{q="start"===o?k-R-B:"end"===o?k-_+F+G:"nearest"===o?i(R,_,C,B,F+G,k,k+b,b):k-(R+C/2)+G/2,V="start"===a?N-$-D:"center"===a?N-($+L/2)+K/2:"end"===a?N-P+U+K:i($,P,L,D,U+K,N,N+w,w);var W=I.scrollLeft,H=I.scrollTop;k+=H-(q=Math.max(0,Math.min(H+q,I.scrollHeight-C+G))),N+=W-(V=Math.max(0,Math.min(W+V,I.scrollWidth-L+K)))}x.push({el:I,top:q,left:V})}return x}},22257:(e,t,n)=>{const r=Symbol("SemVer ANY");class o{static get ANY(){return r}constructor(e,t){if(t=s(t),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new l(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new f(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new f(this.value,t).test(e.semver);const n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),r=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),s=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||r||s&&i||a||u}}e.exports=o;const s=n(12893),{re:i,t:a}=n(55765),c=n(7539),u=n(74225),l=n(26376),f=n(66902)},66902:(e,t,n)=>{class r{constructor(e,t){if(t=s(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof i)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!d(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,n=o.get(t);if(n)return n;const r=this.options.loose,s=r?u[l.HYPHENRANGELOOSE]:u[l.HYPHENRANGE];e=e.replace(s,x(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(u[l.COMPARATORTRIM],f),a("comparator trim",e);let c=(e=(e=(e=e.replace(u[l.TILDETRIM],h)).replace(u[l.CARETTRIM],p)).split(/\s+/).join(" ")).split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>N(e,this.options)));r&&(c=c.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(u[l.COMPARATORLOOSE]))))),a("range list",c);const m=new Map,y=c.map((e=>new i(e,this.options)));for(const e of y){if(d(e))return[e];m.set(e.value,e)}m.size>1&&m.has("")&&m.delete("");const v=[...m.values()];return o.set(t,v),v}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((n=>y(n,t)&&e.set.some((e=>y(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,m=e=>""===e.value,y=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},g=(e,t)=>(a("comp",e,t),e=E(e,t),a("caret",e),e=b(e,t),a("tildes",e),e=S(e,t),a("xrange",e),e=k(e,t),a("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{const n=t.loose?u[l.TILDELOOSE]:u[l.TILDE];return e.replace(n,((t,n,r,o,s)=>{let i;return a("tilde",e,t,n,r,o,s),v(n)?i="":v(r)?i=`>=${n}.0.0 <${+n+1}.0.0-0`:v(o)?i=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:s?(a("replaceTilde pr",s),i=`>=${n}.${r}.${o}-${s} <${n}.${+r+1}.0-0`):i=`>=${n}.${r}.${o} <${n}.${+r+1}.0-0`,a("tilde return",i),i}))},E=(e,t)=>e.trim().split(/\s+/).map((e=>O(e,t))).join(" "),O=(e,t)=>{a("caret",e,t);const n=t.loose?u[l.CARETLOOSE]:u[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,s,i)=>{let c;return a("caret",e,t,n,o,s,i),v(n)?c="":v(o)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(s)?c="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:i?(a("replaceCaret pr",i),c="0"===n?"0"===o?`>=${n}.${o}.${s}-${i} <${n}.${o}.${+s+1}-0`:`>=${n}.${o}.${s}-${i} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${s}-${i} <${+n+1}.0.0-0`):(a("no pr"),c="0"===n?"0"===o?`>=${n}.${o}.${s}${r} <${n}.${o}.${+s+1}-0`:`>=${n}.${o}.${s}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${s} <${+n+1}.0.0-0`),a("caret return",c),c}))},S=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>A(e,t))).join(" ")),A=(e,t)=>{e=e.trim();const n=t.loose?u[l.XRANGELOOSE]:u[l.XRANGE];return e.replace(n,((n,r,o,s,i,c)=>{a("xRange",e,n,r,o,s,i,c);const u=v(o),l=u||v(s),f=l||v(i),h=f;return"="===r&&h&&(r=""),c=t.includePrerelease?"-0":"",u?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&h?(l&&(s=0),i=0,">"===r?(r=">=",l?(o=+o+1,s=0,i=0):(s=+s+1,i=0)):"<="===r&&(r="<",l?o=+o+1:s=+s+1),"<"===r&&(c="-0"),n=`${r+o}.${s}.${i}${c}`):l?n=`>=${o}.0.0${c} <${+o+1}.0.0-0`:f&&(n=`>=${o}.${s}.0${c} <${o}.${+s+1}.0-0`),a("xRange return",n),n}))},k=(e,t)=>(a("replaceStars",e,t),e.trim().replace(u[l.STAR],"")),N=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),x=e=>(t,n,r,o,s,i,a,c,u,l,f,h,p)=>`${n=v(r)?"":v(o)?`>=${r}.0.0${e?"-0":""}`:v(s)?`>=${r}.${o}.0${e?"-0":""}`:i?`>=${n}`:`>=${n}${e?"-0":""}`} ${c=v(u)?"":v(l)?`<${+u+1}.0.0-0`:v(f)?`<${u}.${+l+1}.0-0`:h?`<=${u}.${l}.${f}-${h}`:e?`<${u}.${l}.${+f+1}-0`:`<=${c}`}`.trim(),T=(e,t,n)=>{for(let n=0;n0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},26376:(e,t,n)=>{const r=n(74225),{MAX_LENGTH:o,MAX_SAFE_INTEGER:s}=n(83295),{re:i,t:a}=n(55765),c=n(12893),{compareIdentifiers:u}=n(86742);class l{constructor(e,t){if(t=c(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?i[a.LOOSE]:i[a.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=l},13507:(e,t,n)=>{const r=n(33959);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},7539:(e,t,n)=>{const r=n(58718),o=n(81194),s=n(71312),i=n(25903),a=n(21544),c=n(12056);e.exports=(e,t,n,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,u);case"!=":return o(e,n,u);case">":return s(e,n,u);case">=":return i(e,n,u);case"<":return a(e,n,u);case"<=":return c(e,n,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},99038:(e,t,n)=>{const r=n(26376),o=n(33959),{re:s,t:i}=n(55765);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=s[i.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),s[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;s[i.COERCERTL].lastIndex=-1}else n=e.match(s[i.COERCE]);return null===n?null:o(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}},88880:(e,t,n)=>{const r=n(26376);e.exports=(e,t,n)=>{const o=new r(e,n),s=new r(t,n);return o.compare(s)||o.compareBuild(s)}},27880:(e,t,n)=>{const r=n(46269);e.exports=(e,t)=>r(e,t,!0)},46269:(e,t,n)=>{const r=n(26376);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},62378:(e,t,n)=>{const r=n(33959),o=n(58718);e.exports=(e,t)=>{if(o(e,t))return null;{const n=r(e),o=r(t),s=n.prerelease.length||o.prerelease.length,i=s?"pre":"",a=s?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==o[e])return i+e;return a}}},58718:(e,t,n)=>{const r=n(46269);e.exports=(e,t,n)=>0===r(e,t,n)},71312:(e,t,n)=>{const r=n(46269);e.exports=(e,t,n)=>r(e,t,n)>0},25903:(e,t,n)=>{const r=n(46269);e.exports=(e,t,n)=>r(e,t,n)>=0},20253:(e,t,n)=>{const r=n(26376);e.exports=(e,t,n,o)=>{"string"==typeof n&&(o=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,o).version}catch(e){return null}}},21544:(e,t,n)=>{const r=n(46269);e.exports=(e,t,n)=>r(e,t,n)<0},12056:(e,t,n)=>{const r=n(46269);e.exports=(e,t,n)=>r(e,t,n)<=0},38679:(e,t,n)=>{const r=n(26376);e.exports=(e,t)=>new r(e,t).major},87789:(e,t,n)=>{const r=n(26376);e.exports=(e,t)=>new r(e,t).minor},81194:(e,t,n)=>{const r=n(46269);e.exports=(e,t,n)=>0!==r(e,t,n)},33959:(e,t,n)=>{const{MAX_LENGTH:r}=n(83295),{re:o,t:s}=n(55765),i=n(26376),a=n(12893);e.exports=(e,t)=>{if(t=a(t),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?o[s.LOOSE]:o[s.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}},52358:(e,t,n)=>{const r=n(26376);e.exports=(e,t)=>new r(e,t).patch},57559:(e,t,n)=>{const r=n(33959);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},79795:(e,t,n)=>{const r=n(46269);e.exports=(e,t,n)=>r(t,e,n)},63657:(e,t,n)=>{const r=n(88880);e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))},45712:(e,t,n)=>{const r=n(66902);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},21100:(e,t,n)=>{const r=n(88880);e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))},76397:(e,t,n)=>{const r=n(33959);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},81249:(e,t,n)=>{const r=n(55765),o=n(83295),s=n(26376),i=n(86742),a=n(33959),c=n(76397),u=n(13507),l=n(20253),f=n(62378),h=n(38679),p=n(87789),d=n(52358),m=n(57559),y=n(46269),g=n(79795),v=n(27880),b=n(88880),w=n(21100),E=n(63657),O=n(71312),S=n(21544),A=n(58718),k=n(81194),N=n(25903),x=n(12056),T=n(7539),I=n(99038),j=n(22257),C=n(66902),L=n(45712),R=n(51042),P=n(85775),_=n(71657),$=n(95316),M=n(89042),D=n(6826),B=n(97606),U=n(50032),F=n(82937),q=n(17908),V=n(50799);e.exports={parse:a,valid:c,clean:u,inc:l,diff:f,major:h,minor:p,patch:d,prerelease:m,compare:y,rcompare:g,compareLoose:v,compareBuild:b,sort:w,rsort:E,gt:O,lt:S,eq:A,neq:k,gte:N,lte:x,cmp:T,coerce:I,Comparator:j,Range:C,satisfies:L,toComparators:R,maxSatisfying:P,minSatisfying:_,minVersion:$,validRange:M,outside:D,gtr:B,ltr:U,intersects:F,simplifyRange:q,subset:V,SemVer:s,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:o.SEMVER_SPEC_VERSION,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},83295:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},74225:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},86742:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),o=t.test(n);return r&&o&&(e=+e,n=+n),e===n?0:r&&!o?-1:o&&!r?1:en(t,e)}},12893:e=>{const t=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:t.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}},55765:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r}=n(83295),o=n(74225),s=(t=e.exports={}).re=[],i=t.src=[],a=t.t={};let c=0;const u=(e,t,n)=>{const r=c++;o(e,r,t),a[e]=r,i[r]=t,s[r]=new RegExp(t,n?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${i[a.NUMERICIDENTIFIER]}|${i[a.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${i[a.NUMERICIDENTIFIERLOOSE]}|${i[a.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${i[a.PRERELEASEIDENTIFIER]}(?:\\.${i[a.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${i[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[a.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${i[a.BUILDIDENTIFIER]}(?:\\.${i[a.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${i[a.MAINVERSION]}${i[a.PRERELEASE]}?${i[a.BUILD]}?`),u("FULL",`^${i[a.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${i[a.MAINVERSIONLOOSE]}${i[a.PRERELEASELOOSE]}?${i[a.BUILD]}?`),u("LOOSE",`^${i[a.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${i[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${i[a.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:${i[a.PRERELEASE]})?${i[a.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:${i[a.PRERELEASELOOSE]})?${i[a.BUILD]}?)?)?`),u("XRANGE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),u("COERCERTL",i[a.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${i[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${i[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${i[a.LONECARET]}${i[a.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${i[a.LONECARET]}${i[a.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${i[a.GTLT]}\\s*(${i[a.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]}|${i[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${i[a.XRANGEPLAIN]})\\s+-\\s+(${i[a.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${i[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[a.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},97606:(e,t,n)=>{const r=n(6826);e.exports=(e,t,n)=>r(e,t,">",n)},82937:(e,t,n)=>{const r=n(66902);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t))},50032:(e,t,n)=>{const r=n(6826);e.exports=(e,t,n)=>r(e,t,"<",n)},85775:(e,t,n)=>{const r=n(26376),o=n(66902);e.exports=(e,t,n)=>{let s=null,i=null,a=null;try{a=new o(t,n)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new r(s,n)))})),s}},71657:(e,t,n)=>{const r=n(26376),o=n(66902);e.exports=(e,t,n)=>{let s=null,i=null,a=null;try{a=new o(t,n)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new r(s,n)))})),s}},95316:(e,t,n)=>{const r=n(26376),o=n(66902),s=n(71312);e.exports=(e,t)=>{e=new o(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!s(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||n&&!s(n,i)||(n=i)}return n&&e.test(n)?n:null}},6826:(e,t,n)=>{const r=n(26376),o=n(22257),{ANY:s}=o,i=n(66902),a=n(45712),c=n(71312),u=n(21544),l=n(12056),f=n(25903);e.exports=(e,t,n,h)=>{let p,d,m,y,g;switch(e=new r(e,h),t=new i(t,h),n){case">":p=c,d=l,m=u,y=">",g=">=";break;case"<":p=u,d=f,m=c,y="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,h))return!1;for(let n=0;n{e.semver===s&&(e=new o(">=0.0.0")),i=i||e,a=a||e,p(e.semver,i.semver,h)?i=e:m(e.semver,a.semver,h)&&(a=e)})),i.operator===y||i.operator===g)return!1;if((!a.operator||a.operator===y)&&d(e,a.semver))return!1;if(a.operator===g&&m(e,a.semver))return!1}return!0}},17908:(e,t,n)=>{const r=n(45712),o=n(46269);e.exports=(e,t,n)=>{const s=[];let i=null,a=null;const c=e.sort(((e,t)=>o(e,t,n)));for(const e of c){r(e,t,n)?(a=e,i||(i=e)):(a&&s.push([i,a]),a=null,i=null)}i&&s.push([i,null]);const u=[];for(const[e,t]of s)e===t?u.push(e):t||e!==c[0]?t?e===c[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");const l=u.join(" || "),f="string"==typeof t.raw?t.raw:String(t);return l.length{const r=n(66902),o=n(22257),{ANY:s}=o,i=n(45712),a=n(46269),c=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===s){if(1===t.length&&t[0].semver===s)return!0;e=n.includePrerelease?[new o(">=0.0.0-0")]:[new o(">=0.0.0")]}if(1===t.length&&t[0].semver===s){if(n.includePrerelease)return!0;t=[new o(">=0.0.0")]}const r=new Set;let c,f,h,p,d,m,y;for(const t of e)">"===t.operator||">="===t.operator?c=u(c,t,n):"<"===t.operator||"<="===t.operator?f=l(f,t,n):r.add(t.semver);if(r.size>1)return null;if(c&&f){if(h=a(c.semver,f.semver,n),h>0)return null;if(0===h&&(">="!==c.operator||"<="!==f.operator))return null}for(const e of r){if(c&&!i(e,String(c),n))return null;if(f&&!i(e,String(f),n))return null;for(const r of t)if(!i(e,String(r),n))return!1;return!0}let g=!(!f||n.includePrerelease||!f.semver.prerelease.length)&&f.semver,v=!(!c||n.includePrerelease||!c.semver.prerelease.length)&&c.semver;g&&1===g.prerelease.length&&"<"===f.operator&&0===g.prerelease[0]&&(g=!1);for(const e of t){if(y=y||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,c)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(p=u(c,e,n),p===e&&p!==c)return!1}else if(">="===c.operator&&!i(c.semver,String(e),n))return!1;if(f)if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),"<"===e.operator||"<="===e.operator){if(d=l(f,e,n),d===e&&d!==f)return!1}else if("<="===f.operator&&!i(f.semver,String(e),n))return!1;if(!e.operator&&(f||c)&&0!==h)return!1}return!(c&&m&&!f&&0!==h)&&(!(f&&y&&!c&&0!==h)&&(!v&&!g))},u=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let o=!1;e:for(const r of e.set){for(const e of t.set){const t=c(r,e,n);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}},51042:(e,t,n)=>{const r=n(66902);e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},89042:(e,t,n)=>{const r=n(66902);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},93379:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},19216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},44589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},70655:(e,t,n)=>{"use strict";n.d(t,{pi:()=>r});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";function r(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}n.d(t,{k:()=>r})},80075:(e,t,n)=>{"use strict";if(n.d(t,{q:()=>s}),!/^(352|451)$/.test(n.j))var r=n(99994);if(!/^(352|451)$/.test(n.j))var o=n(15429);function s(e,t){return(0,o.W)(t||null,(function(t){return e.forEach((function(e){return(0,r.k)(e,t)}))}))}},15429:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var r=n(67294);function o(e,t){var n=(0,r.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}},87122:(e,t,n)=>{"use strict";if(n.d(t,{_:()=>a,s:()=>i}),!/^(352|451)$/.test(n.j))var r=n(70655);function o(e){return e}function s(e,t){void 0===t&&(t=o);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var s=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(s)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}function i(e,t){return void 0===t&&(t=o),s(e,t)}function a(e){void 0===e&&(e={});var t=s(null);return t.options=(0,r.pi)({async:!0,ssr:!1},e),t}},67719:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>o}),/^(35|4)2$/.test(n.j))var r=n(27738);const o=/^(35|4)2$/.test(n.j)?function(e){if(!(0,r.Z)(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}:null},3958:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});for(var r=n(27738),o=[],s=0;s<256;++s)o.push((s+256).toString(16).substr(1));const i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase();if(!(0,r.Z)(n))throw TypeError("Stringified UUID is invalid");return n}},43528:(e,t,n)=>{"use strict";var r;n.d(t,{Z:()=>a});var o=new Uint8Array(16);function s(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}var i=n(3958);const a=function(e,t,n){var r=(e=e||{}).random||(e.rng||s)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return(0,i.Z)(r)}},34605:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3958),o=n(67719);function s(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function i(e,t){return e<>>32-t}const a=function(e,t,n){function s(e,s,i,a){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n>>0;E=w,w=b,b=i(v,30)>>>0,v=g,g=A}n[0]=n[0]+g>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+b>>>0,n[3]=n[3]+w>>>0,n[4]=n[4]+E>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}))},27738:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const o=function(e){return"string"==typeof e&&r.test(e)}},79478:(e,t,n)=>{var r;self,r=()=>(()=>{var e={5056:(e,t,n)=>{e.exports=n(203)},3198:(e,t,n)=>{"use strict";var r=n(3401),o=n(5888),s=n(4963),i=n(8826),a=n(4466),c=n(8418),u=n(6130),l=n(8760),f=n(4200),h=n(2800),p=n(4830);e.exports=function(e){return new Promise((function(t,n){var d,m=e.data,y=e.headers,g=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete y["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(w+":"+E)}var O=a(e.baseURL,e.url);function S(){if(b){var r="getAllResponseHeaders"in b?c(b.getAllResponseHeaders()):null,s={data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};o((function(e){t(e),v()}),(function(e){n(e),v()}),s),b=null}}if(b.open(e.method.toUpperCase(),i(O,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(S)},b.onabort=function(){b&&(n(new f("Request aborted",f.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var A=(e.withCredentials||u(O))&&e.xsrfCookieName?s.read(e.xsrfCookieName):void 0;A&&(y[e.xsrfHeaderName]=A)}"setRequestHeader"in b&&r.forEach(y,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete y[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),g&&"json"!==g&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(d=function(e){b&&(n(!e||e&&e.type?new h:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d))),m||(m=null);var k=p(O);k&&-1===["http","https","file"].indexOf(k)?n(new f("Unsupported protocol "+k+":",f.ERR_BAD_REQUEST,e)):b.send(m)}))}},203:(e,t,n)=>{"use strict";var r=n(3401),o=n(9366),s=n(1112),i=n(3674),a=function e(t){var n=new s(t),a=o(s.prototype.request,n);return r.extend(a,s.prototype,n),r.extend(a,n),a.create=function(n){return e(i(t,n))},a}(n(9050));a.Axios=s,a.CanceledError=n(2800),a.CancelToken=n(4078),a.isCancel=n(1907),a.VERSION=n(8963).version,a.toFormData=n(7427),a.AxiosError=n(4200),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=n(7998),a.isAxiosError=n(1720),e.exports=a,e.exports.default=a},4078:(e,t,n)=>{"use strict";var r=n(2800);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t{"use strict";var r=n(4200);function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(3401).inherits(o,r,{__CANCEL__:!0}),e.exports=o},1907:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},1112:(e,t,n)=>{"use strict";var r=n(3401),o=n(8826),s=n(9655),i=n(4412),a=n(3674),c=n(4466),u=n(3465),l=u.validators;function f(e){this.defaults=e,this.interceptors={request:new s,response:new s}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var s,c=[];if(this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)})),!o){var f=[i,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(c),s=Promise.resolve(t);f.length;)s=s.then(f.shift(),f.shift());return s}for(var h=t;r.length;){var p=r.shift(),d=r.shift();try{h=p(h)}catch(e){d(e);break}}try{s=i(h)}catch(e){return Promise.reject(e)}for(;c.length;)s=s.then(c.shift(),c.shift());return s},f.prototype.getUri=function(e){e=a(this.defaults,e);var t=c(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(a(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},4200:(e,t,n)=>{"use strict";var r=n(3401);function o(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var s=o.prototype,i={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){i[e]={value:e}})),Object.defineProperties(o,i),Object.defineProperty(s,"isAxiosError",{value:!0}),o.from=function(e,t,n,i,a,c){var u=Object.create(s);return r.toFlatObject(e,u,(function(e){return e!==Error.prototype})),o.call(u,e.message,t,n,i,a),u.name=e.name,c&&Object.assign(u,c),u},e.exports=o},9655:(e,t,n)=>{"use strict";var r=n(3401);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},4466:(e,t,n)=>{"use strict";var r=n(4206),o=n(7955);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},4412:(e,t,n)=>{"use strict";var r=n(3401),o=n(8092),s=n(1907),i=n(9050),a=n(2800);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function(t){return c(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return s(t)||(c(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},3674:(e,t,n)=>{"use strict";var r=n(3401);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function i(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function c(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||s,o=t(e);r.isUndefined(o)&&t!==c||(n[e]=o)})),n}},5888:(e,t,n)=>{"use strict";var r=n(4200);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},8092:(e,t,n)=>{"use strict";var r=n(3401),o=n(9050);e.exports=function(e,t,n){var s=this||o;return r.forEach(n,(function(n){e=n.call(s,e,t)})),e}},9050:(e,t,n)=>{"use strict";var r=n(3401),o=n(5854),s=n(4200),i=n(8760),a=n(7427),c={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,f={transitional:i,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=n(3198)),l),transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,s=r.isObject(e),i=t&&t["Content-Type"];if((n=r.isFileList(e))||s&&"multipart/form-data"===i){var c=this.env&&this.env.FormData;return a(n?{"files[]":e}:e,c&&new c)}return s||"application/json"===i?(u(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw s.from(e,s.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(846)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){f.headers[e]=r.merge(c)})),e.exports=f},8760:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},8963:e=>{e.exports={version:"0.27.2"}},9366:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(3401);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var s;if(n)s=n(t);else if(r.isURLSearchParams(t))s=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(o(t)+"="+o(e))})))})),s=i.join("&")}if(s){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}},7955:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4963:(e,t,n)=>{"use strict";var r=n(3401);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,s,i){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(s)&&a.push("domain="+s),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4206:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},1720:(e,t,n)=>{"use strict";var r=n(3401);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},6130:(e,t,n)=>{"use strict";var r=n(3401);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},5854:(e,t,n)=>{"use strict";var r=n(3401);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},846:e=>{e.exports=null},8418:(e,t,n)=>{"use strict";var r=n(3401),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,s,i={};return e?(r.forEach(e.split("\n"),(function(e){if(s=e.indexOf(":"),t=r.trim(e.substr(0,s)).toLowerCase(),n=r.trim(e.substr(s+1)),t){if(i[t]&&o.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},4830:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},7998:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7427:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}var o=n(3401);e.exports=function(e,t){t=t||new FormData;var n=[];function s(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,a){if(o.isPlainObject(i)||o.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+a);n.push(i),o.forEach(i,(function(n,i){if(!o.isUndefined(n)){var c,u=a?a+"."+i:i;if(n&&!a&&"object"===r(n))if(o.endsWith(i,"{}"))n=JSON.stringify(n);else if(o.endsWith(i,"[]")&&(c=o.toArray(n)))return void c.forEach((function(e){!o.isUndefined(e)&&t.append(u,s(e))}));e(n,u)}})),n.pop()}else t.append(a,s(i))}(e),t}},3465:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}var o=n(8963).version,s=n(4200),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return r(n)===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,n){function r(e,t){return"[Axios v"+o+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new s(r(o," has been removed"+(t?" in "+t:"")),s.ERR_DEPRECATED);return t&&!a[o]&&(a[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},e.exports={assertOptions:function(e,t,n){if("object"!==r(e))throw new s("options must be an object",s.ERR_BAD_OPTION_VALUE);for(var o=Object.keys(e),i=o.length;i-- >0;){var a=o[i],c=t[a];if(c){var u=e[a],l=void 0===u||c(u,a,e);if(!0!==l)throw new s("option "+a+" must be "+l,s.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new s("Unknown option "+a,s.ERR_BAD_OPTION)}},validators:i}},3401:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}var o,s=n(9366),i=Object.prototype.toString,a=(o=Object.create(null),function(e){var t=i.call(e);return o[t]||(o[t]=t.slice(8,-1).toLowerCase())});function c(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function u(e){return Array.isArray(e)}function l(e){return void 0===e}var f=c("ArrayBuffer");function h(e){return null!==e&&"object"===r(e)}function p(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var d=c("Date"),m=c("File"),y=c("Blob"),g=c("FileList");function v(e){return"[object Function]"===i.call(e)}var b=c("URLSearchParams");function w(e,t){if(null!=e)if("object"!==r(e)&&(e=[e]),u(e))for(var n=0,o=e.length;n0;)i[s=r[o]]||(t[s]=e[s],i[s]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:c,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(l(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:O,isFileList:g}},9584:e=>{"use strict";function t(e,t,o){e instanceof RegExp&&(e=n(e,o)),t instanceof RegExp&&(t=n(t,o));var s=r(e,t,o);return s&&{start:s[0],end:s[1],pre:o.slice(0,s[0]),body:o.slice(s[0]+e.length,s[1]),post:o.slice(s[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,o,s,i,a,c=n.indexOf(e),u=n.indexOf(t,c+1),l=c;if(c>=0&&u>0){for(r=[],s=n.length;l>=0&&!a;)l==c?(r.push(l),c=n.indexOf(e,l+1)):1==r.length?a=[r.pop(),u]:((o=r.pop())=0?c:u;r.length&&(a=[s,i])}return a}e.exports=t,t.range=r},9146:function(e,t,r){var o;function s(e){return s="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},s(e)}e=r.nmd(e),function(i){var a="object"==s(t)&&t,c="object"==s(e)&&e&&e.exports==a&&e,u="object"==(void 0===n.g?"undefined":s(n.g))&&n.g;u.global!==u&&u.window!==u||(i=u);var l=function(e){this.message=e};(l.prototype=new Error).name="InvalidCharacterError";var f=function(e){throw new l(e)},h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=/[\t\n\f\r ]/g,d={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&f("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,r,o,s=e.length%3,i="",a=-1,c=e.length-s;++a>18&63)+h.charAt(o>>12&63)+h.charAt(o>>6&63)+h.charAt(63&o);return 2==s?(t=e.charCodeAt(a)<<8,n=e.charCodeAt(++a),i+=h.charAt((o=t+n)>>10)+h.charAt(o>>4&63)+h.charAt(o<<2&63)+"="):1==s&&(o=e.charCodeAt(a),i+=h.charAt(o>>2)+h.charAt(o<<4&63)+"=="),i},decode:function(e){var t=(e=String(e).replace(p,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&f("Invalid character: the string to be decoded is not correctly encoded.");for(var n,r,o=0,s="",i=-1;++i>(-2*o&6)));return s},version:"1.0.0"};if("object"==s(r.amdO)&&r.amdO)void 0===(o=function(){return d}.call(t,r,t,e))||(e.exports=o);else if(a&&!a.nodeType)if(c)c.exports=d;else for(var m in d)d.hasOwnProperty(m)&&(a[m]=d[m]);else i.base64=d}(this)},8918:(e,t)=>{"use strict";t.k=function(e){if(!e)return 0;for(var t=(e=e.toString()).length,n=e.length;n--;){var r=e.charCodeAt(n);56320<=r&&r<=57343&&n--,127{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n{var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-s)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,o=0;r>>6-2*o);return n}},e.exports=n},7412:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}var o=n(6410).buildOptions,s={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:" ",supressEmptyNode:!1,tagValueProcessor:function(e){return e},attrValueProcessor:function(e){return e}},i=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor","rootNodeName"];function a(e){this.options=o(e,s,i),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=y),this.options.cdataTagName?this.isCDATA=g:this.isCDATA=function(){return!1},this.replaceCDATAstr=u,this.replaceCDATAarr=l,this.processTextOrObjNode=c,this.options.format?(this.indentate=m,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=d,this.buildObjNode=h):(this.buildTextNode=p,this.buildObjNode=f),this.buildTextValNode=p,this.buildObjectNode=f}function c(e,t,n){var r=this.j2x(e,n+1);return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextNode(r.val,t,r.attrStr,n):this.buildObjNode(r.val,t,r.attrStr,n)}function u(e,t){return e=this.options.tagValueProcessor(""+e),""===this.options.cdataPositionChar||""===e?e+"");return e+this.newLine}function f(e,t,n,r){return n&&-1===e.indexOf("<")?this.indentate(r)+"<"+t+n+">"+e+""+this.options.tagValueProcessor(e)+"1&&(t={},r=e,(n=this.options.rootNodeName)in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e=t),this.j2x(e,0).val},a.prototype.j2x=function(e,t){var n="",o="";for(var s in e)if(void 0===e[s]);else if(null===e[s])o+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if(e[s]instanceof Date)o+=this.buildTextNode(e[s],s,"",t);else if("object"!==r(e[s])){var i=this.isAttribute(s);i?n+=" "+i+'="'+this.options.attrValueProcessor(""+e[s])+'"':this.isCDATA(s)?e[this.options.textNodeName]?o+=this.replaceCDATAstr(e[this.options.textNodeName],e[s]):o+=this.replaceCDATAstr("",e[s]):s===this.options.textNodeName?e[this.options.cdataTagName]||(o+=this.options.tagValueProcessor(""+e[s])):o+=this.buildTextNode(e[s],s,"",t)}else if(Array.isArray(e[s]))if(this.isCDATA(s))o+=this.indentate(t),e[this.options.textNodeName]?o+=this.replaceCDATAarr(e[this.options.textNodeName],e[s]):o+=this.replaceCDATAarr("",e[s]);else for(var a=e[s].length,c=0;c{"use strict";var r=function(e){return String.fromCharCode(e)},o={nilChar:r(176),missingChar:r(201),nilPremitive:r(175),missingPremitive:r(200),emptyChar:r(178),emptyValue:r(177),boundryChar:r(179),objStart:r(198),arrStart:r(204),arrayEnd:r(185)},s=[o.nilChar,o.nilPremitive,o.missingChar,o.missingPremitive,o.boundryChar,o.emptyChar,o.emptyValue,o.arrayEnd,o.objStart,o.arrStart],i=function e(t,n,r){if("string"==typeof n)return t&&t[0]&&void 0!==t[0].val?a(t[0].val,n):a(t,n);var s,i=void 0===(s=t)?o.missingChar:null===s?o.nilChar:!(s.child&&0===Object.keys(s.child).length&&(!s.attrsMap||0===Object.keys(s.attrsMap).length))||o.emptyChar;if(!0===i){var u="";if(Array.isArray(n)){u+=o.arrStart;var l=n[0],f=t.length;if("string"==typeof l)for(var h=0;h{"use strict";function r(e){return r="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},r(e)}var o=n(6410);t.convertToJson=function e(t,n,s){var i={};if(!n.alwaysCreateTextNode&&(!t.child||o.isEmptyObject(t.child))&&(!t.attrsMap||o.isEmptyObject(t.attrsMap)))return o.isExist(t.val)?t.val:"";if(o.isExist(t.val)&&("string"!=typeof t.val||""!==t.val&&t.val!==n.cdataPositionChar)){var a=o.isTagNameInArrayMode(t.tagname,n.arrayMode,s);i[n.textNodeName]=a?[t.val]:t.val}o.merge(i,t.attrsMap,n.arrayMode);for(var c=Object.keys(t.child),u=0;u1)for(var f in i[l]=[],t.child[l])t.child[l].hasOwnProperty(f)&&i[l].push(e(t.child[l][f],n,l));else{var h=e(t.child[l][0],n,l),p=!0===n.arrayMode&&"object"===r(h)||o.isTagNameInArrayMode(l,n.arrayMode,s);i[l]=p?[h]:h}}return i}},5651:(e,t,n)=>{"use strict";var r=n(6410),o=n(6410).buildOptions,s=n(4369),i=function e(t,n,o){for(var s,i="{",a=Object.keys(t.child),c=0;c1){for(var l in i+='"'+u+'" : [ ',t.child[u])i+=e(t.child[u][l],n)+" , ";i=i.substr(0,i.length-1)+" ] "}else i+='"'+u+'" : '+e(t.child[u][0],n)+" ,"}return r.merge(i,t.attrsMap),r.isEmptyObject(i)?r.isExist(t.val)?t.val:"":(r.isExist(t.val)&&("string"!=typeof t.val||""!==t.val&&t.val!==n.cdataPositionChar)&&(i+='"'+n.textNodeName+'" : '+(!0!==(s=t.val)&&!1!==s&&isNaN(s)?'"'+s+'"':s)),","===i[i.length-1]&&(i=i.substr(0,i.length-2)),i+"}")};t.convertToJsonString=function(e,t){return(t=o(t,s.defaultOptions,s.props)).indentBy=t.indentBy||"",i(e,t)}},8819:(e,t,n)=>{"use strict";var r=n(504),o=n(4369),s=n(4369),i=n(6410).buildOptions,a=n(1135);t.parse=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(n){!0===n&&(n={});var c=a.validate(e,n);if(!0!==c)throw Error(c.err.msg)}t.parseTrueNumberOnly&&!1!==t.parseNodeValue&&!t.numParseOptions&&(t.numParseOptions={leadingZeros:!1});var u=i(t,s.defaultOptions,s.props),l=o.getTraversalObj(e,u);return r.convertToJson(l,u)},t.convertTonimn=n(3927).convert2nimn,t.getTraversalObj=o.getTraversalObj,t.convertToJson=r.convertToJson,t.convertToJsonString=n(5651).convertToJsonString,t.validate=a.validate,t.j2xParser=n(7412),t.parseToNimn=function(e,n,r){return t.convertTonimn(t.getTraversalObj(e,r),n,r)}},6410:(e,t)=>{"use strict";var n="[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",r=new RegExp("^"+n+"$");t.isExist=function(e){return void 0!==e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,n){if(t)for(var r=Object.keys(t),o=r.length,s=0;s{"use strict";var r=n(6410),o={allowBooleanAttributes:!1},s=["allowBooleanAttributes"];function i(e,t){for(var n=t;t5&&"xml"===r)return h("InvalidXml","XML declaration allowed only at the start of the document.",d(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function a(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){var n=1;for(t+=8;t"===e[t]&&0==--n)break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t"===e[t+2]){t+=2;break}return t}function c(e,t){for(var n="",r="",o=!1;t"===e[t]&&""===r){o=!0;break}n+=e[t]}return""===r&&{value:n,index:t,tagClosed:o}}t.validate=function(e,t){t=r.buildOptions(t,o,s);var n,u=[],p=!1,m=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(var y=0;y"!==e[y]&&" "!==e[y]&&"\t"!==e[y]&&"\n"!==e[y]&&"\r"!==e[y];y++)b+=e[y];if("/"===(b=b.trim())[b.length-1]&&(b=b.substring(0,b.length-1),y--),n=b,!r.isName(n))return h("InvalidTag",0===b.trim().length?"Invalid space after '<'.":"Tag '"+b+"' is an invalid name.",d(e,y));var w=c(e,y);if(!1===w)return h("InvalidAttr","Attributes for '"+b+"' have open quote.",d(e,y));var E=w.value;if(y=w.index,"/"===E[E.length-1]){var O=y-E.length,S=l(E=E.substring(0,E.length-1),t);if(!0!==S)return h(S.err.code,S.err.msg,d(e,O+S.err.line));p=!0}else if(v){if(!w.tagClosed)return h("InvalidTag","Closing tag '"+b+"' doesn't have proper closing.",d(e,y));if(E.trim().length>0)return h("InvalidTag","Closing tag '"+b+"' can't have attributes or invalid starting.",d(e,g));var A=u.pop();if(b!==A.tagName){var k=d(e,A.tagStartPos);return h("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+k.line+", col "+k.col+") instead of closing tag '"+b+"'.",d(e,g))}0==u.length&&(m=!0)}else{var N=l(E,t);if(!0!==N)return h(N.err.code,N.err.msg,d(e,y-E.length+N.err.line));if(!0===m)return h("InvalidXml","Multiple possible root nodes found.",d(e,y));u.push({tagName:b,tagStartPos:g}),p=!0}for(y++;y0)||h("InvalidXml","Invalid '"+JSON.stringify(u.map((function(e){return e.tagName})),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):h("InvalidXml","Start tag expected.",1)};var u=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function l(e,t){for(var n=r.getAllMatches(e,u),o={},s=0;s{"use strict";e.exports=function(e,t,n){this.tagname=e,this.parent=t,this.child={},this.attrsMap={},this.val=n,this.addChild=function(e){Array.isArray(this.child[e.tagname])?this.child[e.tagname].push(e):this.child[e.tagname]=[e]}}},4369:(e,t,n)=>{"use strict";var r=n(6410),o=n(6410).buildOptions,s=n(6613),i=n(5512);"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,r.nameRegexp),!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var a={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",numParseOptions:{hex:!0,leadingZeros:!0},tagValueProcessor:function(e,t){return e},attrValueProcessor:function(e,t){return e},stopNodes:[],alwaysCreateTextNode:!1};t.defaultOptions=a;var c=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","numParseOptions","stopNodes","alwaysCreateTextNode"];function u(e,t,n){return t&&(n.trimValues&&(t=t.trim()),t=f(t=n.tagValueProcessor(t,e),n.parseNodeValue,n.numParseOptions)),t}function l(e,t){if(t.ignoreNameSpace){var n=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===n[0])return"";2===n.length&&(e=r+n[1])}return e}function f(e,t,n){if(t&&"string"==typeof e){var o=e.trim();return"true"===o||"false"!==o&&i(e,n)}return r.isExist(e)?e:""}t.props=c;var h=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])(.*?)\\3)?","g");function p(e,t){if(!t.ignoreAttributes&&"string"==typeof e){e=e.replace(/\r?\n/g," ");for(var n=r.getAllMatches(e,h),o=n.length,s={},i=0;i"===s)return{data:r,index:o};"\t"===s&&(s=" ")}r+=s}}function m(e,t,n,r){var o=e.indexOf(t,n);if(-1===o)throw new Error(r);return o+t.length-1}t.getTraversalObj=function(e,t){e=e.replace(/\r\n?/g,"\n"),t=o(t,a,c);for(var n=new s("!xml"),i=n,l="",f=0;f",f,"Closing Tag is not closed."),y=e.substring(f+2,h).trim();if(t.ignoreNameSpace){var g=y.indexOf(":");-1!==g&&(y=y.substr(g+1))}i&&(i.val?i.val=r.getValue(i.val)+""+u(y,l,t):i.val=u(y,l,t)),t.stopNodes.length&&t.stopNodes.includes(i.tagname)&&(i.child=[],null==i.attrsMap&&(i.attrsMap={}),i.val=e.substr(i.startIndex+1,f-i.startIndex-1)),i=i.parent,l="",f=h}else if("?"===e[f+1])f=m(e,"?>",f,"Pi Tag is not closed.");else if("!--"===e.substr(f+1,3))f=m(e,"--\x3e",f,"Comment is not closed.");else if("!D"===e.substr(f+1,2)){var v=m(e,">",f,"DOCTYPE is not closed.");f=e.substring(f,v).indexOf("[")>=0?e.indexOf("]>",f)+1:v}else if("!["===e.substr(f+1,2)){var b=m(e,"]]>",f,"CDATA is not closed.")-2,w=e.substring(f+9,b);if(l&&(i.val=r.getValue(i.val)+""+u(i.tagname,l,t),l=""),t.cdataTagName){var E=new s(t.cdataTagName,i,w);i.addChild(E),i.val=r.getValue(i.val)+t.cdataPositionChar,w&&(E.val=w)}else i.val=(i.val||"")+(w||"");f=b+2}else{var O=d(e,f+1),S=O.data,A=O.index,k=S.indexOf(" "),N=S,x=!0;if(-1!==k&&(N=S.substr(0,k).replace(/\s\s*$/,""),S=S.substr(k+1)),t.ignoreNameSpace){var T=N.indexOf(":");-1!==T&&(x=(N=N.substr(T+1))!==O.data.substr(T+1))}if(i&&l&&"!xml"!==i.tagname&&(i.val=r.getValue(i.val)+""+u(i.tagname,l,t)),S.length>0&&S.lastIndexOf("/")===S.length-1){S="/"===N[N.length-1]?N=N.substr(0,N.length-1):S.substr(0,S.length-1);var I=new s(N,i,"");N!==S&&(I.attrsMap=p(S,t)),i.addChild(I)}else{var j=new s(N,i);t.stopNodes.length&&t.stopNodes.includes(j.tagname)&&(j.startIndex=A),N!==S&&x&&(j.attrsMap=p(S,t)),i.addChild(j),i=j}l="",f=A}else l+=e[f];return n}},2519:e=>{e.exports={sequence:function(){for(var e=arguments.length,t=new Array(e),n=0;n0;)o=[t.shift().apply(this,o)];return o[0]}}}},9254:(e,t,n)=>{function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1];if(!e||e.__type__!==s)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(e.configuration.registry).forEach((function(r){t.configuration.registry.hasOwnProperty(r)?n&&(t.configuration.registry[r]=Object.assign({},e.configuration.registry[r])):t.configuration.registry[r]=Object.assign({},e.configuration.registry[r])})),e._configuration=this.configuration,this}},{key:"execute",value:function(e){for(var t=this.get(e)||i,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:{}).chain,r=void 0!==n&&n;if(this.configuration.registry[e]&&this.configuration.registry[e].final)throw new Error("Failed patching '".concat(e,"': Method marked as being final"));if("function"!=typeof t)throw new Error("Failed patching '".concat(e,"': Provided method is not a function"));if(r)this.configuration.registry[e]?this.configuration.registry[e].methods.push(t):this.configuration.registry[e]=a(t);else if(this.isPatched(e)){var o=this.configuration.registry[e].original;this.configuration.registry[e]=Object.assign(a(t),{original:o})}else this.configuration.registry[e]=a(t);return this}},{key:"patchInline",value:function(e,t){this.isPatched(e)||this.patch(e,t);for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o1?n-1:0),o=1;o{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},6893:(e,t)=>{"use strict";function n(e){return"[object Error]"===(t=e,Object.prototype.toString.call(t))||e instanceof Error;var t}Object.defineProperty(t,"__esModule",{value:!0}),t.isError=t.inherit=t.assertError=void 0,t.assertError=function(e){if(!n(e))throw new Error("Parameter was not an error")},t.inherit=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.isError=n},9104:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Layerr=void 0;var s=n(2248);Object.defineProperty(t,"Layerr",{enumerable:!0,get:function(){return s.Layerr}}),o(n(8646),t)},2248:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Layerr=void 0;var o=n(6893),s=n(7235);function i(e,t){var n=Array.prototype.slice.call(arguments);if(this instanceof i==0)throw new Error("Cannot invoke 'Layerr' like a function: It must be called with 'new'");var o=s.parseArguments(n),a=o.options,c=o.shortMessage;this.name="Layerr",a.name&&"string"==typeof a.name&&(this.name=a.name);var u=c;if(a.cause&&(Object.defineProperty(this,"_cause",{value:a.cause}),u="".concat(u,": ").concat(a.cause.message)),this.message=u,Object.defineProperty(this,"_info",{value:{}}),a.info&&"object"===r(a.info)&&Object.assign(this._info,a.info),Error.call(this,u),Error.captureStackTrace){var l=a.constructorOpt||this.constructor;Error.captureStackTrace(this,l)}return this}t.Layerr=i,o.inherit(i,Error),i.prototype.cause=function(){return i.cause(this)||void 0},i.prototype.toString=function(){var e=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e="".concat(e,": ").concat(this.message)),e},i.cause=function(e){return o.assertError(e),o.isError(e._cause)?e._cause:null},i.fullStack=function(e){o.assertError(e);var t=i.cause(e);return t?"".concat(e.stack,"\ncaused by: ").concat(i.fullStack(t)):e.stack},i.info=function(e){o.assertError(e);var t={},n=i.cause(e);return n&&Object.assign(t,i.info(n)),e._info&&Object.assign(t,e._info),t}},7235:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.parseArguments=void 0;var o=n(6893);t.parseArguments=function(e){var t,n="";if(0===e.length)t={};else if(o.isError(e[0]))t={cause:e[0]},n=e.slice(1).join(" ")||"";else if(e[0]&&"object"===r(e[0]))t=Object.assign({},e[0]),n=e.slice(1).join(" ")||"";else{if("string"!=typeof e[0])throw new Error("Invalid arguments passed to Layerr");t={},n=n=e.join(" ")||""}return{options:t,shortMessage:n}}},8646:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9243:(e,t,n)=>{var r,o,s,i,a;r=n(3718),o=n(5106).utf8,s=n(163),i=n(5106).bin,(a=function e(t,n){t.constructor==String?t=n&&"binary"===n.encoding?i.stringToBytes(t):o.stringToBytes(t):s(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var a=r.bytesToWords(t),c=8*t.length,u=1732584193,l=-271733879,f=-1732584194,h=271733878,p=0;p>>24)|4278255360&(a[p]<<24|a[p]>>>8);a[c>>>5]|=128<>>9<<4)]=c;var d=e._ff,m=e._gg,y=e._hh,g=e._ii;for(p=0;p>>0,l=l+b>>>0,f=f+w>>>0,h=h+E>>>0}return r.endian([u,l,f,h])})._ff=function(e,t,n,r,o,s,i){var a=e+(t&n|~t&r)+(o>>>0)+i;return(a<>>32-s)+t},a._gg=function(e,t,n,r,o,s,i){var a=e+(t&r|n&~r)+(o>>>0)+i;return(a<>>32-s)+t},a._hh=function(e,t,n,r,o,s,i){var a=e+(t^n^r)+(o>>>0)+i;return(a<>>32-s)+t},a._ii=function(e,t,n,r,o,s,i){var a=e+(n^(t|~r))+(o>>>0)+i;return(a<>>32-s)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(a(e,t));return t&&t.asBytes?n:t&&t.asString?i.bytesToString(n):r.bytesToHex(n)}},1050:e=>{function t(e){return t="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},t(e)}var n="object"===("undefined"==typeof process?"undefined":t(process))&&process&&"win32"===process.platform;e.exports=n?{sep:"\\"}:{sep:"/"}},3e3:(e,t,n)=>{function r(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};return S(t),!(!n.nocomment&&"#"===t.charAt(0))&&new k(t,n).match(e)};e.exports=l;var f=n(1050);l.sep=f.sep;var h=Symbol("globstar **");l.GLOBSTAR=h;var p=n(3637),d={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},m="[^/]",y="[^/]*?",g=function(e){return e.split("").reduce((function(e,t){return e[t]=!0,e}),{})},v=g("().*{}+?[]^$\\!"),b=g("[.("),w=/\/+/;l.filter=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n,r,o){return l(n,e,t)}};var E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return Object.keys(e).forEach((function(t){return n[t]=e[t]})),Object.keys(t).forEach((function(e){return n[e]=t[e]})),n};l.defaults=function(e){if(!e||"object"!==u(e)||!Object.keys(e).length)return l;var t=l,n=function(n,r,o){return t(n,r,E(e,o))};return(n.Minimatch=function(t){!function(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(l,t);var n,r,u=(n=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(n);if(r){var o=c(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return a(this,e)});function l(t,n){return s(this,l),u.call(this,t,E(e,n))}return o(l)}(t.Minimatch)).defaults=function(n){return t.defaults(E(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,E(e,r))},n.defaults=function(n){return t.defaults(E(e,n))},n.makeRe=function(n,r){return t.makeRe(n,E(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,E(e,r))},n.match=function(n,r,o){return t.match(n,r,E(e,o))},n},l.braceExpand=function(e,t){return O(e,t)};var O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return S(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:p(e)},S=function(e){if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},A=Symbol("subparse");l.makeRe=function(e,t){return new k(e,t||{}).makeRe()},l.match=function(e,t){var n=new k(t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});return e=e.filter((function(e){return n.match(e)})),n.options.nonull&&!e.length&&e.push(t),e};var k=function(){function e(t,n){s(this,e),S(t),n||(n={}),this.options=n,this.set=[],this.pattern=t,this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||!1===n.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.make()}return o(e,[{key:"debug",value:function(){}},{key:"make",value:function(){var e=this,t=this.pattern,n=this.options;if(n.nocomment||"#"!==t.charAt(0))if(t){this.parseNegate();var r=this.globSet=this.braceExpand();n.debug&&(this.debug=function(){var e;return(e=console).error.apply(e,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map((function(e){return e.split(w)})),this.debug(this.pattern,r),r=r.map((function(t,n,r){return t.map(e.parse,e)})),this.debug(this.pattern,r),r=r.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,r),this.set=r}else this.empty=!0;else this.comment=!0}},{key:"parseNegate",value:function(){if(!this.options.nonegate){for(var e=this.pattern,t=!1,n=0,r=0;r>> no match, partial?",e,f,t,p),f!==i))}if("string"==typeof u?(c=l===u,this.debug("string match",u,l,c)):(c=l.match(u),this.debug("pattern match",u,l,c)),!c)return!1}if(o===i&&s===a)return!0;if(o===i)return n;if(s===a)return o===i-1&&""===e[o];throw new Error("wtf?")}},{key:"braceExpand",value:function(){return O(this.pattern,this.options)}},{key:"parse",value:function(e,t){var n=this;S(e);var r=this.options;if("**"===e){if(!r.noglobstar)return h;e="*"}if(""===e)return"";for(var o,s,i,a,c,u="",l=!!r.nocase,f=!1,p=[],g=[],w=!1,E=-1,O=-1,k="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",N=function(){if(o){switch(o){case"*":u+=y,l=!0;break;case"?":u+=m,l=!0;break;default:u+="\\"+o}n.debug("clearStateChar %j %j",o,u),o=!1}},x=0;x-1;C--){for(var L=g[C],R=u.slice(0,L.reStart),P=u.slice(L.reStart,L.reEnd-8),_=u.slice(L.reEnd),$=u.slice(L.reEnd-8,L.reEnd)+_,M=R.split("(").length-1,D=_,B=0;B1?e[r+1]="(?:\\/|"+n+"\\/)?"+e[r+1]:e[r]=n:r===e.length-1?e[r-1]+="(?:\\/|"+n+")?":(e[r-1]+="(?:\\/|\\/"+n+"\\/)"+e[r+1],e[r+1]=h))})),e.filter((function(e){return e!==h})).join("/")})).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,r)}catch(e){this.regexp=!1}return this.regexp}},{key:"match",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.partial;if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var n=this.options;"/"!==f.sep&&(e=e.split(f.sep).join("/")),e=e.split(w),this.debug(this.pattern,"split",e);var r,o=this.set;this.debug(this.pattern,"set",o);for(var s=e.length-1;s>=0&&!(r=e[s]);s--);for(var i=0;i{var r=n(9584);e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),y(function(e){return e.split("\\\\").join(o).split("\\{").join(s).split("\\}").join(i).split("\\,").join(a).split("\\.").join(c)}(e),!0).map(l)):[]};var o="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function u(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function l(e){return e.split(o).join("\\").split(s).join("{").split(i).join("}").split(a).join(",").split(c).join(".")}function f(e){if(!e)return[""];var t=[],n=r("{","}",e);if(!n)return e.split(",");var o=n.pre,s=n.body,i=n.post,a=o.split(",");a[a.length-1]+="{"+s+"}";var c=f(i);return i.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),t.push.apply(t,a),t}function h(e){return"{"+e+"}"}function p(e){return/^-?0\d/.test(e)}function d(e,t){return e<=t}function m(e,t){return e>=t}function y(e,t){var n=[],o=r("{","}",e);if(!o)return[e];var s=o.pre,a=o.post.length?y(o.post,!1):[""];if(/\$$/.test(o.pre))for(var c=0;c=0;if(!E&&!O)return o.post.match(/,.*\}/)?y(e=o.pre+"{"+o.body+i+o.post):[e];if(E)g=o.body.split(/\.\./);else if(1===(g=f(o.body)).length&&1===(g=y(g[0],!1).map(h)).length)return a.map((function(e){return o.pre+g[0]+e}));if(E){var S=u(g[0]),A=u(g[1]),k=Math.max(g[0].length,g[1].length),N=3==g.length?Math.abs(u(g[2])):1,x=d;A0){var L=new Array(C+1).join("0");j=I<0?"-"+L+j.slice(1):L+j}}v.push(j)}}else{v=[];for(var R=0;R{"use strict";function t(e){return t="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},t(e)}function n(e){var t="function"==typeof Map?new Map:void 0;return n=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,i)}function i(){return r(e,arguments,s(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o(i,e)},n(e)}function r(e,t,n){return r=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 s=new(Function.bind.apply(e,r));return n&&o(s,n.prototype),s},r.apply(null,arguments)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var i=function(e){function n(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=function(e,n){return!n||"object"!==t(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}(this,s(n).call(this,e))).name="ObjectPrototypeMutationError",r}return function(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&&o(e,t)}(n,e),n}(n(Error));function a(e,n){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=n.split("."),s=o.length,i=function(t){var n=o[t];if(!e)return{v:void 0};if("+"===n){if(Array.isArray(e))return{v:e.map((function(n,s){var i=o.slice(t+1);return i.length>0?a(n,i.join("."),r):r(e,s,o,t)}))};var s=o.slice(0,t).join(".");throw new Error("Object at wildcard (".concat(s,") is not an array"))}e=r(e,n,o,t)},c=0;c2&&void 0!==arguments[2]?arguments[2]:{};if("object"!=t(e)||null===e)return!1;if(void 0===n)return!1;if("number"==typeof n)return n in e;try{var o=!1;return a(e,n,(function(e,t,n,s){if(!c(n,s))return e&&e[t];o=r.own?e.hasOwnProperty(t):t in e})),o}catch(e){return!1}},hasOwn:function(e,t,n){return this.has(e,t,n||{own:!0})},isIn:function(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("object"!=t(e)||null===e)return!1;if(void 0===n)return!1;try{var s=!1,i=!1;return a(e,n,(function(e,n,o,a){return s=s||e===r||!!e&&e[n]===r,i=c(o,a)&&"object"===t(e)&&n in e,e&&e[n]})),o.validPath?s&&i:s}catch(e){return!1}},ObjectPrototypeMutationError:i}},1441:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}var o=n(6930),s=function(e){return"string"==typeof e};function i(e,t){for(var n=[],r=0;r=-1&&!t;n--){var r=n>=0?arguments[n]:process.cwd();if(!s(r))throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return(t?"/":"")+(e=i(e.split("/"),!t).join("/"))||"."},c.normalize=function(e){var t=c.isAbsolute(e),n="/"===e.substr(-1);return(e=i(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},c.isAbsolute=function(e){return"/"===e.charAt(0)},c.join=function(){for(var e="",t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n+1)}e=c.resolve(e).substr(1),t=c.resolve(t).substr(1);for(var r=n(e.split("/")),o=n(t.split("/")),s=Math.min(r.length,o.length),i=s,a=0;a{"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var r,s,i=[];for(s in"string"!=typeof t&&(t="?"),e)if(n.call(e,s)){if((r=e[s])||null!=r&&!isNaN(r)||(r=""),s=o(s),r=o(r),null===s||null===r)continue;i.push(s+"="+r)}return i.length?t+i.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,o={};t=n.exec(e);){var s=r(t[1]),i=r(t[2]);null===s||null===i||s in o||(o[s]=i)}return o}},4095:e=>{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},5512:e=>{var t=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o=Object.assign({},r,o),!e||"string"!=typeof e)return e;var s=e.trim();if(void 0!==o.skipLike&&o.skipLike.test(s))return e;if(o.hex&&t.test(s))return Number.parseInt(s,16);var i=n.exec(s);if(i){var a=i[1],c=i[2],u=function(e){return e&&-1!==e.indexOf(".")?("."===(e=e.replace(/0+$/,""))?e="0":"."===e[0]?e="0"+e:"."===e[e.length-1]&&(e=e.substr(0,e.length-1)),e):e}(i[3]),l=i[4]||i[6];if(!o.leadingZeros&&c.length>0&&a&&"."!==s[2])return e;if(!o.leadingZeros&&c.length>0&&!a&&"."!==s[1])return e;var f=Number(s),h=""+f;return-1!==h.search(/[eE]/)||l?o.eNotation?f:e:-1!==s.indexOf(".")?"0"===h&&""===u||h===u||a&&h==="-"+u?f:e:c?u===h||a+u===h?f:e:s===h||s===a+h?f:e}return e}},5842:function(e,t,n){var r,o,s;function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}s=function(){return function(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r0&&(o=o.replace(/^[\/]+/,"")),o=r0?"?":"")+i.join("&")}("object"===i(arguments[0])?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=s():void 0===(o="function"==typeof(r=s)?r.call(t,n,t,e):r)||(e.exports=o)},1095:(e,t,r)=>{"use strict";function o(e){return o="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},o(e)}var s=r(4095),i=r(1361),a=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,c=/[\n\r\t]/g,u=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,f=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,h=/^[a-zA-Z]:/;function p(e){return(e||"").toString().replace(a,"")}var d=[["#","hash"],["?","query"],function(e,t){return g(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],m={hash:1,query:1};function y(e){var t,r=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},s={},i=o(e=e||r);if("blob:"===e.protocol)s=new b(unescape(e.pathname),{});else if("string"===i)for(t in s=new b(e,{}),m)delete s[t];else if("object"===i){for(t in e)t in m||(s[t]=e[t]);void 0===s.slashes&&(s.slashes=u.test(e.href))}return s}function g(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function v(e,t){e=(e=p(e)).replace(c,""),t=t||{};var n,r=f.exec(e),o=r[1]?r[1].toLowerCase():"",s=!!r[2],i=!!r[3],a=0;return s?i?(n=r[2]+r[3]+r[4],a=r[2].length+r[3].length):(n=r[2]+r[4],a=r[2].length):i?(n=r[3]+r[4],a=r[3].length):n=r[4],"file:"===o?a>=2&&(n=n.slice(2)):g(o)?n=r[4]:o?s&&(n=n.slice(2)):a>=2&&g(t.protocol)&&(n=r[4]),{protocol:o,slashes:s||g(o),slashesCount:a,rest:n}}function b(e,t,n){if(e=(e=p(e)).replace(c,""),!(this instanceof b))return new b(e,t,n);var r,a,u,l,f,m,w=d.slice(),E=o(t),O=this,S=0;for("object"!==E&&"string"!==E&&(n=t,t=null),n&&"function"!=typeof n&&(n=i.parse),r=!(a=v(e||"",t=y(t))).protocol&&!a.slashes,O.slashes=a.slashes||r&&t.slashes,O.protocol=a.protocol||t.protocol||"",e=a.rest,("file:"===a.protocol&&(2!==a.slashesCount||h.test(e))||!a.slashes&&(a.protocol||a.slashesCount<2||!g(O.protocol)))&&(w[3]=[/(.*)/,"pathname"]);S{},9227:()=>{}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}r.amdO={},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var o={};return(()=>{"use strict";r.r(o),r.d(o,{AuthType:()=>b,ErrorCode:()=>w,createClient:()=>rt,getPatcher:()=>I,parseStat:()=>te,parseXML:()=>Q});var e=r(1095),t=r.n(e),n=r(5842),s=r.n(n),i=r(1441),a=r.n(i),c="__PATH_SEPARATOR_POSIX__",u="__PATH_SEPARATOR_WINDOWS__";function l(e){var t=e.replace(/\//g,c).replace(/\\\\/g,u);return encodeURIComponent(t).split(u).join("\\\\").split(c).join("/")}function f(e){var t=e;return"/"!==t[0]&&(t="/"+t),/^.+\/$/.test(t)&&(t=t.substr(0,t.length-1)),t}function h(e){var n=new(t())(e).pathname;return n.length<=0&&(n="/"),f(n)}function p(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;){var s=o.shift();r=r?_(r,s):R(s)}return r}function _(e,t){var n=R(e);return Object.keys(t).forEach((function(e){n.hasOwnProperty(e)?Array.isArray(t[e])?n[e]=Array.isArray(n[e])?[].concat(j(n[e]),j(t[e])):j(t[e]):"object"===L(t[e])&&t[e]?n[e]="object"===L(n[e])&&n[e]?_(n[e],t[e]):R(t[e]):n[e]=t[e]:n[e]=t[e]})),n}function $(e){return I().patchInline("request",(function(e){return k()(e)}),e)}function M(e,t,n){var r=R(e);return r.headers=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:"","Invalid response: ").concat(e.status," ").concat(e.statusText));return t.status=e.status,t.response=e,t}function q(e,t){var n=t.status;if(401===n&&e.digest)return t;if(n>=400)throw F(t);return t}function V(e,t){return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?{data:t,headers:e.headers||{},status:e.status,statusText:e.statusText}:t}var K,G,W=(K=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}(D(M({url:p(e.remoteURL,l(t)),method:"COPY",headers:{Destination:p(e.remoteURL,l(n))}},e,r)),(function(t){q(e,t)}))},function(){for(var e=[],t=0;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:G.Original,r=X().get(e,t);return"array"===n&&!1===Array.isArray(r)?[r]:"object"===n&&Array.isArray(r)?r[0]:r}function Q(e){return new Promise((function(t){t(function(e){var t=e.multistatus;if(""===t)return{multistatus:{response:[]}};if(!t)throw new Error("Invalid response: No root multistatus found");var n={multistatus:Array.isArray(t)?t[0]:t};return X().set(n,"multistatus.response",Z(n,"multistatus.response",G.Array)),X().set(n,"multistatus.response",X().get(n,"multistatus.response").map((function(e){return function(e){var t=Object.assign({},e);return X().set(t,"propstat",Z(t,"propstat",G.Object)),X().set(t,"propstat.prop",Z(t,"propstat.prop",G.Object)),t}(e)}))),n}(H.parse(e,{arrayMode:!1,ignoreNameSpace:!0})))}))}function ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.getlastmodified,o=void 0===r?null:r,s=e.getcontentlength,i=void 0===s?"0":s,c=e.resourcetype,u=void 0===c?null:c,l=e.getcontenttype,f=void 0===l?null:l,h=e.getetag,p=void 0===h?null:h,d=u&&"object"===z(u)&&void 0!==u.collection?"directory":"file",m=function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value}(t),y={filename:m,basename:a().basename(m),lastmod:o,size:parseInt(i,10),type:d,etag:"string"==typeof p?p.replace(/"/g,""):null};return"file"===d&&(y.mime=f&&"string"==typeof f?f.split(";")[0]:""),n&&(y.props=e),y}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=null;try{r=e.multistatus.response[0]}catch(e){}if(!r)throw new Error("Failed getting item stat: bad response");var o=r.propstat,s=o.prop,i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,s=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);i=!0);}catch(e){a=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(o.status.split(" ",3),3),a=(i[0],i[1]),c=i[2],u=parseInt(a,10);if(u>=400){var l=new Error("Invalid response: ".concat(u," ").concat(c));throw l.status=u,l}return ee(s,f(t),n)}function ne(e){switch(e.toString()){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(e,10)}}function re(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}!function(e){e.Array="array",e.Object="object",e.Original="original"}(G||(G={}));var oe=function(e){return function(){for(var t=[],n=0;n2&&void 0!==arguments[2]?arguments[2]:{},r=n.details,o=void 0!==r&&r;return re(D(M({url:p(e.remoteURL,l(t)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"},responseType:"text"},e,n)),(function(n){return q(e,n),re(Q(n.data),(function(e){var r=te(e,t,o);return V(n,r,o)}))}))}));function se(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function ie(e){return function(){for(var t=[],n=0;n2&&void 0!==arguments[2]?arguments[2]:{},r=function(e){if(!e||"/"===e)return[];var t=e,n=[];do{n.push(t),t=(0,i.dirname)(t)}while(t&&"/"!==t);return n}(f(t));r.sort((function(e,t){return e.length>t.length?1:t.length>e.length?-1:0}));var o=!1;return function(e,t,n){if("function"==typeof e[ue]){var r,o,s,i=e[ue]();function l(e){try{for(;!((r=i.next()).done||n&&n());)if((e=t(r.value))&&e.then){if(!he(e))return void e.then(l,s||(s=le.bind(null,o=new fe,2)));e=e.v}o?le(o,1,e):o=e}catch(e){le(o||(o=new fe),2,e)}}if(l(),i.return){var a=function(e){try{r.done||i.return()}catch(e){}return e};if(o&&o.then)return o.then(a,(function(e){throw a(e)}));a()}return o}if(!("length"in e))throw new TypeError("Object is not iterable");for(var c=[],u=0;u2&&void 0!==arguments[2]?arguments[2]:{};return!0===n.recursive?ye(e,t,n):se(D(M({url:p(e.remoteURL,ve(l(t))),method:"MKCOL"},e,n)),(function(t){q(e,t)}))}));function ve(e){return e.endsWith("/")?e:e+"/"}var be=r(9227),we=r.n(be);function Ee(e){return Ee="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},Ee(e)}var Oe=function(e){return function(){for(var t=[],n=0;n2&&void 0!==arguments[2]?arguments[2]:{},r={};if("object"===Ee(n.range)&&"number"==typeof n.range.start){var o="bytes=".concat(n.range.start,"-");"number"==typeof n.range.end&&(o="".concat(o).concat(n.range.end)),r.Range=o}return function(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}(D(M({url:p(e.remoteURL,l(t)),method:"GET",headers:r,responseType:"stream"},e,n)),(function(t){if(q(e,t),r.Range&&206!==t.status){var o=new Error("Invalid response code for partial request: ".concat(t.status));throw o.status=t.status,o}return n.callback&&setTimeout((function(){n.callback(t)}),0),t.data}))})),Se=function(){};function Ae(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Se,o=new(0,we().PassThrough),s={};return!1===n.overwrite&&(s["If-None-Match"]="*"),D(M({url:p(e.remoteURL,l(t)),method:"PUT",headers:s,data:o,maxRedirects:0},e,n)).then((function(t){return q(e,t)})).then((function(e){setTimeout((function(){r(e)}),0)})).catch((function(e){o.emit("error",e)})),o}var ke=function(e){return function(){for(var t=[],n=0;n2&&void 0!==arguments[2]?arguments[2]:{};return function(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}(D(M({url:p(e.remoteURL,l(t)),method:"DELETE"},e,n)),(function(t){q(e,t)}))})),xe=function(e){return function(){for(var t=[],n=0;n2&&void 0!==arguments[2]?arguments[2]:{};return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){return function(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}(oe(e,t,n),(function(){return!0}))}),(function(e){if(404===e.status)return!1;throw e}))}));function Te(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var Ie=function(e){return function(){for(var t=[],n=0;n2&&void 0!==arguments[2]?arguments[2]:{};return Te(D(M({url:p(e.remoteURL,l(t),"/"),method:"PROPFIND",headers:{Accept:"text/plain",Depth:n.deep?"infinity":"1"},responseType:"text"},e,n)),(function(r){return q(e,r),Te(Q(r.data),(function(o){var s=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=a().join(t,"/"),s=e.multistatus.response;return s.map((function(e){var t=function(e){return e.replace(/^https?:\/\/[^\/]+/,"")}(e.href);return ee(e.propstat.prop,"/"===o?decodeURIComponent(f(t)):decodeURIComponent(f(a().relative(o,t))),r)})).filter((function(e){return e.basename&&("file"===e.type||e.filename!==n.replace(/\/$/,""))}))}(o,e.remotePath,t,n.details);return n.glob&&(s=function(e,t){return e.filter((function(e){return U()(e.filename,t,{matchBase:!0})}))}(s,n.glob)),V(r,s,n.details)}))}))}));function je(e){return function(){for(var t=[],n=0;n2&&void 0!==arguments[2]?arguments[2]:{};return Le(D(M({url:p(e.remoteURL,l(t)),method:"GET",responseType:"text",transformResponse:[_e]},e,n)),(function(t){return q(e,t),V(t,t.data,n.details)}))}));function Le(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var Re=je((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Le(D(M({url:p(e.remoteURL,l(t)),method:"GET",responseType:"arraybuffer"},e,n)),(function(t){return q(e,t),V(t,t.data,n.details)}))})),Pe=je((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.format,o=void 0===r?"binary":r;if("binary"!==o&&"text"!==o)throw new d.Layerr({info:{code:w.InvalidOutputFormat}},"Invalid output format: ".concat(o));return"text"===o?Ce(e,t,n):Re(e,t,n)})),_e=function(e){return e};function $e(e,t){var n=p(e.remoteURL,l(t)),r=/^https:/i.test(n)?"https":"http";switch(e.authType){case b.None:break;case b.Password:var o=O(e.headers.Authorization.replace(/^Basic /i,"").trim());n=n.replace(/^https?:\/\//,"".concat(r,"://").concat(o,"@"));break;default:throw new d.Layerr({info:{code:w.LinkUnsupportedAuthType}},"Unsupported auth type for file link: ".concat(e.authType))}return n}function Me(e){return Me="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},Me(e)}function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ue(e){return new H.j2xParser({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,supressEmptyNode:!0}).parse(Fe({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:e}}},"d"))}function Fe(e,t){var n=function(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};return qe(D(M({url:p(e.remoteURL,l(t)),method:"UNLOCK",headers:{"Lock-Token":n}},e,r)),(function(t){if(q(e,t),204!==t.status&&200!==t.status)throw F(t)}))})),Ge=Ve((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.refreshToken,o=n.timeout,s={Accept:"text/plain,application/xml",Timeout:void 0===o?We:o};return r&&(s.If=r),qe(D(M({url:p(e.remoteURL,l(t)),method:"LOCK",headers:s,data:Ue(e.contactHref),responseType:"text"},e,n)),(function(t){q(e,t);var n=function(e){return H.parse(e,{arrayMode:!1,ignoreNameSpace:!0,parseAttributeValue:!0,parseNodeValue:!0})}(t.data),r=X().get(n,"prop.lockdiscovery.activelock.locktoken.href"),o=X().get(n,"prop.lockdiscovery.activelock.timeout");if(!r)throw F(t,"No lock token received: ");return{token:r,serverTimeout:o}}))})),We="Infinite, Second-4100000000";function He(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.path||"/";return Ye(D(M({url:p(e.remoteURL,n),method:"PROPFIND",headers:{Accept:"text/plain",Depth:"0"},responseType:"text"},e,t)),(function(n){return q(e,n),Ye(Q(n.data),(function(e){var r=function(e){try{var t=(o=e.multistatus.response,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,s=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(s.push(r.value),1!==s.length);i=!0);}catch(e){a=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return s}}(o)||function(e,t){if(e){if("string"==typeof e)return He(e,1);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?He(e,1):void 0}}(o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].propstat.prop,n=t["quota-used-bytes"],r=t["quota-available-bytes"];return void 0!==n&&void 0!==r?{used:parseInt(n,10),available:ne(r)}:null}catch(e){}var o;return null}(e);return V(n,r,t.details)}))}))})),Je=function(e){return function(){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{};return function(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}(D(M({url:p(e.remoteURL,l(t)),method:"MOVE",headers:{Destination:p(e.remoteURL,l(n))}},e,r)),(function(t){q(e,t)}))})),ze=r(8918),Ze="function"==typeof ArrayBuffer,Qe=Object.prototype.toString,et=function(e){return function(){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},o=r.contentLength,s=void 0===o||o,i=r.overwrite,a=void 0===i||i,c={"Content-Type":"application/octet-stream"};return!1===s||(c["Content-Length"]="".concat("number"==typeof s?s:function(e){if(t=e,Ze&&(t instanceof ArrayBuffer||"[object ArrayBuffer]"===Qe.call(t)))return e.byteLength;if(function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}(e))return e.length;if("string"==typeof e)return(0,ze.k)(e);var t;throw new d.Layerr({info:{code:w.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}(n))),a||(c["If-None-Match"]="*"),function(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}(D(M({url:p(e.remoteURL,l(t)),method:"PUT",headers:c,data:n},e,r)),(function(t){try{q(e,t)}catch(e){var n=e;if(412!==n.status||a)throw n;return!1}return!0}))}));function tt(e,t){var n="".concat(p(e.remoteURL,l(t)),"?Content-Type=application/octet-stream"),r=/^https:/i.test(n)?"https":"http";switch(e.authType){case b.None:break;case b.Password:var o=O(e.headers.Authorization.replace(/^Basic /i,"").trim());n=n.replace(/^https?:\/\//,"".concat(r,"://").concat(o,"@"));break;default:throw new d.Layerr({info:{code:w.LinkUnsupportedAuthType}},"Unsupported auth type for file link: ".concat(e.authType))}return n}var nt="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function rt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.authType,r=void 0===n?null:n,o=t.contactHref,s=void 0===o?nt:o,i=t.headers,a=void 0===i?{}:i,c=t.httpAgent,u=t.httpsAgent,l=t.maxBodyLength,f=t.maxContentLength,p=t.password,d=t.token,m=t.username,y=t.withCredentials,g=r;g||(g=m||p?b.Password:b.None);var v={authType:g,contactHref:s,headers:Object.assign({},a),httpAgent:c,httpsAgent:u,maxBodyLength:l,maxContentLength:f,remotePath:h(e),remoteURL:e,password:p,token:d,username:m,withCredentials:y};return S(v,m,p,d),{copyFile:function(e,t,n){return W(v,e,t,n)},createDirectory:function(e,t){return ge(v,e,t)},createReadStream:function(e,t){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new(0,we().PassThrough);return Oe(e,t,n).then((function(e){e.pipe(r)})).catch((function(e){r.emit("error",e)})),r}(v,e,t)},createWriteStream:function(e,t,n){return Ae(v,e,t,n)},customRequest:function(e,t){return ke(v,e,t)},deleteFile:function(e,t){return Ne(v,e,t)},exists:function(e,t){return xe(v,e,t)},getDirectoryContents:function(e,t){return Ie(v,e,t)},getFileContents:function(e,t){return Pe(v,e,t)},getFileDownloadLink:function(e){return $e(v,e)},getFileUploadLink:function(e){return tt(v,e)},getHeaders:function(){return Object.assign({},v.headers)},getQuota:function(e){return Xe(v,e)},lock:function(e,t){return Ge(v,e,t)},moveFile:function(e,t,n){return Je(v,e,t,n)},putFileContents:function(e,t,n){return et(v,e,t,n)},setHeaders:function(e){v.headers=Object.assign({},e)},stat:function(e,t){return oe(v,e,t)},unlock:function(e,t,n){return Ke(v,e,t,n)}}}})(),o})(),e.exports=r()},49602:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},34411:(e,t,n)=>{"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,o=arguments.length;n1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var o=0;null!==r;o++)n=e(n,r.value,o),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var o=this.length-1;null!==r;o--)n=e(n,r.value,o),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(tthis.length&&(t=this.length);for(var o=0,s=this.head;null!==s&&othis.length&&(t=this.length);for(var o=this.length,s=this.tail;null!==s&&o>t;o--)s=s.prev;for(;null!==s&&o>e;o--,s=s.prev)n.push(s.value);return n},r.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,s=this.head;null!==s&&r{"use strict";function r(e,t,n,r){let o="";if(e){let s=!1,i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":s=!0;break;case"comment":{n&&!s&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";o?o+=i+t:o=t,i="";break}case"newline":o&&(i+=e),s=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:o,offset:t}}n.d(t,{C:()=>r})},42996:(e,t,n)=>{"use strict";function r(e,{flow:t,indicator:n,next:r,offset:o,onError:s,startOnNewline:i}){let a=!1,c=i,u=i,l="",f="",h=!1,p=!1,d=!1,m=null,y=null,g=null,v=null,b=null;for(const r of e)switch(d&&("space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d=!1),r.type){case"space":!t&&c&&"doc-start"!==n&&"\t"===r.source[0]&&s(r,"TAB_AS_INDENT","Tabs are not allowed as indentation"),u=!0;break;case"comment":{u||s(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=r.source.substring(1)||" ";l?l+=f+e:l=e,f="",c=!1;break}case"newline":c?l?l+=r.source:a=!0:f+=r.source,c=!0,h=!0,(m||y)&&(p=!0),u=!0;break;case"anchor":m&&s(r,"MULTIPLE_ANCHORS","A node can have at most one anchor"),r.source.endsWith(":")&&s(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=r,null===b&&(b=r.offset),c=!1,u=!1,d=!0;break;case"tag":y&&s(r,"MULTIPLE_TAGS","A node can have at most one tag"),y=r,null===b&&(b=r.offset),c=!1,u=!1,d=!0;break;case n:(m||y)&&s(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`),v&&s(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${t??"collection"}`),v=r,c=!1,u=!1;break;case"comma":if(t){g&&s(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),g=r,c=!1,u=!1;break}default:s(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`),c=!1,u=!1}const w=e[e.length-1],E=w?w.offset+w.source.length:o;return d&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:g,found:v,spaceBefore:a,comment:l,hasNewline:h,hasNewlineAfterProp:p,anchor:m,tag:y,end:E,start:b??E}}n.d(t,{i:()=>r})},54637:(e,t,n)=>{"use strict";function r(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end)for(const t of e.end)if("newline"===t.type)return!0;return!1;case"flow-collection":for(const t of e.items){for(const e of t.start)if("newline"===e.type)return!0;if(t.sep)for(const e of t.sep)if("newline"===e.type)return!0;if(r(t.key)||r(t.value))return!0}return!1;default:return!0}}n.d(t,{Y:()=>r})},58506:(e,t,n)=>{"use strict";if(n.d(t,{j:()=>o}),368!=n.j)var r=n(54637);function o(e,t,n){if("flow-collection"===t?.type){const o=t.end[0];if(o.indent===e&&("]"===o.source||"}"===o.source)&&(0,r.Y)(t)){n(o,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}}},10831:(e,t,n)=>{"use strict";function r(e,t,n,o){if(o&&"object"==typeof o)if(Array.isArray(o))for(let t=0,n=o.length;tr})},81062:(e,t,n)=>{"use strict";function r(e,t){"debug"!==e&&"warn"!==e||("undefined"!=typeof process&&process.emitWarning?process.emitWarning(t):console.warn(t))}n.d(t,{Z:()=>r})},15588:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});const r=e=>"type"in e?o(e):s(e);function o(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=o(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=s(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=s(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=s(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function s({start:e,key:t,sep:n,value:r}){let s="";for(const t of e)s+=t.source;if(t&&(s+=o(t)),n)for(const e of n)s+=e.source;return r&&(s+=o(r)),s}},92050:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});class r{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t>1;this.lineStarts[r]{"use strict";n.d(t,{Bu:()=>s,WS:()=>r,WX:()=>o,pf:()=>i});const r="flow",o="block",s="quoted";function i(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:c=20,onFold:u,onOverflow:l}={}){if(!i||i<0)return e;const f=Math.max(1+c,1+i-t.length);if(e.length<=f)return e;const h=[],p={};let d,m,y=i-t.length;"number"==typeof r&&(r>i-Math.max(2,c)?h.push(0):y=i-r);let g=!1,v=-1,b=-1,w=-1;n===o&&(v=a(e,v),-1!==v&&(y=v+f));for(let t;t=e[v+=1];){if(n===s&&"\\"===t){switch(b=v,e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}w=v}if("\n"===t)n===o&&(v=a(e,v)),y=v+f,d=void 0;else{if(" "===t&&m&&" "!==m&&"\n"!==m&&"\t"!==m){const t=e[v+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(d=v)}if(v>=y)if(d)h.push(d),y=d+f,d=void 0;else if(n===s){for(;" "===m||"\t"===m;)m=t,t=e[v+=1],g=!0;const n=v>w+1?v-2:b-1;if(p[n])return e;h.push(n),p[n]=!0,y=n+f,d=void 0}else g=!0}m=t}if(g&&l&&l(),0===h.length)return e;u&&u();let E=e.slice(0,h[0]);for(let r=0;r{"use strict";n.d(t,{YU:()=>o,u5:()=>r,yr:()=>s});const r=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function o(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const s=(e,t,n)=>e.endsWith("\n")?o(n,t):n.includes("\n")?"\n"+o(n,t):(e.endsWith(" ")?"":" ")+n},16956:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>Ln});var r={};n.r(r),n.d(r,{BOM:()=>rn,DOCUMENT:()=>on,FLOW_END:()=>sn,SCALAR:()=>an,createScalarToken:()=>Ht,isCollection:()=>cn,isScalar:()=>un,prettyToken:()=>ln,resolveAsScalar:()=>Wt,setScalarValue:()=>Yt,stringify:()=>zt.P,tokenType:()=>fn,visit:()=>tn});var o={};n.r(o),n.d(o,{Alias:()=>M,CST:()=>r,Composer:()=>Gt,Document:()=>gt,Lexer:()=>vn,LineCounter:()=>bn.Y,Pair:()=>ue,Parser:()=>Nn,Scalar:()=>F,Schema:()=>mt,YAMLError:()=>bt,YAMLMap:()=>me,YAMLParseError:()=>wt,YAMLSeq:()=>ge,YAMLWarning:()=>Et,isAlias:()=>h,isCollection:()=>v,isDocument:()=>p,isMap:()=>d,isNode:()=>b,isPair:()=>m,isScalar:()=>y,isSeq:()=>g,parse:()=>jn,parseAllDocuments:()=>Tn,parseDocument:()=>In,stringify:()=>Cn,visit:()=>k,visitAsync:()=>x});const s=Symbol.for("yaml.alias"),i=Symbol.for("yaml.document"),a=Symbol.for("yaml.map"),c=Symbol.for("yaml.pair"),u=Symbol.for("yaml.scalar"),l=Symbol.for("yaml.seq"),f=Symbol.for("yaml.node.type"),h=e=>!!e&&"object"==typeof e&&e[f]===s,p=e=>!!e&&"object"==typeof e&&e[f]===i,d=e=>!!e&&"object"==typeof e&&e[f]===a,m=e=>!!e&&"object"==typeof e&&e[f]===c,y=e=>!!e&&"object"==typeof e&&e[f]===u,g=e=>!!e&&"object"==typeof e&&e[f]===l;function v(e){if(e&&"object"==typeof e)switch(e[f]){case a:case l:return!0}return!1}function b(e){if(e&&"object"==typeof e)switch(e[f]){case s:case a:case u:case l:return!0}return!1}const w=e=>(y(e)||v(e))&&!!e.anchor;class E{constructor(e){Object.defineProperty(this,f,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}}const O=Symbol("break visit"),S=Symbol("skip children"),A=Symbol("remove node");function k(e,t){const n=I(t);if(p(e)){N(null,e.contents,n,Object.freeze([e]))===A&&(e.contents=null)}else N(null,e,n,Object.freeze([]))}function N(e,t,n,r){const o=j(e,t,n,r);if(b(o)||m(o))return C(e,r,o),N(e,o,n,r);if("symbol"!=typeof o)if(v(t)){r=Object.freeze(r.concat(t));for(let e=0;e"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}const[,n,r]=e.match(/^(.*!)([^!]*)$/);r||t(`The ${e} tag has no suffix`);const o=this.tags[n];return o?o+decodeURIComponent(r):"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+e.substring(n.length).replace(/[!,[\]{}]/g,(e=>L[e]));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let r;if(e&&n.length>0&&b(e.contents)){const t={};k(e.contents,((e,n)=>{b(n)&&n.tag&&(t[n.tag]=!0)})),r=Object.keys(t)}else r=[];for(const[o,s]of n)"!!"===o&&"tag:yaml.org,2002:"===s||e&&!r.some((e=>e.startsWith(s)))||t.push(`%TAG ${o} ${s}`);return t.join("\n")}}function P(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function _(e){const t=new Set;return k(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function $(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}R.defaultYaml={explicit:!1,version:"1.2"},R.defaultTags={"!!":"tag:yaml.org,2002:"};class M extends E{constructor(e){super(s),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return k(e,{Node:(e,n)=>{if(n===this)return k.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:r,maxAliasCount:o}=t,s=this.resolve(r);if(!s){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}const i=n.get(s);if(!i||void 0===i.res){throw new ReferenceError("This should not happen: Alias anchor was not resolved?")}if(o>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=D(r,s,n)),i.count*i.aliasCount>o)){throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return i.res}toString(e,t,n){const r=`*${this.source}`;if(e){if(P(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${r} `}return r}}function D(e,t,n){if(h(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}if(v(t)){let r=0;for(const o of t.items){const t=D(e,o,n);t>r&&(r=t)}return r}if(m(t)){const r=D(e,t.key,n),o=D(e,t.value,n);return Math.max(r,o)}return 1}function B(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>B(e,String(t),n)));if(e&&"function"==typeof e.toJSON){if(!n||!w(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return"bigint"!=typeof e||n?.keep?e:Number(e)}const U=e=>!e||"function"!=typeof e&&"object"!=typeof e;class F extends E{constructor(e){super(u),this.value=e}toJSON(e,t){return t?.keep?this.value:B(this.value,e,t)}toString(){return String(this.value)}}F.BLOCK_FOLDED="BLOCK_FOLDED",F.BLOCK_LITERAL="BLOCK_LITERAL",F.PLAIN="PLAIN",F.QUOTE_DOUBLE="QUOTE_DOUBLE",F.QUOTE_SINGLE="QUOTE_SINGLE";const q="tag:yaml.org,2002:";function V(e,t,n){if(p(e)&&(e=e.contents),b(e))return e;if(m(e)){const t=n.schema[a].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj:s,schema:i,sourceObjects:c}=n;let u;if(r&&e&&"object"==typeof e){if(u=c.get(e),u)return u.anchor||(u.anchor=o(e)),new M(u.anchor);u={anchor:null,node:null},c.set(e,u)}t?.startsWith("!!")&&(t=q+t.slice(2));let f=function(e,t,n){if(t){const e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))??e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>t.identify?.(e)&&!t.format))}(e,t,i.tags);if(!f){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const t=new F(e);return u&&(u.node=t),t}f=e instanceof Map?i[a]:Symbol.iterator in Object(e)?i[l]:i[a]}s&&(s(f),delete n.onTagObj);const h=f?.createNode?f.createNode(n.schema,e,n):new F(e);return t&&(h.tag=t),u&&(u.node=h),h}function K(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return V(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const G=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class W extends E{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map((t=>b(t)||m(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(G(e))this.add(t);else{const[n,...r]=e,o=this.get(n,!0);if(v(o))o.addIn(r,t);else{if(void 0!==o||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,K(this.schema,r,t))}}}deleteIn(e){const[t,...n]=e;if(0===n.length)return this.delete(t);const r=this.get(t,!0);if(v(r))return r.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...r]=e,o=this.get(n,!0);return 0===r.length?!t&&y(o)?o.value:o:v(o)?o.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!m(t))return!1;const n=t.value;return null==n||e&&y(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag}))}hasIn(e){const[t,...n]=e;if(0===n.length)return this.has(t);const r=this.get(t,!0);return!!v(r)&&r.hasIn(n)}setIn(e,t){const[n,...r]=e;if(0===r.length)this.set(n,t);else{const e=this.get(n,!0);if(v(e))e.setIn(r,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,K(this.schema,r,t))}}}}W.maxFlowStringSingleLineLength=60;var H=n(12657),Y=n(46334);const X=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),J=e=>/^(%|---|\.\.\.)/m.test(e);function z(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(J(e)?" ":"");let i="",a=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(i+=n.slice(a,e)+"\\ ",e+=1,a=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{i+=n.slice(a,e);const t=n.substr(e+2,4);switch(t){case"0000":i+="\\0";break;case"0007":i+="\\a";break;case"000b":i+="\\v";break;case"001b":i+="\\e";break;case"0085":i+="\\N";break;case"00a0":i+="\\_";break;case"2028":i+="\\L";break;case"2029":i+="\\P";break;default:"00"===t.substr(0,2)?i+="\\x"+t.substr(2):i+=n.substr(e,6)}e+=5,a=e+1}break;case"n":if(r||'"'===n[e+2]||n.lengthr)return!0;if(n=t+1,o-n<=r)return!1}return!0}(n,c,u.length));if(!n)return l?"|\n":">\n";let f,h;for(h=n.length;h>0;--h){const e=n[h-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let p=n.substring(h);const d=p.indexOf("\n");-1===d?f="-":n===p||d!==p.length-1?(f="+",s&&s()):f="",p&&(n=n.slice(0,-p.length),"\n"===p[p.length-1]&&(p=p.slice(0,-1)),p=p.replace(/\n+(?!\n|$)/g,`$&${u}`));let m,y=!1,g=-1;for(m=0;m")+(y?u?"2":"1":"")+f;if(e&&(b+=" "+a(e.replace(/ ?[\r\n]+/g," ")),o&&o()),l)return`${b}\n${u}${v}${n=n.replace(/\n+/g,`$&${u}`)}${p}`;n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`);return`${b}\n${u}${(0,Y.pf)(`${v}${n}${p}`,u,Y.WX,X(r,!0))}`}function te(e,t,n,r){const{implicitKey:o,inFlow:s}=t,i="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==F.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(i.value)&&(a=F.QUOTE_DOUBLE);const c=e=>{switch(e){case F.BLOCK_FOLDED:case F.BLOCK_LITERAL:return o||s?Q(i.value,t):ee(i,t,n,r);case F.QUOTE_DOUBLE:return z(i.value,t);case F.QUOTE_SINGLE:return Z(i.value,t);case F.PLAIN:return function(e,t,n,r){const{type:o,value:s}=e,{actualString:i,implicitKey:a,indent:c,indentStep:u,inFlow:l}=t;if(a&&/[\n[\]{},]/.test(s)||l&&/[[\]{},]/.test(s))return Q(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return a||l||!s.includes("\n")?Q(s,t):ee(e,t,n,r);if(!a&&!l&&o!==F.PLAIN&&s.includes("\n"))return ee(e,t,n,r);if(J(s)){if(""===c)return t.forceBlockIndent=!0,ee(e,t,n,r);if(a&&c===u)return Q(s,t)}const f=s.replace(/\n+/g,`$&\n${c}`);if(i){const e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(f),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return Q(s,t)}return a?f:(0,Y.pf)(f,c,Y.WS,X(t,!1))}(i,t,n,r);default:return null}};let u=c(a);if(null===u){const{defaultKeyType:e,defaultStringType:n}=t.options,r=o&&e||n;if(u=c(r),null===u)throw new Error(`Unsupported default string type ${r}`)}return u}function ne(e,t){const n=Object.assign({blockQuote:!0,commentString:H.u5,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:r,options:n}}function re(e,t,n,r){if(m(e))return e.toString(t,n,r);if(h(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const s=b(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});o||(o=function(e,t){if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))??n[0]}let n,r;if(y(t)){r=t.value;const o=e.filter((e=>e.identify?.(r)));n=o.find((e=>e.format===t.format))??o.find((e=>!e.format))}else r=t,n=e.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!n)throw new Error(`Tag not resolved for ${r?.constructor?.name??typeof r} value`);return n}(t.doc.schema.tags,s));const i=function(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],s=(y(e)||v(e))&&e.anchor;s&&P(s)&&(n.add(s),o.push(`&${s}`));const i=e.tag?e.tag:t.default?null:t.tag;return i&&o.push(r.directives.tagString(i)),o.join(" ")}(s,o,t);i.length>0&&(t.indentAtStart=(t.indentAtStart??0)+i.length+1);const a="function"==typeof o.stringify?o.stringify(s,t,n,r):y(s)?te(s,t,n,r):s.toString(t,n,r);return i?y(s)||"{"===a[0]||"["===a[0]?`${i} ${a}`:`${i}\n${t.indent}${a}`:a}var oe=n(81062);function se(e,t,{key:n,value:r}){if(e?.doc.schema.merge&&ie(n))if(r=h(r)?r.resolve(e.doc):r,g(r))for(const n of r.items)ae(e,t,n);else if(Array.isArray(r))for(const n of r)ae(e,t,n);else ae(e,t,r);else{const o=B(n,"",e);if(t instanceof Map)t.set(o,B(r,o,e));else if(t instanceof Set)t.add(o);else{const s=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(b(e)&&n&&n.doc){const t=ne(n.doc,{});t.anchors=new Set;for(const e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+'..."'),(0,oe.Z)(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}(n,o,e),i=B(r,s,e);s in t?Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):t[s]=i}}return t}const ie=e=>"<<"===e||y(e)&&"<<"===e.value&&(!e.type||e.type===F.PLAIN);function ae(e,t,n){const r=e&&h(n)?n.resolve(e.doc):n;if(!d(r))throw new Error("Merge sources must be maps or map aliases");const o=r.toJSON(null,e,Map);for(const[e,n]of o)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function ce(e,t,n){const r=V(e,void 0,n),o=V(t,void 0,n);return new ue(r,o)}class ue{constructor(e,t=null){Object.defineProperty(this,f,{value:c}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return b(t)&&(t=t.clone(e)),b(n)&&(n=n.clone(e)),new ue(t,n)}toJSON(e,t){return se(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?function({key:e,value:t},n,r,o){const{allNullValues:s,doc:i,indent:a,indentStep:c,options:{commentString:u,indentSeq:l,simpleKeys:f}}=n;let h=b(e)&&e.comment||null;if(f){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(v(e))throw new Error("With simple keys, collection cannot be used as a key value")}let p=!f&&(!e||h&&null==t&&!n.inFlow||v(e)||(y(e)?e.type===F.BLOCK_FOLDED||e.type===F.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(f||!s),indent:a+c});let d,m,w,E=!1,O=!1,S=re(e,n,(()=>E=!0),(()=>O=!0));if(!p&&!n.inFlow&&S.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(n.inFlow){if(s||null==t)return E&&r&&r(),""===S?"?":p?`? ${S}`:S}else if(s&&!f||null==t&&p)return S=`? ${S}`,h&&!E?S+=(0,H.yr)(S,n.indent,u(h)):O&&o&&o(),S;E&&(h=null),p?(h&&(S+=(0,H.yr)(S,n.indent,u(h))),S=`? ${S}\n${a}:`):(S=`${S}:`,h&&(S+=(0,H.yr)(S,n.indent,u(h)))),b(t)?(d=!!t.spaceBefore,m=t.commentBefore,w=t.comment):(d=!1,m=null,w=null,t&&"object"==typeof t&&(t=i.createNode(t))),n.implicitKey=!1,p||h||!y(t)||(n.indentAtStart=S.length+1),O=!1,l||!(c.length>=2)||n.inFlow||p||!g(t)||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2));let A=!1;const k=re(t,n,(()=>A=!0),(()=>O=!0));let N=" ";if(h||d||m){if(N=d?"\n":"",m){const e=u(m);N+=`\n${(0,H.YU)(e,n.indent)}`}""!==k||n.inFlow?N+=`\n${n.indent}`:"\n"===N&&(N="\n\n")}else if(!p&&v(t)){const e=k[0],r=k.indexOf("\n"),o=-1!==r,s=n.inFlow??t.flow??0===t.items.length;if(o||!s){let t=!1;if(o&&("&"===e||"!"===e)){let n=k.indexOf(" ");"&"===e&&-1!==n&&ni=null),(()=>f=!0));i&&(a+=(0,H.yr)(a,s,u(i))),f&&i&&(f=!1),h.push(r+a)}let p;if(0===h.length)p=o.start+o.end;else{p=h[0];for(let e=1;es=null));eh||i.includes("\n"))&&(f=!0),p.push(i),h=p.length}let d;const{start:y,end:g}=r;if(0===p.length)d=y+g;else{if(!f){f=p.reduce(((e,t)=>e+t.length+2),2)>W.maxFlowStringSingleLineLength}if(f){d=y;for(const e of p)d+=e?`\n${a}${i}${e}`:"\n";d+=`\n${i}${g}`}else d=`${y}${c}${p.join(" ")}${c}${g}`}return e&&(d+=(0,H.yr)(d,i,u(e)),s&&s()),d}function pe({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const o=(0,H.YU)(t(r),e);n.push(o.trimStart())}}function de(e,t){const n=y(t)?t.value:t;for(const r of e)if(m(r)){if(r.key===t||r.key===n)return r;if(y(r.key)&&r.key.value===n)return r}}class me extends W{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(a,e),this.items=[]}add(e,t){let n;n=m(e)?e:e&&"object"==typeof e&&"key"in e?new ue(e.key,e.value):new ue(e,e?.value);const r=de(this.items,n.key),o=this.schema?.sortMapEntries;if(r){if(!t)throw new Error(`Key ${n.key} already set`);y(r.value)&&U(n.value)?r.value.value=n.value:r.value=n.value}else if(o){const e=this.items.findIndex((e=>o(n,e)<0));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){const t=de(this.items,e);if(!t)return!1;return this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=de(this.items,e),r=n?.value;return(!t&&y(r)?r.value:r)??void 0}has(e){return!!de(this.items,e)}set(e,t){this.add(new ue(e,t),!0)}toJSON(e,t,n){const r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(const e of this.items)se(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!m(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),le(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const ye={collection:"map",createNode:function(e,t,n){const{keepUndefined:r,replacer:o}=n,s=new me(e),i=(e,i)=>{if("function"==typeof o)i=o.call(t,e,i);else if(Array.isArray(o)&&!o.includes(e))return;(void 0!==i||r)&&s.items.push(ce(e,i,n))};if(t instanceof Map)for(const[e,n]of t)i(e,n);else if(t&&"object"==typeof t)for(const e of Object.keys(t))i(e,t[e]);return"function"==typeof e.sortMapEntries&&s.items.sort(e.sortMapEntries),s},default:!0,nodeClass:me,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(d(e)||t("Expected a mapping for this tag"),e)};class ge extends W{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(l,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=ve(e);if("number"!=typeof t)return!1;return this.items.splice(t,1).length>0}get(e,t){const n=ve(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&y(r)?r.value:r}has(e){const t=ve(e);return"number"==typeof t&&t=0?t:null}const be={collection:"seq",createNode:function(e,t,n){const{replacer:r}=n,o=new ge(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let s of t){if("function"==typeof r){const n=t instanceof Set?s:String(e++);s=r.call(t,n,s)}o.items.push(V(s,void 0,n))}}return o},default:!0,nodeClass:ge,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(g(e)||t("Expected a sequence for this tag"),e)},we={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>te(e,t=Object.assign({actualString:!0},t),n,r)},Ee={identify:e=>null==e,createNode:()=>new F(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new F(null),stringify:({source:e},t)=>"string"==typeof e&&Ee.test.test(e)?e:t.options.nullStr},Oe={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new F("t"===e[0]||"T"===e[0]),stringify({source:e,value:t},n){if(e&&Oe.test.test(e)){if(t===("t"===e[0]||"T"===e[0]))return e}return t?n.options.trueStr:n.options.falseStr}};function Se({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);const o="number"==typeof r?r:Number(r);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let s=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(s)){let e=s.indexOf(".");e<0&&(e=s.length,s+=".");let n=t-(s.length-e-1);for(;n-- >0;)s+="0"}return s}const Ae={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Se},ke={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Se(e)}},Ne={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new F(parseFloat(e)),n=e.indexOf(".");return-1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:Se},xe=e=>"bigint"==typeof e||Number.isInteger(e),Te=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function Ie(e,t,n){const{value:r}=e;return xe(r)&&r>=0?n+r.toString(t):Se(e)}const je={identify:e=>xe(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Te(e,2,8,n),stringify:e=>Ie(e,8,"0o")},Ce={identify:xe,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Te(e,0,10,n),stringify:Se},Le={identify:e=>xe(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Te(e,2,16,n),stringify:e=>Ie(e,16,"0x")},Re=[ye,be,we,Ee,Oe,je,Ce,Le,Ae,ke,Ne];function Pe(e){return"bigint"==typeof e||Number.isInteger(e)}const _e=({value:e})=>JSON.stringify(e),$e=[ye,be].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:_e},{identify:e=>null==e,createNode:()=>new F(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:_e},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:_e},{identify:Pe,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Pe(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:_e}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),Me={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof Buffer)return Buffer.from(e,"base64");if("function"==typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e1&&t("Each pair must have its own sequence indicator");const e=r.items[0]||new ue(new F(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){const t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=m(r)?r:new ue(r)}}else t("Expected a sequence for this tag");return e}function Be(e,t,n){const{replacer:r}=n,o=new ge(e);o.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let i,a;if("function"==typeof r&&(e=r.call(t,String(s++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);i=e[0],a=e[1]}else if(e&&e instanceof Object){const t=Object.keys(e);if(1!==t.length)throw new TypeError(`Expected { key: value } tuple: ${e}`);i=t[0],a=e[i]}else i=e;o.items.push(ce(i,a,n))}return o}const Ue={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:De,createNode:Be};class Fe extends ge{constructor(){super(),this.add=me.prototype.add.bind(this),this.delete=me.prototype.delete.bind(this),this.get=me.prototype.get.bind(this),this.has=me.prototype.has.bind(this),this.set=me.prototype.set.bind(this),this.tag=Fe.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t?.onCreate&&t.onCreate(n);for(const e of this.items){let r,o;if(m(e)?(r=B(e.key,"",t),o=B(e.value,r,t)):r=B(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}}Fe.tag="tag:yaml.org,2002:omap";const qe={collection:"seq",identify:e=>e instanceof Map,nodeClass:Fe,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=De(e,t),r=[];for(const{key:e}of n.items)y(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new Fe,n)},createNode(e,t,n){const r=Be(e,t,n),o=new Fe;return o.items=r.items,o}};function Ve({value:e,source:t},n){return t&&(e?Ke:Ge).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Ke={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new F(!0),stringify:Ve},Ge={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new F(!1),stringify:Ve},We={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Se},He={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Se(e)}},Ye={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new F(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){const r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:Se},Xe=e=>"bigint"==typeof e||Number.isInteger(e);function Je(e,t,n,{intAsBigInt:r}){const o=e[0];if("-"!==o&&"+"!==o||(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===o?BigInt(-1)*t:t}const s=parseInt(e,n);return"-"===o?-1*s:s}function ze(e,t,n){const{value:r}=e;if(Xe(r)){const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return Se(e)}const Ze={identify:Xe,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Je(e,2,2,n),stringify:e=>ze(e,2,"0b")},Qe={identify:Xe,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Je(e,1,8,n),stringify:e=>ze(e,8,"0")},et={identify:Xe,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Je(e,0,10,n),stringify:Se},tt={identify:Xe,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Je(e,2,16,n),stringify:e=>ze(e,16,"0x")};class nt extends me{constructor(e){super(e),this.tag=nt.tag}add(e){let t;t=m(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new ue(e.key,null):new ue(e,null);de(this.items,t.key)||this.items.push(t)}get(e,t){const n=de(this.items,e);return!t&&m(n)?y(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const n=de(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new ue(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}}nt.tag="tag:yaml.org,2002:set";const rt={collection:"map",identify:e=>e instanceof Set,nodeClass:nt,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(d(e)){if(e.hasAllNullValues(!0))return Object.assign(new nt,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,n){const{replacer:r}=n,o=new nt(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),o.items.push(ce(e,null,n));return o}};function ot(e,t){const n=e[0],r="-"===n||"+"===n?e.substring(1):e,o=e=>t?BigInt(e):Number(e),s=r.replace(/_/g,"").split(":").reduce(((e,t)=>e*o(60)+o(t)),o(0));return"-"===n?o(-1)*s:s}function st(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return Se(e);let r="";t<0&&(r="-",t*=n(-1));const o=n(60),s=[t%o];return t<60?s.unshift(0):(t=(t-s[0])/o,s.unshift(t%o),t>=60&&(t=(t-s[0])/o,s.unshift(t))),r+s.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")}const it={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>ot(e,n),stringify:st},at={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>ot(e,!1),stringify:st},ct={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(ct.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,o,s,i,a]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0;let u=Date.UTC(n,r-1,o,s||0,i||0,a||0,c);const l=t[8];if(l&&"Z"!==l){let e=ot(l,!1);Math.abs(e)<30&&(e*=60),u-=6e4*e}return new Date(u)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},ut=[ye,be,we,Ee,Ke,Ge,Ze,Qe,et,tt,We,He,Ye,Me,qe,Ue,rt,it,at,ct],lt=new Map([["core",Re],["failsafe",[ye,be,we]],["json",$e],["yaml11",ut],["yaml-1.1",ut]]),ft={binary:Me,bool:Oe,float:Ne,floatExp:ke,floatNaN:Ae,floatTime:at,int:Ce,intHex:Le,intOct:je,intTime:it,map:ye,null:Ee,omap:qe,pairs:Ue,seq:be,set:rt,timestamp:ct},ht={"tag:yaml.org,2002:binary":Me,"tag:yaml.org,2002:omap":qe,"tag:yaml.org,2002:pairs":Ue,"tag:yaml.org,2002:set":rt,"tag:yaml.org,2002:timestamp":ct};function pt(e,t){let n=lt.get(t);if(!n){if(!Array.isArray(e)){const e=Array.from(lt.keys()).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}n=[]}if(Array.isArray(e))for(const t of e)n=n.concat(t);else"function"==typeof e&&(n=e(n.slice()));return n.map((e=>{if("string"!=typeof e)return e;const t=ft[e];if(t)return t;const n=Object.keys(ft).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${n}`)}))}const dt=(e,t)=>e.keyt.key?1:0;class mt{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:o,sortMapEntries:s,toStringDefaults:i}){this.compat=Array.isArray(e)?pt(e,"compat"):e?pt(null,e):null,this.merge=!!n,this.name="string"==typeof o&&o||"core",this.knownTags=r?ht:{},this.tags=pt(t,this.name),this.toStringOptions=i??null,Object.defineProperty(this,a,{value:ye}),Object.defineProperty(this,u,{value:we}),Object.defineProperty(this,l,{value:be}),this.sortMapEntries="function"==typeof s?s:!0===s?dt:null}clone(){const e=Object.create(mt.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}if(451!=n.j)var yt=n(10831);class gt{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,f,{value:i});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0);const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=o;let{version:s}=o;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new R({version:s}),this.setSchema(s,n),this.contents=void 0===e?null:this.createNode(e,r,n)}clone(){const e=Object.create(gt.prototype,{[f]:{value:i}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=b(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){vt(this.contents)&&this.contents.add(e)}addIn(e,t){vt(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=_(this);e.anchor=!t||n.has(t)?$(t||"a",n):t}return new M(e.anchor)}createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e},"",e),r=t;else if(Array.isArray(t)){const e=e=>"number"==typeof e||e instanceof String||e instanceof Number,n=t.filter(e).map(String);n.length>0&&(t=t.concat(n)),r=t}else void 0===n&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:o,anchorPrefix:s,flow:i,keepUndefined:a,onTagObj:c,tag:u}=n??{},{onAnchor:l,setAnchors:f,sourceObjects:h}=function(e,t){const n=[],r=new Map;let o=null;return{onAnchor:r=>{n.push(r),o||(o=_(e));const s=$(t,o);return o.add(s),s},setAnchors:()=>{for(const e of n){const t=r.get(e);if("object"!=typeof t||!t.anchor||!y(t.node)&&!v(t.node)){const t=new Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:r}}(this,s||"a"),p=V(e,u,{aliasDuplicateObjects:o??!0,keepUndefined:a??!1,onAnchor:l,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:h});return i&&v(p)&&(p.flow=!0),f(),p}createPair(e,t,n={}){const r=this.createNode(e,null,n),o=this.createNode(t,null,n);return new ue(r,o)}delete(e){return!!vt(this.contents)&&this.contents.delete(e)}deleteIn(e){return G(e)?null!=this.contents&&(this.contents=null,!0):!!vt(this.contents)&&this.contents.deleteIn(e)}get(e,t){return v(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return G(e)?!t&&y(this.contents)?this.contents.value:this.contents:v(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!v(this.contents)&&this.contents.has(e)}hasIn(e){return G(e)?void 0!==this.contents:!!v(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=K(this.schema,[e],t):vt(this.contents)&&this.contents.set(e,t)}setIn(e,t){G(e)?this.contents=t:null==this.contents?this.contents=K(this.schema,Array.from(e),t):vt(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new R({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new R({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else{if(!n)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new mt(Object.assign(n,t))}}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:s}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100,stringify:re},a=B(this.contents,t??"",i);if("function"==typeof o)for(const{count:e,res:t}of i.anchors.values())o(t,e);return"function"==typeof s?(0,yt.i)(s,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){const n=[];let r=!0===t.directives;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const o=ne(e,t),{commentString:s}=o.options;if(e.commentBefore){1!==n.length&&n.unshift("");const t=s(e.commentBefore);n.unshift((0,H.YU)(t,""))}let i=!1,a=null;if(e.contents){if(b(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const t=s(e.contents.commentBefore);n.push((0,H.YU)(t,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}const t=a?void 0:()=>i=!0;let c=re(e.contents,o,(()=>a=null),t);a&&(c+=(0,H.yr)(c,"",s(a))),"|"!==c[0]&&">"!==c[0]||"---"!==n[n.length-1]?n.push(c):n[n.length-1]=`--- ${c}`}else n.push(re(e.contents,o));if(e.directives?.docEnd)if(e.comment){const t=s(e.comment);t.includes("\n")?(n.push("..."),n.push((0,H.YU)(t,""))):n.push(`... ${t}`)}else n.push("...");else{let t=e.comment;t&&i&&(t=t.replace(/^\n+/,"")),t&&(i&&!a||""===n[n.length-1]||n.push(""),n.push((0,H.YU)(s(t),"")))}return n.join("\n")+"\n"}(this,e)}}function vt(e){if(v(e))return!0;throw new Error("Expected a YAML collection as document contents")}class bt extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}}class wt extends(451!=n.j?bt:null){constructor(e,t,n){super("YAMLParseError",e,t,n)}}class Et extends(451!=n.j?bt:null){constructor(e,t,n){super("YAMLWarning",e,t,n)}}const Ot=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map((e=>t.linePos(e)));const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`;let s=o-1,i=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&i.length>80){const e=Math.min(s-39,i.length-79);i="…"+i.substring(e),s-=e-1}if(i.length>80&&(i=i.substring(0,79)+"…"),r>1&&/^ *$/.test(i.substring(0,s))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),i=n+i}if(/[^ ]/.test(i)){let e=1;const t=n.linePos[1];t&&t.line===r&&t.col>o&&(e=Math.max(1,Math.min(t.col-o,80-s)));const a=" ".repeat(s)+"^".repeat(e);n.message+=`:\n\n${i}\n${a}\n`}};var St=n(42996),At=n(54637),kt=n(58506);function Nt(e,t,n){const{uniqueKeys:r}=e.options;if(!1===r)return!1;const o="function"==typeof r?r:(t,n)=>t===n||y(t)&&y(n)&&t.value===n.value&&!("<<"===t.value&&e.schema.merge);return t.some((e=>o(e.key,n)))}const xt="All mapping items must start at the same column";var Tt=n(42649);const It="Block collections are not allowed within flow collections",jt=e=>e&&("block-map"===e.type||"block-seq"===e.type);function Ct(e,t,n,r,o){let s;switch(n.type){case"block-map":s=function({composeNode:e,composeEmptyNode:t},n,r,o){const s=new me(n.schema);n.atRoot&&(n.atRoot=!1);let i=r.offset,a=null;for(const c of r.items){const{start:u,key:l,sep:f,value:h}=c,p=(0,St.i)(u,{indicator:"explicit-key-ind",next:l??f?.[0],offset:i,onError:o,startOnNewline:!0}),d=!p.found;if(d){if(l&&("block-seq"===l.type?o(i,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in l&&l.indent!==r.indent&&o(i,"BAD_INDENT",xt)),!p.anchor&&!p.tag&&!f){a=p.end,p.comment&&(s.comment?s.comment+="\n"+p.comment:s.comment=p.comment);continue}(p.hasNewlineAfterProp||(0,At.Y)(l))&&o(l??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else p.found?.indent!==r.indent&&o(i,"BAD_INDENT",xt);const m=p.end,y=l?e(n,l,p,o):t(n,m,u,null,p,o);n.schema.compat&&(0,kt.j)(r.indent,l,o),Nt(n,s.items,y)&&o(m,"DUPLICATE_KEY","Map keys must be unique");const g=(0,St.i)(f??[],{indicator:"map-value-ind",next:h,offset:y.range[2],onError:o,startOnNewline:!l||"block-scalar"===l.type});if(i=g.end,g.found){d&&("block-map"!==h?.type||g.hasNewline||o(i,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&p.start0){const e=(0,Tt.C)(h,p,n.options.strict,o);e.comment&&(a.comment?a.comment+="\n"+e.comment:a.comment=e.comment),a.range=[r.offset,p,e.offset]}else a.range=[r.offset,p,p];return a}(e,t,n,o)}if(!r)return s;const i=t.directives.tagName(r.source,(e=>o(r,"TAG_RESOLVE_FAILED",e)));if(!i)return s;const a=s.constructor;if("!"===i||i===a.tagName)return s.tag=a.tagName,s;const c=d(s)?"map":"seq";let u=t.schema.tags.find((e=>e.collection===c&&e.tag===i));if(!u){const e=t.schema.knownTags[i];if(!e||e.collection!==c)return o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,!0),s.tag=i,s;t.schema.tags.push(Object.assign({},e,{default:!1})),u=e}const l=u.resolve(s,(e=>o(r,"TAG_RESOLVE_FAILED",e)),t.options),f=b(l)?l:new F(l);return f.range=s.range,f.tag=i,u?.format&&(f.format=u.format),f}function Lt(e,t,n){const r=e.offset,o=function({offset:e,props:t},n,r){if("block-scalar-header"!==t[0].type)return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],s=o[0];let i=0,a="",c=-1;for(let t=1;t=0;--e){const t=i[e][1];if(""!==t&&"\r"!==t)break;a=e}if(0===a){const t="+"===o.chomp&&i.length>0?"\n".repeat(Math.max(1,i.length-1)):"";let n=r+o.length;return e.source&&(n+=e.source.length),{value:t,type:s,comment:o.comment,range:[r,n,n]}}let c=e.indent+o.indent,u=e.offset+o.length,l=0;for(let e=0;ec&&(c=t.length),u+=t.length+r.length+1}for(let e=i.length-1;e>=a;--e)i[e][0].length>c&&(a=e+1);let f="",h="",p=!1;for(let e=0;ec||"\t"===r[0]?(" "===h?h="\n":p||"\n"!==h||(h="\n\n"),f+=h+t.slice(c)+r,h="\n",p=!0):""===r?"\n"===h?f+="\n":h="\n":(f+=h+r,h=" ",p=!1)}switch(o.chomp){case"-":break;case"+":for(let e=a;en(r+e,t,o);switch(o){case"scalar":a=F.PLAIN,c=function(e,t){let n="";switch(e[0]){case"\t":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`);return Pt(e)}(s,u);break;case"single-quoted-scalar":a=F.QUOTE_SINGLE,c=function(e,t){"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote");return Pt(e.slice(1,-1)).replace(/''/g,"'")}(s,u);break;case"double-quoted-scalar":a=F.QUOTE_DOUBLE,c=function(e,t){let n="";for(let r=1;rt?e.slice(t,r+1):o)}else n+=o}'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote');return n}(s,u);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const l=r+s.length,f=(0,Tt.C)(i,l,t,n);return{value:c,type:a,comment:f.comment,range:[r,l,f.offset]}}function Pt(e){let t,n;try{t=new RegExp("(.*?)(?r(n,"TAG_RESOLVE_FAILED",e))):null,l=n&&c?function(e,t,n,r,o){if("!"===n)return e[u];const s=[];for(const t of e.tags)if(!t.collection&&t.tag===n){if(!t.default||!t.test)return t;s.push(t)}for(const e of s)if(e.test?.test(t))return e;const i=e.knownTags[n];if(i&&!i.collection)return e.tags.push(Object.assign({},i,{default:!1,test:void 0})),i;return o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[u]}(e.schema,o,c,n,r):"scalar"===t.type?function({directives:e,schema:t},n,r,o){const s=t.tags.find((e=>e.default&&e.test?.test(n)))||t[u];if(t.compat){const i=t.compat.find((e=>e.default&&e.test?.test(n)))??t[u];if(s.tag!==i.tag){o(r,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${e.tagString(s.tag)} or ${e.tagString(i.tag)}`,!0)}}return s}(e,o,t,r):e.schema[u];let f;try{const s=l.resolve(o,(e=>r(n??t,"TAG_RESOLVE_FAILED",e)),e.options);f=y(s)?s:new F(s)}catch(e){const s=e instanceof Error?e.message:String(e);r(n??t,"TAG_RESOLVE_FAILED",s),f=new F(o)}return f.range=a,f.source=o,s&&(f.type=s),c&&(f.tag=c),l.format&&(f.format=l.format),i&&(f.comment=i),f}function Bt(e,t,n){if(t){null===n&&(n=t.length);for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++r];"space"===n?.type;)e+=n.source.length,n=t[++r];break}}return e}const Ut={composeNode:Ft,composeEmptyNode:qt};function Ft(e,t,n,r){const{spaceBefore:o,comment:s,anchor:i,tag:a}=n;let c,u=!0;switch(t.type){case"alias":c=function({options:e},{offset:t,source:n,end:r},o){const s=new M(n.substring(1));""===s.source&&o(t,"BAD_ALIAS","Alias cannot be an empty string");s.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const i=t+n.length,a=(0,Tt.C)(r,i,e.strict,o);s.range=[t,i,a.offset],a.comment&&(s.comment=a.comment);return s}(e,t,r),(i||a)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=Dt(e,t,a,r),i&&(c.anchor=i.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=Ct(Ut,e,t,a,r),i&&(c.anchor=i.source.substring(1));break;default:r(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:`Unsupported token (type: ${t.type})`),c=qt(e,t.offset,void 0,null,n,r),u=!1}return i&&""===c.anchor&&r(i,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(c.spaceBefore=!0),s&&("scalar"===t.type&&""===t.source?c.comment=s:c.commentBefore=s),e.options.keepSourceTokens&&u&&(c.srcToken=t),c}function qt(e,t,n,r,{spaceBefore:o,comment:s,anchor:i,tag:a,end:c},u){const l=Dt(e,{type:"scalar",offset:Bt(t,n,r),indent:-1,source:""},a,u);return i&&(l.anchor=i.source.substring(1),""===l.anchor&&u(i,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(l.spaceBefore=!0),s&&(l.comment=s,l.range[2]=c),l}function Vt(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+("string"==typeof n?n.length:1)]}function Kt(e){let t="",n=!1,r=!1;for(let o=0;o{const o=Vt(e);r?this.warnings.push(new Et(o,t,n)):this.errors.push(new wt(o,t,n))},this.directives=new R({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:r}=Kt(this.prelude);if(n){const o=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!o)e.commentBefore=n;else if(v(o)&&!o.flow&&o.items.length>0){let e=o.items[0];m(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{const e=o.commentBefore;o.commentBefore=e?`${n}\n${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Kt(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(const t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,((t,n,r)=>{const o=Vt(e);o[0]+=t,this.onError(o,"BAD_DIRECTIVE",n,r)})),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=function(e,t,{offset:n,start:r,value:o,end:s},i){const a=Object.assign({_directives:t},e),c=new gt(void 0,a),u={atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},l=(0,St.i)(r,{indicator:"doc-start",next:o??s?.[0],offset:n,onError:i,startOnNewline:!0});l.found&&(c.directives.docStart=!0,!o||"block-map"!==o.type&&"block-seq"!==o.type||l.hasNewline||i(l.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=o?Ft(u,o,l,i):qt(u,l.end,r,null,l,i);const f=c.contents.range[2],h=(0,Tt.C)(s,f,!1,i);return h.comment&&(c.comment=h.comment),c.range=[n,f,h.offset],c}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new wt(Vt(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new wt(Vt(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const t=(0,Tt.C)(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new wt(Vt(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const e=Object.assign({_directives:this.directives},this.options),n=new gt(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,t,t],this.decorate(n,!1),yield n}}}function Wt(e,t=!0,n){if(e){const r=(e,t,r)=>{const o="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(!n)throw new wt([o,o+1],t,r);n(o,t,r)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Rt(e,t,r);case"block-scalar":return Lt(e,t,r)}}return null}function Ht(e,t){const{implicitKey:n=!1,indent:r,inFlow:o=!1,offset:s=-1,type:i="PLAIN"}=t,a=te({type:i,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),c=t.end??[{type:"newline",offset:-1,indent:r,source:"\n"}];switch(a[0]){case"|":case">":{const e=a.indexOf("\n"),t=a.substring(0,e),n=a.substring(e+1)+"\n",o=[{type:"block-scalar-header",offset:s,indent:r,source:t}];return Xt(o,c)||o.push({type:"newline",offset:-1,indent:r,source:"\n"}),{type:"block-scalar",offset:s,indent:r,props:o,source:n}}case'"':return{type:"double-quoted-scalar",offset:s,indent:r,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:s,indent:r,source:a,end:c};default:return{type:"scalar",offset:s,indent:r,source:a,end:c}}}function Yt(e,t,n={}){let{afterKey:r=!1,implicitKey:o=!1,inFlow:s=!1,type:i}=n,a="indent"in e?e.indent:null;if(r&&"number"==typeof a&&(a+=2),!i)switch(e.type){case"single-quoted-scalar":i="QUOTE_SINGLE";break;case"double-quoted-scalar":i="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");i=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:i="PLAIN"}const c=te({type:i,value:t},{implicitKey:o||null===a,indent:null!==a&&a>0?" ".repeat(a):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":!function(e,t){const n=t.indexOf("\n"),r=t.substring(0,n),o=t.substring(n+1)+"\n";if("block-scalar"===e.type){const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");t.source=r,e.source=o}else{const{offset:t}=e,n="indent"in e?e.indent:-1,s=[{type:"block-scalar-header",offset:t,indent:n,source:r}];Xt(s,"end"in e?e.end:void 0)||s.push({type:"newline",offset:-1,indent:n,source:"\n"});for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:n,props:s,source:o})}}(e,c);break;case'"':Jt(e,c,"double-quoted-scalar");break;case"'":Jt(e,c,"single-quoted-scalar");break;default:Jt(e,c,"scalar")}}function Xt(e,t){if(t)for(const n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function Jt(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{const r=e.props.slice(1);let o=t.length;"block-scalar-header"===e.props[0].type&&(o-=e.props[0].source.length);for(const e of r)e.offset+=o;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{const r={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{const r="indent"in e?e.indent:-1,o="end"in e&&Array.isArray(e.end)?e.end.filter((e=>"space"===e.type||"comment"===e.type||"newline"===e.type)):[];for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:o})}}}if(451!=n.j)var zt=n(15588);const Zt=Symbol("break visit"),Qt=Symbol("skip children"),en=Symbol("remove item");function tn(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),nn(Object.freeze([]),e,t)}function nn(e,t,n){let r=n(t,e);if("symbol"==typeof r)return r;for(const o of["key","value"]){const s=t[o];if(s&&"items"in s){for(let t=0;t{let n=e;for(const[e,r]of t){const t=n?.[e];if(!t||!("items"in t))return;n=t.items[r]}return n},tn.parentCollection=(e,t)=>{const n=tn.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],o=n?.[r];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};const rn="\ufeff",on="",sn="",an="",cn=e=>!!e&&"items"in e,un=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type);function ln(e){switch(e){case rn:return"";case on:return"";case sn:return"";case an:return"";default:return JSON.stringify(e)}}function fn(e){switch(e){case rn:return"byte-order-mark";case on:return"doc-mode";case sn:return"flow-error-end";case an:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function hn(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const pn="0123456789ABCDEFabcdef".split(""),dn="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),mn=",[]{}".split(""),yn=" ,[]{}\n\r\t".split(""),gn=e=>!e||yn.includes(e);class vn{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){const t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"===t||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if("-"===t||"."===t){const t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&hn(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return("number"!=typeof e||-1!==e&&ethis.indentValue&&!hn(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&hn(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(gn),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader()),t+=(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do{e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=(yield*this.pushSpaces(!0))}while(e+t>0);const r=this.getLine();if(null===r)return this.setNext("flow");if(-1!==n&&n"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil((e=>hn(e)||"#"===e))}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let r=this.pos;e=this.buffer[r];++r)switch(e){case" ":n+=1;break;case"\n":t=r,n=0;break;case"\r":{const e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)for(;;){let e=t-1,r=this.buffer[e];"\r"===r&&(r=this.buffer[--e]);const o=e;for(;" "===r||"\t"===r;)r=this.buffer[--e];if(!("\n"===r&&e>=this.pos&&e+1+n>o))break;t=e}return yield an,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,n=this.pos-1,r=this.pos-1;for(;t=this.buffer[++r];)if(":"===t){const t=this.buffer[r+1];if(hn(t)||e&&","===t)break;n=r}else if(hn(t)){let o=this.buffer[r+1];if("\r"===t&&("\n"===o?(r+=1,t="\n",o=this.buffer[r+1]):n=r),"#"===o||e&&mn.includes(o))break;if("\n"===t){const e=this.continueScalar(r+1);if(-1===e)break;r=Math.max(r,e-2)}}else{if(e&&mn.includes(t))break;n=r}return t||this.atEnd?(yield an,yield*this.pushToIndex(n+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(gn))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(hn(t)||e&&mn.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!hn(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(dn.includes(t))t=this.buffer[++e];else{if("%"!==t||!pn.includes(this.buffer[e+1])||!pn.includes(this.buffer[e+2]))break;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do{t=this.buffer[++n]}while(" "===t||e&&"\t"===t);const r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}if(451!=n.j)var bn=n(92050);function wn(e,t){for(let n=0;n=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===e[++t]?.type;);return e.splice(t,e.length)}function kn(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||wn(t.start,"explicit-key-ind")||wn(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,On(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class Nn{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new vn,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=fn(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&kn(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const n=e.items[e.items.length-1];if(n.value)return e.items.push({start:[],key:t,sep:[]}),void(this.onKeyLine=!0);if(!n.sep)return Object.assign(n,{key:t,sep:[]}),void(this.onKeyLine=!wn(n.start,"explicit-key-ind"));n.value=t;break}case"block-seq":{const n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{const n=e.items[e.items.length-1];return void(!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]}))}default:yield*this.pop(),yield*this.pop(t)}if(!("document"!==e.type&&"block-map"!==e.type&&"block-seq"!==e.type||"block-map"!==t.type&&"block-seq"!==t.type)){const n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===En(n.start)&&(0===t.indent||n.start.every((e=>"comment"!==e.type||e.indent=e.indent){const n=!this.onKeyLine&&this.indent===e.indent&&t.sep;let r=[];if(n&&t.sep&&!t.value){const n=[];for(let r=0;re.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(r=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":return void(n||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"explicit-key-ind":return t.sep||wn(t.start,"explicit-key-ind")?n||t.value?(r.push(this.sourceToken),e.items.push({start:r})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}):t.start.push(this.sourceToken),void(this.onKeyLine=!0);case"map-value-ind":if(wn(t.start,"explicit-key-ind"))if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(wn(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(On(t.key)&&!wn(t.sep,"newline")){const e=An(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(wn(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const e=An(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||n?e.items.push({start:r,key:null,sep:[this.sourceToken]}):wn(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);return void(n||t.value?(e.items.push({start:r,key:o,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(o):(Object.assign(t,{key:o,sep:[]}),this.onKeyLine=!0))}default:{const o=this.startBlockValue(e);if(o)return n&&"block-seq"!==o.type&&wn(t.start,"explicit-key-ind")&&e.items.push({start:r}),void this.stack.push(o)}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const n="end"in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;"comment"===r?.type?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const n=e.items[e.items.length-2],r=n?.value?.end;if(Array.isArray(r))return Array.prototype.push.apply(r,t.start),r.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;return void t.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(t.value||wn(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken))}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken));case"map-value-ind":return void(!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);return void(!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void e.end.push(this.sourceToken)}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===e.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){const n=An(Sn(t));kn(e);const r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=An(Sn(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t}]}}case"map-value-ind":{this.onKeyLine=!0;const t=An(Sn(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&(!(this.indent<=t)&&e.every((e=>"newline"===e.type||"space"===e.type)))}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}function xn(e){const t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new bn.Y||null,prettyErrors:t}}function Tn(e,t={}){const{lineCounter:n,prettyErrors:r}=xn(t),o=new Nn(n?.addNewLine),s=new Gt(t),i=Array.from(s.compose(o.parse(e)));if(r&&n)for(const t of i)t.errors.forEach(Ot(e,n)),t.warnings.forEach(Ot(e,n));return i.length>0?i:Object.assign([],{empty:!0},s.streamInfo())}function In(e,t={}){const{lineCounter:n,prettyErrors:r}=xn(t),o=new Nn(n?.addNewLine),s=new Gt(t);let i=null;for(const t of s.compose(o.parse(e),!0,e.length))if(i){if("silent"!==i.options.logLevel){i.errors.push(new wt(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else i=t;return r&&n&&(i.errors.forEach(Ot(e,n)),i.warnings.forEach(Ot(e,n))),i}function jn(e,t,n){let r;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t);const o=In(e,n);if(!o)return null;if(o.warnings.forEach((e=>(0,oe.Z)(o.options.logLevel,e))),o.errors.length>0){if("silent"!==o.options.logLevel)throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))}function Cn(e,t,n){let r=null;if("function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){const e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){const{keepUndefined:e}=n??t??{};if(!e)return}return new gt(e,r,n).toString(n)}const Ln=451!=n.j?o:null}}]);