lms/Scriptcat/src/vendor-27545368.js

2 lines
257 KiB
JavaScript
Executable File
Raw Blame History

This file contains invisible Unicode characters

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

/*! 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__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,s=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(s):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function s(){n&&(n=!1,e()),r&&c()}function a(){i(s)}function c(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return c}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},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);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||s},h=v(0,0,0,0);function p(e){return parseFloat(e)||0}function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+p(e["border-"+n+"-width"])}),0)}function m(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return h;var r=f(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],s=e["padding-"+o];t[o]=p(s)}return t}(r),s=o.left+o.right,i=o.top+o.bottom,a=p(r.width),c=p(r.height);if("border-box"===r.boxSizing&&(Math.round(a+s)!==t&&(a-=d(r,"left","right")+s),Math.round(c+i)!==n&&(c-=d(r,"top","bottom")+i)),!function(e){return e===f(e).document.documentElement}(e)){var u=Math.round(a+s)-t,l=Math.round(c+i)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(l)&&(c-=l)}return v(o.left,o.top,a,c)}var y="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return o?y(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):m(e):h}function v(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(e,t){var n,r,o,s,i,a,c,u=(r=(n=t).x,o=n.y,s=n.width,i=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),l(c,{x:r,y:o,width:s,height:i,top:o,right:r+s,bottom:i+o,left:r}),c);l(this,{target:e,contentRect:u})},E=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new w(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},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<n;){var r=n-1>>>1,o=e[r];if(!(0<s(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var a=2*(r+1)-1,c=e[a],u=a+1,l=e[u];if(0>s(c,n))u<o&&0>s(l,c)?(e[r]=l,e[u]=n,r=u):(e[r]=c,e[a]=n,r=a);else{if(!(u<o&&0>s(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()-T<x)}function j(){if(null!==k){var e=t.unstable_now();T=e;var n=!0;try{n=k(!0,e)}finally{n?S():(A=!1,k=null)}}else A=!1}if("function"==typeof b)S=function(){b(j)};else if("undefined"!=typeof MessageChannel){var C=new MessageChannel,L=C.port2;C.port1.onmessage=j,S=function(){L.postMessage(null)}}else S=function(){g(j,0)};function R(e){k=e,A||(A=!0,S())}function P(e,n){N=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||d||(m=!0,R(O))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,s){var i=t.unstable_now();switch("object"==typeof s&&null!==s?s="number"==typeof(s=s.delay)&&0<s?i+s:i:s=i,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:s,expirationTime:a=s+a,sortIndex:-1},s>i?(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.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return o(n.overflowY,t)||o(n.overflowX,t)}return!1}function i(e,t,n,r,o,s,i,a){return s<e&&i>t||s>e&&i<t?0:s<=e&&a<=n||i>=t&&a>=n?s-e-r:i>t&&a<n||s<e&&a>n?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<h.length;T++){var I=h[T],j=I.getBoundingClientRect(),C=j.height,L=j.width,R=j.top,P=j.right,_=j.bottom,$=j.left;if("if-needed"===n&&E>=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<this.set.length;t++)if(T(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const o=new(n(39593))({max:1e3}),s=n(12893),i=n(22257),a=n(74225),c=n(26376),{re:u,t:l,comparatorTrimReplace:f,tildeTrimReplace:h,caretTrimReplace:p}=n(55765),d=e=>"<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;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(a(e[n].semver),e[n].semver!==i.ANY&&e[n].semver.prerelease.length>0){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<s)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],o=e.prerelease[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return u(n,o)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const n=this.build[t],o=e.build[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return u(n,o)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=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:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(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<e.set.length;++t){const o=e.set[t];let i=null;o.forEach((e=>{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<t.set.length;++n){const r=t.set[n];let i=null,a=null;if(r.forEach((e=>{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<f.length?l:t}},50799:(e,t,n)=>{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<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var s={},i=[],a=0;a<e.length;a++){var c=e[a],u=r.base?c[0]+r.base:c[0],l=s[u]||0,f="".concat(u," ").concat(l);s[u]=l+1;var h=n(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==h)t[h].references++,t[h].updater(p);else{var d=o(p,r);r.byIndex=a,t.splice(a,0,{identifier:f,updater:d,references:1})}i.push(f)}return i}function o(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var s=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<s.length;i++){var a=n(s[i]);t[a].references--}for(var c=r(e,o),u=0;u<s.length;u++){var l=n(s[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}s=c}}},90569:e=>{"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<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.create;Object.create},99994:(e,t,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<<t|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<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof s&&(s=(0,o.Z)(s)),16!==s.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+e.length);if(c.set(s),c.set(e,s.length),(c=n(c))[6]=15&c[6]|t,c[8]=63&c[8]|128,i){a=a||0;for(var u=0;u<16;++u)i[a+u]=c[u];return i}return(0,r.Z)(c)}try{s.name=e}catch(e){}return s.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",s.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",s}("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var a=e.length/4+2,c=Math.ceil(a/16),u=new Array(c),l=0;l<c;++l){for(var f=new Uint32Array(16),h=0;h<16;++h)f[h]=e[64*l+4*h]<<24|e[64*l+4*h+1]<<16|e[64*l+4*h+2]<<8|e[64*l+4*h+3];u[l]=f}u[c-1][14]=8*(e.length-1)/Math.pow(2,32),u[c-1][14]=Math.floor(u[c-1][14]),u[c-1][15]=8*(e.length-1)&4294967295;for(var p=0;p<c;++p){for(var d=new Uint32Array(80),m=0;m<16;++m)d[m]=u[p][m];for(var y=16;y<80;++y)d[y]=i(d[y-3]^d[y-8]^d[y-14]^d[y-16],1);for(var g=n[0],v=n[1],b=n[2],w=n[3],E=n[4],O=0;O<80;++O){var S=Math.floor(O/20),A=i(g,5)+s(S,v,b,w)+E+t[S]+d[O]>>>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<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},2800:(e,t,n)=>{"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<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},8826:(e,t,n)=>{"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;n<o;n++)t.call(null,e[n],n,e);else for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.call(null,e[s],s,e)}var E,O=(E="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return E&&e instanceof E});e.exports={isArray:u,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:h,isPlainObject:p,isUndefined:l,isDate:d,isFile:m,isBlob:y,isFunction:v,isStream:function(e){return h(e)&&v(e.pipe)},isURLSearchParams:b,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:w,merge:function e(){var t={};function n(n,r){p(t[r])&&p(n)?t[r]=e(t[r],n):p(n)?t[r]=e({},n):u(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)w(arguments[r],n);return t},extend:function(e,t,n){return w(t,(function(t,r){e[r]=n&&"function"==typeof t?s(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,s,i={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)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())<s&&(s=o,i=u),u=n.indexOf(t,l+1)),l=c<u&&c>=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<c;)t=e.charCodeAt(a)<<16,n=e.charCodeAt(++a)<<8,r=e.charCodeAt(++a),i+=h.charAt((o=t+n+r)>>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<t;)r=h.indexOf(e.charAt(i)),n=o%4?64*n+r:r,o++%4&&(s+=String.fromCharCode(255&n>>(-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<r&&r<=2047?t++:2047<r&&r<=65535&&(t+=2)}return t}},5106:e=>{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<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=t},3718:e=>{var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|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;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>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<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],s=0;s<4;s++)8*r+6*s<=8*e.length?n.push(t.charAt(o>>>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<e.length;o=++r%4)0!=o&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(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+"<![CDATA["+t+"]]"+this.tagEndChar:e.replace(this.options.cdataPositionChar,"<![CDATA["+t+"]]"+this.tagEndChar)}function l(e,t){if(e=this.options.tagValueProcessor(""+e),""===this.options.cdataPositionChar||""===e)return e+"<![CDATA["+t.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(var n in t)e=e.replace(this.options.cdataPositionChar,"<![CDATA["+t[n]+"]]>");return e+this.newLine}function f(e,t,n,r){return n&&-1===e.indexOf("<")?this.indentate(r)+"<"+t+n+">"+e+"</"+t+this.tagEndChar:this.indentate(r)+"<"+t+n+this.tagEndChar+e+this.indentate(r)+"</"+t+this.tagEndChar}function h(e,t,n,r){return""!==e?this.buildObjectNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function p(e,t,n,r){return this.indentate(r)+"<"+t+n+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function d(e,t,n,r){return""!==e?this.buildTextValNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function m(e){return this.options.indentBy.repeat(e)}function y(e){return!!e.startsWith(this.options.attributeNamePrefix)&&e.substr(this.attrPrefixLen)}function g(e){return e===this.options.cdataTagName}a.prototype.parse=function(e){var t,n,r;return Array.isArray(e)&&this.options.rootNodeName&&this.options.rootNodeName.length>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<a;c++){var u=e[s][c];void 0===u||(null===u?o+=this.indentate(t)+"<"+s+"/"+this.tagEndChar:"object"===r(u)?o+=this.processTextOrObjNode(u,s,t):o+=this.buildTextNode(u,s,"",t))}else if(this.options.attrNodeName&&s===this.options.attrNodeName)for(var l=Object.keys(e[s]),f=l.length,h=0;h<f;h++)n+=" "+l[h]+'="'+this.options.attrValueProcessor(""+e[s][l[h]])+'"';else o+=this.processTextOrObjNode(e[s],s,t);return{attrStr:n,val:o}},e.exports=a},3927:(e,t,n)=>{"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<f;h++){var p=a(t[h].val,l);u=c(u,p)}else for(var d=0;d<f;d++){var m=e(t[d],l,r);u=c(u,m)}u+=o.arrayEnd}else{u+=o.objStart;var y=Object.keys(n);for(var g in Array.isArray(t)&&(t=t[0]),y){var v,b=y[g];v=!r.ignoreAttributes&&t.attrsMap&&t.attrsMap[b]?e(t.attrsMap[b],n[b],r):b===r.textNodeName?e(t.val,n[b],r):e(t.child[b],n[b],r),u=c(u,v)}}return u}return i},a=function(e){switch(e){case void 0:return o.missingPremitive;case null:return o.nilPremitive;case"":return o.emptyValue;default:return e}},c=function(e,t){return u(t[0])||u(e[e.length-1])||(e+=o.boundryChar),e+t},u=function(e){return-1!==s.indexOf(e)},l=n(4369),f=n(6410).buildOptions;t.convert2nimn=function(e,t,n){return n=f(n,l.defaultOptions,l.props),i(e,t,n)}},504:(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);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;u<c.length;u++){var l=c[u];if(t.child[l]&&t.child[l].length>1)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;c<a.length;c++){var u=a[c];if(t.child[u]&&t.child[u].length>1){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<o;s++)e[r[s]]="strict"===n?[t[r[s]]]:t[r[s]]},t.getValue=function(e){return t.isExist(e)?e:""},t.buildOptions=function(e,t,n){var r={};if(!e)return t;for(var o=0;o<n.length;o++)void 0!==e[n[o]]?r[n[o]]=e[n[o]]:r[n[o]]=t[n[o]];return r},t.isTagNameInArrayMode=function(e,t,n){return!1!==t&&(t instanceof RegExp?t.test(e):"function"==typeof t?!!t(e,n):"strict"===t)},t.isName=function(e){return!(null==r.exec(e))},t.getAllMatches=function(e,t){for(var n=[],r=t.exec(e);r;){var o=[];o.startIndex=t.lastIndex-r[0].length;for(var s=r.length,i=0;i<s;i++)o.push(r[i]);n.push(o),r=t.exec(e)}return n},t.nameRegexp=n},1135:(e,t,n)=>{"use strict";var r=n(6410),o={allowBooleanAttributes:!1},s=["allowBooleanAttributes"];function i(e,t){for(var n=t;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{var r=e.substr(n,t-n);if(t>5&&"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.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===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.length;t++)if("<"===e[t])n++;else if(">"===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.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}function c(e,t){for(var n="",r="",o=!1;t<e.length;t++){if('"'===e[t]||"'"===e[t])""===r?r=e[t]:r!==e[t]||(r="");else if(">"===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.length;y++)if("<"===e[y]&&"?"===e[y+1]){if((y=i(e,y+=2)).err)return y}else{if("<"!==e[y]){if(" "===e[y]||"\t"===e[y]||"\n"===e[y]||"\r"===e[y])continue;return h("InvalidChar","char '"+e[y]+"' is not expected.",d(e,y))}var g=y;if("!"===e[++y]){y=a(e,y);continue}var v=!1;"/"===e[y]&&(v=!0,y++);for(var b="";y<e.length&&">"!==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++;y<e.length;y++)if("<"===e[y]){if("!"===e[y+1]){y=a(e,++y);continue}if("?"!==e[y+1])break;if((y=i(e,++y)).err)return y}else if("&"===e[y]){var x=f(e,y);if(-1==x)return h("InvalidChar","char '&' is not expected.",d(e,y));y=x}"<"===e[y]&&y--}return p?1==u.length?h("InvalidTag","Unclosed tag '"+u[0].tagName+"'.",d(e,u[0].tagStartPos)):!(u.length>0)||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<n.length;s++){if(0===n[s][1].length)return h("InvalidAttr","Attribute '"+n[s][2]+"' has no space in starting.",m(n[s]));if(void 0===n[s][3]&&!t.allowBooleanAttributes)return h("InvalidAttr","boolean attribute '"+n[s][2]+"' is not allowed.",m(n[s]));var i=n[s][2];if(!p(i))return h("InvalidAttr","Attribute '"+i+"' is an invalid name.",m(n[s]));if(o.hasOwnProperty(i))return h("InvalidAttr","Attribute '"+i+"' is repeated.",m(n[s]));o[i]=1}return!0}function f(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){var n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);for(var n=0;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function h(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function p(e){return r.isName(e)}function d(e,t){var n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function m(e){return e.startIndex+e[1].length}},6613:e=>{"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<o;i++){var a=l(n[i][1],t);a.length&&(void 0!==n[i][4]?(t.trimValues&&(n[i][4]=n[i][4].trim()),n[i][4]=t.attrValueProcessor(n[i][4],a),s[t.attributeNamePrefix+a]=f(n[i][4],t.parseAttributeValue,t.numParseOptions)):t.allowBooleanAttributes&&(s[t.attributeNamePrefix+a]=!0))}if(!Object.keys(s).length)return;if(t.attrNodeName){var c={};return c[t.attrNodeName]=s,c}return s}}function d(e,t){for(var n,r="",o=t;o<e.length;o++){var s=e[o];if(n)s===n&&(n="");else if('"'===s||"'"===s)n=s;else{if(">"===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<e.length;f++)if("<"===e[f])if("/"===e[f+1]){var h=m(e,">",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;n<e;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Failed creating sequence: No functions provided");return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var o=n;t.length>0;)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);n<t;n++)r[n]=e[n];return r}var o=n(2519).sequence,s="@@HOTPATCHER",i=function(){};function a(e){return{original:e,methods:[e],final:!1}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._configuration={registry:{},getEmptyAction:"null"},this.__type__=s}var t,n;return t=e,n=[{key:"configuration",get:function(){return this._configuration}},{key:"getEmptyAction",get:function(){return this.configuration.getEmptyAction},set:function(e){this.configuration.getEmptyAction=e}},{key:"control",value:function(e){var t=this,n=arguments.length>1&&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;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,r)}},{key:"get",value:function(e){var t,n=this.configuration.registry[e];if(!n)switch(this.getEmptyAction){case"null":return null;case"throw":throw new Error("Failed handling method request: No method provided for override: ".concat(e));default:throw new Error("Failed handling request which resulted in an empty method: Invalid empty-action specified: ".concat(this.getEmptyAction))}return o.apply(void 0,function(e){if(Array.isArray(e))return r(e)}(t=n.methods)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}},{key:"isPatched",value:function(e){return!!this.configuration.registry[e]}},{key:"patch",value:function(e,t){var n=(arguments.length>2&&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;o<n;o++)r[o-2]=arguments[o];return this.execute.apply(this,[e].concat(r))}},{key:"plugin",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((function(n){t.patch(e,n,{chain:!0})})),this}},{key:"restore",value:function(e){if(!this.isPatched(e))throw new Error("Failed restoring method: No method present for key: ".concat(e));if("function"!=typeof this.configuration.registry[e].original)throw new Error("Failed restoring method: Original method not found or of invalid type for key: ".concat(e));this.configuration.registry[e].methods=[this.configuration.registry[e].original]}},{key:"setFinal",value:function(e){if(!this.configuration.registry.hasOwnProperty(e))throw new Error("Failed marking '".concat(e,"' as final: No method found for key"));return this.configuration.registry[e].final=!0,this}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=c},163:e=>{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<a.length;p++)a[p]=16711935&(a[p]<<8|a[p]>>>24)|4278255360&(a[p]<<24|a[p]>>>8);a[c>>>5]|=128<<c%32,a[14+(c+64>>>9<<4)]=c;var d=e._ff,m=e._gg,y=e._hh,g=e._ii;for(p=0;p<a.length;p+=16){var v=u,b=l,w=f,E=h;u=d(u,l,f,h,a[p+0],7,-680876936),h=d(h,u,l,f,a[p+1],12,-389564586),f=d(f,h,u,l,a[p+2],17,606105819),l=d(l,f,h,u,a[p+3],22,-1044525330),u=d(u,l,f,h,a[p+4],7,-176418897),h=d(h,u,l,f,a[p+5],12,1200080426),f=d(f,h,u,l,a[p+6],17,-1473231341),l=d(l,f,h,u,a[p+7],22,-45705983),u=d(u,l,f,h,a[p+8],7,1770035416),h=d(h,u,l,f,a[p+9],12,-1958414417),f=d(f,h,u,l,a[p+10],17,-42063),l=d(l,f,h,u,a[p+11],22,-1990404162),u=d(u,l,f,h,a[p+12],7,1804603682),h=d(h,u,l,f,a[p+13],12,-40341101),f=d(f,h,u,l,a[p+14],17,-1502002290),u=m(u,l=d(l,f,h,u,a[p+15],22,1236535329),f,h,a[p+1],5,-165796510),h=m(h,u,l,f,a[p+6],9,-1069501632),f=m(f,h,u,l,a[p+11],14,643717713),l=m(l,f,h,u,a[p+0],20,-373897302),u=m(u,l,f,h,a[p+5],5,-701558691),h=m(h,u,l,f,a[p+10],9,38016083),f=m(f,h,u,l,a[p+15],14,-660478335),l=m(l,f,h,u,a[p+4],20,-405537848),u=m(u,l,f,h,a[p+9],5,568446438),h=m(h,u,l,f,a[p+14],9,-1019803690),f=m(f,h,u,l,a[p+3],14,-187363961),l=m(l,f,h,u,a[p+8],20,1163531501),u=m(u,l,f,h,a[p+13],5,-1444681467),h=m(h,u,l,f,a[p+2],9,-51403784),f=m(f,h,u,l,a[p+7],14,1735328473),u=y(u,l=m(l,f,h,u,a[p+12],20,-1926607734),f,h,a[p+5],4,-378558),h=y(h,u,l,f,a[p+8],11,-2022574463),f=y(f,h,u,l,a[p+11],16,1839030562),l=y(l,f,h,u,a[p+14],23,-35309556),u=y(u,l,f,h,a[p+1],4,-1530992060),h=y(h,u,l,f,a[p+4],11,1272893353),f=y(f,h,u,l,a[p+7],16,-155497632),l=y(l,f,h,u,a[p+10],23,-1094730640),u=y(u,l,f,h,a[p+13],4,681279174),h=y(h,u,l,f,a[p+0],11,-358537222),f=y(f,h,u,l,a[p+3],16,-722521979),l=y(l,f,h,u,a[p+6],23,76029189),u=y(u,l,f,h,a[p+9],4,-640364487),h=y(h,u,l,f,a[p+12],11,-421815835),f=y(f,h,u,l,a[p+15],16,530742520),u=g(u,l=y(l,f,h,u,a[p+2],23,-995338651),f,h,a[p+0],6,-198630844),h=g(h,u,l,f,a[p+7],10,1126891415),f=g(f,h,u,l,a[p+14],15,-1416354905),l=g(l,f,h,u,a[p+5],21,-57434055),u=g(u,l,f,h,a[p+12],6,1700485571),h=g(h,u,l,f,a[p+3],10,-1894986606),f=g(f,h,u,l,a[p+10],15,-1051523),l=g(l,f,h,u,a[p+1],21,-2054922799),u=g(u,l,f,h,a[p+8],6,1873313359),h=g(h,u,l,f,a[p+15],10,-30611744),f=g(f,h,u,l,a[p+6],15,-1560198380),l=g(l,f,h,u,a[p+13],21,1309151649),u=g(u,l,f,h,a[p+4],6,-145523070),h=g(h,u,l,f,a[p+11],10,-1120210379),f=g(f,h,u,l,a[p+2],15,718787259),l=g(l,f,h,u,a[p+9],21,-343485551),u=u+v>>>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<<s|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<<s|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<<s|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<<s|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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e){return u="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},u(e)}var l=e.exports=function(e,t){var n=arguments.length>2&&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<e.length&&"!"===e.charAt(r);r++)t=!t,n++;n&&(this.pattern=e.substr(n)),this.negate=t}}},{key:"matchOne",value:function(e,t,n){var r=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,s=0,i=e.length,a=t.length;o<i&&s<a;o++,s++){this.debug("matchOne loop");var c,u=t[s],l=e[o];if(this.debug(t,u,l),!1===u)return!1;if(u===h){this.debug("GLOBSTAR",[t,u,l]);var f=o,p=s+1;if(p===a){for(this.debug("** at the end");o<i;o++)if("."===e[o]||".."===e[o]||!r.dot&&"."===e[o].charAt(0))return!1;return!0}for(;f<i;){var d=e[f];if(this.debug("\nglobstar while",e,f,t,p,d),this.matchOne(e.slice(f),t.slice(p),n))return this.debug("globstar found match!",f,i,d),!0;if("."===d||".."===d||!r.dot&&"."===d.charAt(0)){this.debug("dot detected!",e,f,t,p);break}this.debug("globstar swallow a segment, and continue"),f++}return!(!n||(this.debug("\n>>> 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<e.length&&(c=e.charAt(x));x++)if(this.debug("%s\t%s %s %j",e,x,u,c),f){if("/"===c)return!1;v[c]&&(u+="\\"),u+=c,f=!1}else switch(c){case"/":return!1;case"\\":N(),f=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,x,u,c),w){this.debug(" in class"),"!"===c&&x===O+1&&(c="^"),u+=c;continue}this.debug("call clearStateChar %j",o),N(),o=c,r.noext&&N();continue;case"(":if(w){u+="(";continue}if(!o){u+="\\(";continue}p.push({type:o,start:x-1,reStart:u.length,open:d[o].open,close:d[o].close}),u+="!"===o?"(?:(?!(?:":"(?:",this.debug("plType %j %j",o,u),o=!1;continue;case")":if(w||!p.length){u+="\\)";continue}N(),l=!0,i=p.pop(),u+=i.close,"!"===i.type&&g.push(i),i.reEnd=u.length;continue;case"|":if(w||!p.length){u+="\\|";continue}N(),u+="|";continue;case"[":if(N(),w){u+="\\"+c;continue}w=!0,O=x,E=u.length,u+=c;continue;case"]":if(x===O+1||!w){u+="\\"+c;continue}s=e.substring(O+1,x);try{RegExp("["+s+"]")}catch(e){a=this.parse(s,A),u=u.substr(0,E)+"\\["+a[0]+"\\]",l=l||a[1],w=!1;continue}l=!0,w=!1,u+=c;continue;default:N(),!v[c]||"^"===c&&w||(u+="\\"),u+=c}for(w&&(s=e.substr(O+1),a=this.parse(s,A),u=u.substr(0,E)+"\\["+a[0],l=l||a[1]),i=p.pop();i;i=p.pop()){var T=void 0;T=u.slice(i.reStart+i.open.length),this.debug("setting tail",u,i),T=T.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,n){return n||(n="\\"),t+t+n+"|"})),this.debug("tail=%j\n %s",T,T,i,u);var I="*"===i.type?y:"?"===i.type?m:"\\"+i.type;l=!0,u=u.slice(0,i.reStart)+I+"\\("+T}N(),f&&(u+="\\\\");for(var j=b[u.charAt(0)],C=g.length-1;C>-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;B<M;B++)D=D.replace(/\)[+*?]?/,"");u=R+P+(_=D)+(""===_&&t!==A?"$":"")+$}if(""!==u&&l&&(u="(?=.)"+u),j&&(u=k+u),t===A)return[u,l];if(!l)return e.replace(/\\(.)/g,"$1");var U=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+u+"$",U),{_glob:e,_src:u})}catch(e){return new RegExp("$.")}}},{key:"makeRe",value:function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,n=t.noglobstar?y:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=t.nocase?"i":"",o=e.map((function(e){return e=e.map((function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===h?h:e._src})).reduce((function(e,t){return e[e.length-1]===h&&t===h||e.push(t),e}),[]),e.forEach((function(t,r){t===h&&e[r-1]!==h&&(0===r?e.length>1?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<o.length;i++){var a=o[i],c=e;if(n.matchBase&&1===a.length&&(c=[r]),this.matchOne(c,a,t))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}}],[{key:"defaults",value:function(e){return l.defaults(e).Minimatch}}]),e}();l.Minimatch=k},3637:(e,t,n)=>{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<a.length;c++){var l=s+"{"+o.body+"}"+a[c];n.push(l)}else{var g,v,b=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),E=b||w,O=o.body.indexOf(",")>=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;A<S&&(N*=-1,x=m);var T=g.some(p);v=[];for(var I=S;x(I,A);I+=N){var j;if(w)"\\"===(j=String.fromCharCode(I))&&(j="");else if(j=String(I),T){var C=k-j.length;if(C>0){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<g.length;R++)v.push.apply(v,y(g[R],!1))}for(R=0;R<v.length;R++)for(c=0;c<a.length;c++)l=s+v[R]+a[c],(!t||E||l)&&n.push(l)}return n}},2421:e=>{"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;c<s;c++){var u=i(c);if("object"===t(u))return u.v}return e}function c(e,t){return e.length===t+1}e.exports={set:function(e,n,r){if("object"!=t(e)||null===e)return e;if(void 0===n)return e;if("number"==typeof n)return e[n]=r,e[n];try{return a(e,n,(function(e,t,n,o){if(e===Reflect.getPrototypeOf({}))throw new i("Attempting to mutate Object.prototype");if(!e[t]){var s=Number.isInteger(Number(n[o+1])),a="+"===n[o+1];e[t]=s||a?[]:{}}return c(n,o)&&(e[t]=r),e[t]}))}catch(t){if(t instanceof i)throw t;return e}},get:function(e,n){if("object"!=t(e)||null===e)return e;if(void 0===n)return e;if("number"==typeof n)return e[n];try{return a(e,n,(function(e,t){return e[t]}))}catch(t){return e}},has:function(e,n){var r=arguments.length>2&&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<e.length;r++){var o=e[r];o&&"."!==o&&(".."===o?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(o))}return n}var a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,c={};function u(e){return a.exec(e).slice(1)}c.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-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<arguments.length;t++){var n=arguments[t];if(!s(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return c.normalize(e)},c.relative=function(e,t){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=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<s;a++)if(r[a]!==o[a]){i=a;break}var u=[];for(a=i;a<r.length;a++)u.push("..");return(u=u.concat(o.slice(i))).join("/")},c._makeLong=function(e){return e},c.dirname=function(e){var t=u(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},c.basename=function(e,t){var n=u(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},c.extname=function(e){return u(e)[3]},c.format=function(e){if(!o.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!s(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));return(e.dir?e.dir+c.sep:"")+(e.base||"")},c.parse=function(e){if(!s(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=u(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,t[1].length-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},c.sep="/",c.delimiter=":",e.exports=c},1361:(e,t)=>{"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;r<e.length;r++){var o=e[r];if("string"!=typeof o)throw new TypeError("Url must be a string. Received "+o);""!==o&&(r>0&&(o=o.replace(/^[\/]+/,"")),o=r<e.length-1?o.replace(/[\/]+$/,""):o.replace(/[\/]+$/,"/"),t.push(o))}var s=t.join("/"),i=(s=s.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return i.shift()+(i.length>0?"?":"")+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<w.length;S++)"function"!=typeof(l=w[S])?(u=l[0],m=l[1],u!=u?O[m]=e:"string"==typeof u?~(f="@"===u?e.lastIndexOf(u):e.indexOf(u))&&("number"==typeof l[2]?(O[m]=e.slice(0,f),e=e.slice(f+l[2])):(O[m]=e.slice(f),e=e.slice(0,f))):(f=u.exec(e))&&(O[m]=f[1],e=e.slice(0,f.index)),O[m]=O[m]||r&&l[3]&&t[m]||"",l[4]&&(O[m]=O[m].toLowerCase())):e=l(e,O);n&&(O.query=n(O.query)),r&&t.slashes&&"/"!==O.pathname.charAt(0)&&(""!==O.pathname||""!==t.pathname)&&(O.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],s=!1,i=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),i++):i&&(0===r&&(s=!0),n.splice(r,1),i--);return s&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(O.pathname,t.pathname)),"/"!==O.pathname.charAt(0)&&g(O.protocol)&&(O.pathname="/"+O.pathname),s(O.port,O.protocol)||(O.host=O.hostname,O.port=""),O.username=O.password="",O.auth&&(~(f=O.auth.indexOf(":"))?(O.username=O.auth.slice(0,f),O.username=encodeURIComponent(decodeURIComponent(O.username)),O.password=O.auth.slice(f+1),O.password=encodeURIComponent(decodeURIComponent(O.password))):O.username=encodeURIComponent(decodeURIComponent(O.auth)),O.auth=O.password?O.username+":"+O.password:O.username),O.origin="file:"!==O.protocol&&g(O.protocol)&&O.host?O.protocol+"//"+O.host:"null",O.href=O.toString()}b.prototype={set:function(e,t,n){var r=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||i.parse)(t)),r[e]=t;break;case"port":r[e]=t,s(t,r.protocol)?t&&(r.host=r.hostname+":"+t):(r.host=r.hostname,r[e]="");break;case"hostname":r[e]=t,r.port&&(t+=":"+r.port),r.host=t;break;case"host":r[e]=t,l.test(t)?(t=t.split(":"),r.port=t.pop(),r.hostname=t.join(":")):(r.hostname=t,r.port="");break;case"protocol":r.protocol=t.toLowerCase(),r.slashes=!n;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";r[e]=t.charAt(0)!==o?o+t:t}else r[e]=t;break;case"username":case"password":r[e]=encodeURIComponent(t);break;case"auth":var a=t.indexOf(":");~a?(r.username=t.slice(0,a),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=t.slice(a+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(t))}for(var c=0;c<d.length;c++){var u=d[c];u[4]&&(r[u[1]]=r[u[1]].toLowerCase())}return r.auth=r.password?r.username+":"+r.password:r.username,r.origin="file:"!==r.protocol&&g(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r},toString:function(e){e&&"function"==typeof e||(e=i.stringify);var t,n=this,r=n.host,s=n.protocol;s&&":"!==s.charAt(s.length-1)&&(s+=":");var a=s+(n.protocol&&n.slashes||g(n.protocol)?"//":"");return n.username?(a+=n.username,n.password&&(a+=":"+n.password),a+="@"):n.password?(a+=":"+n.password,a+="@"):"file:"!==n.protocol&&g(n.protocol)&&!r&&"/"!==n.pathname&&(a+="@"),(":"===r[r.length-1]||l.test(n.hostname)&&!n.port)&&(r+=":"),a+=r+n.pathname,(t="object"===o(n.query)?e(n.query):n.query)&&(a+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(a+=n.hash),a}},b.extractProtocol=v,b.location=y,b.trimLeft=p,b.qs=i,e.exports=b},6930:()=>{},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;n<e;n++)t[n]=arguments[n];return s()(t.reduce((function(e,t,n){return(0===n||"/"!==t||"/"===t&&"/"!==e[e.length-1])&&e.push(t),e}),[]))}var d=r(9104),m=r(9243),y=r.n(m),g="abcdef0123456789";function v(e,t){var n=e.url.replace("//",""),r=-1==n.indexOf("/")?"/":n.slice(n.indexOf("/")),o=e.method?e.method.toUpperCase():"GET",s=!!/(^|,)\s*auth\s*($|,)/.test(t.qop)&&"auth",i="00000000".concat(t.nc).slice(-8),a=function(e,t,n,r,o,s){var i=y()("".concat(t,":").concat(n,":").concat(r));return e&&"md5-sess"===e.toLowerCase()?y()("".concat(i,":").concat(o,":").concat(s)):i}(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce),c=y()("".concat(o,":").concat(r)),u=s?y()("".concat(a,":").concat(t.nonce,":").concat(i,":").concat(t.cnonce,":").concat(s,":").concat(c)):y()("".concat(a,":").concat(t.nonce,":").concat(c)),l={username:t.username,realm:t.realm,nonce:t.nonce,uri:r,qop:s,response:u,nc:i,cnonce:t.cnonce,algorithm:t.algorithm,opaque:t.opaque},f=[];for(var h in l)l[h]&&("qop"===h||"nc"===h||"algorithm"===h?f.push("".concat(h,"=").concat(l[h])):f.push("".concat(h,'="').concat(l[h],'"')));return"Digest ".concat(f.join(", "))}var b,w,E=r(9146);function O(e){return(0,E.decode)(e)}function S(e,t,n,r){switch(e.authType){case b.Digest:e.digest=function(e,t){return{username:e,password:t,nc:0,algorithm:"md5",hasDigestAuth:!1}}(t,n);break;case b.None:break;case b.Password:e.headers.Authorization=function(e,t){var n,r=(n="".concat(e,":").concat(t),(0,E.encode)(n));return"Basic ".concat(r)}(t,n);break;case b.Token:e.headers.Authorization="".concat((o=r).token_type," ").concat(o.access_token);break;default:throw new d.Layerr({info:{code:w.InvalidAuthType}},"Invalid auth type: ".concat(e.authType))}var o}!function(e){e.Digest="digest",e.None="none",e.Password="password",e.Token="token"}(b||(b={})),function(e){e.DataTypeNoLength="data-type-no-length",e.InvalidAuthType="invalid-auth-type",e.InvalidOutputFormat="invalid-output-format",e.LinkUnsupportedAuthType="link-unsupported-auth"}(w||(w={}));var A=r(5056),k=r.n(A),N=r(9254),x=r.n(N),T=null;function I(){return T||(T=new(x())),T}function j(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return C(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)?C(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function L(e){return L="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},L(e)}function R(e){return function(e){if("object"!==L(e)||null===e||"[object Object]"!=Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e)?Object.assign({},e):Object.setPrototypeOf(Object.assign({},e),Object.getPrototypeOf(e))}function P(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=null,o=[].concat(t);o.length>0;){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;n<e;n++)t[n]=arguments[n];if(0===t.length)return{};var r={};return t.reduce((function(e,t){return Object.keys(t).forEach((function(n){var o=n.toLowerCase();r.hasOwnProperty(o)?e[r[o]]=t[n]:(r[o]=n,e[n]=t[n])})),e}),{})}(t.headers,r.headers||{},n.headers||{}),void 0!==n.data&&(r.data=n.data),n.signal&&(r.signal=n.signal),t.httpAgent&&(r.httpAgent=t.httpAgent),t.httpsAgent&&(r.httpsAgent=t.httpsAgent),t.digest&&(r._digest=t.digest),"boolean"==typeof t.withCredentials&&(r.withCredentials=t.withCredentials),t.maxContentLength&&(r.maxContentLength=t.maxContentLength),t.maxBodyLength&&(r.maxBodyLength=t.maxBodyLength),n.hasOwnProperty("onUploadProgress")&&(r.onUploadProgress=n.onUploadProgress),n.hasOwnProperty("onDownloadProgress")&&(r.onDownloadProgress=n.onDownloadProgress),r.validateStatus=function(){return!0},r}function D(e){if(!e._digest)return $(e);var t=e._digest;return delete e._digest,t.hasDigestAuth&&(e=P(e,{headers:{Authorization:v(e,t)}})),$(e).then((function(n){if(401==n.status){if(t.hasDigestAuth=function(e,t){var n=e.headers["www-authenticate"]||"";if("digest"!==n.split(/\s/)[0].toLowerCase())return!1;for(var r=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;;){var o=r.exec(n);if(!o)break;t[o[1]]=o[2]||o[3]}return t.nc+=1,t.cnonce=function(){for(var e="",t=0;t<32;++t)e="".concat(e).concat(g[Math.floor(Math.random()*g.length)]);return e}(),!0}(n,t),t.hasDigestAuth)return $(e=P(e,{headers:{Authorization:v(e,t)}})).then((function(e){return 401==e.status?t.hasDigestAuth=!1:t.nc++,e}))}else t.nc++;return n}))}var B=r(3e3),U=r.n(B);function F(e){var t=new Error("".concat(arguments.length>1&&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;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(K.apply(this,e))}catch(e){return Promise.reject(e)}}),H=r(8819),Y=r(2421),X=r.n(Y);function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function z(e){return z="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},z(e)}function Z(e,t){var n=arguments.length>2&&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;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}((function(e,t){var n=arguments.length>2&&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;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}function ae(){}function ce(e,t){if(!t)return e&&e.then?e.then(ae):Promise.resolve()}var ue="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function le(e,t,n){if(!e.s){if(n instanceof fe){if(!n.s)return void(n.o=le.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(le.bind(null,e,t),le.bind(null,e,2));e.s=t,e.v=n;var r=e.o;r&&r(e)}}var fe=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var s=1&o?t:n;if(s){try{le(r,1,s(this.v))}catch(e){le(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?le(r,1,t?t(o):o):n?le(r,1,n(o)):le(r,2,o)}catch(e){le(r,2,e)}},r},e}();function he(e){return e instanceof fe&&1&e.s}function pe(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 de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach((function(t){me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ye=ie((function(e,t){var n=arguments.length>2&&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;u<e.length;u++)c.push(e[u]);return function(e,t,n){var r,o,s=-1;return function i(a){try{for(;++s<e.length&&(!n||!n());)if((a=t(s))&&a.then){if(!he(a))return void a.then(i,o||(o=le.bind(null,r=new fe,2)));a=a.v}r?le(r,1,a):r=a}catch(e){le(r||(r=new fe),2,e)}}(),r}(c,(function(e){return t(c[e])}),n)}(r,(function(r){return function(e,t){var n=e();return n&&n.then?n.then(t):t(n)}((function(){if(o)return ce(ge(e,r,de(de({},n),{},{recursive:!1})))}),(function(){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 se(oe(e,r),(function(e){if("directory"!==e.type)throw new Error("Path includes a file: ".concat(t))}))}),(function(t){var s=t;return function(){if(404===s.status)return o=!0,ce(ge(e,r,de(de({},n),{},{recursive:!1})));throw t}()}))}))}),(function(){return!1}))})),ge=ie((function(e,t){var n=arguments.length>2&&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;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}((function(e,t){var n=arguments.length>2&&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;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}((function(e,t,n){var r,o;return n.url||(n.url=p(e.remoteURL,l(t))),o=function(t){return q(e,t),t},(r=D(M(n,e,{})))&&r.then||(r=Promise.resolve(r)),o?r.then(o):r})),Ne=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}((function(e,t){var n=arguments.length>2&&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;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}((function(e,t){var n=arguments.length>2&&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;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}((function(e,t){var n=arguments.length>2&&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;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}var Ce=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:"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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){Be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);for(var r in n)n.hasOwnProperty(r)&&(n[r]&&"object"===Me(n[r])&&-1===r.indexOf(":")?(n["".concat(t,":").concat(r)]=Fe(n[r],t),delete n[r]):!1===/^@_/.test(r)&&(n["".concat(t,":").concat(r)]=n[r],delete n[r]));return n}function qe(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function Ve(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}var Ke=Ve((function(e,t,n){var r=arguments.length>3&&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);n<t;n++)r[n]=e[n];return r}function Ye(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var Xe=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}((function(e){var t=arguments.length>1&&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;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}((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:"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;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}((function(e,t,n){var r=arguments.length>3&&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;n<o;n++)t.push(arguments[n]);return t}function o(e,t,n){var r=t===e.head?new a(n,null,t,e):new a(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function s(e,t){e.tail=new a(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function i(e,t){e.head=new a(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function a(e,t,n,r){if(!(this instanceof a))return new a(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=r,r.Node=a,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)s(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},r.prototype.map=function(e,t){t=t||this;for(var n=new r,o=this.head;null!==o;)n.push(e.call(t,o.value,this)),o=o.next;return n},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r,o=this.tail;null!==o;)n.push(e.call(t,o.value,this)),o=o.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)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(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var o=0,s=this.head;null!==s&&o<e;o++)s=s.next;for(;null!==s&&o<t;o++,s=s.next)n.push(s.value);return n},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.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<e;r++)s=s.next;var i=[];for(r=0;s&&r<t;r++)i.push(s.value),s=this.removeNode(s);null===s&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(r=0;r<n.length;r++)s=o(this,s,n[r]);return i},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(49602)(r)}catch(e){}},42649:(e,t,n)=>{"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;t<n;++t){const n=o[t],s=r(e,o,String(t),n);void 0===s?delete o[t]:s!==n&&(o[t]=s)}else if(o instanceof Map)for(const t of Array.from(o.keys())){const n=o.get(t),s=r(e,o,t,n);void 0===s?o.delete(t):s!==n&&o.set(t,s)}else if(o instanceof Set)for(const t of Array.from(o)){const n=r(e,o,t,t);void 0===n?o.delete(t):n!==t&&(o.delete(t),o.add(n))}else for(const[t,n]of Object.entries(o)){const s=r(e,o,t,n);void 0===s?delete o[t]:s!==n&&(o[t]=s)}return e.call(t,n,o)}n.d(t,{i:()=>r})},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<n;){const r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(0===t)return{line:0,col:e};return{line:t,col:e-this.lineStarts[t-1]+1}}}}},46334:(e,t,n)=>{"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<h.length;++r){const o=h[r],i=h[r+1]||e.length;0===o?E=`\n${t}${e.slice(0,i)}`:(n===s&&p[o]&&(E+=`${e[o]}\\`),E+=`\n${t}${e.slice(o+1,i)}`)}return E}function a(e,t){let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t}},12657:(e,t,n)=>{"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<t.items.length;++e){const o=N(e,t.items[e],n,r);if("number"==typeof o)e=o-1;else{if(o===O)return O;o===A&&(t.items.splice(e,1),e-=1)}}}else if(m(t)){r=Object.freeze(r.concat(t));const e=N("key",t.key,n,r);if(e===O)return O;e===A&&(t.key=null);const o=N("value",t.value,n,r);if(o===O)return O;o===A&&(t.value=null)}return o}async function x(e,t){const n=I(t);if(p(e)){await T(null,e.contents,n,Object.freeze([e]))===A&&(e.contents=null)}else await T(null,e,n,Object.freeze([]))}async function T(e,t,n,r){const o=await j(e,t,n,r);if(b(o)||m(o))return C(e,r,o),T(e,o,n,r);if("symbol"!=typeof o)if(v(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){const o=await T(e,t.items[e],n,r);if("number"==typeof o)e=o-1;else{if(o===O)return O;o===A&&(t.items.splice(e,1),e-=1)}}}else if(m(t)){r=Object.freeze(r.concat(t));const e=await T("key",t.key,n,r);if(e===O)return O;e===A&&(t.key=null);const o=await T("value",t.value,n,r);if(o===O)return O;o===A&&(t.value=null)}return o}function I(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function j(e,t,n,r){return"function"==typeof n?n(e,t,r):d(t)?n.Map?.(e,t,r):g(t)?n.Seq?.(e,t,r):m(t)?n.Pair?.(e,t,r):y(t)?n.Scalar?.(e,t,r):h(t)?n.Alias?.(e,t,r):void 0}function C(e,t,n){const r=t[t.length-1];if(v(r))r.items[e]=n;else if(m(r))"key"===e?r.key=n:r.value=n;else{if(!p(r)){const e=h(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}r.contents=n}}k.BREAK=O,k.SKIP=S,k.REMOVE=A,x.BREAK=O,x.SKIP=S,x.REMOVE=A;const L={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};class R{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},R.defaultYaml,e),this.tags=Object.assign({},R.defaultTags,t)}clone(){const e=new R(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new R(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:R.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},R.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:R.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},R.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;return t(6,`Unsupported YAML version ${e}`,/^\d+\.\d+$/.test(e)),!1}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){const n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==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.length<o)e+=1;else{for(i+=n.slice(a,e)+"\n\n";"\\"===n[e+2]&&"n"===n[e+3]&&'"'!==n[e+4];)i+="\n",e+=2;i+=s," "===n[e+2]&&(i+="\\"),e+=1,a=e+1}break;default:e+=1}return i=a?i+n.slice(a):n,r?i:(0,Y.pf)(i,s,Y.Bu,X(t,!1))}function Z(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return z(e,t);const n=t.indent||(J(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?r:(0,Y.pf)(r,n,Y.WS,X(t,!1))}function Q(e,t){const{singleQuote:n}=t.options;let r;if(!1===n)r=z;else{const t=e.includes('"'),o=e.includes("'");r=t&&!o?Z:o&&!t?z:n?Z:z}return r(e,t)}function ee({comment:e,type:t,value:n},r,o,s){const{blockQuote:i,commentString:a,lineWidth:c}=r.options;if(!i||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Q(n,r);const u=r.indent||(r.forceBlockIndent||J(n)?" ":""),l="literal"===i||"folded"!==i&&t!==F.BLOCK_FOLDED&&(t===F.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;const r=t-n,o=e.length;if(o<=r)return!1;for(let t=0,n=0;t<o;++t)if("\n"===e[t]){if(t-n>r)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<n.length;++m){const e=n[m];if(" "===e)y=!0;else{if("\n"!==e)break;g=m}}let v=n.substring(0,g<m?g+1:m);v&&(n=n.substring(v.length),v=v.replace(/\n+/g,`$&${u}`));let b=(l?"|":">")+(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&&n<r&&"!"===k[n+1]&&(n=k.indexOf(" ",n+1)),(-1===n||r<n)&&(t=!0)}t||(N=`\n${n.indent}`)}}else""!==k&&"\n"!==k[0]||(N="");return S+=N+k,n.inFlow?A&&r&&r():w&&!A?S+=(0,H.yr)(S,n.indent,u(w)):O&&o&&o(),S}(this,e,t,n):JSON.stringify(this)}}function le(e,t,n){return(t.inFlow??e.flow?he:fe)(e,t,n)}function fe({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:s,onChompKeep:i,onComment:a}){const{indent:c,options:{commentString:u}}=n,l=Object.assign({},n,{indent:s,type:null});let f=!1;const h=[];for(let e=0;e<t.length;++e){const o=t[e];let i=null;if(b(o))!f&&o.spaceBefore&&h.push(""),pe(n,h,o.commentBefore,f),o.comment&&(i=o.comment);else if(m(o)){const e=b(o.key)?o.key:null;e&&(!f&&e.spaceBefore&&h.push(""),pe(n,h,e.commentBefore,f))}f=!1;let a=re(o,l,(()=>i=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;e<h.length;++e){const t=h[e];p+=t?`\n${c}${t}`:"\n"}}return e?(p+="\n"+(0,H.YU)(u(e),c),a&&a()):f&&i&&i(),p}function he({comment:e,items:t},n,{flowChars:r,itemIndent:o,onComment:s}){const{indent:i,indentStep:a,flowCollectionPadding:c,options:{commentString:u}}=n;o+=a;const l=Object.assign({},n,{indent:o,inFlow:!0,type:null});let f=!1,h=0;const p=[];for(let e=0;e<t.length;++e){const r=t[e];let s=null;if(b(r))r.spaceBefore&&p.push(""),pe(n,p,r.commentBefore,!1),r.comment&&(s=r.comment);else if(m(r)){const e=b(r.key)?r.key:null;e&&(e.spaceBefore&&p.push(""),pe(n,p,e.commentBefore,!1),e.comment&&(f=!0));const t=b(r.value)?r.value:null;t?(t.comment&&(s=t.comment),t.commentBefore&&(f=!0)):null==r.value&&e&&e.comment&&(s=e.comment)}s&&(f=!0);let i=re(r,l,(()=>s=null));e<t.length-1&&(i+=","),s&&(i+=(0,H.yr)(i,o,u(s))),!f&&(p.length>h||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<this.items.length}set(e,t){const n=ve(e);if("number"!=typeof n)throw new Error(`Expected a valid index, not ${e}.`);const r=this.items[n];y(r)&&U(t)?r.value=t:this.items[n]=t}toJSON(e,t){const n=[];t?.onCreate&&t.onCreate(n);let r=0;for(const e of this.items)n.push(B(e,String(r++),t));return n}toString(e,t,n){return e?le(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}}function ve(e){let t=y(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(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;e<t.length;++e)n[e]=t.charCodeAt(e);return n}return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,o,s){const i=n;let a;if("function"==typeof Buffer)a=i instanceof Buffer?i.toString("base64"):Buffer.from(i.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<i.length;++t)e+=String.fromCharCode(i[t]);a=btoa(e)}}if(t||(t=F.BLOCK_LITERAL),t!==F.QUOTE_DOUBLE){const e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(a.length/e),o=new Array(n);for(let t=0,r=0;t<n;++t,r+=e)o[t]=a.substr(r,e);a=o.join(t===F.BLOCK_LITERAL?"\n":" ")}return te({comment:e,type:t,value:a},r,o,s)}};function De(e,t){if(g(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!m(r)){if(d(r)){r.items.length>1&&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.key<t.key?-1:e.key>t.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.start<g.found.offset-1024&&o(y.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const a=h?e(n,h,g,o):t(n,i,f,null,g,o);n.schema.compat&&(0,kt.j)(r.indent,h,o),i=a.range[2];const u=new ue(y,a);n.options.keepSourceTokens&&(u.srcToken=c),s.items.push(u)}else{d&&o(y.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),g.comment&&(y.comment?y.comment+="\n"+g.comment:y.comment=g.comment);const e=new ue(y);n.options.keepSourceTokens&&(e.srcToken=c),s.items.push(e)}}return a&&a<i&&o(a,"IMPOSSIBLE","Map comment with trailing content"),s.range=[r.offset,i,a??i],s}(e,t,n,o);break;case"block-seq":s=function({composeNode:e,composeEmptyNode:t},n,r,o){const s=new ge(n.schema);n.atRoot&&(n.atRoot=!1);let i=r.offset,a=null;for(const{start:c,value:u}of r.items){const l=(0,St.i)(c,{indicator:"seq-item-ind",next:u,offset:i,onError:o,startOnNewline:!0});if(!l.found){if(!(l.anchor||l.tag||u)){a=l.end,l.comment&&(s.comment=l.comment);continue}u&&"block-seq"===u.type?o(l.end,"BAD_INDENT","All sequence items must start at the same column"):o(i,"MISSING_CHAR","Sequence item without - indicator")}const f=u?e(n,u,l,o):t(n,l.end,c,null,l,o);n.schema.compat&&(0,kt.j)(r.indent,u,o),i=f.range[2],s.items.push(f)}return s.range=[r.offset,i,a??i],s}(e,t,n,o);break;case"flow-collection":s=function({composeNode:e,composeEmptyNode:t},n,r,o){const s="{"===r.start.source,i=s?"flow map":"flow sequence",a=s?new me(n.schema):new ge(n.schema);a.flow=!0;const c=n.atRoot;c&&(n.atRoot=!1);let u=r.offset+r.start.source.length;for(let c=0;c<r.items.length;++c){const l=r.items[c],{start:f,key:h,sep:p,value:d}=l,y=(0,St.i)(f,{flow:i,indicator:"explicit-key-ind",next:h??p?.[0],offset:u,onError:o,startOnNewline:!1});if(!y.found){if(!(y.anchor||y.tag||p||d)){0===c&&y.comma?o(y.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${i}`):c<r.items.length-1&&o(y.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${i}`),y.comment&&(a.comment?a.comment+="\n"+y.comment:a.comment=y.comment),u=y.end;continue}!s&&n.options.strict&&(0,At.Y)(h)&&o(h,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===c)y.comma&&o(y.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${i}`);else if(y.comma||o(y.start,"MISSING_CHAR",`Missing , between ${i} items`),y.comment){let e="";e:for(const t of f)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=a.items[a.items.length-1];m(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,y.comment=y.comment.substring(e.length+1)}}if(s||p||y.found){const r=y.end,c=h?e(n,h,y,o):t(n,r,f,null,y,o);jt(h)&&o(c.range,"BLOCK_IN_FLOW",It);const m=(0,St.i)(p??[],{flow:i,indicator:"map-value-ind",next:d,offset:c.range[2],onError:o,startOnNewline:!1});if(m.found){if(!s&&!y.found&&n.options.strict){if(p)for(const e of p){if(e===m.found)break;if("newline"===e.type){o(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}y.start<m.found.offset-1024&&o(m.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else d&&("source"in d&&d.source&&":"===d.source[0]?o(d,"MISSING_CHAR",`Missing space after : in ${i}`):o(m.start,"MISSING_CHAR",`Missing , or : between ${i} items`));const g=d?e(n,d,m,o):m.found?t(n,m.end,p,null,m,o):null;g?jt(d)&&o(g.range,"BLOCK_IN_FLOW",It):m.comment&&(c.comment?c.comment+="\n"+m.comment:c.comment=m.comment);const v=new ue(c,g);if(n.options.keepSourceTokens&&(v.srcToken=l),s){const e=a;Nt(n,e.items,c)&&o(r,"DUPLICATE_KEY","Map keys must be unique"),e.items.push(v)}else{const e=new me(n.schema);e.flow=!0,e.items.push(v),a.items.push(e)}u=g?g.range[2]:m.end}else{const r=d?e(n,d,y,o):t(n,y.end,p,null,y,o);a.items.push(r),u=r.range[2],jt(d)&&o(r.range,"BLOCK_IN_FLOW",It)}}const l=s?"}":"]",[f,...h]=r.end;let p=u;if(f&&f.source===l)p=f.offset+f.source.length;else{const e=i[0].toUpperCase()+i.substring(1);o(u,c?"MISSING_CHAR":"BAD_INDENT",c?`${e} must end with a ${l}`:`${e} in block collection must be sufficiently indented and end with a ${l}`),f&&1!==f.source.length&&h.unshift(f)}if(h.length>0){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<o.length;++t){const n=o[t];if(a||"-"!==n&&"+"!==n){const r=Number(n);!i&&r?i=r:-1===c&&(c=e+t)}else a=n}-1!==c&&r(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let u=!1,l="",f=o.length;for(let e=1;e<t.length;++e){const o=t[e];switch(o.type){case"space":u=!0;case"newline":f+=o.source.length;break;case"comment":if(n&&!u){r(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters")}f+=o.source.length,l=o.source.substring(1);break;case"error":r(o,"UNEXPECTED_TOKEN",o.message),f+=o.source.length;break;default:{r(o,"UNEXPECTED_TOKEN",`Unexpected token in block scalar header: ${o.type}`);const e=o.source;e&&"string"==typeof e&&(f+=e.length)}}}return{mode:s,indent:i,chomp:a,comment:l,length:f}}(e,t,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const s=">"===o.mode?F.BLOCK_FOLDED:F.BLOCK_LITERAL,i=e.source?function(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),o=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let e=1;e<t.length;e+=2)o.push([t[e],t[e+1]]);return o}(e.source):[];let a=i.length;for(let e=i.length-1;e>=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;e<a;++e){const[t,r]=i[e];if(""!==r&&"\r"!==r){if(t.length<c){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(u+t.length,"MISSING_CHAR",e)}0===o.indent&&(c=t.length),l=e;break}0===o.indent&&t.length>c&&(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;e<l;++e)f+=i[e][0].slice(c)+"\n";for(let e=l;e<a;++e){let[t,r]=i[e];u+=t.length+r.length+1;const a="\r"===r[r.length-1];if(a&&(r=r.slice(0,-1)),r&&t.length<c){const e=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(u-r.length-(a?2:1),"BAD_INDENT",e),t=""}s===F.BLOCK_LITERAL?(f+=h+t.slice(c)+r,h="\n"):t.length>c||"\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;e<i.length;++e)f+="\n"+i[e][0].slice(c);"\n"!==f[f.length-1]&&(f+="\n");break;default:f+="\n"}const d=r+o.length+e.source.length;return{value:f,type:s,comment:o.comment,range:[r,d,d]}}function Rt(e,t,n){const{offset:r,type:o,source:s,end:i}=e;let a,c;const u=(e,t,o)=>n(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;r<e.length-1;++r){const o=e[r];if("\r"!==o||"\n"!==e[r+1])if("\n"===o){const{fold:t,offset:o}=_t(e,r);n+=t,r=o}else if("\\"===o){let o=e[++r];const s=$t[o];if(s)n+=s;else if("\n"===o)for(o=e[r+1];" "===o||"\t"===o;)o=e[1+ ++r];else if("\r"===o&&"\n"===e[r+1])for(o=e[1+ ++r];" "===o||"\t"===o;)o=e[1+ ++r];else if("x"===o||"u"===o||"U"===o){const s={x:2,u:4,U:8}[o];n+=Mt(e,r+1,s,t),r+=s}else{const o=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),n+=o}}else if(" "===o||"\t"===o){const t=r;let s=e[r+1];for(;" "===s||"\t"===s;)s=e[1+ ++r];"\n"===s||"\r"===s&&"\n"===e[r+2]||(n+=r>t?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("(.*?)(?<![ \t])[ \t]*\r?\n","sy"),n=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch(e){t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let o=r[1],s=" ",i=t.lastIndex;for(n.lastIndex=i;r=n.exec(e);)""===r[1]?"\n"===s?o+=s:s="\n":(o+=s+r[1],s=" "),i=n.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=i,r=a.exec(e),o+s+(r?.[1]??"")}function _t(e,t){let n="",r=e[t+1];for(;!(" "!==r&&"\t"!==r&&"\n"!==r&&"\r"!==r||"\r"===r&&"\n"!==e[t+2]);)"\n"===r&&(n+="\n"),r=e[(t+=1)+1];return n||(n=" "),{fold:n,offset:t}}const $t={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function Mt(e,t,n,r){const o=e.substr(t,n),s=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(s)){const o=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}return String.fromCodePoint(s)}function Dt(e,t,n,r){const{value:o,type:s,comment:i,range:a}="block-scalar"===t.type?Lt(t,e.options.strict,r):Rt(t,e.options.strict,r),c=n?e.directives.tagName(n.source,(e=>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<e.length;++o){const s=e[o];switch(s[0]){case"#":t+=(""===t?"":r?"\n\n":"\n")+(s.substring(1)||" "),n=!0,r=!1;break;case"%":"#"!==e[o+1]?.[0]&&(o+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class Gt{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{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<s.items.length;++t){const r=nn(Object.freeze(e.concat([[o,t]])),s.items[t],n);if("number"==typeof r)t=r-1;else{if(r===Zt)return Zt;r===en&&(s.items.splice(t,1),t-=1)}}"function"==typeof r&&"key"===o&&(r=r(t,e))}}return"function"==typeof r?r(t,e):r}tn.BREAK=Zt,tn.SKIP=Qt,tn.REMOVE=en,tn.itemAtPath=(e,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"<BOM>";case on:return"<DOC>";case sn:return"<FLOW_END>";case an:return"<SCALAR>";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&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if(e[0]===rn&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length;const n=e.indexOf("#");if(-1!==n){const r=e[n-1];" "!==r&&"\t"!==r||(t=n-1)}for(;;){const n=e[t-1];if(" "!==n&&"\t"!==n)break;t-=1}const r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield on,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const e=this.peek(3);if("---"===e&&hn(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if("..."===e&&hn(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.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<this.indentNext&&"#"!==r[0]||0===n&&(r.startsWith("---")||r.startsWith("..."))&&hn(r[3])){if(!(n===this.indentNext-1&&1===this.flowLevel&&("]"===r[0]||"}"===r[0])))return this.flowLevel=0,yield sn,yield*this.parseLineStart()}let o=0;for(;","===r[o];)o+=(yield*this.pushCount(1)),o+=(yield*this.pushSpaces(!0)),this.flowKey=!1;switch(o+=(yield*this.pushIndicators()),r[o]){case void 0:return"flow";case"#":return yield*this.pushCount(r.length-o),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(gn),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const e=this.charAt(1);if(this.flowKey||hn(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}const n=this.buffer.substring(0,t);let r=n.indexOf("\n",this.pos);if(-1!==r){for(;-1!==r;){const e=this.continueScalar(r+1);if(-1===e)break;r=n.indexOf("\n",e)}-1!==r&&(t=r-("\r"===n[r-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"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<e.length;++n)if(e[n].type===t)return!0;return!1}function En(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function On(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Sn(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function An(e){if(0===e.length)return[];let t=e.length;e:for(;--t>=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<t.indent)))&&("document"===e.type?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}else{const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}}*stream(){switch(this.type){case"directive-line":return void(yield{type:"directive",offset:this.offset,source:this.source});case"byte-order-mark":case"space":case"comment":case"newline":return void(yield this.sourceToken);case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};return"doc-start"===this.type&&e.start.push(this.sourceToken),void this.stack.push(e)}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":return void(-1!==En(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken));case"anchor":case"tag":case"space":case"comment":case"newline":return void e.start.push(this.sourceToken)}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){const t=An(Sn(this.peek(2)));let n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];const r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":return void e.props.push(this.sourceToken);case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,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.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(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}if(this.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;r<t.sep.length;++r){const o=t.sep[r];switch(o.type){case"newline":n.push(r);break;case"space":break;case"comment":o.indent>e.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}}]);