@redocly/reference-docs 2.9.2 → 2.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,52 +2,52 @@ var mr=Math.pow;/*!
2
2
  * Redocly Reference Docs
3
3
  * (c) Copyright 2018 Redocly LLC, all rights reserved.
4
4
  * -------------------------------------------------------------
5
- * Version: "2.9.2"
6
- */(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{66419:(h,I,o)=>{h.exports=o(27698)},77766:(h,I,o)=>{h.exports=o(8065)},72119:(h,I,o)=>{h.exports=o(57448)},20116:(h,I,o)=>{h.exports=o(11955)},94473:(h,I,o)=>{h.exports=o(61577)},78580:(h,I,o)=>{h.exports=o(33778)},2991:(h,I,o)=>{h.exports=o(61798)},3649:(h,I,o)=>{h.exports=o(82073)},92762:(h,I,o)=>{h.exports=o(2348)},59340:(h,I,o)=>{h.exports=o(8933)},51942:(h,I,o)=>{h.exports=o(63383)},26295:(h,I,o)=>{h.exports=o(86209)},86902:(h,I,o)=>{h.exports=o(23059)},93476:(h,I,o)=>{h.exports=o(27460)},52424:(h,I,o)=>{h.exports=o(72010)},53592:(h,I,o)=>{h.exports=o(27385)},78363:(h,I,o)=>{h.exports=o(81522)},19996:(h,I,o)=>{h.exports=o(32209)},30699:(h,I,o)=>{h.exports=o(44442)},28834:(h,I,o)=>{h.exports=o(57152)},95683:(h,I,o)=>{h.exports=o(69447)},95238:(h,I,o)=>{h.exports=o(81493)},189:(h,I,o)=>{h.exports=o(76094)},32752:(h,I,o)=>{h.exports=o(70573)},44341:(h,I,o)=>{h.exports=o(73685)},58377:(h,I,o)=>{h.exports=o(27533)},13038:(h,I,o)=>{h.exports=o(39057)},63263:(h,I,o)=>{h.exports=o(84710)},24889:(h,I,o)=>{h.exports=o(74303)},89356:(h,I,o)=>{h.exports=o(93799)},79542:(h,I,o)=>{h.exports=o(55122)},69798:(h,I,o)=>{h.exports=o(29531)},13535:(h,I,o)=>{h.exports=o(10856)},83863:(h,I,o)=>{h.exports=o(31524)},51446:(h,I,o)=>{h.exports=o(86600)},23882:(h,I,o)=>{h.exports=o(9759)},63109:(h,I,o)=>{h.exports=o(35666)},79742:(h,I)=>{"use strict";I.byteLength=g,I.toByteArray=D,I.fromByteArray=_;for(var o=[],c=[],v=typeof Uint8Array!="undefined"?Uint8Array:Array,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,b=x.length;d<b;++d)o[d]=x[d],c[x.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63;function A(z){var k=z.length;if(k%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Q=z.indexOf("=");Q===-1&&(Q=k);var M=Q===k?0:4-Q%4;return[Q,M]}function g(z){var k=A(z),Q=k[0],M=k[1];return(Q+M)*3/4-M}function L(z,k,Q){return(k+Q)*3/4-Q}function D(z){var k,Q=A(z),M=Q[0],O=Q[1],V=new v(L(z,M,O)),X=0,W=O>0?M-4:M,K;for(K=0;K<W;K+=4)k=c[z.charCodeAt(K)]<<18|c[z.charCodeAt(K+1)]<<12|c[z.charCodeAt(K+2)]<<6|c[z.charCodeAt(K+3)],V[X++]=k>>16&255,V[X++]=k>>8&255,V[X++]=k&255;return O===2&&(k=c[z.charCodeAt(K)]<<2|c[z.charCodeAt(K+1)]>>4,V[X++]=k&255),O===1&&(k=c[z.charCodeAt(K)]<<10|c[z.charCodeAt(K+1)]<<4|c[z.charCodeAt(K+2)]>>2,V[X++]=k>>8&255,V[X++]=k&255),V}function B(z){return o[z>>18&63]+o[z>>12&63]+o[z>>6&63]+o[z&63]}function U(z,k,Q){for(var M,O=[],V=k;V<Q;V+=3)M=(z[V]<<16&16711680)+(z[V+1]<<8&65280)+(z[V+2]&255),O.push(B(M));return O.join("")}function _(z){for(var k,Q=z.length,M=Q%3,O=[],V=16383,X=0,W=Q-M;X<W;X+=V)O.push(U(z,X,X+V>W?W:X+V));return M===1?(k=z[Q-1],O.push(o[k>>2]+o[k<<4&63]+"==")):M===2&&(k=(z[Q-2]<<8)+z[Q-1],O.push(o[k>>10]+o[k>>4&63]+o[k<<2&63]+"=")),O.join("")}},50706:(h,I,o)=>{var c=o(48764).Buffer;(function(){"use strict";function v(x){var d;return x instanceof c?d=x:d=c.from(x.toString(),"binary"),d.toString("base64")}h.exports=v})()},48764:(h,I,o)=>{"use strict";/*!
5
+ * Version: "2.9.3"
6
+ */(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{66419:(h,I,o)=>{h.exports=o(27698)},77766:(h,I,o)=>{h.exports=o(8065)},72119:(h,I,o)=>{h.exports=o(57448)},20116:(h,I,o)=>{h.exports=o(11955)},94473:(h,I,o)=>{h.exports=o(61577)},78580:(h,I,o)=>{h.exports=o(33778)},2991:(h,I,o)=>{h.exports=o(61798)},3649:(h,I,o)=>{h.exports=o(82073)},92762:(h,I,o)=>{h.exports=o(2348)},59340:(h,I,o)=>{h.exports=o(8933)},51942:(h,I,o)=>{h.exports=o(63383)},26295:(h,I,o)=>{h.exports=o(86209)},86902:(h,I,o)=>{h.exports=o(23059)},93476:(h,I,o)=>{h.exports=o(27460)},52424:(h,I,o)=>{h.exports=o(72010)},53592:(h,I,o)=>{h.exports=o(27385)},78363:(h,I,o)=>{h.exports=o(81522)},19996:(h,I,o)=>{h.exports=o(32209)},30699:(h,I,o)=>{h.exports=o(44442)},28834:(h,I,o)=>{h.exports=o(57152)},95683:(h,I,o)=>{h.exports=o(69447)},95238:(h,I,o)=>{h.exports=o(81493)},189:(h,I,o)=>{h.exports=o(76094)},32752:(h,I,o)=>{h.exports=o(70573)},44341:(h,I,o)=>{h.exports=o(73685)},58377:(h,I,o)=>{h.exports=o(27533)},13038:(h,I,o)=>{h.exports=o(39057)},63263:(h,I,o)=>{h.exports=o(84710)},24889:(h,I,o)=>{h.exports=o(74303)},89356:(h,I,o)=>{h.exports=o(93799)},79542:(h,I,o)=>{h.exports=o(55122)},69798:(h,I,o)=>{h.exports=o(29531)},13535:(h,I,o)=>{h.exports=o(10856)},83863:(h,I,o)=>{h.exports=o(31524)},51446:(h,I,o)=>{h.exports=o(86600)},23882:(h,I,o)=>{h.exports=o(9759)},63109:(h,I,o)=>{h.exports=o(35666)},79742:(h,I)=>{"use strict";I.byteLength=g,I.toByteArray=N,I.fromByteArray=_;for(var o=[],c=[],v=typeof Uint8Array!="undefined"?Uint8Array:Array,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,b=x.length;d<b;++d)o[d]=x[d],c[x.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63;function S(H){var k=H.length;if(k%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var X=H.indexOf("=");X===-1&&(X=k);var R=X===k?0:4-X%4;return[X,R]}function g(H){var k=S(H),X=k[0],R=k[1];return(X+R)*3/4-R}function L(H,k,X){return(k+X)*3/4-X}function N(H){var k,X=S(H),R=X[0],C=X[1],V=new v(L(H,R,C)),J=0,q=C>0?R-4:R,Q;for(Q=0;Q<q;Q+=4)k=c[H.charCodeAt(Q)]<<18|c[H.charCodeAt(Q+1)]<<12|c[H.charCodeAt(Q+2)]<<6|c[H.charCodeAt(Q+3)],V[J++]=k>>16&255,V[J++]=k>>8&255,V[J++]=k&255;return C===2&&(k=c[H.charCodeAt(Q)]<<2|c[H.charCodeAt(Q+1)]>>4,V[J++]=k&255),C===1&&(k=c[H.charCodeAt(Q)]<<10|c[H.charCodeAt(Q+1)]<<4|c[H.charCodeAt(Q+2)]>>2,V[J++]=k>>8&255,V[J++]=k&255),V}function B(H){return o[H>>18&63]+o[H>>12&63]+o[H>>6&63]+o[H&63]}function j(H,k,X){for(var R,C=[],V=k;V<X;V+=3)R=(H[V]<<16&16711680)+(H[V+1]<<8&65280)+(H[V+2]&255),C.push(B(R));return C.join("")}function _(H){for(var k,X=H.length,R=X%3,C=[],V=16383,J=0,q=X-R;J<q;J+=V)C.push(j(H,J,J+V>q?q:J+V));return R===1?(k=H[X-1],C.push(o[k>>2]+o[k<<4&63]+"==")):R===2&&(k=(H[X-2]<<8)+H[X-1],C.push(o[k>>10]+o[k>>4&63]+o[k<<2&63]+"=")),C.join("")}},50706:(h,I,o)=>{var c=o(48764).Buffer;(function(){"use strict";function v(x){var d;return x instanceof c?d=x:d=c.from(x.toString(),"binary"),d.toString("base64")}h.exports=v})()},48764:(h,I,o)=>{"use strict";/*!
7
7
  * The buffer module from node.js, for the browser.
8
8
  *
9
9
  * @author Feross Aboukhadijeh <http://feross.org>
10
10
  * @license MIT
11
- */var c=o(79742),v=o(80645),x=o(5826);I.Buffer=g,I.SlowBuffer=O,I.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=o.g.TYPED_ARRAY_SUPPORT!==void 0?o.g.TYPED_ARRAY_SUPPORT:d(),I.kMaxLength=b();function d(){try{var de=new Uint8Array(1);return de.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},de.foo()===42&&typeof de.subarray=="function"&&de.subarray(1,1).byteLength===0}catch($){return!1}}function b(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function A(de,$){if(b()<$)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(de=new Uint8Array($),de.__proto__=g.prototype):(de===null&&(de=new g($)),de.length=$),de}function g(de,$,Y){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(de,$,Y);if(typeof de=="number"){if(typeof $=="string")throw new Error("If encoding is specified then the first argument must be a string");return U(this,de)}return L(this,de,$,Y)}g.poolSize=8192,g._augment=function(de){return de.__proto__=g.prototype,de};function L(de,$,Y,we){if(typeof $=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&$ instanceof ArrayBuffer?k(de,$,Y,we):typeof $=="string"?_(de,$,Y):Q(de,$)}g.from=function(de,$,Y){return L(null,de,$,Y)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&g[Symbol.species]===g&&Object.defineProperty(g,Symbol.species,{value:null,configurable:!0}));function D(de){if(typeof de!="number")throw new TypeError('"size" argument must be a number');if(de<0)throw new RangeError('"size" argument must not be negative')}function B(de,$,Y,we){return D($),$<=0?A(de,$):Y!==void 0?typeof we=="string"?A(de,$).fill(Y,we):A(de,$).fill(Y):A(de,$)}g.alloc=function(de,$,Y){return B(null,de,$,Y)};function U(de,$){if(D($),de=A(de,$<0?0:M($)|0),!g.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<$;++Y)de[Y]=0;return de}g.allocUnsafe=function(de){return U(null,de)},g.allocUnsafeSlow=function(de){return U(null,de)};function _(de,$,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!g.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var we=V($,Y)|0;de=A(de,we);var ke=de.write($,Y);return ke!==we&&(de=de.slice(0,ke)),de}function z(de,$){var Y=$.length<0?0:M($.length)|0;de=A(de,Y);for(var we=0;we<Y;we+=1)de[we]=$[we]&255;return de}function k(de,$,Y,we){if($.byteLength,Y<0||$.byteLength<Y)throw new RangeError("'offset' is out of bounds");if($.byteLength<Y+(we||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&we===void 0?$=new Uint8Array($):we===void 0?$=new Uint8Array($,Y):$=new Uint8Array($,Y,we),g.TYPED_ARRAY_SUPPORT?(de=$,de.__proto__=g.prototype):de=z(de,$),de}function Q(de,$){if(g.isBuffer($)){var Y=M($.length)|0;return de=A(de,Y),de.length===0||$.copy(de,0,0,Y),de}if($){if(typeof ArrayBuffer!="undefined"&&$.buffer instanceof ArrayBuffer||"length"in $)return typeof $.length!="number"||Mt($.length)?A(de,0):z(de,$);if($.type==="Buffer"&&x($.data))return z(de,$.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function M(de){if(de>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return de|0}function O(de){return+de!=de&&(de=0),g.alloc(+de)}g.isBuffer=function($){return!!($!=null&&$._isBuffer)},g.compare=function($,Y){if(!g.isBuffer($)||!g.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if($===Y)return 0;for(var we=$.length,ke=Y.length,be=0,Ae=Math.min(we,ke);be<Ae;++be)if($[be]!==Y[be]){we=$[be],ke=Y[be];break}return we<ke?-1:ke<we?1:0},g.isEncoding=function($){switch(String($).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function($,Y){if(!x($))throw new TypeError('"list" argument must be an Array of Buffers');if($.length===0)return g.alloc(0);var we;if(Y===void 0)for(Y=0,we=0;we<$.length;++we)Y+=$[we].length;var ke=g.allocUnsafe(Y),be=0;for(we=0;we<$.length;++we){var Ae=$[we];if(!g.isBuffer(Ae))throw new TypeError('"list" argument must be an Array of Buffers');Ae.copy(ke,be),be+=Ae.length}return ke};function V(de,$){if(g.isBuffer(de))return de.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(de)||de instanceof ArrayBuffer))return de.byteLength;typeof de!="string"&&(de=""+de);var Y=de.length;if(Y===0)return 0;for(var we=!1;;)switch($){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return St(de).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Gt(de).length;default:if(we)return St(de).length;$=(""+$).toLowerCase(),we=!0}}g.byteLength=V;function X(de,$,Y){var we=!1;if(($===void 0||$<0)&&($=0),$>this.length||((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)||(Y>>>=0,$>>>=0,Y<=$))return"";for(de||(de="utf8");;)switch(de){case"hex":return rt(this,$,Y);case"utf8":case"utf-8":return ie(this,$,Y);case"ascii":return Ne(this,$,Y);case"latin1":case"binary":return Re(this,$,Y);case"base64":return ue(this,$,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,$,Y);default:if(we)throw new TypeError("Unknown encoding: "+de);de=(de+"").toLowerCase(),we=!0}}g.prototype._isBuffer=!0;function W(de,$,Y){var we=de[$];de[$]=de[Y],de[Y]=we}g.prototype.swap16=function(){var $=this.length;if($%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<$;Y+=2)W(this,Y,Y+1);return this},g.prototype.swap32=function(){var $=this.length;if($%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Y=0;Y<$;Y+=4)W(this,Y,Y+3),W(this,Y+1,Y+2);return this},g.prototype.swap64=function(){var $=this.length;if($%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Y=0;Y<$;Y+=8)W(this,Y,Y+7),W(this,Y+1,Y+6),W(this,Y+2,Y+5),W(this,Y+3,Y+4);return this},g.prototype.toString=function(){var $=this.length|0;return $===0?"":arguments.length===0?ie(this,0,$):X.apply(this,arguments)},g.prototype.equals=function($){if(!g.isBuffer($))throw new TypeError("Argument must be a Buffer");return this===$?!0:g.compare(this,$)===0},g.prototype.inspect=function(){var $="",Y=I.INSPECT_MAX_BYTES;return this.length>0&&($=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&($+=" ... ")),"<Buffer "+$+">"},g.prototype.compare=function($,Y,we,ke,be){if(!g.isBuffer($))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),we===void 0&&(we=$?$.length:0),ke===void 0&&(ke=0),be===void 0&&(be=this.length),Y<0||we>$.length||ke<0||be>this.length)throw new RangeError("out of range index");if(ke>=be&&Y>=we)return 0;if(ke>=be)return-1;if(Y>=we)return 1;if(Y>>>=0,we>>>=0,ke>>>=0,be>>>=0,this===$)return 0;for(var Ae=be-ke,T=we-Y,Ie=Math.min(Ae,T),H=this.slice(ke,be),C=$.slice(Y,we),P=0;P<Ie;++P)if(H[P]!==C[P]){Ae=H[P],T=C[P];break}return Ae<T?-1:T<Ae?1:0};function K(de,$,Y,we,ke){if(de.length===0)return-1;if(typeof Y=="string"?(we=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=ke?0:de.length-1),Y<0&&(Y=de.length+Y),Y>=de.length){if(ke)return-1;Y=de.length-1}else if(Y<0)if(ke)Y=0;else return-1;if(typeof $=="string"&&($=g.from($,we)),g.isBuffer($))return $.length===0?-1:Z(de,$,Y,we,ke);if(typeof $=="number")return $=$&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ke?Uint8Array.prototype.indexOf.call(de,$,Y):Uint8Array.prototype.lastIndexOf.call(de,$,Y):Z(de,[$],Y,we,ke);throw new TypeError("val must be string, number or Buffer")}function Z(de,$,Y,we,ke){var be=1,Ae=de.length,T=$.length;if(we!==void 0&&(we=String(we).toLowerCase(),we==="ucs2"||we==="ucs-2"||we==="utf16le"||we==="utf-16le")){if(de.length<2||$.length<2)return-1;be=2,Ae/=2,T/=2,Y/=2}function Ie(N,ee){return be===1?N[ee]:N.readUInt16BE(ee*be)}var H;if(ke){var C=-1;for(H=Y;H<Ae;H++)if(Ie(de,H)===Ie($,C===-1?0:H-C)){if(C===-1&&(C=H),H-C+1===T)return C*be}else C!==-1&&(H-=H-C),C=-1}else for(Y+T>Ae&&(Y=Ae-T),H=Y;H>=0;H--){for(var P=!0,ne=0;ne<T;ne++)if(Ie(de,H+ne)!==Ie($,ne)){P=!1;break}if(P)return H}return-1}g.prototype.includes=function($,Y,we){return this.indexOf($,Y,we)!==-1},g.prototype.indexOf=function($,Y,we){return K(this,$,Y,we,!0)},g.prototype.lastIndexOf=function($,Y,we){return K(this,$,Y,we,!1)};function ce(de,$,Y,we){Y=Number(Y)||0;var ke=de.length-Y;we?(we=Number(we),we>ke&&(we=ke)):we=ke;var be=$.length;if(be%2!=0)throw new TypeError("Invalid hex string");we>be/2&&(we=be/2);for(var Ae=0;Ae<we;++Ae){var T=parseInt($.substr(Ae*2,2),16);if(isNaN(T))return Ae;de[Y+Ae]=T}return Ae}function te(de,$,Y,we){return wt(St($,de.length-Y),de,Y,we)}function ae(de,$,Y,we){return wt(Wt($),de,Y,we)}function me(de,$,Y,we){return ae(de,$,Y,we)}function ge(de,$,Y,we){return wt(Gt($),de,Y,we)}function he(de,$,Y,we){return wt(Ut($,de.length-Y),de,Y,we)}g.prototype.write=function($,Y,we,ke){if(Y===void 0)ke="utf8",we=this.length,Y=0;else if(we===void 0&&typeof Y=="string")ke=Y,we=this.length,Y=0;else if(isFinite(Y))Y=Y|0,isFinite(we)?(we=we|0,ke===void 0&&(ke="utf8")):(ke=we,we=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var be=this.length-Y;if((we===void 0||we>be)&&(we=be),$.length>0&&(we<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");ke||(ke="utf8");for(var Ae=!1;;)switch(ke){case"hex":return ce(this,$,Y,we);case"utf8":case"utf-8":return te(this,$,Y,we);case"ascii":return ae(this,$,Y,we);case"latin1":case"binary":return me(this,$,Y,we);case"base64":return ge(this,$,Y,we);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,$,Y,we);default:if(Ae)throw new TypeError("Unknown encoding: "+ke);ke=(""+ke).toLowerCase(),Ae=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(de,$,Y){return $===0&&Y===de.length?c.fromByteArray(de):c.fromByteArray(de.slice($,Y))}function ie(de,$,Y){Y=Math.min(de.length,Y);for(var we=[],ke=$;ke<Y;){var be=de[ke],Ae=null,T=be>239?4:be>223?3:be>191?2:1;if(ke+T<=Y){var Ie,H,C,P;switch(T){case 1:be<128&&(Ae=be);break;case 2:Ie=de[ke+1],(Ie&192)==128&&(P=(be&31)<<6|Ie&63,P>127&&(Ae=P));break;case 3:Ie=de[ke+1],H=de[ke+2],(Ie&192)==128&&(H&192)==128&&(P=(be&15)<<12|(Ie&63)<<6|H&63,P>2047&&(P<55296||P>57343)&&(Ae=P));break;case 4:Ie=de[ke+1],H=de[ke+2],C=de[ke+3],(Ie&192)==128&&(H&192)==128&&(C&192)==128&&(P=(be&15)<<18|(Ie&63)<<12|(H&63)<<6|C&63,P>65535&&P<1114112&&(Ae=P))}}Ae===null?(Ae=65533,T=1):Ae>65535&&(Ae-=65536,we.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),we.push(Ae),ke+=T}return je(we)}var Me=4096;function je(de){var $=de.length;if($<=Me)return String.fromCharCode.apply(String,de);for(var Y="",we=0;we<$;)Y+=String.fromCharCode.apply(String,de.slice(we,we+=Me));return Y}function Ne(de,$,Y){var we="";Y=Math.min(de.length,Y);for(var ke=$;ke<Y;++ke)we+=String.fromCharCode(de[ke]&127);return we}function Re(de,$,Y){var we="";Y=Math.min(de.length,Y);for(var ke=$;ke<Y;++ke)we+=String.fromCharCode(de[ke]);return we}function rt(de,$,Y){var we=de.length;(!$||$<0)&&($=0),(!Y||Y<0||Y>we)&&(Y=we);for(var ke="",be=$;be<Y;++be)ke+=Ft(de[be]);return ke}function Qe(de,$,Y){for(var we=de.slice($,Y),ke="",be=0;be<we.length;be+=2)ke+=String.fromCharCode(we[be]+we[be+1]*256);return ke}g.prototype.slice=function($,Y){var we=this.length;$=~~$,Y=Y===void 0?we:~~Y,$<0?($+=we,$<0&&($=0)):$>we&&($=we),Y<0?(Y+=we,Y<0&&(Y=0)):Y>we&&(Y=we),Y<$&&(Y=$);var ke;if(g.TYPED_ARRAY_SUPPORT)ke=this.subarray($,Y),ke.__proto__=g.prototype;else{var be=Y-$;ke=new g(be,void 0);for(var Ae=0;Ae<be;++Ae)ke[Ae]=this[Ae+$]}return ke};function Je(de,$,Y){if(de%1!=0||de<0)throw new RangeError("offset is not uint");if(de+$>Y)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function($,Y,we){$=$|0,Y=Y|0,we||Je($,Y,this.length);for(var ke=this[$],be=1,Ae=0;++Ae<Y&&(be*=256);)ke+=this[$+Ae]*be;return ke},g.prototype.readUIntBE=function($,Y,we){$=$|0,Y=Y|0,we||Je($,Y,this.length);for(var ke=this[$+--Y],be=1;Y>0&&(be*=256);)ke+=this[$+--Y]*be;return ke},g.prototype.readUInt8=function($,Y){return Y||Je($,1,this.length),this[$]},g.prototype.readUInt16LE=function($,Y){return Y||Je($,2,this.length),this[$]|this[$+1]<<8},g.prototype.readUInt16BE=function($,Y){return Y||Je($,2,this.length),this[$]<<8|this[$+1]},g.prototype.readUInt32LE=function($,Y){return Y||Je($,4,this.length),(this[$]|this[$+1]<<8|this[$+2]<<16)+this[$+3]*16777216},g.prototype.readUInt32BE=function($,Y){return Y||Je($,4,this.length),this[$]*16777216+(this[$+1]<<16|this[$+2]<<8|this[$+3])},g.prototype.readIntLE=function($,Y,we){$=$|0,Y=Y|0,we||Je($,Y,this.length);for(var ke=this[$],be=1,Ae=0;++Ae<Y&&(be*=256);)ke+=this[$+Ae]*be;return be*=128,ke>=be&&(ke-=Math.pow(2,8*Y)),ke},g.prototype.readIntBE=function($,Y,we){$=$|0,Y=Y|0,we||Je($,Y,this.length);for(var ke=Y,be=1,Ae=this[$+--ke];ke>0&&(be*=256);)Ae+=this[$+--ke]*be;return be*=128,Ae>=be&&(Ae-=Math.pow(2,8*Y)),Ae},g.prototype.readInt8=function($,Y){return Y||Je($,1,this.length),this[$]&128?(255-this[$]+1)*-1:this[$]},g.prototype.readInt16LE=function($,Y){Y||Je($,2,this.length);var we=this[$]|this[$+1]<<8;return we&32768?we|4294901760:we},g.prototype.readInt16BE=function($,Y){Y||Je($,2,this.length);var we=this[$+1]|this[$]<<8;return we&32768?we|4294901760:we},g.prototype.readInt32LE=function($,Y){return Y||Je($,4,this.length),this[$]|this[$+1]<<8|this[$+2]<<16|this[$+3]<<24},g.prototype.readInt32BE=function($,Y){return Y||Je($,4,this.length),this[$]<<24|this[$+1]<<16|this[$+2]<<8|this[$+3]},g.prototype.readFloatLE=function($,Y){return Y||Je($,4,this.length),v.read(this,$,!0,23,4)},g.prototype.readFloatBE=function($,Y){return Y||Je($,4,this.length),v.read(this,$,!1,23,4)},g.prototype.readDoubleLE=function($,Y){return Y||Je($,8,this.length),v.read(this,$,!0,52,8)},g.prototype.readDoubleBE=function($,Y){return Y||Je($,8,this.length),v.read(this,$,!1,52,8)};function ut(de,$,Y,we,ke,be){if(!g.isBuffer(de))throw new TypeError('"buffer" argument must be a Buffer instance');if($>ke||$<be)throw new RangeError('"value" argument is out of bounds');if(Y+we>de.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function($,Y,we,ke){if($=+$,Y=Y|0,we=we|0,!ke){var be=Math.pow(2,8*we)-1;ut(this,$,Y,we,be,0)}var Ae=1,T=0;for(this[Y]=$&255;++T<we&&(Ae*=256);)this[Y+T]=$/Ae&255;return Y+we},g.prototype.writeUIntBE=function($,Y,we,ke){if($=+$,Y=Y|0,we=we|0,!ke){var be=Math.pow(2,8*we)-1;ut(this,$,Y,we,be,0)}var Ae=we-1,T=1;for(this[Y+Ae]=$&255;--Ae>=0&&(T*=256);)this[Y+Ae]=$/T&255;return Y+we},g.prototype.writeUInt8=function($,Y,we){return $=+$,Y=Y|0,we||ut(this,$,Y,1,255,0),g.TYPED_ARRAY_SUPPORT||($=Math.floor($)),this[Y]=$&255,Y+1};function pt(de,$,Y,we){$<0&&($=65535+$+1);for(var ke=0,be=Math.min(de.length-Y,2);ke<be;++ke)de[Y+ke]=($&255<<8*(we?ke:1-ke))>>>(we?ke:1-ke)*8}g.prototype.writeUInt16LE=function($,Y,we){return $=+$,Y=Y|0,we||ut(this,$,Y,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[Y]=$&255,this[Y+1]=$>>>8):pt(this,$,Y,!0),Y+2},g.prototype.writeUInt16BE=function($,Y,we){return $=+$,Y=Y|0,we||ut(this,$,Y,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[Y]=$>>>8,this[Y+1]=$&255):pt(this,$,Y,!1),Y+2};function gt(de,$,Y,we){$<0&&($=4294967295+$+1);for(var ke=0,be=Math.min(de.length-Y,4);ke<be;++ke)de[Y+ke]=$>>>(we?ke:3-ke)*8&255}g.prototype.writeUInt32LE=function($,Y,we){return $=+$,Y=Y|0,we||ut(this,$,Y,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[Y+3]=$>>>24,this[Y+2]=$>>>16,this[Y+1]=$>>>8,this[Y]=$&255):gt(this,$,Y,!0),Y+4},g.prototype.writeUInt32BE=function($,Y,we){return $=+$,Y=Y|0,we||ut(this,$,Y,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[Y]=$>>>24,this[Y+1]=$>>>16,this[Y+2]=$>>>8,this[Y+3]=$&255):gt(this,$,Y,!1),Y+4},g.prototype.writeIntLE=function($,Y,we,ke){if($=+$,Y=Y|0,!ke){var be=Math.pow(2,8*we-1);ut(this,$,Y,we,be-1,-be)}var Ae=0,T=1,Ie=0;for(this[Y]=$&255;++Ae<we&&(T*=256);)$<0&&Ie===0&&this[Y+Ae-1]!==0&&(Ie=1),this[Y+Ae]=($/T>>0)-Ie&255;return Y+we},g.prototype.writeIntBE=function($,Y,we,ke){if($=+$,Y=Y|0,!ke){var be=Math.pow(2,8*we-1);ut(this,$,Y,we,be-1,-be)}var Ae=we-1,T=1,Ie=0;for(this[Y+Ae]=$&255;--Ae>=0&&(T*=256);)$<0&&Ie===0&&this[Y+Ae+1]!==0&&(Ie=1),this[Y+Ae]=($/T>>0)-Ie&255;return Y+we},g.prototype.writeInt8=function($,Y,we){return $=+$,Y=Y|0,we||ut(this,$,Y,1,127,-128),g.TYPED_ARRAY_SUPPORT||($=Math.floor($)),$<0&&($=255+$+1),this[Y]=$&255,Y+1},g.prototype.writeInt16LE=function($,Y,we){return $=+$,Y=Y|0,we||ut(this,$,Y,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[Y]=$&255,this[Y+1]=$>>>8):pt(this,$,Y,!0),Y+2},g.prototype.writeInt16BE=function($,Y,we){return $=+$,Y=Y|0,we||ut(this,$,Y,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[Y]=$>>>8,this[Y+1]=$&255):pt(this,$,Y,!1),Y+2},g.prototype.writeInt32LE=function($,Y,we){return $=+$,Y=Y|0,we||ut(this,$,Y,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[Y]=$&255,this[Y+1]=$>>>8,this[Y+2]=$>>>16,this[Y+3]=$>>>24):gt(this,$,Y,!0),Y+4},g.prototype.writeInt32BE=function($,Y,we){return $=+$,Y=Y|0,we||ut(this,$,Y,4,2147483647,-2147483648),$<0&&($=4294967295+$+1),g.TYPED_ARRAY_SUPPORT?(this[Y]=$>>>24,this[Y+1]=$>>>16,this[Y+2]=$>>>8,this[Y+3]=$&255):gt(this,$,Y,!1),Y+4};function _e(de,$,Y,we,ke,be){if(Y+we>de.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function lt(de,$,Y,we,ke){return ke||_e(de,$,Y,4,34028234663852886e22,-34028234663852886e22),v.write(de,$,Y,we,23,4),Y+4}g.prototype.writeFloatLE=function($,Y,we){return lt(this,$,Y,!0,we)},g.prototype.writeFloatBE=function($,Y,we){return lt(this,$,Y,!1,we)};function ht(de,$,Y,we,ke){return ke||_e(de,$,Y,8,17976931348623157e292,-17976931348623157e292),v.write(de,$,Y,we,52,8),Y+8}g.prototype.writeDoubleLE=function($,Y,we){return ht(this,$,Y,!0,we)},g.prototype.writeDoubleBE=function($,Y,we){return ht(this,$,Y,!1,we)},g.prototype.copy=function($,Y,we,ke){if(we||(we=0),!ke&&ke!==0&&(ke=this.length),Y>=$.length&&(Y=$.length),Y||(Y=0),ke>0&&ke<we&&(ke=we),ke===we||$.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if(we<0||we>=this.length)throw new RangeError("sourceStart out of bounds");if(ke<0)throw new RangeError("sourceEnd out of bounds");ke>this.length&&(ke=this.length),$.length-Y<ke-we&&(ke=$.length-Y+we);var be=ke-we,Ae;if(this===$&&we<Y&&Y<ke)for(Ae=be-1;Ae>=0;--Ae)$[Ae+Y]=this[Ae+we];else if(be<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ae=0;Ae<be;++Ae)$[Ae+Y]=this[Ae+we];else Uint8Array.prototype.set.call($,this.subarray(we,we+be),Y);return be},g.prototype.fill=function($,Y,we,ke){if(typeof $=="string"){if(typeof Y=="string"?(ke=Y,Y=0,we=this.length):typeof we=="string"&&(ke=we,we=this.length),$.length===1){var be=$.charCodeAt(0);be<256&&($=be)}if(ke!==void 0&&typeof ke!="string")throw new TypeError("encoding must be a string");if(typeof ke=="string"&&!g.isEncoding(ke))throw new TypeError("Unknown encoding: "+ke)}else typeof $=="number"&&($=$&255);if(Y<0||this.length<Y||this.length<we)throw new RangeError("Out of range index");if(we<=Y)return this;Y=Y>>>0,we=we===void 0?this.length:we>>>0,$||($=0);var Ae;if(typeof $=="number")for(Ae=Y;Ae<we;++Ae)this[Ae]=$;else{var T=g.isBuffer($)?$:St(new g($,ke).toString()),Ie=T.length;for(Ae=0;Ae<we-Y;++Ae)this[Ae+Y]=T[Ae%Ie]}return this};var yt=/[^+\/0-9A-Za-z-_]/g;function dt(de){if(de=It(de).replace(yt,""),de.length<2)return"";for(;de.length%4!=0;)de=de+"=";return de}function It(de){return de.trim?de.trim():de.replace(/^\s+|\s+$/g,"")}function Ft(de){return de<16?"0"+de.toString(16):de.toString(16)}function St(de,$){$=$||1/0;for(var Y,we=de.length,ke=null,be=[],Ae=0;Ae<we;++Ae){if(Y=de.charCodeAt(Ae),Y>55295&&Y<57344){if(!ke){if(Y>56319){($-=3)>-1&&be.push(239,191,189);continue}else if(Ae+1===we){($-=3)>-1&&be.push(239,191,189);continue}ke=Y;continue}if(Y<56320){($-=3)>-1&&be.push(239,191,189),ke=Y;continue}Y=(ke-55296<<10|Y-56320)+65536}else ke&&($-=3)>-1&&be.push(239,191,189);if(ke=null,Y<128){if(($-=1)<0)break;be.push(Y)}else if(Y<2048){if(($-=2)<0)break;be.push(Y>>6|192,Y&63|128)}else if(Y<65536){if(($-=3)<0)break;be.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if(($-=4)<0)break;be.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return be}function Wt(de){for(var $=[],Y=0;Y<de.length;++Y)$.push(de.charCodeAt(Y)&255);return $}function Ut(de,$){for(var Y,we,ke,be=[],Ae=0;Ae<de.length&&!(($-=2)<0);++Ae)Y=de.charCodeAt(Ae),we=Y>>8,ke=Y%256,be.push(ke),be.push(we);return be}function Gt(de){return c.toByteArray(dt(de))}function wt(de,$,Y,we){for(var ke=0;ke<we&&!(ke+Y>=$.length||ke>=de.length);++ke)$[ke+Y]=de[ke];return ke}function Mt(de){return de!==de}},21924:(h,I,o)=>{"use strict";var c=o(40210),v=o(55559),x=v(c("String.prototype.indexOf"));h.exports=function(b,A){var g=c(b,!!A);return typeof g=="function"&&x(b,".prototype.")>-1?v(g):g}},55559:(h,I,o)=>{"use strict";var c=o(58612),v=o(40210),x=v("%Function.prototype.apply%"),d=v("%Function.prototype.call%"),b=v("%Reflect.apply%",!0)||c.call(d,x),A=v("%Object.getOwnPropertyDescriptor%",!0),g=v("%Object.defineProperty%",!0),L=v("%Math.max%");if(g)try{g({},"a",{value:1})}catch(B){g=null}h.exports=function(U){var _=b(c,d,arguments);if(A&&g){var z=A(_,"length");z.configurable&&g(_,"length",{value:1+L(0,U.length-(arguments.length-1))})}return _};var D=function(){return b(c,x,arguments)};g?g(h.exports,"apply",{value:D}):h.exports.apply=D},82801:(h,I,o)=>{(function(c){c(o(4631))})(function(c){var v={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=c.Pos;c.defineOption("autoCloseBrackets",!1,function(M,O,V){V&&V!=c.Init&&(M.removeKeyMap(b),M.state.closeBrackets=null),O&&(A(d(O,"pairs")),M.state.closeBrackets=O,M.addKeyMap(b))});function d(M,O){return O=="pairs"&&typeof M=="string"?M:typeof M=="object"&&M[O]!=null?M[O]:v[O]}var b={Backspace:D,Enter:B};function A(M){for(var O=0;O<M.length;O++){var V=M.charAt(O),X="'"+V+"'";b[X]||(b[X]=g(V))}}A(v.pairs+"`");function g(M){return function(O){return z(O,M)}}function L(M){var O=M.state.closeBrackets;if(!O||O.override)return O;var V=M.getModeAt(M.getCursor());return V.closeBrackets||O}function D(M){var O=L(M);if(!O||M.getOption("disableInput"))return c.Pass;for(var V=d(O,"pairs"),X=M.listSelections(),W=0;W<X.length;W++){if(!X[W].empty())return c.Pass;var K=k(M,X[W].head);if(!K||V.indexOf(K)%2!=0)return c.Pass}for(var W=X.length-1;W>=0;W--){var Z=X[W].head;M.replaceRange("",x(Z.line,Z.ch-1),x(Z.line,Z.ch+1),"+delete")}}function B(M){var O=L(M),V=O&&d(O,"explode");if(!V||M.getOption("disableInput"))return c.Pass;for(var X=M.listSelections(),W=0;W<X.length;W++){if(!X[W].empty())return c.Pass;var K=k(M,X[W].head);if(!K||V.indexOf(K)%2!=0)return c.Pass}M.operation(function(){var Z=M.lineSeparator()||`
12
- `;M.replaceSelection(Z+Z,null),U(M,-1),X=M.listSelections();for(var ce=0;ce<X.length;ce++){var te=X[ce].head.line;M.indentLine(te,null,!0),M.indentLine(te+1,null,!0)}})}function U(M,O){for(var V=[],X=M.listSelections(),W=0,K=0;K<X.length;K++){var Z=X[K];Z.head==M.getCursor()&&(W=K);var ce=Z.head.ch||O>0?{line:Z.head.line,ch:Z.head.ch+O}:{line:Z.head.line-1};V.push({anchor:ce,head:ce})}M.setSelections(V,W)}function _(M){var O=c.cmpPos(M.anchor,M.head)>0;return{anchor:new x(M.anchor.line,M.anchor.ch+(O?-1:1)),head:new x(M.head.line,M.head.ch+(O?1:-1))}}function z(M,O){var V=L(M);if(!V||M.getOption("disableInput"))return c.Pass;var X=d(V,"pairs"),W=X.indexOf(O);if(W==-1)return c.Pass;for(var K=d(V,"closeBefore"),Z=d(V,"triples"),ce=X.charAt(W+1)==O,te=M.listSelections(),ae=W%2==0,me,ge=0;ge<te.length;ge++){var he=te[ge],ue=he.head,ie,Me=M.getRange(ue,x(ue.line,ue.ch+1));if(ae&&!he.empty())ie="surround";else if((ce||!ae)&&Me==O)ce&&Q(M,ue)?ie="both":Z.indexOf(O)>=0&&M.getRange(ue,x(ue.line,ue.ch+3))==O+O+O?ie="skipThree":ie="skip";else if(ce&&ue.ch>1&&Z.indexOf(O)>=0&&M.getRange(x(ue.line,ue.ch-2),ue)==O+O){if(ue.ch>2&&/\bstring/.test(M.getTokenTypeAt(x(ue.line,ue.ch-2))))return c.Pass;ie="addFour"}else if(ce){var je=ue.ch==0?" ":M.getRange(x(ue.line,ue.ch-1),ue);if(!c.isWordChar(Me)&&je!=O&&!c.isWordChar(je))ie="both";else return c.Pass}else if(ae&&(Me.length===0||/\s/.test(Me)||K.indexOf(Me)>-1))ie="both";else return c.Pass;if(!me)me=ie;else if(me!=ie)return c.Pass}var Ne=W%2?X.charAt(W-1):O,Re=W%2?O:X.charAt(W+1);M.operation(function(){if(me=="skip")U(M,1);else if(me=="skipThree")U(M,3);else if(me=="surround"){for(var rt=M.getSelections(),Qe=0;Qe<rt.length;Qe++)rt[Qe]=Ne+rt[Qe]+Re;M.replaceSelections(rt,"around"),rt=M.listSelections().slice();for(var Qe=0;Qe<rt.length;Qe++)rt[Qe]=_(rt[Qe]);M.setSelections(rt)}else me=="both"?(M.replaceSelection(Ne+Re,null),M.triggerElectric(Ne+Re),U(M,-1)):me=="addFour"&&(M.replaceSelection(Ne+Ne+Ne+Ne,"before"),U(M,1))})}function k(M,O){var V=M.getRange(x(O.line,O.ch-1),x(O.line,O.ch+1));return V.length==2?V:null}function Q(M,O){var V=M.getTokenAt(x(O.line,O.ch+1));return/\bstring/.test(V.type)&&V.start==O.ch&&(O.ch==0||!/\bstring/.test(M.getTokenTypeAt(O)))}})},4328:(h,I,o)=>{(function(c){c(o(4631))})(function(c){var v=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),x=c.Pos,d={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function b(U){return U&&U.bracketRegex||/[(){}[\]]/}function A(U,_,z){var k=U.getLineHandle(_.line),Q=_.ch-1,M=z&&z.afterCursor;M==null&&(M=/(^| )cm-fat-cursor($| )/.test(U.getWrapperElement().className));var O=b(z),V=!M&&Q>=0&&O.test(k.text.charAt(Q))&&d[k.text.charAt(Q)]||O.test(k.text.charAt(Q+1))&&d[k.text.charAt(++Q)];if(!V)return null;var X=V.charAt(1)==">"?1:-1;if(z&&z.strict&&X>0!=(Q==_.ch))return null;var W=U.getTokenTypeAt(x(_.line,Q+1)),K=g(U,x(_.line,Q+(X>0?1:0)),X,W,z);return K==null?null:{from:x(_.line,Q),to:K&&K.pos,match:K&&K.ch==V.charAt(0),forward:X>0}}function g(U,_,z,k,Q){for(var M=Q&&Q.maxScanLineLength||1e4,O=Q&&Q.maxScanLines||1e3,V=[],X=b(Q),W=z>0?Math.min(_.line+O,U.lastLine()+1):Math.max(U.firstLine()-1,_.line-O),K=_.line;K!=W;K+=z){var Z=U.getLine(K);if(!!Z){var ce=z>0?0:Z.length-1,te=z>0?Z.length:-1;if(!(Z.length>M))for(K==_.line&&(ce=_.ch-(z<0?1:0));ce!=te;ce+=z){var ae=Z.charAt(ce);if(X.test(ae)&&(k===void 0||(U.getTokenTypeAt(x(K,ce+1))||"")==(k||""))){var me=d[ae];if(me&&me.charAt(1)==">"==z>0)V.push(ae);else if(V.length)V.pop();else return{pos:x(K,ce),ch:ae}}}}}return K-z==(z>0?U.lastLine():U.firstLine())?!1:null}function L(U,_,z){for(var k=U.state.matchBrackets.maxHighlightLineLength||1e3,Q=z&&z.highlightNonMatching,M=[],O=U.listSelections(),V=0;V<O.length;V++){var X=O[V].empty()&&A(U,O[V].head,z);if(X&&(X.match||Q!==!1)&&U.getLine(X.from.line).length<=k){var W=X.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";M.push(U.markText(X.from,x(X.from.line,X.from.ch+1),{className:W})),X.to&&U.getLine(X.to.line).length<=k&&M.push(U.markText(X.to,x(X.to.line,X.to.ch+1),{className:W}))}}if(M.length){v&&U.state.focused&&U.focus();var K=function(){U.operation(function(){for(var Z=0;Z<M.length;Z++)M[Z].clear()})};if(_)setTimeout(K,800);else return K}}function D(U){U.operation(function(){U.state.matchBrackets.currentlyHighlighted&&(U.state.matchBrackets.currentlyHighlighted(),U.state.matchBrackets.currentlyHighlighted=null),U.state.matchBrackets.currentlyHighlighted=L(U,!1,U.state.matchBrackets)})}function B(U){U.state.matchBrackets&&U.state.matchBrackets.currentlyHighlighted&&(U.state.matchBrackets.currentlyHighlighted(),U.state.matchBrackets.currentlyHighlighted=null)}c.defineOption("matchBrackets",!1,function(U,_,z){z&&z!=c.Init&&(U.off("cursorActivity",D),U.off("focus",D),U.off("blur",B),B(U)),_&&(U.state.matchBrackets=typeof _=="object"?_:{},U.on("cursorActivity",D),U.on("focus",D),U.on("blur",B))}),c.defineExtension("matchBrackets",function(){L(this,!0)}),c.defineExtension("findMatchingBracket",function(U,_,z){return(z||typeof _=="boolean")&&(z?(z.strict=_,_=z):_=_?{strict:!0}:null),A(this,U,_)}),c.defineExtension("scanForBracket",function(U,_,z,k){return g(this,U,_,z,k)})})},71707:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v="CodeMirror-hint",x="CodeMirror-hint-active";c.showHint=function(M,O,V){if(!O)return M.showHint(V);V&&V.async&&(O.async=!0);var X={hint:O};if(V)for(var W in V)X[W]=V[W];return M.showHint(X)},c.defineExtension("showHint",function(M){M=g(this,this.getCursor("start"),M);var O=this.listSelections();if(!(O.length>1)){if(this.somethingSelected()){if(!M.hint.supportsSelection)return;for(var V=0;V<O.length;V++)if(O[V].head.line!=O[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var X=this.state.completionActive=new d(this,M);!X.options.hint||(c.signal(this,"startCompletion",this),X.update(!0))}}),c.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(M,O){if(this.cm=M,this.options=O,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var V=this;M.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var b=window.requestAnimationFrame||function(M){return setTimeout(M,1e3/60)},A=window.cancelAnimationFrame||clearTimeout;d.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&c.signal(this.data,"close"),this.widget&&this.widget.close(),c.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(M,O){var V=M.list[O],X=this;this.cm.operation(function(){V.hint?V.hint(X.cm,M,V):X.cm.replaceRange(L(V),V.from||M.from,V.to||M.to,"complete"),c.signal(M,"pick",V),X.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(A(this.debounce),this.debounce=0);var M=this.startPos;this.data&&(M=this.data.from);var O=this.cm.getCursor(),V=this.cm.getLine(O.line);if(O.line!=this.startPos.line||V.length-O.ch!=this.startLen-this.startPos.ch||O.ch<M.ch||this.cm.somethingSelected()||!O.ch||this.options.closeCharacters.test(V.charAt(O.ch-1)))this.close();else{var X=this;this.debounce=b(function(){X.update()}),this.widget&&this.widget.disable()}},update:function(M){if(this.tick!=null){var O=this,V=++this.tick;z(this.options.hint,this.cm,this.options,function(X){O.tick==V&&O.finishUpdate(X,M)})}},finishUpdate:function(M,O){this.data&&c.signal(this.data,"update");var V=this.widget&&this.widget.picked||O&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=M,M&&M.list.length&&(V&&M.list.length==1?this.pick(M,0):(this.widget=new U(this,M),c.signal(M,"shown")))}};function g(M,O,V){var X=M.options.hintOptions,W={};for(var K in Q)W[K]=Q[K];if(X)for(var K in X)X[K]!==void 0&&(W[K]=X[K]);if(V)for(var K in V)V[K]!==void 0&&(W[K]=V[K]);return W.hint.resolve&&(W.hint=W.hint.resolve(M,O)),W}function L(M){return typeof M=="string"?M:M.text}function D(M,O){var V={Up:function(){O.moveFocus(-1)},Down:function(){O.moveFocus(1)},PageUp:function(){O.moveFocus(-O.menuSize()+1,!0)},PageDown:function(){O.moveFocus(O.menuSize()-1,!0)},Home:function(){O.setFocus(0)},End:function(){O.setFocus(O.length-1)},Enter:O.pick,Tab:O.pick,Esc:O.close},X=/Mac/.test(navigator.platform);X&&(V["Ctrl-P"]=function(){O.moveFocus(-1)},V["Ctrl-N"]=function(){O.moveFocus(1)});var W=M.options.customKeys,K=W?{}:V;function Z(ae,me){var ge;typeof me!="string"?ge=function(he){return me(he,O)}:V.hasOwnProperty(me)?ge=V[me]:ge=me,K[ae]=ge}if(W)for(var ce in W)W.hasOwnProperty(ce)&&Z(ce,W[ce]);var te=M.options.extraKeys;if(te)for(var ce in te)te.hasOwnProperty(ce)&&Z(ce,te[ce]);return K}function B(M,O){for(;O&&O!=M;){if(O.nodeName.toUpperCase()==="LI"&&O.parentNode==M)return O;O=O.parentNode}}function U(M,O){this.completion=M,this.data=O,this.picked=!1;var V=this,X=M.cm,W=X.getInputField().ownerDocument,K=W.defaultView||W.parentWindow,Z=this.hints=W.createElement("ul"),ce=M.cm.options.theme;Z.className="CodeMirror-hints "+ce,this.selectedHint=O.selectedHint||0;for(var te=O.list,ae=0;ae<te.length;++ae){var me=Z.appendChild(W.createElement("li")),ge=te[ae],he=v+(ae!=this.selectedHint?"":" "+x);ge.className!=null&&(he=ge.className+" "+he),me.className=he,ge.render?ge.render(me,O,ge):me.appendChild(W.createTextNode(ge.displayText||L(ge))),me.hintId=ae}var ue=M.options.container||W.body,ie=X.cursorCoords(M.options.alignWithWord?O.from:null),Me=ie.left,je=ie.bottom,Ne=!0,Re=0,rt=0;if(ue!==W.body){var Qe=["absolute","relative","fixed"].indexOf(K.getComputedStyle(ue).position)!==-1,Je=Qe?ue:ue.offsetParent,ut=Je.getBoundingClientRect(),pt=W.body.getBoundingClientRect();Re=ut.left-pt.left-Je.scrollLeft,rt=ut.top-pt.top-Je.scrollTop}Z.style.left=Me-Re+"px",Z.style.top=je-rt+"px";var gt=K.innerWidth||Math.max(W.body.offsetWidth,W.documentElement.offsetWidth),_e=K.innerHeight||Math.max(W.body.offsetHeight,W.documentElement.offsetHeight);ue.appendChild(Z);var lt=M.options.moveOnOverlap?Z.getBoundingClientRect():new DOMRect,ht=M.options.paddingForScrollbar?Z.scrollHeight>Z.clientHeight+1:!1,yt;setTimeout(function(){yt=X.getScrollInfo()});var dt=lt.bottom-_e;if(dt>0){var It=lt.bottom-lt.top,Ft=ie.top-(ie.bottom-lt.top);if(Ft-It>0)Z.style.top=(je=ie.top-It-rt)+"px",Ne=!1;else if(It>_e){Z.style.height=_e-5+"px",Z.style.top=(je=ie.bottom-lt.top-rt)+"px";var St=X.getCursor();O.from.ch!=St.ch&&(ie=X.cursorCoords(St),Z.style.left=(Me=ie.left-Re)+"px",lt=Z.getBoundingClientRect())}}var Wt=lt.right-gt;if(ht&&(Wt+=X.display.nativeBarWidth),Wt>0&&(lt.right-lt.left>gt&&(Z.style.width=gt-5+"px",Wt-=lt.right-lt.left-gt),Z.style.left=(Me=ie.left-Wt-Re)+"px"),ht)for(var Ut=Z.firstChild;Ut;Ut=Ut.nextSibling)Ut.style.paddingRight=X.display.nativeBarWidth+"px";if(X.addKeyMap(this.keyMap=D(M,{moveFocus:function(Mt,de){V.changeActive(V.selectedHint+Mt,de)},setFocus:function(Mt){V.changeActive(Mt)},menuSize:function(){return V.screenAmount()},length:te.length,close:function(){M.close()},pick:function(){V.pick()},data:O})),M.options.closeOnUnfocus){var Gt;X.on("blur",this.onBlur=function(){Gt=setTimeout(function(){M.close()},100)}),X.on("focus",this.onFocus=function(){clearTimeout(Gt)})}X.on("scroll",this.onScroll=function(){var Mt=X.getScrollInfo(),de=X.getWrapperElement().getBoundingClientRect();yt||(yt=X.getScrollInfo());var $=je+yt.top-Mt.top,Y=$-(K.pageYOffset||(W.documentElement||W.body).scrollTop);if(Ne||(Y+=Z.offsetHeight),Y<=de.top||Y>=de.bottom)return M.close();Z.style.top=$+"px",Z.style.left=Me+yt.left-Mt.left+"px"}),c.on(Z,"dblclick",function(Mt){var de=B(Z,Mt.target||Mt.srcElement);de&&de.hintId!=null&&(V.changeActive(de.hintId),V.pick())}),c.on(Z,"click",function(Mt){var de=B(Z,Mt.target||Mt.srcElement);de&&de.hintId!=null&&(V.changeActive(de.hintId),M.options.completeOnSingleClick&&V.pick())}),c.on(Z,"mousedown",function(){setTimeout(function(){X.focus()},20)});var wt=this.getSelectedHintRange();return(wt.from!==0||wt.to!==0)&&this.scrollToActive(),c.signal(O,"select",te[this.selectedHint],Z.childNodes[this.selectedHint]),!0}U.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var M=this.completion.cm;this.completion.options.closeOnUnfocus&&(M.off("blur",this.onBlur),M.off("focus",this.onFocus)),M.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var M=this;this.keyMap={Enter:function(){M.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(M,O){if(M>=this.data.list.length?M=O?this.data.list.length-1:0:M<0&&(M=O?0:this.data.list.length-1),this.selectedHint!=M){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+x,"")),V=this.hints.childNodes[this.selectedHint=M],V.className+=" "+x,this.scrollToActive(),c.signal(this.data,"select",this.data.list[this.selectedHint],V)}},scrollToActive:function(){var M=this.getSelectedHintRange(),O=this.hints.childNodes[M.from],V=this.hints.childNodes[M.to],X=this.hints.firstChild;O.offsetTop<this.hints.scrollTop?this.hints.scrollTop=O.offsetTop-X.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+X.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var M=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-M),to:Math.min(this.data.list.length-1,this.selectedHint+M)}}};function _(M,O){if(!M.somethingSelected())return O;for(var V=[],X=0;X<O.length;X++)O[X].supportsSelection&&V.push(O[X]);return V}function z(M,O,V,X){if(M.async)M(O,X,V);else{var W=M(O,V);W&&W.then?W.then(X):X(W)}}function k(M,O){var V=M.getHelpers(O,"hint"),X;if(V.length){var W=function(K,Z,ce){var te=_(K,V);function ae(me){if(me==te.length)return Z(null);z(te[me],K,ce,function(ge){ge&&ge.list.length>0?Z(ge):ae(me+1)})}ae(0)};return W.async=!0,W.supportsSelection=!0,W}else return(X=M.getHelper(M.getCursor(),"hintWords"))?function(K){return c.hint.fromList(K,{words:X})}:c.hint.anyword?function(K,Z){return c.hint.anyword(K,Z)}:function(){}}c.registerHelper("hint","auto",{resolve:k}),c.registerHelper("hint","fromList",function(M,O){var V=M.getCursor(),X=M.getTokenAt(V),W,K=c.Pos(V.line,X.start),Z=V;X.start<V.ch&&/\w/.test(X.string.charAt(V.ch-X.start-1))?W=X.string.substr(0,V.ch-X.start):(W="",K=V);for(var ce=[],te=0;te<O.words.length;te++){var ae=O.words[te];ae.slice(0,W.length)==W&&ce.push(ae)}if(ce.length)return{list:ce,from:K,to:Z}}),c.commands.autocomplete=c.showHint;var Q={hint:c.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};c.defineOption("hintOptions",null)})},3256:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers";function x(W,K,Z){var ce=document.createElement("div");ce.className="CodeMirror-lint-tooltip cm-s-"+W.options.theme,ce.appendChild(Z.cloneNode(!0)),W.state.lint.options.selfContain?W.getWrapperElement().appendChild(ce):document.body.appendChild(ce);function te(ae){if(!ce.parentNode)return c.off(document,"mousemove",te);ce.style.top=Math.max(0,ae.clientY-ce.offsetHeight-5)+"px",ce.style.left=ae.clientX+5+"px"}return c.on(document,"mousemove",te),te(K),ce.style.opacity!=null&&(ce.style.opacity=1),ce}function d(W){W.parentNode&&W.parentNode.removeChild(W)}function b(W){!W.parentNode||(W.style.opacity==null&&d(W),W.style.opacity=0,setTimeout(function(){d(W)},600))}function A(W,K,Z,ce){var te=x(W,K,Z);function ae(){c.off(ce,"mouseout",ae),te&&(b(te),te=null)}var me=setInterval(function(){if(te)for(var ge=ce;;ge=ge.parentNode){if(ge&&ge.nodeType==11&&(ge=ge.host),ge==document.body)return;if(!ge){ae();break}}if(!te)return clearInterval(me)},400);c.on(ce,"mouseout",ae)}function g(W,K,Z){this.marked=[],this.options=K,this.timeout=null,this.hasGutter=Z,this.onMouseOver=function(ce){X(W,ce)},this.waitingFor=0}function L(W,K){return K instanceof Function?{getAnnotations:K}:((!K||K===!0)&&(K={}),K)}function D(W){var K=W.state.lint;K.hasGutter&&W.clearGutter(v);for(var Z=0;Z<K.marked.length;++Z)K.marked[Z].clear();K.marked.length=0}function B(W,K,Z,ce,te){var ae=document.createElement("div"),me=ae;return ae.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+Z,ce&&(me=ae.appendChild(document.createElement("div")),me.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),te!=!1&&c.on(me,"mouseover",function(ge){A(W,ge,K,me)}),ae}function U(W,K){return W=="error"?W:K}function _(W){for(var K=[],Z=0;Z<W.length;++Z){var ce=W[Z],te=ce.from.line;(K[te]||(K[te]=[])).push(ce)}return K}function z(W){var K=W.severity;K||(K="error");var Z=document.createElement("div");return Z.className="CodeMirror-lint-message CodeMirror-lint-message-"+K,typeof W.messageHTML!="undefined"?Z.innerHTML=W.messageHTML:Z.appendChild(document.createTextNode(W.message)),Z}function k(W,K,Z){var ce=W.state.lint,te=++ce.waitingFor;function ae(){te=-1,W.off("change",ae)}W.on("change",ae),K(W.getValue(),function(me,ge){W.off("change",ae),ce.waitingFor==te&&(ge&&me instanceof c&&(me=ge),W.operation(function(){M(W,me)}))},Z,W)}function Q(W){var K=W.state.lint,Z=K.options,ce=Z.options||Z,te=Z.getAnnotations||W.getHelper(c.Pos(0,0),"lint");if(!!te)if(Z.async||te.async)k(W,te,ce);else{var ae=te(W.getValue(),ce,W);if(!ae)return;ae.then?ae.then(function(me){W.operation(function(){M(W,me)})}):W.operation(function(){M(W,ae)})}}function M(W,K){D(W);for(var Z=W.state.lint,ce=Z.options,te=_(K),ae=0;ae<te.length;++ae){var me=te[ae];if(!!me){var ge=[];me=me.filter(function(Ne){return ge.indexOf(Ne.message)>-1?!1:ge.push(Ne.message)});for(var he=null,ue=Z.hasGutter&&document.createDocumentFragment(),ie=0;ie<me.length;++ie){var Me=me[ie],je=Me.severity;je||(je="error"),he=U(he,je),ce.formatAnnotation&&(Me=ce.formatAnnotation(Me)),Z.hasGutter&&ue.appendChild(z(Me)),Me.to&&Z.marked.push(W.markText(Me.from,Me.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+je,__annotation:Me}))}Z.hasGutter&&W.setGutterMarker(ae,v,B(W,ue,he,te[ae].length>1,Z.options.tooltips))}}ce.onUpdateLinting&&ce.onUpdateLinting(K,te,W)}function O(W){var K=W.state.lint;!K||(clearTimeout(K.timeout),K.timeout=setTimeout(function(){Q(W)},K.options.delay||500))}function V(W,K,Z){for(var ce=Z.target||Z.srcElement,te=document.createDocumentFragment(),ae=0;ae<K.length;ae++){var me=K[ae];te.appendChild(z(me))}A(W,Z,te,ce)}function X(W,K){var Z=K.target||K.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(Z.className)){for(var ce=Z.getBoundingClientRect(),te=(ce.left+ce.right)/2,ae=(ce.top+ce.bottom)/2,me=W.findMarksAt(W.coordsChar({left:te,top:ae},"client")),ge=[],he=0;he<me.length;++he){var ue=me[he].__annotation;ue&&ge.push(ue)}ge.length&&V(W,ge,K)}}c.defineOption("lint",!1,function(W,K,Z){if(Z&&Z!=c.Init&&(D(W),W.state.lint.options.lintOnChange!==!1&&W.off("change",O),c.off(W.getWrapperElement(),"mouseover",W.state.lint.onMouseOver),clearTimeout(W.state.lint.timeout),delete W.state.lint),K){for(var ce=W.getOption("gutters"),te=!1,ae=0;ae<ce.length;++ae)ce[ae]==v&&(te=!0);var me=W.state.lint=new g(W,L(W,K),te);me.options.lintOnChange!==!1&&W.on("change",O),me.options.tooltips!=!1&&me.options.tooltips!="gutter"&&c.on(W.getWrapperElement(),"mouseover",me.onMouseOver),Q(W)}}),c.defineExtension("performLint",function(){this.state.lint&&Q(this)})})},32095:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v=c.Pos;function x(O){var V=O.flags;return V!=null?V:(O.ignoreCase?"i":"")+(O.global?"g":"")+(O.multiline?"m":"")}function d(O,V){for(var X=x(O),W=X,K=0;K<V.length;K++)W.indexOf(V.charAt(K))==-1&&(W+=V.charAt(K));return X==W?O:new RegExp(O.source,W)}function b(O){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(O.source)}function A(O,V,X){V=d(V,"g");for(var W=X.line,K=X.ch,Z=O.lastLine();W<=Z;W++,K=0){V.lastIndex=K;var ce=O.getLine(W),te=V.exec(ce);if(te)return{from:v(W,te.index),to:v(W,te.index+te[0].length),match:te}}}function g(O,V,X){if(!b(V))return A(O,V,X);V=d(V,"gm");for(var W,K=1,Z=X.line,ce=O.lastLine();Z<=ce;){for(var te=0;te<K&&!(Z>ce);te++){var ae=O.getLine(Z++);W=W==null?ae:W+`
13
- `+ae}K=K*2,V.lastIndex=X.ch;var me=V.exec(W);if(me){var ge=W.slice(0,me.index).split(`
14
- `),he=me[0].split(`
15
- `),ue=X.line+ge.length-1,ie=ge[ge.length-1].length;return{from:v(ue,ie),to:v(ue+he.length-1,he.length==1?ie+he[0].length:he[he.length-1].length),match:me}}}}function L(O,V,X){for(var W,K=0;K<=O.length;){V.lastIndex=K;var Z=V.exec(O);if(!Z)break;var ce=Z.index+Z[0].length;if(ce>O.length-X)break;(!W||ce>W.index+W[0].length)&&(W=Z),K=Z.index+1}return W}function D(O,V,X){V=d(V,"g");for(var W=X.line,K=X.ch,Z=O.firstLine();W>=Z;W--,K=-1){var ce=O.getLine(W),te=L(ce,V,K<0?0:ce.length-K);if(te)return{from:v(W,te.index),to:v(W,te.index+te[0].length),match:te}}}function B(O,V,X){if(!b(V))return D(O,V,X);V=d(V,"gm");for(var W,K=1,Z=O.getLine(X.line).length-X.ch,ce=X.line,te=O.firstLine();ce>=te;){for(var ae=0;ae<K&&ce>=te;ae++){var me=O.getLine(ce--);W=W==null?me:me+`
16
- `+W}K*=2;var ge=L(W,V,Z);if(ge){var he=W.slice(0,ge.index).split(`
17
- `),ue=ge[0].split(`
18
- `),ie=ce+he.length,Me=he[he.length-1].length;return{from:v(ie,Me),to:v(ie+ue.length-1,ue.length==1?Me+ue[0].length:ue[ue.length-1].length),match:ge}}}}var U,_;String.prototype.normalize?(U=function(O){return O.normalize("NFD").toLowerCase()},_=function(O){return O.normalize("NFD")}):(U=function(O){return O.toLowerCase()},_=function(O){return O});function z(O,V,X,W){if(O.length==V.length)return X;for(var K=0,Z=X+Math.max(0,O.length-V.length);;){if(K==Z)return K;var ce=K+Z>>1,te=W(O.slice(0,ce)).length;if(te==X)return ce;te>X?Z=ce:K=ce+1}}function k(O,V,X,W){if(!V.length)return null;var K=W?U:_,Z=K(V).split(/\r|\n\r?/);e:for(var ce=X.line,te=X.ch,ae=O.lastLine()+1-Z.length;ce<=ae;ce++,te=0){var me=O.getLine(ce).slice(te),ge=K(me);if(Z.length==1){var he=ge.indexOf(Z[0]);if(he==-1)continue e;var X=z(me,ge,he,K)+te;return{from:v(ce,z(me,ge,he,K)+te),to:v(ce,z(me,ge,he+Z[0].length,K)+te)}}else{var ue=ge.length-Z[0].length;if(ge.slice(ue)!=Z[0])continue e;for(var ie=1;ie<Z.length-1;ie++)if(K(O.getLine(ce+ie))!=Z[ie])continue e;var Me=O.getLine(ce+Z.length-1),je=K(Me),Ne=Z[Z.length-1];if(je.slice(0,Ne.length)!=Ne)continue e;return{from:v(ce,z(me,ge,ue,K)+te),to:v(ce+Z.length-1,z(Me,je,Ne.length,K))}}}}function Q(O,V,X,W){if(!V.length)return null;var K=W?U:_,Z=K(V).split(/\r|\n\r?/);e:for(var ce=X.line,te=X.ch,ae=O.firstLine()-1+Z.length;ce>=ae;ce--,te=-1){var me=O.getLine(ce);te>-1&&(me=me.slice(0,te));var ge=K(me);if(Z.length==1){var he=ge.lastIndexOf(Z[0]);if(he==-1)continue e;return{from:v(ce,z(me,ge,he,K)),to:v(ce,z(me,ge,he+Z[0].length,K))}}else{var ue=Z[Z.length-1];if(ge.slice(0,ue.length)!=ue)continue e;for(var ie=1,X=ce-Z.length+1;ie<Z.length-1;ie++)if(K(O.getLine(X+ie))!=Z[ie])continue e;var Me=O.getLine(ce+1-Z.length),je=K(Me);if(je.slice(je.length-Z[0].length)!=Z[0])continue e;return{from:v(ce+1-Z.length,z(Me,je,Me.length-Z[0].length,K)),to:v(ce,z(me,ge,ue.length,K))}}}}function M(O,V,X,W){this.atOccurrence=!1,this.doc=O,X=X?O.clipPos(X):v(0,0),this.pos={from:X,to:X};var K;typeof W=="object"?K=W.caseFold:(K=W,W=null),typeof V=="string"?(K==null&&(K=!1),this.matches=function(Z,ce){return(Z?Q:k)(O,V,ce,K)}):(V=d(V,"gm"),!W||W.multiline!==!1?this.matches=function(Z,ce){return(Z?B:g)(O,V,ce)}:this.matches=function(Z,ce){return(Z?D:A)(O,V,ce)})}M.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(O){for(var V=this.matches(O,this.doc.clipPos(O?this.pos.from:this.pos.to));V&&c.cmpPos(V.from,V.to)==0;)O?V.from.ch?V.from=v(V.from.line,V.from.ch-1):V.from.line==this.doc.firstLine()?V=null:V=this.matches(O,this.doc.clipPos(v(V.from.line-1))):V.to.ch<this.doc.getLine(V.to.line).length?V.to=v(V.to.line,V.to.ch+1):V.to.line==this.doc.lastLine()?V=null:V=this.matches(O,v(V.to.line+1,0));if(V)return this.pos=V,this.atOccurrence=!0,this.pos.match||!0;var X=v(O?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:X,to:X},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(O,V){if(!!this.atOccurrence){var X=c.splitLines(O);this.doc.replaceRange(X,this.pos.from,this.pos.to,V),this.pos.to=v(this.pos.from.line+X.length-1,X[X.length-1].length+(X.length==1?this.pos.from.ch:0))}}},c.defineExtension("getSearchCursor",function(O,V,X){return new M(this.doc,O,V,X)}),c.defineDocExtension("getSearchCursor",function(O,V,X){return new M(this,O,V,X)}),c.defineExtension("selectMatches",function(O,V){for(var X=[],W=this.getSearchCursor(O,this.getCursor("from"),V);W.findNext()&&!(c.cmpPos(W.to(),this.getCursor("to"))>0);)X.push({anchor:W.from(),head:W.to()});X.length&&this.setSelections(X,0)})})},4631:function(h){(function(I,o){h.exports=o()})(this,function(){"use strict";var I=navigator.userAgent,o=navigator.platform,c=/gecko\/\d/i.test(I),v=/MSIE \d/.test(I),x=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),d=/Edge\/(\d+)/.exec(I),b=v||x||d,A=b&&(v?document.documentMode||6:+(d||x)[1]),g=!d&&/WebKit\//.test(I),L=g&&/Qt\/\d+\.\d+/.test(I),D=!d&&/Chrome\//.test(I),B=/Opera\//.test(I),U=/Apple Computer/.test(navigator.vendor),_=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),z=/PhantomJS/.test(I),k=U&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),Q=/Android/.test(I),M=k||Q||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),O=k||/Mac/.test(o),V=/\bCrOS\b/.test(I),X=/win/i.test(o),W=B&&I.match(/Version\/(\d*\.\d*)/);W&&(W=Number(W[1])),W&&W>=15&&(B=!1,g=!0);var K=O&&(L||B&&(W==null||W<12.11)),Z=c||b&&A>=9;function ce(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var te=function(e,n){var u=e.className,l=ce(n).exec(u);if(l){var f=u.slice(l.index+l[0].length);e.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function ae(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function me(e,n){return ae(e).appendChild(n)}function ge(e,n,u,l){var f=document.createElement(e);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof n=="string")f.appendChild(document.createTextNode(n));else if(n)for(var y=0;y<n.length;++y)f.appendChild(n[y]);return f}function he(e,n,u,l){var f=ge(e,n,u,l);return f.setAttribute("role","presentation"),f}var ue;document.createRange?ue=function(e,n,u,l){var f=document.createRange();return f.setEnd(l||e,u),f.setStart(e,n),f}:ue=function(e,n,u){var l=document.body.createTextRange();try{l.moveToElementText(e.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",n),l};function ie(e,n){if(n.nodeType==3&&(n=n.parentNode),e.contains)return e.contains(n);do if(n.nodeType==11&&(n=n.host),n==e)return!0;while(n=n.parentNode)}function Me(){var e;try{e=document.activeElement}catch(n){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function je(e,n){var u=e.className;ce(n).test(u)||(e.className+=(u?" ":"")+n)}function Ne(e,n){for(var u=e.split(" "),l=0;l<u.length;l++)u[l]&&!ce(u[l]).test(n)&&(n+=" "+u[l]);return n}var Re=function(e){e.select()};k?Re=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(Re=function(e){try{e.select()}catch(n){}});function rt(e){var n=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,n)}}function Qe(e,n,u){n||(n={});for(var l in e)e.hasOwnProperty(l)&&(u!==!1||!n.hasOwnProperty(l))&&(n[l]=e[l]);return n}function Je(e,n,u,l,f){n==null&&(n=e.search(/[^\s\u00a0]/),n==-1&&(n=e.length));for(var y=l||0,F=f||0;;){var j=e.indexOf(" ",y);if(j<0||j>=n)return F+(n-y);F+=j-y,F+=u-F%u,y=j+1}}var ut=function(){this.id=null,this.f=null,this.time=0,this.handler=rt(this.onTimeout,this)};ut.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ut.prototype.set=function(e,n){this.f=n;var u=+new Date+e;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=u)};function pt(e,n){for(var u=0;u<e.length;++u)if(e[u]==n)return u;return-1}var gt=50,_e={toString:function(){return"CodeMirror.Pass"}},lt={scroll:!1},ht={origin:"*mouse"},yt={origin:"+move"};function dt(e,n,u){for(var l=0,f=0;;){var y=e.indexOf(" ",l);y==-1&&(y=e.length);var F=y-l;if(y==e.length||f+F>=n)return l+Math.min(F,n-f);if(f+=y-l,f+=u-f%u,l=y+1,f>=n)return l}}var It=[""];function Ft(e){for(;It.length<=e;)It.push(St(It)+" ");return It[e]}function St(e){return e[e.length-1]}function Wt(e,n){for(var u=[],l=0;l<e.length;l++)u[l]=n(e[l],l);return u}function Ut(e,n,u){for(var l=0,f=u(n);l<e.length&&u(e[l])<=f;)l++;e.splice(l,0,n)}function Gt(){}function wt(e,n){var u;return Object.create?u=Object.create(e):(Gt.prototype=e,u=new Gt),n&&Qe(n,u),u}var Mt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function de(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Mt.test(e))}function $(e,n){return n?n.source.indexOf("\\w")>-1&&de(e)?!0:n.test(e):de(e)}function Y(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var we=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ke(e){return e.charCodeAt(0)>=768&&we.test(e)}function be(e,n,u){for(;(u<0?n>0:n<e.length)&&ke(e.charAt(n));)n+=u;return n}function Ae(e,n,u){for(var l=n>u?-1:1;;){if(n==u)return n;var f=(n+u)/2,y=l<0?Math.ceil(f):Math.floor(f);if(y==n)return e(y)?n:u;e(y)?u=y:n=y+l}}function T(e,n,u,l){if(!e)return l(n,u,"ltr",0);for(var f=!1,y=0;y<e.length;++y){var F=e[y];(F.from<u&&F.to>n||n==u&&F.to==n)&&(l(Math.max(F.from,n),Math.min(F.to,u),F.level==1?"rtl":"ltr",y),f=!0)}f||l(n,u,"ltr")}var Ie=null;function H(e,n,u){var l;Ie=null;for(var f=0;f<e.length;++f){var y=e[f];if(y.from<n&&y.to>n)return f;y.to==n&&(y.from!=y.to&&u=="before"?l=f:Ie=f),y.from==n&&(y.from!=y.to&&u!="before"?l=f:Ie=f)}return l!=null?l:Ie}var C=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(q){return q<=247?e.charAt(q):1424<=q&&q<=1524?"R":1536<=q&&q<=1785?n.charAt(q-1536):1774<=q&&q<=2220?"r":8192<=q&&q<=8203?"w":q==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,y=/[LRr]/,F=/[Lb1n]/,j=/[1n]/;function G(q,xe,Ee){this.level=q,this.from=xe,this.to=Ee}return function(q,xe){var Ee=xe=="ltr"?"L":"R";if(q.length==0||xe=="ltr"&&!l.test(q))return!1;for(var De=q.length,Le=[],Xe=0;Xe<De;++Xe)Le.push(u(q.charCodeAt(Xe)));for(var tt=0,at=Ee;tt<De;++tt){var ft=Le[tt];ft=="m"?Le[tt]=at:at=ft}for(var mt=0,ct=Ee;mt<De;++mt){var xt=Le[mt];xt=="1"&&ct=="r"?Le[mt]="n":y.test(xt)&&(ct=xt,xt=="r"&&(Le[mt]="R"))}for(var Pt=1,Ot=Le[0];Pt<De-1;++Pt){var Vt=Le[Pt];Vt=="+"&&Ot=="1"&&Le[Pt+1]=="1"?Le[Pt]="1":Vt==","&&Ot==Le[Pt+1]&&(Ot=="1"||Ot=="n")&&(Le[Pt]=Ot),Ot=Vt}for(var ar=0;ar<De;++ar){var Lr=Le[ar];if(Lr==",")Le[ar]="N";else if(Lr=="%"){var gr=void 0;for(gr=ar+1;gr<De&&Le[gr]=="%";++gr);for(var vn=ar&&Le[ar-1]=="!"||gr<De&&Le[gr]=="1"?"1":"N",an=ar;an<gr;++an)Le[an]=vn;ar=gr-1}}for(var kr=0,tn=Ee;kr<De;++kr){var zr=Le[kr];tn=="L"&&zr=="1"?Le[kr]="L":y.test(zr)&&(tn=zr)}for(var Nr=0;Nr<De;++Nr)if(f.test(Le[Nr])){var Er=void 0;for(Er=Nr+1;Er<De&&f.test(Le[Er]);++Er);for(var dr=(Nr?Le[Nr-1]:Ee)=="L",sn=(Er<De?Le[Er]:Ee)=="L",ni=dr==sn?dr?"L":"R":Ee,vi=Nr;vi<Er;++vi)Le[vi]=ni;Nr=Er-1}for(var cr=[],gi,Dr=0;Dr<De;)if(F.test(Le[Dr])){var us=Dr;for(++Dr;Dr<De&&F.test(Le[Dr]);++Dr);cr.push(new G(0,us,Dr))}else{var ii=Dr,io=cr.length,oo=xe=="rtl"?1:0;for(++Dr;Dr<De&&Le[Dr]!="L";++Dr);for(var Yr=ii;Yr<Dr;)if(j.test(Le[Yr])){ii<Yr&&(cr.splice(io,0,new G(1,ii,Yr)),io+=oo);var Bo=Yr;for(++Yr;Yr<Dr&&j.test(Le[Yr]);++Yr);cr.splice(io,0,new G(2,Bo,Yr)),io+=oo,ii=Yr}else++Yr;ii<Dr&&cr.splice(io,0,new G(1,ii,Dr))}return xe=="ltr"&&(cr[0].level==1&&(gi=q.match(/^\s+/))&&(cr[0].from=gi[0].length,cr.unshift(new G(0,0,gi[0].length))),St(cr).level==1&&(gi=q.match(/\s+$/))&&(St(cr).to-=gi[0].length,cr.push(new G(0,De-gi[0].length,De)))),xe=="rtl"?cr.reverse():cr}}();function P(e,n){var u=e.order;return u==null&&(u=e.order=C(e.text,n)),u}var ne=[],N=function(e,n,u){if(e.addEventListener)e.addEventListener(n,u,!1);else if(e.attachEvent)e.attachEvent("on"+n,u);else{var l=e._handlers||(e._handlers={});l[n]=(l[n]||ne).concat(u)}};function ee(e,n){return e._handlers&&e._handlers[n]||ne}function fe(e,n,u){if(e.removeEventListener)e.removeEventListener(n,u,!1);else if(e.detachEvent)e.detachEvent("on"+n,u);else{var l=e._handlers,f=l&&l[n];if(f){var y=pt(f,u);y>-1&&(l[n]=f.slice(0,y).concat(f.slice(y+1)))}}}function Oe(e,n){var u=ee(e,n);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function Pe(e,n,u){return typeof n=="string"&&(n={type:n,preventDefault:function(){this.defaultPrevented=!0}}),Oe(e,u||n.type,e,n),Ct(n)||n.codemirrorIgnore}function Te(e){var n=e._handlers&&e._handlers.cursorActivity;if(!!n)for(var u=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),l=0;l<n.length;++l)pt(u,n[l])==-1&&u.push(n[l])}function ze(e,n){return ee(e,n).length>0}function He(e){e.prototype.on=function(n,u){N(this,n,u)},e.prototype.off=function(n,u){fe(this,n,u)}}function it(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function vt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ct(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Yt(e){it(e),vt(e)}function kt(e){return e.target||e.srcElement}function yn(e){var n=e.which;return n==null&&(e.button&1?n=1:e.button&2?n=3:e.button&4&&(n=2)),O&&e.ctrlKey&&n==1&&(n=3),n}var Xr=function(){if(b&&A<9)return!1;var e=ge("div");return"draggable"in e||"dragDrop"in e}(),On;function Ui(e){if(On==null){var n=ge("span","\u200B");me(e,ge("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(On=n.offsetWidth<=1&&n.offsetHeight>2&&!(b&&A<8))}var u=On?ge("span","\u200B"):ge("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var jr;function jn(e){if(jr!=null)return jr;var n=me(e,document.createTextNode("A\u062EA")),u=ue(n,0,1).getBoundingClientRect(),l=ue(n,1,2).getBoundingClientRect();return ae(e),!u||u.left==u.right?!1:jr=l.right-u.right<3}var $n=`
11
+ */var c=o(79742),v=o(80645),x=o(5826);I.Buffer=g,I.SlowBuffer=C,I.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=o.g.TYPED_ARRAY_SUPPORT!==void 0?o.g.TYPED_ARRAY_SUPPORT:d(),I.kMaxLength=b();function d(){try{var pe=new Uint8Array(1);return pe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},pe.foo()===42&&typeof pe.subarray=="function"&&pe.subarray(1,1).byteLength===0}catch(G){return!1}}function b(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function S(pe,G){if(b()<G)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(pe=new Uint8Array(G),pe.__proto__=g.prototype):(pe===null&&(pe=new g(G)),pe.length=G),pe}function g(pe,G,$){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(pe,G,$);if(typeof pe=="number"){if(typeof G=="string")throw new Error("If encoding is specified then the first argument must be a string");return j(this,pe)}return L(this,pe,G,$)}g.poolSize=8192,g._augment=function(pe){return pe.__proto__=g.prototype,pe};function L(pe,G,$,we){if(typeof G=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&G instanceof ArrayBuffer?k(pe,G,$,we):typeof G=="string"?_(pe,G,$):X(pe,G)}g.from=function(pe,G,$){return L(null,pe,G,$)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&g[Symbol.species]===g&&Object.defineProperty(g,Symbol.species,{value:null,configurable:!0}));function N(pe){if(typeof pe!="number")throw new TypeError('"size" argument must be a number');if(pe<0)throw new RangeError('"size" argument must not be negative')}function B(pe,G,$,we){return N(G),G<=0?S(pe,G):$!==void 0?typeof we=="string"?S(pe,G).fill($,we):S(pe,G).fill($):S(pe,G)}g.alloc=function(pe,G,$){return B(null,pe,G,$)};function j(pe,G){if(N(G),pe=S(pe,G<0?0:R(G)|0),!g.TYPED_ARRAY_SUPPORT)for(var $=0;$<G;++$)pe[$]=0;return pe}g.allocUnsafe=function(pe){return j(null,pe)},g.allocUnsafeSlow=function(pe){return j(null,pe)};function _(pe,G,$){if((typeof $!="string"||$==="")&&($="utf8"),!g.isEncoding($))throw new TypeError('"encoding" must be a valid string encoding');var we=V(G,$)|0;pe=S(pe,we);var Me=pe.write(G,$);return Me!==we&&(pe=pe.slice(0,Me)),pe}function H(pe,G){var $=G.length<0?0:R(G.length)|0;pe=S(pe,$);for(var we=0;we<$;we+=1)pe[we]=G[we]&255;return pe}function k(pe,G,$,we){if(G.byteLength,$<0||G.byteLength<$)throw new RangeError("'offset' is out of bounds");if(G.byteLength<$+(we||0))throw new RangeError("'length' is out of bounds");return $===void 0&&we===void 0?G=new Uint8Array(G):we===void 0?G=new Uint8Array(G,$):G=new Uint8Array(G,$,we),g.TYPED_ARRAY_SUPPORT?(pe=G,pe.__proto__=g.prototype):pe=H(pe,G),pe}function X(pe,G){if(g.isBuffer(G)){var $=R(G.length)|0;return pe=S(pe,$),pe.length===0||G.copy(pe,0,0,$),pe}if(G){if(typeof ArrayBuffer!="undefined"&&G.buffer instanceof ArrayBuffer||"length"in G)return typeof G.length!="number"||Rt(G.length)?S(pe,0):H(pe,G);if(G.type==="Buffer"&&x(G.data))return H(pe,G.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function R(pe){if(pe>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return pe|0}function C(pe){return+pe!=pe&&(pe=0),g.alloc(+pe)}g.isBuffer=function(G){return!!(G!=null&&G._isBuffer)},g.compare=function(G,$){if(!g.isBuffer(G)||!g.isBuffer($))throw new TypeError("Arguments must be Buffers");if(G===$)return 0;for(var we=G.length,Me=$.length,be=0,Ae=Math.min(we,Me);be<Ae;++be)if(G[be]!==$[be]){we=G[be],Me=$[be];break}return we<Me?-1:Me<we?1:0},g.isEncoding=function(G){switch(String(G).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(G,$){if(!x(G))throw new TypeError('"list" argument must be an Array of Buffers');if(G.length===0)return g.alloc(0);var we;if($===void 0)for($=0,we=0;we<G.length;++we)$+=G[we].length;var Me=g.allocUnsafe($),be=0;for(we=0;we<G.length;++we){var Ae=G[we];if(!g.isBuffer(Ae))throw new TypeError('"list" argument must be an Array of Buffers');Ae.copy(Me,be),be+=Ae.length}return Me};function V(pe,G){if(g.isBuffer(pe))return pe.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(pe)||pe instanceof ArrayBuffer))return pe.byteLength;typeof pe!="string"&&(pe=""+pe);var $=pe.length;if($===0)return 0;for(var we=!1;;)switch(G){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":case void 0:return St(pe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return Gt(pe).length;default:if(we)return St(pe).length;G=(""+G).toLowerCase(),we=!0}}g.byteLength=V;function J(pe,G,$){var we=!1;if((G===void 0||G<0)&&(G=0),G>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,G>>>=0,$<=G))return"";for(pe||(pe="utf8");;)switch(pe){case"hex":return tt(this,G,$);case"utf8":case"utf-8":return oe(this,G,$);case"ascii":return Le(this,G,$);case"latin1":case"binary":return ke(this,G,$);case"base64":return le(this,G,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,G,$);default:if(we)throw new TypeError("Unknown encoding: "+pe);pe=(pe+"").toLowerCase(),we=!0}}g.prototype._isBuffer=!0;function q(pe,G,$){var we=pe[G];pe[G]=pe[$],pe[$]=we}g.prototype.swap16=function(){var G=this.length;if(G%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $=0;$<G;$+=2)q(this,$,$+1);return this},g.prototype.swap32=function(){var G=this.length;if(G%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var $=0;$<G;$+=4)q(this,$,$+3),q(this,$+1,$+2);return this},g.prototype.swap64=function(){var G=this.length;if(G%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var $=0;$<G;$+=8)q(this,$,$+7),q(this,$+1,$+6),q(this,$+2,$+5),q(this,$+3,$+4);return this},g.prototype.toString=function(){var G=this.length|0;return G===0?"":arguments.length===0?oe(this,0,G):J.apply(this,arguments)},g.prototype.equals=function(G){if(!g.isBuffer(G))throw new TypeError("Argument must be a Buffer");return this===G?!0:g.compare(this,G)===0},g.prototype.inspect=function(){var G="",$=I.INSPECT_MAX_BYTES;return this.length>0&&(G=this.toString("hex",0,$).match(/.{2}/g).join(" "),this.length>$&&(G+=" ... ")),"<Buffer "+G+">"},g.prototype.compare=function(G,$,we,Me,be){if(!g.isBuffer(G))throw new TypeError("Argument must be a Buffer");if($===void 0&&($=0),we===void 0&&(we=G?G.length:0),Me===void 0&&(Me=0),be===void 0&&(be=this.length),$<0||we>G.length||Me<0||be>this.length)throw new RangeError("out of range index");if(Me>=be&&$>=we)return 0;if(Me>=be)return-1;if($>=we)return 1;if($>>>=0,we>>>=0,Me>>>=0,be>>>=0,this===G)return 0;for(var Ae=be-Me,T=we-$,Ie=Math.min(Ae,T),W=this.slice(Me,be),O=G.slice($,we),P=0;P<Ie;++P)if(W[P]!==O[P]){Ae=W[P],T=O[P];break}return Ae<T?-1:T<Ae?1:0};function Q(pe,G,$,we,Me){if(pe.length===0)return-1;if(typeof $=="string"?(we=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,isNaN($)&&($=Me?0:pe.length-1),$<0&&($=pe.length+$),$>=pe.length){if(Me)return-1;$=pe.length-1}else if($<0)if(Me)$=0;else return-1;if(typeof G=="string"&&(G=g.from(G,we)),g.isBuffer(G))return G.length===0?-1:K(pe,G,$,we,Me);if(typeof G=="number")return G=G&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Me?Uint8Array.prototype.indexOf.call(pe,G,$):Uint8Array.prototype.lastIndexOf.call(pe,G,$):K(pe,[G],$,we,Me);throw new TypeError("val must be string, number or Buffer")}function K(pe,G,$,we,Me){var be=1,Ae=pe.length,T=G.length;if(we!==void 0&&(we=String(we).toLowerCase(),we==="ucs2"||we==="ucs-2"||we==="utf16le"||we==="utf-16le")){if(pe.length<2||G.length<2)return-1;be=2,Ae/=2,T/=2,$/=2}function Ie(D,ee){return be===1?D[ee]:D.readUInt16BE(ee*be)}var W;if(Me){var O=-1;for(W=$;W<Ae;W++)if(Ie(pe,W)===Ie(G,O===-1?0:W-O)){if(O===-1&&(O=W),W-O+1===T)return O*be}else O!==-1&&(W-=W-O),O=-1}else for($+T>Ae&&($=Ae-T),W=$;W>=0;W--){for(var P=!0,ie=0;ie<T;ie++)if(Ie(pe,W+ie)!==Ie(G,ie)){P=!1;break}if(P)return W}return-1}g.prototype.includes=function(G,$,we){return this.indexOf(G,$,we)!==-1},g.prototype.indexOf=function(G,$,we){return Q(this,G,$,we,!0)},g.prototype.lastIndexOf=function(G,$,we){return Q(this,G,$,we,!1)};function fe(pe,G,$,we){$=Number($)||0;var Me=pe.length-$;we?(we=Number(we),we>Me&&(we=Me)):we=Me;var be=G.length;if(be%2!=0)throw new TypeError("Invalid hex string");we>be/2&&(we=be/2);for(var Ae=0;Ae<we;++Ae){var T=parseInt(G.substr(Ae*2,2),16);if(isNaN(T))return Ae;pe[$+Ae]=T}return Ae}function te(pe,G,$,we){return wt(St(G,pe.length-$),pe,$,we)}function re(pe,G,$,we){return wt(Wt(G),pe,$,we)}function ye(pe,G,$,we){return re(pe,G,$,we)}function ve(pe,G,$,we){return wt(Gt(G),pe,$,we)}function de(pe,G,$,we){return wt(Bt(G,pe.length-$),pe,$,we)}g.prototype.write=function(G,$,we,Me){if($===void 0)Me="utf8",we=this.length,$=0;else if(we===void 0&&typeof $=="string")Me=$,we=this.length,$=0;else if(isFinite($))$=$|0,isFinite(we)?(we=we|0,Me===void 0&&(Me="utf8")):(Me=we,we=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var be=this.length-$;if((we===void 0||we>be)&&(we=be),G.length>0&&(we<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");Me||(Me="utf8");for(var Ae=!1;;)switch(Me){case"hex":return fe(this,G,$,we);case"utf8":case"utf-8":return te(this,G,$,we);case"ascii":return re(this,G,$,we);case"latin1":case"binary":return ye(this,G,$,we);case"base64":return ve(this,G,$,we);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,G,$,we);default:if(Ae)throw new TypeError("Unknown encoding: "+Me);Me=(""+Me).toLowerCase(),Ae=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function le(pe,G,$){return G===0&&$===pe.length?c.fromByteArray(pe):c.fromByteArray(pe.slice(G,$))}function oe(pe,G,$){$=Math.min(pe.length,$);for(var we=[],Me=G;Me<$;){var be=pe[Me],Ae=null,T=be>239?4:be>223?3:be>191?2:1;if(Me+T<=$){var Ie,W,O,P;switch(T){case 1:be<128&&(Ae=be);break;case 2:Ie=pe[Me+1],(Ie&192)==128&&(P=(be&31)<<6|Ie&63,P>127&&(Ae=P));break;case 3:Ie=pe[Me+1],W=pe[Me+2],(Ie&192)==128&&(W&192)==128&&(P=(be&15)<<12|(Ie&63)<<6|W&63,P>2047&&(P<55296||P>57343)&&(Ae=P));break;case 4:Ie=pe[Me+1],W=pe[Me+2],O=pe[Me+3],(Ie&192)==128&&(W&192)==128&&(O&192)==128&&(P=(be&15)<<18|(Ie&63)<<12|(W&63)<<6|O&63,P>65535&&P<1114112&&(Ae=P))}}Ae===null?(Ae=65533,T=1):Ae>65535&&(Ae-=65536,we.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),we.push(Ae),Me+=T}return Ve(we)}var De=4096;function Ve(pe){var G=pe.length;if(G<=De)return String.fromCharCode.apply(String,pe);for(var $="",we=0;we<G;)$+=String.fromCharCode.apply(String,pe.slice(we,we+=De));return $}function Le(pe,G,$){var we="";$=Math.min(pe.length,$);for(var Me=G;Me<$;++Me)we+=String.fromCharCode(pe[Me]&127);return we}function ke(pe,G,$){var we="";$=Math.min(pe.length,$);for(var Me=G;Me<$;++Me)we+=String.fromCharCode(pe[Me]);return we}function tt(pe,G,$){var we=pe.length;(!G||G<0)&&(G=0),(!$||$<0||$>we)&&($=we);for(var Me="",be=G;be<$;++be)Me+=It(pe[be]);return Me}function Qe(pe,G,$){for(var we=pe.slice(G,$),Me="",be=0;be<we.length;be+=2)Me+=String.fromCharCode(we[be]+we[be+1]*256);return Me}g.prototype.slice=function(G,$){var we=this.length;G=~~G,$=$===void 0?we:~~$,G<0?(G+=we,G<0&&(G=0)):G>we&&(G=we),$<0?($+=we,$<0&&($=0)):$>we&&($=we),$<G&&($=G);var Me;if(g.TYPED_ARRAY_SUPPORT)Me=this.subarray(G,$),Me.__proto__=g.prototype;else{var be=$-G;Me=new g(be,void 0);for(var Ae=0;Ae<be;++Ae)Me[Ae]=this[Ae+G]}return Me};function Xe(pe,G,$){if(pe%1!=0||pe<0)throw new RangeError("offset is not uint");if(pe+G>$)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(G,$,we){G=G|0,$=$|0,we||Xe(G,$,this.length);for(var Me=this[G],be=1,Ae=0;++Ae<$&&(be*=256);)Me+=this[G+Ae]*be;return Me},g.prototype.readUIntBE=function(G,$,we){G=G|0,$=$|0,we||Xe(G,$,this.length);for(var Me=this[G+--$],be=1;$>0&&(be*=256);)Me+=this[G+--$]*be;return Me},g.prototype.readUInt8=function(G,$){return $||Xe(G,1,this.length),this[G]},g.prototype.readUInt16LE=function(G,$){return $||Xe(G,2,this.length),this[G]|this[G+1]<<8},g.prototype.readUInt16BE=function(G,$){return $||Xe(G,2,this.length),this[G]<<8|this[G+1]},g.prototype.readUInt32LE=function(G,$){return $||Xe(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+this[G+3]*16777216},g.prototype.readUInt32BE=function(G,$){return $||Xe(G,4,this.length),this[G]*16777216+(this[G+1]<<16|this[G+2]<<8|this[G+3])},g.prototype.readIntLE=function(G,$,we){G=G|0,$=$|0,we||Xe(G,$,this.length);for(var Me=this[G],be=1,Ae=0;++Ae<$&&(be*=256);)Me+=this[G+Ae]*be;return be*=128,Me>=be&&(Me-=Math.pow(2,8*$)),Me},g.prototype.readIntBE=function(G,$,we){G=G|0,$=$|0,we||Xe(G,$,this.length);for(var Me=$,be=1,Ae=this[G+--Me];Me>0&&(be*=256);)Ae+=this[G+--Me]*be;return be*=128,Ae>=be&&(Ae-=Math.pow(2,8*$)),Ae},g.prototype.readInt8=function(G,$){return $||Xe(G,1,this.length),this[G]&128?(255-this[G]+1)*-1:this[G]},g.prototype.readInt16LE=function(G,$){$||Xe(G,2,this.length);var we=this[G]|this[G+1]<<8;return we&32768?we|4294901760:we},g.prototype.readInt16BE=function(G,$){$||Xe(G,2,this.length);var we=this[G+1]|this[G]<<8;return we&32768?we|4294901760:we},g.prototype.readInt32LE=function(G,$){return $||Xe(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},g.prototype.readInt32BE=function(G,$){return $||Xe(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},g.prototype.readFloatLE=function(G,$){return $||Xe(G,4,this.length),v.read(this,G,!0,23,4)},g.prototype.readFloatBE=function(G,$){return $||Xe(G,4,this.length),v.read(this,G,!1,23,4)},g.prototype.readDoubleLE=function(G,$){return $||Xe(G,8,this.length),v.read(this,G,!0,52,8)},g.prototype.readDoubleBE=function(G,$){return $||Xe(G,8,this.length),v.read(this,G,!1,52,8)};function ut(pe,G,$,we,Me,be){if(!g.isBuffer(pe))throw new TypeError('"buffer" argument must be a Buffer instance');if(G>Me||G<be)throw new RangeError('"value" argument is out of bounds');if($+we>pe.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(G,$,we,Me){if(G=+G,$=$|0,we=we|0,!Me){var be=Math.pow(2,8*we)-1;ut(this,G,$,we,be,0)}var Ae=1,T=0;for(this[$]=G&255;++T<we&&(Ae*=256);)this[$+T]=G/Ae&255;return $+we},g.prototype.writeUIntBE=function(G,$,we,Me){if(G=+G,$=$|0,we=we|0,!Me){var be=Math.pow(2,8*we)-1;ut(this,G,$,we,be,0)}var Ae=we-1,T=1;for(this[$+Ae]=G&255;--Ae>=0&&(T*=256);)this[$+Ae]=G/T&255;return $+we},g.prototype.writeUInt8=function(G,$,we){return G=+G,$=$|0,we||ut(this,G,$,1,255,0),g.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),this[$]=G&255,$+1};function pt(pe,G,$,we){G<0&&(G=65535+G+1);for(var Me=0,be=Math.min(pe.length-$,2);Me<be;++Me)pe[$+Me]=(G&255<<8*(we?Me:1-Me))>>>(we?Me:1-Me)*8}g.prototype.writeUInt16LE=function(G,$,we){return G=+G,$=$|0,we||ut(this,G,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=G&255,this[$+1]=G>>>8):pt(this,G,$,!0),$+2},g.prototype.writeUInt16BE=function(G,$,we){return G=+G,$=$|0,we||ut(this,G,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=G>>>8,this[$+1]=G&255):pt(this,G,$,!1),$+2};function yt(pe,G,$,we){G<0&&(G=4294967295+G+1);for(var Me=0,be=Math.min(pe.length-$,4);Me<be;++Me)pe[$+Me]=G>>>(we?Me:3-Me)*8&255}g.prototype.writeUInt32LE=function(G,$,we){return G=+G,$=$|0,we||ut(this,G,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$+3]=G>>>24,this[$+2]=G>>>16,this[$+1]=G>>>8,this[$]=G&255):yt(this,G,$,!0),$+4},g.prototype.writeUInt32BE=function(G,$,we){return G=+G,$=$|0,we||ut(this,G,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$]=G>>>24,this[$+1]=G>>>16,this[$+2]=G>>>8,this[$+3]=G&255):yt(this,G,$,!1),$+4},g.prototype.writeIntLE=function(G,$,we,Me){if(G=+G,$=$|0,!Me){var be=Math.pow(2,8*we-1);ut(this,G,$,we,be-1,-be)}var Ae=0,T=1,Ie=0;for(this[$]=G&255;++Ae<we&&(T*=256);)G<0&&Ie===0&&this[$+Ae-1]!==0&&(Ie=1),this[$+Ae]=(G/T>>0)-Ie&255;return $+we},g.prototype.writeIntBE=function(G,$,we,Me){if(G=+G,$=$|0,!Me){var be=Math.pow(2,8*we-1);ut(this,G,$,we,be-1,-be)}var Ae=we-1,T=1,Ie=0;for(this[$+Ae]=G&255;--Ae>=0&&(T*=256);)G<0&&Ie===0&&this[$+Ae+1]!==0&&(Ie=1),this[$+Ae]=(G/T>>0)-Ie&255;return $+we},g.prototype.writeInt8=function(G,$,we){return G=+G,$=$|0,we||ut(this,G,$,1,127,-128),g.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),G<0&&(G=255+G+1),this[$]=G&255,$+1},g.prototype.writeInt16LE=function(G,$,we){return G=+G,$=$|0,we||ut(this,G,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=G&255,this[$+1]=G>>>8):pt(this,G,$,!0),$+2},g.prototype.writeInt16BE=function(G,$,we){return G=+G,$=$|0,we||ut(this,G,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=G>>>8,this[$+1]=G&255):pt(this,G,$,!1),$+2},g.prototype.writeInt32LE=function(G,$,we){return G=+G,$=$|0,we||ut(this,G,$,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[$]=G&255,this[$+1]=G>>>8,this[$+2]=G>>>16,this[$+3]=G>>>24):yt(this,G,$,!0),$+4},g.prototype.writeInt32BE=function(G,$,we){return G=+G,$=$|0,we||ut(this,G,$,4,2147483647,-2147483648),G<0&&(G=4294967295+G+1),g.TYPED_ARRAY_SUPPORT?(this[$]=G>>>24,this[$+1]=G>>>16,this[$+2]=G>>>8,this[$+3]=G&255):yt(this,G,$,!1),$+4};function qe(pe,G,$,we,Me,be){if($+we>pe.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function lt(pe,G,$,we,Me){return Me||qe(pe,G,$,4,34028234663852886e22,-34028234663852886e22),v.write(pe,G,$,we,23,4),$+4}g.prototype.writeFloatLE=function(G,$,we){return lt(this,G,$,!0,we)},g.prototype.writeFloatBE=function(G,$,we){return lt(this,G,$,!1,we)};function vt(pe,G,$,we,Me){return Me||qe(pe,G,$,8,17976931348623157e292,-17976931348623157e292),v.write(pe,G,$,we,52,8),$+8}g.prototype.writeDoubleLE=function(G,$,we){return vt(this,G,$,!0,we)},g.prototype.writeDoubleBE=function(G,$,we){return vt(this,G,$,!1,we)},g.prototype.copy=function(G,$,we,Me){if(we||(we=0),!Me&&Me!==0&&(Me=this.length),$>=G.length&&($=G.length),$||($=0),Me>0&&Me<we&&(Me=we),Me===we||G.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(we<0||we>=this.length)throw new RangeError("sourceStart out of bounds");if(Me<0)throw new RangeError("sourceEnd out of bounds");Me>this.length&&(Me=this.length),G.length-$<Me-we&&(Me=G.length-$+we);var be=Me-we,Ae;if(this===G&&we<$&&$<Me)for(Ae=be-1;Ae>=0;--Ae)G[Ae+$]=this[Ae+we];else if(be<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ae=0;Ae<be;++Ae)G[Ae+$]=this[Ae+we];else Uint8Array.prototype.set.call(G,this.subarray(we,we+be),$);return be},g.prototype.fill=function(G,$,we,Me){if(typeof G=="string"){if(typeof $=="string"?(Me=$,$=0,we=this.length):typeof we=="string"&&(Me=we,we=this.length),G.length===1){var be=G.charCodeAt(0);be<256&&(G=be)}if(Me!==void 0&&typeof Me!="string")throw new TypeError("encoding must be a string");if(typeof Me=="string"&&!g.isEncoding(Me))throw new TypeError("Unknown encoding: "+Me)}else typeof G=="number"&&(G=G&255);if($<0||this.length<$||this.length<we)throw new RangeError("Out of range index");if(we<=$)return this;$=$>>>0,we=we===void 0?this.length:we>>>0,G||(G=0);var Ae;if(typeof G=="number")for(Ae=$;Ae<we;++Ae)this[Ae]=G;else{var T=g.isBuffer(G)?G:St(new g(G,Me).toString()),Ie=T.length;for(Ae=0;Ae<we-$;++Ae)this[Ae+$]=T[Ae%Ie]}return this};var mt=/[^+\/0-9A-Za-z-_]/g;function dt(pe){if(pe=kt(pe).replace(mt,""),pe.length<2)return"";for(;pe.length%4!=0;)pe=pe+"=";return pe}function kt(pe){return pe.trim?pe.trim():pe.replace(/^\s+|\s+$/g,"")}function It(pe){return pe<16?"0"+pe.toString(16):pe.toString(16)}function St(pe,G){G=G||1/0;for(var $,we=pe.length,Me=null,be=[],Ae=0;Ae<we;++Ae){if($=pe.charCodeAt(Ae),$>55295&&$<57344){if(!Me){if($>56319){(G-=3)>-1&&be.push(239,191,189);continue}else if(Ae+1===we){(G-=3)>-1&&be.push(239,191,189);continue}Me=$;continue}if($<56320){(G-=3)>-1&&be.push(239,191,189),Me=$;continue}$=(Me-55296<<10|$-56320)+65536}else Me&&(G-=3)>-1&&be.push(239,191,189);if(Me=null,$<128){if((G-=1)<0)break;be.push($)}else if($<2048){if((G-=2)<0)break;be.push($>>6|192,$&63|128)}else if($<65536){if((G-=3)<0)break;be.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((G-=4)<0)break;be.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return be}function Wt(pe){for(var G=[],$=0;$<pe.length;++$)G.push(pe.charCodeAt($)&255);return G}function Bt(pe,G){for(var $,we,Me,be=[],Ae=0;Ae<pe.length&&!((G-=2)<0);++Ae)$=pe.charCodeAt(Ae),we=$>>8,Me=$%256,be.push(Me),be.push(we);return be}function Gt(pe){return c.toByteArray(dt(pe))}function wt(pe,G,$,we){for(var Me=0;Me<we&&!(Me+$>=G.length||Me>=pe.length);++Me)G[Me+$]=pe[Me];return Me}function Rt(pe){return pe!==pe}},21924:(h,I,o)=>{"use strict";var c=o(40210),v=o(55559),x=v(c("String.prototype.indexOf"));h.exports=function(b,S){var g=c(b,!!S);return typeof g=="function"&&x(b,".prototype.")>-1?v(g):g}},55559:(h,I,o)=>{"use strict";var c=o(58612),v=o(40210),x=v("%Function.prototype.apply%"),d=v("%Function.prototype.call%"),b=v("%Reflect.apply%",!0)||c.call(d,x),S=v("%Object.getOwnPropertyDescriptor%",!0),g=v("%Object.defineProperty%",!0),L=v("%Math.max%");if(g)try{g({},"a",{value:1})}catch(B){g=null}h.exports=function(j){var _=b(c,d,arguments);if(S&&g){var H=S(_,"length");H.configurable&&g(_,"length",{value:1+L(0,j.length-(arguments.length-1))})}return _};var N=function(){return b(c,x,arguments)};g?g(h.exports,"apply",{value:N}):h.exports.apply=N},82801:(h,I,o)=>{(function(c){c(o(4631))})(function(c){var v={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=c.Pos;c.defineOption("autoCloseBrackets",!1,function(R,C,V){V&&V!=c.Init&&(R.removeKeyMap(b),R.state.closeBrackets=null),C&&(S(d(C,"pairs")),R.state.closeBrackets=C,R.addKeyMap(b))});function d(R,C){return C=="pairs"&&typeof R=="string"?R:typeof R=="object"&&R[C]!=null?R[C]:v[C]}var b={Backspace:N,Enter:B};function S(R){for(var C=0;C<R.length;C++){var V=R.charAt(C),J="'"+V+"'";b[J]||(b[J]=g(V))}}S(v.pairs+"`");function g(R){return function(C){return H(C,R)}}function L(R){var C=R.state.closeBrackets;if(!C||C.override)return C;var V=R.getModeAt(R.getCursor());return V.closeBrackets||C}function N(R){var C=L(R);if(!C||R.getOption("disableInput"))return c.Pass;for(var V=d(C,"pairs"),J=R.listSelections(),q=0;q<J.length;q++){if(!J[q].empty())return c.Pass;var Q=k(R,J[q].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}for(var q=J.length-1;q>=0;q--){var K=J[q].head;R.replaceRange("",x(K.line,K.ch-1),x(K.line,K.ch+1),"+delete")}}function B(R){var C=L(R),V=C&&d(C,"explode");if(!V||R.getOption("disableInput"))return c.Pass;for(var J=R.listSelections(),q=0;q<J.length;q++){if(!J[q].empty())return c.Pass;var Q=k(R,J[q].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}R.operation(function(){var K=R.lineSeparator()||`
12
+ `;R.replaceSelection(K+K,null),j(R,-1),J=R.listSelections();for(var fe=0;fe<J.length;fe++){var te=J[fe].head.line;R.indentLine(te,null,!0),R.indentLine(te+1,null,!0)}})}function j(R,C){for(var V=[],J=R.listSelections(),q=0,Q=0;Q<J.length;Q++){var K=J[Q];K.head==R.getCursor()&&(q=Q);var fe=K.head.ch||C>0?{line:K.head.line,ch:K.head.ch+C}:{line:K.head.line-1};V.push({anchor:fe,head:fe})}R.setSelections(V,q)}function _(R){var C=c.cmpPos(R.anchor,R.head)>0;return{anchor:new x(R.anchor.line,R.anchor.ch+(C?-1:1)),head:new x(R.head.line,R.head.ch+(C?1:-1))}}function H(R,C){var V=L(R);if(!V||R.getOption("disableInput"))return c.Pass;var J=d(V,"pairs"),q=J.indexOf(C);if(q==-1)return c.Pass;for(var Q=d(V,"closeBefore"),K=d(V,"triples"),fe=J.charAt(q+1)==C,te=R.listSelections(),re=q%2==0,ye,ve=0;ve<te.length;ve++){var de=te[ve],le=de.head,oe,De=R.getRange(le,x(le.line,le.ch+1));if(re&&!de.empty())oe="surround";else if((fe||!re)&&De==C)fe&&X(R,le)?oe="both":K.indexOf(C)>=0&&R.getRange(le,x(le.line,le.ch+3))==C+C+C?oe="skipThree":oe="skip";else if(fe&&le.ch>1&&K.indexOf(C)>=0&&R.getRange(x(le.line,le.ch-2),le)==C+C){if(le.ch>2&&/\bstring/.test(R.getTokenTypeAt(x(le.line,le.ch-2))))return c.Pass;oe="addFour"}else if(fe){var Ve=le.ch==0?" ":R.getRange(x(le.line,le.ch-1),le);if(!c.isWordChar(De)&&Ve!=C&&!c.isWordChar(Ve))oe="both";else return c.Pass}else if(re&&(De.length===0||/\s/.test(De)||Q.indexOf(De)>-1))oe="both";else return c.Pass;if(!ye)ye=oe;else if(ye!=oe)return c.Pass}var Le=q%2?J.charAt(q-1):C,ke=q%2?C:J.charAt(q+1);R.operation(function(){if(ye=="skip")j(R,1);else if(ye=="skipThree")j(R,3);else if(ye=="surround"){for(var tt=R.getSelections(),Qe=0;Qe<tt.length;Qe++)tt[Qe]=Le+tt[Qe]+ke;R.replaceSelections(tt,"around"),tt=R.listSelections().slice();for(var Qe=0;Qe<tt.length;Qe++)tt[Qe]=_(tt[Qe]);R.setSelections(tt)}else ye=="both"?(R.replaceSelection(Le+ke,null),R.triggerElectric(Le+ke),j(R,-1)):ye=="addFour"&&(R.replaceSelection(Le+Le+Le+Le,"before"),j(R,1))})}function k(R,C){var V=R.getRange(x(C.line,C.ch-1),x(C.line,C.ch+1));return V.length==2?V:null}function X(R,C){var V=R.getTokenAt(x(C.line,C.ch+1));return/\bstring/.test(V.type)&&V.start==C.ch&&(C.ch==0||!/\bstring/.test(R.getTokenTypeAt(C)))}})},4328:(h,I,o)=>{(function(c){c(o(4631))})(function(c){var v=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),x=c.Pos,d={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function b(j){return j&&j.bracketRegex||/[(){}[\]]/}function S(j,_,H){var k=j.getLineHandle(_.line),X=_.ch-1,R=H&&H.afterCursor;R==null&&(R=/(^| )cm-fat-cursor($| )/.test(j.getWrapperElement().className));var C=b(H),V=!R&&X>=0&&C.test(k.text.charAt(X))&&d[k.text.charAt(X)]||C.test(k.text.charAt(X+1))&&d[k.text.charAt(++X)];if(!V)return null;var J=V.charAt(1)==">"?1:-1;if(H&&H.strict&&J>0!=(X==_.ch))return null;var q=j.getTokenTypeAt(x(_.line,X+1)),Q=g(j,x(_.line,X+(J>0?1:0)),J,q,H);return Q==null?null:{from:x(_.line,X),to:Q&&Q.pos,match:Q&&Q.ch==V.charAt(0),forward:J>0}}function g(j,_,H,k,X){for(var R=X&&X.maxScanLineLength||1e4,C=X&&X.maxScanLines||1e3,V=[],J=b(X),q=H>0?Math.min(_.line+C,j.lastLine()+1):Math.max(j.firstLine()-1,_.line-C),Q=_.line;Q!=q;Q+=H){var K=j.getLine(Q);if(!!K){var fe=H>0?0:K.length-1,te=H>0?K.length:-1;if(!(K.length>R))for(Q==_.line&&(fe=_.ch-(H<0?1:0));fe!=te;fe+=H){var re=K.charAt(fe);if(J.test(re)&&(k===void 0||(j.getTokenTypeAt(x(Q,fe+1))||"")==(k||""))){var ye=d[re];if(ye&&ye.charAt(1)==">"==H>0)V.push(re);else if(V.length)V.pop();else return{pos:x(Q,fe),ch:re}}}}}return Q-H==(H>0?j.lastLine():j.firstLine())?!1:null}function L(j,_,H){for(var k=j.state.matchBrackets.maxHighlightLineLength||1e3,X=H&&H.highlightNonMatching,R=[],C=j.listSelections(),V=0;V<C.length;V++){var J=C[V].empty()&&S(j,C[V].head,H);if(J&&(J.match||X!==!1)&&j.getLine(J.from.line).length<=k){var q=J.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";R.push(j.markText(J.from,x(J.from.line,J.from.ch+1),{className:q})),J.to&&j.getLine(J.to.line).length<=k&&R.push(j.markText(J.to,x(J.to.line,J.to.ch+1),{className:q}))}}if(R.length){v&&j.state.focused&&j.focus();var Q=function(){j.operation(function(){for(var K=0;K<R.length;K++)R[K].clear()})};if(_)setTimeout(Q,800);else return Q}}function N(j){j.operation(function(){j.state.matchBrackets.currentlyHighlighted&&(j.state.matchBrackets.currentlyHighlighted(),j.state.matchBrackets.currentlyHighlighted=null),j.state.matchBrackets.currentlyHighlighted=L(j,!1,j.state.matchBrackets)})}function B(j){j.state.matchBrackets&&j.state.matchBrackets.currentlyHighlighted&&(j.state.matchBrackets.currentlyHighlighted(),j.state.matchBrackets.currentlyHighlighted=null)}c.defineOption("matchBrackets",!1,function(j,_,H){H&&H!=c.Init&&(j.off("cursorActivity",N),j.off("focus",N),j.off("blur",B),B(j)),_&&(j.state.matchBrackets=typeof _=="object"?_:{},j.on("cursorActivity",N),j.on("focus",N),j.on("blur",B))}),c.defineExtension("matchBrackets",function(){L(this,!0)}),c.defineExtension("findMatchingBracket",function(j,_,H){return(H||typeof _=="boolean")&&(H?(H.strict=_,_=H):_=_?{strict:!0}:null),S(this,j,_)}),c.defineExtension("scanForBracket",function(j,_,H,k){return g(this,j,_,H,k)})})},71707:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v="CodeMirror-hint",x="CodeMirror-hint-active";c.showHint=function(R,C,V){if(!C)return R.showHint(V);V&&V.async&&(C.async=!0);var J={hint:C};if(V)for(var q in V)J[q]=V[q];return R.showHint(J)},c.defineExtension("showHint",function(R){R=g(this,this.getCursor("start"),R);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!R.hint.supportsSelection)return;for(var V=0;V<C.length;V++)if(C[V].head.line!=C[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var J=this.state.completionActive=new d(this,R);!J.options.hint||(c.signal(this,"startCompletion",this),J.update(!0))}}),c.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(R,C){if(this.cm=R,this.options=C,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var V=this;R.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var b=window.requestAnimationFrame||function(R){return setTimeout(R,1e3/60)},S=window.cancelAnimationFrame||clearTimeout;d.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&c.signal(this.data,"close"),this.widget&&this.widget.close(),c.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(R,C){var V=R.list[C],J=this;this.cm.operation(function(){V.hint?V.hint(J.cm,R,V):J.cm.replaceRange(L(V),V.from||R.from,V.to||R.to,"complete"),c.signal(R,"pick",V),J.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(S(this.debounce),this.debounce=0);var R=this.startPos;this.data&&(R=this.data.from);var C=this.cm.getCursor(),V=this.cm.getLine(C.line);if(C.line!=this.startPos.line||V.length-C.ch!=this.startLen-this.startPos.ch||C.ch<R.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(V.charAt(C.ch-1)))this.close();else{var J=this;this.debounce=b(function(){J.update()}),this.widget&&this.widget.disable()}},update:function(R){if(this.tick!=null){var C=this,V=++this.tick;H(this.options.hint,this.cm,this.options,function(J){C.tick==V&&C.finishUpdate(J,R)})}},finishUpdate:function(R,C){this.data&&c.signal(this.data,"update");var V=this.widget&&this.widget.picked||C&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=R,R&&R.list.length&&(V&&R.list.length==1?this.pick(R,0):(this.widget=new j(this,R),c.signal(R,"shown")))}};function g(R,C,V){var J=R.options.hintOptions,q={};for(var Q in X)q[Q]=X[Q];if(J)for(var Q in J)J[Q]!==void 0&&(q[Q]=J[Q]);if(V)for(var Q in V)V[Q]!==void 0&&(q[Q]=V[Q]);return q.hint.resolve&&(q.hint=q.hint.resolve(R,C)),q}function L(R){return typeof R=="string"?R:R.text}function N(R,C){var V={Up:function(){C.moveFocus(-1)},Down:function(){C.moveFocus(1)},PageUp:function(){C.moveFocus(-C.menuSize()+1,!0)},PageDown:function(){C.moveFocus(C.menuSize()-1,!0)},Home:function(){C.setFocus(0)},End:function(){C.setFocus(C.length-1)},Enter:C.pick,Tab:C.pick,Esc:C.close},J=/Mac/.test(navigator.platform);J&&(V["Ctrl-P"]=function(){C.moveFocus(-1)},V["Ctrl-N"]=function(){C.moveFocus(1)});var q=R.options.customKeys,Q=q?{}:V;function K(re,ye){var ve;typeof ye!="string"?ve=function(de){return ye(de,C)}:V.hasOwnProperty(ye)?ve=V[ye]:ve=ye,Q[re]=ve}if(q)for(var fe in q)q.hasOwnProperty(fe)&&K(fe,q[fe]);var te=R.options.extraKeys;if(te)for(var fe in te)te.hasOwnProperty(fe)&&K(fe,te[fe]);return Q}function B(R,C){for(;C&&C!=R;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==R)return C;C=C.parentNode}}function j(R,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=R,this.data=C,this.picked=!1;var V=this,J=R.cm,q=J.getInputField().ownerDocument,Q=q.defaultView||q.parentWindow,K=this.hints=q.createElement("ul");K.setAttribute("role","listbox"),K.setAttribute("aria-expanded","true"),K.id=this.id;var fe=R.cm.options.theme;K.className="CodeMirror-hints "+fe,this.selectedHint=C.selectedHint||0;for(var te=C.list,re=0;re<te.length;++re){var ye=K.appendChild(q.createElement("li")),ve=te[re],de=v+(re!=this.selectedHint?"":" "+x);ve.className!=null&&(de=ve.className+" "+de),ye.className=de,re==this.selectedHint&&ye.setAttribute("aria-selected","true"),ye.id=this.id+"-"+re,ye.setAttribute("role","option"),ve.render?ve.render(ye,C,ve):ye.appendChild(q.createTextNode(ve.displayText||L(ve))),ye.hintId=re}var le=R.options.container||q.body,oe=J.cursorCoords(R.options.alignWithWord?C.from:null),De=oe.left,Ve=oe.bottom,Le=!0,ke=0,tt=0;if(le!==q.body){var Qe=["absolute","relative","fixed"].indexOf(Q.getComputedStyle(le).position)!==-1,Xe=Qe?le:le.offsetParent,ut=Xe.getBoundingClientRect(),pt=q.body.getBoundingClientRect();ke=ut.left-pt.left-Xe.scrollLeft,tt=ut.top-pt.top-Xe.scrollTop}K.style.left=De-ke+"px",K.style.top=Ve-tt+"px";var yt=Q.innerWidth||Math.max(q.body.offsetWidth,q.documentElement.offsetWidth),qe=Q.innerHeight||Math.max(q.body.offsetHeight,q.documentElement.offsetHeight);le.appendChild(K),J.getInputField().setAttribute("aria-autocomplete","list"),J.getInputField().setAttribute("aria-owns",this.id),J.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var lt=R.options.moveOnOverlap?K.getBoundingClientRect():new DOMRect,vt=R.options.paddingForScrollbar?K.scrollHeight>K.clientHeight+1:!1,mt;setTimeout(function(){mt=J.getScrollInfo()});var dt=lt.bottom-qe;if(dt>0){var kt=lt.bottom-lt.top,It=oe.top-(oe.bottom-lt.top);if(It-kt>0)K.style.top=(Ve=oe.top-kt-tt)+"px",Le=!1;else if(kt>qe){K.style.height=qe-5+"px",K.style.top=(Ve=oe.bottom-lt.top-tt)+"px";var St=J.getCursor();C.from.ch!=St.ch&&(oe=J.cursorCoords(St),K.style.left=(De=oe.left-ke)+"px",lt=K.getBoundingClientRect())}}var Wt=lt.right-yt;if(vt&&(Wt+=J.display.nativeBarWidth),Wt>0&&(lt.right-lt.left>yt&&(K.style.width=yt-5+"px",Wt-=lt.right-lt.left-yt),K.style.left=(De=oe.left-Wt-ke)+"px"),vt)for(var Bt=K.firstChild;Bt;Bt=Bt.nextSibling)Bt.style.paddingRight=J.display.nativeBarWidth+"px";if(J.addKeyMap(this.keyMap=N(R,{moveFocus:function(Rt,pe){V.changeActive(V.selectedHint+Rt,pe)},setFocus:function(Rt){V.changeActive(Rt)},menuSize:function(){return V.screenAmount()},length:te.length,close:function(){R.close()},pick:function(){V.pick()},data:C})),R.options.closeOnUnfocus){var Gt;J.on("blur",this.onBlur=function(){Gt=setTimeout(function(){R.close()},100)}),J.on("focus",this.onFocus=function(){clearTimeout(Gt)})}J.on("scroll",this.onScroll=function(){var Rt=J.getScrollInfo(),pe=J.getWrapperElement().getBoundingClientRect();mt||(mt=J.getScrollInfo());var G=Ve+mt.top-Rt.top,$=G-(Q.pageYOffset||(q.documentElement||q.body).scrollTop);if(Le||($+=K.offsetHeight),$<=pe.top||$>=pe.bottom)return R.close();K.style.top=G+"px",K.style.left=De+mt.left-Rt.left+"px"}),c.on(K,"dblclick",function(Rt){var pe=B(K,Rt.target||Rt.srcElement);pe&&pe.hintId!=null&&(V.changeActive(pe.hintId),V.pick())}),c.on(K,"click",function(Rt){var pe=B(K,Rt.target||Rt.srcElement);pe&&pe.hintId!=null&&(V.changeActive(pe.hintId),R.options.completeOnSingleClick&&V.pick())}),c.on(K,"mousedown",function(){setTimeout(function(){J.focus()},20)});var wt=this.getSelectedHintRange();return(wt.from!==0||wt.to!==0)&&this.scrollToActive(),c.signal(C,"select",te[this.selectedHint],K.childNodes[this.selectedHint]),!0}j.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var R=this.completion.cm.getInputField();R.removeAttribute("aria-activedescendant"),R.removeAttribute("aria-owns");var C=this.completion.cm;this.completion.options.closeOnUnfocus&&(C.off("blur",this.onBlur),C.off("focus",this.onFocus)),C.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var R=this;this.keyMap={Enter:function(){R.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(R,C){if(R>=this.data.list.length?R=C?this.data.list.length-1:0:R<0&&(R=C?0:this.data.list.length-1),this.selectedHint!=R){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+x,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=R],V.className+=" "+x,V.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",V.id),this.scrollToActive(),c.signal(this.data,"select",this.data.list[this.selectedHint],V)}},scrollToActive:function(){var R=this.getSelectedHintRange(),C=this.hints.childNodes[R.from],V=this.hints.childNodes[R.to],J=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-J.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+J.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var R=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-R),to:Math.min(this.data.list.length-1,this.selectedHint+R)}}};function _(R,C){if(!R.somethingSelected())return C;for(var V=[],J=0;J<C.length;J++)C[J].supportsSelection&&V.push(C[J]);return V}function H(R,C,V,J){if(R.async)R(C,J,V);else{var q=R(C,V);q&&q.then?q.then(J):J(q)}}function k(R,C){var V=R.getHelpers(C,"hint"),J;if(V.length){var q=function(Q,K,fe){var te=_(Q,V);function re(ye){if(ye==te.length)return K(null);H(te[ye],Q,fe,function(ve){ve&&ve.list.length>0?K(ve):re(ye+1)})}re(0)};return q.async=!0,q.supportsSelection=!0,q}else return(J=R.getHelper(R.getCursor(),"hintWords"))?function(Q){return c.hint.fromList(Q,{words:J})}:c.hint.anyword?function(Q,K){return c.hint.anyword(Q,K)}:function(){}}c.registerHelper("hint","auto",{resolve:k}),c.registerHelper("hint","fromList",function(R,C){var V=R.getCursor(),J=R.getTokenAt(V),q,Q=c.Pos(V.line,J.start),K=V;J.start<V.ch&&/\w/.test(J.string.charAt(V.ch-J.start-1))?q=J.string.substr(0,V.ch-J.start):(q="",Q=V);for(var fe=[],te=0;te<C.words.length;te++){var re=C.words[te];re.slice(0,q.length)==q&&fe.push(re)}if(fe.length)return{list:fe,from:Q,to:K}}),c.commands.autocomplete=c.showHint;var X={hint:c.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};c.defineOption("hintOptions",null)})},3256:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",x="CodeMirror-lint-line-";function d(K,fe,te){var re=document.createElement("div");re.className="CodeMirror-lint-tooltip cm-s-"+K.options.theme,re.appendChild(te.cloneNode(!0)),K.state.lint.options.selfContain?K.getWrapperElement().appendChild(re):document.body.appendChild(re);function ye(ve){if(!re.parentNode)return c.off(document,"mousemove",ye);re.style.top=Math.max(0,ve.clientY-re.offsetHeight-5)+"px",re.style.left=ve.clientX+5+"px"}return c.on(document,"mousemove",ye),ye(fe),re.style.opacity!=null&&(re.style.opacity=1),re}function b(K){K.parentNode&&K.parentNode.removeChild(K)}function S(K){!K.parentNode||(K.style.opacity==null&&b(K),K.style.opacity=0,setTimeout(function(){b(K)},600))}function g(K,fe,te,re){var ye=d(K,fe,te);function ve(){c.off(re,"mouseout",ve),ye&&(S(ye),ye=null)}var de=setInterval(function(){if(ye)for(var le=re;;le=le.parentNode){if(le&&le.nodeType==11&&(le=le.host),le==document.body)return;if(!le){ve();break}}if(!ye)return clearInterval(de)},400);c.on(re,"mouseout",ve)}function L(K,fe,te){this.marked=[],fe instanceof Function&&(fe={getAnnotations:fe}),(!fe||fe===!0)&&(fe={}),this.options={},this.linterOptions=fe.options||{};for(var re in N)this.options[re]=N[re];for(var re in fe)N.hasOwnProperty(re)?fe[re]!=null&&(this.options[re]=fe[re]):fe.options||(this.linterOptions[re]=fe[re]);this.timeout=null,this.hasGutter=te,this.onMouseOver=function(ye){Q(K,ye)},this.waitingFor=0}var N={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function B(K){var fe=K.state.lint;fe.hasGutter&&K.clearGutter(v),fe.options.highlightLines&&j(K);for(var te=0;te<fe.marked.length;++te)fe.marked[te].clear();fe.marked.length=0}function j(K){K.eachLine(function(fe){var te=fe.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(fe.wrapClass);te&&K.removeLineClass(fe,"wrap",te[0])})}function _(K,fe,te,re,ye){var ve=document.createElement("div"),de=ve;return ve.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+te,re&&(de=ve.appendChild(document.createElement("div")),de.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),ye!=!1&&c.on(de,"mouseover",function(le){g(K,le,fe,de)}),ve}function H(K,fe){return K=="error"?K:fe}function k(K){for(var fe=[],te=0;te<K.length;++te){var re=K[te],ye=re.from.line;(fe[ye]||(fe[ye]=[])).push(re)}return fe}function X(K){var fe=K.severity;fe||(fe="error");var te=document.createElement("div");return te.className="CodeMirror-lint-message CodeMirror-lint-message-"+fe,typeof K.messageHTML!="undefined"?te.innerHTML=K.messageHTML:te.appendChild(document.createTextNode(K.message)),te}function R(K,fe){var te=K.state.lint,re=++te.waitingFor;function ye(){re=-1,K.off("change",ye)}K.on("change",ye),fe(K.getValue(),function(ve,de){K.off("change",ye),te.waitingFor==re&&(de&&ve instanceof c&&(ve=de),K.operation(function(){V(K,ve)}))},te.linterOptions,K)}function C(K){var fe=K.state.lint;if(!!fe){var te=fe.options,re=te.getAnnotations||K.getHelper(c.Pos(0,0),"lint");if(!!re)if(te.async||re.async)R(K,re);else{var ye=re(K.getValue(),fe.linterOptions,K);if(!ye)return;ye.then?ye.then(function(ve){K.operation(function(){V(K,ve)})}):K.operation(function(){V(K,ye)})}}}function V(K,fe){var te=K.state.lint;if(!!te){var re=te.options;B(K);for(var ye=k(fe),ve=0;ve<ye.length;++ve){var de=ye[ve];if(!!de){var le=[];de=de.filter(function(tt){return le.indexOf(tt.message)>-1?!1:le.push(tt.message)});for(var oe=null,De=te.hasGutter&&document.createDocumentFragment(),Ve=0;Ve<de.length;++Ve){var Le=de[Ve],ke=Le.severity;ke||(ke="error"),oe=H(oe,ke),re.formatAnnotation&&(Le=re.formatAnnotation(Le)),te.hasGutter&&De.appendChild(X(Le)),Le.to&&te.marked.push(K.markText(Le.from,Le.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+ke,__annotation:Le}))}te.hasGutter&&K.setGutterMarker(ve,v,_(K,De,oe,ye[ve].length>1,re.tooltips)),re.highlightLines&&K.addLineClass(ve,"wrap",x+oe)}}re.onUpdateLinting&&re.onUpdateLinting(fe,ye,K)}}function J(K){var fe=K.state.lint;!fe||(clearTimeout(fe.timeout),fe.timeout=setTimeout(function(){C(K)},fe.options.delay))}function q(K,fe,te){for(var re=te.target||te.srcElement,ye=document.createDocumentFragment(),ve=0;ve<fe.length;ve++){var de=fe[ve];ye.appendChild(X(de))}g(K,te,ye,re)}function Q(K,fe){var te=fe.target||fe.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(te.className)){for(var re=te.getBoundingClientRect(),ye=(re.left+re.right)/2,ve=(re.top+re.bottom)/2,de=K.findMarksAt(K.coordsChar({left:ye,top:ve},"client")),le=[],oe=0;oe<de.length;++oe){var De=de[oe].__annotation;De&&le.push(De)}le.length&&q(K,le,fe)}}c.defineOption("lint",!1,function(K,fe,te){if(te&&te!=c.Init&&(B(K),K.state.lint.options.lintOnChange!==!1&&K.off("change",J),c.off(K.getWrapperElement(),"mouseover",K.state.lint.onMouseOver),clearTimeout(K.state.lint.timeout),delete K.state.lint),fe){for(var re=K.getOption("gutters"),ye=!1,ve=0;ve<re.length;++ve)re[ve]==v&&(ye=!0);var de=K.state.lint=new L(K,fe,ye);de.options.lintOnChange&&K.on("change",J),de.options.tooltips!=!1&&de.options.tooltips!="gutter"&&c.on(K.getWrapperElement(),"mouseover",de.onMouseOver),C(K)}}),c.defineExtension("performLint",function(){C(this)})})},32095:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v=c.Pos;function x(C){var V=C.flags;return V!=null?V:(C.ignoreCase?"i":"")+(C.global?"g":"")+(C.multiline?"m":"")}function d(C,V){for(var J=x(C),q=J,Q=0;Q<V.length;Q++)q.indexOf(V.charAt(Q))==-1&&(q+=V.charAt(Q));return J==q?C:new RegExp(C.source,q)}function b(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function S(C,V,J){V=d(V,"g");for(var q=J.line,Q=J.ch,K=C.lastLine();q<=K;q++,Q=0){V.lastIndex=Q;var fe=C.getLine(q),te=V.exec(fe);if(te)return{from:v(q,te.index),to:v(q,te.index+te[0].length),match:te}}}function g(C,V,J){if(!b(V))return S(C,V,J);V=d(V,"gm");for(var q,Q=1,K=J.line,fe=C.lastLine();K<=fe;){for(var te=0;te<Q&&!(K>fe);te++){var re=C.getLine(K++);q=q==null?re:q+`
13
+ `+re}Q=Q*2,V.lastIndex=J.ch;var ye=V.exec(q);if(ye){var ve=q.slice(0,ye.index).split(`
14
+ `),de=ye[0].split(`
15
+ `),le=J.line+ve.length-1,oe=ve[ve.length-1].length;return{from:v(le,oe),to:v(le+de.length-1,de.length==1?oe+de[0].length:de[de.length-1].length),match:ye}}}}function L(C,V,J){for(var q,Q=0;Q<=C.length;){V.lastIndex=Q;var K=V.exec(C);if(!K)break;var fe=K.index+K[0].length;if(fe>C.length-J)break;(!q||fe>q.index+q[0].length)&&(q=K),Q=K.index+1}return q}function N(C,V,J){V=d(V,"g");for(var q=J.line,Q=J.ch,K=C.firstLine();q>=K;q--,Q=-1){var fe=C.getLine(q),te=L(fe,V,Q<0?0:fe.length-Q);if(te)return{from:v(q,te.index),to:v(q,te.index+te[0].length),match:te}}}function B(C,V,J){if(!b(V))return N(C,V,J);V=d(V,"gm");for(var q,Q=1,K=C.getLine(J.line).length-J.ch,fe=J.line,te=C.firstLine();fe>=te;){for(var re=0;re<Q&&fe>=te;re++){var ye=C.getLine(fe--);q=q==null?ye:ye+`
16
+ `+q}Q*=2;var ve=L(q,V,K);if(ve){var de=q.slice(0,ve.index).split(`
17
+ `),le=ve[0].split(`
18
+ `),oe=fe+de.length,De=de[de.length-1].length;return{from:v(oe,De),to:v(oe+le.length-1,le.length==1?De+le[0].length:le[le.length-1].length),match:ve}}}}var j,_;String.prototype.normalize?(j=function(C){return C.normalize("NFD").toLowerCase()},_=function(C){return C.normalize("NFD")}):(j=function(C){return C.toLowerCase()},_=function(C){return C});function H(C,V,J,q){if(C.length==V.length)return J;for(var Q=0,K=J+Math.max(0,C.length-V.length);;){if(Q==K)return Q;var fe=Q+K>>1,te=q(C.slice(0,fe)).length;if(te==J)return fe;te>J?K=fe:Q=fe+1}}function k(C,V,J,q){if(!V.length)return null;var Q=q?j:_,K=Q(V).split(/\r|\n\r?/);e:for(var fe=J.line,te=J.ch,re=C.lastLine()+1-K.length;fe<=re;fe++,te=0){var ye=C.getLine(fe).slice(te),ve=Q(ye);if(K.length==1){var de=ve.indexOf(K[0]);if(de==-1)continue e;var J=H(ye,ve,de,Q)+te;return{from:v(fe,H(ye,ve,de,Q)+te),to:v(fe,H(ye,ve,de+K[0].length,Q)+te)}}else{var le=ve.length-K[0].length;if(ve.slice(le)!=K[0])continue e;for(var oe=1;oe<K.length-1;oe++)if(Q(C.getLine(fe+oe))!=K[oe])continue e;var De=C.getLine(fe+K.length-1),Ve=Q(De),Le=K[K.length-1];if(Ve.slice(0,Le.length)!=Le)continue e;return{from:v(fe,H(ye,ve,le,Q)+te),to:v(fe+K.length-1,H(De,Ve,Le.length,Q))}}}}function X(C,V,J,q){if(!V.length)return null;var Q=q?j:_,K=Q(V).split(/\r|\n\r?/);e:for(var fe=J.line,te=J.ch,re=C.firstLine()-1+K.length;fe>=re;fe--,te=-1){var ye=C.getLine(fe);te>-1&&(ye=ye.slice(0,te));var ve=Q(ye);if(K.length==1){var de=ve.lastIndexOf(K[0]);if(de==-1)continue e;return{from:v(fe,H(ye,ve,de,Q)),to:v(fe,H(ye,ve,de+K[0].length,Q))}}else{var le=K[K.length-1];if(ve.slice(0,le.length)!=le)continue e;for(var oe=1,J=fe-K.length+1;oe<K.length-1;oe++)if(Q(C.getLine(J+oe))!=K[oe])continue e;var De=C.getLine(fe+1-K.length),Ve=Q(De);if(Ve.slice(Ve.length-K[0].length)!=K[0])continue e;return{from:v(fe+1-K.length,H(De,Ve,De.length-K[0].length,Q)),to:v(fe,H(ye,ve,le.length,Q))}}}}function R(C,V,J,q){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,J=J?C.clipPos(J):v(0,0),this.pos={from:J,to:J};var Q;typeof q=="object"?Q=q.caseFold:(Q=q,q=null),typeof V=="string"?(Q==null&&(Q=!1),this.matches=function(K,fe){return(K?X:k)(C,V,fe,Q)}):(V=d(V,"gm"),!q||q.multiline!==!1?this.matches=function(K,fe){return(K?B:g)(C,V,fe)}:this.matches=function(K,fe){return(K?N:S)(C,V,fe)})}R.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var V=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(V=v(V.line,V.ch),C?(V.ch--,V.ch<0&&(V.line--,V.ch=(this.doc.getLine(V.line)||"").length)):(V.ch++,V.ch>(this.doc.getLine(V.line)||"").length&&(V.ch=0,V.line++)),c.cmpPos(V,this.doc.clipPos(V))!=0))return this.atOccurrence=!1;var J=this.matches(C,V);if(this.afterEmptyMatch=J&&c.cmpPos(J.from,J.to)==0,J)return this.pos=J,this.atOccurrence=!0,this.pos.match||!0;var q=v(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:q,to:q},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,V){if(!!this.atOccurrence){var J=c.splitLines(C);this.doc.replaceRange(J,this.pos.from,this.pos.to,V),this.pos.to=v(this.pos.from.line+J.length-1,J[J.length-1].length+(J.length==1?this.pos.from.ch:0))}}},c.defineExtension("getSearchCursor",function(C,V,J){return new R(this.doc,C,V,J)}),c.defineDocExtension("getSearchCursor",function(C,V,J){return new R(this,C,V,J)}),c.defineExtension("selectMatches",function(C,V){for(var J=[],q=this.getSearchCursor(C,this.getCursor("from"),V);q.findNext()&&!(c.cmpPos(q.to(),this.getCursor("to"))>0);)J.push({anchor:q.from(),head:q.to()});J.length&&this.setSelections(J,0)})})},4631:function(h){(function(I,o){h.exports=o()})(this,function(){"use strict";var I=navigator.userAgent,o=navigator.platform,c=/gecko\/\d/i.test(I),v=/MSIE \d/.test(I),x=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),d=/Edge\/(\d+)/.exec(I),b=v||x||d,S=b&&(v?document.documentMode||6:+(d||x)[1]),g=!d&&/WebKit\//.test(I),L=g&&/Qt\/\d+\.\d+/.test(I),N=!d&&/Chrome\//.test(I),B=/Opera\//.test(I),j=/Apple Computer/.test(navigator.vendor),_=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),H=/PhantomJS/.test(I),k=j&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),X=/Android/.test(I),R=k||X||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),C=k||/Mac/.test(o),V=/\bCrOS\b/.test(I),J=/win/i.test(o),q=B&&I.match(/Version\/(\d*\.\d*)/);q&&(q=Number(q[1])),q&&q>=15&&(B=!1,g=!0);var Q=C&&(L||B&&(q==null||q<12.11)),K=c||b&&S>=9;function fe(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var te=function(e,n){var u=e.className,l=fe(n).exec(u);if(l){var f=u.slice(l.index+l[0].length);e.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function re(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function ye(e,n){return re(e).appendChild(n)}function ve(e,n,u,l){var f=document.createElement(e);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof n=="string")f.appendChild(document.createTextNode(n));else if(n)for(var y=0;y<n.length;++y)f.appendChild(n[y]);return f}function de(e,n,u,l){var f=ve(e,n,u,l);return f.setAttribute("role","presentation"),f}var le;document.createRange?le=function(e,n,u,l){var f=document.createRange();return f.setEnd(l||e,u),f.setStart(e,n),f}:le=function(e,n,u){var l=document.body.createTextRange();try{l.moveToElementText(e.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",n),l};function oe(e,n){if(n.nodeType==3&&(n=n.parentNode),e.contains)return e.contains(n);do if(n.nodeType==11&&(n=n.host),n==e)return!0;while(n=n.parentNode)}function De(){var e;try{e=document.activeElement}catch(n){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Ve(e,n){var u=e.className;fe(n).test(u)||(e.className+=(u?" ":"")+n)}function Le(e,n){for(var u=e.split(" "),l=0;l<u.length;l++)u[l]&&!fe(u[l]).test(n)&&(n+=" "+u[l]);return n}var ke=function(e){e.select()};k?ke=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(ke=function(e){try{e.select()}catch(n){}});function tt(e){var n=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,n)}}function Qe(e,n,u){n||(n={});for(var l in e)e.hasOwnProperty(l)&&(u!==!1||!n.hasOwnProperty(l))&&(n[l]=e[l]);return n}function Xe(e,n,u,l,f){n==null&&(n=e.search(/[^\s\u00a0]/),n==-1&&(n=e.length));for(var y=l||0,F=f||0;;){var U=e.indexOf(" ",y);if(U<0||U>=n)return F+(n-y);F+=U-y,F+=u-F%u,y=U+1}}var ut=function(){this.id=null,this.f=null,this.time=0,this.handler=tt(this.onTimeout,this)};ut.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ut.prototype.set=function(e,n){this.f=n;var u=+new Date+e;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=u)};function pt(e,n){for(var u=0;u<e.length;++u)if(e[u]==n)return u;return-1}var yt=50,qe={toString:function(){return"CodeMirror.Pass"}},lt={scroll:!1},vt={origin:"*mouse"},mt={origin:"+move"};function dt(e,n,u){for(var l=0,f=0;;){var y=e.indexOf(" ",l);y==-1&&(y=e.length);var F=y-l;if(y==e.length||f+F>=n)return l+Math.min(F,n-f);if(f+=y-l,f+=u-f%u,l=y+1,f>=n)return l}}var kt=[""];function It(e){for(;kt.length<=e;)kt.push(St(kt)+" ");return kt[e]}function St(e){return e[e.length-1]}function Wt(e,n){for(var u=[],l=0;l<e.length;l++)u[l]=n(e[l],l);return u}function Bt(e,n,u){for(var l=0,f=u(n);l<e.length&&u(e[l])<=f;)l++;e.splice(l,0,n)}function Gt(){}function wt(e,n){var u;return Object.create?u=Object.create(e):(Gt.prototype=e,u=new Gt),n&&Qe(n,u),u}var Rt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function pe(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Rt.test(e))}function G(e,n){return n?n.source.indexOf("\\w")>-1&&pe(e)?!0:n.test(e):pe(e)}function $(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var we=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Me(e){return e.charCodeAt(0)>=768&&we.test(e)}function be(e,n,u){for(;(u<0?n>0:n<e.length)&&Me(e.charAt(n));)n+=u;return n}function Ae(e,n,u){for(var l=n>u?-1:1;;){if(n==u)return n;var f=(n+u)/2,y=l<0?Math.ceil(f):Math.floor(f);if(y==n)return e(y)?n:u;e(y)?u=y:n=y+l}}function T(e,n,u,l){if(!e)return l(n,u,"ltr",0);for(var f=!1,y=0;y<e.length;++y){var F=e[y];(F.from<u&&F.to>n||n==u&&F.to==n)&&(l(Math.max(F.from,n),Math.min(F.to,u),F.level==1?"rtl":"ltr",y),f=!0)}f||l(n,u,"ltr")}var Ie=null;function W(e,n,u){var l;Ie=null;for(var f=0;f<e.length;++f){var y=e[f];if(y.from<n&&y.to>n)return f;y.to==n&&(y.from!=y.to&&u=="before"?l=f:Ie=f),y.from==n&&(y.from!=y.to&&u!="before"?l=f:Ie=f)}return l!=null?l:Ie}var O=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(Z){return Z<=247?e.charAt(Z):1424<=Z&&Z<=1524?"R":1536<=Z&&Z<=1785?n.charAt(Z-1536):1774<=Z&&Z<=2220?"r":8192<=Z&&Z<=8203?"w":Z==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,y=/[LRr]/,F=/[Lb1n]/,U=/[1n]/;function z(Z,xe,Ce){this.level=Z,this.from=xe,this.to=Ce}return function(Z,xe){var Ce=xe=="ltr"?"L":"R";if(Z.length==0||xe=="ltr"&&!l.test(Z))return!1;for(var Ne=Z.length,Re=[],Ye=0;Ye<Ne;++Ye)Re.push(u(Z.charCodeAt(Ye)));for(var et=0,at=Ce;et<Ne;++et){var ft=Re[et];ft=="m"?Re[et]=at:at=ft}for(var ht=0,ct=Ce;ht<Ne;++ht){var xt=Re[ht];xt=="1"&&ct=="r"?Re[ht]="n":y.test(xt)&&(ct=xt,xt=="r"&&(Re[ht]="R"))}for(var Pt=1,Ot=Re[0];Pt<Ne-1;++Pt){var Vt=Re[Pt];Vt=="+"&&Ot=="1"&&Re[Pt+1]=="1"?Re[Pt]="1":Vt==","&&Ot==Re[Pt+1]&&(Ot=="1"||Ot=="n")&&(Re[Pt]=Ot),Ot=Vt}for(var ar=0;ar<Ne;++ar){var Lr=Re[ar];if(Lr==",")Re[ar]="N";else if(Lr=="%"){var gr=void 0;for(gr=ar+1;gr<Ne&&Re[gr]=="%";++gr);for(var hn=ar&&Re[ar-1]=="!"||gr<Ne&&Re[gr]=="1"?"1":"N",an=ar;an<gr;++an)Re[an]=hn;ar=gr-1}}for(var kr=0,tn=Ce;kr<Ne;++kr){var zr=Re[kr];tn=="L"&&zr=="1"?Re[kr]="L":y.test(zr)&&(tn=zr)}for(var Dr=0;Dr<Ne;++Dr)if(f.test(Re[Dr])){var Er=void 0;for(Er=Dr+1;Er<Ne&&f.test(Re[Er]);++Er);for(var dr=(Dr?Re[Dr-1]:Ce)=="L",sn=(Er<Ne?Re[Er]:Ce)=="L",ni=dr==sn?dr?"L":"R":Ce,vi=Dr;vi<Er;++vi)Re[vi]=ni;Dr=Er-1}for(var cr=[],gi,Nr=0;Nr<Ne;)if(F.test(Re[Nr])){var fs=Nr;for(++Nr;Nr<Ne&&F.test(Re[Nr]);++Nr);cr.push(new z(0,fs,Nr))}else{var ii=Nr,io=cr.length,oo=xe=="rtl"?1:0;for(++Nr;Nr<Ne&&Re[Nr]!="L";++Nr);for(var Yr=ii;Yr<Nr;)if(U.test(Re[Yr])){ii<Yr&&(cr.splice(io,0,new z(1,ii,Yr)),io+=oo);var Bo=Yr;for(++Yr;Yr<Nr&&U.test(Re[Yr]);++Yr);cr.splice(io,0,new z(2,Bo,Yr)),io+=oo,ii=Yr}else++Yr;ii<Nr&&cr.splice(io,0,new z(1,ii,Nr))}return xe=="ltr"&&(cr[0].level==1&&(gi=Z.match(/^\s+/))&&(cr[0].from=gi[0].length,cr.unshift(new z(0,0,gi[0].length))),St(cr).level==1&&(gi=Z.match(/\s+$/))&&(St(cr).to-=gi[0].length,cr.push(new z(0,Ne-gi[0].length,Ne)))),xe=="rtl"?cr.reverse():cr}}();function P(e,n){var u=e.order;return u==null&&(u=e.order=O(e.text,n)),u}var ie=[],D=function(e,n,u){if(e.addEventListener)e.addEventListener(n,u,!1);else if(e.attachEvent)e.attachEvent("on"+n,u);else{var l=e._handlers||(e._handlers={});l[n]=(l[n]||ie).concat(u)}};function ee(e,n){return e._handlers&&e._handlers[n]||ie}function ce(e,n,u){if(e.removeEventListener)e.removeEventListener(n,u,!1);else if(e.detachEvent)e.detachEvent("on"+n,u);else{var l=e._handlers,f=l&&l[n];if(f){var y=pt(f,u);y>-1&&(l[n]=f.slice(0,y).concat(f.slice(y+1)))}}}function Oe(e,n){var u=ee(e,n);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function Pe(e,n,u){return typeof n=="string"&&(n={type:n,preventDefault:function(){this.defaultPrevented=!0}}),Oe(e,u||n.type,e,n),Ct(n)||n.codemirrorIgnore}function Te(e){var n=e._handlers&&e._handlers.cursorActivity;if(!!n)for(var u=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),l=0;l<n.length;++l)pt(u,n[l])==-1&&u.push(n[l])}function ze(e,n){return ee(e,n).length>0}function He(e){e.prototype.on=function(n,u){D(this,n,u)},e.prototype.off=function(n,u){ce(this,n,u)}}function it(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function gt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ct(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Yt(e){it(e),gt(e)}function Ft(e){return e.target||e.srcElement}function gn(e){var n=e.which;return n==null&&(e.button&1?n=1:e.button&2?n=3:e.button&4&&(n=2)),C&&e.ctrlKey&&n==1&&(n=3),n}var Xr=function(){if(b&&S<9)return!1;var e=ve("div");return"draggable"in e||"dragDrop"in e}(),Cn;function Ui(e){if(Cn==null){var n=ve("span","\u200B");ye(e,ve("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Cn=n.offsetWidth<=1&&n.offsetHeight>2&&!(b&&S<8))}var u=Cn?ve("span","\u200B"):ve("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var jr;function Un(e){if(jr!=null)return jr;var n=ye(e,document.createTextNode("A\u062EA")),u=le(n,0,1).getBoundingClientRect(),l=le(n,1,2).getBoundingClientRect();return re(e),!u||u.left==u.right?!1:jr=l.right-u.right<3}var Gn=`
19
19
 
20
20
  b`.split(/\n/).length!=3?function(e){for(var n=0,u=[],l=e.length;n<=l;){var f=e.indexOf(`
21
- `,n);f==-1&&(f=e.length);var y=e.slice(n,e.charAt(f-1)=="\r"?f-1:f),F=y.indexOf("\r");F!=-1?(u.push(y.slice(0,F)),n+=F+1):(u.push(y),n=f+1)}return u}:function(e){return e.split(/\r\n?|\n/)},Tn=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(n){return!1}}:function(e){var n;try{n=e.ownerDocument.selection.createRange()}catch(u){}return!n||n.parentElement()!=e?!1:n.compareEndPoints("StartToEnd",n)!=0},Kn=function(){var e=ge("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ln=null;function Ca(e){if(ln!=null)return ln;var n=me(e,ge("span","x")),u=n.getBoundingClientRect(),l=ue(n,0,1).getBoundingClientRect();return ln=Math.abs(u.left-l.left)>1}var Wo={},mn={};function Yn(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Wo[e]=n}function bi(e,n){mn[e]=n}function ji(e){if(typeof e=="string"&&mn.hasOwnProperty(e))e=mn[e];else if(e&&typeof e.name=="string"&&mn.hasOwnProperty(e.name)){var n=mn[e.name];typeof n=="string"&&(n={name:n}),e=wt(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ji("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ji("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Vn(e,n){n=ji(n);var u=Wo[n.name];if(!u)return Vn(e,"text/plain");var l=u(e,n);if(wi.hasOwnProperty(n.name)){var f=wi[n.name];for(var y in f)!f.hasOwnProperty(y)||(l.hasOwnProperty(y)&&(l["_"+y]=l[y]),l[y]=f[y])}if(l.name=n.name,n.helperType&&(l.helperType=n.helperType),n.modeProps)for(var F in n.modeProps)l[F]=n.modeProps[F];return l}var wi={};function Oa(e,n){var u=wi.hasOwnProperty(e)?wi[e]:wi[e]={};Qe(n,u)}function Pn(e,n){if(n===!0)return n;if(e.copyState)return e.copyState(n);var u={};for(var l in n){var f=n[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function xn(e,n){for(var u;e.innerMode&&(u=e.innerMode(n),!(!u||u.mode==e));)n=u.state,e=u.mode;return u||{mode:e,state:n}}function Si(e,n,u){return e.startState?e.startState(n,u):!0}var xr=function(e,n,u){this.pos=this.start=0,this.string=e,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};xr.prototype.eol=function(){return this.pos>=this.string.length},xr.prototype.sol=function(){return this.pos==this.lineStart},xr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},xr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},xr.prototype.eat=function(e){var n=this.string.charAt(this.pos),u;if(typeof e=="string"?u=n==e:u=n&&(e.test?e.test(n):e(n)),u)return++this.pos,n},xr.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},xr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},xr.prototype.skipToEnd=function(){this.pos=this.string.length},xr.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},xr.prototype.backUp=function(e){this.pos-=e},xr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Je(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},xr.prototype.indentation=function(){return Je(this.string,null,this.tabSize)-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},xr.prototype.match=function(e,n,u){if(typeof e=="string"){var l=function(F){return u?F.toLowerCase():F},f=this.string.substr(this.pos,e.length);if(l(f)==l(e))return n!==!1&&(this.pos+=e.length),!0}else{var y=this.string.slice(this.pos).match(e);return y&&y.index>0?null:(y&&n!==!1&&(this.pos+=y[0].length),y)}},xr.prototype.current=function(){return this.string.slice(this.start,this.pos)},xr.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},xr.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},xr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function At(e,n){if(n-=e.first,n<0||n>=e.size)throw new Error("There is no line "+(n+e.first)+" in the document.");for(var u=e;!u.lines;)for(var l=0;;++l){var f=u.children[l],y=f.chunkSize();if(n<y){u=f;break}n-=y}return u.lines[n]}function ai(e,n,u){var l=[],f=n.line;return e.iter(n.line,u.line+1,function(y){var F=y.text;f==u.line&&(F=F.slice(0,u.ch)),f==n.line&&(F=F.slice(n.ch)),l.push(F),++f}),l}function Ai(e,n,u){var l=[];return e.iter(n,u,function(f){l.push(f.text)}),l}function bn(e,n){var u=n-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function er(e){if(e.parent==null)return null;for(var n=e.parent,u=pt(n.lines,e),l=n.parent;l;n=l,l=l.parent)for(var f=0;l.children[f]!=n;++f)u+=l.children[f].chunkSize();return u+n.first}function Wn(e,n){var u=e.first;e:do{for(var l=0;l<e.children.length;++l){var f=e.children[l],y=f.height;if(n<y){e=f;continue e}n-=y,u+=f.chunkSize()}return u}while(!e.lines);for(var F=0;F<e.lines.length;++F){var j=e.lines[F],G=j.height;if(n<G)break;n-=G}return u+F}function Jn(e,n){return n>=e.first&&n<e.first+e.size}function lo(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function nt(e,n,u){if(u===void 0&&(u=null),!(this instanceof nt))return new nt(e,n,u);this.line=e,this.ch=n,this.sticky=u}function Lt(e,n){return e.line-n.line||e.ch-n.ch}function si(e,n){return e.sticky==n.sticky&&Lt(e,n)==0}function se(e){return nt(e.line,e.ch)}function Ce(e,n){return Lt(e,n)<0?n:e}function qe(e,n){return Lt(e,n)<0?e:n}function ot(e,n){return Math.max(e.first,Math.min(n,e.first+e.size-1))}function st(e,n){if(n.line<e.first)return nt(e.first,0);var u=e.first+e.size-1;return n.line>u?nt(u,At(e,u).text.length):$t(n,At(e,n.line).text.length)}function $t(e,n){var u=e.ch;return u==null||u>n?nt(e.line,n):u<0?nt(e.line,0):e}function Zt(e,n){for(var u=[],l=0;l<n.length;l++)u[l]=st(e,n[l]);return u}var Tr=function(e,n){this.state=e,this.lookAhead=n},Pr=function(e,n,u,l){this.state=n,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Pr.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},Pr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Pr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Pr.fromSaved=function(e,n,u){return n instanceof Tr?new Pr(e,Pn(e.mode,n.state),u,n.lookAhead):new Pr(e,Pn(e.mode,n),u)},Pr.prototype.save=function(e){var n=e!==!1?Pn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Tr(n,this.maxLookAhead):n};function tr(e,n,u,l){var f=[e.state.modeGen],y={};Ll(e,n.text,e.doc.mode,u,function(q,xe){return f.push(q,xe)},y,l);for(var F=u.state,j=function(q){u.baseTokens=f;var xe=e.state.overlays[q],Ee=1,De=0;u.state=!0,Ll(e,n.text,xe.mode,u,function(Le,Xe){for(var tt=Ee;De<Le;){var at=f[Ee];at>Le&&f.splice(Ee,1,Le,f[Ee+1],at),Ee+=2,De=Math.min(Le,at)}if(!!Xe)if(xe.opaque)f.splice(tt,Ee-tt,Le,"overlay "+Xe),Ee=tt+2;else for(;tt<Ee;tt+=2){var ft=f[tt+1];f[tt+1]=(ft?ft+" ":"")+"overlay "+Xe}},y),u.state=F,u.baseTokens=null,u.baseTokenPos=1},G=0;G<e.state.overlays.length;++G)j(G);return{styles:f,classes:y.bgClass||y.textClass?y:null}}function Rl(e,n,u){if(!n.styles||n.styles[0]!=e.state.modeGen){var l=Qr(e,er(n)),f=n.text.length>e.options.maxHighlightLength&&Pn(e.doc.mode,l.state),y=tr(e,n,l);f&&(l.state=f),n.stateAfter=l.save(!f),n.styles=y.styles,y.classes?n.styleClasses=y.classes:n.styleClasses&&(n.styleClasses=null),u===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return n.styles}function Qr(e,n,u){var l=e.doc,f=e.display;if(!l.mode.startState)return new Pr(l,!0,n);var y=bf(e,n,u),F=y>l.first&&At(l,y-1).stateAfter,j=F?Pr.fromSaved(l,F,y):new Pr(l,Si(l.mode),y);return l.iter(y,n,function(G){ms(e,G.text,j);var q=j.line;G.stateAfter=q==n-1||q%5==0||q>=f.viewFrom&&q<f.viewTo?j.save():null,j.nextLine()}),u&&(l.modeFrontier=j.line),j}function ms(e,n,u,l){var f=e.doc.mode,y=new xr(n,e.options.tabSize,u);for(y.start=y.pos=l||0,n==""&&Ta(f,u.state);!y.eol();)xs(f,y,u.state),y.start=y.pos}function Ta(e,n){if(e.blankLine)return e.blankLine(n);if(!!e.innerMode){var u=xn(e,n);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function xs(e,n,u,l){for(var f=0;f<10;f++){l&&(l[0]=xn(e,u).mode);var y=e.token(n,u);if(n.pos>n.start)return y}throw new Error("Mode "+e.name+" failed to advance stream.")}var bs=function(e,n,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=u};function ws(e,n,u,l){var f=e.doc,y=f.mode,F;n=st(f,n);var j=At(f,n.line),G=Qr(e,n.line,u),q=new xr(j.text,e.options.tabSize,G),xe;for(l&&(xe=[]);(l||q.pos<n.ch)&&!q.eol();)q.start=q.pos,F=xs(y,q,G.state),l&&xe.push(new bs(q,F,Pn(f.mode,G.state)));return l?xe:new bs(q,F,G.state)}function Ml(e,n){if(e)for(;;){var u=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;e=e.slice(0,u.index)+e.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";n[l]==null?n[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(n[l])||(n[l]+=" "+u[2])}return e}function Ll(e,n,u,l,f,y,F){var j=u.flattenSpans;j==null&&(j=e.options.flattenSpans);var G=0,q=null,xe=new xr(n,e.options.tabSize,l),Ee,De=e.options.addModeClass&&[null];for(n==""&&Ml(Ta(u,l.state),y);!xe.eol();){if(xe.pos>e.options.maxHighlightLength?(j=!1,F&&ms(e,n,l,xe.pos),xe.pos=n.length,Ee=null):Ee=Ml(xs(u,xe,l.state,De),y),De){var Le=De[0].name;Le&&(Ee="m-"+(Ee?Le+" "+Ee:Le))}if(!j||q!=Ee){for(;G<xe.start;)G=Math.min(xe.start,G+5e3),f(G,q);q=Ee}xe.start=xe.pos}for(;G<xe.pos;){var Xe=Math.min(xe.pos,G+5e3);f(Xe,q),G=Xe}}function bf(e,n,u){for(var l,f,y=e.doc,F=u?-1:n-(e.doc.mode.innerMode?1e3:100),j=n;j>F;--j){if(j<=y.first)return y.first;var G=At(y,j-1),q=G.stateAfter;if(q&&(!u||j+(q instanceof Tr?q.lookAhead:0)<=y.modeFrontier))return j;var xe=Je(G.text,null,e.options.tabSize);(f==null||l>xe)&&(f=j-1,l=xe)}return f}function wf(e,n){if(e.modeFrontier=Math.min(e.modeFrontier,n),!(e.highlightFrontier<n-10)){for(var u=e.first,l=n-1;l>u;l--){var f=At(e,l).stateAfter;if(f&&(!(f instanceof Tr)||l+f.lookAhead<n)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var Sf=!1,Ei=!1;function Af(){Sf=!0}function Ef(){Ei=!0}function Pa(e,n,u){this.marker=e,this.from=n,this.to=u}function Ho(e,n){if(e)for(var u=0;u<e.length;++u){var l=e[u];if(l.marker==n)return l}}function Cf(e,n){for(var u,l=0;l<e.length;++l)e[l]!=n&&(u||(u=[])).push(e[l]);return u}function wd(e,n,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&l.has(e.markedSpans)?e.markedSpans.push(n):(e.markedSpans=e.markedSpans?e.markedSpans.concat([n]):[n],l&&l.add(e.markedSpans)),n.marker.attachLine(e)}function Sd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var y=e[f],F=y.marker,j=y.from==null||(F.inclusiveLeft?y.from<=n:y.from<n);if(j||y.from==n&&F.type=="bookmark"&&(!u||!y.marker.insertLeft)){var G=y.to==null||(F.inclusiveRight?y.to>=n:y.to>n);(l||(l=[])).push(new Pa(F,y.from,G?null:y.to))}}return l}function Ad(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var y=e[f],F=y.marker,j=y.to==null||(F.inclusiveRight?y.to>=n:y.to>n);if(j||y.from==n&&F.type=="bookmark"&&(!u||y.marker.insertLeft)){var G=y.from==null||(F.inclusiveLeft?y.from<=n:y.from<n);(l||(l=[])).push(new Pa(F,G?null:y.from-n,y.to==null?null:y.to-n))}}return l}function Nl(e,n){if(n.full)return null;var u=Jn(e,n.from.line)&&At(e,n.from.line).markedSpans,l=Jn(e,n.to.line)&&At(e,n.to.line).markedSpans;if(!u&&!l)return null;var f=n.from.ch,y=n.to.ch,F=Lt(n.from,n.to)==0,j=Sd(u,f,F),G=Ad(l,y,F),q=n.text.length==1,xe=St(n.text).length+(q?f:0);if(j)for(var Ee=0;Ee<j.length;++Ee){var De=j[Ee];if(De.to==null){var Le=Ho(G,De.marker);Le?q&&(De.to=Le.to==null?null:Le.to+xe):De.to=f}}if(G)for(var Xe=0;Xe<G.length;++Xe){var tt=G[Xe];if(tt.to!=null&&(tt.to+=xe),tt.from==null){var at=Ho(j,tt.marker);at||(tt.from=xe,q&&(j||(j=[])).push(tt))}else tt.from+=xe,q&&(j||(j=[])).push(tt)}j&&(j=Dl(j)),G&&G!=j&&(G=Dl(G));var ft=[j];if(!q){var mt=n.text.length-2,ct;if(mt>0&&j)for(var xt=0;xt<j.length;++xt)j[xt].to==null&&(ct||(ct=[])).push(new Pa(j[xt].marker,null,null));for(var Pt=0;Pt<mt;++Pt)ft.push(ct);ft.push(G)}return ft}function Dl(e){for(var n=0;n<e.length;++n){var u=e[n];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&e.splice(n--,1)}return e.length?e:null}function Bl(e,n,u){var l=null;if(e.iter(n.line,u.line+1,function(Le){if(Le.markedSpans)for(var Xe=0;Xe<Le.markedSpans.length;++Xe){var tt=Le.markedSpans[Xe].marker;tt.readOnly&&(!l||pt(l,tt)==-1)&&(l||(l=[])).push(tt)}}),!l)return null;for(var f=[{from:n,to:u}],y=0;y<l.length;++y)for(var F=l[y],j=F.find(0),G=0;G<f.length;++G){var q=f[G];if(!(Lt(q.to,j.from)<0||Lt(q.from,j.to)>0)){var xe=[G,1],Ee=Lt(q.from,j.from),De=Lt(q.to,j.to);(Ee<0||!F.inclusiveLeft&&!Ee)&&xe.push({from:q.from,to:j.from}),(De>0||!F.inclusiveRight&&!De)&&xe.push({from:j.to,to:q.to}),f.splice.apply(f,xe),G+=xe.length-3}}return f}function Ul(e){var n=e.markedSpans;if(!!n){for(var u=0;u<n.length;++u)n[u].marker.detachLine(e);e.markedSpans=null}}function Of(e,n){if(!!n){for(var u=0;u<n.length;++u)n[u].marker.attachLine(e);e.markedSpans=n}}function Ss(e){return e.inclusiveLeft?-1:0}function As(e){return e.inclusiveRight?1:0}function jl(e,n){var u=e.lines.length-n.lines.length;if(u!=0)return u;var l=e.find(),f=n.find(),y=Lt(l.from,f.from)||Ss(e)-Ss(n);if(y)return-y;var F=Lt(l.to,f.to)||As(e)-As(n);return F||n.id-e.id}function Ia(e,n){var u=Ei&&e.markedSpans,l;if(u)for(var f=void 0,y=0;y<u.length;++y)f=u[y],f.marker.collapsed&&(n?f.from:f.to)==null&&(!l||jl(l,f.marker)<0)&&(l=f.marker);return l}function zt(e){return Ia(e,!0)}function Vi(e){return Ia(e,!1)}function jt(e,n){var u=Ei&&e.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var y=u[f];y.marker.collapsed&&(y.from==null||y.from<n)&&(y.to==null||y.to>n)&&(!l||jl(l,y.marker)<0)&&(l=y.marker)}return l}function Et(e,n,u,l,f){var y=At(e,n),F=Ei&&y.markedSpans;if(F)for(var j=0;j<F.length;++j){var G=F[j];if(!!G.marker.collapsed){var q=G.marker.find(0),xe=Lt(q.from,u)||Ss(G.marker)-Ss(f),Ee=Lt(q.to,l)||As(G.marker)-As(f);if(!(xe>=0&&Ee<=0||xe<=0&&Ee>=0)&&(xe<=0&&(G.marker.inclusiveRight&&f.inclusiveLeft?Lt(q.to,u)>=0:Lt(q.to,u)>0)||xe>=0&&(G.marker.inclusiveRight&&f.inclusiveLeft?Lt(q.from,l)<=0:Lt(q.from,l)<0)))return!0}}}function Ir(e){for(var n;n=zt(e);)e=n.find(-1,!0).line;return e}function Tf(e){for(var n;n=Vi(e);)e=n.find(1,!0).line;return e}function Pf(e){for(var n,u;n=Vi(e);)e=n.find(1,!0).line,(u||(u=[])).push(e);return u}function Es(e,n){var u=At(e,n),l=Ir(u);return u==l?n:er(l)}function Cs(e,n){if(n>e.lastLine())return n;var u=At(e,n),l;if(!Ci(e,u))return n;for(;l=Vi(u);)u=l.find(1,!0).line;return er(u)+1}function Ci(e,n){var u=Ei&&n.markedSpans;if(u){for(var l=void 0,f=0;f<u.length;++f)if(l=u[f],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Os(e,n,l))return!0}}}function Os(e,n,u){if(u.to==null){var l=u.marker.find(1,!0);return Os(e,l.line,Ho(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==n.text.length)return!0;for(var f=void 0,y=0;y<n.markedSpans.length;++y)if(f=n.markedSpans[y],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&Os(e,n,f))return!0}function Xn(e){e=Ir(e);for(var n=0,u=e.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==e)break;n+=f.height}for(var y=u.parent;y;u=y,y=u.parent)for(var F=0;F<y.children.length;++F){var j=y.children[F];if(j==u)break;n+=j.height}return n}function Wi(e){if(e.height==0)return 0;for(var n=e.text.length,u,l=e;u=zt(l);){var f=u.find(0,!0);l=f.from.line,n+=f.from.ch-f.to.ch}for(l=e;u=Vi(l);){var y=u.find(0,!0);n-=l.text.length-y.from.ch,l=y.to.line,n+=l.text.length-y.to.ch}return n}function Fa(e){var n=e.display,u=e.doc;n.maxLine=At(u,u.first),n.maxLineLength=Wi(n.maxLine),n.maxLineChanged=!0,u.iter(function(l){var f=Wi(l);f>n.maxLineLength&&(n.maxLineLength=f,n.maxLine=l)})}var Hi=function(e,n,u){this.text=e,Of(this,n),this.height=u?u(this):1};Hi.prototype.lineNo=function(){return er(this)},He(Hi);function Vl(e,n,u,l){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Ul(e),Of(e,u);var f=l?l(e):1;f!=e.height&&bn(e,f)}function If(e){e.parent=null,Ul(e)}var Ff={},Wl={};function Hl(e,n){if(!e||/^\s*$/.test(e))return null;var u=n.addModeClass?Wl:Ff;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function uo(e,n){var u=he("span",null,null,g?"padding-right: .1px":null),l={pre:he("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var f=0;f<=(n.rest?n.rest.length:0);f++){var y=f?n.rest[f-1]:n.line,F=void 0;l.pos=0,l.addToken=Ed,jn(e.display.measure)&&(F=P(y,e.doc.direction))&&(l.addToken=kf(l.addToken,F)),l.map=[];var j=n!=e.display.externalMeasured&&er(y);Zr(y,l,Rl(e,y,j)),y.styleClasses&&(y.styleClasses.bgClass&&(l.bgClass=Ne(y.styleClasses.bgClass,l.bgClass||"")),y.styleClasses.textClass&&(l.textClass=Ne(y.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ui(e.display.measure))),f==0?(n.measure.map=l.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(l.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(g){var G=l.content.lastChild;(/\bcm-tab\b/.test(G.className)||G.querySelector&&G.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Oe(e,"renderLine",e,n.line,l.pre),l.pre.className&&(l.textClass=Ne(l.pre.className,l.textClass||"")),l}function un(e){var n=ge("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function Ed(e,n,u,l,f,y,F){if(!!n){var j=e.splitSpaces?zo(n,e.trailingSpace):n,G=e.cm.state.specialChars,q=!1,xe;if(!G.test(n))e.col+=n.length,xe=document.createTextNode(j),e.map.push(e.pos,e.pos+n.length,xe),b&&A<9&&(q=!0),e.pos+=n.length;else{xe=document.createDocumentFragment();for(var Ee=0;;){G.lastIndex=Ee;var De=G.exec(n),Le=De?De.index-Ee:n.length-Ee;if(Le){var Xe=document.createTextNode(j.slice(Ee,Ee+Le));b&&A<9?xe.appendChild(ge("span",[Xe])):xe.appendChild(Xe),e.map.push(e.pos,e.pos+Le,Xe),e.col+=Le,e.pos+=Le}if(!De)break;Ee+=Le+1;var tt=void 0;if(De[0]==" "){var at=e.cm.options.tabSize,ft=at-e.col%at;tt=xe.appendChild(ge("span",Ft(ft),"cm-tab")),tt.setAttribute("role","presentation"),tt.setAttribute("cm-text"," "),e.col+=ft}else De[0]=="\r"||De[0]==`
22
- `?(tt=xe.appendChild(ge("span",De[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),tt.setAttribute("cm-text",De[0]),e.col+=1):(tt=e.cm.options.specialCharPlaceholder(De[0]),tt.setAttribute("cm-text",De[0]),b&&A<9?xe.appendChild(ge("span",[tt])):xe.appendChild(tt),e.col+=1);e.map.push(e.pos,e.pos+1,tt),e.pos++}}if(e.trailingSpace=j.charCodeAt(n.length-1)==32,u||l||f||q||y||F){var mt=u||"";l&&(mt+=l),f&&(mt+=f);var ct=ge("span",[xe],mt,y);if(F)for(var xt in F)F.hasOwnProperty(xt)&&xt!="style"&&xt!="class"&&ct.setAttribute(xt,F[xt]);return e.content.appendChild(ct)}e.content.appendChild(xe)}}function zo(e,n){if(e.length>1&&!/ /.test(e))return e;for(var u=n,l="",f=0;f<e.length;f++){var y=e.charAt(f);y==" "&&u&&(f==e.length-1||e.charCodeAt(f+1)==32)&&(y="\xA0"),l+=y,u=y==" "}return l}function kf(e,n){return function(u,l,f,y,F,j,G){f=f?f+" cm-force-border":"cm-force-border";for(var q=u.pos,xe=q+l.length;;){for(var Ee=void 0,De=0;De<n.length&&(Ee=n[De],!(Ee.to>q&&Ee.from<=q));De++);if(Ee.to>=xe)return e(u,l,f,y,F,j,G);e(u,l.slice(0,Ee.to-q),f,y,null,j,G),y=null,l=l.slice(Ee.to-q),q=Ee.to}}}function zl(e,n,u,l){var f=!l&&u.widgetNode;f&&e.map.push(e.pos,e.pos+n,f),!l&&e.cm.display.input.needsContentAttribute&&(f||(f=e.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(e.cm.display.input.setUneditable(f),e.content.appendChild(f)),e.pos+=n,e.trailingSpace=!1}function Zr(e,n,u){var l=e.markedSpans,f=e.text,y=0;if(!l){for(var F=1;F<u.length;F+=2)n.addToken(n,f.slice(y,y=u[F]),Hl(u[F+1],n.cm.options));return}for(var j=f.length,G=0,q=1,xe="",Ee,De,Le=0,Xe,tt,at,ft,mt;;){if(Le==G){Xe=tt=at=De="",mt=null,ft=null,Le=1/0;for(var ct=[],xt=void 0,Pt=0;Pt<l.length;++Pt){var Ot=l[Pt],Vt=Ot.marker;if(Vt.type=="bookmark"&&Ot.from==G&&Vt.widgetNode)ct.push(Vt);else if(Ot.from<=G&&(Ot.to==null||Ot.to>G||Vt.collapsed&&Ot.to==G&&Ot.from==G)){if(Ot.to!=null&&Ot.to!=G&&Le>Ot.to&&(Le=Ot.to,tt=""),Vt.className&&(Xe+=" "+Vt.className),Vt.css&&(De=(De?De+";":"")+Vt.css),Vt.startStyle&&Ot.from==G&&(at+=" "+Vt.startStyle),Vt.endStyle&&Ot.to==Le&&(xt||(xt=[])).push(Vt.endStyle,Ot.to),Vt.title&&((mt||(mt={})).title=Vt.title),Vt.attributes)for(var ar in Vt.attributes)(mt||(mt={}))[ar]=Vt.attributes[ar];Vt.collapsed&&(!ft||jl(ft.marker,Vt)<0)&&(ft=Ot)}else Ot.from>G&&Le>Ot.from&&(Le=Ot.from)}if(xt)for(var Lr=0;Lr<xt.length;Lr+=2)xt[Lr+1]==Le&&(tt+=" "+xt[Lr]);if(!ft||ft.from==G)for(var gr=0;gr<ct.length;++gr)zl(n,0,ct[gr]);if(ft&&(ft.from||0)==G){if(zl(n,(ft.to==null?j+1:ft.to)-G,ft.marker,ft.from==null),ft.to==null)return;ft.to==G&&(ft=!1)}}if(G>=j)break;for(var vn=Math.min(j,Le);;){if(xe){var an=G+xe.length;if(!ft){var kr=an>vn?xe.slice(0,vn-G):xe;n.addToken(n,kr,Ee?Ee+Xe:Xe,at,G+kr.length==Le?tt:"",De,mt)}if(an>=vn){xe=xe.slice(vn-G),G=vn;break}G=an,at=""}xe=f.slice(y,y=u[q++]),Ee=Hl(u[q++],n.cm.options)}}}function Ts(e,n,u){this.line=n,this.rest=Pf(n),this.size=this.rest?er(St(this.rest))-u+1:1,this.node=this.text=null,this.hidden=Ci(e,n)}function ka(e,n,u){for(var l=[],f,y=n;y<u;y=f){var F=new Ts(e.doc,At(e.doc,y),y);f=y+F.size,l.push(F)}return l}var fo=null;function Rf(e){fo?fo.ops.push(e):e.ownsGroup=fo={ops:[e],delayedCallbacks:[]}}function Gl(e){var n=e.delayedCallbacks,u=0;do{for(;u<n.length;u++)n[u].call(null);for(var l=0;l<e.ops.length;l++){var f=e.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<n.length)}function Mf(e,n){var u=e.ownsGroup;if(!!u)try{Gl(u)}finally{fo=null,n(u)}}var Go=null;function Fr(e,n){var u=ee(e,n);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;fo?f=fo.delayedCallbacks:Go?f=Go:(f=Go=[],setTimeout($l,0));for(var y=function(j){f.push(function(){return u[j].apply(null,l)})},F=0;F<u.length;++F)y(F)}}function $l(){var e=Go;Go=null;for(var n=0;n<e.length;++n)e[n]()}function Ps(e,n,u,l){for(var f=0;f<n.changes.length;f++){var y=n.changes[f];y=="text"?Lf(e,n):y=="gutter"?Yl(e,n,u,l):y=="class"?Kl(e,n):y=="widget"&&zi(e,n,l)}n.changes=null}function $o(e){return e.node==e.text&&(e.node=ge("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),b&&A<8&&(e.node.style.zIndex=2)),e.node}function Is(e,n){var u=n.bgClass?n.bgClass+" "+(n.line.bgClass||""):n.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),n.background)u?n.background.className=u:(n.background.parentNode.removeChild(n.background),n.background=null);else if(u){var l=$o(n);n.background=l.insertBefore(ge("div",null,u),l.firstChild),e.display.input.setUneditable(n.background)}}function Ra(e,n){var u=e.display.externalMeasured;return u&&u.line==n.line?(e.display.externalMeasured=null,n.measure=u.measure,u.built):uo(e,n)}function Lf(e,n){var u=n.text.className,l=Ra(e,n);n.text==n.node&&(n.node=l.pre),n.text.parentNode.replaceChild(l.pre,n.text),n.text=l.pre,l.bgClass!=n.bgClass||l.textClass!=n.textClass?(n.bgClass=l.bgClass,n.textClass=l.textClass,Kl(e,n)):u&&(n.text.className=u)}function Kl(e,n){Is(e,n),n.line.wrapClass?$o(n).className=n.line.wrapClass:n.node!=n.text&&(n.node.className="");var u=n.textClass?n.textClass+" "+(n.line.textClass||""):n.line.textClass;n.text.className=u||""}function Yl(e,n,u,l){if(n.gutter&&(n.node.removeChild(n.gutter),n.gutter=null),n.gutterBackground&&(n.node.removeChild(n.gutterBackground),n.gutterBackground=null),n.line.gutterClass){var f=$o(n);n.gutterBackground=ge("div",null,"CodeMirror-gutter-background "+n.line.gutterClass,"left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),e.display.input.setUneditable(n.gutterBackground),f.insertBefore(n.gutterBackground,n.text)}var y=n.line.gutterMarkers;if(e.options.lineNumbers||y){var F=$o(n),j=n.gutter=ge("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(j.setAttribute("aria-hidden","true"),e.display.input.setUneditable(j),F.insertBefore(j,n.text),n.line.gutterClass&&(j.className+=" "+n.line.gutterClass),e.options.lineNumbers&&(!y||!y["CodeMirror-linenumbers"])&&(n.lineNumber=j.appendChild(ge("div",lo(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),y)for(var G=0;G<e.display.gutterSpecs.length;++G){var q=e.display.gutterSpecs[G].className,xe=y.hasOwnProperty(q)&&y[q];xe&&j.appendChild(ge("div",[xe],"CodeMirror-gutter-elt","left: "+l.gutterLeft[q]+"px; width: "+l.gutterWidth[q]+"px"))}}}function zi(e,n,u){n.alignable&&(n.alignable=null);for(var l=ce("CodeMirror-linewidget"),f=n.node.firstChild,y=void 0;f;f=y)y=f.nextSibling,l.test(f.className)&&n.node.removeChild(f);Jl(e,n,u)}function Nf(e,n,u,l){var f=Ra(e,n);return n.text=n.node=f.pre,f.bgClass&&(n.bgClass=f.bgClass),f.textClass&&(n.textClass=f.textClass),Kl(e,n),Yl(e,n,u,l),Jl(e,n,l),n.node}function Jl(e,n,u){if(Xl(e,n.line,n,u,!0),n.rest)for(var l=0;l<n.rest.length;l++)Xl(e,n.rest[l],n,u,!1)}function Xl(e,n,u,l,f){if(!!n.widgets)for(var y=$o(u),F=0,j=n.widgets;F<j.length;++F){var G=j[F],q=ge("div",[G.node],"CodeMirror-linewidget"+(G.className?" "+G.className:""));G.handleMouseEvents||q.setAttribute("cm-ignore-events","true"),Df(G,q,u,l),e.display.input.setUneditable(q),f&&G.above?y.insertBefore(q,u.gutter||u.text):y.appendChild(q),Fr(G,"redraw")}}function Df(e,n,u,l){if(e.noHScroll){(u.alignable||(u.alignable=[])).push(n);var f=l.wrapperWidth;n.style.left=l.fixedPos+"px",e.coverGutter||(f-=l.gutterTotalWidth,n.style.paddingLeft=l.gutterTotalWidth+"px"),n.style.width=f+"px"}e.coverGutter&&(n.style.zIndex=5,n.style.position="relative",e.noHScroll||(n.style.marginLeft=-l.gutterTotalWidth+"px"))}function Ko(e){if(e.height!=null)return e.height;var n=e.doc.cm;if(!n)return 0;if(!ie(document.body,e.node)){var u="position: relative;";e.coverGutter&&(u+="margin-left: -"+n.display.gutters.offsetWidth+"px;"),e.noHScroll&&(u+="width: "+n.display.wrapper.clientWidth+"px;"),me(n.display.measure,ge("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function li(e,n){for(var u=kt(n);u!=e.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==e.sizer&&u!=e.mover)return!0}function Ma(e){return e.lineSpace.offsetTop}function Qn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Fs(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=me(e.measure,ge("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(n):n.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(e.cachedPaddingH=l),l}function qr(e){return gt-e.display.nativeBarWidth}function Gi(e){return e.display.scroller.clientWidth-qr(e)-e.display.barWidth}function ks(e){return e.display.scroller.clientHeight-qr(e)-e.display.barHeight}function Bf(e,n,u){var l=e.options.lineWrapping,f=l&&Gi(e);if(!n.measure.heights||l&&n.measure.width!=f){var y=n.measure.heights=[];if(l){n.measure.width=f;for(var F=n.text.firstChild.getClientRects(),j=0;j<F.length-1;j++){var G=F[j],q=F[j+1];Math.abs(G.bottom-q.bottom)>2&&y.push((G.bottom+q.top)/2-u.top)}}y.push(u.bottom-u.top)}}function Ql(e,n,u){if(e.line==n)return{map:e.measure.map,cache:e.measure.cache};for(var l=0;l<e.rest.length;l++)if(e.rest[l]==n)return{map:e.measure.maps[l],cache:e.measure.caches[l]};for(var f=0;f<e.rest.length;f++)if(er(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}function Yo(e,n){n=Ir(n);var u=er(n),l=e.display.externalMeasured=new Ts(e.doc,n,u);l.lineN=u;var f=l.built=uo(e,l);return l.text=f.pre,me(e.display.lineMeasure,f.pre),l}function Zl(e,n,u,l){return Zn(e,co(e,n),u,l)}function Jo(e,n){if(n>=e.display.viewFrom&&n<e.display.viewTo)return e.display.view[Sn(e,n)];var u=e.display.externalMeasured;if(u&&n>=u.lineN&&n<u.lineN+u.size)return u}function co(e,n){var u=er(n),l=Jo(e,u);l&&!l.text?l=null:l&&l.changes&&(Ps(e,l,u,vo(e)),e.curOp.forceUpdate=!0),l||(l=Yo(e,n));var f=Ql(l,n,u);return{line:n,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Zn(e,n,u,l,f){n.before&&(u=-1);var y=u+(l||""),F;return n.cache.hasOwnProperty(y)?F=n.cache[y]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(Bf(e,n.view,n.rect),n.hasHeights=!0),F=eu(e,n,u,l),F.bogus||(n.cache[y]=F)),{left:F.left,right:F.right,top:f?F.rtop:F.top,bottom:f?F.rbottom:F.bottom}}var Rs={left:0,right:0,top:0,bottom:0};function ql(e,n,u){for(var l,f,y,F,j,G,q=0;q<e.length;q+=3)if(j=e[q],G=e[q+1],n<j?(f=0,y=1,F="left"):n<G?(f=n-j,y=f+1):(q==e.length-3||n==G&&e[q+3]>n)&&(y=G-j,f=y-1,n>=G&&(F="right")),f!=null){if(l=e[q+2],j==G&&u==(l.insertLeft?"left":"right")&&(F=u),u=="left"&&f==0)for(;q&&e[q-2]==e[q-3]&&e[q-1].insertLeft;)l=e[(q-=3)+2],F="left";if(u=="right"&&f==G-j)for(;q<e.length-3&&e[q+3]==e[q+4]&&!e[q+5].insertLeft;)l=e[(q+=3)+2],F="right";break}return{node:l,start:f,end:y,collapse:F,coverStart:j,coverEnd:G}}function _l(e,n){var u=Rs;if(n=="left")for(var l=0;l<e.length&&(u=e[l]).left==u.right;l++);else for(var f=e.length-1;f>=0&&(u=e[f]).left==u.right;f--);return u}function eu(e,n,u,l){var f=ql(n.map,u,l),y=f.node,F=f.start,j=f.end,G=f.collapse,q;if(y.nodeType==3){for(var xe=0;xe<4;xe++){for(;F&&ke(n.line.text.charAt(f.coverStart+F));)--F;for(;f.coverStart+j<f.coverEnd&&ke(n.line.text.charAt(f.coverStart+j));)++j;if(b&&A<9&&F==0&&j==f.coverEnd-f.coverStart?q=y.parentNode.getBoundingClientRect():q=_l(ue(y,F,j).getClientRects(),l),q.left||q.right||F==0)break;j=F,F=F-1,G="right"}b&&A<11&&(q=Uf(e.display.measure,q))}else{F>0&&(G=l="right");var Ee;e.options.lineWrapping&&(Ee=y.getClientRects()).length>1?q=Ee[l=="right"?Ee.length-1:0]:q=y.getBoundingClientRect()}if(b&&A<9&&!F&&(!q||!q.left&&!q.right)){var De=y.parentNode.getClientRects()[0];De?q={left:De.left,right:De.left+Yi(e.display),top:De.top,bottom:De.bottom}:q=Rs}for(var Le=q.top-n.rect.top,Xe=q.bottom-n.rect.top,tt=(Le+Xe)/2,at=n.view.measure.heights,ft=0;ft<at.length-1&&!(tt<at[ft]);ft++);var mt=ft?at[ft-1]:0,ct=at[ft],xt={left:(G=="right"?q.right:q.left)-n.rect.left,right:(G=="left"?q.left:q.right)-n.rect.left,top:mt,bottom:ct};return!q.left&&!q.right&&(xt.bogus=!0),e.options.singleCursorHeightPerLine||(xt.rtop=Le,xt.rbottom=Xe),xt}function Uf(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ca(e))return n;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:n.left*u,right:n.right*u,top:n.top*l,bottom:n.bottom*l}}function tu(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var n=0;n<e.rest.length;n++)e.measure.caches[n]={}}function Ms(e){e.display.externalMeasure=null,ae(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)tu(e.display.view[n])}function Xo(e){Ms(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function $i(){return D&&Q?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Qo(){return D&&Q?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Zo(e){var n=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(n+=Ko(e.widgets[u]));return n}function Oi(e,n,u,l,f){if(!f){var y=Zo(n);u.top+=y,u.bottom+=y}if(l=="line")return u;l||(l="local");var F=Xn(n);if(l=="local"?F+=Ma(e.display):F-=e.display.viewOffset,l=="page"||l=="window"){var j=e.display.lineSpace.getBoundingClientRect();F+=j.top+(l=="window"?0:Qo());var G=j.left+(l=="window"?0:$i());u.left+=G,u.right+=G}return u.top+=F,u.bottom+=F,u}function Ki(e,n,u){if(u=="div")return n;var l=n.left,f=n.top;if(u=="page")l-=$i(),f-=Qo();else if(u=="local"||!u){var y=e.display.sizer.getBoundingClientRect();l+=y.left,f+=y.top}var F=e.display.lineSpace.getBoundingClientRect();return{left:l-F.left,top:f-F.top}}function Ls(e,n,u,l,f){return l||(l=At(e.doc,n.line)),Oi(e,l,Zl(e,l,n.ch,f),u)}function wn(e,n,u,l,f,y){l=l||At(e.doc,n.line),f||(f=co(e,l));function F(Xe,tt){var at=Zn(e,f,Xe,tt?"right":"left",y);return tt?at.left=at.right:at.right=at.left,Oi(e,l,at,u)}var j=P(l,e.doc.direction),G=n.ch,q=n.sticky;if(G>=l.text.length?(G=l.text.length,q="before"):G<=0&&(G=0,q="after"),!j)return F(q=="before"?G-1:G,q=="before");function xe(Xe,tt,at){var ft=j[tt],mt=ft.level==1;return F(at?Xe-1:Xe,mt!=at)}var Ee=H(j,G,q),De=Ie,Le=xe(G,Ee,q=="before");return De!=null&&(Le.other=xe(G,De,q!="before")),Le}function ru(e,n){var u=0;n=st(e.doc,n),e.options.lineWrapping||(u=Yi(e.display)*n.ch);var l=At(e.doc,n.line),f=Xn(l)+Ma(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function Ns(e,n,u,l,f){var y=nt(e,n,u);return y.xRel=f,l&&(y.outside=l),y}function La(e,n,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return Ns(l.first,0,null,-1,-1);var f=Wn(l,u),y=l.first+l.size-1;if(f>y)return Ns(l.first+l.size-1,At(l,y).text.length,null,1,1);n<0&&(n=0);for(var F=At(l,f);;){var j=jf(e,F,f,n,u),G=jt(F,j.ch+(j.xRel>0||j.outside>0?1:0));if(!G)return j;var q=G.find(1);if(q.line==f)return q;F=At(l,f=q.line)}}function po(e,n,u,l){l-=Zo(n);var f=n.text.length,y=Ae(function(F){return Zn(e,u,F-1).bottom<=l},f,0);return f=Ae(function(F){return Zn(e,u,F).top>l},y,f),{begin:y,end:f}}function nu(e,n,u,l){u||(u=co(e,n));var f=Oi(e,n,Zn(e,u,l),"line").top;return po(e,n,u,f)}function Ds(e,n,u,l){return e.bottom<=u?!1:e.top>u?!0:(l?e.left:e.right)>n}function jf(e,n,u,l,f){f-=Xn(n);var y=co(e,n),F=Zo(n),j=0,G=n.text.length,q=!0,xe=P(n,e.doc.direction);if(xe){var Ee=(e.options.lineWrapping?iu:Vf)(e,n,u,y,xe,l,f);q=Ee.level!=1,j=q?Ee.from:Ee.to-1,G=q?Ee.to:Ee.from-1}var De=null,Le=null,Xe=Ae(function(Pt){var Ot=Zn(e,y,Pt);return Ot.top+=F,Ot.bottom+=F,Ds(Ot,l,f,!1)?(Ot.top<=f&&Ot.left<=l&&(De=Pt,Le=Ot),!0):!1},j,G),tt,at,ft=!1;if(Le){var mt=l-Le.left<Le.right-l,ct=mt==q;Xe=De+(ct?0:1),at=ct?"after":"before",tt=mt?Le.left:Le.right}else{!q&&(Xe==G||Xe==j)&&Xe++,at=Xe==0?"after":Xe==n.text.length?"before":Zn(e,y,Xe-(q?1:0)).bottom+F<=f==q?"after":"before";var xt=wn(e,nt(u,Xe,at),"line",n,y);tt=xt.left,ft=f<xt.top?-1:f>=xt.bottom?1:0}return Xe=be(n.text,Xe,1),Ns(u,Xe,at,ft,l-tt)}function Vf(e,n,u,l,f,y,F){var j=Ae(function(Ee){var De=f[Ee],Le=De.level!=1;return Ds(wn(e,nt(u,Le?De.to:De.from,Le?"before":"after"),"line",n,l),y,F,!0)},0,f.length-1),G=f[j];if(j>0){var q=G.level!=1,xe=wn(e,nt(u,q?G.from:G.to,q?"after":"before"),"line",n,l);Ds(xe,y,F,!0)&&xe.top>F&&(G=f[j-1])}return G}function iu(e,n,u,l,f,y,F){var j=po(e,n,l,F),G=j.begin,q=j.end;/\s/.test(n.text.charAt(q-1))&&q--;for(var xe=null,Ee=null,De=0;De<f.length;De++){var Le=f[De];if(!(Le.from>=q||Le.to<=G)){var Xe=Le.level!=1,tt=Zn(e,l,Xe?Math.min(q,Le.to)-1:Math.max(G,Le.from)).right,at=tt<y?y-tt+1e9:tt-y;(!xe||Ee>at)&&(xe=Le,Ee=at)}}return xe||(xe=f[f.length-1]),xe.from<G&&(xe={from:G,to:xe.to,level:xe.level}),xe.to>q&&(xe={from:xe.from,to:q,level:xe.level}),xe}var ui;function ho(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(ui==null){ui=ge("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)ui.appendChild(document.createTextNode("x")),ui.appendChild(ge("br"));ui.appendChild(document.createTextNode("x"))}me(e.measure,ui);var u=ui.offsetHeight/50;return u>3&&(e.cachedTextHeight=u),ae(e.measure),u||1}function Yi(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=ge("span","xxxxxxxxxx"),u=ge("pre",[n],"CodeMirror-line-like");me(e.measure,u);var l=n.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function vo(e){for(var n=e.display,u={},l={},f=n.gutters.clientLeft,y=n.gutters.firstChild,F=0;y;y=y.nextSibling,++F){var j=e.display.gutterSpecs[F].className;u[j]=y.offsetLeft+y.clientLeft+f,l[j]=y.clientWidth}return{fixedPos:Bs(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:n.wrapper.clientWidth}}function Bs(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Us(e){var n=ho(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/Yi(e.display)-3);return function(f){if(Ci(e.doc,f))return 0;var y=0;if(f.widgets)for(var F=0;F<f.widgets.length;F++)f.widgets[F].height&&(y+=f.widgets[F].height);return u?y+(Math.ceil(f.text.length/l)||1)*n:y+n}}function ou(e){var n=e.doc,u=Us(e);n.iter(function(l){var f=u(l);f!=l.height&&bn(l,f)})}function Ji(e,n,u,l){var f=e.display;if(!u&&kt(n).getAttribute("cm-not-content")=="true")return null;var y,F,j=f.lineSpace.getBoundingClientRect();try{y=n.clientX-j.left,F=n.clientY-j.top}catch(Ee){return null}var G=La(e,y,F),q;if(l&&G.xRel>0&&(q=At(e.doc,G.line).text).length==G.ch){var xe=Je(q,q.length,e.options.tabSize)-q.length;G=nt(G.line,Math.max(0,Math.round((y-Fs(e.display).left)/Yi(e.display))-xe))}return G}function Sn(e,n){if(n>=e.display.viewTo||(n-=e.display.viewFrom,n<0))return null;for(var u=e.display.view,l=0;l<u.length;l++)if(n-=u[l].size,n<0)return l}function _r(e,n,u,l){n==null&&(n=e.doc.first),u==null&&(u=e.doc.first+e.doc.size),l||(l=0);var f=e.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>n)&&(f.updateLineNumbers=n),e.curOp.viewChanged=!0,n>=f.viewTo)Ei&&Es(e.doc,n)<f.viewTo&&An(e);else if(u<=f.viewFrom)Ei&&Cs(e.doc,u+l)>f.viewFrom?An(e):(f.viewFrom+=l,f.viewTo+=l);else if(n<=f.viewFrom&&u>=f.viewTo)An(e);else if(n<=f.viewFrom){var y=js(e,u,u+l,1);y?(f.view=f.view.slice(y.index),f.viewFrom=y.lineN,f.viewTo+=l):An(e)}else if(u>=f.viewTo){var F=js(e,n,n,-1);F?(f.view=f.view.slice(0,F.index),f.viewTo=F.lineN):An(e)}else{var j=js(e,n,n,-1),G=js(e,u,u+l,1);j&&G?(f.view=f.view.slice(0,j.index).concat(ka(e,j.lineN,G.lineN)).concat(f.view.slice(G.index)),f.viewTo+=l):An(e)}var q=f.externalMeasured;q&&(u<q.lineN?q.lineN+=l:n<q.lineN+q.size&&(f.externalMeasured=null))}function Xi(e,n,u){e.curOp.viewChanged=!0;var l=e.display,f=e.display.externalMeasured;if(f&&n>=f.lineN&&n<f.lineN+f.size&&(l.externalMeasured=null),!(n<l.viewFrom||n>=l.viewTo)){var y=l.view[Sn(e,n)];if(y.node!=null){var F=y.changes||(y.changes=[]);pt(F,u)==-1&&F.push(u)}}}function An(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function js(e,n,u,l){var f=Sn(e,n),y,F=e.display.view;if(!Ei||u==e.doc.first+e.doc.size)return{index:f,lineN:u};for(var j=e.display.viewFrom,G=0;G<f;G++)j+=F[G].size;if(j!=n){if(l>0){if(f==F.length-1)return null;y=j+F[f].size-n,f++}else y=j-n;n+=y,u+=y}for(;Es(e.doc,u)!=u;){if(f==(l<0?0:F.length-1))return null;u+=l*F[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function Wf(e,n,u){var l=e.display,f=l.view;f.length==0||n>=l.viewTo||u<=l.viewFrom?(l.view=ka(e,n,u),l.viewFrom=n):(l.viewFrom>n?l.view=ka(e,n,l.viewFrom).concat(l.view):l.viewFrom<n&&(l.view=l.view.slice(Sn(e,n))),l.viewFrom=n,l.viewTo<u?l.view=l.view.concat(ka(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Sn(e,u)))),l.viewTo=u}function Hf(e){for(var n=e.display.view,u=0,l=0;l<n.length;l++){var f=n[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function Na(e){e.display.input.showSelection(e.display.input.prepareSelection())}function au(e,n){n===void 0&&(n=!0);for(var u=e.doc,l={},f=l.cursors=document.createDocumentFragment(),y=l.selection=document.createDocumentFragment(),F=0;F<u.sel.ranges.length;F++)if(!(!n&&F==u.sel.primIndex)){var j=u.sel.ranges[F];if(!(j.from().line>=e.display.viewTo||j.to().line<e.display.viewFrom)){var G=j.empty();(G||e.options.showCursorWhenSelecting)&&su(e,j.head,f),G||Cd(e,j,y)}}return l}function su(e,n,u){var l=wn(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(ge("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*e.options.cursorHeight+"px",l.other){var y=u.appendChild(ge("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));y.style.display="",y.style.left=l.other.left+"px",y.style.top=l.other.top+"px",y.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Da(e,n){return e.top-n.top||e.left-n.left}function Cd(e,n,u){var l=e.display,f=e.doc,y=document.createDocumentFragment(),F=Fs(e.display),j=F.left,G=Math.max(l.sizerWidth,Gi(e)-l.sizer.offsetLeft)-F.right,q=f.direction=="ltr";function xe(ct,xt,Pt,Ot){xt<0&&(xt=0),xt=Math.round(xt),Ot=Math.round(Ot),y.appendChild(ge("div",null,"CodeMirror-selected","position: absolute; left: "+ct+`px;
23
- top: `+xt+"px; width: "+(Pt==null?G-ct:Pt)+`px;
24
- height: `+(Ot-xt)+"px"))}function Ee(ct,xt,Pt){var Ot=At(f,ct),Vt=Ot.text.length,ar,Lr;function gr(kr,tn){return Ls(e,nt(ct,kr),"div",Ot,tn)}function vn(kr,tn,zr){var Nr=nu(e,Ot,null,kr),Er=tn=="ltr"==(zr=="after")?"left":"right",dr=zr=="after"?Nr.begin:Nr.end-(/\s/.test(Ot.text.charAt(Nr.end-1))?2:1);return gr(dr,Er)[Er]}var an=P(Ot,f.direction);return T(an,xt||0,Pt==null?Vt:Pt,function(kr,tn,zr,Nr){var Er=zr=="ltr",dr=gr(kr,Er?"left":"right"),sn=gr(tn-1,Er?"right":"left"),ni=xt==null&&kr==0,vi=Pt==null&&tn==Vt,cr=Nr==0,gi=!an||Nr==an.length-1;if(sn.top-dr.top<=3){var Dr=(q?ni:vi)&&cr,us=(q?vi:ni)&&gi,ii=Dr?j:(Er?dr:sn).left,io=us?G:(Er?sn:dr).right;xe(ii,dr.top,io-ii,dr.bottom)}else{var oo,Yr,Bo,gl;Er?(oo=q&&ni&&cr?j:dr.left,Yr=q?G:vn(kr,zr,"before"),Bo=q?j:vn(tn,zr,"after"),gl=q&&vi&&gi?G:sn.right):(oo=q?vn(kr,zr,"before"):j,Yr=!q&&ni&&cr?G:dr.right,Bo=!q&&vi&&gi?j:sn.left,gl=q?vn(tn,zr,"after"):G),xe(oo,dr.top,Yr-oo,dr.bottom),dr.bottom<sn.top&&xe(j,dr.bottom,null,sn.top),xe(Bo,sn.top,gl-Bo,sn.bottom)}(!ar||Da(dr,ar)<0)&&(ar=dr),Da(sn,ar)<0&&(ar=sn),(!Lr||Da(dr,Lr)<0)&&(Lr=dr),Da(sn,Lr)<0&&(Lr=sn)}),{start:ar,end:Lr}}var De=n.from(),Le=n.to();if(De.line==Le.line)Ee(De.line,De.ch,Le.ch);else{var Xe=At(f,De.line),tt=At(f,Le.line),at=Ir(Xe)==Ir(tt),ft=Ee(De.line,De.ch,at?Xe.text.length+1:null).end,mt=Ee(Le.line,at?0:null,Le.ch).start;at&&(ft.top<mt.top-2?(xe(ft.right,ft.top,null,ft.bottom),xe(j,mt.top,mt.left,mt.bottom)):xe(ft.right,ft.top,mt.left-ft.right,ft.bottom)),ft.bottom<mt.top&&xe(j,ft.bottom,null,mt.top)}u.appendChild(y)}function lu(e){if(!!e.state.focused){var n=e.display;clearInterval(n.blinker);var u=!0;n.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?n.blinker=setInterval(function(){e.hasFocus()||qo(e),n.cursorDiv.style.visibility=(u=!u)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}function zf(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||uu(e))}function Vs(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&qo(e))},100)}function uu(e,n){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Oe(e,"focus",e,n),e.state.focused=!0,je(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),g&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),lu(e))}function qo(e,n){e.state.delayingBlurEvent||(e.state.focused&&(Oe(e,"blur",e,n),e.state.focused=!1,te(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Ti(e){for(var n=e.display,u=n.lineDiv.offsetTop,l=0;l<n.view.length;l++){var f=n.view[l],y=e.options.lineWrapping,F=void 0,j=0;if(!f.hidden){if(b&&A<8){var G=f.node.offsetTop+f.node.offsetHeight;F=G-u,u=G}else{var q=f.node.getBoundingClientRect();F=q.bottom-q.top,!y&&f.text.firstChild&&(j=f.text.firstChild.getBoundingClientRect().right-q.left-1)}var xe=f.line.height-F;if((xe>.005||xe<-.005)&&(bn(f.line,F),fn(f.line),f.rest))for(var Ee=0;Ee<f.rest.length;Ee++)fn(f.rest[Ee]);if(j>e.display.sizerWidth){var De=Math.ceil(j/Yi(e.display));De>e.display.maxLineLength&&(e.display.maxLineLength=De,e.display.maxLine=f.line,e.display.maxLineChanged=!0)}}}}function fn(e){if(e.widgets)for(var n=0;n<e.widgets.length;++n){var u=e.widgets[n],l=u.node.parentNode;l&&(u.height=l.offsetHeight)}}function In(e,n,u){var l=u&&u.top!=null?Math.max(0,u.top):e.scroller.scrollTop;l=Math.floor(l-Ma(e));var f=u&&u.bottom!=null?u.bottom:l+e.wrapper.clientHeight,y=Wn(n,l),F=Wn(n,f);if(u&&u.ensure){var j=u.ensure.from.line,G=u.ensure.to.line;j<y?(y=j,F=Wn(n,Xn(At(n,j))+e.wrapper.clientHeight)):Math.min(G,n.lastLine())>=F&&(y=Wn(n,Xn(At(n,G))-e.wrapper.clientHeight),F=G)}return{from:y,to:Math.max(F,y+1)}}function qn(e,n){if(!Pe(e,"scrollCursorIntoView")){var u=e.display,l=u.sizer.getBoundingClientRect(),f=null;if(n.top+l.top<0?f=!0:n.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)&&(f=!1),f!=null&&!z){var y=ge("div","\u200B",null,`position: absolute;
25
- top: `+(n.top-u.viewOffset-Ma(e.display))+`px;
26
- height: `+(n.bottom-n.top+qr(e)+u.barHeight)+`px;
27
- left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(y),y.scrollIntoView(f),e.display.lineSpace.removeChild(y)}}}function Gf(e,n,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&n==u&&(u=n.sticky=="before"?nt(n.line,n.ch+1,"before"):n,n=n.ch?nt(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var y=0;y<5;y++){var F=!1,j=wn(e,n),G=!u||u==n?j:wn(e,u);f={left:Math.min(j.left,G.left),top:Math.min(j.top,G.top)-l,right:Math.max(j.left,G.left),bottom:Math.max(j.bottom,G.bottom)+l};var q=go(e,f),xe=e.doc.scrollTop,Ee=e.doc.scrollLeft;if(q.scrollTop!=null&&(mo(e,q.scrollTop),Math.abs(e.doc.scrollTop-xe)>1&&(F=!0)),q.scrollLeft!=null&&(Pi(e,q.scrollLeft),Math.abs(e.doc.scrollLeft-Ee)>1&&(F=!0)),!F)break}return f}function fu(e,n){var u=go(e,n);u.scrollTop!=null&&mo(e,u.scrollTop),u.scrollLeft!=null&&Pi(e,u.scrollLeft)}function go(e,n){var u=e.display,l=ho(e.display);n.top<0&&(n.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,y=ks(e),F={};n.bottom-n.top>y&&(n.bottom=n.top+y);var j=e.doc.height+Qn(u),G=n.top<l,q=n.bottom>j-l;if(n.top<f)F.scrollTop=G?0:n.top;else if(n.bottom>f+y){var xe=Math.min(n.top,(q?j:n.bottom)-y);xe!=f&&(F.scrollTop=xe)}var Ee=e.options.fixedGutter?0:u.gutters.offsetWidth,De=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Ee,Le=Gi(e)-u.gutters.offsetWidth,Xe=n.right-n.left>Le;return Xe&&(n.right=n.left+Le),n.left<10?F.scrollLeft=0:n.left<De?F.scrollLeft=Math.max(0,n.left+Ee-(Xe?0:10)):n.right>Le+De-3&&(F.scrollLeft=n.right+(Xe?0:10)-Le),F}function En(e,n){n!=null&&(yo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function Jt(e){yo(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function fi(e,n,u){(n!=null||u!=null)&&yo(e),n!=null&&(e.curOp.scrollLeft=n),u!=null&&(e.curOp.scrollTop=u)}function cu(e,n){yo(e),e.curOp.scrollToPos=n}function yo(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var u=ru(e,n.from),l=ru(e,n.to);Ws(e,u,l,n.margin)}}function Ws(e,n,u,l){var f=go(e,{left:Math.min(n.left,u.left),top:Math.min(n.top,u.top)-l,right:Math.max(n.right,u.right),bottom:Math.max(n.bottom,u.bottom)+l});fi(e,f.scrollLeft,f.scrollTop)}function mo(e,n){Math.abs(e.doc.scrollTop-n)<2||(c||Va(e,{top:n}),xo(e,n,!0),c&&Va(e),Ii(e,100))}function xo(e,n,u){n=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,n)),!(e.display.scroller.scrollTop==n&&!u)&&(e.doc.scrollTop=n,e.display.scrollbars.setScrollTop(n),e.display.scroller.scrollTop!=n&&(e.display.scroller.scrollTop=n))}function Pi(e,n,u,l){n=Math.max(0,Math.min(n,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((u?n==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-n)<2)&&!l)&&(e.doc.scrollLeft=n,Ks(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n))}function Qi(e){var n=e.display,u=n.gutters.offsetWidth,l=Math.round(e.doc.height+Qn(e.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:e.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+qr(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:u}}var Dt=function(e,n,u){this.cm=u;var l=this.vert=ge("div",[ge("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=ge("div",[ge("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,e(l),e(f),N(l,"scroll",function(){l.clientHeight&&n(l.scrollTop,"vertical")}),N(f,"scroll",function(){f.clientWidth&&n(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&A<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Dt.prototype.update=function(e){var n=e.scrollWidth>e.clientWidth+1,u=e.scrollHeight>e.clientHeight+1,l=e.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=n?l+"px":"0";var f=e.viewHeight-(n?l:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+f)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=e.barLeft+"px";var y=e.viewWidth-e.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+y)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:n?l:0}},Dt.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Dt.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Dt.prototype.zeroWidthHack=function(){var e=O&&!_?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ut,this.disableVert=new ut},Dt.prototype.enableZeroWidthBar=function(e,n,u){e.style.pointerEvents="auto";function l(){var f=e.getBoundingClientRect(),y=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);y!=e?e.style.pointerEvents="none":n.set(1e3,l)}n.set(1e3,l)},Dt.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var bo=function(){};bo.prototype.update=function(){return{bottom:0,right:0}},bo.prototype.setScrollLeft=function(){},bo.prototype.setScrollTop=function(){},bo.prototype.clear=function(){};function Zi(e,n){n||(n=Qi(e));var u=e.display.barWidth,l=e.display.barHeight;_n(e,n);for(var f=0;f<4&&u!=e.display.barWidth||l!=e.display.barHeight;f++)u!=e.display.barWidth&&e.options.lineWrapping&&Ti(e),_n(e,Qi(e)),u=e.display.barWidth,l=e.display.barHeight}function _n(e,n){var u=e.display,l=u.scrollbars.update(n);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=n.gutterWidth+"px"):u.gutterFiller.style.display=""}var wo={native:Dt,null:bo};function Fn(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&te(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new wo[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),N(n,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,u){u=="horizontal"?Pi(e,n):mo(e,n)},e),e.display.scrollbars.addClass&&je(e.display.wrapper,e.display.scrollbars.addClass)}var So=0;function Sr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++So,markArrays:null},Rf(e.curOp)}function cn(e){var n=e.curOp;n&&Mf(n,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Ba(u)})}function Ba(e){for(var n=e.ops,u=0;u<n.length;u++)_o(n[u]);for(var l=0;l<n.length;l++)ea(n[l]);for(var f=0;f<n.length;f++)ta(n[f]);for(var y=0;y<n.length;y++)Hs(n[y]);for(var F=0;F<n.length;F++)Ua(n[F])}function _o(e){var n=e.cm,u=n.display;zs(n),e.updateMaxLine&&Fa(n),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<u.viewFrom||e.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new kn(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ea(e){e.updatedDisplay=e.mustUpdate&&ja(e.cm,e.update)}function ta(e){var n=e.cm,u=n.display;e.updatedDisplay&&Ti(n),e.barMeasure=Qi(n),u.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=Zl(n,u.maxLine,u.maxLine.text.length).left+3,n.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+e.adjustWidthTo+qr(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+e.adjustWidthTo-Gi(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function Hs(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<n.doc.scrollLeft&&Pi(n,Math.min(n.display.scroller.scrollLeft,e.maxScrollLeft),!0),n.display.maxLineChanged=!1);var u=e.focus&&e.focus==Me();e.preparedSelection&&n.display.input.showSelection(e.preparedSelection,u),(e.updatedDisplay||e.startHeight!=n.doc.height)&&Zi(n,e.barMeasure),e.updatedDisplay&&Ao(n,e.barMeasure),e.selectionChanged&&lu(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),u&&zf(e.cm)}function Ua(e){var n=e.cm,u=n.display,l=n.doc;if(e.updatedDisplay&&Gs(n,e.update),u.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),e.scrollTop!=null&&xo(n,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Pi(n,e.scrollLeft,!0,!0),e.scrollToPos){var f=Gf(n,st(l,e.scrollToPos.from),st(l,e.scrollToPos.to),e.scrollToPos.margin);qn(n,f)}var y=e.maybeHiddenMarkers,F=e.maybeUnhiddenMarkers;if(y)for(var j=0;j<y.length;++j)y[j].lines.length||Oe(y[j],"hide");if(F)for(var G=0;G<F.length;++G)F[G].lines.length&&Oe(F[G],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=n.display.scroller.scrollTop),e.changeObjs&&Oe(n,"changes",n,e.changeObjs),e.update&&e.update.finish()}function on(e,n){if(e.curOp)return n();Sr(e);try{return n()}finally{cn(e)}}function Hr(e,n){return function(){if(e.curOp)return n.apply(e,arguments);Sr(e);try{return n.apply(e,arguments)}finally{cn(e)}}}function $r(e){return function(){if(this.curOp)return e.apply(this,arguments);Sr(this);try{return e.apply(this,arguments)}finally{cn(this)}}}function Mr(e){return function(){var n=this.cm;if(!n||n.curOp)return e.apply(this,arguments);Sr(n);try{return e.apply(this,arguments)}finally{cn(n)}}}function Ii(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,rt(du,e))}function du(e){var n=e.doc;if(!(n.highlightFrontier>=e.display.viewTo)){var u=+new Date+e.options.workTime,l=Qr(e,n.highlightFrontier),f=[];n.iter(l.line,Math.min(n.first+n.size,e.display.viewTo+500),function(y){if(l.line>=e.display.viewFrom){var F=y.styles,j=y.text.length>e.options.maxHighlightLength?Pn(n.mode,l.state):null,G=tr(e,y,l,!0);j&&(l.state=j),y.styles=G.styles;var q=y.styleClasses,xe=G.classes;xe?y.styleClasses=xe:q&&(y.styleClasses=null);for(var Ee=!F||F.length!=y.styles.length||q!=xe&&(!q||!xe||q.bgClass!=xe.bgClass||q.textClass!=xe.textClass),De=0;!Ee&&De<F.length;++De)Ee=F[De]!=y.styles[De];Ee&&f.push(l.line),y.stateAfter=l.save(),l.nextLine()}else y.text.length<=e.options.maxHighlightLength&&ms(e,y.text,l),y.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return Ii(e,e.options.workDelay),!0}),n.highlightFrontier=l.line,n.modeFrontier=Math.max(n.modeFrontier,l.line),f.length&&on(e,function(){for(var y=0;y<f.length;y++)Xi(e,f[y],"text")})}}var kn=function(e,n,u){var l=e.display;this.viewport=n,this.visible=In(l,e.doc,n),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Gi(e),this.force=u,this.dims=vo(e),this.events=[]};kn.prototype.signal=function(e,n){ze(e,n)&&this.events.push(arguments)},kn.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Oe.apply(null,this.events[e])};function zs(e){var n=e.display;!n.scrollbarsClipped&&n.scroller.offsetWidth&&(n.nativeBarWidth=n.scroller.offsetWidth-n.scroller.clientWidth,n.heightForcer.style.height=qr(e)+"px",n.sizer.style.marginBottom=-n.nativeBarWidth+"px",n.sizer.style.borderRightWidth=qr(e)+"px",n.scrollbarsClipped=!0)}function Cn(e){if(e.hasFocus())return null;var n=Me();if(!n||!ie(e.display.lineDiv,n))return null;var u={activeElt:n};if(window.getSelection){var l=window.getSelection();l.anchorNode&&l.extend&&ie(e.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function Vr(e){if(!(!e||!e.activeElt||e.activeElt==Me())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ie(document.body,e.anchorNode)&&ie(document.body,e.focusNode))){var n=window.getSelection(),u=document.createRange();u.setEnd(e.anchorNode,e.anchorOffset),u.collapse(!1),n.removeAllRanges(),n.addRange(u),n.extend(e.focusNode,e.focusOffset)}}function ja(e,n){var u=e.display,l=e.doc;if(n.editorIsHidden)return An(e),!1;if(!n.force&&n.visible.from>=u.viewFrom&&n.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Hf(e)==0)return!1;Ys(e)&&(An(e),n.dims=vo(e));var f=l.first+l.size,y=Math.max(n.visible.from-e.options.viewportMargin,l.first),F=Math.min(f,n.visible.to+e.options.viewportMargin);u.viewFrom<y&&y-u.viewFrom<20&&(y=Math.max(l.first,u.viewFrom)),u.viewTo>F&&u.viewTo-F<20&&(F=Math.min(f,u.viewTo)),Ei&&(y=Es(e.doc,y),F=Cs(e.doc,F));var j=y!=u.viewFrom||F!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;Wf(e,y,F),u.viewOffset=Xn(At(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var G=Hf(e);if(!j&&G==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var q=Cn(e);return G>4&&(u.lineDiv.style.display="none"),$s(e,u.updateLineNumbers,n.dims),G>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Vr(q),ae(u.cursorDiv),ae(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,j&&(u.lastWrapHeight=n.wrapperHeight,u.lastWrapWidth=n.wrapperWidth,Ii(e,400)),u.updateLineNumbers=null,!0}function Gs(e,n){for(var u=n.viewport,l=!0;;l=!1){if(!l||!e.options.lineWrapping||n.oldDisplayWidth==Gi(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+Qn(e.display)-ks(e),u.top)}),n.visible=In(e.display,e.doc,u),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else l&&(n.visible=In(e.display,e.doc,u));if(!ja(e,n))break;Ti(e);var f=Qi(e);Na(e),Zi(e,f),Ao(e,f),n.force=!1}n.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(n.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Va(e,n){var u=new kn(e,n);if(ja(e,u)){Ti(e),Gs(e,u);var l=Qi(e);Na(e),Zi(e,l),Ao(e,l),u.finish()}}function $s(e,n,u){var l=e.display,f=e.options.lineNumbers,y=l.lineDiv,F=y.firstChild;function j(Xe){var tt=Xe.nextSibling;return g&&O&&e.display.currentWheelTarget==Xe?Xe.style.display="none":Xe.parentNode.removeChild(Xe),tt}for(var G=l.view,q=l.viewFrom,xe=0;xe<G.length;xe++){var Ee=G[xe];if(!Ee.hidden)if(!Ee.node||Ee.node.parentNode!=y){var De=Nf(e,Ee,q,u);y.insertBefore(De,F)}else{for(;F!=Ee.node;)F=j(F);var Le=f&&n!=null&&n<=q&&Ee.lineNumber;Ee.changes&&(pt(Ee.changes,"gutter")>-1&&(Le=!1),Ps(e,Ee,q,u)),Le&&(ae(Ee.lineNumber),Ee.lineNumber.appendChild(document.createTextNode(lo(e.options,q)))),F=Ee.node.nextSibling}q+=Ee.size}for(;F;)F=j(F)}function Wa(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",Fr(e,"gutterChanged",e)}function Ao(e,n){e.display.sizer.style.minHeight=n.docHeight+"px",e.display.heightForcer.style.top=n.docHeight+"px",e.display.gutters.style.height=n.docHeight+e.display.barHeight+qr(e)+"px"}function Ks(e){var n=e.display,u=n.view;if(!(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))){for(var l=Bs(n)-n.scroller.scrollLeft+e.doc.scrollLeft,f=n.gutters.offsetWidth,y=l+"px",F=0;F<u.length;F++)if(!u[F].hidden){e.options.fixedGutter&&(u[F].gutter&&(u[F].gutter.style.left=y),u[F].gutterBackground&&(u[F].gutterBackground.style.left=y));var j=u[F].alignable;if(j)for(var G=0;G<j.length;G++)j[G].style.left=y}e.options.fixedGutter&&(n.gutters.style.left=l+f+"px")}}function Ys(e){if(!e.options.lineNumbers)return!1;var n=e.doc,u=lo(e.options,n.first+n.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(ge("div",[ge("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),y=f.firstChild.offsetWidth,F=f.offsetWidth-y;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(y,l.lineGutter.offsetWidth-F)+1,l.lineNumWidth=l.lineNumInnerWidth+F,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",Wa(e.display),!0}return!1}function Ha(e,n){for(var u=[],l=!1,f=0;f<e.length;f++){var y=e[f],F=null;if(typeof y!="string"&&(F=y.style,y=y.className),y=="CodeMirror-linenumbers")if(n)l=!0;else continue;u.push({className:y,style:F})}return n&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function Js(e){var n=e.gutters,u=e.gutterSpecs;ae(n),e.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],y=f.className,F=f.style,j=n.appendChild(ge("div",null,"CodeMirror-gutter "+y));F&&(j.style.cssText=F),y=="CodeMirror-linenumbers"&&(e.lineGutter=j,j.style.width=(e.lineNumWidth||1)+"px")}n.style.display=u.length?"":"none",Wa(e)}function Eo(e){Js(e.display),_r(e),Ks(e)}function ei(e,n,u,l){var f=this;this.input=u,f.scrollbarFiller=ge("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=ge("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=he("div",null,"CodeMirror-code"),f.selectionDiv=ge("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=ge("div",null,"CodeMirror-cursors"),f.measure=ge("div",null,"CodeMirror-measure"),f.lineMeasure=ge("div",null,"CodeMirror-measure"),f.lineSpace=he("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var y=he("div",[f.lineSpace],"CodeMirror-lines");f.mover=ge("div",[y],null,"position: relative"),f.sizer=ge("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=ge("div",null,null,"position: absolute; height: "+gt+"px; width: 1px;"),f.gutters=ge("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=ge("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=ge("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),b&&A<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!g&&!(c&&M)&&(f.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(f.wrapper):e(f.wrapper)),f.viewFrom=f.viewTo=n.first,f.reportedViewFrom=f.reportedViewTo=n.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=Ha(l.gutters,l.lineNumbers),Js(f),u.init(f)}var ra=0,dn=null;b?dn=-.53:c?dn=15:D?dn=-.7:U&&(dn=-1/3);function Xs(e){var n=e.wheelDeltaX,u=e.wheelDeltaY;return n==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(n=e.detail),u==null&&e.detail&&e.axis==e.VERTICAL_AXIS?u=e.detail:u==null&&(u=e.wheelDelta),{x:n,y:u}}function pu(e){var n=Xs(e);return n.x*=dn,n.y*=dn,n}function Qs(e,n){var u=Xs(n),l=u.x,f=u.y,y=e.display,F=y.scroller,j=F.scrollWidth>F.clientWidth,G=F.scrollHeight>F.clientHeight;if(!!(l&&j||f&&G)){if(f&&O&&g){e:for(var q=n.target,xe=y.view;q!=F;q=q.parentNode)for(var Ee=0;Ee<xe.length;Ee++)if(xe[Ee].node==q){e.display.currentWheelTarget=q;break e}}if(l&&!c&&!B&&dn!=null){f&&G&&mo(e,Math.max(0,F.scrollTop+f*dn)),Pi(e,Math.max(0,F.scrollLeft+l*dn)),(!f||f&&G)&&it(n),y.wheelStartX=null;return}if(f&&dn!=null){var De=f*dn,Le=e.doc.scrollTop,Xe=Le+y.wrapper.clientHeight;De<0?Le=Math.max(0,Le+De-50):Xe=Math.min(e.doc.height,Xe+De+50),Va(e,{top:Le,bottom:Xe})}ra<20&&(y.wheelStartX==null?(y.wheelStartX=F.scrollLeft,y.wheelStartY=F.scrollTop,y.wheelDX=l,y.wheelDY=f,setTimeout(function(){if(y.wheelStartX!=null){var tt=F.scrollLeft-y.wheelStartX,at=F.scrollTop-y.wheelStartY,ft=at&&y.wheelDY&&at/y.wheelDY||tt&&y.wheelDX&&tt/y.wheelDX;y.wheelStartX=y.wheelStartY=null,!!ft&&(dn=(dn*ra+ft)/(ra+1),++ra)}},200)):(y.wheelDX+=l,y.wheelDY+=f))}}var pn=function(e,n){this.ranges=e,this.primIndex=n};pn.prototype.primary=function(){return this.ranges[this.primIndex]},pn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var u=this.ranges[n],l=e.ranges[n];if(!si(u.anchor,l.anchor)||!si(u.head,l.head))return!1}return!0},pn.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new qt(se(this.ranges[n].anchor),se(this.ranges[n].head));return new pn(e,this.primIndex)},pn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},pn.prototype.contains=function(e,n){n||(n=e);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(Lt(n,l.from())>=0&&Lt(e,l.to())<=0)return u}return-1};var qt=function(e,n){this.anchor=e,this.head=n};qt.prototype.from=function(){return qe(this.anchor,this.head)},qt.prototype.to=function(){return Ce(this.anchor,this.head)},qt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Rn(e,n,u){var l=e&&e.options.selectionsMayTouch,f=n[u];n.sort(function(De,Le){return Lt(De.from(),Le.from())}),u=pt(n,f);for(var y=1;y<n.length;y++){var F=n[y],j=n[y-1],G=Lt(j.to(),F.from());if(l&&!F.empty()?G>0:G>=0){var q=qe(j.from(),F.from()),xe=Ce(j.to(),F.to()),Ee=j.empty()?F.from()==F.head:j.from()==j.head;y<=u&&--u,n.splice(--y,2,new qt(Ee?xe:q,Ee?q:xe))}}return new pn(n,u)}function ci(e,n){return new pn([new qt(e,n||e)],0)}function Hn(e){return e.text?nt(e.from.line+e.text.length-1,St(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function $f(e,n){if(Lt(e,n.from)<0)return e;if(Lt(e,n.to)<=0)return Hn(n);var u=e.line+n.text.length-(n.to.line-n.from.line)-1,l=e.ch;return e.line==n.to.line&&(l+=Hn(n).ch-n.to.ch),nt(u,l)}function za(e,n){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new qt($f(f.anchor,n),$f(f.head,n)))}return Rn(e.cm,u,e.sel.primIndex)}function hu(e,n,u){return e.line==n.line?nt(u.line,e.ch-n.ch+u.ch):nt(u.line+(e.line-n.line),e.ch)}function Ze(e,n,u){for(var l=[],f=nt(e.first,0),y=f,F=0;F<n.length;F++){var j=n[F],G=hu(j.from,f,y),q=hu(Hn(j),f,y);if(f=j.to,y=q,u=="around"){var xe=e.sel.ranges[F],Ee=Lt(xe.head,xe.anchor)<0;l[F]=new qt(Ee?q:G,Ee?G:q)}else l[F]=new qt(G,G)}return new pn(l,e.sel.primIndex)}function Ga(e){e.doc.mode=Vn(e.options,e.doc.modeOption),Fi(e)}function Fi(e){e.doc.iter(function(n){n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Ii(e,100),e.state.modeGen++,e.curOp&&_r(e)}function $a(e,n){return n.from.ch==0&&n.to.ch==0&&St(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ka(e,n,u,l){function f(mt){return u?u[mt]:null}function y(mt,ct,xt){Vl(mt,ct,xt,l),Fr(mt,"change",mt,n)}function F(mt,ct){for(var xt=[],Pt=mt;Pt<ct;++Pt)xt.push(new Hi(q[Pt],f(Pt),l));return xt}var j=n.from,G=n.to,q=n.text,xe=At(e,j.line),Ee=At(e,G.line),De=St(q),Le=f(q.length-1),Xe=G.line-j.line;if(n.full)e.insert(0,F(0,q.length)),e.remove(q.length,e.size-q.length);else if($a(e,n)){var tt=F(0,q.length-1);y(Ee,Ee.text,Le),Xe&&e.remove(j.line,Xe),tt.length&&e.insert(j.line,tt)}else if(xe==Ee)if(q.length==1)y(xe,xe.text.slice(0,j.ch)+De+xe.text.slice(G.ch),Le);else{var at=F(1,q.length-1);at.push(new Hi(De+xe.text.slice(G.ch),Le,l)),y(xe,xe.text.slice(0,j.ch)+q[0],f(0)),e.insert(j.line+1,at)}else if(q.length==1)y(xe,xe.text.slice(0,j.ch)+q[0]+Ee.text.slice(G.ch),f(0)),e.remove(j.line+1,Xe);else{y(xe,xe.text.slice(0,j.ch)+q[0],f(0)),y(Ee,De+Ee.text.slice(G.ch),Le);var ft=F(1,q.length-1);Xe>1&&e.remove(j.line+1,Xe-1),e.insert(j.line+1,ft)}Fr(e,"change",e,n)}function di(e,n,u){function l(f,y,F){if(f.linked)for(var j=0;j<f.linked.length;++j){var G=f.linked[j];if(G.doc!=y){var q=F&&G.sharedHist;u&&!q||(n(G.doc,q),l(G.doc,f,q))}}}l(e,null,!0)}function vu(e,n){if(n.cm)throw new Error("This document is already in use.");e.doc=n,n.cm=e,ou(e),Ga(e),Kt(e),e.options.direction=n.direction,e.options.lineWrapping||Fa(e),e.options.mode=n.modeOption,_r(e)}function Kt(e){(e.doc.direction=="rtl"?je:te)(e.display.lineDiv,"CodeMirror-rtl")}function gu(e){on(e,function(){Kt(e),_r(e)})}function ti(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Zs(e,n){var u={from:se(n.from),to:Hn(n),text:ai(e,n.from,n.to)};return yu(e,u,n.from.line,n.to.line+1),di(e,function(l){return yu(l,u,n.from.line,n.to.line+1)},!0),u}function ki(e){for(;e.length;){var n=St(e);if(n.ranges)e.pop();else break}}function Kf(e,n){if(n)return ki(e.done),St(e.done);if(e.done.length&&!St(e.done).ranges)return St(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),St(e.done)}function qs(e,n,u,l){var f=e.history;f.undone.length=0;var y=+new Date,F,j;if((f.lastOp==l||f.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&f.lastModTime>y-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(F=Kf(f,f.lastOp==l)))j=St(F.changes),Lt(n.from,n.to)==0&&Lt(n.from,j.to)==0?j.to=Hn(n):F.changes.push(Zs(e,n));else{var G=St(f.done);for((!G||!G.ranges)&&na(e.sel,f.done),F={changes:[Zs(e,n)],generation:f.generation},f.done.push(F);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=y,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=n.origin,j||Oe(e,"historyAdded")}function Yf(e,n,u,l){var f=n.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Jf(e,n,u,l){var f=e.history,y=l&&l.origin;u==f.lastSelOp||y&&f.lastSelOrigin==y&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==y||Yf(e,y,St(f.done),n))?f.done[f.done.length-1]=n:na(n,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=y,f.lastSelOp=u,l&&l.clearRedo!==!1&&ki(f.undone)}function na(e,n){var u=St(n);u&&u.ranges&&u.equals(e)||n.push(e)}function yu(e,n,u,l){var f=n["spans_"+e.id],y=0;e.iter(Math.max(e.first,u),Math.min(e.first+e.size,l),function(F){F.markedSpans&&((f||(f=n["spans_"+e.id]={}))[y]=F.markedSpans),++y})}function Xf(e){if(!e)return null;for(var n,u=0;u<e.length;++u)e[u].marker.explicitlyCleared?n||(n=e.slice(0,u)):n&&n.push(e[u]);return n?n.length?n:null:e}function hn(e,n){var u=n["spans_"+e.id];if(!u)return null;for(var l=[],f=0;f<n.text.length;++f)l.push(Xf(u[f]));return l}function _s(e,n){var u=hn(e,n),l=Nl(e,n);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var y=u[f],F=l[f];if(y&&F){e:for(var j=0;j<F.length;++j){for(var G=F[j],q=0;q<y.length;++q)if(y[q].marker==G.marker)continue e;y.push(G)}}else F&&(u[f]=F)}return u}function Co(e,n,u){for(var l=[],f=0;f<e.length;++f){var y=e[f];if(y.ranges){l.push(u?pn.prototype.deepCopy.call(y):y);continue}var F=y.changes,j=[];l.push({changes:j});for(var G=0;G<F.length;++G){var q=F[G],xe=void 0;if(j.push({from:q.from,to:q.to,text:q.text}),n)for(var Ee in q)(xe=Ee.match(/^spans_(\d+)$/))&&pt(n,Number(xe[1]))>-1&&(St(j)[Ee]=q[Ee],delete q[Ee])}}return l}function ia(e,n,u,l){if(l){var f=e.anchor;if(u){var y=Lt(n,f)<0;y!=Lt(u,f)<0?(f=n,n=u):y!=Lt(n,u)<0&&(n=u)}return new qt(f,n)}else return new qt(u||n,n)}function Kr(e,n,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),_t(e,new pn([ia(e.sel.primary(),n,u,f)],0),l)}function mu(e,n,u){for(var l=[],f=e.cm&&(e.cm.display.shift||e.extend),y=0;y<e.sel.ranges.length;y++)l[y]=ia(e.sel.ranges[y],n[y],null,f);var F=Rn(e.cm,l,e.sel.primIndex);_t(e,F,u)}function ri(e,n,u,l){var f=e.sel.ranges.slice(0);f[n]=u,_t(e,Rn(e.cm,f,e.sel.primIndex),l)}function Ya(e,n,u,l){_t(e,ci(n,u),l)}function xu(e,n,u){var l={ranges:n.ranges,update:function(f){this.ranges=[];for(var y=0;y<f.length;y++)this.ranges[y]=new qt(st(e,f[y].anchor),st(e,f[y].head))},origin:u&&u.origin};return Oe(e,"beforeSelectionChange",e,l),e.cm&&Oe(e.cm,"beforeSelectionChange",e.cm,l),l.ranges!=n.ranges?Rn(e.cm,l.ranges,l.ranges.length-1):n}function el(e,n,u){var l=e.history.done,f=St(l);f&&f.ranges?(l[l.length-1]=n,Ja(e,n,u)):_t(e,n,u)}function _t(e,n,u){Ja(e,n,u),Jf(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function Ja(e,n,u){(ze(e,"beforeSelectionChange")||e.cm&&ze(e.cm,"beforeSelectionChange"))&&(n=xu(e,n,u));var l=u&&u.bias||(Lt(n.primary().head,e.sel.primary().head)<0?-1:1);Xa(e,Qa(e,n,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&Jt(e.cm)}function Xa(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Te(e.cm)),Fr(e,"cursorActivity",e))}function bu(e){Xa(e,Qa(e,e.sel,null,!1))}function Qa(e,n,u,l){for(var f,y=0;y<n.ranges.length;y++){var F=n.ranges[y],j=n.ranges.length==e.sel.ranges.length&&e.sel.ranges[y],G=tl(e,F.anchor,j&&j.anchor,u,l),q=tl(e,F.head,j&&j.head,u,l);(f||G!=F.anchor||q!=F.head)&&(f||(f=n.ranges.slice(0,y)),f[y]=new qt(G,q))}return f?Rn(e.cm,f,n.primIndex):n}function Oo(e,n,u,l,f){var y=At(e,n.line);if(y.markedSpans)for(var F=0;F<y.markedSpans.length;++F){var j=y.markedSpans[F],G=j.marker,q="selectLeft"in G?!G.selectLeft:G.inclusiveLeft,xe="selectRight"in G?!G.selectRight:G.inclusiveRight;if((j.from==null||(q?j.from<=n.ch:j.from<n.ch))&&(j.to==null||(xe?j.to>=n.ch:j.to>n.ch))){if(f&&(Oe(G,"beforeCursorEnter"),G.explicitlyCleared))if(y.markedSpans){--F;continue}else break;if(!G.atomic)continue;if(u){var Ee=G.find(l<0?1:-1),De=void 0;if((l<0?xe:q)&&(Ee=wu(e,Ee,-l,Ee&&Ee.line==n.line?y:null)),Ee&&Ee.line==n.line&&(De=Lt(Ee,u))&&(l<0?De<0:De>0))return Oo(e,Ee,n,l,f)}var Le=G.find(l<0?-1:1);return(l<0?q:xe)&&(Le=wu(e,Le,l,Le.line==n.line?y:null)),Le?Oo(e,Le,n,l,f):null}}return n}function tl(e,n,u,l,f){var y=l||1,F=Oo(e,n,u,y,f)||!f&&Oo(e,n,u,y,!0)||Oo(e,n,u,-y,f)||!f&&Oo(e,n,u,-y,!0);return F||(e.cantEdit=!0,nt(e.first,0))}function wu(e,n,u,l){return u<0&&n.ch==0?n.line>e.first?st(e,nt(n.line-1)):null:u>0&&n.ch==(l||At(e,n.line)).text.length?n.line<e.first+e.size-1?nt(n.line+1,0):null:new nt(n.line,n.ch+u)}function Su(e){e.setSelection(nt(e.firstLine(),0),nt(e.lastLine()),lt)}function Au(e,n,u){var l={canceled:!1,from:n.from,to:n.to,text:n.text,origin:n.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,y,F,j){f&&(l.from=st(e,f)),y&&(l.to=st(e,y)),F&&(l.text=F),j!==void 0&&(l.origin=j)}),Oe(e,"beforeChange",e,l),e.cm&&Oe(e.cm,"beforeChange",e.cm,l),l.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function To(e,n,u){if(e.cm){if(!e.cm.curOp)return Hr(e.cm,To)(e,n,u);if(e.cm.state.suppressEdits)return}if(!((ze(e,"beforeChange")||e.cm&&ze(e.cm,"beforeChange"))&&(n=Au(e,n,!0),!n))){var l=Sf&&!u&&Bl(e,n.from,n.to);if(l)for(var f=l.length-1;f>=0;--f)Za(e,{from:l[f].from,to:l[f].to,text:f?[""]:n.text,origin:n.origin});else Za(e,n)}}function Za(e,n){if(!(n.text.length==1&&n.text[0]==""&&Lt(n.from,n.to)==0)){var u=za(e,n);qs(e,n,u,e.cm?e.cm.curOp.id:NaN),pr(e,n,u,Nl(e,n));var l=[];di(e,function(f,y){!y&&pt(l,f.history)==-1&&(qf(f.history,n),l.push(f.history)),pr(f,n,null,Nl(f,n))})}}function qa(e,n,u){var l=e.cm&&e.cm.state.suppressEdits;if(!(l&&!u)){for(var f=e.history,y,F=e.sel,j=n=="undo"?f.done:f.undone,G=n=="undo"?f.undone:f.done,q=0;q<j.length&&(y=j[q],!(u?y.ranges&&!y.equals(e.sel):!y.ranges));q++);if(q!=j.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(y=j.pop(),y.ranges){if(na(y,G),u&&!y.equals(e.sel)){_t(e,y,{clearRedo:!1});return}F=y}else if(l){j.push(y);return}else break;var xe=[];na(F,G),G.push({changes:xe,generation:f.generation}),f.generation=y.generation||++f.maxGeneration;for(var Ee=ze(e,"beforeChange")||e.cm&&ze(e.cm,"beforeChange"),De=function(tt){var at=y.changes[tt];if(at.origin=n,Ee&&!Au(e,at,!1))return j.length=0,{};xe.push(Zs(e,at));var ft=tt?za(e,at):St(j);pr(e,at,ft,_s(e,at)),!tt&&e.cm&&e.cm.scrollIntoView({from:at.from,to:Hn(at)});var mt=[];di(e,function(ct,xt){!xt&&pt(mt,ct.history)==-1&&(qf(ct.history,at),mt.push(ct.history)),pr(ct,at,null,_s(ct,at))})},Le=y.changes.length-1;Le>=0;--Le){var Xe=De(Le);if(Xe)return Xe.v}}}}function Eu(e,n){if(n!=0&&(e.first+=n,e.sel=new pn(Wt(e.sel.ranges,function(f){return new qt(nt(f.anchor.line+n,f.anchor.ch),nt(f.head.line+n,f.head.ch))}),e.sel.primIndex),e.cm)){_r(e.cm,e.first,e.first-n,n);for(var u=e.cm.display,l=u.viewFrom;l<u.viewTo;l++)Xi(e.cm,l,"gutter")}}function pr(e,n,u,l){if(e.cm&&!e.cm.curOp)return Hr(e.cm,pr)(e,n,u,l);if(n.to.line<e.first){Eu(e,n.text.length-1-(n.to.line-n.from.line));return}if(!(n.from.line>e.lastLine())){if(n.from.line<e.first){var f=n.text.length-1-(e.first-n.from.line);Eu(e,f),n={from:nt(e.first,0),to:nt(n.to.line+f,n.to.ch),text:[St(n.text)],origin:n.origin}}var y=e.lastLine();n.to.line>y&&(n={from:n.from,to:nt(y,At(e,y).text.length),text:[n.text[0]],origin:n.origin}),n.removed=ai(e,n.from,n.to),u||(u=za(e,n)),e.cm?oa(e.cm,n,l):Ka(e,n,l),Ja(e,u,lt),e.cantEdit&&tl(e,nt(e.firstLine(),0))&&(e.cantEdit=!1)}}function oa(e,n,u){var l=e.doc,f=e.display,y=n.from,F=n.to,j=!1,G=y.line;e.options.lineWrapping||(G=er(Ir(At(l,y.line))),l.iter(G,F.line+1,function(Le){if(Le==f.maxLine)return j=!0,!0})),l.sel.contains(n.from,n.to)>-1&&Te(e),Ka(l,n,u,Us(e)),e.options.lineWrapping||(l.iter(G,y.line+n.text.length,function(Le){var Xe=Wi(Le);Xe>f.maxLineLength&&(f.maxLine=Le,f.maxLineLength=Xe,f.maxLineChanged=!0,j=!1)}),j&&(e.curOp.updateMaxLine=!0)),wf(l,y.line),Ii(e,400);var q=n.text.length-(F.line-y.line)-1;n.full?_r(e):y.line==F.line&&n.text.length==1&&!$a(e.doc,n)?Xi(e,y.line,"text"):_r(e,y.line,F.line+1,q);var xe=ze(e,"changes"),Ee=ze(e,"change");if(Ee||xe){var De={from:y,to:F,text:n.text,removed:n.removed,origin:n.origin};Ee&&Fr(e,"change",e,De),xe&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(De)}e.display.selForContextMenu=null}function Po(e,n,u,l,f){var y;l||(l=u),Lt(l,u)<0&&(y=[l,u],u=y[0],l=y[1]),typeof n=="string"&&(n=e.splitLines(n)),To(e,{from:u,to:l,text:n,origin:f})}function Qf(e,n,u,l){u<e.line?e.line+=l:n<e.line&&(e.line=n,e.ch=0)}function Zf(e,n,u,l){for(var f=0;f<e.length;++f){var y=e[f],F=!0;if(y.ranges){y.copied||(y=e[f]=y.deepCopy(),y.copied=!0);for(var j=0;j<y.ranges.length;j++)Qf(y.ranges[j].anchor,n,u,l),Qf(y.ranges[j].head,n,u,l);continue}for(var G=0;G<y.changes.length;++G){var q=y.changes[G];if(u<q.from.line)q.from=nt(q.from.line+l,q.from.ch),q.to=nt(q.to.line+l,q.to.ch);else if(n<=q.to.line){F=!1;break}}F||(e.splice(0,f+1),f=0)}}function qf(e,n){var u=n.from.line,l=n.to.line,f=n.text.length-(l-u)-1;Zf(e.done,u,l,f),Zf(e.undone,u,l,f)}function aa(e,n,u,l){var f=n,y=n;return typeof n=="number"?y=At(e,ot(e,n)):f=er(n),f==null?null:(l(y,f)&&e.cm&&Xi(e.cm,f,u),y)}function sa(e){this.lines=e,this.parent=null;for(var n=0,u=0;u<e.length;++u)e[u].parent=this,n+=e[u].height;this.height=n}sa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,n){for(var u=e,l=e+n;u<l;++u){var f=this.lines[u];this.height-=f.height,If(f),Fr(f,"delete")}this.lines.splice(e,n)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,n,u){this.height+=u,this.lines=this.lines.slice(0,e).concat(n).concat(this.lines.slice(e));for(var l=0;l<n.length;++l)n[l].parent=this},iterN:function(e,n,u){for(var l=e+n;e<l;++e)if(u(this.lines[e]))return!0}};function _a(e){this.children=e;for(var n=0,u=0,l=0;l<e.length;++l){var f=e[l];n+=f.chunkSize(),u+=f.height,f.parent=this}this.size=n,this.height=u,this.parent=null}_a.prototype={chunkSize:function(){return this.size},removeInner:function(e,n){this.size-=n;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(e<f){var y=Math.min(n,f-e),F=l.height;if(l.removeInner(e,y),this.height-=F-l.height,f==y&&(this.children.splice(u--,1),l.parent=null),(n-=y)==0)break;e=0}else e-=f}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof sa))){var j=[];this.collapse(j),this.children=[new sa(j)],this.children[0].parent=this}},collapse:function(e){for(var n=0;n<this.children.length;++n)this.children[n].collapse(e)},insertInner:function(e,n,u){this.size+=n.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],y=f.chunkSize();if(e<=y){if(f.insertInner(e,n,u),f.lines&&f.lines.length>50){for(var F=f.lines.length%25+25,j=F;j<f.lines.length;){var G=new sa(f.lines.slice(j,j+=25));f.height-=G.height,this.children.splice(++l,0,G),G.parent=this}f.lines=f.lines.slice(0,F),this.maybeSpill()}break}e-=y}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var n=e.children.splice(e.children.length-5,5),u=new _a(n);if(e.parent){e.size-=u.size,e.height-=u.height;var f=pt(e.parent.children,e);e.parent.children.splice(f+1,0,u)}else{var l=new _a(e.children);l.parent=e,e.children=[l,u],e=l}u.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,n,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],y=f.chunkSize();if(e<y){var F=Math.min(n,y-e);if(f.iterN(e,F,u))return!0;if((n-=F)==0)break;e=0}else e-=y}}};var la=function(e,n,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=n};la.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,u=this.line,l=er(u);if(!(l==null||!n)){for(var f=0;f<n.length;++f)n[f]==this&&n.splice(f--,1);n.length||(u.widgets=null);var y=Ko(this);bn(u,Math.max(0,u.height-y)),e&&(on(e,function(){Cu(e,u,-y),Xi(e,l,"widget")}),Fr(e,"lineWidgetCleared",e,this,l))}},la.prototype.changed=function(){var e=this,n=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Ko(this)-n;!f||(Ci(this.doc,l)||bn(l,l.height+f),u&&on(u,function(){u.curOp.forceUpdate=!0,Cu(u,l,f),Fr(u,"lineWidgetChanged",u,e,er(l))}))},He(la);function Cu(e,n,u){Xn(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&En(e,u)}function _f(e,n,u,l){var f=new la(e,u,l),y=e.cm;return y&&f.noHScroll&&(y.display.alignWidgets=!0),aa(e,n,"widget",function(F){var j=F.widgets||(F.widgets=[]);if(f.insertAt==null?j.push(f):j.splice(Math.min(j.length,Math.max(0,f.insertAt)),0,f),f.line=F,y&&!Ci(e,F)){var G=Xn(F)<e.scrollTop;bn(F,F.height+Ko(f)),G&&En(y,f.height),y.curOp.forceUpdate=!0}return!0}),y&&Fr(y,"lineWidgetAdded",y,f,typeof n=="number"?n:er(n)),f}var Ou=0,Ri=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++Ou};Ri.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&Sr(e),ze(this,"clear")){var u=this.find();u&&Fr(this,"clear",u.from,u.to)}for(var l=null,f=null,y=0;y<this.lines.length;++y){var F=this.lines[y],j=Ho(F.markedSpans,this);e&&!this.collapsed?Xi(e,er(F),"text"):e&&(j.to!=null&&(f=er(F)),j.from!=null&&(l=er(F))),F.markedSpans=Cf(F.markedSpans,j),j.from==null&&this.collapsed&&!Ci(this.doc,F)&&e&&bn(F,ho(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var G=0;G<this.lines.length;++G){var q=Ir(this.lines[G]),xe=Wi(q);xe>e.display.maxLineLength&&(e.display.maxLine=q,e.display.maxLineLength=xe,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&_r(e,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&bu(e.doc)),e&&Fr(e,"markerCleared",e,this,l,f),n&&cn(e),this.parent&&this.parent.clear()}},Ri.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var u,l,f=0;f<this.lines.length;++f){var y=this.lines[f],F=Ho(y.markedSpans,this);if(F.from!=null&&(u=nt(n?y:er(y),F.from),e==-1))return u;if(F.to!=null&&(l=nt(n?y:er(y),F.to),e==1))return l}return u&&{from:u,to:l}},Ri.prototype.changed=function(){var e=this,n=this.find(-1,!0),u=this,l=this.doc.cm;!n||!l||on(l,function(){var f=n.line,y=er(n.line),F=Jo(l,y);if(F&&(tu(F),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Ci(u.doc,f)&&u.height!=null){var j=u.height;u.height=null;var G=Ko(u)-j;G&&bn(f,f.height+G)}Fr(l,"markerChanged",l,e)})},Ri.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(!n.maybeHiddenMarkers||pt(n.maybeHiddenMarkers,this)==-1)&&(n.maybeUnhiddenMarkers||(n.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Ri.prototype.detachLine=function(e){if(this.lines.splice(pt(this.lines,e),1),!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(n.maybeHiddenMarkers||(n.maybeHiddenMarkers=[])).push(this)}},He(Ri);function Io(e,n,u,l,f){if(l&&l.shared)return zn(e,n,u,l,f);if(e.cm&&!e.cm.curOp)return Hr(e.cm,Io)(e,n,u,l,f);var y=new Ri(e,f),F=Lt(n,u);if(l&&Qe(l,y,!1),F>0||F==0&&y.clearWhenEmpty!==!1)return y;if(y.replacedWith&&(y.collapsed=!0,y.widgetNode=he("span",[y.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||y.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(y.widgetNode.insertLeft=!0)),y.collapsed){if(Et(e,n.line,n,u,y)||n.line!=u.line&&Et(e,u.line,n,u,y))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ef()}y.addToHistory&&qs(e,{from:n,to:u,origin:"markText"},e.sel,NaN);var j=n.line,G=e.cm,q;if(e.iter(j,u.line+1,function(Ee){G&&y.collapsed&&!G.options.lineWrapping&&Ir(Ee)==G.display.maxLine&&(q=!0),y.collapsed&&j!=n.line&&bn(Ee,0),wd(Ee,new Pa(y,j==n.line?n.ch:null,j==u.line?u.ch:null),e.cm&&e.cm.curOp),++j}),y.collapsed&&e.iter(n.line,u.line+1,function(Ee){Ci(e,Ee)&&bn(Ee,0)}),y.clearOnEnter&&N(y,"beforeCursorEnter",function(){return y.clear()}),y.readOnly&&(Af(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),y.collapsed&&(y.id=++Ou,y.atomic=!0),G){if(q&&(G.curOp.updateMaxLine=!0),y.collapsed)_r(G,n.line,u.line+1);else if(y.className||y.startStyle||y.endStyle||y.css||y.attributes||y.title)for(var xe=n.line;xe<=u.line;xe++)Xi(G,xe,"text");y.atomic&&bu(G.doc),Fr(G,"markerAdded",G,y)}return y}var rr=function(e,n){this.markers=e,this.primary=n;for(var u=0;u<e.length;++u)e[u].parent=this};rr.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Fr(this,"clear")}},rr.prototype.find=function(e,n){return this.primary.find(e,n)},He(rr);function zn(e,n,u,l,f){l=Qe(l),l.shared=!1;var y=[Io(e,n,u,l,f)],F=y[0],j=l.widgetNode;return di(e,function(G){j&&(l.widgetNode=j.cloneNode(!0)),y.push(Io(G,st(G,n),st(G,u),l,f));for(var q=0;q<G.linked.length;++q)if(G.linked[q].isParent)return;F=St(y)}),new rr(y,F)}function Tu(e){return e.findMarks(nt(e.first,0),e.clipPos(nt(e.lastLine())),function(n){return n.parent})}function rl(e,n){for(var u=0;u<n.length;u++){var l=n[u],f=l.find(),y=e.clipPos(f.from),F=e.clipPos(f.to);if(Lt(y,F)){var j=Io(e,y,F,l.primary,l.primary.type);l.markers.push(j),j.parent=l}}}function Pu(e){for(var n=function(l){var f=e[l],y=[f.primary.doc];di(f.primary.doc,function(G){return y.push(G)});for(var F=0;F<f.markers.length;F++){var j=f.markers[F];pt(y,j.doc)==-1&&(j.parent=null,f.markers.splice(F--,1))}},u=0;u<e.length;u++)n(u)}var Fo=0,en=function(e,n,u,l,f){if(!(this instanceof en))return new en(e,n,u,l,f);u==null&&(u=0),_a.call(this,[new sa([new Hi("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var y=nt(u,0);this.sel=ci(y),this.history=new ti(null),this.id=++Fo,this.modeOption=n,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Ka(this,{from:y,to:y,text:e}),_t(this,ci(y),lt)};en.prototype=wt(_a.prototype,{constructor:en,iter:function(e,n,u){u?this.iterN(e-this.first,n-e,u):this.iterN(this.first,this.first+this.size,e)},insert:function(e,n){for(var u=0,l=0;l<n.length;++l)u+=n[l].height;this.insertInner(e-this.first,n,u)},remove:function(e,n){this.removeInner(e-this.first,n)},getValue:function(e){var n=Ai(this,this.first,this.first+this.size);return e===!1?n:n.join(e||this.lineSeparator())},setValue:Mr(function(e){var n=nt(this.first,0),u=this.first+this.size-1;To(this,{from:n,to:nt(u,At(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&fi(this.cm,0,0),_t(this,ci(n),lt)}),replaceRange:function(e,n,u,l){n=st(this,n),u=u?st(this,u):n,Po(this,e,n,u,l)},getRange:function(e,n,u){var l=ai(this,st(this,e),st(this,n));return u===!1?l:l.join(u||this.lineSeparator())},getLine:function(e){var n=this.getLineHandle(e);return n&&n.text},getLineHandle:function(e){if(Jn(this,e))return At(this,e)},getLineNumber:function(e){return er(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=At(this,e)),Ir(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return st(this,e)},getCursor:function(e){var n=this.sel.primary(),u;return e==null||e=="head"?u=n.head:e=="anchor"?u=n.anchor:e=="end"||e=="to"||e===!1?u=n.to():u=n.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Mr(function(e,n,u){Ya(this,st(this,typeof e=="number"?nt(e,n||0):e),null,u)}),setSelection:Mr(function(e,n,u){Ya(this,st(this,e),st(this,n||e),u)}),extendSelection:Mr(function(e,n,u){Kr(this,st(this,e),n&&st(this,n),u)}),extendSelections:Mr(function(e,n){mu(this,Zt(this,e),n)}),extendSelectionsBy:Mr(function(e,n){var u=Wt(this.sel.ranges,e);mu(this,Zt(this,u),n)}),setSelections:Mr(function(e,n,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new qt(st(this,e[f].anchor),st(this,e[f].head||e[f].anchor));n==null&&(n=Math.min(e.length-1,this.sel.primIndex)),_t(this,Rn(this.cm,l,n),u)}}),addSelection:Mr(function(e,n,u){var l=this.sel.ranges.slice(0);l.push(new qt(st(this,e),st(this,n||e))),_t(this,Rn(this.cm,l,l.length-1),u)}),getSelection:function(e){for(var n=this.sel.ranges,u,l=0;l<n.length;l++){var f=ai(this,n[l].from(),n[l].to());u=u?u.concat(f):f}return e===!1?u:u.join(e||this.lineSeparator())},getSelections:function(e){for(var n=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=ai(this,u[l].from(),u[l].to());e!==!1&&(f=f.join(e||this.lineSeparator())),n[l]=f}return n},replaceSelection:function(e,n,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=e;this.replaceSelections(l,n,u||"+input")},replaceSelections:Mr(function(e,n,u){for(var l=[],f=this.sel,y=0;y<f.ranges.length;y++){var F=f.ranges[y];l[y]={from:F.from(),to:F.to(),text:this.splitLines(e[y]),origin:u}}for(var j=n&&n!="end"&&Ze(this,l,n),G=l.length-1;G>=0;G--)To(this,l[G]);j?el(this,j):this.cm&&Jt(this.cm)}),undo:Mr(function(){qa(this,"undo")}),redo:Mr(function(){qa(this,"redo")}),undoSelection:Mr(function(){qa(this,"undo",!0)}),redoSelection:Mr(function(){qa(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,n=0,u=0,l=0;l<e.done.length;l++)e.done[l].ranges||++n;for(var f=0;f<e.undone.length;f++)e.undone[f].ranges||++u;return{undo:n,redo:u}},clearHistory:function(){var e=this;this.history=new ti(this.history),di(this,function(n){return n.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Co(this.history.done),undone:Co(this.history.undone)}},setHistory:function(e){var n=this.history=new ti(this.history);n.done=Co(e.done.slice(0),null,!0),n.undone=Co(e.undone.slice(0),null,!0)},setGutterMarker:Mr(function(e,n,u){return aa(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[n]=u,!u&&Y(f)&&(l.gutterMarkers=null),!0})}),clearGutter:Mr(function(e){var n=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&aa(n,u,"gutter",function(){return u.gutterMarkers[e]=null,Y(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(e){var n;if(typeof e=="number"){if(!Jn(this,e)||(n=e,e=At(this,e),!e))return null}else if(n=er(e),n==null)return null;return{line:n,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Mr(function(e,n,u){return aa(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass";if(!l[f])l[f]=u;else{if(ce(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:Mr(function(e,n,u){return aa(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",y=l[f];if(y)if(u==null)l[f]=null;else{var F=y.match(ce(u));if(!F)return!1;var j=F.index+F[0].length;l[f]=y.slice(0,F.index)+(!F.index||j==y.length?"":" ")+y.slice(j)||null}else return!1;return!0})}),addLineWidget:Mr(function(e,n,u){return _f(this,e,n,u)}),removeLineWidget:function(e){e.clear()},markText:function(e,n,u){return Io(this,st(this,e),st(this,n),u,u&&u.type||"range")},setBookmark:function(e,n){var u={replacedWith:n&&(n.nodeType==null?n.widget:n),insertLeft:n&&n.insertLeft,clearWhenEmpty:!1,shared:n&&n.shared,handleMouseEvents:n&&n.handleMouseEvents};return e=st(this,e),Io(this,e,e,u,"bookmark")},findMarksAt:function(e){e=st(this,e);var n=[],u=At(this,e.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=e.ch)&&(f.to==null||f.to>=e.ch)&&n.push(f.marker.parent||f.marker)}return n},findMarks:function(e,n,u){e=st(this,e),n=st(this,n);var l=[],f=e.line;return this.iter(e.line,n.line+1,function(y){var F=y.markedSpans;if(F)for(var j=0;j<F.length;j++){var G=F[j];!(G.to!=null&&f==e.line&&e.ch>=G.to||G.from==null&&f!=e.line||G.from!=null&&f==n.line&&G.from>=n.ch)&&(!u||u(G.marker))&&l.push(G.marker.parent||G.marker)}++f}),l},getAllMarks:function(){var e=[];return this.iter(function(n){var u=n.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&e.push(u[l].marker)}),e},posFromIndex:function(e){var n,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var y=f.text.length+l;if(y>e)return n=e,!0;e-=y,++u}),st(this,nt(u,n))},indexFromPos:function(e){e=st(this,e);var n=e.ch;if(e.line<this.first||e.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,e.line,function(l){n+=l.text.length+u}),n},copy:function(e){var n=new en(Ai(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return n.scrollTop=this.scrollTop,n.scrollLeft=this.scrollLeft,n.sel=this.sel,n.extend=!1,e&&(n.history.undoDepth=this.history.undoDepth,n.setHistory(this.getHistory())),n},linkedDoc:function(e){e||(e={});var n=this.first,u=this.first+this.size;e.from!=null&&e.from>n&&(n=e.from),e.to!=null&&e.to<u&&(u=e.to);var l=new en(Ai(this,n,u),e.mode||this.modeOption,n,this.lineSep,this.direction);return e.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:e.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],rl(l,Tu(this)),l},unlinkDoc:function(e){if(e instanceof hr&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n){var u=this.linked[n];if(u.doc==e){this.linked.splice(n,1),e.unlinkDoc(this),Pu(Tu(this));break}}if(e.history==this.history){var l=[e.id];di(e,function(f){return l.push(f.id)},!0),e.history=new ti(null),e.history.done=Co(this.history.done,l),e.history.undone=Co(this.history.undone,l)}},iterLinkedDocs:function(e){di(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):$n(e)},lineSeparator:function(){return this.lineSep||`
28
- `},setDirection:Mr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(n){return n.order=null}),this.cm&&gu(this.cm))})}),en.prototype.eachLine=en.prototype.iter;var nl=0;function ec(e){var n=this;if(ol(n),!(Pe(n,e)||li(n.display,e))){it(e),b&&(nl=+new Date);var u=Ji(n,e,!0),l=e.dataTransfer.files;if(!(!u||n.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,y=Array(f),F=0,j=function(){++F==f&&Hr(n,function(){u=st(n.doc,u);var Le={from:u,to:u,text:n.doc.splitLines(y.filter(function(Xe){return Xe!=null}).join(n.doc.lineSeparator())),origin:"paste"};To(n.doc,Le),el(n.doc,ci(st(n.doc,u),st(n.doc,Hn(Le))))})()},G=function(Le,Xe){if(n.options.allowDropFileTypes&&pt(n.options.allowDropFileTypes,Le.type)==-1){j();return}var tt=new FileReader;tt.onerror=function(){return j()},tt.onload=function(){var at=tt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(at)){j();return}y[Xe]=at,j()},tt.readAsText(Le)},q=0;q<l.length;q++)G(l[q],q);else{if(n.state.draggingText&&n.doc.sel.contains(u)>-1){n.state.draggingText(e),setTimeout(function(){return n.display.input.focus()},20);return}try{var xe=e.dataTransfer.getData("Text");if(xe){var Ee;if(n.state.draggingText&&!n.state.draggingText.copy&&(Ee=n.listSelections()),Ja(n.doc,ci(u,u)),Ee)for(var De=0;De<Ee.length;++De)Po(n.doc,"",Ee[De].anchor,Ee[De].head,"drag");n.replaceSelection(xe,"around","paste"),n.display.input.focus()}}catch(Le){}}}}function Iu(e,n){if(b&&(!e.state.draggingText||+new Date-nl<100)){Yt(n);return}if(!(Pe(e,n)||li(e.display,n))&&(n.dataTransfer.setData("Text",e.getSelection()),n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage&&!U)){var u=ge("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",B&&(u.width=u.height=1,e.display.wrapper.appendChild(u),u._top=u.offsetTop),n.dataTransfer.setDragImage(u,0,0),B&&u.parentNode.removeChild(u)}}function il(e,n){var u=Ji(e,n);if(!!u){var l=document.createDocumentFragment();su(e,u,l),e.display.dragCursor||(e.display.dragCursor=ge("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),me(e.display.dragCursor,l)}}function ol(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function al(e){if(!!document.getElementsByClassName){for(var n=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<n.length;l++){var f=n[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var y=0;y<u.length;y++)e(u[y])})}}var ua=!1;function tc(){ua||(rc(),ua=!0)}function rc(){var e;N(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,al(ko)},100))}),N(window,"blur",function(){return al(qo)})}function ko(e){var n=e.display;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.scrollbarsClipped=!1,e.setSize()}for(var pi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},fa=0;fa<10;fa++)pi[fa+48]=pi[fa+96]=String(fa);for(var qi=65;qi<=90;qi++)pi[qi]=String.fromCharCode(qi);for(var ca=1;ca<=12;ca++)pi[ca+111]=pi[ca+63235]="F"+ca;var hi={};hi.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},hi.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},hi.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},hi.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},hi.default=O?hi.macDefault:hi.pcDefault;function Fu(e){var n=e.split(/-(?!$)/);e=n[n.length-1];for(var u,l,f,y,F=0;F<n.length-1;F++){var j=n[F];if(/^(cmd|meta|m)$/i.test(j))y=!0;else if(/^a(lt)?$/i.test(j))u=!0;else if(/^(c|ctrl|control)$/i.test(j))l=!0;else if(/^s(hift)?$/i.test(j))f=!0;else throw new Error("Unrecognized modifier name: "+j)}return u&&(e="Alt-"+e),l&&(e="Ctrl-"+e),y&&(e="Cmd-"+e),f&&(e="Shift-"+e),e}function ku(e){var n={};for(var u in e)if(e.hasOwnProperty(u)){var l=e[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete e[u];continue}for(var f=Wt(u.split(" "),Fu),y=0;y<f.length;y++){var F=void 0,j=void 0;y==f.length-1?(j=f.join(" "),F=l):(j=f.slice(0,y+1).join(" "),F="...");var G=n[j];if(!G)n[j]=F;else if(G!=F)throw new Error("Inconsistent bindings for "+j)}delete e[u]}for(var q in n)e[q]=n[q];return e}function _i(e,n,u,l){n=eo(n);var f=n.call?n.call(e,l):n[e];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&u(f))return"handled";if(n.fallthrough){if(Object.prototype.toString.call(n.fallthrough)!="[object Array]")return _i(e,n.fallthrough,u,l);for(var y=0;y<n.fallthrough.length;y++){var F=_i(e,n.fallthrough[y],u,l);if(F)return F}}}function sl(e){var n=typeof e=="string"?e:pi[e.keyCode];return n=="Ctrl"||n=="Alt"||n=="Shift"||n=="Mod"}function Ru(e,n,u){var l=e;return n.altKey&&l!="Alt"&&(e="Alt-"+e),(K?n.metaKey:n.ctrlKey)&&l!="Ctrl"&&(e="Ctrl-"+e),(K?n.ctrlKey:n.metaKey)&&l!="Mod"&&(e="Cmd-"+e),!u&&n.shiftKey&&l!="Shift"&&(e="Shift-"+e),e}function Mu(e,n){if(B&&e.keyCode==34&&e.char)return!1;var u=pi[e.keyCode];return u==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(u=e.code),Ru(u,e,n))}function eo(e){return typeof e=="string"?hi[e]:e}function Ro(e,n){for(var u=e.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var y=n(u[f]);l.length&&Lt(y.from,St(l).to)<=0;){var F=l.pop();if(Lt(F.from,y.from)<0){y.from=F.from;break}}l.push(y)}on(e,function(){for(var j=l.length-1;j>=0;j--)Po(e.doc,"",l[j].from,l[j].to,"+delete");Jt(e)})}function br(e,n,u){var l=be(e.text,n+u,u);return l<0||l>e.text.length?null:l}function ll(e,n,u){var l=br(e,n.ch,u);return l==null?null:new nt(n.line,l,u<0?"after":"before")}function Lu(e,n,u,l,f){if(e){n.doc.direction=="rtl"&&(f=-f);var y=P(u,n.doc.direction);if(y){var F=f<0?St(y):y[0],j=f<0==(F.level==1),G=j?"after":"before",q;if(F.level>0||n.doc.direction=="rtl"){var xe=co(n,u);q=f<0?u.text.length-1:0;var Ee=Zn(n,xe,q).top;q=Ae(function(De){return Zn(n,xe,De).top==Ee},f<0==(F.level==1)?F.from:F.to-1,q),G=="before"&&(q=br(u,q,1))}else q=f<0?F.to:F.from;return new nt(l,q,G)}}return new nt(l,f<0?u.text.length:0,f<0?"before":"after")}function nc(e,n,u,l){var f=P(n,e.doc.direction);if(!f)return ll(n,u,l);u.ch>=n.text.length?(u.ch=n.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var y=H(f,u.ch,u.sticky),F=f[y];if(e.doc.direction=="ltr"&&F.level%2==0&&(l>0?F.to>u.ch:F.from<u.ch))return ll(n,u,l);var j=function(ft,mt){return br(n,ft instanceof nt?ft.ch:ft,mt)},G,q=function(ft){return e.options.lineWrapping?(G=G||co(e,n),nu(e,n,G,ft)):{begin:0,end:n.text.length}},xe=q(u.sticky=="before"?j(u,-1):u.ch);if(e.doc.direction=="rtl"||F.level==1){var Ee=F.level==1==l<0,De=j(u,Ee?1:-1);if(De!=null&&(Ee?De<=F.to&&De<=xe.end:De>=F.from&&De>=xe.begin)){var Le=Ee?"before":"after";return new nt(u.line,De,Le)}}var Xe=function(ft,mt,ct){for(var xt=function(ar,Lr){return Lr?new nt(u.line,j(ar,1),"before"):new nt(u.line,ar,"after")};ft>=0&&ft<f.length;ft+=mt){var Pt=f[ft],Ot=mt>0==(Pt.level!=1),Vt=Ot?ct.begin:j(ct.end,-1);if(Pt.from<=Vt&&Vt<Pt.to||(Vt=Ot?Pt.from:j(Pt.to,-1),ct.begin<=Vt&&Vt<ct.end))return xt(Vt,Ot)}},tt=Xe(y+l,l,xe);if(tt)return tt;var at=l>0?xe.end:j(xe.begin,-1);return at!=null&&!(l>0&&at==n.text.length)&&(tt=Xe(l>0?0:f.length-1,l,q(at)),tt)?tt:null}var Mn={selectAll:Su,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),lt)},killLine:function(e){return Ro(e,function(n){if(n.empty()){var u=At(e.doc,n.head.line).text.length;return n.head.ch==u&&n.head.line<e.lastLine()?{from:n.head,to:nt(n.head.line+1,0)}:{from:n.head,to:nt(n.head.line,u)}}else return{from:n.from(),to:n.to()}})},deleteLine:function(e){return Ro(e,function(n){return{from:nt(n.from().line,0),to:st(e.doc,nt(n.to().line+1,0))}})},delLineLeft:function(e){return Ro(e,function(n){return{from:nt(n.from().line,0),to:n.from()}})},delWrappedLineLeft:function(e){return Ro(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return{from:l,to:n.from()}})},delWrappedLineRight:function(e){return Ro(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div");return{from:n.from(),to:l}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(nt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(nt(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(n){return Nu(e,n.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(n){return Du(e,n.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(n){return ic(e,n.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div")},yt)},goLineLeft:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:0,top:u},"div")},yt)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return l.ch<e.getLine(l.line).search(/\S/)?Du(e,n.head):l},yt)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var n=[],u=e.listSelections(),l=e.options.tabSize,f=0;f<u.length;f++){var y=u[f].from(),F=Je(e.getLine(y.line),y.ch,l);n.push(Ft(l-F%l))}e.replaceSelections(n)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return on(e,function(){for(var n=e.listSelections(),u=[],l=0;l<n.length;l++)if(!!n[l].empty()){var f=n[l].head,y=At(e.doc,f.line).text;if(y){if(f.ch==y.length&&(f=new nt(f.line,f.ch-1)),f.ch>0)f=new nt(f.line,f.ch+1),e.replaceRange(y.charAt(f.ch-1)+y.charAt(f.ch-2),nt(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var F=At(e.doc,f.line-1).text;F&&(f=new nt(f.line,1),e.replaceRange(y.charAt(0)+e.doc.lineSeparator()+F.charAt(F.length-1),nt(f.line-1,F.length-1),f,"+transpose"))}}u.push(new qt(f,f))}e.setSelections(u)})},newlineAndIndent:function(e){return on(e,function(){for(var n=e.listSelections(),u=n.length-1;u>=0;u--)e.replaceRange(e.doc.lineSeparator(),n[u].anchor,n[u].head,"+input");n=e.listSelections();for(var l=0;l<n.length;l++)e.indentLine(n[l].from().line,null,!0);Jt(e)})},openLine:function(e){return e.replaceSelection(`
29
- `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Nu(e,n){var u=At(e.doc,n),l=Ir(u);return l!=u&&(n=er(l)),Lu(!0,e,l,n,1)}function ic(e,n){var u=At(e.doc,n),l=Tf(u);return l!=u&&(n=er(l)),Lu(!0,e,u,n,-1)}function Du(e,n){var u=Nu(e,n.line),l=At(e.doc,u.line),f=P(l,e.doc.direction);if(!f||f[0].level==0){var y=Math.max(u.ch,l.text.search(/\S/)),F=n.line==u.line&&n.ch<=y&&n.ch;return nt(u.line,F?0:y,u.sticky)}return u}function es(e,n,u){if(typeof n=="string"&&(n=Mn[n],!n))return!1;e.display.input.ensurePolled();var l=e.display.shift,f=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),u&&(e.display.shift=!1),f=n(e)!=_e}finally{e.display.shift=l,e.state.suppressEdits=!1}return f}function Od(e,n,u){for(var l=0;l<e.state.keyMaps.length;l++){var f=_i(n,e.state.keyMaps[l],u,e);if(f)return f}return e.options.extraKeys&&_i(n,e.options.extraKeys,u,e)||_i(n,e.options.keyMap,u,e)}var Td=new ut;function ts(e,n,u,l){var f=e.state.keySeq;if(f){if(sl(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:Td.set(50,function(){e.state.keySeq==f&&(e.state.keySeq=null,e.display.input.reset())}),oc(e,f+" "+n,u,l))return!0}return oc(e,n,u,l)}function oc(e,n,u,l){var f=Od(e,n,l);return f=="multi"&&(e.state.keySeq=n),f=="handled"&&Fr(e,"keyHandled",e,n,u),(f=="handled"||f=="multi")&&(it(u),lu(e)),!!f}function ac(e,n){var u=Mu(n,!0);return u?n.shiftKey&&!e.state.keySeq?ts(e,"Shift-"+u,n,function(l){return es(e,l,!0)})||ts(e,u,n,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return es(e,l)}):ts(e,u,n,function(l){return es(e,l)}):!1}function Pd(e,n,u){return ts(e,"'"+u+"'",n,function(l){return es(e,l,!0)})}var Bu=null;function sc(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&(n.curOp.focus=Me(),!Pe(n,e))){b&&A<11&&e.keyCode==27&&(e.returnValue=!1);var u=e.keyCode;n.display.shift=u==16||e.shiftKey;var l=ac(n,e);B&&(Bu=l?u:null,!l&&u==88&&!Kn&&(O?e.metaKey:e.ctrlKey)&&n.replaceSelection("",null,"cut")),c&&!O&&!l&&u==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(n.display.lineDiv.className)&&Id(n)}}function Id(e){var n=e.display.lineDiv;je(n,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(te(n,"CodeMirror-crosshair"),fe(document,"keyup",u),fe(document,"mouseover",u))}N(document,"keyup",u),N(document,"mouseover",u)}function lc(e){e.keyCode==16&&(this.doc.sel.shift=!1),Pe(this,e)}function ul(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&!(li(n.display,e)||Pe(n,e)||e.ctrlKey&&!e.altKey||O&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(B&&u==Bu){Bu=null,it(e);return}if(!(B&&(!e.which||e.which<10)&&ac(n,e))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(Pd(n,e,f)||n.display.input.onKeyPress(e))}}}var Mo=400,fl=function(e,n,u){this.time=e,this.pos=n,this.button=u};fl.prototype.compare=function(e,n,u){return this.time+Mo>e&&Lt(n,this.pos)==0&&u==this.button};var da,Mi;function uc(e,n){var u=+new Date;return Mi&&Mi.compare(u,e,n)?(da=Mi=null,"triple"):da&&da.compare(u,e,n)?(Mi=new fl(u,e,n),da=null,"double"):(da=new fl(u,e,n),Mi=null,"single")}function Uu(e){var n=this,u=n.display;if(!(Pe(n,e)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=e.shiftKey,li(u,e)){g||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!is(n,e)){var l=Ji(n,e),f=yn(e),y=l?uc(l,f):"single";window.focus(),f==1&&n.state.selectingText&&n.state.selectingText(e),!(l&&fc(n,f,l,y,e))&&(f==1?l?ju(n,l,y,e):kt(e)==u.scroller&&it(e):f==2?(l&&Kr(n.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(Z?n.display.input.onContextMenu(e):Vs(n)))}}}function fc(e,n,u,l,f){var y="Click";return l=="double"?y="Double"+y:l=="triple"&&(y="Triple"+y),y=(n==1?"Left":n==2?"Middle":"Right")+y,ts(e,Ru(y,f),f,function(F){if(typeof F=="string"&&(F=Mn[F]),!F)return!1;var j=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),j=F(e,u)!=_e}finally{e.state.suppressEdits=!1}return j})}function cc(e,n,u){var l=e.getOption("configureMouse"),f=l?l(e,n,u):{};if(f.unit==null){var y=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=y?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(f.extend==null||e.doc.extend)&&(f.extend=e.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=O?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(O?u.altKey:u.ctrlKey)),f}function ju(e,n,u,l){b?setTimeout(rt(zf,e),0):e.curOp.focus=Me();var f=cc(e,u,l),y=e.doc.sel,F;e.options.dragDrop&&Xr&&!e.isReadOnly()&&u=="single"&&(F=y.contains(n))>-1&&(Lt((F=y.ranges[F]).from(),n)<0||n.xRel>0)&&(Lt(F.to(),n)>0||n.xRel<0)?rs(e,l,n,f):to(e,l,n,f)}function rs(e,n,u,l){var f=e.display,y=!1,F=Hr(e,function(q){g&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Vs(e)),fe(f.wrapper.ownerDocument,"mouseup",F),fe(f.wrapper.ownerDocument,"mousemove",j),fe(f.scroller,"dragstart",G),fe(f.scroller,"drop",F),y||(it(q),l.addNew||Kr(e.doc,u,null,null,l.extend),g&&!U||b&&A==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),j=function(q){y=y||Math.abs(n.clientX-q.clientX)+Math.abs(n.clientY-q.clientY)>=10},G=function(){return y=!0};g&&(f.scroller.draggable=!0),e.state.draggingText=F,F.copy=!l.moveOnDrag,N(f.wrapper.ownerDocument,"mouseup",F),N(f.wrapper.ownerDocument,"mousemove",j),N(f.scroller,"dragstart",G),N(f.scroller,"drop",F),e.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function dc(e,n,u){if(u=="char")return new qt(n,n);if(u=="word")return e.findWordAt(n);if(u=="line")return new qt(nt(n.line,0),st(e.doc,nt(n.line+1,0)));var l=u(e,n);return new qt(l.from,l.to)}function to(e,n,u,l){b&&Vs(e);var f=e.display,y=e.doc;it(n);var F,j,G=y.sel,q=G.ranges;if(l.addNew&&!l.extend?(j=y.sel.contains(u),j>-1?F=q[j]:F=new qt(u,u)):(F=y.sel.primary(),j=y.sel.primIndex),l.unit=="rectangle")l.addNew||(F=new qt(u,u)),u=Ji(e,n,!0,!0),j=-1;else{var xe=dc(e,u,l.unit);l.extend?F=ia(F,xe.anchor,xe.head,l.extend):F=xe}l.addNew?j==-1?(j=q.length,_t(y,Rn(e,q.concat([F]),j),{scroll:!1,origin:"*mouse"})):q.length>1&&q[j].empty()&&l.unit=="char"&&!l.extend?(_t(y,Rn(e,q.slice(0,j).concat(q.slice(j+1)),0),{scroll:!1,origin:"*mouse"}),G=y.sel):ri(y,j,F,ht):(j=0,_t(y,new pn([F],0),ht),G=y.sel);var Ee=u;function De(ct){if(Lt(Ee,ct)!=0)if(Ee=ct,l.unit=="rectangle"){for(var xt=[],Pt=e.options.tabSize,Ot=Je(At(y,u.line).text,u.ch,Pt),Vt=Je(At(y,ct.line).text,ct.ch,Pt),ar=Math.min(Ot,Vt),Lr=Math.max(Ot,Vt),gr=Math.min(u.line,ct.line),vn=Math.min(e.lastLine(),Math.max(u.line,ct.line));gr<=vn;gr++){var an=At(y,gr).text,kr=dt(an,ar,Pt);ar==Lr?xt.push(new qt(nt(gr,kr),nt(gr,kr))):an.length>kr&&xt.push(new qt(nt(gr,kr),nt(gr,dt(an,Lr,Pt))))}xt.length||xt.push(new qt(u,u)),_t(y,Rn(e,G.ranges.slice(0,j).concat(xt),j),{origin:"*mouse",scroll:!1}),e.scrollIntoView(ct)}else{var tn=F,zr=dc(e,ct,l.unit),Nr=tn.anchor,Er;Lt(zr.anchor,Nr)>0?(Er=zr.head,Nr=qe(tn.from(),zr.anchor)):(Er=zr.anchor,Nr=Ce(tn.to(),zr.head));var dr=G.ranges.slice(0);dr[j]=ns(e,new qt(st(y,Nr),Er)),_t(y,Rn(e,dr,j),ht)}}var Le=f.wrapper.getBoundingClientRect(),Xe=0;function tt(ct){var xt=++Xe,Pt=Ji(e,ct,!0,l.unit=="rectangle");if(!!Pt)if(Lt(Pt,Ee)!=0){e.curOp.focus=Me(),De(Pt);var Ot=In(f,y);(Pt.line>=Ot.to||Pt.line<Ot.from)&&setTimeout(Hr(e,function(){Xe==xt&&tt(ct)}),150)}else{var Vt=ct.clientY<Le.top?-20:ct.clientY>Le.bottom?20:0;Vt&&setTimeout(Hr(e,function(){Xe==xt&&(f.scroller.scrollTop+=Vt,tt(ct))}),50)}}function at(ct){e.state.selectingText=!1,Xe=1/0,ct&&(it(ct),f.input.focus()),fe(f.wrapper.ownerDocument,"mousemove",ft),fe(f.wrapper.ownerDocument,"mouseup",mt),y.history.lastSelOrigin=null}var ft=Hr(e,function(ct){ct.buttons===0||!yn(ct)?at(ct):tt(ct)}),mt=Hr(e,at);e.state.selectingText=mt,N(f.wrapper.ownerDocument,"mousemove",ft),N(f.wrapper.ownerDocument,"mouseup",mt)}function ns(e,n){var u=n.anchor,l=n.head,f=At(e.doc,u.line);if(Lt(u,l)==0&&u.sticky==l.sticky)return n;var y=P(f);if(!y)return n;var F=H(y,u.ch,u.sticky),j=y[F];if(j.from!=u.ch&&j.to!=u.ch)return n;var G=F+(j.from==u.ch==(j.level!=1)?0:1);if(G==0||G==y.length)return n;var q;if(l.line!=u.line)q=(l.line-u.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var xe=H(y,l.ch,l.sticky),Ee=xe-F||(l.ch-u.ch)*(j.level==1?-1:1);xe==G-1||xe==G?q=Ee<0:q=Ee>0}var De=y[G+(q?-1:0)],Le=q==(De.level==1),Xe=Le?De.from:De.to,tt=Le?"after":"before";return u.ch==Xe&&u.sticky==tt?n:new qt(new nt(u.line,Xe,tt),l)}function Lo(e,n,u,l){var f,y;if(n.touches)f=n.touches[0].clientX,y=n.touches[0].clientY;else try{f=n.clientX,y=n.clientY}catch(De){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&it(n);var F=e.display,j=F.lineDiv.getBoundingClientRect();if(y>j.bottom||!ze(e,u))return Ct(n);y-=j.top-F.viewOffset;for(var G=0;G<e.display.gutterSpecs.length;++G){var q=F.gutters.childNodes[G];if(q&&q.getBoundingClientRect().right>=f){var xe=Wn(e.doc,y),Ee=e.display.gutterSpecs[G];return Oe(e,u,e,xe,Ee.className,n),Ct(n)}}}function is(e,n){return Lo(e,n,"gutterClick",!0)}function cl(e,n){li(e.display,n)||pc(e,n)||Pe(e,n,"contextmenu")||Z||e.display.input.onContextMenu(n)}function pc(e,n){return ze(e,"gutterContextMenu")?Lo(e,n,"gutterContextMenu",!1):!1}function dl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Xo(e)}var ro={toString:function(){return"CodeMirror.Init"}},os={},as={};function Vu(e){var n=e.optionHandlers;function u(l,f,y,F){e.defaults[l]=f,y&&(n[l]=F?function(j,G,q){q!=ro&&y(j,G,q)}:y)}e.defineOption=u,e.Init=ro,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Ga(l)},!0),u("indentUnit",2,Ga,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){Fi(l),Xo(l),_r(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var y=[],F=l.doc.first;l.doc.iter(function(G){for(var q=0;;){var xe=G.text.indexOf(f,q);if(xe==-1)break;q=xe+f.length,y.push(nt(F,xe))}F++});for(var j=y.length-1;j>=0;j--)Po(l.doc,f,y[j],nt(y[j].line,y[j].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,f,y){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),y!=ro&&l.refresh()}),u("specialCharPlaceholder",un,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",M?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,f){return l.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(l,f){return l.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(l,f){return l.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!X),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){dl(l),Eo(l)},!0),u("keyMap","default",function(l,f,y){var F=eo(f),j=y!=ro&&eo(y);j&&j.detach&&j.detach(l,F),F.attach&&F.attach(l,j||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Hu,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=Ha(f,l.options.lineNumbers),Eo(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?Bs(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return Zi(l)},!0),u("scrollbarStyle","native",function(l){Fn(l),Zi(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,f){l.display.gutterSpecs=Ha(l.options.gutters,f),Eo(l)},!0),u("firstLineNumber",1,Eo,!0),u("lineNumberFormatter",function(l){return l},Eo,!0),u("showCursorWhenSelecting",!1,Na,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(qo(l),l.display.input.blur()),l.display.input.readOnlyChanged(f)}),u("screenReaderLabel",null,function(l,f){f=f===""?null:f,l.display.input.screenReaderLabelChanged(f)}),u("disableInput",!1,function(l,f){f||l.display.input.reset()},!0),u("dragDrop",!0,Wu),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Na,!0),u("singleCursorHeightPerLine",!0,Na,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Fi,!0),u("addModeClass",!1,Fi,!0),u("pollInterval",100),u("undoDepth",200,function(l,f){return l.doc.history.undoDepth=f}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,Fi,!0),u("moveInputWithCursor",!0,function(l,f){f||l.display.input.resetPosition()}),u("tabindex",null,function(l,f){return l.display.input.getField().tabIndex=f||""}),u("autofocus",null),u("direction","ltr",function(l,f){return l.doc.setDirection(f)},!0),u("phrases",null)}function Wu(e,n,u){var l=u&&u!=ro;if(!n!=!l){var f=e.display.dragFunctions,y=n?N:fe;y(e.display.scroller,"dragstart",f.start),y(e.display.scroller,"dragenter",f.enter),y(e.display.scroller,"dragover",f.over),y(e.display.scroller,"dragleave",f.leave),y(e.display.scroller,"drop",f.drop)}}function Hu(e){e.options.lineWrapping?(je(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(te(e.display.wrapper,"CodeMirror-wrap"),Fa(e)),ou(e),_r(e),Xo(e),setTimeout(function(){return Zi(e)},100)}function hr(e,n){var u=this;if(!(this instanceof hr))return new hr(e,n);this.options=n=n?Qe(n):{},Qe(os,n,!1);var l=n.value;typeof l=="string"?l=new en(l,n.mode,null,n.lineSeparator,n.direction):n.mode&&(l.modeOption=n.mode),this.doc=l;var f=new hr.inputStyles[n.inputStyle](this),y=this.display=new ei(e,l,f,n);y.wrapper.CodeMirror=this,dl(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Fn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ut,keySeq:null,specialChars:null},n.autofocus&&!M&&y.input.focus(),b&&A<11&&setTimeout(function(){return u.display.input.reset(!0)},20),hc(this),tc(),Sr(this),this.curOp.forceUpdate=!0,vu(this,l),n.autofocus&&!M||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&uu(u)},20):qo(this);for(var F in as)as.hasOwnProperty(F)&&as[F](this,n[F],ro);Ys(this),n.finishInit&&n.finishInit(this);for(var j=0;j<No.length;++j)No[j](this);cn(this),g&&n.lineWrapping&&getComputedStyle(y.lineDiv).textRendering=="optimizelegibility"&&(y.lineDiv.style.textRendering="auto")}hr.defaults=os,hr.optionHandlers=as;function hc(e){var n=e.display;N(n.scroller,"mousedown",Hr(e,Uu)),b&&A<11?N(n.scroller,"dblclick",Hr(e,function(G){if(!Pe(e,G)){var q=Ji(e,G);if(!(!q||is(e,G)||li(e.display,G))){it(G);var xe=e.findWordAt(q);Kr(e.doc,xe.anchor,xe.head)}}})):N(n.scroller,"dblclick",function(G){return Pe(e,G)||it(G)}),N(n.scroller,"contextmenu",function(G){return cl(e,G)}),N(n.input.getField(),"contextmenu",function(G){n.scroller.contains(G.target)||cl(e,G)});var u,l={end:0};function f(){n.activeTouch&&(u=setTimeout(function(){return n.activeTouch=null},1e3),l=n.activeTouch,l.end=+new Date)}function y(G){if(G.touches.length!=1)return!1;var q=G.touches[0];return q.radiusX<=1&&q.radiusY<=1}function F(G,q){if(q.left==null)return!0;var xe=q.left-G.left,Ee=q.top-G.top;return xe*xe+Ee*Ee>20*20}N(n.scroller,"touchstart",function(G){if(!Pe(e,G)&&!y(G)&&!is(e,G)){n.input.ensurePolled(),clearTimeout(u);var q=+new Date;n.activeTouch={start:q,moved:!1,prev:q-l.end<=300?l:null},G.touches.length==1&&(n.activeTouch.left=G.touches[0].pageX,n.activeTouch.top=G.touches[0].pageY)}}),N(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),N(n.scroller,"touchend",function(G){var q=n.activeTouch;if(q&&!li(n,G)&&q.left!=null&&!q.moved&&new Date-q.start<300){var xe=e.coordsChar(n.activeTouch,"page"),Ee;!q.prev||F(q,q.prev)?Ee=new qt(xe,xe):!q.prev.prev||F(q,q.prev.prev)?Ee=e.findWordAt(xe):Ee=new qt(nt(xe.line,0),st(e.doc,nt(xe.line+1,0))),e.setSelection(Ee.anchor,Ee.head),e.focus(),it(G)}f()}),N(n.scroller,"touchcancel",f),N(n.scroller,"scroll",function(){n.scroller.clientHeight&&(mo(e,n.scroller.scrollTop),Pi(e,n.scroller.scrollLeft,!0),Oe(e,"scroll",e))}),N(n.scroller,"mousewheel",function(G){return Qs(e,G)}),N(n.scroller,"DOMMouseScroll",function(G){return Qs(e,G)}),N(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(G){Pe(e,G)||Yt(G)},over:function(G){Pe(e,G)||(il(e,G),Yt(G))},start:function(G){return Iu(e,G)},drop:Hr(e,ec),leave:function(G){Pe(e,G)||ol(e)}};var j=n.input.getField();N(j,"keyup",function(G){return lc.call(e,G)}),N(j,"keydown",Hr(e,sc)),N(j,"keypress",Hr(e,ul)),N(j,"focus",function(G){return uu(e,G)}),N(j,"blur",function(G){return qo(e,G)})}var No=[];hr.defineInitHook=function(e){return No.push(e)};function Do(e,n,u,l){var f=e.doc,y;u==null&&(u="add"),u=="smart"&&(f.mode.indent?y=Qr(e,n).state:u="prev");var F=e.options.tabSize,j=At(f,n),G=Je(j.text,null,F);j.stateAfter&&(j.stateAfter=null);var q=j.text.match(/^\s*/)[0],xe;if(!l&&!/\S/.test(j.text))xe=0,u="not";else if(u=="smart"&&(xe=f.mode.indent(y,j.text.slice(q.length),j.text),xe==_e||xe>150)){if(!l)return;u="prev"}u=="prev"?n>f.first?xe=Je(At(f,n-1).text,null,F):xe=0:u=="add"?xe=G+e.options.indentUnit:u=="subtract"?xe=G-e.options.indentUnit:typeof u=="number"&&(xe=G+u),xe=Math.max(0,xe);var Ee="",De=0;if(e.options.indentWithTabs)for(var Le=Math.floor(xe/F);Le;--Le)De+=F,Ee+=" ";if(De<xe&&(Ee+=Ft(xe-De)),Ee!=q)return Po(f,Ee,nt(n,0),nt(n,q.length),"+input"),j.stateAfter=null,!0;for(var Xe=0;Xe<f.sel.ranges.length;Xe++){var tt=f.sel.ranges[Xe];if(tt.head.line==n&&tt.head.ch<q.length){var at=nt(n,q.length);ri(f,Xe,new qt(at,at));break}}}var Ln=null;function pa(e){Ln=e}function pl(e,n,u,l,f){var y=e.doc;e.display.shift=!1,l||(l=y.sel);var F=+new Date-200,j=f=="paste"||e.state.pasteIncoming>F,G=$n(n),q=null;if(j&&l.ranges.length>1)if(Ln&&Ln.text.join(`
30
- `)==n){if(l.ranges.length%Ln.text.length==0){q=[];for(var xe=0;xe<Ln.text.length;xe++)q.push(y.splitLines(Ln.text[xe]))}}else G.length==l.ranges.length&&e.options.pasteLinesPerSelection&&(q=Wt(G,function(ft){return[ft]}));for(var Ee=e.curOp.updateInput,De=l.ranges.length-1;De>=0;De--){var Le=l.ranges[De],Xe=Le.from(),tt=Le.to();Le.empty()&&(u&&u>0?Xe=nt(Xe.line,Xe.ch-u):e.state.overwrite&&!j?tt=nt(tt.line,Math.min(At(y,tt.line).text.length,tt.ch+St(G).length)):j&&Ln&&Ln.lineWise&&Ln.text.join(`
31
- `)==G.join(`
32
- `)&&(Xe=tt=nt(Xe.line,0)));var at={from:Xe,to:tt,text:q?q[De%q.length]:G,origin:f||(j?"paste":e.state.cutIncoming>F?"cut":"+input")};To(e.doc,at),Fr(e,"inputRead",e,at)}n&&!j&&Gu(e,n),Jt(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ee),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function zu(e,n){var u=e.clipboardData&&e.clipboardData.getData("Text");if(u)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&on(n,function(){return pl(n,u,0,null,"paste")}),!0}function Gu(e,n){if(!(!e.options.electricChars||!e.options.smartIndent))for(var u=e.doc.sel,l=u.ranges.length-1;l>=0;l--){var f=u.ranges[l];if(!(f.head.ch>100||l&&u.ranges[l-1].head.line==f.head.line)){var y=e.getModeAt(f.head),F=!1;if(y.electricChars){for(var j=0;j<y.electricChars.length;j++)if(n.indexOf(y.electricChars.charAt(j))>-1){F=Do(e,f.head.line,"smart");break}}else y.electricInput&&y.electricInput.test(At(e.doc,f.head.line).text.slice(0,f.head.ch))&&(F=Do(e,f.head.line,"smart"));F&&Fr(e,"electricInput",e,f.head.line)}}}function $u(e){for(var n=[],u=[],l=0;l<e.doc.sel.ranges.length;l++){var f=e.doc.sel.ranges[l].head.line,y={anchor:nt(f,0),head:nt(f+1,0)};u.push(y),n.push(e.getRange(y.anchor,y.head))}return{text:n,ranges:u}}function Ku(e,n,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!n)}function hl(){var e=ge("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),n=ge("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?e.style.width="1000px":e.setAttribute("wrap","off"),k&&(e.style.border="1px solid black"),Ku(e),n}function Yu(e){var n=e.optionHandlers,u=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(l,f){var y=this.options,F=y[l];y[l]==f&&l!="mode"||(y[l]=f,n.hasOwnProperty(l)&&Hr(this,n[l])(this,f,F),Oe(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,f){this.state.keyMaps[f?"push":"unshift"](eo(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,y=0;y<f.length;++y)if(f[y]==l||f[y].name==l)return f.splice(y,1),!0},addOverlay:$r(function(l,f){var y=l.token?l:e.getMode(this.options,l);if(y.startState)throw new Error("Overlays may not be stateful.");Ut(this.state.overlays,{mode:y,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(F){return F.priority}),this.state.modeGen++,_r(this)}),removeOverlay:$r(function(l){for(var f=this.state.overlays,y=0;y<f.length;++y){var F=f[y].modeSpec;if(F==l||typeof l=="string"&&F.name==l){f.splice(y,1),this.state.modeGen++,_r(this);return}}}),indentLine:$r(function(l,f,y){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),Jn(this.doc,l)&&Do(this,l,f,y)}),indentSelection:$r(function(l){for(var f=this.doc.sel.ranges,y=-1,F=0;F<f.length;F++){var j=f[F];if(j.empty())j.head.line>y&&(Do(this,j.head.line,l,!0),y=j.head.line,F==this.doc.sel.primIndex&&Jt(this));else{var G=j.from(),q=j.to(),xe=Math.max(y,G.line);y=Math.min(this.lastLine(),q.line-(q.ch?0:1))+1;for(var Ee=xe;Ee<y;++Ee)Do(this,Ee,l);var De=this.doc.sel.ranges;G.ch==0&&f.length==De.length&&De[F].from().ch>0&&ri(this.doc,F,new qt(G,De[F].to()),lt)}}}),getTokenAt:function(l,f){return ws(this,l,f)},getLineTokens:function(l,f){return ws(this,nt(l),f,!0)},getTokenTypeAt:function(l){l=st(this.doc,l);var f=Rl(this,At(this.doc,l.line)),y=0,F=(f.length-1)/2,j=l.ch,G;if(j==0)G=f[2];else for(;;){var q=y+F>>1;if((q?f[q*2-1]:0)>=j)F=q;else if(f[q*2+1]<j)y=q+1;else{G=f[q*2+2];break}}var xe=G?G.indexOf("overlay "):-1;return xe<0?G:xe==0?null:G.slice(0,xe-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?e.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var y=[];if(!u.hasOwnProperty(f))return y;var F=u[f],j=this.getModeAt(l);if(typeof j[f]=="string")F[j[f]]&&y.push(F[j[f]]);else if(j[f])for(var G=0;G<j[f].length;G++){var q=F[j[f][G]];q&&y.push(q)}else j.helperType&&F[j.helperType]?y.push(F[j.helperType]):F[j.name]&&y.push(F[j.name]);for(var xe=0;xe<F._global.length;xe++){var Ee=F._global[xe];Ee.pred(j,this)&&pt(y,Ee.val)==-1&&y.push(Ee.val)}return y},getStateAfter:function(l,f){var y=this.doc;return l=ot(y,l==null?y.first+y.size-1:l),Qr(this,l+1,f).state},cursorCoords:function(l,f){var y,F=this.doc.sel.primary();return l==null?y=F.head:typeof l=="object"?y=st(this.doc,l):y=l?F.from():F.to(),wn(this,y,f||"page")},charCoords:function(l,f){return Ls(this,st(this.doc,l),f||"page")},coordsChar:function(l,f){return l=Ki(this,l,f||"page"),La(this,l.left,l.top)},lineAtHeight:function(l,f){return l=Ki(this,{top:l,left:0},f||"page").top,Wn(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,y){var F=!1,j;if(typeof l=="number"){var G=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>G&&(l=G,F=!0),j=At(this.doc,l)}else j=l;return Oi(this,j,{top:0,left:0},f||"page",y||F).top+(F?this.doc.height-Xn(j):0)},defaultTextHeight:function(){return ho(this.display)},defaultCharWidth:function(){return Yi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,y,F,j){var G=this.display;l=wn(this,st(this.doc,l));var q=l.bottom,xe=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),G.sizer.appendChild(f),F=="over")q=l.top;else if(F=="above"||F=="near"){var Ee=Math.max(G.wrapper.clientHeight,this.doc.height),De=Math.max(G.sizer.clientWidth,G.lineSpace.clientWidth);(F=="above"||l.bottom+f.offsetHeight>Ee)&&l.top>f.offsetHeight?q=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=Ee&&(q=l.bottom),xe+f.offsetWidth>De&&(xe=De-f.offsetWidth)}f.style.top=q+"px",f.style.left=f.style.right="",j=="right"?(xe=G.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(j=="left"?xe=0:j=="middle"&&(xe=(G.sizer.clientWidth-f.offsetWidth)/2),f.style.left=xe+"px"),y&&fu(this,{left:xe,top:q,right:xe+f.offsetWidth,bottom:q+f.offsetHeight})},triggerOnKeyDown:$r(sc),triggerOnKeyPress:$r(ul),triggerOnKeyUp:lc,triggerOnMouseDown:$r(Uu),execCommand:function(l){if(Mn.hasOwnProperty(l))return Mn[l].call(null,this)},triggerElectric:$r(function(l){Gu(this,l)}),findPosH:function(l,f,y,F){var j=1;f<0&&(j=-1,f=-f);for(var G=st(this.doc,l),q=0;q<f&&(G=vl(this.doc,G,j,y,F),!G.hitSide);++q);return G},moveH:$r(function(l,f){var y=this;this.extendSelectionsBy(function(F){return y.display.shift||y.doc.extend||F.empty()?vl(y.doc,F.head,l,f,y.options.rtlMoveVisually):l<0?F.from():F.to()},yt)}),deleteH:$r(function(l,f){var y=this.doc.sel,F=this.doc;y.somethingSelected()?F.replaceSelection("",null,"+delete"):Ro(this,function(j){var G=vl(F,j.head,l,f,!1);return l<0?{from:G,to:j.head}:{from:j.head,to:G}})}),findPosV:function(l,f,y,F){var j=1,G=F;f<0&&(j=-1,f=-f);for(var q=st(this.doc,l),xe=0;xe<f;++xe){var Ee=wn(this,q,"div");if(G==null?G=Ee.left:Ee.left=G,q=Ju(this,Ee,j,y),q.hitSide)break}return q},moveV:$r(function(l,f){var y=this,F=this.doc,j=[],G=!this.display.shift&&!F.extend&&F.sel.somethingSelected();if(F.extendSelectionsBy(function(xe){if(G)return l<0?xe.from():xe.to();var Ee=wn(y,xe.head,"div");xe.goalColumn!=null&&(Ee.left=xe.goalColumn),j.push(Ee.left);var De=Ju(y,Ee,l,f);return f=="page"&&xe==F.sel.primary()&&En(y,Ls(y,De,"div").top-Ee.top),De},yt),j.length)for(var q=0;q<F.sel.ranges.length;q++)F.sel.ranges[q].goalColumn=j[q]}),findWordAt:function(l){var f=this.doc,y=At(f,l.line).text,F=l.ch,j=l.ch;if(y){var G=this.getHelper(l,"wordChars");(l.sticky=="before"||j==y.length)&&F?--F:++j;for(var q=y.charAt(F),xe=$(q,G)?function(Ee){return $(Ee,G)}:/\s/.test(q)?function(Ee){return/\s/.test(Ee)}:function(Ee){return!/\s/.test(Ee)&&!$(Ee)};F>0&&xe(y.charAt(F-1));)--F;for(;j<y.length&&xe(y.charAt(j));)++j}return new qt(nt(l.line,F),nt(l.line,j))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?je(this.display.cursorDiv,"CodeMirror-overwrite"):te(this.display.cursorDiv,"CodeMirror-overwrite"),Oe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Me()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:$r(function(l,f){fi(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-qr(this)-this.display.barHeight,width:l.scrollWidth-qr(this)-this.display.barWidth,clientHeight:ks(this),clientWidth:Gi(this)}},scrollIntoView:$r(function(l,f){l==null?(l={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof l=="number"?l={from:nt(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=f||0,l.from.line!=null?cu(this,l):Ws(this,l.from,l.to,l.margin)}),setSize:$r(function(l,f){var y=this,F=function(G){return typeof G=="number"||/^\d+$/.test(String(G))?G+"px":G};l!=null&&(this.display.wrapper.style.width=F(l)),f!=null&&(this.display.wrapper.style.height=F(f)),this.options.lineWrapping&&Ms(this);var j=this.display.viewFrom;this.doc.iter(j,this.display.viewTo,function(G){if(G.widgets){for(var q=0;q<G.widgets.length;q++)if(G.widgets[q].noHScroll){Xi(y,j,"widget");break}}++j}),this.curOp.forceUpdate=!0,Oe(this,"refresh",this)}),operation:function(l){return on(this,l)},startOperation:function(){return Sr(this)},endOperation:function(){return cn(this)},refresh:$r(function(){var l=this.display.cachedTextHeight;_r(this),this.curOp.forceUpdate=!0,Xo(this),fi(this,this.doc.scrollLeft,this.doc.scrollTop),Wa(this.display),(l==null||Math.abs(l-ho(this.display))>.5||this.options.lineWrapping)&&ou(this),Oe(this,"refresh",this)}),swapDoc:$r(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),vu(this,l),Xo(this),this.display.input.reset(),fi(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Fr(this,"swapDoc",this,f),f}),phrase:function(l){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,l)?f[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},He(e),e.registerHelper=function(l,f,y){u.hasOwnProperty(l)||(u[l]=e[l]={_global:[]}),u[l][f]=y},e.registerGlobalHelper=function(l,f,y,F){e.registerHelper(l,f,F),u[l]._global.push({pred:y,val:F})}}function vl(e,n,u,l,f){var y=n,F=u,j=At(e,n.line),G=f&&e.direction=="rtl"?-u:u;function q(){var mt=n.line+G;return mt<e.first||mt>=e.first+e.size?!1:(n=new nt(mt,n.ch,n.sticky),j=At(e,mt))}function xe(mt){var ct;if(l=="codepoint"){var xt=j.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(xt))ct=null;else{var Pt=u>0?xt>=55296&&xt<56320:xt>=56320&&xt<57343;ct=new nt(n.line,Math.max(0,Math.min(j.text.length,n.ch+u*(Pt?2:1))),-u)}}else f?ct=nc(e.cm,j,n,u):ct=ll(j,n,u);if(ct==null)if(!mt&&q())n=Lu(f,e.cm,j,n.line,G);else return!1;else n=ct;return!0}if(l=="char"||l=="codepoint")xe();else if(l=="column")xe(!0);else if(l=="word"||l=="group")for(var Ee=null,De=l=="group",Le=e.cm&&e.cm.getHelper(n,"wordChars"),Xe=!0;!(u<0&&!xe(!Xe));Xe=!1){var tt=j.text.charAt(n.ch)||`
33
- `,at=$(tt,Le)?"w":De&&tt==`
34
- `?"n":!De||/\s/.test(tt)?null:"p";if(De&&!Xe&&!at&&(at="s"),Ee&&Ee!=at){u<0&&(u=1,xe(),n.sticky="after");break}if(at&&(Ee=at),u>0&&!xe(!Xe))break}var ft=tl(e,n,y,F,!0);return si(y,ft)&&(ft.hitSide=!0),ft}function Ju(e,n,u,l){var f=e.doc,y=n.left,F;if(l=="page"){var j=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),G=Math.max(j-.5*ho(e.display),3);F=(u>0?n.bottom:n.top)+u*G}else l=="line"&&(F=u>0?n.bottom+3:n.top-3);for(var q;q=La(e,y,F),!!q.outside;){if(u<0?F<=0:F>=f.height){q.hitSide=!0;break}F+=u*5}return q}var nr=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ut,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};nr.prototype.init=function(e){var n=this,u=this,l=u.cm,f=u.div=e.lineDiv;f.contentEditable=!0,Ku(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function y(j){for(var G=j.target;G;G=G.parentNode){if(G==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(G.className))break}return!1}N(f,"paste",function(j){!y(j)||Pe(l,j)||zu(j,l)||A<=11&&setTimeout(Hr(l,function(){return n.updateFromDOM()}),20)}),N(f,"compositionstart",function(j){n.composing={data:j.data,done:!1}}),N(f,"compositionupdate",function(j){n.composing||(n.composing={data:j.data,done:!1})}),N(f,"compositionend",function(j){n.composing&&(j.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),N(f,"touchstart",function(){return u.forceCompositionEnd()}),N(f,"input",function(){n.composing||n.readFromDOMSoon()});function F(j){if(!(!y(j)||Pe(l,j))){if(l.somethingSelected())pa({lineWise:!1,text:l.getSelections()}),j.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var G=$u(l);pa({lineWise:!0,text:G.text}),j.type=="cut"&&l.operation(function(){l.setSelections(G.ranges,0,lt),l.replaceSelection("",null,"cut")})}else return;if(j.clipboardData){j.clipboardData.clearData();var q=Ln.text.join(`
35
- `);if(j.clipboardData.setData("Text",q),j.clipboardData.getData("Text")==q){j.preventDefault();return}}var xe=hl(),Ee=xe.firstChild;l.display.lineSpace.insertBefore(xe,l.display.lineSpace.firstChild),Ee.value=Ln.text.join(`
36
- `);var De=Me();Re(Ee),setTimeout(function(){l.display.lineSpace.removeChild(xe),De.focus(),De==f&&u.showPrimarySelection()},50)}}N(f,"copy",F),N(f,"cut",F)},nr.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},nr.prototype.prepareSelection=function(){var e=au(this.cm,!1);return e.focus=Me()==this.div,e},nr.prototype.showSelection=function(e,n){!e||!this.cm.display.view.length||((e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e))},nr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},nr.prototype.showPrimarySelection=function(){var e=this.getSelection(),n=this.cm,u=n.doc.sel.primary(),l=u.from(),f=u.to();if(n.display.viewTo==n.display.viewFrom||l.line>=n.display.viewTo||f.line<n.display.viewFrom){e.removeAllRanges();return}var y=ss(n,e.anchorNode,e.anchorOffset),F=ss(n,e.focusNode,e.focusOffset);if(!(y&&!y.bad&&F&&!F.bad&&Lt(qe(y,F),l)==0&&Lt(Ce(y,F),f)==0)){var j=n.display.view,G=l.line>=n.display.viewFrom&&ha(n,l)||{node:j[0].measure.map[2],offset:0},q=f.line<n.display.viewTo&&ha(n,f);if(!q){var xe=j[j.length-1].measure,Ee=xe.maps?xe.maps[xe.maps.length-1]:xe.map;q={node:Ee[Ee.length-1],offset:Ee[Ee.length-2]-Ee[Ee.length-3]}}if(!G||!q){e.removeAllRanges();return}var De=e.rangeCount&&e.getRangeAt(0),Le;try{Le=ue(G.node,G.offset,q.offset,q.node)}catch(Xe){}Le&&(!c&&n.state.focused?(e.collapse(G.node,G.offset),Le.collapsed||(e.removeAllRanges(),e.addRange(Le))):(e.removeAllRanges(),e.addRange(Le)),De&&e.anchorNode==null?e.addRange(De):c&&this.startGracePeriod()),this.rememberSelection()}},nr.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},nr.prototype.showMultipleSelections=function(e){me(this.cm.display.cursorDiv,e.cursors),me(this.cm.display.selectionDiv,e.selection)},nr.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},nr.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var n=e.getRangeAt(0).commonAncestorContainer;return ie(this.div,n)},nr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Me()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},nr.prototype.blur=function(){this.div.blur()},nr.prototype.getField=function(){return this.div},nr.prototype.supportsTouch=function(){return!0},nr.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():on(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function n(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,n))}this.polling.set(this.cm.options.pollInterval,n)},nr.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},nr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),n=this.cm;if(Q&&D&&this.cm.display.gutterSpecs.length&&Xu(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=ss(n,e.anchorNode,e.anchorOffset),l=ss(n,e.focusNode,e.focusOffset);u&&l&&on(n,function(){_t(n.doc,ci(u,l),lt),(u.bad||l.bad)&&(n.curOp.selectionChanged=!0)})}}},nr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,n=e.display,u=e.doc.sel.primary(),l=u.from(),f=u.to();if(l.ch==0&&l.line>e.firstLine()&&(l=nt(l.line-1,At(e.doc,l.line-1).length)),f.ch==At(e.doc,f.line).text.length&&f.line<e.lastLine()&&(f=nt(f.line+1,0)),l.line<n.viewFrom||f.line>n.viewTo-1)return!1;var y,F,j;l.line==n.viewFrom||(y=Sn(e,l.line))==0?(F=er(n.view[0].line),j=n.view[0].node):(F=er(n.view[y].line),j=n.view[y-1].node.nextSibling);var G=Sn(e,f.line),q,xe;if(G==n.view.length-1?(q=n.viewTo-1,xe=n.lineDiv.lastChild):(q=er(n.view[G+1].line)-1,xe=n.view[G+1].node.previousSibling),!j)return!1;for(var Ee=e.doc.splitLines(Qu(e,j,xe,F,q)),De=ai(e.doc,nt(F,0),nt(q,At(e.doc,q).text.length));Ee.length>1&&De.length>1;)if(St(Ee)==St(De))Ee.pop(),De.pop(),q--;else if(Ee[0]==De[0])Ee.shift(),De.shift(),F++;else break;for(var Le=0,Xe=0,tt=Ee[0],at=De[0],ft=Math.min(tt.length,at.length);Le<ft&&tt.charCodeAt(Le)==at.charCodeAt(Le);)++Le;for(var mt=St(Ee),ct=St(De),xt=Math.min(mt.length-(Ee.length==1?Le:0),ct.length-(De.length==1?Le:0));Xe<xt&&mt.charCodeAt(mt.length-Xe-1)==ct.charCodeAt(ct.length-Xe-1);)++Xe;if(Ee.length==1&&De.length==1&&F==l.line)for(;Le&&Le>l.ch&&mt.charCodeAt(mt.length-Xe-1)==ct.charCodeAt(ct.length-Xe-1);)Le--,Xe++;Ee[Ee.length-1]=mt.slice(0,mt.length-Xe).replace(/^\u200b+/,""),Ee[0]=Ee[0].slice(Le).replace(/\u200b+$/,"");var Pt=nt(F,Le),Ot=nt(q,De.length?St(De).length-Xe:0);if(Ee.length>1||Ee[0]||Lt(Pt,Ot))return Po(e.doc,Ee,Pt,Ot,"+input"),!0},nr.prototype.ensurePolled=function(){this.forceCompositionEnd()},nr.prototype.reset=function(){this.forceCompositionEnd()},nr.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},nr.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},nr.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&on(this.cm,function(){return _r(e.cm)})},nr.prototype.setUneditable=function(e){e.contentEditable="false"},nr.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Hr(this.cm,pl)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},nr.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},nr.prototype.onContextMenu=function(){},nr.prototype.resetPosition=function(){},nr.prototype.needsContentAttribute=!0;function ha(e,n){var u=Jo(e,n.line);if(!u||u.hidden)return null;var l=At(e.doc,n.line),f=Ql(u,l,n.line),y=P(l,e.doc.direction),F="left";if(y){var j=H(y,n.ch);F=j%2?"right":"left"}var G=ql(f.map,n.ch,F);return G.offset=G.collapse=="right"?G.end:G.start,G}function Xu(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function no(e,n){return n&&(e.bad=!0),e}function Qu(e,n,u,l,f){var y="",F=!1,j=e.doc.lineSeparator(),G=!1;function q(Le){return function(Xe){return Xe.id==Le}}function xe(){F&&(y+=j,G&&(y+=j),F=G=!1)}function Ee(Le){Le&&(xe(),y+=Le)}function De(Le){if(Le.nodeType==1){var Xe=Le.getAttribute("cm-text");if(Xe){Ee(Xe);return}var tt=Le.getAttribute("cm-marker"),at;if(tt){var ft=e.findMarks(nt(l,0),nt(f+1,0),q(+tt));ft.length&&(at=ft[0].find(0))&&Ee(ai(e.doc,at.from,at.to).join(j));return}if(Le.getAttribute("contenteditable")=="false")return;var mt=/^(pre|div|p|li|table|br)$/i.test(Le.nodeName);if(!/^br$/i.test(Le.nodeName)&&Le.textContent.length==0)return;mt&&xe();for(var ct=0;ct<Le.childNodes.length;ct++)De(Le.childNodes[ct]);/^(pre|p)$/i.test(Le.nodeName)&&(G=!0),mt&&(F=!0)}else Le.nodeType==3&&Ee(Le.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;De(n),n!=u;)n=n.nextSibling,G=!1;return y}function ss(e,n,u){var l;if(n==e.display.lineDiv){if(l=e.display.lineDiv.childNodes[u],!l)return no(e.clipPos(nt(e.display.viewTo-1)),!0);n=null,u=0}else for(l=n;;l=l.parentNode){if(!l||l==e.display.lineDiv)return null;if(l.parentNode&&l.parentNode==e.display.lineDiv)break}for(var f=0;f<e.display.view.length;f++){var y=e.display.view[f];if(y.node==l)return vc(y,n,u)}}function vc(e,n,u){var l=e.text.firstChild,f=!1;if(!n||!ie(l,n))return no(nt(er(e.line),0),!0);if(n==l&&(f=!0,n=l.childNodes[u],u=0,!n)){var y=e.rest?St(e.rest):e.line;return no(nt(er(y),y.text.length),f)}var F=n.nodeType==3?n:null,j=n;for(!F&&n.childNodes.length==1&&n.firstChild.nodeType==3&&(F=n.firstChild,u&&(u=F.nodeValue.length));j.parentNode!=l;)j=j.parentNode;var G=e.measure,q=G.maps;function xe(at,ft,mt){for(var ct=-1;ct<(q?q.length:0);ct++)for(var xt=ct<0?G.map:q[ct],Pt=0;Pt<xt.length;Pt+=3){var Ot=xt[Pt+2];if(Ot==at||Ot==ft){var Vt=er(ct<0?e.line:e.rest[ct]),ar=xt[Pt]+mt;return(mt<0||Ot!=at)&&(ar=xt[Pt+(mt?1:0)]),nt(Vt,ar)}}}var Ee=xe(F,j,u);if(Ee)return no(Ee,f);for(var De=j.nextSibling,Le=F?F.nodeValue.length-u:0;De;De=De.nextSibling){if(Ee=xe(De,De.firstChild,0),Ee)return no(nt(Ee.line,Ee.ch-Le),f);Le+=De.textContent.length}for(var Xe=j.previousSibling,tt=u;Xe;Xe=Xe.previousSibling){if(Ee=xe(Xe,Xe.firstChild,-1),Ee)return no(nt(Ee.line,Ee.ch+tt),f);tt+=Xe.textContent.length}}var Ar=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ut,this.hasSelection=!1,this.composing=null};Ar.prototype.init=function(e){var n=this,u=this,l=this.cm;this.createField(e);var f=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),k&&(f.style.width="0px"),N(f,"input",function(){b&&A>=9&&n.hasSelection&&(n.hasSelection=null),u.poll()}),N(f,"paste",function(F){Pe(l,F)||zu(F,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function y(F){if(!Pe(l,F)){if(l.somethingSelected())pa({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var j=$u(l);pa({lineWise:!0,text:j.text}),F.type=="cut"?l.setSelections(j.ranges,null,lt):(u.prevInput="",f.value=j.text.join(`
37
- `),Re(f))}else return;F.type=="cut"&&(l.state.cutIncoming=+new Date)}}N(f,"cut",y),N(f,"copy",y),N(e.scroller,"paste",function(F){if(!(li(e,F)||Pe(l,F))){if(!f.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var j=new Event("paste");j.clipboardData=F.clipboardData,f.dispatchEvent(j)}}),N(e.lineSpace,"selectstart",function(F){li(e,F)||it(F)}),N(f,"compositionstart",function(){var F=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:F,range:l.markText(F,l.getCursor("to"),{className:"CodeMirror-composing"})}}),N(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Ar.prototype.createField=function(e){this.wrapper=hl(),this.textarea=this.wrapper.firstChild},Ar.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ar.prototype.prepareSelection=function(){var e=this.cm,n=e.display,u=e.doc,l=au(e);if(e.options.moveInputWithCursor){var f=wn(e,u.sel.primary().head,"div"),y=n.wrapper.getBoundingClientRect(),F=n.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,f.top+F.top-y.top)),l.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,f.left+F.left-y.left))}return l},Ar.prototype.showSelection=function(e){var n=this.cm,u=n.display;me(u.cursorDiv,e.cursors),me(u.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ar.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var n=this.cm;if(n.somethingSelected()){this.prevInput="";var u=n.getSelection();this.textarea.value=u,n.state.focused&&Re(this.textarea),b&&A>=9&&(this.hasSelection=u)}else e||(this.prevInput=this.textarea.value="",b&&A>=9&&(this.hasSelection=null))}},Ar.prototype.getField=function(){return this.textarea},Ar.prototype.supportsTouch=function(){return!1},Ar.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!M||Me()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ar.prototype.blur=function(){this.textarea.blur()},Ar.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ar.prototype.receivedFocus=function(){this.slowPoll()},Ar.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ar.prototype.fastPoll=function(){var e=!1,n=this;n.pollingFast=!0;function u(){var l=n.poll();!l&&!e?(e=!0,n.polling.set(60,u)):(n.pollingFast=!1,n.slowPoll())}n.polling.set(20,u)},Ar.prototype.poll=function(){var e=this,n=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||!n.state.focused||Tn(u)&&!l&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var f=u.value;if(f==l&&!n.somethingSelected())return!1;if(b&&A>=9&&this.hasSelection===f||O&&/[\uf700-\uf7ff]/.test(f))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var y=f.charCodeAt(0);if(y==8203&&!l&&(l="\u200B"),y==8666)return this.reset(),this.cm.execCommand("undo")}for(var F=0,j=Math.min(l.length,f.length);F<j&&l.charCodeAt(F)==f.charCodeAt(F);)++F;return on(n,function(){pl(n,f.slice(F),l.length-F,null,e.composing?"*compose":null),f.length>1e3||f.indexOf(`
38
- `)>-1?u.value=e.prevInput="":e.prevInput=f,e.composing&&(e.composing.range.clear(),e.composing.range=n.markText(e.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ar.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ar.prototype.onKeyPress=function(){b&&A>=9&&(this.hasSelection=null),this.fastPoll()},Ar.prototype.onContextMenu=function(e){var n=this,u=n.cm,l=u.display,f=n.textarea;n.contextMenuPending&&n.contextMenuPending();var y=Ji(u,e),F=l.scroller.scrollTop;if(!y||B)return;var j=u.options.resetSelectionOnContextMenu;j&&u.doc.sel.contains(y)==-1&&Hr(u,_t)(u.doc,ci(y),lt);var G=f.style.cssText,q=n.wrapper.style.cssText,xe=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
21
+ `,n);f==-1&&(f=e.length);var y=e.slice(n,e.charAt(f-1)=="\r"?f-1:f),F=y.indexOf("\r");F!=-1?(u.push(y.slice(0,F)),n+=F+1):(u.push(y),n=f+1)}return u}:function(e){return e.split(/\r\n?|\n/)},On=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(n){return!1}}:function(e){var n;try{n=e.ownerDocument.selection.createRange()}catch(u){}return!n||n.parentElement()!=e?!1:n.compareEndPoints("StartToEnd",n)!=0},$n=function(){var e=ve("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ln=null;function Ca(e){if(ln!=null)return ln;var n=ye(e,ve("span","x")),u=n.getBoundingClientRect(),l=le(n,0,1).getBoundingClientRect();return ln=Math.abs(u.left-l.left)>1}var Wo={},yn={};function Kn(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Wo[e]=n}function bi(e,n){yn[e]=n}function ji(e){if(typeof e=="string"&&yn.hasOwnProperty(e))e=yn[e];else if(e&&typeof e.name=="string"&&yn.hasOwnProperty(e.name)){var n=yn[e.name];typeof n=="string"&&(n={name:n}),e=wt(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ji("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ji("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function jn(e,n){n=ji(n);var u=Wo[n.name];if(!u)return jn(e,"text/plain");var l=u(e,n);if(wi.hasOwnProperty(n.name)){var f=wi[n.name];for(var y in f)!f.hasOwnProperty(y)||(l.hasOwnProperty(y)&&(l["_"+y]=l[y]),l[y]=f[y])}if(l.name=n.name,n.helperType&&(l.helperType=n.helperType),n.modeProps)for(var F in n.modeProps)l[F]=n.modeProps[F];return l}var wi={};function Oa(e,n){var u=wi.hasOwnProperty(e)?wi[e]:wi[e]={};Qe(n,u)}function Tn(e,n){if(n===!0)return n;if(e.copyState)return e.copyState(n);var u={};for(var l in n){var f=n[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function mn(e,n){for(var u;e.innerMode&&(u=e.innerMode(n),!(!u||u.mode==e));)n=u.state,e=u.mode;return u||{mode:e,state:n}}function Si(e,n,u){return e.startState?e.startState(n,u):!0}var xr=function(e,n,u){this.pos=this.start=0,this.string=e,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};xr.prototype.eol=function(){return this.pos>=this.string.length},xr.prototype.sol=function(){return this.pos==this.lineStart},xr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},xr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},xr.prototype.eat=function(e){var n=this.string.charAt(this.pos),u;if(typeof e=="string"?u=n==e:u=n&&(e.test?e.test(n):e(n)),u)return++this.pos,n},xr.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},xr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},xr.prototype.skipToEnd=function(){this.pos=this.string.length},xr.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},xr.prototype.backUp=function(e){this.pos-=e},xr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},xr.prototype.indentation=function(){return Xe(this.string,null,this.tabSize)-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},xr.prototype.match=function(e,n,u){if(typeof e=="string"){var l=function(F){return u?F.toLowerCase():F},f=this.string.substr(this.pos,e.length);if(l(f)==l(e))return n!==!1&&(this.pos+=e.length),!0}else{var y=this.string.slice(this.pos).match(e);return y&&y.index>0?null:(y&&n!==!1&&(this.pos+=y[0].length),y)}},xr.prototype.current=function(){return this.string.slice(this.start,this.pos)},xr.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},xr.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},xr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function At(e,n){if(n-=e.first,n<0||n>=e.size)throw new Error("There is no line "+(n+e.first)+" in the document.");for(var u=e;!u.lines;)for(var l=0;;++l){var f=u.children[l],y=f.chunkSize();if(n<y){u=f;break}n-=y}return u.lines[n]}function ai(e,n,u){var l=[],f=n.line;return e.iter(n.line,u.line+1,function(y){var F=y.text;f==u.line&&(F=F.slice(0,u.ch)),f==n.line&&(F=F.slice(n.ch)),l.push(F),++f}),l}function Ai(e,n,u){var l=[];return e.iter(n,u,function(f){l.push(f.text)}),l}function xn(e,n){var u=n-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function er(e){if(e.parent==null)return null;for(var n=e.parent,u=pt(n.lines,e),l=n.parent;l;n=l,l=l.parent)for(var f=0;l.children[f]!=n;++f)u+=l.children[f].chunkSize();return u+n.first}function Vn(e,n){var u=e.first;e:do{for(var l=0;l<e.children.length;++l){var f=e.children[l],y=f.height;if(n<y){e=f;continue e}n-=y,u+=f.chunkSize()}return u}while(!e.lines);for(var F=0;F<e.lines.length;++F){var U=e.lines[F],z=U.height;if(n<z)break;n-=z}return u+F}function Yn(e,n){return n>=e.first&&n<e.first+e.size}function lo(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function nt(e,n,u){if(u===void 0&&(u=null),!(this instanceof nt))return new nt(e,n,u);this.line=e,this.ch=n,this.sticky=u}function Lt(e,n){return e.line-n.line||e.ch-n.ch}function si(e,n){return e.sticky==n.sticky&&Lt(e,n)==0}function se(e){return nt(e.line,e.ch)}function Ee(e,n){return Lt(e,n)<0?n:e}function _e(e,n){return Lt(e,n)<0?e:n}function ot(e,n){return Math.max(e.first,Math.min(n,e.first+e.size-1))}function st(e,n){if(n.line<e.first)return nt(e.first,0);var u=e.first+e.size-1;return n.line>u?nt(u,At(e,u).text.length):$t(n,At(e,n.line).text.length)}function $t(e,n){var u=e.ch;return u==null||u>n?nt(e.line,n):u<0?nt(e.line,0):e}function Zt(e,n){for(var u=[],l=0;l<n.length;l++)u[l]=st(e,n[l]);return u}var Tr=function(e,n){this.state=e,this.lookAhead=n},Pr=function(e,n,u,l){this.state=n,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Pr.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},Pr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Pr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Pr.fromSaved=function(e,n,u){return n instanceof Tr?new Pr(e,Tn(e.mode,n.state),u,n.lookAhead):new Pr(e,Tn(e.mode,n),u)},Pr.prototype.save=function(e){var n=e!==!1?Tn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Tr(n,this.maxLookAhead):n};function tr(e,n,u,l){var f=[e.state.modeGen],y={};Dl(e,n.text,e.doc.mode,u,function(Z,xe){return f.push(Z,xe)},y,l);for(var F=u.state,U=function(Z){u.baseTokens=f;var xe=e.state.overlays[Z],Ce=1,Ne=0;u.state=!0,Dl(e,n.text,xe.mode,u,function(Re,Ye){for(var et=Ce;Ne<Re;){var at=f[Ce];at>Re&&f.splice(Ce,1,Re,f[Ce+1],at),Ce+=2,Ne=Math.min(Re,at)}if(!!Ye)if(xe.opaque)f.splice(et,Ce-et,Re,"overlay "+Ye),Ce=et+2;else for(;et<Ce;et+=2){var ft=f[et+1];f[et+1]=(ft?ft+" ":"")+"overlay "+Ye}},y),u.state=F,u.baseTokens=null,u.baseTokenPos=1},z=0;z<e.state.overlays.length;++z)U(z);return{styles:f,classes:y.bgClass||y.textClass?y:null}}function Rl(e,n,u){if(!n.styles||n.styles[0]!=e.state.modeGen){var l=Qr(e,er(n)),f=n.text.length>e.options.maxHighlightLength&&Tn(e.doc.mode,l.state),y=tr(e,n,l);f&&(l.state=f),n.stateAfter=l.save(!f),n.styles=y.styles,y.classes?n.styleClasses=y.classes:n.styleClasses&&(n.styleClasses=null),u===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return n.styles}function Qr(e,n,u){var l=e.doc,f=e.display;if(!l.mode.startState)return new Pr(l,!0,n);var y=bf(e,n,u),F=y>l.first&&At(l,y-1).stateAfter,U=F?Pr.fromSaved(l,F,y):new Pr(l,Si(l.mode),y);return l.iter(y,n,function(z){xs(e,z.text,U);var Z=U.line;z.stateAfter=Z==n-1||Z%5==0||Z>=f.viewFrom&&Z<f.viewTo?U.save():null,U.nextLine()}),u&&(l.modeFrontier=U.line),U}function xs(e,n,u,l){var f=e.doc.mode,y=new xr(n,e.options.tabSize,u);for(y.start=y.pos=l||0,n==""&&Ta(f,u.state);!y.eol();)bs(f,y,u.state),y.start=y.pos}function Ta(e,n){if(e.blankLine)return e.blankLine(n);if(!!e.innerMode){var u=mn(e,n);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function bs(e,n,u,l){for(var f=0;f<10;f++){l&&(l[0]=mn(e,u).mode);var y=e.token(n,u);if(n.pos>n.start)return y}throw new Error("Mode "+e.name+" failed to advance stream.")}var ws=function(e,n,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=u};function Ss(e,n,u,l){var f=e.doc,y=f.mode,F;n=st(f,n);var U=At(f,n.line),z=Qr(e,n.line,u),Z=new xr(U.text,e.options.tabSize,z),xe;for(l&&(xe=[]);(l||Z.pos<n.ch)&&!Z.eol();)Z.start=Z.pos,F=bs(y,Z,z.state),l&&xe.push(new ws(Z,F,Tn(f.mode,z.state)));return l?xe:new ws(Z,F,z.state)}function Ll(e,n){if(e)for(;;){var u=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;e=e.slice(0,u.index)+e.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";n[l]==null?n[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(n[l])||(n[l]+=" "+u[2])}return e}function Dl(e,n,u,l,f,y,F){var U=u.flattenSpans;U==null&&(U=e.options.flattenSpans);var z=0,Z=null,xe=new xr(n,e.options.tabSize,l),Ce,Ne=e.options.addModeClass&&[null];for(n==""&&Ll(Ta(u,l.state),y);!xe.eol();){if(xe.pos>e.options.maxHighlightLength?(U=!1,F&&xs(e,n,l,xe.pos),xe.pos=n.length,Ce=null):Ce=Ll(bs(u,xe,l.state,Ne),y),Ne){var Re=Ne[0].name;Re&&(Ce="m-"+(Ce?Re+" "+Ce:Re))}if(!U||Z!=Ce){for(;z<xe.start;)z=Math.min(xe.start,z+5e3),f(z,Z);Z=Ce}xe.start=xe.pos}for(;z<xe.pos;){var Ye=Math.min(xe.pos,z+5e3);f(Ye,Z),z=Ye}}function bf(e,n,u){for(var l,f,y=e.doc,F=u?-1:n-(e.doc.mode.innerMode?1e3:100),U=n;U>F;--U){if(U<=y.first)return y.first;var z=At(y,U-1),Z=z.stateAfter;if(Z&&(!u||U+(Z instanceof Tr?Z.lookAhead:0)<=y.modeFrontier))return U;var xe=Xe(z.text,null,e.options.tabSize);(f==null||l>xe)&&(f=U-1,l=xe)}return f}function wf(e,n){if(e.modeFrontier=Math.min(e.modeFrontier,n),!(e.highlightFrontier<n-10)){for(var u=e.first,l=n-1;l>u;l--){var f=At(e,l).stateAfter;if(f&&(!(f instanceof Tr)||l+f.lookAhead<n)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var Sf=!1,Ei=!1;function Af(){Sf=!0}function Ef(){Ei=!0}function Pa(e,n,u){this.marker=e,this.from=n,this.to=u}function Ho(e,n){if(e)for(var u=0;u<e.length;++u){var l=e[u];if(l.marker==n)return l}}function Cf(e,n){for(var u,l=0;l<e.length;++l)e[l]!=n&&(u||(u=[])).push(e[l]);return u}function wd(e,n,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&l.has(e.markedSpans)?e.markedSpans.push(n):(e.markedSpans=e.markedSpans?e.markedSpans.concat([n]):[n],l&&l.add(e.markedSpans)),n.marker.attachLine(e)}function Sd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var y=e[f],F=y.marker,U=y.from==null||(F.inclusiveLeft?y.from<=n:y.from<n);if(U||y.from==n&&F.type=="bookmark"&&(!u||!y.marker.insertLeft)){var z=y.to==null||(F.inclusiveRight?y.to>=n:y.to>n);(l||(l=[])).push(new Pa(F,y.from,z?null:y.to))}}return l}function Ad(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var y=e[f],F=y.marker,U=y.to==null||(F.inclusiveRight?y.to>=n:y.to>n);if(U||y.from==n&&F.type=="bookmark"&&(!u||y.marker.insertLeft)){var z=y.from==null||(F.inclusiveLeft?y.from<=n:y.from<n);(l||(l=[])).push(new Pa(F,z?null:y.from-n,y.to==null?null:y.to-n))}}return l}function Nl(e,n){if(n.full)return null;var u=Yn(e,n.from.line)&&At(e,n.from.line).markedSpans,l=Yn(e,n.to.line)&&At(e,n.to.line).markedSpans;if(!u&&!l)return null;var f=n.from.ch,y=n.to.ch,F=Lt(n.from,n.to)==0,U=Sd(u,f,F),z=Ad(l,y,F),Z=n.text.length==1,xe=St(n.text).length+(Z?f:0);if(U)for(var Ce=0;Ce<U.length;++Ce){var Ne=U[Ce];if(Ne.to==null){var Re=Ho(z,Ne.marker);Re?Z&&(Ne.to=Re.to==null?null:Re.to+xe):Ne.to=f}}if(z)for(var Ye=0;Ye<z.length;++Ye){var et=z[Ye];if(et.to!=null&&(et.to+=xe),et.from==null){var at=Ho(U,et.marker);at||(et.from=xe,Z&&(U||(U=[])).push(et))}else et.from+=xe,Z&&(U||(U=[])).push(et)}U&&(U=Bl(U)),z&&z!=U&&(z=Bl(z));var ft=[U];if(!Z){var ht=n.text.length-2,ct;if(ht>0&&U)for(var xt=0;xt<U.length;++xt)U[xt].to==null&&(ct||(ct=[])).push(new Pa(U[xt].marker,null,null));for(var Pt=0;Pt<ht;++Pt)ft.push(ct);ft.push(z)}return ft}function Bl(e){for(var n=0;n<e.length;++n){var u=e[n];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&e.splice(n--,1)}return e.length?e:null}function Ul(e,n,u){var l=null;if(e.iter(n.line,u.line+1,function(Re){if(Re.markedSpans)for(var Ye=0;Ye<Re.markedSpans.length;++Ye){var et=Re.markedSpans[Ye].marker;et.readOnly&&(!l||pt(l,et)==-1)&&(l||(l=[])).push(et)}}),!l)return null;for(var f=[{from:n,to:u}],y=0;y<l.length;++y)for(var F=l[y],U=F.find(0),z=0;z<f.length;++z){var Z=f[z];if(!(Lt(Z.to,U.from)<0||Lt(Z.from,U.to)>0)){var xe=[z,1],Ce=Lt(Z.from,U.from),Ne=Lt(Z.to,U.to);(Ce<0||!F.inclusiveLeft&&!Ce)&&xe.push({from:Z.from,to:U.from}),(Ne>0||!F.inclusiveRight&&!Ne)&&xe.push({from:U.to,to:Z.to}),f.splice.apply(f,xe),z+=xe.length-3}}return f}function jl(e){var n=e.markedSpans;if(!!n){for(var u=0;u<n.length;++u)n[u].marker.detachLine(e);e.markedSpans=null}}function Of(e,n){if(!!n){for(var u=0;u<n.length;++u)n[u].marker.attachLine(e);e.markedSpans=n}}function As(e){return e.inclusiveLeft?-1:0}function Es(e){return e.inclusiveRight?1:0}function Vl(e,n){var u=e.lines.length-n.lines.length;if(u!=0)return u;var l=e.find(),f=n.find(),y=Lt(l.from,f.from)||As(e)-As(n);if(y)return-y;var F=Lt(l.to,f.to)||Es(e)-Es(n);return F||n.id-e.id}function Ia(e,n){var u=Ei&&e.markedSpans,l;if(u)for(var f=void 0,y=0;y<u.length;++y)f=u[y],f.marker.collapsed&&(n?f.from:f.to)==null&&(!l||Vl(l,f.marker)<0)&&(l=f.marker);return l}function zt(e){return Ia(e,!0)}function Vi(e){return Ia(e,!1)}function jt(e,n){var u=Ei&&e.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var y=u[f];y.marker.collapsed&&(y.from==null||y.from<n)&&(y.to==null||y.to>n)&&(!l||Vl(l,y.marker)<0)&&(l=y.marker)}return l}function Et(e,n,u,l,f){var y=At(e,n),F=Ei&&y.markedSpans;if(F)for(var U=0;U<F.length;++U){var z=F[U];if(!!z.marker.collapsed){var Z=z.marker.find(0),xe=Lt(Z.from,u)||As(z.marker)-As(f),Ce=Lt(Z.to,l)||Es(z.marker)-Es(f);if(!(xe>=0&&Ce<=0||xe<=0&&Ce>=0)&&(xe<=0&&(z.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.to,u)>=0:Lt(Z.to,u)>0)||xe>=0&&(z.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.from,l)<=0:Lt(Z.from,l)<0)))return!0}}}function Ir(e){for(var n;n=zt(e);)e=n.find(-1,!0).line;return e}function Tf(e){for(var n;n=Vi(e);)e=n.find(1,!0).line;return e}function Pf(e){for(var n,u;n=Vi(e);)e=n.find(1,!0).line,(u||(u=[])).push(e);return u}function Cs(e,n){var u=At(e,n),l=Ir(u);return u==l?n:er(l)}function Os(e,n){if(n>e.lastLine())return n;var u=At(e,n),l;if(!Ci(e,u))return n;for(;l=Vi(u);)u=l.find(1,!0).line;return er(u)+1}function Ci(e,n){var u=Ei&&n.markedSpans;if(u){for(var l=void 0,f=0;f<u.length;++f)if(l=u[f],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Ts(e,n,l))return!0}}}function Ts(e,n,u){if(u.to==null){var l=u.marker.find(1,!0);return Ts(e,l.line,Ho(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==n.text.length)return!0;for(var f=void 0,y=0;y<n.markedSpans.length;++y)if(f=n.markedSpans[y],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&Ts(e,n,f))return!0}function Jn(e){e=Ir(e);for(var n=0,u=e.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==e)break;n+=f.height}for(var y=u.parent;y;u=y,y=u.parent)for(var F=0;F<y.children.length;++F){var U=y.children[F];if(U==u)break;n+=U.height}return n}function Wi(e){if(e.height==0)return 0;for(var n=e.text.length,u,l=e;u=zt(l);){var f=u.find(0,!0);l=f.from.line,n+=f.from.ch-f.to.ch}for(l=e;u=Vi(l);){var y=u.find(0,!0);n-=l.text.length-y.from.ch,l=y.to.line,n+=l.text.length-y.to.ch}return n}function Fa(e){var n=e.display,u=e.doc;n.maxLine=At(u,u.first),n.maxLineLength=Wi(n.maxLine),n.maxLineChanged=!0,u.iter(function(l){var f=Wi(l);f>n.maxLineLength&&(n.maxLineLength=f,n.maxLine=l)})}var Hi=function(e,n,u){this.text=e,Of(this,n),this.height=u?u(this):1};Hi.prototype.lineNo=function(){return er(this)},He(Hi);function Wl(e,n,u,l){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),jl(e),Of(e,u);var f=l?l(e):1;f!=e.height&&xn(e,f)}function If(e){e.parent=null,jl(e)}var Ff={},Hl={};function zl(e,n){if(!e||/^\s*$/.test(e))return null;var u=n.addModeClass?Hl:Ff;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function uo(e,n){var u=de("span",null,null,g?"padding-right: .1px":null),l={pre:de("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var f=0;f<=(n.rest?n.rest.length:0);f++){var y=f?n.rest[f-1]:n.line,F=void 0;l.pos=0,l.addToken=Ed,Un(e.display.measure)&&(F=P(y,e.doc.direction))&&(l.addToken=kf(l.addToken,F)),l.map=[];var U=n!=e.display.externalMeasured&&er(y);Zr(y,l,Rl(e,y,U)),y.styleClasses&&(y.styleClasses.bgClass&&(l.bgClass=Le(y.styleClasses.bgClass,l.bgClass||"")),y.styleClasses.textClass&&(l.textClass=Le(y.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ui(e.display.measure))),f==0?(n.measure.map=l.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(l.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(g){var z=l.content.lastChild;(/\bcm-tab\b/.test(z.className)||z.querySelector&&z.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Oe(e,"renderLine",e,n.line,l.pre),l.pre.className&&(l.textClass=Le(l.pre.className,l.textClass||"")),l}function un(e){var n=ve("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function Ed(e,n,u,l,f,y,F){if(!!n){var U=e.splitSpaces?zo(n,e.trailingSpace):n,z=e.cm.state.specialChars,Z=!1,xe;if(!z.test(n))e.col+=n.length,xe=document.createTextNode(U),e.map.push(e.pos,e.pos+n.length,xe),b&&S<9&&(Z=!0),e.pos+=n.length;else{xe=document.createDocumentFragment();for(var Ce=0;;){z.lastIndex=Ce;var Ne=z.exec(n),Re=Ne?Ne.index-Ce:n.length-Ce;if(Re){var Ye=document.createTextNode(U.slice(Ce,Ce+Re));b&&S<9?xe.appendChild(ve("span",[Ye])):xe.appendChild(Ye),e.map.push(e.pos,e.pos+Re,Ye),e.col+=Re,e.pos+=Re}if(!Ne)break;Ce+=Re+1;var et=void 0;if(Ne[0]==" "){var at=e.cm.options.tabSize,ft=at-e.col%at;et=xe.appendChild(ve("span",It(ft),"cm-tab")),et.setAttribute("role","presentation"),et.setAttribute("cm-text"," "),e.col+=ft}else Ne[0]=="\r"||Ne[0]==`
22
+ `?(et=xe.appendChild(ve("span",Ne[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),et.setAttribute("cm-text",Ne[0]),e.col+=1):(et=e.cm.options.specialCharPlaceholder(Ne[0]),et.setAttribute("cm-text",Ne[0]),b&&S<9?xe.appendChild(ve("span",[et])):xe.appendChild(et),e.col+=1);e.map.push(e.pos,e.pos+1,et),e.pos++}}if(e.trailingSpace=U.charCodeAt(n.length-1)==32,u||l||f||Z||y||F){var ht=u||"";l&&(ht+=l),f&&(ht+=f);var ct=ve("span",[xe],ht,y);if(F)for(var xt in F)F.hasOwnProperty(xt)&&xt!="style"&&xt!="class"&&ct.setAttribute(xt,F[xt]);return e.content.appendChild(ct)}e.content.appendChild(xe)}}function zo(e,n){if(e.length>1&&!/ /.test(e))return e;for(var u=n,l="",f=0;f<e.length;f++){var y=e.charAt(f);y==" "&&u&&(f==e.length-1||e.charCodeAt(f+1)==32)&&(y="\xA0"),l+=y,u=y==" "}return l}function kf(e,n){return function(u,l,f,y,F,U,z){f=f?f+" cm-force-border":"cm-force-border";for(var Z=u.pos,xe=Z+l.length;;){for(var Ce=void 0,Ne=0;Ne<n.length&&(Ce=n[Ne],!(Ce.to>Z&&Ce.from<=Z));Ne++);if(Ce.to>=xe)return e(u,l,f,y,F,U,z);e(u,l.slice(0,Ce.to-Z),f,y,null,U,z),y=null,l=l.slice(Ce.to-Z),Z=Ce.to}}}function Gl(e,n,u,l){var f=!l&&u.widgetNode;f&&e.map.push(e.pos,e.pos+n,f),!l&&e.cm.display.input.needsContentAttribute&&(f||(f=e.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(e.cm.display.input.setUneditable(f),e.content.appendChild(f)),e.pos+=n,e.trailingSpace=!1}function Zr(e,n,u){var l=e.markedSpans,f=e.text,y=0;if(!l){for(var F=1;F<u.length;F+=2)n.addToken(n,f.slice(y,y=u[F]),zl(u[F+1],n.cm.options));return}for(var U=f.length,z=0,Z=1,xe="",Ce,Ne,Re=0,Ye,et,at,ft,ht;;){if(Re==z){Ye=et=at=Ne="",ht=null,ft=null,Re=1/0;for(var ct=[],xt=void 0,Pt=0;Pt<l.length;++Pt){var Ot=l[Pt],Vt=Ot.marker;if(Vt.type=="bookmark"&&Ot.from==z&&Vt.widgetNode)ct.push(Vt);else if(Ot.from<=z&&(Ot.to==null||Ot.to>z||Vt.collapsed&&Ot.to==z&&Ot.from==z)){if(Ot.to!=null&&Ot.to!=z&&Re>Ot.to&&(Re=Ot.to,et=""),Vt.className&&(Ye+=" "+Vt.className),Vt.css&&(Ne=(Ne?Ne+";":"")+Vt.css),Vt.startStyle&&Ot.from==z&&(at+=" "+Vt.startStyle),Vt.endStyle&&Ot.to==Re&&(xt||(xt=[])).push(Vt.endStyle,Ot.to),Vt.title&&((ht||(ht={})).title=Vt.title),Vt.attributes)for(var ar in Vt.attributes)(ht||(ht={}))[ar]=Vt.attributes[ar];Vt.collapsed&&(!ft||Vl(ft.marker,Vt)<0)&&(ft=Ot)}else Ot.from>z&&Re>Ot.from&&(Re=Ot.from)}if(xt)for(var Lr=0;Lr<xt.length;Lr+=2)xt[Lr+1]==Re&&(et+=" "+xt[Lr]);if(!ft||ft.from==z)for(var gr=0;gr<ct.length;++gr)Gl(n,0,ct[gr]);if(ft&&(ft.from||0)==z){if(Gl(n,(ft.to==null?U+1:ft.to)-z,ft.marker,ft.from==null),ft.to==null)return;ft.to==z&&(ft=!1)}}if(z>=U)break;for(var hn=Math.min(U,Re);;){if(xe){var an=z+xe.length;if(!ft){var kr=an>hn?xe.slice(0,hn-z):xe;n.addToken(n,kr,Ce?Ce+Ye:Ye,at,z+kr.length==Re?et:"",Ne,ht)}if(an>=hn){xe=xe.slice(hn-z),z=hn;break}z=an,at=""}xe=f.slice(y,y=u[Z++]),Ce=zl(u[Z++],n.cm.options)}}}function Ps(e,n,u){this.line=n,this.rest=Pf(n),this.size=this.rest?er(St(this.rest))-u+1:1,this.node=this.text=null,this.hidden=Ci(e,n)}function ka(e,n,u){for(var l=[],f,y=n;y<u;y=f){var F=new Ps(e.doc,At(e.doc,y),y);f=y+F.size,l.push(F)}return l}var fo=null;function Mf(e){fo?fo.ops.push(e):e.ownsGroup=fo={ops:[e],delayedCallbacks:[]}}function $l(e){var n=e.delayedCallbacks,u=0;do{for(;u<n.length;u++)n[u].call(null);for(var l=0;l<e.ops.length;l++){var f=e.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<n.length)}function Rf(e,n){var u=e.ownsGroup;if(!!u)try{$l(u)}finally{fo=null,n(u)}}var Go=null;function Fr(e,n){var u=ee(e,n);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;fo?f=fo.delayedCallbacks:Go?f=Go:(f=Go=[],setTimeout(Kl,0));for(var y=function(U){f.push(function(){return u[U].apply(null,l)})},F=0;F<u.length;++F)y(F)}}function Kl(){var e=Go;Go=null;for(var n=0;n<e.length;++n)e[n]()}function Is(e,n,u,l){for(var f=0;f<n.changes.length;f++){var y=n.changes[f];y=="text"?Lf(e,n):y=="gutter"?Jl(e,n,u,l):y=="class"?Yl(e,n):y=="widget"&&zi(e,n,l)}n.changes=null}function $o(e){return e.node==e.text&&(e.node=ve("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),b&&S<8&&(e.node.style.zIndex=2)),e.node}function Fs(e,n){var u=n.bgClass?n.bgClass+" "+(n.line.bgClass||""):n.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),n.background)u?n.background.className=u:(n.background.parentNode.removeChild(n.background),n.background=null);else if(u){var l=$o(n);n.background=l.insertBefore(ve("div",null,u),l.firstChild),e.display.input.setUneditable(n.background)}}function Ma(e,n){var u=e.display.externalMeasured;return u&&u.line==n.line?(e.display.externalMeasured=null,n.measure=u.measure,u.built):uo(e,n)}function Lf(e,n){var u=n.text.className,l=Ma(e,n);n.text==n.node&&(n.node=l.pre),n.text.parentNode.replaceChild(l.pre,n.text),n.text=l.pre,l.bgClass!=n.bgClass||l.textClass!=n.textClass?(n.bgClass=l.bgClass,n.textClass=l.textClass,Yl(e,n)):u&&(n.text.className=u)}function Yl(e,n){Fs(e,n),n.line.wrapClass?$o(n).className=n.line.wrapClass:n.node!=n.text&&(n.node.className="");var u=n.textClass?n.textClass+" "+(n.line.textClass||""):n.line.textClass;n.text.className=u||""}function Jl(e,n,u,l){if(n.gutter&&(n.node.removeChild(n.gutter),n.gutter=null),n.gutterBackground&&(n.node.removeChild(n.gutterBackground),n.gutterBackground=null),n.line.gutterClass){var f=$o(n);n.gutterBackground=ve("div",null,"CodeMirror-gutter-background "+n.line.gutterClass,"left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),e.display.input.setUneditable(n.gutterBackground),f.insertBefore(n.gutterBackground,n.text)}var y=n.line.gutterMarkers;if(e.options.lineNumbers||y){var F=$o(n),U=n.gutter=ve("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(U.setAttribute("aria-hidden","true"),e.display.input.setUneditable(U),F.insertBefore(U,n.text),n.line.gutterClass&&(U.className+=" "+n.line.gutterClass),e.options.lineNumbers&&(!y||!y["CodeMirror-linenumbers"])&&(n.lineNumber=U.appendChild(ve("div",lo(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),y)for(var z=0;z<e.display.gutterSpecs.length;++z){var Z=e.display.gutterSpecs[z].className,xe=y.hasOwnProperty(Z)&&y[Z];xe&&U.appendChild(ve("div",[xe],"CodeMirror-gutter-elt","left: "+l.gutterLeft[Z]+"px; width: "+l.gutterWidth[Z]+"px"))}}}function zi(e,n,u){n.alignable&&(n.alignable=null);for(var l=fe("CodeMirror-linewidget"),f=n.node.firstChild,y=void 0;f;f=y)y=f.nextSibling,l.test(f.className)&&n.node.removeChild(f);Xl(e,n,u)}function Df(e,n,u,l){var f=Ma(e,n);return n.text=n.node=f.pre,f.bgClass&&(n.bgClass=f.bgClass),f.textClass&&(n.textClass=f.textClass),Yl(e,n),Jl(e,n,u,l),Xl(e,n,l),n.node}function Xl(e,n,u){if(Ql(e,n.line,n,u,!0),n.rest)for(var l=0;l<n.rest.length;l++)Ql(e,n.rest[l],n,u,!1)}function Ql(e,n,u,l,f){if(!!n.widgets)for(var y=$o(u),F=0,U=n.widgets;F<U.length;++F){var z=U[F],Z=ve("div",[z.node],"CodeMirror-linewidget"+(z.className?" "+z.className:""));z.handleMouseEvents||Z.setAttribute("cm-ignore-events","true"),Nf(z,Z,u,l),e.display.input.setUneditable(Z),f&&z.above?y.insertBefore(Z,u.gutter||u.text):y.appendChild(Z),Fr(z,"redraw")}}function Nf(e,n,u,l){if(e.noHScroll){(u.alignable||(u.alignable=[])).push(n);var f=l.wrapperWidth;n.style.left=l.fixedPos+"px",e.coverGutter||(f-=l.gutterTotalWidth,n.style.paddingLeft=l.gutterTotalWidth+"px"),n.style.width=f+"px"}e.coverGutter&&(n.style.zIndex=5,n.style.position="relative",e.noHScroll||(n.style.marginLeft=-l.gutterTotalWidth+"px"))}function Ko(e){if(e.height!=null)return e.height;var n=e.doc.cm;if(!n)return 0;if(!oe(document.body,e.node)){var u="position: relative;";e.coverGutter&&(u+="margin-left: -"+n.display.gutters.offsetWidth+"px;"),e.noHScroll&&(u+="width: "+n.display.wrapper.clientWidth+"px;"),ye(n.display.measure,ve("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function li(e,n){for(var u=Ft(n);u!=e.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==e.sizer&&u!=e.mover)return!0}function Ra(e){return e.lineSpace.offsetTop}function Xn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function ks(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=ye(e.measure,ve("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(n):n.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(e.cachedPaddingH=l),l}function _r(e){return yt-e.display.nativeBarWidth}function Gi(e){return e.display.scroller.clientWidth-_r(e)-e.display.barWidth}function Ms(e){return e.display.scroller.clientHeight-_r(e)-e.display.barHeight}function Bf(e,n,u){var l=e.options.lineWrapping,f=l&&Gi(e);if(!n.measure.heights||l&&n.measure.width!=f){var y=n.measure.heights=[];if(l){n.measure.width=f;for(var F=n.text.firstChild.getClientRects(),U=0;U<F.length-1;U++){var z=F[U],Z=F[U+1];Math.abs(z.bottom-Z.bottom)>2&&y.push((z.bottom+Z.top)/2-u.top)}}y.push(u.bottom-u.top)}}function Zl(e,n,u){if(e.line==n)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var l=0;l<e.rest.length;l++)if(e.rest[l]==n)return{map:e.measure.maps[l],cache:e.measure.caches[l]};for(var f=0;f<e.rest.length;f++)if(er(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}}function Yo(e,n){n=Ir(n);var u=er(n),l=e.display.externalMeasured=new Ps(e.doc,n,u);l.lineN=u;var f=l.built=uo(e,l);return l.text=f.pre,ye(e.display.lineMeasure,f.pre),l}function _l(e,n,u,l){return Qn(e,co(e,n),u,l)}function Jo(e,n){if(n>=e.display.viewFrom&&n<e.display.viewTo)return e.display.view[wn(e,n)];var u=e.display.externalMeasured;if(u&&n>=u.lineN&&n<u.lineN+u.size)return u}function co(e,n){var u=er(n),l=Jo(e,u);l&&!l.text?l=null:l&&l.changes&&(Is(e,l,u,vo(e)),e.curOp.forceUpdate=!0),l||(l=Yo(e,n));var f=Zl(l,n,u);return{line:n,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Qn(e,n,u,l,f){n.before&&(u=-1);var y=u+(l||""),F;return n.cache.hasOwnProperty(y)?F=n.cache[y]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(Bf(e,n.view,n.rect),n.hasHeights=!0),F=tu(e,n,u,l),F.bogus||(n.cache[y]=F)),{left:F.left,right:F.right,top:f?F.rtop:F.top,bottom:f?F.rbottom:F.bottom}}var Rs={left:0,right:0,top:0,bottom:0};function ql(e,n,u){for(var l,f,y,F,U,z,Z=0;Z<e.length;Z+=3)if(U=e[Z],z=e[Z+1],n<U?(f=0,y=1,F="left"):n<z?(f=n-U,y=f+1):(Z==e.length-3||n==z&&e[Z+3]>n)&&(y=z-U,f=y-1,n>=z&&(F="right")),f!=null){if(l=e[Z+2],U==z&&u==(l.insertLeft?"left":"right")&&(F=u),u=="left"&&f==0)for(;Z&&e[Z-2]==e[Z-3]&&e[Z-1].insertLeft;)l=e[(Z-=3)+2],F="left";if(u=="right"&&f==z-U)for(;Z<e.length-3&&e[Z+3]==e[Z+4]&&!e[Z+5].insertLeft;)l=e[(Z+=3)+2],F="right";break}return{node:l,start:f,end:y,collapse:F,coverStart:U,coverEnd:z}}function eu(e,n){var u=Rs;if(n=="left")for(var l=0;l<e.length&&(u=e[l]).left==u.right;l++);else for(var f=e.length-1;f>=0&&(u=e[f]).left==u.right;f--);return u}function tu(e,n,u,l){var f=ql(n.map,u,l),y=f.node,F=f.start,U=f.end,z=f.collapse,Z;if(y.nodeType==3){for(var xe=0;xe<4;xe++){for(;F&&Me(n.line.text.charAt(f.coverStart+F));)--F;for(;f.coverStart+U<f.coverEnd&&Me(n.line.text.charAt(f.coverStart+U));)++U;if(b&&S<9&&F==0&&U==f.coverEnd-f.coverStart?Z=y.parentNode.getBoundingClientRect():Z=eu(le(y,F,U).getClientRects(),l),Z.left||Z.right||F==0)break;U=F,F=F-1,z="right"}b&&S<11&&(Z=Uf(e.display.measure,Z))}else{F>0&&(z=l="right");var Ce;e.options.lineWrapping&&(Ce=y.getClientRects()).length>1?Z=Ce[l=="right"?Ce.length-1:0]:Z=y.getBoundingClientRect()}if(b&&S<9&&!F&&(!Z||!Z.left&&!Z.right)){var Ne=y.parentNode.getClientRects()[0];Ne?Z={left:Ne.left,right:Ne.left+Yi(e.display),top:Ne.top,bottom:Ne.bottom}:Z=Rs}for(var Re=Z.top-n.rect.top,Ye=Z.bottom-n.rect.top,et=(Re+Ye)/2,at=n.view.measure.heights,ft=0;ft<at.length-1&&!(et<at[ft]);ft++);var ht=ft?at[ft-1]:0,ct=at[ft],xt={left:(z=="right"?Z.right:Z.left)-n.rect.left,right:(z=="left"?Z.left:Z.right)-n.rect.left,top:ht,bottom:ct};return!Z.left&&!Z.right&&(xt.bogus=!0),e.options.singleCursorHeightPerLine||(xt.rtop=Re,xt.rbottom=Ye),xt}function Uf(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ca(e))return n;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:n.left*u,right:n.right*u,top:n.top*l,bottom:n.bottom*l}}function ru(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var n=0;n<e.rest.length;n++)e.measure.caches[n]={}}function Ls(e){e.display.externalMeasure=null,re(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)ru(e.display.view[n])}function Xo(e){Ls(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function $i(){return N&&X?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Qo(){return N&&X?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Zo(e){var n=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(n+=Ko(e.widgets[u]));return n}function Oi(e,n,u,l,f){if(!f){var y=Zo(n);u.top+=y,u.bottom+=y}if(l=="line")return u;l||(l="local");var F=Jn(n);if(l=="local"?F+=Ra(e.display):F-=e.display.viewOffset,l=="page"||l=="window"){var U=e.display.lineSpace.getBoundingClientRect();F+=U.top+(l=="window"?0:Qo());var z=U.left+(l=="window"?0:$i());u.left+=z,u.right+=z}return u.top+=F,u.bottom+=F,u}function Ki(e,n,u){if(u=="div")return n;var l=n.left,f=n.top;if(u=="page")l-=$i(),f-=Qo();else if(u=="local"||!u){var y=e.display.sizer.getBoundingClientRect();l+=y.left,f+=y.top}var F=e.display.lineSpace.getBoundingClientRect();return{left:l-F.left,top:f-F.top}}function La(e,n,u,l,f){return l||(l=At(e.doc,n.line)),Oi(e,l,_l(e,l,n.ch,f),u)}function bn(e,n,u,l,f,y){l=l||At(e.doc,n.line),f||(f=co(e,l));function F(Ye,et){var at=Qn(e,f,Ye,et?"right":"left",y);return et?at.left=at.right:at.right=at.left,Oi(e,l,at,u)}var U=P(l,e.doc.direction),z=n.ch,Z=n.sticky;if(z>=l.text.length?(z=l.text.length,Z="before"):z<=0&&(z=0,Z="after"),!U)return F(Z=="before"?z-1:z,Z=="before");function xe(Ye,et,at){var ft=U[et],ht=ft.level==1;return F(at?Ye-1:Ye,ht!=at)}var Ce=W(U,z,Z),Ne=Ie,Re=xe(z,Ce,Z=="before");return Ne!=null&&(Re.other=xe(z,Ne,Z!="before")),Re}function nu(e,n){var u=0;n=st(e.doc,n),e.options.lineWrapping||(u=Yi(e.display)*n.ch);var l=At(e.doc,n.line),f=Jn(l)+Ra(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function Ds(e,n,u,l,f){var y=nt(e,n,u);return y.xRel=f,l&&(y.outside=l),y}function Da(e,n,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return Ds(l.first,0,null,-1,-1);var f=Vn(l,u),y=l.first+l.size-1;if(f>y)return Ds(l.first+l.size-1,At(l,y).text.length,null,1,1);n<0&&(n=0);for(var F=At(l,f);;){var U=jf(e,F,f,n,u),z=jt(F,U.ch+(U.xRel>0||U.outside>0?1:0));if(!z)return U;var Z=z.find(1);if(Z.line==f)return Z;F=At(l,f=Z.line)}}function po(e,n,u,l){l-=Zo(n);var f=n.text.length,y=Ae(function(F){return Qn(e,u,F-1).bottom<=l},f,0);return f=Ae(function(F){return Qn(e,u,F).top>l},y,f),{begin:y,end:f}}function iu(e,n,u,l){u||(u=co(e,n));var f=Oi(e,n,Qn(e,u,l),"line").top;return po(e,n,u,f)}function Ns(e,n,u,l){return e.bottom<=u?!1:e.top>u?!0:(l?e.left:e.right)>n}function jf(e,n,u,l,f){f-=Jn(n);var y=co(e,n),F=Zo(n),U=0,z=n.text.length,Z=!0,xe=P(n,e.doc.direction);if(xe){var Ce=(e.options.lineWrapping?ou:Vf)(e,n,u,y,xe,l,f);Z=Ce.level!=1,U=Z?Ce.from:Ce.to-1,z=Z?Ce.to:Ce.from-1}var Ne=null,Re=null,Ye=Ae(function(Pt){var Ot=Qn(e,y,Pt);return Ot.top+=F,Ot.bottom+=F,Ns(Ot,l,f,!1)?(Ot.top<=f&&Ot.left<=l&&(Ne=Pt,Re=Ot),!0):!1},U,z),et,at,ft=!1;if(Re){var ht=l-Re.left<Re.right-l,ct=ht==Z;Ye=Ne+(ct?0:1),at=ct?"after":"before",et=ht?Re.left:Re.right}else{!Z&&(Ye==z||Ye==U)&&Ye++,at=Ye==0?"after":Ye==n.text.length?"before":Qn(e,y,Ye-(Z?1:0)).bottom+F<=f==Z?"after":"before";var xt=bn(e,nt(u,Ye,at),"line",n,y);et=xt.left,ft=f<xt.top?-1:f>=xt.bottom?1:0}return Ye=be(n.text,Ye,1),Ds(u,Ye,at,ft,l-et)}function Vf(e,n,u,l,f,y,F){var U=Ae(function(Ce){var Ne=f[Ce],Re=Ne.level!=1;return Ns(bn(e,nt(u,Re?Ne.to:Ne.from,Re?"before":"after"),"line",n,l),y,F,!0)},0,f.length-1),z=f[U];if(U>0){var Z=z.level!=1,xe=bn(e,nt(u,Z?z.from:z.to,Z?"after":"before"),"line",n,l);Ns(xe,y,F,!0)&&xe.top>F&&(z=f[U-1])}return z}function ou(e,n,u,l,f,y,F){var U=po(e,n,l,F),z=U.begin,Z=U.end;/\s/.test(n.text.charAt(Z-1))&&Z--;for(var xe=null,Ce=null,Ne=0;Ne<f.length;Ne++){var Re=f[Ne];if(!(Re.from>=Z||Re.to<=z)){var Ye=Re.level!=1,et=Qn(e,l,Ye?Math.min(Z,Re.to)-1:Math.max(z,Re.from)).right,at=et<y?y-et+1e9:et-y;(!xe||Ce>at)&&(xe=Re,Ce=at)}}return xe||(xe=f[f.length-1]),xe.from<z&&(xe={from:z,to:xe.to,level:xe.level}),xe.to>Z&&(xe={from:xe.from,to:Z,level:xe.level}),xe}var ui;function ho(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(ui==null){ui=ve("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)ui.appendChild(document.createTextNode("x")),ui.appendChild(ve("br"));ui.appendChild(document.createTextNode("x"))}ye(e.measure,ui);var u=ui.offsetHeight/50;return u>3&&(e.cachedTextHeight=u),re(e.measure),u||1}function Yi(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=ve("span","xxxxxxxxxx"),u=ve("pre",[n],"CodeMirror-line-like");ye(e.measure,u);var l=n.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function vo(e){for(var n=e.display,u={},l={},f=n.gutters.clientLeft,y=n.gutters.firstChild,F=0;y;y=y.nextSibling,++F){var U=e.display.gutterSpecs[F].className;u[U]=y.offsetLeft+y.clientLeft+f,l[U]=y.clientWidth}return{fixedPos:Bs(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:n.wrapper.clientWidth}}function Bs(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Us(e){var n=ho(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/Yi(e.display)-3);return function(f){if(Ci(e.doc,f))return 0;var y=0;if(f.widgets)for(var F=0;F<f.widgets.length;F++)f.widgets[F].height&&(y+=f.widgets[F].height);return u?y+(Math.ceil(f.text.length/l)||1)*n:y+n}}function au(e){var n=e.doc,u=Us(e);n.iter(function(l){var f=u(l);f!=l.height&&xn(l,f)})}function Ji(e,n,u,l){var f=e.display;if(!u&&Ft(n).getAttribute("cm-not-content")=="true")return null;var y,F,U=f.lineSpace.getBoundingClientRect();try{y=n.clientX-U.left,F=n.clientY-U.top}catch(Ce){return null}var z=Da(e,y,F),Z;if(l&&z.xRel>0&&(Z=At(e.doc,z.line).text).length==z.ch){var xe=Xe(Z,Z.length,e.options.tabSize)-Z.length;z=nt(z.line,Math.max(0,Math.round((y-ks(e.display).left)/Yi(e.display))-xe))}return z}function wn(e,n){if(n>=e.display.viewTo||(n-=e.display.viewFrom,n<0))return null;for(var u=e.display.view,l=0;l<u.length;l++)if(n-=u[l].size,n<0)return l}function qr(e,n,u,l){n==null&&(n=e.doc.first),u==null&&(u=e.doc.first+e.doc.size),l||(l=0);var f=e.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>n)&&(f.updateLineNumbers=n),e.curOp.viewChanged=!0,n>=f.viewTo)Ei&&Cs(e.doc,n)<f.viewTo&&Sn(e);else if(u<=f.viewFrom)Ei&&Os(e.doc,u+l)>f.viewFrom?Sn(e):(f.viewFrom+=l,f.viewTo+=l);else if(n<=f.viewFrom&&u>=f.viewTo)Sn(e);else if(n<=f.viewFrom){var y=js(e,u,u+l,1);y?(f.view=f.view.slice(y.index),f.viewFrom=y.lineN,f.viewTo+=l):Sn(e)}else if(u>=f.viewTo){var F=js(e,n,n,-1);F?(f.view=f.view.slice(0,F.index),f.viewTo=F.lineN):Sn(e)}else{var U=js(e,n,n,-1),z=js(e,u,u+l,1);U&&z?(f.view=f.view.slice(0,U.index).concat(ka(e,U.lineN,z.lineN)).concat(f.view.slice(z.index)),f.viewTo+=l):Sn(e)}var Z=f.externalMeasured;Z&&(u<Z.lineN?Z.lineN+=l:n<Z.lineN+Z.size&&(f.externalMeasured=null))}function Xi(e,n,u){e.curOp.viewChanged=!0;var l=e.display,f=e.display.externalMeasured;if(f&&n>=f.lineN&&n<f.lineN+f.size&&(l.externalMeasured=null),!(n<l.viewFrom||n>=l.viewTo)){var y=l.view[wn(e,n)];if(y.node!=null){var F=y.changes||(y.changes=[]);pt(F,u)==-1&&F.push(u)}}}function Sn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function js(e,n,u,l){var f=wn(e,n),y,F=e.display.view;if(!Ei||u==e.doc.first+e.doc.size)return{index:f,lineN:u};for(var U=e.display.viewFrom,z=0;z<f;z++)U+=F[z].size;if(U!=n){if(l>0){if(f==F.length-1)return null;y=U+F[f].size-n,f++}else y=U-n;n+=y,u+=y}for(;Cs(e.doc,u)!=u;){if(f==(l<0?0:F.length-1))return null;u+=l*F[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function Wf(e,n,u){var l=e.display,f=l.view;f.length==0||n>=l.viewTo||u<=l.viewFrom?(l.view=ka(e,n,u),l.viewFrom=n):(l.viewFrom>n?l.view=ka(e,n,l.viewFrom).concat(l.view):l.viewFrom<n&&(l.view=l.view.slice(wn(e,n))),l.viewFrom=n,l.viewTo<u?l.view=l.view.concat(ka(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,wn(e,u)))),l.viewTo=u}function Hf(e){for(var n=e.display.view,u=0,l=0;l<n.length;l++){var f=n[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function Na(e){e.display.input.showSelection(e.display.input.prepareSelection())}function su(e,n){n===void 0&&(n=!0);var u=e.doc,l={},f=l.cursors=document.createDocumentFragment(),y=l.selection=document.createDocumentFragment(),F=e.options.$customCursor;F&&(n=!0);for(var U=0;U<u.sel.ranges.length;U++)if(!(!n&&U==u.sel.primIndex)){var z=u.sel.ranges[U];if(!(z.from().line>=e.display.viewTo||z.to().line<e.display.viewFrom)){var Z=z.empty();if(F){var xe=F(e,z);xe&&Vs(e,xe,f)}else(Z||e.options.showCursorWhenSelecting)&&Vs(e,z.head,f);Z||Cd(e,z,y)}}return l}function Vs(e,n,u){var l=bn(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(ve("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var y=La(e,n,"div",null,null),F=y.right-y.left;f.style.width=(F>0?F:e.defaultCharWidth())+"px"}if(l.other){var U=u.appendChild(ve("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));U.style.display="",U.style.left=l.other.left+"px",U.style.top=l.other.top+"px",U.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Ba(e,n){return e.top-n.top||e.left-n.left}function Cd(e,n,u){var l=e.display,f=e.doc,y=document.createDocumentFragment(),F=ks(e.display),U=F.left,z=Math.max(l.sizerWidth,Gi(e)-l.sizer.offsetLeft)-F.right,Z=f.direction=="ltr";function xe(ct,xt,Pt,Ot){xt<0&&(xt=0),xt=Math.round(xt),Ot=Math.round(Ot),y.appendChild(ve("div",null,"CodeMirror-selected","position: absolute; left: "+ct+`px;
23
+ top: `+xt+"px; width: "+(Pt==null?z-ct:Pt)+`px;
24
+ height: `+(Ot-xt)+"px"))}function Ce(ct,xt,Pt){var Ot=At(f,ct),Vt=Ot.text.length,ar,Lr;function gr(kr,tn){return La(e,nt(ct,kr),"div",Ot,tn)}function hn(kr,tn,zr){var Dr=iu(e,Ot,null,kr),Er=tn=="ltr"==(zr=="after")?"left":"right",dr=zr=="after"?Dr.begin:Dr.end-(/\s/.test(Ot.text.charAt(Dr.end-1))?2:1);return gr(dr,Er)[Er]}var an=P(Ot,f.direction);return T(an,xt||0,Pt==null?Vt:Pt,function(kr,tn,zr,Dr){var Er=zr=="ltr",dr=gr(kr,Er?"left":"right"),sn=gr(tn-1,Er?"right":"left"),ni=xt==null&&kr==0,vi=Pt==null&&tn==Vt,cr=Dr==0,gi=!an||Dr==an.length-1;if(sn.top-dr.top<=3){var Nr=(Z?ni:vi)&&cr,fs=(Z?vi:ni)&&gi,ii=Nr?U:(Er?dr:sn).left,io=fs?z:(Er?sn:dr).right;xe(ii,dr.top,io-ii,dr.bottom)}else{var oo,Yr,Bo,yl;Er?(oo=Z&&ni&&cr?U:dr.left,Yr=Z?z:hn(kr,zr,"before"),Bo=Z?U:hn(tn,zr,"after"),yl=Z&&vi&&gi?z:sn.right):(oo=Z?hn(kr,zr,"before"):U,Yr=!Z&&ni&&cr?z:dr.right,Bo=!Z&&vi&&gi?U:sn.left,yl=Z?hn(tn,zr,"after"):z),xe(oo,dr.top,Yr-oo,dr.bottom),dr.bottom<sn.top&&xe(U,dr.bottom,null,sn.top),xe(Bo,sn.top,yl-Bo,sn.bottom)}(!ar||Ba(dr,ar)<0)&&(ar=dr),Ba(sn,ar)<0&&(ar=sn),(!Lr||Ba(dr,Lr)<0)&&(Lr=dr),Ba(sn,Lr)<0&&(Lr=sn)}),{start:ar,end:Lr}}var Ne=n.from(),Re=n.to();if(Ne.line==Re.line)Ce(Ne.line,Ne.ch,Re.ch);else{var Ye=At(f,Ne.line),et=At(f,Re.line),at=Ir(Ye)==Ir(et),ft=Ce(Ne.line,Ne.ch,at?Ye.text.length+1:null).end,ht=Ce(Re.line,at?0:null,Re.ch).start;at&&(ft.top<ht.top-2?(xe(ft.right,ft.top,null,ft.bottom),xe(U,ht.top,ht.left,ht.bottom)):xe(ft.right,ft.top,ht.left-ft.right,ft.bottom)),ft.bottom<ht.top&&xe(U,ft.bottom,null,ht.top)}u.appendChild(y)}function lu(e){if(!!e.state.focused){var n=e.display;clearInterval(n.blinker);var u=!0;n.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?n.blinker=setInterval(function(){e.hasFocus()||_o(e),n.cursorDiv.style.visibility=(u=!u)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}function zf(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||uu(e))}function Ws(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&_o(e))},100)}function uu(e,n){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Oe(e,"focus",e,n),e.state.focused=!0,Ve(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),g&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),lu(e))}function _o(e,n){e.state.delayingBlurEvent||(e.state.focused&&(Oe(e,"blur",e,n),e.state.focused=!1,te(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Ti(e){for(var n=e.display,u=n.lineDiv.offsetTop,l=Math.max(0,n.scroller.getBoundingClientRect().top),f=n.lineDiv.getBoundingClientRect().top,y=0,F=0;F<n.view.length;F++){var U=n.view[F],z=e.options.lineWrapping,Z=void 0,xe=0;if(!U.hidden){if(f+=U.line.height,b&&S<8){var Ce=U.node.offsetTop+U.node.offsetHeight;Z=Ce-u,u=Ce}else{var Ne=U.node.getBoundingClientRect();Z=Ne.bottom-Ne.top,!z&&U.text.firstChild&&(xe=U.text.firstChild.getBoundingClientRect().right-Ne.left-1)}var Re=U.line.height-Z;if((Re>.005||Re<-.005)&&(f<l&&(y-=Re),xn(U.line,Z),fn(U.line),U.rest))for(var Ye=0;Ye<U.rest.length;Ye++)fn(U.rest[Ye]);if(xe>e.display.sizerWidth){var et=Math.ceil(xe/Yi(e.display));et>e.display.maxLineLength&&(e.display.maxLineLength=et,e.display.maxLine=U.line,e.display.maxLineChanged=!0)}}}Math.abs(y)>2&&(n.scroller.scrollTop+=y)}function fn(e){if(e.widgets)for(var n=0;n<e.widgets.length;++n){var u=e.widgets[n],l=u.node.parentNode;l&&(u.height=l.offsetHeight)}}function Pn(e,n,u){var l=u&&u.top!=null?Math.max(0,u.top):e.scroller.scrollTop;l=Math.floor(l-Ra(e));var f=u&&u.bottom!=null?u.bottom:l+e.wrapper.clientHeight,y=Vn(n,l),F=Vn(n,f);if(u&&u.ensure){var U=u.ensure.from.line,z=u.ensure.to.line;U<y?(y=U,F=Vn(n,Jn(At(n,U))+e.wrapper.clientHeight)):Math.min(z,n.lastLine())>=F&&(y=Vn(n,Jn(At(n,z))-e.wrapper.clientHeight),F=z)}return{from:y,to:Math.max(F,y+1)}}function Zn(e,n){if(!Pe(e,"scrollCursorIntoView")){var u=e.display,l=u.sizer.getBoundingClientRect(),f=null;if(n.top+l.top<0?f=!0:n.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)&&(f=!1),f!=null&&!H){var y=ve("div","\u200B",null,`position: absolute;
25
+ top: `+(n.top-u.viewOffset-Ra(e.display))+`px;
26
+ height: `+(n.bottom-n.top+_r(e)+u.barHeight)+`px;
27
+ left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(y),y.scrollIntoView(f),e.display.lineSpace.removeChild(y)}}}function Gf(e,n,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&n==u&&(u=n.sticky=="before"?nt(n.line,n.ch+1,"before"):n,n=n.ch?nt(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var y=0;y<5;y++){var F=!1,U=bn(e,n),z=!u||u==n?U:bn(e,u);f={left:Math.min(U.left,z.left),top:Math.min(U.top,z.top)-l,right:Math.max(U.left,z.left),bottom:Math.max(U.bottom,z.bottom)+l};var Z=go(e,f),xe=e.doc.scrollTop,Ce=e.doc.scrollLeft;if(Z.scrollTop!=null&&(mo(e,Z.scrollTop),Math.abs(e.doc.scrollTop-xe)>1&&(F=!0)),Z.scrollLeft!=null&&(Pi(e,Z.scrollLeft),Math.abs(e.doc.scrollLeft-Ce)>1&&(F=!0)),!F)break}return f}function fu(e,n){var u=go(e,n);u.scrollTop!=null&&mo(e,u.scrollTop),u.scrollLeft!=null&&Pi(e,u.scrollLeft)}function go(e,n){var u=e.display,l=ho(e.display);n.top<0&&(n.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,y=Ms(e),F={};n.bottom-n.top>y&&(n.bottom=n.top+y);var U=e.doc.height+Xn(u),z=n.top<l,Z=n.bottom>U-l;if(n.top<f)F.scrollTop=z?0:n.top;else if(n.bottom>f+y){var xe=Math.min(n.top,(Z?U:n.bottom)-y);xe!=f&&(F.scrollTop=xe)}var Ce=e.options.fixedGutter?0:u.gutters.offsetWidth,Ne=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Ce,Re=Gi(e)-u.gutters.offsetWidth,Ye=n.right-n.left>Re;return Ye&&(n.right=n.left+Re),n.left<10?F.scrollLeft=0:n.left<Ne?F.scrollLeft=Math.max(0,n.left+Ce-(Ye?0:10)):n.right>Re+Ne-3&&(F.scrollLeft=n.right+(Ye?0:10)-Re),F}function An(e,n){n!=null&&(yo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function Jt(e){yo(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function fi(e,n,u){(n!=null||u!=null)&&yo(e),n!=null&&(e.curOp.scrollLeft=n),u!=null&&(e.curOp.scrollTop=u)}function cu(e,n){yo(e),e.curOp.scrollToPos=n}function yo(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var u=nu(e,n.from),l=nu(e,n.to);Hs(e,u,l,n.margin)}}function Hs(e,n,u,l){var f=go(e,{left:Math.min(n.left,u.left),top:Math.min(n.top,u.top)-l,right:Math.max(n.right,u.right),bottom:Math.max(n.bottom,u.bottom)+l});fi(e,f.scrollLeft,f.scrollTop)}function mo(e,n){Math.abs(e.doc.scrollTop-n)<2||(c||Wa(e,{top:n}),xo(e,n,!0),c&&Wa(e),Ii(e,100))}function xo(e,n,u){n=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,n)),!(e.display.scroller.scrollTop==n&&!u)&&(e.doc.scrollTop=n,e.display.scrollbars.setScrollTop(n),e.display.scroller.scrollTop!=n&&(e.display.scroller.scrollTop=n))}function Pi(e,n,u,l){n=Math.max(0,Math.min(n,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((u?n==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-n)<2)&&!l)&&(e.doc.scrollLeft=n,Ys(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n))}function Qi(e){var n=e.display,u=n.gutters.offsetWidth,l=Math.round(e.doc.height+Xn(e.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:e.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+_r(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:u}}var Nt=function(e,n,u){this.cm=u;var l=this.vert=ve("div",[ve("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=ve("div",[ve("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,e(l),e(f),D(l,"scroll",function(){l.clientHeight&&n(l.scrollTop,"vertical")}),D(f,"scroll",function(){f.clientWidth&&n(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&S<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Nt.prototype.update=function(e){var n=e.scrollWidth>e.clientWidth+1,u=e.scrollHeight>e.clientHeight+1,l=e.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=n?l+"px":"0";var f=e.viewHeight-(n?l:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=e.barLeft+"px";var y=e.viewWidth-e.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+y)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:n?l:0}},Nt.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Nt.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Nt.prototype.zeroWidthHack=function(){var e=C&&!_?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ut,this.disableVert=new ut},Nt.prototype.enableZeroWidthBar=function(e,n,u){e.style.pointerEvents="auto";function l(){var f=e.getBoundingClientRect(),y=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);y!=e?e.style.pointerEvents="none":n.set(1e3,l)}n.set(1e3,l)},Nt.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var bo=function(){};bo.prototype.update=function(){return{bottom:0,right:0}},bo.prototype.setScrollLeft=function(){},bo.prototype.setScrollTop=function(){},bo.prototype.clear=function(){};function Zi(e,n){n||(n=Qi(e));var u=e.display.barWidth,l=e.display.barHeight;_n(e,n);for(var f=0;f<4&&u!=e.display.barWidth||l!=e.display.barHeight;f++)u!=e.display.barWidth&&e.options.lineWrapping&&Ti(e),_n(e,Qi(e)),u=e.display.barWidth,l=e.display.barHeight}function _n(e,n){var u=e.display,l=u.scrollbars.update(n);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=n.gutterWidth+"px"):u.gutterFiller.style.display=""}var wo={native:Nt,null:bo};function In(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&te(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new wo[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),D(n,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,u){u=="horizontal"?Pi(e,n):mo(e,n)},e),e.display.scrollbars.addClass&&Ve(e.display.wrapper,e.display.scrollbars.addClass)}var So=0;function Sr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++So,markArrays:null},Mf(e.curOp)}function cn(e){var n=e.curOp;n&&Rf(n,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Ua(u)})}function Ua(e){for(var n=e.ops,u=0;u<n.length;u++)qo(n[u]);for(var l=0;l<n.length;l++)ea(n[l]);for(var f=0;f<n.length;f++)ta(n[f]);for(var y=0;y<n.length;y++)zs(n[y]);for(var F=0;F<n.length;F++)ja(n[F])}function qo(e){var n=e.cm,u=n.display;Gs(n),e.updateMaxLine&&Fa(n),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<u.viewFrom||e.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new Fn(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ea(e){e.updatedDisplay=e.mustUpdate&&Va(e.cm,e.update)}function ta(e){var n=e.cm,u=n.display;e.updatedDisplay&&Ti(n),e.barMeasure=Qi(n),u.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=_l(n,u.maxLine,u.maxLine.text.length).left+3,n.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+e.adjustWidthTo+_r(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+e.adjustWidthTo-Gi(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function zs(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<n.doc.scrollLeft&&Pi(n,Math.min(n.display.scroller.scrollLeft,e.maxScrollLeft),!0),n.display.maxLineChanged=!1);var u=e.focus&&e.focus==De();e.preparedSelection&&n.display.input.showSelection(e.preparedSelection,u),(e.updatedDisplay||e.startHeight!=n.doc.height)&&Zi(n,e.barMeasure),e.updatedDisplay&&Ao(n,e.barMeasure),e.selectionChanged&&lu(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),u&&zf(e.cm)}function ja(e){var n=e.cm,u=n.display,l=n.doc;if(e.updatedDisplay&&$s(n,e.update),u.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),e.scrollTop!=null&&xo(n,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Pi(n,e.scrollLeft,!0,!0),e.scrollToPos){var f=Gf(n,st(l,e.scrollToPos.from),st(l,e.scrollToPos.to),e.scrollToPos.margin);Zn(n,f)}var y=e.maybeHiddenMarkers,F=e.maybeUnhiddenMarkers;if(y)for(var U=0;U<y.length;++U)y[U].lines.length||Oe(y[U],"hide");if(F)for(var z=0;z<F.length;++z)F[z].lines.length&&Oe(F[z],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=n.display.scroller.scrollTop),e.changeObjs&&Oe(n,"changes",n,e.changeObjs),e.update&&e.update.finish()}function on(e,n){if(e.curOp)return n();Sr(e);try{return n()}finally{cn(e)}}function Hr(e,n){return function(){if(e.curOp)return n.apply(e,arguments);Sr(e);try{return n.apply(e,arguments)}finally{cn(e)}}}function $r(e){return function(){if(this.curOp)return e.apply(this,arguments);Sr(this);try{return e.apply(this,arguments)}finally{cn(this)}}}function Rr(e){return function(){var n=this.cm;if(!n||n.curOp)return e.apply(this,arguments);Sr(n);try{return e.apply(this,arguments)}finally{cn(n)}}}function Ii(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,tt(du,e))}function du(e){var n=e.doc;if(!(n.highlightFrontier>=e.display.viewTo)){var u=+new Date+e.options.workTime,l=Qr(e,n.highlightFrontier),f=[];n.iter(l.line,Math.min(n.first+n.size,e.display.viewTo+500),function(y){if(l.line>=e.display.viewFrom){var F=y.styles,U=y.text.length>e.options.maxHighlightLength?Tn(n.mode,l.state):null,z=tr(e,y,l,!0);U&&(l.state=U),y.styles=z.styles;var Z=y.styleClasses,xe=z.classes;xe?y.styleClasses=xe:Z&&(y.styleClasses=null);for(var Ce=!F||F.length!=y.styles.length||Z!=xe&&(!Z||!xe||Z.bgClass!=xe.bgClass||Z.textClass!=xe.textClass),Ne=0;!Ce&&Ne<F.length;++Ne)Ce=F[Ne]!=y.styles[Ne];Ce&&f.push(l.line),y.stateAfter=l.save(),l.nextLine()}else y.text.length<=e.options.maxHighlightLength&&xs(e,y.text,l),y.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return Ii(e,e.options.workDelay),!0}),n.highlightFrontier=l.line,n.modeFrontier=Math.max(n.modeFrontier,l.line),f.length&&on(e,function(){for(var y=0;y<f.length;y++)Xi(e,f[y],"text")})}}var Fn=function(e,n,u){var l=e.display;this.viewport=n,this.visible=Pn(l,e.doc,n),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Gi(e),this.force=u,this.dims=vo(e),this.events=[]};Fn.prototype.signal=function(e,n){ze(e,n)&&this.events.push(arguments)},Fn.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Oe.apply(null,this.events[e])};function Gs(e){var n=e.display;!n.scrollbarsClipped&&n.scroller.offsetWidth&&(n.nativeBarWidth=n.scroller.offsetWidth-n.scroller.clientWidth,n.heightForcer.style.height=_r(e)+"px",n.sizer.style.marginBottom=-n.nativeBarWidth+"px",n.sizer.style.borderRightWidth=_r(e)+"px",n.scrollbarsClipped=!0)}function En(e){if(e.hasFocus())return null;var n=De();if(!n||!oe(e.display.lineDiv,n))return null;var u={activeElt:n};if(window.getSelection){var l=window.getSelection();l.anchorNode&&l.extend&&oe(e.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function Vr(e){if(!(!e||!e.activeElt||e.activeElt==De())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&oe(document.body,e.anchorNode)&&oe(document.body,e.focusNode))){var n=window.getSelection(),u=document.createRange();u.setEnd(e.anchorNode,e.anchorOffset),u.collapse(!1),n.removeAllRanges(),n.addRange(u),n.extend(e.focusNode,e.focusOffset)}}function Va(e,n){var u=e.display,l=e.doc;if(n.editorIsHidden)return Sn(e),!1;if(!n.force&&n.visible.from>=u.viewFrom&&n.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Hf(e)==0)return!1;Js(e)&&(Sn(e),n.dims=vo(e));var f=l.first+l.size,y=Math.max(n.visible.from-e.options.viewportMargin,l.first),F=Math.min(f,n.visible.to+e.options.viewportMargin);u.viewFrom<y&&y-u.viewFrom<20&&(y=Math.max(l.first,u.viewFrom)),u.viewTo>F&&u.viewTo-F<20&&(F=Math.min(f,u.viewTo)),Ei&&(y=Cs(e.doc,y),F=Os(e.doc,F));var U=y!=u.viewFrom||F!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;Wf(e,y,F),u.viewOffset=Jn(At(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var z=Hf(e);if(!U&&z==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var Z=En(e);return z>4&&(u.lineDiv.style.display="none"),Ks(e,u.updateLineNumbers,n.dims),z>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Vr(Z),re(u.cursorDiv),re(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,U&&(u.lastWrapHeight=n.wrapperHeight,u.lastWrapWidth=n.wrapperWidth,Ii(e,400)),u.updateLineNumbers=null,!0}function $s(e,n){for(var u=n.viewport,l=!0;;l=!1){if(!l||!e.options.lineWrapping||n.oldDisplayWidth==Gi(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+Xn(e.display)-Ms(e),u.top)}),n.visible=Pn(e.display,e.doc,u),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else l&&(n.visible=Pn(e.display,e.doc,u));if(!Va(e,n))break;Ti(e);var f=Qi(e);Na(e),Zi(e,f),Ao(e,f),n.force=!1}n.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(n.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Wa(e,n){var u=new Fn(e,n);if(Va(e,u)){Ti(e),$s(e,u);var l=Qi(e);Na(e),Zi(e,l),Ao(e,l),u.finish()}}function Ks(e,n,u){var l=e.display,f=e.options.lineNumbers,y=l.lineDiv,F=y.firstChild;function U(Ye){var et=Ye.nextSibling;return g&&C&&e.display.currentWheelTarget==Ye?Ye.style.display="none":Ye.parentNode.removeChild(Ye),et}for(var z=l.view,Z=l.viewFrom,xe=0;xe<z.length;xe++){var Ce=z[xe];if(!Ce.hidden)if(!Ce.node||Ce.node.parentNode!=y){var Ne=Df(e,Ce,Z,u);y.insertBefore(Ne,F)}else{for(;F!=Ce.node;)F=U(F);var Re=f&&n!=null&&n<=Z&&Ce.lineNumber;Ce.changes&&(pt(Ce.changes,"gutter")>-1&&(Re=!1),Is(e,Ce,Z,u)),Re&&(re(Ce.lineNumber),Ce.lineNumber.appendChild(document.createTextNode(lo(e.options,Z)))),F=Ce.node.nextSibling}Z+=Ce.size}for(;F;)F=U(F)}function Ha(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",Fr(e,"gutterChanged",e)}function Ao(e,n){e.display.sizer.style.minHeight=n.docHeight+"px",e.display.heightForcer.style.top=n.docHeight+"px",e.display.gutters.style.height=n.docHeight+e.display.barHeight+_r(e)+"px"}function Ys(e){var n=e.display,u=n.view;if(!(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))){for(var l=Bs(n)-n.scroller.scrollLeft+e.doc.scrollLeft,f=n.gutters.offsetWidth,y=l+"px",F=0;F<u.length;F++)if(!u[F].hidden){e.options.fixedGutter&&(u[F].gutter&&(u[F].gutter.style.left=y),u[F].gutterBackground&&(u[F].gutterBackground.style.left=y));var U=u[F].alignable;if(U)for(var z=0;z<U.length;z++)U[z].style.left=y}e.options.fixedGutter&&(n.gutters.style.left=l+f+"px")}}function Js(e){if(!e.options.lineNumbers)return!1;var n=e.doc,u=lo(e.options,n.first+n.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(ve("div",[ve("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),y=f.firstChild.offsetWidth,F=f.offsetWidth-y;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(y,l.lineGutter.offsetWidth-F)+1,l.lineNumWidth=l.lineNumInnerWidth+F,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",Ha(e.display),!0}return!1}function za(e,n){for(var u=[],l=!1,f=0;f<e.length;f++){var y=e[f],F=null;if(typeof y!="string"&&(F=y.style,y=y.className),y=="CodeMirror-linenumbers")if(n)l=!0;else continue;u.push({className:y,style:F})}return n&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function Xs(e){var n=e.gutters,u=e.gutterSpecs;re(n),e.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],y=f.className,F=f.style,U=n.appendChild(ve("div",null,"CodeMirror-gutter "+y));F&&(U.style.cssText=F),y=="CodeMirror-linenumbers"&&(e.lineGutter=U,U.style.width=(e.lineNumWidth||1)+"px")}n.style.display=u.length?"":"none",Ha(e)}function Eo(e){Xs(e.display),qr(e),Ys(e)}function qn(e,n,u,l){var f=this;this.input=u,f.scrollbarFiller=ve("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=ve("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=de("div",null,"CodeMirror-code"),f.selectionDiv=ve("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=ve("div",null,"CodeMirror-cursors"),f.measure=ve("div",null,"CodeMirror-measure"),f.lineMeasure=ve("div",null,"CodeMirror-measure"),f.lineSpace=de("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var y=de("div",[f.lineSpace],"CodeMirror-lines");f.mover=ve("div",[y],null,"position: relative"),f.sizer=ve("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=ve("div",null,null,"position: absolute; height: "+yt+"px; width: 1px;"),f.gutters=ve("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=ve("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=ve("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),f.wrapper.setAttribute("translate","no"),b&&S<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!g&&!(c&&R)&&(f.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(f.wrapper):e(f.wrapper)),f.viewFrom=f.viewTo=n.first,f.reportedViewFrom=f.reportedViewTo=n.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=za(l.gutters,l.lineNumbers),Xs(f),u.init(f)}var ra=0,ei=null;b?ei=-.53:c?ei=15:N?ei=-.7:j&&(ei=-1/3);function Qs(e){var n=e.wheelDeltaX,u=e.wheelDeltaY;return n==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(n=e.detail),u==null&&e.detail&&e.axis==e.VERTICAL_AXIS?u=e.detail:u==null&&(u=e.wheelDelta),{x:n,y:u}}function pu(e){var n=Qs(e);return n.x*=ei,n.y*=ei,n}function Zs(e,n){var u=Qs(n),l=u.x,f=u.y,y=ei;n.deltaMode===0&&(l=n.deltaX,f=n.deltaY,y=1);var F=e.display,U=F.scroller,z=U.scrollWidth>U.clientWidth,Z=U.scrollHeight>U.clientHeight;if(!!(l&&z||f&&Z)){if(f&&C&&g){e:for(var xe=n.target,Ce=F.view;xe!=U;xe=xe.parentNode)for(var Ne=0;Ne<Ce.length;Ne++)if(Ce[Ne].node==xe){e.display.currentWheelTarget=xe;break e}}if(l&&!c&&!B&&y!=null){f&&Z&&mo(e,Math.max(0,U.scrollTop+f*y)),Pi(e,Math.max(0,U.scrollLeft+l*y)),(!f||f&&Z)&&it(n),F.wheelStartX=null;return}if(f&&y!=null){var Re=f*y,Ye=e.doc.scrollTop,et=Ye+F.wrapper.clientHeight;Re<0?Ye=Math.max(0,Ye+Re-50):et=Math.min(e.doc.height,et+Re+50),Wa(e,{top:Ye,bottom:et})}ra<20&&n.deltaMode!==0&&(F.wheelStartX==null?(F.wheelStartX=U.scrollLeft,F.wheelStartY=U.scrollTop,F.wheelDX=l,F.wheelDY=f,setTimeout(function(){if(F.wheelStartX!=null){var at=U.scrollLeft-F.wheelStartX,ft=U.scrollTop-F.wheelStartY,ht=ft&&F.wheelDY&&ft/F.wheelDY||at&&F.wheelDX&&at/F.wheelDX;F.wheelStartX=F.wheelStartY=null,!!ht&&(ei=(ei*ra+ht)/(ra+1),++ra)}},200)):(F.wheelDX+=l,F.wheelDY+=f))}}var dn=function(e,n){this.ranges=e,this.primIndex=n};dn.prototype.primary=function(){return this.ranges[this.primIndex]},dn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var u=this.ranges[n],l=e.ranges[n];if(!si(u.anchor,l.anchor)||!si(u.head,l.head))return!1}return!0},dn.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new _t(se(this.ranges[n].anchor),se(this.ranges[n].head));return new dn(e,this.primIndex)},dn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},dn.prototype.contains=function(e,n){n||(n=e);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(Lt(n,l.from())>=0&&Lt(e,l.to())<=0)return u}return-1};var _t=function(e,n){this.anchor=e,this.head=n};_t.prototype.from=function(){return _e(this.anchor,this.head)},_t.prototype.to=function(){return Ee(this.anchor,this.head)},_t.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function kn(e,n,u){var l=e&&e.options.selectionsMayTouch,f=n[u];n.sort(function(Ne,Re){return Lt(Ne.from(),Re.from())}),u=pt(n,f);for(var y=1;y<n.length;y++){var F=n[y],U=n[y-1],z=Lt(U.to(),F.from());if(l&&!F.empty()?z>0:z>=0){var Z=_e(U.from(),F.from()),xe=Ee(U.to(),F.to()),Ce=U.empty()?F.from()==F.head:U.from()==U.head;y<=u&&--u,n.splice(--y,2,new _t(Ce?xe:Z,Ce?Z:xe))}}return new dn(n,u)}function ci(e,n){return new dn([new _t(e,n||e)],0)}function Wn(e){return e.text?nt(e.from.line+e.text.length-1,St(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function $f(e,n){if(Lt(e,n.from)<0)return e;if(Lt(e,n.to)<=0)return Wn(n);var u=e.line+n.text.length-(n.to.line-n.from.line)-1,l=e.ch;return e.line==n.to.line&&(l+=Wn(n).ch-n.to.ch),nt(u,l)}function Ga(e,n){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new _t($f(f.anchor,n),$f(f.head,n)))}return kn(e.cm,u,e.sel.primIndex)}function hu(e,n,u){return e.line==n.line?nt(u.line,e.ch-n.ch+u.ch):nt(u.line+(e.line-n.line),e.ch)}function Ze(e,n,u){for(var l=[],f=nt(e.first,0),y=f,F=0;F<n.length;F++){var U=n[F],z=hu(U.from,f,y),Z=hu(Wn(U),f,y);if(f=U.to,y=Z,u=="around"){var xe=e.sel.ranges[F],Ce=Lt(xe.head,xe.anchor)<0;l[F]=new _t(Ce?Z:z,Ce?z:Z)}else l[F]=new _t(z,z)}return new dn(l,e.sel.primIndex)}function $a(e){e.doc.mode=jn(e.options,e.doc.modeOption),Fi(e)}function Fi(e){e.doc.iter(function(n){n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Ii(e,100),e.state.modeGen++,e.curOp&&qr(e)}function Ka(e,n){return n.from.ch==0&&n.to.ch==0&&St(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ya(e,n,u,l){function f(ht){return u?u[ht]:null}function y(ht,ct,xt){Wl(ht,ct,xt,l),Fr(ht,"change",ht,n)}function F(ht,ct){for(var xt=[],Pt=ht;Pt<ct;++Pt)xt.push(new Hi(Z[Pt],f(Pt),l));return xt}var U=n.from,z=n.to,Z=n.text,xe=At(e,U.line),Ce=At(e,z.line),Ne=St(Z),Re=f(Z.length-1),Ye=z.line-U.line;if(n.full)e.insert(0,F(0,Z.length)),e.remove(Z.length,e.size-Z.length);else if(Ka(e,n)){var et=F(0,Z.length-1);y(Ce,Ce.text,Re),Ye&&e.remove(U.line,Ye),et.length&&e.insert(U.line,et)}else if(xe==Ce)if(Z.length==1)y(xe,xe.text.slice(0,U.ch)+Ne+xe.text.slice(z.ch),Re);else{var at=F(1,Z.length-1);at.push(new Hi(Ne+xe.text.slice(z.ch),Re,l)),y(xe,xe.text.slice(0,U.ch)+Z[0],f(0)),e.insert(U.line+1,at)}else if(Z.length==1)y(xe,xe.text.slice(0,U.ch)+Z[0]+Ce.text.slice(z.ch),f(0)),e.remove(U.line+1,Ye);else{y(xe,xe.text.slice(0,U.ch)+Z[0],f(0)),y(Ce,Ne+Ce.text.slice(z.ch),Re);var ft=F(1,Z.length-1);Ye>1&&e.remove(U.line+1,Ye-1),e.insert(U.line+1,ft)}Fr(e,"change",e,n)}function di(e,n,u){function l(f,y,F){if(f.linked)for(var U=0;U<f.linked.length;++U){var z=f.linked[U];if(z.doc!=y){var Z=F&&z.sharedHist;u&&!Z||(n(z.doc,Z),l(z.doc,f,Z))}}}l(e,null,!0)}function vu(e,n){if(n.cm)throw new Error("This document is already in use.");e.doc=n,n.cm=e,au(e),$a(e),Kt(e),e.options.direction=n.direction,e.options.lineWrapping||Fa(e),e.options.mode=n.modeOption,qr(e)}function Kt(e){(e.doc.direction=="rtl"?Ve:te)(e.display.lineDiv,"CodeMirror-rtl")}function gu(e){on(e,function(){Kt(e),qr(e)})}function ti(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function _s(e,n){var u={from:se(n.from),to:Wn(n),text:ai(e,n.from,n.to)};return yu(e,u,n.from.line,n.to.line+1),di(e,function(l){return yu(l,u,n.from.line,n.to.line+1)},!0),u}function ki(e){for(;e.length;){var n=St(e);if(n.ranges)e.pop();else break}}function Kf(e,n){if(n)return ki(e.done),St(e.done);if(e.done.length&&!St(e.done).ranges)return St(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),St(e.done)}function qs(e,n,u,l){var f=e.history;f.undone.length=0;var y=+new Date,F,U;if((f.lastOp==l||f.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&f.lastModTime>y-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(F=Kf(f,f.lastOp==l)))U=St(F.changes),Lt(n.from,n.to)==0&&Lt(n.from,U.to)==0?U.to=Wn(n):F.changes.push(_s(e,n));else{var z=St(f.done);for((!z||!z.ranges)&&na(e.sel,f.done),F={changes:[_s(e,n)],generation:f.generation},f.done.push(F);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=y,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=n.origin,U||Oe(e,"historyAdded")}function Yf(e,n,u,l){var f=n.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Jf(e,n,u,l){var f=e.history,y=l&&l.origin;u==f.lastSelOp||y&&f.lastSelOrigin==y&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==y||Yf(e,y,St(f.done),n))?f.done[f.done.length-1]=n:na(n,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=y,f.lastSelOp=u,l&&l.clearRedo!==!1&&ki(f.undone)}function na(e,n){var u=St(n);u&&u.ranges&&u.equals(e)||n.push(e)}function yu(e,n,u,l){var f=n["spans_"+e.id],y=0;e.iter(Math.max(e.first,u),Math.min(e.first+e.size,l),function(F){F.markedSpans&&((f||(f=n["spans_"+e.id]={}))[y]=F.markedSpans),++y})}function Xf(e){if(!e)return null;for(var n,u=0;u<e.length;++u)e[u].marker.explicitlyCleared?n||(n=e.slice(0,u)):n&&n.push(e[u]);return n?n.length?n:null:e}function pn(e,n){var u=n["spans_"+e.id];if(!u)return null;for(var l=[],f=0;f<n.text.length;++f)l.push(Xf(u[f]));return l}function el(e,n){var u=pn(e,n),l=Nl(e,n);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var y=u[f],F=l[f];if(y&&F){e:for(var U=0;U<F.length;++U){for(var z=F[U],Z=0;Z<y.length;++Z)if(y[Z].marker==z.marker)continue e;y.push(z)}}else F&&(u[f]=F)}return u}function Co(e,n,u){for(var l=[],f=0;f<e.length;++f){var y=e[f];if(y.ranges){l.push(u?dn.prototype.deepCopy.call(y):y);continue}var F=y.changes,U=[];l.push({changes:U});for(var z=0;z<F.length;++z){var Z=F[z],xe=void 0;if(U.push({from:Z.from,to:Z.to,text:Z.text}),n)for(var Ce in Z)(xe=Ce.match(/^spans_(\d+)$/))&&pt(n,Number(xe[1]))>-1&&(St(U)[Ce]=Z[Ce],delete Z[Ce])}}return l}function ia(e,n,u,l){if(l){var f=e.anchor;if(u){var y=Lt(n,f)<0;y!=Lt(u,f)<0?(f=n,n=u):y!=Lt(n,u)<0&&(n=u)}return new _t(f,n)}else return new _t(u||n,n)}function Kr(e,n,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),qt(e,new dn([ia(e.sel.primary(),n,u,f)],0),l)}function mu(e,n,u){for(var l=[],f=e.cm&&(e.cm.display.shift||e.extend),y=0;y<e.sel.ranges.length;y++)l[y]=ia(e.sel.ranges[y],n[y],null,f);var F=kn(e.cm,l,e.sel.primIndex);qt(e,F,u)}function ri(e,n,u,l){var f=e.sel.ranges.slice(0);f[n]=u,qt(e,kn(e.cm,f,e.sel.primIndex),l)}function Ja(e,n,u,l){qt(e,ci(n,u),l)}function xu(e,n,u){var l={ranges:n.ranges,update:function(f){this.ranges=[];for(var y=0;y<f.length;y++)this.ranges[y]=new _t(st(e,f[y].anchor),st(e,f[y].head))},origin:u&&u.origin};return Oe(e,"beforeSelectionChange",e,l),e.cm&&Oe(e.cm,"beforeSelectionChange",e.cm,l),l.ranges!=n.ranges?kn(e.cm,l.ranges,l.ranges.length-1):n}function tl(e,n,u){var l=e.history.done,f=St(l);f&&f.ranges?(l[l.length-1]=n,Xa(e,n,u)):qt(e,n,u)}function qt(e,n,u){Xa(e,n,u),Jf(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function Xa(e,n,u){(ze(e,"beforeSelectionChange")||e.cm&&ze(e.cm,"beforeSelectionChange"))&&(n=xu(e,n,u));var l=u&&u.bias||(Lt(n.primary().head,e.sel.primary().head)<0?-1:1);Qa(e,Za(e,n,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&Jt(e.cm)}function Qa(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Te(e.cm)),Fr(e,"cursorActivity",e))}function bu(e){Qa(e,Za(e,e.sel,null,!1))}function Za(e,n,u,l){for(var f,y=0;y<n.ranges.length;y++){var F=n.ranges[y],U=n.ranges.length==e.sel.ranges.length&&e.sel.ranges[y],z=rl(e,F.anchor,U&&U.anchor,u,l),Z=rl(e,F.head,U&&U.head,u,l);(f||z!=F.anchor||Z!=F.head)&&(f||(f=n.ranges.slice(0,y)),f[y]=new _t(z,Z))}return f?kn(e.cm,f,n.primIndex):n}function Oo(e,n,u,l,f){var y=At(e,n.line);if(y.markedSpans)for(var F=0;F<y.markedSpans.length;++F){var U=y.markedSpans[F],z=U.marker,Z="selectLeft"in z?!z.selectLeft:z.inclusiveLeft,xe="selectRight"in z?!z.selectRight:z.inclusiveRight;if((U.from==null||(Z?U.from<=n.ch:U.from<n.ch))&&(U.to==null||(xe?U.to>=n.ch:U.to>n.ch))){if(f&&(Oe(z,"beforeCursorEnter"),z.explicitlyCleared))if(y.markedSpans){--F;continue}else break;if(!z.atomic)continue;if(u){var Ce=z.find(l<0?1:-1),Ne=void 0;if((l<0?xe:Z)&&(Ce=wu(e,Ce,-l,Ce&&Ce.line==n.line?y:null)),Ce&&Ce.line==n.line&&(Ne=Lt(Ce,u))&&(l<0?Ne<0:Ne>0))return Oo(e,Ce,n,l,f)}var Re=z.find(l<0?-1:1);return(l<0?Z:xe)&&(Re=wu(e,Re,l,Re.line==n.line?y:null)),Re?Oo(e,Re,n,l,f):null}}return n}function rl(e,n,u,l,f){var y=l||1,F=Oo(e,n,u,y,f)||!f&&Oo(e,n,u,y,!0)||Oo(e,n,u,-y,f)||!f&&Oo(e,n,u,-y,!0);return F||(e.cantEdit=!0,nt(e.first,0))}function wu(e,n,u,l){return u<0&&n.ch==0?n.line>e.first?st(e,nt(n.line-1)):null:u>0&&n.ch==(l||At(e,n.line)).text.length?n.line<e.first+e.size-1?nt(n.line+1,0):null:new nt(n.line,n.ch+u)}function Su(e){e.setSelection(nt(e.firstLine(),0),nt(e.lastLine()),lt)}function Au(e,n,u){var l={canceled:!1,from:n.from,to:n.to,text:n.text,origin:n.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,y,F,U){f&&(l.from=st(e,f)),y&&(l.to=st(e,y)),F&&(l.text=F),U!==void 0&&(l.origin=U)}),Oe(e,"beforeChange",e,l),e.cm&&Oe(e.cm,"beforeChange",e.cm,l),l.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function To(e,n,u){if(e.cm){if(!e.cm.curOp)return Hr(e.cm,To)(e,n,u);if(e.cm.state.suppressEdits)return}if(!((ze(e,"beforeChange")||e.cm&&ze(e.cm,"beforeChange"))&&(n=Au(e,n,!0),!n))){var l=Sf&&!u&&Ul(e,n.from,n.to);if(l)for(var f=l.length-1;f>=0;--f)_a(e,{from:l[f].from,to:l[f].to,text:f?[""]:n.text,origin:n.origin});else _a(e,n)}}function _a(e,n){if(!(n.text.length==1&&n.text[0]==""&&Lt(n.from,n.to)==0)){var u=Ga(e,n);qs(e,n,u,e.cm?e.cm.curOp.id:NaN),pr(e,n,u,Nl(e,n));var l=[];di(e,function(f,y){!y&&pt(l,f.history)==-1&&(_f(f.history,n),l.push(f.history)),pr(f,n,null,Nl(f,n))})}}function qa(e,n,u){var l=e.cm&&e.cm.state.suppressEdits;if(!(l&&!u)){for(var f=e.history,y,F=e.sel,U=n=="undo"?f.done:f.undone,z=n=="undo"?f.undone:f.done,Z=0;Z<U.length&&(y=U[Z],!(u?y.ranges&&!y.equals(e.sel):!y.ranges));Z++);if(Z!=U.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(y=U.pop(),y.ranges){if(na(y,z),u&&!y.equals(e.sel)){qt(e,y,{clearRedo:!1});return}F=y}else if(l){U.push(y);return}else break;var xe=[];na(F,z),z.push({changes:xe,generation:f.generation}),f.generation=y.generation||++f.maxGeneration;for(var Ce=ze(e,"beforeChange")||e.cm&&ze(e.cm,"beforeChange"),Ne=function(et){var at=y.changes[et];if(at.origin=n,Ce&&!Au(e,at,!1))return U.length=0,{};xe.push(_s(e,at));var ft=et?Ga(e,at):St(U);pr(e,at,ft,el(e,at)),!et&&e.cm&&e.cm.scrollIntoView({from:at.from,to:Wn(at)});var ht=[];di(e,function(ct,xt){!xt&&pt(ht,ct.history)==-1&&(_f(ct.history,at),ht.push(ct.history)),pr(ct,at,null,el(ct,at))})},Re=y.changes.length-1;Re>=0;--Re){var Ye=Ne(Re);if(Ye)return Ye.v}}}}function Eu(e,n){if(n!=0&&(e.first+=n,e.sel=new dn(Wt(e.sel.ranges,function(f){return new _t(nt(f.anchor.line+n,f.anchor.ch),nt(f.head.line+n,f.head.ch))}),e.sel.primIndex),e.cm)){qr(e.cm,e.first,e.first-n,n);for(var u=e.cm.display,l=u.viewFrom;l<u.viewTo;l++)Xi(e.cm,l,"gutter")}}function pr(e,n,u,l){if(e.cm&&!e.cm.curOp)return Hr(e.cm,pr)(e,n,u,l);if(n.to.line<e.first){Eu(e,n.text.length-1-(n.to.line-n.from.line));return}if(!(n.from.line>e.lastLine())){if(n.from.line<e.first){var f=n.text.length-1-(e.first-n.from.line);Eu(e,f),n={from:nt(e.first,0),to:nt(n.to.line+f,n.to.ch),text:[St(n.text)],origin:n.origin}}var y=e.lastLine();n.to.line>y&&(n={from:n.from,to:nt(y,At(e,y).text.length),text:[n.text[0]],origin:n.origin}),n.removed=ai(e,n.from,n.to),u||(u=Ga(e,n)),e.cm?oa(e.cm,n,l):Ya(e,n,l),Xa(e,u,lt),e.cantEdit&&rl(e,nt(e.firstLine(),0))&&(e.cantEdit=!1)}}function oa(e,n,u){var l=e.doc,f=e.display,y=n.from,F=n.to,U=!1,z=y.line;e.options.lineWrapping||(z=er(Ir(At(l,y.line))),l.iter(z,F.line+1,function(Re){if(Re==f.maxLine)return U=!0,!0})),l.sel.contains(n.from,n.to)>-1&&Te(e),Ya(l,n,u,Us(e)),e.options.lineWrapping||(l.iter(z,y.line+n.text.length,function(Re){var Ye=Wi(Re);Ye>f.maxLineLength&&(f.maxLine=Re,f.maxLineLength=Ye,f.maxLineChanged=!0,U=!1)}),U&&(e.curOp.updateMaxLine=!0)),wf(l,y.line),Ii(e,400);var Z=n.text.length-(F.line-y.line)-1;n.full?qr(e):y.line==F.line&&n.text.length==1&&!Ka(e.doc,n)?Xi(e,y.line,"text"):qr(e,y.line,F.line+1,Z);var xe=ze(e,"changes"),Ce=ze(e,"change");if(Ce||xe){var Ne={from:y,to:F,text:n.text,removed:n.removed,origin:n.origin};Ce&&Fr(e,"change",e,Ne),xe&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ne)}e.display.selForContextMenu=null}function Po(e,n,u,l,f){var y;l||(l=u),Lt(l,u)<0&&(y=[l,u],u=y[0],l=y[1]),typeof n=="string"&&(n=e.splitLines(n)),To(e,{from:u,to:l,text:n,origin:f})}function Qf(e,n,u,l){u<e.line?e.line+=l:n<e.line&&(e.line=n,e.ch=0)}function Zf(e,n,u,l){for(var f=0;f<e.length;++f){var y=e[f],F=!0;if(y.ranges){y.copied||(y=e[f]=y.deepCopy(),y.copied=!0);for(var U=0;U<y.ranges.length;U++)Qf(y.ranges[U].anchor,n,u,l),Qf(y.ranges[U].head,n,u,l);continue}for(var z=0;z<y.changes.length;++z){var Z=y.changes[z];if(u<Z.from.line)Z.from=nt(Z.from.line+l,Z.from.ch),Z.to=nt(Z.to.line+l,Z.to.ch);else if(n<=Z.to.line){F=!1;break}}F||(e.splice(0,f+1),f=0)}}function _f(e,n){var u=n.from.line,l=n.to.line,f=n.text.length-(l-u)-1;Zf(e.done,u,l,f),Zf(e.undone,u,l,f)}function aa(e,n,u,l){var f=n,y=n;return typeof n=="number"?y=At(e,ot(e,n)):f=er(n),f==null?null:(l(y,f)&&e.cm&&Xi(e.cm,f,u),y)}function sa(e){this.lines=e,this.parent=null;for(var n=0,u=0;u<e.length;++u)e[u].parent=this,n+=e[u].height;this.height=n}sa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,n){for(var u=e,l=e+n;u<l;++u){var f=this.lines[u];this.height-=f.height,If(f),Fr(f,"delete")}this.lines.splice(e,n)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,n,u){this.height+=u,this.lines=this.lines.slice(0,e).concat(n).concat(this.lines.slice(e));for(var l=0;l<n.length;++l)n[l].parent=this},iterN:function(e,n,u){for(var l=e+n;e<l;++e)if(u(this.lines[e]))return!0}};function es(e){this.children=e;for(var n=0,u=0,l=0;l<e.length;++l){var f=e[l];n+=f.chunkSize(),u+=f.height,f.parent=this}this.size=n,this.height=u,this.parent=null}es.prototype={chunkSize:function(){return this.size},removeInner:function(e,n){this.size-=n;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(e<f){var y=Math.min(n,f-e),F=l.height;if(l.removeInner(e,y),this.height-=F-l.height,f==y&&(this.children.splice(u--,1),l.parent=null),(n-=y)==0)break;e=0}else e-=f}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof sa))){var U=[];this.collapse(U),this.children=[new sa(U)],this.children[0].parent=this}},collapse:function(e){for(var n=0;n<this.children.length;++n)this.children[n].collapse(e)},insertInner:function(e,n,u){this.size+=n.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],y=f.chunkSize();if(e<=y){if(f.insertInner(e,n,u),f.lines&&f.lines.length>50){for(var F=f.lines.length%25+25,U=F;U<f.lines.length;){var z=new sa(f.lines.slice(U,U+=25));f.height-=z.height,this.children.splice(++l,0,z),z.parent=this}f.lines=f.lines.slice(0,F),this.maybeSpill()}break}e-=y}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var n=e.children.splice(e.children.length-5,5),u=new es(n);if(e.parent){e.size-=u.size,e.height-=u.height;var f=pt(e.parent.children,e);e.parent.children.splice(f+1,0,u)}else{var l=new es(e.children);l.parent=e,e.children=[l,u],e=l}u.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,n,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],y=f.chunkSize();if(e<y){var F=Math.min(n,y-e);if(f.iterN(e,F,u))return!0;if((n-=F)==0)break;e=0}else e-=y}}};var la=function(e,n,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=n};la.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,u=this.line,l=er(u);if(!(l==null||!n)){for(var f=0;f<n.length;++f)n[f]==this&&n.splice(f--,1);n.length||(u.widgets=null);var y=Ko(this);xn(u,Math.max(0,u.height-y)),e&&(on(e,function(){Cu(e,u,-y),Xi(e,l,"widget")}),Fr(e,"lineWidgetCleared",e,this,l))}},la.prototype.changed=function(){var e=this,n=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Ko(this)-n;!f||(Ci(this.doc,l)||xn(l,l.height+f),u&&on(u,function(){u.curOp.forceUpdate=!0,Cu(u,l,f),Fr(u,"lineWidgetChanged",u,e,er(l))}))},He(la);function Cu(e,n,u){Jn(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&An(e,u)}function qf(e,n,u,l){var f=new la(e,u,l),y=e.cm;return y&&f.noHScroll&&(y.display.alignWidgets=!0),aa(e,n,"widget",function(F){var U=F.widgets||(F.widgets=[]);if(f.insertAt==null?U.push(f):U.splice(Math.min(U.length,Math.max(0,f.insertAt)),0,f),f.line=F,y&&!Ci(e,F)){var z=Jn(F)<e.scrollTop;xn(F,F.height+Ko(f)),z&&An(y,f.height),y.curOp.forceUpdate=!0}return!0}),y&&Fr(y,"lineWidgetAdded",y,f,typeof n=="number"?n:er(n)),f}var Ou=0,Mi=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++Ou};Mi.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&Sr(e),ze(this,"clear")){var u=this.find();u&&Fr(this,"clear",u.from,u.to)}for(var l=null,f=null,y=0;y<this.lines.length;++y){var F=this.lines[y],U=Ho(F.markedSpans,this);e&&!this.collapsed?Xi(e,er(F),"text"):e&&(U.to!=null&&(f=er(F)),U.from!=null&&(l=er(F))),F.markedSpans=Cf(F.markedSpans,U),U.from==null&&this.collapsed&&!Ci(this.doc,F)&&e&&xn(F,ho(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var z=0;z<this.lines.length;++z){var Z=Ir(this.lines[z]),xe=Wi(Z);xe>e.display.maxLineLength&&(e.display.maxLine=Z,e.display.maxLineLength=xe,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&qr(e,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&bu(e.doc)),e&&Fr(e,"markerCleared",e,this,l,f),n&&cn(e),this.parent&&this.parent.clear()}},Mi.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var u,l,f=0;f<this.lines.length;++f){var y=this.lines[f],F=Ho(y.markedSpans,this);if(F.from!=null&&(u=nt(n?y:er(y),F.from),e==-1))return u;if(F.to!=null&&(l=nt(n?y:er(y),F.to),e==1))return l}return u&&{from:u,to:l}},Mi.prototype.changed=function(){var e=this,n=this.find(-1,!0),u=this,l=this.doc.cm;!n||!l||on(l,function(){var f=n.line,y=er(n.line),F=Jo(l,y);if(F&&(ru(F),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Ci(u.doc,f)&&u.height!=null){var U=u.height;u.height=null;var z=Ko(u)-U;z&&xn(f,f.height+z)}Fr(l,"markerChanged",l,e)})},Mi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(!n.maybeHiddenMarkers||pt(n.maybeHiddenMarkers,this)==-1)&&(n.maybeUnhiddenMarkers||(n.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Mi.prototype.detachLine=function(e){if(this.lines.splice(pt(this.lines,e),1),!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(n.maybeHiddenMarkers||(n.maybeHiddenMarkers=[])).push(this)}},He(Mi);function Io(e,n,u,l,f){if(l&&l.shared)return Hn(e,n,u,l,f);if(e.cm&&!e.cm.curOp)return Hr(e.cm,Io)(e,n,u,l,f);var y=new Mi(e,f),F=Lt(n,u);if(l&&Qe(l,y,!1),F>0||F==0&&y.clearWhenEmpty!==!1)return y;if(y.replacedWith&&(y.collapsed=!0,y.widgetNode=de("span",[y.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||y.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(y.widgetNode.insertLeft=!0)),y.collapsed){if(Et(e,n.line,n,u,y)||n.line!=u.line&&Et(e,u.line,n,u,y))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ef()}y.addToHistory&&qs(e,{from:n,to:u,origin:"markText"},e.sel,NaN);var U=n.line,z=e.cm,Z;if(e.iter(U,u.line+1,function(Ce){z&&y.collapsed&&!z.options.lineWrapping&&Ir(Ce)==z.display.maxLine&&(Z=!0),y.collapsed&&U!=n.line&&xn(Ce,0),wd(Ce,new Pa(y,U==n.line?n.ch:null,U==u.line?u.ch:null),e.cm&&e.cm.curOp),++U}),y.collapsed&&e.iter(n.line,u.line+1,function(Ce){Ci(e,Ce)&&xn(Ce,0)}),y.clearOnEnter&&D(y,"beforeCursorEnter",function(){return y.clear()}),y.readOnly&&(Af(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),y.collapsed&&(y.id=++Ou,y.atomic=!0),z){if(Z&&(z.curOp.updateMaxLine=!0),y.collapsed)qr(z,n.line,u.line+1);else if(y.className||y.startStyle||y.endStyle||y.css||y.attributes||y.title)for(var xe=n.line;xe<=u.line;xe++)Xi(z,xe,"text");y.atomic&&bu(z.doc),Fr(z,"markerAdded",z,y)}return y}var rr=function(e,n){this.markers=e,this.primary=n;for(var u=0;u<e.length;++u)e[u].parent=this};rr.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Fr(this,"clear")}},rr.prototype.find=function(e,n){return this.primary.find(e,n)},He(rr);function Hn(e,n,u,l,f){l=Qe(l),l.shared=!1;var y=[Io(e,n,u,l,f)],F=y[0],U=l.widgetNode;return di(e,function(z){U&&(l.widgetNode=U.cloneNode(!0)),y.push(Io(z,st(z,n),st(z,u),l,f));for(var Z=0;Z<z.linked.length;++Z)if(z.linked[Z].isParent)return;F=St(y)}),new rr(y,F)}function Tu(e){return e.findMarks(nt(e.first,0),e.clipPos(nt(e.lastLine())),function(n){return n.parent})}function nl(e,n){for(var u=0;u<n.length;u++){var l=n[u],f=l.find(),y=e.clipPos(f.from),F=e.clipPos(f.to);if(Lt(y,F)){var U=Io(e,y,F,l.primary,l.primary.type);l.markers.push(U),U.parent=l}}}function Pu(e){for(var n=function(l){var f=e[l],y=[f.primary.doc];di(f.primary.doc,function(z){return y.push(z)});for(var F=0;F<f.markers.length;F++){var U=f.markers[F];pt(y,U.doc)==-1&&(U.parent=null,f.markers.splice(F--,1))}},u=0;u<e.length;u++)n(u)}var Fo=0,en=function(e,n,u,l,f){if(!(this instanceof en))return new en(e,n,u,l,f);u==null&&(u=0),es.call(this,[new sa([new Hi("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var y=nt(u,0);this.sel=ci(y),this.history=new ti(null),this.id=++Fo,this.modeOption=n,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Ya(this,{from:y,to:y,text:e}),qt(this,ci(y),lt)};en.prototype=wt(es.prototype,{constructor:en,iter:function(e,n,u){u?this.iterN(e-this.first,n-e,u):this.iterN(this.first,this.first+this.size,e)},insert:function(e,n){for(var u=0,l=0;l<n.length;++l)u+=n[l].height;this.insertInner(e-this.first,n,u)},remove:function(e,n){this.removeInner(e-this.first,n)},getValue:function(e){var n=Ai(this,this.first,this.first+this.size);return e===!1?n:n.join(e||this.lineSeparator())},setValue:Rr(function(e){var n=nt(this.first,0),u=this.first+this.size-1;To(this,{from:n,to:nt(u,At(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&fi(this.cm,0,0),qt(this,ci(n),lt)}),replaceRange:function(e,n,u,l){n=st(this,n),u=u?st(this,u):n,Po(this,e,n,u,l)},getRange:function(e,n,u){var l=ai(this,st(this,e),st(this,n));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(e){var n=this.getLineHandle(e);return n&&n.text},getLineHandle:function(e){if(Yn(this,e))return At(this,e)},getLineNumber:function(e){return er(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=At(this,e)),Ir(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return st(this,e)},getCursor:function(e){var n=this.sel.primary(),u;return e==null||e=="head"?u=n.head:e=="anchor"?u=n.anchor:e=="end"||e=="to"||e===!1?u=n.to():u=n.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Rr(function(e,n,u){Ja(this,st(this,typeof e=="number"?nt(e,n||0):e),null,u)}),setSelection:Rr(function(e,n,u){Ja(this,st(this,e),st(this,n||e),u)}),extendSelection:Rr(function(e,n,u){Kr(this,st(this,e),n&&st(this,n),u)}),extendSelections:Rr(function(e,n){mu(this,Zt(this,e),n)}),extendSelectionsBy:Rr(function(e,n){var u=Wt(this.sel.ranges,e);mu(this,Zt(this,u),n)}),setSelections:Rr(function(e,n,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new _t(st(this,e[f].anchor),st(this,e[f].head||e[f].anchor));n==null&&(n=Math.min(e.length-1,this.sel.primIndex)),qt(this,kn(this.cm,l,n),u)}}),addSelection:Rr(function(e,n,u){var l=this.sel.ranges.slice(0);l.push(new _t(st(this,e),st(this,n||e))),qt(this,kn(this.cm,l,l.length-1),u)}),getSelection:function(e){for(var n=this.sel.ranges,u,l=0;l<n.length;l++){var f=ai(this,n[l].from(),n[l].to());u=u?u.concat(f):f}return e===!1?u:u.join(e||this.lineSeparator())},getSelections:function(e){for(var n=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=ai(this,u[l].from(),u[l].to());e!==!1&&(f=f.join(e||this.lineSeparator())),n[l]=f}return n},replaceSelection:function(e,n,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=e;this.replaceSelections(l,n,u||"+input")},replaceSelections:Rr(function(e,n,u){for(var l=[],f=this.sel,y=0;y<f.ranges.length;y++){var F=f.ranges[y];l[y]={from:F.from(),to:F.to(),text:this.splitLines(e[y]),origin:u}}for(var U=n&&n!="end"&&Ze(this,l,n),z=l.length-1;z>=0;z--)To(this,l[z]);U?tl(this,U):this.cm&&Jt(this.cm)}),undo:Rr(function(){qa(this,"undo")}),redo:Rr(function(){qa(this,"redo")}),undoSelection:Rr(function(){qa(this,"undo",!0)}),redoSelection:Rr(function(){qa(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,n=0,u=0,l=0;l<e.done.length;l++)e.done[l].ranges||++n;for(var f=0;f<e.undone.length;f++)e.undone[f].ranges||++u;return{undo:n,redo:u}},clearHistory:function(){var e=this;this.history=new ti(this.history),di(this,function(n){return n.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Co(this.history.done),undone:Co(this.history.undone)}},setHistory:function(e){var n=this.history=new ti(this.history);n.done=Co(e.done.slice(0),null,!0),n.undone=Co(e.undone.slice(0),null,!0)},setGutterMarker:Rr(function(e,n,u){return aa(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[n]=u,!u&&$(f)&&(l.gutterMarkers=null),!0})}),clearGutter:Rr(function(e){var n=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&aa(n,u,"gutter",function(){return u.gutterMarkers[e]=null,$(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(e){var n;if(typeof e=="number"){if(!Yn(this,e)||(n=e,e=At(this,e),!e))return null}else if(n=er(e),n==null)return null;return{line:n,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Rr(function(e,n,u){return aa(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass";if(!l[f])l[f]=u;else{if(fe(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:Rr(function(e,n,u){return aa(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",y=l[f];if(y)if(u==null)l[f]=null;else{var F=y.match(fe(u));if(!F)return!1;var U=F.index+F[0].length;l[f]=y.slice(0,F.index)+(!F.index||U==y.length?"":" ")+y.slice(U)||null}else return!1;return!0})}),addLineWidget:Rr(function(e,n,u){return qf(this,e,n,u)}),removeLineWidget:function(e){e.clear()},markText:function(e,n,u){return Io(this,st(this,e),st(this,n),u,u&&u.type||"range")},setBookmark:function(e,n){var u={replacedWith:n&&(n.nodeType==null?n.widget:n),insertLeft:n&&n.insertLeft,clearWhenEmpty:!1,shared:n&&n.shared,handleMouseEvents:n&&n.handleMouseEvents};return e=st(this,e),Io(this,e,e,u,"bookmark")},findMarksAt:function(e){e=st(this,e);var n=[],u=At(this,e.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=e.ch)&&(f.to==null||f.to>=e.ch)&&n.push(f.marker.parent||f.marker)}return n},findMarks:function(e,n,u){e=st(this,e),n=st(this,n);var l=[],f=e.line;return this.iter(e.line,n.line+1,function(y){var F=y.markedSpans;if(F)for(var U=0;U<F.length;U++){var z=F[U];!(z.to!=null&&f==e.line&&e.ch>=z.to||z.from==null&&f!=e.line||z.from!=null&&f==n.line&&z.from>=n.ch)&&(!u||u(z.marker))&&l.push(z.marker.parent||z.marker)}++f}),l},getAllMarks:function(){var e=[];return this.iter(function(n){var u=n.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&e.push(u[l].marker)}),e},posFromIndex:function(e){var n,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var y=f.text.length+l;if(y>e)return n=e,!0;e-=y,++u}),st(this,nt(u,n))},indexFromPos:function(e){e=st(this,e);var n=e.ch;if(e.line<this.first||e.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,e.line,function(l){n+=l.text.length+u}),n},copy:function(e){var n=new en(Ai(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return n.scrollTop=this.scrollTop,n.scrollLeft=this.scrollLeft,n.sel=this.sel,n.extend=!1,e&&(n.history.undoDepth=this.history.undoDepth,n.setHistory(this.getHistory())),n},linkedDoc:function(e){e||(e={});var n=this.first,u=this.first+this.size;e.from!=null&&e.from>n&&(n=e.from),e.to!=null&&e.to<u&&(u=e.to);var l=new en(Ai(this,n,u),e.mode||this.modeOption,n,this.lineSep,this.direction);return e.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:e.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],nl(l,Tu(this)),l},unlinkDoc:function(e){if(e instanceof hr&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n){var u=this.linked[n];if(u.doc==e){this.linked.splice(n,1),e.unlinkDoc(this),Pu(Tu(this));break}}if(e.history==this.history){var l=[e.id];di(e,function(f){return l.push(f.id)},!0),e.history=new ti(null),e.history.done=Co(this.history.done,l),e.history.undone=Co(this.history.undone,l)}},iterLinkedDocs:function(e){di(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Gn(e)},lineSeparator:function(){return this.lineSep||`
28
+ `},setDirection:Rr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(n){return n.order=null}),this.cm&&gu(this.cm))})}),en.prototype.eachLine=en.prototype.iter;var il=0;function ec(e){var n=this;if(al(n),!(Pe(n,e)||li(n.display,e))){it(e),b&&(il=+new Date);var u=Ji(n,e,!0),l=e.dataTransfer.files;if(!(!u||n.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,y=Array(f),F=0,U=function(){++F==f&&Hr(n,function(){u=st(n.doc,u);var Re={from:u,to:u,text:n.doc.splitLines(y.filter(function(Ye){return Ye!=null}).join(n.doc.lineSeparator())),origin:"paste"};To(n.doc,Re),tl(n.doc,ci(st(n.doc,u),st(n.doc,Wn(Re))))})()},z=function(Re,Ye){if(n.options.allowDropFileTypes&&pt(n.options.allowDropFileTypes,Re.type)==-1){U();return}var et=new FileReader;et.onerror=function(){return U()},et.onload=function(){var at=et.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(at)){U();return}y[Ye]=at,U()},et.readAsText(Re)},Z=0;Z<l.length;Z++)z(l[Z],Z);else{if(n.state.draggingText&&n.doc.sel.contains(u)>-1){n.state.draggingText(e),setTimeout(function(){return n.display.input.focus()},20);return}try{var xe=e.dataTransfer.getData("Text");if(xe){var Ce;if(n.state.draggingText&&!n.state.draggingText.copy&&(Ce=n.listSelections()),Xa(n.doc,ci(u,u)),Ce)for(var Ne=0;Ne<Ce.length;++Ne)Po(n.doc,"",Ce[Ne].anchor,Ce[Ne].head,"drag");n.replaceSelection(xe,"around","paste"),n.display.input.focus()}}catch(Re){}}}}function Iu(e,n){if(b&&(!e.state.draggingText||+new Date-il<100)){Yt(n);return}if(!(Pe(e,n)||li(e.display,n))&&(n.dataTransfer.setData("Text",e.getSelection()),n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage&&!j)){var u=ve("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",B&&(u.width=u.height=1,e.display.wrapper.appendChild(u),u._top=u.offsetTop),n.dataTransfer.setDragImage(u,0,0),B&&u.parentNode.removeChild(u)}}function ol(e,n){var u=Ji(e,n);if(!!u){var l=document.createDocumentFragment();Vs(e,u,l),e.display.dragCursor||(e.display.dragCursor=ve("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),ye(e.display.dragCursor,l)}}function al(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function sl(e){if(!!document.getElementsByClassName){for(var n=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<n.length;l++){var f=n[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var y=0;y<u.length;y++)e(u[y])})}}var ua=!1;function tc(){ua||(rc(),ua=!0)}function rc(){var e;D(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,sl(ko)},100))}),D(window,"blur",function(){return sl(_o)})}function ko(e){var n=e.display;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.scrollbarsClipped=!1,e.setSize()}for(var pi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},fa=0;fa<10;fa++)pi[fa+48]=pi[fa+96]=String(fa);for(var _i=65;_i<=90;_i++)pi[_i]=String.fromCharCode(_i);for(var ca=1;ca<=12;ca++)pi[ca+111]=pi[ca+63235]="F"+ca;var hi={};hi.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},hi.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},hi.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},hi.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},hi.default=C?hi.macDefault:hi.pcDefault;function Fu(e){var n=e.split(/-(?!$)/);e=n[n.length-1];for(var u,l,f,y,F=0;F<n.length-1;F++){var U=n[F];if(/^(cmd|meta|m)$/i.test(U))y=!0;else if(/^a(lt)?$/i.test(U))u=!0;else if(/^(c|ctrl|control)$/i.test(U))l=!0;else if(/^s(hift)?$/i.test(U))f=!0;else throw new Error("Unrecognized modifier name: "+U)}return u&&(e="Alt-"+e),l&&(e="Ctrl-"+e),y&&(e="Cmd-"+e),f&&(e="Shift-"+e),e}function ku(e){var n={};for(var u in e)if(e.hasOwnProperty(u)){var l=e[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete e[u];continue}for(var f=Wt(u.split(" "),Fu),y=0;y<f.length;y++){var F=void 0,U=void 0;y==f.length-1?(U=f.join(" "),F=l):(U=f.slice(0,y+1).join(" "),F="...");var z=n[U];if(!z)n[U]=F;else if(z!=F)throw new Error("Inconsistent bindings for "+U)}delete e[u]}for(var Z in n)e[Z]=n[Z];return e}function qi(e,n,u,l){n=eo(n);var f=n.call?n.call(e,l):n[e];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&u(f))return"handled";if(n.fallthrough){if(Object.prototype.toString.call(n.fallthrough)!="[object Array]")return qi(e,n.fallthrough,u,l);for(var y=0;y<n.fallthrough.length;y++){var F=qi(e,n.fallthrough[y],u,l);if(F)return F}}}function ll(e){var n=typeof e=="string"?e:pi[e.keyCode];return n=="Ctrl"||n=="Alt"||n=="Shift"||n=="Mod"}function Mu(e,n,u){var l=e;return n.altKey&&l!="Alt"&&(e="Alt-"+e),(Q?n.metaKey:n.ctrlKey)&&l!="Ctrl"&&(e="Ctrl-"+e),(Q?n.ctrlKey:n.metaKey)&&l!="Mod"&&(e="Cmd-"+e),!u&&n.shiftKey&&l!="Shift"&&(e="Shift-"+e),e}function Ru(e,n){if(B&&e.keyCode==34&&e.char)return!1;var u=pi[e.keyCode];return u==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(u=e.code),Mu(u,e,n))}function eo(e){return typeof e=="string"?hi[e]:e}function Mo(e,n){for(var u=e.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var y=n(u[f]);l.length&&Lt(y.from,St(l).to)<=0;){var F=l.pop();if(Lt(F.from,y.from)<0){y.from=F.from;break}}l.push(y)}on(e,function(){for(var U=l.length-1;U>=0;U--)Po(e.doc,"",l[U].from,l[U].to,"+delete");Jt(e)})}function br(e,n,u){var l=be(e.text,n+u,u);return l<0||l>e.text.length?null:l}function ul(e,n,u){var l=br(e,n.ch,u);return l==null?null:new nt(n.line,l,u<0?"after":"before")}function Lu(e,n,u,l,f){if(e){n.doc.direction=="rtl"&&(f=-f);var y=P(u,n.doc.direction);if(y){var F=f<0?St(y):y[0],U=f<0==(F.level==1),z=U?"after":"before",Z;if(F.level>0||n.doc.direction=="rtl"){var xe=co(n,u);Z=f<0?u.text.length-1:0;var Ce=Qn(n,xe,Z).top;Z=Ae(function(Ne){return Qn(n,xe,Ne).top==Ce},f<0==(F.level==1)?F.from:F.to-1,Z),z=="before"&&(Z=br(u,Z,1))}else Z=f<0?F.to:F.from;return new nt(l,Z,z)}}return new nt(l,f<0?u.text.length:0,f<0?"before":"after")}function nc(e,n,u,l){var f=P(n,e.doc.direction);if(!f)return ul(n,u,l);u.ch>=n.text.length?(u.ch=n.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var y=W(f,u.ch,u.sticky),F=f[y];if(e.doc.direction=="ltr"&&F.level%2==0&&(l>0?F.to>u.ch:F.from<u.ch))return ul(n,u,l);var U=function(ft,ht){return br(n,ft instanceof nt?ft.ch:ft,ht)},z,Z=function(ft){return e.options.lineWrapping?(z=z||co(e,n),iu(e,n,z,ft)):{begin:0,end:n.text.length}},xe=Z(u.sticky=="before"?U(u,-1):u.ch);if(e.doc.direction=="rtl"||F.level==1){var Ce=F.level==1==l<0,Ne=U(u,Ce?1:-1);if(Ne!=null&&(Ce?Ne<=F.to&&Ne<=xe.end:Ne>=F.from&&Ne>=xe.begin)){var Re=Ce?"before":"after";return new nt(u.line,Ne,Re)}}var Ye=function(ft,ht,ct){for(var xt=function(ar,Lr){return Lr?new nt(u.line,U(ar,1),"before"):new nt(u.line,ar,"after")};ft>=0&&ft<f.length;ft+=ht){var Pt=f[ft],Ot=ht>0==(Pt.level!=1),Vt=Ot?ct.begin:U(ct.end,-1);if(Pt.from<=Vt&&Vt<Pt.to||(Vt=Ot?Pt.from:U(Pt.to,-1),ct.begin<=Vt&&Vt<ct.end))return xt(Vt,Ot)}},et=Ye(y+l,l,xe);if(et)return et;var at=l>0?xe.end:U(xe.begin,-1);return at!=null&&!(l>0&&at==n.text.length)&&(et=Ye(l>0?0:f.length-1,l,Z(at)),et)?et:null}var Mn={selectAll:Su,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),lt)},killLine:function(e){return Mo(e,function(n){if(n.empty()){var u=At(e.doc,n.head.line).text.length;return n.head.ch==u&&n.head.line<e.lastLine()?{from:n.head,to:nt(n.head.line+1,0)}:{from:n.head,to:nt(n.head.line,u)}}else return{from:n.from(),to:n.to()}})},deleteLine:function(e){return Mo(e,function(n){return{from:nt(n.from().line,0),to:st(e.doc,nt(n.to().line+1,0))}})},delLineLeft:function(e){return Mo(e,function(n){return{from:nt(n.from().line,0),to:n.from()}})},delWrappedLineLeft:function(e){return Mo(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return{from:l,to:n.from()}})},delWrappedLineRight:function(e){return Mo(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div");return{from:n.from(),to:l}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(nt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(nt(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(n){return Du(e,n.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(n){return Nu(e,n.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(n){return ic(e,n.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div")},mt)},goLineLeft:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:0,top:u},"div")},mt)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return l.ch<e.getLine(l.line).search(/\S/)?Nu(e,n.head):l},mt)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var n=[],u=e.listSelections(),l=e.options.tabSize,f=0;f<u.length;f++){var y=u[f].from(),F=Xe(e.getLine(y.line),y.ch,l);n.push(It(l-F%l))}e.replaceSelections(n)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return on(e,function(){for(var n=e.listSelections(),u=[],l=0;l<n.length;l++)if(!!n[l].empty()){var f=n[l].head,y=At(e.doc,f.line).text;if(y){if(f.ch==y.length&&(f=new nt(f.line,f.ch-1)),f.ch>0)f=new nt(f.line,f.ch+1),e.replaceRange(y.charAt(f.ch-1)+y.charAt(f.ch-2),nt(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var F=At(e.doc,f.line-1).text;F&&(f=new nt(f.line,1),e.replaceRange(y.charAt(0)+e.doc.lineSeparator()+F.charAt(F.length-1),nt(f.line-1,F.length-1),f,"+transpose"))}}u.push(new _t(f,f))}e.setSelections(u)})},newlineAndIndent:function(e){return on(e,function(){for(var n=e.listSelections(),u=n.length-1;u>=0;u--)e.replaceRange(e.doc.lineSeparator(),n[u].anchor,n[u].head,"+input");n=e.listSelections();for(var l=0;l<n.length;l++)e.indentLine(n[l].from().line,null,!0);Jt(e)})},openLine:function(e){return e.replaceSelection(`
29
+ `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Du(e,n){var u=At(e.doc,n),l=Ir(u);return l!=u&&(n=er(l)),Lu(!0,e,l,n,1)}function ic(e,n){var u=At(e.doc,n),l=Tf(u);return l!=u&&(n=er(l)),Lu(!0,e,u,n,-1)}function Nu(e,n){var u=Du(e,n.line),l=At(e.doc,u.line),f=P(l,e.doc.direction);if(!f||f[0].level==0){var y=Math.max(u.ch,l.text.search(/\S/)),F=n.line==u.line&&n.ch<=y&&n.ch;return nt(u.line,F?0:y,u.sticky)}return u}function ts(e,n,u){if(typeof n=="string"&&(n=Mn[n],!n))return!1;e.display.input.ensurePolled();var l=e.display.shift,f=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),u&&(e.display.shift=!1),f=n(e)!=qe}finally{e.display.shift=l,e.state.suppressEdits=!1}return f}function Od(e,n,u){for(var l=0;l<e.state.keyMaps.length;l++){var f=qi(n,e.state.keyMaps[l],u,e);if(f)return f}return e.options.extraKeys&&qi(n,e.options.extraKeys,u,e)||qi(n,e.options.keyMap,u,e)}var Td=new ut;function rs(e,n,u,l){var f=e.state.keySeq;if(f){if(ll(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:Td.set(50,function(){e.state.keySeq==f&&(e.state.keySeq=null,e.display.input.reset())}),oc(e,f+" "+n,u,l))return!0}return oc(e,n,u,l)}function oc(e,n,u,l){var f=Od(e,n,l);return f=="multi"&&(e.state.keySeq=n),f=="handled"&&Fr(e,"keyHandled",e,n,u),(f=="handled"||f=="multi")&&(it(u),lu(e)),!!f}function ac(e,n){var u=Ru(n,!0);return u?n.shiftKey&&!e.state.keySeq?rs(e,"Shift-"+u,n,function(l){return ts(e,l,!0)})||rs(e,u,n,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return ts(e,l)}):rs(e,u,n,function(l){return ts(e,l)}):!1}function Pd(e,n,u){return rs(e,"'"+u+"'",n,function(l){return ts(e,l,!0)})}var Bu=null;function sc(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&(n.curOp.focus=De(),!Pe(n,e))){b&&S<11&&e.keyCode==27&&(e.returnValue=!1);var u=e.keyCode;n.display.shift=u==16||e.shiftKey;var l=ac(n,e);B&&(Bu=l?u:null,!l&&u==88&&!$n&&(C?e.metaKey:e.ctrlKey)&&n.replaceSelection("",null,"cut")),c&&!C&&!l&&u==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(n.display.lineDiv.className)&&Id(n)}}function Id(e){var n=e.display.lineDiv;Ve(n,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(te(n,"CodeMirror-crosshair"),ce(document,"keyup",u),ce(document,"mouseover",u))}D(document,"keyup",u),D(document,"mouseover",u)}function lc(e){e.keyCode==16&&(this.doc.sel.shift=!1),Pe(this,e)}function fl(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&!(li(n.display,e)||Pe(n,e)||e.ctrlKey&&!e.altKey||C&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(B&&u==Bu){Bu=null,it(e);return}if(!(B&&(!e.which||e.which<10)&&ac(n,e))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(Pd(n,e,f)||n.display.input.onKeyPress(e))}}}var Ro=400,cl=function(e,n,u){this.time=e,this.pos=n,this.button=u};cl.prototype.compare=function(e,n,u){return this.time+Ro>e&&Lt(n,this.pos)==0&&u==this.button};var da,Ri;function uc(e,n){var u=+new Date;return Ri&&Ri.compare(u,e,n)?(da=Ri=null,"triple"):da&&da.compare(u,e,n)?(Ri=new cl(u,e,n),da=null,"double"):(da=new cl(u,e,n),Ri=null,"single")}function Uu(e){var n=this,u=n.display;if(!(Pe(n,e)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=e.shiftKey,li(u,e)){g||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!os(n,e)){var l=Ji(n,e),f=gn(e),y=l?uc(l,f):"single";window.focus(),f==1&&n.state.selectingText&&n.state.selectingText(e),!(l&&fc(n,f,l,y,e))&&(f==1?l?ju(n,l,y,e):Ft(e)==u.scroller&&it(e):f==2?(l&&Kr(n.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(K?n.display.input.onContextMenu(e):Ws(n)))}}}function fc(e,n,u,l,f){var y="Click";return l=="double"?y="Double"+y:l=="triple"&&(y="Triple"+y),y=(n==1?"Left":n==2?"Middle":"Right")+y,rs(e,Mu(y,f),f,function(F){if(typeof F=="string"&&(F=Mn[F]),!F)return!1;var U=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),U=F(e,u)!=qe}finally{e.state.suppressEdits=!1}return U})}function cc(e,n,u){var l=e.getOption("configureMouse"),f=l?l(e,n,u):{};if(f.unit==null){var y=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=y?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(f.extend==null||e.doc.extend)&&(f.extend=e.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=C?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(C?u.altKey:u.ctrlKey)),f}function ju(e,n,u,l){b?setTimeout(tt(zf,e),0):e.curOp.focus=De();var f=cc(e,u,l),y=e.doc.sel,F;e.options.dragDrop&&Xr&&!e.isReadOnly()&&u=="single"&&(F=y.contains(n))>-1&&(Lt((F=y.ranges[F]).from(),n)<0||n.xRel>0)&&(Lt(F.to(),n)>0||n.xRel<0)?ns(e,l,n,f):to(e,l,n,f)}function ns(e,n,u,l){var f=e.display,y=!1,F=Hr(e,function(Z){g&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Ws(e)),ce(f.wrapper.ownerDocument,"mouseup",F),ce(f.wrapper.ownerDocument,"mousemove",U),ce(f.scroller,"dragstart",z),ce(f.scroller,"drop",F),y||(it(Z),l.addNew||Kr(e.doc,u,null,null,l.extend),g&&!j||b&&S==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),U=function(Z){y=y||Math.abs(n.clientX-Z.clientX)+Math.abs(n.clientY-Z.clientY)>=10},z=function(){return y=!0};g&&(f.scroller.draggable=!0),e.state.draggingText=F,F.copy=!l.moveOnDrag,D(f.wrapper.ownerDocument,"mouseup",F),D(f.wrapper.ownerDocument,"mousemove",U),D(f.scroller,"dragstart",z),D(f.scroller,"drop",F),e.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function dc(e,n,u){if(u=="char")return new _t(n,n);if(u=="word")return e.findWordAt(n);if(u=="line")return new _t(nt(n.line,0),st(e.doc,nt(n.line+1,0)));var l=u(e,n);return new _t(l.from,l.to)}function to(e,n,u,l){b&&Ws(e);var f=e.display,y=e.doc;it(n);var F,U,z=y.sel,Z=z.ranges;if(l.addNew&&!l.extend?(U=y.sel.contains(u),U>-1?F=Z[U]:F=new _t(u,u)):(F=y.sel.primary(),U=y.sel.primIndex),l.unit=="rectangle")l.addNew||(F=new _t(u,u)),u=Ji(e,n,!0,!0),U=-1;else{var xe=dc(e,u,l.unit);l.extend?F=ia(F,xe.anchor,xe.head,l.extend):F=xe}l.addNew?U==-1?(U=Z.length,qt(y,kn(e,Z.concat([F]),U),{scroll:!1,origin:"*mouse"})):Z.length>1&&Z[U].empty()&&l.unit=="char"&&!l.extend?(qt(y,kn(e,Z.slice(0,U).concat(Z.slice(U+1)),0),{scroll:!1,origin:"*mouse"}),z=y.sel):ri(y,U,F,vt):(U=0,qt(y,new dn([F],0),vt),z=y.sel);var Ce=u;function Ne(ct){if(Lt(Ce,ct)!=0)if(Ce=ct,l.unit=="rectangle"){for(var xt=[],Pt=e.options.tabSize,Ot=Xe(At(y,u.line).text,u.ch,Pt),Vt=Xe(At(y,ct.line).text,ct.ch,Pt),ar=Math.min(Ot,Vt),Lr=Math.max(Ot,Vt),gr=Math.min(u.line,ct.line),hn=Math.min(e.lastLine(),Math.max(u.line,ct.line));gr<=hn;gr++){var an=At(y,gr).text,kr=dt(an,ar,Pt);ar==Lr?xt.push(new _t(nt(gr,kr),nt(gr,kr))):an.length>kr&&xt.push(new _t(nt(gr,kr),nt(gr,dt(an,Lr,Pt))))}xt.length||xt.push(new _t(u,u)),qt(y,kn(e,z.ranges.slice(0,U).concat(xt),U),{origin:"*mouse",scroll:!1}),e.scrollIntoView(ct)}else{var tn=F,zr=dc(e,ct,l.unit),Dr=tn.anchor,Er;Lt(zr.anchor,Dr)>0?(Er=zr.head,Dr=_e(tn.from(),zr.anchor)):(Er=zr.anchor,Dr=Ee(tn.to(),zr.head));var dr=z.ranges.slice(0);dr[U]=is(e,new _t(st(y,Dr),Er)),qt(y,kn(e,dr,U),vt)}}var Re=f.wrapper.getBoundingClientRect(),Ye=0;function et(ct){var xt=++Ye,Pt=Ji(e,ct,!0,l.unit=="rectangle");if(!!Pt)if(Lt(Pt,Ce)!=0){e.curOp.focus=De(),Ne(Pt);var Ot=Pn(f,y);(Pt.line>=Ot.to||Pt.line<Ot.from)&&setTimeout(Hr(e,function(){Ye==xt&&et(ct)}),150)}else{var Vt=ct.clientY<Re.top?-20:ct.clientY>Re.bottom?20:0;Vt&&setTimeout(Hr(e,function(){Ye==xt&&(f.scroller.scrollTop+=Vt,et(ct))}),50)}}function at(ct){e.state.selectingText=!1,Ye=1/0,ct&&(it(ct),f.input.focus()),ce(f.wrapper.ownerDocument,"mousemove",ft),ce(f.wrapper.ownerDocument,"mouseup",ht),y.history.lastSelOrigin=null}var ft=Hr(e,function(ct){ct.buttons===0||!gn(ct)?at(ct):et(ct)}),ht=Hr(e,at);e.state.selectingText=ht,D(f.wrapper.ownerDocument,"mousemove",ft),D(f.wrapper.ownerDocument,"mouseup",ht)}function is(e,n){var u=n.anchor,l=n.head,f=At(e.doc,u.line);if(Lt(u,l)==0&&u.sticky==l.sticky)return n;var y=P(f);if(!y)return n;var F=W(y,u.ch,u.sticky),U=y[F];if(U.from!=u.ch&&U.to!=u.ch)return n;var z=F+(U.from==u.ch==(U.level!=1)?0:1);if(z==0||z==y.length)return n;var Z;if(l.line!=u.line)Z=(l.line-u.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var xe=W(y,l.ch,l.sticky),Ce=xe-F||(l.ch-u.ch)*(U.level==1?-1:1);xe==z-1||xe==z?Z=Ce<0:Z=Ce>0}var Ne=y[z+(Z?-1:0)],Re=Z==(Ne.level==1),Ye=Re?Ne.from:Ne.to,et=Re?"after":"before";return u.ch==Ye&&u.sticky==et?n:new _t(new nt(u.line,Ye,et),l)}function Lo(e,n,u,l){var f,y;if(n.touches)f=n.touches[0].clientX,y=n.touches[0].clientY;else try{f=n.clientX,y=n.clientY}catch(Ne){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&it(n);var F=e.display,U=F.lineDiv.getBoundingClientRect();if(y>U.bottom||!ze(e,u))return Ct(n);y-=U.top-F.viewOffset;for(var z=0;z<e.display.gutterSpecs.length;++z){var Z=F.gutters.childNodes[z];if(Z&&Z.getBoundingClientRect().right>=f){var xe=Vn(e.doc,y),Ce=e.display.gutterSpecs[z];return Oe(e,u,e,xe,Ce.className,n),Ct(n)}}}function os(e,n){return Lo(e,n,"gutterClick",!0)}function dl(e,n){li(e.display,n)||pc(e,n)||Pe(e,n,"contextmenu")||K||e.display.input.onContextMenu(n)}function pc(e,n){return ze(e,"gutterContextMenu")?Lo(e,n,"gutterContextMenu",!1):!1}function pl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Xo(e)}var ro={toString:function(){return"CodeMirror.Init"}},as={},ss={};function Vu(e){var n=e.optionHandlers;function u(l,f,y,F){e.defaults[l]=f,y&&(n[l]=F?function(U,z,Z){Z!=ro&&y(U,z,Z)}:y)}e.defineOption=u,e.Init=ro,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,$a(l)},!0),u("indentUnit",2,$a,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){Fi(l),Xo(l),qr(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var y=[],F=l.doc.first;l.doc.iter(function(z){for(var Z=0;;){var xe=z.text.indexOf(f,Z);if(xe==-1)break;Z=xe+f.length,y.push(nt(F,xe))}F++});for(var U=y.length-1;U>=0;U--)Po(l.doc,f,y[U],nt(y[U].line,y[U].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,f,y){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),y!=ro&&l.refresh()}),u("specialCharPlaceholder",un,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",R?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,f){return l.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(l,f){return l.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(l,f){return l.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!J),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){pl(l),Eo(l)},!0),u("keyMap","default",function(l,f,y){var F=eo(f),U=y!=ro&&eo(y);U&&U.detach&&U.detach(l,F),F.attach&&F.attach(l,U||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Hu,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=za(f,l.options.lineNumbers),Eo(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?Bs(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return Zi(l)},!0),u("scrollbarStyle","native",function(l){In(l),Zi(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,f){l.display.gutterSpecs=za(l.options.gutters,f),Eo(l)},!0),u("firstLineNumber",1,Eo,!0),u("lineNumberFormatter",function(l){return l},Eo,!0),u("showCursorWhenSelecting",!1,Na,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(_o(l),l.display.input.blur()),l.display.input.readOnlyChanged(f)}),u("screenReaderLabel",null,function(l,f){f=f===""?null:f,l.display.input.screenReaderLabelChanged(f)}),u("disableInput",!1,function(l,f){f||l.display.input.reset()},!0),u("dragDrop",!0,Wu),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Na,!0),u("singleCursorHeightPerLine",!0,Na,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Fi,!0),u("addModeClass",!1,Fi,!0),u("pollInterval",100),u("undoDepth",200,function(l,f){return l.doc.history.undoDepth=f}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,Fi,!0),u("moveInputWithCursor",!0,function(l,f){f||l.display.input.resetPosition()}),u("tabindex",null,function(l,f){return l.display.input.getField().tabIndex=f||""}),u("autofocus",null),u("direction","ltr",function(l,f){return l.doc.setDirection(f)},!0),u("phrases",null)}function Wu(e,n,u){var l=u&&u!=ro;if(!n!=!l){var f=e.display.dragFunctions,y=n?D:ce;y(e.display.scroller,"dragstart",f.start),y(e.display.scroller,"dragenter",f.enter),y(e.display.scroller,"dragover",f.over),y(e.display.scroller,"dragleave",f.leave),y(e.display.scroller,"drop",f.drop)}}function Hu(e){e.options.lineWrapping?(Ve(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(te(e.display.wrapper,"CodeMirror-wrap"),Fa(e)),au(e),qr(e),Xo(e),setTimeout(function(){return Zi(e)},100)}function hr(e,n){var u=this;if(!(this instanceof hr))return new hr(e,n);this.options=n=n?Qe(n):{},Qe(as,n,!1);var l=n.value;typeof l=="string"?l=new en(l,n.mode,null,n.lineSeparator,n.direction):n.mode&&(l.modeOption=n.mode),this.doc=l;var f=new hr.inputStyles[n.inputStyle](this),y=this.display=new qn(e,l,f,n);y.wrapper.CodeMirror=this,pl(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),In(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ut,keySeq:null,specialChars:null},n.autofocus&&!R&&y.input.focus(),b&&S<11&&setTimeout(function(){return u.display.input.reset(!0)},20),hc(this),tc(),Sr(this),this.curOp.forceUpdate=!0,vu(this,l),n.autofocus&&!R||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&uu(u)},20):_o(this);for(var F in ss)ss.hasOwnProperty(F)&&ss[F](this,n[F],ro);Js(this),n.finishInit&&n.finishInit(this);for(var U=0;U<Do.length;++U)Do[U](this);cn(this),g&&n.lineWrapping&&getComputedStyle(y.lineDiv).textRendering=="optimizelegibility"&&(y.lineDiv.style.textRendering="auto")}hr.defaults=as,hr.optionHandlers=ss;function hc(e){var n=e.display;D(n.scroller,"mousedown",Hr(e,Uu)),b&&S<11?D(n.scroller,"dblclick",Hr(e,function(z){if(!Pe(e,z)){var Z=Ji(e,z);if(!(!Z||os(e,z)||li(e.display,z))){it(z);var xe=e.findWordAt(Z);Kr(e.doc,xe.anchor,xe.head)}}})):D(n.scroller,"dblclick",function(z){return Pe(e,z)||it(z)}),D(n.scroller,"contextmenu",function(z){return dl(e,z)}),D(n.input.getField(),"contextmenu",function(z){n.scroller.contains(z.target)||dl(e,z)});var u,l={end:0};function f(){n.activeTouch&&(u=setTimeout(function(){return n.activeTouch=null},1e3),l=n.activeTouch,l.end=+new Date)}function y(z){if(z.touches.length!=1)return!1;var Z=z.touches[0];return Z.radiusX<=1&&Z.radiusY<=1}function F(z,Z){if(Z.left==null)return!0;var xe=Z.left-z.left,Ce=Z.top-z.top;return xe*xe+Ce*Ce>20*20}D(n.scroller,"touchstart",function(z){if(!Pe(e,z)&&!y(z)&&!os(e,z)){n.input.ensurePolled(),clearTimeout(u);var Z=+new Date;n.activeTouch={start:Z,moved:!1,prev:Z-l.end<=300?l:null},z.touches.length==1&&(n.activeTouch.left=z.touches[0].pageX,n.activeTouch.top=z.touches[0].pageY)}}),D(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),D(n.scroller,"touchend",function(z){var Z=n.activeTouch;if(Z&&!li(n,z)&&Z.left!=null&&!Z.moved&&new Date-Z.start<300){var xe=e.coordsChar(n.activeTouch,"page"),Ce;!Z.prev||F(Z,Z.prev)?Ce=new _t(xe,xe):!Z.prev.prev||F(Z,Z.prev.prev)?Ce=e.findWordAt(xe):Ce=new _t(nt(xe.line,0),st(e.doc,nt(xe.line+1,0))),e.setSelection(Ce.anchor,Ce.head),e.focus(),it(z)}f()}),D(n.scroller,"touchcancel",f),D(n.scroller,"scroll",function(){n.scroller.clientHeight&&(mo(e,n.scroller.scrollTop),Pi(e,n.scroller.scrollLeft,!0),Oe(e,"scroll",e))}),D(n.scroller,"mousewheel",function(z){return Zs(e,z)}),D(n.scroller,"DOMMouseScroll",function(z){return Zs(e,z)}),D(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(z){Pe(e,z)||Yt(z)},over:function(z){Pe(e,z)||(ol(e,z),Yt(z))},start:function(z){return Iu(e,z)},drop:Hr(e,ec),leave:function(z){Pe(e,z)||al(e)}};var U=n.input.getField();D(U,"keyup",function(z){return lc.call(e,z)}),D(U,"keydown",Hr(e,sc)),D(U,"keypress",Hr(e,fl)),D(U,"focus",function(z){return uu(e,z)}),D(U,"blur",function(z){return _o(e,z)})}var Do=[];hr.defineInitHook=function(e){return Do.push(e)};function No(e,n,u,l){var f=e.doc,y;u==null&&(u="add"),u=="smart"&&(f.mode.indent?y=Qr(e,n).state:u="prev");var F=e.options.tabSize,U=At(f,n),z=Xe(U.text,null,F);U.stateAfter&&(U.stateAfter=null);var Z=U.text.match(/^\s*/)[0],xe;if(!l&&!/\S/.test(U.text))xe=0,u="not";else if(u=="smart"&&(xe=f.mode.indent(y,U.text.slice(Z.length),U.text),xe==qe||xe>150)){if(!l)return;u="prev"}u=="prev"?n>f.first?xe=Xe(At(f,n-1).text,null,F):xe=0:u=="add"?xe=z+e.options.indentUnit:u=="subtract"?xe=z-e.options.indentUnit:typeof u=="number"&&(xe=z+u),xe=Math.max(0,xe);var Ce="",Ne=0;if(e.options.indentWithTabs)for(var Re=Math.floor(xe/F);Re;--Re)Ne+=F,Ce+=" ";if(Ne<xe&&(Ce+=It(xe-Ne)),Ce!=Z)return Po(f,Ce,nt(n,0),nt(n,Z.length),"+input"),U.stateAfter=null,!0;for(var Ye=0;Ye<f.sel.ranges.length;Ye++){var et=f.sel.ranges[Ye];if(et.head.line==n&&et.head.ch<Z.length){var at=nt(n,Z.length);ri(f,Ye,new _t(at,at));break}}}var Rn=null;function pa(e){Rn=e}function hl(e,n,u,l,f){var y=e.doc;e.display.shift=!1,l||(l=y.sel);var F=+new Date-200,U=f=="paste"||e.state.pasteIncoming>F,z=Gn(n),Z=null;if(U&&l.ranges.length>1)if(Rn&&Rn.text.join(`
30
+ `)==n){if(l.ranges.length%Rn.text.length==0){Z=[];for(var xe=0;xe<Rn.text.length;xe++)Z.push(y.splitLines(Rn.text[xe]))}}else z.length==l.ranges.length&&e.options.pasteLinesPerSelection&&(Z=Wt(z,function(ft){return[ft]}));for(var Ce=e.curOp.updateInput,Ne=l.ranges.length-1;Ne>=0;Ne--){var Re=l.ranges[Ne],Ye=Re.from(),et=Re.to();Re.empty()&&(u&&u>0?Ye=nt(Ye.line,Ye.ch-u):e.state.overwrite&&!U?et=nt(et.line,Math.min(At(y,et.line).text.length,et.ch+St(z).length)):U&&Rn&&Rn.lineWise&&Rn.text.join(`
31
+ `)==z.join(`
32
+ `)&&(Ye=et=nt(Ye.line,0)));var at={from:Ye,to:et,text:Z?Z[Ne%Z.length]:z,origin:f||(U?"paste":e.state.cutIncoming>F?"cut":"+input")};To(e.doc,at),Fr(e,"inputRead",e,at)}n&&!U&&Gu(e,n),Jt(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ce),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function zu(e,n){var u=e.clipboardData&&e.clipboardData.getData("Text");if(u)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&on(n,function(){return hl(n,u,0,null,"paste")}),!0}function Gu(e,n){if(!(!e.options.electricChars||!e.options.smartIndent))for(var u=e.doc.sel,l=u.ranges.length-1;l>=0;l--){var f=u.ranges[l];if(!(f.head.ch>100||l&&u.ranges[l-1].head.line==f.head.line)){var y=e.getModeAt(f.head),F=!1;if(y.electricChars){for(var U=0;U<y.electricChars.length;U++)if(n.indexOf(y.electricChars.charAt(U))>-1){F=No(e,f.head.line,"smart");break}}else y.electricInput&&y.electricInput.test(At(e.doc,f.head.line).text.slice(0,f.head.ch))&&(F=No(e,f.head.line,"smart"));F&&Fr(e,"electricInput",e,f.head.line)}}}function $u(e){for(var n=[],u=[],l=0;l<e.doc.sel.ranges.length;l++){var f=e.doc.sel.ranges[l].head.line,y={anchor:nt(f,0),head:nt(f+1,0)};u.push(y),n.push(e.getRange(y.anchor,y.head))}return{text:n,ranges:u}}function Ku(e,n,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!n)}function vl(){var e=ve("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=ve("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?e.style.width="1000px":e.setAttribute("wrap","off"),k&&(e.style.border="1px solid black"),Ku(e),n}function Yu(e){var n=e.optionHandlers,u=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(l,f){var y=this.options,F=y[l];y[l]==f&&l!="mode"||(y[l]=f,n.hasOwnProperty(l)&&Hr(this,n[l])(this,f,F),Oe(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,f){this.state.keyMaps[f?"push":"unshift"](eo(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,y=0;y<f.length;++y)if(f[y]==l||f[y].name==l)return f.splice(y,1),!0},addOverlay:$r(function(l,f){var y=l.token?l:e.getMode(this.options,l);if(y.startState)throw new Error("Overlays may not be stateful.");Bt(this.state.overlays,{mode:y,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(F){return F.priority}),this.state.modeGen++,qr(this)}),removeOverlay:$r(function(l){for(var f=this.state.overlays,y=0;y<f.length;++y){var F=f[y].modeSpec;if(F==l||typeof l=="string"&&F.name==l){f.splice(y,1),this.state.modeGen++,qr(this);return}}}),indentLine:$r(function(l,f,y){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),Yn(this.doc,l)&&No(this,l,f,y)}),indentSelection:$r(function(l){for(var f=this.doc.sel.ranges,y=-1,F=0;F<f.length;F++){var U=f[F];if(U.empty())U.head.line>y&&(No(this,U.head.line,l,!0),y=U.head.line,F==this.doc.sel.primIndex&&Jt(this));else{var z=U.from(),Z=U.to(),xe=Math.max(y,z.line);y=Math.min(this.lastLine(),Z.line-(Z.ch?0:1))+1;for(var Ce=xe;Ce<y;++Ce)No(this,Ce,l);var Ne=this.doc.sel.ranges;z.ch==0&&f.length==Ne.length&&Ne[F].from().ch>0&&ri(this.doc,F,new _t(z,Ne[F].to()),lt)}}}),getTokenAt:function(l,f){return Ss(this,l,f)},getLineTokens:function(l,f){return Ss(this,nt(l),f,!0)},getTokenTypeAt:function(l){l=st(this.doc,l);var f=Rl(this,At(this.doc,l.line)),y=0,F=(f.length-1)/2,U=l.ch,z;if(U==0)z=f[2];else for(;;){var Z=y+F>>1;if((Z?f[Z*2-1]:0)>=U)F=Z;else if(f[Z*2+1]<U)y=Z+1;else{z=f[Z*2+2];break}}var xe=z?z.indexOf("overlay "):-1;return xe<0?z:xe==0?null:z.slice(0,xe-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?e.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var y=[];if(!u.hasOwnProperty(f))return y;var F=u[f],U=this.getModeAt(l);if(typeof U[f]=="string")F[U[f]]&&y.push(F[U[f]]);else if(U[f])for(var z=0;z<U[f].length;z++){var Z=F[U[f][z]];Z&&y.push(Z)}else U.helperType&&F[U.helperType]?y.push(F[U.helperType]):F[U.name]&&y.push(F[U.name]);for(var xe=0;xe<F._global.length;xe++){var Ce=F._global[xe];Ce.pred(U,this)&&pt(y,Ce.val)==-1&&y.push(Ce.val)}return y},getStateAfter:function(l,f){var y=this.doc;return l=ot(y,l==null?y.first+y.size-1:l),Qr(this,l+1,f).state},cursorCoords:function(l,f){var y,F=this.doc.sel.primary();return l==null?y=F.head:typeof l=="object"?y=st(this.doc,l):y=l?F.from():F.to(),bn(this,y,f||"page")},charCoords:function(l,f){return La(this,st(this.doc,l),f||"page")},coordsChar:function(l,f){return l=Ki(this,l,f||"page"),Da(this,l.left,l.top)},lineAtHeight:function(l,f){return l=Ki(this,{top:l,left:0},f||"page").top,Vn(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,y){var F=!1,U;if(typeof l=="number"){var z=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>z&&(l=z,F=!0),U=At(this.doc,l)}else U=l;return Oi(this,U,{top:0,left:0},f||"page",y||F).top+(F?this.doc.height-Jn(U):0)},defaultTextHeight:function(){return ho(this.display)},defaultCharWidth:function(){return Yi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,y,F,U){var z=this.display;l=bn(this,st(this.doc,l));var Z=l.bottom,xe=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),z.sizer.appendChild(f),F=="over")Z=l.top;else if(F=="above"||F=="near"){var Ce=Math.max(z.wrapper.clientHeight,this.doc.height),Ne=Math.max(z.sizer.clientWidth,z.lineSpace.clientWidth);(F=="above"||l.bottom+f.offsetHeight>Ce)&&l.top>f.offsetHeight?Z=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=Ce&&(Z=l.bottom),xe+f.offsetWidth>Ne&&(xe=Ne-f.offsetWidth)}f.style.top=Z+"px",f.style.left=f.style.right="",U=="right"?(xe=z.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(U=="left"?xe=0:U=="middle"&&(xe=(z.sizer.clientWidth-f.offsetWidth)/2),f.style.left=xe+"px"),y&&fu(this,{left:xe,top:Z,right:xe+f.offsetWidth,bottom:Z+f.offsetHeight})},triggerOnKeyDown:$r(sc),triggerOnKeyPress:$r(fl),triggerOnKeyUp:lc,triggerOnMouseDown:$r(Uu),execCommand:function(l){if(Mn.hasOwnProperty(l))return Mn[l].call(null,this)},triggerElectric:$r(function(l){Gu(this,l)}),findPosH:function(l,f,y,F){var U=1;f<0&&(U=-1,f=-f);for(var z=st(this.doc,l),Z=0;Z<f&&(z=gl(this.doc,z,U,y,F),!z.hitSide);++Z);return z},moveH:$r(function(l,f){var y=this;this.extendSelectionsBy(function(F){return y.display.shift||y.doc.extend||F.empty()?gl(y.doc,F.head,l,f,y.options.rtlMoveVisually):l<0?F.from():F.to()},mt)}),deleteH:$r(function(l,f){var y=this.doc.sel,F=this.doc;y.somethingSelected()?F.replaceSelection("",null,"+delete"):Mo(this,function(U){var z=gl(F,U.head,l,f,!1);return l<0?{from:z,to:U.head}:{from:U.head,to:z}})}),findPosV:function(l,f,y,F){var U=1,z=F;f<0&&(U=-1,f=-f);for(var Z=st(this.doc,l),xe=0;xe<f;++xe){var Ce=bn(this,Z,"div");if(z==null?z=Ce.left:Ce.left=z,Z=Ju(this,Ce,U,y),Z.hitSide)break}return Z},moveV:$r(function(l,f){var y=this,F=this.doc,U=[],z=!this.display.shift&&!F.extend&&F.sel.somethingSelected();if(F.extendSelectionsBy(function(xe){if(z)return l<0?xe.from():xe.to();var Ce=bn(y,xe.head,"div");xe.goalColumn!=null&&(Ce.left=xe.goalColumn),U.push(Ce.left);var Ne=Ju(y,Ce,l,f);return f=="page"&&xe==F.sel.primary()&&An(y,La(y,Ne,"div").top-Ce.top),Ne},mt),U.length)for(var Z=0;Z<F.sel.ranges.length;Z++)F.sel.ranges[Z].goalColumn=U[Z]}),findWordAt:function(l){var f=this.doc,y=At(f,l.line).text,F=l.ch,U=l.ch;if(y){var z=this.getHelper(l,"wordChars");(l.sticky=="before"||U==y.length)&&F?--F:++U;for(var Z=y.charAt(F),xe=G(Z,z)?function(Ce){return G(Ce,z)}:/\s/.test(Z)?function(Ce){return/\s/.test(Ce)}:function(Ce){return!/\s/.test(Ce)&&!G(Ce)};F>0&&xe(y.charAt(F-1));)--F;for(;U<y.length&&xe(y.charAt(U));)++U}return new _t(nt(l.line,F),nt(l.line,U))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ve(this.display.cursorDiv,"CodeMirror-overwrite"):te(this.display.cursorDiv,"CodeMirror-overwrite"),Oe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==De()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:$r(function(l,f){fi(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-_r(this)-this.display.barHeight,width:l.scrollWidth-_r(this)-this.display.barWidth,clientHeight:Ms(this),clientWidth:Gi(this)}},scrollIntoView:$r(function(l,f){l==null?(l={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof l=="number"?l={from:nt(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=f||0,l.from.line!=null?cu(this,l):Hs(this,l.from,l.to,l.margin)}),setSize:$r(function(l,f){var y=this,F=function(z){return typeof z=="number"||/^\d+$/.test(String(z))?z+"px":z};l!=null&&(this.display.wrapper.style.width=F(l)),f!=null&&(this.display.wrapper.style.height=F(f)),this.options.lineWrapping&&Ls(this);var U=this.display.viewFrom;this.doc.iter(U,this.display.viewTo,function(z){if(z.widgets){for(var Z=0;Z<z.widgets.length;Z++)if(z.widgets[Z].noHScroll){Xi(y,U,"widget");break}}++U}),this.curOp.forceUpdate=!0,Oe(this,"refresh",this)}),operation:function(l){return on(this,l)},startOperation:function(){return Sr(this)},endOperation:function(){return cn(this)},refresh:$r(function(){var l=this.display.cachedTextHeight;qr(this),this.curOp.forceUpdate=!0,Xo(this),fi(this,this.doc.scrollLeft,this.doc.scrollTop),Ha(this.display),(l==null||Math.abs(l-ho(this.display))>.5||this.options.lineWrapping)&&au(this),Oe(this,"refresh",this)}),swapDoc:$r(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),vu(this,l),Xo(this),this.display.input.reset(),fi(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Fr(this,"swapDoc",this,f),f}),phrase:function(l){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,l)?f[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},He(e),e.registerHelper=function(l,f,y){u.hasOwnProperty(l)||(u[l]=e[l]={_global:[]}),u[l][f]=y},e.registerGlobalHelper=function(l,f,y,F){e.registerHelper(l,f,F),u[l]._global.push({pred:y,val:F})}}function gl(e,n,u,l,f){var y=n,F=u,U=At(e,n.line),z=f&&e.direction=="rtl"?-u:u;function Z(){var ht=n.line+z;return ht<e.first||ht>=e.first+e.size?!1:(n=new nt(ht,n.ch,n.sticky),U=At(e,ht))}function xe(ht){var ct;if(l=="codepoint"){var xt=U.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(xt))ct=null;else{var Pt=u>0?xt>=55296&&xt<56320:xt>=56320&&xt<57343;ct=new nt(n.line,Math.max(0,Math.min(U.text.length,n.ch+u*(Pt?2:1))),-u)}}else f?ct=nc(e.cm,U,n,u):ct=ul(U,n,u);if(ct==null)if(!ht&&Z())n=Lu(f,e.cm,U,n.line,z);else return!1;else n=ct;return!0}if(l=="char"||l=="codepoint")xe();else if(l=="column")xe(!0);else if(l=="word"||l=="group")for(var Ce=null,Ne=l=="group",Re=e.cm&&e.cm.getHelper(n,"wordChars"),Ye=!0;!(u<0&&!xe(!Ye));Ye=!1){var et=U.text.charAt(n.ch)||`
33
+ `,at=G(et,Re)?"w":Ne&&et==`
34
+ `?"n":!Ne||/\s/.test(et)?null:"p";if(Ne&&!Ye&&!at&&(at="s"),Ce&&Ce!=at){u<0&&(u=1,xe(),n.sticky="after");break}if(at&&(Ce=at),u>0&&!xe(!Ye))break}var ft=rl(e,n,y,F,!0);return si(y,ft)&&(ft.hitSide=!0),ft}function Ju(e,n,u,l){var f=e.doc,y=n.left,F;if(l=="page"){var U=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),z=Math.max(U-.5*ho(e.display),3);F=(u>0?n.bottom:n.top)+u*z}else l=="line"&&(F=u>0?n.bottom+3:n.top-3);for(var Z;Z=Da(e,y,F),!!Z.outside;){if(u<0?F<=0:F>=f.height){Z.hitSide=!0;break}F+=u*5}return Z}var nr=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ut,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};nr.prototype.init=function(e){var n=this,u=this,l=u.cm,f=u.div=e.lineDiv;f.contentEditable=!0,Ku(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function y(U){for(var z=U.target;z;z=z.parentNode){if(z==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(z.className))break}return!1}D(f,"paste",function(U){!y(U)||Pe(l,U)||zu(U,l)||S<=11&&setTimeout(Hr(l,function(){return n.updateFromDOM()}),20)}),D(f,"compositionstart",function(U){n.composing={data:U.data,done:!1}}),D(f,"compositionupdate",function(U){n.composing||(n.composing={data:U.data,done:!1})}),D(f,"compositionend",function(U){n.composing&&(U.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),D(f,"touchstart",function(){return u.forceCompositionEnd()}),D(f,"input",function(){n.composing||n.readFromDOMSoon()});function F(U){if(!(!y(U)||Pe(l,U))){if(l.somethingSelected())pa({lineWise:!1,text:l.getSelections()}),U.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var z=$u(l);pa({lineWise:!0,text:z.text}),U.type=="cut"&&l.operation(function(){l.setSelections(z.ranges,0,lt),l.replaceSelection("",null,"cut")})}else return;if(U.clipboardData){U.clipboardData.clearData();var Z=Rn.text.join(`
35
+ `);if(U.clipboardData.setData("Text",Z),U.clipboardData.getData("Text")==Z){U.preventDefault();return}}var xe=vl(),Ce=xe.firstChild;l.display.lineSpace.insertBefore(xe,l.display.lineSpace.firstChild),Ce.value=Rn.text.join(`
36
+ `);var Ne=De();ke(Ce),setTimeout(function(){l.display.lineSpace.removeChild(xe),Ne.focus(),Ne==f&&u.showPrimarySelection()},50)}}D(f,"copy",F),D(f,"cut",F)},nr.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},nr.prototype.prepareSelection=function(){var e=su(this.cm,!1);return e.focus=De()==this.div,e},nr.prototype.showSelection=function(e,n){!e||!this.cm.display.view.length||((e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e))},nr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},nr.prototype.showPrimarySelection=function(){var e=this.getSelection(),n=this.cm,u=n.doc.sel.primary(),l=u.from(),f=u.to();if(n.display.viewTo==n.display.viewFrom||l.line>=n.display.viewTo||f.line<n.display.viewFrom){e.removeAllRanges();return}var y=ls(n,e.anchorNode,e.anchorOffset),F=ls(n,e.focusNode,e.focusOffset);if(!(y&&!y.bad&&F&&!F.bad&&Lt(_e(y,F),l)==0&&Lt(Ee(y,F),f)==0)){var U=n.display.view,z=l.line>=n.display.viewFrom&&ha(n,l)||{node:U[0].measure.map[2],offset:0},Z=f.line<n.display.viewTo&&ha(n,f);if(!Z){var xe=U[U.length-1].measure,Ce=xe.maps?xe.maps[xe.maps.length-1]:xe.map;Z={node:Ce[Ce.length-1],offset:Ce[Ce.length-2]-Ce[Ce.length-3]}}if(!z||!Z){e.removeAllRanges();return}var Ne=e.rangeCount&&e.getRangeAt(0),Re;try{Re=le(z.node,z.offset,Z.offset,Z.node)}catch(Ye){}Re&&(!c&&n.state.focused?(e.collapse(z.node,z.offset),Re.collapsed||(e.removeAllRanges(),e.addRange(Re))):(e.removeAllRanges(),e.addRange(Re)),Ne&&e.anchorNode==null?e.addRange(Ne):c&&this.startGracePeriod()),this.rememberSelection()}},nr.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},nr.prototype.showMultipleSelections=function(e){ye(this.cm.display.cursorDiv,e.cursors),ye(this.cm.display.selectionDiv,e.selection)},nr.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},nr.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var n=e.getRangeAt(0).commonAncestorContainer;return oe(this.div,n)},nr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||De()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},nr.prototype.blur=function(){this.div.blur()},nr.prototype.getField=function(){return this.div},nr.prototype.supportsTouch=function(){return!0},nr.prototype.receivedFocus=function(){var e=this,n=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):on(this.cm,function(){return n.cm.curOp.selectionChanged=!0});function u(){n.cm.state.focused&&(n.pollSelection(),n.polling.set(n.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},nr.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},nr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),n=this.cm;if(X&&N&&this.cm.display.gutterSpecs.length&&Xu(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=ls(n,e.anchorNode,e.anchorOffset),l=ls(n,e.focusNode,e.focusOffset);u&&l&&on(n,function(){qt(n.doc,ci(u,l),lt),(u.bad||l.bad)&&(n.curOp.selectionChanged=!0)})}}},nr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,n=e.display,u=e.doc.sel.primary(),l=u.from(),f=u.to();if(l.ch==0&&l.line>e.firstLine()&&(l=nt(l.line-1,At(e.doc,l.line-1).length)),f.ch==At(e.doc,f.line).text.length&&f.line<e.lastLine()&&(f=nt(f.line+1,0)),l.line<n.viewFrom||f.line>n.viewTo-1)return!1;var y,F,U;l.line==n.viewFrom||(y=wn(e,l.line))==0?(F=er(n.view[0].line),U=n.view[0].node):(F=er(n.view[y].line),U=n.view[y-1].node.nextSibling);var z=wn(e,f.line),Z,xe;if(z==n.view.length-1?(Z=n.viewTo-1,xe=n.lineDiv.lastChild):(Z=er(n.view[z+1].line)-1,xe=n.view[z+1].node.previousSibling),!U)return!1;for(var Ce=e.doc.splitLines(Qu(e,U,xe,F,Z)),Ne=ai(e.doc,nt(F,0),nt(Z,At(e.doc,Z).text.length));Ce.length>1&&Ne.length>1;)if(St(Ce)==St(Ne))Ce.pop(),Ne.pop(),Z--;else if(Ce[0]==Ne[0])Ce.shift(),Ne.shift(),F++;else break;for(var Re=0,Ye=0,et=Ce[0],at=Ne[0],ft=Math.min(et.length,at.length);Re<ft&&et.charCodeAt(Re)==at.charCodeAt(Re);)++Re;for(var ht=St(Ce),ct=St(Ne),xt=Math.min(ht.length-(Ce.length==1?Re:0),ct.length-(Ne.length==1?Re:0));Ye<xt&&ht.charCodeAt(ht.length-Ye-1)==ct.charCodeAt(ct.length-Ye-1);)++Ye;if(Ce.length==1&&Ne.length==1&&F==l.line)for(;Re&&Re>l.ch&&ht.charCodeAt(ht.length-Ye-1)==ct.charCodeAt(ct.length-Ye-1);)Re--,Ye++;Ce[Ce.length-1]=ht.slice(0,ht.length-Ye).replace(/^\u200b+/,""),Ce[0]=Ce[0].slice(Re).replace(/\u200b+$/,"");var Pt=nt(F,Re),Ot=nt(Z,Ne.length?St(Ne).length-Ye:0);if(Ce.length>1||Ce[0]||Lt(Pt,Ot))return Po(e.doc,Ce,Pt,Ot,"+input"),!0},nr.prototype.ensurePolled=function(){this.forceCompositionEnd()},nr.prototype.reset=function(){this.forceCompositionEnd()},nr.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},nr.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},nr.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&on(this.cm,function(){return qr(e.cm)})},nr.prototype.setUneditable=function(e){e.contentEditable="false"},nr.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Hr(this.cm,hl)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},nr.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},nr.prototype.onContextMenu=function(){},nr.prototype.resetPosition=function(){},nr.prototype.needsContentAttribute=!0;function ha(e,n){var u=Jo(e,n.line);if(!u||u.hidden)return null;var l=At(e.doc,n.line),f=Zl(u,l,n.line),y=P(l,e.doc.direction),F="left";if(y){var U=W(y,n.ch);F=U%2?"right":"left"}var z=ql(f.map,n.ch,F);return z.offset=z.collapse=="right"?z.end:z.start,z}function Xu(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function no(e,n){return n&&(e.bad=!0),e}function Qu(e,n,u,l,f){var y="",F=!1,U=e.doc.lineSeparator(),z=!1;function Z(Re){return function(Ye){return Ye.id==Re}}function xe(){F&&(y+=U,z&&(y+=U),F=z=!1)}function Ce(Re){Re&&(xe(),y+=Re)}function Ne(Re){if(Re.nodeType==1){var Ye=Re.getAttribute("cm-text");if(Ye){Ce(Ye);return}var et=Re.getAttribute("cm-marker"),at;if(et){var ft=e.findMarks(nt(l,0),nt(f+1,0),Z(+et));ft.length&&(at=ft[0].find(0))&&Ce(ai(e.doc,at.from,at.to).join(U));return}if(Re.getAttribute("contenteditable")=="false")return;var ht=/^(pre|div|p|li|table|br)$/i.test(Re.nodeName);if(!/^br$/i.test(Re.nodeName)&&Re.textContent.length==0)return;ht&&xe();for(var ct=0;ct<Re.childNodes.length;ct++)Ne(Re.childNodes[ct]);/^(pre|p)$/i.test(Re.nodeName)&&(z=!0),ht&&(F=!0)}else Re.nodeType==3&&Ce(Re.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ne(n),n!=u;)n=n.nextSibling,z=!1;return y}function ls(e,n,u){var l;if(n==e.display.lineDiv){if(l=e.display.lineDiv.childNodes[u],!l)return no(e.clipPos(nt(e.display.viewTo-1)),!0);n=null,u=0}else for(l=n;;l=l.parentNode){if(!l||l==e.display.lineDiv)return null;if(l.parentNode&&l.parentNode==e.display.lineDiv)break}for(var f=0;f<e.display.view.length;f++){var y=e.display.view[f];if(y.node==l)return vc(y,n,u)}}function vc(e,n,u){var l=e.text.firstChild,f=!1;if(!n||!oe(l,n))return no(nt(er(e.line),0),!0);if(n==l&&(f=!0,n=l.childNodes[u],u=0,!n)){var y=e.rest?St(e.rest):e.line;return no(nt(er(y),y.text.length),f)}var F=n.nodeType==3?n:null,U=n;for(!F&&n.childNodes.length==1&&n.firstChild.nodeType==3&&(F=n.firstChild,u&&(u=F.nodeValue.length));U.parentNode!=l;)U=U.parentNode;var z=e.measure,Z=z.maps;function xe(at,ft,ht){for(var ct=-1;ct<(Z?Z.length:0);ct++)for(var xt=ct<0?z.map:Z[ct],Pt=0;Pt<xt.length;Pt+=3){var Ot=xt[Pt+2];if(Ot==at||Ot==ft){var Vt=er(ct<0?e.line:e.rest[ct]),ar=xt[Pt]+ht;return(ht<0||Ot!=at)&&(ar=xt[Pt+(ht?1:0)]),nt(Vt,ar)}}}var Ce=xe(F,U,u);if(Ce)return no(Ce,f);for(var Ne=U.nextSibling,Re=F?F.nodeValue.length-u:0;Ne;Ne=Ne.nextSibling){if(Ce=xe(Ne,Ne.firstChild,0),Ce)return no(nt(Ce.line,Ce.ch-Re),f);Re+=Ne.textContent.length}for(var Ye=U.previousSibling,et=u;Ye;Ye=Ye.previousSibling){if(Ce=xe(Ye,Ye.firstChild,-1),Ce)return no(nt(Ce.line,Ce.ch+et),f);et+=Ye.textContent.length}}var Ar=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ut,this.hasSelection=!1,this.composing=null};Ar.prototype.init=function(e){var n=this,u=this,l=this.cm;this.createField(e);var f=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),k&&(f.style.width="0px"),D(f,"input",function(){b&&S>=9&&n.hasSelection&&(n.hasSelection=null),u.poll()}),D(f,"paste",function(F){Pe(l,F)||zu(F,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function y(F){if(!Pe(l,F)){if(l.somethingSelected())pa({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var U=$u(l);pa({lineWise:!0,text:U.text}),F.type=="cut"?l.setSelections(U.ranges,null,lt):(u.prevInput="",f.value=U.text.join(`
37
+ `),ke(f))}else return;F.type=="cut"&&(l.state.cutIncoming=+new Date)}}D(f,"cut",y),D(f,"copy",y),D(e.scroller,"paste",function(F){if(!(li(e,F)||Pe(l,F))){if(!f.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var U=new Event("paste");U.clipboardData=F.clipboardData,f.dispatchEvent(U)}}),D(e.lineSpace,"selectstart",function(F){li(e,F)||it(F)}),D(f,"compositionstart",function(){var F=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:F,range:l.markText(F,l.getCursor("to"),{className:"CodeMirror-composing"})}}),D(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Ar.prototype.createField=function(e){this.wrapper=vl(),this.textarea=this.wrapper.firstChild},Ar.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ar.prototype.prepareSelection=function(){var e=this.cm,n=e.display,u=e.doc,l=su(e);if(e.options.moveInputWithCursor){var f=bn(e,u.sel.primary().head,"div"),y=n.wrapper.getBoundingClientRect(),F=n.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,f.top+F.top-y.top)),l.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,f.left+F.left-y.left))}return l},Ar.prototype.showSelection=function(e){var n=this.cm,u=n.display;ye(u.cursorDiv,e.cursors),ye(u.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ar.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var n=this.cm;if(n.somethingSelected()){this.prevInput="";var u=n.getSelection();this.textarea.value=u,n.state.focused&&ke(this.textarea),b&&S>=9&&(this.hasSelection=u)}else e||(this.prevInput=this.textarea.value="",b&&S>=9&&(this.hasSelection=null))}},Ar.prototype.getField=function(){return this.textarea},Ar.prototype.supportsTouch=function(){return!1},Ar.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!R||De()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ar.prototype.blur=function(){this.textarea.blur()},Ar.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ar.prototype.receivedFocus=function(){this.slowPoll()},Ar.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ar.prototype.fastPoll=function(){var e=!1,n=this;n.pollingFast=!0;function u(){var l=n.poll();!l&&!e?(e=!0,n.polling.set(60,u)):(n.pollingFast=!1,n.slowPoll())}n.polling.set(20,u)},Ar.prototype.poll=function(){var e=this,n=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||!n.state.focused||On(u)&&!l&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var f=u.value;if(f==l&&!n.somethingSelected())return!1;if(b&&S>=9&&this.hasSelection===f||C&&/[\uf700-\uf7ff]/.test(f))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var y=f.charCodeAt(0);if(y==8203&&!l&&(l="\u200B"),y==8666)return this.reset(),this.cm.execCommand("undo")}for(var F=0,U=Math.min(l.length,f.length);F<U&&l.charCodeAt(F)==f.charCodeAt(F);)++F;return on(n,function(){hl(n,f.slice(F),l.length-F,null,e.composing?"*compose":null),f.length>1e3||f.indexOf(`
38
+ `)>-1?u.value=e.prevInput="":e.prevInput=f,e.composing&&(e.composing.range.clear(),e.composing.range=n.markText(e.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ar.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ar.prototype.onKeyPress=function(){b&&S>=9&&(this.hasSelection=null),this.fastPoll()},Ar.prototype.onContextMenu=function(e){var n=this,u=n.cm,l=u.display,f=n.textarea;n.contextMenuPending&&n.contextMenuPending();var y=Ji(u,e),F=l.scroller.scrollTop;if(!y||B)return;var U=u.options.resetSelectionOnContextMenu;U&&u.doc.sel.contains(y)==-1&&Hr(u,qt)(u.doc,ci(y),lt);var z=f.style.cssText,Z=n.wrapper.style.cssText,xe=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
39
39
  top: `+(e.clientY-xe.top-5)+"px; left: "+(e.clientX-xe.left-5)+`px;
40
40
  z-index: 1000; background: `+(b?"rgba(255, 255, 255, .05)":"transparent")+`;
41
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ee;g&&(Ee=window.scrollY),l.input.focus(),g&&window.scrollTo(null,Ee),l.input.reset(),u.somethingSelected()||(f.value=n.prevInput=" "),n.contextMenuPending=Le,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function De(){if(f.selectionStart!=null){var tt=u.somethingSelected(),at="\u200B"+(tt?f.value:"");f.value="\u21DA",f.value=at,n.prevInput=tt?"":"\u200B",f.selectionStart=1,f.selectionEnd=at.length,l.selForContextMenu=u.doc.sel}}function Le(){if(n.contextMenuPending==Le&&(n.contextMenuPending=!1,n.wrapper.style.cssText=q,f.style.cssText=G,b&&A<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=F),f.selectionStart!=null)){(!b||b&&A<9)&&De();var tt=0,at=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&n.prevInput=="\u200B"?Hr(u,Su)(u):tt++<10?l.detectingSelectAll=setTimeout(at,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(at,200)}}if(b&&A>=9&&De(),Z){Yt(e);var Xe=function(){fe(window,"mouseup",Xe),setTimeout(Le,20)};N(window,"mouseup",Xe)}else setTimeout(Le,50)},Ar.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Ar.prototype.setUneditable=function(){},Ar.prototype.needsContentAttribute=!1;function gc(e,n){if(n=n?Qe(n):{},n.value=e.value,!n.tabindex&&e.tabIndex&&(n.tabindex=e.tabIndex),!n.placeholder&&e.placeholder&&(n.placeholder=e.placeholder),n.autofocus==null){var u=Me();n.autofocus=u==e||e.getAttribute("autofocus")!=null&&u==document.body}function l(){e.value=j.getValue()}var f;if(e.form&&(N(e.form,"submit",l),!n.leaveSubmitMethodAlone)){var y=e.form;f=y.submit;try{var F=y.submit=function(){l(),y.submit=f,y.submit(),y.submit=F}}catch(G){}}n.finishInit=function(G){G.save=l,G.getTextArea=function(){return e},G.toTextArea=function(){G.toTextArea=isNaN,l(),e.parentNode.removeChild(G.getWrapperElement()),e.style.display="",e.form&&(fe(e.form,"submit",l),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var j=hr(function(G){return e.parentNode.insertBefore(G,e.nextSibling)},n);return j}function yc(e){e.off=fe,e.on=N,e.wheelEventPixels=pu,e.Doc=en,e.splitLines=$n,e.countColumn=Je,e.findColumn=dt,e.isWordChar=de,e.Pass=_e,e.signal=Oe,e.Line=Hi,e.changeEnd=Hn,e.scrollbarModel=wo,e.Pos=nt,e.cmpPos=Lt,e.modes=Wo,e.mimeModes=mn,e.resolveMode=ji,e.getMode=Vn,e.modeExtensions=wi,e.extendMode=Oa,e.copyState=Pn,e.startState=Si,e.innerMode=xn,e.commands=Mn,e.keyMap=hi,e.keyName=Mu,e.isModifierKey=sl,e.lookupKey=_i,e.normalizeKeyMap=ku,e.StringStream=xr,e.SharedTextMarker=rr,e.TextMarker=Ri,e.LineWidget=la,e.e_preventDefault=it,e.e_stopPropagation=vt,e.e_stop=Yt,e.addClass=je,e.contains=ie,e.rmClass=te,e.keyNames=pi}Vu(hr),Yu(hr);var Zu="iter insert remove copy getEditor constructor".split(" ");for(var ls in en.prototype)en.prototype.hasOwnProperty(ls)&&pt(Zu,ls)<0&&(hr.prototype[ls]=function(e){return function(){return e.apply(this.doc,arguments)}}(en.prototype[ls]));return He(en),hr.inputStyles={textarea:Ar,contenteditable:nr},hr.defineMode=function(e){!hr.defaults.mode&&e!="null"&&(hr.defaults.mode=e),Yn.apply(this,arguments)},hr.defineMIME=bi,hr.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),hr.defineMIME("text/plain","null"),hr.defineExtension=function(e,n){hr.prototype[e]=n},hr.defineDocExtension=function(e,n){en.prototype[e]=n},hr.fromTextArea=gc,yc(hr),hr.version="5.61.1",hr})},96876:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";c.defineMode("javascript",function(v,x){var d=v.indentUnit,b=x.statementIndent,A=x.jsonld,g=x.json||A,L=x.trackScope!==!1,D=x.typescript,B=x.wordCharacters||/[\w$\xa1-\uffff]/,U=function(){function se(Tr){return{type:Tr,style:"keyword"}}var Ce=se("keyword a"),qe=se("keyword b"),ot=se("keyword c"),st=se("keyword d"),$t=se("operator"),Zt={type:"atom",style:"atom"};return{if:se("if"),while:Ce,with:Ce,else:qe,do:qe,try:qe,finally:qe,return:st,break:st,continue:st,new:se("new"),delete:ot,void:ot,throw:ot,debugger:se("debugger"),var:se("var"),const:se("var"),let:se("var"),function:se("function"),catch:se("catch"),for:se("for"),switch:se("switch"),case:se("case"),default:se("default"),in:$t,typeof:$t,instanceof:$t,true:Zt,false:Zt,null:Zt,undefined:Zt,NaN:Zt,Infinity:Zt,this:se("this"),class:se("class"),super:se("atom"),yield:ot,export:se("export"),import:se("import"),extends:ot,await:ot}}(),_=/[+\-*&%=<>!?|~^@]/,z=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function k(se){for(var Ce=!1,qe,ot=!1;(qe=se.next())!=null;){if(!Ce){if(qe=="/"&&!ot)return;qe=="["?ot=!0:ot&&qe=="]"&&(ot=!1)}Ce=!Ce&&qe=="\\"}}var Q,M;function O(se,Ce,qe){return Q=se,M=qe,Ce}function V(se,Ce){var qe=se.next();if(qe=='"'||qe=="'")return Ce.tokenize=X(qe),Ce.tokenize(se,Ce);if(qe=="."&&se.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return O("number","number");if(qe=="."&&se.match(".."))return O("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(qe))return O(qe);if(qe=="="&&se.eat(">"))return O("=>","operator");if(qe=="0"&&se.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return O("number","number");if(/\d/.test(qe))return se.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),O("number","number");if(qe=="/")return se.eat("*")?(Ce.tokenize=W,W(se,Ce)):se.eat("/")?(se.skipToEnd(),O("comment","comment")):si(se,Ce,1)?(k(se),se.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),O("regexp","string-2")):(se.eat("="),O("operator","operator",se.current()));if(qe=="`")return Ce.tokenize=K,K(se,Ce);if(qe=="#"&&se.peek()=="!")return se.skipToEnd(),O("meta","meta");if(qe=="#"&&se.eatWhile(B))return O("variable","property");if(qe=="<"&&se.match("!--")||qe=="-"&&se.match("->")&&!/\S/.test(se.string.slice(0,se.start)))return se.skipToEnd(),O("comment","comment");if(_.test(qe))return(qe!=">"||!Ce.lexical||Ce.lexical.type!=">")&&(se.eat("=")?(qe=="!"||qe=="=")&&se.eat("="):/[<>*+\-|&?]/.test(qe)&&(se.eat(qe),qe==">"&&se.eat(qe))),qe=="?"&&se.eat(".")?O("."):O("operator","operator",se.current());if(B.test(qe)){se.eatWhile(B);var ot=se.current();if(Ce.lastType!="."){if(U.propertyIsEnumerable(ot)){var st=U[ot];return O(st.type,st.style,ot)}if(ot=="async"&&se.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return O("async","keyword",ot)}return O("variable","variable",ot)}}function X(se){return function(Ce,qe){var ot=!1,st;if(A&&Ce.peek()=="@"&&Ce.match(z))return qe.tokenize=V,O("jsonld-keyword","meta");for(;(st=Ce.next())!=null&&!(st==se&&!ot);)ot=!ot&&st=="\\";return ot||(qe.tokenize=V),O("string","string")}}function W(se,Ce){for(var qe=!1,ot;ot=se.next();){if(ot=="/"&&qe){Ce.tokenize=V;break}qe=ot=="*"}return O("comment","comment")}function K(se,Ce){for(var qe=!1,ot;(ot=se.next())!=null;){if(!qe&&(ot=="`"||ot=="$"&&se.eat("{"))){Ce.tokenize=V;break}qe=!qe&&ot=="\\"}return O("quasi","string-2",se.current())}var Z="([{}])";function ce(se,Ce){Ce.fatArrowAt&&(Ce.fatArrowAt=null);var qe=se.string.indexOf("=>",se.start);if(!(qe<0)){if(D){var ot=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(se.string.slice(se.start,qe));ot&&(qe=ot.index)}for(var st=0,$t=!1,Zt=qe-1;Zt>=0;--Zt){var Tr=se.string.charAt(Zt),Pr=Z.indexOf(Tr);if(Pr>=0&&Pr<3){if(!st){++Zt;break}if(--st==0){Tr=="("&&($t=!0);break}}else if(Pr>=3&&Pr<6)++st;else if(B.test(Tr))$t=!0;else if(/["'\/`]/.test(Tr))for(;;--Zt){if(Zt==0)return;var tr=se.string.charAt(Zt-1);if(tr==Tr&&se.string.charAt(Zt-2)!="\\"){Zt--;break}}else if($t&&!st){++Zt;break}}$t&&!st&&(Ce.fatArrowAt=Zt)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ae(se,Ce,qe,ot,st,$t){this.indented=se,this.column=Ce,this.type=qe,this.prev=st,this.info=$t,ot!=null&&(this.align=ot)}function me(se,Ce){if(!L)return!1;for(var qe=se.localVars;qe;qe=qe.next)if(qe.name==Ce)return!0;for(var ot=se.context;ot;ot=ot.prev)for(var qe=ot.vars;qe;qe=qe.next)if(qe.name==Ce)return!0}function ge(se,Ce,qe,ot,st){var $t=se.cc;for(he.state=se,he.stream=st,he.marked=null,he.cc=$t,he.style=Ce,se.lexical.hasOwnProperty("align")||(se.lexical.align=!0);;){var Zt=$t.length?$t.pop():g?It:yt;if(Zt(qe,ot)){for(;$t.length&&$t[$t.length-1].lex;)$t.pop()();return he.marked?he.marked:qe=="variable"&&me(se,ot)?"variable-2":Ce}}}var he={state:null,column:null,marked:null,cc:null};function ue(){for(var se=arguments.length-1;se>=0;se--)he.cc.push(arguments[se])}function ie(){return ue.apply(null,arguments),!0}function Me(se,Ce){for(var qe=Ce;qe;qe=qe.next)if(qe.name==se)return!0;return!1}function je(se){var Ce=he.state;if(he.marked="def",!!L){if(Ce.context){if(Ce.lexical.info=="var"&&Ce.context&&Ce.context.block){var qe=Ne(se,Ce.context);if(qe!=null){Ce.context=qe;return}}else if(!Me(se,Ce.localVars)){Ce.localVars=new Qe(se,Ce.localVars);return}}x.globalVars&&!Me(se,Ce.globalVars)&&(Ce.globalVars=new Qe(se,Ce.globalVars))}}function Ne(se,Ce){if(Ce)if(Ce.block){var qe=Ne(se,Ce.prev);return qe?qe==Ce.prev?Ce:new rt(qe,Ce.vars,!0):null}else return Me(se,Ce.vars)?Ce:new rt(Ce.prev,new Qe(se,Ce.vars),!1);else return null}function Re(se){return se=="public"||se=="private"||se=="protected"||se=="abstract"||se=="readonly"}function rt(se,Ce,qe){this.prev=se,this.vars=Ce,this.block=qe}function Qe(se,Ce){this.name=se,this.next=Ce}var Je=new Qe("this",new Qe("arguments",null));function ut(){he.state.context=new rt(he.state.context,he.state.localVars,!1),he.state.localVars=Je}function pt(){he.state.context=new rt(he.state.context,he.state.localVars,!0),he.state.localVars=null}function gt(){he.state.localVars=he.state.context.vars,he.state.context=he.state.context.prev}gt.lex=!0;function _e(se,Ce){var qe=function(){var ot=he.state,st=ot.indented;if(ot.lexical.type=="stat")st=ot.lexical.indented;else for(var $t=ot.lexical;$t&&$t.type==")"&&$t.align;$t=$t.prev)st=$t.indented;ot.lexical=new ae(st,he.stream.column(),se,null,ot.lexical,Ce)};return qe.lex=!0,qe}function lt(){var se=he.state;se.lexical.prev&&(se.lexical.type==")"&&(se.indented=se.lexical.indented),se.lexical=se.lexical.prev)}lt.lex=!0;function ht(se){function Ce(qe){return qe==se?ie():se==";"||qe=="}"||qe==")"||qe=="]"?ue():ie(Ce)}return Ce}function yt(se,Ce){return se=="var"?ie(_e("vardef",Ce),Ui,ht(";"),lt):se=="keyword a"?ie(_e("form"),St,yt,lt):se=="keyword b"?ie(_e("form"),yt,lt):se=="keyword d"?he.stream.match(/^\s*$/,!1)?ie():ie(_e("stat"),Ut,ht(";"),lt):se=="debugger"?ie(ht(";")):se=="{"?ie(_e("}"),pt,N,lt,gt):se==";"?ie():se=="if"?(he.state.lexical.info=="else"&&he.state.cc[he.state.cc.length-1]==lt&&he.state.cc.pop()(),ie(_e("form"),St,yt,lt,ln)):se=="function"?ie(Yn):se=="for"?ie(_e("form"),pt,Ca,yt,gt,lt):se=="class"||D&&Ce=="interface"?(he.marked="keyword",ie(_e("form",se=="class"?se:Ce),Oa,lt)):se=="variable"?D&&Ce=="declare"?(he.marked="keyword",ie(yt)):D&&(Ce=="module"||Ce=="enum"||Ce=="type")&&he.stream.match(/^\s*\w/,!1)?(he.marked="keyword",Ce=="enum"?ie(lo):Ce=="type"?ie(ji,ht("operator"),Te,ht(";")):ie(_e("form"),jr,ht("{"),_e("}"),N,lt,lt)):D&&Ce=="namespace"?(he.marked="keyword",ie(_e("form"),It,yt,lt)):D&&Ce=="abstract"?(he.marked="keyword",ie(yt)):ie(_e("stat"),Ae):se=="switch"?ie(_e("form"),St,ht("{"),_e("}","switch"),pt,N,lt,lt,gt):se=="case"?ie(It,ht(":")):se=="default"?ie(ht(":")):se=="catch"?ie(_e("form"),ut,dt,yt,lt,gt):se=="export"?ie(_e("stat"),xr,lt):se=="import"?ie(_e("stat"),ai,lt):se=="async"?ie(yt):Ce=="@"?ie(It,yt):ue(_e("stat"),It,ht(";"),lt)}function dt(se){if(se=="(")return ie(Vn,ht(")"))}function It(se,Ce){return Wt(se,Ce,!1)}function Ft(se,Ce){return Wt(se,Ce,!0)}function St(se){return se!="("?ue():ie(_e(")"),Ut,ht(")"),lt)}function Wt(se,Ce,qe){if(he.state.fatArrowAt==he.stream.start){var ot=qe?Y:$;if(se=="(")return ie(ut,_e(")"),P(Vn,")"),lt,ht("=>"),ot,gt);if(se=="variable")return ue(ut,jr,ht("=>"),ot,gt)}var st=qe?wt:Gt;return te.hasOwnProperty(se)?ie(st):se=="function"?ie(Yn,st):se=="class"||D&&Ce=="interface"?(he.marked="keyword",ie(_e("form"),wi,lt)):se=="keyword c"||se=="async"?ie(qe?Ft:It):se=="("?ie(_e(")"),Ut,ht(")"),lt,st):se=="operator"||se=="spread"?ie(qe?Ft:It):se=="["?ie(_e("]"),Jn,lt,st):se=="{"?ne(Ie,"}",null,st):se=="quasi"?ue(Mt,st):se=="new"?ie(we(qe)):ie()}function Ut(se){return se.match(/[;\}\)\],]/)?ue():ue(It)}function Gt(se,Ce){return se==","?ie(Ut):wt(se,Ce,!1)}function wt(se,Ce,qe){var ot=qe==!1?Gt:wt,st=qe==!1?It:Ft;if(se=="=>")return ie(ut,qe?Y:$,gt);if(se=="operator")return/\+\+|--/.test(Ce)||D&&Ce=="!"?ie(ot):D&&Ce=="<"&&he.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?ie(_e(">"),P(Te,">"),lt,ot):Ce=="?"?ie(It,ht(":"),st):ie(st);if(se=="quasi")return ue(Mt,ot);if(se!=";"){if(se=="(")return ne(Ft,")","call",ot);if(se==".")return ie(T,ot);if(se=="[")return ie(_e("]"),Ut,ht("]"),lt,ot);if(D&&Ce=="as")return he.marked="keyword",ie(Te,ot);if(se=="regexp")return he.state.lastType=he.marked="operator",he.stream.backUp(he.stream.pos-he.stream.start-1),ie(st)}}function Mt(se,Ce){return se!="quasi"?ue():Ce.slice(Ce.length-2)!="${"?ie(Mt):ie(It,de)}function de(se){if(se=="}")return he.marked="string-2",he.state.tokenize=K,ie(Mt)}function $(se){return ce(he.stream,he.state),ue(se=="{"?yt:It)}function Y(se){return ce(he.stream,he.state),ue(se=="{"?yt:Ft)}function we(se){return function(Ce){return Ce=="."?ie(se?be:ke):Ce=="variable"&&D?ie(yn,se?wt:Gt):ue(se?Ft:It)}}function ke(se,Ce){if(Ce=="target")return he.marked="keyword",ie(Gt)}function be(se,Ce){if(Ce=="target")return he.marked="keyword",ie(wt)}function Ae(se){return se==":"?ie(lt,yt):ue(Gt,ht(";"),lt)}function T(se){if(se=="variable")return he.marked="property",ie()}function Ie(se,Ce){if(se=="async")return he.marked="property",ie(Ie);if(se=="variable"||he.style=="keyword"){if(he.marked="property",Ce=="get"||Ce=="set")return ie(H);var qe;return D&&he.state.fatArrowAt==he.stream.start&&(qe=he.stream.match(/^\s*:\s*/,!1))&&(he.state.fatArrowAt=he.stream.pos+qe[0].length),ie(C)}else{if(se=="number"||se=="string")return he.marked=A?"property":he.style+" property",ie(C);if(se=="jsonld-keyword")return ie(C);if(D&&Re(Ce))return he.marked="keyword",ie(Ie);if(se=="[")return ie(It,ee,ht("]"),C);if(se=="spread")return ie(Ft,C);if(Ce=="*")return he.marked="keyword",ie(Ie);if(se==":")return ue(C)}}function H(se){return se!="variable"?ue(C):(he.marked="property",ie(Yn))}function C(se){if(se==":")return ie(Ft);if(se=="(")return ue(Yn)}function P(se,Ce,qe){function ot(st,$t){if(qe?qe.indexOf(st)>-1:st==","){var Zt=he.state.lexical;return Zt.info=="call"&&(Zt.pos=(Zt.pos||0)+1),ie(function(Tr,Pr){return Tr==Ce||Pr==Ce?ue():ue(se)},ot)}return st==Ce||$t==Ce?ie():qe&&qe.indexOf(";")>-1?ue(se):ie(ht(Ce))}return function(st,$t){return st==Ce||$t==Ce?ie():ue(se,ot)}}function ne(se,Ce,qe){for(var ot=3;ot<arguments.length;ot++)he.cc.push(arguments[ot]);return ie(_e(Ce,qe),P(se,Ce),lt)}function N(se){return se=="}"?ie():ue(yt,N)}function ee(se,Ce){if(D){if(se==":")return ie(Te);if(Ce=="?")return ie(ee)}}function fe(se,Ce){if(D&&(se==":"||Ce=="in"))return ie(Te)}function Oe(se){if(D&&se==":")return he.stream.match(/^\s*\w+\s+is\b/,!1)?ie(It,Pe,Te):ie(Te)}function Pe(se,Ce){if(Ce=="is")return he.marked="keyword",ie()}function Te(se,Ce){if(Ce=="keyof"||Ce=="typeof"||Ce=="infer"||Ce=="readonly")return he.marked="keyword",ie(Ce=="typeof"?Ft:Te);if(se=="variable"||Ce=="void")return he.marked="type",ie(kt);if(Ce=="|"||Ce=="&")return ie(Te);if(se=="string"||se=="number"||se=="atom")return ie(kt);if(se=="[")return ie(_e("]"),P(Te,"]",","),lt,kt);if(se=="{")return ie(_e("}"),He,lt,kt);if(se=="(")return ie(P(Yt,")"),ze,kt);if(se=="<")return ie(P(Te,">"),Te);if(se=="quasi")return ue(vt,kt)}function ze(se){if(se=="=>")return ie(Te)}function He(se){return se.match(/[\}\)\]]/)?ie():se==","||se==";"?ie(He):ue(it,He)}function it(se,Ce){if(se=="variable"||he.style=="keyword")return he.marked="property",ie(it);if(Ce=="?"||se=="number"||se=="string")return ie(it);if(se==":")return ie(Te);if(se=="[")return ie(ht("variable"),fe,ht("]"),it);if(se=="(")return ue(bi,it);if(!se.match(/[;\}\)\],]/))return ie()}function vt(se,Ce){return se!="quasi"?ue():Ce.slice(Ce.length-2)!="${"?ie(vt):ie(Te,Ct)}function Ct(se){if(se=="}")return he.marked="string-2",he.state.tokenize=K,ie(vt)}function Yt(se,Ce){return se=="variable"&&he.stream.match(/^\s*[?:]/,!1)||Ce=="?"?ie(Yt):se==":"?ie(Te):se=="spread"?ie(Yt):ue(Te)}function kt(se,Ce){if(Ce=="<")return ie(_e(">"),P(Te,">"),lt,kt);if(Ce=="|"||se=="."||Ce=="&")return ie(Te);if(se=="[")return ie(Te,ht("]"),kt);if(Ce=="extends"||Ce=="implements")return he.marked="keyword",ie(Te);if(Ce=="?")return ie(Te,ht(":"),Te)}function yn(se,Ce){if(Ce=="<")return ie(_e(">"),P(Te,">"),lt,kt)}function Xr(){return ue(Te,On)}function On(se,Ce){if(Ce=="=")return ie(Te)}function Ui(se,Ce){return Ce=="enum"?(he.marked="keyword",ie(lo)):ue(jr,ee,Tn,Kn)}function jr(se,Ce){if(D&&Re(Ce))return he.marked="keyword",ie(jr);if(se=="variable")return je(Ce),ie();if(se=="spread")return ie(jr);if(se=="[")return ne($n,"]");if(se=="{")return ne(jn,"}")}function jn(se,Ce){return se=="variable"&&!he.stream.match(/^\s*:/,!1)?(je(Ce),ie(Tn)):(se=="variable"&&(he.marked="property"),se=="spread"?ie(jr):se=="}"?ue():se=="["?ie(It,ht("]"),ht(":"),jn):ie(ht(":"),jr,Tn))}function $n(){return ue(jr,Tn)}function Tn(se,Ce){if(Ce=="=")return ie(Ft)}function Kn(se){if(se==",")return ie(Ui)}function ln(se,Ce){if(se=="keyword b"&&Ce=="else")return ie(_e("form","else"),yt,lt)}function Ca(se,Ce){if(Ce=="await")return ie(Ca);if(se=="(")return ie(_e(")"),Wo,lt)}function Wo(se){return se=="var"?ie(Ui,mn):se=="variable"?ie(mn):ue(mn)}function mn(se,Ce){return se==")"?ie():se==";"?ie(mn):Ce=="in"||Ce=="of"?(he.marked="keyword",ie(It,mn)):ue(It,mn)}function Yn(se,Ce){if(Ce=="*")return he.marked="keyword",ie(Yn);if(se=="variable")return je(Ce),ie(Yn);if(se=="(")return ie(ut,_e(")"),P(Vn,")"),lt,Oe,yt,gt);if(D&&Ce=="<")return ie(_e(">"),P(Xr,">"),lt,Yn)}function bi(se,Ce){if(Ce=="*")return he.marked="keyword",ie(bi);if(se=="variable")return je(Ce),ie(bi);if(se=="(")return ie(ut,_e(")"),P(Vn,")"),lt,Oe,gt);if(D&&Ce=="<")return ie(_e(">"),P(Xr,">"),lt,bi)}function ji(se,Ce){if(se=="keyword"||se=="variable")return he.marked="type",ie(ji);if(Ce=="<")return ie(_e(">"),P(Xr,">"),lt)}function Vn(se,Ce){return Ce=="@"&&ie(It,Vn),se=="spread"?ie(Vn):D&&Re(Ce)?(he.marked="keyword",ie(Vn)):D&&se=="this"?ie(ee,Tn):ue(jr,ee,Tn)}function wi(se,Ce){return se=="variable"?Oa(se,Ce):Pn(se,Ce)}function Oa(se,Ce){if(se=="variable")return je(Ce),ie(Pn)}function Pn(se,Ce){if(Ce=="<")return ie(_e(">"),P(Xr,">"),lt,Pn);if(Ce=="extends"||Ce=="implements"||D&&se==",")return Ce=="implements"&&(he.marked="keyword"),ie(D?Te:It,Pn);if(se=="{")return ie(_e("}"),xn,lt)}function xn(se,Ce){if(se=="async"||se=="variable"&&(Ce=="static"||Ce=="get"||Ce=="set"||D&&Re(Ce))&&he.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return he.marked="keyword",ie(xn);if(se=="variable"||he.style=="keyword")return he.marked="property",ie(Si,xn);if(se=="number"||se=="string")return ie(Si,xn);if(se=="[")return ie(It,ee,ht("]"),Si,xn);if(Ce=="*")return he.marked="keyword",ie(xn);if(D&&se=="(")return ue(bi,xn);if(se==";"||se==",")return ie(xn);if(se=="}")return ie();if(Ce=="@")return ie(It,xn)}function Si(se,Ce){if(Ce=="!"||Ce=="?")return ie(Si);if(se==":")return ie(Te,Tn);if(Ce=="=")return ie(Ft);var qe=he.state.lexical.prev,ot=qe&&qe.info=="interface";return ue(ot?bi:Yn)}function xr(se,Ce){return Ce=="*"?(he.marked="keyword",ie(Wn,ht(";"))):Ce=="default"?(he.marked="keyword",ie(It,ht(";"))):se=="{"?ie(P(At,"}"),Wn,ht(";")):ue(yt)}function At(se,Ce){if(Ce=="as")return he.marked="keyword",ie(ht("variable"));if(se=="variable")return ue(Ft,At)}function ai(se){return se=="string"?ie():se=="("?ue(It):se=="."?ue(Gt):ue(Ai,bn,Wn)}function Ai(se,Ce){return se=="{"?ne(Ai,"}"):(se=="variable"&&je(Ce),Ce=="*"&&(he.marked="keyword"),ie(er))}function bn(se){if(se==",")return ie(Ai,bn)}function er(se,Ce){if(Ce=="as")return he.marked="keyword",ie(Ai)}function Wn(se,Ce){if(Ce=="from")return he.marked="keyword",ie(It)}function Jn(se){return se=="]"?ie():ue(P(Ft,"]"))}function lo(){return ue(_e("form"),jr,ht("{"),_e("}"),P(nt,"}"),lt,lt)}function nt(){return ue(jr,Tn)}function Lt(se,Ce){return se.lastType=="operator"||se.lastType==","||_.test(Ce.charAt(0))||/[,.]/.test(Ce.charAt(0))}function si(se,Ce,qe){return Ce.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Ce.lastType)||Ce.lastType=="quasi"&&/\{\s*$/.test(se.string.slice(0,se.pos-(qe||0)))}return{startState:function(se){var Ce={tokenize:V,lastType:"sof",cc:[],lexical:new ae((se||0)-d,0,"block",!1),localVars:x.localVars,context:x.localVars&&new rt(null,null,!1),indented:se||0};return x.globalVars&&typeof x.globalVars=="object"&&(Ce.globalVars=x.globalVars),Ce},token:function(se,Ce){if(se.sol()&&(Ce.lexical.hasOwnProperty("align")||(Ce.lexical.align=!1),Ce.indented=se.indentation(),ce(se,Ce)),Ce.tokenize!=W&&se.eatSpace())return null;var qe=Ce.tokenize(se,Ce);return Q=="comment"?qe:(Ce.lastType=Q=="operator"&&(M=="++"||M=="--")?"incdec":Q,ge(Ce,qe,Q,M,se))},indent:function(se,Ce){if(se.tokenize==W||se.tokenize==K)return c.Pass;if(se.tokenize!=V)return 0;var qe=Ce&&Ce.charAt(0),ot=se.lexical,st;if(!/^\s*else\b/.test(Ce))for(var $t=se.cc.length-1;$t>=0;--$t){var Zt=se.cc[$t];if(Zt==lt)ot=ot.prev;else if(Zt!=ln&&Zt!=gt)break}for(;(ot.type=="stat"||ot.type=="form")&&(qe=="}"||(st=se.cc[se.cc.length-1])&&(st==Gt||st==wt)&&!/^[,\.=+\-*:?[\(]/.test(Ce));)ot=ot.prev;b&&ot.type==")"&&ot.prev.type=="stat"&&(ot=ot.prev);var Tr=ot.type,Pr=qe==Tr;return Tr=="vardef"?ot.indented+(se.lastType=="operator"||se.lastType==","?ot.info.length+1:0):Tr=="form"&&qe=="{"?ot.indented:Tr=="form"?ot.indented+d:Tr=="stat"?ot.indented+(Lt(se,Ce)?b||d:0):ot.info=="switch"&&!Pr&&x.doubleIndentSwitch!=!1?ot.indented+(/^(?:case|default)\b/.test(Ce)?d:2*d):ot.align?ot.column+(Pr?0:1):ot.indented+(Pr?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:g?null:"/*",blockCommentEnd:g?null:"*/",blockCommentContinue:g?null:" * ",lineComment:g?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:g?"json":"javascript",jsonldMode:A,jsonMode:g,expressionAllowed:si,skipExpression:function(se){ge(se,"atom","atom","true",new c.StringStream("",2,null))}}}),c.registerHelper("wordChars","javascript",/[\w$]/),c.defineMIME("text/javascript","javascript"),c.defineMIME("text/ecmascript","javascript"),c.defineMIME("application/javascript","javascript"),c.defineMIME("application/x-javascript","javascript"),c.defineMIME("application/ecmascript","javascript"),c.defineMIME("application/json",{name:"javascript",json:!0}),c.defineMIME("application/x-json",{name:"javascript",json:!0}),c.defineMIME("application/manifest+json",{name:"javascript",json:!0}),c.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),c.defineMIME("text/typescript",{name:"javascript",typescript:!0}),c.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},76489:(h,I)=>{"use strict";/*!
41
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ce;g&&(Ce=window.scrollY),l.input.focus(),g&&window.scrollTo(null,Ce),l.input.reset(),u.somethingSelected()||(f.value=n.prevInput=" "),n.contextMenuPending=Re,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function Ne(){if(f.selectionStart!=null){var et=u.somethingSelected(),at="\u200B"+(et?f.value:"");f.value="\u21DA",f.value=at,n.prevInput=et?"":"\u200B",f.selectionStart=1,f.selectionEnd=at.length,l.selForContextMenu=u.doc.sel}}function Re(){if(n.contextMenuPending==Re&&(n.contextMenuPending=!1,n.wrapper.style.cssText=Z,f.style.cssText=z,b&&S<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=F),f.selectionStart!=null)){(!b||b&&S<9)&&Ne();var et=0,at=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&n.prevInput=="\u200B"?Hr(u,Su)(u):et++<10?l.detectingSelectAll=setTimeout(at,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(at,200)}}if(b&&S>=9&&Ne(),K){Yt(e);var Ye=function(){ce(window,"mouseup",Ye),setTimeout(Re,20)};D(window,"mouseup",Ye)}else setTimeout(Re,50)},Ar.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Ar.prototype.setUneditable=function(){},Ar.prototype.needsContentAttribute=!1;function gc(e,n){if(n=n?Qe(n):{},n.value=e.value,!n.tabindex&&e.tabIndex&&(n.tabindex=e.tabIndex),!n.placeholder&&e.placeholder&&(n.placeholder=e.placeholder),n.autofocus==null){var u=De();n.autofocus=u==e||e.getAttribute("autofocus")!=null&&u==document.body}function l(){e.value=U.getValue()}var f;if(e.form&&(D(e.form,"submit",l),!n.leaveSubmitMethodAlone)){var y=e.form;f=y.submit;try{var F=y.submit=function(){l(),y.submit=f,y.submit(),y.submit=F}}catch(z){}}n.finishInit=function(z){z.save=l,z.getTextArea=function(){return e},z.toTextArea=function(){z.toTextArea=isNaN,l(),e.parentNode.removeChild(z.getWrapperElement()),e.style.display="",e.form&&(ce(e.form,"submit",l),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var U=hr(function(z){return e.parentNode.insertBefore(z,e.nextSibling)},n);return U}function yc(e){e.off=ce,e.on=D,e.wheelEventPixels=pu,e.Doc=en,e.splitLines=Gn,e.countColumn=Xe,e.findColumn=dt,e.isWordChar=pe,e.Pass=qe,e.signal=Oe,e.Line=Hi,e.changeEnd=Wn,e.scrollbarModel=wo,e.Pos=nt,e.cmpPos=Lt,e.modes=Wo,e.mimeModes=yn,e.resolveMode=ji,e.getMode=jn,e.modeExtensions=wi,e.extendMode=Oa,e.copyState=Tn,e.startState=Si,e.innerMode=mn,e.commands=Mn,e.keyMap=hi,e.keyName=Ru,e.isModifierKey=ll,e.lookupKey=qi,e.normalizeKeyMap=ku,e.StringStream=xr,e.SharedTextMarker=rr,e.TextMarker=Mi,e.LineWidget=la,e.e_preventDefault=it,e.e_stopPropagation=gt,e.e_stop=Yt,e.addClass=Ve,e.contains=oe,e.rmClass=te,e.keyNames=pi}Vu(hr),Yu(hr);var Zu="iter insert remove copy getEditor constructor".split(" ");for(var us in en.prototype)en.prototype.hasOwnProperty(us)&&pt(Zu,us)<0&&(hr.prototype[us]=function(e){return function(){return e.apply(this.doc,arguments)}}(en.prototype[us]));return He(en),hr.inputStyles={textarea:Ar,contenteditable:nr},hr.defineMode=function(e){!hr.defaults.mode&&e!="null"&&(hr.defaults.mode=e),Kn.apply(this,arguments)},hr.defineMIME=bi,hr.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),hr.defineMIME("text/plain","null"),hr.defineExtension=function(e,n){hr.prototype[e]=n},hr.defineDocExtension=function(e,n){en.prototype[e]=n},hr.fromTextArea=gc,yc(hr),hr.version="5.65.0",hr})},96876:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";c.defineMode("javascript",function(v,x){var d=v.indentUnit,b=x.statementIndent,S=x.jsonld,g=x.json||S,L=x.trackScope!==!1,N=x.typescript,B=x.wordCharacters||/[\w$\xa1-\uffff]/,j=function(){function se(Tr){return{type:Tr,style:"keyword"}}var Ee=se("keyword a"),_e=se("keyword b"),ot=se("keyword c"),st=se("keyword d"),$t=se("operator"),Zt={type:"atom",style:"atom"};return{if:se("if"),while:Ee,with:Ee,else:_e,do:_e,try:_e,finally:_e,return:st,break:st,continue:st,new:se("new"),delete:ot,void:ot,throw:ot,debugger:se("debugger"),var:se("var"),const:se("var"),let:se("var"),function:se("function"),catch:se("catch"),for:se("for"),switch:se("switch"),case:se("case"),default:se("default"),in:$t,typeof:$t,instanceof:$t,true:Zt,false:Zt,null:Zt,undefined:Zt,NaN:Zt,Infinity:Zt,this:se("this"),class:se("class"),super:se("atom"),yield:ot,export:se("export"),import:se("import"),extends:ot,await:ot}}(),_=/[+\-*&%=<>!?|~^@]/,H=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function k(se){for(var Ee=!1,_e,ot=!1;(_e=se.next())!=null;){if(!Ee){if(_e=="/"&&!ot)return;_e=="["?ot=!0:ot&&_e=="]"&&(ot=!1)}Ee=!Ee&&_e=="\\"}}var X,R;function C(se,Ee,_e){return X=se,R=_e,Ee}function V(se,Ee){var _e=se.next();if(_e=='"'||_e=="'")return Ee.tokenize=J(_e),Ee.tokenize(se,Ee);if(_e=="."&&se.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(_e=="."&&se.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(_e))return C(_e);if(_e=="="&&se.eat(">"))return C("=>","operator");if(_e=="0"&&se.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(_e))return se.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(_e=="/")return se.eat("*")?(Ee.tokenize=q,q(se,Ee)):se.eat("/")?(se.skipToEnd(),C("comment","comment")):si(se,Ee,1)?(k(se),se.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(se.eat("="),C("operator","operator",se.current()));if(_e=="`")return Ee.tokenize=Q,Q(se,Ee);if(_e=="#"&&se.peek()=="!")return se.skipToEnd(),C("meta","meta");if(_e=="#"&&se.eatWhile(B))return C("variable","property");if(_e=="<"&&se.match("!--")||_e=="-"&&se.match("->")&&!/\S/.test(se.string.slice(0,se.start)))return se.skipToEnd(),C("comment","comment");if(_.test(_e))return(_e!=">"||!Ee.lexical||Ee.lexical.type!=">")&&(se.eat("=")?(_e=="!"||_e=="=")&&se.eat("="):/[<>*+\-|&?]/.test(_e)&&(se.eat(_e),_e==">"&&se.eat(_e))),_e=="?"&&se.eat(".")?C("."):C("operator","operator",se.current());if(B.test(_e)){se.eatWhile(B);var ot=se.current();if(Ee.lastType!="."){if(j.propertyIsEnumerable(ot)){var st=j[ot];return C(st.type,st.style,ot)}if(ot=="async"&&se.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",ot)}return C("variable","variable",ot)}}function J(se){return function(Ee,_e){var ot=!1,st;if(S&&Ee.peek()=="@"&&Ee.match(H))return _e.tokenize=V,C("jsonld-keyword","meta");for(;(st=Ee.next())!=null&&!(st==se&&!ot);)ot=!ot&&st=="\\";return ot||(_e.tokenize=V),C("string","string")}}function q(se,Ee){for(var _e=!1,ot;ot=se.next();){if(ot=="/"&&_e){Ee.tokenize=V;break}_e=ot=="*"}return C("comment","comment")}function Q(se,Ee){for(var _e=!1,ot;(ot=se.next())!=null;){if(!_e&&(ot=="`"||ot=="$"&&se.eat("{"))){Ee.tokenize=V;break}_e=!_e&&ot=="\\"}return C("quasi","string-2",se.current())}var K="([{}])";function fe(se,Ee){Ee.fatArrowAt&&(Ee.fatArrowAt=null);var _e=se.string.indexOf("=>",se.start);if(!(_e<0)){if(N){var ot=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(se.string.slice(se.start,_e));ot&&(_e=ot.index)}for(var st=0,$t=!1,Zt=_e-1;Zt>=0;--Zt){var Tr=se.string.charAt(Zt),Pr=K.indexOf(Tr);if(Pr>=0&&Pr<3){if(!st){++Zt;break}if(--st==0){Tr=="("&&($t=!0);break}}else if(Pr>=3&&Pr<6)++st;else if(B.test(Tr))$t=!0;else if(/["'\/`]/.test(Tr))for(;;--Zt){if(Zt==0)return;var tr=se.string.charAt(Zt-1);if(tr==Tr&&se.string.charAt(Zt-2)!="\\"){Zt--;break}}else if($t&&!st){++Zt;break}}$t&&!st&&(Ee.fatArrowAt=Zt)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function re(se,Ee,_e,ot,st,$t){this.indented=se,this.column=Ee,this.type=_e,this.prev=st,this.info=$t,ot!=null&&(this.align=ot)}function ye(se,Ee){if(!L)return!1;for(var _e=se.localVars;_e;_e=_e.next)if(_e.name==Ee)return!0;for(var ot=se.context;ot;ot=ot.prev)for(var _e=ot.vars;_e;_e=_e.next)if(_e.name==Ee)return!0}function ve(se,Ee,_e,ot,st){var $t=se.cc;for(de.state=se,de.stream=st,de.marked=null,de.cc=$t,de.style=Ee,se.lexical.hasOwnProperty("align")||(se.lexical.align=!0);;){var Zt=$t.length?$t.pop():g?kt:mt;if(Zt(_e,ot)){for(;$t.length&&$t[$t.length-1].lex;)$t.pop()();return de.marked?de.marked:_e=="variable"&&ye(se,ot)?"variable-2":Ee}}}var de={state:null,column:null,marked:null,cc:null};function le(){for(var se=arguments.length-1;se>=0;se--)de.cc.push(arguments[se])}function oe(){return le.apply(null,arguments),!0}function De(se,Ee){for(var _e=Ee;_e;_e=_e.next)if(_e.name==se)return!0;return!1}function Ve(se){var Ee=de.state;if(de.marked="def",!!L){if(Ee.context){if(Ee.lexical.info=="var"&&Ee.context&&Ee.context.block){var _e=Le(se,Ee.context);if(_e!=null){Ee.context=_e;return}}else if(!De(se,Ee.localVars)){Ee.localVars=new Qe(se,Ee.localVars);return}}x.globalVars&&!De(se,Ee.globalVars)&&(Ee.globalVars=new Qe(se,Ee.globalVars))}}function Le(se,Ee){if(Ee)if(Ee.block){var _e=Le(se,Ee.prev);return _e?_e==Ee.prev?Ee:new tt(_e,Ee.vars,!0):null}else return De(se,Ee.vars)?Ee:new tt(Ee.prev,new Qe(se,Ee.vars),!1);else return null}function ke(se){return se=="public"||se=="private"||se=="protected"||se=="abstract"||se=="readonly"}function tt(se,Ee,_e){this.prev=se,this.vars=Ee,this.block=_e}function Qe(se,Ee){this.name=se,this.next=Ee}var Xe=new Qe("this",new Qe("arguments",null));function ut(){de.state.context=new tt(de.state.context,de.state.localVars,!1),de.state.localVars=Xe}function pt(){de.state.context=new tt(de.state.context,de.state.localVars,!0),de.state.localVars=null}function yt(){de.state.localVars=de.state.context.vars,de.state.context=de.state.context.prev}yt.lex=!0;function qe(se,Ee){var _e=function(){var ot=de.state,st=ot.indented;if(ot.lexical.type=="stat")st=ot.lexical.indented;else for(var $t=ot.lexical;$t&&$t.type==")"&&$t.align;$t=$t.prev)st=$t.indented;ot.lexical=new re(st,de.stream.column(),se,null,ot.lexical,Ee)};return _e.lex=!0,_e}function lt(){var se=de.state;se.lexical.prev&&(se.lexical.type==")"&&(se.indented=se.lexical.indented),se.lexical=se.lexical.prev)}lt.lex=!0;function vt(se){function Ee(_e){return _e==se?oe():se==";"||_e=="}"||_e==")"||_e=="]"?le():oe(Ee)}return Ee}function mt(se,Ee){return se=="var"?oe(qe("vardef",Ee),Ui,vt(";"),lt):se=="keyword a"?oe(qe("form"),St,mt,lt):se=="keyword b"?oe(qe("form"),mt,lt):se=="keyword d"?de.stream.match(/^\s*$/,!1)?oe():oe(qe("stat"),Bt,vt(";"),lt):se=="debugger"?oe(vt(";")):se=="{"?oe(qe("}"),pt,D,lt,yt):se==";"?oe():se=="if"?(de.state.lexical.info=="else"&&de.state.cc[de.state.cc.length-1]==lt&&de.state.cc.pop()(),oe(qe("form"),St,mt,lt,ln)):se=="function"?oe(Kn):se=="for"?oe(qe("form"),pt,Ca,mt,yt,lt):se=="class"||N&&Ee=="interface"?(de.marked="keyword",oe(qe("form",se=="class"?se:Ee),Oa,lt)):se=="variable"?N&&Ee=="declare"?(de.marked="keyword",oe(mt)):N&&(Ee=="module"||Ee=="enum"||Ee=="type")&&de.stream.match(/^\s*\w/,!1)?(de.marked="keyword",Ee=="enum"?oe(lo):Ee=="type"?oe(ji,vt("operator"),Te,vt(";")):oe(qe("form"),jr,vt("{"),qe("}"),D,lt,lt)):N&&Ee=="namespace"?(de.marked="keyword",oe(qe("form"),kt,mt,lt)):N&&Ee=="abstract"?(de.marked="keyword",oe(mt)):oe(qe("stat"),Ae):se=="switch"?oe(qe("form"),St,vt("{"),qe("}","switch"),pt,D,lt,lt,yt):se=="case"?oe(kt,vt(":")):se=="default"?oe(vt(":")):se=="catch"?oe(qe("form"),ut,dt,mt,lt,yt):se=="export"?oe(qe("stat"),xr,lt):se=="import"?oe(qe("stat"),ai,lt):se=="async"?oe(mt):Ee=="@"?oe(kt,mt):le(qe("stat"),kt,vt(";"),lt)}function dt(se){if(se=="(")return oe(jn,vt(")"))}function kt(se,Ee){return Wt(se,Ee,!1)}function It(se,Ee){return Wt(se,Ee,!0)}function St(se){return se!="("?le():oe(qe(")"),Bt,vt(")"),lt)}function Wt(se,Ee,_e){if(de.state.fatArrowAt==de.stream.start){var ot=_e?$:G;if(se=="(")return oe(ut,qe(")"),P(jn,")"),lt,vt("=>"),ot,yt);if(se=="variable")return le(ut,jr,vt("=>"),ot,yt)}var st=_e?wt:Gt;return te.hasOwnProperty(se)?oe(st):se=="function"?oe(Kn,st):se=="class"||N&&Ee=="interface"?(de.marked="keyword",oe(qe("form"),wi,lt)):se=="keyword c"||se=="async"?oe(_e?It:kt):se=="("?oe(qe(")"),Bt,vt(")"),lt,st):se=="operator"||se=="spread"?oe(_e?It:kt):se=="["?oe(qe("]"),Yn,lt,st):se=="{"?ie(Ie,"}",null,st):se=="quasi"?le(Rt,st):se=="new"?oe(we(_e)):oe()}function Bt(se){return se.match(/[;\}\)\],]/)?le():le(kt)}function Gt(se,Ee){return se==","?oe(Bt):wt(se,Ee,!1)}function wt(se,Ee,_e){var ot=_e==!1?Gt:wt,st=_e==!1?kt:It;if(se=="=>")return oe(ut,_e?$:G,yt);if(se=="operator")return/\+\+|--/.test(Ee)||N&&Ee=="!"?oe(ot):N&&Ee=="<"&&de.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?oe(qe(">"),P(Te,">"),lt,ot):Ee=="?"?oe(kt,vt(":"),st):oe(st);if(se=="quasi")return le(Rt,ot);if(se!=";"){if(se=="(")return ie(It,")","call",ot);if(se==".")return oe(T,ot);if(se=="[")return oe(qe("]"),Bt,vt("]"),lt,ot);if(N&&Ee=="as")return de.marked="keyword",oe(Te,ot);if(se=="regexp")return de.state.lastType=de.marked="operator",de.stream.backUp(de.stream.pos-de.stream.start-1),oe(st)}}function Rt(se,Ee){return se!="quasi"?le():Ee.slice(Ee.length-2)!="${"?oe(Rt):oe(Bt,pe)}function pe(se){if(se=="}")return de.marked="string-2",de.state.tokenize=Q,oe(Rt)}function G(se){return fe(de.stream,de.state),le(se=="{"?mt:kt)}function $(se){return fe(de.stream,de.state),le(se=="{"?mt:It)}function we(se){return function(Ee){return Ee=="."?oe(se?be:Me):Ee=="variable"&&N?oe(gn,se?wt:Gt):le(se?It:kt)}}function Me(se,Ee){if(Ee=="target")return de.marked="keyword",oe(Gt)}function be(se,Ee){if(Ee=="target")return de.marked="keyword",oe(wt)}function Ae(se){return se==":"?oe(lt,mt):le(Gt,vt(";"),lt)}function T(se){if(se=="variable")return de.marked="property",oe()}function Ie(se,Ee){if(se=="async")return de.marked="property",oe(Ie);if(se=="variable"||de.style=="keyword"){if(de.marked="property",Ee=="get"||Ee=="set")return oe(W);var _e;return N&&de.state.fatArrowAt==de.stream.start&&(_e=de.stream.match(/^\s*:\s*/,!1))&&(de.state.fatArrowAt=de.stream.pos+_e[0].length),oe(O)}else{if(se=="number"||se=="string")return de.marked=S?"property":de.style+" property",oe(O);if(se=="jsonld-keyword")return oe(O);if(N&&ke(Ee))return de.marked="keyword",oe(Ie);if(se=="[")return oe(kt,ee,vt("]"),O);if(se=="spread")return oe(It,O);if(Ee=="*")return de.marked="keyword",oe(Ie);if(se==":")return le(O)}}function W(se){return se!="variable"?le(O):(de.marked="property",oe(Kn))}function O(se){if(se==":")return oe(It);if(se=="(")return le(Kn)}function P(se,Ee,_e){function ot(st,$t){if(_e?_e.indexOf(st)>-1:st==","){var Zt=de.state.lexical;return Zt.info=="call"&&(Zt.pos=(Zt.pos||0)+1),oe(function(Tr,Pr){return Tr==Ee||Pr==Ee?le():le(se)},ot)}return st==Ee||$t==Ee?oe():_e&&_e.indexOf(";")>-1?le(se):oe(vt(Ee))}return function(st,$t){return st==Ee||$t==Ee?oe():le(se,ot)}}function ie(se,Ee,_e){for(var ot=3;ot<arguments.length;ot++)de.cc.push(arguments[ot]);return oe(qe(Ee,_e),P(se,Ee),lt)}function D(se){return se=="}"?oe():le(mt,D)}function ee(se,Ee){if(N){if(se==":")return oe(Te);if(Ee=="?")return oe(ee)}}function ce(se,Ee){if(N&&(se==":"||Ee=="in"))return oe(Te)}function Oe(se){if(N&&se==":")return de.stream.match(/^\s*\w+\s+is\b/,!1)?oe(kt,Pe,Te):oe(Te)}function Pe(se,Ee){if(Ee=="is")return de.marked="keyword",oe()}function Te(se,Ee){if(Ee=="keyof"||Ee=="typeof"||Ee=="infer"||Ee=="readonly")return de.marked="keyword",oe(Ee=="typeof"?It:Te);if(se=="variable"||Ee=="void")return de.marked="type",oe(Ft);if(Ee=="|"||Ee=="&")return oe(Te);if(se=="string"||se=="number"||se=="atom")return oe(Ft);if(se=="[")return oe(qe("]"),P(Te,"]",","),lt,Ft);if(se=="{")return oe(qe("}"),He,lt,Ft);if(se=="(")return oe(P(Yt,")"),ze,Ft);if(se=="<")return oe(P(Te,">"),Te);if(se=="quasi")return le(gt,Ft)}function ze(se){if(se=="=>")return oe(Te)}function He(se){return se.match(/[\}\)\]]/)?oe():se==","||se==";"?oe(He):le(it,He)}function it(se,Ee){if(se=="variable"||de.style=="keyword")return de.marked="property",oe(it);if(Ee=="?"||se=="number"||se=="string")return oe(it);if(se==":")return oe(Te);if(se=="[")return oe(vt("variable"),ce,vt("]"),it);if(se=="(")return le(bi,it);if(!se.match(/[;\}\)\],]/))return oe()}function gt(se,Ee){return se!="quasi"?le():Ee.slice(Ee.length-2)!="${"?oe(gt):oe(Te,Ct)}function Ct(se){if(se=="}")return de.marked="string-2",de.state.tokenize=Q,oe(gt)}function Yt(se,Ee){return se=="variable"&&de.stream.match(/^\s*[?:]/,!1)||Ee=="?"?oe(Yt):se==":"?oe(Te):se=="spread"?oe(Yt):le(Te)}function Ft(se,Ee){if(Ee=="<")return oe(qe(">"),P(Te,">"),lt,Ft);if(Ee=="|"||se=="."||Ee=="&")return oe(Te);if(se=="[")return oe(Te,vt("]"),Ft);if(Ee=="extends"||Ee=="implements")return de.marked="keyword",oe(Te);if(Ee=="?")return oe(Te,vt(":"),Te)}function gn(se,Ee){if(Ee=="<")return oe(qe(">"),P(Te,">"),lt,Ft)}function Xr(){return le(Te,Cn)}function Cn(se,Ee){if(Ee=="=")return oe(Te)}function Ui(se,Ee){return Ee=="enum"?(de.marked="keyword",oe(lo)):le(jr,ee,On,$n)}function jr(se,Ee){if(N&&ke(Ee))return de.marked="keyword",oe(jr);if(se=="variable")return Ve(Ee),oe();if(se=="spread")return oe(jr);if(se=="[")return ie(Gn,"]");if(se=="{")return ie(Un,"}")}function Un(se,Ee){return se=="variable"&&!de.stream.match(/^\s*:/,!1)?(Ve(Ee),oe(On)):(se=="variable"&&(de.marked="property"),se=="spread"?oe(jr):se=="}"?le():se=="["?oe(kt,vt("]"),vt(":"),Un):oe(vt(":"),jr,On))}function Gn(){return le(jr,On)}function On(se,Ee){if(Ee=="=")return oe(It)}function $n(se){if(se==",")return oe(Ui)}function ln(se,Ee){if(se=="keyword b"&&Ee=="else")return oe(qe("form","else"),mt,lt)}function Ca(se,Ee){if(Ee=="await")return oe(Ca);if(se=="(")return oe(qe(")"),Wo,lt)}function Wo(se){return se=="var"?oe(Ui,yn):se=="variable"?oe(yn):le(yn)}function yn(se,Ee){return se==")"?oe():se==";"?oe(yn):Ee=="in"||Ee=="of"?(de.marked="keyword",oe(kt,yn)):le(kt,yn)}function Kn(se,Ee){if(Ee=="*")return de.marked="keyword",oe(Kn);if(se=="variable")return Ve(Ee),oe(Kn);if(se=="(")return oe(ut,qe(")"),P(jn,")"),lt,Oe,mt,yt);if(N&&Ee=="<")return oe(qe(">"),P(Xr,">"),lt,Kn)}function bi(se,Ee){if(Ee=="*")return de.marked="keyword",oe(bi);if(se=="variable")return Ve(Ee),oe(bi);if(se=="(")return oe(ut,qe(")"),P(jn,")"),lt,Oe,yt);if(N&&Ee=="<")return oe(qe(">"),P(Xr,">"),lt,bi)}function ji(se,Ee){if(se=="keyword"||se=="variable")return de.marked="type",oe(ji);if(Ee=="<")return oe(qe(">"),P(Xr,">"),lt)}function jn(se,Ee){return Ee=="@"&&oe(kt,jn),se=="spread"?oe(jn):N&&ke(Ee)?(de.marked="keyword",oe(jn)):N&&se=="this"?oe(ee,On):le(jr,ee,On)}function wi(se,Ee){return se=="variable"?Oa(se,Ee):Tn(se,Ee)}function Oa(se,Ee){if(se=="variable")return Ve(Ee),oe(Tn)}function Tn(se,Ee){if(Ee=="<")return oe(qe(">"),P(Xr,">"),lt,Tn);if(Ee=="extends"||Ee=="implements"||N&&se==",")return Ee=="implements"&&(de.marked="keyword"),oe(N?Te:kt,Tn);if(se=="{")return oe(qe("}"),mn,lt)}function mn(se,Ee){if(se=="async"||se=="variable"&&(Ee=="static"||Ee=="get"||Ee=="set"||N&&ke(Ee))&&de.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return de.marked="keyword",oe(mn);if(se=="variable"||de.style=="keyword")return de.marked="property",oe(Si,mn);if(se=="number"||se=="string")return oe(Si,mn);if(se=="[")return oe(kt,ee,vt("]"),Si,mn);if(Ee=="*")return de.marked="keyword",oe(mn);if(N&&se=="(")return le(bi,mn);if(se==";"||se==",")return oe(mn);if(se=="}")return oe();if(Ee=="@")return oe(kt,mn)}function Si(se,Ee){if(Ee=="!"||Ee=="?")return oe(Si);if(se==":")return oe(Te,On);if(Ee=="=")return oe(It);var _e=de.state.lexical.prev,ot=_e&&_e.info=="interface";return le(ot?bi:Kn)}function xr(se,Ee){return Ee=="*"?(de.marked="keyword",oe(Vn,vt(";"))):Ee=="default"?(de.marked="keyword",oe(kt,vt(";"))):se=="{"?oe(P(At,"}"),Vn,vt(";")):le(mt)}function At(se,Ee){if(Ee=="as")return de.marked="keyword",oe(vt("variable"));if(se=="variable")return le(It,At)}function ai(se){return se=="string"?oe():se=="("?le(kt):se=="."?le(Gt):le(Ai,xn,Vn)}function Ai(se,Ee){return se=="{"?ie(Ai,"}"):(se=="variable"&&Ve(Ee),Ee=="*"&&(de.marked="keyword"),oe(er))}function xn(se){if(se==",")return oe(Ai,xn)}function er(se,Ee){if(Ee=="as")return de.marked="keyword",oe(Ai)}function Vn(se,Ee){if(Ee=="from")return de.marked="keyword",oe(kt)}function Yn(se){return se=="]"?oe():le(P(It,"]"))}function lo(){return le(qe("form"),jr,vt("{"),qe("}"),P(nt,"}"),lt,lt)}function nt(){return le(jr,On)}function Lt(se,Ee){return se.lastType=="operator"||se.lastType==","||_.test(Ee.charAt(0))||/[,.]/.test(Ee.charAt(0))}function si(se,Ee,_e){return Ee.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Ee.lastType)||Ee.lastType=="quasi"&&/\{\s*$/.test(se.string.slice(0,se.pos-(_e||0)))}return{startState:function(se){var Ee={tokenize:V,lastType:"sof",cc:[],lexical:new re((se||0)-d,0,"block",!1),localVars:x.localVars,context:x.localVars&&new tt(null,null,!1),indented:se||0};return x.globalVars&&typeof x.globalVars=="object"&&(Ee.globalVars=x.globalVars),Ee},token:function(se,Ee){if(se.sol()&&(Ee.lexical.hasOwnProperty("align")||(Ee.lexical.align=!1),Ee.indented=se.indentation(),fe(se,Ee)),Ee.tokenize!=q&&se.eatSpace())return null;var _e=Ee.tokenize(se,Ee);return X=="comment"?_e:(Ee.lastType=X=="operator"&&(R=="++"||R=="--")?"incdec":X,ve(Ee,_e,X,R,se))},indent:function(se,Ee){if(se.tokenize==q||se.tokenize==Q)return c.Pass;if(se.tokenize!=V)return 0;var _e=Ee&&Ee.charAt(0),ot=se.lexical,st;if(!/^\s*else\b/.test(Ee))for(var $t=se.cc.length-1;$t>=0;--$t){var Zt=se.cc[$t];if(Zt==lt)ot=ot.prev;else if(Zt!=ln&&Zt!=yt)break}for(;(ot.type=="stat"||ot.type=="form")&&(_e=="}"||(st=se.cc[se.cc.length-1])&&(st==Gt||st==wt)&&!/^[,\.=+\-*:?[\(]/.test(Ee));)ot=ot.prev;b&&ot.type==")"&&ot.prev.type=="stat"&&(ot=ot.prev);var Tr=ot.type,Pr=_e==Tr;return Tr=="vardef"?ot.indented+(se.lastType=="operator"||se.lastType==","?ot.info.length+1:0):Tr=="form"&&_e=="{"?ot.indented:Tr=="form"?ot.indented+d:Tr=="stat"?ot.indented+(Lt(se,Ee)?b||d:0):ot.info=="switch"&&!Pr&&x.doubleIndentSwitch!=!1?ot.indented+(/^(?:case|default)\b/.test(Ee)?d:2*d):ot.align?ot.column+(Pr?0:1):ot.indented+(Pr?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:g?null:"/*",blockCommentEnd:g?null:"*/",blockCommentContinue:g?null:" * ",lineComment:g?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:g?"json":"javascript",jsonldMode:S,jsonMode:g,expressionAllowed:si,skipExpression:function(se){ve(se,"atom","atom","true",new c.StringStream("",2,null))}}}),c.registerHelper("wordChars","javascript",/[\w$]/),c.defineMIME("text/javascript","javascript"),c.defineMIME("text/ecmascript","javascript"),c.defineMIME("application/javascript","javascript"),c.defineMIME("application/x-javascript","javascript"),c.defineMIME("application/ecmascript","javascript"),c.defineMIME("application/json",{name:"javascript",json:!0}),c.defineMIME("application/x-json",{name:"javascript",json:!0}),c.defineMIME("application/manifest+json",{name:"javascript",json:!0}),c.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),c.defineMIME("text/typescript",{name:"javascript",typescript:!0}),c.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},76489:(h,I)=>{"use strict";/*!
42
42
  * cookie
43
43
  * Copyright(c) 2012-2014 Roman Shtylman
44
44
  * Copyright(c) 2015 Douglas Christopher Wilson
45
45
  * MIT Licensed
46
- */I.parse=d,I.serialize=b;var o=decodeURIComponent,c=encodeURIComponent,v=/; */,x=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function d(g,L){if(typeof g!="string")throw new TypeError("argument str must be a string");for(var D={},B=L||{},U=g.split(v),_=B.decode||o,z=0;z<U.length;z++){var k=U[z],Q=k.indexOf("=");if(!(Q<0)){var M=k.substr(0,Q).trim(),O=k.substr(++Q,k.length).trim();O[0]=='"'&&(O=O.slice(1,-1)),D[M]==null&&(D[M]=A(O,_))}}return D}function b(g,L,D){var B=D||{},U=B.encode||c;if(typeof U!="function")throw new TypeError("option encode is invalid");if(!x.test(g))throw new TypeError("argument name is invalid");var _=U(L);if(_&&!x.test(_))throw new TypeError("argument val is invalid");var z=g+"="+_;if(B.maxAge!=null){var k=B.maxAge-0;if(isNaN(k)||!isFinite(k))throw new TypeError("option maxAge is invalid");z+="; Max-Age="+Math.floor(k)}if(B.domain){if(!x.test(B.domain))throw new TypeError("option domain is invalid");z+="; Domain="+B.domain}if(B.path){if(!x.test(B.path))throw new TypeError("option path is invalid");z+="; Path="+B.path}if(B.expires){if(typeof B.expires.toUTCString!="function")throw new TypeError("option expires is invalid");z+="; Expires="+B.expires.toUTCString()}if(B.httpOnly&&(z+="; HttpOnly"),B.secure&&(z+="; Secure"),B.sameSite){var Q=typeof B.sameSite=="string"?B.sameSite.toLowerCase():B.sameSite;switch(Q){case!0:z+="; SameSite=Strict";break;case"lax":z+="; SameSite=Lax";break;case"strict":z+="; SameSite=Strict";break;case"none":z+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return z}function A(g,L){try{return L(g)}catch(D){return g}}},54493:(h,I,o)=>{o(77971),o(53242);var c=o(54058);h.exports=c.Array.from},24034:(h,I,o)=>{o(92737);var c=o(54058);h.exports=c.Array.isArray},15367:(h,I,o)=>{o(85906);var c=o(35703);h.exports=c("Array").concat},12710:(h,I,o)=>{o(66274);var c=o(35703);h.exports=c("Array").entries},62383:(h,I,o)=>{o(21501);var c=o(35703);h.exports=c("Array").filter},17671:(h,I,o)=>{o(80833);var c=o(35703);h.exports=c("Array").find},99324:(h,I,o)=>{o(2437);var c=o(35703);h.exports=c("Array").forEach},80991:(h,I,o)=>{o(97690);var c=o(35703);h.exports=c("Array").includes},8700:(h,I,o)=>{o(99076);var c=o(35703);h.exports=c("Array").indexOf},23866:(h,I,o)=>{o(68787);var c=o(35703);h.exports=c("Array").map},24900:(h,I,o)=>{o(60186);var c=o(35703);h.exports=c("Array").slice},78209:(h,I,o)=>{o(98611);var c=o(35703);h.exports=c("Array").splice},56043:(h,I,o)=>{var c=o(15367),v=Array.prototype;h.exports=function(x){var d=x.concat;return x===v||x instanceof Array&&d===v.concat?c:d}},2480:(h,I,o)=>{var c=o(62383),v=Array.prototype;h.exports=function(x){var d=x.filter;return x===v||x instanceof Array&&d===v.filter?c:d}},32236:(h,I,o)=>{var c=o(17671),v=Array.prototype;h.exports=function(x){var d=x.find;return x===v||x instanceof Array&&d===v.find?c:d}},58557:(h,I,o)=>{var c=o(80991),v=o(21631),x=Array.prototype,d=String.prototype;h.exports=function(b){var A=b.includes;return b===x||b instanceof Array&&A===x.includes?c:typeof b=="string"||b===d||b instanceof String&&A===d.includes?v:A}},34570:(h,I,o)=>{var c=o(8700),v=Array.prototype;h.exports=function(x){var d=x.indexOf;return x===v||x instanceof Array&&d===v.indexOf?c:d}},88287:(h,I,o)=>{var c=o(23866),v=Array.prototype;h.exports=function(x){var d=x.map;return x===v||x instanceof Array&&d===v.map?c:d}},69601:(h,I,o)=>{var c=o(24900),v=Array.prototype;h.exports=function(x){var d=x.slice;return x===v||x instanceof Array&&d===v.slice?c:d}},18339:(h,I,o)=>{var c=o(78209),v=Array.prototype;h.exports=function(x){var d=x.splice;return x===v||x instanceof Array&&d===v.splice?c:d}},84426:(h,I,o)=>{o(32619);var c=o(54058);c.JSON||(c.JSON={stringify:JSON.stringify}),h.exports=function(x,d,b){return c.JSON.stringify.apply(null,arguments)}},45999:(h,I,o)=>{o(49221);var c=o(54058);h.exports=c.Object.assign},35254:(h,I,o)=>{o(53882);var c=o(54058),v=c.Object;h.exports=function(d,b){return v.create(d,b)}},7702:(h,I,o)=>{o(74979);var c=o(54058),v=c.Object,x=h.exports=function(b,A){return v.defineProperties(b,A)};v.defineProperties.sham&&(x.sham=!0)},48171:(h,I,o)=>{o(86450);var c=o(54058),v=c.Object,x=h.exports=function(b,A,g){return v.defineProperty(b,A,g)};v.defineProperty.sham&&(x.sham=!0)},73081:(h,I,o)=>{o(21078);var c=o(54058);h.exports=c.Object.entries},286:(h,I,o)=>{o(46924);var c=o(54058),v=c.Object,x=h.exports=function(b,A){return v.getOwnPropertyDescriptor(b,A)};v.getOwnPropertyDescriptor.sham&&(x.sham=!0)},92766:(h,I,o)=>{o(88482);var c=o(54058);h.exports=c.Object.getOwnPropertyDescriptors},30498:(h,I,o)=>{o(35824);var c=o(54058);h.exports=c.Object.getOwnPropertySymbols},13966:(h,I,o)=>{o(17405);var c=o(54058);h.exports=c.Object.getPrototypeOf},48494:(h,I,o)=>{o(21724);var c=o(54058);h.exports=c.Object.keys},3065:(h,I,o)=>{o(90108);var c=o(54058);h.exports=c.Object.setPrototypeOf},52956:(h,I,o)=>{o(47627),o(55967),o(98881),o(4560),o(91302),o(44349),o(77971),o(7634);var c=o(54058);h.exports=c.Promise},14983:(h,I,o)=>{o(7453);var c=o(54058);h.exports=c.Reflect.construct},37095:(h,I,o)=>{o(42355);var c=o(54058);h.exports=c.Reflect.get},21631:(h,I,o)=>{o(11035);var c=o(35703);h.exports=c("String").includes},57473:(h,I,o)=>{o(85906),o(55967),o(35824),o(8555),o(52615),o(21732),o(35903),o(1825),o(28394),o(45915),o(61766),o(62737),o(89911),o(74315),o(63131),o(64714),o(70659),o(69120),o(79413),o(1502);var c=o(54058);h.exports=c.Symbol},24227:(h,I,o)=>{o(1825),o(77971),o(7634);var c=o(11477);h.exports=c.f("iterator")},32304:(h,I,o)=>{o(55967),o(54334),o(7634);var c=o(54058);h.exports=c.WeakMap},27385:(h,I,o)=>{var c=o(54493);h.exports=c},81522:(h,I,o)=>{var c=o(24034);h.exports=c},32209:(h,I,o)=>{o(7634),o(77971);var c=o(22902);h.exports=c},44442:(h,I,o)=>{var c=o(2480);h.exports=c},57152:(h,I,o)=>{var c=o(46279);h.exports=c},69447:(h,I,o)=>{var c=o(34570);h.exports=c},81493:(h,I,o)=>{var c=o(69601);h.exports=c},76094:(h,I,o)=>{var c=o(35254);h.exports=c},70573:(h,I,o)=>{var c=o(7702);h.exports=c},73685:(h,I,o)=>{var c=o(48171);h.exports=c},27533:(h,I,o)=>{var c=o(286);h.exports=c},39057:(h,I,o)=>{var c=o(92766);h.exports=c},84710:(h,I,o)=>{var c=o(30498);h.exports=c},74303:(h,I,o)=>{var c=o(13966);h.exports=c},93799:(h,I,o)=>{var c=o(48494);h.exports=c},55122:(h,I,o)=>{var c=o(3065);h.exports=c},29531:(h,I,o)=>{var c=o(52956);o(89731),o(55708),o(30014),o(88731),h.exports=c},10856:(h,I,o)=>{var c=o(14983);h.exports=c},31524:(h,I,o)=>{var c=o(37095);h.exports=c},86600:(h,I,o)=>{var c=o(57473);o(28783),o(43975),o(65799),o(45414),o(46774),o(80620),o(36172),h.exports=c},9759:(h,I,o)=>{var c=o(24227);h.exports=c},33916:h=>{h.exports=function(I){if(typeof I!="function")throw TypeError(String(I)+" is not a function");return I}},42488:(h,I,o)=>{var c=o(10941);h.exports=function(v){if(!c(v)&&v!==null)throw TypeError("Can't set "+String(v)+" as a prototype");return v}},18479:h=>{h.exports=function(){}},5743:h=>{h.exports=function(I,o,c){if(!(I instanceof o))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return I}},96059:(h,I,o)=>{var c=o(10941);h.exports=function(v){if(!c(v))throw TypeError(String(v)+" is not an object");return v}},56837:(h,I,o)=>{"use strict";var c=o(3610).forEach,v=o(34194),x=v("forEach");h.exports=x?[].forEach:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}},11354:(h,I,o)=>{"use strict";var c=o(86843),v=o(89678),x=o(75196),d=o(6782),b=o(43057),A=o(55449),g=o(22902);h.exports=function(D){var B=v(D),U=typeof this=="function"?this:Array,_=arguments.length,z=_>1?arguments[1]:void 0,k=z!==void 0,Q=g(B),M=0,O,V,X,W,K,Z;if(k&&(z=c(z,_>2?arguments[2]:void 0,2)),Q!=null&&!(U==Array&&d(Q)))for(W=Q.call(B),K=W.next,V=new U;!(X=K.call(W)).done;M++)Z=k?x(W,z,[X.value,M],!0):X.value,A(V,M,Z);else for(O=b(B.length),V=new U(O);O>M;M++)Z=k?z(B[M],M):B[M],A(V,M,Z);return V.length=M,V}},31692:(h,I,o)=>{var c=o(74529),v=o(43057),x=o(59413),d=function(b){return function(A,g,L){var D=c(A),B=v(D.length),U=x(L,B),_;if(b&&g!=g){for(;B>U;)if(_=D[U++],_!=_)return!0}else for(;B>U;U++)if((b||U in D)&&D[U]===g)return b||U||0;return!b&&-1}};h.exports={includes:d(!0),indexOf:d(!1)}},3610:(h,I,o)=>{var c=o(86843),v=o(37026),x=o(89678),d=o(43057),b=o(64692),A=[].push,g=function(L){var D=L==1,B=L==2,U=L==3,_=L==4,z=L==6,k=L==7,Q=L==5||z;return function(M,O,V,X){for(var W=x(M),K=v(W),Z=c(O,V,3),ce=d(K.length),te=0,ae=X||b,me=D?ae(M,ce):B||k?ae(M,0):void 0,ge,he;ce>te;te++)if((Q||te in K)&&(ge=K[te],he=Z(ge,te,W),L))if(D)me[te]=he;else if(he)switch(L){case 3:return!0;case 5:return ge;case 6:return te;case 2:A.call(me,ge)}else switch(L){case 4:return!1;case 7:A.call(me,ge)}return z?-1:U||_?_:me}};h.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}},50568:(h,I,o)=>{var c=o(95981),v=o(99813),x=o(53385),d=v("species");h.exports=function(b){return x>=51||!c(function(){var A=[],g=A.constructor={};return g[d]=function(){return{foo:1}},A[b](Boolean).foo!==1})}},34194:(h,I,o)=>{"use strict";var c=o(95981);h.exports=function(v,x){var d=[][v];return!!d&&c(function(){d.call(null,x||function(){throw 1},1)})}},64692:(h,I,o)=>{var c=o(10941),v=o(1052),x=o(99813),d=x("species");h.exports=function(b,A){var g;return v(b)&&(g=b.constructor,typeof g=="function"&&(g===Array||v(g.prototype))?g=void 0:c(g)&&(g=g[d],g===null&&(g=void 0))),new(g===void 0?Array:g)(A===0?0:A)}},75196:(h,I,o)=>{var c=o(96059),v=o(7609);h.exports=function(x,d,b,A){try{return A?d(c(b)[0],b[1]):d(b)}catch(g){throw v(x),g}}},21385:(h,I,o)=>{var c=o(99813),v=c("iterator"),x=!1;try{var d=0,b={next:function(){return{done:!!d++}},return:function(){x=!0}};b[v]=function(){return this},Array.from(b,function(){throw 2})}catch(A){}h.exports=function(A,g){if(!g&&!x)return!1;var L=!1;try{var D={};D[v]=function(){return{next:function(){return{done:L=!0}}}},A(D)}catch(B){}return L}},82532:h=>{var I={}.toString;h.exports=function(o){return I.call(o).slice(8,-1)}},9697:(h,I,o)=>{var c=o(22885),v=o(82532),x=o(99813),d=x("toStringTag"),b=v(function(){return arguments}())=="Arguments",A=function(g,L){try{return g[L]}catch(D){}};h.exports=c?v:function(g){var L,D,B;return g===void 0?"Undefined":g===null?"Null":typeof(D=A(L=Object(g),d))=="string"?D:b?v(L):(B=v(L))=="Object"&&typeof L.callee=="function"?"Arguments":B}},8850:(h,I,o)=>{"use strict";var c=o(87524),v=o(21647).getWeakData,x=o(96059),d=o(10941),b=o(5743),A=o(93091),g=o(3610),L=o(47457),D=o(45402),B=D.set,U=D.getterFor,_=g.find,z=g.findIndex,k=0,Q=function(V){return V.frozen||(V.frozen=new M)},M=function(){this.entries=[]},O=function(V,X){return _(V.entries,function(W){return W[0]===X})};M.prototype={get:function(V){var X=O(this,V);if(X)return X[1]},has:function(V){return!!O(this,V)},set:function(V,X){var W=O(this,V);W?W[1]=X:this.entries.push([V,X])},delete:function(V){var X=z(this.entries,function(W){return W[0]===V});return~X&&this.entries.splice(X,1),!!~X}},h.exports={getConstructor:function(V,X,W,K){var Z=V(function(ae,me){b(ae,Z,X),B(ae,{type:X,id:k++,frozen:void 0}),me!=null&&A(me,ae[K],{that:ae,AS_ENTRIES:W})}),ce=U(X),te=function(ae,me,ge){var he=ce(ae),ue=v(x(me),!0);return ue===!0?Q(he).set(me,ge):ue[he.id]=ge,ae};return c(Z.prototype,{delete:function(ae){var me=ce(this);if(!d(ae))return!1;var ge=v(ae);return ge===!0?Q(me).delete(ae):ge&&L(ge,me.id)&&delete ge[me.id]},has:function(me){var ge=ce(this);if(!d(me))return!1;var he=v(me);return he===!0?Q(ge).has(me):he&&L(he,ge.id)}}),c(Z.prototype,W?{get:function(me){var ge=ce(this);if(d(me)){var he=v(me);return he===!0?Q(ge).get(me):he?he[ge.id]:void 0}},set:function(me,ge){return te(this,me,ge)}}:{add:function(me){return te(this,me,!0)}}),Z}}},24683:(h,I,o)=>{"use strict";var c=o(76887),v=o(21899),x=o(21647),d=o(95981),b=o(32029),A=o(93091),g=o(5743),L=o(10941),D=o(90904),B=o(65988).f,U=o(3610).forEach,_=o(55746),z=o(45402),k=z.set,Q=z.getterFor;h.exports=function(M,O,V){var X=M.indexOf("Map")!==-1,W=M.indexOf("Weak")!==-1,K=X?"set":"add",Z=v[M],ce=Z&&Z.prototype,te={},ae;if(!_||typeof Z!="function"||!(W||ce.forEach&&!d(function(){new Z().entries().next()})))ae=V.getConstructor(O,M,X,K),x.REQUIRED=!0;else{ae=O(function(ge,he){k(g(ge,ae,M),{type:M,collection:new Z}),he!=null&&A(he,ge[K],{that:ge,AS_ENTRIES:X})});var me=Q(M);U(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(ge){var he=ge=="add"||ge=="set";ge in ce&&!(W&&ge=="clear")&&b(ae.prototype,ge,function(ue,ie){var Me=me(this).collection;if(!he&&W&&!L(ue))return ge=="get"?void 0:!1;var je=Me[ge](ue===0?0:ue,ie);return he?this:je})}),W||B(ae.prototype,"size",{configurable:!0,get:function(){return me(this).collection.size}})}return D(ae,M,!1,!0),te[M]=ae,c({global:!0,forced:!0},te),W||V.setStrong(ae,M,X),ae}},67772:(h,I,o)=>{var c=o(99813),v=c("match");h.exports=function(x){var d=/./;try{"/./"[x](d)}catch(b){try{return d[v]=!1,"/./"[x](d)}catch(A){}}return!1}},64160:(h,I,o)=>{var c=o(95981);h.exports=!c(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},31046:(h,I,o)=>{"use strict";var c=o(35143).IteratorPrototype,v=o(29290),x=o(31887),d=o(90904),b=o(12077),A=function(){return this};h.exports=function(g,L,D){var B=L+" Iterator";return g.prototype=v(c,{next:x(1,D)}),d(g,B,!1,!0),b[B]=A,g}},32029:(h,I,o)=>{var c=o(55746),v=o(65988),x=o(31887);h.exports=c?function(d,b,A){return v.f(d,b,x(1,A))}:function(d,b,A){return d[b]=A,d}},31887:h=>{h.exports=function(I,o){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:o}}},55449:(h,I,o)=>{"use strict";var c=o(46935),v=o(65988),x=o(31887);h.exports=function(d,b,A){var g=c(b);g in d?v.f(d,g,x(0,A)):d[g]=A}},47771:(h,I,o)=>{"use strict";var c=o(76887),v=o(31046),x=o(249),d=o(88929),b=o(90904),A=o(32029),g=o(99754),L=o(99813),D=o(82529),B=o(12077),U=o(35143),_=U.IteratorPrototype,z=U.BUGGY_SAFARI_ITERATORS,k=L("iterator"),Q="keys",M="values",O="entries",V=function(){return this};h.exports=function(X,W,K,Z,ce,te,ae){v(K,W,Z);var me=function(Qe){if(Qe===ce&&Me)return Me;if(!z&&Qe in ue)return ue[Qe];switch(Qe){case Q:return function(){return new K(this,Qe)};case M:return function(){return new K(this,Qe)};case O:return function(){return new K(this,Qe)}}return function(){return new K(this)}},ge=W+" Iterator",he=!1,ue=X.prototype,ie=ue[k]||ue["@@iterator"]||ce&&ue[ce],Me=!z&&ie||me(ce),je=W=="Array"&&ue.entries||ie,Ne,Re,rt;if(je&&(Ne=x(je.call(new X)),_!==Object.prototype&&Ne.next&&(!D&&x(Ne)!==_&&(d?d(Ne,_):typeof Ne[k]!="function"&&A(Ne,k,V)),b(Ne,ge,!0,!0),D&&(B[ge]=V))),ce==M&&ie&&ie.name!==M&&(he=!0,Me=function(){return ie.call(this)}),(!D||ae)&&ue[k]!==Me&&A(ue,k,Me),B[W]=Me,ce)if(Re={values:me(M),keys:te?Me:me(Q),entries:me(O)},ae)for(rt in Re)(z||he||!(rt in ue))&&g(ue,rt,Re[rt]);else c({target:W,proto:!0,forced:z||he},Re);return Re}},66349:(h,I,o)=>{var c=o(54058),v=o(47457),x=o(11477),d=o(65988).f;h.exports=function(b){var A=c.Symbol||(c.Symbol={});v(A,b)||d(A,b,{value:x.f(b)})}},55746:(h,I,o)=>{var c=o(95981);h.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},61333:(h,I,o)=>{var c=o(21899),v=o(10941),x=c.document,d=v(x)&&v(x.createElement);h.exports=function(b){return d?x.createElement(b):{}}},63281:h=>{h.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},23321:h=>{h.exports=typeof window=="object"},22749:(h,I,o)=>{var c=o(2861);h.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(c)},6049:(h,I,o)=>{var c=o(82532),v=o(21899);h.exports=c(v.process)=="process"},58045:(h,I,o)=>{var c=o(2861);h.exports=/web0s(?!.*chrome)/i.test(c)},2861:(h,I,o)=>{var c=o(626);h.exports=c("navigator","userAgent")||""},53385:(h,I,o)=>{var c=o(21899),v=o(2861),x=c.process,d=x&&x.versions,b=d&&d.v8,A,g;b?(A=b.split("."),g=A[0]<4?1:A[0]+A[1]):v&&(A=v.match(/Edge\/(\d+)/),(!A||A[1]>=74)&&(A=v.match(/Chrome\/(\d+)/),A&&(g=A[1]))),h.exports=g&&+g},35703:(h,I,o)=>{var c=o(54058);h.exports=function(v){return c[v+"Prototype"]}},56759:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(h,I,o)=>{"use strict";var c=o(21899),v=o(49677).f,x=o(37252),d=o(54058),b=o(86843),A=o(32029),g=o(47457),L=function(D){var B=function(U,_,z){if(this instanceof D){switch(arguments.length){case 0:return new D;case 1:return new D(U);case 2:return new D(U,_)}return new D(U,_,z)}return D.apply(this,arguments)};return B.prototype=D.prototype,B};h.exports=function(D,B){var U=D.target,_=D.global,z=D.stat,k=D.proto,Q=_?c:z?c[U]:(c[U]||{}).prototype,M=_?d:d[U]||(d[U]={}),O=M.prototype,V,X,W,K,Z,ce,te,ae,me;for(K in B)V=x(_?K:U+(z?".":"#")+K,D.forced),X=!V&&Q&&g(Q,K),ce=M[K],X&&(D.noTargetGet?(me=v(Q,K),te=me&&me.value):te=Q[K]),Z=X&&te?te:B[K],!(X&&typeof ce==typeof Z)&&(D.bind&&X?ae=b(Z,c):D.wrap&&X?ae=L(Z):k&&typeof Z=="function"?ae=b(Function.call,Z):ae=Z,(D.sham||Z&&Z.sham||ce&&ce.sham)&&A(ae,"sham",!0),M[K]=ae,k&&(W=U+"Prototype",g(d,W)||A(d,W,{}),d[W][K]=Z,D.real&&O&&!O[K]&&A(O,K,Z)))}},95981:h=>{h.exports=function(I){try{return!!I()}catch(o){return!0}}},45602:(h,I,o)=>{var c=o(95981);h.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},86843:(h,I,o)=>{var c=o(33916);h.exports=function(v,x,d){if(c(v),x===void 0)return v;switch(d){case 0:return function(){return v.call(x)};case 1:return function(b){return v.call(x,b)};case 2:return function(b,A){return v.call(x,b,A)};case 3:return function(b,A,g){return v.call(x,b,A,g)}}return function(){return v.apply(x,arguments)}}},98308:(h,I,o)=>{"use strict";var c=o(33916),v=o(10941),x=[].slice,d={},b=function(A,g,L){if(!(g in d)){for(var D=[],B=0;B<g;B++)D[B]="a["+B+"]";d[g]=Function("C,a","return new C("+D.join(",")+")")}return d[g](A,L)};h.exports=Function.bind||function(g){var L=c(this),D=x.call(arguments,1),B=function(){var _=D.concat(x.call(arguments));return this instanceof B?b(L,_.length,_):L.apply(g,_)};return v(L.prototype)&&(B.prototype=L.prototype),B}},626:(h,I,o)=>{var c=o(54058),v=o(21899),x=function(d){return typeof d=="function"?d:void 0};h.exports=function(d,b){return arguments.length<2?x(c[d])||x(v[d]):c[d]&&c[d][b]||v[d]&&v[d][b]}},22902:(h,I,o)=>{var c=o(9697),v=o(12077),x=o(99813),d=x("iterator");h.exports=function(b){if(b!=null)return b[d]||b["@@iterator"]||v[c(b)]}},21899:(h,I,o)=>{var c=function(v){return v&&v.Math==Math&&v};h.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof o.g=="object"&&o.g)||function(){return this}()||Function("return this")()},47457:(h,I,o)=>{var c=o(89678),v={}.hasOwnProperty;h.exports=Object.hasOwn||function(d,b){return v.call(c(d),b)}},27748:h=>{h.exports={}},34845:(h,I,o)=>{var c=o(21899);h.exports=function(v,x){var d=c.console;d&&d.error&&(arguments.length===1?d.error(v):d.error(v,x))}},15463:(h,I,o)=>{var c=o(626);h.exports=c("document","documentElement")},2840:(h,I,o)=>{var c=o(55746),v=o(95981),x=o(61333);h.exports=!c&&!v(function(){return Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a!=7})},37026:(h,I,o)=>{var c=o(95981),v=o(82532),x="".split;h.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return v(d)=="String"?x.call(d,""):Object(d)}:Object},81302:(h,I,o)=>{var c=o(63030),v=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(x){return v.call(x)}),h.exports=c.inspectSource},21647:(h,I,o)=>{var c=o(27748),v=o(10941),x=o(47457),d=o(65988).f,b=o(99418),A=o(45602),g=b("meta"),L=0,D=Object.isExtensible||function(){return!0},B=function(Q){d(Q,g,{value:{objectID:"O"+ ++L,weakData:{}}})},U=function(Q,M){if(!v(Q))return typeof Q=="symbol"?Q:(typeof Q=="string"?"S":"P")+Q;if(!x(Q,g)){if(!D(Q))return"F";if(!M)return"E";B(Q)}return Q[g].objectID},_=function(Q,M){if(!x(Q,g)){if(!D(Q))return!0;if(!M)return!1;B(Q)}return Q[g].weakData},z=function(Q){return A&&k.REQUIRED&&D(Q)&&!x(Q,g)&&B(Q),Q},k=h.exports={REQUIRED:!1,fastKey:U,getWeakData:_,onFreeze:z};c[g]=!0},45402:(h,I,o)=>{var c=o(38019),v=o(21899),x=o(10941),d=o(32029),b=o(47457),A=o(63030),g=o(44262),L=o(27748),D="Object already initialized",B=v.WeakMap,U,_,z,k=function(K){return z(K)?_(K):U(K,{})},Q=function(K){return function(Z){var ce;if(!x(Z)||(ce=_(Z)).type!==K)throw TypeError("Incompatible receiver, "+K+" required");return ce}};if(c||A.state){var M=A.state||(A.state=new B),O=M.get,V=M.has,X=M.set;U=function(K,Z){if(V.call(M,K))throw new TypeError(D);return Z.facade=K,X.call(M,K,Z),Z},_=function(K){return O.call(M,K)||{}},z=function(K){return V.call(M,K)}}else{var W=g("state");L[W]=!0,U=function(K,Z){if(b(K,W))throw new TypeError(D);return Z.facade=K,d(K,W,Z),Z},_=function(K){return b(K,W)?K[W]:{}},z=function(K){return b(K,W)}}h.exports={set:U,get:_,has:z,enforce:k,getterFor:Q}},6782:(h,I,o)=>{var c=o(99813),v=o(12077),x=c("iterator"),d=Array.prototype;h.exports=function(b){return b!==void 0&&(v.Array===b||d[x]===b)}},1052:(h,I,o)=>{var c=o(82532);h.exports=Array.isArray||function(x){return c(x)=="Array"}},37252:(h,I,o)=>{var c=o(95981),v=/#|\.prototype\./,x=function(L,D){var B=b[d(L)];return B==g?!0:B==A?!1:typeof D=="function"?c(D):!!D},d=x.normalize=function(L){return String(L).replace(v,".").toLowerCase()},b=x.data={},A=x.NATIVE="N",g=x.POLYFILL="P";h.exports=x},10941:h=>{h.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},82529:h=>{h.exports=!0},60685:(h,I,o)=>{var c=o(10941),v=o(82532),x=o(99813),d=x("match");h.exports=function(b){var A;return c(b)&&((A=b[d])!==void 0?!!A:v(b)=="RegExp")}},93091:(h,I,o)=>{var c=o(96059),v=o(6782),x=o(43057),d=o(86843),b=o(22902),A=o(7609),g=function(L,D){this.stopped=L,this.result=D};h.exports=function(L,D,B){var U=B&&B.that,_=!!(B&&B.AS_ENTRIES),z=!!(B&&B.IS_ITERATOR),k=!!(B&&B.INTERRUPTED),Q=d(D,U,1+_+k),M,O,V,X,W,K,Z,ce=function(ae){return M&&A(M),new g(!0,ae)},te=function(ae){return _?(c(ae),k?Q(ae[0],ae[1],ce):Q(ae[0],ae[1])):k?Q(ae,ce):Q(ae)};if(z)M=L;else{if(O=b(L),typeof O!="function")throw TypeError("Target is not iterable");if(v(O)){for(V=0,X=x(L.length);X>V;V++)if(W=te(L[V]),W&&W instanceof g)return W;return new g(!1)}M=O.call(L)}for(K=M.next;!(Z=K.call(M)).done;){try{W=te(Z.value)}catch(ae){throw A(M),ae}if(typeof W=="object"&&W&&W instanceof g)return W}return new g(!1)}},7609:(h,I,o)=>{var c=o(96059);h.exports=function(v){var x=v.return;if(x!==void 0)return c(x.call(v)).value}},35143:(h,I,o)=>{"use strict";var c=o(95981),v=o(249),x=o(32029),d=o(47457),b=o(99813),A=o(82529),g=b("iterator"),L=!1,D=function(){return this},B,U,_;[].keys&&(_=[].keys(),"next"in _?(U=v(v(_)),U!==Object.prototype&&(B=U)):L=!0);var z=B==null||c(function(){var k={};return B[g].call(k)!==k});z&&(B={}),(!A||z)&&!d(B,g)&&x(B,g,D),h.exports={IteratorPrototype:B,BUGGY_SAFARI_ITERATORS:L}},12077:h=>{h.exports={}},66132:(h,I,o)=>{var c=o(21899),v=o(49677).f,x=o(42941).set,d=o(22749),b=o(58045),A=o(6049),g=c.MutationObserver||c.WebKitMutationObserver,L=c.document,D=c.process,B=c.Promise,U=v(c,"queueMicrotask"),_=U&&U.value,z,k,Q,M,O,V,X,W;_||(z=function(){var K,Z;for(A&&(K=D.domain)&&K.exit();k;){Z=k.fn,k=k.next;try{Z()}catch(ce){throw k?M():Q=void 0,ce}}Q=void 0,K&&K.enter()},!d&&!A&&!b&&g&&L?(O=!0,V=L.createTextNode(""),new g(z).observe(V,{characterData:!0}),M=function(){V.data=O=!O}):B&&B.resolve?(X=B.resolve(void 0),X.constructor=B,W=X.then,M=function(){W.call(X,z)}):A?M=function(){D.nextTick(z)}:M=function(){x.call(c,z)}),h.exports=_||function(K){var Z={fn:K,next:void 0};Q&&(Q.next=Z),k||(k=Z,M()),Q=Z}},19297:(h,I,o)=>{var c=o(21899);h.exports=c.Promise},72497:(h,I,o)=>{var c=o(53385),v=o(95981);h.exports=!!Object.getOwnPropertySymbols&&!v(function(){var x=Symbol();return!String(x)||!(Object(x)instanceof Symbol)||!Symbol.sham&&c&&c<41})},38019:(h,I,o)=>{var c=o(21899),v=o(81302),x=c.WeakMap;h.exports=typeof x=="function"&&/native code/.test(v(x))},69520:(h,I,o)=>{"use strict";var c=o(33916),v=function(x){var d,b;this.promise=new x(function(A,g){if(d!==void 0||b!==void 0)throw TypeError("Bad Promise constructor");d=A,b=g}),this.resolve=c(d),this.reject=c(b)};h.exports.f=function(x){return new v(x)}},70344:(h,I,o)=>{var c=o(60685);h.exports=function(v){if(c(v))throw TypeError("The method doesn't accept regular expressions");return v}},24420:(h,I,o)=>{"use strict";var c=o(55746),v=o(95981),x=o(14771),d=o(87857),b=o(36760),A=o(89678),g=o(37026),L=Object.assign,D=Object.defineProperty;h.exports=!L||v(function(){if(c&&L({b:1},L(D({},"a",{enumerable:!0,get:function(){D(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var B={},U={},_=Symbol(),z="abcdefghijklmnopqrst";return B[_]=7,z.split("").forEach(function(k){U[k]=k}),L({},B)[_]!=7||x(L({},U)).join("")!=z})?function(U,_){for(var z=A(U),k=arguments.length,Q=1,M=d.f,O=b.f;k>Q;)for(var V=g(arguments[Q++]),X=M?x(V).concat(M(V)):x(V),W=X.length,K=0,Z;W>K;)Z=X[K++],(!c||O.call(V,Z))&&(z[Z]=V[Z]);return z}:L},29290:(h,I,o)=>{var c=o(96059),v=o(59938),x=o(56759),d=o(27748),b=o(15463),A=o(61333),g=o(44262),L=">",D="<",B="prototype",U="script",_=g("IE_PROTO"),z=function(){},k=function(X){return D+U+L+X+D+"/"+U+L},Q=function(X){X.write(k("")),X.close();var W=X.parentWindow.Object;return X=null,W},M=function(){var X=A("iframe"),W="java"+U+":",K;return X.style.display="none",b.appendChild(X),X.src=String(W),K=X.contentWindow.document,K.open(),K.write(k("document.F=Object")),K.close(),K.F},O,V=function(){try{O=document.domain&&new ActiveXObject("htmlfile")}catch(W){}V=O?Q(O):M();for(var X=x.length;X--;)delete V[B][x[X]];return V()};d[_]=!0,h.exports=Object.create||function(W,K){var Z;return W!==null?(z[B]=c(W),Z=new z,z[B]=null,Z[_]=W):Z=V(),K===void 0?Z:v(Z,K)}},59938:(h,I,o)=>{var c=o(55746),v=o(65988),x=o(96059),d=o(14771);h.exports=c?Object.defineProperties:function(A,g){x(A);for(var L=d(g),D=L.length,B=0,U;D>B;)v.f(A,U=L[B++],g[U]);return A}},65988:(h,I,o)=>{var c=o(55746),v=o(2840),x=o(96059),d=o(46935),b=Object.defineProperty;I.f=c?b:function(g,L,D){if(x(g),L=d(L,!0),x(D),v)try{return b(g,L,D)}catch(B){}if("get"in D||"set"in D)throw TypeError("Accessors not supported");return"value"in D&&(g[L]=D.value),g}},49677:(h,I,o)=>{var c=o(55746),v=o(36760),x=o(31887),d=o(74529),b=o(46935),A=o(47457),g=o(2840),L=Object.getOwnPropertyDescriptor;I.f=c?L:function(B,U){if(B=d(B),U=b(U,!0),g)try{return L(B,U)}catch(_){}if(A(B,U))return x(!v.f.call(B,U),B[U])}},684:(h,I,o)=>{var c=o(74529),v=o(10946).f,x={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(A){try{return v(A)}catch(g){return d.slice()}};h.exports.f=function(g){return d&&x.call(g)=="[object Window]"?b(g):v(c(g))}},10946:(h,I,o)=>{var c=o(55629),v=o(56759),x=v.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(b){return c(b,x)}},87857:(h,I)=>{I.f=Object.getOwnPropertySymbols},249:(h,I,o)=>{var c=o(47457),v=o(89678),x=o(44262),d=o(64160),b=x("IE_PROTO"),A=Object.prototype;h.exports=d?Object.getPrototypeOf:function(g){return g=v(g),c(g,b)?g[b]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?A:null}},55629:(h,I,o)=>{var c=o(47457),v=o(74529),x=o(31692).indexOf,d=o(27748);h.exports=function(b,A){var g=v(b),L=0,D=[],B;for(B in g)!c(d,B)&&c(g,B)&&D.push(B);for(;A.length>L;)c(g,B=A[L++])&&(~x(D,B)||D.push(B));return D}},14771:(h,I,o)=>{var c=o(55629),v=o(56759);h.exports=Object.keys||function(d){return c(d,v)}},36760:(h,I)=>{"use strict";var o={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,v=c&&!o.call({1:2},1);I.f=v?function(d){var b=c(this,d);return!!b&&b.enumerable}:o},88929:(h,I,o)=>{var c=o(96059),v=o(42488);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var x=!1,d={},b;try{b=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,b.call(d,[]),x=d instanceof Array}catch(A){}return function(g,L){return c(g),v(L),x?b.call(g,L):g.__proto__=L,g}}():void 0)},88810:(h,I,o)=>{var c=o(55746),v=o(14771),x=o(74529),d=o(36760).f,b=function(A){return function(g){for(var L=x(g),D=v(L),B=D.length,U=0,_=[],z;B>U;)z=D[U++],(!c||d.call(L,z))&&_.push(A?[z,L[z]]:L[z]);return _}};h.exports={entries:b(!0),values:b(!1)}},95623:(h,I,o)=>{"use strict";var c=o(22885),v=o(9697);h.exports=c?{}.toString:function(){return"[object "+v(this)+"]"}},31136:(h,I,o)=>{var c=o(626),v=o(10946),x=o(87857),d=o(96059);h.exports=c("Reflect","ownKeys")||function(A){var g=v.f(d(A)),L=x.f;return L?g.concat(L(A)):g}},54058:h=>{h.exports={}},40002:h=>{h.exports=function(I){try{return{error:!1,value:I()}}catch(o){return{error:!0,value:o}}}},56584:(h,I,o)=>{var c=o(96059),v=o(10941),x=o(69520);h.exports=function(d,b){if(c(d),v(b)&&b.constructor===d)return b;var A=x.f(d),g=A.resolve;return g(b),A.promise}},87524:(h,I,o)=>{var c=o(99754);h.exports=function(v,x,d){for(var b in x)d&&d.unsafe&&v[b]?v[b]=x[b]:c(v,b,x[b],d);return v}},99754:(h,I,o)=>{var c=o(32029);h.exports=function(v,x,d,b){b&&b.enumerable?v[x]=d:c(v,x,d)}},48219:h=>{h.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},4911:(h,I,o)=>{var c=o(21899),v=o(32029);h.exports=function(x,d){try{v(c,x,d)}catch(b){c[x]=d}return d}},94431:(h,I,o)=>{"use strict";var c=o(626),v=o(65988),x=o(99813),d=o(55746),b=x("species");h.exports=function(A){var g=c(A),L=v.f;d&&g&&!g[b]&&L(g,b,{configurable:!0,get:function(){return this}})}},90904:(h,I,o)=>{var c=o(22885),v=o(65988).f,x=o(32029),d=o(47457),b=o(95623),A=o(99813),g=A("toStringTag");h.exports=function(L,D,B,U){if(L){var _=B?L:L.prototype;d(_,g)||v(_,g,{configurable:!0,value:D}),U&&!c&&x(_,"toString",b)}}},44262:(h,I,o)=>{var c=o(68726),v=o(99418),x=c("keys");h.exports=function(d){return x[d]||(x[d]=v(d))}},63030:(h,I,o)=>{var c=o(21899),v=o(4911),x="__core-js_shared__",d=c[x]||v(x,{});h.exports=d},68726:(h,I,o)=>{var c=o(82529),v=o(63030);(h.exports=function(x,d){return v[x]||(v[x]=d!==void 0?d:{})})("versions",[]).push({version:"3.14.0",mode:c?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},70487:(h,I,o)=>{var c=o(96059),v=o(33916),x=o(99813),d=x("species");h.exports=function(b,A){var g=c(b).constructor,L;return g===void 0||(L=c(g)[d])==null?A:v(L)}},64620:(h,I,o)=>{var c=o(68459),v=o(48219),x=function(d){return function(b,A){var g=String(v(b)),L=c(A),D=g.length,B,U;return L<0||L>=D?d?"":void 0:(B=g.charCodeAt(L),B<55296||B>56319||L+1===D||(U=g.charCodeAt(L+1))<56320||U>57343?d?g.charAt(L):B:d?g.slice(L,L+2):(B-55296<<10)+(U-56320)+65536)}};h.exports={codeAt:x(!1),charAt:x(!0)}},42941:(h,I,o)=>{var c=o(21899),v=o(95981),x=o(86843),d=o(15463),b=o(61333),A=o(22749),g=o(6049),L=c.location,D=c.setImmediate,B=c.clearImmediate,U=c.process,_=c.MessageChannel,z=c.Dispatch,k=0,Q={},M="onreadystatechange",O,V,X,W=function(te){if(Q.hasOwnProperty(te)){var ae=Q[te];delete Q[te],ae()}},K=function(te){return function(){W(te)}},Z=function(te){W(te.data)},ce=function(te){c.postMessage(te+"",L.protocol+"//"+L.host)};(!D||!B)&&(D=function(ae){for(var me=[],ge=1;arguments.length>ge;)me.push(arguments[ge++]);return Q[++k]=function(){(typeof ae=="function"?ae:Function(ae)).apply(void 0,me)},O(k),k},B=function(ae){delete Q[ae]},g?O=function(te){U.nextTick(K(te))}:z&&z.now?O=function(te){z.now(K(te))}:_&&!A?(V=new _,X=V.port2,V.port1.onmessage=Z,O=x(X.postMessage,X,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&L&&L.protocol!=="file:"&&!v(ce)?(O=ce,c.addEventListener("message",Z,!1)):M in b("script")?O=function(te){d.appendChild(b("script"))[M]=function(){d.removeChild(this),W(te)}}:O=function(te){setTimeout(K(te),0)}),h.exports={set:D,clear:B}},59413:(h,I,o)=>{var c=o(68459),v=Math.max,x=Math.min;h.exports=function(d,b){var A=c(d);return A<0?v(A+b,0):x(A,b)}},74529:(h,I,o)=>{var c=o(37026),v=o(48219);h.exports=function(x){return c(v(x))}},68459:h=>{var I=Math.ceil,o=Math.floor;h.exports=function(c){return isNaN(c=+c)?0:(c>0?o:I)(c)}},43057:(h,I,o)=>{var c=o(68459),v=Math.min;h.exports=function(x){return x>0?v(c(x),9007199254740991):0}},89678:(h,I,o)=>{var c=o(48219);h.exports=function(v){return Object(c(v))}},46935:(h,I,o)=>{var c=o(10941);h.exports=function(v,x){if(!c(v))return v;var d,b;if(x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v))||typeof(d=v.valueOf)=="function"&&!c(b=d.call(v))||!x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v)))return b;throw TypeError("Can't convert object to primitive value")}},22885:(h,I,o)=>{var c=o(99813),v=c("toStringTag"),x={};x[v]="z",h.exports=String(x)==="[object z]"},99418:h=>{var I=0,o=Math.random();h.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++I+o).toString(36)}},32302:(h,I,o)=>{var c=o(72497);h.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},11477:(h,I,o)=>{var c=o(99813);I.f=c},99813:(h,I,o)=>{var c=o(21899),v=o(68726),x=o(47457),d=o(99418),b=o(72497),A=o(32302),g=v("wks"),L=c.Symbol,D=A?L:L&&L.withoutSetter||d;h.exports=function(B){return(!x(g,B)||!(b||typeof g[B]=="string"))&&(b&&x(L,B)?g[B]=L[B]:g[B]=D("Symbol."+B)),g[B]}},47627:(h,I,o)=>{"use strict";var c=o(76887),v=o(249),x=o(88929),d=o(29290),b=o(32029),A=o(31887),g=o(93091),L=function(B,U){var _=this;if(!(_ instanceof L))return new L(B,U);x&&(_=x(new Error(void 0),v(_))),U!==void 0&&b(_,"message",String(U));var z=[];return g(B,z.push,{that:z}),b(_,"errors",z),_};L.prototype=d(Error.prototype,{constructor:A(5,L),message:A(5,""),name:A(5,"AggregateError")}),c({global:!0},{AggregateError:L})},85906:(h,I,o)=>{"use strict";var c=o(76887),v=o(95981),x=o(1052),d=o(10941),b=o(89678),A=o(43057),g=o(55449),L=o(64692),D=o(50568),B=o(99813),U=o(53385),_=B("isConcatSpreadable"),z=9007199254740991,k="Maximum allowed index exceeded",Q=U>=51||!v(function(){var X=[];return X[_]=!1,X.concat()[0]!==X}),M=D("concat"),O=function(X){if(!d(X))return!1;var W=X[_];return W!==void 0?!!W:x(X)},V=!Q||!M;c({target:"Array",proto:!0,forced:V},{concat:function(W){var K=b(this),Z=L(K,0),ce=0,te,ae,me,ge,he;for(te=-1,me=arguments.length;te<me;te++)if(he=te===-1?K:arguments[te],O(he)){if(ge=A(he.length),ce+ge>z)throw TypeError(k);for(ae=0;ae<ge;ae++,ce++)ae in he&&g(Z,ce,he[ae])}else{if(ce>=z)throw TypeError(k);g(Z,ce++,he)}return Z.length=ce,Z}})},21501:(h,I,o)=>{"use strict";var c=o(76887),v=o(3610).filter,x=o(50568),d=x("filter");c({target:"Array",proto:!0,forced:!d},{filter:function(A){return v(this,A,arguments.length>1?arguments[1]:void 0)}})},80833:(h,I,o)=>{"use strict";var c=o(76887),v=o(3610).find,x=o(18479),d="find",b=!0;d in[]&&Array(1)[d](function(){b=!1}),c({target:"Array",proto:!0,forced:b},{find:function(g){return v(this,g,arguments.length>1?arguments[1]:void 0)}}),x(d)},2437:(h,I,o)=>{"use strict";var c=o(76887),v=o(56837);c({target:"Array",proto:!0,forced:[].forEach!=v},{forEach:v})},53242:(h,I,o)=>{var c=o(76887),v=o(11354),x=o(21385),d=!x(function(b){Array.from(b)});c({target:"Array",stat:!0,forced:d},{from:v})},97690:(h,I,o)=>{"use strict";var c=o(76887),v=o(31692).includes,x=o(18479);c({target:"Array",proto:!0},{includes:function(b){return v(this,b,arguments.length>1?arguments[1]:void 0)}}),x("includes")},99076:(h,I,o)=>{"use strict";var c=o(76887),v=o(31692).indexOf,x=o(34194),d=[].indexOf,b=!!d&&1/[1].indexOf(1,-0)<0,A=x("indexOf");c({target:"Array",proto:!0,forced:b||!A},{indexOf:function(L){return b?d.apply(this,arguments)||0:v(this,L,arguments.length>1?arguments[1]:void 0)}})},92737:(h,I,o)=>{var c=o(76887),v=o(1052);c({target:"Array",stat:!0},{isArray:v})},66274:(h,I,o)=>{"use strict";var c=o(74529),v=o(18479),x=o(12077),d=o(45402),b=o(47771),A="Array Iterator",g=d.set,L=d.getterFor(A);h.exports=b(Array,"Array",function(D,B){g(this,{type:A,target:c(D),index:0,kind:B})},function(){var D=L(this),B=D.target,U=D.kind,_=D.index++;return!B||_>=B.length?(D.target=void 0,{value:void 0,done:!0}):U=="keys"?{value:_,done:!1}:U=="values"?{value:B[_],done:!1}:{value:[_,B[_]],done:!1}},"values"),x.Arguments=x.Array,v("keys"),v("values"),v("entries")},68787:(h,I,o)=>{"use strict";var c=o(76887),v=o(3610).map,x=o(50568),d=x("map");c({target:"Array",proto:!0,forced:!d},{map:function(A){return v(this,A,arguments.length>1?arguments[1]:void 0)}})},60186:(h,I,o)=>{"use strict";var c=o(76887),v=o(10941),x=o(1052),d=o(59413),b=o(43057),A=o(74529),g=o(55449),L=o(99813),D=o(50568),B=D("slice"),U=L("species"),_=[].slice,z=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(Q,M){var O=A(this),V=b(O.length),X=d(Q,V),W=d(M===void 0?V:M,V),K,Z,ce;if(x(O)&&(K=O.constructor,typeof K=="function"&&(K===Array||x(K.prototype))?K=void 0:v(K)&&(K=K[U],K===null&&(K=void 0)),K===Array||K===void 0))return _.call(O,X,W);for(Z=new(K===void 0?Array:K)(z(W-X,0)),ce=0;X<W;X++,ce++)X in O&&g(Z,ce,O[X]);return Z.length=ce,Z}})},98611:(h,I,o)=>{"use strict";var c=o(76887),v=o(59413),x=o(68459),d=o(43057),b=o(89678),A=o(64692),g=o(55449),L=o(50568),D=L("splice"),B=Math.max,U=Math.min,_=9007199254740991,z="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!D},{splice:function(Q,M){var O=b(this),V=d(O.length),X=v(Q,V),W=arguments.length,K,Z,ce,te,ae,me;if(W===0?K=Z=0:W===1?(K=0,Z=V-X):(K=W-2,Z=U(B(x(M),0),V-X)),V+K-Z>_)throw TypeError(z);for(ce=A(O,Z),te=0;te<Z;te++)ae=X+te,ae in O&&g(ce,te,O[ae]);if(ce.length=Z,K<Z){for(te=X;te<V-Z;te++)ae=te+Z,me=te+K,ae in O?O[me]=O[ae]:delete O[me];for(te=V;te>V-Z+K;te--)delete O[te-1]}else if(K>Z)for(te=V-Z;te>X;te--)ae=te+Z-1,me=te+K-1,ae in O?O[me]=O[ae]:delete O[me];for(te=0;te<K;te++)O[te+X]=arguments[te+2];return O.length=V-Z+K,ce}})},32619:(h,I,o)=>{var c=o(76887),v=o(626),x=o(95981),d=v("JSON","stringify"),b=/[\uD800-\uDFFF]/g,A=/^[\uD800-\uDBFF]$/,g=/^[\uDC00-\uDFFF]$/,L=function(B,U,_){var z=_.charAt(U-1),k=_.charAt(U+1);return A.test(B)&&!g.test(k)||g.test(B)&&!A.test(z)?"\\u"+B.charCodeAt(0).toString(16):B},D=x(function(){return d("\uDF06\uD834")!=='"\\udf06\\ud834"'||d("\uDEAD")!=='"\\udead"'});d&&c({target:"JSON",stat:!0,forced:D},{stringify:function(U,_,z){var k=d.apply(null,arguments);return typeof k=="string"?k.replace(b,L):k}})},69120:(h,I,o)=>{var c=o(21899),v=o(90904);v(c.JSON,"JSON",!0)},79413:()=>{},49221:(h,I,o)=>{var c=o(76887),v=o(24420);c({target:"Object",stat:!0,forced:Object.assign!==v},{assign:v})},53882:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(29290);c({target:"Object",stat:!0,sham:!v},{create:x})},74979:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(59938);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperties:x})},86450:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(65988);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperty:x.f})},21078:(h,I,o)=>{var c=o(76887),v=o(88810).entries;c({target:"Object",stat:!0},{entries:function(d){return v(d)}})},46924:(h,I,o)=>{var c=o(76887),v=o(95981),x=o(74529),d=o(49677).f,b=o(55746),A=v(function(){d(1)}),g=!b||A;c({target:"Object",stat:!0,forced:g,sham:!b},{getOwnPropertyDescriptor:function(D,B){return d(x(D),B)}})},88482:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(31136),d=o(74529),b=o(49677),A=o(55449);c({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(L){for(var D=d(L),B=b.f,U=x(D),_={},z=0,k,Q;U.length>z;)Q=B(D,k=U[z++]),Q!==void 0&&A(_,k,Q);return _}})},17405:(h,I,o)=>{var c=o(76887),v=o(95981),x=o(89678),d=o(249),b=o(64160),A=v(function(){d(1)});c({target:"Object",stat:!0,forced:A,sham:!b},{getPrototypeOf:function(L){return d(x(L))}})},21724:(h,I,o)=>{var c=o(76887),v=o(89678),x=o(14771),d=o(95981),b=d(function(){x(1)});c({target:"Object",stat:!0,forced:b},{keys:function(g){return x(v(g))}})},90108:(h,I,o)=>{var c=o(76887),v=o(88929);c({target:"Object",stat:!0},{setPrototypeOf:v})},55967:()=>{},4560:(h,I,o)=>{"use strict";var c=o(76887),v=o(33916),x=o(69520),d=o(40002),b=o(93091);c({target:"Promise",stat:!0},{allSettled:function(g){var L=this,D=x.f(L),B=D.resolve,U=D.reject,_=d(function(){var z=v(L.resolve),k=[],Q=0,M=1;b(g,function(O){var V=Q++,X=!1;k.push(void 0),M++,z.call(L,O).then(function(W){X||(X=!0,k[V]={status:"fulfilled",value:W},--M||B(k))},function(W){X||(X=!0,k[V]={status:"rejected",reason:W},--M||B(k))})}),--M||B(k)});return _.error&&U(_.value),D.promise}})},91302:(h,I,o)=>{"use strict";var c=o(76887),v=o(33916),x=o(626),d=o(69520),b=o(40002),A=o(93091),g="No one promise resolved";c({target:"Promise",stat:!0},{any:function(D){var B=this,U=d.f(B),_=U.resolve,z=U.reject,k=b(function(){var Q=v(B.resolve),M=[],O=0,V=1,X=!1;A(D,function(W){var K=O++,Z=!1;M.push(void 0),V++,Q.call(B,W).then(function(ce){Z||X||(X=!0,_(ce))},function(ce){Z||X||(Z=!0,M[K]=ce,--V||z(new(x("AggregateError"))(M,g)))})}),--V||z(new(x("AggregateError"))(M,g))});return k.error&&z(k.value),U.promise}})},44349:(h,I,o)=>{"use strict";var c=o(76887),v=o(82529),x=o(19297),d=o(95981),b=o(626),A=o(70487),g=o(56584),L=o(99754),D=!!x&&d(function(){x.prototype.finally.call({then:function(){}},function(){})});if(c({target:"Promise",proto:!0,real:!0,forced:D},{finally:function(U){var _=A(this,b("Promise")),z=typeof U=="function";return this.then(z?function(k){return g(_,U()).then(function(){return k})}:U,z?function(k){return g(_,U()).then(function(){throw k})}:U)}}),!v&&typeof x=="function"){var B=b("Promise").prototype.finally;x.prototype.finally!==B&&L(x.prototype,"finally",B,{unsafe:!0})}},98881:(h,I,o)=>{"use strict";var c=o(76887),v=o(82529),x=o(21899),d=o(626),b=o(19297),A=o(99754),g=o(87524),L=o(88929),D=o(90904),B=o(94431),U=o(10941),_=o(33916),z=o(5743),k=o(81302),Q=o(93091),M=o(21385),O=o(70487),V=o(42941).set,X=o(66132),W=o(56584),K=o(34845),Z=o(69520),ce=o(40002),te=o(45402),ae=o(37252),me=o(99813),ge=o(23321),he=o(6049),ue=o(53385),ie=me("species"),Me="Promise",je=te.get,Ne=te.set,Re=te.getterFor(Me),rt=b&&b.prototype,Qe=b,Je=rt,ut=x.TypeError,pt=x.document,gt=x.process,_e=Z.f,lt=_e,ht=!!(pt&&pt.createEvent&&x.dispatchEvent),yt=typeof PromiseRejectionEvent=="function",dt="unhandledrejection",It="rejectionhandled",Ft=0,St=1,Wt=2,Ut=1,Gt=2,wt=!1,Mt,de,$,Y,we=ae(Me,function(){var ee=k(Qe)!==String(Qe);if(!ee&&ue===66||v&&!Je.finally)return!0;if(ue>=51&&/native code/.test(Qe))return!1;var fe=new Qe(function(Te){Te(1)}),Oe=function(Te){Te(function(){},function(){})},Pe=fe.constructor={};return Pe[ie]=Oe,wt=fe.then(function(){})instanceof Oe,wt?!ee&&ge&&!yt:!0}),ke=we||!M(function(ee){Qe.all(ee).catch(function(){})}),be=function(ee){var fe;return U(ee)&&typeof(fe=ee.then)=="function"?fe:!1},Ae=function(ee,fe){if(!ee.notified){ee.notified=!0;var Oe=ee.reactions;X(function(){for(var Pe=ee.value,Te=ee.state==St,ze=0;Oe.length>ze;){var He=Oe[ze++],it=Te?He.ok:He.fail,vt=He.resolve,Ct=He.reject,Yt=He.domain,kt,yn,Xr;try{it?(Te||(ee.rejection===Gt&&C(ee),ee.rejection=Ut),it===!0?kt=Pe:(Yt&&Yt.enter(),kt=it(Pe),Yt&&(Yt.exit(),Xr=!0)),kt===He.promise?Ct(ut("Promise-chain cycle")):(yn=be(kt))?yn.call(kt,vt,Ct):vt(kt)):Ct(Pe)}catch(On){Yt&&!Xr&&Yt.exit(),Ct(On)}}ee.reactions=[],ee.notified=!1,fe&&!ee.rejection&&Ie(ee)})}},T=function(ee,fe,Oe){var Pe,Te;ht?(Pe=pt.createEvent("Event"),Pe.promise=fe,Pe.reason=Oe,Pe.initEvent(ee,!1,!0),x.dispatchEvent(Pe)):Pe={promise:fe,reason:Oe},!yt&&(Te=x["on"+ee])?Te(Pe):ee===dt&&K("Unhandled promise rejection",Oe)},Ie=function(ee){V.call(x,function(){var fe=ee.facade,Oe=ee.value,Pe=H(ee),Te;if(Pe&&(Te=ce(function(){he?gt.emit("unhandledRejection",Oe,fe):T(dt,fe,Oe)}),ee.rejection=he||H(ee)?Gt:Ut,Te.error))throw Te.value})},H=function(ee){return ee.rejection!==Ut&&!ee.parent},C=function(ee){V.call(x,function(){var fe=ee.facade;he?gt.emit("rejectionHandled",fe):T(It,fe,ee.value)})},P=function(ee,fe,Oe){return function(Pe){ee(fe,Pe,Oe)}},ne=function(ee,fe,Oe){ee.done||(ee.done=!0,Oe&&(ee=Oe),ee.value=fe,ee.state=Wt,Ae(ee,!0))},N=function(ee,fe,Oe){if(!ee.done){ee.done=!0,Oe&&(ee=Oe);try{if(ee.facade===fe)throw ut("Promise can't be resolved itself");var Pe=be(fe);Pe?X(function(){var Te={done:!1};try{Pe.call(fe,P(N,Te,ee),P(ne,Te,ee))}catch(ze){ne(Te,ze,ee)}}):(ee.value=fe,ee.state=St,Ae(ee,!1))}catch(Te){ne({done:!1},Te,ee)}}};if(we&&(Qe=function(fe){z(this,Qe,Me),_(fe),Mt.call(this);var Oe=je(this);try{fe(P(N,Oe),P(ne,Oe))}catch(Pe){ne(Oe,Pe)}},Je=Qe.prototype,Mt=function(fe){Ne(this,{type:Me,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Ft,value:void 0})},Mt.prototype=g(Je,{then:function(fe,Oe){var Pe=Re(this),Te=_e(O(this,Qe));return Te.ok=typeof fe=="function"?fe:!0,Te.fail=typeof Oe=="function"&&Oe,Te.domain=he?gt.domain:void 0,Pe.parent=!0,Pe.reactions.push(Te),Pe.state!=Ft&&Ae(Pe,!1),Te.promise},catch:function(ee){return this.then(void 0,ee)}}),de=function(){var ee=new Mt,fe=je(ee);this.promise=ee,this.resolve=P(N,fe),this.reject=P(ne,fe)},Z.f=_e=function(ee){return ee===Qe||ee===$?new de(ee):lt(ee)},!v&&typeof b=="function"&&rt!==Object.prototype)){Y=rt.then,wt||(A(rt,"then",function(fe,Oe){var Pe=this;return new Qe(function(Te,ze){Y.call(Pe,Te,ze)}).then(fe,Oe)},{unsafe:!0}),A(rt,"catch",Je.catch,{unsafe:!0}));try{delete rt.constructor}catch(ee){}L&&L(rt,Je)}c({global:!0,wrap:!0,forced:we},{Promise:Qe}),D(Qe,Me,!1,!0),B(Me),$=d(Me),c({target:Me,stat:!0,forced:we},{reject:function(fe){var Oe=_e(this);return Oe.reject.call(void 0,fe),Oe.promise}}),c({target:Me,stat:!0,forced:v||we},{resolve:function(fe){return W(v&&this===$?Qe:this,fe)}}),c({target:Me,stat:!0,forced:ke},{all:function(fe){var Oe=this,Pe=_e(Oe),Te=Pe.resolve,ze=Pe.reject,He=ce(function(){var it=_(Oe.resolve),vt=[],Ct=0,Yt=1;Q(fe,function(kt){var yn=Ct++,Xr=!1;vt.push(void 0),Yt++,it.call(Oe,kt).then(function(On){Xr||(Xr=!0,vt[yn]=On,--Yt||Te(vt))},ze)}),--Yt||Te(vt)});return He.error&&ze(He.value),Pe.promise},race:function(fe){var Oe=this,Pe=_e(Oe),Te=Pe.reject,ze=ce(function(){var He=_(Oe.resolve);Q(fe,function(it){He.call(Oe,it).then(Pe.resolve,Te)})});return ze.error&&Te(ze.value),Pe.promise}})},7453:(h,I,o)=>{var c=o(76887),v=o(626),x=o(33916),d=o(96059),b=o(10941),A=o(29290),g=o(98308),L=o(95981),D=v("Reflect","construct"),B=L(function(){function z(){}return!(D(function(){},[],z)instanceof z)}),U=!L(function(){D(function(){})}),_=B||U;c({target:"Reflect",stat:!0,forced:_,sham:_},{construct:function(k,Q){x(k),d(Q);var M=arguments.length<3?k:x(arguments[2]);if(U&&!B)return D(k,Q,M);if(k==M){switch(Q.length){case 0:return new k;case 1:return new k(Q[0]);case 2:return new k(Q[0],Q[1]);case 3:return new k(Q[0],Q[1],Q[2]);case 4:return new k(Q[0],Q[1],Q[2],Q[3])}var O=[null];return O.push.apply(O,Q),new(g.apply(k,O))}var V=M.prototype,X=A(b(V)?V:Object.prototype),W=Function.apply.call(k,X,Q);return b(W)?W:X}})},42355:(h,I,o)=>{var c=o(76887),v=o(10941),x=o(96059),d=o(47457),b=o(49677),A=o(249);function g(L,D){var B=arguments.length<3?L:arguments[2],U,_;if(x(L)===B)return L[D];if(U=b.f(L,D))return d(U,"value")?U.value:U.get===void 0?void 0:U.get.call(B);if(v(_=A(L)))return g(_,D,B)}c({target:"Reflect",stat:!0},{get:g})},1502:()=>{},11035:(h,I,o)=>{"use strict";var c=o(76887),v=o(70344),x=o(48219),d=o(67772);c({target:"String",proto:!0,forced:!d("includes")},{includes:function(A){return!!~String(x(this)).indexOf(v(A),arguments.length>1?arguments[1]:void 0)}})},77971:(h,I,o)=>{"use strict";var c=o(64620).charAt,v=o(45402),x=o(47771),d="String Iterator",b=v.set,A=v.getterFor(d);x(String,"String",function(g){b(this,{type:d,string:String(g),index:0})},function(){var L=A(this),D=L.string,B=L.index,U;return B>=D.length?{value:void 0,done:!0}:(U=c(D,B),L.index+=U.length,{value:U,done:!1})})},8555:(h,I,o)=>{var c=o(66349);c("asyncIterator")},52615:()=>{},21732:(h,I,o)=>{var c=o(66349);c("hasInstance")},35903:(h,I,o)=>{var c=o(66349);c("isConcatSpreadable")},1825:(h,I,o)=>{var c=o(66349);c("iterator")},35824:(h,I,o)=>{"use strict";var c=o(76887),v=o(21899),x=o(626),d=o(82529),b=o(55746),A=o(72497),g=o(32302),L=o(95981),D=o(47457),B=o(1052),U=o(10941),_=o(96059),z=o(89678),k=o(74529),Q=o(46935),M=o(31887),O=o(29290),V=o(14771),X=o(10946),W=o(684),K=o(87857),Z=o(49677),ce=o(65988),te=o(36760),ae=o(32029),me=o(99754),ge=o(68726),he=o(44262),ue=o(27748),ie=o(99418),Me=o(99813),je=o(11477),Ne=o(66349),Re=o(90904),rt=o(45402),Qe=o(3610).forEach,Je=he("hidden"),ut="Symbol",pt="prototype",gt=Me("toPrimitive"),_e=rt.set,lt=rt.getterFor(ut),ht=Object[pt],yt=v.Symbol,dt=x("JSON","stringify"),It=Z.f,Ft=ce.f,St=W.f,Wt=te.f,Ut=ge("symbols"),Gt=ge("op-symbols"),wt=ge("string-to-symbol-registry"),Mt=ge("symbol-to-string-registry"),de=ge("wks"),$=v.QObject,Y=!$||!$[pt]||!$[pt].findChild,we=b&&L(function(){return O(Ft({},"a",{get:function(){return Ft(this,"a",{value:7}).a}})).a!=7})?function(ee,fe,Oe){var Pe=It(ht,fe);Pe&&delete ht[fe],Ft(ee,fe,Oe),Pe&&ee!==ht&&Ft(ht,fe,Pe)}:Ft,ke=function(ee,fe){var Oe=Ut[ee]=O(yt[pt]);return _e(Oe,{type:ut,tag:ee,description:fe}),b||(Oe.description=fe),Oe},be=g?function(ee){return typeof ee=="symbol"}:function(ee){return Object(ee)instanceof yt},Ae=function(fe,Oe,Pe){fe===ht&&Ae(Gt,Oe,Pe),_(fe);var Te=Q(Oe,!0);return _(Pe),D(Ut,Te)?(Pe.enumerable?(D(fe,Je)&&fe[Je][Te]&&(fe[Je][Te]=!1),Pe=O(Pe,{enumerable:M(0,!1)})):(D(fe,Je)||Ft(fe,Je,M(1,{})),fe[Je][Te]=!0),we(fe,Te,Pe)):Ft(fe,Te,Pe)},T=function(fe,Oe){_(fe);var Pe=k(Oe),Te=V(Pe).concat(ne(Pe));return Qe(Te,function(ze){(!b||H.call(Pe,ze))&&Ae(fe,ze,Pe[ze])}),fe},Ie=function(fe,Oe){return Oe===void 0?O(fe):T(O(fe),Oe)},H=function(fe){var Oe=Q(fe,!0),Pe=Wt.call(this,Oe);return this===ht&&D(Ut,Oe)&&!D(Gt,Oe)?!1:Pe||!D(this,Oe)||!D(Ut,Oe)||D(this,Je)&&this[Je][Oe]?Pe:!0},C=function(fe,Oe){var Pe=k(fe),Te=Q(Oe,!0);if(!(Pe===ht&&D(Ut,Te)&&!D(Gt,Te))){var ze=It(Pe,Te);return ze&&D(Ut,Te)&&!(D(Pe,Je)&&Pe[Je][Te])&&(ze.enumerable=!0),ze}},P=function(fe){var Oe=St(k(fe)),Pe=[];return Qe(Oe,function(Te){!D(Ut,Te)&&!D(ue,Te)&&Pe.push(Te)}),Pe},ne=function(fe){var Oe=fe===ht,Pe=St(Oe?Gt:k(fe)),Te=[];return Qe(Pe,function(ze){D(Ut,ze)&&(!Oe||D(ht,ze))&&Te.push(Ut[ze])}),Te};if(A||(yt=function(){if(this instanceof yt)throw TypeError("Symbol is not a constructor");var fe=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Oe=ie(fe),Pe=function(Te){this===ht&&Pe.call(Gt,Te),D(this,Je)&&D(this[Je],Oe)&&(this[Je][Oe]=!1),we(this,Oe,M(1,Te))};return b&&Y&&we(ht,Oe,{configurable:!0,set:Pe}),ke(Oe,fe)},me(yt[pt],"toString",function(){return lt(this).tag}),me(yt,"withoutSetter",function(ee){return ke(ie(ee),ee)}),te.f=H,ce.f=Ae,Z.f=C,X.f=W.f=P,K.f=ne,je.f=function(ee){return ke(Me(ee),ee)},b&&(Ft(yt[pt],"description",{configurable:!0,get:function(){return lt(this).description}}),d||me(ht,"propertyIsEnumerable",H,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!A,sham:!A},{Symbol:yt}),Qe(V(de),function(ee){Ne(ee)}),c({target:ut,stat:!0,forced:!A},{for:function(ee){var fe=String(ee);if(D(wt,fe))return wt[fe];var Oe=yt(fe);return wt[fe]=Oe,Mt[Oe]=fe,Oe},keyFor:function(fe){if(!be(fe))throw TypeError(fe+" is not a symbol");if(D(Mt,fe))return Mt[fe]},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),c({target:"Object",stat:!0,forced:!A,sham:!b},{create:Ie,defineProperty:Ae,defineProperties:T,getOwnPropertyDescriptor:C}),c({target:"Object",stat:!0,forced:!A},{getOwnPropertyNames:P,getOwnPropertySymbols:ne}),c({target:"Object",stat:!0,forced:L(function(){K.f(1)})},{getOwnPropertySymbols:function(fe){return K.f(z(fe))}}),dt){var N=!A||L(function(){var ee=yt();return dt([ee])!="[null]"||dt({a:ee})!="{}"||dt(Object(ee))!="{}"});c({target:"JSON",stat:!0,forced:N},{stringify:function(fe,Oe,Pe){for(var Te=[fe],ze=1,He;arguments.length>ze;)Te.push(arguments[ze++]);if(He=Oe,!(!U(Oe)&&fe===void 0||be(fe)))return B(Oe)||(Oe=function(it,vt){if(typeof He=="function"&&(vt=He.call(this,it,vt)),!be(vt))return vt}),Te[1]=Oe,dt.apply(null,Te)}})}yt[pt][gt]||ae(yt[pt],gt,yt[pt].valueOf),Re(yt,ut),ue[Je]=!0},45915:(h,I,o)=>{var c=o(66349);c("matchAll")},28394:(h,I,o)=>{var c=o(66349);c("match")},61766:(h,I,o)=>{var c=o(66349);c("replace")},62737:(h,I,o)=>{var c=o(66349);c("search")},89911:(h,I,o)=>{var c=o(66349);c("species")},74315:(h,I,o)=>{var c=o(66349);c("split")},63131:(h,I,o)=>{var c=o(66349);c("toPrimitive")},64714:(h,I,o)=>{var c=o(66349);c("toStringTag")},70659:(h,I,o)=>{var c=o(66349);c("unscopables")},54334:(h,I,o)=>{"use strict";var c=o(21899),v=o(87524),x=o(21647),d=o(24683),b=o(8850),A=o(10941),g=o(45402).enforce,L=o(38019),D=!c.ActiveXObject&&"ActiveXObject"in c,B=Object.isExtensible,U,_=function(X){return function(){return X(this,arguments.length?arguments[0]:void 0)}},z=h.exports=d("WeakMap",_,b);if(L&&D){U=b.getConstructor(_,"WeakMap",!0),x.REQUIRED=!0;var k=z.prototype,Q=k.delete,M=k.has,O=k.get,V=k.set;v(k,{delete:function(X){if(A(X)&&!B(X)){var W=g(this);return W.frozen||(W.frozen=new U),Q.call(this,X)||W.frozen.delete(X)}return Q.call(this,X)},has:function(W){if(A(W)&&!B(W)){var K=g(this);return K.frozen||(K.frozen=new U),M.call(this,W)||K.frozen.has(W)}return M.call(this,W)},get:function(W){if(A(W)&&!B(W)){var K=g(this);return K.frozen||(K.frozen=new U),M.call(this,W)?O.call(this,W):K.frozen.get(W)}return O.call(this,W)},set:function(W,K){if(A(W)&&!B(W)){var Z=g(this);Z.frozen||(Z.frozen=new U),M.call(this,W)?V.call(this,W,K):Z.frozen.set(W,K)}else V.call(this,W,K);return this}})}},89731:(h,I,o)=>{o(47627)},55708:(h,I,o)=>{o(4560)},88731:(h,I,o)=>{o(91302)},30014:(h,I,o)=>{"use strict";var c=o(76887),v=o(69520),x=o(40002);c({target:"Promise",stat:!0},{try:function(d){var b=v.f(this),A=x(d);return(A.error?b.reject:b.resolve)(A.value),b.promise}})},28783:(h,I,o)=>{var c=o(66349);c("asyncDispose")},43975:(h,I,o)=>{var c=o(66349);c("dispose")},65799:(h,I,o)=>{var c=o(66349);c("matcher")},45414:(h,I,o)=>{var c=o(66349);c("metadata")},46774:(h,I,o)=>{var c=o(66349);c("observable")},80620:(h,I,o)=>{var c=o(66349);c("patternMatch")},36172:(h,I,o)=>{var c=o(66349);c("replaceAll")},7634:(h,I,o)=>{o(66274);var c=o(63281),v=o(21899),x=o(9697),d=o(32029),b=o(12077),A=o(99813),g=A("toStringTag");for(var L in c){var D=v[L],B=D&&D.prototype;B&&x(B)!==g&&d(B,g,L),b[L]=b.Array}},27698:(h,I,o)=>{var c=o(54493);h.exports=c},62908:(h,I,o)=>{var c=o(12710);h.exports=c},49216:(h,I,o)=>{var c=o(99324);h.exports=c},8065:(h,I,o)=>{var c=o(56043);h.exports=c},57448:(h,I,o)=>{o(7634);var c=o(62908),v=o(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var A=b.entries;return b===x||b instanceof Array&&A===x.entries||d.hasOwnProperty(v(b))?c:A}},11955:(h,I,o)=>{var c=o(2480);h.exports=c},61577:(h,I,o)=>{var c=o(32236);h.exports=c},46279:(h,I,o)=>{o(7634);var c=o(49216),v=o(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var A=b.forEach;return b===x||b instanceof Array&&A===x.forEach||d.hasOwnProperty(v(b))?c:A}},33778:(h,I,o)=>{var c=o(58557);h.exports=c},61798:(h,I,o)=>{var c=o(88287);h.exports=c},82073:(h,I,o)=>{var c=o(69601);h.exports=c},2348:(h,I,o)=>{var c=o(18339);h.exports=c},8933:(h,I,o)=>{var c=o(84426);h.exports=c},63383:(h,I,o)=>{var c=o(45999);h.exports=c},86209:(h,I,o)=>{var c=o(73081);h.exports=c},23059:(h,I,o)=>{var c=o(48494);h.exports=c},27460:(h,I,o)=>{var c=o(52956);h.exports=c},72010:(h,I,o)=>{var c=o(32304);h.exports=c},31905:function(){(function(h){var I=function(o){var c={searchParams:"URLSearchParams"in h,iterable:"Symbol"in h&&"iterator"in Symbol,blob:"FileReader"in h&&"Blob"in h&&function(){try{return new Blob,!0}catch(te){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function v(te){return te&&DataView.prototype.isPrototypeOf(te)}if(c.arrayBuffer)var x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(te){return te&&x.indexOf(Object.prototype.toString.call(te))>-1};function b(te){if(typeof te!="string"&&(te=String(te)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(te))throw new TypeError("Invalid character in header field name");return te.toLowerCase()}function A(te){return typeof te!="string"&&(te=String(te)),te}function g(te){var ae={next:function(){var me=te.shift();return{done:me===void 0,value:me}}};return c.iterable&&(ae[Symbol.iterator]=function(){return ae}),ae}function L(te){this.map={},te instanceof L?te.forEach(function(ae,me){this.append(me,ae)},this):Array.isArray(te)?te.forEach(function(ae){this.append(ae[0],ae[1])},this):te&&Object.getOwnPropertyNames(te).forEach(function(ae){this.append(ae,te[ae])},this)}L.prototype.append=function(te,ae){te=b(te),ae=A(ae);var me=this.map[te];this.map[te]=me?me+", "+ae:ae},L.prototype.delete=function(te){delete this.map[b(te)]},L.prototype.get=function(te){return te=b(te),this.has(te)?this.map[te]:null},L.prototype.has=function(te){return this.map.hasOwnProperty(b(te))},L.prototype.set=function(te,ae){this.map[b(te)]=A(ae)},L.prototype.forEach=function(te,ae){for(var me in this.map)this.map.hasOwnProperty(me)&&te.call(ae,this.map[me],me,this)},L.prototype.keys=function(){var te=[];return this.forEach(function(ae,me){te.push(me)}),g(te)},L.prototype.values=function(){var te=[];return this.forEach(function(ae){te.push(ae)}),g(te)},L.prototype.entries=function(){var te=[];return this.forEach(function(ae,me){te.push([me,ae])}),g(te)},c.iterable&&(L.prototype[Symbol.iterator]=L.prototype.entries);function D(te){if(te.bodyUsed)return Promise.reject(new TypeError("Already read"));te.bodyUsed=!0}function B(te){return new Promise(function(ae,me){te.onload=function(){ae(te.result)},te.onerror=function(){me(te.error)}})}function U(te){var ae=new FileReader,me=B(ae);return ae.readAsArrayBuffer(te),me}function _(te){var ae=new FileReader,me=B(ae);return ae.readAsText(te),me}function z(te){for(var ae=new Uint8Array(te),me=new Array(ae.length),ge=0;ge<ae.length;ge++)me[ge]=String.fromCharCode(ae[ge]);return me.join("")}function k(te){if(te.slice)return te.slice(0);var ae=new Uint8Array(te.byteLength);return ae.set(new Uint8Array(te)),ae.buffer}function Q(){return this.bodyUsed=!1,this._initBody=function(te){this._bodyInit=te,te?typeof te=="string"?this._bodyText=te:c.blob&&Blob.prototype.isPrototypeOf(te)?this._bodyBlob=te:c.formData&&FormData.prototype.isPrototypeOf(te)?this._bodyFormData=te:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(te)?this._bodyText=te.toString():c.arrayBuffer&&c.blob&&v(te)?(this._bodyArrayBuffer=k(te.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(te)||d(te))?this._bodyArrayBuffer=k(te):this._bodyText=te=Object.prototype.toString.call(te):this._bodyText="",this.headers.get("content-type")||(typeof te=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(te)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var te=D(this);if(te)return te;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?D(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(U)}),this.text=function(){var te=D(this);if(te)return te;if(this._bodyBlob)return _(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(z(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(X)}),this.json=function(){return this.text().then(JSON.parse)},this}var M=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(te){var ae=te.toUpperCase();return M.indexOf(ae)>-1?ae:te}function V(te,ae){ae=ae||{};var me=ae.body;if(te instanceof V){if(te.bodyUsed)throw new TypeError("Already read");this.url=te.url,this.credentials=te.credentials,ae.headers||(this.headers=new L(te.headers)),this.method=te.method,this.mode=te.mode,this.signal=te.signal,!me&&te._bodyInit!=null&&(me=te._bodyInit,te.bodyUsed=!0)}else this.url=String(te);if(this.credentials=ae.credentials||this.credentials||"same-origin",(ae.headers||!this.headers)&&(this.headers=new L(ae.headers)),this.method=O(ae.method||this.method||"GET"),this.mode=ae.mode||this.mode||null,this.signal=ae.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&me)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(me)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function X(te){var ae=new FormData;return te.trim().split("&").forEach(function(me){if(me){var ge=me.split("="),he=ge.shift().replace(/\+/g," "),ue=ge.join("=").replace(/\+/g," ");ae.append(decodeURIComponent(he),decodeURIComponent(ue))}}),ae}function W(te){var ae=new L,me=te.replace(/\r?\n[\t ]+/g," ");return me.split(/\r?\n/).forEach(function(ge){var he=ge.split(":"),ue=he.shift().trim();if(ue){var ie=he.join(":").trim();ae.append(ue,ie)}}),ae}Q.call(V.prototype);function K(te,ae){ae||(ae={}),this.type="default",this.status=ae.status===void 0?200:ae.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ae?ae.statusText:"OK",this.headers=new L(ae.headers),this.url=ae.url||"",this._initBody(te)}Q.call(K.prototype),K.prototype.clone=function(){return new K(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new L(this.headers),url:this.url})},K.error=function(){var te=new K(null,{status:0,statusText:""});return te.type="error",te};var Z=[301,302,303,307,308];K.redirect=function(te,ae){if(Z.indexOf(ae)===-1)throw new RangeError("Invalid status code");return new K(null,{status:ae,headers:{location:te}})},o.DOMException=h.DOMException;try{new o.DOMException}catch(te){o.DOMException=function(ae,me){this.message=ae,this.name=me;var ge=Error(ae);this.stack=ge.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ce(te,ae){return new Promise(function(me,ge){var he=new V(te,ae);if(he.signal&&he.signal.aborted)return ge(new o.DOMException("Aborted","AbortError"));var ue=new XMLHttpRequest;function ie(){ue.abort()}ue.onload=function(){var Me={status:ue.status,statusText:ue.statusText,headers:W(ue.getAllResponseHeaders()||"")};Me.url="responseURL"in ue?ue.responseURL:Me.headers.get("X-Request-URL");var je="response"in ue?ue.response:ue.responseText;me(new K(je,Me))},ue.onerror=function(){ge(new TypeError("Network request failed"))},ue.ontimeout=function(){ge(new TypeError("Network request failed"))},ue.onabort=function(){ge(new o.DOMException("Aborted","AbortError"))},ue.open(he.method,he.url,!0),he.credentials==="include"?ue.withCredentials=!0:he.credentials==="omit"&&(ue.withCredentials=!1),"responseType"in ue&&c.blob&&(ue.responseType="blob"),he.headers.forEach(function(Me,je){ue.setRequestHeader(je,Me)}),he.signal&&(he.signal.addEventListener("abort",ie),ue.onreadystatechange=function(){ue.readyState===4&&he.signal.removeEventListener("abort",ie)}),ue.send(typeof he._bodyInit=="undefined"?null:he._bodyInit)})}return ce.polyfill=!0,h.fetch||(h.fetch=ce,h.Headers=L,h.Request=V,h.Response=K),o.Headers=L,o.Request=V,o.Response=K,o.fetch=ce,Object.defineProperty(o,"__esModule",{value:!0}),o}({})})(typeof self!="undefined"?self:this)},54098:function(h,I){var o=typeof self!="undefined"?self:this,c=function(){function x(){this.fetch=!1,this.DOMException=o.DOMException}return x.prototype=o,new x}();(function(x){var d=function(b){var A={searchParams:"URLSearchParams"in x,iterable:"Symbol"in x&&"iterator"in Symbol,blob:"FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch(ue){return!1}}(),formData:"FormData"in x,arrayBuffer:"ArrayBuffer"in x};function g(ue){return ue&&DataView.prototype.isPrototypeOf(ue)}if(A.arrayBuffer)var L=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],D=ArrayBuffer.isView||function(ue){return ue&&L.indexOf(Object.prototype.toString.call(ue))>-1};function B(ue){if(typeof ue!="string"&&(ue=String(ue)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(ue))throw new TypeError("Invalid character in header field name");return ue.toLowerCase()}function U(ue){return typeof ue!="string"&&(ue=String(ue)),ue}function _(ue){var ie={next:function(){var Me=ue.shift();return{done:Me===void 0,value:Me}}};return A.iterable&&(ie[Symbol.iterator]=function(){return ie}),ie}function z(ue){this.map={},ue instanceof z?ue.forEach(function(ie,Me){this.append(Me,ie)},this):Array.isArray(ue)?ue.forEach(function(ie){this.append(ie[0],ie[1])},this):ue&&Object.getOwnPropertyNames(ue).forEach(function(ie){this.append(ie,ue[ie])},this)}z.prototype.append=function(ue,ie){ue=B(ue),ie=U(ie);var Me=this.map[ue];this.map[ue]=Me?Me+", "+ie:ie},z.prototype.delete=function(ue){delete this.map[B(ue)]},z.prototype.get=function(ue){return ue=B(ue),this.has(ue)?this.map[ue]:null},z.prototype.has=function(ue){return this.map.hasOwnProperty(B(ue))},z.prototype.set=function(ue,ie){this.map[B(ue)]=U(ie)},z.prototype.forEach=function(ue,ie){for(var Me in this.map)this.map.hasOwnProperty(Me)&&ue.call(ie,this.map[Me],Me,this)},z.prototype.keys=function(){var ue=[];return this.forEach(function(ie,Me){ue.push(Me)}),_(ue)},z.prototype.values=function(){var ue=[];return this.forEach(function(ie){ue.push(ie)}),_(ue)},z.prototype.entries=function(){var ue=[];return this.forEach(function(ie,Me){ue.push([Me,ie])}),_(ue)},A.iterable&&(z.prototype[Symbol.iterator]=z.prototype.entries);function k(ue){if(ue.bodyUsed)return Promise.reject(new TypeError("Already read"));ue.bodyUsed=!0}function Q(ue){return new Promise(function(ie,Me){ue.onload=function(){ie(ue.result)},ue.onerror=function(){Me(ue.error)}})}function M(ue){var ie=new FileReader,Me=Q(ie);return ie.readAsArrayBuffer(ue),Me}function O(ue){var ie=new FileReader,Me=Q(ie);return ie.readAsText(ue),Me}function V(ue){for(var ie=new Uint8Array(ue),Me=new Array(ie.length),je=0;je<ie.length;je++)Me[je]=String.fromCharCode(ie[je]);return Me.join("")}function X(ue){if(ue.slice)return ue.slice(0);var ie=new Uint8Array(ue.byteLength);return ie.set(new Uint8Array(ue)),ie.buffer}function W(){return this.bodyUsed=!1,this._initBody=function(ue){this._bodyInit=ue,ue?typeof ue=="string"?this._bodyText=ue:A.blob&&Blob.prototype.isPrototypeOf(ue)?this._bodyBlob=ue:A.formData&&FormData.prototype.isPrototypeOf(ue)?this._bodyFormData=ue:A.searchParams&&URLSearchParams.prototype.isPrototypeOf(ue)?this._bodyText=ue.toString():A.arrayBuffer&&A.blob&&g(ue)?(this._bodyArrayBuffer=X(ue.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):A.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ue)||D(ue))?this._bodyArrayBuffer=X(ue):this._bodyText=ue=Object.prototype.toString.call(ue):this._bodyText="",this.headers.get("content-type")||(typeof ue=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):A.searchParams&&URLSearchParams.prototype.isPrototypeOf(ue)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},A.blob&&(this.blob=function(){var ue=k(this);if(ue)return ue;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?k(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(M)}),this.text=function(){var ue=k(this);if(ue)return ue;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(V(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},A.formData&&(this.formData=function(){return this.text().then(te)}),this.json=function(){return this.text().then(JSON.parse)},this}var K=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Z(ue){var ie=ue.toUpperCase();return K.indexOf(ie)>-1?ie:ue}function ce(ue,ie){ie=ie||{};var Me=ie.body;if(ue instanceof ce){if(ue.bodyUsed)throw new TypeError("Already read");this.url=ue.url,this.credentials=ue.credentials,ie.headers||(this.headers=new z(ue.headers)),this.method=ue.method,this.mode=ue.mode,this.signal=ue.signal,!Me&&ue._bodyInit!=null&&(Me=ue._bodyInit,ue.bodyUsed=!0)}else this.url=String(ue);if(this.credentials=ie.credentials||this.credentials||"same-origin",(ie.headers||!this.headers)&&(this.headers=new z(ie.headers)),this.method=Z(ie.method||this.method||"GET"),this.mode=ie.mode||this.mode||null,this.signal=ie.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Me)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Me)}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})};function te(ue){var ie=new FormData;return ue.trim().split("&").forEach(function(Me){if(Me){var je=Me.split("="),Ne=je.shift().replace(/\+/g," "),Re=je.join("=").replace(/\+/g," ");ie.append(decodeURIComponent(Ne),decodeURIComponent(Re))}}),ie}function ae(ue){var ie=new z,Me=ue.replace(/\r?\n[\t ]+/g," ");return Me.split(/\r?\n/).forEach(function(je){var Ne=je.split(":"),Re=Ne.shift().trim();if(Re){var rt=Ne.join(":").trim();ie.append(Re,rt)}}),ie}W.call(ce.prototype);function me(ue,ie){ie||(ie={}),this.type="default",this.status=ie.status===void 0?200:ie.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ie?ie.statusText:"OK",this.headers=new z(ie.headers),this.url=ie.url||"",this._initBody(ue)}W.call(me.prototype),me.prototype.clone=function(){return new me(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new z(this.headers),url:this.url})},me.error=function(){var ue=new me(null,{status:0,statusText:""});return ue.type="error",ue};var ge=[301,302,303,307,308];me.redirect=function(ue,ie){if(ge.indexOf(ie)===-1)throw new RangeError("Invalid status code");return new me(null,{status:ie,headers:{location:ue}})},b.DOMException=x.DOMException;try{new b.DOMException}catch(ue){b.DOMException=function(ie,Me){this.message=ie,this.name=Me;var je=Error(ie);this.stack=je.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function he(ue,ie){return new Promise(function(Me,je){var Ne=new ce(ue,ie);if(Ne.signal&&Ne.signal.aborted)return je(new b.DOMException("Aborted","AbortError"));var Re=new XMLHttpRequest;function rt(){Re.abort()}Re.onload=function(){var Qe={status:Re.status,statusText:Re.statusText,headers:ae(Re.getAllResponseHeaders()||"")};Qe.url="responseURL"in Re?Re.responseURL:Qe.headers.get("X-Request-URL");var Je="response"in Re?Re.response:Re.responseText;Me(new me(Je,Qe))},Re.onerror=function(){je(new TypeError("Network request failed"))},Re.ontimeout=function(){je(new TypeError("Network request failed"))},Re.onabort=function(){je(new b.DOMException("Aborted","AbortError"))},Re.open(Ne.method,Ne.url,!0),Ne.credentials==="include"?Re.withCredentials=!0:Ne.credentials==="omit"&&(Re.withCredentials=!1),"responseType"in Re&&A.blob&&(Re.responseType="blob"),Ne.headers.forEach(function(Qe,Je){Re.setRequestHeader(Je,Qe)}),Ne.signal&&(Ne.signal.addEventListener("abort",rt),Re.onreadystatechange=function(){Re.readyState===4&&Ne.signal.removeEventListener("abort",rt)}),Re.send(typeof Ne._bodyInit=="undefined"?null:Ne._bodyInit)})}return he.polyfill=!0,x.fetch||(x.fetch=he,x.Headers=z,x.Request=ce,x.Response=me),b.Headers=z,b.Request=ce,b.Response=me,b.fetch=he,Object.defineProperty(b,"__esModule",{value:!0}),b}({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var v=c;I=v.fetch,I.default=v.fetch,I.fetch=v.fetch,I.Headers=v.Headers,I.Request=v.Request,I.Response=v.Response,h.exports=I},17438:(h,I,o)=>{var c=o(23645);I=c(!1),I.push([h.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
47
- `,""]),h.exports=I},58635:(h,I,o)=>{var c=o(23645);I=c(!1),I.push([h.id,`.CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid black;border-radius:4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark{background-position:left bottom;background-repeat:repeat-x}.CodeMirror-lint-mark-warning{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=)}.CodeMirror-lint-mark-error{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg==)}.CodeMirror-lint-marker{background-position:center center;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message{padding-left:18px;background-position:top left;background-repeat:no-repeat}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=)}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII=)}.CodeMirror-lint-marker-multiple{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC);background-repeat:no-repeat;background-position:right bottom;width:100%;height:100%}
48
- `,""]),h.exports=I},45272:(h,I,o)=>{var c=o(23645);I=c(!1),I.push([h.id,`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:#14ff1480;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}
49
- `,""]),h.exports=I},40961:(h,I,o)=>{var c=o(23645);I=c(!1),I.push([h.id,`.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #FFCC00}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
50
- `,""]),h.exports=I},31312:(h,I,o)=>{"use strict";var c=o(48764).Buffer;/*!
46
+ */I.parse=d,I.serialize=b;var o=decodeURIComponent,c=encodeURIComponent,v=/; */,x=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function d(g,L){if(typeof g!="string")throw new TypeError("argument str must be a string");for(var N={},B=L||{},j=g.split(v),_=B.decode||o,H=0;H<j.length;H++){var k=j[H],X=k.indexOf("=");if(!(X<0)){var R=k.substr(0,X).trim(),C=k.substr(++X,k.length).trim();C[0]=='"'&&(C=C.slice(1,-1)),N[R]==null&&(N[R]=S(C,_))}}return N}function b(g,L,N){var B=N||{},j=B.encode||c;if(typeof j!="function")throw new TypeError("option encode is invalid");if(!x.test(g))throw new TypeError("argument name is invalid");var _=j(L);if(_&&!x.test(_))throw new TypeError("argument val is invalid");var H=g+"="+_;if(B.maxAge!=null){var k=B.maxAge-0;if(isNaN(k)||!isFinite(k))throw new TypeError("option maxAge is invalid");H+="; Max-Age="+Math.floor(k)}if(B.domain){if(!x.test(B.domain))throw new TypeError("option domain is invalid");H+="; Domain="+B.domain}if(B.path){if(!x.test(B.path))throw new TypeError("option path is invalid");H+="; Path="+B.path}if(B.expires){if(typeof B.expires.toUTCString!="function")throw new TypeError("option expires is invalid");H+="; Expires="+B.expires.toUTCString()}if(B.httpOnly&&(H+="; HttpOnly"),B.secure&&(H+="; Secure"),B.sameSite){var X=typeof B.sameSite=="string"?B.sameSite.toLowerCase():B.sameSite;switch(X){case!0:H+="; SameSite=Strict";break;case"lax":H+="; SameSite=Lax";break;case"strict":H+="; SameSite=Strict";break;case"none":H+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return H}function S(g,L){try{return L(g)}catch(N){return g}}},54493:(h,I,o)=>{o(77971),o(53242);var c=o(54058);h.exports=c.Array.from},24034:(h,I,o)=>{o(92737);var c=o(54058);h.exports=c.Array.isArray},15367:(h,I,o)=>{o(85906);var c=o(35703);h.exports=c("Array").concat},12710:(h,I,o)=>{o(66274);var c=o(35703);h.exports=c("Array").entries},62383:(h,I,o)=>{o(21501);var c=o(35703);h.exports=c("Array").filter},17671:(h,I,o)=>{o(80833);var c=o(35703);h.exports=c("Array").find},99324:(h,I,o)=>{o(2437);var c=o(35703);h.exports=c("Array").forEach},80991:(h,I,o)=>{o(97690);var c=o(35703);h.exports=c("Array").includes},8700:(h,I,o)=>{o(99076);var c=o(35703);h.exports=c("Array").indexOf},23866:(h,I,o)=>{o(68787);var c=o(35703);h.exports=c("Array").map},24900:(h,I,o)=>{o(60186);var c=o(35703);h.exports=c("Array").slice},78209:(h,I,o)=>{o(98611);var c=o(35703);h.exports=c("Array").splice},56043:(h,I,o)=>{var c=o(15367),v=Array.prototype;h.exports=function(x){var d=x.concat;return x===v||x instanceof Array&&d===v.concat?c:d}},2480:(h,I,o)=>{var c=o(62383),v=Array.prototype;h.exports=function(x){var d=x.filter;return x===v||x instanceof Array&&d===v.filter?c:d}},32236:(h,I,o)=>{var c=o(17671),v=Array.prototype;h.exports=function(x){var d=x.find;return x===v||x instanceof Array&&d===v.find?c:d}},58557:(h,I,o)=>{var c=o(80991),v=o(21631),x=Array.prototype,d=String.prototype;h.exports=function(b){var S=b.includes;return b===x||b instanceof Array&&S===x.includes?c:typeof b=="string"||b===d||b instanceof String&&S===d.includes?v:S}},34570:(h,I,o)=>{var c=o(8700),v=Array.prototype;h.exports=function(x){var d=x.indexOf;return x===v||x instanceof Array&&d===v.indexOf?c:d}},88287:(h,I,o)=>{var c=o(23866),v=Array.prototype;h.exports=function(x){var d=x.map;return x===v||x instanceof Array&&d===v.map?c:d}},69601:(h,I,o)=>{var c=o(24900),v=Array.prototype;h.exports=function(x){var d=x.slice;return x===v||x instanceof Array&&d===v.slice?c:d}},18339:(h,I,o)=>{var c=o(78209),v=Array.prototype;h.exports=function(x){var d=x.splice;return x===v||x instanceof Array&&d===v.splice?c:d}},84426:(h,I,o)=>{o(32619);var c=o(54058);c.JSON||(c.JSON={stringify:JSON.stringify}),h.exports=function(x,d,b){return c.JSON.stringify.apply(null,arguments)}},45999:(h,I,o)=>{o(49221);var c=o(54058);h.exports=c.Object.assign},35254:(h,I,o)=>{o(53882);var c=o(54058),v=c.Object;h.exports=function(d,b){return v.create(d,b)}},7702:(h,I,o)=>{o(74979);var c=o(54058),v=c.Object,x=h.exports=function(b,S){return v.defineProperties(b,S)};v.defineProperties.sham&&(x.sham=!0)},48171:(h,I,o)=>{o(86450);var c=o(54058),v=c.Object,x=h.exports=function(b,S,g){return v.defineProperty(b,S,g)};v.defineProperty.sham&&(x.sham=!0)},73081:(h,I,o)=>{o(21078);var c=o(54058);h.exports=c.Object.entries},286:(h,I,o)=>{o(46924);var c=o(54058),v=c.Object,x=h.exports=function(b,S){return v.getOwnPropertyDescriptor(b,S)};v.getOwnPropertyDescriptor.sham&&(x.sham=!0)},92766:(h,I,o)=>{o(88482);var c=o(54058);h.exports=c.Object.getOwnPropertyDescriptors},30498:(h,I,o)=>{o(35824);var c=o(54058);h.exports=c.Object.getOwnPropertySymbols},13966:(h,I,o)=>{o(17405);var c=o(54058);h.exports=c.Object.getPrototypeOf},48494:(h,I,o)=>{o(21724);var c=o(54058);h.exports=c.Object.keys},3065:(h,I,o)=>{o(90108);var c=o(54058);h.exports=c.Object.setPrototypeOf},52956:(h,I,o)=>{o(47627),o(55967),o(98881),o(4560),o(91302),o(44349),o(77971),o(7634);var c=o(54058);h.exports=c.Promise},14983:(h,I,o)=>{o(7453);var c=o(54058);h.exports=c.Reflect.construct},37095:(h,I,o)=>{o(42355);var c=o(54058);h.exports=c.Reflect.get},21631:(h,I,o)=>{o(11035);var c=o(35703);h.exports=c("String").includes},57473:(h,I,o)=>{o(85906),o(55967),o(35824),o(8555),o(52615),o(21732),o(35903),o(1825),o(28394),o(45915),o(61766),o(62737),o(89911),o(74315),o(63131),o(64714),o(70659),o(69120),o(79413),o(1502);var c=o(54058);h.exports=c.Symbol},24227:(h,I,o)=>{o(1825),o(77971),o(7634);var c=o(11477);h.exports=c.f("iterator")},32304:(h,I,o)=>{o(55967),o(54334),o(7634);var c=o(54058);h.exports=c.WeakMap},27385:(h,I,o)=>{var c=o(54493);h.exports=c},81522:(h,I,o)=>{var c=o(24034);h.exports=c},32209:(h,I,o)=>{o(7634),o(77971);var c=o(22902);h.exports=c},44442:(h,I,o)=>{var c=o(2480);h.exports=c},57152:(h,I,o)=>{var c=o(46279);h.exports=c},69447:(h,I,o)=>{var c=o(34570);h.exports=c},81493:(h,I,o)=>{var c=o(69601);h.exports=c},76094:(h,I,o)=>{var c=o(35254);h.exports=c},70573:(h,I,o)=>{var c=o(7702);h.exports=c},73685:(h,I,o)=>{var c=o(48171);h.exports=c},27533:(h,I,o)=>{var c=o(286);h.exports=c},39057:(h,I,o)=>{var c=o(92766);h.exports=c},84710:(h,I,o)=>{var c=o(30498);h.exports=c},74303:(h,I,o)=>{var c=o(13966);h.exports=c},93799:(h,I,o)=>{var c=o(48494);h.exports=c},55122:(h,I,o)=>{var c=o(3065);h.exports=c},29531:(h,I,o)=>{var c=o(52956);o(89731),o(55708),o(30014),o(88731),h.exports=c},10856:(h,I,o)=>{var c=o(14983);h.exports=c},31524:(h,I,o)=>{var c=o(37095);h.exports=c},86600:(h,I,o)=>{var c=o(57473);o(28783),o(43975),o(65799),o(45414),o(46774),o(80620),o(36172),h.exports=c},9759:(h,I,o)=>{var c=o(24227);h.exports=c},33916:h=>{h.exports=function(I){if(typeof I!="function")throw TypeError(String(I)+" is not a function");return I}},42488:(h,I,o)=>{var c=o(10941);h.exports=function(v){if(!c(v)&&v!==null)throw TypeError("Can't set "+String(v)+" as a prototype");return v}},18479:h=>{h.exports=function(){}},5743:h=>{h.exports=function(I,o,c){if(!(I instanceof o))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return I}},96059:(h,I,o)=>{var c=o(10941);h.exports=function(v){if(!c(v))throw TypeError(String(v)+" is not an object");return v}},56837:(h,I,o)=>{"use strict";var c=o(3610).forEach,v=o(34194),x=v("forEach");h.exports=x?[].forEach:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}},11354:(h,I,o)=>{"use strict";var c=o(86843),v=o(89678),x=o(75196),d=o(6782),b=o(43057),S=o(55449),g=o(22902);h.exports=function(N){var B=v(N),j=typeof this=="function"?this:Array,_=arguments.length,H=_>1?arguments[1]:void 0,k=H!==void 0,X=g(B),R=0,C,V,J,q,Q,K;if(k&&(H=c(H,_>2?arguments[2]:void 0,2)),X!=null&&!(j==Array&&d(X)))for(q=X.call(B),Q=q.next,V=new j;!(J=Q.call(q)).done;R++)K=k?x(q,H,[J.value,R],!0):J.value,S(V,R,K);else for(C=b(B.length),V=new j(C);C>R;R++)K=k?H(B[R],R):B[R],S(V,R,K);return V.length=R,V}},31692:(h,I,o)=>{var c=o(74529),v=o(43057),x=o(59413),d=function(b){return function(S,g,L){var N=c(S),B=v(N.length),j=x(L,B),_;if(b&&g!=g){for(;B>j;)if(_=N[j++],_!=_)return!0}else for(;B>j;j++)if((b||j in N)&&N[j]===g)return b||j||0;return!b&&-1}};h.exports={includes:d(!0),indexOf:d(!1)}},3610:(h,I,o)=>{var c=o(86843),v=o(37026),x=o(89678),d=o(43057),b=o(64692),S=[].push,g=function(L){var N=L==1,B=L==2,j=L==3,_=L==4,H=L==6,k=L==7,X=L==5||H;return function(R,C,V,J){for(var q=x(R),Q=v(q),K=c(C,V,3),fe=d(Q.length),te=0,re=J||b,ye=N?re(R,fe):B||k?re(R,0):void 0,ve,de;fe>te;te++)if((X||te in Q)&&(ve=Q[te],de=K(ve,te,q),L))if(N)ye[te]=de;else if(de)switch(L){case 3:return!0;case 5:return ve;case 6:return te;case 2:S.call(ye,ve)}else switch(L){case 4:return!1;case 7:S.call(ye,ve)}return H?-1:j||_?_:ye}};h.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}},50568:(h,I,o)=>{var c=o(95981),v=o(99813),x=o(53385),d=v("species");h.exports=function(b){return x>=51||!c(function(){var S=[],g=S.constructor={};return g[d]=function(){return{foo:1}},S[b](Boolean).foo!==1})}},34194:(h,I,o)=>{"use strict";var c=o(95981);h.exports=function(v,x){var d=[][v];return!!d&&c(function(){d.call(null,x||function(){throw 1},1)})}},64692:(h,I,o)=>{var c=o(10941),v=o(1052),x=o(99813),d=x("species");h.exports=function(b,S){var g;return v(b)&&(g=b.constructor,typeof g=="function"&&(g===Array||v(g.prototype))?g=void 0:c(g)&&(g=g[d],g===null&&(g=void 0))),new(g===void 0?Array:g)(S===0?0:S)}},75196:(h,I,o)=>{var c=o(96059),v=o(7609);h.exports=function(x,d,b,S){try{return S?d(c(b)[0],b[1]):d(b)}catch(g){throw v(x),g}}},21385:(h,I,o)=>{var c=o(99813),v=c("iterator"),x=!1;try{var d=0,b={next:function(){return{done:!!d++}},return:function(){x=!0}};b[v]=function(){return this},Array.from(b,function(){throw 2})}catch(S){}h.exports=function(S,g){if(!g&&!x)return!1;var L=!1;try{var N={};N[v]=function(){return{next:function(){return{done:L=!0}}}},S(N)}catch(B){}return L}},82532:h=>{var I={}.toString;h.exports=function(o){return I.call(o).slice(8,-1)}},9697:(h,I,o)=>{var c=o(22885),v=o(82532),x=o(99813),d=x("toStringTag"),b=v(function(){return arguments}())=="Arguments",S=function(g,L){try{return g[L]}catch(N){}};h.exports=c?v:function(g){var L,N,B;return g===void 0?"Undefined":g===null?"Null":typeof(N=S(L=Object(g),d))=="string"?N:b?v(L):(B=v(L))=="Object"&&typeof L.callee=="function"?"Arguments":B}},8850:(h,I,o)=>{"use strict";var c=o(87524),v=o(21647).getWeakData,x=o(96059),d=o(10941),b=o(5743),S=o(93091),g=o(3610),L=o(47457),N=o(45402),B=N.set,j=N.getterFor,_=g.find,H=g.findIndex,k=0,X=function(V){return V.frozen||(V.frozen=new R)},R=function(){this.entries=[]},C=function(V,J){return _(V.entries,function(q){return q[0]===J})};R.prototype={get:function(V){var J=C(this,V);if(J)return J[1]},has:function(V){return!!C(this,V)},set:function(V,J){var q=C(this,V);q?q[1]=J:this.entries.push([V,J])},delete:function(V){var J=H(this.entries,function(q){return q[0]===V});return~J&&this.entries.splice(J,1),!!~J}},h.exports={getConstructor:function(V,J,q,Q){var K=V(function(re,ye){b(re,K,J),B(re,{type:J,id:k++,frozen:void 0}),ye!=null&&S(ye,re[Q],{that:re,AS_ENTRIES:q})}),fe=j(J),te=function(re,ye,ve){var de=fe(re),le=v(x(ye),!0);return le===!0?X(de).set(ye,ve):le[de.id]=ve,re};return c(K.prototype,{delete:function(re){var ye=fe(this);if(!d(re))return!1;var ve=v(re);return ve===!0?X(ye).delete(re):ve&&L(ve,ye.id)&&delete ve[ye.id]},has:function(ye){var ve=fe(this);if(!d(ye))return!1;var de=v(ye);return de===!0?X(ve).has(ye):de&&L(de,ve.id)}}),c(K.prototype,q?{get:function(ye){var ve=fe(this);if(d(ye)){var de=v(ye);return de===!0?X(ve).get(ye):de?de[ve.id]:void 0}},set:function(ye,ve){return te(this,ye,ve)}}:{add:function(ye){return te(this,ye,!0)}}),K}}},24683:(h,I,o)=>{"use strict";var c=o(76887),v=o(21899),x=o(21647),d=o(95981),b=o(32029),S=o(93091),g=o(5743),L=o(10941),N=o(90904),B=o(65988).f,j=o(3610).forEach,_=o(55746),H=o(45402),k=H.set,X=H.getterFor;h.exports=function(R,C,V){var J=R.indexOf("Map")!==-1,q=R.indexOf("Weak")!==-1,Q=J?"set":"add",K=v[R],fe=K&&K.prototype,te={},re;if(!_||typeof K!="function"||!(q||fe.forEach&&!d(function(){new K().entries().next()})))re=V.getConstructor(C,R,J,Q),x.REQUIRED=!0;else{re=C(function(ve,de){k(g(ve,re,R),{type:R,collection:new K}),de!=null&&S(de,ve[Q],{that:ve,AS_ENTRIES:J})});var ye=X(R);j(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(ve){var de=ve=="add"||ve=="set";ve in fe&&!(q&&ve=="clear")&&b(re.prototype,ve,function(le,oe){var De=ye(this).collection;if(!de&&q&&!L(le))return ve=="get"?void 0:!1;var Ve=De[ve](le===0?0:le,oe);return de?this:Ve})}),q||B(re.prototype,"size",{configurable:!0,get:function(){return ye(this).collection.size}})}return N(re,R,!1,!0),te[R]=re,c({global:!0,forced:!0},te),q||V.setStrong(re,R,J),re}},67772:(h,I,o)=>{var c=o(99813),v=c("match");h.exports=function(x){var d=/./;try{"/./"[x](d)}catch(b){try{return d[v]=!1,"/./"[x](d)}catch(S){}}return!1}},64160:(h,I,o)=>{var c=o(95981);h.exports=!c(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},31046:(h,I,o)=>{"use strict";var c=o(35143).IteratorPrototype,v=o(29290),x=o(31887),d=o(90904),b=o(12077),S=function(){return this};h.exports=function(g,L,N){var B=L+" Iterator";return g.prototype=v(c,{next:x(1,N)}),d(g,B,!1,!0),b[B]=S,g}},32029:(h,I,o)=>{var c=o(55746),v=o(65988),x=o(31887);h.exports=c?function(d,b,S){return v.f(d,b,x(1,S))}:function(d,b,S){return d[b]=S,d}},31887:h=>{h.exports=function(I,o){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:o}}},55449:(h,I,o)=>{"use strict";var c=o(46935),v=o(65988),x=o(31887);h.exports=function(d,b,S){var g=c(b);g in d?v.f(d,g,x(0,S)):d[g]=S}},47771:(h,I,o)=>{"use strict";var c=o(76887),v=o(31046),x=o(249),d=o(88929),b=o(90904),S=o(32029),g=o(99754),L=o(99813),N=o(82529),B=o(12077),j=o(35143),_=j.IteratorPrototype,H=j.BUGGY_SAFARI_ITERATORS,k=L("iterator"),X="keys",R="values",C="entries",V=function(){return this};h.exports=function(J,q,Q,K,fe,te,re){v(Q,q,K);var ye=function(Qe){if(Qe===fe&&De)return De;if(!H&&Qe in le)return le[Qe];switch(Qe){case X:return function(){return new Q(this,Qe)};case R:return function(){return new Q(this,Qe)};case C:return function(){return new Q(this,Qe)}}return function(){return new Q(this)}},ve=q+" Iterator",de=!1,le=J.prototype,oe=le[k]||le["@@iterator"]||fe&&le[fe],De=!H&&oe||ye(fe),Ve=q=="Array"&&le.entries||oe,Le,ke,tt;if(Ve&&(Le=x(Ve.call(new J)),_!==Object.prototype&&Le.next&&(!N&&x(Le)!==_&&(d?d(Le,_):typeof Le[k]!="function"&&S(Le,k,V)),b(Le,ve,!0,!0),N&&(B[ve]=V))),fe==R&&oe&&oe.name!==R&&(de=!0,De=function(){return oe.call(this)}),(!N||re)&&le[k]!==De&&S(le,k,De),B[q]=De,fe)if(ke={values:ye(R),keys:te?De:ye(X),entries:ye(C)},re)for(tt in ke)(H||de||!(tt in le))&&g(le,tt,ke[tt]);else c({target:q,proto:!0,forced:H||de},ke);return ke}},66349:(h,I,o)=>{var c=o(54058),v=o(47457),x=o(11477),d=o(65988).f;h.exports=function(b){var S=c.Symbol||(c.Symbol={});v(S,b)||d(S,b,{value:x.f(b)})}},55746:(h,I,o)=>{var c=o(95981);h.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},61333:(h,I,o)=>{var c=o(21899),v=o(10941),x=c.document,d=v(x)&&v(x.createElement);h.exports=function(b){return d?x.createElement(b):{}}},63281:h=>{h.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},23321:h=>{h.exports=typeof window=="object"},22749:(h,I,o)=>{var c=o(2861);h.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(c)},6049:(h,I,o)=>{var c=o(82532),v=o(21899);h.exports=c(v.process)=="process"},58045:(h,I,o)=>{var c=o(2861);h.exports=/web0s(?!.*chrome)/i.test(c)},2861:(h,I,o)=>{var c=o(626);h.exports=c("navigator","userAgent")||""},53385:(h,I,o)=>{var c=o(21899),v=o(2861),x=c.process,d=x&&x.versions,b=d&&d.v8,S,g;b?(S=b.split("."),g=S[0]<4?1:S[0]+S[1]):v&&(S=v.match(/Edge\/(\d+)/),(!S||S[1]>=74)&&(S=v.match(/Chrome\/(\d+)/),S&&(g=S[1]))),h.exports=g&&+g},35703:(h,I,o)=>{var c=o(54058);h.exports=function(v){return c[v+"Prototype"]}},56759:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(h,I,o)=>{"use strict";var c=o(21899),v=o(49677).f,x=o(37252),d=o(54058),b=o(86843),S=o(32029),g=o(47457),L=function(N){var B=function(j,_,H){if(this instanceof N){switch(arguments.length){case 0:return new N;case 1:return new N(j);case 2:return new N(j,_)}return new N(j,_,H)}return N.apply(this,arguments)};return B.prototype=N.prototype,B};h.exports=function(N,B){var j=N.target,_=N.global,H=N.stat,k=N.proto,X=_?c:H?c[j]:(c[j]||{}).prototype,R=_?d:d[j]||(d[j]={}),C=R.prototype,V,J,q,Q,K,fe,te,re,ye;for(Q in B)V=x(_?Q:j+(H?".":"#")+Q,N.forced),J=!V&&X&&g(X,Q),fe=R[Q],J&&(N.noTargetGet?(ye=v(X,Q),te=ye&&ye.value):te=X[Q]),K=J&&te?te:B[Q],!(J&&typeof fe==typeof K)&&(N.bind&&J?re=b(K,c):N.wrap&&J?re=L(K):k&&typeof K=="function"?re=b(Function.call,K):re=K,(N.sham||K&&K.sham||fe&&fe.sham)&&S(re,"sham",!0),R[Q]=re,k&&(q=j+"Prototype",g(d,q)||S(d,q,{}),d[q][Q]=K,N.real&&C&&!C[Q]&&S(C,Q,K)))}},95981:h=>{h.exports=function(I){try{return!!I()}catch(o){return!0}}},45602:(h,I,o)=>{var c=o(95981);h.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},86843:(h,I,o)=>{var c=o(33916);h.exports=function(v,x,d){if(c(v),x===void 0)return v;switch(d){case 0:return function(){return v.call(x)};case 1:return function(b){return v.call(x,b)};case 2:return function(b,S){return v.call(x,b,S)};case 3:return function(b,S,g){return v.call(x,b,S,g)}}return function(){return v.apply(x,arguments)}}},98308:(h,I,o)=>{"use strict";var c=o(33916),v=o(10941),x=[].slice,d={},b=function(S,g,L){if(!(g in d)){for(var N=[],B=0;B<g;B++)N[B]="a["+B+"]";d[g]=Function("C,a","return new C("+N.join(",")+")")}return d[g](S,L)};h.exports=Function.bind||function(g){var L=c(this),N=x.call(arguments,1),B=function(){var _=N.concat(x.call(arguments));return this instanceof B?b(L,_.length,_):L.apply(g,_)};return v(L.prototype)&&(B.prototype=L.prototype),B}},626:(h,I,o)=>{var c=o(54058),v=o(21899),x=function(d){return typeof d=="function"?d:void 0};h.exports=function(d,b){return arguments.length<2?x(c[d])||x(v[d]):c[d]&&c[d][b]||v[d]&&v[d][b]}},22902:(h,I,o)=>{var c=o(9697),v=o(12077),x=o(99813),d=x("iterator");h.exports=function(b){if(b!=null)return b[d]||b["@@iterator"]||v[c(b)]}},21899:(h,I,o)=>{var c=function(v){return v&&v.Math==Math&&v};h.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof o.g=="object"&&o.g)||function(){return this}()||Function("return this")()},47457:(h,I,o)=>{var c=o(89678),v={}.hasOwnProperty;h.exports=Object.hasOwn||function(d,b){return v.call(c(d),b)}},27748:h=>{h.exports={}},34845:(h,I,o)=>{var c=o(21899);h.exports=function(v,x){var d=c.console;d&&d.error&&(arguments.length===1?d.error(v):d.error(v,x))}},15463:(h,I,o)=>{var c=o(626);h.exports=c("document","documentElement")},2840:(h,I,o)=>{var c=o(55746),v=o(95981),x=o(61333);h.exports=!c&&!v(function(){return Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a!=7})},37026:(h,I,o)=>{var c=o(95981),v=o(82532),x="".split;h.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return v(d)=="String"?x.call(d,""):Object(d)}:Object},81302:(h,I,o)=>{var c=o(63030),v=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(x){return v.call(x)}),h.exports=c.inspectSource},21647:(h,I,o)=>{var c=o(27748),v=o(10941),x=o(47457),d=o(65988).f,b=o(99418),S=o(45602),g=b("meta"),L=0,N=Object.isExtensible||function(){return!0},B=function(X){d(X,g,{value:{objectID:"O"+ ++L,weakData:{}}})},j=function(X,R){if(!v(X))return typeof X=="symbol"?X:(typeof X=="string"?"S":"P")+X;if(!x(X,g)){if(!N(X))return"F";if(!R)return"E";B(X)}return X[g].objectID},_=function(X,R){if(!x(X,g)){if(!N(X))return!0;if(!R)return!1;B(X)}return X[g].weakData},H=function(X){return S&&k.REQUIRED&&N(X)&&!x(X,g)&&B(X),X},k=h.exports={REQUIRED:!1,fastKey:j,getWeakData:_,onFreeze:H};c[g]=!0},45402:(h,I,o)=>{var c=o(38019),v=o(21899),x=o(10941),d=o(32029),b=o(47457),S=o(63030),g=o(44262),L=o(27748),N="Object already initialized",B=v.WeakMap,j,_,H,k=function(Q){return H(Q)?_(Q):j(Q,{})},X=function(Q){return function(K){var fe;if(!x(K)||(fe=_(K)).type!==Q)throw TypeError("Incompatible receiver, "+Q+" required");return fe}};if(c||S.state){var R=S.state||(S.state=new B),C=R.get,V=R.has,J=R.set;j=function(Q,K){if(V.call(R,Q))throw new TypeError(N);return K.facade=Q,J.call(R,Q,K),K},_=function(Q){return C.call(R,Q)||{}},H=function(Q){return V.call(R,Q)}}else{var q=g("state");L[q]=!0,j=function(Q,K){if(b(Q,q))throw new TypeError(N);return K.facade=Q,d(Q,q,K),K},_=function(Q){return b(Q,q)?Q[q]:{}},H=function(Q){return b(Q,q)}}h.exports={set:j,get:_,has:H,enforce:k,getterFor:X}},6782:(h,I,o)=>{var c=o(99813),v=o(12077),x=c("iterator"),d=Array.prototype;h.exports=function(b){return b!==void 0&&(v.Array===b||d[x]===b)}},1052:(h,I,o)=>{var c=o(82532);h.exports=Array.isArray||function(x){return c(x)=="Array"}},37252:(h,I,o)=>{var c=o(95981),v=/#|\.prototype\./,x=function(L,N){var B=b[d(L)];return B==g?!0:B==S?!1:typeof N=="function"?c(N):!!N},d=x.normalize=function(L){return String(L).replace(v,".").toLowerCase()},b=x.data={},S=x.NATIVE="N",g=x.POLYFILL="P";h.exports=x},10941:h=>{h.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},82529:h=>{h.exports=!0},60685:(h,I,o)=>{var c=o(10941),v=o(82532),x=o(99813),d=x("match");h.exports=function(b){var S;return c(b)&&((S=b[d])!==void 0?!!S:v(b)=="RegExp")}},93091:(h,I,o)=>{var c=o(96059),v=o(6782),x=o(43057),d=o(86843),b=o(22902),S=o(7609),g=function(L,N){this.stopped=L,this.result=N};h.exports=function(L,N,B){var j=B&&B.that,_=!!(B&&B.AS_ENTRIES),H=!!(B&&B.IS_ITERATOR),k=!!(B&&B.INTERRUPTED),X=d(N,j,1+_+k),R,C,V,J,q,Q,K,fe=function(re){return R&&S(R),new g(!0,re)},te=function(re){return _?(c(re),k?X(re[0],re[1],fe):X(re[0],re[1])):k?X(re,fe):X(re)};if(H)R=L;else{if(C=b(L),typeof C!="function")throw TypeError("Target is not iterable");if(v(C)){for(V=0,J=x(L.length);J>V;V++)if(q=te(L[V]),q&&q instanceof g)return q;return new g(!1)}R=C.call(L)}for(Q=R.next;!(K=Q.call(R)).done;){try{q=te(K.value)}catch(re){throw S(R),re}if(typeof q=="object"&&q&&q instanceof g)return q}return new g(!1)}},7609:(h,I,o)=>{var c=o(96059);h.exports=function(v){var x=v.return;if(x!==void 0)return c(x.call(v)).value}},35143:(h,I,o)=>{"use strict";var c=o(95981),v=o(249),x=o(32029),d=o(47457),b=o(99813),S=o(82529),g=b("iterator"),L=!1,N=function(){return this},B,j,_;[].keys&&(_=[].keys(),"next"in _?(j=v(v(_)),j!==Object.prototype&&(B=j)):L=!0);var H=B==null||c(function(){var k={};return B[g].call(k)!==k});H&&(B={}),(!S||H)&&!d(B,g)&&x(B,g,N),h.exports={IteratorPrototype:B,BUGGY_SAFARI_ITERATORS:L}},12077:h=>{h.exports={}},66132:(h,I,o)=>{var c=o(21899),v=o(49677).f,x=o(42941).set,d=o(22749),b=o(58045),S=o(6049),g=c.MutationObserver||c.WebKitMutationObserver,L=c.document,N=c.process,B=c.Promise,j=v(c,"queueMicrotask"),_=j&&j.value,H,k,X,R,C,V,J,q;_||(H=function(){var Q,K;for(S&&(Q=N.domain)&&Q.exit();k;){K=k.fn,k=k.next;try{K()}catch(fe){throw k?R():X=void 0,fe}}X=void 0,Q&&Q.enter()},!d&&!S&&!b&&g&&L?(C=!0,V=L.createTextNode(""),new g(H).observe(V,{characterData:!0}),R=function(){V.data=C=!C}):B&&B.resolve?(J=B.resolve(void 0),J.constructor=B,q=J.then,R=function(){q.call(J,H)}):S?R=function(){N.nextTick(H)}:R=function(){x.call(c,H)}),h.exports=_||function(Q){var K={fn:Q,next:void 0};X&&(X.next=K),k||(k=K,R()),X=K}},19297:(h,I,o)=>{var c=o(21899);h.exports=c.Promise},72497:(h,I,o)=>{var c=o(53385),v=o(95981);h.exports=!!Object.getOwnPropertySymbols&&!v(function(){var x=Symbol();return!String(x)||!(Object(x)instanceof Symbol)||!Symbol.sham&&c&&c<41})},38019:(h,I,o)=>{var c=o(21899),v=o(81302),x=c.WeakMap;h.exports=typeof x=="function"&&/native code/.test(v(x))},69520:(h,I,o)=>{"use strict";var c=o(33916),v=function(x){var d,b;this.promise=new x(function(S,g){if(d!==void 0||b!==void 0)throw TypeError("Bad Promise constructor");d=S,b=g}),this.resolve=c(d),this.reject=c(b)};h.exports.f=function(x){return new v(x)}},70344:(h,I,o)=>{var c=o(60685);h.exports=function(v){if(c(v))throw TypeError("The method doesn't accept regular expressions");return v}},24420:(h,I,o)=>{"use strict";var c=o(55746),v=o(95981),x=o(14771),d=o(87857),b=o(36760),S=o(89678),g=o(37026),L=Object.assign,N=Object.defineProperty;h.exports=!L||v(function(){if(c&&L({b:1},L(N({},"a",{enumerable:!0,get:function(){N(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var B={},j={},_=Symbol(),H="abcdefghijklmnopqrst";return B[_]=7,H.split("").forEach(function(k){j[k]=k}),L({},B)[_]!=7||x(L({},j)).join("")!=H})?function(j,_){for(var H=S(j),k=arguments.length,X=1,R=d.f,C=b.f;k>X;)for(var V=g(arguments[X++]),J=R?x(V).concat(R(V)):x(V),q=J.length,Q=0,K;q>Q;)K=J[Q++],(!c||C.call(V,K))&&(H[K]=V[K]);return H}:L},29290:(h,I,o)=>{var c=o(96059),v=o(59938),x=o(56759),d=o(27748),b=o(15463),S=o(61333),g=o(44262),L=">",N="<",B="prototype",j="script",_=g("IE_PROTO"),H=function(){},k=function(J){return N+j+L+J+N+"/"+j+L},X=function(J){J.write(k("")),J.close();var q=J.parentWindow.Object;return J=null,q},R=function(){var J=S("iframe"),q="java"+j+":",Q;return J.style.display="none",b.appendChild(J),J.src=String(q),Q=J.contentWindow.document,Q.open(),Q.write(k("document.F=Object")),Q.close(),Q.F},C,V=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch(q){}V=C?X(C):R();for(var J=x.length;J--;)delete V[B][x[J]];return V()};d[_]=!0,h.exports=Object.create||function(q,Q){var K;return q!==null?(H[B]=c(q),K=new H,H[B]=null,K[_]=q):K=V(),Q===void 0?K:v(K,Q)}},59938:(h,I,o)=>{var c=o(55746),v=o(65988),x=o(96059),d=o(14771);h.exports=c?Object.defineProperties:function(S,g){x(S);for(var L=d(g),N=L.length,B=0,j;N>B;)v.f(S,j=L[B++],g[j]);return S}},65988:(h,I,o)=>{var c=o(55746),v=o(2840),x=o(96059),d=o(46935),b=Object.defineProperty;I.f=c?b:function(g,L,N){if(x(g),L=d(L,!0),x(N),v)try{return b(g,L,N)}catch(B){}if("get"in N||"set"in N)throw TypeError("Accessors not supported");return"value"in N&&(g[L]=N.value),g}},49677:(h,I,o)=>{var c=o(55746),v=o(36760),x=o(31887),d=o(74529),b=o(46935),S=o(47457),g=o(2840),L=Object.getOwnPropertyDescriptor;I.f=c?L:function(B,j){if(B=d(B),j=b(j,!0),g)try{return L(B,j)}catch(_){}if(S(B,j))return x(!v.f.call(B,j),B[j])}},684:(h,I,o)=>{var c=o(74529),v=o(10946).f,x={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(S){try{return v(S)}catch(g){return d.slice()}};h.exports.f=function(g){return d&&x.call(g)=="[object Window]"?b(g):v(c(g))}},10946:(h,I,o)=>{var c=o(55629),v=o(56759),x=v.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(b){return c(b,x)}},87857:(h,I)=>{I.f=Object.getOwnPropertySymbols},249:(h,I,o)=>{var c=o(47457),v=o(89678),x=o(44262),d=o(64160),b=x("IE_PROTO"),S=Object.prototype;h.exports=d?Object.getPrototypeOf:function(g){return g=v(g),c(g,b)?g[b]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?S:null}},55629:(h,I,o)=>{var c=o(47457),v=o(74529),x=o(31692).indexOf,d=o(27748);h.exports=function(b,S){var g=v(b),L=0,N=[],B;for(B in g)!c(d,B)&&c(g,B)&&N.push(B);for(;S.length>L;)c(g,B=S[L++])&&(~x(N,B)||N.push(B));return N}},14771:(h,I,o)=>{var c=o(55629),v=o(56759);h.exports=Object.keys||function(d){return c(d,v)}},36760:(h,I)=>{"use strict";var o={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,v=c&&!o.call({1:2},1);I.f=v?function(d){var b=c(this,d);return!!b&&b.enumerable}:o},88929:(h,I,o)=>{var c=o(96059),v=o(42488);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var x=!1,d={},b;try{b=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,b.call(d,[]),x=d instanceof Array}catch(S){}return function(g,L){return c(g),v(L),x?b.call(g,L):g.__proto__=L,g}}():void 0)},88810:(h,I,o)=>{var c=o(55746),v=o(14771),x=o(74529),d=o(36760).f,b=function(S){return function(g){for(var L=x(g),N=v(L),B=N.length,j=0,_=[],H;B>j;)H=N[j++],(!c||d.call(L,H))&&_.push(S?[H,L[H]]:L[H]);return _}};h.exports={entries:b(!0),values:b(!1)}},95623:(h,I,o)=>{"use strict";var c=o(22885),v=o(9697);h.exports=c?{}.toString:function(){return"[object "+v(this)+"]"}},31136:(h,I,o)=>{var c=o(626),v=o(10946),x=o(87857),d=o(96059);h.exports=c("Reflect","ownKeys")||function(S){var g=v.f(d(S)),L=x.f;return L?g.concat(L(S)):g}},54058:h=>{h.exports={}},40002:h=>{h.exports=function(I){try{return{error:!1,value:I()}}catch(o){return{error:!0,value:o}}}},56584:(h,I,o)=>{var c=o(96059),v=o(10941),x=o(69520);h.exports=function(d,b){if(c(d),v(b)&&b.constructor===d)return b;var S=x.f(d),g=S.resolve;return g(b),S.promise}},87524:(h,I,o)=>{var c=o(99754);h.exports=function(v,x,d){for(var b in x)d&&d.unsafe&&v[b]?v[b]=x[b]:c(v,b,x[b],d);return v}},99754:(h,I,o)=>{var c=o(32029);h.exports=function(v,x,d,b){b&&b.enumerable?v[x]=d:c(v,x,d)}},48219:h=>{h.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},4911:(h,I,o)=>{var c=o(21899),v=o(32029);h.exports=function(x,d){try{v(c,x,d)}catch(b){c[x]=d}return d}},94431:(h,I,o)=>{"use strict";var c=o(626),v=o(65988),x=o(99813),d=o(55746),b=x("species");h.exports=function(S){var g=c(S),L=v.f;d&&g&&!g[b]&&L(g,b,{configurable:!0,get:function(){return this}})}},90904:(h,I,o)=>{var c=o(22885),v=o(65988).f,x=o(32029),d=o(47457),b=o(95623),S=o(99813),g=S("toStringTag");h.exports=function(L,N,B,j){if(L){var _=B?L:L.prototype;d(_,g)||v(_,g,{configurable:!0,value:N}),j&&!c&&x(_,"toString",b)}}},44262:(h,I,o)=>{var c=o(68726),v=o(99418),x=c("keys");h.exports=function(d){return x[d]||(x[d]=v(d))}},63030:(h,I,o)=>{var c=o(21899),v=o(4911),x="__core-js_shared__",d=c[x]||v(x,{});h.exports=d},68726:(h,I,o)=>{var c=o(82529),v=o(63030);(h.exports=function(x,d){return v[x]||(v[x]=d!==void 0?d:{})})("versions",[]).push({version:"3.14.0",mode:c?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},70487:(h,I,o)=>{var c=o(96059),v=o(33916),x=o(99813),d=x("species");h.exports=function(b,S){var g=c(b).constructor,L;return g===void 0||(L=c(g)[d])==null?S:v(L)}},64620:(h,I,o)=>{var c=o(68459),v=o(48219),x=function(d){return function(b,S){var g=String(v(b)),L=c(S),N=g.length,B,j;return L<0||L>=N?d?"":void 0:(B=g.charCodeAt(L),B<55296||B>56319||L+1===N||(j=g.charCodeAt(L+1))<56320||j>57343?d?g.charAt(L):B:d?g.slice(L,L+2):(B-55296<<10)+(j-56320)+65536)}};h.exports={codeAt:x(!1),charAt:x(!0)}},42941:(h,I,o)=>{var c=o(21899),v=o(95981),x=o(86843),d=o(15463),b=o(61333),S=o(22749),g=o(6049),L=c.location,N=c.setImmediate,B=c.clearImmediate,j=c.process,_=c.MessageChannel,H=c.Dispatch,k=0,X={},R="onreadystatechange",C,V,J,q=function(te){if(X.hasOwnProperty(te)){var re=X[te];delete X[te],re()}},Q=function(te){return function(){q(te)}},K=function(te){q(te.data)},fe=function(te){c.postMessage(te+"",L.protocol+"//"+L.host)};(!N||!B)&&(N=function(re){for(var ye=[],ve=1;arguments.length>ve;)ye.push(arguments[ve++]);return X[++k]=function(){(typeof re=="function"?re:Function(re)).apply(void 0,ye)},C(k),k},B=function(re){delete X[re]},g?C=function(te){j.nextTick(Q(te))}:H&&H.now?C=function(te){H.now(Q(te))}:_&&!S?(V=new _,J=V.port2,V.port1.onmessage=K,C=x(J.postMessage,J,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&L&&L.protocol!=="file:"&&!v(fe)?(C=fe,c.addEventListener("message",K,!1)):R in b("script")?C=function(te){d.appendChild(b("script"))[R]=function(){d.removeChild(this),q(te)}}:C=function(te){setTimeout(Q(te),0)}),h.exports={set:N,clear:B}},59413:(h,I,o)=>{var c=o(68459),v=Math.max,x=Math.min;h.exports=function(d,b){var S=c(d);return S<0?v(S+b,0):x(S,b)}},74529:(h,I,o)=>{var c=o(37026),v=o(48219);h.exports=function(x){return c(v(x))}},68459:h=>{var I=Math.ceil,o=Math.floor;h.exports=function(c){return isNaN(c=+c)?0:(c>0?o:I)(c)}},43057:(h,I,o)=>{var c=o(68459),v=Math.min;h.exports=function(x){return x>0?v(c(x),9007199254740991):0}},89678:(h,I,o)=>{var c=o(48219);h.exports=function(v){return Object(c(v))}},46935:(h,I,o)=>{var c=o(10941);h.exports=function(v,x){if(!c(v))return v;var d,b;if(x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v))||typeof(d=v.valueOf)=="function"&&!c(b=d.call(v))||!x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v)))return b;throw TypeError("Can't convert object to primitive value")}},22885:(h,I,o)=>{var c=o(99813),v=c("toStringTag"),x={};x[v]="z",h.exports=String(x)==="[object z]"},99418:h=>{var I=0,o=Math.random();h.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++I+o).toString(36)}},32302:(h,I,o)=>{var c=o(72497);h.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},11477:(h,I,o)=>{var c=o(99813);I.f=c},99813:(h,I,o)=>{var c=o(21899),v=o(68726),x=o(47457),d=o(99418),b=o(72497),S=o(32302),g=v("wks"),L=c.Symbol,N=S?L:L&&L.withoutSetter||d;h.exports=function(B){return(!x(g,B)||!(b||typeof g[B]=="string"))&&(b&&x(L,B)?g[B]=L[B]:g[B]=N("Symbol."+B)),g[B]}},47627:(h,I,o)=>{"use strict";var c=o(76887),v=o(249),x=o(88929),d=o(29290),b=o(32029),S=o(31887),g=o(93091),L=function(B,j){var _=this;if(!(_ instanceof L))return new L(B,j);x&&(_=x(new Error(void 0),v(_))),j!==void 0&&b(_,"message",String(j));var H=[];return g(B,H.push,{that:H}),b(_,"errors",H),_};L.prototype=d(Error.prototype,{constructor:S(5,L),message:S(5,""),name:S(5,"AggregateError")}),c({global:!0},{AggregateError:L})},85906:(h,I,o)=>{"use strict";var c=o(76887),v=o(95981),x=o(1052),d=o(10941),b=o(89678),S=o(43057),g=o(55449),L=o(64692),N=o(50568),B=o(99813),j=o(53385),_=B("isConcatSpreadable"),H=9007199254740991,k="Maximum allowed index exceeded",X=j>=51||!v(function(){var J=[];return J[_]=!1,J.concat()[0]!==J}),R=N("concat"),C=function(J){if(!d(J))return!1;var q=J[_];return q!==void 0?!!q:x(J)},V=!X||!R;c({target:"Array",proto:!0,forced:V},{concat:function(q){var Q=b(this),K=L(Q,0),fe=0,te,re,ye,ve,de;for(te=-1,ye=arguments.length;te<ye;te++)if(de=te===-1?Q:arguments[te],C(de)){if(ve=S(de.length),fe+ve>H)throw TypeError(k);for(re=0;re<ve;re++,fe++)re in de&&g(K,fe,de[re])}else{if(fe>=H)throw TypeError(k);g(K,fe++,de)}return K.length=fe,K}})},21501:(h,I,o)=>{"use strict";var c=o(76887),v=o(3610).filter,x=o(50568),d=x("filter");c({target:"Array",proto:!0,forced:!d},{filter:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}})},80833:(h,I,o)=>{"use strict";var c=o(76887),v=o(3610).find,x=o(18479),d="find",b=!0;d in[]&&Array(1)[d](function(){b=!1}),c({target:"Array",proto:!0,forced:b},{find:function(g){return v(this,g,arguments.length>1?arguments[1]:void 0)}}),x(d)},2437:(h,I,o)=>{"use strict";var c=o(76887),v=o(56837);c({target:"Array",proto:!0,forced:[].forEach!=v},{forEach:v})},53242:(h,I,o)=>{var c=o(76887),v=o(11354),x=o(21385),d=!x(function(b){Array.from(b)});c({target:"Array",stat:!0,forced:d},{from:v})},97690:(h,I,o)=>{"use strict";var c=o(76887),v=o(31692).includes,x=o(18479);c({target:"Array",proto:!0},{includes:function(b){return v(this,b,arguments.length>1?arguments[1]:void 0)}}),x("includes")},99076:(h,I,o)=>{"use strict";var c=o(76887),v=o(31692).indexOf,x=o(34194),d=[].indexOf,b=!!d&&1/[1].indexOf(1,-0)<0,S=x("indexOf");c({target:"Array",proto:!0,forced:b||!S},{indexOf:function(L){return b?d.apply(this,arguments)||0:v(this,L,arguments.length>1?arguments[1]:void 0)}})},92737:(h,I,o)=>{var c=o(76887),v=o(1052);c({target:"Array",stat:!0},{isArray:v})},66274:(h,I,o)=>{"use strict";var c=o(74529),v=o(18479),x=o(12077),d=o(45402),b=o(47771),S="Array Iterator",g=d.set,L=d.getterFor(S);h.exports=b(Array,"Array",function(N,B){g(this,{type:S,target:c(N),index:0,kind:B})},function(){var N=L(this),B=N.target,j=N.kind,_=N.index++;return!B||_>=B.length?(N.target=void 0,{value:void 0,done:!0}):j=="keys"?{value:_,done:!1}:j=="values"?{value:B[_],done:!1}:{value:[_,B[_]],done:!1}},"values"),x.Arguments=x.Array,v("keys"),v("values"),v("entries")},68787:(h,I,o)=>{"use strict";var c=o(76887),v=o(3610).map,x=o(50568),d=x("map");c({target:"Array",proto:!0,forced:!d},{map:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}})},60186:(h,I,o)=>{"use strict";var c=o(76887),v=o(10941),x=o(1052),d=o(59413),b=o(43057),S=o(74529),g=o(55449),L=o(99813),N=o(50568),B=N("slice"),j=L("species"),_=[].slice,H=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(X,R){var C=S(this),V=b(C.length),J=d(X,V),q=d(R===void 0?V:R,V),Q,K,fe;if(x(C)&&(Q=C.constructor,typeof Q=="function"&&(Q===Array||x(Q.prototype))?Q=void 0:v(Q)&&(Q=Q[j],Q===null&&(Q=void 0)),Q===Array||Q===void 0))return _.call(C,J,q);for(K=new(Q===void 0?Array:Q)(H(q-J,0)),fe=0;J<q;J++,fe++)J in C&&g(K,fe,C[J]);return K.length=fe,K}})},98611:(h,I,o)=>{"use strict";var c=o(76887),v=o(59413),x=o(68459),d=o(43057),b=o(89678),S=o(64692),g=o(55449),L=o(50568),N=L("splice"),B=Math.max,j=Math.min,_=9007199254740991,H="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!N},{splice:function(X,R){var C=b(this),V=d(C.length),J=v(X,V),q=arguments.length,Q,K,fe,te,re,ye;if(q===0?Q=K=0:q===1?(Q=0,K=V-J):(Q=q-2,K=j(B(x(R),0),V-J)),V+Q-K>_)throw TypeError(H);for(fe=S(C,K),te=0;te<K;te++)re=J+te,re in C&&g(fe,te,C[re]);if(fe.length=K,Q<K){for(te=J;te<V-K;te++)re=te+K,ye=te+Q,re in C?C[ye]=C[re]:delete C[ye];for(te=V;te>V-K+Q;te--)delete C[te-1]}else if(Q>K)for(te=V-K;te>J;te--)re=te+K-1,ye=te+Q-1,re in C?C[ye]=C[re]:delete C[ye];for(te=0;te<Q;te++)C[te+J]=arguments[te+2];return C.length=V-K+Q,fe}})},32619:(h,I,o)=>{var c=o(76887),v=o(626),x=o(95981),d=v("JSON","stringify"),b=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,g=/^[\uDC00-\uDFFF]$/,L=function(B,j,_){var H=_.charAt(j-1),k=_.charAt(j+1);return S.test(B)&&!g.test(k)||g.test(B)&&!S.test(H)?"\\u"+B.charCodeAt(0).toString(16):B},N=x(function(){return d("\uDF06\uD834")!=='"\\udf06\\ud834"'||d("\uDEAD")!=='"\\udead"'});d&&c({target:"JSON",stat:!0,forced:N},{stringify:function(j,_,H){var k=d.apply(null,arguments);return typeof k=="string"?k.replace(b,L):k}})},69120:(h,I,o)=>{var c=o(21899),v=o(90904);v(c.JSON,"JSON",!0)},79413:()=>{},49221:(h,I,o)=>{var c=o(76887),v=o(24420);c({target:"Object",stat:!0,forced:Object.assign!==v},{assign:v})},53882:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(29290);c({target:"Object",stat:!0,sham:!v},{create:x})},74979:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(59938);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperties:x})},86450:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(65988);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperty:x.f})},21078:(h,I,o)=>{var c=o(76887),v=o(88810).entries;c({target:"Object",stat:!0},{entries:function(d){return v(d)}})},46924:(h,I,o)=>{var c=o(76887),v=o(95981),x=o(74529),d=o(49677).f,b=o(55746),S=v(function(){d(1)}),g=!b||S;c({target:"Object",stat:!0,forced:g,sham:!b},{getOwnPropertyDescriptor:function(N,B){return d(x(N),B)}})},88482:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(31136),d=o(74529),b=o(49677),S=o(55449);c({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(L){for(var N=d(L),B=b.f,j=x(N),_={},H=0,k,X;j.length>H;)X=B(N,k=j[H++]),X!==void 0&&S(_,k,X);return _}})},17405:(h,I,o)=>{var c=o(76887),v=o(95981),x=o(89678),d=o(249),b=o(64160),S=v(function(){d(1)});c({target:"Object",stat:!0,forced:S,sham:!b},{getPrototypeOf:function(L){return d(x(L))}})},21724:(h,I,o)=>{var c=o(76887),v=o(89678),x=o(14771),d=o(95981),b=d(function(){x(1)});c({target:"Object",stat:!0,forced:b},{keys:function(g){return x(v(g))}})},90108:(h,I,o)=>{var c=o(76887),v=o(88929);c({target:"Object",stat:!0},{setPrototypeOf:v})},55967:()=>{},4560:(h,I,o)=>{"use strict";var c=o(76887),v=o(33916),x=o(69520),d=o(40002),b=o(93091);c({target:"Promise",stat:!0},{allSettled:function(g){var L=this,N=x.f(L),B=N.resolve,j=N.reject,_=d(function(){var H=v(L.resolve),k=[],X=0,R=1;b(g,function(C){var V=X++,J=!1;k.push(void 0),R++,H.call(L,C).then(function(q){J||(J=!0,k[V]={status:"fulfilled",value:q},--R||B(k))},function(q){J||(J=!0,k[V]={status:"rejected",reason:q},--R||B(k))})}),--R||B(k)});return _.error&&j(_.value),N.promise}})},91302:(h,I,o)=>{"use strict";var c=o(76887),v=o(33916),x=o(626),d=o(69520),b=o(40002),S=o(93091),g="No one promise resolved";c({target:"Promise",stat:!0},{any:function(N){var B=this,j=d.f(B),_=j.resolve,H=j.reject,k=b(function(){var X=v(B.resolve),R=[],C=0,V=1,J=!1;S(N,function(q){var Q=C++,K=!1;R.push(void 0),V++,X.call(B,q).then(function(fe){K||J||(J=!0,_(fe))},function(fe){K||J||(K=!0,R[Q]=fe,--V||H(new(x("AggregateError"))(R,g)))})}),--V||H(new(x("AggregateError"))(R,g))});return k.error&&H(k.value),j.promise}})},44349:(h,I,o)=>{"use strict";var c=o(76887),v=o(82529),x=o(19297),d=o(95981),b=o(626),S=o(70487),g=o(56584),L=o(99754),N=!!x&&d(function(){x.prototype.finally.call({then:function(){}},function(){})});if(c({target:"Promise",proto:!0,real:!0,forced:N},{finally:function(j){var _=S(this,b("Promise")),H=typeof j=="function";return this.then(H?function(k){return g(_,j()).then(function(){return k})}:j,H?function(k){return g(_,j()).then(function(){throw k})}:j)}}),!v&&typeof x=="function"){var B=b("Promise").prototype.finally;x.prototype.finally!==B&&L(x.prototype,"finally",B,{unsafe:!0})}},98881:(h,I,o)=>{"use strict";var c=o(76887),v=o(82529),x=o(21899),d=o(626),b=o(19297),S=o(99754),g=o(87524),L=o(88929),N=o(90904),B=o(94431),j=o(10941),_=o(33916),H=o(5743),k=o(81302),X=o(93091),R=o(21385),C=o(70487),V=o(42941).set,J=o(66132),q=o(56584),Q=o(34845),K=o(69520),fe=o(40002),te=o(45402),re=o(37252),ye=o(99813),ve=o(23321),de=o(6049),le=o(53385),oe=ye("species"),De="Promise",Ve=te.get,Le=te.set,ke=te.getterFor(De),tt=b&&b.prototype,Qe=b,Xe=tt,ut=x.TypeError,pt=x.document,yt=x.process,qe=K.f,lt=qe,vt=!!(pt&&pt.createEvent&&x.dispatchEvent),mt=typeof PromiseRejectionEvent=="function",dt="unhandledrejection",kt="rejectionhandled",It=0,St=1,Wt=2,Bt=1,Gt=2,wt=!1,Rt,pe,G,$,we=re(De,function(){var ee=k(Qe)!==String(Qe);if(!ee&&le===66||v&&!Xe.finally)return!0;if(le>=51&&/native code/.test(Qe))return!1;var ce=new Qe(function(Te){Te(1)}),Oe=function(Te){Te(function(){},function(){})},Pe=ce.constructor={};return Pe[oe]=Oe,wt=ce.then(function(){})instanceof Oe,wt?!ee&&ve&&!mt:!0}),Me=we||!R(function(ee){Qe.all(ee).catch(function(){})}),be=function(ee){var ce;return j(ee)&&typeof(ce=ee.then)=="function"?ce:!1},Ae=function(ee,ce){if(!ee.notified){ee.notified=!0;var Oe=ee.reactions;J(function(){for(var Pe=ee.value,Te=ee.state==St,ze=0;Oe.length>ze;){var He=Oe[ze++],it=Te?He.ok:He.fail,gt=He.resolve,Ct=He.reject,Yt=He.domain,Ft,gn,Xr;try{it?(Te||(ee.rejection===Gt&&O(ee),ee.rejection=Bt),it===!0?Ft=Pe:(Yt&&Yt.enter(),Ft=it(Pe),Yt&&(Yt.exit(),Xr=!0)),Ft===He.promise?Ct(ut("Promise-chain cycle")):(gn=be(Ft))?gn.call(Ft,gt,Ct):gt(Ft)):Ct(Pe)}catch(Cn){Yt&&!Xr&&Yt.exit(),Ct(Cn)}}ee.reactions=[],ee.notified=!1,ce&&!ee.rejection&&Ie(ee)})}},T=function(ee,ce,Oe){var Pe,Te;vt?(Pe=pt.createEvent("Event"),Pe.promise=ce,Pe.reason=Oe,Pe.initEvent(ee,!1,!0),x.dispatchEvent(Pe)):Pe={promise:ce,reason:Oe},!mt&&(Te=x["on"+ee])?Te(Pe):ee===dt&&Q("Unhandled promise rejection",Oe)},Ie=function(ee){V.call(x,function(){var ce=ee.facade,Oe=ee.value,Pe=W(ee),Te;if(Pe&&(Te=fe(function(){de?yt.emit("unhandledRejection",Oe,ce):T(dt,ce,Oe)}),ee.rejection=de||W(ee)?Gt:Bt,Te.error))throw Te.value})},W=function(ee){return ee.rejection!==Bt&&!ee.parent},O=function(ee){V.call(x,function(){var ce=ee.facade;de?yt.emit("rejectionHandled",ce):T(kt,ce,ee.value)})},P=function(ee,ce,Oe){return function(Pe){ee(ce,Pe,Oe)}},ie=function(ee,ce,Oe){ee.done||(ee.done=!0,Oe&&(ee=Oe),ee.value=ce,ee.state=Wt,Ae(ee,!0))},D=function(ee,ce,Oe){if(!ee.done){ee.done=!0,Oe&&(ee=Oe);try{if(ee.facade===ce)throw ut("Promise can't be resolved itself");var Pe=be(ce);Pe?J(function(){var Te={done:!1};try{Pe.call(ce,P(D,Te,ee),P(ie,Te,ee))}catch(ze){ie(Te,ze,ee)}}):(ee.value=ce,ee.state=St,Ae(ee,!1))}catch(Te){ie({done:!1},Te,ee)}}};if(we&&(Qe=function(ce){H(this,Qe,De),_(ce),Rt.call(this);var Oe=Ve(this);try{ce(P(D,Oe),P(ie,Oe))}catch(Pe){ie(Oe,Pe)}},Xe=Qe.prototype,Rt=function(ce){Le(this,{type:De,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:It,value:void 0})},Rt.prototype=g(Xe,{then:function(ce,Oe){var Pe=ke(this),Te=qe(C(this,Qe));return Te.ok=typeof ce=="function"?ce:!0,Te.fail=typeof Oe=="function"&&Oe,Te.domain=de?yt.domain:void 0,Pe.parent=!0,Pe.reactions.push(Te),Pe.state!=It&&Ae(Pe,!1),Te.promise},catch:function(ee){return this.then(void 0,ee)}}),pe=function(){var ee=new Rt,ce=Ve(ee);this.promise=ee,this.resolve=P(D,ce),this.reject=P(ie,ce)},K.f=qe=function(ee){return ee===Qe||ee===G?new pe(ee):lt(ee)},!v&&typeof b=="function"&&tt!==Object.prototype)){$=tt.then,wt||(S(tt,"then",function(ce,Oe){var Pe=this;return new Qe(function(Te,ze){$.call(Pe,Te,ze)}).then(ce,Oe)},{unsafe:!0}),S(tt,"catch",Xe.catch,{unsafe:!0}));try{delete tt.constructor}catch(ee){}L&&L(tt,Xe)}c({global:!0,wrap:!0,forced:we},{Promise:Qe}),N(Qe,De,!1,!0),B(De),G=d(De),c({target:De,stat:!0,forced:we},{reject:function(ce){var Oe=qe(this);return Oe.reject.call(void 0,ce),Oe.promise}}),c({target:De,stat:!0,forced:v||we},{resolve:function(ce){return q(v&&this===G?Qe:this,ce)}}),c({target:De,stat:!0,forced:Me},{all:function(ce){var Oe=this,Pe=qe(Oe),Te=Pe.resolve,ze=Pe.reject,He=fe(function(){var it=_(Oe.resolve),gt=[],Ct=0,Yt=1;X(ce,function(Ft){var gn=Ct++,Xr=!1;gt.push(void 0),Yt++,it.call(Oe,Ft).then(function(Cn){Xr||(Xr=!0,gt[gn]=Cn,--Yt||Te(gt))},ze)}),--Yt||Te(gt)});return He.error&&ze(He.value),Pe.promise},race:function(ce){var Oe=this,Pe=qe(Oe),Te=Pe.reject,ze=fe(function(){var He=_(Oe.resolve);X(ce,function(it){He.call(Oe,it).then(Pe.resolve,Te)})});return ze.error&&Te(ze.value),Pe.promise}})},7453:(h,I,o)=>{var c=o(76887),v=o(626),x=o(33916),d=o(96059),b=o(10941),S=o(29290),g=o(98308),L=o(95981),N=v("Reflect","construct"),B=L(function(){function H(){}return!(N(function(){},[],H)instanceof H)}),j=!L(function(){N(function(){})}),_=B||j;c({target:"Reflect",stat:!0,forced:_,sham:_},{construct:function(k,X){x(k),d(X);var R=arguments.length<3?k:x(arguments[2]);if(j&&!B)return N(k,X,R);if(k==R){switch(X.length){case 0:return new k;case 1:return new k(X[0]);case 2:return new k(X[0],X[1]);case 3:return new k(X[0],X[1],X[2]);case 4:return new k(X[0],X[1],X[2],X[3])}var C=[null];return C.push.apply(C,X),new(g.apply(k,C))}var V=R.prototype,J=S(b(V)?V:Object.prototype),q=Function.apply.call(k,J,X);return b(q)?q:J}})},42355:(h,I,o)=>{var c=o(76887),v=o(10941),x=o(96059),d=o(47457),b=o(49677),S=o(249);function g(L,N){var B=arguments.length<3?L:arguments[2],j,_;if(x(L)===B)return L[N];if(j=b.f(L,N))return d(j,"value")?j.value:j.get===void 0?void 0:j.get.call(B);if(v(_=S(L)))return g(_,N,B)}c({target:"Reflect",stat:!0},{get:g})},1502:()=>{},11035:(h,I,o)=>{"use strict";var c=o(76887),v=o(70344),x=o(48219),d=o(67772);c({target:"String",proto:!0,forced:!d("includes")},{includes:function(S){return!!~String(x(this)).indexOf(v(S),arguments.length>1?arguments[1]:void 0)}})},77971:(h,I,o)=>{"use strict";var c=o(64620).charAt,v=o(45402),x=o(47771),d="String Iterator",b=v.set,S=v.getterFor(d);x(String,"String",function(g){b(this,{type:d,string:String(g),index:0})},function(){var L=S(this),N=L.string,B=L.index,j;return B>=N.length?{value:void 0,done:!0}:(j=c(N,B),L.index+=j.length,{value:j,done:!1})})},8555:(h,I,o)=>{var c=o(66349);c("asyncIterator")},52615:()=>{},21732:(h,I,o)=>{var c=o(66349);c("hasInstance")},35903:(h,I,o)=>{var c=o(66349);c("isConcatSpreadable")},1825:(h,I,o)=>{var c=o(66349);c("iterator")},35824:(h,I,o)=>{"use strict";var c=o(76887),v=o(21899),x=o(626),d=o(82529),b=o(55746),S=o(72497),g=o(32302),L=o(95981),N=o(47457),B=o(1052),j=o(10941),_=o(96059),H=o(89678),k=o(74529),X=o(46935),R=o(31887),C=o(29290),V=o(14771),J=o(10946),q=o(684),Q=o(87857),K=o(49677),fe=o(65988),te=o(36760),re=o(32029),ye=o(99754),ve=o(68726),de=o(44262),le=o(27748),oe=o(99418),De=o(99813),Ve=o(11477),Le=o(66349),ke=o(90904),tt=o(45402),Qe=o(3610).forEach,Xe=de("hidden"),ut="Symbol",pt="prototype",yt=De("toPrimitive"),qe=tt.set,lt=tt.getterFor(ut),vt=Object[pt],mt=v.Symbol,dt=x("JSON","stringify"),kt=K.f,It=fe.f,St=q.f,Wt=te.f,Bt=ve("symbols"),Gt=ve("op-symbols"),wt=ve("string-to-symbol-registry"),Rt=ve("symbol-to-string-registry"),pe=ve("wks"),G=v.QObject,$=!G||!G[pt]||!G[pt].findChild,we=b&&L(function(){return C(It({},"a",{get:function(){return It(this,"a",{value:7}).a}})).a!=7})?function(ee,ce,Oe){var Pe=kt(vt,ce);Pe&&delete vt[ce],It(ee,ce,Oe),Pe&&ee!==vt&&It(vt,ce,Pe)}:It,Me=function(ee,ce){var Oe=Bt[ee]=C(mt[pt]);return qe(Oe,{type:ut,tag:ee,description:ce}),b||(Oe.description=ce),Oe},be=g?function(ee){return typeof ee=="symbol"}:function(ee){return Object(ee)instanceof mt},Ae=function(ce,Oe,Pe){ce===vt&&Ae(Gt,Oe,Pe),_(ce);var Te=X(Oe,!0);return _(Pe),N(Bt,Te)?(Pe.enumerable?(N(ce,Xe)&&ce[Xe][Te]&&(ce[Xe][Te]=!1),Pe=C(Pe,{enumerable:R(0,!1)})):(N(ce,Xe)||It(ce,Xe,R(1,{})),ce[Xe][Te]=!0),we(ce,Te,Pe)):It(ce,Te,Pe)},T=function(ce,Oe){_(ce);var Pe=k(Oe),Te=V(Pe).concat(ie(Pe));return Qe(Te,function(ze){(!b||W.call(Pe,ze))&&Ae(ce,ze,Pe[ze])}),ce},Ie=function(ce,Oe){return Oe===void 0?C(ce):T(C(ce),Oe)},W=function(ce){var Oe=X(ce,!0),Pe=Wt.call(this,Oe);return this===vt&&N(Bt,Oe)&&!N(Gt,Oe)?!1:Pe||!N(this,Oe)||!N(Bt,Oe)||N(this,Xe)&&this[Xe][Oe]?Pe:!0},O=function(ce,Oe){var Pe=k(ce),Te=X(Oe,!0);if(!(Pe===vt&&N(Bt,Te)&&!N(Gt,Te))){var ze=kt(Pe,Te);return ze&&N(Bt,Te)&&!(N(Pe,Xe)&&Pe[Xe][Te])&&(ze.enumerable=!0),ze}},P=function(ce){var Oe=St(k(ce)),Pe=[];return Qe(Oe,function(Te){!N(Bt,Te)&&!N(le,Te)&&Pe.push(Te)}),Pe},ie=function(ce){var Oe=ce===vt,Pe=St(Oe?Gt:k(ce)),Te=[];return Qe(Pe,function(ze){N(Bt,ze)&&(!Oe||N(vt,ze))&&Te.push(Bt[ze])}),Te};if(S||(mt=function(){if(this instanceof mt)throw TypeError("Symbol is not a constructor");var ce=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Oe=oe(ce),Pe=function(Te){this===vt&&Pe.call(Gt,Te),N(this,Xe)&&N(this[Xe],Oe)&&(this[Xe][Oe]=!1),we(this,Oe,R(1,Te))};return b&&$&&we(vt,Oe,{configurable:!0,set:Pe}),Me(Oe,ce)},ye(mt[pt],"toString",function(){return lt(this).tag}),ye(mt,"withoutSetter",function(ee){return Me(oe(ee),ee)}),te.f=W,fe.f=Ae,K.f=O,J.f=q.f=P,Q.f=ie,Ve.f=function(ee){return Me(De(ee),ee)},b&&(It(mt[pt],"description",{configurable:!0,get:function(){return lt(this).description}}),d||ye(vt,"propertyIsEnumerable",W,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!S,sham:!S},{Symbol:mt}),Qe(V(pe),function(ee){Le(ee)}),c({target:ut,stat:!0,forced:!S},{for:function(ee){var ce=String(ee);if(N(wt,ce))return wt[ce];var Oe=mt(ce);return wt[ce]=Oe,Rt[Oe]=ce,Oe},keyFor:function(ce){if(!be(ce))throw TypeError(ce+" is not a symbol");if(N(Rt,ce))return Rt[ce]},useSetter:function(){$=!0},useSimple:function(){$=!1}}),c({target:"Object",stat:!0,forced:!S,sham:!b},{create:Ie,defineProperty:Ae,defineProperties:T,getOwnPropertyDescriptor:O}),c({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:P,getOwnPropertySymbols:ie}),c({target:"Object",stat:!0,forced:L(function(){Q.f(1)})},{getOwnPropertySymbols:function(ce){return Q.f(H(ce))}}),dt){var D=!S||L(function(){var ee=mt();return dt([ee])!="[null]"||dt({a:ee})!="{}"||dt(Object(ee))!="{}"});c({target:"JSON",stat:!0,forced:D},{stringify:function(ce,Oe,Pe){for(var Te=[ce],ze=1,He;arguments.length>ze;)Te.push(arguments[ze++]);if(He=Oe,!(!j(Oe)&&ce===void 0||be(ce)))return B(Oe)||(Oe=function(it,gt){if(typeof He=="function"&&(gt=He.call(this,it,gt)),!be(gt))return gt}),Te[1]=Oe,dt.apply(null,Te)}})}mt[pt][yt]||re(mt[pt],yt,mt[pt].valueOf),ke(mt,ut),le[Xe]=!0},45915:(h,I,o)=>{var c=o(66349);c("matchAll")},28394:(h,I,o)=>{var c=o(66349);c("match")},61766:(h,I,o)=>{var c=o(66349);c("replace")},62737:(h,I,o)=>{var c=o(66349);c("search")},89911:(h,I,o)=>{var c=o(66349);c("species")},74315:(h,I,o)=>{var c=o(66349);c("split")},63131:(h,I,o)=>{var c=o(66349);c("toPrimitive")},64714:(h,I,o)=>{var c=o(66349);c("toStringTag")},70659:(h,I,o)=>{var c=o(66349);c("unscopables")},54334:(h,I,o)=>{"use strict";var c=o(21899),v=o(87524),x=o(21647),d=o(24683),b=o(8850),S=o(10941),g=o(45402).enforce,L=o(38019),N=!c.ActiveXObject&&"ActiveXObject"in c,B=Object.isExtensible,j,_=function(J){return function(){return J(this,arguments.length?arguments[0]:void 0)}},H=h.exports=d("WeakMap",_,b);if(L&&N){j=b.getConstructor(_,"WeakMap",!0),x.REQUIRED=!0;var k=H.prototype,X=k.delete,R=k.has,C=k.get,V=k.set;v(k,{delete:function(J){if(S(J)&&!B(J)){var q=g(this);return q.frozen||(q.frozen=new j),X.call(this,J)||q.frozen.delete(J)}return X.call(this,J)},has:function(q){if(S(q)&&!B(q)){var Q=g(this);return Q.frozen||(Q.frozen=new j),R.call(this,q)||Q.frozen.has(q)}return R.call(this,q)},get:function(q){if(S(q)&&!B(q)){var Q=g(this);return Q.frozen||(Q.frozen=new j),R.call(this,q)?C.call(this,q):Q.frozen.get(q)}return C.call(this,q)},set:function(q,Q){if(S(q)&&!B(q)){var K=g(this);K.frozen||(K.frozen=new j),R.call(this,q)?V.call(this,q,Q):K.frozen.set(q,Q)}else V.call(this,q,Q);return this}})}},89731:(h,I,o)=>{o(47627)},55708:(h,I,o)=>{o(4560)},88731:(h,I,o)=>{o(91302)},30014:(h,I,o)=>{"use strict";var c=o(76887),v=o(69520),x=o(40002);c({target:"Promise",stat:!0},{try:function(d){var b=v.f(this),S=x(d);return(S.error?b.reject:b.resolve)(S.value),b.promise}})},28783:(h,I,o)=>{var c=o(66349);c("asyncDispose")},43975:(h,I,o)=>{var c=o(66349);c("dispose")},65799:(h,I,o)=>{var c=o(66349);c("matcher")},45414:(h,I,o)=>{var c=o(66349);c("metadata")},46774:(h,I,o)=>{var c=o(66349);c("observable")},80620:(h,I,o)=>{var c=o(66349);c("patternMatch")},36172:(h,I,o)=>{var c=o(66349);c("replaceAll")},7634:(h,I,o)=>{o(66274);var c=o(63281),v=o(21899),x=o(9697),d=o(32029),b=o(12077),S=o(99813),g=S("toStringTag");for(var L in c){var N=v[L],B=N&&N.prototype;B&&x(B)!==g&&d(B,g,L),b[L]=b.Array}},27698:(h,I,o)=>{var c=o(54493);h.exports=c},62908:(h,I,o)=>{var c=o(12710);h.exports=c},49216:(h,I,o)=>{var c=o(99324);h.exports=c},8065:(h,I,o)=>{var c=o(56043);h.exports=c},57448:(h,I,o)=>{o(7634);var c=o(62908),v=o(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var S=b.entries;return b===x||b instanceof Array&&S===x.entries||d.hasOwnProperty(v(b))?c:S}},11955:(h,I,o)=>{var c=o(2480);h.exports=c},61577:(h,I,o)=>{var c=o(32236);h.exports=c},46279:(h,I,o)=>{o(7634);var c=o(49216),v=o(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var S=b.forEach;return b===x||b instanceof Array&&S===x.forEach||d.hasOwnProperty(v(b))?c:S}},33778:(h,I,o)=>{var c=o(58557);h.exports=c},61798:(h,I,o)=>{var c=o(88287);h.exports=c},82073:(h,I,o)=>{var c=o(69601);h.exports=c},2348:(h,I,o)=>{var c=o(18339);h.exports=c},8933:(h,I,o)=>{var c=o(84426);h.exports=c},63383:(h,I,o)=>{var c=o(45999);h.exports=c},86209:(h,I,o)=>{var c=o(73081);h.exports=c},23059:(h,I,o)=>{var c=o(48494);h.exports=c},27460:(h,I,o)=>{var c=o(52956);h.exports=c},72010:(h,I,o)=>{var c=o(32304);h.exports=c},31905:function(){(function(h){var I=function(o){var c={searchParams:"URLSearchParams"in h,iterable:"Symbol"in h&&"iterator"in Symbol,blob:"FileReader"in h&&"Blob"in h&&function(){try{return new Blob,!0}catch(te){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function v(te){return te&&DataView.prototype.isPrototypeOf(te)}if(c.arrayBuffer)var x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(te){return te&&x.indexOf(Object.prototype.toString.call(te))>-1};function b(te){if(typeof te!="string"&&(te=String(te)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(te))throw new TypeError("Invalid character in header field name");return te.toLowerCase()}function S(te){return typeof te!="string"&&(te=String(te)),te}function g(te){var re={next:function(){var ye=te.shift();return{done:ye===void 0,value:ye}}};return c.iterable&&(re[Symbol.iterator]=function(){return re}),re}function L(te){this.map={},te instanceof L?te.forEach(function(re,ye){this.append(ye,re)},this):Array.isArray(te)?te.forEach(function(re){this.append(re[0],re[1])},this):te&&Object.getOwnPropertyNames(te).forEach(function(re){this.append(re,te[re])},this)}L.prototype.append=function(te,re){te=b(te),re=S(re);var ye=this.map[te];this.map[te]=ye?ye+", "+re:re},L.prototype.delete=function(te){delete this.map[b(te)]},L.prototype.get=function(te){return te=b(te),this.has(te)?this.map[te]:null},L.prototype.has=function(te){return this.map.hasOwnProperty(b(te))},L.prototype.set=function(te,re){this.map[b(te)]=S(re)},L.prototype.forEach=function(te,re){for(var ye in this.map)this.map.hasOwnProperty(ye)&&te.call(re,this.map[ye],ye,this)},L.prototype.keys=function(){var te=[];return this.forEach(function(re,ye){te.push(ye)}),g(te)},L.prototype.values=function(){var te=[];return this.forEach(function(re){te.push(re)}),g(te)},L.prototype.entries=function(){var te=[];return this.forEach(function(re,ye){te.push([ye,re])}),g(te)},c.iterable&&(L.prototype[Symbol.iterator]=L.prototype.entries);function N(te){if(te.bodyUsed)return Promise.reject(new TypeError("Already read"));te.bodyUsed=!0}function B(te){return new Promise(function(re,ye){te.onload=function(){re(te.result)},te.onerror=function(){ye(te.error)}})}function j(te){var re=new FileReader,ye=B(re);return re.readAsArrayBuffer(te),ye}function _(te){var re=new FileReader,ye=B(re);return re.readAsText(te),ye}function H(te){for(var re=new Uint8Array(te),ye=new Array(re.length),ve=0;ve<re.length;ve++)ye[ve]=String.fromCharCode(re[ve]);return ye.join("")}function k(te){if(te.slice)return te.slice(0);var re=new Uint8Array(te.byteLength);return re.set(new Uint8Array(te)),re.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(te){this._bodyInit=te,te?typeof te=="string"?this._bodyText=te:c.blob&&Blob.prototype.isPrototypeOf(te)?this._bodyBlob=te:c.formData&&FormData.prototype.isPrototypeOf(te)?this._bodyFormData=te:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(te)?this._bodyText=te.toString():c.arrayBuffer&&c.blob&&v(te)?(this._bodyArrayBuffer=k(te.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(te)||d(te))?this._bodyArrayBuffer=k(te):this._bodyText=te=Object.prototype.toString.call(te):this._bodyText="",this.headers.get("content-type")||(typeof te=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(te)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var te=N(this);if(te)return te;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?N(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(j)}),this.text=function(){var te=N(this);if(te)return te;if(this._bodyBlob)return _(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(H(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var R=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(te){var re=te.toUpperCase();return R.indexOf(re)>-1?re:te}function V(te,re){re=re||{};var ye=re.body;if(te instanceof V){if(te.bodyUsed)throw new TypeError("Already read");this.url=te.url,this.credentials=te.credentials,re.headers||(this.headers=new L(te.headers)),this.method=te.method,this.mode=te.mode,this.signal=te.signal,!ye&&te._bodyInit!=null&&(ye=te._bodyInit,te.bodyUsed=!0)}else this.url=String(te);if(this.credentials=re.credentials||this.credentials||"same-origin",(re.headers||!this.headers)&&(this.headers=new L(re.headers)),this.method=C(re.method||this.method||"GET"),this.mode=re.mode||this.mode||null,this.signal=re.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ye)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ye)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function J(te){var re=new FormData;return te.trim().split("&").forEach(function(ye){if(ye){var ve=ye.split("="),de=ve.shift().replace(/\+/g," "),le=ve.join("=").replace(/\+/g," ");re.append(decodeURIComponent(de),decodeURIComponent(le))}}),re}function q(te){var re=new L,ye=te.replace(/\r?\n[\t ]+/g," ");return ye.split(/\r?\n/).forEach(function(ve){var de=ve.split(":"),le=de.shift().trim();if(le){var oe=de.join(":").trim();re.append(le,oe)}}),re}X.call(V.prototype);function Q(te,re){re||(re={}),this.type="default",this.status=re.status===void 0?200:re.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in re?re.statusText:"OK",this.headers=new L(re.headers),this.url=re.url||"",this._initBody(te)}X.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new L(this.headers),url:this.url})},Q.error=function(){var te=new Q(null,{status:0,statusText:""});return te.type="error",te};var K=[301,302,303,307,308];Q.redirect=function(te,re){if(K.indexOf(re)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:re,headers:{location:te}})},o.DOMException=h.DOMException;try{new o.DOMException}catch(te){o.DOMException=function(re,ye){this.message=re,this.name=ye;var ve=Error(re);this.stack=ve.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function fe(te,re){return new Promise(function(ye,ve){var de=new V(te,re);if(de.signal&&de.signal.aborted)return ve(new o.DOMException("Aborted","AbortError"));var le=new XMLHttpRequest;function oe(){le.abort()}le.onload=function(){var De={status:le.status,statusText:le.statusText,headers:q(le.getAllResponseHeaders()||"")};De.url="responseURL"in le?le.responseURL:De.headers.get("X-Request-URL");var Ve="response"in le?le.response:le.responseText;ye(new Q(Ve,De))},le.onerror=function(){ve(new TypeError("Network request failed"))},le.ontimeout=function(){ve(new TypeError("Network request failed"))},le.onabort=function(){ve(new o.DOMException("Aborted","AbortError"))},le.open(de.method,de.url,!0),de.credentials==="include"?le.withCredentials=!0:de.credentials==="omit"&&(le.withCredentials=!1),"responseType"in le&&c.blob&&(le.responseType="blob"),de.headers.forEach(function(De,Ve){le.setRequestHeader(Ve,De)}),de.signal&&(de.signal.addEventListener("abort",oe),le.onreadystatechange=function(){le.readyState===4&&de.signal.removeEventListener("abort",oe)}),le.send(typeof de._bodyInit=="undefined"?null:de._bodyInit)})}return fe.polyfill=!0,h.fetch||(h.fetch=fe,h.Headers=L,h.Request=V,h.Response=Q),o.Headers=L,o.Request=V,o.Response=Q,o.fetch=fe,Object.defineProperty(o,"__esModule",{value:!0}),o}({})})(typeof self!="undefined"?self:this)},54098:function(h,I){var o=typeof self!="undefined"?self:this,c=function(){function x(){this.fetch=!1,this.DOMException=o.DOMException}return x.prototype=o,new x}();(function(x){var d=function(b){var S={searchParams:"URLSearchParams"in x,iterable:"Symbol"in x&&"iterator"in Symbol,blob:"FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch(le){return!1}}(),formData:"FormData"in x,arrayBuffer:"ArrayBuffer"in x};function g(le){return le&&DataView.prototype.isPrototypeOf(le)}if(S.arrayBuffer)var L=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],N=ArrayBuffer.isView||function(le){return le&&L.indexOf(Object.prototype.toString.call(le))>-1};function B(le){if(typeof le!="string"&&(le=String(le)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(le))throw new TypeError("Invalid character in header field name");return le.toLowerCase()}function j(le){return typeof le!="string"&&(le=String(le)),le}function _(le){var oe={next:function(){var De=le.shift();return{done:De===void 0,value:De}}};return S.iterable&&(oe[Symbol.iterator]=function(){return oe}),oe}function H(le){this.map={},le instanceof H?le.forEach(function(oe,De){this.append(De,oe)},this):Array.isArray(le)?le.forEach(function(oe){this.append(oe[0],oe[1])},this):le&&Object.getOwnPropertyNames(le).forEach(function(oe){this.append(oe,le[oe])},this)}H.prototype.append=function(le,oe){le=B(le),oe=j(oe);var De=this.map[le];this.map[le]=De?De+", "+oe:oe},H.prototype.delete=function(le){delete this.map[B(le)]},H.prototype.get=function(le){return le=B(le),this.has(le)?this.map[le]:null},H.prototype.has=function(le){return this.map.hasOwnProperty(B(le))},H.prototype.set=function(le,oe){this.map[B(le)]=j(oe)},H.prototype.forEach=function(le,oe){for(var De in this.map)this.map.hasOwnProperty(De)&&le.call(oe,this.map[De],De,this)},H.prototype.keys=function(){var le=[];return this.forEach(function(oe,De){le.push(De)}),_(le)},H.prototype.values=function(){var le=[];return this.forEach(function(oe){le.push(oe)}),_(le)},H.prototype.entries=function(){var le=[];return this.forEach(function(oe,De){le.push([De,oe])}),_(le)},S.iterable&&(H.prototype[Symbol.iterator]=H.prototype.entries);function k(le){if(le.bodyUsed)return Promise.reject(new TypeError("Already read"));le.bodyUsed=!0}function X(le){return new Promise(function(oe,De){le.onload=function(){oe(le.result)},le.onerror=function(){De(le.error)}})}function R(le){var oe=new FileReader,De=X(oe);return oe.readAsArrayBuffer(le),De}function C(le){var oe=new FileReader,De=X(oe);return oe.readAsText(le),De}function V(le){for(var oe=new Uint8Array(le),De=new Array(oe.length),Ve=0;Ve<oe.length;Ve++)De[Ve]=String.fromCharCode(oe[Ve]);return De.join("")}function J(le){if(le.slice)return le.slice(0);var oe=new Uint8Array(le.byteLength);return oe.set(new Uint8Array(le)),oe.buffer}function q(){return this.bodyUsed=!1,this._initBody=function(le){this._bodyInit=le,le?typeof le=="string"?this._bodyText=le:S.blob&&Blob.prototype.isPrototypeOf(le)?this._bodyBlob=le:S.formData&&FormData.prototype.isPrototypeOf(le)?this._bodyFormData=le:S.searchParams&&URLSearchParams.prototype.isPrototypeOf(le)?this._bodyText=le.toString():S.arrayBuffer&&S.blob&&g(le)?(this._bodyArrayBuffer=J(le.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):S.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(le)||N(le))?this._bodyArrayBuffer=J(le):this._bodyText=le=Object.prototype.toString.call(le):this._bodyText="",this.headers.get("content-type")||(typeof le=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):S.searchParams&&URLSearchParams.prototype.isPrototypeOf(le)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},S.blob&&(this.blob=function(){var le=k(this);if(le)return le;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?k(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(R)}),this.text=function(){var le=k(this);if(le)return le;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(V(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},S.formData&&(this.formData=function(){return this.text().then(te)}),this.json=function(){return this.text().then(JSON.parse)},this}var Q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function K(le){var oe=le.toUpperCase();return Q.indexOf(oe)>-1?oe:le}function fe(le,oe){oe=oe||{};var De=oe.body;if(le instanceof fe){if(le.bodyUsed)throw new TypeError("Already read");this.url=le.url,this.credentials=le.credentials,oe.headers||(this.headers=new H(le.headers)),this.method=le.method,this.mode=le.mode,this.signal=le.signal,!De&&le._bodyInit!=null&&(De=le._bodyInit,le.bodyUsed=!0)}else this.url=String(le);if(this.credentials=oe.credentials||this.credentials||"same-origin",(oe.headers||!this.headers)&&(this.headers=new H(oe.headers)),this.method=K(oe.method||this.method||"GET"),this.mode=oe.mode||this.mode||null,this.signal=oe.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&De)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(De)}fe.prototype.clone=function(){return new fe(this,{body:this._bodyInit})};function te(le){var oe=new FormData;return le.trim().split("&").forEach(function(De){if(De){var Ve=De.split("="),Le=Ve.shift().replace(/\+/g," "),ke=Ve.join("=").replace(/\+/g," ");oe.append(decodeURIComponent(Le),decodeURIComponent(ke))}}),oe}function re(le){var oe=new H,De=le.replace(/\r?\n[\t ]+/g," ");return De.split(/\r?\n/).forEach(function(Ve){var Le=Ve.split(":"),ke=Le.shift().trim();if(ke){var tt=Le.join(":").trim();oe.append(ke,tt)}}),oe}q.call(fe.prototype);function ye(le,oe){oe||(oe={}),this.type="default",this.status=oe.status===void 0?200:oe.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in oe?oe.statusText:"OK",this.headers=new H(oe.headers),this.url=oe.url||"",this._initBody(le)}q.call(ye.prototype),ye.prototype.clone=function(){return new ye(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new H(this.headers),url:this.url})},ye.error=function(){var le=new ye(null,{status:0,statusText:""});return le.type="error",le};var ve=[301,302,303,307,308];ye.redirect=function(le,oe){if(ve.indexOf(oe)===-1)throw new RangeError("Invalid status code");return new ye(null,{status:oe,headers:{location:le}})},b.DOMException=x.DOMException;try{new b.DOMException}catch(le){b.DOMException=function(oe,De){this.message=oe,this.name=De;var Ve=Error(oe);this.stack=Ve.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function de(le,oe){return new Promise(function(De,Ve){var Le=new fe(le,oe);if(Le.signal&&Le.signal.aborted)return Ve(new b.DOMException("Aborted","AbortError"));var ke=new XMLHttpRequest;function tt(){ke.abort()}ke.onload=function(){var Qe={status:ke.status,statusText:ke.statusText,headers:re(ke.getAllResponseHeaders()||"")};Qe.url="responseURL"in ke?ke.responseURL:Qe.headers.get("X-Request-URL");var Xe="response"in ke?ke.response:ke.responseText;De(new ye(Xe,Qe))},ke.onerror=function(){Ve(new TypeError("Network request failed"))},ke.ontimeout=function(){Ve(new TypeError("Network request failed"))},ke.onabort=function(){Ve(new b.DOMException("Aborted","AbortError"))},ke.open(Le.method,Le.url,!0),Le.credentials==="include"?ke.withCredentials=!0:Le.credentials==="omit"&&(ke.withCredentials=!1),"responseType"in ke&&S.blob&&(ke.responseType="blob"),Le.headers.forEach(function(Qe,Xe){ke.setRequestHeader(Xe,Qe)}),Le.signal&&(Le.signal.addEventListener("abort",tt),ke.onreadystatechange=function(){ke.readyState===4&&Le.signal.removeEventListener("abort",tt)}),ke.send(typeof Le._bodyInit=="undefined"?null:Le._bodyInit)})}return de.polyfill=!0,x.fetch||(x.fetch=de,x.Headers=H,x.Request=fe,x.Response=ye),b.Headers=H,b.Request=fe,b.Response=ye,b.fetch=de,Object.defineProperty(b,"__esModule",{value:!0}),b}({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var v=c;I=v.fetch,I.default=v.fetch,I.fetch=v.fetch,I.Headers=v.Headers,I.Request=v.Request,I.Response=v.Response,h.exports=I},17438:(h,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>S});var c=o(8081),v=o.n(c),x=o(23645),d=o.n(x),b=d()(v());b.push([h.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
47
+ `,""]);const S=b},58635:(h,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>V});var c=o(8081),v=o.n(c),x=o(23645),d=o.n(x),b=o(61667),S=o.n(b),g=new URL(o(17735),o.b),L=new URL(o(56089),o.b),N=new URL(o(46050),o.b),B=new URL(o(71090),o.b),j=new URL(o(96192),o.b),_=d()(v()),H=S()(g),k=S()(L),X=S()(N),R=S()(B),C=S()(j);_.push([h.id,".CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid black;border-radius:4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark{background-position:left bottom;background-repeat:repeat-x}.CodeMirror-lint-mark-warning{background-image:url("+H+")}.CodeMirror-lint-mark-error{background-image:url("+k+")}.CodeMirror-lint-marker{background-position:center center;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message{padding-left:18px;background-position:top left;background-repeat:no-repeat}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url("+X+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+R+")}.CodeMirror-lint-marker-multiple{background-image:url("+C+`);background-repeat:no-repeat;background-position:right bottom;width:100%;height:100%}.CodeMirror-lint-line-error{background-color:#b74c5114}.CodeMirror-lint-line-warning{background-color:#ffd3001a}
48
+ `,""]);const V=_},45272:(h,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>S});var c=o(8081),v=o.n(c),x=o(23645),d=o.n(x),b=d()(v());b.push([h.id,`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}
49
+ `,""]);const S=b},40961:(h,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>S});var c=o(8081),v=o.n(c),x=o(23645),d=o.n(x),b=d()(v());b.push([h.id,`.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #FFCC00}.cm-s-material.cm-fat-cursor .CodeMirror-cursor,.cm-s-material .cm-animate-fat-cursor{background-color:#5d6d5c80!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
50
+ `,""]);const S=b},61667:h=>{"use strict";h.exports=function(I,o){return o||(o={}),I&&(I=String(I.__esModule?I.default:I),/^['"].*['"]$/.test(I)&&(I=I.slice(1,-1)),o.hash&&(I+=o.hash),/["'() \t\n]|(%20)/.test(I)||o.needQuotes?'"'.concat(I.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):I)}},31312:(h,I,o)=>{"use strict";var c=o(48764).Buffer;/*!
51
51
  * @description Recursive object extending
52
52
  * @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
53
53
  * @license MIT
@@ -72,12 +72,12 @@ b`.split(/\n/).length!=3?function(e){for(var n=0,u=[],l=e.length;n<=l;){var f=e.
72
72
  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
73
73
  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
74
74
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
75
- */function v(g){return g instanceof c||g instanceof Date||g instanceof RegExp}function x(g){if(g instanceof c){var L=c.alloc?c.alloc(g.length):new c(g.length);return g.copy(L),L}else{if(g instanceof Date)return new Date(g.getTime());if(g instanceof RegExp)return new RegExp(g);throw new Error("Unexpected situation")}}function d(g){var L=[];return g.forEach(function(D,B){typeof D=="object"&&D!==null?Array.isArray(D)?L[B]=d(D):v(D)?L[B]=x(D):L[B]=A({},D):L[B]=D}),L}function b(g,L){return L==="__proto__"?void 0:g[L]}var A=h.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var g=arguments[0],L=Array.prototype.slice.call(arguments,1),D,B,U;return L.forEach(function(_){typeof _!="object"||_===null||Array.isArray(_)||Object.keys(_).forEach(function(z){if(B=b(g,z),D=b(_,z),D!==g)if(typeof D!="object"||D===null){g[z]=D;return}else if(Array.isArray(D)){g[z]=d(D);return}else if(v(D)){g[z]=x(D);return}else if(typeof B!="object"||B===null||Array.isArray(B)){g[z]=A({},D);return}else{g[z]=A(B,D);return}})}),g}},30063:(h,I,o)=>{"use strict";o.r(I),o.d(I,{Console:()=>id});var c={};o.r(c),o.d(c,{JsonPatchError:()=>Wr,_areEquals:()=>Sl,applyOperation:()=>xa,applyPatch:()=>ba,applyReducer:()=>eg,deepClone:()=>qv,getValueByPointer:()=>wl,validate:()=>vp,validator:()=>uf});var v={};o.r(v),o.d(v,{compare:()=>lg,generate:()=>zc,observe:()=>sg,unobserve:()=>ag});var x={};o.r(x),o.d(x,{cookie:()=>Ly,header:()=>My,path:()=>Fy,query:()=>ky});var d=o(67294);function b(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function A(t,r){for(var i=0;i<r.length;i++){var a=r[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function g(t,r,i){return r&&A(t.prototype,r),i&&A(t,i),t}function L(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function D(){return D=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},D.apply(this,arguments)}function B(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),i.push.apply(i,a)}return i}function U(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?B(Object(i),!0).forEach(function(a){L(t,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):B(Object(i)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(i,a))})}return t}function _(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&k(t,r)}function z(t){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},z(t)}function k(t,r){return k=Object.setPrototypeOf||function(a,s){return a.__proto__=s,a},k(t,r)}function Q(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function M(t,r){if(t==null)return{};var i={},a=Object.keys(t),s,p;for(p=0;p<a.length;p++)s=a[p],!(r.indexOf(s)>=0)&&(i[s]=t[s]);return i}function O(t,r){if(t==null)return{};var i=M(t,r),a,s;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(t);for(s=0;s<p.length;s++)a=p[s],!(r.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,a)||(i[a]=t[a]))}return i}function V(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function X(t,r){return r&&(typeof r=="object"||typeof r=="function")?r:V(t)}function W(t){var r=Q();return function(){var a=z(t),s;if(r){var p=z(this).constructor;s=Reflect.construct(a,arguments,p)}else s=a.apply(this,arguments);return X(this,s)}}function K(t,r){return te(t)||me(t,r)||ge(t,r)||ie()}function Z(t){return ce(t)||ae(t)||ge(t)||ue()}function ce(t){if(Array.isArray(t))return he(t)}function te(t){if(Array.isArray(t))return t}function ae(t){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function me(t,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(t)))){var i=[],a=!0,s=!1,p=void 0;try{for(var m=t[Symbol.iterator](),S;!(a=(S=m.next()).done)&&(i.push(S.value),!(r&&i.length===r));a=!0);}catch(w){s=!0,p=w}finally{try{!a&&m.return!=null&&m.return()}finally{if(s)throw p}}return i}}function ge(t,r){if(!!t){if(typeof t=="string")return he(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return he(t,r)}}function he(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,a=new Array(r);i<r;i++)a[i]=t[i];return a}function ue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
76
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
77
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Me(t,r){var i;if(typeof Symbol=="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(i=ge(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var a=0,s=function(){};return{s,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(w){throw w},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
78
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,m=!1,S;return{s:function(){i=t[Symbol.iterator]()},n:function(){var w=i.next();return p=w.done,w},e:function(w){m=!0,S=w},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(m)throw S}}}}function je(t,r){return r={exports:{}},t(r,r.exports),r.exports}var Ne=je(function(t){function r(R,J){for(var oe=0,re=0;re<R.length;re++)oe=(oe<<5)-oe+R.charCodeAt(re),oe|=0;return J[Math.abs(oe)%J.length]}function i(R,J){var oe=J.namespace;if(J.useColors){var re=J.color,le="[3"+(re<8?re:"8;5;"+re),ve=" ".concat(le,";1m").concat(oe," ");R[0]=ve+R[0].split(`
75
+ */function v(g){return g instanceof c||g instanceof Date||g instanceof RegExp}function x(g){if(g instanceof c){var L=c.alloc?c.alloc(g.length):new c(g.length);return g.copy(L),L}else{if(g instanceof Date)return new Date(g.getTime());if(g instanceof RegExp)return new RegExp(g);throw new Error("Unexpected situation")}}function d(g){var L=[];return g.forEach(function(N,B){typeof N=="object"&&N!==null?Array.isArray(N)?L[B]=d(N):v(N)?L[B]=x(N):L[B]=S({},N):L[B]=N}),L}function b(g,L){return L==="__proto__"?void 0:g[L]}var S=h.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var g=arguments[0],L=Array.prototype.slice.call(arguments,1),N,B,j;return L.forEach(function(_){typeof _!="object"||_===null||Array.isArray(_)||Object.keys(_).forEach(function(H){if(B=b(g,H),N=b(_,H),N!==g)if(typeof N!="object"||N===null){g[H]=N;return}else if(Array.isArray(N)){g[H]=d(N);return}else if(v(N)){g[H]=x(N);return}else if(typeof B!="object"||B===null||Array.isArray(B)){g[H]=S({},N);return}else{g[H]=S(B,N);return}})}),g}},30063:(h,I,o)=>{"use strict";o.r(I),o.d(I,{Console:()=>id});var c={};o.r(c),o.d(c,{JsonPatchError:()=>Wr,_areEquals:()=>Al,applyOperation:()=>xa,applyPatch:()=>ba,applyReducer:()=>eg,deepClone:()=>_v,getValueByPointer:()=>Sl,validate:()=>vp,validator:()=>uf});var v={};o.r(v),o.d(v,{compare:()=>lg,generate:()=>zc,observe:()=>sg,unobserve:()=>ag});var x={};o.r(x),o.d(x,{cookie:()=>Ly,header:()=>Ry,path:()=>Fy,query:()=>ky});var d=o(67294);function b(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function S(t,r){for(var i=0;i<r.length;i++){var a=r[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function g(t,r,i){return r&&S(t.prototype,r),i&&S(t,i),t}function L(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function N(){return N=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},N.apply(this,arguments)}function B(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),i.push.apply(i,a)}return i}function j(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?B(Object(i),!0).forEach(function(a){L(t,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):B(Object(i)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(i,a))})}return t}function _(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&k(t,r)}function H(t){return H=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},H(t)}function k(t,r){return k=Object.setPrototypeOf||function(a,s){return a.__proto__=s,a},k(t,r)}function X(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function R(t,r){if(t==null)return{};var i={},a=Object.keys(t),s,p;for(p=0;p<a.length;p++)s=a[p],!(r.indexOf(s)>=0)&&(i[s]=t[s]);return i}function C(t,r){if(t==null)return{};var i=R(t,r),a,s;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(t);for(s=0;s<p.length;s++)a=p[s],!(r.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,a)||(i[a]=t[a]))}return i}function V(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function J(t,r){return r&&(typeof r=="object"||typeof r=="function")?r:V(t)}function q(t){var r=X();return function(){var a=H(t),s;if(r){var p=H(this).constructor;s=Reflect.construct(a,arguments,p)}else s=a.apply(this,arguments);return J(this,s)}}function Q(t,r){return te(t)||ye(t,r)||ve(t,r)||oe()}function K(t){return fe(t)||re(t)||ve(t)||le()}function fe(t){if(Array.isArray(t))return de(t)}function te(t){if(Array.isArray(t))return t}function re(t){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function ye(t,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(t)))){var i=[],a=!0,s=!1,p=void 0;try{for(var m=t[Symbol.iterator](),A;!(a=(A=m.next()).done)&&(i.push(A.value),!(r&&i.length===r));a=!0);}catch(w){s=!0,p=w}finally{try{!a&&m.return!=null&&m.return()}finally{if(s)throw p}}return i}}function ve(t,r){if(!!t){if(typeof t=="string")return de(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return de(t,r)}}function de(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,a=new Array(r);i<r;i++)a[i]=t[i];return a}function le(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
76
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
77
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function De(t,r){var i;if(typeof Symbol=="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(i=ve(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var a=0,s=function(){};return{s,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(w){throw w},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
78
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,m=!1,A;return{s:function(){i=t[Symbol.iterator]()},n:function(){var w=i.next();return p=w.done,w},e:function(w){m=!0,A=w},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(m)throw A}}}}function Ve(t,r){return r={exports:{}},t(r,r.exports),r.exports}var Le=Ve(function(t){function r(M,Y){for(var ae=0,ne=0;ne<M.length;ne++)ae=(ae<<5)-ae+M.charCodeAt(ne),ae|=0;return Y[Math.abs(ae)%Y.length]}function i(M,Y){var ae=Y.namespace;if(Y.useColors){var ne=Y.color,ue="[3"+(ne<8?ne:"8;5;"+ne),ge=" ".concat(ue,";1m").concat(ae," ");M[0]=ge+M[0].split(`
79
79
  `).join(`
80
- `+ve)}else R[0]=oe+" "+R[0]}function a(R,J){if(R[0]=(J.useColors?"%c":"")+J.namespace,!!J.useColors){var oe="color: "+J.color,re=0,le=0;R[0].replace(/%[a-zA-Z%]/g,function(ve){ve!=="%%"&&(re++,ve==="%c"&&(le=re))}),R.splice(le,0,oe)}}var s=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function p(){var R;try{R=localStorage.getItem("debug")}catch(J){}return!R&&typeof process!="undefined"&&"env"in process&&(R={}.DEBUG),{namespaces:R||"",colors:s,useColors:!0,formatArgs:a}}function m(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:i}}function S(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,J=arguments.length>1?arguments[1]:void 0;return function(){for(var oe=arguments.length,re=new Array(oe),le=0;le<oe;le++)re[le]=arguments[le];R&&re.unshift(R);var ve=J.namespaces.split(",").map(function(Fe){return Fe[Fe.length-1]==="*"?new RegExp("^"+Fe.slice(0,Fe.length-1)+".*$"):new RegExp("^"+Fe+"$")}),pe=ve.some(function(Fe){return Fe.test(R)}),Se={color:r(R,J.colors),namespace:R,useColors:J.useColors};if(!1)var ye}}function w(R){return S(R,m())}function E(R){return S(R,p())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=E:t.exports=w}),Re=Ne("informed:ObjMap "),rt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},Qe=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(p,m){return p!=null?p[m]:p},r);return s===void 0||s===r?a:s},Je=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},ut=function(r){return r.replace(Je(r),"").replace(/\./,"")},pt=function(r,i){var a=Je(i),s=ut(i),p=a?Qe(r,a):r;return!!(p&&Object.hasOwnProperty.call(p,s.replace(/\[(.*)\]/,"$1")))},gt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,m,S){return m===S.length-1?(s[p]=a,s[p]):s[p]===void 0?(Number.isInteger(+S[m+1])?s[p]=[]:s[p]={},s[p]):(Number.isInteger(+S[m+1])&&!Array.isArray(s[p])&&(s[p]=[]),s[p])},r)},_e=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=!1;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,m,S){return s===void 0?s:(m===S.length-1&&(delete s[p],a=!0),s[p])},r),a},lt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,m,S){return s===void 0?s:(m===S.length-1&&Array.isArray(s)&&(a=s.splice(p,1)),s[p])},r),a},ht=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Object.keys(r);return i.map(function(a){return r[a]})},yt=function(r){var i=rt(r);return Number.isInteger(+i[i.length-1])},dt=function(){function t(){b(this,t)}return g(t,null,[{key:"empty",value:function(i){return ht(i).length===0}},{key:"get",value:function(i,a){var s=Qe(i,a);return s}},{key:"has",value:function(i,a){return pt(i,a)}},{key:"set",value:function(i,a,s){if(s!==void 0)Re("SETTING",a,s),gt(i,a,s);else if(yt(a)&&t.get(i,a)!==void 0){Re("Special case SETTING",a,"to undefined"),gt(i,a,void 0);var p=rt(a);p=p.slice(0,p.length-1),It(i,p)}else!yt(a)&&t.get(i,a)!==void 0&&(Re("Special case REMOVING",a,"from object completley"),t.delete(i,a))}},{key:"delete",value:function(i,a){Re("DELETE",a),yt(a)?(Re("ARRAY",a),this.pullOut(i,a)):_e(i,a);var s=rt(a);s=s.slice(0,s.length-1),It(i,s)}},{key:"pullOut",value:function(i,a){var s=rt(a),p=s[s.length-1];s=s.slice(0,s.length-1),Re("Pulling out:",s,"index",p);var m=Qe(i,s);Re("Array",m),Array.isArray(m)&&lt(m,p),It(i,s)}}]),t}();function It(t,r){if(r.length!==0){var i=Qe(t,r);(Array.isArray(i)?i.every(function(a){return a==null}):JSON.stringify(i)==="{}")&&_e(t,r),It(t,r.slice(0,r.length-1))}}var Ft=d.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),St=d.createContext({}),Wt=d.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),Ut=d.createContext(),Gt=d.createContext(),wt=d.createContext(),Mt=d.createContext(),de=d.createContext(),$=d.createContext(),Y=d.createContext(),we=d.createContext();function ke(){var t=(0,d.useContext)(Wt);return t}function be(t){var r=(0,d.useRef)(),i=(0,d.useRef)(!0),a=(0,d.useState)(t),s=K(a,2),p=s[0],m=s[1];r.current=p;var S=function(R){r.current=R,i.current&&m(R)},w=function(){return r.current};return(0,d.useEffect)(function(){return function(){i.current=!1}},[]),[p,S,w]}var Ae=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},T=function(r){var i={};if(r.inner){if(r.inner.length===0){dt.set(i,r.path,r.message);return}var a=Me(r.inner),s;try{for(a.s();!(s=a.n()).done;){var p=s.value;dt.get(i,p.path)||dt.set(i,p.path,p.message)}}catch(m){a.e(m)}finally{a.f()}}return i},Ie=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(s){var a=T(s);return a}},H=function(r){if(r.inner){if(r.inner.length===0)return;var i=r.inner[0];return i.message}},C=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(a){return H(a)}},P=function(r,i){r(i);var a={};return r.errors&&r.errors.forEach(function(s){var p=s.message,m=s.dataPath,S=s.keyword,w=s.params,E=m;S==="required"&&(E="".concat(E,".").concat(w.missingProperty)),E=E.replace(".",""),dt.set(a,E,p)}),a},ne=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var i=Math.random()*16|0,a=r=="x"?i:i&3|8;return a.toString(16)})},N=function(r,i){var a;return function(){for(var p=arguments.length,m=new Array(p),S=0;S<p;S++)m[S]=arguments[S];var w=function(){clearTimeout(a),r.apply(void 0,m)};clearTimeout(a),a=setTimeout(w,i)}},ee=function(r,i,a){var s=i["ui:control"],p=i["informed:props"],m=i["input:props"],S=i["ui:before"],w=i["ui:after"],E=i.oneOf,R=i.items,J=i.enum,oe=i.title,re=i.minimum,le=i.maximum,ve=i.minLength,pe=i.maxLength,Se=i.pattern,ye=i.type,Fe=i.properties,Ke=ne();m&&m.id&&(Ke=m.id);var Ue={componentType:s,field:a?"".concat(a,".").concat(r):r,type:ye,uiBefore:S,uiAfter:w,properties:ye==="object"?Fe:void 0,items:ye==="array"?R:void 0,props:U(U({label:oe,id:Ke,min:re,max:le,minLength:ve,maxLength:pe,pattern:Se},p),m)};if(E){var $e=i.oneOf.map(function(We){var Ye=We["input:props"],Ge=Ye===void 0?{}:Ye;return U({value:We.const,label:We.title},Ge)});Ue.props.options=$e}if(J){var Be=i.enum.map(function(We){return{value:We,label:We}});Ue.props.options=Be}if(R&&R.oneOf){var Ve=R.oneOf.map(function(We){var Ye=We["input:props"],Ge=Ye===void 0?{}:Ye;return U({value:We.const,label:We.title},Ge)});Ue.props.options=Ve}return Ue},fe=function(r,i,a){if(!r||i)return[];var s=r.properties,p=s===void 0?{}:s,m=r.allOf,S=r.propertyOrder,w=S===void 0?[]:S;if(Object.keys(p).length>0){var E=Object.keys(p).sort(function(R,J){var oe=w.indexOf(R),re=w.indexOf(J);return(oe>-1?oe:w.length+1)-(re>-1?re:w.length+1)}).map(function(R){var J=p[R],oe=ee(R,J,a);return oe});return m&&E.push({componentType:"conditionals",allOf:m}),E}return[]},Oe=function(r){var i=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return i="properties.".concat(i),i},Pe=function(r,i){if(typeof r=="string")return r.split("").map(function(a){return a==="#"?/\d/:a==="*"?/[\w]/:a});if(typeof r=="function")return r(i);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},Te=function(r,i){for(var a=0,s=-1,p=!0;p&&a<r.length;)r[a]==i[a]?s=a:p=!1,a=a+1;return s},ze=function(r,i){if(!r)return{val:r,offset:0};var a="".concat(r),s=Pe(i,a),p=s.findIndex(function(pe){return typeof pe!="string"}),m=s.length-Z(s).reverse().findIndex(function(pe){return typeof pe!="string"}),S=[],w=a.split(""),E=0,R=0,J=Te(s.slice(0,p),w.slice(0,p));J>-1&&(E=J+1,S=S.concat(s.slice(0,J+1)),R=J+1),J<0&&(S=S.concat(s.slice(0,p)),R=p);for(var oe=R;oe<s.length;oe++){var re=s[oe];if(E!=w.length){var le=w[E];if(typeof re=="function")S.push(re(le)),E=E+1;else{var ve=typeof re=="string"?re===le:re.test(le);ve&&typeof re=="string"?(S.push(re),E=E+1):!ve&&typeof re=="string"?E!=w.length&&S.push(re):ve&&typeof re!="string"?(S.push(le),E=E+1):!ve&&typeof re!="string"&&(E=E+1,oe=oe-1)}}else if(typeof re=="string"&&oe>=m)S.push(re);else break}return{value:S.join(""),offset:a?S.length-a.length:0}},He=function(r,i){var a,s,p=new Intl.NumberFormat(r,i),m=new Intl.NumberFormat(r),S=(a=(s=m.formatToParts(.1).find(function(pe){var Se=pe.type;return Se==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&a!==void 0?a:".";function w(pe,Se){return pe instanceof RegExp&&Se instanceof RegExp&&pe.source===Se.source&&pe.global===Se.global&&pe.ignoreCase===Se.ignoreCase&&pe.multiline===Se.multiline}function E(pe,Se){for(var ye=pe.length;ye--;)if(Se(pe[ye]))return ye;return-1}function R(pe,Se,ye){var Fe=Z(pe);return Array.isArray(ye)?Fe.splice.apply(Fe,[Se,0].concat(Z(ye))):Fe.splice(Se,0,ye),Fe}function J(pe){return"".concat(pe).replace(/\D/g,"")}function oe(pe){return"".concat(pe).split(S).map(function(Se){return J(Se)}).join(".")}function re(pe){if(typeof pe=="number")return pe;var Se=parseFloat(oe(pe));return Number.isNaN(Se)?void 0:Se}function le(pe){var Se=oe(pe),ye="".concat(Se).split(".")[1],Fe=p.formatToParts(Number(Se));ye==="0"&&Fe.push({type:"decimal",value:S},{type:"fraction",value:ye});var Ke=Fe.reduce(function(Be,Ve){var We=Ve.type,Ye=Ve.value;return["decimal","fraction"].includes(We)&&ye==null?Be:["integer","fraction"].includes(We)?[].concat(Z(Be),Z(Ye.split("").filter(function(Ge,et){return We==="fraction"?et<ye.length:!0}).map(function(){return/\d/}))):We==="currency"?[].concat(Z(Be),Z(Ye.split(""))):[].concat(Z(Be),[Ye])},[]),Ue=E(Ke,function(Be){return w(Be,/\d/)});Ke.indexOf(S)===-1&&"".concat(pe).indexOf(S)!==-1&&(Ke=R(Ke,Ue+1,[S,"[]"]),Ue+=2);var $e=Ke.slice(Ue+1).join("");return Ke=[].concat(Z(Ke.slice(0,Ue+1)),[$e]),Ke}var ve=function(Se){if(Se!=null)return re(Se)};return{formatter:le,parser:ve}},it=Object.freeze({__proto__:null,getChildDisplayName:Ae,yupToFormErrors:T,validateYupSchema:Ie,yupToFormError:H,validateYupField:C,validateAjvSchema:P,uuidv4:ne,debounce:N,computeFieldFromProperty:ee,computeFieldsFromSchema:fe,getSchemaPathFromJsonPath:Oe,informedFormat:ze,createIntlNumberFormatter:He}),vt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?d.useLayoutEffect:d.useEffect,Ct=function(r){var i=r.value,a=r.inputRef,s=r.maintainCursor,p=s===void 0?!0:s,m=be(0),S=K(m,3),w=S[0],E=S[1],R=S[2],J=be(0),oe=K(J,3),re=oe[0],le=oe[1],ve=oe[2];return vt(function(){if(a.current!=null&&R()){var pe=R()+ve();ve()!=0&&p?a.current.setSelectionRange(pe+1,pe+1):p&&a.current.setSelectionRange(pe,pe)}},[i]),{setCursorOffset:le,setCursor:E,cursor:w,getCursor:R,cursorOffset:re}},Yt=function(r,i){var a=(0,d.useRef)(!0),s=a.current;(0,d.useEffect)(function(){if(s)a.current=!1;else return r()},i)},kt=Ne("informed:useField "),yn=function(r,i,a,s,p){if(r!=null){if(p)return p(r);if(i)return i(r);if(a&&!s){var m=ze(r,a);return m.value}return r}},Xr=function(r,i,a,s){if(i&&a)return i(r);if(s){var p=ze(r,s);return p.value}return r},On=function(r,i,a){var s=a.required;if(r||i)return function(p,m){if(i)return C(i,p);if(r)return r(p,m)};if(s)return function(p){return Tn(p,s)}},Ui=function(r){var i=r.fieldType,a=r.setValue,s=r.onChange,p=r.multiple,m=r.ref,S=function(E){return a(E)};return(i==="text"||i==="textArea"||i==="number")&&(S=function(E){return a(E.target.value,E)}),i==="select"&&(S=function(){var E=Array.from(m.current).filter(function(R){return R.selected}).map(function(R){return R.value});a(p?E:E[0]||"")}),i==="checkbox"&&(S=function(E){a(E.target.checked),s&&s(E)}),function(w){S(w)}},jr=function(r){var i=r.setTouched,a=r.onBlur;return function(s){i(!0),a&&a(s)}},jn=function(r){var i=r.fieldType,a=r.maskedValue,s=r.multiple,p=r.value;switch(i){case"text":case"number":return!a&&a!==0?"":a;case"textArea":return a||"";case"select":return p||(s?[]:"");case"checkbox":return!!p;default:return p}},$n=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},Tn=function(r,i){if(i&&(r==null||r===""))return typeof i=="string"?i:"This field is required"};function Kn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,i=t.field,a=t.validate,s=t.asyncValidate,p=t.validationSchema,m=t.mask,S=t.maskWithCursorOffset,w=t.format,E=t.parse,R=t.formatter,J=t.parser,oe=t.initialValue,re=t.validateOnChange,le=t.validateOnBlur,ve=t.validateOnMount,pe=t.asyncValidateOnBlur,Se=t.maskOnBlur,ye=t.allowEmptyString,Fe=t.onValueChange,Ke=t.notify,Ue=t.keepState,$e=t.maintainCursor,Be=t.debug,Ve=t.shadow,We=t.step,Ye=t.fieldType,Ge=t.multiple,et=t.onChange,bt=t.onBlur,Nt=t.formController,Ht=t.relevant,lr=t.required,Rr=t.keepStateIfRelevant,Or=t.initialize,Gr=t.formatterDependencies,wr=Gr===void 0?[]:Gr,Ur=O(t,["field","validate","asyncValidate","validationSchema","mask","maskWithCursorOffset","format","parse","formatter","parser","initialValue","validateOnChange","validateOnBlur","validateOnMount","asyncValidateOnBlur","maskOnBlur","allowEmptyString","onValueChange","notify","keepState","maintainCursor","debug","shadow","step","fieldType","multiple","onChange","onBlur","formController","relevant","required","keepStateIfRelevant","initialize","formatterDependencies"]),gn=(0,d.useState)(ne()),Xt=K(gn,1),Rt=Xt[0],Bt=(0,d.useContext)(Ft),ur=(0,d.useContext)(we),rn=ur||Rr,yr=ke(),ys=(0,d.useRef)(),Cl=(0,d.useRef)(!0),Sa=(0,d.useRef)(),Di=(0,d.useRef)(!1),Ol=function(){return!Di.current},gf=function(){return Di.current};Nt&&(Bt=Nt.updater,yr=Nt.getFormApi());var xi=On(a,p,{required:lr}),Tl=(0,d.useState)(function(){return Bt.getInitialValue(i)}),um=K(Tl,1),fm=um[0],yf=Bt.getSavedValue(i),mf,th;(Ue||rn)&&yf?(kt("Setting field ".concat(bd,"'s kept state"),yf),mf=yf.value,th=yf.touched,yr.removeSavedState(bd)):oe!=null?mf=oe:mf=fm;var cm=be(yn(mf,m,R,J,Or)),ad=K(cm,3),Pl=ad[0],sd=ad[1],dm=ad[2],pm=be(ve?xi(Pl):void 0),ld=K(pm,3),rh=ld[0],nh=ld[1],hm=ld[2],vm=be(th),ud=K(vm,3),ih=ud[0],gm=ud[1],oh=ud[2],ym=(0,d.useState)(function(){return Xr(Pl,w,E,R)}),ah=K(ym,2),fd=ah[0],cd=ah[1],sh=(0,d.useRef)();sh.current=fd;var lh=(0,d.useRef)(oe),Aa=(0,d.useRef)(i),uh=(0,d.useRef)();lh.current=oe,Aa.current=i;var mm=(0,d.useRef)(null),Bi=d.useMemo(function(){return r||mm},[]),dd=Ct({value:Pl,inputRef:Bi,maintainCursor:!!$e}),pd=dd.getCursor,xm=dd.setCursor,hd=dd.setCursorOffset,bm=function(){return!0},vd=function(fr){var nn=Ht||bm,Bn=yr.getFullField(Aa.current)||Aa.current,Qt={path:Bn,parentPath:Bn.replace(/(.*)[.[].*/,"$1"),get:function(Un,kl){return dt.get(Un,kl)}};return ur&&ur.relevant?nn(fr,Qt)&&ur.relevant(fr,Qt):nn(fr,Qt)},wm=be(vd(yr.getValues())),gd=K(wm,3),xf=gd[0],Sm=gd[1],fh=gd[2],Am=function(fr){return ur&&ur.relevant?ur.relevant(fr):!0},Em=function(){var fr=vd(yr.getValues()),nn=fh();return fr!=nn&&Sm(fr),fr};(0,d.useEffect)(function(){!xf&&!Ue&&ys.current.reset()},[xf]);var oi=function(){return Ve?yr.getDerrivedValue(i):dm()},Il=function(fr){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bn=nn.preventUpdate;We&&yr.getStep()<We?(kt("Setting ".concat(i,"'s error to undefined as we are not at that step")),nh(void 0),Bt.setError(Rt,void 0,!Bn)):(kt("Setting ".concat(i,"'s error to ").concat(fr)),nh(fr),Bt.setError(Rt,fr,!Bn))},yd=function(fr,nn){var Bn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qt=fr;Di.current=!0,kt("Setting ".concat(i," to ").concat(Qt)),Or&&(Qt=Or(Qt));var Ea=yr.getOptions(),Un=Qt;if(Qt===""&&!ye&&!Bn.allowEmptyString&&!Ea.allowEmptyStrings&&(Qt=void 0),(t.type==="number"||Ye==="number")&&Qt!==void 0&&(Qt=+Qt),nn&&nn.target&&nn.target.selectionStart&&xm(nn.target.selectionStart),m&&!Se&&(Un=m(Qt,pd()),Qt=m(Qt,pd())),S&&!Se){var kl=S(Qt,pd());Un=kl.value,Qt=kl.value,hd(kl.offset)}if(w&&E&&(Qt=E(Qt),Un=w(Qt)),R){var ch=ze(Qt,R);hd(ch.offset),Un=ch.value,Qt=Un}J&&(Qt=Qt!=null?J(Qt):Qt),xi&&re&&!Bn.initial&&(kt("Validating after change ".concat(i," ").concat(Qt)),Il(xi(Qt,yr.getValues()))),sd(Qt),cd(Un),Fe&&Fe(Qt),Bt.setValue(Rt,Qt,!Bn.preventUpdate)};Yt(function(){ys.current.setValue(sh.current)},Z(wr));var md=function(fr,nn){var Bn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qt=Bn.preventUpdate;if(kt("Field ".concat(i," has been touched")),xi&&le&&!nn&&fr&&(kt("Validating after blur ".concat(i," ").concat(oi())),Il(xi(oi(),yr.getValues()))),s&&pe&&!nn&&fr&&(kt("Validating async after blur ".concat(i," ").concat(oi())),s(oi(),yr.getValues())),m&&Se){var Ea=m(oi());sd(Ea),cd(Ea),Fe&&Fe(Ea),Bt.setValue(Rt,Ea,!Qt)}if(S&&Se){var Un=S(oi());hd(Un.offset),sd(Un.value),cd(Un.value),Fe&&Fe(Un.value),Bt.setValue(Rt,Un.value,!Qt)}gm(fr),Bt.setTouched(Rt,fr,!Qt)},Cm=function(){var fr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},nn=fr.preventUpdate,Bn=yn(lh.current||Bt.getInitialValue(Aa.current),m,R,J,Or);yd(Bn,null,{initial:!0,preventUpdate:nn}),Il(ve?xi(Bn):void 0,{preventUpdate:nn}),md(void 0,!0,{preventUpdate:nn}),Di.current=!1},Om=function(fr){xi&&(kt("Field validating ".concat(i," ").concat(oi())),Il(xi(oi(),fr||yr.getValues())))},Tm=function(fr){s&&(kt("Field async validating ".concat(i," ").concat(oi())),s(oi(),fr||yr.getValues()))},xd={setValue:yd,setTouched:md,setError:Il,reset:Cm,validate:Om,asyncValidate:Tm,getValue:oi,getTouched:oh,getError:hm,getIsRelevant:fh,getDirty:gf,getPristine:Ol,getFieldState:function(){return{value:oi(),touched:oh(),dirty:gf(),pristine:Ol()}},relevant:vd,multistepRelevant:Am,checkRelevant:Em};ys.current=xd;var Fl={value:Pl,error:rh,touched:ih,maskedValue:fd,isRelevant:xf,dirty:Di.current,pristine:!Di.current};Ve&&(Fl={error:rh,touched:ih}),kt("Render",yr.getFullField(i),Fl),vt(function(){var Jr=yr.getFullField(Aa.current);return kt("Register",Rt,Aa.current),Sa.current={field:Jr,fieldId:Rt,fieldApi:xd,fieldState:Fl,notify:Ke,keepState:Ue,inMultistep:rn,shadow:Ve},Bt.register(Rt,Sa.current),function(){var fr=yr.getFullField(Aa.current);kt("Deregister",Rt,fr),Bt.deregister(Rt)}},[]),(0,d.useEffect)(function(){var Jr=yr.getFullField(i);return Cl.current?Cl.current=!1:(kt("Update",i,rn),Sa.current.field=Jr,Bt.update(Rt,Sa.current,uh.current)),function(){uh.current=Jr}},[i]),vt(function(){Be&&Bi&&(Bi.current.style.border="5px solid orange",setTimeout(function(){Bi.current.style.borderWidth="2px",Bi.current.style.borderStyle="inset",Bi.current.style.borderColor="initial",Bi.current.style.borderImage="initial"},500))});var Pm=[].concat(Z(Object.values(Fl)),Z(Object.values(t)),Z(Object.values(Ur))),Im=function(fr){return(0,d.useMemo)(function(){return xf?fr:null},Z(Pm))},bd=i,Fm=Ui({fieldType:Ye,setValue:yd,onChange:et,multiple:Ge,ref:Bi}),km=jr({setTouched:md,onBlur:bt}),Rm=jn({fieldType:Ye,maskedValue:fd,multiple:Ge,value:Pl}),Mm=$n(Ye);return{fieldState:Fl,fieldApi:xd,render:Im,ref:Bi,userProps:U(U({},Ur),{},{multiple:Ge,onChange:et,onBlur:bt,id:Ur.id||Rt}),informed:U({name:bd,multiple:Ge,onChange:Fm,onBlur:km,value:Rm,ref:Bi,type:Mm,id:Ur.id||Rt},Ur)}}var ln=function(r){var i=d.forwardRef(function(a,s){var p=Kn(a,s),m=p.fieldState,S=p.fieldApi,w=p.render,E=p.ref,R=p.userProps;return w(d.createElement(r,D({fieldApi:S,fieldState:m,field:a.field,forwardedRef:E,debug:a.debug,type:a.type},R)))});return i.displayName="asField(".concat(Ae(r),")"),i},Ca=Ne("informed:Text "),Wo=function(r){var i=r.fieldApi,a=r.fieldState,s=O(r,["fieldApi","fieldState"]),p=a.maskedValue,m=i.setValue,S=i.setTouched,w=s.onChange,E=s.onBlur,R=s.field,J=s.initialValue,oe=s.forwardedRef,re=s.debug,le=s.label,ve=s.title,pe=s.id,Se=O(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Ca("Render",R),vt(function(){re&&oe&&(oe.current.style.background="red",setTimeout(function(){oe.current.style.background="white"},500))}),d.createElement(d.Fragment,null,le?d.createElement("label",{htmlFor:pe}," ",le," "):null,d.createElement("input",D({},Se,{id:pe,name:R,ref:oe,value:!p&&p!==0?"":p,onChange:function(Fe){m(Fe.target.value,Fe),w&&w(Fe)},onBlur:function(Fe){S(!0),E&&E(Fe)}})))},mn=ln(Wo),Yn=function(r){var i=r.fieldApi,a=r.fieldState,s=O(r,["fieldApi","fieldState"]),p=a.maskedValue,m=i.setValue,S=i.setTouched,w=s.onChange,E=s.onBlur,R=s.field,J=s.initialValue,oe=s.forwardedRef,re=s.debug,le=s.label,ve=s.id,pe=O(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return vt(function(){re&&oe&&(oe.current.style.background="red",setTimeout(function(){oe.current.style.background="white"},500))}),d.createElement(d.Fragment,null,le?d.createElement("label",{htmlFor:ve}," ",le," "):null,d.createElement("textarea",D({},pe,{id:ve,name:R,ref:oe,value:p||"",onChange:function(ye){m(ye.target.value,ye),w&&w(ye)},onBlur:function(ye){S(!0),E&&E(ye)}})))},bi=ln(Yn),ji=Ne("informed:Select "),Vn=function(r){var i=r.fieldApi,a=r.fieldState,s=O(r,["fieldApi","fieldState"]),p=a.value,m=i.setTouched,S=s.onChange,w=s.onBlur,E=s.field,R=s.initialValue,J=s.options,oe=s.children,re=s.forwardedRef,le=s.debug,ve=s.multiple,pe=s.label,Se=s.id,ye=O(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),Fe=(0,d.useRef)(),Ke=function($e){var Be=Array.from((re||Fe).current).filter(function(Ve){return Ve.selected}).map(function(Ve){return Ve.value});i.setValue(ve?Be:Be[0]||""),S&&$e&&S($e)};return vt(function(){le&&re&&(re.current.style.background="red",setTimeout(function(){re.current.style.background="white"},500))}),ji("Render",E,p),d.createElement(d.Fragment,null,pe?d.createElement("label",{htmlFor:Se}," ",pe," "):null,d.createElement("select",D({},ye,{id:Se,multiple:ve,name:E,ref:re||Fe,value:p||(ve?[]:""),onChange:Ke,onBlur:function($e){m(!0),w&&w($e)}}),J?J.map(function(Ue){return d.createElement("option",{key:Ue.value,value:Ue.value,disabled:Ue.disabled},Ue.label)}):oe))},wi=ln(Vn),Oa=function(r){var i=r.fieldApi,a=r.fieldState,s=O(r,["fieldApi","fieldState"]),p=a.value,m=i.setValue,S=i.setTouched,w=s.onChange,E=s.onBlur,R=s.field,J=s.initialValue,oe=s.debug,re=s.forwardedRef,le=s.id,ve=s.label,pe=O(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return d.createElement(d.Fragment,null,ve?d.createElement("label",{htmlFor:le}," ",ve," "):null,d.createElement("input",D({},pe,{id:le,name:R,ref:re,checked:!!p,onChange:function(ye){m(ye.target.checked),w&&w(ye)},onBlur:function(ye){S(!0),E&&E(ye)},type:"checkbox"})))},Pn=ln(Oa),xn=function(r){return d.forwardRef(function(i,a){return d.createElement(Ut.Consumer,null,function(s){var p=s.radioGroupApi,m=s.radioGroupState;return d.createElement(r,D({radioGroupApi:p,radioGroupState:m,ref:a},i))})})},Si=function(r){var i=r.radioGroupApi,a=r.radioGroupState,s=O(r,["radioGroupApi","radioGroupState"]),p=a.value,m=i.setValue,S=i.setTouched,w=i.onChange,E=i.onBlur,R=s.value,J=s.onChange,oe=s.onBlur,re=s.field,le=s.initialValue,ve=s.forwardedRef,pe=O(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return d.createElement("input",D({},pe,{name:re,ref:ve,value:R,checked:p===R,onChange:function(ye){!ye.target.checked||(m(R),J&&J(ye),w&&w(ye))},onBlur:function(ye){S(!0),oe&&oe(ye),E&&E(ye)},type:"radio"}))},xr=xn(Si),At=function(t){_(i,t);var r=W(i);function i(){return b(this,i),r.apply(this,arguments)}return g(i,[{key:"render",value:function(){var s=this.props,p=s.options,m=s.children;return d.createElement(Ut.Provider,{value:this.groupContext},p?p.map(function(S){return d.createElement("label",{key:S.value},S.label," ",d.createElement(xr,{value:S.value}))}):m)}},{key:"groupContext",get:function(){return{radioGroupApi:U(U({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),i}(d.Component),ai=ln(At);function Ai(){return(0,d.useContext)(wt)}var bn=function(){var r=Ai(),i=r.add;return d.createElement("button",{onClick:function(){i()},type:"button"},"Add")};function er(){return(0,d.useContext)(Mt)}var Wn=function(){var r=er(),i=r.remove;return d.createElement("button",{onClick:function(){i()},type:"button"},"Remove")},Jn=Ne("informed:useArrayField "),lo=function(r){var i=r.field,a=r.initialValue,s=r.validate,p=r.arrayFieldApiRef,m=O(r,["field","initialValue","validate","arrayFieldApiRef"]),S=ke(),w=(0,d.useState)(new Map),E=K(w,1),R=E[0],J=(0,d.useContext)(Ft),oe=S.getFullField(i),re=J.getInitialValue(i)||a||[],le=S.getSavedValue(oe)&&S.getSavedValue(oe).value,ve=be(le||re),pe=K(ve,3),Se=pe[0],ye=pe[1],Fe=pe[2],Ke=Se?Se.map(function(){return ne()}):[],Ue=be(Ke),$e=K(Ue,3),Be=$e[0],Ve=$e[1],We=$e[2],Ye=(0,d.useMemo)(function(){return function(Xt,Rt){var Bt=We()==null?0:We().length;return s?s(Xt,Bt,Rt):void 0}}),Ge=Kn(U({field:i,validate:s?Ye:void 0,shadow:!0},m)),et=Ge.fieldApi;vt(function(){var Xt=function(Bt){Bt!==oe&&(Jn("".concat(oe," changed")),RegExp("".concat(oe,"\\[[0-9]+\\]")).test(Bt)&&et.validate())};return S.emitter.on("value",Xt),function(){S.emitter.removeListener("value",Xt)}},[i]);var bt=function(Rt){Jn("EXPECTING REMOVAL OF","".concat(i,"[").concat(Rt,"] and ").concat(i,"[").concat(Be.length-1,"]")),J.expectRemoval("".concat(i,"[").concat(Rt,"]")),J.expectRemoval("".concat(i,"[").concat(Be.length-1,"]"));var Bt=Be.slice(0,Rt).concat(Be.slice(Rt+1,Be.length));Ve(Bt);var ur=Fe(),rn=ur.slice(0,Rt).concat(ur.slice(Rt+1,ur.length));ye(rn)},Nt=function(Rt,Bt){Jn("Swapping","".concat(i,"[").concat(Rt,"] and ").concat(i,"[").concat(Bt,"]"));var ur=Z(Be);Be[Rt]&&Be[Bt]?(ur[Rt]=Be[Bt],ur[Bt]=Be[Rt]):console.warn("Attempted to swap ".concat(Rt," with ").concat(Bt," but one of them does not exist :(")),Ve(ur)},Ht=function(){Be.push(ne()),Ve(Z(Be))},lr=function(Rt){Be.push(ne()),Ve(Z(Be));var Bt=Z(Fe());Bt[Be.length-1]=Rt,ye(Bt)},Rr=function(){var Rt=J.getInitialValue(i)||a||[];ye(Rt);var Bt=Rt?Rt.map(function(){return ne()}):[];Ve(Bt)},Or=Be.map(function(Xt,Rt){var Bt={remove:function(){return bt(Rt)}},ur={initialValue:Se&&Se[Rt],key:Xt,field:"".concat(i,"[").concat(Rt,"]"),index:Rt};return U(U({arrayFieldItemApi:Bt,arrayFieldItemState:ur},Bt),ur)}),Gr={add:Ht,swap:Nt,addWithInitialValue:lr,reset:Rr};p&&(p.current=Gr);var wr={fields:Or,field:i},Ur=U(U({},J),{},{register:function(Rt,Bt){R.set(Rt,Bt);for(var ur=arguments.length,rn=new Array(ur>2?ur-2:0),yr=2;yr<ur;yr++)rn[yr-2]=arguments[yr];J.register.apply(J,[Rt,Bt].concat(rn))},deregister:function(Rt){R.delete(Rt);for(var Bt=arguments.length,ur=new Array(Bt>1?Bt-1:0),rn=1;rn<Bt;rn++)ur[rn-1]=arguments[rn];J.deregister.apply(J,[Rt].concat(ur))},getInitialValue:function(Rt){if(RegExp("".concat(oe,"\\[[0-9]+\\]")).test(Rt)){var Bt=Rt.replace(i,""),ur=dt.get(Fe(),Bt);return Jn("Resetting ".concat(Bt," to ").concat(ur)),ur}return J.getInitialValue(Rt)}}),gn=function(Rt){return d.createElement(Ft.Provider,{value:Ur},d.createElement(wt.Provider,{value:Gr},d.createElement(Gt.Provider,{value:wr},Rt)))};return{render:gn,add:Ht,swap:Nt,addWithInitialValue:lr,fields:Or,arrayFieldState:wr,arrayFieldApi:Gr,field:i}},nt=function(r,i){return U(U({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getSavedValue:function(s){return i.getSavedValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})};function Lt(t){var r=ke(),i=(0,d.useMemo)(function(){return nt(t,r)},[t]);return i}function si(){var t=(0,d.useContext)(St);return t}var se=function(r){var i=r.when,a=r.children,s=si(),p=i(s);return p?a:null},Ce=function(r){var i=r.relevant,a=r.field,s=O(r,["relevant","field"]),p=ke();if(i){var m=p.getFullField(a),S={path:m,parentPath:m.replace(/(.*)[.[].*/,"$1"),get:function(R,J){return dt.get(R,J)}},w=function(R){var J=R.values;return i(J,S)};return d.createElement(se,{when:w},d.createElement(qe,D({field:a},s)))}else return d.createElement(qe,D({field:a},s))},qe=function(r){var i=r.children,a=O(r,["children"]),s=lo(a),p=s.render,m=s.arrayFieldState,S=s.arrayFieldApi,w=s.field;return p(typeof i=="function"?i(U(U({field:w,arrayFieldApi:S,arrayFieldState:m},S),m)):i)},ot=function(r){var i=r.arrayFieldItemState,a=r.arrayFieldItemApi,s=r.children,p=(0,d.useContext)(Ft),m=ke(),S=(0,d.useState)(0),w=K(S,2),E=w[0],R=w[1],J=(0,d.useState)(new Map),oe=K(J,1),re=oe[0],le=i.field,ve=Lt(le),pe=function(){var Be=m.getState(),Ve=Be.values,We=Be.errors,Ye=Be.touched,Ge={values:dt.get(Ve,le),errors:dt.get(We,le),touched:dt.get(Ye,le)};return Ge};(0,d.useEffect)(function(){var $e=function(Ve){var We=Ve.slice(0,Ve.lastIndexOf("[")!=-1?Ve.lastIndexOf("]")+1:Ve.length);We===le&&R(Math.random())};return m.emitter.on("value",$e),function(){m.emitter.removeListener("value",$e)}},[le]);var Se=function(){re.forEach(function(Be){Be.fieldApi.reset()})},ye=pe(),Fe=U(U({},p),{},{register:function(Be,Ve,We){re.set(Be,Ve),p.register(Be,Ve,We)},deregister:function(Be){re.delete(Be);for(var Ve=arguments.length,We=new Array(Ve>1?Ve-1:0),Ye=1;Ye<Ve;Ye++)We[Ye-1]=arguments[Ye];p.deregister.apply(p,[Be].concat(We))}}),Ke=U(U(U({},a),ve),{},{reset:Se}),Ue=U(U({},i),ye);return typeof s=="function"?d.createElement(Ft.Provider,{value:Fe},d.createElement(Mt.Provider,{value:Ke},d.createElement(de.Provider,{value:Ue},s(U(U({arrayFieldItemApi:Ke,arrayFieldItemState:Ue},Ke),Ue))))):d.createElement(Ft.Provider,{value:Fe},d.createElement(Mt.Provider,{value:Ke},d.createElement(de.Provider,{value:Ue},s)))};Ce.Items=function(t){var r=t.children,i=(0,d.useContext)(Gt),a=i.fields;return a.map(function(s){var p=s.arrayFieldItemState,m=s.arrayFieldItemApi,S=p.key;return d.createElement(ot,{key:S,arrayFieldItemApi:m,arrayFieldItemState:p},r)})};var st=function(r){var i=r.components,a=(0,d.useContext)(Ft),s=a.fieldMap;return i?i.map(function(p,m){var S=p["ui:control"],w=s[S];return d.createElement(w,{key:"ui-comp-".concat(m)})}):null},$t=Ne("informed:FormFields "),Zt=function t(r){var i=r.schema,a=r.prefix,s=r.onlyValidateSchema,p=(0,d.useContext)(Ft),m=p.fieldMap,S=(0,d.useMemo)(function(){var w=fe(i,s,a),E=w.map(function(R,J){var oe=R.field,re=R.props,le=R.type,ve=R.properties,pe=R.items,Se=R.componentType,ye=R.uiBefore,Fe=R.uiAfter,Ke=R.allOf,Ue=m[Se];return $t("Rendering Field",oe,R),!Ue&&le==="object"&&ve?d.createElement(t,{schema:R,prefix:oe,key:"ScheamField-".concat(J)}):!Ue&&le==="array"&&pe?d.createElement(Tr,D({key:"ScheamField-".concat(J),field:oe,items:pe,uiBefore:ye,uiAfter:Fe},re)):Ue&&Se==="array"&&pe&&le==="array"?d.createElement(Ue,D({key:"ScheamField-".concat(J),field:oe,items:pe,uiBefore:ye,uiAfter:Fe},re)):Se==="conditionals"?Ke.map(function($e){var Be=$e.then,Ve=$e.if.properties,We=function(Ge){var et=Ge.values;return Object.keys(Ve).every(function(bt){var Nt=Ve[bt];return et[bt]===Nt.const})};return d.createElement(se,{key:"ScheamField-".concat(J),when:We},d.createElement(t,{schema:Be}))}):Ue?d.createElement(Ue,D({key:"ScheamField-".concat(J),field:oe},re)):null});return E},[i,a]);return S},Tr=function(r){var i=r.field,a=r.items,s=r.uiBefore,p=r.uiAfter,m=O(r,["field","items","uiBefore","uiAfter"]);return d.createElement(Ce,D({field:i},m),d.createElement(st,{components:s}),d.createElement(Ce.Items,null,function(S){var w=S.field;return d.createElement(d.Fragment,null,d.createElement(st,{components:a["ui:before"]}),d.createElement(Zt,{schema:a,prefix:w}),d.createElement(st,{components:a["ui:after"]}))}),d.createElement(st,{components:p}))},Pr={select:wi,input:mn,textarea:bi,checkbox:Pn,radio:ai,add:bn,remove:Wn,array:Tr},tr=Ne("informed:Controller "),Rl=function(r,i){var a=Object.keys(i).find(function(p){return r.includes(p)});if(!!a){var s=r.slice(0,a.length);return s===a}},Qr=function(){},ms=function(){function t(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};b(this,t),this.options=i,this.subscriptions=new Map;var a=i.ajv,s=i.schema,p=i.fieldMap;this.ajv=a?new a({allErrors:!0}):null,this.ajvValidate=a?this.ajv.compile(s):null,this.fieldMap=p||Pr,this.fieldsById=new Map,this.fieldsByName={get:function(S){var w;return r.fieldsById.forEach(function(E){E&&E.field===S&&(w=E)}),w}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:Qr,setTouched:Qr,setError:Qr,reset:Qr,validate:Qr,getValue:Qr,getTouched:Qr,getError:Qr,getFieldState:Qr,checkRelevant:Qr,getPristine:Qr,getDirty:Qr}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(S,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,R=r.fieldsById.get(S);R.shadow||dt.set(r.state.values,R.field,R.fieldApi.getValue()),R.fieldApi.relevant(r.state.values)||dt.delete(r.state.values,R.field),r.fieldsById.forEach(function(J){var oe=J.fieldApi.checkRelevant();(!J.fieldApi.multistepRelevant(r.state.values)||!oe&&!J.keepState)&&(dt.delete(r.state.values,J.field),dt.delete(r.state.touched,J.field),dt.delete(r.state.errors,J.field))}),E&&(r.emit("change"),r.emit("field",R.field),r.emit("value",R.field,w))},setTouched:function(S,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,R=r.fieldsById.get(S);!R.shadow&&R.fieldApi.getIsRelevant()&&dt.set(r.state.touched,R.field,R.fieldApi.getTouched()),R.shadow&&R.fieldApi.getError()!=null&&R.fieldApi.relevant(r.state.values)&&dt.set(r.state.touched,R.field,R.fieldApi.getTouched()),E&&(r.emit("change"),r.emit("field",R.field))},setError:function(S,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,R=r.fieldsById.get(S);!R.shadow&&R.fieldApi.getIsRelevant()&&dt.set(r.state.errors,R.field,R.fieldApi.getError());var J=dt.get(r.state.errors,R.field);(R.shadow&&R.fieldApi.getError()!=null&&R.fieldApi.relevant(r.state.values)||R.shadow&&R.fieldApi.getError()===void 0&&R.fieldApi.relevant(r.state.values)&&typeof J=="string")&&dt.set(r.state.errors,R.field,R.fieldApi.getError()),E&&(r.emit("change"),r.emit("field",R.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(m){delete r.state.error,r.notify(m)})}return g(t,[{key:"emit",value:function(i){for(var a=arguments.length,s=new Array(a>1?a-1:0),p=1;p<a;p++)s[p-1]=arguments[p];var m=this.subscriptions.get(i);m&&m.forEach(function(S){return S.apply(void 0,s)})}},{key:"on",value:function(i,a){this.subscriptions.get(i)||this.subscriptions.set(i,new Set);var s=this.subscriptions.get(i);s.add(a)}},{key:"removeListener",value:function(i,a){var s=this.subscriptions.get(i);s.delete(a)}},{key:"setOptions",value:function(i){this.options=i}},{key:"setValue",value:function(i,a,s){this.getField(i).fieldApi.setValue(a,null,U({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(i,a){this.getField(i).fieldApi.setTouched(a)}},{key:"setError",value:function(i,a){this.getField(i).fieldApi.setError(a)}},{key:"setFormError",value:function(i){this.state.error=i,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(i,a){if(this.state.validating=this.state.validating-1,this.getError(i)||this.setError(i,a),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(tr("Submit",this.state),this.emit("submit")):(tr("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(i){this.state.step=i,this.emit("change")}},{key:"setCurrent",value:function(i){this.state.Current=i,this.emit("change")}},{key:"back",value:function(i){this.state.step=this.state.step-1,this.state.Current=i,this.emit("change")}},{key:"next",value:function(i){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=i),this.emit("change")}},{key:"setInitialValue",value:function(i,a){dt.set(this.options.initialValues,i,a)}},{key:"getFormState",value:function(){return tr("Returning form state"),U(U({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(i){var a=this.getValues();return dt.get(a,i)}},{key:"getValue",value:function(i){var a=this.getField(i).fieldApi.getValue();return tr("Getting value for",i,a),a}},{key:"getTouched",value:function(i){var a=this.getField(i).fieldApi.getTouched();return tr("Getting touched for",i,a),a}},{key:"getError",value:function(i){var a=this.getField(i).fieldApi.getError();return tr("Getting error for",i,a),a}},{key:"getDirty",value:function(i){var a=this.getField(i).fieldApi.getDirty();return tr("Getting dirty for",i,a),a}},{key:"getPristine",value:function(i){var a=this.getField(i).fieldApi.getPristine();return tr("Getting pristine for",i,a),a}},{key:"getValues",value:function(){return tr("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return tr("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return tr("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(i){var a=this.fieldsByName.get(i);return a&&a.shadow?dt.get(this.savedValues,"shadow-".concat(i)):dt.get(this.savedValues,i)}},{key:"removeSavedState",value:function(i){var a=this.fieldsByName.get(i);return a&&a.shadow?dt.delete(this.savedValues,"shadow-".concat(i)):dt.delete(this.savedValues,i)}},{key:"getFullField",value:function(i){return i}},{key:"getInitialValue",value:function(i){return dt.get(this.options.initialValues,i)}},{key:"getField",value:function(i){tr("Getting Field",i);var a=this.fieldsByName.get(i);return a||(console.warn("Attempting to get field ".concat(i," but it does not exist")),this.dummyField)}},{key:"notify",value:function(i){var a=this,s=this.getField(i);s&&s.notify&&s.notify.forEach(function(p){var m=".".concat(i),S="".concat(m.replace(/(.*)[.[].*/,"$1"),".").concat(p).slice(1),w=a.getField(S);w&&(tr("Notifying",w.field),w.fieldApi.validate(),w.fieldApi.checkRelevant())})}},{key:"validateField",value:function(i){this.getField(i).fieldApi.validate()}},{key:"resetField",value:function(i){this.getField(i).fieldApi.reset()}},{key:"fieldExists",value:function(i){return this.fieldsByName.get(i)!=null}},{key:"valid",value:function(){var i=this.getErrors();return!!(dt.empty(i)&&!this.state.error)}},{key:"screenValid",value:function(){var i=Object.entries(this.onScreen).some(function(a){var s=K(a,2),p=s[1];return p.fieldApi.getError()});return!i}},{key:"invalid",value:function(){var i=this.getErrors();return!!(!dt.empty(i)||this.state.error)}},{key:"pristine",value:function(){var i=!0;return this.fieldsById.forEach(function(a){a.fieldApi.getPristine()||(i=!1)}),i}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){tr("Resetting"),this.fieldsById.forEach(function(i){i.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(i){tr("Setting values"),this.fieldsById.forEach(function(a){var s=dt.get(i,a.field);s!==void 0&&a.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var i=this;tr("Validating all fields");var a=this.getValues();if(this.options.validationSchema){var s=Ie(this.options.validationSchema,a);this.fieldsById.forEach(function(w){if(dt.has(s,w.field)){var E=dt.get(s,w.field);i.setError(w.field,E)}else i.setError(w.field,void 0)})}if(this.options.schema&&this.options.ajv){var p=P(this.ajvValidate,a);this.fieldsById.forEach(function(w){if(dt.has(p,w.field)){var E=dt.get(p,w.field);i.setError(w.field,E)}else i.setError(w.field,void 0)})}if(this.fieldsById.forEach(function(w){w.fieldApi.validate(a),w.fieldApi.setTouched(!0,!0)}),this.options.validate){var m=this.options.validate(a);this.setFormError(m)}if(this.options.validateFields){var S=this.options.validateFields(a);this.fieldsById.forEach(function(w){if(dt.has(S,w.field)){var E=dt.get(S,w.field);i.setError(w.field,E)}})}}},{key:"asyncValidate",value:function(){tr("Async Validating all fields");var i=this.getValues();this.fieldsById.forEach(function(a){a.fieldApi.asyncValidate(i)})}},{key:"keyDown",value:function(i){if(i.keyCode==13&&this.options.preventEnter)return i.preventDefault(i),!1}},{key:"submitForm",value:function(i){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&i&&i.preventDefault(i),this.validate(),this.emit("change"),this.asyncValidate(),!(this.state.validating>0)&&(this.valid()?(tr("Submit",this.state),this.emit("submit")):(tr("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var i=this;this.fieldsById.forEach(function(a){i.emit("field",a.field)})}},{key:"register",value:function(i,a,s){var p=a.field,m=a.state;tr("Register ID:",i,"Name:",p,m,"Initial",s);var S=p.slice(0,p.lastIndexOf("[")!=-1?p.lastIndexOf("]")+1:p.length),w;this.fieldsById.forEach(function(E,R){E&&E.field===p&&(w=R)}),w&&(a.keepState||a.inMultistep)?(tr("Already Registered",p),this.fieldsById.delete(w)):w&&(!a.keepState||!a.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",p),tr("Fields Registered",this.fieldsById.size),this.onScreen[i]=a,this.fieldsById.set(i,a),tr("clearing expected removal",S),delete this.expectedRemovals[S],delete this.pulledOut[S],!a.shadow&&(this.updater.setValue(i,a.fieldApi.getValue(),!1),this.updater.setError(i,a.fieldApi.getError(),!1),this.updater.setTouched(i,a.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",p))}},{key:"deregister",value:function(i){var a=this.fieldsById.get(i),s=a.field;tr("Deregister",i,s),delete this.onScreen[i];var p=Rl(s,this.expectedRemovals),m=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(a.keepState||a.inMultistep)&&!p&&(tr("Saving field ".concat(s,"'s value"),a.fieldApi.getFieldState()),a.shadow?dt.set(this.savedValues,"shadow-".concat(s),a.fieldApi.getFieldState()):dt.set(this.savedValues,s,a.fieldApi.getFieldState())),(p||!a.keepState&&!a.inMultistep||!a.fieldApi.getIsRelevant()&&!a.keepState)&&(tr("Removing field",s),this.fieldsById.delete(i),p||(dt.delete(this.state.values,s),dt.delete(this.state.touched,s),dt.delete(this.state.errors,s),a.shadow?dt.delete(this.savedValues,"shadow-".concat(s)):dt.delete(this.savedValues,s)),p&&this.pulledOut[m]&&(tr("Pulling out",s,"with magic value",m),dt.pullOut(this.state.values,m),dt.pullOut(this.state.touched,m),dt.pullOut(this.state.errors,m),dt.pullOut(this.savedValues,m),delete this.pulledOut[m])),this.emit("change")}},{key:"expectRemoval",value:function(i){tr("Expecting removal of",i),this.expectedRemovals[i]=!0,this.pulledOut[i]=!0}},{key:"update",value:function(i,a,s){tr("Update",i,a.field,s,a.fieldState.value);var p=a.fieldApi.getValue(),m=a.fieldApi.getError(),S=a.fieldApi.getTouched(),w=this.fieldsByName.get(s);s&&!w&&(dt.set(this.state.values,s),dt.set(this.state.errors,s),dt.set(this.state.touched,s)),dt.set(this.state.values,a.field,p),dt.set(this.state.errors,a.field,m),dt.set(this.state.touched,a.field,S),this.emit("change")}}]),t}(),Ta=Ne("informed:FormProvider "),xs=function(r){var i=r.children,a=r.formApi,s=r.formController,p=r.formState,m=O(r,["children","formApi","formController","formState"]);if(Ta("Render FormProvider"),a)return Ta("Render FormProvider with given values"),d.createElement(Ft.Provider,{value:s.updater},d.createElement(Wt.Provider,{value:a},d.createElement(St.Provider,{value:p},i)));Ta("Render FormProvider with generated values");var S=ws(m);return d.createElement(Ft.Provider,{value:S.formController.updater},d.createElement(Wt.Provider,{value:S.formApi},d.createElement(St.Provider,{value:S.formState},i)))},bs=Ne("informed:useForm "),ws=function(r){var i=r.dontPreventDefault,a=r.initialValues,s=r.validate,p=r.validateFields,m=r.allowEmptyStrings,S=r.preventEnter,w=r.getApi,E=r.apiRef,R=r.onChange,J=r.onReset,oe=r.onSubmit,re=r.onValueChange,le=r.onSubmitFailure,ve=r.validationSchema,pe=r.schema,Se=r.ajv,ye=r.fieldMap,Fe=r.onlyValidateSchema,Ke=O(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);bs("Render useForm");var Ue=(0,d.useMemo)(function(){return{dontPreventDefault:i,initialValues:a,validate:s,validateFields:p,allowEmptyStrings:m,preventEnter:S,validationSchema:ve,schema:pe,ajv:Se,fieldMap:ye}},[i,a,s,p,m,S,ve,pe,Se,ye]),$e=(0,d.useState)(function(){return new ms(Ue)}),Be=K($e,1),Ve=Be[0];(0,d.useEffect)(function(){Ve.setOptions(Ue)},[Ue]),vt(function(){Ve.mount()},[]);var We=(0,d.useState)(function(){return Ve.getFormState()}),Ye=K(We,2),Ge=Ye[0],et=Ye[1];vt(function(){var Rr=function(){return R&&R(Ve.getFormState())},Or=function(){return J&&J()},Gr=function(){return oe&&oe(Ve.getFormState().values)},wr=function(){return re&&re(Ve.getFormState().values)},Ur=function(){return le&&le(Ve.getFormState().errors)};return Ve.on("change",Rr),Ve.on("reset",Or),Ve.on("submit",Gr),Ve.on("value",wr),Ve.on("failure",Ur),function(){Ve.removeListener("change",Rr),Ve.removeListener("reset",Or),Ve.removeListener("submit",Gr),Ve.removeListener("value",wr),Ve.removeListener("failure",Ur)}},[R,J,oe,re,le]),(0,d.useState)(function(){var Rr=function(){bs("Setting form state"),et(Ve.getFormState())};Ve.on("change",Rr),w&&w(Ve.getFormApi()),E&&(E.current=Ve.getFormApi())});var bt=(0,d.useState)(function(){return Ve.getFormApi()}),Nt=K(bt,1),Ht=Nt[0],lr=function(Or){return d.createElement(xs,{formApi:Ht,formState:Ge,formController:Ve},d.createElement(d.Fragment,null,Or||d.createElement(Zt,{schema:pe,onlyValidateSchema:Fe})))};return{formApi:Ht,formState:Ge,formController:Ve,render:lr,userProps:Ke}},Ml=Ne("informed:Form "),Ll=function(r){var i=r.children,a=r.render,s=r.component,p=O(r,["children","render","component"]);Ml("Render FORM");var m=ws(p),S=m.formApi,w=m.formController,E=m.formState,R=m.render,J=m.userProps,oe=function(){var le={formState:E,formApi:S};return s?d.createElement(s,le,i):a?a(le):typeof i=="function"?i(le):i};return R(d.createElement("form",D({},J,{onReset:w.reset,onSubmit:w.submitForm,onKeyDown:w.keyDown}),oe()))},bf=function(r,i){return U(U({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})},wf=function(r,i){var a=i.register,s=i.deregister,p=i.setValue,m=i.setTouched,S=i.setError,w=i.update,E=i.getField,R=i.expectRemoval,J=i.getInitialValue,oe=i.fieldMap,re=i.getSavedValue;return{register:function(ve){for(var pe=arguments.length,Se=new Array(pe>1?pe-1:0),ye=1;ye<pe;ye++)Se[ye-1]=arguments[ye];return a.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},deregister:function(ve){for(var pe=arguments.length,Se=new Array(pe>1?pe-1:0),ye=1;ye<pe;ye++)Se[ye-1]=arguments[ye];return s.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},update:function(ve){for(var pe=arguments.length,Se=new Array(pe>1?pe-1:0),ye=1;ye<pe;ye++)Se[ye-1]=arguments[ye];return w.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},setValue:function(ve){for(var pe=arguments.length,Se=new Array(pe>1?pe-1:0),ye=1;ye<pe;ye++)Se[ye-1]=arguments[ye];return p.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},setTouched:function(ve){for(var pe=arguments.length,Se=new Array(pe>1?pe-1:0),ye=1;ye<pe;ye++)Se[ye-1]=arguments[ye];return m.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},setError:function(ve){for(var pe=arguments.length,Se=new Array(pe>1?pe-1:0),ye=1;ye<pe;ye++)Se[ye-1]=arguments[ye];return S.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},getField:function(ve){for(var pe=arguments.length,Se=new Array(pe>1?pe-1:0),ye=1;ye<pe;ye++)Se[ye-1]=arguments[ye];return E.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},expectRemoval:function(ve){for(var pe=arguments.length,Se=new Array(pe>1?pe-1:0),ye=1;ye<pe;ye++)Se[ye-1]=arguments[ye];return R.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},getInitialValue:function(ve){return J("".concat(r,".").concat(ve))},getSavedValue:function(ve){return re("".concat(r,".").concat(ve))},fieldMap:oe}},Sf=function(r){var i=r.scope,a=r.children,s=useContext(Ft),p=ke(),m=si(),S=useMemo(function(){return bf(i,p)},[i]),w=useMemo(function(){return wf(i,s)},[i]);return React.createElement(Ft.Provider,{value:w},React.createElement(Wt.Provider,{value:S},React.createElement(St.Provider,{value:m},a)))},Ei=function(r){var i=si(),a={};Object.keys(r).length>0?Object.keys(r).forEach(function(re){a[re]=i[re]}):a=i;var s=a,p=s.pristine,m=s.dirty,S=s.invalid,w=s.values,E=s.errors,R=s.touched,J=s.validating,oe=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:p,dirty:m,invalid:S,values:w,errors:E,touched:R,validating:J,submitting:oe},null,2)))},Af=function(r){var i=r.initialStep,a=r.multistepApiRef,s=ke(),p=s.getValues,m=s.validate,S=s.screenValid,w=(0,d.useState)(new Map),E=K(w,1),R=E[0],J=(0,d.useRef)(0),oe=be({current:i,steps:[],goal:null}),re=K(oe,3),le=re[0],ve=re[1],pe=re[2],Se=(0,d.useState)(function(){var Ue=function(){var Ve=pe(),We=Ve.current,Ye=R.get(We);return Ye},$e={getState:function(){return pe()},getCurrentStep:Ue,getStep:function(Ve){return R.get(Ve)},getNumberOfSteps:function(){return R.size},next:function(){if(m(),S()){var Ve=Ue(),We=Ve.getNext,Ye=We(),Ge=typeof Ye=="function"?Ye(p()):Ye;Ge&&ve(function(et){return U(U({},et),{},{current:Ge})})}},back:function(){var Ve=Ue(),We=Ve.getPrevious,Ye=We(),Ge=typeof Ye=="function"?Ye(p()):Ye;Ge&&ve(function(et){return U(U({},et),{},{current:Ge})})},setCurrent:function(Ve){if(Ve){var We=R.get(Ve).index;We<Ue().index?ve(function(Ye){return U(U({},Ye),{},{current:Ve,goal:null})}):ve(function(Ye){return U(U({},Ye),{},{goal:Ve})})}},register:function(Ve,We,Ye){Ye?(J.current=J.current+1,R.set(Ve,U(U({},We),{},{index:J.current}))):ve(function(Ge){return U(U({},Ge),{},{steps:Array.from(R.keys())})})},deregister:function(Ve){R.delete(Ve),J.current=J.current-1,ve(function(We){return U(U({},We),{},{steps:Array.from(R.keys())})})}};return a&&(a.current=$e),$e}),ye=K(Se,1),Fe=ye[0],Ke=function($e){return d.createElement(Y.Provider,{value:Fe},d.createElement($.Provider,{value:le},$e))};return U(U(U({},Fe),le),{},{render:Ke})};function Ef(){return(0,d.useContext)($)}function Pa(){return(0,d.useContext)(Y)}var Ho=function(r){var i=r.step,a=r.next,s=r.previous,p=r.relevant,m=si(),S=m.values,w=Ef(),E=w.current,R=w.goal,J=Pa(),oe=J.register,re=J.deregister,le=J.next,ve=i===E,pe=p?p(S):!0,Se=(0,d.useRef)(a),ye=(0,d.useRef)(s),Fe=(0,d.useRef)();Se.current=a,ye.current=s,Fe.current=p,(0,d.useState)(function(){oe(i,{name:i,getNext:function(){return Se.current},getPrevious:function(){return ye.current}},!0)}),(0,d.useEffect)(function(){return oe(i,{name:i,getNext:function(){return Se.current},getPrevious:function(){return ye.current}}),function(){re(i)}},[i]),(0,d.useEffect)(function(){R&&ve&&R!==i&&le()},[R,ve]);var Ke=function($e){return d.createElement(we.Provider,{value:{relevant:function(Ve){return Fe.current?Fe.current(Ve):!0},multistep:!0}},ve&&pe?$e:null)};return{isCurrent:ve,isRelevant:pe,step:i,render:Ke}};function Cf(t){var r=t.children,i=O(t,["children"]),a=Af(i),s=a.render,p=O(a,["render"]);return s(typeof r=="function"?r(p):r)}Cf.Step=function(r){var i=r.children,a=O(r,["children"]),s=Ho(a),p=s.render;return p(i)};var wd=function(r){var i=r.field,a=useContext(Ft),s=a.fieldMap,p=ke(),m=p.getFullField,S=p.getOptions,w=m(i),E=S(),R=E.schema,J=Oe(w),oe=dt.get(R,J);if(!oe)return null;var re=ee(i,oe),le=re.props,ve=re.componentType,pe=s[ve];return React.createElement(pe,D({field:i},le))},Sd=function(){var r=ke(),i=r.getOptions,a=i(),s=a.schema;return React.createElement(Zt,{schema:s})},Ad=function(r){return React.forwardRef(function(i,a){return React.createElement(Wt.Consumer,null,function(s){return React.createElement(r,D({formApi:s,ref:a},i))})})},Nl=function(r){return React.forwardRef(function(i,a){return React.createElement(St.Consumer,null,function(s){return React.createElement(r,D({formState:s,ref:a},i))})})},Dl=function(r,i){return{getValue:function(){return r.getValue(i)},setValue:function(s){return r.setValue(i,s)},getTouched:function(){return r.getTouched(i)},setTouched:function(s){return r.setTouched(i,s)},getError:function(){return r.getError(i)},setError:function(s){return r.setError(i,s)},reset:function(){return r.resetField(i)},validate:function(){return r.validateField(i)},exists:function(){return r.fieldExists(i)},getDirty:function(){return r.getDirty(i)},getPristine:function(){return r.getPristine(i)},getFieldState:function(){return r.getField(i).fieldApi.getFieldState()}}};function Bl(t){var r=ke(),i=useMemo(function(){return Dl(r,t)},[t]);return i}function Ul(t){var r=Bl(t),i=ke(),a=React.useState(),s=K(a,2),p=s[1],m=React.useCallback(function(){return p({})},[]);return vt(function(){var S=function(E){E===t&&m()};return i.emitter.on("field",S),function(){i.emitter.removeListener("field",S)}},[]),vt(function(){m()},[]),r.getFieldState()||{}}var Of=function(r){return function(i){return function(a){var s=Ul(r);return React.createElement(i,D({fieldState:s},a))}}},Ss=function(r){return function(i){return function(a){var s=Bl(r);return React.createElement(i,D({fieldApi:s},a))}}},As=function(r){var i=r.value,a=r.forwardedRef,s=r.children,p=O(r,["value","forwardedRef","children"]);return React.createElement("option",D({ref:a,value:i,key:i},p),s)},jl=null,Ia=o(80150),zt=o(25446),Vi=o(25805),jt=o(76671),Et=o(39713),Ir=o(23485),Tf=Object.defineProperty,Pf=Object.defineProperties,Es=Object.getOwnPropertyDescriptors,Cs=Object.getOwnPropertySymbols,Ci=Object.prototype.hasOwnProperty,Os=Object.prototype.propertyIsEnumerable,Xn=(t,r,i)=>r in t?Tf(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Wi=(t,r)=>{for(var i in r||(r={}))Ci.call(r,i)&&Xn(t,i,r[i]);if(Cs)for(var i of Cs(r))Os.call(r,i)&&Xn(t,i,r[i]);return t},Fa=(t,r)=>Pf(t,Es(r));const Hi=Ir.iv`
80
+ `+ge)}else M[0]=ae+" "+M[0]}function a(M,Y){if(M[0]=(Y.useColors?"%c":"")+Y.namespace,!!Y.useColors){var ae="color: "+Y.color,ne=0,ue=0;M[0].replace(/%[a-zA-Z%]/g,function(ge){ge!=="%%"&&(ne++,ge==="%c"&&(ue=ne))}),M.splice(ue,0,ae)}}var s=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function p(){var M;try{M=localStorage.getItem("debug")}catch(Y){}return!M&&typeof process!="undefined"&&"env"in process&&(M={}.DEBUG),{namespaces:M||"",colors:s,useColors:!0,formatArgs:a}}function m(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:i}}function A(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,Y=arguments.length>1?arguments[1]:void 0;return function(){for(var ae=arguments.length,ne=new Array(ae),ue=0;ue<ae;ue++)ne[ue]=arguments[ue];M&&ne.unshift(M);var ge=Y.namespaces.split(",").map(function(Fe){return Fe[Fe.length-1]==="*"?new RegExp("^"+Fe.slice(0,Fe.length-1)+".*$"):new RegExp("^"+Fe+"$")}),he=ge.some(function(Fe){return Fe.test(M)}),Se={color:r(M,Y.colors),namespace:M,useColors:Y.useColors};if(!1)var me}}function w(M){return A(M,m())}function E(M){return A(M,p())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=E:t.exports=w}),ke=Le("informed:ObjMap "),tt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},Qe=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(p,m){return p!=null?p[m]:p},r);return s===void 0||s===r?a:s},Xe=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},ut=function(r){return r.replace(Xe(r),"").replace(/\./,"")},pt=function(r,i){var a=Xe(i),s=ut(i),p=a?Qe(r,a):r;return!!(p&&Object.hasOwnProperty.call(p,s.replace(/\[(.*)\]/,"$1")))},yt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,m,A){return m===A.length-1?(s[p]=a,s[p]):s[p]===void 0?(Number.isInteger(+A[m+1])?s[p]=[]:s[p]={},s[p]):(Number.isInteger(+A[m+1])&&!Array.isArray(s[p])&&(s[p]=[]),s[p])},r)},qe=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=!1;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,m,A){return s===void 0?s:(m===A.length-1&&(delete s[p],a=!0),s[p])},r),a},lt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,m,A){return s===void 0?s:(m===A.length-1&&Array.isArray(s)&&(a=s.splice(p,1)),s[p])},r),a},vt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Object.keys(r);return i.map(function(a){return r[a]})},mt=function(r){var i=tt(r);return Number.isInteger(+i[i.length-1])},dt=function(){function t(){b(this,t)}return g(t,null,[{key:"empty",value:function(i){return vt(i).length===0}},{key:"get",value:function(i,a){var s=Qe(i,a);return s}},{key:"has",value:function(i,a){return pt(i,a)}},{key:"set",value:function(i,a,s){if(s!==void 0)ke("SETTING",a,s),yt(i,a,s);else if(mt(a)&&t.get(i,a)!==void 0){ke("Special case SETTING",a,"to undefined"),yt(i,a,void 0);var p=tt(a);p=p.slice(0,p.length-1),kt(i,p)}else!mt(a)&&t.get(i,a)!==void 0&&(ke("Special case REMOVING",a,"from object completley"),t.delete(i,a))}},{key:"delete",value:function(i,a){ke("DELETE",a),mt(a)?(ke("ARRAY",a),this.pullOut(i,a)):qe(i,a);var s=tt(a);s=s.slice(0,s.length-1),kt(i,s)}},{key:"pullOut",value:function(i,a){var s=tt(a),p=s[s.length-1];s=s.slice(0,s.length-1),ke("Pulling out:",s,"index",p);var m=Qe(i,s);ke("Array",m),Array.isArray(m)&&lt(m,p),kt(i,s)}}]),t}();function kt(t,r){if(r.length!==0){var i=Qe(t,r);(Array.isArray(i)?i.every(function(a){return a==null}):JSON.stringify(i)==="{}")&&qe(t,r),kt(t,r.slice(0,r.length-1))}}var It=d.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),St=d.createContext({}),Wt=d.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),Bt=d.createContext(),Gt=d.createContext(),wt=d.createContext(),Rt=d.createContext(),pe=d.createContext(),G=d.createContext(),$=d.createContext(),we=d.createContext();function Me(){var t=(0,d.useContext)(Wt);return t}function be(t){var r=(0,d.useRef)(),i=(0,d.useRef)(!0),a=(0,d.useState)(t),s=Q(a,2),p=s[0],m=s[1];r.current=p;var A=function(M){r.current=M,i.current&&m(M)},w=function(){return r.current};return(0,d.useEffect)(function(){return function(){i.current=!1}},[]),[p,A,w]}var Ae=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},T=function(r){var i={};if(r.inner){if(r.inner.length===0){dt.set(i,r.path,r.message);return}var a=De(r.inner),s;try{for(a.s();!(s=a.n()).done;){var p=s.value;dt.get(i,p.path)||dt.set(i,p.path,p.message)}}catch(m){a.e(m)}finally{a.f()}}return i},Ie=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(s){var a=T(s);return a}},W=function(r){if(r.inner){if(r.inner.length===0)return;var i=r.inner[0];return i.message}},O=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(a){return W(a)}},P=function(r,i){r(i);var a={};return r.errors&&r.errors.forEach(function(s){var p=s.message,m=s.dataPath,A=s.keyword,w=s.params,E=m;A==="required"&&(E="".concat(E,".").concat(w.missingProperty)),E=E.replace(".",""),dt.set(a,E,p)}),a},ie=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var i=Math.random()*16|0,a=r=="x"?i:i&3|8;return a.toString(16)})},D=function(r,i){var a;return function(){for(var p=arguments.length,m=new Array(p),A=0;A<p;A++)m[A]=arguments[A];var w=function(){clearTimeout(a),r.apply(void 0,m)};clearTimeout(a),a=setTimeout(w,i)}},ee=function(r,i,a){var s=i["ui:control"],p=i["informed:props"],m=i["input:props"],A=i["ui:before"],w=i["ui:after"],E=i.oneOf,M=i.items,Y=i.enum,ae=i.title,ne=i.minimum,ue=i.maximum,ge=i.minLength,he=i.maxLength,Se=i.pattern,me=i.type,Fe=i.properties,Ke=ie();m&&m.id&&(Ke=m.id);var Ue={componentType:s,field:a?"".concat(a,".").concat(r):r,type:me,uiBefore:A,uiAfter:w,properties:me==="object"?Fe:void 0,items:me==="array"?M:void 0,props:j(j({label:ae,id:Ke,min:ne,max:ue,minLength:ge,maxLength:he,pattern:Se},p),m)};if(E){var $e=i.oneOf.map(function(We){var Je=We["input:props"],Ge=Je===void 0?{}:Je;return j({value:We.const,label:We.title},Ge)});Ue.props.options=$e}if(Y){var Be=i.enum.map(function(We){return{value:We,label:We}});Ue.props.options=Be}if(M&&M.oneOf){var je=M.oneOf.map(function(We){var Je=We["input:props"],Ge=Je===void 0?{}:Je;return j({value:We.const,label:We.title},Ge)});Ue.props.options=je}return Ue},ce=function(r,i,a){if(!r||i)return[];var s=r.properties,p=s===void 0?{}:s,m=r.allOf,A=r.propertyOrder,w=A===void 0?[]:A;if(Object.keys(p).length>0){var E=Object.keys(p).sort(function(M,Y){var ae=w.indexOf(M),ne=w.indexOf(Y);return(ae>-1?ae:w.length+1)-(ne>-1?ne:w.length+1)}).map(function(M){var Y=p[M],ae=ee(M,Y,a);return ae});return m&&E.push({componentType:"conditionals",allOf:m}),E}return[]},Oe=function(r){var i=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return i="properties.".concat(i),i},Pe=function(r,i){if(typeof r=="string")return r.split("").map(function(a){return a==="#"?/\d/:a==="*"?/[\w]/:a});if(typeof r=="function")return r(i);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},Te=function(r,i){for(var a=0,s=-1,p=!0;p&&a<r.length;)r[a]==i[a]?s=a:p=!1,a=a+1;return s},ze=function(r,i){if(!r)return{val:r,offset:0};var a="".concat(r),s=Pe(i,a),p=s.findIndex(function(he){return typeof he!="string"}),m=s.length-K(s).reverse().findIndex(function(he){return typeof he!="string"}),A=[],w=a.split(""),E=0,M=0,Y=Te(s.slice(0,p),w.slice(0,p));Y>-1&&(E=Y+1,A=A.concat(s.slice(0,Y+1)),M=Y+1),Y<0&&(A=A.concat(s.slice(0,p)),M=p);for(var ae=M;ae<s.length;ae++){var ne=s[ae];if(E!=w.length){var ue=w[E];if(typeof ne=="function")A.push(ne(ue)),E=E+1;else{var ge=typeof ne=="string"?ne===ue:ne.test(ue);ge&&typeof ne=="string"?(A.push(ne),E=E+1):!ge&&typeof ne=="string"?E!=w.length&&A.push(ne):ge&&typeof ne!="string"?(A.push(ue),E=E+1):!ge&&typeof ne!="string"&&(E=E+1,ae=ae-1)}}else if(typeof ne=="string"&&ae>=m)A.push(ne);else break}return{value:A.join(""),offset:a?A.length-a.length:0}},He=function(r,i){var a,s,p=new Intl.NumberFormat(r,i),m=new Intl.NumberFormat(r),A=(a=(s=m.formatToParts(.1).find(function(he){var Se=he.type;return Se==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&a!==void 0?a:".";function w(he,Se){return he instanceof RegExp&&Se instanceof RegExp&&he.source===Se.source&&he.global===Se.global&&he.ignoreCase===Se.ignoreCase&&he.multiline===Se.multiline}function E(he,Se){for(var me=he.length;me--;)if(Se(he[me]))return me;return-1}function M(he,Se,me){var Fe=K(he);return Array.isArray(me)?Fe.splice.apply(Fe,[Se,0].concat(K(me))):Fe.splice(Se,0,me),Fe}function Y(he){return"".concat(he).replace(/\D/g,"")}function ae(he){return"".concat(he).split(A).map(function(Se){return Y(Se)}).join(".")}function ne(he){if(typeof he=="number")return he;var Se=parseFloat(ae(he));return Number.isNaN(Se)?void 0:Se}function ue(he){var Se=ae(he),me="".concat(Se).split(".")[1],Fe=p.formatToParts(Number(Se));me==="0"&&Fe.push({type:"decimal",value:A},{type:"fraction",value:me});var Ke=Fe.reduce(function(Be,je){var We=je.type,Je=je.value;return["decimal","fraction"].includes(We)&&me==null?Be:["integer","fraction"].includes(We)?[].concat(K(Be),K(Je.split("").filter(function(Ge,rt){return We==="fraction"?rt<me.length:!0}).map(function(){return/\d/}))):We==="currency"?[].concat(K(Be),K(Je.split(""))):[].concat(K(Be),[Je])},[]),Ue=E(Ke,function(Be){return w(Be,/\d/)});Ke.indexOf(A)===-1&&"".concat(he).indexOf(A)!==-1&&(Ke=M(Ke,Ue+1,[A,"[]"]),Ue+=2);var $e=Ke.slice(Ue+1).join("");return Ke=[].concat(K(Ke.slice(0,Ue+1)),[$e]),Ke}var ge=function(Se){if(Se!=null)return ne(Se)};return{formatter:ue,parser:ge}},it=Object.freeze({__proto__:null,getChildDisplayName:Ae,yupToFormErrors:T,validateYupSchema:Ie,yupToFormError:W,validateYupField:O,validateAjvSchema:P,uuidv4:ie,debounce:D,computeFieldFromProperty:ee,computeFieldsFromSchema:ce,getSchemaPathFromJsonPath:Oe,informedFormat:ze,createIntlNumberFormatter:He}),gt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?d.useLayoutEffect:d.useEffect,Ct=function(r){var i=r.value,a=r.inputRef,s=r.maintainCursor,p=s===void 0?!0:s,m=be(0),A=Q(m,3),w=A[0],E=A[1],M=A[2],Y=be(0),ae=Q(Y,3),ne=ae[0],ue=ae[1],ge=ae[2];return gt(function(){if(a.current!=null&&M()){var he=M()+ge();ge()!=0&&p?a.current.setSelectionRange(he+1,he+1):p&&a.current.setSelectionRange(he,he)}},[i]),{setCursorOffset:ue,setCursor:E,cursor:w,getCursor:M,cursorOffset:ne}},Yt=function(r,i){var a=(0,d.useRef)(!0),s=a.current;(0,d.useEffect)(function(){if(s)a.current=!1;else return r()},i)},Ft=Le("informed:useField "),gn=function(r,i,a,s,p){if(r!=null){if(p)return p(r);if(i)return i(r);if(a&&!s){var m=ze(r,a);return m.value}return r}},Xr=function(r,i,a,s){if(i&&a)return i(r);if(s){var p=ze(r,s);return p.value}return r},Cn=function(r,i,a){var s=a.required;if(r||i)return function(p,m){if(i)return O(i,p);if(r)return r(p,m)};if(s)return function(p){return On(p,s)}},Ui=function(r){var i=r.fieldType,a=r.setValue,s=r.onChange,p=r.multiple,m=r.ref,A=function(E){return a(E)};return(i==="text"||i==="textArea"||i==="number")&&(A=function(E){return a(E.target.value,E)}),i==="select"&&(A=function(){var E=Array.from(m.current).filter(function(M){return M.selected}).map(function(M){return M.value});a(p?E:E[0]||"")}),i==="checkbox"&&(A=function(E){a(E.target.checked),s&&s(E)}),function(w){A(w)}},jr=function(r){var i=r.setTouched,a=r.onBlur;return function(s){i(!0),a&&a(s)}},Un=function(r){var i=r.fieldType,a=r.maskedValue,s=r.multiple,p=r.value;switch(i){case"text":case"number":return!a&&a!==0?"":a;case"textArea":return a||"";case"select":return p||(s?[]:"");case"checkbox":return!!p;default:return p}},Gn=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},On=function(r,i){if(i&&(r==null||r===""))return typeof i=="string"?i:"This field is required"};function $n(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,i=t.field,a=t.validate,s=t.asyncValidate,p=t.validationSchema,m=t.mask,A=t.maskWithCursorOffset,w=t.format,E=t.parse,M=t.formatter,Y=t.parser,ae=t.initialValue,ne=t.validateOnChange,ue=t.validateOnBlur,ge=t.validateOnMount,he=t.asyncValidateOnBlur,Se=t.maskOnBlur,me=t.allowEmptyString,Fe=t.onValueChange,Ke=t.notify,Ue=t.keepState,$e=t.maintainCursor,Be=t.debug,je=t.shadow,We=t.step,Je=t.fieldType,Ge=t.multiple,rt=t.onChange,bt=t.onBlur,Dt=t.formController,Ht=t.relevant,lr=t.required,Mr=t.keepStateIfRelevant,Or=t.initialize,Gr=t.formatterDependencies,wr=Gr===void 0?[]:Gr,Ur=C(t,["field","validate","asyncValidate","validationSchema","mask","maskWithCursorOffset","format","parse","formatter","parser","initialValue","validateOnChange","validateOnBlur","validateOnMount","asyncValidateOnBlur","maskOnBlur","allowEmptyString","onValueChange","notify","keepState","maintainCursor","debug","shadow","step","fieldType","multiple","onChange","onBlur","formController","relevant","required","keepStateIfRelevant","initialize","formatterDependencies"]),vn=(0,d.useState)(ie()),Xt=Q(vn,1),Mt=Xt[0],Ut=(0,d.useContext)(It),ur=(0,d.useContext)(we),rn=ur||Mr,yr=Me(),ms=(0,d.useRef)(),Ol=(0,d.useRef)(!0),Sa=(0,d.useRef)(),Ni=(0,d.useRef)(!1),Tl=function(){return!Ni.current},gf=function(){return Ni.current};Dt&&(Ut=Dt.updater,yr=Dt.getFormApi());var xi=Cn(a,p,{required:lr}),Pl=(0,d.useState)(function(){return Ut.getInitialValue(i)}),um=Q(Pl,1),fm=um[0],yf=Ut.getSavedValue(i),mf,th;(Ue||rn)&&yf?(Ft("Setting field ".concat(bd,"'s kept state"),yf),mf=yf.value,th=yf.touched,yr.removeSavedState(bd)):ae!=null?mf=ae:mf=fm;var cm=be(gn(mf,m,M,Y,Or)),ad=Q(cm,3),Il=ad[0],sd=ad[1],dm=ad[2],pm=be(ge?xi(Il):void 0),ld=Q(pm,3),rh=ld[0],nh=ld[1],hm=ld[2],vm=be(th),ud=Q(vm,3),ih=ud[0],gm=ud[1],oh=ud[2],ym=(0,d.useState)(function(){return Xr(Il,w,E,M)}),ah=Q(ym,2),fd=ah[0],cd=ah[1],sh=(0,d.useRef)();sh.current=fd;var lh=(0,d.useRef)(ae),Aa=(0,d.useRef)(i),uh=(0,d.useRef)();lh.current=ae,Aa.current=i;var mm=(0,d.useRef)(null),Bi=d.useMemo(function(){return r||mm},[]),dd=Ct({value:Il,inputRef:Bi,maintainCursor:!!$e}),pd=dd.getCursor,xm=dd.setCursor,hd=dd.setCursorOffset,bm=function(){return!0},vd=function(fr){var nn=Ht||bm,Nn=yr.getFullField(Aa.current)||Aa.current,Qt={path:Nn,parentPath:Nn.replace(/(.*)[.[].*/,"$1"),get:function(Bn,Ml){return dt.get(Bn,Ml)}};return ur&&ur.relevant?nn(fr,Qt)&&ur.relevant(fr,Qt):nn(fr,Qt)},wm=be(vd(yr.getValues())),gd=Q(wm,3),xf=gd[0],Sm=gd[1],fh=gd[2],Am=function(fr){return ur&&ur.relevant?ur.relevant(fr):!0},Em=function(){var fr=vd(yr.getValues()),nn=fh();return fr!=nn&&Sm(fr),fr};(0,d.useEffect)(function(){!xf&&!Ue&&ms.current.reset()},[xf]);var oi=function(){return je?yr.getDerrivedValue(i):dm()},Fl=function(fr){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Nn=nn.preventUpdate;We&&yr.getStep()<We?(Ft("Setting ".concat(i,"'s error to undefined as we are not at that step")),nh(void 0),Ut.setError(Mt,void 0,!Nn)):(Ft("Setting ".concat(i,"'s error to ").concat(fr)),nh(fr),Ut.setError(Mt,fr,!Nn))},yd=function(fr,nn){var Nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qt=fr;Ni.current=!0,Ft("Setting ".concat(i," to ").concat(Qt)),Or&&(Qt=Or(Qt));var Ea=yr.getOptions(),Bn=Qt;if(Qt===""&&!me&&!Nn.allowEmptyString&&!Ea.allowEmptyStrings&&(Qt=void 0),(t.type==="number"||Je==="number")&&Qt!==void 0&&(Qt=+Qt),nn&&nn.target&&nn.target.selectionStart&&xm(nn.target.selectionStart),m&&!Se&&(Bn=m(Qt,pd()),Qt=m(Qt,pd())),A&&!Se){var Ml=A(Qt,pd());Bn=Ml.value,Qt=Ml.value,hd(Ml.offset)}if(w&&E&&(Qt=E(Qt),Bn=w(Qt)),M){var ch=ze(Qt,M);hd(ch.offset),Bn=ch.value,Qt=Bn}Y&&(Qt=Qt!=null?Y(Qt):Qt),xi&&ne&&!Nn.initial&&(Ft("Validating after change ".concat(i," ").concat(Qt)),Fl(xi(Qt,yr.getValues()))),sd(Qt),cd(Bn),Fe&&Fe(Qt),Ut.setValue(Mt,Qt,!Nn.preventUpdate)};Yt(function(){ms.current.setValue(sh.current)},K(wr));var md=function(fr,nn){var Nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qt=Nn.preventUpdate;if(Ft("Field ".concat(i," has been touched")),xi&&ue&&!nn&&fr&&(Ft("Validating after blur ".concat(i," ").concat(oi())),Fl(xi(oi(),yr.getValues()))),s&&he&&!nn&&fr&&(Ft("Validating async after blur ".concat(i," ").concat(oi())),s(oi(),yr.getValues())),m&&Se){var Ea=m(oi());sd(Ea),cd(Ea),Fe&&Fe(Ea),Ut.setValue(Mt,Ea,!Qt)}if(A&&Se){var Bn=A(oi());hd(Bn.offset),sd(Bn.value),cd(Bn.value),Fe&&Fe(Bn.value),Ut.setValue(Mt,Bn.value,!Qt)}gm(fr),Ut.setTouched(Mt,fr,!Qt)},Cm=function(){var fr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},nn=fr.preventUpdate,Nn=gn(lh.current||Ut.getInitialValue(Aa.current),m,M,Y,Or);yd(Nn,null,{initial:!0,preventUpdate:nn}),Fl(ge?xi(Nn):void 0,{preventUpdate:nn}),md(void 0,!0,{preventUpdate:nn}),Ni.current=!1},Om=function(fr){xi&&(Ft("Field validating ".concat(i," ").concat(oi())),Fl(xi(oi(),fr||yr.getValues())))},Tm=function(fr){s&&(Ft("Field async validating ".concat(i," ").concat(oi())),s(oi(),fr||yr.getValues()))},xd={setValue:yd,setTouched:md,setError:Fl,reset:Cm,validate:Om,asyncValidate:Tm,getValue:oi,getTouched:oh,getError:hm,getIsRelevant:fh,getDirty:gf,getPristine:Tl,getFieldState:function(){return{value:oi(),touched:oh(),dirty:gf(),pristine:Tl()}},relevant:vd,multistepRelevant:Am,checkRelevant:Em};ms.current=xd;var kl={value:Il,error:rh,touched:ih,maskedValue:fd,isRelevant:xf,dirty:Ni.current,pristine:!Ni.current};je&&(kl={error:rh,touched:ih}),Ft("Render",yr.getFullField(i),kl),gt(function(){var Jr=yr.getFullField(Aa.current);return Ft("Register",Mt,Aa.current),Sa.current={field:Jr,fieldId:Mt,fieldApi:xd,fieldState:kl,notify:Ke,keepState:Ue,inMultistep:rn,shadow:je},Ut.register(Mt,Sa.current),function(){var fr=yr.getFullField(Aa.current);Ft("Deregister",Mt,fr),Ut.deregister(Mt)}},[]),(0,d.useEffect)(function(){var Jr=yr.getFullField(i);return Ol.current?Ol.current=!1:(Ft("Update",i,rn),Sa.current.field=Jr,Ut.update(Mt,Sa.current,uh.current)),function(){uh.current=Jr}},[i]),gt(function(){Be&&Bi&&(Bi.current.style.border="5px solid orange",setTimeout(function(){Bi.current.style.borderWidth="2px",Bi.current.style.borderStyle="inset",Bi.current.style.borderColor="initial",Bi.current.style.borderImage="initial"},500))});var Pm=[].concat(K(Object.values(kl)),K(Object.values(t)),K(Object.values(Ur))),Im=function(fr){return(0,d.useMemo)(function(){return xf?fr:null},K(Pm))},bd=i,Fm=Ui({fieldType:Je,setValue:yd,onChange:rt,multiple:Ge,ref:Bi}),km=jr({setTouched:md,onBlur:bt}),Mm=Un({fieldType:Je,maskedValue:fd,multiple:Ge,value:Il}),Rm=Gn(Je);return{fieldState:kl,fieldApi:xd,render:Im,ref:Bi,userProps:j(j({},Ur),{},{multiple:Ge,onChange:rt,onBlur:bt,id:Ur.id||Mt}),informed:j({name:bd,multiple:Ge,onChange:Fm,onBlur:km,value:Mm,ref:Bi,type:Rm,id:Ur.id||Mt},Ur)}}var ln=function(r){var i=d.forwardRef(function(a,s){var p=$n(a,s),m=p.fieldState,A=p.fieldApi,w=p.render,E=p.ref,M=p.userProps;return w(d.createElement(r,N({fieldApi:A,fieldState:m,field:a.field,forwardedRef:E,debug:a.debug,type:a.type},M)))});return i.displayName="asField(".concat(Ae(r),")"),i},Ca=Le("informed:Text "),Wo=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.maskedValue,m=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,M=s.field,Y=s.initialValue,ae=s.forwardedRef,ne=s.debug,ue=s.label,ge=s.title,he=s.id,Se=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Ca("Render",M),gt(function(){ne&&ae&&(ae.current.style.background="red",setTimeout(function(){ae.current.style.background="white"},500))}),d.createElement(d.Fragment,null,ue?d.createElement("label",{htmlFor:he}," ",ue," "):null,d.createElement("input",N({},Se,{id:he,name:M,ref:ae,value:!p&&p!==0?"":p,onChange:function(Fe){m(Fe.target.value,Fe),w&&w(Fe)},onBlur:function(Fe){A(!0),E&&E(Fe)}})))},yn=ln(Wo),Kn=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.maskedValue,m=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,M=s.field,Y=s.initialValue,ae=s.forwardedRef,ne=s.debug,ue=s.label,ge=s.id,he=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return gt(function(){ne&&ae&&(ae.current.style.background="red",setTimeout(function(){ae.current.style.background="white"},500))}),d.createElement(d.Fragment,null,ue?d.createElement("label",{htmlFor:ge}," ",ue," "):null,d.createElement("textarea",N({},he,{id:ge,name:M,ref:ae,value:p||"",onChange:function(me){m(me.target.value,me),w&&w(me)},onBlur:function(me){A(!0),E&&E(me)}})))},bi=ln(Kn),ji=Le("informed:Select "),jn=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.value,m=i.setTouched,A=s.onChange,w=s.onBlur,E=s.field,M=s.initialValue,Y=s.options,ae=s.children,ne=s.forwardedRef,ue=s.debug,ge=s.multiple,he=s.label,Se=s.id,me=C(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),Fe=(0,d.useRef)(),Ke=function($e){var Be=Array.from((ne||Fe).current).filter(function(je){return je.selected}).map(function(je){return je.value});i.setValue(ge?Be:Be[0]||""),A&&$e&&A($e)};return gt(function(){ue&&ne&&(ne.current.style.background="red",setTimeout(function(){ne.current.style.background="white"},500))}),ji("Render",E,p),d.createElement(d.Fragment,null,he?d.createElement("label",{htmlFor:Se}," ",he," "):null,d.createElement("select",N({},me,{id:Se,multiple:ge,name:E,ref:ne||Fe,value:p||(ge?[]:""),onChange:Ke,onBlur:function($e){m(!0),w&&w($e)}}),Y?Y.map(function(Ue){return d.createElement("option",{key:Ue.value,value:Ue.value,disabled:Ue.disabled},Ue.label)}):ae))},wi=ln(jn),Oa=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.value,m=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,M=s.field,Y=s.initialValue,ae=s.debug,ne=s.forwardedRef,ue=s.id,ge=s.label,he=C(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return d.createElement(d.Fragment,null,ge?d.createElement("label",{htmlFor:ue}," ",ge," "):null,d.createElement("input",N({},he,{id:ue,name:M,ref:ne,checked:!!p,onChange:function(me){m(me.target.checked),w&&w(me)},onBlur:function(me){A(!0),E&&E(me)},type:"checkbox"})))},Tn=ln(Oa),mn=function(r){return d.forwardRef(function(i,a){return d.createElement(Bt.Consumer,null,function(s){var p=s.radioGroupApi,m=s.radioGroupState;return d.createElement(r,N({radioGroupApi:p,radioGroupState:m,ref:a},i))})})},Si=function(r){var i=r.radioGroupApi,a=r.radioGroupState,s=C(r,["radioGroupApi","radioGroupState"]),p=a.value,m=i.setValue,A=i.setTouched,w=i.onChange,E=i.onBlur,M=s.value,Y=s.onChange,ae=s.onBlur,ne=s.field,ue=s.initialValue,ge=s.forwardedRef,he=C(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return d.createElement("input",N({},he,{name:ne,ref:ge,value:M,checked:p===M,onChange:function(me){!me.target.checked||(m(M),Y&&Y(me),w&&w(me))},onBlur:function(me){A(!0),ae&&ae(me),E&&E(me)},type:"radio"}))},xr=mn(Si),At=function(t){_(i,t);var r=q(i);function i(){return b(this,i),r.apply(this,arguments)}return g(i,[{key:"render",value:function(){var s=this.props,p=s.options,m=s.children;return d.createElement(Bt.Provider,{value:this.groupContext},p?p.map(function(A){return d.createElement("label",{key:A.value},A.label," ",d.createElement(xr,{value:A.value}))}):m)}},{key:"groupContext",get:function(){return{radioGroupApi:j(j({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),i}(d.Component),ai=ln(At);function Ai(){return(0,d.useContext)(wt)}var xn=function(){var r=Ai(),i=r.add;return d.createElement("button",{onClick:function(){i()},type:"button"},"Add")};function er(){return(0,d.useContext)(Rt)}var Vn=function(){var r=er(),i=r.remove;return d.createElement("button",{onClick:function(){i()},type:"button"},"Remove")},Yn=Le("informed:useArrayField "),lo=function(r){var i=r.field,a=r.initialValue,s=r.validate,p=r.arrayFieldApiRef,m=C(r,["field","initialValue","validate","arrayFieldApiRef"]),A=Me(),w=(0,d.useState)(new Map),E=Q(w,1),M=E[0],Y=(0,d.useContext)(It),ae=A.getFullField(i),ne=Y.getInitialValue(i)||a||[],ue=A.getSavedValue(ae)&&A.getSavedValue(ae).value,ge=be(ue||ne),he=Q(ge,3),Se=he[0],me=he[1],Fe=he[2],Ke=Se?Se.map(function(){return ie()}):[],Ue=be(Ke),$e=Q(Ue,3),Be=$e[0],je=$e[1],We=$e[2],Je=(0,d.useMemo)(function(){return function(Xt,Mt){var Ut=We()==null?0:We().length;return s?s(Xt,Ut,Mt):void 0}}),Ge=$n(j({field:i,validate:s?Je:void 0,shadow:!0},m)),rt=Ge.fieldApi;gt(function(){var Xt=function(Ut){Ut!==ae&&(Yn("".concat(ae," changed")),RegExp("".concat(ae,"\\[[0-9]+\\]")).test(Ut)&&rt.validate())};return A.emitter.on("value",Xt),function(){A.emitter.removeListener("value",Xt)}},[i]);var bt=function(Mt){Yn("EXPECTING REMOVAL OF","".concat(i,"[").concat(Mt,"] and ").concat(i,"[").concat(Be.length-1,"]")),Y.expectRemoval("".concat(i,"[").concat(Mt,"]")),Y.expectRemoval("".concat(i,"[").concat(Be.length-1,"]"));var Ut=Be.slice(0,Mt).concat(Be.slice(Mt+1,Be.length));je(Ut);var ur=Fe(),rn=ur.slice(0,Mt).concat(ur.slice(Mt+1,ur.length));me(rn)},Dt=function(Mt,Ut){Yn("Swapping","".concat(i,"[").concat(Mt,"] and ").concat(i,"[").concat(Ut,"]"));var ur=K(Be);Be[Mt]&&Be[Ut]?(ur[Mt]=Be[Ut],ur[Ut]=Be[Mt]):console.warn("Attempted to swap ".concat(Mt," with ").concat(Ut," but one of them does not exist :(")),je(ur)},Ht=function(){Be.push(ie()),je(K(Be))},lr=function(Mt){Be.push(ie()),je(K(Be));var Ut=K(Fe());Ut[Be.length-1]=Mt,me(Ut)},Mr=function(){var Mt=Y.getInitialValue(i)||a||[];me(Mt);var Ut=Mt?Mt.map(function(){return ie()}):[];je(Ut)},Or=Be.map(function(Xt,Mt){var Ut={remove:function(){return bt(Mt)}},ur={initialValue:Se&&Se[Mt],key:Xt,field:"".concat(i,"[").concat(Mt,"]"),index:Mt};return j(j({arrayFieldItemApi:Ut,arrayFieldItemState:ur},Ut),ur)}),Gr={add:Ht,swap:Dt,addWithInitialValue:lr,reset:Mr};p&&(p.current=Gr);var wr={fields:Or,field:i},Ur=j(j({},Y),{},{register:function(Mt,Ut){M.set(Mt,Ut);for(var ur=arguments.length,rn=new Array(ur>2?ur-2:0),yr=2;yr<ur;yr++)rn[yr-2]=arguments[yr];Y.register.apply(Y,[Mt,Ut].concat(rn))},deregister:function(Mt){M.delete(Mt);for(var Ut=arguments.length,ur=new Array(Ut>1?Ut-1:0),rn=1;rn<Ut;rn++)ur[rn-1]=arguments[rn];Y.deregister.apply(Y,[Mt].concat(ur))},getInitialValue:function(Mt){if(RegExp("".concat(ae,"\\[[0-9]+\\]")).test(Mt)){var Ut=Mt.replace(i,""),ur=dt.get(Fe(),Ut);return Yn("Resetting ".concat(Ut," to ").concat(ur)),ur}return Y.getInitialValue(Mt)}}),vn=function(Mt){return d.createElement(It.Provider,{value:Ur},d.createElement(wt.Provider,{value:Gr},d.createElement(Gt.Provider,{value:wr},Mt)))};return{render:vn,add:Ht,swap:Dt,addWithInitialValue:lr,fields:Or,arrayFieldState:wr,arrayFieldApi:Gr,field:i}},nt=function(r,i){return j(j({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getSavedValue:function(s){return i.getSavedValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})};function Lt(t){var r=Me(),i=(0,d.useMemo)(function(){return nt(t,r)},[t]);return i}function si(){var t=(0,d.useContext)(St);return t}var se=function(r){var i=r.when,a=r.children,s=si(),p=i(s);return p?a:null},Ee=function(r){var i=r.relevant,a=r.field,s=C(r,["relevant","field"]),p=Me();if(i){var m=p.getFullField(a),A={path:m,parentPath:m.replace(/(.*)[.[].*/,"$1"),get:function(M,Y){return dt.get(M,Y)}},w=function(M){var Y=M.values;return i(Y,A)};return d.createElement(se,{when:w},d.createElement(_e,N({field:a},s)))}else return d.createElement(_e,N({field:a},s))},_e=function(r){var i=r.children,a=C(r,["children"]),s=lo(a),p=s.render,m=s.arrayFieldState,A=s.arrayFieldApi,w=s.field;return p(typeof i=="function"?i(j(j({field:w,arrayFieldApi:A,arrayFieldState:m},A),m)):i)},ot=function(r){var i=r.arrayFieldItemState,a=r.arrayFieldItemApi,s=r.children,p=(0,d.useContext)(It),m=Me(),A=(0,d.useState)(0),w=Q(A,2),E=w[0],M=w[1],Y=(0,d.useState)(new Map),ae=Q(Y,1),ne=ae[0],ue=i.field,ge=Lt(ue),he=function(){var Be=m.getState(),je=Be.values,We=Be.errors,Je=Be.touched,Ge={values:dt.get(je,ue),errors:dt.get(We,ue),touched:dt.get(Je,ue)};return Ge};(0,d.useEffect)(function(){var $e=function(je){var We=je.slice(0,je.lastIndexOf("[")!=-1?je.lastIndexOf("]")+1:je.length);We===ue&&M(Math.random())};return m.emitter.on("value",$e),function(){m.emitter.removeListener("value",$e)}},[ue]);var Se=function(){ne.forEach(function(Be){Be.fieldApi.reset()})},me=he(),Fe=j(j({},p),{},{register:function(Be,je,We){ne.set(Be,je),p.register(Be,je,We)},deregister:function(Be){ne.delete(Be);for(var je=arguments.length,We=new Array(je>1?je-1:0),Je=1;Je<je;Je++)We[Je-1]=arguments[Je];p.deregister.apply(p,[Be].concat(We))}}),Ke=j(j(j({},a),ge),{},{reset:Se}),Ue=j(j({},i),me);return typeof s=="function"?d.createElement(It.Provider,{value:Fe},d.createElement(Rt.Provider,{value:Ke},d.createElement(pe.Provider,{value:Ue},s(j(j({arrayFieldItemApi:Ke,arrayFieldItemState:Ue},Ke),Ue))))):d.createElement(It.Provider,{value:Fe},d.createElement(Rt.Provider,{value:Ke},d.createElement(pe.Provider,{value:Ue},s)))};Ee.Items=function(t){var r=t.children,i=(0,d.useContext)(Gt),a=i.fields;return a.map(function(s){var p=s.arrayFieldItemState,m=s.arrayFieldItemApi,A=p.key;return d.createElement(ot,{key:A,arrayFieldItemApi:m,arrayFieldItemState:p},r)})};var st=function(r){var i=r.components,a=(0,d.useContext)(It),s=a.fieldMap;return i?i.map(function(p,m){var A=p["ui:control"],w=s[A];return d.createElement(w,{key:"ui-comp-".concat(m)})}):null},$t=Le("informed:FormFields "),Zt=function t(r){var i=r.schema,a=r.prefix,s=r.onlyValidateSchema,p=(0,d.useContext)(It),m=p.fieldMap,A=(0,d.useMemo)(function(){var w=ce(i,s,a),E=w.map(function(M,Y){var ae=M.field,ne=M.props,ue=M.type,ge=M.properties,he=M.items,Se=M.componentType,me=M.uiBefore,Fe=M.uiAfter,Ke=M.allOf,Ue=m[Se];return $t("Rendering Field",ae,M),!Ue&&ue==="object"&&ge?d.createElement(t,{schema:M,prefix:ae,key:"ScheamField-".concat(Y)}):!Ue&&ue==="array"&&he?d.createElement(Tr,N({key:"ScheamField-".concat(Y),field:ae,items:he,uiBefore:me,uiAfter:Fe},ne)):Ue&&Se==="array"&&he&&ue==="array"?d.createElement(Ue,N({key:"ScheamField-".concat(Y),field:ae,items:he,uiBefore:me,uiAfter:Fe},ne)):Se==="conditionals"?Ke.map(function($e){var Be=$e.then,je=$e.if.properties,We=function(Ge){var rt=Ge.values;return Object.keys(je).every(function(bt){var Dt=je[bt];return rt[bt]===Dt.const})};return d.createElement(se,{key:"ScheamField-".concat(Y),when:We},d.createElement(t,{schema:Be}))}):Ue?d.createElement(Ue,N({key:"ScheamField-".concat(Y),field:ae},ne)):null});return E},[i,a]);return A},Tr=function(r){var i=r.field,a=r.items,s=r.uiBefore,p=r.uiAfter,m=C(r,["field","items","uiBefore","uiAfter"]);return d.createElement(Ee,N({field:i},m),d.createElement(st,{components:s}),d.createElement(Ee.Items,null,function(A){var w=A.field;return d.createElement(d.Fragment,null,d.createElement(st,{components:a["ui:before"]}),d.createElement(Zt,{schema:a,prefix:w}),d.createElement(st,{components:a["ui:after"]}))}),d.createElement(st,{components:p}))},Pr={select:wi,input:yn,textarea:bi,checkbox:Tn,radio:ai,add:xn,remove:Vn,array:Tr},tr=Le("informed:Controller "),Rl=function(r,i){var a=Object.keys(i).find(function(p){return r.includes(p)});if(!!a){var s=r.slice(0,a.length);return s===a}},Qr=function(){},xs=function(){function t(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};b(this,t),this.options=i,this.subscriptions=new Map;var a=i.ajv,s=i.schema,p=i.fieldMap;this.ajv=a?new a({allErrors:!0}):null,this.ajvValidate=a?this.ajv.compile(s):null,this.fieldMap=p||Pr,this.fieldsById=new Map,this.fieldsByName={get:function(A){var w;return r.fieldsById.forEach(function(E){E&&E.field===A&&(w=E)}),w}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:Qr,setTouched:Qr,setError:Qr,reset:Qr,validate:Qr,getValue:Qr,getTouched:Qr,getError:Qr,getFieldState:Qr,checkRelevant:Qr,getPristine:Qr,getDirty:Qr}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(A,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,M=r.fieldsById.get(A);M.shadow||dt.set(r.state.values,M.field,M.fieldApi.getValue()),M.fieldApi.relevant(r.state.values)||dt.delete(r.state.values,M.field),r.fieldsById.forEach(function(Y){var ae=Y.fieldApi.checkRelevant();(!Y.fieldApi.multistepRelevant(r.state.values)||!ae&&!Y.keepState)&&(dt.delete(r.state.values,Y.field),dt.delete(r.state.touched,Y.field),dt.delete(r.state.errors,Y.field))}),E&&(r.emit("change"),r.emit("field",M.field),r.emit("value",M.field,w))},setTouched:function(A,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,M=r.fieldsById.get(A);!M.shadow&&M.fieldApi.getIsRelevant()&&dt.set(r.state.touched,M.field,M.fieldApi.getTouched()),M.shadow&&M.fieldApi.getError()!=null&&M.fieldApi.relevant(r.state.values)&&dt.set(r.state.touched,M.field,M.fieldApi.getTouched()),E&&(r.emit("change"),r.emit("field",M.field))},setError:function(A,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,M=r.fieldsById.get(A);!M.shadow&&M.fieldApi.getIsRelevant()&&dt.set(r.state.errors,M.field,M.fieldApi.getError());var Y=dt.get(r.state.errors,M.field);(M.shadow&&M.fieldApi.getError()!=null&&M.fieldApi.relevant(r.state.values)||M.shadow&&M.fieldApi.getError()===void 0&&M.fieldApi.relevant(r.state.values)&&typeof Y=="string")&&dt.set(r.state.errors,M.field,M.fieldApi.getError()),E&&(r.emit("change"),r.emit("field",M.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(m){delete r.state.error,r.notify(m)})}return g(t,[{key:"emit",value:function(i){for(var a=arguments.length,s=new Array(a>1?a-1:0),p=1;p<a;p++)s[p-1]=arguments[p];var m=this.subscriptions.get(i);m&&m.forEach(function(A){return A.apply(void 0,s)})}},{key:"on",value:function(i,a){this.subscriptions.get(i)||this.subscriptions.set(i,new Set);var s=this.subscriptions.get(i);s.add(a)}},{key:"removeListener",value:function(i,a){var s=this.subscriptions.get(i);s.delete(a)}},{key:"setOptions",value:function(i){this.options=i}},{key:"setValue",value:function(i,a,s){this.getField(i).fieldApi.setValue(a,null,j({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(i,a){this.getField(i).fieldApi.setTouched(a)}},{key:"setError",value:function(i,a){this.getField(i).fieldApi.setError(a)}},{key:"setFormError",value:function(i){this.state.error=i,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(i,a){if(this.state.validating=this.state.validating-1,this.getError(i)||this.setError(i,a),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(tr("Submit",this.state),this.emit("submit")):(tr("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(i){this.state.step=i,this.emit("change")}},{key:"setCurrent",value:function(i){this.state.Current=i,this.emit("change")}},{key:"back",value:function(i){this.state.step=this.state.step-1,this.state.Current=i,this.emit("change")}},{key:"next",value:function(i){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=i),this.emit("change")}},{key:"setInitialValue",value:function(i,a){dt.set(this.options.initialValues,i,a)}},{key:"getFormState",value:function(){return tr("Returning form state"),j(j({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(i){var a=this.getValues();return dt.get(a,i)}},{key:"getValue",value:function(i){var a=this.getField(i).fieldApi.getValue();return tr("Getting value for",i,a),a}},{key:"getTouched",value:function(i){var a=this.getField(i).fieldApi.getTouched();return tr("Getting touched for",i,a),a}},{key:"getError",value:function(i){var a=this.getField(i).fieldApi.getError();return tr("Getting error for",i,a),a}},{key:"getDirty",value:function(i){var a=this.getField(i).fieldApi.getDirty();return tr("Getting dirty for",i,a),a}},{key:"getPristine",value:function(i){var a=this.getField(i).fieldApi.getPristine();return tr("Getting pristine for",i,a),a}},{key:"getValues",value:function(){return tr("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return tr("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return tr("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(i){var a=this.fieldsByName.get(i);return a&&a.shadow?dt.get(this.savedValues,"shadow-".concat(i)):dt.get(this.savedValues,i)}},{key:"removeSavedState",value:function(i){var a=this.fieldsByName.get(i);return a&&a.shadow?dt.delete(this.savedValues,"shadow-".concat(i)):dt.delete(this.savedValues,i)}},{key:"getFullField",value:function(i){return i}},{key:"getInitialValue",value:function(i){return dt.get(this.options.initialValues,i)}},{key:"getField",value:function(i){tr("Getting Field",i);var a=this.fieldsByName.get(i);return a||(console.warn("Attempting to get field ".concat(i," but it does not exist")),this.dummyField)}},{key:"notify",value:function(i){var a=this,s=this.getField(i);s&&s.notify&&s.notify.forEach(function(p){var m=".".concat(i),A="".concat(m.replace(/(.*)[.[].*/,"$1"),".").concat(p).slice(1),w=a.getField(A);w&&(tr("Notifying",w.field),w.fieldApi.validate(),w.fieldApi.checkRelevant())})}},{key:"validateField",value:function(i){this.getField(i).fieldApi.validate()}},{key:"resetField",value:function(i){this.getField(i).fieldApi.reset()}},{key:"fieldExists",value:function(i){return this.fieldsByName.get(i)!=null}},{key:"valid",value:function(){var i=this.getErrors();return!!(dt.empty(i)&&!this.state.error)}},{key:"screenValid",value:function(){var i=Object.entries(this.onScreen).some(function(a){var s=Q(a,2),p=s[1];return p.fieldApi.getError()});return!i}},{key:"invalid",value:function(){var i=this.getErrors();return!!(!dt.empty(i)||this.state.error)}},{key:"pristine",value:function(){var i=!0;return this.fieldsById.forEach(function(a){a.fieldApi.getPristine()||(i=!1)}),i}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){tr("Resetting"),this.fieldsById.forEach(function(i){i.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(i){tr("Setting values"),this.fieldsById.forEach(function(a){var s=dt.get(i,a.field);s!==void 0&&a.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var i=this;tr("Validating all fields");var a=this.getValues();if(this.options.validationSchema){var s=Ie(this.options.validationSchema,a);this.fieldsById.forEach(function(w){if(dt.has(s,w.field)){var E=dt.get(s,w.field);i.setError(w.field,E)}else i.setError(w.field,void 0)})}if(this.options.schema&&this.options.ajv){var p=P(this.ajvValidate,a);this.fieldsById.forEach(function(w){if(dt.has(p,w.field)){var E=dt.get(p,w.field);i.setError(w.field,E)}else i.setError(w.field,void 0)})}if(this.fieldsById.forEach(function(w){w.fieldApi.validate(a),w.fieldApi.setTouched(!0,!0)}),this.options.validate){var m=this.options.validate(a);this.setFormError(m)}if(this.options.validateFields){var A=this.options.validateFields(a);this.fieldsById.forEach(function(w){if(dt.has(A,w.field)){var E=dt.get(A,w.field);i.setError(w.field,E)}})}}},{key:"asyncValidate",value:function(){tr("Async Validating all fields");var i=this.getValues();this.fieldsById.forEach(function(a){a.fieldApi.asyncValidate(i)})}},{key:"keyDown",value:function(i){if(i.keyCode==13&&this.options.preventEnter)return i.preventDefault(i),!1}},{key:"submitForm",value:function(i){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&i&&i.preventDefault(i),this.validate(),this.emit("change"),this.asyncValidate(),!(this.state.validating>0)&&(this.valid()?(tr("Submit",this.state),this.emit("submit")):(tr("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var i=this;this.fieldsById.forEach(function(a){i.emit("field",a.field)})}},{key:"register",value:function(i,a,s){var p=a.field,m=a.state;tr("Register ID:",i,"Name:",p,m,"Initial",s);var A=p.slice(0,p.lastIndexOf("[")!=-1?p.lastIndexOf("]")+1:p.length),w;this.fieldsById.forEach(function(E,M){E&&E.field===p&&(w=M)}),w&&(a.keepState||a.inMultistep)?(tr("Already Registered",p),this.fieldsById.delete(w)):w&&(!a.keepState||!a.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",p),tr("Fields Registered",this.fieldsById.size),this.onScreen[i]=a,this.fieldsById.set(i,a),tr("clearing expected removal",A),delete this.expectedRemovals[A],delete this.pulledOut[A],!a.shadow&&(this.updater.setValue(i,a.fieldApi.getValue(),!1),this.updater.setError(i,a.fieldApi.getError(),!1),this.updater.setTouched(i,a.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",p))}},{key:"deregister",value:function(i){var a=this.fieldsById.get(i),s=a.field;tr("Deregister",i,s),delete this.onScreen[i];var p=Rl(s,this.expectedRemovals),m=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(a.keepState||a.inMultistep)&&!p&&(tr("Saving field ".concat(s,"'s value"),a.fieldApi.getFieldState()),a.shadow?dt.set(this.savedValues,"shadow-".concat(s),a.fieldApi.getFieldState()):dt.set(this.savedValues,s,a.fieldApi.getFieldState())),(p||!a.keepState&&!a.inMultistep||!a.fieldApi.getIsRelevant()&&!a.keepState)&&(tr("Removing field",s),this.fieldsById.delete(i),p||(dt.delete(this.state.values,s),dt.delete(this.state.touched,s),dt.delete(this.state.errors,s),a.shadow?dt.delete(this.savedValues,"shadow-".concat(s)):dt.delete(this.savedValues,s)),p&&this.pulledOut[m]&&(tr("Pulling out",s,"with magic value",m),dt.pullOut(this.state.values,m),dt.pullOut(this.state.touched,m),dt.pullOut(this.state.errors,m),dt.pullOut(this.savedValues,m),delete this.pulledOut[m])),this.emit("change")}},{key:"expectRemoval",value:function(i){tr("Expecting removal of",i),this.expectedRemovals[i]=!0,this.pulledOut[i]=!0}},{key:"update",value:function(i,a,s){tr("Update",i,a.field,s,a.fieldState.value);var p=a.fieldApi.getValue(),m=a.fieldApi.getError(),A=a.fieldApi.getTouched(),w=this.fieldsByName.get(s);s&&!w&&(dt.set(this.state.values,s),dt.set(this.state.errors,s),dt.set(this.state.touched,s)),dt.set(this.state.values,a.field,p),dt.set(this.state.errors,a.field,m),dt.set(this.state.touched,a.field,A),this.emit("change")}}]),t}(),Ta=Le("informed:FormProvider "),bs=function(r){var i=r.children,a=r.formApi,s=r.formController,p=r.formState,m=C(r,["children","formApi","formController","formState"]);if(Ta("Render FormProvider"),a)return Ta("Render FormProvider with given values"),d.createElement(It.Provider,{value:s.updater},d.createElement(Wt.Provider,{value:a},d.createElement(St.Provider,{value:p},i)));Ta("Render FormProvider with generated values");var A=Ss(m);return d.createElement(It.Provider,{value:A.formController.updater},d.createElement(Wt.Provider,{value:A.formApi},d.createElement(St.Provider,{value:A.formState},i)))},ws=Le("informed:useForm "),Ss=function(r){var i=r.dontPreventDefault,a=r.initialValues,s=r.validate,p=r.validateFields,m=r.allowEmptyStrings,A=r.preventEnter,w=r.getApi,E=r.apiRef,M=r.onChange,Y=r.onReset,ae=r.onSubmit,ne=r.onValueChange,ue=r.onSubmitFailure,ge=r.validationSchema,he=r.schema,Se=r.ajv,me=r.fieldMap,Fe=r.onlyValidateSchema,Ke=C(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);ws("Render useForm");var Ue=(0,d.useMemo)(function(){return{dontPreventDefault:i,initialValues:a,validate:s,validateFields:p,allowEmptyStrings:m,preventEnter:A,validationSchema:ge,schema:he,ajv:Se,fieldMap:me}},[i,a,s,p,m,A,ge,he,Se,me]),$e=(0,d.useState)(function(){return new xs(Ue)}),Be=Q($e,1),je=Be[0];(0,d.useEffect)(function(){je.setOptions(Ue)},[Ue]),gt(function(){je.mount()},[]);var We=(0,d.useState)(function(){return je.getFormState()}),Je=Q(We,2),Ge=Je[0],rt=Je[1];gt(function(){var Mr=function(){return M&&M(je.getFormState())},Or=function(){return Y&&Y()},Gr=function(){return ae&&ae(je.getFormState().values)},wr=function(){return ne&&ne(je.getFormState().values)},Ur=function(){return ue&&ue(je.getFormState().errors)};return je.on("change",Mr),je.on("reset",Or),je.on("submit",Gr),je.on("value",wr),je.on("failure",Ur),function(){je.removeListener("change",Mr),je.removeListener("reset",Or),je.removeListener("submit",Gr),je.removeListener("value",wr),je.removeListener("failure",Ur)}},[M,Y,ae,ne,ue]),(0,d.useState)(function(){var Mr=function(){ws("Setting form state"),rt(je.getFormState())};je.on("change",Mr),w&&w(je.getFormApi()),E&&(E.current=je.getFormApi())});var bt=(0,d.useState)(function(){return je.getFormApi()}),Dt=Q(bt,1),Ht=Dt[0],lr=function(Or){return d.createElement(bs,{formApi:Ht,formState:Ge,formController:je},d.createElement(d.Fragment,null,Or||d.createElement(Zt,{schema:he,onlyValidateSchema:Fe})))};return{formApi:Ht,formState:Ge,formController:je,render:lr,userProps:Ke}},Ll=Le("informed:Form "),Dl=function(r){var i=r.children,a=r.render,s=r.component,p=C(r,["children","render","component"]);Ll("Render FORM");var m=Ss(p),A=m.formApi,w=m.formController,E=m.formState,M=m.render,Y=m.userProps,ae=function(){var ue={formState:E,formApi:A};return s?d.createElement(s,ue,i):a?a(ue):typeof i=="function"?i(ue):i};return M(d.createElement("form",N({},Y,{onReset:w.reset,onSubmit:w.submitForm,onKeyDown:w.keyDown}),ae()))},bf=function(r,i){return j(j({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})},wf=function(r,i){var a=i.register,s=i.deregister,p=i.setValue,m=i.setTouched,A=i.setError,w=i.update,E=i.getField,M=i.expectRemoval,Y=i.getInitialValue,ae=i.fieldMap,ne=i.getSavedValue;return{register:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return a.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},deregister:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return s.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},update:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return w.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},setValue:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return p.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},setTouched:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return m.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},setError:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return A.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},getField:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return E.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},expectRemoval:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return M.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},getInitialValue:function(ge){return Y("".concat(r,".").concat(ge))},getSavedValue:function(ge){return ne("".concat(r,".").concat(ge))},fieldMap:ae}},Sf=function(r){var i=r.scope,a=r.children,s=useContext(It),p=Me(),m=si(),A=useMemo(function(){return bf(i,p)},[i]),w=useMemo(function(){return wf(i,s)},[i]);return React.createElement(It.Provider,{value:w},React.createElement(Wt.Provider,{value:A},React.createElement(St.Provider,{value:m},a)))},Ei=function(r){var i=si(),a={};Object.keys(r).length>0?Object.keys(r).forEach(function(ne){a[ne]=i[ne]}):a=i;var s=a,p=s.pristine,m=s.dirty,A=s.invalid,w=s.values,E=s.errors,M=s.touched,Y=s.validating,ae=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:p,dirty:m,invalid:A,values:w,errors:E,touched:M,validating:Y,submitting:ae},null,2)))},Af=function(r){var i=r.initialStep,a=r.multistepApiRef,s=Me(),p=s.getValues,m=s.validate,A=s.screenValid,w=(0,d.useState)(new Map),E=Q(w,1),M=E[0],Y=(0,d.useRef)(0),ae=be({current:i,steps:[],goal:null}),ne=Q(ae,3),ue=ne[0],ge=ne[1],he=ne[2],Se=(0,d.useState)(function(){var Ue=function(){var je=he(),We=je.current,Je=M.get(We);return Je},$e={getState:function(){return he()},getCurrentStep:Ue,getStep:function(je){return M.get(je)},getNumberOfSteps:function(){return M.size},next:function(){if(m(),A()){var je=Ue(),We=je.getNext,Je=We(),Ge=typeof Je=="function"?Je(p()):Je;Ge&&ge(function(rt){return j(j({},rt),{},{current:Ge})})}},back:function(){var je=Ue(),We=je.getPrevious,Je=We(),Ge=typeof Je=="function"?Je(p()):Je;Ge&&ge(function(rt){return j(j({},rt),{},{current:Ge})})},setCurrent:function(je){if(je){var We=M.get(je).index;We<Ue().index?ge(function(Je){return j(j({},Je),{},{current:je,goal:null})}):ge(function(Je){return j(j({},Je),{},{goal:je})})}},register:function(je,We,Je){Je?(Y.current=Y.current+1,M.set(je,j(j({},We),{},{index:Y.current}))):ge(function(Ge){return j(j({},Ge),{},{steps:Array.from(M.keys())})})},deregister:function(je){M.delete(je),Y.current=Y.current-1,ge(function(We){return j(j({},We),{},{steps:Array.from(M.keys())})})}};return a&&(a.current=$e),$e}),me=Q(Se,1),Fe=me[0],Ke=function($e){return d.createElement($.Provider,{value:Fe},d.createElement(G.Provider,{value:ue},$e))};return j(j(j({},Fe),ue),{},{render:Ke})};function Ef(){return(0,d.useContext)(G)}function Pa(){return(0,d.useContext)($)}var Ho=function(r){var i=r.step,a=r.next,s=r.previous,p=r.relevant,m=si(),A=m.values,w=Ef(),E=w.current,M=w.goal,Y=Pa(),ae=Y.register,ne=Y.deregister,ue=Y.next,ge=i===E,he=p?p(A):!0,Se=(0,d.useRef)(a),me=(0,d.useRef)(s),Fe=(0,d.useRef)();Se.current=a,me.current=s,Fe.current=p,(0,d.useState)(function(){ae(i,{name:i,getNext:function(){return Se.current},getPrevious:function(){return me.current}},!0)}),(0,d.useEffect)(function(){return ae(i,{name:i,getNext:function(){return Se.current},getPrevious:function(){return me.current}}),function(){ne(i)}},[i]),(0,d.useEffect)(function(){M&&ge&&M!==i&&ue()},[M,ge]);var Ke=function($e){return d.createElement(we.Provider,{value:{relevant:function(je){return Fe.current?Fe.current(je):!0},multistep:!0}},ge&&he?$e:null)};return{isCurrent:ge,isRelevant:he,step:i,render:Ke}};function Cf(t){var r=t.children,i=C(t,["children"]),a=Af(i),s=a.render,p=C(a,["render"]);return s(typeof r=="function"?r(p):r)}Cf.Step=function(r){var i=r.children,a=C(r,["children"]),s=Ho(a),p=s.render;return p(i)};var wd=function(r){var i=r.field,a=useContext(It),s=a.fieldMap,p=Me(),m=p.getFullField,A=p.getOptions,w=m(i),E=A(),M=E.schema,Y=Oe(w),ae=dt.get(M,Y);if(!ae)return null;var ne=ee(i,ae),ue=ne.props,ge=ne.componentType,he=s[ge];return React.createElement(he,N({field:i},ue))},Sd=function(){var r=Me(),i=r.getOptions,a=i(),s=a.schema;return React.createElement(Zt,{schema:s})},Ad=function(r){return React.forwardRef(function(i,a){return React.createElement(Wt.Consumer,null,function(s){return React.createElement(r,N({formApi:s,ref:a},i))})})},Nl=function(r){return React.forwardRef(function(i,a){return React.createElement(St.Consumer,null,function(s){return React.createElement(r,N({formState:s,ref:a},i))})})},Bl=function(r,i){return{getValue:function(){return r.getValue(i)},setValue:function(s){return r.setValue(i,s)},getTouched:function(){return r.getTouched(i)},setTouched:function(s){return r.setTouched(i,s)},getError:function(){return r.getError(i)},setError:function(s){return r.setError(i,s)},reset:function(){return r.resetField(i)},validate:function(){return r.validateField(i)},exists:function(){return r.fieldExists(i)},getDirty:function(){return r.getDirty(i)},getPristine:function(){return r.getPristine(i)},getFieldState:function(){return r.getField(i).fieldApi.getFieldState()}}};function Ul(t){var r=Me(),i=useMemo(function(){return Bl(r,t)},[t]);return i}function jl(t){var r=Ul(t),i=Me(),a=React.useState(),s=Q(a,2),p=s[1],m=React.useCallback(function(){return p({})},[]);return gt(function(){var A=function(E){E===t&&m()};return i.emitter.on("field",A),function(){i.emitter.removeListener("field",A)}},[]),gt(function(){m()},[]),r.getFieldState()||{}}var Of=function(r){return function(i){return function(a){var s=jl(r);return React.createElement(i,N({fieldState:s},a))}}},As=function(r){return function(i){return function(a){var s=Ul(r);return React.createElement(i,N({fieldApi:s},a))}}},Es=function(r){var i=r.value,a=r.forwardedRef,s=r.children,p=C(r,["value","forwardedRef","children"]);return React.createElement("option",N({ref:a,value:i,key:i},p),s)},Vl=null,Ia=o(80150),zt=o(25446),Vi=o(25805),jt=o(76671),Et=o(39713),Ir=o(23485),Tf=Object.defineProperty,Pf=Object.defineProperties,Cs=Object.getOwnPropertyDescriptors,Os=Object.getOwnPropertySymbols,Ci=Object.prototype.hasOwnProperty,Ts=Object.prototype.propertyIsEnumerable,Jn=(t,r,i)=>r in t?Tf(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Wi=(t,r)=>{for(var i in r||(r={}))Ci.call(r,i)&&Jn(t,i,r[i]);if(Os)for(var i of Os(r))Ts.call(r,i)&&Jn(t,i,r[i]);return t},Fa=(t,r)=>Pf(t,Cs(r));const Hi=Ir.iv`
81
81
  border: none;
82
82
  outline: none;
83
83
  padding: 8px;
@@ -93,7 +93,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
93
93
  &:-webkit-autofill {
94
94
  background-color: ${({theme:t})=>t.rightPanel.panelBackgroundColor};
95
95
  }
96
- `,Vl=Ir.ZP.div`
96
+ `,Wl=Ir.ZP.div`
97
97
  display: ${({type:t})=>t==="hidden"?"none":"inline-block"};
98
98
  ${({fullWidth:t})=>t?"width: 100%;":""}
99
99
  `,If=Ir.ZP.div`
@@ -102,7 +102,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
102
102
  ${Hi}
103
103
  ${({inputType:t,inputActionButton:r})=>t==="password"||r?"padding-right: 40px;":""};
104
104
  ${({fullWidth:t})=>t?"width: 100%;":""}
105
- `,Wl=Ir.ZP.span`
105
+ `,Hl=Ir.ZP.span`
106
106
  position: absolute;
107
107
  right: 0;
108
108
  line-height: normal;
@@ -112,22 +112,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
112
112
  cursor: pointer;
113
113
  text-align: center;
114
114
  ${({theme:t})=>(0,Ir.QG)({color:t.rightPanel.textColor})}
115
- `;function Hl(t,r){const{fullWidth:i,errorMessage:a,type:s}=t,[p,m]=d.useState(s==="password"),S=d.useCallback(()=>{m(!p)},[p]);return d.createElement(Vl,{fullWidth:i,type:s},d.createElement(If,null,d.createElement(Ff,Fa(Wi({},t),{type:p?"password":"text",inputType:s,ref:r})),t.inputActionButton?d.createElement(Wl,{onClick:t.inputActionButton.onClick},t.inputActionButton.label):s==="password"?d.createElement(Wl,{onClick:S},p?"show":"hide"):null),a?d.createElement(Et.Xq,null,a):null)}const uo=d.forwardRef(Hl);function un(t){const r=Kn(Wi({fieldType:"text"},t)),{userProps:i,render:a,fieldState:s}=r,p=r.informed;return a(d.createElement(uo,Fa(Wi(Wi({},i),p),{errorMessage:s.error})))}const zo=ln(({initValue:t,options:r,fieldApi:i,fieldState:a})=>{const s=r.map((E,R)=>({value:E.title||E.value,idx:R,origValue:E.value})),p=s.find(E=>E.origValue===t),[m,S]=d.useState(p==null?void 0:p.value);d.useEffect(()=>{t&&i.setValue(t)},[]);const w=d.useCallback(E=>{i.setValue(s[E.idx].origValue),S(s[E.idx].value)},[s]);return d.createElement(Vl,{fullWidth:!0},d.createElement(jt.Dropdown,{fullWidth:!0,variant:"dark",value:m,options:s,onChange:w}),a.error?d.createElement(Et.Xq,null,a.error):null)});function kf(t){const{name:r,value:i,description:a,variableEnum:s,onChange:p,defaultValue:m}=t,S=R=>p(R.target.value),w=R=>p(R.value),E=s?s.map((R,J)=>({value:R,idx:J})):[];return d.createElement(Et.NI,null,d.createElement(Et.lX,null,r,":"),E&&E.length?d.createElement(jt.Dropdown,{fullWidth:!0,variant:"dark",openUp:!0,value:i,options:E,onChange:w}):d.createElement(uo,{fullWidth:!0,value:i,onChange:S,placeholder:m}),a&&d.createElement(zl,null,a))}const zl=jt.styled.small`
115
+ `;function zl(t,r){const{fullWidth:i,errorMessage:a,type:s}=t,[p,m]=d.useState(s==="password"),A=d.useCallback(()=>{m(!p)},[p]);return d.createElement(Wl,{fullWidth:i,type:s},d.createElement(If,null,d.createElement(Ff,Fa(Wi({},t),{type:p?"password":"text",inputType:s,ref:r})),t.inputActionButton?d.createElement(Hl,{onClick:t.inputActionButton.onClick},t.inputActionButton.label):s==="password"?d.createElement(Hl,{onClick:A},p?"show":"hide"):null),a?d.createElement(Et.Xq,null,a):null)}const uo=d.forwardRef(zl);function un(t){const r=$n(Wi({fieldType:"text"},t)),{userProps:i,render:a,fieldState:s}=r,p=r.informed;return a(d.createElement(uo,Fa(Wi(Wi({},i),p),{errorMessage:s.error})))}const zo=ln(({initValue:t,options:r,fieldApi:i,fieldState:a})=>{const s=r.map((E,M)=>({value:E.title||E.value,idx:M,origValue:E.value})),p=s.find(E=>E.origValue===t),[m,A]=d.useState(p==null?void 0:p.value);d.useEffect(()=>{t&&i.setValue(t)},[]);const w=d.useCallback(E=>{i.setValue(s[E.idx].origValue),A(s[E.idx].value)},[s]);return d.createElement(Wl,{fullWidth:!0},d.createElement(jt.Dropdown,{fullWidth:!0,variant:"dark",value:m,options:s,onChange:w}),a.error?d.createElement(Et.Xq,null,a.error):null)});function kf(t){const{name:r,value:i,description:a,variableEnum:s,onChange:p,defaultValue:m}=t,A=M=>p(M.target.value),w=M=>p(M.value),E=s?s.map((M,Y)=>({value:M,idx:Y})):[];return d.createElement(Et.NI,null,d.createElement(Et.lX,null,r,":"),E&&E.length?d.createElement(jt.Dropdown,{fullWidth:!0,variant:"dark",openUp:!0,value:i,options:E,onChange:w}):d.createElement(uo,{fullWidth:!0,value:i,onChange:A,placeholder:m}),a&&d.createElement(Gl,null,a))}const Gl=jt.styled.small`
116
116
  display: inline-block;
117
117
  margin-top: 5px;
118
118
  color: #d0d0d0;
119
- `;var Zr=o(7241),Ts=Object.defineProperty,ka=Object.defineProperties,fo=Object.getOwnPropertyDescriptor,Rf=Object.getOwnPropertyDescriptors,Gl=Object.getOwnPropertySymbols,Mf=Object.prototype.hasOwnProperty,Go=Object.prototype.propertyIsEnumerable,Fr=(t,r,i)=>r in t?Ts(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,$l=(t,r)=>{for(var i in r||(r={}))Mf.call(r,i)&&Fr(t,i,r[i]);if(Gl)for(var i of Gl(r))Go.call(r,i)&&Fr(t,i,r[i]);return t},Ps=(t,r)=>ka(t,Rf(r)),$o=(t,r,i,a)=>{for(var s=a>1?void 0:a?fo(r,i):r,p=t.length-1,m;p>=0;p--)(m=t[p])&&(s=(a?m(r,i,s):m(s))||s);return a&&s&&Ts(r,i,s),s},Is=(t,r,i)=>(Fr(t,typeof r!="symbol"?r+"":r,i),i);let Ra=class extends d.Component{constructor(){super(...arguments);Is(this,"state",{activeIdx:0,variables:{}}),Is(this,"handleServerChange",t=>{const r=this.props.operation.servers.find(a=>a.url===t.serverUrl),i=(0,Zr.mj)(r);this.props.onChange({url:t.serverUrl,variables:i}),(0,zt.WW)("serverUrl",t.serverUrl),this.setState({variables:i})}),Is(this,"handleVariableChange",(t,r)=>{const i=this.props.operation.servers[this.state.activeIdx],a=Ps($l({},this.state.variables),{[t]:r||(0,Zr.mj)(i)[t]});this.setState({variables:a}),(0,Zr.UY)(t,r),this.props.onChange(Ps($l({},i),{variables:a}))})}static getDerivedStateFromProps(t){const r=t.operation,i=(0,zt.YQ)("serverUrl"),a=r.servers.findIndex(s=>s.url===i);return{activeIdx:a<0?0:a}}componentDidMount(){const t=(0,Zr.fz)(this.props.operation.servers,this.state.activeIdx);this.props.onChange(t),this.setState({variables:t.variables})}render(){const{activeIdx:t}=this.state,i=this.props.operation.servers.map(s=>({serverUrl:s.url,value:`
119
+ `;var Zr=o(7241),Ps=Object.defineProperty,ka=Object.defineProperties,fo=Object.getOwnPropertyDescriptor,Mf=Object.getOwnPropertyDescriptors,$l=Object.getOwnPropertySymbols,Rf=Object.prototype.hasOwnProperty,Go=Object.prototype.propertyIsEnumerable,Fr=(t,r,i)=>r in t?Ps(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Kl=(t,r)=>{for(var i in r||(r={}))Rf.call(r,i)&&Fr(t,i,r[i]);if($l)for(var i of $l(r))Go.call(r,i)&&Fr(t,i,r[i]);return t},Is=(t,r)=>ka(t,Mf(r)),$o=(t,r,i,a)=>{for(var s=a>1?void 0:a?fo(r,i):r,p=t.length-1,m;p>=0;p--)(m=t[p])&&(s=(a?m(r,i,s):m(s))||s);return a&&s&&Ps(r,i,s),s},Fs=(t,r,i)=>(Fr(t,typeof r!="symbol"?r+"":r,i),i);let Ma=class extends d.Component{constructor(){super(...arguments);Fs(this,"state",{activeIdx:0,variables:{}}),Fs(this,"handleServerChange",t=>{const r=this.props.operation.servers.find(a=>a.url===t.serverUrl),i=(0,Zr.mj)(r);this.props.onChange({url:t.serverUrl,variables:i}),(0,zt.WW)("serverUrl",t.serverUrl),this.setState({variables:i})}),Fs(this,"handleVariableChange",(t,r)=>{const i=this.props.operation.servers[this.state.activeIdx],a=Is(Kl({},this.state.variables),{[t]:r||(0,Zr.mj)(i)[t]});this.setState({variables:a}),(0,Zr.UY)(t,r),this.props.onChange(Is(Kl({},i),{variables:a}))})}static getDerivedStateFromProps(t){const r=t.operation,i=(0,zt.YQ)("serverUrl"),a=r.servers.findIndex(s=>s.url===i);return{activeIdx:a<0?0:a}}componentDidMount(){const t=(0,Zr.fz)(this.props.operation.servers,this.state.activeIdx);this.props.onChange(t),this.setState({variables:t.variables})}render(){const{activeIdx:t}=this.state,i=this.props.operation.servers.map(s=>({serverUrl:s.url,value:`
120
120
  ${(0,Zr.nq)((0,Zr.v5)(s.url,this.state.variables),s.variables)}
121
121
  - ${s.description||"Default"}
122
- `})),a=Object.keys(this.state.variables);return d.createElement(Lf,null,d.createElement(Et.lX,{htmlFor:"server"},"Target server: "),d.createElement(Et.NI,null,d.createElement(jt.Dropdown,{openUp:!0,variant:"dark",value:i[t].value,options:i,onChange:this.handleServerChange})),a.length?a.map(s=>{const p=this.props.operation.servers[this.state.activeIdx].variables[s];return d.createElement(kf,{key:s,name:s,value:this.state.variables[s],defaultValue:p.default,onChange:m=>this.handleVariableChange(s,m),variableEnum:p.enum,description:p.description})}):null)}};Ra=$o([Ia.Pi],Ra);const Lf=jt.styled.div`
122
+ `})),a=Object.keys(this.state.variables);return d.createElement(Lf,null,d.createElement(Et.lX,{htmlFor:"server"},"Target server: "),d.createElement(Et.NI,null,d.createElement(jt.Dropdown,{openUp:!0,variant:"dark",value:i[t].value,options:i,onChange:this.handleServerChange})),a.length?a.map(s=>{const p=this.props.operation.servers[this.state.activeIdx].variables[s];return d.createElement(kf,{key:s,name:s,value:this.state.variables[s],defaultValue:p.default,onChange:m=>this.handleVariableChange(s,m),variableEnum:p.enum,description:p.description})}):null)}};Ma=$o([Ia.Pi],Ma);const Lf=jt.styled.div`
123
123
  margin-top: 20px;
124
- `,Yl=ln(({initValue:t,paramEnum:r,fieldApi:i})=>{const[a,s]=d.useState(t),p=r.map((S,w)=>({id:String(w),value:S})),m=S=>{i.setValue(S.value),s(S.value)};return d.useEffect(()=>{t&&i.setValue(t)},[]),d.createElement(jt.Dropdown,{fullWidth:!0,variant:"dark",value:a,options:p,onChange:m})});var zi;(function(t){t.ARRAY="array",t.OBJECT="object"})(zi||(zi={}));const Nf=t=>`(${t.schema.type})`+(t.example?` ${t.example}`:"");function Jl(t,r,i){t[r]||(t[r]=[]),t[r].push(i)}function Xl(t){const r={};return t.forEach(i=>{Jl(r,i.in,i)}),r}const Df=["path","query","cookie","header"];function Ko(t){return r=>{if(t.required&&!r)return"Field is required";if(t.required&&t.schema.type===zi.ARRAY&&Array.isArray(r)){if(r.length>(t.schema.rawSchema&&t.schema.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${t.schema.rawSchema.maxItems}`;if(r.length<(t.schema.rawSchema&&t.schema.rawSchema.minItems||0)){const i=t.schema.rawSchema.minItems;return`You should select at least ${i===1?`${i} item`:`${i} items`}`}}}}function li(t){if(t.schema.type===zi.ARRAY){const r=t.schema.default||t.schema.example;if(!r&&t.schema.rawSchema.items){if(t.schema.rawSchema.items.default)return[t.schema.rawSchema.items.default];if(t.schema.rawSchema.items.example)return[t.schema.rawSchema.items.example]}return r||[]}else return t.schema.default||t.schema.example}function Ma({values:t,operation:r}){function i(S,w){const E=d.useMemo(()=>Ko(w),[w]),R=Array.isArray(w.schema.enum)&&w.schema.enum.length?w.schema.enum:void 0,J=li(w);return R?d.createElement(Et.NI,null,d.createElement(Yl,{initValue:J,paramEnum:R,field:S})):d.createElement(un,{fullWidth:!0,"data-cy":"parameter-input",id:S,field:S,placeholder:Nf(w),validate:E,initialValue:J||(0,zt.U2)(t,S),validateOnBlur:!0,validateOnChange:!0})}function a({oneOfType:S,type:w,items:E}){return S||w===zi.ARRAY&&(E==null?void 0:E.type)===zi.OBJECT&&"Array of objects"}function s(S,w,E){var R;const J=E?(0,zt.s1)(E,S.name):S.name,oe=a(S.schema);if(oe&&console.warn(`Unsupported parameter definition: "${oe}"`),S.schema.type===zi.OBJECT)return(R=S.schema.fields)==null?void 0:R.map(ve=>s(ve,w,J));const re=E?[w,E]:[S.in],le=(0,zt.s1)(...re,S.name);return d.createElement(Et.NI,{key:le},d.createElement(Et.lX,{required:S.required},J,":"),oe?d.createElement(Et.GE,null,"Unsupported field schema definition"):i(le,S))}function p(S,w){return!w||!w.length?null:d.createElement(d.Fragment,{key:S},d.createElement(Et.NI,null,d.createElement(Et.iG,null," # ",S," parameters "),d.createElement("span",null,"\xA0")),w.map(E=>s(E,S)))}const m=Xl(r.parameters||[]);return d.createElement(Et.iA,null,Df.map(S=>p(S,m[S])))}var Qn=o(78722),Fs=o(55346),qr=o(59219);function Gi(t,r,i){const a=r.path||{},s=r.query||{},p=Object.keys(s);let m=(0,Zr.v5)(t,a);const S=w=>i.find(E=>E.name===w&&E.in==="query");return p.length&&(m+="?"+p.map(w=>{if(!s[w])return"";const E=S(w);return E?(0,jt.serializeParameterValue)(E,s[w]):typeof s[w]=="object"?(0,Zr.uM)({[w]:s[w]}):`${w}=${encodeURIComponent(s[w])}`}).filter(Boolean).join("&")),m}const ks=({loading:t,operation:r,hasResponse:i,execute:a,params:s={}})=>{const p=()=>{t||a()};return d.createElement(Ql,null,d.createElement(Fs._,null,d.createElement(qr.FH,{type:r.httpVerb},r.httpVerb),d.createElement(Fs.y,{wrap:"true"},Gi(r.path,s,r.parameters))),d.createElement(Bf,{"data-cy":"send-button",color:"primary",blinking:t,onClick:p},t?"Sending...":i?"Resend":"Send"))},Bf=(0,jt.styled)(qr.zx)`
124
+ `,Jl=ln(({initValue:t,paramEnum:r,fieldApi:i})=>{const[a,s]=d.useState(t),p=r.map((A,w)=>({id:String(w),value:A})),m=A=>{i.setValue(A.value),s(A.value)};return d.useEffect(()=>{t&&i.setValue(t)},[]),d.createElement(jt.Dropdown,{fullWidth:!0,variant:"dark",value:a,options:p,onChange:m})});var zi;(function(t){t.ARRAY="array",t.OBJECT="object"})(zi||(zi={}));const Df=t=>`(${t.schema.type})`+(t.example?` ${t.example}`:"");function Xl(t,r,i){t[r]||(t[r]=[]),t[r].push(i)}function Ql(t){const r={};return t.forEach(i=>{Xl(r,i.in,i)}),r}const Nf=["path","query","cookie","header"];function Ko(t){return r=>{if(t.required&&!r)return"Field is required";if(t.required&&t.schema.type===zi.ARRAY&&Array.isArray(r)){if(r.length>(t.schema.rawSchema&&t.schema.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${t.schema.rawSchema.maxItems}`;if(r.length<(t.schema.rawSchema&&t.schema.rawSchema.minItems||0)){const i=t.schema.rawSchema.minItems;return`You should select at least ${i===1?`${i} item`:`${i} items`}`}}}}function li(t){if(t.schema.type===zi.ARRAY){const r=t.schema.default||t.schema.example;if(!r&&t.schema.rawSchema.items){if(t.schema.rawSchema.items.default)return[t.schema.rawSchema.items.default];if(t.schema.rawSchema.items.example)return[t.schema.rawSchema.items.example]}return r||[]}else return t.schema.default||t.schema.example}function Ra({values:t,operation:r}){function i(A,w){const E=d.useMemo(()=>Ko(w),[w]),M=Array.isArray(w.schema.enum)&&w.schema.enum.length?w.schema.enum:void 0,Y=li(w);return M?d.createElement(Et.NI,null,d.createElement(Jl,{initValue:Y,paramEnum:M,field:A})):d.createElement(un,{fullWidth:!0,"data-cy":"parameter-input",id:A,field:A,placeholder:Df(w),validate:E,initialValue:Y||(0,zt.U2)(t,A),validateOnBlur:!0,validateOnChange:!0})}function a({oneOfType:A,type:w,items:E}){return A||w===zi.ARRAY&&(E==null?void 0:E.type)===zi.OBJECT&&"Array of objects"}function s(A,w,E){var M;const Y=E?(0,zt.s1)(E,A.name):A.name,ae=a(A.schema);if(ae&&console.warn(`Unsupported parameter definition: "${ae}"`),A.schema.type===zi.OBJECT)return(M=A.schema.fields)==null?void 0:M.map(ge=>s(ge,w,Y));const ne=E?[w,E]:[A.in],ue=(0,zt.s1)(...ne,A.name);return d.createElement(Et.NI,{key:ue},d.createElement(Et.lX,{required:A.required},Y,":"),ae?d.createElement(Et.GE,null,"Unsupported field schema definition"):i(ue,A))}function p(A,w){return!w||!w.length?null:d.createElement(d.Fragment,{key:A},d.createElement(Et.NI,null,d.createElement(Et.iG,null," # ",A," parameters "),d.createElement("span",null,"\xA0")),w.map(E=>s(E,A)))}const m=Ql(r.parameters||[]);return d.createElement(Et.iA,null,Nf.map(A=>p(A,m[A])))}var Xn=o(78722),ks=o(55346),_r=o(59219);function Gi(t,r,i){const a=r.path||{},s=r.query||{},p=Object.keys(s);let m=(0,Zr.v5)(t,a);const A=w=>i.find(E=>E.name===w&&E.in==="query");return p.length&&(m+="?"+p.map(w=>{if(!s[w])return"";const E=A(w);return E?(0,jt.serializeParameterValue)(E,s[w]):typeof s[w]=="object"?(0,Zr.uM)({[w]:s[w]}):`${w}=${encodeURIComponent(s[w])}`}).filter(Boolean).join("&")),m}const Ms=({loading:t,operation:r,hasResponse:i,execute:a,params:s={}})=>{const p=()=>{t||a()};return d.createElement(Zl,null,d.createElement(ks._,null,d.createElement(_r.FH,{type:r.httpVerb},r.httpVerb),d.createElement(ks.y,{wrap:"true"},Gi(r.path,s,r.parameters))),d.createElement(Bf,{"data-cy":"send-button",color:"primary",blinking:t,onClick:p},t?"Sending...":i?"Resend":"Send"))},Bf=(0,jt.styled)(_r.zx)`
125
125
  width: ${({theme:t})=>t.components.tryItSendButton.fullWidth?"100%":"auto"};
126
- `,Ql=(0,jt.styled)(Qn.k1)`
126
+ `,Zl=(0,jt.styled)(Xn.k1)`
127
127
  ${({theme:t})=>t.components.tryItSendButton.fullWidth?`
128
128
  flex-direction: column;
129
129
  align-items: flex-start;`:""};
130
- `;var Yo=o(68069);const Zl=jt.styled.div`
130
+ `;var Yo=o(68069);const _l=jt.styled.div`
131
131
  margin-bottom: 10px;
132
132
  `,Jo=jt.styled.div`
133
133
  display: inline-block;
@@ -137,7 +137,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
137
137
  color: ${({theme:t})=>t.colors.text.light};
138
138
  `,co=(0,jt.styled)(Jo)`
139
139
  color: ${({theme:t,code:r})=>r>=200&&r<300?t.colors.responses.success.tabTextColor:r>=300&&r<400?t.colors.responses.redirect.tabTextColor:r>400?t.colors.responses.error.tabTextColor:t.colors.responses.info.tabTextColor};
140
- `,Zn=jt.styled.strong`
140
+ `,Qn=jt.styled.strong`
141
141
  text-transform: capitalize;
142
142
  display: inline-block;
143
143
  padding-right: 5px;
@@ -147,45 +147,45 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
147
147
  `,ql=jt.styled.code`
148
148
  border-left: 3px solid #ff4040;
149
149
  padding-left: 5px;
150
- `,_l=jt.styled.div`
150
+ `,eu=jt.styled.div`
151
151
  margin-bottom: 10px;
152
152
 
153
153
  &:not(:first-child) {
154
154
  margin-top: 10px;
155
155
  }
156
- `,eu=(0,jt.styled)(Yo.nr)`
156
+ `,tu=(0,jt.styled)(Yo.nr)`
157
157
  border-top-left-radius: 0;
158
158
  border-top-right-radius: 0;
159
- `;class Uf extends d.PureComponent{render(){const{error:r,response:i,time:a}=this.props,s=i||r&&r.response,p=s&&s.data&&s.data.length||0;let m;if(p>1e6?m=(p/1e6).toFixed(2)+" MB":p>1e3?m=(p/1e3).toFixed(2)+" KB":m=p+" B",r&&!r.response||!s)return d.createElement(d.Fragment,null,d.createElement(Rs,null," Could not get any response "),d.createElement(ql,null,r&&r.message||"Unknown error"),d.createElement("br",null),d.createElement(Rs,null," Why this might have happened:"),d.createElement("div",null," - CORS is misconfigured on the server"),d.createElement("div",null," - ","The server couldn't sent a response"),d.createElement("div",null," - No internet access"),d.createElement("div",null," - Documentation issue - contact API owner"),d.createElement("div",null," - Misconfigured security definition"));if(!s)return"Something went wrong";const S=Object.keys(s.headers);return d.createElement(d.Fragment,null,d.createElement(Zl,null,d.createElement(co,{code:s.status},d.createElement("span",null," Status: "),s.status," ",s.statusText),d.createElement(Jo,null,d.createElement("span",null," Time: "),a,"ms"),d.createElement(Jo,null,d.createElement("span",null," Size: "),m)),d.createElement("div",null,d.createElement(_l,null," Headers: "),d.createElement(eu,null,S.map(w=>d.createElement("div",{key:w},d.createElement(Zn,null,w,":"),d.createElement("code",null," ",s.headers[w])))),d.createElement(_l,null," Body: "),s.body&&d.createElement(jt.JsonViewer,{data:s.body})||null,!s.body&&s.data!=null&&(s.data?d.createElement(jt.SourceCodeWithCopy,{lang:(0,jt.langFromMime)(s.headers["Content-Type"]||"text/plain"),source:s.data}):d.createElement(eu,null,d.createElement("i",null,"(no content)")))||null))}}var tu=o(9996),Ms=o.n(tu),Xo=o(29656),$i=o(4631);function Qo(t,r){r===void 0&&(r=!1);var i=t.length,a=0,s="",p=0,m=16,S=0,w=0,E=0,R=0,J=0;function oe(Fe,Ke){for(var Ue=0,$e=0;Ue<Fe||!Ke;){var Be=t.charCodeAt(a);if(Be>=48&&Be<=57)$e=$e*16+Be-48;else if(Be>=65&&Be<=70)$e=$e*16+Be-65+10;else if(Be>=97&&Be<=102)$e=$e*16+Be-97+10;else break;a++,Ue++}return Ue<Fe&&($e=-1),$e}function re(Fe){a=Fe,s="",p=0,m=16,J=0}function le(){var Fe=a;if(t.charCodeAt(a)===48)a++;else for(a++;a<t.length&&Ki(t.charCodeAt(a));)a++;if(a<t.length&&t.charCodeAt(a)===46)if(a++,a<t.length&&Ki(t.charCodeAt(a)))for(a++;a<t.length&&Ki(t.charCodeAt(a));)a++;else return J=3,t.substring(Fe,a);var Ke=a;if(a<t.length&&(t.charCodeAt(a)===69||t.charCodeAt(a)===101))if(a++,(a<t.length&&t.charCodeAt(a)===43||t.charCodeAt(a)===45)&&a++,a<t.length&&Ki(t.charCodeAt(a))){for(a++;a<t.length&&Ki(t.charCodeAt(a));)a++;Ke=a}else J=3;return t.substring(Fe,Ke)}function ve(){for(var Fe="",Ke=a;;){if(a>=i){Fe+=t.substring(Ke,a),J=2;break}var Ue=t.charCodeAt(a);if(Ue===34){Fe+=t.substring(Ke,a),a++;break}if(Ue===92){if(Fe+=t.substring(Ke,a),a++,a>=i){J=2;break}var $e=t.charCodeAt(a++);switch($e){case 34:Fe+='"';break;case 92:Fe+="\\";break;case 47:Fe+="/";break;case 98:Fe+="\b";break;case 102:Fe+="\f";break;case 110:Fe+=`
160
- `;break;case 114:Fe+="\r";break;case 116:Fe+=" ";break;case 117:var Be=oe(4,!0);Be>=0?Fe+=String.fromCharCode(Be):J=4;break;default:J=5}Ke=a;continue}if(Ue>=0&&Ue<=31)if(Oi(Ue)){Fe+=t.substring(Ke,a),J=2;break}else J=6;a++}return Fe}function pe(){if(s="",J=0,p=a,w=S,R=E,a>=i)return p=i,m=17;var Fe=t.charCodeAt(a);if(Zo(Fe)){do a++,s+=String.fromCharCode(Fe),Fe=t.charCodeAt(a);while(Zo(Fe));return m=15}if(Oi(Fe))return a++,s+=String.fromCharCode(Fe),Fe===13&&t.charCodeAt(a)===10&&(a++,s+=`
161
- `),S++,E=a,m=14;switch(Fe){case 123:return a++,m=1;case 125:return a++,m=2;case 91:return a++,m=3;case 93:return a++,m=4;case 58:return a++,m=6;case 44:return a++,m=5;case 34:return a++,s=ve(),m=10;case 47:var Ke=a-1;if(t.charCodeAt(a+1)===47){for(a+=2;a<i&&!Oi(t.charCodeAt(a));)a++;return s=t.substring(Ke,a),m=12}if(t.charCodeAt(a+1)===42){a+=2;for(var Ue=i-1,$e=!1;a<Ue;){var Be=t.charCodeAt(a);if(Be===42&&t.charCodeAt(a+1)===47){a+=2,$e=!0;break}a++,Oi(Be)&&(Be===13&&t.charCodeAt(a)===10&&a++,S++,E=a)}return $e||(a++,J=1),s=t.substring(Ke,a),m=13}return s+=String.fromCharCode(Fe),a++,m=16;case 45:if(s+=String.fromCharCode(Fe),a++,a===i||!Ki(t.charCodeAt(a)))return m=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=le(),m=11;default:for(;a<i&&Se(Fe);)a++,Fe=t.charCodeAt(a);if(p!==a){switch(s=t.substring(p,a),s){case"true":return m=8;case"false":return m=9;case"null":return m=7}return m=16}return s+=String.fromCharCode(Fe),a++,m=16}}function Se(Fe){if(Zo(Fe)||Oi(Fe))return!1;switch(Fe){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function ye(){var Fe;do Fe=pe();while(Fe>=12&&Fe<=15);return Fe}return{setPosition:re,getPosition:function(){return a},scan:r?ye:pe,getToken:function(){return m},getTokenValue:function(){return s},getTokenOffset:function(){return p},getTokenLength:function(){return a-p},getTokenStartLine:function(){return w},getTokenStartCharacter:function(){return p-R},getTokenError:function(){return J}}}function Zo(t){return t===32||t===9||t===11||t===12||t===160||t===5760||t>=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function Oi(t){return t===10||t===13||t===8232||t===8233}function Ki(t){return t>=48&&t<=57}function Ls(t,r,i){var a,s,p,m,S;if(r){for(m=r.offset,S=m+r.length,p=m;p>0&&!La(t,p-1);)p--;for(var w=S;w<t.length&&!La(t,w);)w++;s=t.substring(p,w),a=ru(s,i)}else s=t,a=0,p=0,m=0,S=t.length;var E=Ns(i,t),R=!1,J=0,oe;i.insertSpaces?oe=wn(" ",i.tabSize||4):oe=" ";var re=Qo(s,!1),le=!1;function ve(){return E+wn(oe,a+J)}function pe(){var Ge=re.scan();for(R=!1;Ge===15||Ge===14;)R=R||Ge===14,Ge=re.scan();return le=Ge===16||re.getTokenError()!==0,Ge}var Se=[];function ye(Ge,et,bt){!le&&et<S&&bt>m&&t.substring(et,bt)!==Ge&&Se.push({offset:et,length:bt-et,content:Ge})}var Fe=pe();if(Fe!==17){var Ke=re.getTokenOffset()+p,Ue=wn(oe,a);ye(Ue,p,Ke)}for(;Fe!==17;){for(var $e=re.getTokenOffset()+re.getTokenLength()+p,Be=pe(),Ve="";!R&&(Be===12||Be===13);){var We=re.getTokenOffset()+p;ye(" ",$e,We),$e=re.getTokenOffset()+re.getTokenLength()+p,Ve=Be===12?ve():"",Be=pe()}if(Be===2)Fe!==1&&(J--,Ve=ve());else if(Be===4)Fe!==3&&(J--,Ve=ve());else{switch(Fe){case 3:case 1:J++,Ve=ve();break;case 5:case 12:Ve=ve();break;case 13:R?Ve=ve():Ve=" ";break;case 6:Ve=" ";break;case 10:if(Be===6){Ve="";break}case 7:case 8:case 9:case 11:case 2:case 4:Be===12||Be===13?Ve=" ":Be!==5&&Be!==17&&(le=!0);break;case 16:le=!0;break}R&&(Be===12||Be===13)&&(Ve=ve())}var Ye=re.getTokenOffset()+p;ye(Ve,$e,Ye),Fe=Be}return Se}function wn(t,r){for(var i="",a=0;a<r;a++)i+=t;return i}function ru(t,r){for(var i=0,a=0,s=r.tabSize||4;i<t.length;){var p=t.charAt(i);if(p===" ")a++;else if(p===" ")a+=s;else break;i++}return Math.floor(a/s)}function Ns(t,r){for(var i=0;i<r.length;i++){var a=r.charAt(i);if(a==="\r")return i+1<r.length&&r.charAt(i+1)===`
159
+ `;class Uf extends d.PureComponent{render(){const{error:r,response:i,time:a}=this.props,s=i||r&&r.response,p=s&&s.data&&s.data.length||0;let m;if(p>1e6?m=(p/1e6).toFixed(2)+" MB":p>1e3?m=(p/1e3).toFixed(2)+" KB":m=p+" B",r&&!r.response||!s)return d.createElement(d.Fragment,null,d.createElement(Rs,null," Could not get any response "),d.createElement(ql,null,r&&r.message||"Unknown error"),d.createElement("br",null),d.createElement(Rs,null," Why this might have happened:"),d.createElement("div",null," - CORS is misconfigured on the server"),d.createElement("div",null," - ","The server couldn't sent a response"),d.createElement("div",null," - No internet access"),d.createElement("div",null," - Documentation issue - contact API owner"),d.createElement("div",null," - Misconfigured security definition"));if(!s)return"Something went wrong";const A=Object.keys(s.headers);return d.createElement(d.Fragment,null,d.createElement(_l,null,d.createElement(co,{code:s.status},d.createElement("span",null," Status: "),s.status," ",s.statusText),d.createElement(Jo,null,d.createElement("span",null," Time: "),a,"ms"),d.createElement(Jo,null,d.createElement("span",null," Size: "),m)),d.createElement("div",null,d.createElement(eu,null," Headers: "),d.createElement(tu,null,A.map(w=>d.createElement("div",{key:w},d.createElement(Qn,null,w,":"),d.createElement("code",null," ",s.headers[w])))),d.createElement(eu,null," Body: "),s.body&&d.createElement(jt.JsonViewer,{data:s.body})||null,!s.body&&s.data!=null&&(s.data?d.createElement(jt.SourceCodeWithCopy,{lang:(0,jt.langFromMime)(s.headers["Content-Type"]||"text/plain"),source:s.data}):d.createElement(tu,null,d.createElement("i",null,"(no content)")))||null))}}var ru=o(9996),Ls=o.n(ru),Xo=o(29656),$i=o(4631);function Qo(t,r){r===void 0&&(r=!1);var i=t.length,a=0,s="",p=0,m=16,A=0,w=0,E=0,M=0,Y=0;function ae(Fe,Ke){for(var Ue=0,$e=0;Ue<Fe||!Ke;){var Be=t.charCodeAt(a);if(Be>=48&&Be<=57)$e=$e*16+Be-48;else if(Be>=65&&Be<=70)$e=$e*16+Be-65+10;else if(Be>=97&&Be<=102)$e=$e*16+Be-97+10;else break;a++,Ue++}return Ue<Fe&&($e=-1),$e}function ne(Fe){a=Fe,s="",p=0,m=16,Y=0}function ue(){var Fe=a;if(t.charCodeAt(a)===48)a++;else for(a++;a<t.length&&Ki(t.charCodeAt(a));)a++;if(a<t.length&&t.charCodeAt(a)===46)if(a++,a<t.length&&Ki(t.charCodeAt(a)))for(a++;a<t.length&&Ki(t.charCodeAt(a));)a++;else return Y=3,t.substring(Fe,a);var Ke=a;if(a<t.length&&(t.charCodeAt(a)===69||t.charCodeAt(a)===101))if(a++,(a<t.length&&t.charCodeAt(a)===43||t.charCodeAt(a)===45)&&a++,a<t.length&&Ki(t.charCodeAt(a))){for(a++;a<t.length&&Ki(t.charCodeAt(a));)a++;Ke=a}else Y=3;return t.substring(Fe,Ke)}function ge(){for(var Fe="",Ke=a;;){if(a>=i){Fe+=t.substring(Ke,a),Y=2;break}var Ue=t.charCodeAt(a);if(Ue===34){Fe+=t.substring(Ke,a),a++;break}if(Ue===92){if(Fe+=t.substring(Ke,a),a++,a>=i){Y=2;break}var $e=t.charCodeAt(a++);switch($e){case 34:Fe+='"';break;case 92:Fe+="\\";break;case 47:Fe+="/";break;case 98:Fe+="\b";break;case 102:Fe+="\f";break;case 110:Fe+=`
160
+ `;break;case 114:Fe+="\r";break;case 116:Fe+=" ";break;case 117:var Be=ae(4,!0);Be>=0?Fe+=String.fromCharCode(Be):Y=4;break;default:Y=5}Ke=a;continue}if(Ue>=0&&Ue<=31)if(Oi(Ue)){Fe+=t.substring(Ke,a),Y=2;break}else Y=6;a++}return Fe}function he(){if(s="",Y=0,p=a,w=A,M=E,a>=i)return p=i,m=17;var Fe=t.charCodeAt(a);if(Zo(Fe)){do a++,s+=String.fromCharCode(Fe),Fe=t.charCodeAt(a);while(Zo(Fe));return m=15}if(Oi(Fe))return a++,s+=String.fromCharCode(Fe),Fe===13&&t.charCodeAt(a)===10&&(a++,s+=`
161
+ `),A++,E=a,m=14;switch(Fe){case 123:return a++,m=1;case 125:return a++,m=2;case 91:return a++,m=3;case 93:return a++,m=4;case 58:return a++,m=6;case 44:return a++,m=5;case 34:return a++,s=ge(),m=10;case 47:var Ke=a-1;if(t.charCodeAt(a+1)===47){for(a+=2;a<i&&!Oi(t.charCodeAt(a));)a++;return s=t.substring(Ke,a),m=12}if(t.charCodeAt(a+1)===42){a+=2;for(var Ue=i-1,$e=!1;a<Ue;){var Be=t.charCodeAt(a);if(Be===42&&t.charCodeAt(a+1)===47){a+=2,$e=!0;break}a++,Oi(Be)&&(Be===13&&t.charCodeAt(a)===10&&a++,A++,E=a)}return $e||(a++,Y=1),s=t.substring(Ke,a),m=13}return s+=String.fromCharCode(Fe),a++,m=16;case 45:if(s+=String.fromCharCode(Fe),a++,a===i||!Ki(t.charCodeAt(a)))return m=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=ue(),m=11;default:for(;a<i&&Se(Fe);)a++,Fe=t.charCodeAt(a);if(p!==a){switch(s=t.substring(p,a),s){case"true":return m=8;case"false":return m=9;case"null":return m=7}return m=16}return s+=String.fromCharCode(Fe),a++,m=16}}function Se(Fe){if(Zo(Fe)||Oi(Fe))return!1;switch(Fe){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function me(){var Fe;do Fe=he();while(Fe>=12&&Fe<=15);return Fe}return{setPosition:ne,getPosition:function(){return a},scan:r?me:he,getToken:function(){return m},getTokenValue:function(){return s},getTokenOffset:function(){return p},getTokenLength:function(){return a-p},getTokenStartLine:function(){return w},getTokenStartCharacter:function(){return p-M},getTokenError:function(){return Y}}}function Zo(t){return t===32||t===9||t===11||t===12||t===160||t===5760||t>=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function Oi(t){return t===10||t===13||t===8232||t===8233}function Ki(t){return t>=48&&t<=57}function La(t,r,i){var a,s,p,m,A;if(r){for(m=r.offset,A=m+r.length,p=m;p>0&&!Da(t,p-1);)p--;for(var w=A;w<t.length&&!Da(t,w);)w++;s=t.substring(p,w),a=nu(s,i)}else s=t,a=0,p=0,m=0,A=t.length;var E=Ds(i,t),M=!1,Y=0,ae;i.insertSpaces?ae=bn(" ",i.tabSize||4):ae=" ";var ne=Qo(s,!1),ue=!1;function ge(){return E+bn(ae,a+Y)}function he(){var Ge=ne.scan();for(M=!1;Ge===15||Ge===14;)M=M||Ge===14,Ge=ne.scan();return ue=Ge===16||ne.getTokenError()!==0,Ge}var Se=[];function me(Ge,rt,bt){!ue&&rt<A&&bt>m&&t.substring(rt,bt)!==Ge&&Se.push({offset:rt,length:bt-rt,content:Ge})}var Fe=he();if(Fe!==17){var Ke=ne.getTokenOffset()+p,Ue=bn(ae,a);me(Ue,p,Ke)}for(;Fe!==17;){for(var $e=ne.getTokenOffset()+ne.getTokenLength()+p,Be=he(),je="";!M&&(Be===12||Be===13);){var We=ne.getTokenOffset()+p;me(" ",$e,We),$e=ne.getTokenOffset()+ne.getTokenLength()+p,je=Be===12?ge():"",Be=he()}if(Be===2)Fe!==1&&(Y--,je=ge());else if(Be===4)Fe!==3&&(Y--,je=ge());else{switch(Fe){case 3:case 1:Y++,je=ge();break;case 5:case 12:je=ge();break;case 13:M?je=ge():je=" ";break;case 6:je=" ";break;case 10:if(Be===6){je="";break}case 7:case 8:case 9:case 11:case 2:case 4:Be===12||Be===13?je=" ":Be!==5&&Be!==17&&(ue=!0);break;case 16:ue=!0;break}M&&(Be===12||Be===13)&&(je=ge())}var Je=ne.getTokenOffset()+p;me(je,$e,Je),Fe=Be}return Se}function bn(t,r){for(var i="",a=0;a<r;a++)i+=t;return i}function nu(t,r){for(var i=0,a=0,s=r.tabSize||4;i<t.length;){var p=t.charAt(i);if(p===" ")a++;else if(p===" ")a+=s;else break;i++}return Math.floor(a/s)}function Ds(t,r){for(var i=0;i<r.length;i++){var a=r.charAt(i);if(a==="\r")return i+1<r.length&&r.charAt(i+1)===`
162
162
  `?`\r
163
163
  `:"\r";if(a===`
164
164
  `)return`
165
165
  `}return t&&t.eol||`
166
- `}function La(t,r){return`\r
167
- `.indexOf(t.charAt(r))!==-1}var po;(function(t){t.DEFAULT={allowTrailingComma:!1}})(po||(po={}));function nu(t,r){var i=[],a=new Object,s=void 0,p={value:{},offset:0,length:0,type:"object",parent:void 0},m=!1;function S(w,E,R,J){p.value=w,p.offset=E,p.length=R,p.type=J,p.colonOffset=void 0,s=p}try{vo(t,{onObjectBegin:function(w,E){if(r<=w)throw a;s=void 0,m=r>w,i.push("")},onObjectProperty:function(w,E,R){if(r<E||(S(w,E,R,"property"),i[i.length-1]=w,r<=E+R))throw a},onObjectEnd:function(w,E){if(r<=w)throw a;s=void 0,i.pop()},onArrayBegin:function(w,E){if(r<=w)throw a;s=void 0,i.push(0)},onArrayEnd:function(w,E){if(r<=w)throw a;s=void 0,i.pop()},onLiteralValue:function(w,E,R){if(r<E||(S(w,E,R,Us(w)),r<=E+R))throw a},onSeparator:function(w,E,R){if(r<=E)throw a;if(w===":"&&s&&s.type==="property")s.colonOffset=E,m=!1,s=void 0;else if(w===","){var J=i[i.length-1];typeof J=="number"?i[i.length-1]=J+1:(m=!0,i[i.length-1]=""),s=void 0}}})}catch(w){if(w!==a)throw w}return{path:i,previousNode:s,isAtPropertyKey:m,matches:function(w){for(var E=0,R=0;E<w.length&&R<i.length;R++)if(w[E]===i[R]||w[E]==="*")E++;else if(w[E]!=="**")return!1;return E===w.length}}}function Ds(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=po.DEFAULT);var a=null,s=[],p=[];function m(w){Array.isArray(s)?s.push(w):a!==null&&(s[a]=w)}var S={onObjectBegin:function(){var w={};m(w),p.push(s),s=w,a=null},onObjectProperty:function(w){a=w},onObjectEnd:function(){s=p.pop()},onArrayBegin:function(){var w=[];m(w),p.push(s),s=w,a=null},onArrayEnd:function(){s=p.pop()},onLiteralValue:m,onError:function(w,E,R){r.push({error:w,offset:E,length:R})}};return vo(t,S,i),s[0]}function jf(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=po.DEFAULT);var a={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(w){a.type==="property"&&(a.length=w-a.offset,a=a.parent)}function p(w){return a.children.push(w),w}var m={onObjectBegin:function(w){a=p({type:"object",offset:w,length:-1,parent:a,children:[]})},onObjectProperty:function(w,E,R){a=p({type:"property",offset:E,length:-1,parent:a,children:[]}),a.children.push({type:"string",value:w,offset:E,length:R,parent:a})},onObjectEnd:function(w,E){s(w+E),a.length=w+E-a.offset,a=a.parent,s(w+E)},onArrayBegin:function(w,E){a=p({type:"array",offset:w,length:-1,parent:a,children:[]})},onArrayEnd:function(w,E){a.length=w+E-a.offset,a=a.parent,s(w+E)},onLiteralValue:function(w,E,R){p({type:Us(w),offset:E,length:R,parent:a,value:w}),s(E+R)},onSeparator:function(w,E,R){a.type==="property"&&(w===":"?a.colonOffset=E:w===","&&s(E))},onError:function(w,E,R){r.push({error:w,offset:E,length:R})}};vo(t,m,i);var S=a.children[0];return S&&delete S.parent,S}function Vf(t,r){if(!!t){for(var i=t,a=0,s=r;a<s.length;a++){var p=s[a];if(typeof p=="string"){if(i.type!=="object"||!Array.isArray(i.children))return;for(var m=!1,S=0,w=i.children;S<w.length;S++){var E=w[S];if(Array.isArray(E.children)&&E.children[0].value===p){i=E.children[1],m=!0;break}}if(!m)return}else{var R=p;if(i.type!=="array"||R<0||!Array.isArray(i.children)||R>=i.children.length)return;i=i.children[R]}}return i}}function iu(t){if(!t.parent||!t.parent.children)return[];var r=iu(t.parent);if(t.parent.type==="property"){var i=t.parent.children[0].value;r.push(i)}else if(t.parent.type==="array"){var a=t.parent.children.indexOf(t);a!==-1&&r.push(a)}return r}function ui(t){switch(t.type){case"array":return t.children.map(ui);case"object":for(var r=Object.create(null),i=0,a=t.children;i<a.length;i++){var s=a[i],p=s.children[1];p&&(r[s.children[0].value]=ui(p))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function ho(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}function Yi(t,r,i){if(i===void 0&&(i=!1),ho(t,r,i)){var a=t.children;if(Array.isArray(a))for(var s=0;s<a.length&&a[s].offset<=r;s++){var p=Yi(a[s],r,i);if(p)return p}return t}}function vo(t,r,i){i===void 0&&(i=po.DEFAULT);var a=Qo(t,!1);function s(We){return We?function(){return We(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}function p(We){return We?function(Ye){return We(Ye,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}var m=s(r.onObjectBegin),S=p(r.onObjectProperty),w=s(r.onObjectEnd),E=s(r.onArrayBegin),R=s(r.onArrayEnd),J=p(r.onLiteralValue),oe=p(r.onSeparator),re=s(r.onComment),le=p(r.onError),ve=i&&i.disallowComments,pe=i&&i.allowTrailingComma;function Se(){for(;;){var We=a.scan();switch(a.getTokenError()){case 4:ye(14);break;case 5:ye(15);break;case 3:ye(13);break;case 1:ve||ye(11);break;case 2:ye(12);break;case 6:ye(16);break}switch(We){case 12:case 13:ve?ye(10):re();break;case 16:ye(1);break;case 15:case 14:break;default:return We}}}function ye(We,Ye,Ge){if(Ye===void 0&&(Ye=[]),Ge===void 0&&(Ge=[]),le(We),Ye.length+Ge.length>0)for(var et=a.getToken();et!==17;){if(Ye.indexOf(et)!==-1){Se();break}else if(Ge.indexOf(et)!==-1)break;et=Se()}}function Fe(We){var Ye=a.getTokenValue();return We?J(Ye):S(Ye),Se(),!0}function Ke(){switch(a.getToken()){case 11:var We=a.getTokenValue(),Ye=Number(We);isNaN(Ye)&&(ye(2),Ye=0),J(Ye);break;case 7:J(null);break;case 8:J(!0);break;case 9:J(!1);break;default:return!1}return Se(),!0}function Ue(){return a.getToken()!==10?(ye(3,[],[2,5]),!1):(Fe(!1),a.getToken()===6?(oe(":"),Se(),Ve()||ye(4,[],[2,5])):ye(5,[],[2,5]),!0)}function $e(){m(),Se();for(var We=!1;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){if(We||ye(4,[],[]),oe(","),Se(),a.getToken()===2&&pe)break}else We&&ye(6,[],[]);Ue()||ye(4,[],[2,5]),We=!0}return w(),a.getToken()!==2?ye(7,[2],[]):Se(),!0}function Be(){E(),Se();for(var We=!1;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){if(We||ye(4,[],[]),oe(","),Se(),a.getToken()===4&&pe)break}else We&&ye(6,[],[]);Ve()||ye(4,[],[4,5]),We=!0}return R(),a.getToken()!==4?ye(8,[4],[]):Se(),!0}function Ve(){switch(a.getToken()){case 3:return Be();case 1:return $e();case 10:return Fe(!0);default:return Ke()}}return Se(),a.getToken()===17?i.allowEmptyContent?!0:(ye(4,[],[]),!1):Ve()?(a.getToken()!==17&&ye(9,[],[]),!0):(ye(4,[],[]),!1)}function Bs(t,r){var i=Qo(t),a=[],s,p=0,m;do switch(m=i.getPosition(),s=i.scan(),s){case 12:case 13:case 17:p!==m&&a.push(t.substring(p,m)),r!==void 0&&a.push(i.getTokenValue().replace(/[^\r\n]/g,r)),p=i.getPosition();break}while(s!==17);return a.join("")}function Us(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(t){if(Array.isArray(t))return"array"}else return"null";return"object"}default:return"null"}}function ou(t,r,i){return Ji(t,r,void 0,i)}function Ji(t,r,i,a){for(var s,p=r.slice(),m=[],S=parseTree(t,m),w=void 0,E=void 0;p.length>0&&(E=p.pop(),w=findNodeAtLocation(S,p),w===void 0&&i!==void 0);)typeof E=="string"?i=(s={},s[E]=i,s):i=[i];if(w)if(w.type==="object"&&typeof E=="string"&&Array.isArray(w.children)){var R=findNodeAtLocation(w,[E]);if(R!==void 0)if(i===void 0){if(!R.parent)throw new Error("Malformed AST");var J=w.children.indexOf(R.parent),oe=void 0,re=R.parent.offset+R.parent.length;if(J>0){var le=w.children[J-1];oe=le.offset+le.length}else if(oe=w.offset+1,w.children.length>1){var ve=w.children[1];re=ve.offset}return Sn(t,{offset:oe,length:re-oe,content:""},a)}else return Sn(t,{offset:R.offset,length:R.length,content:JSON.stringify(i)},a);else{if(i===void 0)return[];var pe=JSON.stringify(E)+": "+JSON.stringify(i),Se=a.getInsertionIndex?a.getInsertionIndex(w.children.map(function(We){return We.children[0].value})):w.children.length,ye=void 0;if(Se>0){var le=w.children[Se-1];ye={offset:le.offset+le.length,length:0,content:","+pe}}else w.children.length===0?ye={offset:w.offset+1,length:0,content:pe}:ye={offset:w.offset+1,length:0,content:pe+","};return Sn(t,ye,a)}}else if(w.type==="array"&&typeof E=="number"&&Array.isArray(w.children)){var Fe=E;if(Fe===-1){var pe=""+JSON.stringify(i),ye=void 0;if(w.children.length===0)ye={offset:w.offset+1,length:0,content:pe};else{var le=w.children[w.children.length-1];ye={offset:le.offset+le.length,length:0,content:","+pe}}return Sn(t,ye,a)}else if(i===void 0&&w.children.length>=0){var Ke=E,Ue=w.children[Ke],ye=void 0;if(w.children.length===1)ye={offset:w.offset+1,length:w.length-2,content:""};else if(w.children.length-1===Ke){var le=w.children[Ke-1],$e=le.offset+le.length,Be=w.offset+w.length;ye={offset:$e,length:Be-2-$e,content:""}}else ye={offset:Ue.offset,length:w.children[Ke+1].offset-Ue.offset,content:""};return Sn(t,ye,a)}else if(i!==void 0){var ye=void 0,pe=""+JSON.stringify(i);if(!a.isArrayInsertion&&w.children.length>E){var Ve=w.children[E];ye={offset:Ve.offset,length:Ve.length,content:pe}}else if(w.children.length===0||E===0)ye={offset:w.offset+1,length:0,content:w.children.length===0?pe:pe+","};else{var Se=E>w.children.length?w.children.length:E,le=w.children[Se-1];ye={offset:le.offset+le.length,length:0,content:","+pe}}return Sn(t,ye,a)}else throw new Error("Can not "+(i===void 0?"remove":a.isArrayInsertion?"insert":"modify")+" Array index "+Fe+" as length is not sufficient")}else throw new Error("Can not add "+(typeof E!="number"?"index":"property")+" to parent of type "+w.type);else{if(i===void 0)throw new Error("Can not delete in empty document");return Sn(t,{offset:S?S.offset:0,length:S?S.length:0,content:JSON.stringify(i)},a)}}function Sn(t,r,i){if(!i.formattingOptions)return[r];var a=_r(t,r),s=r.offset,p=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(a,s-1);)s--;for(;p<a.length&&!isEOL(a,p);)p++}for(var m=format(a,{offset:s,length:p-s},i.formattingOptions),S=m.length-1;S>=0;S--){var w=m[S];a=_r(a,w),s=Math.min(s,w.offset),p=Math.max(p,w.offset+w.length),p+=w.content.length-w.length}var E=t.length-(a.length-p)-s;return[{offset:s,length:E,content:a.substring(s,p)}]}function _r(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function Xi(t,r){return`\r
168
- `.indexOf(t.charAt(r))!==-1}var An=Qo,js=nu,Wf=Ds,Hf=jf,Na=Vf,au=Yi,su=iu,Da=ui,Cd=vo,lu=Bs;function zf(t){switch(t){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function Vs(t,r,i){return Ls(t,r,i)}function uu(t,r,i,a){return edit.setProperty(t,r,i,a)}function qo(t,r){for(var i=r.length-1;i>=0;i--)t=edit.applyEdit(t,r[i]);return t}function Ti(t,r){if(t===r)return!0;if(t==null||r===null||r===void 0||typeof t!=typeof r||typeof t!="object"||Array.isArray(t)!==Array.isArray(r))return!1;var i,a;if(Array.isArray(t)){if(t.length!==r.length)return!1;for(i=0;i<t.length;i++)if(!Ti(t[i],r[i]))return!1}else{var s=[];for(a in t)s.push(a);s.sort();var p=[];for(a in r)p.push(a);if(p.sort(),!Ti(s,p))return!1;for(i=0;i<s.length;i++)if(!Ti(t[s[i]],r[s[i]]))return!1}return!0}function fn(t){return typeof t=="number"}function In(t){return typeof t!="undefined"}function qn(t){return typeof t=="boolean"}function Gf(t){return typeof t=="string"}var fu;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(fu||(fu={}));var go;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(go||(go={}));var En;(function(t){function r(a,s){return a===Number.MAX_VALUE&&(a=go.MAX_VALUE),s===Number.MAX_VALUE&&(s=go.MAX_VALUE),{line:a,character:s}}t.create=r;function i(a){var s=a;return Ze.objectLiteral(s)&&Ze.uinteger(s.line)&&Ze.uinteger(s.character)}t.is=i})(En||(En={}));var Jt;(function(t){function r(a,s,p,m){if(Ze.uinteger(a)&&Ze.uinteger(s)&&Ze.uinteger(p)&&Ze.uinteger(m))return{start:En.create(a,s),end:En.create(p,m)};if(En.is(a)&&En.is(s))return{start:a,end:s};throw new Error("Range#create called with invalid arguments["+a+", "+s+", "+p+", "+m+"]")}t.create=r;function i(a){var s=a;return Ze.objectLiteral(s)&&En.is(s.start)&&En.is(s.end)}t.is=i})(Jt||(Jt={}));var fi;(function(t){function r(a,s){return{uri:a,range:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Jt.is(s.range)&&(Ze.string(s.uri)||Ze.undefined(s.uri))}t.is=i})(fi||(fi={}));var cu;(function(t){function r(a,s,p,m){return{targetUri:a,targetRange:s,targetSelectionRange:p,originSelectionRange:m}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Jt.is(s.targetRange)&&Ze.string(s.targetUri)&&(Jt.is(s.targetSelectionRange)||Ze.undefined(s.targetSelectionRange))&&(Jt.is(s.originSelectionRange)||Ze.undefined(s.originSelectionRange))}t.is=i})(cu||(cu={}));var yo;(function(t){function r(a,s,p,m){return{red:a,green:s,blue:p,alpha:m}}t.create=r;function i(a){var s=a;return Ze.numberRange(s.red,0,1)&&Ze.numberRange(s.green,0,1)&&Ze.numberRange(s.blue,0,1)&&Ze.numberRange(s.alpha,0,1)}t.is=i})(yo||(yo={}));var Ws;(function(t){function r(a,s){return{range:a,color:s}}t.create=r;function i(a){var s=a;return Jt.is(s.range)&&yo.is(s.color)}t.is=i})(Ws||(Ws={}));var mo;(function(t){function r(a,s,p){return{label:a,textEdit:s,additionalTextEdits:p}}t.create=r;function i(a){var s=a;return Ze.string(s.label)&&(Ze.undefined(s.textEdit)||Fn.is(s))&&(Ze.undefined(s.additionalTextEdits)||Ze.typedArray(s.additionalTextEdits,Fn.is))}t.is=i})(mo||(mo={}));var xo;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(xo||(xo={}));var Pi;(function(t){function r(a,s,p,m,S){var w={startLine:a,endLine:s};return Ze.defined(p)&&(w.startCharacter=p),Ze.defined(m)&&(w.endCharacter=m),Ze.defined(S)&&(w.kind=S),w}t.create=r;function i(a){var s=a;return Ze.uinteger(s.startLine)&&Ze.uinteger(s.startLine)&&(Ze.undefined(s.startCharacter)||Ze.uinteger(s.startCharacter))&&(Ze.undefined(s.endCharacter)||Ze.uinteger(s.endCharacter))&&(Ze.undefined(s.kind)||Ze.string(s.kind))}t.is=i})(Pi||(Pi={}));var Qi;(function(t){function r(a,s){return{location:a,message:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&fi.is(s.location)&&Ze.string(s.message)}t.is=i})(Qi||(Qi={}));var Dt;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Dt||(Dt={}));var bo;(function(t){t.Unnecessary=1,t.Deprecated=2})(bo||(bo={}));var Zi;(function(t){function r(i){var a=i;return a!=null&&Ze.string(a.href)}t.is=r})(Zi||(Zi={}));var _n;(function(t){function r(a,s,p,m,S,w){var E={range:a,message:s};return Ze.defined(p)&&(E.severity=p),Ze.defined(m)&&(E.code=m),Ze.defined(S)&&(E.source=S),Ze.defined(w)&&(E.relatedInformation=w),E}t.create=r;function i(a){var s,p=a;return Ze.defined(p)&&Jt.is(p.range)&&Ze.string(p.message)&&(Ze.number(p.severity)||Ze.undefined(p.severity))&&(Ze.integer(p.code)||Ze.string(p.code)||Ze.undefined(p.code))&&(Ze.undefined(p.codeDescription)||Ze.string((s=p.codeDescription)===null||s===void 0?void 0:s.href))&&(Ze.string(p.source)||Ze.undefined(p.source))&&(Ze.undefined(p.relatedInformation)||Ze.typedArray(p.relatedInformation,Qi.is))}t.is=i})(_n||(_n={}));var wo;(function(t){function r(a,s){for(var p=[],m=2;m<arguments.length;m++)p[m-2]=arguments[m];var S={title:a,command:s};return Ze.defined(p)&&p.length>0&&(S.arguments=p),S}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.title)&&Ze.string(s.command)}t.is=i})(wo||(wo={}));var Fn;(function(t){function r(p,m){return{range:p,newText:m}}t.replace=r;function i(p,m){return{range:{start:p,end:p},newText:m}}t.insert=i;function a(p){return{range:p,newText:""}}t.del=a;function s(p){var m=p;return Ze.objectLiteral(m)&&Ze.string(m.newText)&&Jt.is(m.range)}t.is=s})(Fn||(Fn={}));var So;(function(t){function r(a,s,p){var m={label:a};return s!==void 0&&(m.needsConfirmation=s),p!==void 0&&(m.description=p),m}t.create=r;function i(a){var s=a;return s!==void 0&&Ze.objectLiteral(s)&&Ze.string(s.label)&&(Ze.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(Ze.string(s.description)||s.description===void 0)}t.is=i})(So||(So={}));var Sr;(function(t){function r(i){var a=i;return typeof a=="string"}t.is=r})(Sr||(Sr={}));var cn;(function(t){function r(p,m,S){return{range:p,newText:m,annotationId:S}}t.replace=r;function i(p,m,S){return{range:{start:p,end:p},newText:m,annotationId:S}}t.insert=i;function a(p,m){return{range:p,newText:"",annotationId:m}}t.del=a;function s(p){var m=p;return Fn.is(m)&&(So.is(m.annotationId)||Sr.is(m.annotationId))}t.is=s})(cn||(cn={}));var Ba;(function(t){function r(a,s){return{textDocument:a,edits:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ii.is(s.textDocument)&&Array.isArray(s.edits)}t.is=i})(Ba||(Ba={}));var _o;(function(t){function r(a,s,p){var m={kind:"create",uri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(m.options=s),p!==void 0&&(m.annotationId=p),m}t.create=r;function i(a){var s=a;return s&&s.kind==="create"&&Ze.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||Ze.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Ze.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Sr.is(s.annotationId))}t.is=i})(_o||(_o={}));var ea;(function(t){function r(a,s,p,m){var S={kind:"rename",oldUri:a,newUri:s};return p!==void 0&&(p.overwrite!==void 0||p.ignoreIfExists!==void 0)&&(S.options=p),m!==void 0&&(S.annotationId=m),S}t.create=r;function i(a){var s=a;return s&&s.kind==="rename"&&Ze.string(s.oldUri)&&Ze.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||Ze.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Ze.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Sr.is(s.annotationId))}t.is=i})(ea||(ea={}));var ta;(function(t){function r(a,s,p){var m={kind:"delete",uri:a};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(m.options=s),p!==void 0&&(m.annotationId=p),m}t.create=r;function i(a){var s=a;return s&&s.kind==="delete"&&Ze.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||Ze.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||Ze.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||Sr.is(s.annotationId))}t.is=i})(ta||(ta={}));var Hs;(function(t){function r(i){var a=i;return a&&(a.changes!==void 0||a.documentChanges!==void 0)&&(a.documentChanges===void 0||a.documentChanges.every(function(s){return Ze.string(s.kind)?_o.is(s)||ea.is(s)||ta.is(s):Ba.is(s)}))}t.is=r})(Hs||(Hs={}));var Ua=function(){function t(r,i){this.edits=r,this.changeAnnotations=i}return t.prototype.insert=function(r,i,a){var s,p;if(a===void 0?s=Fn.insert(r,i):Sr.is(a)?(p=a,s=cn.insert(r,i,a)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(a),s=cn.insert(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.replace=function(r,i,a){var s,p;if(a===void 0?s=Fn.replace(r,i):Sr.is(a)?(p=a,s=cn.replace(r,i,a)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(a),s=cn.replace(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.delete=function(r,i){var a,s;if(i===void 0?a=Fn.del(r):Sr.is(i)?(s=i,a=cn.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),a=cn.del(r,s)),this.edits.push(a),s!==void 0)return s},t.prototype.add=function(r){this.edits.push(r)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),on=function(){function t(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(r,i){var a;if(Sr.is(r)?a=r:(a=this.nextId(),i=r),this._annotations[a]!==void 0)throw new Error("Id "+a+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+a);return this._annotations[a]=i,this._size++,a},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),Hr=function(){function t(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new on(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(a){if(Ba.is(a)){var s=new Ua(a.edits,i._changeAnnotations);i._textEditChanges[a.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(a){var s=new Ua(r.changes[a]);i._textEditChanges[a]=s})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(r){if(Ii.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:r.uri,version:r.version},a=this._textEditChanges[i.uri];if(!a){var s=[],p={textDocument:i,edits:s};this._workspaceEdit.documentChanges.push(p),a=new Ua(s,this._changeAnnotations),this._textEditChanges[i.uri]=a}return a}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var a=this._textEditChanges[r];if(!a){var s=[];this._workspaceEdit.changes[r]=s,a=new Ua(s),this._textEditChanges[r]=a}return a}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new on,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(r,i,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;So.is(i)||Sr.is(i)?s=i:a=i;var p,m;if(s===void 0?p=_o.create(r,a):(m=Sr.is(s)?s:this._changeAnnotations.manage(s),p=_o.create(r,a,m)),this._workspaceEdit.documentChanges.push(p),m!==void 0)return m},t.prototype.renameFile=function(r,i,a,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var p;So.is(a)||Sr.is(a)?p=a:s=a;var m,S;if(p===void 0?m=ea.create(r,i,s):(S=Sr.is(p)?p:this._changeAnnotations.manage(p),m=ea.create(r,i,s,S)),this._workspaceEdit.documentChanges.push(m),S!==void 0)return S},t.prototype.deleteFile=function(r,i,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;So.is(i)||Sr.is(i)?s=i:a=i;var p,m;if(s===void 0?p=ta.create(r,a):(m=Sr.is(s)?s:this._changeAnnotations.manage(s),p=ta.create(r,a,m)),this._workspaceEdit.documentChanges.push(p),m!==void 0)return m},t}(),$r;(function(t){function r(a){return{uri:a}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.uri)}t.is=i})($r||($r={}));var Mr;(function(t){function r(a,s){return{uri:a,version:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.uri)&&Ze.integer(s.version)}t.is=i})(Mr||(Mr={}));var Ii;(function(t){function r(a,s){return{uri:a,version:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.uri)&&(s.version===null||Ze.integer(s.version))}t.is=i})(Ii||(Ii={}));var du;(function(t){function r(a,s,p,m){return{uri:a,languageId:s,version:p,text:m}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.uri)&&Ze.string(s.languageId)&&Ze.integer(s.version)&&Ze.string(s.text)}t.is=i})(du||(du={}));var kn;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(kn||(kn={})),function(t){function r(i){var a=i;return a===t.PlainText||a===t.Markdown}t.is=r}(kn||(kn={}));var zs;(function(t){function r(i){var a=i;return Ze.objectLiteral(i)&&kn.is(a.kind)&&Ze.string(a.value)}t.is=r})(zs||(zs={}));var Cn;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(Cn||(Cn={}));var Vr;(function(t){t.PlainText=1,t.Snippet=2})(Vr||(Vr={}));var ja;(function(t){t.Deprecated=1})(ja||(ja={}));var Gs;(function(t){function r(a,s,p){return{newText:a,insert:s,replace:p}}t.create=r;function i(a){var s=a;return s&&Ze.string(s.newText)&&Jt.is(s.insert)&&Jt.is(s.replace)}t.is=i})(Gs||(Gs={}));var Va;(function(t){t.asIs=1,t.adjustIndentation=2})(Va||(Va={}));var $s;(function(t){function r(i){return{label:i}}t.create=r})($s||($s={}));var Wa;(function(t){function r(i,a){return{items:i||[],isIncomplete:!!a}}t.create=r})(Wa||(Wa={}));var Ao;(function(t){function r(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(a){var s=a;return Ze.string(s)||Ze.objectLiteral(s)&&Ze.string(s.language)&&Ze.string(s.value)}t.is=i})(Ao||(Ao={}));var Ks;(function(t){function r(i){var a=i;return!!a&&Ze.objectLiteral(a)&&(zs.is(a.contents)||Ao.is(a.contents)||Ze.typedArray(a.contents,Ao.is))&&(i.range===void 0||Jt.is(i.range))}t.is=r})(Ks||(Ks={}));var Ys;(function(t){function r(i,a){return a?{label:i,documentation:a}:{label:i}}t.create=r})(Ys||(Ys={}));var Ha;(function(t){function r(i,a){for(var s=[],p=2;p<arguments.length;p++)s[p-2]=arguments[p];var m={label:i};return Ze.defined(a)&&(m.documentation=a),Ze.defined(s)?m.parameters=s:m.parameters=[],m}t.create=r})(Ha||(Ha={}));var Js;(function(t){t.Text=1,t.Read=2,t.Write=3})(Js||(Js={}));var Eo;(function(t){function r(i,a){var s={range:i};return Ze.number(a)&&(s.kind=a),s}t.create=r})(Eo||(Eo={}));var ei;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(ei||(ei={}));var ra;(function(t){t.Deprecated=1})(ra||(ra={}));var dn;(function(t){function r(i,a,s,p,m){var S={name:i,kind:a,location:{uri:p,range:s}};return m&&(S.containerName=m),S}t.create=r})(dn||(dn={}));var Xs;(function(t){function r(a,s,p,m,S,w){var E={name:a,detail:s,kind:p,range:m,selectionRange:S};return w!==void 0&&(E.children=w),E}t.create=r;function i(a){var s=a;return s&&Ze.string(s.name)&&Ze.number(s.kind)&&Jt.is(s.range)&&Jt.is(s.selectionRange)&&(s.detail===void 0||Ze.string(s.detail))&&(s.deprecated===void 0||Ze.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}t.is=i})(Xs||(Xs={}));var pu;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(pu||(pu={}));var Qs;(function(t){function r(a,s){var p={diagnostics:a};return s!=null&&(p.only=s),p}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.typedArray(s.diagnostics,_n.is)&&(s.only===void 0||Ze.typedArray(s.only,Ze.string))}t.is=i})(Qs||(Qs={}));var pn;(function(t){function r(a,s,p){var m={title:a},S=!0;return typeof s=="string"?(S=!1,m.kind=s):wo.is(s)?m.command=s:m.edit=s,S&&p!==void 0&&(m.kind=p),m}t.create=r;function i(a){var s=a;return s&&Ze.string(s.title)&&(s.diagnostics===void 0||Ze.typedArray(s.diagnostics,_n.is))&&(s.kind===void 0||Ze.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||wo.is(s.command))&&(s.isPreferred===void 0||Ze.boolean(s.isPreferred))&&(s.edit===void 0||Hs.is(s.edit))}t.is=i})(pn||(pn={}));var qt;(function(t){function r(a,s){var p={range:a};return Ze.defined(s)&&(p.data=s),p}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Jt.is(s.range)&&(Ze.undefined(s.command)||wo.is(s.command))}t.is=i})(qt||(qt={}));var Rn;(function(t){function r(a,s){return{tabSize:a,insertSpaces:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.uinteger(s.tabSize)&&Ze.boolean(s.insertSpaces)}t.is=i})(Rn||(Rn={}));var ci;(function(t){function r(a,s,p){return{range:a,target:s,data:p}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Jt.is(s.range)&&(Ze.undefined(s.target)||Ze.string(s.target))}t.is=i})(ci||(ci={}));var Hn;(function(t){function r(a,s){return{range:a,parent:s}}t.create=r;function i(a){var s=a;return s!==void 0&&Jt.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=i})(Hn||(Hn={}));var $f=null,za;(function(t){function r(p,m,S,w){return new hu(p,m,S,w)}t.create=r;function i(p){var m=p;return!!(Ze.defined(m)&&Ze.string(m.uri)&&(Ze.undefined(m.languageId)||Ze.string(m.languageId))&&Ze.uinteger(m.lineCount)&&Ze.func(m.getText)&&Ze.func(m.positionAt)&&Ze.func(m.offsetAt))}t.is=i;function a(p,m){for(var S=p.getText(),w=s(m,function(le,ve){var pe=le.range.start.line-ve.range.start.line;return pe===0?le.range.start.character-ve.range.start.character:pe}),E=S.length,R=w.length-1;R>=0;R--){var J=w[R],oe=p.offsetAt(J.range.start),re=p.offsetAt(J.range.end);if(re<=E)S=S.substring(0,oe)+J.newText+S.substring(re,S.length);else throw new Error("Overlapping edit");E=oe}return S}t.applyEdits=a;function s(p,m){if(p.length<=1)return p;var S=p.length/2|0,w=p.slice(0,S),E=p.slice(S);s(w,m),s(E,m);for(var R=0,J=0,oe=0;R<w.length&&J<E.length;){var re=m(w[R],E[J]);re<=0?p[oe++]=w[R++]:p[oe++]=E[J++]}for(;R<w.length;)p[oe++]=w[R++];for(;J<E.length;)p[oe++]=E[J++];return p}})(za||(za={}));var hu=function(){function t(r,i,a,s){this._uri=r,this._languageId=i,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(i,a)}return this._content},t.prototype.update=function(r,i){this._content=r.text,this._version=i,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],i=this._content,a=!0,s=0;s<i.length;s++){a&&(r.push(s),a=!1);var p=i.charAt(s);a=p==="\r"||p===`
166
+ `}function Da(t,r){return`\r
167
+ `.indexOf(t.charAt(r))!==-1}var po;(function(t){t.DEFAULT={allowTrailingComma:!1}})(po||(po={}));function iu(t,r){var i=[],a=new Object,s=void 0,p={value:{},offset:0,length:0,type:"object",parent:void 0},m=!1;function A(w,E,M,Y){p.value=w,p.offset=E,p.length=M,p.type=Y,p.colonOffset=void 0,s=p}try{vo(t,{onObjectBegin:function(w,E){if(r<=w)throw a;s=void 0,m=r>w,i.push("")},onObjectProperty:function(w,E,M){if(r<E||(A(w,E,M,"property"),i[i.length-1]=w,r<=E+M))throw a},onObjectEnd:function(w,E){if(r<=w)throw a;s=void 0,i.pop()},onArrayBegin:function(w,E){if(r<=w)throw a;s=void 0,i.push(0)},onArrayEnd:function(w,E){if(r<=w)throw a;s=void 0,i.pop()},onLiteralValue:function(w,E,M){if(r<E||(A(w,E,M,Us(w)),r<=E+M))throw a},onSeparator:function(w,E,M){if(r<=E)throw a;if(w===":"&&s&&s.type==="property")s.colonOffset=E,m=!1,s=void 0;else if(w===","){var Y=i[i.length-1];typeof Y=="number"?i[i.length-1]=Y+1:(m=!0,i[i.length-1]=""),s=void 0}}})}catch(w){if(w!==a)throw w}return{path:i,previousNode:s,isAtPropertyKey:m,matches:function(w){for(var E=0,M=0;E<w.length&&M<i.length;M++)if(w[E]===i[M]||w[E]==="*")E++;else if(w[E]!=="**")return!1;return E===w.length}}}function Ns(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=po.DEFAULT);var a=null,s=[],p=[];function m(w){Array.isArray(s)?s.push(w):a!==null&&(s[a]=w)}var A={onObjectBegin:function(){var w={};m(w),p.push(s),s=w,a=null},onObjectProperty:function(w){a=w},onObjectEnd:function(){s=p.pop()},onArrayBegin:function(){var w=[];m(w),p.push(s),s=w,a=null},onArrayEnd:function(){s=p.pop()},onLiteralValue:m,onError:function(w,E,M){r.push({error:w,offset:E,length:M})}};return vo(t,A,i),s[0]}function jf(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=po.DEFAULT);var a={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(w){a.type==="property"&&(a.length=w-a.offset,a=a.parent)}function p(w){return a.children.push(w),w}var m={onObjectBegin:function(w){a=p({type:"object",offset:w,length:-1,parent:a,children:[]})},onObjectProperty:function(w,E,M){a=p({type:"property",offset:E,length:-1,parent:a,children:[]}),a.children.push({type:"string",value:w,offset:E,length:M,parent:a})},onObjectEnd:function(w,E){s(w+E),a.length=w+E-a.offset,a=a.parent,s(w+E)},onArrayBegin:function(w,E){a=p({type:"array",offset:w,length:-1,parent:a,children:[]})},onArrayEnd:function(w,E){a.length=w+E-a.offset,a=a.parent,s(w+E)},onLiteralValue:function(w,E,M){p({type:Us(w),offset:E,length:M,parent:a,value:w}),s(E+M)},onSeparator:function(w,E,M){a.type==="property"&&(w===":"?a.colonOffset=E:w===","&&s(E))},onError:function(w,E,M){r.push({error:w,offset:E,length:M})}};vo(t,m,i);var A=a.children[0];return A&&delete A.parent,A}function Vf(t,r){if(!!t){for(var i=t,a=0,s=r;a<s.length;a++){var p=s[a];if(typeof p=="string"){if(i.type!=="object"||!Array.isArray(i.children))return;for(var m=!1,A=0,w=i.children;A<w.length;A++){var E=w[A];if(Array.isArray(E.children)&&E.children[0].value===p){i=E.children[1],m=!0;break}}if(!m)return}else{var M=p;if(i.type!=="array"||M<0||!Array.isArray(i.children)||M>=i.children.length)return;i=i.children[M]}}return i}}function ou(t){if(!t.parent||!t.parent.children)return[];var r=ou(t.parent);if(t.parent.type==="property"){var i=t.parent.children[0].value;r.push(i)}else if(t.parent.type==="array"){var a=t.parent.children.indexOf(t);a!==-1&&r.push(a)}return r}function ui(t){switch(t.type){case"array":return t.children.map(ui);case"object":for(var r=Object.create(null),i=0,a=t.children;i<a.length;i++){var s=a[i],p=s.children[1];p&&(r[s.children[0].value]=ui(p))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function ho(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}function Yi(t,r,i){if(i===void 0&&(i=!1),ho(t,r,i)){var a=t.children;if(Array.isArray(a))for(var s=0;s<a.length&&a[s].offset<=r;s++){var p=Yi(a[s],r,i);if(p)return p}return t}}function vo(t,r,i){i===void 0&&(i=po.DEFAULT);var a=Qo(t,!1);function s(We){return We?function(){return We(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}function p(We){return We?function(Je){return We(Je,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}var m=s(r.onObjectBegin),A=p(r.onObjectProperty),w=s(r.onObjectEnd),E=s(r.onArrayBegin),M=s(r.onArrayEnd),Y=p(r.onLiteralValue),ae=p(r.onSeparator),ne=s(r.onComment),ue=p(r.onError),ge=i&&i.disallowComments,he=i&&i.allowTrailingComma;function Se(){for(;;){var We=a.scan();switch(a.getTokenError()){case 4:me(14);break;case 5:me(15);break;case 3:me(13);break;case 1:ge||me(11);break;case 2:me(12);break;case 6:me(16);break}switch(We){case 12:case 13:ge?me(10):ne();break;case 16:me(1);break;case 15:case 14:break;default:return We}}}function me(We,Je,Ge){if(Je===void 0&&(Je=[]),Ge===void 0&&(Ge=[]),ue(We),Je.length+Ge.length>0)for(var rt=a.getToken();rt!==17;){if(Je.indexOf(rt)!==-1){Se();break}else if(Ge.indexOf(rt)!==-1)break;rt=Se()}}function Fe(We){var Je=a.getTokenValue();return We?Y(Je):A(Je),Se(),!0}function Ke(){switch(a.getToken()){case 11:var We=a.getTokenValue(),Je=Number(We);isNaN(Je)&&(me(2),Je=0),Y(Je);break;case 7:Y(null);break;case 8:Y(!0);break;case 9:Y(!1);break;default:return!1}return Se(),!0}function Ue(){return a.getToken()!==10?(me(3,[],[2,5]),!1):(Fe(!1),a.getToken()===6?(ae(":"),Se(),je()||me(4,[],[2,5])):me(5,[],[2,5]),!0)}function $e(){m(),Se();for(var We=!1;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){if(We||me(4,[],[]),ae(","),Se(),a.getToken()===2&&he)break}else We&&me(6,[],[]);Ue()||me(4,[],[2,5]),We=!0}return w(),a.getToken()!==2?me(7,[2],[]):Se(),!0}function Be(){E(),Se();for(var We=!1;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){if(We||me(4,[],[]),ae(","),Se(),a.getToken()===4&&he)break}else We&&me(6,[],[]);je()||me(4,[],[4,5]),We=!0}return M(),a.getToken()!==4?me(8,[4],[]):Se(),!0}function je(){switch(a.getToken()){case 3:return Be();case 1:return $e();case 10:return Fe(!0);default:return Ke()}}return Se(),a.getToken()===17?i.allowEmptyContent?!0:(me(4,[],[]),!1):je()?(a.getToken()!==17&&me(9,[],[]),!0):(me(4,[],[]),!1)}function Bs(t,r){var i=Qo(t),a=[],s,p=0,m;do switch(m=i.getPosition(),s=i.scan(),s){case 12:case 13:case 17:p!==m&&a.push(t.substring(p,m)),r!==void 0&&a.push(i.getTokenValue().replace(/[^\r\n]/g,r)),p=i.getPosition();break}while(s!==17);return a.join("")}function Us(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(t){if(Array.isArray(t))return"array"}else return"null";return"object"}default:return"null"}}function au(t,r,i){return Ji(t,r,void 0,i)}function Ji(t,r,i,a){for(var s,p=r.slice(),m=[],A=parseTree(t,m),w=void 0,E=void 0;p.length>0&&(E=p.pop(),w=findNodeAtLocation(A,p),w===void 0&&i!==void 0);)typeof E=="string"?i=(s={},s[E]=i,s):i=[i];if(w)if(w.type==="object"&&typeof E=="string"&&Array.isArray(w.children)){var M=findNodeAtLocation(w,[E]);if(M!==void 0)if(i===void 0){if(!M.parent)throw new Error("Malformed AST");var Y=w.children.indexOf(M.parent),ae=void 0,ne=M.parent.offset+M.parent.length;if(Y>0){var ue=w.children[Y-1];ae=ue.offset+ue.length}else if(ae=w.offset+1,w.children.length>1){var ge=w.children[1];ne=ge.offset}return wn(t,{offset:ae,length:ne-ae,content:""},a)}else return wn(t,{offset:M.offset,length:M.length,content:JSON.stringify(i)},a);else{if(i===void 0)return[];var he=JSON.stringify(E)+": "+JSON.stringify(i),Se=a.getInsertionIndex?a.getInsertionIndex(w.children.map(function(We){return We.children[0].value})):w.children.length,me=void 0;if(Se>0){var ue=w.children[Se-1];me={offset:ue.offset+ue.length,length:0,content:","+he}}else w.children.length===0?me={offset:w.offset+1,length:0,content:he}:me={offset:w.offset+1,length:0,content:he+","};return wn(t,me,a)}}else if(w.type==="array"&&typeof E=="number"&&Array.isArray(w.children)){var Fe=E;if(Fe===-1){var he=""+JSON.stringify(i),me=void 0;if(w.children.length===0)me={offset:w.offset+1,length:0,content:he};else{var ue=w.children[w.children.length-1];me={offset:ue.offset+ue.length,length:0,content:","+he}}return wn(t,me,a)}else if(i===void 0&&w.children.length>=0){var Ke=E,Ue=w.children[Ke],me=void 0;if(w.children.length===1)me={offset:w.offset+1,length:w.length-2,content:""};else if(w.children.length-1===Ke){var ue=w.children[Ke-1],$e=ue.offset+ue.length,Be=w.offset+w.length;me={offset:$e,length:Be-2-$e,content:""}}else me={offset:Ue.offset,length:w.children[Ke+1].offset-Ue.offset,content:""};return wn(t,me,a)}else if(i!==void 0){var me=void 0,he=""+JSON.stringify(i);if(!a.isArrayInsertion&&w.children.length>E){var je=w.children[E];me={offset:je.offset,length:je.length,content:he}}else if(w.children.length===0||E===0)me={offset:w.offset+1,length:0,content:w.children.length===0?he:he+","};else{var Se=E>w.children.length?w.children.length:E,ue=w.children[Se-1];me={offset:ue.offset+ue.length,length:0,content:","+he}}return wn(t,me,a)}else throw new Error("Can not "+(i===void 0?"remove":a.isArrayInsertion?"insert":"modify")+" Array index "+Fe+" as length is not sufficient")}else throw new Error("Can not add "+(typeof E!="number"?"index":"property")+" to parent of type "+w.type);else{if(i===void 0)throw new Error("Can not delete in empty document");return wn(t,{offset:A?A.offset:0,length:A?A.length:0,content:JSON.stringify(i)},a)}}function wn(t,r,i){if(!i.formattingOptions)return[r];var a=qr(t,r),s=r.offset,p=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(a,s-1);)s--;for(;p<a.length&&!isEOL(a,p);)p++}for(var m=format(a,{offset:s,length:p-s},i.formattingOptions),A=m.length-1;A>=0;A--){var w=m[A];a=qr(a,w),s=Math.min(s,w.offset),p=Math.max(p,w.offset+w.length),p+=w.content.length-w.length}var E=t.length-(a.length-p)-s;return[{offset:s,length:E,content:a.substring(s,p)}]}function qr(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function Xi(t,r){return`\r
168
+ `.indexOf(t.charAt(r))!==-1}var Sn=Qo,js=iu,Wf=Ns,Hf=jf,Na=Vf,su=Yi,Vs=ou,Ba=ui,Cd=vo,lu=Bs;function zf(t){switch(t){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function Ws(t,r,i){return La(t,r,i)}function uu(t,r,i,a){return edit.setProperty(t,r,i,a)}function _o(t,r){for(var i=r.length-1;i>=0;i--)t=edit.applyEdit(t,r[i]);return t}function Ti(t,r){if(t===r)return!0;if(t==null||r===null||r===void 0||typeof t!=typeof r||typeof t!="object"||Array.isArray(t)!==Array.isArray(r))return!1;var i,a;if(Array.isArray(t)){if(t.length!==r.length)return!1;for(i=0;i<t.length;i++)if(!Ti(t[i],r[i]))return!1}else{var s=[];for(a in t)s.push(a);s.sort();var p=[];for(a in r)p.push(a);if(p.sort(),!Ti(s,p))return!1;for(i=0;i<s.length;i++)if(!Ti(t[s[i]],r[s[i]]))return!1}return!0}function fn(t){return typeof t=="number"}function Pn(t){return typeof t!="undefined"}function Zn(t){return typeof t=="boolean"}function Gf(t){return typeof t=="string"}var fu;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(fu||(fu={}));var go;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(go||(go={}));var An;(function(t){function r(a,s){return a===Number.MAX_VALUE&&(a=go.MAX_VALUE),s===Number.MAX_VALUE&&(s=go.MAX_VALUE),{line:a,character:s}}t.create=r;function i(a){var s=a;return Ze.objectLiteral(s)&&Ze.uinteger(s.line)&&Ze.uinteger(s.character)}t.is=i})(An||(An={}));var Jt;(function(t){function r(a,s,p,m){if(Ze.uinteger(a)&&Ze.uinteger(s)&&Ze.uinteger(p)&&Ze.uinteger(m))return{start:An.create(a,s),end:An.create(p,m)};if(An.is(a)&&An.is(s))return{start:a,end:s};throw new Error("Range#create called with invalid arguments["+a+", "+s+", "+p+", "+m+"]")}t.create=r;function i(a){var s=a;return Ze.objectLiteral(s)&&An.is(s.start)&&An.is(s.end)}t.is=i})(Jt||(Jt={}));var fi;(function(t){function r(a,s){return{uri:a,range:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Jt.is(s.range)&&(Ze.string(s.uri)||Ze.undefined(s.uri))}t.is=i})(fi||(fi={}));var cu;(function(t){function r(a,s,p,m){return{targetUri:a,targetRange:s,targetSelectionRange:p,originSelectionRange:m}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Jt.is(s.targetRange)&&Ze.string(s.targetUri)&&(Jt.is(s.targetSelectionRange)||Ze.undefined(s.targetSelectionRange))&&(Jt.is(s.originSelectionRange)||Ze.undefined(s.originSelectionRange))}t.is=i})(cu||(cu={}));var yo;(function(t){function r(a,s,p,m){return{red:a,green:s,blue:p,alpha:m}}t.create=r;function i(a){var s=a;return Ze.numberRange(s.red,0,1)&&Ze.numberRange(s.green,0,1)&&Ze.numberRange(s.blue,0,1)&&Ze.numberRange(s.alpha,0,1)}t.is=i})(yo||(yo={}));var Hs;(function(t){function r(a,s){return{range:a,color:s}}t.create=r;function i(a){var s=a;return Jt.is(s.range)&&yo.is(s.color)}t.is=i})(Hs||(Hs={}));var mo;(function(t){function r(a,s,p){return{label:a,textEdit:s,additionalTextEdits:p}}t.create=r;function i(a){var s=a;return Ze.string(s.label)&&(Ze.undefined(s.textEdit)||In.is(s))&&(Ze.undefined(s.additionalTextEdits)||Ze.typedArray(s.additionalTextEdits,In.is))}t.is=i})(mo||(mo={}));var xo;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(xo||(xo={}));var Pi;(function(t){function r(a,s,p,m,A){var w={startLine:a,endLine:s};return Ze.defined(p)&&(w.startCharacter=p),Ze.defined(m)&&(w.endCharacter=m),Ze.defined(A)&&(w.kind=A),w}t.create=r;function i(a){var s=a;return Ze.uinteger(s.startLine)&&Ze.uinteger(s.startLine)&&(Ze.undefined(s.startCharacter)||Ze.uinteger(s.startCharacter))&&(Ze.undefined(s.endCharacter)||Ze.uinteger(s.endCharacter))&&(Ze.undefined(s.kind)||Ze.string(s.kind))}t.is=i})(Pi||(Pi={}));var Qi;(function(t){function r(a,s){return{location:a,message:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&fi.is(s.location)&&Ze.string(s.message)}t.is=i})(Qi||(Qi={}));var Nt;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Nt||(Nt={}));var bo;(function(t){t.Unnecessary=1,t.Deprecated=2})(bo||(bo={}));var Zi;(function(t){function r(i){var a=i;return a!=null&&Ze.string(a.href)}t.is=r})(Zi||(Zi={}));var _n;(function(t){function r(a,s,p,m,A,w){var E={range:a,message:s};return Ze.defined(p)&&(E.severity=p),Ze.defined(m)&&(E.code=m),Ze.defined(A)&&(E.source=A),Ze.defined(w)&&(E.relatedInformation=w),E}t.create=r;function i(a){var s,p=a;return Ze.defined(p)&&Jt.is(p.range)&&Ze.string(p.message)&&(Ze.number(p.severity)||Ze.undefined(p.severity))&&(Ze.integer(p.code)||Ze.string(p.code)||Ze.undefined(p.code))&&(Ze.undefined(p.codeDescription)||Ze.string((s=p.codeDescription)===null||s===void 0?void 0:s.href))&&(Ze.string(p.source)||Ze.undefined(p.source))&&(Ze.undefined(p.relatedInformation)||Ze.typedArray(p.relatedInformation,Qi.is))}t.is=i})(_n||(_n={}));var wo;(function(t){function r(a,s){for(var p=[],m=2;m<arguments.length;m++)p[m-2]=arguments[m];var A={title:a,command:s};return Ze.defined(p)&&p.length>0&&(A.arguments=p),A}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.title)&&Ze.string(s.command)}t.is=i})(wo||(wo={}));var In;(function(t){function r(p,m){return{range:p,newText:m}}t.replace=r;function i(p,m){return{range:{start:p,end:p},newText:m}}t.insert=i;function a(p){return{range:p,newText:""}}t.del=a;function s(p){var m=p;return Ze.objectLiteral(m)&&Ze.string(m.newText)&&Jt.is(m.range)}t.is=s})(In||(In={}));var So;(function(t){function r(a,s,p){var m={label:a};return s!==void 0&&(m.needsConfirmation=s),p!==void 0&&(m.description=p),m}t.create=r;function i(a){var s=a;return s!==void 0&&Ze.objectLiteral(s)&&Ze.string(s.label)&&(Ze.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(Ze.string(s.description)||s.description===void 0)}t.is=i})(So||(So={}));var Sr;(function(t){function r(i){var a=i;return typeof a=="string"}t.is=r})(Sr||(Sr={}));var cn;(function(t){function r(p,m,A){return{range:p,newText:m,annotationId:A}}t.replace=r;function i(p,m,A){return{range:{start:p,end:p},newText:m,annotationId:A}}t.insert=i;function a(p,m){return{range:p,newText:"",annotationId:m}}t.del=a;function s(p){var m=p;return In.is(m)&&(So.is(m.annotationId)||Sr.is(m.annotationId))}t.is=s})(cn||(cn={}));var Ua;(function(t){function r(a,s){return{textDocument:a,edits:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ii.is(s.textDocument)&&Array.isArray(s.edits)}t.is=i})(Ua||(Ua={}));var qo;(function(t){function r(a,s,p){var m={kind:"create",uri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(m.options=s),p!==void 0&&(m.annotationId=p),m}t.create=r;function i(a){var s=a;return s&&s.kind==="create"&&Ze.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||Ze.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Ze.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Sr.is(s.annotationId))}t.is=i})(qo||(qo={}));var ea;(function(t){function r(a,s,p,m){var A={kind:"rename",oldUri:a,newUri:s};return p!==void 0&&(p.overwrite!==void 0||p.ignoreIfExists!==void 0)&&(A.options=p),m!==void 0&&(A.annotationId=m),A}t.create=r;function i(a){var s=a;return s&&s.kind==="rename"&&Ze.string(s.oldUri)&&Ze.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||Ze.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Ze.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Sr.is(s.annotationId))}t.is=i})(ea||(ea={}));var ta;(function(t){function r(a,s,p){var m={kind:"delete",uri:a};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(m.options=s),p!==void 0&&(m.annotationId=p),m}t.create=r;function i(a){var s=a;return s&&s.kind==="delete"&&Ze.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||Ze.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||Ze.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||Sr.is(s.annotationId))}t.is=i})(ta||(ta={}));var zs;(function(t){function r(i){var a=i;return a&&(a.changes!==void 0||a.documentChanges!==void 0)&&(a.documentChanges===void 0||a.documentChanges.every(function(s){return Ze.string(s.kind)?qo.is(s)||ea.is(s)||ta.is(s):Ua.is(s)}))}t.is=r})(zs||(zs={}));var ja=function(){function t(r,i){this.edits=r,this.changeAnnotations=i}return t.prototype.insert=function(r,i,a){var s,p;if(a===void 0?s=In.insert(r,i):Sr.is(a)?(p=a,s=cn.insert(r,i,a)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(a),s=cn.insert(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.replace=function(r,i,a){var s,p;if(a===void 0?s=In.replace(r,i):Sr.is(a)?(p=a,s=cn.replace(r,i,a)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(a),s=cn.replace(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.delete=function(r,i){var a,s;if(i===void 0?a=In.del(r):Sr.is(i)?(s=i,a=cn.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),a=cn.del(r,s)),this.edits.push(a),s!==void 0)return s},t.prototype.add=function(r){this.edits.push(r)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),on=function(){function t(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(r,i){var a;if(Sr.is(r)?a=r:(a=this.nextId(),i=r),this._annotations[a]!==void 0)throw new Error("Id "+a+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+a);return this._annotations[a]=i,this._size++,a},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),Hr=function(){function t(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new on(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(a){if(Ua.is(a)){var s=new ja(a.edits,i._changeAnnotations);i._textEditChanges[a.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(a){var s=new ja(r.changes[a]);i._textEditChanges[a]=s})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(r){if(Ii.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:r.uri,version:r.version},a=this._textEditChanges[i.uri];if(!a){var s=[],p={textDocument:i,edits:s};this._workspaceEdit.documentChanges.push(p),a=new ja(s,this._changeAnnotations),this._textEditChanges[i.uri]=a}return a}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var a=this._textEditChanges[r];if(!a){var s=[];this._workspaceEdit.changes[r]=s,a=new ja(s),this._textEditChanges[r]=a}return a}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new on,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(r,i,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;So.is(i)||Sr.is(i)?s=i:a=i;var p,m;if(s===void 0?p=qo.create(r,a):(m=Sr.is(s)?s:this._changeAnnotations.manage(s),p=qo.create(r,a,m)),this._workspaceEdit.documentChanges.push(p),m!==void 0)return m},t.prototype.renameFile=function(r,i,a,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var p;So.is(a)||Sr.is(a)?p=a:s=a;var m,A;if(p===void 0?m=ea.create(r,i,s):(A=Sr.is(p)?p:this._changeAnnotations.manage(p),m=ea.create(r,i,s,A)),this._workspaceEdit.documentChanges.push(m),A!==void 0)return A},t.prototype.deleteFile=function(r,i,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;So.is(i)||Sr.is(i)?s=i:a=i;var p,m;if(s===void 0?p=ta.create(r,a):(m=Sr.is(s)?s:this._changeAnnotations.manage(s),p=ta.create(r,a,m)),this._workspaceEdit.documentChanges.push(p),m!==void 0)return m},t}(),$r;(function(t){function r(a){return{uri:a}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.uri)}t.is=i})($r||($r={}));var Rr;(function(t){function r(a,s){return{uri:a,version:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.uri)&&Ze.integer(s.version)}t.is=i})(Rr||(Rr={}));var Ii;(function(t){function r(a,s){return{uri:a,version:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.uri)&&(s.version===null||Ze.integer(s.version))}t.is=i})(Ii||(Ii={}));var du;(function(t){function r(a,s,p,m){return{uri:a,languageId:s,version:p,text:m}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.uri)&&Ze.string(s.languageId)&&Ze.integer(s.version)&&Ze.string(s.text)}t.is=i})(du||(du={}));var Fn;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(Fn||(Fn={})),function(t){function r(i){var a=i;return a===t.PlainText||a===t.Markdown}t.is=r}(Fn||(Fn={}));var Gs;(function(t){function r(i){var a=i;return Ze.objectLiteral(i)&&Fn.is(a.kind)&&Ze.string(a.value)}t.is=r})(Gs||(Gs={}));var En;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(En||(En={}));var Vr;(function(t){t.PlainText=1,t.Snippet=2})(Vr||(Vr={}));var Va;(function(t){t.Deprecated=1})(Va||(Va={}));var $s;(function(t){function r(a,s,p){return{newText:a,insert:s,replace:p}}t.create=r;function i(a){var s=a;return s&&Ze.string(s.newText)&&Jt.is(s.insert)&&Jt.is(s.replace)}t.is=i})($s||($s={}));var Wa;(function(t){t.asIs=1,t.adjustIndentation=2})(Wa||(Wa={}));var Ks;(function(t){function r(i){return{label:i}}t.create=r})(Ks||(Ks={}));var Ha;(function(t){function r(i,a){return{items:i||[],isIncomplete:!!a}}t.create=r})(Ha||(Ha={}));var Ao;(function(t){function r(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(a){var s=a;return Ze.string(s)||Ze.objectLiteral(s)&&Ze.string(s.language)&&Ze.string(s.value)}t.is=i})(Ao||(Ao={}));var Ys;(function(t){function r(i){var a=i;return!!a&&Ze.objectLiteral(a)&&(Gs.is(a.contents)||Ao.is(a.contents)||Ze.typedArray(a.contents,Ao.is))&&(i.range===void 0||Jt.is(i.range))}t.is=r})(Ys||(Ys={}));var Js;(function(t){function r(i,a){return a?{label:i,documentation:a}:{label:i}}t.create=r})(Js||(Js={}));var za;(function(t){function r(i,a){for(var s=[],p=2;p<arguments.length;p++)s[p-2]=arguments[p];var m={label:i};return Ze.defined(a)&&(m.documentation=a),Ze.defined(s)?m.parameters=s:m.parameters=[],m}t.create=r})(za||(za={}));var Xs;(function(t){t.Text=1,t.Read=2,t.Write=3})(Xs||(Xs={}));var Eo;(function(t){function r(i,a){var s={range:i};return Ze.number(a)&&(s.kind=a),s}t.create=r})(Eo||(Eo={}));var qn;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(qn||(qn={}));var ra;(function(t){t.Deprecated=1})(ra||(ra={}));var ei;(function(t){function r(i,a,s,p,m){var A={name:i,kind:a,location:{uri:p,range:s}};return m&&(A.containerName=m),A}t.create=r})(ei||(ei={}));var Qs;(function(t){function r(a,s,p,m,A,w){var E={name:a,detail:s,kind:p,range:m,selectionRange:A};return w!==void 0&&(E.children=w),E}t.create=r;function i(a){var s=a;return s&&Ze.string(s.name)&&Ze.number(s.kind)&&Jt.is(s.range)&&Jt.is(s.selectionRange)&&(s.detail===void 0||Ze.string(s.detail))&&(s.deprecated===void 0||Ze.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}t.is=i})(Qs||(Qs={}));var pu;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(pu||(pu={}));var Zs;(function(t){function r(a,s){var p={diagnostics:a};return s!=null&&(p.only=s),p}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.typedArray(s.diagnostics,_n.is)&&(s.only===void 0||Ze.typedArray(s.only,Ze.string))}t.is=i})(Zs||(Zs={}));var dn;(function(t){function r(a,s,p){var m={title:a},A=!0;return typeof s=="string"?(A=!1,m.kind=s):wo.is(s)?m.command=s:m.edit=s,A&&p!==void 0&&(m.kind=p),m}t.create=r;function i(a){var s=a;return s&&Ze.string(s.title)&&(s.diagnostics===void 0||Ze.typedArray(s.diagnostics,_n.is))&&(s.kind===void 0||Ze.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||wo.is(s.command))&&(s.isPreferred===void 0||Ze.boolean(s.isPreferred))&&(s.edit===void 0||zs.is(s.edit))}t.is=i})(dn||(dn={}));var _t;(function(t){function r(a,s){var p={range:a};return Ze.defined(s)&&(p.data=s),p}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Jt.is(s.range)&&(Ze.undefined(s.command)||wo.is(s.command))}t.is=i})(_t||(_t={}));var kn;(function(t){function r(a,s){return{tabSize:a,insertSpaces:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.uinteger(s.tabSize)&&Ze.boolean(s.insertSpaces)}t.is=i})(kn||(kn={}));var ci;(function(t){function r(a,s,p){return{range:a,target:s,data:p}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Jt.is(s.range)&&(Ze.undefined(s.target)||Ze.string(s.target))}t.is=i})(ci||(ci={}));var Wn;(function(t){function r(a,s){return{range:a,parent:s}}t.create=r;function i(a){var s=a;return s!==void 0&&Jt.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=i})(Wn||(Wn={}));var $f=null,Ga;(function(t){function r(p,m,A,w){return new hu(p,m,A,w)}t.create=r;function i(p){var m=p;return!!(Ze.defined(m)&&Ze.string(m.uri)&&(Ze.undefined(m.languageId)||Ze.string(m.languageId))&&Ze.uinteger(m.lineCount)&&Ze.func(m.getText)&&Ze.func(m.positionAt)&&Ze.func(m.offsetAt))}t.is=i;function a(p,m){for(var A=p.getText(),w=s(m,function(ue,ge){var he=ue.range.start.line-ge.range.start.line;return he===0?ue.range.start.character-ge.range.start.character:he}),E=A.length,M=w.length-1;M>=0;M--){var Y=w[M],ae=p.offsetAt(Y.range.start),ne=p.offsetAt(Y.range.end);if(ne<=E)A=A.substring(0,ae)+Y.newText+A.substring(ne,A.length);else throw new Error("Overlapping edit");E=ae}return A}t.applyEdits=a;function s(p,m){if(p.length<=1)return p;var A=p.length/2|0,w=p.slice(0,A),E=p.slice(A);s(w,m),s(E,m);for(var M=0,Y=0,ae=0;M<w.length&&Y<E.length;){var ne=m(w[M],E[Y]);ne<=0?p[ae++]=w[M++]:p[ae++]=E[Y++]}for(;M<w.length;)p[ae++]=w[M++];for(;Y<E.length;)p[ae++]=E[Y++];return p}})(Ga||(Ga={}));var hu=function(){function t(r,i,a,s){this._uri=r,this._languageId=i,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(i,a)}return this._content},t.prototype.update=function(r,i){this._content=r.text,this._version=i,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],i=this._content,a=!0,s=0;s<i.length;s++){a&&(r.push(s),a=!1);var p=i.charAt(s);a=p==="\r"||p===`
169
169
  `,p==="\r"&&s+1<i.length&&i.charAt(s+1)===`
170
- `&&s++}a&&i.length>0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),a=0,s=i.length;if(s===0)return En.create(0,r);for(;a<s;){var p=Math.floor((a+s)/2);i[p]>r?s=p:a=p+1}var m=a-1;return En.create(m,r-i[m])},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var a=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),Ze;(function(t){var r=Object.prototype.toString;function i(re){return typeof re!="undefined"}t.defined=i;function a(re){return typeof re=="undefined"}t.undefined=a;function s(re){return re===!0||re===!1}t.boolean=s;function p(re){return r.call(re)==="[object String]"}t.string=p;function m(re){return r.call(re)==="[object Number]"}t.number=m;function S(re,le,ve){return r.call(re)==="[object Number]"&&le<=re&&re<=ve}t.numberRange=S;function w(re){return r.call(re)==="[object Number]"&&-2147483648<=re&&re<=2147483647}t.integer=w;function E(re){return r.call(re)==="[object Number]"&&0<=re&&re<=2147483647}t.uinteger=E;function R(re){return r.call(re)==="[object Function]"}t.func=R;function J(re){return re!==null&&typeof re=="object"}t.objectLiteral=J;function oe(re,le){return Array.isArray(re)&&re.every(le)}t.typedArray=oe})(Ze||(Ze={}));var Ga=function(){function t(r,i,a,s){this._uri=r,this._languageId=i,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(i,a)}return this._content},t.prototype.update=function(r,i){for(var a=0,s=r;a<s.length;a++){var p=s[a];if(t.isIncremental(p)){var m=di(p.range),S=this.offsetAt(m.start),w=this.offsetAt(m.end);this._content=this._content.substring(0,S)+p.text+this._content.substring(w,this._content.length);var E=Math.max(m.start.line,0),R=Math.max(m.end.line,0),J=this._lineOffsets,oe=Ka(p.text,!1,S);if(R-E===oe.length)for(var re=0,le=oe.length;re<le;re++)J[re+E+1]=oe[re];else oe.length<1e4?J.splice.apply(J,[E+1,R-E].concat(oe)):this._lineOffsets=J=J.slice(0,E+1).concat(oe,J.slice(R+1));var ve=p.text.length-(w-S);if(ve!==0)for(var re=E+1+oe.length,le=J.length;re<le;re++)J[re]=J[re]+ve}else if(t.isFull(p))this._content=p.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=i},t.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=Ka(this._content,!0)),this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),a=0,s=i.length;if(s===0)return{line:0,character:r};for(;a<s;){var p=Math.floor((a+s)/2);i[p]>r?s=p:a=p+1}var m=a-1;return{line:m,character:r-i[m]}},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var a=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),t.isIncremental=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")},t.isFull=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0},t}(),Fi;(function(t){function r(s,p,m,S){return new Ga(s,p,m,S)}t.create=r;function i(s,p,m){if(s instanceof Ga)return s.update(p,m),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function a(s,p){for(var m=s.getText(),S=$a(p.map(vu),function(le,ve){var pe=le.range.start.line-ve.range.start.line;return pe===0?le.range.start.character-ve.range.start.character:pe}),w=0,E=[],R=0,J=S;R<J.length;R++){var oe=J[R],re=s.offsetAt(oe.range.start);if(re<w)throw new Error("Overlapping edit");re>w&&E.push(m.substring(w,re)),oe.newText.length&&E.push(oe.newText),w=s.offsetAt(oe.range.end)}return E.push(m.substr(w)),E.join("")}t.applyEdits=a})(Fi||(Fi={}));function $a(t,r){if(t.length<=1)return t;var i=t.length/2|0,a=t.slice(0,i),s=t.slice(i);$a(a,r),$a(s,r);for(var p=0,m=0,S=0;p<a.length&&m<s.length;){var w=r(a[p],s[m]);w<=0?t[S++]=a[p++]:t[S++]=s[m++]}for(;p<a.length;)t[S++]=a[p++];for(;m<s.length;)t[S++]=s[m++];return t}function Ka(t,r,i){i===void 0&&(i=0);for(var a=r?[i]:[],s=0;s<t.length;s++){var p=t.charCodeAt(s);(p===13||p===10)&&(p===13&&s+1<t.length&&t.charCodeAt(s+1)===10&&s++,a.push(i+s+1))}return a}function di(t){var r=t.start,i=t.end;return r.line>i.line||r.line===i.line&&r.character>i.character?{start:i,end:r}:t}function vu(t){var r=di(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var Kt;(function(t){t[t.Undefined=0]="Undefined",t[t.EnumValueMismatch=1]="EnumValueMismatch",t[t.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=258]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",t[t.InvalidUnicode=260]="InvalidUnicode",t[t.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",t[t.InvalidCharacter=262]="InvalidCharacter",t[t.PropertyExpected=513]="PropertyExpected",t[t.CommaExpected=514]="CommaExpected",t[t.ColonExpected=515]="ColonExpected",t[t.ValueExpected=516]="ValueExpected",t[t.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",t[t.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",t[t.TrailingComma=519]="TrailingComma",t[t.DuplicateKey=520]="DuplicateKey",t[t.CommentNotPermitted=521]="CommentNotPermitted",t[t.SchemaResolveError=768]="SchemaResolveError"})(Kt||(Kt={}));var gu;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[kn.Markdown,kn.PlainText],commitCharactersSupport:!0}}}}})(gu||(gu={}));var ti=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var p in s)s.hasOwnProperty(p)&&(a[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),Zs={"color-hex":{errorMessage:"Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:"String is not a RFC3339 date-time.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:"String is not a RFC3339 date.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:"String is not a RFC3339 time.",pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:"String is not an e-mail address.",pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},ki=function(){function t(r,i,a){this.offset=i,this.length=a,this.parent=r}return Object.defineProperty(t.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},t}(),Kf=function(t){ti(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="null",s.value=null,s}return r}(ki),qs=function(t){ti(r,t);function r(i,a,s){var p=t.call(this,i,s)||this;return p.type="boolean",p.value=a,p}return r}(ki),Yf=function(t){ti(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(ki),Jf=function(t){ti(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(ki),na=function(t){ti(r,t);function r(i,a,s){var p=t.call(this,i,a,s)||this;return p.type="string",p.value="",p}return r}(ki),yu=function(t){ti(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="property",s.colonOffset=-1,s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}(ki),Xf=function(t){ti(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(ki);function hn(t){return qn(t)?t?{}:{not:{}}:t}var _s;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(_s||(_s={}));var Co=function(){function t(r,i){r===void 0&&(r=-1),i===void 0&&(i=null),this.focusOffset=r,this.exclude=i,this.schemas=[]}return t.prototype.add=function(r){this.schemas.push(r)},t.prototype.merge=function(r){var i;(i=this.schemas).push.apply(i,r.schemas)},t.prototype.include=function(r){return(this.focusOffset===-1||xu(r,this.focusOffset))&&r!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),ia=function(){function t(){}return Object.defineProperty(t.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.add=function(r){},t.prototype.merge=function(r){},t.prototype.include=function(r){return!0},t.prototype.newSub=function(){return this},t.instance=new t,t}(),Kr=function(){function t(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return t.prototype.hasProblems=function(){return!!this.problems.length},t.prototype.mergeAll=function(r){for(var i=0,a=r;i<a.length;i++){var s=a[i];this.merge(s)}},t.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},t.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var i=0,a=this.problems;i<a.length;i++){var s=a[i];s.code===Kt.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(p){return JSON.stringify(p)}).join(", ")+".")}}},t.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},t.prototype.compare=function(r){var i=this.hasProblems();return i!==r.hasProblems()?i?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},t}();function mu(t,r){return r===void 0&&(r=[]),new el(t,r,[])}function ri(t){return Da(t)}function Ya(t){return su(t)}function xu(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}var el=function(){function t(r,i,a){i===void 0&&(i=[]),a===void 0&&(a=[]),this.root=r,this.syntaxErrors=i,this.comments=a}return t.prototype.getNodeFromOffset=function(r,i){if(i===void 0&&(i=!1),this.root)return au(this.root,r,i)},t.prototype.visit=function(r){if(this.root){var i=function(a){var s=r(a),p=a.children;if(Array.isArray(p))for(var m=0;m<p.length&&s;m++)s=i(p[m]);return s};i(this.root)}},t.prototype.validate=function(r,i){if(this.root&&i){var a=new Kr;return _t(this.root,i,a,ia.instance),a.problems.map(function(s){var p=Jt.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return _n.create(p,s.message,s.severity,s.code)})}return null},t.prototype.getMatchingSchemas=function(r,i,a){i===void 0&&(i=-1),a===void 0&&(a=null);var s=new Co(i,a);return this.root&&r&&_t(this.root,r,new Kr,s),s.schemas},t}();function _t(t,r,i,a){if(!t||!a.include(t))return;switch(t.type){case"object":w(t,r,i,a);break;case"array":S(t,r,i,a);break;case"string":m(t,r,i,a);break;case"number":p(t,r,i,a);break;case"property":return _t(t.valueNode,r,i,a)}s(),a.add({node:t,schema:r});function s(){function E(et){return t.type===et||et==="integer"&&t.type==="number"&&t.isInteger||r.nullable&&t.value===null}if(Array.isArray(r.type)?r.type.some(E)||i.problems.push({location:{offset:t.offset,length:t.length},severity:Dt.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(E(r.type)||i.problems.push({location:{offset:t.offset,length:t.length},severity:Dt.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var R=0,J=r.allOf;R<J.length;R++){var oe=J[R];_t(t,hn(oe),i,a)}var re=hn(r.not);if(re){var le=new Kr,ve=a.newSub();_t(t,re,le,ve),le.hasProblems()||i.problems.push({location:{offset:t.offset,length:t.length},severity:Dt.Warning,message:"Matches a schema that is not allowed."});for(var pe=0,Se=ve.schemas;pe<Se.length;pe++){var ye=Se[pe];ye.inverted=!ye.inverted,a.add(ye)}}var Fe=function(et,bt){for(var Nt=[],Ht=null,lr=0,Rr=et;lr<Rr.length;lr++){var Or=Rr[lr],Gr=hn(Or),wr=new Kr,Ur=a.newSub();if(_t(t,Gr,wr,Ur),wr.hasProblems()||Nt.push(Gr),!Ht)Ht={schema:Gr,validationResult:wr,matchingSchemas:Ur};else if(!bt&&!wr.hasProblems()&&!Ht.validationResult.hasProblems())Ht.matchingSchemas.merge(Ur),Ht.validationResult.propertiesMatches+=wr.propertiesMatches,Ht.validationResult.propertiesValueMatches+=wr.propertiesValueMatches;else{var gn=wr.compare(Ht.validationResult);gn>0?Ht={schema:Gr,validationResult:wr,matchingSchemas:Ur}:gn===0&&(Ht.matchingSchemas.merge(Ur),Ht.validationResult.mergeEnumValues(wr))}}return Nt.length>1&&bt&&i.problems.push({location:{offset:t.offset,length:1},severity:Dt.Warning,message:"Matches multiple schemas when only one must validate."}),Ht!==null&&(i.merge(Ht.validationResult),i.propertiesMatches+=Ht.validationResult.propertiesMatches,i.propertiesValueMatches+=Ht.validationResult.propertiesValueMatches,a.merge(Ht.matchingSchemas)),Nt.length};Array.isArray(r.anyOf)&&Fe(r.anyOf,!1),Array.isArray(r.oneOf)&&Fe(r.oneOf,!0);var Ke=function(et){var bt=new Kr,Nt=a.newSub();_t(t,hn(et),bt,Nt),i.merge(bt),i.propertiesMatches+=bt.propertiesMatches,i.propertiesValueMatches+=bt.propertiesValueMatches,a.merge(Nt)},Ue=function(et,bt,Nt){var Ht=hn(et),lr=new Kr,Rr=a.newSub();_t(t,Ht,lr,Rr),a.merge(Rr),lr.hasProblems()?Nt&&Ke(Nt):bt&&Ke(bt)},$e=hn(r.if);if($e&&Ue($e,hn(r.then),hn(r.else)),Array.isArray(r.enum)){for(var Be=ri(t),Ve=!1,We=0,Ye=r.enum;We<Ye.length;We++){var Ge=Ye[We];if(Ti(Be,Ge)){Ve=!0;break}}i.enumValues=r.enum,i.enumValueMatch=Ve,Ve||i.problems.push({location:{offset:t.offset,length:t.length},severity:Dt.Warning,code:Kt.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(et){return JSON.stringify(et)}).join(", ")+"."})}if(In(r.const)){var Be=ri(t);Ti(Be,r.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:t.offset,length:t.length},severity:Dt.Warning,code:Kt.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),i.enumValueMatch=!1),i.enumValues=[r.const]}r.deprecationMessage&&t.parent&&i.problems.push({location:{offset:t.parent.offset,length:t.parent.length},severity:Dt.Warning,message:r.deprecationMessage})}function p(E,R,J,oe){var re=E.value;fn(R.multipleOf)&&re%R.multipleOf!=0&&J.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Value is not divisible by "+R.multipleOf+"."});function le(Ke,Ue){if(fn(Ue))return Ue;if(qn(Ue)&&Ue)return Ke}function ve(Ke,Ue){if(!qn(Ue)||!Ue)return Ke}var pe=le(R.minimum,R.exclusiveMinimum);fn(pe)&&re<=pe&&J.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Value is below the exclusive minimum of "+pe+"."});var Se=le(R.maximum,R.exclusiveMaximum);fn(Se)&&re>=Se&&J.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Value is above the exclusive maximum of "+Se+"."});var ye=ve(R.minimum,R.exclusiveMinimum);fn(ye)&&re<ye&&J.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Value is below the minimum of "+ye+"."});var Fe=ve(R.maximum,R.exclusiveMaximum);fn(Fe)&&re>Fe&&J.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Value is above the maximum of "+Fe+"."})}function m(E,R,J,oe){if(fn(R.minLength)&&E.value.length<R.minLength&&J.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"String is shorter than the minimum length of "+R.minLength+"."}),fn(R.maxLength)&&E.value.length>R.maxLength&&J.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"String is longer than the maximum length of "+R.maxLength+"."}),Gf(R.pattern)){var re=new RegExp(R.pattern);re.test(E.value)||J.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:R.patternErrorMessage||R.errorMessage||'String does not match the pattern of "'+R.pattern+'".'})}if(R.format)switch(R.format){case"uri":case"uri-reference":{var le=void 0;if(!E.value)le="URI expected.";else{var ve=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(E.value);ve?!ve[2]&&R.format==="uri"&&(le="URI with a scheme is expected."):le="URI is expected."}le&&J.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:R.patternErrorMessage||R.errorMessage||"String is not a URI: "+le})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var pe=Zs[R.format];(!E.value||!pe.pattern.exec(E.value))&&J.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:R.patternErrorMessage||R.errorMessage||pe.errorMessage});break;default:}}function S(E,R,J,oe){if(Array.isArray(R.items)){for(var re=R.items,le=0;le<re.length;le++){var ve=re[le],pe=hn(ve),Se=new Kr,ye=E.items[le];ye?(_t(ye,pe,Se,oe),J.mergePropertyMatch(Se)):E.items.length>=re.length&&J.propertiesValueMatches++}if(E.items.length>re.length)if(typeof R.additionalItems=="object")for(var Fe=re.length;Fe<E.items.length;Fe++){var Se=new Kr;_t(E.items[Fe],R.additionalItems,Se,oe),J.mergePropertyMatch(Se)}else R.additionalItems===!1&&J.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Array has too many items according to schema. Expected "+re.length+" or fewer."})}else{var Ke=hn(R.items);if(Ke)for(var Ue=0,$e=E.items;Ue<$e.length;Ue++){var ye=$e[Ue],Se=new Kr;_t(ye,Ke,Se,oe),J.mergePropertyMatch(Se)}}var Be=hn(R.contains);if(Be){var Ve=E.items.some(function(Ge){var et=new Kr;return _t(Ge,Be,et,ia.instance),!et.hasProblems()});Ve||J.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:R.errorMessage||"Array does not contain required item."})}if(fn(R.minItems)&&E.items.length<R.minItems&&J.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Array has too few items. Expected "+R.minItems+" or more."}),fn(R.maxItems)&&E.items.length>R.maxItems&&J.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Array has too many items. Expected "+R.maxItems+" or fewer."}),R.uniqueItems===!0){var We=ri(E),Ye=We.some(function(Ge,et){return et!==We.lastIndexOf(Ge)});Ye&&J.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Array has duplicate items."})}}function w(E,R,J,oe){for(var re=Object.create(null),le=[],ve=0,pe=E.properties;ve<pe.length;ve++){var Se=pe[ve],ye=Se.keyNode.value;re[ye]=Se.valueNode,le.push(ye)}if(Array.isArray(R.required))for(var Fe=0,Ke=R.required;Fe<Ke.length;Fe++){var Ue=Ke[Fe];if(!re[Ue]){var $e=E.parent&&E.parent.type==="property"&&E.parent.keyNode,Be=$e?{offset:$e.offset,length:$e.length}:{offset:E.offset,length:1};J.problems.push({location:Be,severity:Dt.Warning,message:'Missing property "'+Ue+'".'})}}var Ve=function(xi){for(var Tl=le.indexOf(xi);Tl>=0;)le.splice(Tl,1),Tl=le.indexOf(xi)};if(R.properties)for(var We=0,Ye=Object.keys(R.properties);We<Ye.length;We++){var Ue=Ye[We];Ve(Ue);var Ge=R.properties[Ue],et=re[Ue];if(et)if(qn(Ge))if(Ge)J.propertiesMatches++,J.propertiesValueMatches++;else{var Se=et.parent;J.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Dt.Warning,message:R.errorMessage||"Property "+Ue+" is not allowed."})}else{var bt=new Kr;_t(et,Ge,bt,oe),J.mergePropertyMatch(bt)}}if(R.patternProperties)for(var Nt=0,Ht=Object.keys(R.patternProperties);Nt<Ht.length;Nt++)for(var lr=Ht[Nt],Rr=new RegExp(lr),Or=0,Gr=le.slice(0);Or<Gr.length;Or++){var Ue=Gr[Or];if(Rr.test(Ue)){Ve(Ue);var et=re[Ue];if(et){var Ge=R.patternProperties[lr];if(qn(Ge))if(Ge)J.propertiesMatches++,J.propertiesValueMatches++;else{var Se=et.parent;J.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Dt.Warning,message:R.errorMessage||"Property "+Ue+" is not allowed."})}else{var bt=new Kr;_t(et,Ge,bt,oe),J.mergePropertyMatch(bt)}}}}if(typeof R.additionalProperties=="object")for(var wr=0,Ur=le;wr<Ur.length;wr++){var Ue=Ur[wr],et=re[Ue];if(et){var bt=new Kr;_t(et,R.additionalProperties,bt,oe),J.mergePropertyMatch(bt)}}else if(R.additionalProperties===!1&&le.length>0)for(var gn=0,Xt=le;gn<Xt.length;gn++){var Ue=Xt[gn],et=re[Ue];if(et){var Se=et.parent;J.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Dt.Warning,message:R.errorMessage||"Property "+Ue+" is not allowed."})}}if(fn(R.maxProperties)&&E.properties.length>R.maxProperties&&J.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Object has more properties than limit of "+R.maxProperties+"."}),fn(R.minProperties)&&E.properties.length<R.minProperties&&J.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Object has fewer properties than the required number of "+R.minProperties}),R.dependencies)for(var Rt=0,Bt=Object.keys(R.dependencies);Rt<Bt.length;Rt++){var ye=Bt[Rt],ur=re[ye];if(ur){var rn=R.dependencies[ye];if(Array.isArray(rn))for(var yr=0,ys=rn;yr<ys.length;yr++){var Cl=ys[yr];re[Cl]?J.propertiesValueMatches++:J.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Object is missing property "+Cl+" required by property {$key}."})}else{var Ge=hn(rn);if(Ge){var bt=new Kr;_t(E,Ge,bt,oe),J.mergePropertyMatch(bt)}}}}var Sa=hn(R.propertyNames);if(Sa)for(var Di=0,Ol=E.properties;Di<Ol.length;Di++){var gf=Ol[Di],ye=gf.keyNode;ye&&_t(ye,Sa,J,ia.instance)}}}function Ja(t,r){var i=[],a=-1,s=t.getText(),p=An(s,!1),m=r&&r.collectComments?[]:void 0;function S(){for(;;){var $e=p.scan();switch(J(),$e){case 12:case 13:Array.isArray(m)&&m.push(Jt.create(t.positionAt(p.getTokenOffset()),t.positionAt(p.getTokenOffset()+p.getTokenLength())));break;case 15:case 14:break;default:return $e}}}function w($e){return p.getToken()===$e?(S(),!0):!1}function E($e,Be,Ve,We,Ye){if(Ye===void 0&&(Ye=Dt.Error),i.length===0||Ve!==a){var Ge=Jt.create(t.positionAt(Ve),t.positionAt(We));i.push(_n.create(Ge,$e,Ye,Be,t.languageId)),a=Ve}}function R($e,Be,Ve,We,Ye){Ve===void 0&&(Ve=null),We===void 0&&(We=[]),Ye===void 0&&(Ye=[]);var Ge=p.getTokenOffset(),et=p.getTokenOffset()+p.getTokenLength();if(Ge===et&&Ge>0){for(Ge--;Ge>0&&/\s/.test(s.charAt(Ge));)Ge--;et=Ge+1}if(E($e,Be,Ge,et),Ve&&oe(Ve,!1),We.length+Ye.length>0)for(var bt=p.getToken();bt!==17;){if(We.indexOf(bt)!==-1){S();break}else if(Ye.indexOf(bt)!==-1)break;bt=S()}return Ve}function J(){switch(p.getTokenError()){case 4:return R("Invalid unicode sequence in string.",Kt.InvalidUnicode),!0;case 5:return R("Invalid escape character in string.",Kt.InvalidEscapeCharacter),!0;case 3:return R("Unexpected end of number.",Kt.UnexpectedEndOfNumber),!0;case 1:return R("Unexpected end of comment.",Kt.UnexpectedEndOfComment),!0;case 2:return R("Unexpected end of string.",Kt.UnexpectedEndOfString),!0;case 6:return R("Invalid characters in string. Control characters must be escaped.",Kt.InvalidCharacter),!0}return!1}function oe($e,Be){return $e.length=p.getTokenOffset()+p.getTokenLength()-$e.offset,Be&&S(),$e}function re($e){if(p.getToken()!==3)return null;var Be=new Yf($e,p.getTokenOffset());S();for(var Ve=0,We=!1;p.getToken()!==4&&p.getToken()!==17;){if(p.getToken()===5){We||R("Value expected",Kt.ValueExpected);var Ye=p.getTokenOffset();if(S(),p.getToken()===4){We&&E("Trailing comma",Kt.TrailingComma,Ye,Ye+1);continue}}else We&&R("Expected comma",Kt.CommaExpected);var Ge=Fe(Be,Ve++);Ge?Be.items.push(Ge):R("Value expected",Kt.ValueExpected,null,[],[4,5]),We=!0}return p.getToken()!==4?R("Expected comma or closing bracket",Kt.CommaOrCloseBacketExpected,Be):oe(Be,!0)}function le($e,Be){var Ve=new yu($e,p.getTokenOffset()),We=pe(Ve);if(!We)if(p.getToken()===16){R("Property keys must be doublequoted",Kt.Undefined);var Ye=new na(Ve,p.getTokenOffset(),p.getTokenLength());Ye.value=p.getTokenValue(),We=Ye,S()}else return null;Ve.keyNode=We;var Ge=Be[We.value];if(Ge?(E("Duplicate object key",Kt.DuplicateKey,Ve.keyNode.offset,Ve.keyNode.offset+Ve.keyNode.length,Dt.Warning),typeof Ge=="object"&&E("DuplicateKeyWarning",Kt.DuplicateKey,Ge.keyNode.offset,Ge.keyNode.offset+Ge.keyNode.length,Dt.Warning),Be[We.value]=!0):Be[We.value]=Ve,p.getToken()===6)Ve.colonOffset=p.getTokenOffset(),S();else if(R("Colon expected",Kt.ColonExpected),p.getToken()===10&&t.positionAt(We.offset+We.length).line<t.positionAt(p.getTokenOffset()).line)return Ve.length=We.length,Ve;var et=Fe(Ve,We.value);return et?(Ve.valueNode=et,Ve.length=et.offset+et.length-Ve.offset,Ve):R("Value expected",Kt.ValueExpected,Ve,[],[2,5])}function ve($e){if(p.getToken()!==1)return null;var Be=new Xf($e,p.getTokenOffset()),Ve=Object.create(null);S();for(var We=!1;p.getToken()!==2&&p.getToken()!==17;){if(p.getToken()===5){We||R("Property expected",Kt.PropertyExpected);var Ye=p.getTokenOffset();if(S(),p.getToken()===2){We&&E("Trailing comma",Kt.TrailingComma,Ye,Ye+1);continue}}else We&&R("Expected comma",Kt.CommaExpected);var Ge=le(Be,Ve);Ge?Be.properties.push(Ge):R("Property expected",Kt.PropertyExpected,null,[],[2,5]),We=!0}return p.getToken()!==2?R("Expected comma or closing brace",Kt.CommaOrCloseBraceExpected,Be):oe(Be,!0)}function pe($e){if(p.getToken()!==10)return null;var Be=new na($e,p.getTokenOffset());return Be.value=p.getTokenValue(),oe(Be,!0)}function Se($e){if(p.getToken()!==11)return null;var Be=new Jf($e,p.getTokenOffset());if(p.getTokenError()===0){var Ve=p.getTokenValue();try{var We=JSON.parse(Ve);if(!fn(We))return R("Invalid number format.",Kt.Undefined,Be);Be.value=We}catch(Ye){return R("Invalid number format.",Kt.Undefined,Be)}Be.isInteger=Ve.indexOf(".")===-1}return oe(Be,!0)}function ye($e){var Be;switch(p.getToken()){case 7:return oe(new Kf($e,p.getTokenOffset()),!0);case 8:return oe(new qs($e,!0,p.getTokenOffset()),!0);case 9:return oe(new qs($e,!1,p.getTokenOffset()),!0);default:return null}}function Fe($e,Be){return re($e)||ve($e)||pe($e)||Se($e)||ye($e)}var Ke=null,Ue=S();return Ue!==17&&(Ke=Fe(null,null),Ke?p.getToken()!==17&&R("End of file expected.",Kt.Undefined):R("Expected a JSON object, array or literal.",Kt.Undefined)),new el(Ke,i,m)}function Xa(t,r,i){if(t!==null&&typeof t=="object"){var a=r+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var s=`[
171
- `,p=0;p<t.length;p++)s+=a+Xa(t[p],a,i),p<t.length-1&&(s+=","),s+=`
170
+ `&&s++}a&&i.length>0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),a=0,s=i.length;if(s===0)return An.create(0,r);for(;a<s;){var p=Math.floor((a+s)/2);i[p]>r?s=p:a=p+1}var m=a-1;return An.create(m,r-i[m])},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var a=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),Ze;(function(t){var r=Object.prototype.toString;function i(ne){return typeof ne!="undefined"}t.defined=i;function a(ne){return typeof ne=="undefined"}t.undefined=a;function s(ne){return ne===!0||ne===!1}t.boolean=s;function p(ne){return r.call(ne)==="[object String]"}t.string=p;function m(ne){return r.call(ne)==="[object Number]"}t.number=m;function A(ne,ue,ge){return r.call(ne)==="[object Number]"&&ue<=ne&&ne<=ge}t.numberRange=A;function w(ne){return r.call(ne)==="[object Number]"&&-2147483648<=ne&&ne<=2147483647}t.integer=w;function E(ne){return r.call(ne)==="[object Number]"&&0<=ne&&ne<=2147483647}t.uinteger=E;function M(ne){return r.call(ne)==="[object Function]"}t.func=M;function Y(ne){return ne!==null&&typeof ne=="object"}t.objectLiteral=Y;function ae(ne,ue){return Array.isArray(ne)&&ne.every(ue)}t.typedArray=ae})(Ze||(Ze={}));var $a=function(){function t(r,i,a,s){this._uri=r,this._languageId=i,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(i,a)}return this._content},t.prototype.update=function(r,i){for(var a=0,s=r;a<s.length;a++){var p=s[a];if(t.isIncremental(p)){var m=di(p.range),A=this.offsetAt(m.start),w=this.offsetAt(m.end);this._content=this._content.substring(0,A)+p.text+this._content.substring(w,this._content.length);var E=Math.max(m.start.line,0),M=Math.max(m.end.line,0),Y=this._lineOffsets,ae=Ya(p.text,!1,A);if(M-E===ae.length)for(var ne=0,ue=ae.length;ne<ue;ne++)Y[ne+E+1]=ae[ne];else ae.length<1e4?Y.splice.apply(Y,[E+1,M-E].concat(ae)):this._lineOffsets=Y=Y.slice(0,E+1).concat(ae,Y.slice(M+1));var ge=p.text.length-(w-A);if(ge!==0)for(var ne=E+1+ae.length,ue=Y.length;ne<ue;ne++)Y[ne]=Y[ne]+ge}else if(t.isFull(p))this._content=p.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=i},t.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=Ya(this._content,!0)),this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),a=0,s=i.length;if(s===0)return{line:0,character:r};for(;a<s;){var p=Math.floor((a+s)/2);i[p]>r?s=p:a=p+1}var m=a-1;return{line:m,character:r-i[m]}},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var a=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),t.isIncremental=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")},t.isFull=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0},t}(),Fi;(function(t){function r(s,p,m,A){return new $a(s,p,m,A)}t.create=r;function i(s,p,m){if(s instanceof $a)return s.update(p,m),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function a(s,p){for(var m=s.getText(),A=Ka(p.map(vu),function(ue,ge){var he=ue.range.start.line-ge.range.start.line;return he===0?ue.range.start.character-ge.range.start.character:he}),w=0,E=[],M=0,Y=A;M<Y.length;M++){var ae=Y[M],ne=s.offsetAt(ae.range.start);if(ne<w)throw new Error("Overlapping edit");ne>w&&E.push(m.substring(w,ne)),ae.newText.length&&E.push(ae.newText),w=s.offsetAt(ae.range.end)}return E.push(m.substr(w)),E.join("")}t.applyEdits=a})(Fi||(Fi={}));function Ka(t,r){if(t.length<=1)return t;var i=t.length/2|0,a=t.slice(0,i),s=t.slice(i);Ka(a,r),Ka(s,r);for(var p=0,m=0,A=0;p<a.length&&m<s.length;){var w=r(a[p],s[m]);w<=0?t[A++]=a[p++]:t[A++]=s[m++]}for(;p<a.length;)t[A++]=a[p++];for(;m<s.length;)t[A++]=s[m++];return t}function Ya(t,r,i){i===void 0&&(i=0);for(var a=r?[i]:[],s=0;s<t.length;s++){var p=t.charCodeAt(s);(p===13||p===10)&&(p===13&&s+1<t.length&&t.charCodeAt(s+1)===10&&s++,a.push(i+s+1))}return a}function di(t){var r=t.start,i=t.end;return r.line>i.line||r.line===i.line&&r.character>i.character?{start:i,end:r}:t}function vu(t){var r=di(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var Kt;(function(t){t[t.Undefined=0]="Undefined",t[t.EnumValueMismatch=1]="EnumValueMismatch",t[t.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=258]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",t[t.InvalidUnicode=260]="InvalidUnicode",t[t.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",t[t.InvalidCharacter=262]="InvalidCharacter",t[t.PropertyExpected=513]="PropertyExpected",t[t.CommaExpected=514]="CommaExpected",t[t.ColonExpected=515]="ColonExpected",t[t.ValueExpected=516]="ValueExpected",t[t.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",t[t.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",t[t.TrailingComma=519]="TrailingComma",t[t.DuplicateKey=520]="DuplicateKey",t[t.CommentNotPermitted=521]="CommentNotPermitted",t[t.SchemaResolveError=768]="SchemaResolveError"})(Kt||(Kt={}));var gu;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Fn.Markdown,Fn.PlainText],commitCharactersSupport:!0}}}}})(gu||(gu={}));var ti=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var p in s)s.hasOwnProperty(p)&&(a[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),_s={"color-hex":{errorMessage:"Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:"String is not a RFC3339 date-time.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:"String is not a RFC3339 date.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:"String is not a RFC3339 time.",pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:"String is not an e-mail address.",pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},ki=function(){function t(r,i,a){this.offset=i,this.length=a,this.parent=r}return Object.defineProperty(t.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},t}(),Kf=function(t){ti(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="null",s.value=null,s}return r}(ki),qs=function(t){ti(r,t);function r(i,a,s){var p=t.call(this,i,s)||this;return p.type="boolean",p.value=a,p}return r}(ki),Yf=function(t){ti(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(ki),Jf=function(t){ti(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(ki),na=function(t){ti(r,t);function r(i,a,s){var p=t.call(this,i,a,s)||this;return p.type="string",p.value="",p}return r}(ki),yu=function(t){ti(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="property",s.colonOffset=-1,s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}(ki),Xf=function(t){ti(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(ki);function pn(t){return Zn(t)?t?{}:{not:{}}:t}var el;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(el||(el={}));var Co=function(){function t(r,i){r===void 0&&(r=-1),i===void 0&&(i=null),this.focusOffset=r,this.exclude=i,this.schemas=[]}return t.prototype.add=function(r){this.schemas.push(r)},t.prototype.merge=function(r){var i;(i=this.schemas).push.apply(i,r.schemas)},t.prototype.include=function(r){return(this.focusOffset===-1||xu(r,this.focusOffset))&&r!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),ia=function(){function t(){}return Object.defineProperty(t.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.add=function(r){},t.prototype.merge=function(r){},t.prototype.include=function(r){return!0},t.prototype.newSub=function(){return this},t.instance=new t,t}(),Kr=function(){function t(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return t.prototype.hasProblems=function(){return!!this.problems.length},t.prototype.mergeAll=function(r){for(var i=0,a=r;i<a.length;i++){var s=a[i];this.merge(s)}},t.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},t.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var i=0,a=this.problems;i<a.length;i++){var s=a[i];s.code===Kt.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(p){return JSON.stringify(p)}).join(", ")+".")}}},t.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},t.prototype.compare=function(r){var i=this.hasProblems();return i!==r.hasProblems()?i?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},t}();function mu(t,r){return r===void 0&&(r=[]),new tl(t,r,[])}function ri(t){return Ba(t)}function Ja(t){return Vs(t)}function xu(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}var tl=function(){function t(r,i,a){i===void 0&&(i=[]),a===void 0&&(a=[]),this.root=r,this.syntaxErrors=i,this.comments=a}return t.prototype.getNodeFromOffset=function(r,i){if(i===void 0&&(i=!1),this.root)return su(this.root,r,i)},t.prototype.visit=function(r){if(this.root){var i=function(a){var s=r(a),p=a.children;if(Array.isArray(p))for(var m=0;m<p.length&&s;m++)s=i(p[m]);return s};i(this.root)}},t.prototype.validate=function(r,i){if(this.root&&i){var a=new Kr;return qt(this.root,i,a,ia.instance),a.problems.map(function(s){var p=Jt.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return _n.create(p,s.message,s.severity,s.code)})}return null},t.prototype.getMatchingSchemas=function(r,i,a){i===void 0&&(i=-1),a===void 0&&(a=null);var s=new Co(i,a);return this.root&&r&&qt(this.root,r,new Kr,s),s.schemas},t}();function qt(t,r,i,a){if(!t||!a.include(t))return;switch(t.type){case"object":w(t,r,i,a);break;case"array":A(t,r,i,a);break;case"string":m(t,r,i,a);break;case"number":p(t,r,i,a);break;case"property":return qt(t.valueNode,r,i,a)}s(),a.add({node:t,schema:r});function s(){function E(rt){return t.type===rt||rt==="integer"&&t.type==="number"&&t.isInteger||r.nullable&&t.value===null}if(Array.isArray(r.type)?r.type.some(E)||i.problems.push({location:{offset:t.offset,length:t.length},severity:Nt.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(E(r.type)||i.problems.push({location:{offset:t.offset,length:t.length},severity:Nt.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var M=0,Y=r.allOf;M<Y.length;M++){var ae=Y[M];qt(t,pn(ae),i,a)}var ne=pn(r.not);if(ne){var ue=new Kr,ge=a.newSub();qt(t,ne,ue,ge),ue.hasProblems()||i.problems.push({location:{offset:t.offset,length:t.length},severity:Nt.Warning,message:"Matches a schema that is not allowed."});for(var he=0,Se=ge.schemas;he<Se.length;he++){var me=Se[he];me.inverted=!me.inverted,a.add(me)}}var Fe=function(rt,bt){for(var Dt=[],Ht=null,lr=0,Mr=rt;lr<Mr.length;lr++){var Or=Mr[lr],Gr=pn(Or),wr=new Kr,Ur=a.newSub();if(qt(t,Gr,wr,Ur),wr.hasProblems()||Dt.push(Gr),!Ht)Ht={schema:Gr,validationResult:wr,matchingSchemas:Ur};else if(!bt&&!wr.hasProblems()&&!Ht.validationResult.hasProblems())Ht.matchingSchemas.merge(Ur),Ht.validationResult.propertiesMatches+=wr.propertiesMatches,Ht.validationResult.propertiesValueMatches+=wr.propertiesValueMatches;else{var vn=wr.compare(Ht.validationResult);vn>0?Ht={schema:Gr,validationResult:wr,matchingSchemas:Ur}:vn===0&&(Ht.matchingSchemas.merge(Ur),Ht.validationResult.mergeEnumValues(wr))}}return Dt.length>1&&bt&&i.problems.push({location:{offset:t.offset,length:1},severity:Nt.Warning,message:"Matches multiple schemas when only one must validate."}),Ht!==null&&(i.merge(Ht.validationResult),i.propertiesMatches+=Ht.validationResult.propertiesMatches,i.propertiesValueMatches+=Ht.validationResult.propertiesValueMatches,a.merge(Ht.matchingSchemas)),Dt.length};Array.isArray(r.anyOf)&&Fe(r.anyOf,!1),Array.isArray(r.oneOf)&&Fe(r.oneOf,!0);var Ke=function(rt){var bt=new Kr,Dt=a.newSub();qt(t,pn(rt),bt,Dt),i.merge(bt),i.propertiesMatches+=bt.propertiesMatches,i.propertiesValueMatches+=bt.propertiesValueMatches,a.merge(Dt)},Ue=function(rt,bt,Dt){var Ht=pn(rt),lr=new Kr,Mr=a.newSub();qt(t,Ht,lr,Mr),a.merge(Mr),lr.hasProblems()?Dt&&Ke(Dt):bt&&Ke(bt)},$e=pn(r.if);if($e&&Ue($e,pn(r.then),pn(r.else)),Array.isArray(r.enum)){for(var Be=ri(t),je=!1,We=0,Je=r.enum;We<Je.length;We++){var Ge=Je[We];if(Ti(Be,Ge)){je=!0;break}}i.enumValues=r.enum,i.enumValueMatch=je,je||i.problems.push({location:{offset:t.offset,length:t.length},severity:Nt.Warning,code:Kt.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(rt){return JSON.stringify(rt)}).join(", ")+"."})}if(Pn(r.const)){var Be=ri(t);Ti(Be,r.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:t.offset,length:t.length},severity:Nt.Warning,code:Kt.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),i.enumValueMatch=!1),i.enumValues=[r.const]}r.deprecationMessage&&t.parent&&i.problems.push({location:{offset:t.parent.offset,length:t.parent.length},severity:Nt.Warning,message:r.deprecationMessage})}function p(E,M,Y,ae){var ne=E.value;fn(M.multipleOf)&&ne%M.multipleOf!=0&&Y.problems.push({location:{offset:E.offset,length:E.length},severity:Nt.Warning,message:"Value is not divisible by "+M.multipleOf+"."});function ue(Ke,Ue){if(fn(Ue))return Ue;if(Zn(Ue)&&Ue)return Ke}function ge(Ke,Ue){if(!Zn(Ue)||!Ue)return Ke}var he=ue(M.minimum,M.exclusiveMinimum);fn(he)&&ne<=he&&Y.problems.push({location:{offset:E.offset,length:E.length},severity:Nt.Warning,message:"Value is below the exclusive minimum of "+he+"."});var Se=ue(M.maximum,M.exclusiveMaximum);fn(Se)&&ne>=Se&&Y.problems.push({location:{offset:E.offset,length:E.length},severity:Nt.Warning,message:"Value is above the exclusive maximum of "+Se+"."});var me=ge(M.minimum,M.exclusiveMinimum);fn(me)&&ne<me&&Y.problems.push({location:{offset:E.offset,length:E.length},severity:Nt.Warning,message:"Value is below the minimum of "+me+"."});var Fe=ge(M.maximum,M.exclusiveMaximum);fn(Fe)&&ne>Fe&&Y.problems.push({location:{offset:E.offset,length:E.length},severity:Nt.Warning,message:"Value is above the maximum of "+Fe+"."})}function m(E,M,Y,ae){if(fn(M.minLength)&&E.value.length<M.minLength&&Y.problems.push({location:{offset:E.offset,length:E.length},severity:Nt.Warning,message:"String is shorter than the minimum length of "+M.minLength+"."}),fn(M.maxLength)&&E.value.length>M.maxLength&&Y.problems.push({location:{offset:E.offset,length:E.length},severity:Nt.Warning,message:"String is longer than the maximum length of "+M.maxLength+"."}),Gf(M.pattern)){var ne=new RegExp(M.pattern);ne.test(E.value)||Y.problems.push({location:{offset:E.offset,length:E.length},severity:Nt.Warning,message:M.patternErrorMessage||M.errorMessage||'String does not match the pattern of "'+M.pattern+'".'})}if(M.format)switch(M.format){case"uri":case"uri-reference":{var ue=void 0;if(!E.value)ue="URI expected.";else{var ge=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(E.value);ge?!ge[2]&&M.format==="uri"&&(ue="URI with a scheme is expected."):ue="URI is expected."}ue&&Y.problems.push({location:{offset:E.offset,length:E.length},severity:Nt.Warning,message:M.patternErrorMessage||M.errorMessage||"String is not a URI: "+ue})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var he=_s[M.format];(!E.value||!he.pattern.exec(E.value))&&Y.problems.push({location:{offset:E.offset,length:E.length},severity:Nt.Warning,message:M.patternErrorMessage||M.errorMessage||he.errorMessage});break;default:}}function A(E,M,Y,ae){if(Array.isArray(M.items)){for(var ne=M.items,ue=0;ue<ne.length;ue++){var ge=ne[ue],he=pn(ge),Se=new Kr,me=E.items[ue];me?(qt(me,he,Se,ae),Y.mergePropertyMatch(Se)):E.items.length>=ne.length&&Y.propertiesValueMatches++}if(E.items.length>ne.length)if(typeof M.additionalItems=="object")for(var Fe=ne.length;Fe<E.items.length;Fe++){var Se=new Kr;qt(E.items[Fe],M.additionalItems,Se,ae),Y.mergePropertyMatch(Se)}else M.additionalItems===!1&&Y.problems.push({location:{offset:E.offset,length:E.length},severity:Nt.Warning,message:"Array has too many items according to schema. Expected "+ne.length+" or fewer."})}else{var Ke=pn(M.items);if(Ke)for(var Ue=0,$e=E.items;Ue<$e.length;Ue++){var me=$e[Ue],Se=new Kr;qt(me,Ke,Se,ae),Y.mergePropertyMatch(Se)}}var Be=pn(M.contains);if(Be){var je=E.items.some(function(Ge){var rt=new Kr;return qt(Ge,Be,rt,ia.instance),!rt.hasProblems()});je||Y.problems.push({location:{offset:E.offset,length:E.length},severity:Nt.Warning,message:M.errorMessage||"Array does not contain required item."})}if(fn(M.minItems)&&E.items.length<M.minItems&&Y.problems.push({location:{offset:E.offset,length:E.length},severity:Nt.Warning,message:"Array has too few items. Expected "+M.minItems+" or more."}),fn(M.maxItems)&&E.items.length>M.maxItems&&Y.problems.push({location:{offset:E.offset,length:E.length},severity:Nt.Warning,message:"Array has too many items. Expected "+M.maxItems+" or fewer."}),M.uniqueItems===!0){var We=ri(E),Je=We.some(function(Ge,rt){return rt!==We.lastIndexOf(Ge)});Je&&Y.problems.push({location:{offset:E.offset,length:E.length},severity:Nt.Warning,message:"Array has duplicate items."})}}function w(E,M,Y,ae){for(var ne=Object.create(null),ue=[],ge=0,he=E.properties;ge<he.length;ge++){var Se=he[ge],me=Se.keyNode.value;ne[me]=Se.valueNode,ue.push(me)}if(Array.isArray(M.required))for(var Fe=0,Ke=M.required;Fe<Ke.length;Fe++){var Ue=Ke[Fe];if(!ne[Ue]){var $e=E.parent&&E.parent.type==="property"&&E.parent.keyNode,Be=$e?{offset:$e.offset,length:$e.length}:{offset:E.offset,length:1};Y.problems.push({location:Be,severity:Nt.Warning,message:'Missing property "'+Ue+'".'})}}var je=function(xi){for(var Pl=ue.indexOf(xi);Pl>=0;)ue.splice(Pl,1),Pl=ue.indexOf(xi)};if(M.properties)for(var We=0,Je=Object.keys(M.properties);We<Je.length;We++){var Ue=Je[We];je(Ue);var Ge=M.properties[Ue],rt=ne[Ue];if(rt)if(Zn(Ge))if(Ge)Y.propertiesMatches++,Y.propertiesValueMatches++;else{var Se=rt.parent;Y.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Nt.Warning,message:M.errorMessage||"Property "+Ue+" is not allowed."})}else{var bt=new Kr;qt(rt,Ge,bt,ae),Y.mergePropertyMatch(bt)}}if(M.patternProperties)for(var Dt=0,Ht=Object.keys(M.patternProperties);Dt<Ht.length;Dt++)for(var lr=Ht[Dt],Mr=new RegExp(lr),Or=0,Gr=ue.slice(0);Or<Gr.length;Or++){var Ue=Gr[Or];if(Mr.test(Ue)){je(Ue);var rt=ne[Ue];if(rt){var Ge=M.patternProperties[lr];if(Zn(Ge))if(Ge)Y.propertiesMatches++,Y.propertiesValueMatches++;else{var Se=rt.parent;Y.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Nt.Warning,message:M.errorMessage||"Property "+Ue+" is not allowed."})}else{var bt=new Kr;qt(rt,Ge,bt,ae),Y.mergePropertyMatch(bt)}}}}if(typeof M.additionalProperties=="object")for(var wr=0,Ur=ue;wr<Ur.length;wr++){var Ue=Ur[wr],rt=ne[Ue];if(rt){var bt=new Kr;qt(rt,M.additionalProperties,bt,ae),Y.mergePropertyMatch(bt)}}else if(M.additionalProperties===!1&&ue.length>0)for(var vn=0,Xt=ue;vn<Xt.length;vn++){var Ue=Xt[vn],rt=ne[Ue];if(rt){var Se=rt.parent;Y.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Nt.Warning,message:M.errorMessage||"Property "+Ue+" is not allowed."})}}if(fn(M.maxProperties)&&E.properties.length>M.maxProperties&&Y.problems.push({location:{offset:E.offset,length:E.length},severity:Nt.Warning,message:"Object has more properties than limit of "+M.maxProperties+"."}),fn(M.minProperties)&&E.properties.length<M.minProperties&&Y.problems.push({location:{offset:E.offset,length:E.length},severity:Nt.Warning,message:"Object has fewer properties than the required number of "+M.minProperties}),M.dependencies)for(var Mt=0,Ut=Object.keys(M.dependencies);Mt<Ut.length;Mt++){var me=Ut[Mt],ur=ne[me];if(ur){var rn=M.dependencies[me];if(Array.isArray(rn))for(var yr=0,ms=rn;yr<ms.length;yr++){var Ol=ms[yr];ne[Ol]?Y.propertiesValueMatches++:Y.problems.push({location:{offset:E.offset,length:E.length},severity:Nt.Warning,message:"Object is missing property "+Ol+" required by property {$key}."})}else{var Ge=pn(rn);if(Ge){var bt=new Kr;qt(E,Ge,bt,ae),Y.mergePropertyMatch(bt)}}}}var Sa=pn(M.propertyNames);if(Sa)for(var Ni=0,Tl=E.properties;Ni<Tl.length;Ni++){var gf=Tl[Ni],me=gf.keyNode;me&&qt(me,Sa,Y,ia.instance)}}}function Xa(t,r){var i=[],a=-1,s=t.getText(),p=Sn(s,!1),m=r&&r.collectComments?[]:void 0;function A(){for(;;){var $e=p.scan();switch(Y(),$e){case 12:case 13:Array.isArray(m)&&m.push(Jt.create(t.positionAt(p.getTokenOffset()),t.positionAt(p.getTokenOffset()+p.getTokenLength())));break;case 15:case 14:break;default:return $e}}}function w($e){return p.getToken()===$e?(A(),!0):!1}function E($e,Be,je,We,Je){if(Je===void 0&&(Je=Nt.Error),i.length===0||je!==a){var Ge=Jt.create(t.positionAt(je),t.positionAt(We));i.push(_n.create(Ge,$e,Je,Be,t.languageId)),a=je}}function M($e,Be,je,We,Je){je===void 0&&(je=null),We===void 0&&(We=[]),Je===void 0&&(Je=[]);var Ge=p.getTokenOffset(),rt=p.getTokenOffset()+p.getTokenLength();if(Ge===rt&&Ge>0){for(Ge--;Ge>0&&/\s/.test(s.charAt(Ge));)Ge--;rt=Ge+1}if(E($e,Be,Ge,rt),je&&ae(je,!1),We.length+Je.length>0)for(var bt=p.getToken();bt!==17;){if(We.indexOf(bt)!==-1){A();break}else if(Je.indexOf(bt)!==-1)break;bt=A()}return je}function Y(){switch(p.getTokenError()){case 4:return M("Invalid unicode sequence in string.",Kt.InvalidUnicode),!0;case 5:return M("Invalid escape character in string.",Kt.InvalidEscapeCharacter),!0;case 3:return M("Unexpected end of number.",Kt.UnexpectedEndOfNumber),!0;case 1:return M("Unexpected end of comment.",Kt.UnexpectedEndOfComment),!0;case 2:return M("Unexpected end of string.",Kt.UnexpectedEndOfString),!0;case 6:return M("Invalid characters in string. Control characters must be escaped.",Kt.InvalidCharacter),!0}return!1}function ae($e,Be){return $e.length=p.getTokenOffset()+p.getTokenLength()-$e.offset,Be&&A(),$e}function ne($e){if(p.getToken()!==3)return null;var Be=new Yf($e,p.getTokenOffset());A();for(var je=0,We=!1;p.getToken()!==4&&p.getToken()!==17;){if(p.getToken()===5){We||M("Value expected",Kt.ValueExpected);var Je=p.getTokenOffset();if(A(),p.getToken()===4){We&&E("Trailing comma",Kt.TrailingComma,Je,Je+1);continue}}else We&&M("Expected comma",Kt.CommaExpected);var Ge=Fe(Be,je++);Ge?Be.items.push(Ge):M("Value expected",Kt.ValueExpected,null,[],[4,5]),We=!0}return p.getToken()!==4?M("Expected comma or closing bracket",Kt.CommaOrCloseBacketExpected,Be):ae(Be,!0)}function ue($e,Be){var je=new yu($e,p.getTokenOffset()),We=he(je);if(!We)if(p.getToken()===16){M("Property keys must be doublequoted",Kt.Undefined);var Je=new na(je,p.getTokenOffset(),p.getTokenLength());Je.value=p.getTokenValue(),We=Je,A()}else return null;je.keyNode=We;var Ge=Be[We.value];if(Ge?(E("Duplicate object key",Kt.DuplicateKey,je.keyNode.offset,je.keyNode.offset+je.keyNode.length,Nt.Warning),typeof Ge=="object"&&E("DuplicateKeyWarning",Kt.DuplicateKey,Ge.keyNode.offset,Ge.keyNode.offset+Ge.keyNode.length,Nt.Warning),Be[We.value]=!0):Be[We.value]=je,p.getToken()===6)je.colonOffset=p.getTokenOffset(),A();else if(M("Colon expected",Kt.ColonExpected),p.getToken()===10&&t.positionAt(We.offset+We.length).line<t.positionAt(p.getTokenOffset()).line)return je.length=We.length,je;var rt=Fe(je,We.value);return rt?(je.valueNode=rt,je.length=rt.offset+rt.length-je.offset,je):M("Value expected",Kt.ValueExpected,je,[],[2,5])}function ge($e){if(p.getToken()!==1)return null;var Be=new Xf($e,p.getTokenOffset()),je=Object.create(null);A();for(var We=!1;p.getToken()!==2&&p.getToken()!==17;){if(p.getToken()===5){We||M("Property expected",Kt.PropertyExpected);var Je=p.getTokenOffset();if(A(),p.getToken()===2){We&&E("Trailing comma",Kt.TrailingComma,Je,Je+1);continue}}else We&&M("Expected comma",Kt.CommaExpected);var Ge=ue(Be,je);Ge?Be.properties.push(Ge):M("Property expected",Kt.PropertyExpected,null,[],[2,5]),We=!0}return p.getToken()!==2?M("Expected comma or closing brace",Kt.CommaOrCloseBraceExpected,Be):ae(Be,!0)}function he($e){if(p.getToken()!==10)return null;var Be=new na($e,p.getTokenOffset());return Be.value=p.getTokenValue(),ae(Be,!0)}function Se($e){if(p.getToken()!==11)return null;var Be=new Jf($e,p.getTokenOffset());if(p.getTokenError()===0){var je=p.getTokenValue();try{var We=JSON.parse(je);if(!fn(We))return M("Invalid number format.",Kt.Undefined,Be);Be.value=We}catch(Je){return M("Invalid number format.",Kt.Undefined,Be)}Be.isInteger=je.indexOf(".")===-1}return ae(Be,!0)}function me($e){var Be;switch(p.getToken()){case 7:return ae(new Kf($e,p.getTokenOffset()),!0);case 8:return ae(new qs($e,!0,p.getTokenOffset()),!0);case 9:return ae(new qs($e,!1,p.getTokenOffset()),!0);default:return null}}function Fe($e,Be){return ne($e)||ge($e)||he($e)||Se($e)||me($e)}var Ke=null,Ue=A();return Ue!==17&&(Ke=Fe(null,null),Ke?p.getToken()!==17&&M("End of file expected.",Kt.Undefined):M("Expected a JSON object, array or literal.",Kt.Undefined)),new tl(Ke,i,m)}function Qa(t,r,i){if(t!==null&&typeof t=="object"){var a=r+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var s=`[
171
+ `,p=0;p<t.length;p++)s+=a+Qa(t[p],a,i),p<t.length-1&&(s+=","),s+=`
172
172
  `;return s+=r+"]",s}else{var m=Object.keys(t);if(m.length===0)return"{}";for(var s=`{
173
- `,p=0;p<m.length;p++){var S=m[p];s+=a+JSON.stringify(S)+": "+Xa(t[S],a,i),p<m.length-1&&(s+=","),s+=`
174
- `}return s+=r+"}",s}}return i(t)}function bu(t,r){if(t.length<r.length)return!1;for(var i=0;i<r.length;i++)if(t[i]!==r[i])return!1;return!0}function Qa(t,r){var i=t.length-r.length;return i>0?t.lastIndexOf(r)===i:i===0?t===r:!1}function Oo(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function tl(t,r){for(var i="";r>0;)(r&1)==1&&(i+=t),t+=t,r=r>>>1;return i}var wu=[",","}","]"],Su=[":"],Au=function(){function t(r,i,a,s){i===void 0&&(i=[]),a===void 0&&(a=Promise),s===void 0&&(s={}),this.schemaService=r,this.contributions=i,this.promiseConstructor=a,this.clientCapabilities=s,this.templateVarIdCounter=0}return t.prototype.doResolve=function(r){for(var i=this.contributions.length-1;i>=0;i--)if(this.contributions[i].resolveCompletion){var a=this.contributions[i].resolveCompletion(r);if(a)return a}return this.promiseConstructor.resolve(r)},t.prototype.doComplete=function(r,i,a){var s=this,p={items:[],isIncomplete:!1},m=r.getText(),S=r.offsetAt(i),w=a.getNodeFromOffset(S,!0);if(this.isInComment(r,w?w.offset:0,S))return Promise.resolve(p);if(w&&S===w.offset+w.length&&S>0){var E=m[S-1];(w.type==="object"&&E==="}"||w.type==="array"&&E==="]")&&(w=w.parent)}var R=this.getCurrentWord(r,S),J=null;if(w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null"))J=Jt.create(r.positionAt(w.offset),r.positionAt(w.offset+w.length));else{var oe=S-R.length;oe>0&&m[oe-1]==='"'&&oe--,J=Jt.create(r.positionAt(oe),i)}var re=this.doesSupportsCommitCharacters(),le={},ve={add:function(pe){var Se=le[pe.label];Se?Se.documentation||(Se.documentation=pe.documentation):(le[pe.label]=pe,J&&(pe.textEdit=Fn.replace(J,pe.insertText)),re&&(pe.commitCharacters=pe.kind===Cn.Property?Su:wu),p.items.push(pe))},setAsIncomplete:function(){p.isIncomplete=!0},error:function(pe){console.error(pe)},log:function(pe){console.log(pe)},getNumberOfProposals:function(){return p.items.length}};return this.schemaService.getSchemaForResource(r.uri,a).then(function(pe){var Se=[],ye=!0,Fe="",Ke=null;if(w&&w.type==="string"){var Ue=w.parent;Ue&&Ue.type==="property"&&Ue.keyNode===w&&(ye=!Ue.valueNode,Ke=Ue,Fe=m.substr(w.offset+1,w.length-2),Ue&&(w=Ue.parent))}if(w&&w.type==="object"){if(w.offset===S)return p;var $e=w.properties;$e.forEach(function(Ye){(!Ke||Ke!==Ye)&&(le[Ye.keyNode.value]=$s.create("__"))});var Be="";ye&&(Be=s.evaluateSeparatorAfter(r,r.offsetAt(J.end))),pe?s.getPropertyCompletions(pe,a,w,ye,Be,ve):s.getSchemaLessPropertyCompletions(a,w,Fe,ve);var Ve=Ya(w);s.contributions.forEach(function(Ye){var Ge=Ye.collectPropertyCompletions(r.uri,Ve,R,ye,Be==="",ve);Ge&&Se.push(Ge)}),!pe&&R.length>0&&m.charAt(S-R.length-1)!=='"'&&(ve.add({kind:Cn.Property,label:s.getLabelForValue(R),insertText:s.getInsertTextForProperty(R,null,!1,Be),insertTextFormat:Vr.Snippet,documentation:""}),ve.setAsIncomplete())}var We={};return pe?s.getValueCompletions(pe,a,w,S,r,ve,We):s.getSchemaLessValueCompletions(a,w,S,r,ve),s.contributions.length>0&&s.getContributedValueCompletions(a,w,S,r,ve,Se),s.promiseConstructor.all(Se).then(function(){if(ve.getNumberOfProposals()===0){var Ye=S;w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null")&&(Ye=w.offset+w.length);var Ge=s.evaluateSeparatorAfter(r,Ye);s.addFillerValueCompletions(We,Ge,ve)}return p})})},t.prototype.getPropertyCompletions=function(r,i,a,s,p,m){var S=this,w=i.getMatchingSchemas(r.schema,a.offset);w.forEach(function(E){if(E.node===a&&!E.inverted){var R=E.schema.properties;R&&Object.keys(R).forEach(function(J){var oe=R[J],re=!1;if(typeof oe=="object"&&oe.allOf)for(var le=0,ve=oe.allOf;le<ve.length;le++){var pe=ve[le];if(pe.readOnly){re=!0;break}}if(typeof oe=="object"&&!oe.deprecationMessage&&!oe.doNotSuggest&&!re){var Se={kind:Cn.Property,label:S.sanitizeLabel(J),insertText:S.getInsertTextForProperty(J,oe,s,p),insertTextFormat:Vr.Snippet,filterText:S.getFilterTextForValue(J),documentation:S.fromMarkup(oe.markdownDescription)||oe.description||""};Qa(Se.insertText,"$1"+p)&&(Se.command={title:"Suggest",command:"editor.action.triggerSuggest"}),m.add(Se)}})}})},t.prototype.getSchemaLessPropertyCompletions=function(r,i,a,s){var p=this,m=function(w){w.properties.forEach(function(E){var R=E.keyNode.value;s.add({kind:Cn.Property,label:p.sanitizeLabel(R),insertText:p.getInsertTextForValue(R,""),insertTextFormat:Vr.Snippet,filterText:p.getFilterTextForValue(R),documentation:""})})};if(i.parent)if(i.parent.type==="property"){var S=i.parent.keyNode.value;r.visit(function(w){return w.type==="property"&&w!==i.parent&&w.keyNode.value===S&&w.valueNode&&w.valueNode.type==="object"&&m(w.valueNode),!0})}else i.parent.type==="array"&&i.parent.items.forEach(function(w){w.type==="object"&&w!==i&&m(w)});else i.type==="object"&&s.add({kind:Cn.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:Vr.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},t.prototype.getSchemaLessValueCompletions=function(r,i,a,s,p){var m=this,S=a;if(i&&(i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(S=i.offset+i.length,i=i.parent),!i){p.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Vr.Snippet,documentation:""}),p.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Vr.Snippet,documentation:""});return}var w=this.evaluateSeparatorAfter(s,S),E=function(re){xu(re.parent,a,!0)||p.add({kind:m.getSuggestionKind(re.type),label:m.getLabelTextForMatchingNode(re,s),insertText:m.getInsertTextForMatchingNode(re,s,w),insertTextFormat:Vr.Snippet,documentation:""}),re.type==="boolean"&&m.addBooleanValueCompletion(!re.value,w,p)};if(i.type==="property"&&a>i.colonOffset){var R=i.valueNode;if(R&&(a>R.offset+R.length||R.type==="object"||R.type==="array"))return;var J=i.keyNode.value;r.visit(function(re){return re.type==="property"&&re.keyNode.value===J&&re.valueNode&&E(re.valueNode),!0}),J==="$schema"&&i.parent&&!i.parent.parent&&this.addDollarSchemaCompletions(w,p)}if(i.type==="array")if(i.parent&&i.parent.type==="property"){var oe=i.parent.keyNode.value;r.visit(function(re){return re.type==="property"&&re.keyNode.value===oe&&re.valueNode&&re.valueNode.type==="array"&&re.valueNode.items.forEach(E),!0})}else i.items.forEach(E)},t.prototype.getValueCompletions=function(r,i,a,s,p,m,S){var w=this,E=s,R=null,J=null;if(a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null")&&(E=a.offset+a.length,J=a,a=a.parent),!a){this.addSchemaValueCompletions(r.schema,"",m,S);return}if(a.type==="property"&&s>a.colonOffset){var oe=a.valueNode;if(oe&&s>oe.offset+oe.length)return;R=a.keyNode.value,a=a.parent}if(a&&(R!==null||a.type==="array")){var re=this.evaluateSeparatorAfter(p,E),le=i.getMatchingSchemas(r.schema,a.offset,J);le.forEach(function(ve){if(ve.node===a&&!ve.inverted&&ve.schema){if(a.type==="array"&&ve.schema.items)if(Array.isArray(ve.schema.items)){var pe=w.findItemAtOffset(a,p,s);pe<ve.schema.items.length&&w.addSchemaValueCompletions(ve.schema.items[pe],re,m,S)}else w.addSchemaValueCompletions(ve.schema.items,re,m,S);if(ve.schema.properties){var Se=ve.schema.properties[R];Se&&w.addSchemaValueCompletions(Se,re,m,S)}}}),R==="$schema"&&!a.parent&&this.addDollarSchemaCompletions(re,m),S.boolean&&(this.addBooleanValueCompletion(!0,re,m),this.addBooleanValueCompletion(!1,re,m)),S.null&&this.addNullValueCompletion(re,m)}},t.prototype.getContributedValueCompletions=function(r,i,a,s,p,m){if(!i)this.contributions.forEach(function(R){var J=R.collectDefaultCompletions(s.uri,p);J&&m.push(J)});else if((i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(i=i.parent),i.type==="property"&&a>i.colonOffset){var S=i.keyNode.value,w=i.valueNode;if(!w||a<=w.offset+w.length){var E=Ya(i.parent);this.contributions.forEach(function(R){var J=R.collectValueCompletions(s.uri,E,S,p);J&&m.push(J)})}}},t.prototype.addSchemaValueCompletions=function(r,i,a,s){var p=this;typeof r=="object"&&(this.addEnumValueCompletions(r,i,a),this.addDefaultValueCompletions(r,i,a),this.collectTypes(r,s),Array.isArray(r.allOf)&&r.allOf.forEach(function(m){return p.addSchemaValueCompletions(m,i,a,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(m){return p.addSchemaValueCompletions(m,i,a,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(m){return p.addSchemaValueCompletions(m,i,a,s)}))},t.prototype.addDefaultValueCompletions=function(r,i,a,s){var p=this;s===void 0&&(s=0);var m=!1;if(In(r.default)){for(var S=r.type,w=r.default,E=s;E>0;E--)w=[w],S="array";a.add({kind:this.getSuggestionKind(S),label:this.getLabelForValue(w),insertText:this.getInsertTextForValue(w,i),insertTextFormat:Vr.Snippet}),m=!0}Array.isArray(r.examples)&&r.examples.forEach(function(R){for(var J=r.type,oe=R,re=s;re>0;re--)oe=[oe],J="array";a.add({kind:p.getSuggestionKind(J),label:p.getLabelForValue(oe),insertText:p.getInsertTextForValue(oe,i),insertTextFormat:Vr.Snippet}),m=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(R){var J=r.type,oe=R.body,re=R.label,le,ve;if(In(oe)){for(var pe=r.type,Se=s;Se>0;Se--)oe=[oe],pe="array";le=p.getInsertTextForSnippetValue(oe,i),ve=p.getFilterTextForSnippetValue(oe),re=re||p.getLabelForSnippetValue(oe)}else if(typeof R.bodyText=="string"){for(var ye="",Fe="",Ke="",Se=s;Se>0;Se--)ye=ye+Ke+`[
173
+ `,p=0;p<m.length;p++){var A=m[p];s+=a+JSON.stringify(A)+": "+Qa(t[A],a,i),p<m.length-1&&(s+=","),s+=`
174
+ `}return s+=r+"}",s}}return i(t)}function bu(t,r){if(t.length<r.length)return!1;for(var i=0;i<r.length;i++)if(t[i]!==r[i])return!1;return!0}function Za(t,r){var i=t.length-r.length;return i>0?t.lastIndexOf(r)===i:i===0?t===r:!1}function Oo(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function rl(t,r){for(var i="";r>0;)(r&1)==1&&(i+=t),t+=t,r=r>>>1;return i}var wu=[",","}","]"],Su=[":"],Au=function(){function t(r,i,a,s){i===void 0&&(i=[]),a===void 0&&(a=Promise),s===void 0&&(s={}),this.schemaService=r,this.contributions=i,this.promiseConstructor=a,this.clientCapabilities=s,this.templateVarIdCounter=0}return t.prototype.doResolve=function(r){for(var i=this.contributions.length-1;i>=0;i--)if(this.contributions[i].resolveCompletion){var a=this.contributions[i].resolveCompletion(r);if(a)return a}return this.promiseConstructor.resolve(r)},t.prototype.doComplete=function(r,i,a){var s=this,p={items:[],isIncomplete:!1},m=r.getText(),A=r.offsetAt(i),w=a.getNodeFromOffset(A,!0);if(this.isInComment(r,w?w.offset:0,A))return Promise.resolve(p);if(w&&A===w.offset+w.length&&A>0){var E=m[A-1];(w.type==="object"&&E==="}"||w.type==="array"&&E==="]")&&(w=w.parent)}var M=this.getCurrentWord(r,A),Y=null;if(w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null"))Y=Jt.create(r.positionAt(w.offset),r.positionAt(w.offset+w.length));else{var ae=A-M.length;ae>0&&m[ae-1]==='"'&&ae--,Y=Jt.create(r.positionAt(ae),i)}var ne=this.doesSupportsCommitCharacters(),ue={},ge={add:function(he){var Se=ue[he.label];Se?Se.documentation||(Se.documentation=he.documentation):(ue[he.label]=he,Y&&(he.textEdit=In.replace(Y,he.insertText)),ne&&(he.commitCharacters=he.kind===En.Property?Su:wu),p.items.push(he))},setAsIncomplete:function(){p.isIncomplete=!0},error:function(he){console.error(he)},log:function(he){console.log(he)},getNumberOfProposals:function(){return p.items.length}};return this.schemaService.getSchemaForResource(r.uri,a).then(function(he){var Se=[],me=!0,Fe="",Ke=null;if(w&&w.type==="string"){var Ue=w.parent;Ue&&Ue.type==="property"&&Ue.keyNode===w&&(me=!Ue.valueNode,Ke=Ue,Fe=m.substr(w.offset+1,w.length-2),Ue&&(w=Ue.parent))}if(w&&w.type==="object"){if(w.offset===A)return p;var $e=w.properties;$e.forEach(function(Je){(!Ke||Ke!==Je)&&(ue[Je.keyNode.value]=Ks.create("__"))});var Be="";me&&(Be=s.evaluateSeparatorAfter(r,r.offsetAt(Y.end))),he?s.getPropertyCompletions(he,a,w,me,Be,ge):s.getSchemaLessPropertyCompletions(a,w,Fe,ge);var je=Ja(w);s.contributions.forEach(function(Je){var Ge=Je.collectPropertyCompletions(r.uri,je,M,me,Be==="",ge);Ge&&Se.push(Ge)}),!he&&M.length>0&&m.charAt(A-M.length-1)!=='"'&&(ge.add({kind:En.Property,label:s.getLabelForValue(M),insertText:s.getInsertTextForProperty(M,null,!1,Be),insertTextFormat:Vr.Snippet,documentation:""}),ge.setAsIncomplete())}var We={};return he?s.getValueCompletions(he,a,w,A,r,ge,We):s.getSchemaLessValueCompletions(a,w,A,r,ge),s.contributions.length>0&&s.getContributedValueCompletions(a,w,A,r,ge,Se),s.promiseConstructor.all(Se).then(function(){if(ge.getNumberOfProposals()===0){var Je=A;w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null")&&(Je=w.offset+w.length);var Ge=s.evaluateSeparatorAfter(r,Je);s.addFillerValueCompletions(We,Ge,ge)}return p})})},t.prototype.getPropertyCompletions=function(r,i,a,s,p,m){var A=this,w=i.getMatchingSchemas(r.schema,a.offset);w.forEach(function(E){if(E.node===a&&!E.inverted){var M=E.schema.properties;M&&Object.keys(M).forEach(function(Y){var ae=M[Y],ne=!1;if(typeof ae=="object"&&ae.allOf)for(var ue=0,ge=ae.allOf;ue<ge.length;ue++){var he=ge[ue];if(he.readOnly){ne=!0;break}}if(typeof ae=="object"&&!ae.deprecationMessage&&!ae.doNotSuggest&&!ne){var Se={kind:En.Property,label:A.sanitizeLabel(Y),insertText:A.getInsertTextForProperty(Y,ae,s,p),insertTextFormat:Vr.Snippet,filterText:A.getFilterTextForValue(Y),documentation:A.fromMarkup(ae.markdownDescription)||ae.description||""};Za(Se.insertText,"$1"+p)&&(Se.command={title:"Suggest",command:"editor.action.triggerSuggest"}),m.add(Se)}})}})},t.prototype.getSchemaLessPropertyCompletions=function(r,i,a,s){var p=this,m=function(w){w.properties.forEach(function(E){var M=E.keyNode.value;s.add({kind:En.Property,label:p.sanitizeLabel(M),insertText:p.getInsertTextForValue(M,""),insertTextFormat:Vr.Snippet,filterText:p.getFilterTextForValue(M),documentation:""})})};if(i.parent)if(i.parent.type==="property"){var A=i.parent.keyNode.value;r.visit(function(w){return w.type==="property"&&w!==i.parent&&w.keyNode.value===A&&w.valueNode&&w.valueNode.type==="object"&&m(w.valueNode),!0})}else i.parent.type==="array"&&i.parent.items.forEach(function(w){w.type==="object"&&w!==i&&m(w)});else i.type==="object"&&s.add({kind:En.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:Vr.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},t.prototype.getSchemaLessValueCompletions=function(r,i,a,s,p){var m=this,A=a;if(i&&(i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(A=i.offset+i.length,i=i.parent),!i){p.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Vr.Snippet,documentation:""}),p.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Vr.Snippet,documentation:""});return}var w=this.evaluateSeparatorAfter(s,A),E=function(ne){xu(ne.parent,a,!0)||p.add({kind:m.getSuggestionKind(ne.type),label:m.getLabelTextForMatchingNode(ne,s),insertText:m.getInsertTextForMatchingNode(ne,s,w),insertTextFormat:Vr.Snippet,documentation:""}),ne.type==="boolean"&&m.addBooleanValueCompletion(!ne.value,w,p)};if(i.type==="property"&&a>i.colonOffset){var M=i.valueNode;if(M&&(a>M.offset+M.length||M.type==="object"||M.type==="array"))return;var Y=i.keyNode.value;r.visit(function(ne){return ne.type==="property"&&ne.keyNode.value===Y&&ne.valueNode&&E(ne.valueNode),!0}),Y==="$schema"&&i.parent&&!i.parent.parent&&this.addDollarSchemaCompletions(w,p)}if(i.type==="array")if(i.parent&&i.parent.type==="property"){var ae=i.parent.keyNode.value;r.visit(function(ne){return ne.type==="property"&&ne.keyNode.value===ae&&ne.valueNode&&ne.valueNode.type==="array"&&ne.valueNode.items.forEach(E),!0})}else i.items.forEach(E)},t.prototype.getValueCompletions=function(r,i,a,s,p,m,A){var w=this,E=s,M=null,Y=null;if(a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null")&&(E=a.offset+a.length,Y=a,a=a.parent),!a){this.addSchemaValueCompletions(r.schema,"",m,A);return}if(a.type==="property"&&s>a.colonOffset){var ae=a.valueNode;if(ae&&s>ae.offset+ae.length)return;M=a.keyNode.value,a=a.parent}if(a&&(M!==null||a.type==="array")){var ne=this.evaluateSeparatorAfter(p,E),ue=i.getMatchingSchemas(r.schema,a.offset,Y);ue.forEach(function(ge){if(ge.node===a&&!ge.inverted&&ge.schema){if(a.type==="array"&&ge.schema.items)if(Array.isArray(ge.schema.items)){var he=w.findItemAtOffset(a,p,s);he<ge.schema.items.length&&w.addSchemaValueCompletions(ge.schema.items[he],ne,m,A)}else w.addSchemaValueCompletions(ge.schema.items,ne,m,A);if(ge.schema.properties){var Se=ge.schema.properties[M];Se&&w.addSchemaValueCompletions(Se,ne,m,A)}}}),M==="$schema"&&!a.parent&&this.addDollarSchemaCompletions(ne,m),A.boolean&&(this.addBooleanValueCompletion(!0,ne,m),this.addBooleanValueCompletion(!1,ne,m)),A.null&&this.addNullValueCompletion(ne,m)}},t.prototype.getContributedValueCompletions=function(r,i,a,s,p,m){if(!i)this.contributions.forEach(function(M){var Y=M.collectDefaultCompletions(s.uri,p);Y&&m.push(Y)});else if((i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(i=i.parent),i.type==="property"&&a>i.colonOffset){var A=i.keyNode.value,w=i.valueNode;if(!w||a<=w.offset+w.length){var E=Ja(i.parent);this.contributions.forEach(function(M){var Y=M.collectValueCompletions(s.uri,E,A,p);Y&&m.push(Y)})}}},t.prototype.addSchemaValueCompletions=function(r,i,a,s){var p=this;typeof r=="object"&&(this.addEnumValueCompletions(r,i,a),this.addDefaultValueCompletions(r,i,a),this.collectTypes(r,s),Array.isArray(r.allOf)&&r.allOf.forEach(function(m){return p.addSchemaValueCompletions(m,i,a,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(m){return p.addSchemaValueCompletions(m,i,a,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(m){return p.addSchemaValueCompletions(m,i,a,s)}))},t.prototype.addDefaultValueCompletions=function(r,i,a,s){var p=this;s===void 0&&(s=0);var m=!1;if(Pn(r.default)){for(var A=r.type,w=r.default,E=s;E>0;E--)w=[w],A="array";a.add({kind:this.getSuggestionKind(A),label:this.getLabelForValue(w),insertText:this.getInsertTextForValue(w,i),insertTextFormat:Vr.Snippet}),m=!0}Array.isArray(r.examples)&&r.examples.forEach(function(M){for(var Y=r.type,ae=M,ne=s;ne>0;ne--)ae=[ae],Y="array";a.add({kind:p.getSuggestionKind(Y),label:p.getLabelForValue(ae),insertText:p.getInsertTextForValue(ae,i),insertTextFormat:Vr.Snippet}),m=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(M){var Y=r.type,ae=M.body,ne=M.label,ue,ge;if(Pn(ae)){for(var he=r.type,Se=s;Se>0;Se--)ae=[ae],he="array";ue=p.getInsertTextForSnippetValue(ae,i),ge=p.getFilterTextForSnippetValue(ae),ne=ne||p.getLabelForSnippetValue(ae)}else if(typeof M.bodyText=="string"){for(var me="",Fe="",Ke="",Se=s;Se>0;Se--)me=me+Ke+`[
175
175
  `,Fe=Fe+`
176
- `+Ke+"]",Ke+=" ",J="array";le=ye+Ke+R.bodyText.split(`
176
+ `+Ke+"]",Ke+=" ",Y="array";ue=me+Ke+M.bodyText.split(`
177
177
  `).join(`
178
- `+Ke)+Fe+i,re=re||p.sanitizeLabel(le),ve=le.replace(/[\n]/g,"")}a.add({kind:p.getSuggestionKind(J),label:re,documentation:p.fromMarkup(R.markdownDescription)||R.description,insertText:le,insertTextFormat:Vr.Snippet,filterText:ve}),m=!0}),!m&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,i,a,s+1)},t.prototype.addEnumValueCompletions=function(r,i,a){if(In(r.const)&&a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,i),insertTextFormat:Vr.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var s=0,p=r.enum.length;s<p;s++){var m=r.enum[s],S=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&s<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?S=this.fromMarkup(r.markdownEnumDescriptions[s]):r.enumDescriptions&&s<r.enumDescriptions.length&&(S=r.enumDescriptions[s]),a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(m),insertText:this.getInsertTextForValue(m,i),insertTextFormat:Vr.Snippet,documentation:S})}},t.prototype.collectTypes=function(r,i){if(!(Array.isArray(r.enum)||In(r.const))){var a=r.type;Array.isArray(a)?a.forEach(function(s){return i[s]=!0}):i[a]=!0}},t.prototype.addFillerValueCompletions=function(r,i,a){r.object&&a.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},i),insertTextFormat:Vr.Snippet,detail:"New object",documentation:""}),r.array&&a.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],i),insertTextFormat:Vr.Snippet,detail:"New array",documentation:""})},t.prototype.addBooleanValueCompletion=function(r,i,a){a.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,i),insertTextFormat:Vr.Snippet,documentation:""})},t.prototype.addNullValueCompletion=function(r,i){i.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:Vr.Snippet,documentation:""})},t.prototype.addDollarSchemaCompletions=function(r,i){var a=this,s=this.schemaService.getRegisteredSchemaIds(function(p){return p==="http"||p==="https"});s.forEach(function(p){return i.add({kind:Cn.Module,label:a.getLabelForValue(p),filterText:a.getFilterTextForValue(p),insertText:a.getInsertTextForValue(p,r),insertTextFormat:Vr.Snippet,documentation:""})})},t.prototype.sanitizeLabel=function(r){return r=r.replace(/[\n]/g,"\u21B5"),r.length>57&&(r=r.substr(0,57).trim()+"..."),r},t.prototype.getLabelForValue=function(r){return this.sanitizeLabel(JSON.stringify(r))},t.prototype.getFilterTextForValue=function(r){return JSON.stringify(r)},t.prototype.getFilterTextForSnippetValue=function(r){return JSON.stringify(r).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},t.prototype.getLabelForSnippetValue=function(r){var i=JSON.stringify(r);return i=i.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1"),this.sanitizeLabel(i)},t.prototype.getInsertTextForPlainText=function(r){return r.replace(/[\\\$\}]/g,"\\$&")},t.prototype.getInsertTextForValue=function(r,i){var a=JSON.stringify(r,null," ");return a==="{}"?"{$1}"+i:a==="[]"?"[$1]"+i:this.getInsertTextForPlainText(a+i)},t.prototype.getInsertTextForSnippetValue=function(r,i){var a=function(s){return typeof s=="string"&&s[0]==="^"?s.substr(1):JSON.stringify(s)};return Xa(r,"",a)+i},t.prototype.getInsertTextForGuessedValue=function(r,i){switch(typeof r){case"object":return r===null?"${1:null}"+i:this.getInsertTextForValue(r,i);case"string":var a=JSON.stringify(r);return a=a.substr(1,a.length-2),a=this.getInsertTextForPlainText(a),'"${1:'+a+'}"'+i;case"number":case"boolean":return"${1:"+JSON.stringify(r)+"}"+i}return this.getInsertTextForValue(r,i)},t.prototype.getSuggestionKind=function(r){if(Array.isArray(r)){var i=r;r=i.length>0?i[0]:null}if(!r)return Cn.Value;switch(r){case"string":return Cn.Value;case"object":return Cn.Module;case"property":return Cn.Property;default:return Cn.Value}},t.prototype.getLabelTextForMatchingNode=function(r,i){switch(r.type){case"array":return"[]";case"object":return"{}";default:var a=i.getText().substr(r.offset,r.length);return a}},t.prototype.getInsertTextForMatchingNode=function(r,i,a){switch(r.type){case"array":return this.getInsertTextForValue([],a);case"object":return this.getInsertTextForValue({},a);default:var s=i.getText().substr(r.offset,r.length)+a;return this.getInsertTextForPlainText(s)}},t.prototype.getInsertTextForProperty=function(r,i,a,s){var p=this.getInsertTextForValue(r,"");if(!a)return p;var m=p+": ",S,w=0;if(i){if(Array.isArray(i.defaultSnippets)){if(i.defaultSnippets.length===1){var E=i.defaultSnippets[0].body;In(E)&&(S=this.getInsertTextForSnippetValue(E,""))}w+=i.defaultSnippets.length}if(i.enum&&(!S&&i.enum.length===1&&(S=this.getInsertTextForGuessedValue(i.enum[0],"")),w+=i.enum.length),In(i.default)&&(S||(S=this.getInsertTextForGuessedValue(i.default,"")),w++),w===0){var R=Array.isArray(i.type)?i.type[0]:i.type;switch(R||(i.properties?R="object":i.items&&(R="array")),R){case"boolean":S="$1";break;case"string":S='"$1"';break;case"object":S="{$1}";break;case"array":S="[$1]";break;case"number":case"integer":S="${1:0}";break;case"null":S="${1:null}";break;default:return p}}}return(!S||w>1)&&(S="$1"),m+S+s},t.prototype.getCurrentWord=function(r,i){for(var a=i-1,s=r.getText();a>=0&&`
179
- \r\v":{[,]}`.indexOf(s.charAt(a))===-1;)a--;return s.substring(a+1,i)},t.prototype.evaluateSeparatorAfter=function(r,i){var a=An(r.getText(),!0);a.setPosition(i);var s=a.scan();switch(s){case 5:case 2:case 4:case 17:return"";default:return","}},t.prototype.findItemAtOffset=function(r,i,a){for(var s=An(i.getText(),!0),p=r.items,m=p.length-1;m>=0;m--){var S=p[m];if(a>S.offset+S.length){s.setPosition(S.offset+S.length);var w=s.scan();return w===5&&a>=s.getTokenOffset()+s.getTokenLength()?m+1:m}else if(a>=S.offset)return m}return 0},t.prototype.isInComment=function(r,i,a){var s=An(r.getText(),!1);s.setPosition(i);for(var p=s.scan();p!==17&&s.getTokenOffset()+s.getTokenLength()<a;)p=s.scan();return(p===12||p===13)&&s.getTokenOffset()<=a},t.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:kn.Markdown,value:r}},t.prototype.doesSupportMarkdown=function(){if(!In(this.supportsMarkdown)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=r&&r.completionItem&&Array.isArray(r.completionItem.documentationFormat)&&r.completionItem.documentationFormat.indexOf(kn.Markdown)!==-1}return this.supportsMarkdown},t.prototype.doesSupportsCommitCharacters=function(){if(!In(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},t}(),To=function(){function t(r,i,a){i===void 0&&(i=[]),this.schemaService=r,this.contributions=i,this.promise=a||Promise}return t.prototype.doHover=function(r,i,a){var s=r.offsetAt(i),p=a.getNodeFromOffset(s);if(!p||(p.type==="object"||p.type==="array")&&s>p.offset+1&&s<p.offset+p.length-1)return this.promise.resolve(null);var m=p;if(p.type==="string"){var S=p.parent;if(S&&S.type==="property"&&S.keyNode===p&&(p=S.valueNode,!p))return this.promise.resolve(null)}for(var w=Jt.create(r.positionAt(m.offset),r.positionAt(m.offset+m.length)),E=function(le){var ve={contents:le,range:w};return ve},R=Ya(p),J=this.contributions.length-1;J>=0;J--){var oe=this.contributions[J],re=oe.getInfoContribution(r.uri,R);if(re)return re.then(function(le){return E(le)})}return this.schemaService.getSchemaForResource(r.uri,a).then(function(le){if(le){var ve=a.getMatchingSchemas(le.schema,p.offset),pe=null,Se=null,ye=null,Fe=null;ve.every(function(Ue){if(Ue.node===p&&!Ue.inverted&&Ue.schema&&(pe=pe||Ue.schema.title,Se=Se||Ue.schema.markdownDescription||Za(Ue.schema.description),Ue.schema.enum)){var $e=Ue.schema.enum.indexOf(ri(p));Ue.schema.markdownEnumDescriptions?ye=Ue.schema.markdownEnumDescriptions[$e]:Ue.schema.enumDescriptions&&(ye=Za(Ue.schema.enumDescriptions[$e])),ye&&(Fe=Ue.schema.enum[$e],typeof Fe!="string"&&(Fe=JSON.stringify(Fe)))}return!0});var Ke="";return pe&&(Ke=Za(pe)),Se&&(Ke.length>0&&(Ke+=`
178
+ `+Ke)+Fe+i,ne=ne||p.sanitizeLabel(ue),ge=ue.replace(/[\n]/g,"")}a.add({kind:p.getSuggestionKind(Y),label:ne,documentation:p.fromMarkup(M.markdownDescription)||M.description,insertText:ue,insertTextFormat:Vr.Snippet,filterText:ge}),m=!0}),!m&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,i,a,s+1)},t.prototype.addEnumValueCompletions=function(r,i,a){if(Pn(r.const)&&a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,i),insertTextFormat:Vr.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var s=0,p=r.enum.length;s<p;s++){var m=r.enum[s],A=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&s<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?A=this.fromMarkup(r.markdownEnumDescriptions[s]):r.enumDescriptions&&s<r.enumDescriptions.length&&(A=r.enumDescriptions[s]),a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(m),insertText:this.getInsertTextForValue(m,i),insertTextFormat:Vr.Snippet,documentation:A})}},t.prototype.collectTypes=function(r,i){if(!(Array.isArray(r.enum)||Pn(r.const))){var a=r.type;Array.isArray(a)?a.forEach(function(s){return i[s]=!0}):i[a]=!0}},t.prototype.addFillerValueCompletions=function(r,i,a){r.object&&a.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},i),insertTextFormat:Vr.Snippet,detail:"New object",documentation:""}),r.array&&a.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],i),insertTextFormat:Vr.Snippet,detail:"New array",documentation:""})},t.prototype.addBooleanValueCompletion=function(r,i,a){a.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,i),insertTextFormat:Vr.Snippet,documentation:""})},t.prototype.addNullValueCompletion=function(r,i){i.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:Vr.Snippet,documentation:""})},t.prototype.addDollarSchemaCompletions=function(r,i){var a=this,s=this.schemaService.getRegisteredSchemaIds(function(p){return p==="http"||p==="https"});s.forEach(function(p){return i.add({kind:En.Module,label:a.getLabelForValue(p),filterText:a.getFilterTextForValue(p),insertText:a.getInsertTextForValue(p,r),insertTextFormat:Vr.Snippet,documentation:""})})},t.prototype.sanitizeLabel=function(r){return r=r.replace(/[\n]/g,"\u21B5"),r.length>57&&(r=r.substr(0,57).trim()+"..."),r},t.prototype.getLabelForValue=function(r){return this.sanitizeLabel(JSON.stringify(r))},t.prototype.getFilterTextForValue=function(r){return JSON.stringify(r)},t.prototype.getFilterTextForSnippetValue=function(r){return JSON.stringify(r).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},t.prototype.getLabelForSnippetValue=function(r){var i=JSON.stringify(r);return i=i.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1"),this.sanitizeLabel(i)},t.prototype.getInsertTextForPlainText=function(r){return r.replace(/[\\\$\}]/g,"\\$&")},t.prototype.getInsertTextForValue=function(r,i){var a=JSON.stringify(r,null," ");return a==="{}"?"{$1}"+i:a==="[]"?"[$1]"+i:this.getInsertTextForPlainText(a+i)},t.prototype.getInsertTextForSnippetValue=function(r,i){var a=function(s){return typeof s=="string"&&s[0]==="^"?s.substr(1):JSON.stringify(s)};return Qa(r,"",a)+i},t.prototype.getInsertTextForGuessedValue=function(r,i){switch(typeof r){case"object":return r===null?"${1:null}"+i:this.getInsertTextForValue(r,i);case"string":var a=JSON.stringify(r);return a=a.substr(1,a.length-2),a=this.getInsertTextForPlainText(a),'"${1:'+a+'}"'+i;case"number":case"boolean":return"${1:"+JSON.stringify(r)+"}"+i}return this.getInsertTextForValue(r,i)},t.prototype.getSuggestionKind=function(r){if(Array.isArray(r)){var i=r;r=i.length>0?i[0]:null}if(!r)return En.Value;switch(r){case"string":return En.Value;case"object":return En.Module;case"property":return En.Property;default:return En.Value}},t.prototype.getLabelTextForMatchingNode=function(r,i){switch(r.type){case"array":return"[]";case"object":return"{}";default:var a=i.getText().substr(r.offset,r.length);return a}},t.prototype.getInsertTextForMatchingNode=function(r,i,a){switch(r.type){case"array":return this.getInsertTextForValue([],a);case"object":return this.getInsertTextForValue({},a);default:var s=i.getText().substr(r.offset,r.length)+a;return this.getInsertTextForPlainText(s)}},t.prototype.getInsertTextForProperty=function(r,i,a,s){var p=this.getInsertTextForValue(r,"");if(!a)return p;var m=p+": ",A,w=0;if(i){if(Array.isArray(i.defaultSnippets)){if(i.defaultSnippets.length===1){var E=i.defaultSnippets[0].body;Pn(E)&&(A=this.getInsertTextForSnippetValue(E,""))}w+=i.defaultSnippets.length}if(i.enum&&(!A&&i.enum.length===1&&(A=this.getInsertTextForGuessedValue(i.enum[0],"")),w+=i.enum.length),Pn(i.default)&&(A||(A=this.getInsertTextForGuessedValue(i.default,"")),w++),w===0){var M=Array.isArray(i.type)?i.type[0]:i.type;switch(M||(i.properties?M="object":i.items&&(M="array")),M){case"boolean":A="$1";break;case"string":A='"$1"';break;case"object":A="{$1}";break;case"array":A="[$1]";break;case"number":case"integer":A="${1:0}";break;case"null":A="${1:null}";break;default:return p}}}return(!A||w>1)&&(A="$1"),m+A+s},t.prototype.getCurrentWord=function(r,i){for(var a=i-1,s=r.getText();a>=0&&`
179
+ \r\v":{[,]}`.indexOf(s.charAt(a))===-1;)a--;return s.substring(a+1,i)},t.prototype.evaluateSeparatorAfter=function(r,i){var a=Sn(r.getText(),!0);a.setPosition(i);var s=a.scan();switch(s){case 5:case 2:case 4:case 17:return"";default:return","}},t.prototype.findItemAtOffset=function(r,i,a){for(var s=Sn(i.getText(),!0),p=r.items,m=p.length-1;m>=0;m--){var A=p[m];if(a>A.offset+A.length){s.setPosition(A.offset+A.length);var w=s.scan();return w===5&&a>=s.getTokenOffset()+s.getTokenLength()?m+1:m}else if(a>=A.offset)return m}return 0},t.prototype.isInComment=function(r,i,a){var s=Sn(r.getText(),!1);s.setPosition(i);for(var p=s.scan();p!==17&&s.getTokenOffset()+s.getTokenLength()<a;)p=s.scan();return(p===12||p===13)&&s.getTokenOffset()<=a},t.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:Fn.Markdown,value:r}},t.prototype.doesSupportMarkdown=function(){if(!Pn(this.supportsMarkdown)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=r&&r.completionItem&&Array.isArray(r.completionItem.documentationFormat)&&r.completionItem.documentationFormat.indexOf(Fn.Markdown)!==-1}return this.supportsMarkdown},t.prototype.doesSupportsCommitCharacters=function(){if(!Pn(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},t}(),To=function(){function t(r,i,a){i===void 0&&(i=[]),this.schemaService=r,this.contributions=i,this.promise=a||Promise}return t.prototype.doHover=function(r,i,a){var s=r.offsetAt(i),p=a.getNodeFromOffset(s);if(!p||(p.type==="object"||p.type==="array")&&s>p.offset+1&&s<p.offset+p.length-1)return this.promise.resolve(null);var m=p;if(p.type==="string"){var A=p.parent;if(A&&A.type==="property"&&A.keyNode===p&&(p=A.valueNode,!p))return this.promise.resolve(null)}for(var w=Jt.create(r.positionAt(m.offset),r.positionAt(m.offset+m.length)),E=function(ue){var ge={contents:ue,range:w};return ge},M=Ja(p),Y=this.contributions.length-1;Y>=0;Y--){var ae=this.contributions[Y],ne=ae.getInfoContribution(r.uri,M);if(ne)return ne.then(function(ue){return E(ue)})}return this.schemaService.getSchemaForResource(r.uri,a).then(function(ue){if(ue){var ge=a.getMatchingSchemas(ue.schema,p.offset),he=null,Se=null,me=null,Fe=null;ge.every(function(Ue){if(Ue.node===p&&!Ue.inverted&&Ue.schema&&(he=he||Ue.schema.title,Se=Se||Ue.schema.markdownDescription||_a(Ue.schema.description),Ue.schema.enum)){var $e=Ue.schema.enum.indexOf(ri(p));Ue.schema.markdownEnumDescriptions?me=Ue.schema.markdownEnumDescriptions[$e]:Ue.schema.enumDescriptions&&(me=_a(Ue.schema.enumDescriptions[$e])),me&&(Fe=Ue.schema.enum[$e],typeof Fe!="string"&&(Fe=JSON.stringify(Fe)))}return!0});var Ke="";return he&&(Ke=_a(he)),Se&&(Ke.length>0&&(Ke+=`
180
180
 
181
- `),Ke+=Se),ye&&(Ke.length>0&&(Ke+=`
181
+ `),Ke+=Se),me&&(Ke.length>0&&(Ke+=`
182
182
 
183
- `),Ke+="`"+qa(Fe)+"`: "+ye),E([Ke])}return null})},t}();function Za(t){if(t){var r=t.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
183
+ `),Ke+="`"+qa(Fe)+"`: "+me),E([Ke])}return null})},t}();function _a(t){if(t){var r=t.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
184
184
 
185
- $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function qa(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var Eu=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var p in s)s.hasOwnProperty(p)&&(a[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),pr,oa;if(typeof process=="object")oa=!1;else if(typeof navigator=="object"){var Po=navigator.userAgent;oa=Po.indexOf("Windows")>=0}function Qf(t){return 55296<=t&&t<=56319}function Zf(t){return 56320<=t&&t<=57343}function qf(t){return t>=97&&t<=102}function aa(t){return t>=97&&t<=122}function sa(t){return t>=65&&t<=90}function _a(t){return aa(t)||sa(t)}var la=/^\w[\w\d+.-]*$/,Cu=/^\//,_f=/^\/\//;function Ou(t,r){if(!t.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!la.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Cu.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(_f.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Ri(t,r){return!t&&!r?"file":t}function Io(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==zn&&(r=zn+r):r=zn;break}return r}var rr="",zn="/",Tu=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,rl=function(){function t(r,i,a,s,p,m){m===void 0&&(m=!1),typeof r=="object"?(this.scheme=r.scheme||rr,this.authority=r.authority||rr,this.path=r.path||rr,this.query=r.query||rr,this.fragment=r.fragment||rr):(this.scheme=Ri(r,m),this.authority=i||rr,this.path=Io(this.scheme,a||rr),this.query=s||rr,this.fragment=p||rr,Ou(this,m))}return t.isUri=function(r){return r instanceof t?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return Iu(this,!1)},enumerable:!0,configurable:!0}),t.prototype.with=function(r){if(!r)return this;var i=r.scheme,a=r.authority,s=r.path,p=r.query,m=r.fragment;return i===void 0?i=this.scheme:i===null&&(i=rr),a===void 0?a=this.authority:a===null&&(a=rr),s===void 0?s=this.path:s===null&&(s=rr),p===void 0?p=this.query:p===null&&(p=rr),m===void 0?m=this.fragment:m===null&&(m=rr),i===this.scheme&&a===this.authority&&s===this.path&&p===this.query&&m===this.fragment?this:new Fo(i,a,s,p,m)},t.parse=function(r,i){i===void 0&&(i=!1);var a=Tu.exec(r);return a?new Fo(a[2]||rr,ua(a[4]||rr),ua(a[5]||rr),ua(a[7]||rr),ua(a[9]||rr),i):new Fo(rr,rr,rr,rr,rr)},t.file=function(r){var i=rr;if(oa&&(r=r.replace(/\\/g,zn)),r[0]===zn&&r[1]===zn){var a=r.indexOf(zn,2);a===-1?(i=r.substring(2),r=zn):(i=r.substring(2,a),r=r.substring(a)||zn)}return new Fo("file",i,r,rr,rr)},t.from=function(r){return new Fo(r.scheme,r.authority,r.path,r.query,r.fragment)},t.prototype.toString=function(r){return r===void 0&&(r=!1),il(this,r)},t.prototype.toJSON=function(){return this},t.revive=function(r){if(r){if(r instanceof t)return r;var i=new Fo(r);return i._formatted=r.external,i._fsPath=r._sep===Pu?r.fsPath:null,i}else return r},t}(),Pu=oa?1:void 0,Fo=function(t){Eu(r,t);function r(){var i=t!==null&&t.apply(this,arguments)||this;return i._formatted=null,i._fsPath=null,i}return Object.defineProperty(r.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Iu(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(i){return i===void 0&&(i=!1),i?il(this,!0):(this._formatted||(this._formatted=il(this,!1)),this._formatted)},r.prototype.toJSON=function(){var i={$mid:1};return this._fsPath&&(i.fsPath=this._fsPath,i._sep=Pu),this._formatted&&(i.external=this._formatted),this.path&&(i.path=this.path),this.scheme&&(i.scheme=this.scheme),this.authority&&(i.authority=this.authority),this.query&&(i.query=this.query),this.fragment&&(i.fragment=this.fragment),i},r}(rl),en=(pr={},pr[58]="%3A",pr[47]="%2F",pr[63]="%3F",pr[35]="%23",pr[91]="%5B",pr[93]="%5D",pr[64]="%40",pr[33]="%21",pr[36]="%24",pr[38]="%26",pr[39]="%27",pr[40]="%28",pr[41]="%29",pr[42]="%2A",pr[43]="%2B",pr[44]="%2C",pr[59]="%3B",pr[61]="%3D",pr[32]="%20",pr);function nl(t,r){for(var i=void 0,a=-1,s=0;s<t.length;s++){var p=t.charCodeAt(s);if(p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===45||p===46||p===95||p===126||r&&p===47)a!==-1&&(i+=encodeURIComponent(t.substring(a,s)),a=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));var m=en[p];m!==void 0?(a!==-1&&(i+=encodeURIComponent(t.substring(a,s)),a=-1),i+=m):a===-1&&(a=s)}}return a!==-1&&(i+=encodeURIComponent(t.substring(a))),i!==void 0?i:t}function ec(t){for(var r=void 0,i=0;i<t.length;i++){var a=t.charCodeAt(i);a===35||a===63?(r===void 0&&(r=t.substr(0,i)),r+=en[a]):r!==void 0&&(r+=t[i])}return r!==void 0?r:t}function Iu(t,r){var i;return t.authority&&t.path.length>1&&t.scheme==="file"?i="//"+t.authority+t.path:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?r?i=t.path.substr(1):i=t.path[1].toLowerCase()+t.path.substr(2):i=t.path,oa&&(i=i.replace(/\//g,"\\")),i}function il(t,r){var i=r?ec:nl,a="",s=t.scheme,p=t.authority,m=t.path,S=t.query,w=t.fragment;if(s&&(a+=s,a+=":"),(p||s==="file")&&(a+=zn,a+=zn),p){var E=p.indexOf("@");if(E!==-1){var R=p.substr(0,E);p=p.substr(E+1),E=R.indexOf(":"),E===-1?a+=i(R,!1):(a+=i(R.substr(0,E),!1),a+=":",a+=i(R.substr(E+1),!1)),a+="@"}p=p.toLowerCase(),E=p.indexOf(":"),E===-1?a+=i(p,!1):(a+=i(p.substr(0,E),!1),a+=p.substr(E))}if(m){if(m.length>=3&&m.charCodeAt(0)===47&&m.charCodeAt(2)===58){var J=m.charCodeAt(1);J>=65&&J<=90&&(m="/"+String.fromCharCode(J+32)+":"+m.substr(3))}else if(m.length>=2&&m.charCodeAt(1)===58){var J=m.charCodeAt(0);J>=65&&J<=90&&(m=String.fromCharCode(J+32)+":"+m.substr(2))}a+=i(m,!0)}return S&&(a+="?",a+=i(S,!1)),w&&(a+="#",a+=r?w:nl(w,!1)),a}function ol(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+ol(t.substr(3)):t}}var al=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ua(t){return t.match(al)?t.replace(al,function(r){return ol(r)}):t}var tc=function(){function t(r){try{this.patternRegExp=new RegExp(Oo(r)+"$")}catch(i){this.patternRegExp=null}this.schemas=[]}return t.prototype.addSchema=function(r){this.schemas.push(r)},t.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},t.prototype.getSchemas=function(){return this.schemas},t}(),rc=function(){function t(r,i,a){this.service=r,this.url=i,this.dependencies={},a&&(this.unresolvedSchema=this.service.promise.resolve(new ko(a)))}return t.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},t.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(i){return r.service.resolveSchemaContent(i,r.url,r.dependencies)})),this.resolvedSchema},t.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},t}(),ko=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t}(),pi=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t.prototype.getSection=function(r){return hn(this.getSectionRecursive(r,this.schema))},t.prototype.getSectionRecursive=function(r,i){if(!i||typeof i=="boolean"||r.length===0)return i;var a=r.shift();if(i.properties&&typeof i.properties[a])return this.getSectionRecursive(r,i.properties[a]);if(i.patternProperties)for(var s=0,p=Object.keys(i.patternProperties);s<p.length;s++){var m=p[s],S=new RegExp(m);if(S.test(a))return this.getSectionRecursive(r,i.patternProperties[m])}else{if(typeof i.additionalProperties=="object")return this.getSectionRecursive(r,i.additionalProperties);if(a.match("[0-9]+")){if(Array.isArray(i.items)){var w=parseInt(a,10);if(!isNaN(w)&&i.items[w])return this.getSectionRecursive(r,i.items[w])}else if(i.items)return this.getSectionRecursive(r,i.items)}}return null},t}(),fa=function(){function t(r,i,a){this.contextService=i,this.requestService=r,this.promiseConstructor=a||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return t.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(i){var a=rl.parse(i).scheme;return a!=="schemaservice"&&(!r||r(a))})},Object.defineProperty(t.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},t.prototype.onResourceChange=function(r){var i=this,a=!1;r=this.normalizeId(r);for(var s=[r],p=Object.keys(this.schemasById).map(function(E){return i.schemasById[E]});s.length;)for(var m=s.pop(),S=0;S<p.length;S++){var w=p[S];w&&(w.url===m||w.dependencies[m])&&(w.url!==m&&s.push(w.url),w.clearSchema(),p[S]=void 0,a=!0)}return a},t.prototype.normalizeId=function(r){try{return rl.parse(r).toString()}catch(i){return r}},t.prototype.setSchemaContributions=function(r){if(r.schemas){var i=r.schemas;for(var a in i){var s=this.normalizeId(a);this.contributionSchemas[s]=this.addSchemaHandle(s,i[a])}}if(r.schemaAssociations){var p=r.schemaAssociations;for(var m in p){var S=p[m];this.contributionAssociations[m]=S;for(var w=this.getOrAddFilePatternAssociation(m),E=0,R=S;E<R.length;E++){var J=R[E],a=this.normalizeId(J);w.addSchema(a)}}}},t.prototype.addSchemaHandle=function(r,i){var a=new rc(this,r,i);return this.schemasById[r]=a,a},t.prototype.getOrAddSchemaHandle=function(r,i){return this.schemasById[r]||this.addSchemaHandle(r,i)},t.prototype.getOrAddFilePatternAssociation=function(r){var i=this.filePatternAssociationById[r];return i||(i=new tc(r),this.filePatternAssociationById[r]=i,this.filePatternAssociations.push(i)),i},t.prototype.registerExternalSchema=function(r,i,a){i===void 0&&(i=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,i)for(var p=0,m=i;p<m.length;p++){var S=m[p];this.getOrAddFilePatternAssociation(S).addSchema(s)}return a?this.addSchemaHandle(s,a):this.getOrAddSchemaHandle(s)},t.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var r in this.contributionSchemas)this.schemasById[r]=this.contributionSchemas[r],this.registeredSchemasIds[r]=!0;for(var i in this.contributionAssociations)for(var a=this.getOrAddFilePatternAssociation(i),s=0,p=this.contributionAssociations[i];s<p.length;s++){var m=p[s],r=this.normalizeId(m);a.addSchema(r)}},t.prototype.getResolvedSchema=function(r){var i=this.normalizeId(r),a=this.schemasById[i];return a?a.getResolvedSchema():this.promise.resolve(null)},t.prototype.loadSchema=function(r){if(!this.requestService){var i="Unable to load schema from '"+qi(r)+"'. No schema request service available";return this.promise.resolve(new ko({},[i]))}return this.requestService(r).then(function(a){if(!a){var s="Unable to load schema from '"+qi(r)+"': No content.";return new ko({},[s])}var p={},m=[];p=Wf(a,m);var S=m.length?["Unable to parse content from '"+qi(r)+"': Parse error at offset "+m[0].offset]:[];return new ko(p,S)},function(a){var s="Unable to load schema from '"+qi(r)+"': "+a.toString();return new ko({},[s])})},t.prototype.resolveSchemaContent=function(r,i,a){var s=this,p=r.errors.slice(0),m=r.schema;if(m.$schema){var S=this.normalizeId(m.$schema);if(S==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new pi({},["Draft-03 schemas are not supported."]));S==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var w=this.contextService,E=function(re,le){if(!le)return re;var ve=re;return le[0]==="/"&&(le=le.substr(1)),le.split("/").some(function(pe){return ve=ve[pe],!ve}),ve},R=function(re,le,ve,pe){var Se=E(le,pe);if(Se)for(var ye in Se)Se.hasOwnProperty(ye)&&!re.hasOwnProperty(ye)&&(re[ye]=Se[ye]);else p.push("$ref '"+pe+"' in '"+ve+"' can not be resolved.")},J=function(re,le,ve,pe,Se){w&&!/^\w+:\/\/.*/.test(le)&&(le=w.resolveRelativePath(le,pe)),le=s.normalizeId(le);var ye=s.getOrAddSchemaHandle(le);return ye.getUnresolvedSchema().then(function(Fe){if(Se[le]=!0,Fe.errors.length){var Ke=ve?le+"#"+ve:le;p.push("Problems loading reference '"+Ke+"': "+Fe.errors[0]+".")}return R(re,Fe.schema,le,ve),oe(re,Fe.schema,le,ye.dependencies)})},oe=function(re,le,ve,pe){if(!re||typeof re!="object")return Promise.resolve(null);for(var Se=[re],ye=[],Fe=[],Ke=function(){for(var We=[],Ye=0;Ye<arguments.length;Ye++)We[Ye]=arguments[Ye];for(var Ge=0,et=We;Ge<et.length;Ge++){var bt=et[Ge];typeof bt=="object"&&Se.push(bt)}},Ue=function(){for(var We=[],Ye=0;Ye<arguments.length;Ye++)We[Ye]=arguments[Ye];for(var Ge=0,et=We;Ge<et.length;Ge++){var bt=et[Ge];if(typeof bt=="object")for(var Nt in bt){var Ht=bt[Nt];typeof Ht=="object"&&Se.push(Ht)}}},$e=function(){for(var We=[],Ye=0;Ye<arguments.length;Ye++)We[Ye]=arguments[Ye];for(var Ge=0,et=We;Ge<et.length;Ge++){var bt=et[Ge];if(Array.isArray(bt))for(var Nt=0,Ht=bt;Nt<Ht.length;Nt++){var lr=Ht[Nt];typeof lr=="object"&&Se.push(lr)}}},Be=function(We){for(var Ye=[];We.$ref;){var Ge=We.$ref,et=Ge.split("#",2);if(delete We.$ref,et[0].length>0){Fe.push(J(We,et[0],et[1],ve,pe));return}else Ye.indexOf(Ge)===-1&&(R(We,le,ve,et[1]),Ye.push(Ge))}Ke(We.items,We.additionalProperties,We.not,We.contains,We.propertyNames,We.if,We.then,We.else),Ue(We.definitions,We.properties,We.patternProperties,We.dependencies),$e(We.anyOf,We.allOf,We.oneOf,We.items)};Se.length;){var Ve=Se.pop();ye.indexOf(Ve)>=0||(ye.push(Ve),Be(Ve))}return s.promise.all(Fe)};return oe(m,m,i,a).then(function(re){return new pi(m,p)})},t.prototype.getSchemaForResource=function(r,i){if(i&&i.root&&i.root.type==="object"){var a=i.root.properties.filter(function(le){return le.keyNode.value==="$schema"&&le.valueNode&&le.valueNode.type==="string"});if(a.length>0){var s=ri(a[0].valueNode);if(s&&bu(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var p=this.normalizeId(s);return this.getOrAddSchemaHandle(p).getResolvedSchema()}}}for(var m=Object.create(null),S=[],w=0,E=this.filePatternAssociations;w<E.length;w++){var R=E[w];if(R.matchesPattern(r))for(var J=0,oe=R.getSchemas();J<oe.length;J++){var re=oe[J];m[re]||(S.push(re),m[re]=!0)}}return S.length>0?this.createCombinedSchema(r,S).getResolvedSchema():this.promise.resolve(null)},t.prototype.createCombinedSchema=function(r,i){if(i.length===1)return this.getOrAddSchemaHandle(i[0]);var a="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:i.map(function(p){return{$ref:p}})};return this.addSchemaHandle(a,s)},t}();function qi(t){try{}catch(r){}return t}var ca=function(){function t(r,i){this.jsonSchemaService=r,this.promise=i,this.validationEnabled=!0}return t.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:Dt.Error)},t.prototype.doValidation=function(r,i,a,s){var p=this;if(!this.validationEnabled)return this.promise.resolve([]);var m=[],S={},w=function(J){var oe=J.range.start.line+" "+J.range.start.character+" "+J.message;S[oe]||(S[oe]=!0,m.push(J))},E=function(J){var oe=a?_i(a.trailingCommas):Dt.Error,re=a?_i(a.comments):p.commentSeverity;if(J){if(J.errors.length&&i.root){var le=i.root,ve=le.type==="object"?le.properties[0]:null;if(ve&&ve.keyNode.value==="$schema"){var pe=ve.valueNode||ve,Se=Jt.create(r.positionAt(pe.offset),r.positionAt(pe.offset+pe.length));w(_n.create(Se,J.errors[0],Dt.Warning,Kt.SchemaResolveError))}else{var Se=Jt.create(r.positionAt(le.offset),r.positionAt(le.offset+1));w(_n.create(Se,J.errors[0],Dt.Warning,Kt.SchemaResolveError))}}else{var ye=i.validate(r,J.schema);ye&&ye.forEach(w)}Fu(J.schema)&&(re=void 0),ku(J.schema)&&(oe=void 0)}for(var Fe=0,Ke=i.syntaxErrors;Fe<Ke.length;Fe++){var Ue=Ke[Fe];if(Ue.code===Kt.TrailingComma){if(typeof oe!="number")continue;Ue.severity=oe}w(Ue)}if(typeof re=="number"){var $e="Comments are not permitted in JSON.";i.comments.forEach(function(Be){w(_n.create(Be,$e,re,Kt.CommentNotPermitted))})}return m};if(s){var R=s.id||"schemaservice://untitled/"+hi++;return this.jsonSchemaService.resolveSchemaContent(new ko(s),R,{}).then(function(J){return E(J)})}return this.jsonSchemaService.getSchemaForResource(r.uri,i).then(function(J){return E(J)})},t}(),hi=0;function Fu(t){if(t&&typeof t=="object"){if(qn(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var a=i[r],s=Fu(a);if(qn(s))return s}}}function ku(t){if(t&&typeof t=="object"){if(qn(t.allowTrailingCommas))return t.allowTrailingCommas;if(qn(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var a=i[r],s=ku(a);if(qn(s))return s}}}function _i(t){switch(t){case"error":return Dt.Error;case"warning":return Dt.Warning;case"ignore":return}}var sl=48,Ru=57,Mu=65,eo=97,Ro=102;function br(t){return t<sl?0:t<=Ru?t-sl:(t<eo&&(t+=eo-Mu),t>=eo&&t<=Ro?t-eo+10:0)}function ll(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:br(t.charCodeAt(1))*17/255,green:br(t.charCodeAt(2))*17/255,blue:br(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:br(t.charCodeAt(1))*17/255,green:br(t.charCodeAt(2))*17/255,blue:br(t.charCodeAt(3))*17/255,alpha:br(t.charCodeAt(4))*17/255};case 7:return{red:(br(t.charCodeAt(1))*16+br(t.charCodeAt(2)))/255,green:(br(t.charCodeAt(3))*16+br(t.charCodeAt(4)))/255,blue:(br(t.charCodeAt(5))*16+br(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(br(t.charCodeAt(1))*16+br(t.charCodeAt(2)))/255,green:(br(t.charCodeAt(3))*16+br(t.charCodeAt(4)))/255,blue:(br(t.charCodeAt(5))*16+br(t.charCodeAt(6)))/255,alpha:(br(t.charCodeAt(7))*16+br(t.charCodeAt(8)))/255}}return null}function Lu(t,r,i,a){return a===void 0&&(a=1),{red:t/255,green:r/255,blue:i/255,alpha:a}}var nc=function(){function t(r){this.schemaService=r}return t.prototype.findDocumentSymbols=function(r,i,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var m=a.resultLimit,S=r.uri;if((S==="vscode://defaultsettings/keybindings.json"||Qa(S.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],E=0,R=p.items;E<R.length;E++){var J=R[E];if(J.type==="object")for(var oe=0,re=J.properties;oe<re.length;oe++){var le=re[oe];if(le.keyNode.value==="key"&&le.valueNode){var ve=fi.create(r.uri,Mn(r,J));if(w.push({name:ri(le.valueNode),kind:ei.Function,location:ve}),m--,m<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(S),w}}}return w}var pe=function(ye,Fe,Ke){return m>=0&&(Fe.type==="array"?Fe.items.forEach(function(Ue){return pe(ye,Ue,Ke)}):Fe.type==="object"&&Fe.properties.forEach(function(Ue){if(m>=0){var $e=Ue.valueNode;if($e){m--;var Be=fi.create(r.uri,Mn(r,Ue)),Ve=Ke?Ke+"."+Ue.keyNode.value:Ue.keyNode.value;ye.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind($e.type),location:Be,containerName:Ke}),pe(ye,$e,Ve)}}})),ye},Se=pe([],p,void 0);return m<0&&(Se.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(S)),Se},t.prototype.findDocumentSymbols2=function(r,i,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var m=a.resultLimit,S=r.uri;if((S==="vscode://defaultsettings/keybindings.json"||Qa(S.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],E=0,R=p.items;E<R.length;E++){var J=R[E];if(J.type==="object")for(var oe=0,re=J.properties;oe<re.length;oe++){var le=re[oe];if(le.keyNode.value==="key"&&le.valueNode){var ve=Mn(r,J),pe=Mn(r,le.keyNode);if(w.push({name:ri(le.valueNode),kind:ei.Function,range:ve,selectionRange:pe}),m--,m<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(S),w}}}return w}var Se=function(Fe,Ke){return m>=0&&(Ke.type==="array"?Ke.items.forEach(function(Ue,$e){if(Ue&&m>=0){m--;var Be=Mn(r,Ue),Ve=Be,We=String($e),Ye=Se([],Ue);Fe.push({name:We,kind:s.getSymbolKind(Ue.type),range:Be,selectionRange:Ve,children:Ye})}}):Ke.type==="object"&&Ke.properties.forEach(function(Ue){var $e=Ue.valueNode;if($e&&m>=0){m--;var Be=Mn(r,Ue),Ve=Mn(r,Ue.keyNode),We=Se([],$e);Fe.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind($e.type),range:Be,selectionRange:Ve,children:We})}})),Fe},ye=Se([],p);return m<0&&(ye.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(S)),ye},t.prototype.getSymbolKind=function(r){switch(r){case"object":return ei.Module;case"string":return ei.String;case"number":return ei.Number;case"array":return ei.Array;case"boolean":return ei.Boolean;default:return ei.Variable}},t.prototype.getKeyLabel=function(r){var i=r.keyNode.value;return i&&(i=i.replace(/[\n]/g,"\u21B5")),i&&i.trim()?i:'"'+i+'"'},t.prototype.findDocumentColors=function(r,i,a){return this.schemaService.getSchemaForResource(r.uri,i).then(function(s){var p=[];if(s)for(var m=a&&typeof a.resultLimit=="number"?a.resultLimit:Number.MAX_VALUE,S=i.getMatchingSchemas(s.schema),w={},E=0,R=S;E<R.length;E++){var J=R[E];if(!J.inverted&&J.schema&&(J.schema.format==="color"||J.schema.format==="color-hex")&&J.node&&J.node.type==="string"){var oe=String(J.node.offset);if(!w[oe]){var re=ll(ri(J.node));if(re){var le=Mn(r,J.node);p.push({color:re,range:le})}if(w[oe]=!0,m--,m<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(r.uri),p}}}return p})},t.prototype.getColorPresentations=function(r,i,a,s){var p=[],m=Math.round(a.red*255),S=Math.round(a.green*255),w=Math.round(a.blue*255);function E(J){var oe=J.toString(16);return oe.length!==2?"0"+oe:oe}var R;return a.alpha===1?R="#"+E(m)+E(S)+E(w):R="#"+E(m)+E(S)+E(w)+E(Math.round(a.alpha*255)),p.push({label:R,textEdit:Fn.replace(s,JSON.stringify(R))}),p},t}();function Mn(t,r){return Jt.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var Nu={schemaAssociations:{},schemas:{}};function ic(t,r){var i=[],a=[],s=[],p=-1,m=An(t.getText(),!1),S=m.scan();function w(Ye){i.push(Ye),a.push(s.length)}for(;S!==17;){switch(S){case 1:case 3:{var E=t.positionAt(m.getTokenOffset()).line,R={startLine:E,endLine:E,kind:S===1?"object":"array"};s.push(R);break}case 2:case 4:{var J=S===2?"object":"array";if(s.length>0&&s[s.length-1].kind===J){var R=s.pop(),oe=t.positionAt(m.getTokenOffset()).line;R&&oe>R.startLine+1&&p!==R.startLine&&(R.endLine=oe-1,w(R),p=R.startLine)}break}case 13:{var E=t.positionAt(m.getTokenOffset()).line,re=t.positionAt(m.getTokenOffset()+m.getTokenLength()).line;m.getTokenError()===1&&E+1<t.lineCount?m.setPosition(t.offsetAt(En.create(E+1,0))):E<re&&(w({startLine:E,endLine:re,kind:xo.Comment}),p=E);break}case 12:{var le=t.getText().substr(m.getTokenOffset(),m.getTokenLength()),ve=le.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ve){var oe=t.positionAt(m.getTokenOffset()).line;if(ve[1]){var R={startLine:oe,endLine:oe,kind:xo.Region};s.push(R)}else{for(var pe=s.length-1;pe>=0&&s[pe].kind!==xo.Region;)pe--;if(pe>=0){var R=s[pe];s.length=pe,oe>R.startLine&&p!==R.startLine&&(R.endLine=oe,w(R),p=R.startLine)}}}break}}S=m.scan()}var Se=r&&r.rangeLimit;if(typeof Se!="number"||i.length<=Se)return i;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(t.uri);for(var ye=[],Fe=0,Ke=a;Fe<Ke.length;Fe++){var Ue=Ke[Fe];Ue<30&&(ye[Ue]=(ye[Ue]||0)+1)}for(var $e=0,Be=0,pe=0;pe<ye.length;pe++){var Ve=ye[pe];if(Ve){if(Ve+$e>Se){Be=pe;break}$e+=Ve}}for(var We=[],pe=0;pe<i.length;pe++){var Ue=a[pe];typeof Ue=="number"&&(Ue<Be||Ue===Be&&$e++<Se)&&We.push(i[pe])}return We}function Du(t,r,i){function a(S){for(var w=t.offsetAt(S),E=i.getNodeFromOffset(w,!0),R=[];E;){switch(E.type){case"string":case"object":case"array":var J=E.offset+1,oe=E.offset+E.length-1;J<oe&&w>=J&&w<=oe&&R.push(s(J,oe)),R.push(s(E.offset,E.offset+E.length));break;case"number":case"boolean":case"null":case"property":R.push(s(E.offset,E.offset+E.length));break}if(E.type==="property"||E.parent&&E.parent.type==="array"){var re=m(E.offset+E.length,5);re!==-1&&R.push(s(E.offset,re))}E=E.parent}for(var le=void 0,ve=R.length-1;ve>=0;ve--)le=Hn.create(R[ve],le);return le||(le=Hn.create(Jt.create(S,S))),le}function s(S,w){return Jt.create(t.positionAt(S),t.positionAt(w))}var p=An(t.getText(),!0);function m(S,w){p.setPosition(S);var E=p.scan();return E===w?p.getTokenOffset()+p.getTokenLength():-1}return r.map(a)}function es(t){var r=t.promiseConstructor||Promise,i=new fa(t.schemaRequestService,t.workspaceContext,r);i.setSchemaContributions(Nu);var a=new Au(i,t.contributions,r,t.clientCapabilities),s=new To(i,t.contributions,r),p=new nc(i),m=new ca(i,r);return{configure:function(S){i.clearExternalSchemas(),S.schemas&&S.schemas.forEach(function(w){i.registerExternalSchema(w.uri,w.fileMatch,w.schema)}),m.configure(S)},resetSchema:function(S){return i.onResourceChange(S)},doValidation:m.doValidation.bind(m),parseJSONDocument:function(S){return Ja(S,{collectComments:!0})},newJSONDocument:function(S,w){return mu(S,w)},doComplete:a.doComplete.bind(a),findDocumentSymbols:p.findDocumentSymbols.bind(p),findDocumentSymbols2:p.findDocumentSymbols2.bind(p),findColorSymbols:function(S,w){return p.findDocumentColors(S,w).then(function(E){return E.map(function(R){return R.range})})},findDocumentColors:p.findDocumentColors.bind(p),getColorPresentations:p.getColorPresentations.bind(p),doHover:s.doHover.bind(s),getFoldingRanges:ic,getSelectionRanges:Du,format:function(S,w,E){var R=void 0;if(w){var J=S.offsetAt(w.start),oe=S.offsetAt(w.end)-J;R={offset:J,length:oe}}var re={tabSize:E?E.tabSize:4,insertSpaces:E?E.insertSpaces:!0,eol:`
186
- `};return Vs(S.getText(),R,re).map(function(le){return Fn.replace(Jt.create(S.positionAt(le.offset),S.positionAt(le.offset+le.length)),le.content)})}}}var Od=o(96876),Td=o(4328),ts=o(3256),oc=o(71707),ac=o(82801),Pd=o(32095),Bu=o(86081),sc=o(44254),Id=o(75019),lc=o(13837),ul=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});const Mo=es({});$i.registerHelper("lint","json",function(t,r){return ul(this,null,function*(){const{schema:i,setError:a}=r;Mo.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const s=Fi.create(r.id+".json","json",0,t),p=Mo.parseJSONDocument(s),m=yield Mo.doValidation(s,p);return m.length?a&&a(m[0].message):a&&a(void 0),m.map(S=>({from:$i.Pos(S.range.start.line,S.range.start.character),to:$i.Pos(S.range.end.line,S.range.end.character),message:S.message}))})}),$i.registerHelper("hint","json",(t,r)=>ul(void 0,null,function*(){const i=r.schema;if(!i)return;Mo.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const a=t.getDoc().getCursor(),s=t.getTokenAt(a),p=Fi.create(r.id+".json","json",0,t.getValue()),m=Mo.parseJSONDocument(p),S=yield Mo.doComplete(p,{line:a.line,character:a.ch},m),w=R=>{let J="";for(;R--;)J+=" ";return J};let E=S?S.items.map(R=>({text:R.insertText,displayText:R.label,filter:R.filterText||R.label,from:{line:R.textEdit.range.start.line,ch:R.textEdit.range.start.character},to:{line:R.textEdit.range.end.line,ch:R.textEdit.range.end.character},hint:(J,oe,re)=>{const le="_$__REDOC_CURSOR_HERE";let ve=re.text.replace(/(\$1|\${1:[^}]+})/,le)||"";if(ve=ve.replace(/(\$\d+|\${[^}]+})/g,"")||"",J.setSelection(re.from,re.to),ve.indexOf(`
187
- `)>-1){const Se=J.getLine(J.getCursor().line).search(/(\S|$)/);ve=ve.replace(/\n/g,`
188
- `+w(Se))}J.replaceSelection(ve);const pe=J.getSearchCursor(le,re.from);pe.findNext()&&(J.setCursor(pe.from()),pe.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(E=E.filter(R=>R.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:$i.Pos(a.line,s.start),to:$i.Pos(a.line,a.ch),list:E}}));var fl=Object.defineProperty,da=(t,r,i)=>r in t?fl(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Mi=(t,r,i)=>(da(t,typeof r!="symbol"?r+"":r,i),i);const uc=jt.createGlobalStyle`
185
+ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function qa(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var Eu=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var p in s)s.hasOwnProperty(p)&&(a[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),pr,oa;if(typeof process=="object")oa=!1;else if(typeof navigator=="object"){var Po=navigator.userAgent;oa=Po.indexOf("Windows")>=0}function Qf(t){return 55296<=t&&t<=56319}function Zf(t){return 56320<=t&&t<=57343}function _f(t){return t>=97&&t<=102}function aa(t){return t>=97&&t<=122}function sa(t){return t>=65&&t<=90}function es(t){return aa(t)||sa(t)}var la=/^\w[\w\d+.-]*$/,Cu=/^\//,qf=/^\/\//;function Ou(t,r){if(!t.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!la.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Cu.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(qf.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Mi(t,r){return!t&&!r?"file":t}function Io(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==Hn&&(r=Hn+r):r=Hn;break}return r}var rr="",Hn="/",Tu=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,nl=function(){function t(r,i,a,s,p,m){m===void 0&&(m=!1),typeof r=="object"?(this.scheme=r.scheme||rr,this.authority=r.authority||rr,this.path=r.path||rr,this.query=r.query||rr,this.fragment=r.fragment||rr):(this.scheme=Mi(r,m),this.authority=i||rr,this.path=Io(this.scheme,a||rr),this.query=s||rr,this.fragment=p||rr,Ou(this,m))}return t.isUri=function(r){return r instanceof t?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return Iu(this,!1)},enumerable:!0,configurable:!0}),t.prototype.with=function(r){if(!r)return this;var i=r.scheme,a=r.authority,s=r.path,p=r.query,m=r.fragment;return i===void 0?i=this.scheme:i===null&&(i=rr),a===void 0?a=this.authority:a===null&&(a=rr),s===void 0?s=this.path:s===null&&(s=rr),p===void 0?p=this.query:p===null&&(p=rr),m===void 0?m=this.fragment:m===null&&(m=rr),i===this.scheme&&a===this.authority&&s===this.path&&p===this.query&&m===this.fragment?this:new Fo(i,a,s,p,m)},t.parse=function(r,i){i===void 0&&(i=!1);var a=Tu.exec(r);return a?new Fo(a[2]||rr,ua(a[4]||rr),ua(a[5]||rr),ua(a[7]||rr),ua(a[9]||rr),i):new Fo(rr,rr,rr,rr,rr)},t.file=function(r){var i=rr;if(oa&&(r=r.replace(/\\/g,Hn)),r[0]===Hn&&r[1]===Hn){var a=r.indexOf(Hn,2);a===-1?(i=r.substring(2),r=Hn):(i=r.substring(2,a),r=r.substring(a)||Hn)}return new Fo("file",i,r,rr,rr)},t.from=function(r){return new Fo(r.scheme,r.authority,r.path,r.query,r.fragment)},t.prototype.toString=function(r){return r===void 0&&(r=!1),ol(this,r)},t.prototype.toJSON=function(){return this},t.revive=function(r){if(r){if(r instanceof t)return r;var i=new Fo(r);return i._formatted=r.external,i._fsPath=r._sep===Pu?r.fsPath:null,i}else return r},t}(),Pu=oa?1:void 0,Fo=function(t){Eu(r,t);function r(){var i=t!==null&&t.apply(this,arguments)||this;return i._formatted=null,i._fsPath=null,i}return Object.defineProperty(r.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Iu(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(i){return i===void 0&&(i=!1),i?ol(this,!0):(this._formatted||(this._formatted=ol(this,!1)),this._formatted)},r.prototype.toJSON=function(){var i={$mid:1};return this._fsPath&&(i.fsPath=this._fsPath,i._sep=Pu),this._formatted&&(i.external=this._formatted),this.path&&(i.path=this.path),this.scheme&&(i.scheme=this.scheme),this.authority&&(i.authority=this.authority),this.query&&(i.query=this.query),this.fragment&&(i.fragment=this.fragment),i},r}(nl),en=(pr={},pr[58]="%3A",pr[47]="%2F",pr[63]="%3F",pr[35]="%23",pr[91]="%5B",pr[93]="%5D",pr[64]="%40",pr[33]="%21",pr[36]="%24",pr[38]="%26",pr[39]="%27",pr[40]="%28",pr[41]="%29",pr[42]="%2A",pr[43]="%2B",pr[44]="%2C",pr[59]="%3B",pr[61]="%3D",pr[32]="%20",pr);function il(t,r){for(var i=void 0,a=-1,s=0;s<t.length;s++){var p=t.charCodeAt(s);if(p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===45||p===46||p===95||p===126||r&&p===47)a!==-1&&(i+=encodeURIComponent(t.substring(a,s)),a=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));var m=en[p];m!==void 0?(a!==-1&&(i+=encodeURIComponent(t.substring(a,s)),a=-1),i+=m):a===-1&&(a=s)}}return a!==-1&&(i+=encodeURIComponent(t.substring(a))),i!==void 0?i:t}function ec(t){for(var r=void 0,i=0;i<t.length;i++){var a=t.charCodeAt(i);a===35||a===63?(r===void 0&&(r=t.substr(0,i)),r+=en[a]):r!==void 0&&(r+=t[i])}return r!==void 0?r:t}function Iu(t,r){var i;return t.authority&&t.path.length>1&&t.scheme==="file"?i="//"+t.authority+t.path:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?r?i=t.path.substr(1):i=t.path[1].toLowerCase()+t.path.substr(2):i=t.path,oa&&(i=i.replace(/\//g,"\\")),i}function ol(t,r){var i=r?ec:il,a="",s=t.scheme,p=t.authority,m=t.path,A=t.query,w=t.fragment;if(s&&(a+=s,a+=":"),(p||s==="file")&&(a+=Hn,a+=Hn),p){var E=p.indexOf("@");if(E!==-1){var M=p.substr(0,E);p=p.substr(E+1),E=M.indexOf(":"),E===-1?a+=i(M,!1):(a+=i(M.substr(0,E),!1),a+=":",a+=i(M.substr(E+1),!1)),a+="@"}p=p.toLowerCase(),E=p.indexOf(":"),E===-1?a+=i(p,!1):(a+=i(p.substr(0,E),!1),a+=p.substr(E))}if(m){if(m.length>=3&&m.charCodeAt(0)===47&&m.charCodeAt(2)===58){var Y=m.charCodeAt(1);Y>=65&&Y<=90&&(m="/"+String.fromCharCode(Y+32)+":"+m.substr(3))}else if(m.length>=2&&m.charCodeAt(1)===58){var Y=m.charCodeAt(0);Y>=65&&Y<=90&&(m=String.fromCharCode(Y+32)+":"+m.substr(2))}a+=i(m,!0)}return A&&(a+="?",a+=i(A,!1)),w&&(a+="#",a+=r?w:il(w,!1)),a}function al(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+al(t.substr(3)):t}}var sl=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ua(t){return t.match(sl)?t.replace(sl,function(r){return al(r)}):t}var tc=function(){function t(r){try{this.patternRegExp=new RegExp(Oo(r)+"$")}catch(i){this.patternRegExp=null}this.schemas=[]}return t.prototype.addSchema=function(r){this.schemas.push(r)},t.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},t.prototype.getSchemas=function(){return this.schemas},t}(),rc=function(){function t(r,i,a){this.service=r,this.url=i,this.dependencies={},a&&(this.unresolvedSchema=this.service.promise.resolve(new ko(a)))}return t.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},t.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(i){return r.service.resolveSchemaContent(i,r.url,r.dependencies)})),this.resolvedSchema},t.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},t}(),ko=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t}(),pi=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t.prototype.getSection=function(r){return pn(this.getSectionRecursive(r,this.schema))},t.prototype.getSectionRecursive=function(r,i){if(!i||typeof i=="boolean"||r.length===0)return i;var a=r.shift();if(i.properties&&typeof i.properties[a])return this.getSectionRecursive(r,i.properties[a]);if(i.patternProperties)for(var s=0,p=Object.keys(i.patternProperties);s<p.length;s++){var m=p[s],A=new RegExp(m);if(A.test(a))return this.getSectionRecursive(r,i.patternProperties[m])}else{if(typeof i.additionalProperties=="object")return this.getSectionRecursive(r,i.additionalProperties);if(a.match("[0-9]+")){if(Array.isArray(i.items)){var w=parseInt(a,10);if(!isNaN(w)&&i.items[w])return this.getSectionRecursive(r,i.items[w])}else if(i.items)return this.getSectionRecursive(r,i.items)}}return null},t}(),fa=function(){function t(r,i,a){this.contextService=i,this.requestService=r,this.promiseConstructor=a||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return t.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(i){var a=nl.parse(i).scheme;return a!=="schemaservice"&&(!r||r(a))})},Object.defineProperty(t.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},t.prototype.onResourceChange=function(r){var i=this,a=!1;r=this.normalizeId(r);for(var s=[r],p=Object.keys(this.schemasById).map(function(E){return i.schemasById[E]});s.length;)for(var m=s.pop(),A=0;A<p.length;A++){var w=p[A];w&&(w.url===m||w.dependencies[m])&&(w.url!==m&&s.push(w.url),w.clearSchema(),p[A]=void 0,a=!0)}return a},t.prototype.normalizeId=function(r){try{return nl.parse(r).toString()}catch(i){return r}},t.prototype.setSchemaContributions=function(r){if(r.schemas){var i=r.schemas;for(var a in i){var s=this.normalizeId(a);this.contributionSchemas[s]=this.addSchemaHandle(s,i[a])}}if(r.schemaAssociations){var p=r.schemaAssociations;for(var m in p){var A=p[m];this.contributionAssociations[m]=A;for(var w=this.getOrAddFilePatternAssociation(m),E=0,M=A;E<M.length;E++){var Y=M[E],a=this.normalizeId(Y);w.addSchema(a)}}}},t.prototype.addSchemaHandle=function(r,i){var a=new rc(this,r,i);return this.schemasById[r]=a,a},t.prototype.getOrAddSchemaHandle=function(r,i){return this.schemasById[r]||this.addSchemaHandle(r,i)},t.prototype.getOrAddFilePatternAssociation=function(r){var i=this.filePatternAssociationById[r];return i||(i=new tc(r),this.filePatternAssociationById[r]=i,this.filePatternAssociations.push(i)),i},t.prototype.registerExternalSchema=function(r,i,a){i===void 0&&(i=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,i)for(var p=0,m=i;p<m.length;p++){var A=m[p];this.getOrAddFilePatternAssociation(A).addSchema(s)}return a?this.addSchemaHandle(s,a):this.getOrAddSchemaHandle(s)},t.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var r in this.contributionSchemas)this.schemasById[r]=this.contributionSchemas[r],this.registeredSchemasIds[r]=!0;for(var i in this.contributionAssociations)for(var a=this.getOrAddFilePatternAssociation(i),s=0,p=this.contributionAssociations[i];s<p.length;s++){var m=p[s],r=this.normalizeId(m);a.addSchema(r)}},t.prototype.getResolvedSchema=function(r){var i=this.normalizeId(r),a=this.schemasById[i];return a?a.getResolvedSchema():this.promise.resolve(null)},t.prototype.loadSchema=function(r){if(!this.requestService){var i="Unable to load schema from '"+_i(r)+"'. No schema request service available";return this.promise.resolve(new ko({},[i]))}return this.requestService(r).then(function(a){if(!a){var s="Unable to load schema from '"+_i(r)+"': No content.";return new ko({},[s])}var p={},m=[];p=Wf(a,m);var A=m.length?["Unable to parse content from '"+_i(r)+"': Parse error at offset "+m[0].offset]:[];return new ko(p,A)},function(a){var s="Unable to load schema from '"+_i(r)+"': "+a.toString();return new ko({},[s])})},t.prototype.resolveSchemaContent=function(r,i,a){var s=this,p=r.errors.slice(0),m=r.schema;if(m.$schema){var A=this.normalizeId(m.$schema);if(A==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new pi({},["Draft-03 schemas are not supported."]));A==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var w=this.contextService,E=function(ne,ue){if(!ue)return ne;var ge=ne;return ue[0]==="/"&&(ue=ue.substr(1)),ue.split("/").some(function(he){return ge=ge[he],!ge}),ge},M=function(ne,ue,ge,he){var Se=E(ue,he);if(Se)for(var me in Se)Se.hasOwnProperty(me)&&!ne.hasOwnProperty(me)&&(ne[me]=Se[me]);else p.push("$ref '"+he+"' in '"+ge+"' can not be resolved.")},Y=function(ne,ue,ge,he,Se){w&&!/^\w+:\/\/.*/.test(ue)&&(ue=w.resolveRelativePath(ue,he)),ue=s.normalizeId(ue);var me=s.getOrAddSchemaHandle(ue);return me.getUnresolvedSchema().then(function(Fe){if(Se[ue]=!0,Fe.errors.length){var Ke=ge?ue+"#"+ge:ue;p.push("Problems loading reference '"+Ke+"': "+Fe.errors[0]+".")}return M(ne,Fe.schema,ue,ge),ae(ne,Fe.schema,ue,me.dependencies)})},ae=function(ne,ue,ge,he){if(!ne||typeof ne!="object")return Promise.resolve(null);for(var Se=[ne],me=[],Fe=[],Ke=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var Ge=0,rt=We;Ge<rt.length;Ge++){var bt=rt[Ge];typeof bt=="object"&&Se.push(bt)}},Ue=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var Ge=0,rt=We;Ge<rt.length;Ge++){var bt=rt[Ge];if(typeof bt=="object")for(var Dt in bt){var Ht=bt[Dt];typeof Ht=="object"&&Se.push(Ht)}}},$e=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var Ge=0,rt=We;Ge<rt.length;Ge++){var bt=rt[Ge];if(Array.isArray(bt))for(var Dt=0,Ht=bt;Dt<Ht.length;Dt++){var lr=Ht[Dt];typeof lr=="object"&&Se.push(lr)}}},Be=function(We){for(var Je=[];We.$ref;){var Ge=We.$ref,rt=Ge.split("#",2);if(delete We.$ref,rt[0].length>0){Fe.push(Y(We,rt[0],rt[1],ge,he));return}else Je.indexOf(Ge)===-1&&(M(We,ue,ge,rt[1]),Je.push(Ge))}Ke(We.items,We.additionalProperties,We.not,We.contains,We.propertyNames,We.if,We.then,We.else),Ue(We.definitions,We.properties,We.patternProperties,We.dependencies),$e(We.anyOf,We.allOf,We.oneOf,We.items)};Se.length;){var je=Se.pop();me.indexOf(je)>=0||(me.push(je),Be(je))}return s.promise.all(Fe)};return ae(m,m,i,a).then(function(ne){return new pi(m,p)})},t.prototype.getSchemaForResource=function(r,i){if(i&&i.root&&i.root.type==="object"){var a=i.root.properties.filter(function(ue){return ue.keyNode.value==="$schema"&&ue.valueNode&&ue.valueNode.type==="string"});if(a.length>0){var s=ri(a[0].valueNode);if(s&&bu(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var p=this.normalizeId(s);return this.getOrAddSchemaHandle(p).getResolvedSchema()}}}for(var m=Object.create(null),A=[],w=0,E=this.filePatternAssociations;w<E.length;w++){var M=E[w];if(M.matchesPattern(r))for(var Y=0,ae=M.getSchemas();Y<ae.length;Y++){var ne=ae[Y];m[ne]||(A.push(ne),m[ne]=!0)}}return A.length>0?this.createCombinedSchema(r,A).getResolvedSchema():this.promise.resolve(null)},t.prototype.createCombinedSchema=function(r,i){if(i.length===1)return this.getOrAddSchemaHandle(i[0]);var a="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:i.map(function(p){return{$ref:p}})};return this.addSchemaHandle(a,s)},t}();function _i(t){try{}catch(r){}return t}var ca=function(){function t(r,i){this.jsonSchemaService=r,this.promise=i,this.validationEnabled=!0}return t.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:Nt.Error)},t.prototype.doValidation=function(r,i,a,s){var p=this;if(!this.validationEnabled)return this.promise.resolve([]);var m=[],A={},w=function(Y){var ae=Y.range.start.line+" "+Y.range.start.character+" "+Y.message;A[ae]||(A[ae]=!0,m.push(Y))},E=function(Y){var ae=a?qi(a.trailingCommas):Nt.Error,ne=a?qi(a.comments):p.commentSeverity;if(Y){if(Y.errors.length&&i.root){var ue=i.root,ge=ue.type==="object"?ue.properties[0]:null;if(ge&&ge.keyNode.value==="$schema"){var he=ge.valueNode||ge,Se=Jt.create(r.positionAt(he.offset),r.positionAt(he.offset+he.length));w(_n.create(Se,Y.errors[0],Nt.Warning,Kt.SchemaResolveError))}else{var Se=Jt.create(r.positionAt(ue.offset),r.positionAt(ue.offset+1));w(_n.create(Se,Y.errors[0],Nt.Warning,Kt.SchemaResolveError))}}else{var me=i.validate(r,Y.schema);me&&me.forEach(w)}Fu(Y.schema)&&(ne=void 0),ku(Y.schema)&&(ae=void 0)}for(var Fe=0,Ke=i.syntaxErrors;Fe<Ke.length;Fe++){var Ue=Ke[Fe];if(Ue.code===Kt.TrailingComma){if(typeof ae!="number")continue;Ue.severity=ae}w(Ue)}if(typeof ne=="number"){var $e="Comments are not permitted in JSON.";i.comments.forEach(function(Be){w(_n.create(Be,$e,ne,Kt.CommentNotPermitted))})}return m};if(s){var M=s.id||"schemaservice://untitled/"+hi++;return this.jsonSchemaService.resolveSchemaContent(new ko(s),M,{}).then(function(Y){return E(Y)})}return this.jsonSchemaService.getSchemaForResource(r.uri,i).then(function(Y){return E(Y)})},t}(),hi=0;function Fu(t){if(t&&typeof t=="object"){if(Zn(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var a=i[r],s=Fu(a);if(Zn(s))return s}}}function ku(t){if(t&&typeof t=="object"){if(Zn(t.allowTrailingCommas))return t.allowTrailingCommas;if(Zn(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var a=i[r],s=ku(a);if(Zn(s))return s}}}function qi(t){switch(t){case"error":return Nt.Error;case"warning":return Nt.Warning;case"ignore":return}}var ll=48,Mu=57,Ru=65,eo=97,Mo=102;function br(t){return t<ll?0:t<=Mu?t-ll:(t<eo&&(t+=eo-Ru),t>=eo&&t<=Mo?t-eo+10:0)}function ul(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:br(t.charCodeAt(1))*17/255,green:br(t.charCodeAt(2))*17/255,blue:br(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:br(t.charCodeAt(1))*17/255,green:br(t.charCodeAt(2))*17/255,blue:br(t.charCodeAt(3))*17/255,alpha:br(t.charCodeAt(4))*17/255};case 7:return{red:(br(t.charCodeAt(1))*16+br(t.charCodeAt(2)))/255,green:(br(t.charCodeAt(3))*16+br(t.charCodeAt(4)))/255,blue:(br(t.charCodeAt(5))*16+br(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(br(t.charCodeAt(1))*16+br(t.charCodeAt(2)))/255,green:(br(t.charCodeAt(3))*16+br(t.charCodeAt(4)))/255,blue:(br(t.charCodeAt(5))*16+br(t.charCodeAt(6)))/255,alpha:(br(t.charCodeAt(7))*16+br(t.charCodeAt(8)))/255}}return null}function Lu(t,r,i,a){return a===void 0&&(a=1),{red:t/255,green:r/255,blue:i/255,alpha:a}}var nc=function(){function t(r){this.schemaService=r}return t.prototype.findDocumentSymbols=function(r,i,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var m=a.resultLimit,A=r.uri;if((A==="vscode://defaultsettings/keybindings.json"||Za(A.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],E=0,M=p.items;E<M.length;E++){var Y=M[E];if(Y.type==="object")for(var ae=0,ne=Y.properties;ae<ne.length;ae++){var ue=ne[ae];if(ue.keyNode.value==="key"&&ue.valueNode){var ge=fi.create(r.uri,Mn(r,Y));if(w.push({name:ri(ue.valueNode),kind:qn.Function,location:ge}),m--,m<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(A),w}}}return w}var he=function(me,Fe,Ke){return m>=0&&(Fe.type==="array"?Fe.items.forEach(function(Ue){return he(me,Ue,Ke)}):Fe.type==="object"&&Fe.properties.forEach(function(Ue){if(m>=0){var $e=Ue.valueNode;if($e){m--;var Be=fi.create(r.uri,Mn(r,Ue)),je=Ke?Ke+"."+Ue.keyNode.value:Ue.keyNode.value;me.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind($e.type),location:Be,containerName:Ke}),he(me,$e,je)}}})),me},Se=he([],p,void 0);return m<0&&(Se.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(A)),Se},t.prototype.findDocumentSymbols2=function(r,i,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var m=a.resultLimit,A=r.uri;if((A==="vscode://defaultsettings/keybindings.json"||Za(A.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],E=0,M=p.items;E<M.length;E++){var Y=M[E];if(Y.type==="object")for(var ae=0,ne=Y.properties;ae<ne.length;ae++){var ue=ne[ae];if(ue.keyNode.value==="key"&&ue.valueNode){var ge=Mn(r,Y),he=Mn(r,ue.keyNode);if(w.push({name:ri(ue.valueNode),kind:qn.Function,range:ge,selectionRange:he}),m--,m<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(A),w}}}return w}var Se=function(Fe,Ke){return m>=0&&(Ke.type==="array"?Ke.items.forEach(function(Ue,$e){if(Ue&&m>=0){m--;var Be=Mn(r,Ue),je=Be,We=String($e),Je=Se([],Ue);Fe.push({name:We,kind:s.getSymbolKind(Ue.type),range:Be,selectionRange:je,children:Je})}}):Ke.type==="object"&&Ke.properties.forEach(function(Ue){var $e=Ue.valueNode;if($e&&m>=0){m--;var Be=Mn(r,Ue),je=Mn(r,Ue.keyNode),We=Se([],$e);Fe.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind($e.type),range:Be,selectionRange:je,children:We})}})),Fe},me=Se([],p);return m<0&&(me.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(A)),me},t.prototype.getSymbolKind=function(r){switch(r){case"object":return qn.Module;case"string":return qn.String;case"number":return qn.Number;case"array":return qn.Array;case"boolean":return qn.Boolean;default:return qn.Variable}},t.prototype.getKeyLabel=function(r){var i=r.keyNode.value;return i&&(i=i.replace(/[\n]/g,"\u21B5")),i&&i.trim()?i:'"'+i+'"'},t.prototype.findDocumentColors=function(r,i,a){return this.schemaService.getSchemaForResource(r.uri,i).then(function(s){var p=[];if(s)for(var m=a&&typeof a.resultLimit=="number"?a.resultLimit:Number.MAX_VALUE,A=i.getMatchingSchemas(s.schema),w={},E=0,M=A;E<M.length;E++){var Y=M[E];if(!Y.inverted&&Y.schema&&(Y.schema.format==="color"||Y.schema.format==="color-hex")&&Y.node&&Y.node.type==="string"){var ae=String(Y.node.offset);if(!w[ae]){var ne=ul(ri(Y.node));if(ne){var ue=Mn(r,Y.node);p.push({color:ne,range:ue})}if(w[ae]=!0,m--,m<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(r.uri),p}}}return p})},t.prototype.getColorPresentations=function(r,i,a,s){var p=[],m=Math.round(a.red*255),A=Math.round(a.green*255),w=Math.round(a.blue*255);function E(Y){var ae=Y.toString(16);return ae.length!==2?"0"+ae:ae}var M;return a.alpha===1?M="#"+E(m)+E(A)+E(w):M="#"+E(m)+E(A)+E(w)+E(Math.round(a.alpha*255)),p.push({label:M,textEdit:In.replace(s,JSON.stringify(M))}),p},t}();function Mn(t,r){return Jt.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var Du={schemaAssociations:{},schemas:{}};function ic(t,r){var i=[],a=[],s=[],p=-1,m=Sn(t.getText(),!1),A=m.scan();function w(Je){i.push(Je),a.push(s.length)}for(;A!==17;){switch(A){case 1:case 3:{var E=t.positionAt(m.getTokenOffset()).line,M={startLine:E,endLine:E,kind:A===1?"object":"array"};s.push(M);break}case 2:case 4:{var Y=A===2?"object":"array";if(s.length>0&&s[s.length-1].kind===Y){var M=s.pop(),ae=t.positionAt(m.getTokenOffset()).line;M&&ae>M.startLine+1&&p!==M.startLine&&(M.endLine=ae-1,w(M),p=M.startLine)}break}case 13:{var E=t.positionAt(m.getTokenOffset()).line,ne=t.positionAt(m.getTokenOffset()+m.getTokenLength()).line;m.getTokenError()===1&&E+1<t.lineCount?m.setPosition(t.offsetAt(An.create(E+1,0))):E<ne&&(w({startLine:E,endLine:ne,kind:xo.Comment}),p=E);break}case 12:{var ue=t.getText().substr(m.getTokenOffset(),m.getTokenLength()),ge=ue.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ge){var ae=t.positionAt(m.getTokenOffset()).line;if(ge[1]){var M={startLine:ae,endLine:ae,kind:xo.Region};s.push(M)}else{for(var he=s.length-1;he>=0&&s[he].kind!==xo.Region;)he--;if(he>=0){var M=s[he];s.length=he,ae>M.startLine&&p!==M.startLine&&(M.endLine=ae,w(M),p=M.startLine)}}}break}}A=m.scan()}var Se=r&&r.rangeLimit;if(typeof Se!="number"||i.length<=Se)return i;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(t.uri);for(var me=[],Fe=0,Ke=a;Fe<Ke.length;Fe++){var Ue=Ke[Fe];Ue<30&&(me[Ue]=(me[Ue]||0)+1)}for(var $e=0,Be=0,he=0;he<me.length;he++){var je=me[he];if(je){if(je+$e>Se){Be=he;break}$e+=je}}for(var We=[],he=0;he<i.length;he++){var Ue=a[he];typeof Ue=="number"&&(Ue<Be||Ue===Be&&$e++<Se)&&We.push(i[he])}return We}function Nu(t,r,i){function a(A){for(var w=t.offsetAt(A),E=i.getNodeFromOffset(w,!0),M=[];E;){switch(E.type){case"string":case"object":case"array":var Y=E.offset+1,ae=E.offset+E.length-1;Y<ae&&w>=Y&&w<=ae&&M.push(s(Y,ae)),M.push(s(E.offset,E.offset+E.length));break;case"number":case"boolean":case"null":case"property":M.push(s(E.offset,E.offset+E.length));break}if(E.type==="property"||E.parent&&E.parent.type==="array"){var ne=m(E.offset+E.length,5);ne!==-1&&M.push(s(E.offset,ne))}E=E.parent}for(var ue=void 0,ge=M.length-1;ge>=0;ge--)ue=Wn.create(M[ge],ue);return ue||(ue=Wn.create(Jt.create(A,A))),ue}function s(A,w){return Jt.create(t.positionAt(A),t.positionAt(w))}var p=Sn(t.getText(),!0);function m(A,w){p.setPosition(A);var E=p.scan();return E===w?p.getTokenOffset()+p.getTokenLength():-1}return r.map(a)}function ts(t){var r=t.promiseConstructor||Promise,i=new fa(t.schemaRequestService,t.workspaceContext,r);i.setSchemaContributions(Du);var a=new Au(i,t.contributions,r,t.clientCapabilities),s=new To(i,t.contributions,r),p=new nc(i),m=new ca(i,r);return{configure:function(A){i.clearExternalSchemas(),A.schemas&&A.schemas.forEach(function(w){i.registerExternalSchema(w.uri,w.fileMatch,w.schema)}),m.configure(A)},resetSchema:function(A){return i.onResourceChange(A)},doValidation:m.doValidation.bind(m),parseJSONDocument:function(A){return Xa(A,{collectComments:!0})},newJSONDocument:function(A,w){return mu(A,w)},doComplete:a.doComplete.bind(a),findDocumentSymbols:p.findDocumentSymbols.bind(p),findDocumentSymbols2:p.findDocumentSymbols2.bind(p),findColorSymbols:function(A,w){return p.findDocumentColors(A,w).then(function(E){return E.map(function(M){return M.range})})},findDocumentColors:p.findDocumentColors.bind(p),getColorPresentations:p.getColorPresentations.bind(p),doHover:s.doHover.bind(s),getFoldingRanges:ic,getSelectionRanges:Nu,format:function(A,w,E){var M=void 0;if(w){var Y=A.offsetAt(w.start),ae=A.offsetAt(w.end)-Y;M={offset:Y,length:ae}}var ne={tabSize:E?E.tabSize:4,insertSpaces:E?E.insertSpaces:!0,eol:`
186
+ `};return Ws(A.getText(),M,ne).map(function(ue){return In.replace(Jt.create(A.positionAt(ue.offset),A.positionAt(ue.offset+ue.length)),ue.content)})}}}var Od=o(96876),Td=o(4328),rs=o(3256),oc=o(71707),ac=o(82801),Pd=o(32095),Bu=o(86081),sc=o(44254),Id=o(75019),lc=o(13837),fl=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});const Ro=ts({});$i.registerHelper("lint","json",function(t,r){return fl(this,null,function*(){const{schema:i,setError:a}=r;Ro.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const s=Fi.create(r.id+".json","json",0,t),p=Ro.parseJSONDocument(s),m=yield Ro.doValidation(s,p);return m.length?a&&a(m[0].message):a&&a(void 0),m.map(A=>({from:$i.Pos(A.range.start.line,A.range.start.character),to:$i.Pos(A.range.end.line,A.range.end.character),message:A.message}))})}),$i.registerHelper("hint","json",(t,r)=>fl(void 0,null,function*(){const i=r.schema;if(!i)return;Ro.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const a=t.getDoc().getCursor(),s=t.getTokenAt(a),p=Fi.create(r.id+".json","json",0,t.getValue()),m=Ro.parseJSONDocument(p),A=yield Ro.doComplete(p,{line:a.line,character:a.ch},m),w=M=>{let Y="";for(;M--;)Y+=" ";return Y};let E=A?A.items.map(M=>({text:M.insertText,displayText:M.label,filter:M.filterText||M.label,from:{line:M.textEdit.range.start.line,ch:M.textEdit.range.start.character},to:{line:M.textEdit.range.end.line,ch:M.textEdit.range.end.character},hint:(Y,ae,ne)=>{const ue="_$__REDOC_CURSOR_HERE";let ge=ne.text.replace(/(\$1|\${1:[^}]+})/,ue)||"";if(ge=ge.replace(/(\$\d+|\${[^}]+})/g,"")||"",Y.setSelection(ne.from,ne.to),ge.indexOf(`
187
+ `)>-1){const Se=Y.getLine(Y.getCursor().line).search(/(\S|$)/);ge=ge.replace(/\n/g,`
188
+ `+w(Se))}Y.replaceSelection(ge);const he=Y.getSearchCursor(ue,ne.from);he.findNext()&&(Y.setCursor(he.from()),he.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(E=E.filter(M=>M.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:$i.Pos(a.line,s.start),to:$i.Pos(a.line,a.ch),list:E}}));var cl=Object.defineProperty,da=(t,r,i)=>r in t?cl(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Ri=(t,r,i)=>(da(t,typeof r!="symbol"?r+"":r,i),i);const uc=jt.createGlobalStyle`
189
189
  .cm-s-material.CodeMirror {
190
190
  background-color: ${({theme:t})=>t.rightPanel.panelControlsBackgroundColor}!important;
191
191
  color: ${({theme:t})=>t.colors.text.light}!important;
@@ -224,10 +224,6 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function qa(t){return t.i
224
224
  display: flex;
225
225
  flex-direction: column;
226
226
  justify-content: flex-start;
227
- border-top-left-radius: 0;
228
- border-top-right-radius: 0;
229
- border-bottom-right-radius: ${({theme:t})=>t.components.panels.borderRadius};
230
- border-bottom-left-radius: ${({theme:t})=>t.components.panels.borderRadius};
231
227
  overflow: hidden;
232
228
 
233
229
  flex: 1;
@@ -235,13 +231,12 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function qa(t){return t.i
235
231
 
236
232
  .CodeMirror {
237
233
  flex: 1;
238
- max-height: 65vh !important; /* it fixes performance bug if we pass big data to CodeMirror */
239
234
  border-radius: ${({theme:t})=>t.components.panels.borderRadius};
240
235
  }
241
- `;class Uu extends d.Component{constructor(){super(...arguments);Mi(this,"editor"),Mi(this,"_onKeyUp",(r,i)=>{/^[a-zA-Z0-9_":]$/.test(i.key)&&this.editor.execCommand("autocomplete")}),Mi(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),Mi(this,"refreshEditor",()=>{this.editor.refresh()})}componentDidMount(){setTimeout(()=>{this.editor.refresh()},0),document.addEventListener("click",this.refreshEditor)}componentWillUnmount(){document.removeEventListener("click",this.refreshEditor)}render(){const{value:r}=this.props.fieldState,{setValue:i,setTouched:a,setError:s}=this.props.fieldApi,{onChange:p,onBlur:m,forwardedRef:S}=this.props;return d.createElement(d.Fragment,null,d.createElement(uc,null),d.createElement(Xo.fk,{editorDidMount:this.initEditor,value:r||"",ref:S||void 0,onBeforeChange:(w,E,R)=>{i(R),p&&p(R)},onBlur:w=>{a(),m&&m(w)},options:{mode:this.props.mode||"application/json",theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":()=>this.editor.showHint({completeSingle:!0}),"Ctrl-Space":()=>this.editor.showHint({completeSingle:!0})},hintOptions:{id:this.props.id,completeSingle:!1,schema:this.props.schema},lint:{id:this.props.id,schema:this.props.schema,setError:s}}}))}}const fc=ln(Uu),cc=(0,Ir.ZP)(qr.A3)`
236
+ `;class Uu extends d.Component{constructor(){super(...arguments);Ri(this,"editor"),Ri(this,"_onKeyUp",(r,i)=>{/^[a-zA-Z0-9_":]$/.test(i.key)&&this.editor.execCommand("autocomplete")}),Ri(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),Ri(this,"refreshEditor",()=>{this.editor.refresh()})}componentDidMount(){setTimeout(()=>{this.editor.refresh()},0),document.addEventListener("click",this.refreshEditor)}componentWillUnmount(){document.removeEventListener("click",this.refreshEditor)}render(){const{value:r}=this.props.fieldState,{setValue:i,setTouched:a,setError:s}=this.props.fieldApi,{onChange:p,onBlur:m,forwardedRef:A}=this.props;return d.createElement(d.Fragment,null,d.createElement(uc,null),d.createElement(Xo.fk,{editorDidMount:this.initEditor,value:r||"",ref:A||void 0,onBeforeChange:(w,E,M)=>{i(M),p&&p(M)},onBlur:w=>{a(),m&&m(w)},options:{mode:this.props.mode||"application/json",theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":()=>this.editor.showHint({completeSingle:!0}),"Ctrl-Space":()=>this.editor.showHint({completeSingle:!0})},hintOptions:{id:this.props.id,completeSingle:!1,schema:this.props.schema},lint:{id:this.props.id,schema:this.props.schema,setError:s}}}))}}const fc=ln(Uu),cc=(0,Ir.ZP)(_r.A3)`
242
237
  border-radius: ${({theme:t})=>t.components.panels.borderRadius};
243
238
  margin-bottom: 10px;
244
- `;var ju=o(67897),rs=o(64776),dc=o(68929),to;(function(t){t.STRING="string",t.ARRAY="array",t.OBJECT="object"})(to||(to={}));var ns;(function(t){t.BYTE="byte",t.BASE64="base64",t.BINARY="binary"})(ns||(ns={}));var Lo;(function(t){t.OCTET_STREAM="application/octet-stream",t.MULTIPART="multipart/form-data",t.URL_ENCODED="application/x-www-form-urlencoded"})(Lo||(Lo={}));var is=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});const cl=Object.values(ns),pc=["application/octet-stream","application/pdf","application/gzip","application/zip"],dl=["image/","audio/","video/"];function ro(t){if(dl.some(r=>t.startsWith(r)))return t}function os(t){return pc.includes(t)?!0:dl.some(r=>t.startsWith(r))}function as(t){const r=t.type==="array"?t.items:t;if(!r||!r.type)return!0;const i=r.contentMediaType||"",a=r.format||r.contentEncoding||(os(i)?"binary":"");return r.type===to.STRING&&cl.includes(a)}function Vu(t,r){if(!t||!t.type)return os(r);const i=t.format||t.contentEncoding||"";return t.type===to.STRING&&cl.includes(i)}function Wu(t){return new Promise((r,i)=>{const a=new FileReader;a.onload=()=>{const p=a.result.replace(/data:.*\/.*;base64,/g,"");r(p)},a.onerror=()=>i(a.error),a.readAsDataURL(t)})}function Hu({format:t,contentEncoding:r,contentMediaType:i}){return[t,r,i].includes(ns.BASE64)}function hr(t,r,i){return is(this,null,function*(){const a=Object.values(t);let s=a.length===1?a[0]:a;const p=r.properties?r.properties[i]:r;return p.type===to.STRING&&Hu(p)?s=yield Wu(a[0]):p.type===to.ARRAY&&p.items&&(Hu(p.items)?s=yield Promise.all(a.map(S=>is(this,null,function*(){return yield Wu(S)}))):s=a),s})}var hc=Object.defineProperty,No=Object.getOwnPropertySymbols,Do=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,pa=(t,r,i)=>r in t?hc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,pl=(t,r)=>{for(var i in r||(r={}))Do.call(r,i)&&pa(t,i,r[i]);if(No)for(var i of No(r))Ln.call(r,i)&&pa(t,i,r[i]);return t},zu=(t,r)=>{var i={};for(var a in t)Do.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&No)for(var a of No(t))r.indexOf(a)<0&&Ln.call(t,a)&&(i[a]=t[a]);return i},Gu=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});const $u=d.forwardRef((t,r)=>{var i=zu(t,[]);const{schema:a,contentName:s,onChange:p,name:m}=i,{render:S}=Kn(pl({field:m},i)),w=E=>Gu(void 0,null,function*(){const R=yield hr(E.target.files,a,s);p(s,R)});return S(d.createElement("input",{"data-cy":"file-upload-input",type:"file",id:i.id,className:i.className,name:i.name,onChange:w,multiple:i.multiple,accept:i.accept,ref:r}))});function Ku(t){const{schema:r={},mediaType:i,onChange:a}=t,s=r.properties||{};return Vu(r,i.name)?d.createElement(hl,null,d.createElement(Et.NI,null,d.createElement(Yu,{fullWidth:!0,id:`body.${i.name}`,name:`body.${i.name}`,accept:ro(i.name),schema:r,contentName:i.name,onChange:a}))):r.type!==to.OBJECT||!s?(console.warn(`Invalid schema for request body and mime type: "${i.name}"`,r),null):d.createElement(hl,null,Object.entries(s).map(([p,m])=>{const S=i.name===Lo.MULTIPART&&as(m),w=m.contentMediaType||"",E=S?d.createElement(Yu,{fullWidth:!0,id:"body."+p,name:"body."+p,accept:ro(w),multiple:m.type==="array",schema:r,contentName:p,onChange:a}):d.createElement(un,{fullWidth:!0,id:"body."+p,field:"body."+p,placeholder:m.description||p});return d.createElement(Et.NI,{key:p},d.createElement(Et.lX,null,p,":"),E)}))}const hl=jt.styled.div`
239
+ `;var ju=o(67897),ns=o(64776),dc=o(68929),to;(function(t){t.STRING="string",t.ARRAY="array",t.OBJECT="object"})(to||(to={}));var is;(function(t){t.BYTE="byte",t.BASE64="base64",t.BINARY="binary"})(is||(is={}));var Lo;(function(t){t.OCTET_STREAM="application/octet-stream",t.MULTIPART="multipart/form-data",t.URL_ENCODED="application/x-www-form-urlencoded"})(Lo||(Lo={}));var os=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});const dl=Object.values(is),pc=["application/octet-stream","application/pdf","application/gzip","application/zip"],pl=["image/","audio/","video/"];function ro(t){if(pl.some(r=>t.startsWith(r)))return t}function as(t){return pc.includes(t)?!0:pl.some(r=>t.startsWith(r))}function ss(t){const r=t.type==="array"?t.items:t;if(!r||!r.type)return!0;const i=r.contentMediaType||"",a=r.format||r.contentEncoding||(as(i)?"binary":"");return r.type===to.STRING&&dl.includes(a)}function Vu(t,r){if(!t||!t.type)return as(r);const i=t.format||t.contentEncoding||"";return t.type===to.STRING&&dl.includes(i)}function Wu(t){return new Promise((r,i)=>{const a=new FileReader;a.onload=()=>{const p=a.result.replace(/data:.*\/.*;base64,/g,"");r(p)},a.onerror=()=>i(a.error),a.readAsDataURL(t)})}function Hu({format:t,contentEncoding:r,contentMediaType:i}){return[t,r,i].includes(is.BASE64)}function hr(t,r,i){return os(this,null,function*(){const a=Object.values(t);let s=a.length===1?a[0]:a;const p=r.properties?r.properties[i]:r;return p.type===to.STRING&&Hu(p)?s=yield Wu(a[0]):p.type===to.ARRAY&&p.items&&(Hu(p.items)?s=yield Promise.all(a.map(A=>os(this,null,function*(){return yield Wu(A)}))):s=a),s})}var hc=Object.defineProperty,Do=Object.getOwnPropertySymbols,No=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,pa=(t,r,i)=>r in t?hc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,hl=(t,r)=>{for(var i in r||(r={}))No.call(r,i)&&pa(t,i,r[i]);if(Do)for(var i of Do(r))Rn.call(r,i)&&pa(t,i,r[i]);return t},zu=(t,r)=>{var i={};for(var a in t)No.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&Do)for(var a of Do(t))r.indexOf(a)<0&&Rn.call(t,a)&&(i[a]=t[a]);return i},Gu=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});const $u=d.forwardRef((t,r)=>{var i=zu(t,[]);const{schema:a,contentName:s,onChange:p,name:m}=i,{render:A}=$n(hl({field:m},i)),w=E=>Gu(void 0,null,function*(){const M=yield hr(E.target.files,a,s);p(s,M)});return A(d.createElement("input",{"data-cy":"file-upload-input",type:"file",id:i.id,className:i.className,name:i.name,onChange:w,multiple:i.multiple,accept:i.accept,ref:r}))});function Ku(t){const{schema:r={},mediaType:i,onChange:a}=t,s=r.properties||{};return Vu(r,i.name)?d.createElement(vl,null,d.createElement(Et.NI,null,d.createElement(Yu,{fullWidth:!0,id:`body.${i.name}`,name:`body.${i.name}`,accept:ro(i.name),schema:r,contentName:i.name,onChange:a}))):r.type!==to.OBJECT||!s?(console.warn(`Invalid schema for request body and mime type: "${i.name}"`,r),null):d.createElement(vl,null,Object.entries(s).map(([p,m])=>{const A=i.name===Lo.MULTIPART&&ss(m),w=m.contentMediaType||"",E=A?d.createElement(Yu,{fullWidth:!0,id:"body."+p,name:"body."+p,accept:ro(w),multiple:m.type==="array",schema:r,contentName:p,onChange:a}):d.createElement(un,{fullWidth:!0,id:"body."+p,field:"body."+p,placeholder:m.description||p});return d.createElement(Et.NI,{key:p},d.createElement(Et.lX,null,p,":"),E)}))}const vl=jt.styled.div`
245
240
  > div {
246
241
  margin-top: 10px;
247
242
  }
@@ -249,7 +244,7 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function qa(t){return t.i
249
244
  ${Hi}
250
245
  ${({inputType:t})=>t==="password"?"padding-right: 40px;":""};
251
246
  ${({fullWidth:t})=>t?"width: 100%;":""}
252
- `;var vl=Object.defineProperty,Ju=Object.defineProperties,nr=Object.getOwnPropertyDescriptors,ha=Object.getOwnPropertySymbols,Xu=Object.prototype.hasOwnProperty,no=Object.prototype.propertyIsEnumerable,Qu=(t,r,i)=>r in t?vl(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,ss=(t,r)=>{for(var i in r||(r={}))Xu.call(r,i)&&Qu(t,i,r[i]);if(ha)for(var i of ha(r))no.call(r,i)&&Qu(t,i,r[i]);return t},vc=(t,r)=>Ju(t,nr(r)),Ar=(t,r)=>{var i={};for(var a in t)Xu.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&ha)for(var a of ha(t))r.indexOf(a)<0&&no.call(t,a)&&(i[a]=t[a]);return i},gc=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});const yc=(0,Ia.Pi)(t=>{var r=t,{properties:i={}}=r,a=Ar(r,["properties"]),s,p;const m=le=>{var ve;const pe=a.body.content;if(!pe||!pe.hasSample)return"";const Se=(ve=pe.active)==null?void 0:ve.examples;if(!(Se==null?void 0:Se[le]))return"";const ye=Ms()(Se==null?void 0:Se[le].value,i,{arrayMerge:rs.QQ});return JSON.stringify(ye,null,2)},S=(p=(s=a.body.content)==null?void 0:s.operation)==null?void 0:p.activeExampleName,w=le=>{var ve,pe;(pe=(ve=a.body.content)==null?void 0:ve.operation)==null||pe.activateExampleName(le),a.console.formApi.setValue("body",m(le))},E=le=>{if(!le)return"";if(le.mime==="application/x-www-form-urlencoded")return le.value;const ve=Ms()(le.value,i,{arrayMerge:rs.QQ});return JSON.stringify(ve,null,2)},R=(le,ve)=>gc(void 0,null,function*(){const pe=a.console.formApi,{setValue:Se}=pe;Se(`body.${le}`,ve)});(0,d.useEffect)(()=>{S!==!1?S&&a.console.formApi.setValue("body",m(S)):a.console.formApi.setValue("body",JSON.stringify(i,null,2))},[S]);const{validate:J,body:oe}=a,re=le=>d.createElement(jt.DropdownOrLabel,vc(ss({},le),{variant:"dark",fullWidth:!0,Label:cc,Dropdown:jt.Dropdown}));return d.createElement(d.Fragment,null,d.createElement(jt.MediaTypesSwitch,{content:oe.content,renderDropdown:re},le=>{const ve=le.examples||{},pe=Object.keys(ve);let Se;a.resolvedBody&&(Se=(a.resolvedBody.content[le.name]||{}).schema);const ye=Vu(Se,le.name)||le.name===Lo.MULTIPART||le.name===Lo.URL_ENCODED,{exampleKey:Fe}=(0,ju.C6)(le.operation,ve),Ke=ve[Fe];return d.createElement(d.Fragment,null,pe.length&&pe.length!==1&&d.createElement(ju.b_,{examples:ve,onChange:w,exampleKey:Fe})||null,ye?d.createElement(Ku,{schema:Se,mediaType:le,onChange:R.bind(void 0)}):d.createElement(fc,{id:"body"+a.id,field:"body",initialValue:E(Ke),schema:Se,mode:le.name,validate:J}))}))});var Zu=o(39895);const ls=jt.styled.div`
247
+ `;var gl=Object.defineProperty,Ju=Object.defineProperties,nr=Object.getOwnPropertyDescriptors,ha=Object.getOwnPropertySymbols,Xu=Object.prototype.hasOwnProperty,no=Object.prototype.propertyIsEnumerable,Qu=(t,r,i)=>r in t?gl(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,ls=(t,r)=>{for(var i in r||(r={}))Xu.call(r,i)&&Qu(t,i,r[i]);if(ha)for(var i of ha(r))no.call(r,i)&&Qu(t,i,r[i]);return t},vc=(t,r)=>Ju(t,nr(r)),Ar=(t,r)=>{var i={};for(var a in t)Xu.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&ha)for(var a of ha(t))r.indexOf(a)<0&&no.call(t,a)&&(i[a]=t[a]);return i},gc=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});const yc=(0,Ia.Pi)(t=>{var r=t,{properties:i={}}=r,a=Ar(r,["properties"]),s,p;const m=ue=>{var ge;const he=a.body.content;if(!he||!he.hasSample)return"";const Se=(ge=he.active)==null?void 0:ge.examples;if(!(Se==null?void 0:Se[ue]))return"";const me=Ls()(Se==null?void 0:Se[ue].value,i,{arrayMerge:ns.QQ});return JSON.stringify(me,null,2)},A=(p=(s=a.body.content)==null?void 0:s.operation)==null?void 0:p.activeExampleName,w=ue=>{var ge,he;(he=(ge=a.body.content)==null?void 0:ge.operation)==null||he.activateExampleName(ue),a.console.formApi.setValue("body",m(ue))},E=ue=>{if(!ue)return"";if(ue.mime==="application/x-www-form-urlencoded")return ue.value;const ge=Ls()(ue.value,i,{arrayMerge:ns.QQ});return JSON.stringify(ge,null,2)},M=(ue,ge)=>gc(void 0,null,function*(){const he=a.console.formApi,{setValue:Se}=he;Se(`body.${ue}`,ge)});(0,d.useEffect)(()=>{A!==!1?A&&a.console.formApi.setValue("body",m(A)):a.console.formApi.setValue("body",JSON.stringify(i,null,2))},[A]);const{validate:Y,body:ae}=a,ne=ue=>d.createElement(jt.DropdownOrLabel,vc(ls({},ue),{variant:"dark",fullWidth:!0,Label:cc,Dropdown:jt.Dropdown}));return d.createElement(d.Fragment,null,d.createElement(jt.MediaTypesSwitch,{content:ae.content,renderDropdown:ne},ue=>{const ge=ue.examples||{},he=Object.keys(ge);let Se;a.resolvedBody&&(Se=(a.resolvedBody.content[ue.name]||{}).schema);const me=Vu(Se,ue.name)||ue.name===Lo.MULTIPART||ue.name===Lo.URL_ENCODED,{exampleKey:Fe}=(0,ju.C6)(ue.operation,ge),Ke=ge[Fe];return d.createElement(d.Fragment,null,he.length&&he.length!==1&&d.createElement(ju.b_,{examples:ge,onChange:w,exampleKey:Fe})||null,me?d.createElement(Ku,{schema:Se,mediaType:ue,onChange:M.bind(void 0)}):d.createElement(fc,{id:"body"+a.id,field:"body",initialValue:E(Ke),schema:Se,mode:ue.name,validate:Y}))}))});var Zu=o(39895);const us=jt.styled.div`
253
248
  display: flex;
254
249
  font-size: 12px;
255
250
  button {
@@ -295,13 +290,13 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function qa(t){return t.i
295
290
  cursor: default;
296
291
  color: ${(0,Zu.DZ)(.3,r.colors.text.light)};
297
292
  `||""}
298
- `;class n extends d.Component{render(){const{onChange:r,active:i,hasResponse:a}=this.props;return d.createElement(ls,null,d.createElement(e,{onClick:()=>r(0),active:i===0},a?"Edit Request":"Request"),d.createElement(e,{onClick:()=>a&&r(1),active:i===1,disabled:!a}," ","Response"," "))}}var u=Object.defineProperty,l=Object.defineProperties,f=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,F=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,G=(t,r,i)=>r in t?u(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,q=(t,r)=>{for(var i in r||(r={}))F.call(r,i)&&G(t,i,r[i]);if(y)for(var i of y(r))j.call(r,i)&&G(t,i,r[i]);return t},xe=(t,r)=>l(t,f(r));const Ee=Ir.ZP.input`
293
+ `;class n extends d.Component{render(){const{onChange:r,active:i,hasResponse:a}=this.props;return d.createElement(us,null,d.createElement(e,{onClick:()=>r(0),active:i===0},a?"Edit Request":"Request"),d.createElement(e,{onClick:()=>a&&r(1),active:i===1,disabled:!a}," ","Response"," "))}}var u=Object.defineProperty,l=Object.defineProperties,f=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,F=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,z=(t,r,i)=>r in t?u(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Z=(t,r)=>{for(var i in r||(r={}))F.call(r,i)&&z(t,i,r[i]);if(y)for(var i of y(r))U.call(r,i)&&z(t,i,r[i]);return t},xe=(t,r)=>l(t,f(r));const Ce=Ir.ZP.input`
299
294
  cursor: pointer;
300
295
  vertical-align: middle;
301
296
  margin-left: 0;
302
297
  margin-right: 5px;
303
298
  height: 20px;
304
- `,De=Ir.ZP.label`
299
+ `,Ne=Ir.ZP.label`
305
300
  display: inline-block;
306
301
  cursor: pointer;
307
302
  vertical-align: middle;
@@ -311,7 +306,7 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function qa(t){return t.i
311
306
 
312
307
  overflow-wrap: break-word;
313
308
  line-height: 20px;
314
- `,Le=Ir.ZP.div`
309
+ `,Re=Ir.ZP.div`
315
310
  width: ${({fullWidth:t})=>t?"100%":"50%"};
316
311
  display: inline-flex;
317
312
  align-items: center;
@@ -319,12 +314,12 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function qa(t){return t.i
319
314
  & > label {
320
315
  white-space: ${({nowrap:t})=>t?"nowrap":"normal"};
321
316
  }
322
- `;function Xe(t,r){const{fullWidth:i,id:a,label:s,nowrap:p}=t;return d.createElement(Le,{fullWidth:i,nowrap:p},d.createElement(Ee,xe(q({},t),{type:"checkbox",ref:r})),d.createElement(De,{htmlFor:a},s))}const tt=d.forwardRef(Xe);var at=Object.defineProperty,ft=(t,r,i)=>r in t?at(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,mt=(t,r,i)=>(ft(t,typeof r!="symbol"?r+"":r,i),i);const ct=11;class xt extends d.Component{constructor(){super(...arguments);mt(this,"state",{collapsed:!0})}onCheckBoxClick(r){const i=r.target.value,a=r.target.checked;this.props.fieldApi.setTouched(!0);const s=this.props.fieldApi.getValue()||[];let p;if(a)p=[...s,i];else{const m=s.indexOf(i);p=[...s.slice(0,m),...s.slice(m+1)]}this.props.fieldApi.setValue(p)}isFieldChecked(r){return this.props.fieldApi.getValue().includes(r)}toggle(){this.setState({collapsed:!this.state.collapsed})}selectAll(){this.props.fieldApi.setValue(this.props.items)}clearAll(){this.props.fieldApi.setValue([])}render(){const{items:r,fieldApi:i,validateOnChange:a,maxDisplayedItems:s,showControls:p,trimItemsLength:m}=this.props,{collapsed:S}=this.state,w=i.getError(),E=s||ct,R=m&&this.state.collapsed?r.slice(0,E):r;return d.createElement("div",null,p?d.createElement(Ot,null,d.createElement(Yo.J4,{onClick:()=>{this.selectAll()}},"Select all"),d.createElement(Yo.J4,{onClick:()=>{this.clearAll()}},"Clear")):null,d.createElement("div",null,R.map(J=>d.createElement(tt,{nowrap:!0,id:J,value:J,checked:this.isFieldChecked(J),label:J,key:J,onChange:oe=>{this.onCheckBoxClick(oe),a&&i.validate()}})),r.length>E&&m?d.createElement(Vt,{onClick:()=>{this.toggle()}},S?"Show all":"Collapse"):null),w?d.createElement(Et.Xq,null,w):"")}}const Pt=ln(xt),Ot=(0,jt.styled)(Yo.xp)`
317
+ `;function Ye(t,r){const{fullWidth:i,id:a,label:s,nowrap:p}=t;return d.createElement(Re,{fullWidth:i,nowrap:p},d.createElement(Ce,xe(Z({},t),{type:"checkbox",ref:r})),d.createElement(Ne,{htmlFor:a},s))}const et=d.forwardRef(Ye);var at=Object.defineProperty,ft=(t,r,i)=>r in t?at(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,ht=(t,r,i)=>(ft(t,typeof r!="symbol"?r+"":r,i),i);const ct=11;class xt extends d.Component{constructor(){super(...arguments);ht(this,"state",{collapsed:!0})}onCheckBoxClick(r){const i=r.target.value,a=r.target.checked;this.props.fieldApi.setTouched(!0);const s=this.props.fieldApi.getValue()||[];let p;if(a)p=[...s,i];else{const m=s.indexOf(i);p=[...s.slice(0,m),...s.slice(m+1)]}this.props.fieldApi.setValue(p)}isFieldChecked(r){return this.props.fieldApi.getValue().includes(r)}toggle(){this.setState({collapsed:!this.state.collapsed})}selectAll(){this.props.fieldApi.setValue(this.props.items)}clearAll(){this.props.fieldApi.setValue([])}render(){const{items:r,fieldApi:i,validateOnChange:a,maxDisplayedItems:s,showControls:p,trimItemsLength:m}=this.props,{collapsed:A}=this.state,w=i.getError(),E=s||ct,M=m&&this.state.collapsed?r.slice(0,E):r;return d.createElement("div",null,p?d.createElement(Ot,null,d.createElement(Yo.J4,{onClick:()=>{this.selectAll()}},"Select all"),d.createElement(Yo.J4,{onClick:()=>{this.clearAll()}},"Clear")):null,d.createElement("div",null,M.map(Y=>d.createElement(et,{nowrap:!0,id:Y,value:Y,checked:this.isFieldChecked(Y),label:Y,key:Y,onChange:ae=>{this.onCheckBoxClick(ae),a&&i.validate()}})),r.length>E&&m?d.createElement(Vt,{onClick:()=>{this.toggle()}},A?"Show all":"Collapse"):null),w?d.createElement(Et.Xq,null,w):"")}}const Pt=ln(xt),Ot=(0,jt.styled)(Yo.xp)`
323
318
  opacity: 1;
324
319
  text-align: left;
325
320
  `,Vt=(0,jt.styled)(Yo.J4)`
326
321
  float: right;
327
- `;function ar(t){const{scopes:r,id:i}=t;let a=[];try{a=JSON.parse((0,zt.YQ)(`auth.${i}.scopes`))}catch(s){}return!r||!r.length?d.createElement(d.Fragment,null):d.createElement(Et.NI,null,d.createElement(Et.lX,null," Scopes: "),d.createElement(Pt,{field:`auth.${i}.scopes`,initialValue:a,items:r,showControls:!0,trimItemsLength:!0}))}var Lr=o(17673),gr=o(73555),vn=Object.defineProperty,an=Object.defineProperties,kr=Object.getOwnPropertyDescriptors,tn=Object.getOwnPropertySymbols,zr=Object.prototype.hasOwnProperty,Nr=Object.prototype.propertyIsEnumerable,Er=(t,r,i)=>r in t?vn(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,dr=(t,r)=>{for(var i in r||(r={}))zr.call(r,i)&&Er(t,i,r[i]);if(tn)for(var i of tn(r))Nr.call(r,i)&&Er(t,i,r[i]);return t},sn=(t,r)=>an(t,kr(r)),ni=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});const vi="/oauth2-redirect.html";class cr{static authorizeImplicit({authorizationUrl:r,clientId:i,scopes:a,extraParams:s={},routingBasePath:p,redirectUri:m,successCallback:S,errorCallback:w}){const E=ii({date:new Date().toString()}),R=new URL(r),J=p==="/"?"":p,oe=`${window.location.origin}${J}${vi}`;R.searchParams.set("client_id",i),R.searchParams.set("redirect_uri",m||oe),R.searchParams.set("response_type","token"),R.searchParams.set("state",E),Array.isArray(a)&&R.searchParams.set("scope",a.join(" "));for(const re in s)R.searchParams.set(re,s[re]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:i,scopes:a},state:E,successCallback:re=>{S(re),cr.clearRedirectData("implicit")},errorCallback:re=>{w(re),cr.clearRedirectData("implicit")}},window.open(R.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:i,clientId:a,clientSecret:s,codeVerifier:p,codeChallenge:m,scopes:S,extraParams:w={},routingBasePath:E,redirectUri:R,successCallback:J,errorCallback:oe}){const re=new URL(r),le=E==="/"?"":E,ve=`${window.location.origin}${le}${vi}`,pe=ii({date:new Date().toString()});re.searchParams.set("client_id",a),re.searchParams.set("redirect_uri",R||ve),re.searchParams.set("response_type","code"),re.searchParams.set("state",pe),Array.isArray(S)&&re.searchParams.set("scope",S.join(" ")),m&&(re.searchParams.set("code_challenge",m),re.searchParams.set("code_challenge_method","S256"));for(const Se in w)re.searchParams.set(Se,w[Se]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:a,scopes:S},state:pe,successCallback:Se=>ni(this,[Se],function*({auth_code:ye}){try{const Fe=yield fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:Lr.stringify(dr(sn(dr({client_id:a,client_secret:s},p&&{code_verifier:p}),{code:ye,grant_type:"authorization_code",redirect_uri:R||ve}),w))});yield Dr(Fe,J,oe)}catch(Fe){oe(Fe)}cr.clearRedirectData("authorizationCode")}),errorCallback:Se=>{oe(Se),cr.clearRedirectData("authorizationCode")}},window.open(re.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return ni(this,arguments,function*({tokenUrl:i,clientId:a,clientSecret:s,scopes:p=[],extraParams:m={},successCallback:S,errorCallback:w}){try{const E=yield fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:Lr.stringify(dr({client_id:a,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(p)?p.join(" "):void 0},m))});yield Dr(E,S,w)}catch(E){w(E)}})}}const gi=new cr;function Dr(t,r,i){return ni(this,null,function*(){if(t.ok){const a=yield t.json();r(a)}else i(new Error((t.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield t.json()):yield t.text()))})}function us(t=32){let r="";for(;r.length<t;)r+=Math.random().toString(32).substring(2);return r.substring(0,t)}function ii(t){const r=dr({randomStr:us()},t);return btoa(JSON.stringify(r))}function io(t){return ni(this,null,function*(){var r;const i=new TextEncoder().encode(t);return(r=gr.EA)==null?void 0:r.subtle.digest("SHA-256",i)})}function oo(t){if(!!t)return btoa(String.fromCharCode.apply(null,new Uint8Array(t))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function Yr(t){return ni(this,null,function*(){return oo(yield io(t))})}var Bo=Object.defineProperty,gl=Object.defineProperties,dh=Object.getOwnPropertyDescriptors,Fd=Object.getOwnPropertySymbols,ph=Object.prototype.hasOwnProperty,hh=Object.prototype.propertyIsEnumerable,mc=(t,r,i)=>r in t?Bo(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,kd=(t,r)=>{for(var i in r||(r={}))ph.call(r,i)&&mc(t,i,r[i]);if(Fd)for(var i of Fd(r))hh.call(r,i)&&mc(t,i,r[i]);return t},Rd=(t,r)=>gl(t,dh(r)),qu=(t,r,i)=>(mc(t,typeof r!="symbol"?r+"":r,i),i),vh=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});function gh(t){if(!t)return"Token is required"}class yh extends d.Component{constructor(){super(...arguments);qu(this,"state",{error:"",loading:!1,tokenMasked:!0}),qu(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,zt.WW)(`auth.${this.props.id}.token`,"")}),qu(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),qu(this,"requestToken",()=>vh(this,null,function*(){if(this.state.loading)return;const{server:r,flow:i,authCorsProxyUrl:a}=this.props,s=a&&i.tokenUrl?a+(0,Zr.jg)(i.tokenUrl):i.tokenUrl;if(this.errors.client_id||this.errors.client_secret){console.log("Provide client_id and client_secret");return}const p=this.values.client_id,m=this.values.client_secret;if(!p||!m){console.log("Provide client_id and client_secret");return}this.setState({loading:!0}),yield cr.authorizeClientCredentials({tokenUrl:s.startsWith("http")?s:r+s,clientId:p,clientSecret:m,scopes:this.values.scopes,successCallback:S=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,S),this.setState({loading:!1})},errorCallback:S=>{this.clearToken(),this.setState({error:S.message,loading:!1})}})}))}get values(){return this.props.form.values&&this.props.form.values.auth&&this.props.form.values.auth[this.props.id]||{}}get errors(){return this.props.form.errors&&this.props.form.errors.auth&&this.props.form.errors.auth[this.props.id]||{}}render(){const{loading:r,error:i,tokenMasked:a}=this.state,{id:s,defaultValues:p}=this.props,m=Object.keys(this.props.flow.scopes);let S=(0,zt.YQ)(`auth.${s}.token`)||JSON.stringify(p==null?void 0:p.token);S=S?JSON.parse(S):"";const w=(0,zt.Al)(s,"client_id"),E={field:`auth.${s}.client_id`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),initValue:(0,zt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),placeholder:"Your OAuth2 app Client ID"};return d.createElement(d.Fragment,null,d.createElement(Et.n5,null,d.createElement(Et.NI,null,d.createElement(Et.lX,null,"Client ID:"),w?d.createElement(zo,Rd(kd({},E),{options:w})):d.createElement(un,Rd(kd({},E),{type:"password"}))),d.createElement(Et.NI,null,d.createElement(Et.lX,null,"Client Secret:"),d.createElement(un,{type:"password",fullWidth:!0,field:`auth.${s}.client_secret`,initialValue:(0,zt.YQ)(`auth.${s}.client_secret`)||(p==null?void 0:p.client_secret)})),d.createElement(un,{fullWidth:!0,field:`auth.${s}.token`,type:"hidden",initialValue:S,validate:gh}),d.createElement(ar,{id:s,scopes:m})),d.createElement(qr.zx,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),d.createElement(Et.ph,null," Access Token "),i?d.createElement(Et.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",d.createElement("pre",null,i)," "):this.values.token&&this.values.token.access_token?d.createElement(Et.TR,null,d.createElement(Et.WA,{length:this.values.token.access_token.length,masked:a},this.values.token.access_token),d.createElement(Et.lf,{onClick:this.toggleTokenMask},a?"Show":"Hide"," "),d.createElement(Et.h,{onClick:this.clearToken}," Clear ")):d.createElement(Et.Xq,{style:{marginBottom:"1em"}},"No token"))}}const mh=yh,xh=jt.styled.div`
322
+ `;function ar(t){const{scopes:r,id:i}=t;let a=[];try{a=JSON.parse((0,zt.YQ)(`auth.${i}.scopes`))}catch(s){}return!r||!r.length?d.createElement(d.Fragment,null):d.createElement(Et.NI,null,d.createElement(Et.lX,null," Scopes: "),d.createElement(Pt,{field:`auth.${i}.scopes`,initialValue:a,items:r,showControls:!0,trimItemsLength:!0}))}var Lr=o(17673),gr=o(73555),hn=Object.defineProperty,an=Object.defineProperties,kr=Object.getOwnPropertyDescriptors,tn=Object.getOwnPropertySymbols,zr=Object.prototype.hasOwnProperty,Dr=Object.prototype.propertyIsEnumerable,Er=(t,r,i)=>r in t?hn(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,dr=(t,r)=>{for(var i in r||(r={}))zr.call(r,i)&&Er(t,i,r[i]);if(tn)for(var i of tn(r))Dr.call(r,i)&&Er(t,i,r[i]);return t},sn=(t,r)=>an(t,kr(r)),ni=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});const vi="/oauth2-redirect.html";class cr{static authorizeImplicit({authorizationUrl:r,clientId:i,scopes:a,extraParams:s={},routingBasePath:p,redirectUri:m,successCallback:A,errorCallback:w}){const E=ii({date:new Date().toString()}),M=new URL(r),Y=p==="/"?"":p,ae=`${window.location.origin}${Y}${vi}`;M.searchParams.set("client_id",i),M.searchParams.set("redirect_uri",m||ae),M.searchParams.set("response_type","token"),M.searchParams.set("state",E),Array.isArray(a)&&M.searchParams.set("scope",a.join(" "));for(const ne in s)M.searchParams.set(ne,s[ne]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:i,scopes:a},state:E,successCallback:ne=>{A(ne),cr.clearRedirectData("implicit")},errorCallback:ne=>{w(ne),cr.clearRedirectData("implicit")}},window.open(M.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:i,clientId:a,clientSecret:s,codeVerifier:p,codeChallenge:m,scopes:A,extraParams:w={},routingBasePath:E,redirectUri:M,successCallback:Y,errorCallback:ae}){const ne=new URL(r),ue=E==="/"?"":E,ge=`${window.location.origin}${ue}${vi}`,he=ii({date:new Date().toString()});ne.searchParams.set("client_id",a),ne.searchParams.set("redirect_uri",M||ge),ne.searchParams.set("response_type","code"),ne.searchParams.set("state",he),Array.isArray(A)&&ne.searchParams.set("scope",A.join(" ")),m&&(ne.searchParams.set("code_challenge",m),ne.searchParams.set("code_challenge_method","S256"));for(const Se in w)ne.searchParams.set(Se,w[Se]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:a,scopes:A},state:he,successCallback:Se=>ni(this,[Se],function*({auth_code:me}){try{const Fe=yield fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:Lr.stringify(dr(sn(dr({client_id:a,client_secret:s},p&&{code_verifier:p}),{code:me,grant_type:"authorization_code",redirect_uri:M||ge}),w))});yield Nr(Fe,Y,ae)}catch(Fe){ae(Fe)}cr.clearRedirectData("authorizationCode")}),errorCallback:Se=>{ae(Se),cr.clearRedirectData("authorizationCode")}},window.open(ne.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return ni(this,arguments,function*({tokenUrl:i,clientId:a,clientSecret:s,scopes:p=[],extraParams:m={},successCallback:A,errorCallback:w}){try{const E=yield fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:Lr.stringify(dr({client_id:a,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(p)?p.join(" "):void 0},m))});yield Nr(E,A,w)}catch(E){w(E)}})}}const gi=new cr;function Nr(t,r,i){return ni(this,null,function*(){if(t.ok){const a=yield t.json();r(a)}else i(new Error((t.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield t.json()):yield t.text()))})}function fs(t=32){let r="";for(;r.length<t;)r+=Math.random().toString(32).substring(2);return r.substring(0,t)}function ii(t){const r=dr({randomStr:fs()},t);return btoa(JSON.stringify(r))}function io(t){return ni(this,null,function*(){var r;const i=new TextEncoder().encode(t);return(r=gr.EA)==null?void 0:r.subtle.digest("SHA-256",i)})}function oo(t){if(!!t)return btoa(String.fromCharCode.apply(null,new Uint8Array(t))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function Yr(t){return ni(this,null,function*(){return oo(yield io(t))})}var Bo=Object.defineProperty,yl=Object.defineProperties,dh=Object.getOwnPropertyDescriptors,Fd=Object.getOwnPropertySymbols,ph=Object.prototype.hasOwnProperty,hh=Object.prototype.propertyIsEnumerable,mc=(t,r,i)=>r in t?Bo(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,kd=(t,r)=>{for(var i in r||(r={}))ph.call(r,i)&&mc(t,i,r[i]);if(Fd)for(var i of Fd(r))hh.call(r,i)&&mc(t,i,r[i]);return t},Md=(t,r)=>yl(t,dh(r)),_u=(t,r,i)=>(mc(t,typeof r!="symbol"?r+"":r,i),i),vh=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});function gh(t){if(!t)return"Token is required"}class yh extends d.Component{constructor(){super(...arguments);_u(this,"state",{error:"",loading:!1,tokenMasked:!0}),_u(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,zt.WW)(`auth.${this.props.id}.token`,"")}),_u(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),_u(this,"requestToken",()=>vh(this,null,function*(){if(this.state.loading)return;const{server:r,flow:i,authCorsProxyUrl:a}=this.props,s=a&&i.tokenUrl?a+(0,Zr.jg)(i.tokenUrl):i.tokenUrl;if(this.errors.client_id||this.errors.client_secret){console.log("Provide client_id and client_secret");return}const p=this.values.client_id,m=this.values.client_secret;if(!p||!m){console.log("Provide client_id and client_secret");return}this.setState({loading:!0}),yield cr.authorizeClientCredentials({tokenUrl:s.startsWith("http")?s:r+s,clientId:p,clientSecret:m,scopes:this.values.scopes,successCallback:A=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,A),this.setState({loading:!1})},errorCallback:A=>{this.clearToken(),this.setState({error:A.message,loading:!1})}})}))}get values(){return this.props.form.values&&this.props.form.values.auth&&this.props.form.values.auth[this.props.id]||{}}get errors(){return this.props.form.errors&&this.props.form.errors.auth&&this.props.form.errors.auth[this.props.id]||{}}render(){const{loading:r,error:i,tokenMasked:a}=this.state,{id:s,defaultValues:p}=this.props,m=Object.keys(this.props.flow.scopes);let A=(0,zt.YQ)(`auth.${s}.token`)||JSON.stringify(p==null?void 0:p.token);A=A?JSON.parse(A):"";const w=(0,zt.Al)(s,"client_id"),E={field:`auth.${s}.client_id`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),initValue:(0,zt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),placeholder:"Your OAuth2 app Client ID"};return d.createElement(d.Fragment,null,d.createElement(Et.n5,null,d.createElement(Et.NI,null,d.createElement(Et.lX,null,"Client ID:"),w?d.createElement(zo,Md(kd({},E),{options:w})):d.createElement(un,Md(kd({},E),{type:"password"}))),d.createElement(Et.NI,null,d.createElement(Et.lX,null,"Client Secret:"),d.createElement(un,{type:"password",fullWidth:!0,field:`auth.${s}.client_secret`,initialValue:(0,zt.YQ)(`auth.${s}.client_secret`)||(p==null?void 0:p.client_secret)})),d.createElement(un,{fullWidth:!0,field:`auth.${s}.token`,type:"hidden",initialValue:A,validate:gh}),d.createElement(ar,{id:s,scopes:m})),d.createElement(_r.zx,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),d.createElement(Et.ph,null," Access Token "),i?d.createElement(Et.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",d.createElement("pre",null,i)," "):this.values.token&&this.values.token.access_token?d.createElement(Et.TR,null,d.createElement(Et.WA,{length:this.values.token.access_token.length,masked:a},this.values.token.access_token),d.createElement(Et.lf,{onClick:this.toggleTokenMask},a?"Show":"Hide"," "),d.createElement(Et.h,{onClick:this.clearToken}," Clear ")):d.createElement(Et.Xq,{style:{marginBottom:"1em"}},"No token"))}}const mh=yh,xh=jt.styled.div`
328
323
  position: relative;
329
324
  height: 4px;
330
325
  display: block;
@@ -427,7 +422,7 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function qa(t){return t.i
427
422
  right: -8%;
428
423
  }
429
424
  }
430
- `,Md=()=>d.createElement(xh,null,d.createElement("div",{className:"indeterminate"}));var bh=Object.defineProperty,wh=Object.defineProperties,Sh=Object.getOwnPropertyDescriptors,Ld=Object.getOwnPropertySymbols,Ah=Object.prototype.hasOwnProperty,Eh=Object.prototype.propertyIsEnumerable,xc=(t,r,i)=>r in t?bh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,_u=(t,r)=>{for(var i in r||(r={}))Ah.call(r,i)&&xc(t,i,r[i]);if(Ld)for(var i of Ld(r))Eh.call(r,i)&&xc(t,i,r[i]);return t},bc=(t,r)=>wh(t,Sh(r)),yl=(t,r,i)=>(xc(t,typeof r!="symbol"?r+"":r,i),i),Ch=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});function Nd(t){if(!t)return"Field is required"}class ef extends d.Component{constructor(){super(...arguments);yl(this,"state",{error:null,loading:!1,showPkceOptions:!1}),yl(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),yl(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),yl(this,"handleCodeVerifierChange",r=>Ch(this,[r],function*({target:{value:i}}){const a=yield Yr(i);this.setState({codeVerifier:i,validCodeChallenge:a})}))}get values(){var r,i;return((i=(r=this.props.form.values)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}get errors(){var r,i;return((i=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}get pkceInputActionButtonProps(){if(this.state.codeVerifier!==void 0&&this.state.codeChallenge!==this.state.validCodeChallenge)return{label:"sync",onClick:()=>{this.state.codeVerifier&&this.setState({codeChallenge:this.state.validCodeChallenge})}}}componentDidMount(){if(this.props.usePkce){const r=us(43);Yr(r).then(i=>{this.setState({codeVerifier:r,codeChallenge:i,validCodeChallenge:i})})}}handleAuthorize(r){if(!r)return;this.props.formApi.validate();const{flow:i,usePkce:a,id:s,tokenUrl:p,authCorsProxyUrl:m}=this.props;if(!(0,rs.Qr)(this.errors))return;this.setState({loading:!0,error:null});const S=m?m+(0,Zr.jg)(r):r,w=m&&p?m+(0,Zr.jg)(p):p,E=this.props.formApi.getValue(`auth.${s}.scopes`),R={authorizationUrl:S.startsWith("http")?S:this.props.server+S,clientId:this.values.client_id,scopes:E,redirectUri:this.context.oAuth2RedirectURI,routingBasePath:this.context.routingBasePath,successCallback:J=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,J),this.setState({loading:!1,error:null})},errorCallback:J=>{this.setState({loading:!1,error:(J==null?void 0:J.message)||"Failed to retrieve the access token"})}};i==="implicit"&&cr.authorizeImplicit(R),i==="authorizationCode"&&cr.authorizeAuthorizationCode(_u(bc(_u({},R),{tokenUrl:(w==null?void 0:w.startsWith("http"))?w:this.props.server+w,clientSecret:this.values.client_secret}),a&&{codeVerifier:this.state.codeVerifier,codeChallenge:this.state.codeChallenge}))}handleLogout(){this.clearToken(),this.setState({error:null})}handleCancel(){this.setState({loading:!1,error:null}),cr.clearRedirectData(this.props.flow)}render(){const{error:r,loading:i}=this.state,{id:a,scopes:s,authorizationUrl:p,flow:m,usePkce:S,defaultValues:w}=this.props;if(!p)return d.createElement(Et.Xq,null,"No flow info");let E=(0,zt.YQ)(`auth.${a}.token`)||JSON.stringify(w==null?void 0:w.token);E=E?JSON.parse(E):"";const R=(0,zt.Al)(a,"client_id"),J={field:`auth.${a}.client_id`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${a}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),initValue:(0,zt.YQ)(`auth.${a}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),placeholder:"Your OAuth2 app Client ID",validate:Nd,validateOnBlur:!0,validateOnChange:!0};return d.createElement("div",null,d.createElement(Et.n5,null,d.createElement(Et.NI,null,d.createElement(Et.lX,null," Client ID: "),R?d.createElement(zo,bc(_u({},J),{options:R})):d.createElement(un,bc(_u({},J),{"data-cy":"client-id-input"}))),m==="authorizationCode"&&d.createElement(d.Fragment,null,d.createElement(Et.NI,null,d.createElement(Et.lX,null,"Client Secret:"),d.createElement(un,{type:"password",fullWidth:!0,field:`auth.${a}.client_secret`,initialValue:(0,zt.YQ)(`auth.${a}.client_secret`)||(w==null?void 0:w.client_secret),validate:Nd,validateOnBlur:!0,validateOnChange:!0,"data-cy":"client-secret-input"})),S&&d.createElement(Ph,null,d.createElement(tt,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:this.state.showPkceOptions,onChange:this.togglePkceOptions,"data-cy":"pkce-options-toggle"}),this.state.showPkceOptions&&d.createElement(Ih,null,d.createElement(Et.NI,null,d.createElement(Et.lX,null,"Code Verifier"),d.createElement(uo,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,"data-cy":"code-verifier-input"})),d.createElement(Et.NI,null,d.createElement(Et.lX,null,"Code Challenge"),d.createElement(uo,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:oe}})=>{this.setState({codeChallenge:oe})},inputActionButton:this.pkceInputActionButtonProps,"data-cy":"code-challenge-input"}))))),d.createElement(un,{fullWidth:!0,field:`auth.${a}.token`,type:"hidden",initialValue:E}),d.createElement(ar,{id:a,scopes:s}),this.values.token&&this.values.token.access_token?d.createElement(Et.NI,null,d.createElement(Et.lX,null," Access Token: "),d.createElement(uo,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token})):null),d.createElement(Th,null,this.values.token&&this.values.token.access_token?d.createElement(qr.zx,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):i?d.createElement(d.Fragment,null,d.createElement(qr.zx,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),d.createElement(Md,null)):d.createElement(qr.zx,{fullWidth:!0,disabled:!(0,rs.Qr)(this.errors),onClick:()=>{this.handleAuthorize(p)}},"Authorize")),i||r||!this.values.token||!this.values.token.access_token&&d.createElement(Et.n5,null,d.createElement(Et.NI,null,i?d.createElement(Et.GE,null,"Please, finish your authorization flow or cancel authorization."):r?d.createElement(d.Fragment,null,d.createElement(Oh,null,d.createElement(Et.Xq,null,r))):!this.values.token||!this.values.token.access_token?d.createElement(Et.GE,null," No Access Token. Please, Authorize. "):null)))}}yl(ef,"contextType",jt.OptionsContext);const Oh=jt.styled.div`
425
+ `,Rd=()=>d.createElement(xh,null,d.createElement("div",{className:"indeterminate"}));var bh=Object.defineProperty,wh=Object.defineProperties,Sh=Object.getOwnPropertyDescriptors,Ld=Object.getOwnPropertySymbols,Ah=Object.prototype.hasOwnProperty,Eh=Object.prototype.propertyIsEnumerable,xc=(t,r,i)=>r in t?bh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,qu=(t,r)=>{for(var i in r||(r={}))Ah.call(r,i)&&xc(t,i,r[i]);if(Ld)for(var i of Ld(r))Eh.call(r,i)&&xc(t,i,r[i]);return t},bc=(t,r)=>wh(t,Sh(r)),ml=(t,r,i)=>(xc(t,typeof r!="symbol"?r+"":r,i),i),Ch=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});function Dd(t){if(!t)return"Field is required"}class ef extends d.Component{constructor(){super(...arguments);ml(this,"state",{error:null,loading:!1,showPkceOptions:!1}),ml(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),ml(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),ml(this,"handleCodeVerifierChange",r=>Ch(this,[r],function*({target:{value:i}}){const a=yield Yr(i);this.setState({codeVerifier:i,validCodeChallenge:a})}))}get values(){var r,i;return((i=(r=this.props.form.values)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}get errors(){var r,i;return((i=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}get pkceInputActionButtonProps(){if(this.state.codeVerifier!==void 0&&this.state.codeChallenge!==this.state.validCodeChallenge)return{label:"sync",onClick:()=>{this.state.codeVerifier&&this.setState({codeChallenge:this.state.validCodeChallenge})}}}componentDidMount(){if(this.props.usePkce){const r=fs(43);Yr(r).then(i=>{this.setState({codeVerifier:r,codeChallenge:i,validCodeChallenge:i})})}}handleAuthorize(r){if(!r)return;this.props.formApi.validate();const{flow:i,usePkce:a,id:s,tokenUrl:p,authCorsProxyUrl:m}=this.props;if(!(0,ns.Qr)(this.errors))return;this.setState({loading:!0,error:null});const A=m?m+(0,Zr.jg)(r):r,w=m&&p?m+(0,Zr.jg)(p):p,E=this.props.formApi.getValue(`auth.${s}.scopes`),M={authorizationUrl:A.startsWith("http")?A:this.props.server+A,clientId:this.values.client_id,scopes:E,redirectUri:this.context.oAuth2RedirectURI,routingBasePath:this.context.routingBasePath,successCallback:Y=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,Y),this.setState({loading:!1,error:null})},errorCallback:Y=>{this.setState({loading:!1,error:(Y==null?void 0:Y.message)||"Failed to retrieve the access token"})}};i==="implicit"&&cr.authorizeImplicit(M),i==="authorizationCode"&&cr.authorizeAuthorizationCode(qu(bc(qu({},M),{tokenUrl:(w==null?void 0:w.startsWith("http"))?w:this.props.server+w,clientSecret:this.values.client_secret}),a&&{codeVerifier:this.state.codeVerifier,codeChallenge:this.state.codeChallenge}))}handleLogout(){this.clearToken(),this.setState({error:null})}handleCancel(){this.setState({loading:!1,error:null}),cr.clearRedirectData(this.props.flow)}render(){const{error:r,loading:i}=this.state,{id:a,scopes:s,authorizationUrl:p,flow:m,usePkce:A,defaultValues:w}=this.props;if(!p)return d.createElement(Et.Xq,null,"No flow info");let E=(0,zt.YQ)(`auth.${a}.token`)||JSON.stringify(w==null?void 0:w.token);E=E?JSON.parse(E):"";const M=(0,zt.Al)(a,"client_id"),Y={field:`auth.${a}.client_id`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${a}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),initValue:(0,zt.YQ)(`auth.${a}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),placeholder:"Your OAuth2 app Client ID",validate:Dd,validateOnBlur:!0,validateOnChange:!0};return d.createElement("div",null,d.createElement(Et.n5,null,d.createElement(Et.NI,null,d.createElement(Et.lX,null," Client ID: "),M?d.createElement(zo,bc(qu({},Y),{options:M})):d.createElement(un,bc(qu({},Y),{"data-cy":"client-id-input"}))),m==="authorizationCode"&&d.createElement(d.Fragment,null,d.createElement(Et.NI,null,d.createElement(Et.lX,null,"Client Secret:"),d.createElement(un,{type:"password",fullWidth:!0,field:`auth.${a}.client_secret`,initialValue:(0,zt.YQ)(`auth.${a}.client_secret`)||(w==null?void 0:w.client_secret),validate:Dd,validateOnBlur:!0,validateOnChange:!0,"data-cy":"client-secret-input"})),A&&d.createElement(Ph,null,d.createElement(et,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:this.state.showPkceOptions,onChange:this.togglePkceOptions,"data-cy":"pkce-options-toggle"}),this.state.showPkceOptions&&d.createElement(Ih,null,d.createElement(Et.NI,null,d.createElement(Et.lX,null,"Code Verifier"),d.createElement(uo,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,"data-cy":"code-verifier-input"})),d.createElement(Et.NI,null,d.createElement(Et.lX,null,"Code Challenge"),d.createElement(uo,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:ae}})=>{this.setState({codeChallenge:ae})},inputActionButton:this.pkceInputActionButtonProps,"data-cy":"code-challenge-input"}))))),d.createElement(un,{fullWidth:!0,field:`auth.${a}.token`,type:"hidden",initialValue:E}),d.createElement(ar,{id:a,scopes:s}),this.values.token&&this.values.token.access_token?d.createElement(Et.NI,null,d.createElement(Et.lX,null," Access Token: "),d.createElement(uo,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token})):null),d.createElement(Th,null,this.values.token&&this.values.token.access_token?d.createElement(_r.zx,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):i?d.createElement(d.Fragment,null,d.createElement(_r.zx,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),d.createElement(Rd,null)):d.createElement(_r.zx,{fullWidth:!0,disabled:!(0,ns.Qr)(this.errors),onClick:()=>{this.handleAuthorize(p)}},"Authorize")),i||r||!this.values.token||!this.values.token.access_token&&d.createElement(Et.n5,null,d.createElement(Et.NI,null,i?d.createElement(Et.GE,null,"Please, finish your authorization flow or cancel authorization."):r?d.createElement(d.Fragment,null,d.createElement(Oh,null,d.createElement(Et.Xq,null,r))):!this.values.token||!this.values.token.access_token?d.createElement(Et.GE,null," No Access Token. Please, Authorize. "):null)))}}ml(ef,"contextType",jt.OptionsContext);const Oh=jt.styled.div`
431
426
  font-family: monospace;
432
427
  margin-top: 10px;
433
428
  line-height: 1;
@@ -439,23 +434,23 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function qa(t){return t.i
439
434
  padding: 8px 0 20px;
440
435
  `,Ih=jt.styled.div`
441
436
  padding: 4px 0;
442
- `;var Fh=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});function kh(t){return Fh(this,null,function*(){return(yield fetch(t)).json()})}var Rh=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});function Mh(t){var r;const{scheme:i,defaultValues:a}=t,[s,p]=d.useState({}),[m,S]=d.useState(),[w,E]=d.useState(!1);d.useEffect(()=>{R(i.openIdConnectUrl)},[i.openIdConnectUrl]);const R=J=>Rh(this,null,function*(){E(!0),S("");try{const oe=yield kh(J);p(oe)}catch(oe){S(oe.message)}E(!1)});return d.createElement("div",null,w?d.createElement("div",null,d.createElement("div",null,"Fetching OpenID Connect metadata..."),d.createElement(Md,null)):d.createElement("div",null,m?d.createElement(Et.Xq,null,m):((r=s==null?void 0:s.response_types_supported)==null?void 0:r.includes("token"))?d.createElement(d.Fragment,null,d.createElement(Lh,null,"OAuth2 Implicit Flow"),d.createElement(ef,{key:t.id,authorizationUrl:s.authorization_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:s.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,flow:"implicit",defaultValues:a})):d.createElement("div",null,"Unsupported flow")))}const Lh=jt.styled.div`
437
+ `;var Fh=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});function kh(t){return Fh(this,null,function*(){return(yield fetch(t)).json()})}var Mh=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});function Rh(t){var r;const{scheme:i,defaultValues:a}=t,[s,p]=d.useState({}),[m,A]=d.useState(),[w,E]=d.useState(!1);d.useEffect(()=>{M(i.openIdConnectUrl)},[i.openIdConnectUrl]);const M=Y=>Mh(this,null,function*(){E(!0),A("");try{const ae=yield kh(Y);p(ae)}catch(ae){A(ae.message)}E(!1)});return d.createElement("div",null,w?d.createElement("div",null,d.createElement("div",null,"Fetching OpenID Connect metadata..."),d.createElement(Rd,null)):d.createElement("div",null,m?d.createElement(Et.Xq,null,m):((r=s==null?void 0:s.response_types_supported)==null?void 0:r.includes("token"))?d.createElement(d.Fragment,null,d.createElement(Lh,null,"OAuth2 Implicit Flow"),d.createElement(ef,{key:t.id,authorizationUrl:s.authorization_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:s.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,flow:"implicit",defaultValues:a})):d.createElement("div",null,"Unsupported flow")))}const Lh=jt.styled.div`
443
438
  margin-top: 5px;
444
439
  margin-bottom: 10px;
445
- `;var ml=o(51027),Nh=Object.defineProperty,Dh=Object.defineProperties,Bh=Object.getOwnPropertyDescriptors,Dd=Object.getOwnPropertySymbols,Uh=Object.prototype.hasOwnProperty,jh=Object.prototype.propertyIsEnumerable,wc=(t,r,i)=>r in t?Nh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,fs=(t,r)=>{for(var i in r||(r={}))Uh.call(r,i)&&wc(t,i,r[i]);if(Dd)for(var i of Dd(r))jh.call(r,i)&&wc(t,i,r[i]);return t},xl=(t,r)=>Dh(t,Bh(r)),Bd=(t,r,i)=>(wc(t,typeof r!="symbol"?r+"":r,i),i);function cs(t){if(!t)return"Field is required"}const Vh=function(t){const r=document.cookie.match("\\b"+t+"=([^;]*)\\b");return r?r[1]:void 0};function Ud(t){if(t.in==="cookie")return Vh(t.name)}class Wh extends d.Component{constructor(){super(...arguments);Bd(this,"state",{activeScheme:0}),Bd(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,zt.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const a=r.operation.security.map(m=>m.schemes.map(S=>S.id).join(" and ")),s=(0,zt.YQ)("securityRequirementName"),p=a.findIndex(m=>m===s);return{activeScheme:p<0?0:p}}render(){const{securityDefaults:r}=this.props,{activeScheme:i}=this.state,a=this.props.operation.security,p=a.map(m=>m.schemes.map(S=>S.id).join(" and ")).map((m,S)=>({value:m,idx:S}));return p.length===0?null:d.createElement(d.Fragment,null,d.createElement(Et.n5,null,p.length>1&&d.createElement(Et.NI,null,d.createElement(jt.Dropdown,{variant:"dark",fullWidth:!0,prefix:"Security scheme: ",options:p,value:p[i].value,onChange:this.handleSchemeChange}))||null,a[i].schemes.map(m=>{var S,w,E,R,J,oe,re;const le=(0,zt.A8)(m.id);if(m.type==="apiKey"){const ve=(0,zt.Al)(le,""),pe={field:`auth.${le}`,fullWidth:!0,initialValue:Ud(m)||(0,zt.YQ)(`auth.${le}`)||(r==null?void 0:r[le]),initValue:Ud(m)||(0,zt.YQ)(`auth.${le}`)||(r==null?void 0:r[le]),validate:cs,validateOnBlur:!0,validateOnChange:!0};return d.createElement(Et.NI,{key:le},d.createElement(Et.lX,null," ",m.name,": "),ve?d.createElement(zo,xl(fs({},pe),{options:ve})):d.createElement(un,xl(fs({},pe),{type:"password","data-cy":"apiKey-auth-password"})))}else if(m.type==="http"){if(m.scheme==="basic"){const ve=(0,zt.Al)(le,"username"),pe={field:`auth.${le}.username`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${le}.username`)||((S=r==null?void 0:r[le])==null?void 0:S.username),initValue:(0,zt.YQ)(`auth.${le}.username`)||((w=r==null?void 0:r[le])==null?void 0:w.username),validate:cs,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:le},d.createElement(Et.NI,null,d.createElement(Et.lX,null," ",(0,ml.l)("tryItAuthBasicUsername"),": "),ve?d.createElement(zo,xl(fs({},pe),{options:ve})):d.createElement(un,fs({},pe))),d.createElement(Et.NI,null,d.createElement(Et.lX,null," ",(0,ml.l)("tryItAuthBasicPassword"),": "),d.createElement(un,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${le}.password`,validate:cs,initialValue:(0,zt.YQ)(`auth.${le}.password`)||((E=r==null?void 0:r[le])==null?void 0:E.password),validateOnBlur:!0,validateOnChange:!0})))}else if(m.scheme==="bearer"){const ve=(0,zt.Al)(le,""),pe={field:`auth.${le}`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${le}`)||(r==null?void 0:r[le]),initValue:(0,zt.YQ)(`auth.${le}`)||(r==null?void 0:r[le]),validate:cs,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:le},d.createElement(Et.NI,null,d.createElement(Et.lX,null," Bearer Token: "),ve?d.createElement(zo,xl(fs({},pe),{options:ve})):d.createElement(un,xl(fs({},pe),{type:"password",placeholder:"(without 'Bearer')"}))))}}else{if(m.type==="oauth2"&&m.flows&&m.flows.clientCredentials)return d.createElement(mh,{key:le,flow:m.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:le,form:this.props.form,formApi:this.props.formApi,clientId:m.flows.clientCredentials["x-defaultClientId"]||m["x-defaultClientId"],defaultValues:r==null?void 0:r[le]});if(m.type==="oauth2"&&m.flows&&m.flows.implicit)return d.createElement(ef,{key:le,authorizationUrl:m.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((J=(R=m==null?void 0:m.flows)==null?void 0:R.implicit)==null?void 0:J.scopes)||{}),server:this.props.activeServer,id:le,form:this.props.form,formApi:this.props.formApi,clientId:m.flows.implicit["x-defaultClientId"]||m["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[le]});if(m.type==="oauth2"&&m.flows&&m.flows.authorizationCode)return d.createElement(ef,{key:le,authorizationUrl:m.flows.authorizationCode.authorizationUrl,tokenUrl:m.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((oe=m.flows.authorizationCode)==null?void 0:oe.scopes)||{}),server:this.props.activeServer,id:le,form:this.props.form,formApi:this.props.formApi,clientId:m.flows.authorizationCode["x-defaultClientId"]||m["x-defaultClientId"],flow:"authorizationCode",usePkce:m.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[le]});if(m.type==="oauth2"){let ve=(0,zt.YQ)(`auth.${le}.token`)||JSON.stringify((re=r==null?void 0:r[le])==null?void 0:re.token);return ve=ve?JSON.parse(ve):{},d.createElement(d.Fragment,{key:le},d.createElement(Et.NI,null,d.createElement(Et.lX,null," Access Token Type: "),d.createElement(un,{fullWidth:!0,field:`auth.${le}.token.token_type`,initialValue:ve.token_type||"Bearer"})),d.createElement(Et.NI,null,d.createElement(Et.lX,null," Access Token: "),d.createElement(un,{type:"password",fullWidth:!0,field:`auth.${le}.token.access_token`,validate:cs,initialValue:ve.access_token,validateOnBlur:!0,validateOnChange:!0})))}else if(m.type==="openIdConnect")return d.createElement(Mh,{key:le,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:le,form:this.props.form,formApi:this.props.formApi,scheme:m,clientId:m["x-defaultClientId"],defaultValues:r==null?void 0:r[le]})}})),d.createElement("small",null,d.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var jd=o(11429),Vd=o(89356),tf=o(63263),Hh=o(30699),Sc=o(58377),Wd=o(28834),Hd=o(13038),zh=o(32752),Ac=o(44341);function zd(t,r,i){return r in t?Ac(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function Gd(t,r){var i=Vd(t);if(tf){var a=tf(t);r&&(a=Hh(a).call(a,function(s){return Sc(t,s).enumerable})),i.push.apply(i,a)}return i}function Cr(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){var a;Wd(a=Gd(Object(i),!0)).call(a,function(p){zd(t,p,i[p])})}else if(Hd)zh(t,Hd(i));else{var s;Wd(s=Gd(Object(i))).call(s,function(p){Ac(t,p,Sc(i,p))})}}return t}var Gh=o(28583),rf=o.n(Gh),$h=o(10240),$d=o.n($h),Uo=o(8575),va=o(51446),Ec=o(19996),Cc=o(78363),Kh=o(95238),Kd=o(53592);function Oc(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,a=new Array(r);i<r;i++)a[i]=t[i];return a}function Tc(t,r){var i;if(!!t){if(typeof t=="string")return Oc(t,r);var a=Kh(i=Object.prototype.toString.call(t)).call(i,8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return Kd(t);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Oc(t,r)}}function ga(t,r){var i=typeof va!="undefined"&&Ec(t)||t["@@iterator"];if(!i){if(Cc(t)||(i=Tc(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var a=0,s=function(){};return{s,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(E){throw E},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
446
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,m=!1,S;return{s:function(){i=i.call(t)},n:function(){var E=i.next();return p=E.done,E},e:function(E){m=!0,S=E},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(m)throw S}}}}var Yh=o(23882);function vr(t){return typeof va=="function"&&typeof Yh=="symbol"?vr=function(i){return typeof i}:vr=function(i){return i&&typeof va=="function"&&i.constructor===va&&i!==va.prototype?"symbol":typeof i},vr(t)}function Jh(t){if(Cc(t))return t}function Xh(t,r){var i=t&&(typeof va!="undefined"&&Ec(t)||t["@@iterator"]);if(i!=null){var a=[],s=!0,p=!1,m,S;try{for(i=i.call(t);!(s=(m=i.next()).done)&&(a.push(m.value),!(r&&a.length===r));s=!0);}catch(w){p=!0,S=w}finally{try{!s&&i.return!=null&&i.return()}finally{if(p)throw S}}return a}}function Qh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
447
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yi(t,r){return Jh(t)||Xh(t,r)||Tc(t,r)||Qh()}var Yd=o(69798);function Jd(t,r,i,a,s,p,m){try{var S=t[p](m),w=S.value}catch(E){i(E);return}S.done?r(w):Yd.resolve(w).then(a,s)}function Pc(t){return function(){var r=this,i=arguments;return new Yd(function(a,s){var p=t.apply(r,i);function m(w){Jd(p,a,s,m,S,"next",w)}function S(w){Jd(p,a,s,m,S,"throw",w)}m(void 0)})}}var Zh=o(63109),Li=o.n(Zh),qh=o(78580),Ic=o.n(qh),_h=o(72119),Xd=o.n(_h),ev=o(66419),tv=o.n(ev),rv=o(59340),nf=o.n(rv),nv=o(2991),ir=o.n(nv),iv=o(86902),or=o.n(iv),ov=o(77766),Tt=o.n(ov),av=o(26295),Qd=o.n(av),sv=o(20116),Nn=o.n(sv),Lm=o(31905),lv=o(92495),Fc=o.n(lv),uv=o(93320),Zd=o.n(uv),fv=o(78718),kc=o.n(fv),cv=o(23560),bl=o.n(cv),qd=o(88996);function Rc(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _d(t,r){for(var i=0;i<r.length;i++){var a=r[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Ac(t,a.key,a)}}function Mc(t,r,i){return r&&_d(t.prototype,r),i&&_d(t,i),t}var ep=o(83863),tp=o(79542),rp=o(24889);function ds(t){return ds=tp?rp:function(i){return i.__proto__||rp(i)},ds(t)}function dv(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&(t=ds(t),t!==null););return t}function of(t,r,i){return typeof Reflect!="undefined"&&ep?of=ep:of=function(s,p,m){var S=dv(s,p);if(!!S){var w=Sc(S,p);return w.get?w.get.call(m):w.value}},of(t,r,i||t)}var pv=o(189);function Lc(t,r){return Lc=tp||function(a,s){return a.__proto__=s,a},Lc(t,r)}function hv(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=pv(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&Lc(t,r)}var af=o(13535);function vv(){if(typeof Reflect=="undefined"||!af||af.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(af(Boolean,[],function(){})),!0}catch(t){return!1}}function gv(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yv(t,r){return r&&(vr(r)==="object"||typeof r=="function")?r:gv(t)}function mv(t){var r=vv();return function(){var a=ds(t),s;if(r){var p=ds(this).constructor;s=af(a,arguments,p)}else s=a.apply(this,arguments);return yv(this,s)}}var xv=o(94473),bv=o.n(xv),wv=o(57514),Sv=o.n(wv),Av=function(r){var i=function(p,m){return{name:p,value:m}};if(bl()(r.prototype.set)||bl()(r.prototype.get)||bl()(r.prototype.getAll)||bl()(r.prototype.has))return r;var a=function(s){hv(m,s);var p=mv(m);function m(S){var w;return Rc(this,m),w=p.call(this,S),w.entryList=[],w}return Mc(m,[{key:"append",value:function(w,E,R){return this.entryList.push(i(w,E)),of(ds(m.prototype),"append",this).call(this,w,E,R)}},{key:"set",value:function(w,E){var R,J=i(w,E);this.entryList=Nn()(R=this.entryList).call(R,function(oe){return oe.name!==w}),this.entryList.push(J)}},{key:"get",value:function(w){var E,R=bv()(E=this.entryList).call(E,function(J){return J.name===w});return R===void 0?null:R}},{key:"getAll",value:function(w){var E,R;return ir()(E=Nn()(R=this.entryList).call(R,function(J){return J.name===w})).call(E,function(J){return J.value})}},{key:"has",value:function(w){return this.entryList.some(function(E){return E.name===w})}}]),m}(r);return a};const Ev=Av(Sv());function Cv(t){if(Cc(t))return Oc(t)}function Ov(t){if(typeof va!="undefined"&&Ec(t)!=null||t["@@iterator"]!=null)return Kd(t)}function Tv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
448
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ya(t){return Cv(t)||Ov(t)||Tc(t)||Tv()}var Pv=o(3649),Ni=o.n(Pv),Iv=o(88996),Fv=Iv.Buffer,kv=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},Rv=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function ps(t){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.escape,s=arguments.length>2?arguments[2]:void 0;return typeof t=="number"&&(t=t.toString()),typeof t!="string"||!t.length||!a?t:s?JSON.parse(t):ir()(r=ya(t)).call(r,function(p){var m,S;if(Rv(p)||kv(p)&&a==="unsafe")return p;var w=ir()(m=ir()(S=Fv.from(p).toJSON().data||[]).call(S,function(E){var R;return Ni()(R="0".concat(E.toString(16).toUpperCase())).call(R,-2)})).call(m,function(E){return"%".concat(E)}).join("");return w}).join("")}function Nc(t){var r=t.value;return Array.isArray(r)?Mv(t):vr(r)==="object"?Lv(t):Nv(t)}function Mv(t){var r=t.key,i=t.value,a=t.style,s=t.explode,p=t.escape,m=function(J){return ps(J,{escape:p})};if(a==="simple")return ir()(i).call(i,function(R){return m(R)}).join(",");if(a==="label")return".".concat(ir()(i).call(i,function(R){return m(R)}).join("."));if(a==="matrix")return ir()(i).call(i,function(R){return m(R)}).reduce(function(R,J){var oe;if(!R||s){var re,le;return Tt()(re=Tt()(le="".concat(R||"",";")).call(le,r,"=")).call(re,J)}return Tt()(oe="".concat(R,",")).call(oe,J)},"");if(a==="form"){var S=s?"&".concat(r,"="):",";return ir()(i).call(i,function(R){return m(R)}).join(S)}if(a==="spaceDelimited"){var w=s?"".concat(r,"="):"";return ir()(i).call(i,function(R){return m(R)}).join(" ".concat(w))}if(a==="pipeDelimited"){var E=s?"".concat(r,"="):"";return ir()(i).call(i,function(R){return m(R)}).join("|".concat(E))}}function Lv(t){var r=t.key,i=t.value,a=t.style,s=t.explode,p=t.escape,m=function(E){return ps(E,{escape:p})},S=or()(i);if(a==="simple")return S.reduce(function(w,E){var R,J,oe,re=m(i[E]),le=s?"=":",",ve=w?"".concat(w,","):"";return Tt()(R=Tt()(J=Tt()(oe="".concat(ve)).call(oe,E)).call(J,le)).call(R,re)},"");if(a==="label")return S.reduce(function(w,E){var R,J,oe,re=m(i[E]),le=s?"=":".",ve=w?"".concat(w,"."):".";return Tt()(R=Tt()(J=Tt()(oe="".concat(ve)).call(oe,E)).call(J,le)).call(R,re)},"");if(a==="matrix"&&s)return S.reduce(function(w,E){var R,J,oe=m(i[E]),re=w?"".concat(w,";"):";";return Tt()(R=Tt()(J="".concat(re)).call(J,E,"=")).call(R,oe)},"");if(a==="matrix")return S.reduce(function(w,E){var R,J,oe=m(i[E]),re=w?"".concat(w,","):";".concat(r,"=");return Tt()(R=Tt()(J="".concat(re)).call(J,E,",")).call(R,oe)},"");if(a==="form")return S.reduce(function(w,E){var R,J,oe,re,le=m(i[E]),ve=w?Tt()(R="".concat(w)).call(R,s?"&":","):"",pe=s?"=":",";return Tt()(J=Tt()(oe=Tt()(re="".concat(ve)).call(re,E)).call(oe,pe)).call(J,le)},"")}function Nv(t){var r=t.key,i=t.value,a=t.style,s=t.escape,p=function(w){return ps(w,{escape:s})};if(a==="simple")return p(i);if(a==="label")return".".concat(p(i));if(a==="matrix"){var m;return Tt()(m=";".concat(r,"=")).call(m,p(i))}if(a==="form")return p(i);if(a==="deepObject")return p(i,{},!0)}var Dc={serializeRes:np,mergeInQueryOrForm:up};function sf(t){return Bc.apply(this,arguments)}function Bc(){return Bc=Pc(Li().mark(function t(r){var i,a,s,p,m,S=arguments;return Li().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(i=S.length>1&&S[1]!==void 0?S[1]:{},vr(r)==="object"&&(i=r,r=i.url),i.headers=i.headers||{},Dc.mergeInQueryOrForm(i),i.headers&&or()(i.headers).forEach(function(R){var J=i.headers[R];typeof J=="string"&&(i.headers[R]=J.replace(/\n+/g," "))}),!i.requestInterceptor){E.next=12;break}return E.next=8,i.requestInterceptor(i);case 8:if(E.t0=E.sent,E.t0){E.next=11;break}E.t0=i;case 11:i=E.t0;case 12:return a=i.headers["content-type"]||i.headers["Content-Type"],/multipart\/form-data/i.test(a)&&(delete i.headers["content-type"],delete i.headers["Content-Type"]),E.prev=14,E.next=17,(i.userFetch||fetch)(i.url,i);case 17:return s=E.sent,E.next=20,Dc.serializeRes(s,r,i);case 20:if(s=E.sent,!i.responseInterceptor){E.next=28;break}return E.next=24,i.responseInterceptor(s);case 24:if(E.t1=E.sent,E.t1){E.next=27;break}E.t1=s;case 27:s=E.t1;case 28:E.next=39;break;case 30:if(E.prev=30,E.t2=E.catch(14),s){E.next=34;break}throw E.t2;case 34:throw p=new Error(s.statusText),p.status=s.status,p.statusCode=s.status,p.responseError=E.t2,p;case 39:if(s.ok){E.next=45;break}throw m=new Error(s.statusText),m.status=s.status,m.statusCode=s.status,m.response=s,m;case 45:return E.abrupt("return",s);case 46:case"end":return E.stop()}},t,null,[[14,30]])})),Bc.apply(this,arguments)}var Dv=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function Bv(t,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(t):Zd().safeLoad(t)}function np(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.loadSpec,s=a===void 0?!1:a,p={ok:t.ok,url:t.url||r,status:t.status,statusText:t.statusText,headers:ip(t.headers)},m=p.headers["content-type"],S=s||Dv(m),w=S?t.text:t.blob||t.buffer;return w.call(t).then(function(E){if(p.text=E,p.data=E,S)try{var R=Bv(E,m);p.body=R,p.obj=R}catch(J){p.parseError=J}return p})}function Uv(t){var r=Ic()(t).call(t,", ");return r?t.split(", "):t}function ip(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return bl()(Xd()(t))?tv()(Xd()(t).call(t)).reduce(function(r,i){var a=yi(i,2),s=a[0],p=a[1];return r[s]=Uv(p),r},{}):{}}function Uc(t,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(t&&vr(t)==="object"&&typeof t.uri=="string"):typeof File!="undefined"&&t instanceof File||typeof Blob!="undefined"&&t instanceof Blob||typeof qd.Buffer!="undefined"&&t instanceof qd.Buffer?!0:t!==null&&vr(t)==="object"&&typeof t.pipe=="function"}function op(t,r){return Array.isArray(t)&&t.some(function(i){return Uc(i,r)})}var jv={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Vv={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function ap(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=r.collectionFormat,s=r.allowEmptyValue,p=r.serializationOption,m=r.encoding,S=vr(r)==="object"&&!Array.isArray(r)?r.value:r,w=i?function(J){return J.toString()}:function(J){return encodeURIComponent(J)},E=w(t);if(typeof S=="undefined"&&s)return[[E,""]];if(Uc(S)||op(S))return[[E,S]];if(p)return sp(t,S,i,p);if(m){if([vr(m.style),vr(m.explode),vr(m.allowReserved)].some(function(J){return J!=="undefined"}))return sp(t,S,i,kc()(m,["style","explode","allowReserved"]));if(m.contentType){if(m.contentType==="application/json"){var R=typeof S=="string"?S:nf()(S);return[[E,w(R)]]}return[[E,w(S.toString())]]}return vr(S)!=="object"?[[E,w(S)]]:Array.isArray(S)&&S.every(function(J){return vr(J)!=="object"})?[[E,ir()(S).call(S,w).join(",")]]:[[E,w(nf()(S))]]}return vr(S)!=="object"?[[E,w(S)]]:Array.isArray(S)?a==="multi"?[[E,ir()(S).call(S,w)]]:[[E,ir()(S).call(S,w).join(Vv[a||"csv"])]]:[[E,""]]}function sp(t,r,i,a){var s,p=a.style||"form",m=typeof a.explode=="undefined"?p==="form":a.explode,S=i?!1:a&&a.allowReserved?"unsafe":"reserved",w=function(re){return ps(re,{escape:S})},E=i?function(oe){return oe}:function(oe){return ps(oe,{escape:S})};if(vr(r)!=="object")return[[E(t),w(r)]];if(Array.isArray(r))return m?[[E(t),ir()(r).call(r,w)]]:[[E(t),ir()(r).call(r,w).join(jv[p])]];if(p==="deepObject"){var R;return ir()(R=or()(r)).call(R,function(oe){var re;return[E(Tt()(re="".concat(t,"[")).call(re,oe,"]")),w(r[oe])]})}if(m){var J;return ir()(J=or()(r)).call(J,function(oe){return[E(oe),w(r[oe])]})}return[[E(t),ir()(s=or()(r)).call(s,function(oe){var re;return[Tt()(re="".concat(E(oe),",")).call(re,w(r[oe]))]}).join(",")]]}function Wv(t){return Qd()(t).reduce(function(r,i){var a=yi(i,2),s=a[0],p=a[1],m=ga(ap(s,p,!0)),S;try{for(m.s();!(S=m.n()).done;){var w=yi(S.value,2),E=w[0],R=w[1];if(Array.isArray(R)){var J=ga(R),oe;try{for(J.s();!(oe=J.n()).done;){var re=oe.value;r.append(E,re)}}catch(le){J.e(le)}finally{J.f()}}else r.append(E,R)}}catch(le){m.e(le)}finally{m.f()}return r},new Ev)}function lp(t){var r=or()(t).reduce(function(i,a){var s=ga(ap(a,t[a])),p;try{for(s.s();!(p=s.n()).done;){var m=yi(p.value,2),S=m[0],w=m[1];i[S]=w}}catch(E){s.e(E)}finally{s.f()}return i},{});return Fc().stringify(r,{encode:!1,indices:!1})||""}function up(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.url,i=r===void 0?"":r,a=t.query,s=t.form,p=function(){for(var Se=arguments.length,ye=new Array(Se),Fe=0;Fe<Se;Fe++)ye[Fe]=arguments[Fe];var Ke=Nn()(ye).call(ye,function(Ue){return Ue}).join("&");return Ke?"?".concat(Ke):""};if(s){var m=or()(s).some(function(pe){var Se=s[pe].value;return Uc(Se)||op(Se)}),S=t.headers["content-type"]||t.headers["Content-Type"];m||/multipart\/form-data/i.test(S)?t.body=Wv(t.form):t.body=lp(s),delete t.form}if(a){var w=i.split("?"),E=yi(w,2),R=E[0],J=E[1],oe="";if(J){var re=Fc().parse(J),le=or()(a);le.forEach(function(pe){return delete re[pe]}),oe=Fc().stringify(re,{encode:!0})}var ve=p(oe,lp(a));t.url=R+ve,delete t.query}return t}function Hv(t,r,i){return i=i||function(a){return a},r=r||function(a){return a},function(a){return typeof a=="string"&&(a={url:a}),Dc.mergeInQueryOrForm(a),a=r(a),i(t(a))}}var zv=o(51942),mi=o.n(zv),Gv=o(93476),ma=o.n(Gv),$v=o(92762),Kv=o.n($v),Yv=o(13311),Jv=o.n(Yv),Xv=o(50308),fp=o.n(Xv);/*!
440
+ `;var xl=o(51027),Dh=Object.defineProperty,Nh=Object.defineProperties,Bh=Object.getOwnPropertyDescriptors,Nd=Object.getOwnPropertySymbols,Uh=Object.prototype.hasOwnProperty,jh=Object.prototype.propertyIsEnumerable,wc=(t,r,i)=>r in t?Dh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,cs=(t,r)=>{for(var i in r||(r={}))Uh.call(r,i)&&wc(t,i,r[i]);if(Nd)for(var i of Nd(r))jh.call(r,i)&&wc(t,i,r[i]);return t},bl=(t,r)=>Nh(t,Bh(r)),Bd=(t,r,i)=>(wc(t,typeof r!="symbol"?r+"":r,i),i);function ds(t){if(!t)return"Field is required"}const Vh=function(t){const r=document.cookie.match("\\b"+t+"=([^;]*)\\b");return r?r[1]:void 0};function Ud(t){if(t.in==="cookie")return Vh(t.name)}class Wh extends d.Component{constructor(){super(...arguments);Bd(this,"state",{activeScheme:0}),Bd(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,zt.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const a=r.operation.security.map(m=>m.schemes.map(A=>A.id).join(" and ")),s=(0,zt.YQ)("securityRequirementName"),p=a.findIndex(m=>m===s);return{activeScheme:p<0?0:p}}render(){const{securityDefaults:r}=this.props,{activeScheme:i}=this.state,a=this.props.operation.security,p=a.map(m=>m.schemes.map(A=>A.id).join(" and ")).map((m,A)=>({value:m,idx:A}));return p.length===0?null:d.createElement(d.Fragment,null,d.createElement(Et.n5,null,p.length>1&&d.createElement(Et.NI,null,d.createElement(jt.Dropdown,{variant:"dark",fullWidth:!0,prefix:"Security scheme: ",options:p,value:p[i].value,onChange:this.handleSchemeChange}))||null,a[i].schemes.map(m=>{var A,w,E,M,Y,ae,ne;const ue=(0,zt.A8)(m.id);if(m.type==="apiKey"){const ge=(0,zt.Al)(ue,""),he={field:`auth.${ue}`,fullWidth:!0,initialValue:Ud(m)||(0,zt.YQ)(`auth.${ue}`)||(r==null?void 0:r[ue]),initValue:Ud(m)||(0,zt.YQ)(`auth.${ue}`)||(r==null?void 0:r[ue]),validate:ds,validateOnBlur:!0,validateOnChange:!0};return d.createElement(Et.NI,{key:ue},d.createElement(Et.lX,null," ",m.name,": "),ge?d.createElement(zo,bl(cs({},he),{options:ge})):d.createElement(un,bl(cs({},he),{type:"password","data-cy":"apiKey-auth-password"})))}else if(m.type==="http"){if(m.scheme==="basic"){const ge=(0,zt.Al)(ue,"username"),he={field:`auth.${ue}.username`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${ue}.username`)||((A=r==null?void 0:r[ue])==null?void 0:A.username),initValue:(0,zt.YQ)(`auth.${ue}.username`)||((w=r==null?void 0:r[ue])==null?void 0:w.username),validate:ds,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:ue},d.createElement(Et.NI,null,d.createElement(Et.lX,null," ",(0,xl.l)("tryItAuthBasicUsername"),": "),ge?d.createElement(zo,bl(cs({},he),{options:ge})):d.createElement(un,cs({},he))),d.createElement(Et.NI,null,d.createElement(Et.lX,null," ",(0,xl.l)("tryItAuthBasicPassword"),": "),d.createElement(un,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${ue}.password`,validate:ds,initialValue:(0,zt.YQ)(`auth.${ue}.password`)||((E=r==null?void 0:r[ue])==null?void 0:E.password),validateOnBlur:!0,validateOnChange:!0})))}else if(m.scheme==="bearer"){const ge=(0,zt.Al)(ue,""),he={field:`auth.${ue}`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${ue}`)||(r==null?void 0:r[ue]),initValue:(0,zt.YQ)(`auth.${ue}`)||(r==null?void 0:r[ue]),validate:ds,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:ue},d.createElement(Et.NI,null,d.createElement(Et.lX,null," Bearer Token: "),ge?d.createElement(zo,bl(cs({},he),{options:ge})):d.createElement(un,bl(cs({},he),{type:"password",placeholder:"(without 'Bearer')"}))))}}else{if(m.type==="oauth2"&&m.flows&&m.flows.clientCredentials)return d.createElement(mh,{key:ue,flow:m.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:ue,form:this.props.form,formApi:this.props.formApi,clientId:m.flows.clientCredentials["x-defaultClientId"]||m["x-defaultClientId"],defaultValues:r==null?void 0:r[ue]});if(m.type==="oauth2"&&m.flows&&m.flows.implicit)return d.createElement(ef,{key:ue,authorizationUrl:m.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((Y=(M=m==null?void 0:m.flows)==null?void 0:M.implicit)==null?void 0:Y.scopes)||{}),server:this.props.activeServer,id:ue,form:this.props.form,formApi:this.props.formApi,clientId:m.flows.implicit["x-defaultClientId"]||m["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[ue]});if(m.type==="oauth2"&&m.flows&&m.flows.authorizationCode)return d.createElement(ef,{key:ue,authorizationUrl:m.flows.authorizationCode.authorizationUrl,tokenUrl:m.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((ae=m.flows.authorizationCode)==null?void 0:ae.scopes)||{}),server:this.props.activeServer,id:ue,form:this.props.form,formApi:this.props.formApi,clientId:m.flows.authorizationCode["x-defaultClientId"]||m["x-defaultClientId"],flow:"authorizationCode",usePkce:m.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[ue]});if(m.type==="oauth2"){let ge=(0,zt.YQ)(`auth.${ue}.token`)||JSON.stringify((ne=r==null?void 0:r[ue])==null?void 0:ne.token);return ge=ge?JSON.parse(ge):{},d.createElement(d.Fragment,{key:ue},d.createElement(Et.NI,null,d.createElement(Et.lX,null," Access Token Type: "),d.createElement(un,{fullWidth:!0,field:`auth.${ue}.token.token_type`,initialValue:ge.token_type||"Bearer"})),d.createElement(Et.NI,null,d.createElement(Et.lX,null," Access Token: "),d.createElement(un,{type:"password",fullWidth:!0,field:`auth.${ue}.token.access_token`,validate:ds,initialValue:ge.access_token,validateOnBlur:!0,validateOnChange:!0})))}else if(m.type==="openIdConnect")return d.createElement(Rh,{key:ue,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:ue,form:this.props.form,formApi:this.props.formApi,scheme:m,clientId:m["x-defaultClientId"],defaultValues:r==null?void 0:r[ue]})}})),d.createElement("small",null,d.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var jd=o(11429),Vd=o(89356),tf=o(63263),Hh=o(30699),Sc=o(58377),Wd=o(28834),Hd=o(13038),zh=o(32752),Ac=o(44341);function zd(t,r,i){return r in t?Ac(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function Gd(t,r){var i=Vd(t);if(tf){var a=tf(t);r&&(a=Hh(a).call(a,function(s){return Sc(t,s).enumerable})),i.push.apply(i,a)}return i}function Cr(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){var a;Wd(a=Gd(Object(i),!0)).call(a,function(p){zd(t,p,i[p])})}else if(Hd)zh(t,Hd(i));else{var s;Wd(s=Gd(Object(i))).call(s,function(p){Ac(t,p,Sc(i,p))})}}return t}var Gh=o(28583),rf=o.n(Gh),$h=o(10240),$d=o.n($h),Uo=o(8575),va=o(51446),Ec=o(19996),Cc=o(78363),Kh=o(95238),Kd=o(53592);function Oc(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,a=new Array(r);i<r;i++)a[i]=t[i];return a}function Tc(t,r){var i;if(!!t){if(typeof t=="string")return Oc(t,r);var a=Kh(i=Object.prototype.toString.call(t)).call(i,8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return Kd(t);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Oc(t,r)}}function ga(t,r){var i=typeof va!="undefined"&&Ec(t)||t["@@iterator"];if(!i){if(Cc(t)||(i=Tc(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var a=0,s=function(){};return{s,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(E){throw E},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
441
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,m=!1,A;return{s:function(){i=i.call(t)},n:function(){var E=i.next();return p=E.done,E},e:function(E){m=!0,A=E},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(m)throw A}}}}var Yh=o(23882);function vr(t){return typeof va=="function"&&typeof Yh=="symbol"?vr=function(i){return typeof i}:vr=function(i){return i&&typeof va=="function"&&i.constructor===va&&i!==va.prototype?"symbol":typeof i},vr(t)}function Jh(t){if(Cc(t))return t}function Xh(t,r){var i=t&&(typeof va!="undefined"&&Ec(t)||t["@@iterator"]);if(i!=null){var a=[],s=!0,p=!1,m,A;try{for(i=i.call(t);!(s=(m=i.next()).done)&&(a.push(m.value),!(r&&a.length===r));s=!0);}catch(w){p=!0,A=w}finally{try{!s&&i.return!=null&&i.return()}finally{if(p)throw A}}return a}}function Qh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
442
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yi(t,r){return Jh(t)||Xh(t,r)||Tc(t,r)||Qh()}var Yd=o(69798);function Jd(t,r,i,a,s,p,m){try{var A=t[p](m),w=A.value}catch(E){i(E);return}A.done?r(w):Yd.resolve(w).then(a,s)}function Pc(t){return function(){var r=this,i=arguments;return new Yd(function(a,s){var p=t.apply(r,i);function m(w){Jd(p,a,s,m,A,"next",w)}function A(w){Jd(p,a,s,m,A,"throw",w)}m(void 0)})}}var Zh=o(63109),Li=o.n(Zh),_h=o(78580),Ic=o.n(_h),qh=o(72119),Xd=o.n(qh),ev=o(66419),tv=o.n(ev),rv=o(59340),nf=o.n(rv),nv=o(2991),ir=o.n(nv),iv=o(86902),or=o.n(iv),ov=o(77766),Tt=o.n(ov),av=o(26295),Qd=o.n(av),sv=o(20116),Ln=o.n(sv),Lm=o(31905),lv=o(92495),Fc=o.n(lv),uv=o(93320),Zd=o.n(uv),fv=o(78718),kc=o.n(fv),cv=o(23560),wl=o.n(cv),_d=o(88996);function Mc(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function qd(t,r){for(var i=0;i<r.length;i++){var a=r[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Ac(t,a.key,a)}}function Rc(t,r,i){return r&&qd(t.prototype,r),i&&qd(t,i),t}var ep=o(83863),tp=o(79542),rp=o(24889);function ps(t){return ps=tp?rp:function(i){return i.__proto__||rp(i)},ps(t)}function dv(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&(t=ps(t),t!==null););return t}function of(t,r,i){return typeof Reflect!="undefined"&&ep?of=ep:of=function(s,p,m){var A=dv(s,p);if(!!A){var w=Sc(A,p);return w.get?w.get.call(m):w.value}},of(t,r,i||t)}var pv=o(189);function Lc(t,r){return Lc=tp||function(a,s){return a.__proto__=s,a},Lc(t,r)}function hv(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=pv(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&Lc(t,r)}var af=o(13535);function vv(){if(typeof Reflect=="undefined"||!af||af.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(af(Boolean,[],function(){})),!0}catch(t){return!1}}function gv(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yv(t,r){return r&&(vr(r)==="object"||typeof r=="function")?r:gv(t)}function mv(t){var r=vv();return function(){var a=ps(t),s;if(r){var p=ps(this).constructor;s=af(a,arguments,p)}else s=a.apply(this,arguments);return yv(this,s)}}var xv=o(94473),bv=o.n(xv),wv=o(57514),Sv=o.n(wv),Av=function(r){var i=function(p,m){return{name:p,value:m}};if(wl()(r.prototype.set)||wl()(r.prototype.get)||wl()(r.prototype.getAll)||wl()(r.prototype.has))return r;var a=function(s){hv(m,s);var p=mv(m);function m(A){var w;return Mc(this,m),w=p.call(this,A),w.entryList=[],w}return Rc(m,[{key:"append",value:function(w,E,M){return this.entryList.push(i(w,E)),of(ps(m.prototype),"append",this).call(this,w,E,M)}},{key:"set",value:function(w,E){var M,Y=i(w,E);this.entryList=Ln()(M=this.entryList).call(M,function(ae){return ae.name!==w}),this.entryList.push(Y)}},{key:"get",value:function(w){var E,M=bv()(E=this.entryList).call(E,function(Y){return Y.name===w});return M===void 0?null:M}},{key:"getAll",value:function(w){var E,M;return ir()(E=Ln()(M=this.entryList).call(M,function(Y){return Y.name===w})).call(E,function(Y){return Y.value})}},{key:"has",value:function(w){return this.entryList.some(function(E){return E.name===w})}}]),m}(r);return a};const Ev=Av(Sv());function Cv(t){if(Cc(t))return Oc(t)}function Ov(t){if(typeof va!="undefined"&&Ec(t)!=null||t["@@iterator"]!=null)return Kd(t)}function Tv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
443
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ya(t){return Cv(t)||Ov(t)||Tc(t)||Tv()}var Pv=o(3649),Di=o.n(Pv),Iv=o(88996),Fv=Iv.Buffer,kv=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},Mv=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function hs(t){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.escape,s=arguments.length>2?arguments[2]:void 0;return typeof t=="number"&&(t=t.toString()),typeof t!="string"||!t.length||!a?t:s?JSON.parse(t):ir()(r=ya(t)).call(r,function(p){var m,A;if(Mv(p)||kv(p)&&a==="unsafe")return p;var w=ir()(m=ir()(A=Fv.from(p).toJSON().data||[]).call(A,function(E){var M;return Di()(M="0".concat(E.toString(16).toUpperCase())).call(M,-2)})).call(m,function(E){return"%".concat(E)}).join("");return w}).join("")}function Dc(t){var r=t.value;return Array.isArray(r)?Rv(t):vr(r)==="object"?Lv(t):Dv(t)}function Rv(t){var r=t.key,i=t.value,a=t.style,s=t.explode,p=t.escape,m=function(Y){return hs(Y,{escape:p})};if(a==="simple")return ir()(i).call(i,function(M){return m(M)}).join(",");if(a==="label")return".".concat(ir()(i).call(i,function(M){return m(M)}).join("."));if(a==="matrix")return ir()(i).call(i,function(M){return m(M)}).reduce(function(M,Y){var ae;if(!M||s){var ne,ue;return Tt()(ne=Tt()(ue="".concat(M||"",";")).call(ue,r,"=")).call(ne,Y)}return Tt()(ae="".concat(M,",")).call(ae,Y)},"");if(a==="form"){var A=s?"&".concat(r,"="):",";return ir()(i).call(i,function(M){return m(M)}).join(A)}if(a==="spaceDelimited"){var w=s?"".concat(r,"="):"";return ir()(i).call(i,function(M){return m(M)}).join(" ".concat(w))}if(a==="pipeDelimited"){var E=s?"".concat(r,"="):"";return ir()(i).call(i,function(M){return m(M)}).join("|".concat(E))}}function Lv(t){var r=t.key,i=t.value,a=t.style,s=t.explode,p=t.escape,m=function(E){return hs(E,{escape:p})},A=or()(i);if(a==="simple")return A.reduce(function(w,E){var M,Y,ae,ne=m(i[E]),ue=s?"=":",",ge=w?"".concat(w,","):"";return Tt()(M=Tt()(Y=Tt()(ae="".concat(ge)).call(ae,E)).call(Y,ue)).call(M,ne)},"");if(a==="label")return A.reduce(function(w,E){var M,Y,ae,ne=m(i[E]),ue=s?"=":".",ge=w?"".concat(w,"."):".";return Tt()(M=Tt()(Y=Tt()(ae="".concat(ge)).call(ae,E)).call(Y,ue)).call(M,ne)},"");if(a==="matrix"&&s)return A.reduce(function(w,E){var M,Y,ae=m(i[E]),ne=w?"".concat(w,";"):";";return Tt()(M=Tt()(Y="".concat(ne)).call(Y,E,"=")).call(M,ae)},"");if(a==="matrix")return A.reduce(function(w,E){var M,Y,ae=m(i[E]),ne=w?"".concat(w,","):";".concat(r,"=");return Tt()(M=Tt()(Y="".concat(ne)).call(Y,E,",")).call(M,ae)},"");if(a==="form")return A.reduce(function(w,E){var M,Y,ae,ne,ue=m(i[E]),ge=w?Tt()(M="".concat(w)).call(M,s?"&":","):"",he=s?"=":",";return Tt()(Y=Tt()(ae=Tt()(ne="".concat(ge)).call(ne,E)).call(ae,he)).call(Y,ue)},"")}function Dv(t){var r=t.key,i=t.value,a=t.style,s=t.escape,p=function(w){return hs(w,{escape:s})};if(a==="simple")return p(i);if(a==="label")return".".concat(p(i));if(a==="matrix"){var m;return Tt()(m=";".concat(r,"=")).call(m,p(i))}if(a==="form")return p(i);if(a==="deepObject")return p(i,{},!0)}var Nc={serializeRes:np,mergeInQueryOrForm:up};function sf(t){return Bc.apply(this,arguments)}function Bc(){return Bc=Pc(Li().mark(function t(r){var i,a,s,p,m,A=arguments;return Li().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(i=A.length>1&&A[1]!==void 0?A[1]:{},vr(r)==="object"&&(i=r,r=i.url),i.headers=i.headers||{},Nc.mergeInQueryOrForm(i),i.headers&&or()(i.headers).forEach(function(M){var Y=i.headers[M];typeof Y=="string"&&(i.headers[M]=Y.replace(/\n+/g," "))}),!i.requestInterceptor){E.next=12;break}return E.next=8,i.requestInterceptor(i);case 8:if(E.t0=E.sent,E.t0){E.next=11;break}E.t0=i;case 11:i=E.t0;case 12:return a=i.headers["content-type"]||i.headers["Content-Type"],/multipart\/form-data/i.test(a)&&(delete i.headers["content-type"],delete i.headers["Content-Type"]),E.prev=14,E.next=17,(i.userFetch||fetch)(i.url,i);case 17:return s=E.sent,E.next=20,Nc.serializeRes(s,r,i);case 20:if(s=E.sent,!i.responseInterceptor){E.next=28;break}return E.next=24,i.responseInterceptor(s);case 24:if(E.t1=E.sent,E.t1){E.next=27;break}E.t1=s;case 27:s=E.t1;case 28:E.next=39;break;case 30:if(E.prev=30,E.t2=E.catch(14),s){E.next=34;break}throw E.t2;case 34:throw p=new Error(s.statusText),p.status=s.status,p.statusCode=s.status,p.responseError=E.t2,p;case 39:if(s.ok){E.next=45;break}throw m=new Error(s.statusText),m.status=s.status,m.statusCode=s.status,m.response=s,m;case 45:return E.abrupt("return",s);case 46:case"end":return E.stop()}},t,null,[[14,30]])})),Bc.apply(this,arguments)}var Nv=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function Bv(t,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(t):Zd().safeLoad(t)}function np(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.loadSpec,s=a===void 0?!1:a,p={ok:t.ok,url:t.url||r,status:t.status,statusText:t.statusText,headers:ip(t.headers)},m=p.headers["content-type"],A=s||Nv(m),w=A?t.text:t.blob||t.buffer;return w.call(t).then(function(E){if(p.text=E,p.data=E,A)try{var M=Bv(E,m);p.body=M,p.obj=M}catch(Y){p.parseError=Y}return p})}function Uv(t){var r=Ic()(t).call(t,", ");return r?t.split(", "):t}function ip(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return wl()(Xd()(t))?tv()(Xd()(t).call(t)).reduce(function(r,i){var a=yi(i,2),s=a[0],p=a[1];return r[s]=Uv(p),r},{}):{}}function Uc(t,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(t&&vr(t)==="object"&&typeof t.uri=="string"):typeof File!="undefined"&&t instanceof File||typeof Blob!="undefined"&&t instanceof Blob||typeof _d.Buffer!="undefined"&&t instanceof _d.Buffer?!0:t!==null&&vr(t)==="object"&&typeof t.pipe=="function"}function op(t,r){return Array.isArray(t)&&t.some(function(i){return Uc(i,r)})}var jv={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Vv={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function ap(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=r.collectionFormat,s=r.allowEmptyValue,p=r.serializationOption,m=r.encoding,A=vr(r)==="object"&&!Array.isArray(r)?r.value:r,w=i?function(Y){return Y.toString()}:function(Y){return encodeURIComponent(Y)},E=w(t);if(typeof A=="undefined"&&s)return[[E,""]];if(Uc(A)||op(A))return[[E,A]];if(p)return sp(t,A,i,p);if(m){if([vr(m.style),vr(m.explode),vr(m.allowReserved)].some(function(Y){return Y!=="undefined"}))return sp(t,A,i,kc()(m,["style","explode","allowReserved"]));if(m.contentType){if(m.contentType==="application/json"){var M=typeof A=="string"?A:nf()(A);return[[E,w(M)]]}return[[E,w(A.toString())]]}return vr(A)!=="object"?[[E,w(A)]]:Array.isArray(A)&&A.every(function(Y){return vr(Y)!=="object"})?[[E,ir()(A).call(A,w).join(",")]]:[[E,w(nf()(A))]]}return vr(A)!=="object"?[[E,w(A)]]:Array.isArray(A)?a==="multi"?[[E,ir()(A).call(A,w)]]:[[E,ir()(A).call(A,w).join(Vv[a||"csv"])]]:[[E,""]]}function sp(t,r,i,a){var s,p=a.style||"form",m=typeof a.explode=="undefined"?p==="form":a.explode,A=i?!1:a&&a.allowReserved?"unsafe":"reserved",w=function(ne){return hs(ne,{escape:A})},E=i?function(ae){return ae}:function(ae){return hs(ae,{escape:A})};if(vr(r)!=="object")return[[E(t),w(r)]];if(Array.isArray(r))return m?[[E(t),ir()(r).call(r,w)]]:[[E(t),ir()(r).call(r,w).join(jv[p])]];if(p==="deepObject"){var M;return ir()(M=or()(r)).call(M,function(ae){var ne;return[E(Tt()(ne="".concat(t,"[")).call(ne,ae,"]")),w(r[ae])]})}if(m){var Y;return ir()(Y=or()(r)).call(Y,function(ae){return[E(ae),w(r[ae])]})}return[[E(t),ir()(s=or()(r)).call(s,function(ae){var ne;return[Tt()(ne="".concat(E(ae),",")).call(ne,w(r[ae]))]}).join(",")]]}function Wv(t){return Qd()(t).reduce(function(r,i){var a=yi(i,2),s=a[0],p=a[1],m=ga(ap(s,p,!0)),A;try{for(m.s();!(A=m.n()).done;){var w=yi(A.value,2),E=w[0],M=w[1];if(Array.isArray(M)){var Y=ga(M),ae;try{for(Y.s();!(ae=Y.n()).done;){var ne=ae.value;r.append(E,ne)}}catch(ue){Y.e(ue)}finally{Y.f()}}else r.append(E,M)}}catch(ue){m.e(ue)}finally{m.f()}return r},new Ev)}function lp(t){var r=or()(t).reduce(function(i,a){var s=ga(ap(a,t[a])),p;try{for(s.s();!(p=s.n()).done;){var m=yi(p.value,2),A=m[0],w=m[1];i[A]=w}}catch(E){s.e(E)}finally{s.f()}return i},{});return Fc().stringify(r,{encode:!1,indices:!1})||""}function up(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.url,i=r===void 0?"":r,a=t.query,s=t.form,p=function(){for(var Se=arguments.length,me=new Array(Se),Fe=0;Fe<Se;Fe++)me[Fe]=arguments[Fe];var Ke=Ln()(me).call(me,function(Ue){return Ue}).join("&");return Ke?"?".concat(Ke):""};if(s){var m=or()(s).some(function(he){var Se=s[he].value;return Uc(Se)||op(Se)}),A=t.headers["content-type"]||t.headers["Content-Type"];m||/multipart\/form-data/i.test(A)?t.body=Wv(t.form):t.body=lp(s),delete t.form}if(a){var w=i.split("?"),E=yi(w,2),M=E[0],Y=E[1],ae="";if(Y){var ne=Fc().parse(Y),ue=or()(a);ue.forEach(function(he){return delete ne[he]}),ae=Fc().stringify(ne,{encode:!0})}var ge=p(ae,lp(a));t.url=M+ge,delete t.query}return t}function Hv(t,r,i){return i=i||function(a){return a},r=r||function(a){return a},function(a){return typeof a=="string"&&(a={url:a}),Nc.mergeInQueryOrForm(a),a=r(a),i(t(a))}}var zv=o(51942),mi=o.n(zv),Gv=o(93476),ma=o.n(Gv),$v=o(92762),Kv=o.n($v),Yv=o(13311),Jv=o.n(Yv),Xv=o(50308),fp=o.n(Xv);/*!
449
444
  * https://github.com/Starcounter-Jack/JSON-Patch
450
445
  * (c) 2017 Joachim Wester
451
446
  * MIT license
452
- */var Qv=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var p in s)s.hasOwnProperty(p)&&(a[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),Zv=Object.prototype.hasOwnProperty;function lf(t,r){return Zv.call(t,r)}function jc(t){if(Array.isArray(t)){for(var i=new Array(t.length),r=0;r<i.length;r++)i[r]=""+r;return i}if(Object.keys)return Object.keys(t);var i=[];for(var a in t)lf(t,a)&&i.push(a);return i}function Gn(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function Vc(t){for(var r=0,i=t.length,a;r<i;){if(a=t.charCodeAt(r),a>=48&&a<=57){r++;continue}return!1}return!0}function ao(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function cp(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function dp(t,r){var i;for(var a in t)if(lf(t,a)){if(t[a]===r)return ao(a)+"/";if(typeof t[a]=="object"&&(i=dp(t[a],r),i!=""))return ao(a)+"/"+i}return""}function Nm(t,r){if(t===r)return"/";var i=dp(t,r);if(i==="")throw new Error("Object not found in root");return"/"+i}function Wc(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)if(Wc(t[r]))return!0}else if(typeof t=="object"){for(var a=jc(t),s=a.length,r=0;r<s;r++)if(Wc(t[a[r]]))return!0}}return!1}function pp(t,r){var i=[t];for(var a in r){var s=typeof r[a]=="object"?JSON.stringify(r[a],null,2):r[a];typeof s!="undefined"&&i.push(a+": "+s)}return i.join(`
453
- `)}var hp=function(t){Qv(r,t);function r(i,a,s,p,m){var S=this.constructor,w=t.call(this,pp(i,{name:a,index:s,operation:p,tree:m}))||this;return w.name=a,w.index=s,w.operation=p,w.tree=m,Object.setPrototypeOf(w,S.prototype),w.message=pp(i,{name:a,index:s,operation:p,tree:m}),w}return r}(Error),Wr=hp,qv=Gn,hs={add:function(t,r,i){return t[r]=this.value,{newDocument:i}},remove:function(t,r,i){var a=t[r];return delete t[r],{newDocument:i,removed:a}},replace:function(t,r,i){var a=t[r];return t[r]=this.value,{newDocument:i,removed:a}},move:function(t,r,i){var a=wl(i,this.path);a&&(a=Gn(a));var s=xa(i,{op:"remove",path:this.from}).removed;return xa(i,{op:"add",path:this.path,value:s}),{newDocument:i,removed:a}},copy:function(t,r,i){var a=wl(i,this.from);return xa(i,{op:"add",path:this.path,value:Gn(a)}),{newDocument:i}},test:function(t,r,i){return{newDocument:i,test:Sl(t[r],this.value)}},_get:function(t,r,i){return this.value=t[r],{newDocument:i}}},_v={add:function(t,r,i){return Vc(r)?t.splice(r,0,this.value):t[r]=this.value,{newDocument:i,index:r}},remove:function(t,r,i){var a=t.splice(r,1);return{newDocument:i,removed:a[0]}},replace:function(t,r,i){var a=t[r];return t[r]=this.value,{newDocument:i,removed:a}},move:hs.move,copy:hs.copy,test:hs.test,_get:hs._get};function wl(t,r){if(r=="")return t;var i={op:"_get",path:r};return xa(t,i),i.value}function xa(t,r,i,a,s,p){if(i===void 0&&(i=!1),a===void 0&&(a=!0),s===void 0&&(s=!0),p===void 0&&(p=0),i&&(typeof i=="function"?i(r,0,t,r.path):uf(r,0)),r.path===""){var m={newDocument:t};if(r.op==="add")return m.newDocument=r.value,m;if(r.op==="replace")return m.newDocument=r.value,m.removed=t,m;if(r.op==="move"||r.op==="copy")return m.newDocument=wl(t,r.from),r.op==="move"&&(m.removed=t),m;if(r.op==="test"){if(m.test=Sl(t,r.value),m.test===!1)throw new Wr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return m.newDocument=t,m}else{if(r.op==="remove")return m.removed=t,m.newDocument=null,m;if(r.op==="_get")return r.value=t,m;if(i)throw new Wr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",p,r,t);return m}}else{a||(t=Gn(t));var S=r.path||"",w=S.split("/"),E=t,R=1,J=w.length,oe=void 0,re=void 0,le=void 0;for(typeof i=="function"?le=i:le=uf;;){if(re=w[R],s&&re=="__proto__")throw new TypeError("JSON-Patch: modifying `__proto__` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&oe===void 0&&(E[re]===void 0?oe=w.slice(0,R).join("/"):R==J-1&&(oe=r.path),oe!==void 0&&le(r,0,t,oe)),R++,Array.isArray(E)){if(re==="-")re=E.length;else{if(i&&!Vc(re))throw new Wr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",p,r,t);Vc(re)&&(re=~~re)}if(R>=J){if(i&&r.op==="add"&&re>E.length)throw new Wr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",p,r,t);var m=_v[r.op].call(r,E,re,t);if(m.test===!1)throw new Wr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return m}}else if(re&&re.indexOf("~")!=-1&&(re=cp(re)),R>=J){var m=hs[r.op].call(r,E,re,t);if(m.test===!1)throw new Wr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return m}E=E[re]}}}function ba(t,r,i,a,s){if(a===void 0&&(a=!0),s===void 0&&(s=!0),i&&!Array.isArray(r))throw new Wr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");a||(t=Gn(t));for(var p=new Array(r.length),m=0,S=r.length;m<S;m++)p[m]=xa(t,r[m],i,!0,s,m),t=p[m].newDocument;return p.newDocument=t,p}function eg(t,r,i){var a=xa(t,r);if(a.test===!1)throw new Wr("Test operation failed","TEST_OPERATION_FAILED",i,r,t);return a.newDocument}function uf(t,r,i,a){if(typeof t!="object"||t===null||Array.isArray(t))throw new Wr("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,t,i);if(hs[t.op]){if(typeof t.path!="string")throw new Wr("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,t,i);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new Wr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",r,t,i);if((t.op==="move"||t.op==="copy")&&typeof t.from!="string")throw new Wr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",r,t,i);if((t.op==="add"||t.op==="replace"||t.op==="test")&&t.value===void 0)throw new Wr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",r,t,i);if((t.op==="add"||t.op==="replace"||t.op==="test")&&Wc(t.value))throw new Wr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",r,t,i);if(i){if(t.op=="add"){var s=t.path.split("/").length,p=a.split("/").length;if(s!==p+1&&s!==p)throw new Wr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",r,t,i)}else if(t.op==="replace"||t.op==="remove"||t.op==="_get"){if(t.path!==a)throw new Wr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,t,i)}else if(t.op==="move"||t.op==="copy"){var m={op:"_get",path:t.from,value:void 0},S=vp([m],i);if(S&&S.name==="OPERATION_PATH_UNRESOLVABLE")throw new Wr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,t,i)}}}else throw new Wr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,t,i)}function vp(t,r,i){try{if(!Array.isArray(t))throw new Wr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)ba(Gn(r),Gn(t),i||!0);else{i=i||uf;for(var a=0;a<t.length;a++)i(t[a],a,r,void 0)}}catch(s){if(s instanceof Wr)return s;throw s}}function Sl(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){var i=Array.isArray(t),a=Array.isArray(r),s,p,m;if(i&&a){if(p=t.length,p!=r.length)return!1;for(s=p;s--!=0;)if(!Sl(t[s],r[s]))return!1;return!0}if(i!=a)return!1;var S=Object.keys(t);if(p=S.length,p!==Object.keys(r).length)return!1;for(s=p;s--!=0;)if(!r.hasOwnProperty(S[s]))return!1;for(s=p;s--!=0;)if(m=S[s],!Sl(t[m],r[m]))return!1;return!0}return t!==t&&r!==r}/*!
447
+ */var Qv=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var p in s)s.hasOwnProperty(p)&&(a[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),Zv=Object.prototype.hasOwnProperty;function lf(t,r){return Zv.call(t,r)}function jc(t){if(Array.isArray(t)){for(var i=new Array(t.length),r=0;r<i.length;r++)i[r]=""+r;return i}if(Object.keys)return Object.keys(t);var i=[];for(var a in t)lf(t,a)&&i.push(a);return i}function zn(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function Vc(t){for(var r=0,i=t.length,a;r<i;){if(a=t.charCodeAt(r),a>=48&&a<=57){r++;continue}return!1}return!0}function ao(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function cp(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function dp(t,r){var i;for(var a in t)if(lf(t,a)){if(t[a]===r)return ao(a)+"/";if(typeof t[a]=="object"&&(i=dp(t[a],r),i!=""))return ao(a)+"/"+i}return""}function Dm(t,r){if(t===r)return"/";var i=dp(t,r);if(i==="")throw new Error("Object not found in root");return"/"+i}function Wc(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)if(Wc(t[r]))return!0}else if(typeof t=="object"){for(var a=jc(t),s=a.length,r=0;r<s;r++)if(Wc(t[a[r]]))return!0}}return!1}function pp(t,r){var i=[t];for(var a in r){var s=typeof r[a]=="object"?JSON.stringify(r[a],null,2):r[a];typeof s!="undefined"&&i.push(a+": "+s)}return i.join(`
448
+ `)}var hp=function(t){Qv(r,t);function r(i,a,s,p,m){var A=this.constructor,w=t.call(this,pp(i,{name:a,index:s,operation:p,tree:m}))||this;return w.name=a,w.index=s,w.operation=p,w.tree=m,Object.setPrototypeOf(w,A.prototype),w.message=pp(i,{name:a,index:s,operation:p,tree:m}),w}return r}(Error),Wr=hp,_v=zn,vs={add:function(t,r,i){return t[r]=this.value,{newDocument:i}},remove:function(t,r,i){var a=t[r];return delete t[r],{newDocument:i,removed:a}},replace:function(t,r,i){var a=t[r];return t[r]=this.value,{newDocument:i,removed:a}},move:function(t,r,i){var a=Sl(i,this.path);a&&(a=zn(a));var s=xa(i,{op:"remove",path:this.from}).removed;return xa(i,{op:"add",path:this.path,value:s}),{newDocument:i,removed:a}},copy:function(t,r,i){var a=Sl(i,this.from);return xa(i,{op:"add",path:this.path,value:zn(a)}),{newDocument:i}},test:function(t,r,i){return{newDocument:i,test:Al(t[r],this.value)}},_get:function(t,r,i){return this.value=t[r],{newDocument:i}}},qv={add:function(t,r,i){return Vc(r)?t.splice(r,0,this.value):t[r]=this.value,{newDocument:i,index:r}},remove:function(t,r,i){var a=t.splice(r,1);return{newDocument:i,removed:a[0]}},replace:function(t,r,i){var a=t[r];return t[r]=this.value,{newDocument:i,removed:a}},move:vs.move,copy:vs.copy,test:vs.test,_get:vs._get};function Sl(t,r){if(r=="")return t;var i={op:"_get",path:r};return xa(t,i),i.value}function xa(t,r,i,a,s,p){if(i===void 0&&(i=!1),a===void 0&&(a=!0),s===void 0&&(s=!0),p===void 0&&(p=0),i&&(typeof i=="function"?i(r,0,t,r.path):uf(r,0)),r.path===""){var m={newDocument:t};if(r.op==="add")return m.newDocument=r.value,m;if(r.op==="replace")return m.newDocument=r.value,m.removed=t,m;if(r.op==="move"||r.op==="copy")return m.newDocument=Sl(t,r.from),r.op==="move"&&(m.removed=t),m;if(r.op==="test"){if(m.test=Al(t,r.value),m.test===!1)throw new Wr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return m.newDocument=t,m}else{if(r.op==="remove")return m.removed=t,m.newDocument=null,m;if(r.op==="_get")return r.value=t,m;if(i)throw new Wr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",p,r,t);return m}}else{a||(t=zn(t));var A=r.path||"",w=A.split("/"),E=t,M=1,Y=w.length,ae=void 0,ne=void 0,ue=void 0;for(typeof i=="function"?ue=i:ue=uf;;){if(ne=w[M],s&&ne=="__proto__")throw new TypeError("JSON-Patch: modifying `__proto__` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&ae===void 0&&(E[ne]===void 0?ae=w.slice(0,M).join("/"):M==Y-1&&(ae=r.path),ae!==void 0&&ue(r,0,t,ae)),M++,Array.isArray(E)){if(ne==="-")ne=E.length;else{if(i&&!Vc(ne))throw new Wr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",p,r,t);Vc(ne)&&(ne=~~ne)}if(M>=Y){if(i&&r.op==="add"&&ne>E.length)throw new Wr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",p,r,t);var m=qv[r.op].call(r,E,ne,t);if(m.test===!1)throw new Wr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return m}}else if(ne&&ne.indexOf("~")!=-1&&(ne=cp(ne)),M>=Y){var m=vs[r.op].call(r,E,ne,t);if(m.test===!1)throw new Wr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return m}E=E[ne]}}}function ba(t,r,i,a,s){if(a===void 0&&(a=!0),s===void 0&&(s=!0),i&&!Array.isArray(r))throw new Wr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");a||(t=zn(t));for(var p=new Array(r.length),m=0,A=r.length;m<A;m++)p[m]=xa(t,r[m],i,!0,s,m),t=p[m].newDocument;return p.newDocument=t,p}function eg(t,r,i){var a=xa(t,r);if(a.test===!1)throw new Wr("Test operation failed","TEST_OPERATION_FAILED",i,r,t);return a.newDocument}function uf(t,r,i,a){if(typeof t!="object"||t===null||Array.isArray(t))throw new Wr("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,t,i);if(vs[t.op]){if(typeof t.path!="string")throw new Wr("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,t,i);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new Wr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",r,t,i);if((t.op==="move"||t.op==="copy")&&typeof t.from!="string")throw new Wr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",r,t,i);if((t.op==="add"||t.op==="replace"||t.op==="test")&&t.value===void 0)throw new Wr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",r,t,i);if((t.op==="add"||t.op==="replace"||t.op==="test")&&Wc(t.value))throw new Wr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",r,t,i);if(i){if(t.op=="add"){var s=t.path.split("/").length,p=a.split("/").length;if(s!==p+1&&s!==p)throw new Wr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",r,t,i)}else if(t.op==="replace"||t.op==="remove"||t.op==="_get"){if(t.path!==a)throw new Wr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,t,i)}else if(t.op==="move"||t.op==="copy"){var m={op:"_get",path:t.from,value:void 0},A=vp([m],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new Wr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,t,i)}}}else throw new Wr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,t,i)}function vp(t,r,i){try{if(!Array.isArray(t))throw new Wr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)ba(zn(r),zn(t),i||!0);else{i=i||uf;for(var a=0;a<t.length;a++)i(t[a],a,r,void 0)}}catch(s){if(s instanceof Wr)return s;throw s}}function Al(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){var i=Array.isArray(t),a=Array.isArray(r),s,p,m;if(i&&a){if(p=t.length,p!=r.length)return!1;for(s=p;s--!=0;)if(!Al(t[s],r[s]))return!1;return!0}if(i!=a)return!1;var A=Object.keys(t);if(p=A.length,p!==Object.keys(r).length)return!1;for(s=p;s--!=0;)if(!r.hasOwnProperty(A[s]))return!1;for(s=p;s--!=0;)if(m=A[s],!Al(t[m],r[m]))return!1;return!0}return t!==t&&r!==r}/*!
454
449
  * https://github.com/Starcounter-Jack/JSON-Patch
455
450
  * (c) 2017 Joachim Wester
456
451
  * MIT license
457
- */var Hc=new WeakMap,tg=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),rg=function(){function t(r,i){this.callback=r,this.observer=i}return t}();function ng(t){return Hc.get(t)}function ig(t,r){return t.observers.get(r)}function og(t,r){t.observers.delete(r.callback)}function ag(t,r){r.unobserve()}function sg(t,r){var i=[],a,s=ng(t);if(!s)s=new tg(t),Hc.set(t,s);else{var p=ig(s,r);a=p&&p.observer}if(a)return a;if(a={},s.value=Gn(t),r){a.callback=r,a.next=null;var m=function(){zc(a)},S=function(){clearTimeout(a.next),a.next=setTimeout(m)};typeof window!="undefined"&&(window.addEventListener("mouseup",S),window.addEventListener("keyup",S),window.addEventListener("mousedown",S),window.addEventListener("keydown",S),window.addEventListener("change",S))}return a.patches=i,a.object=t,a.unobserve=function(){zc(a),clearTimeout(a.next),og(s,a),typeof window!="undefined"&&(window.removeEventListener("mouseup",S),window.removeEventListener("keyup",S),window.removeEventListener("mousedown",S),window.removeEventListener("keydown",S),window.removeEventListener("change",S))},s.observers.set(r,new rg(r,a)),a}function zc(t,r){r===void 0&&(r=!1);var i=Hc.get(t.object);Gc(i.value,t.object,t.patches,"",r),t.patches.length&&ba(i.value,t.patches);var a=t.patches;return a.length>0&&(t.patches=[],t.callback&&t.callback(a)),a}function Gc(t,r,i,a,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var p=jc(r),m=jc(t),S=!1,w=!1,E=m.length-1;E>=0;E--){var R=m[E],J=t[R];if(lf(r,R)&&!(r[R]===void 0&&J!==void 0&&Array.isArray(r)===!1)){var oe=r[R];typeof J=="object"&&J!=null&&typeof oe=="object"&&oe!=null?Gc(J,oe,i,a+"/"+ao(R),s):J!==oe&&(S=!0,s&&i.push({op:"test",path:a+"/"+ao(R),value:Gn(J)}),i.push({op:"replace",path:a+"/"+ao(R),value:Gn(oe)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:a+"/"+ao(R),value:Gn(J)}),i.push({op:"remove",path:a+"/"+ao(R)}),w=!0):(s&&i.push({op:"test",path:a,value:t}),i.push({op:"replace",path:a,value:r}),S=!0)}if(!(!w&&p.length==m.length))for(var E=0;E<p.length;E++){var R=p[E];!lf(t,R)&&r[R]!==void 0&&i.push({op:"add",path:a+"/"+ao(R),value:Gn(r[R])})}}}function lg(t,r,i){i===void 0&&(i=!1);var a=[];return Gc(t,r,a,"",i),a}const Dm=Object.assign({},c,v,{JsonPatchError:hp,deepClone:Gn,escapePathComponent:ao,unescapePathComponent:cp});var ug=o(31312),fg=o.n(ug),cg=o(50361),dg=o.n(cg);const sr={add:hg,replace:$c,remove:vg,merge:gg,mergeDeep:yg,context:mg,getIn:Sg,applyPatch:pg,parentPathMatch:wg,flatten:Al,fullyNormalizeArray:Ag,normalizeArray:mp,isPromise:Eg,forEachNew:xg,forEachNewPrimitive:bg,isJsonPatch:wp,isContextPatch:Tg,isPatch:cf,isMutation:Sp,isAdditiveMutation:ff,isGenerator:Og,isFunction:bp,isObject:jo,isError:Cg};function pg(t,r,i){if(i=i||{},r=Cr(Cr({},r),{},{path:r.path&&gp(r.path)}),r.op==="merge"){var a=Jc(t,r.path);mi()(a,r.value),ba(t,[$c(r.path,a)])}else if(r.op==="mergeDeep"){var s=Jc(t,r.path);for(var p in r.value){var m=r.value[p],S=Array.isArray(m);if(S){var w=s[p]||[];s[p]=Tt()(w).call(w,m)}else if(jo(m)&&!S){var E=Cr({},s[p]);for(var R in m)if(Object.prototype.hasOwnProperty.call(E,R)){E=fg()(dg()(E),m);break}else mi()(E,zd({},R,m[R]));s[p]=E}else s[p]=m}}else if(r.op==="add"&&r.path===""&&jo(r.value)){var J=or()(r.value).reduce(function(pe,Se){return pe.push({op:"add",path:"/".concat(gp(Se)),value:r.value[Se]}),pe},[]);ba(t,J)}else if(r.op==="replace"&&r.path===""){var oe=r,re=oe.value;i.allowMetaPatches&&r.meta&&ff(r)&&(Array.isArray(r.value)||jo(r.value))&&(re=Cr(Cr({},re),r.meta)),t=re}else if(ba(t,[r]),i.allowMetaPatches&&r.meta&&ff(r)&&(Array.isArray(r.value)||jo(r.value))){var le=Jc(t,r.path),ve=Cr(Cr({},le),r.meta);ba(t,[$c(r.path,ve)])}return t}function gp(t){return Array.isArray(t)?t.length<1?"":"/".concat(ir()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function hg(t,r){return{op:"add",path:t,value:r}}function $c(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function vg(t){return{op:"remove",path:t}}function gg(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function yg(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function mg(t,r){return{type:"context",path:t,value:r}}function xg(t,r){try{return yp(t,Yc,r)}catch(i){return i}}function bg(t,r){try{return yp(t,Kc,r)}catch(i){return i}}function yp(t,r,i){var a,s=ir()(a=Nn()(t).call(t,ff)).call(a,function(S){return r(S.value,i,S.path)})||[],p=Al(s),m=xp(p);return m}function Kc(t,r,i){if(i=i||[],Array.isArray(t))return ir()(t).call(t,function(s,p){return Kc(s,r,Tt()(i).call(i,p))});if(jo(t)){var a;return ir()(a=or()(t)).call(a,function(s){return Kc(t[s],r,Tt()(i).call(i,s))})}return r(t,i[i.length-1],i)}function Yc(t,r,i){i=i||[];var a=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(a=Tt()(a).call(a,s))}if(Array.isArray(t)){var p=ir()(t).call(t,function(w,E){return Yc(w,r,Tt()(i).call(i,E))});p&&(a=Tt()(a).call(a,p))}else if(jo(t)){var m,S=ir()(m=or()(t)).call(m,function(w){return Yc(t[w],r,Tt()(i).call(i,w))});S&&(a=Tt()(a).call(a,S))}return a=Al(a),a}function wg(t,r){if(!Array.isArray(r))return!1;for(var i=0,a=r.length;i<a;i+=1)if(r[i]!==t[i])return!1;return!0}function Sg(t,r){return r.reduce(function(i,a){return typeof a!="undefined"&&i?i[a]:i},t)}function Ag(t){return xp(Al(mp(t)))}function mp(t){return Array.isArray(t)?t:[t]}function Al(t){var r;return Tt()(r=[]).apply(r,ya(ir()(t).call(t,function(i){return Array.isArray(i)?Al(i):i})))}function xp(t){return Nn()(t).call(t,function(r){return typeof r!="undefined"})}function jo(t){return t&&vr(t)==="object"}function Eg(t){return jo(t)&&bp(t.then)}function bp(t){return t&&typeof t=="function"}function Cg(t){return t instanceof Error}function wp(t){if(cf(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function Og(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function Sp(t){return wp(t)||cf(t)&&t.type==="mutation"}function ff(t){return Sp(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function Tg(t){return cf(t)&&t.type==="context"}function cf(t){return t&&vr(t)==="object"}function Jc(t,r){try{return wl(t,r)}catch(i){return console.error(i),{}}}var Pg=o(52424),Ig=o.n(Pg),Fg=o(54098),kg=o(9779),Ap=o.n(kg);function Ep(t,r){function i(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,s=new Array(a),p=0;p<a;p++)s[p]=arguments[p];this.message=s[0],r&&r.apply(this,s)}return i.prototype=new Error,i.prototype.name=t,i.prototype.constructor=i,i}var Rg=o(13692),Mg=o.n(Rg),Lg=o(47037),Ng=o.n(Lg),Dg=["properties"],Bg=["properties"],Ug=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],jg=["schema/example","items/example"];function Cp(t){var r=t[t.length-1],i=t[t.length-2],a=t.join("/");return Dg.indexOf(r)>-1&&Bg.indexOf(i)===-1||Ug.indexOf(a)>-1||jg.some(function(s){return a.indexOf(s)>-1})}function Vg(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.specmap,s=i.getBaseUrlForNodePath,p=s===void 0?function(E){var R;return a.getContext(Tt()(R=[]).call(R,ya(r),ya(E))).baseDoc}:s,m=i.targetKeys,S=m===void 0?["$ref","$$ref"]:m,w=[];return Mg()(t).forEach(function(){if(Ic()(S).call(S,this.key)&&Ng()(this.node)){var R=this.path,J=Tt()(r).call(r,this.path),oe=Xc(this.node,p(R));w.push(a.replace(J,oe))}}),w}function Xc(t,r){var i,a=t.split("#"),s=yi(a,2),p=s[0],m=s[1],S=Uo.resolve(p||"",r||"");return m?Tt()(i="".concat(S,"#")).call(i,m):S}var Op="application/json, application/yaml",Wg=new RegExp("^([a-z]+://|//)","i"),vs=Ep("JSONRefError",function(r,i,a){this.originalError=a,mi()(this,i||{})}),so={},Tp=new(Ig()),Hg=[function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"}],zg=function(r){return Hg.some(function(i){return i(r)})},Gg={key:"$ref",plugin:function(r,i,a,s){var p=s.getInstance(),m=Ni()(a).call(a,0,-1);if(!(Cp(m)||zg(m))){var S=s.getContext(a),w=S.baseDoc;if(typeof r!="string")return new vs("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:a});var E=Fp(r),R=E[0],J=E[1]||"",oe;try{oe=w||R?Ip(R,w):null}catch(ye){return Qc(ye,{pointer:J,$ref:r,basePath:oe,fullPath:a})}var re,le;if(Qg(J,oe,m,s)&&!p.useCircularStructures){var ve=Xc(r,oe);return r===ve?null:sr.replace(a,ve)}if(oe==null?(le=qc(J),re=s.get(le),typeof re=="undefined"&&(re=new vs("Could not resolve reference: ".concat(r),{pointer:J,$ref:r,baseDoc:w,fullPath:a}))):(re=kp(oe,J),re.__value!=null?re=re.__value:re=re.catch(function(ye){throw Qc(ye,{pointer:J,$ref:r,baseDoc:w,fullPath:a})})),re instanceof Error)return[sr.remove(a),re];var pe=Xc(r,oe),Se=sr.replace(m,re,{$$ref:pe});if(oe&&oe!==w)return[Se,sr.context(m,{baseDoc:oe})];try{if(!Zg(s.state,Se)||p.useCircularStructures)return Se}catch(ye){return null}}}},Pp=mi()(Gg,{docCache:so,absoluteify:Ip,clearCache:Kg,JSONRefError:vs,wrapError:Qc,getDoc:Rp,split:Fp,extractFromDoc:kp,fetchJSON:Yg,extract:Zc,jsonPointerToArray:qc,unescapeJsonPointerToken:Mp});const $g=Pp;function Ip(t,r){if(!Wg.test(t)){if(!r){var i;throw new vs(Tt()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return Uo.resolve(r,t)}return t}function Qc(t,r){var i;if(t&&t.response&&t.response.body){var a;i=Tt()(a="".concat(t.response.body.code," ")).call(a,t.response.body.message)}else i=t.message;return new vs("Could not resolve reference: ".concat(i),r,t)}function Fp(t){return(t+"").split("#")}function kp(t,r){var i=so[t];if(i&&!sr.isPromise(i))try{var a=Zc(r,i);return mi()(ma().resolve(a),{__value:a})}catch(s){return ma().reject(s)}return Rp(t).then(function(s){return Zc(r,s)})}function Kg(t){typeof t!="undefined"?delete so[t]:or()(so).forEach(function(r){delete so[r]})}function Rp(t){var r=so[t];return r?sr.isPromise(r)?r:ma().resolve(r):(so[t]=Pp.fetchJSON(t).then(function(i){return so[t]=i,i}),so[t])}function Yg(t){return(0,Fg.fetch)(t,{headers:{Accept:Op},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Zd().safeLoad(r)})}function Zc(t,r){var i=qc(t);if(i.length<1)return r;var a=sr.getIn(r,i);if(typeof a=="undefined")throw new vs("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return a}function qc(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(vr(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:ir()(r=t.split("/")).call(r,Mp)}function Mp(t){return typeof t!="string"?t:Ap().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function Lp(t){return Ap().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function Jg(t){return t.length===0?"":"/".concat(ir()(t).call(t,Lp).join("/"))}var Xg=function(r){return!r||r==="/"||r==="#"};function _c(t,r){if(Xg(r))return!0;var i=t.charAt(r.length),a=Ni()(r).call(r,-1);return t.indexOf(r)===0&&(!i||i==="/"||i==="#")&&a!=="#"}function Qg(t,r,i,a){var s,p,m=Tp.get(a);m||(m={},Tp.set(a,m));var S=Jg(i),w=Tt()(s="".concat(r||"<specmap-base>","#")).call(s,t),E=S.replace(/allOf\/\d+\/?/g,""),R=a.contextTree.get([]).baseDoc;if(r==R&&_c(E,t))return!0;var J="",oe=i.some(function(re){var le;return J=Tt()(le="".concat(J,"/")).call(le,Lp(re)),m[J]&&m[J].some(function(ve){return _c(ve,w)||_c(w,ve)})});if(oe)return!0;m[E]=Tt()(p=m[E]||[]).call(p,w)}function Zg(t,r){var i=[t];return r.path.reduce(function(s,p){return i.push(s[p]),s[p]},t),a(r.value);function a(s){return sr.isObject(s)&&(i.indexOf(s)>=0||or()(s).some(function(p){return a(s[p])}))}}var qg=o(41609),_g=o.n(qg);const ey={key:"allOf",plugin:function(r,i,a,s,p){if(!(p.meta&&p.meta.$$ref)){var m=Ni()(a).call(a,0,-1);if(!Cp(m)){if(!Array.isArray(r)){var S=new TypeError("allOf must be an array");return S.fullPath=a,S}var w=!1,E=p.value;if(m.forEach(function(oe){!E||(E=E[oe])}),E=Cr({},E),!_g()(E)){delete E.allOf;var R=[];if(R.push(s.replace(m,{})),r.forEach(function(oe,re){if(!s.isObject(oe)){if(w)return null;w=!0;var le=new TypeError("Elements in allOf must be objects");return le.fullPath=a,R.push(le)}R.push(s.mergeDeep(m,oe));var ve=Ni()(a).call(a,0,-1),pe=Vg(oe,ve,{getBaseUrlForNodePath:function(ye){var Fe;return s.getContext(Tt()(Fe=[]).call(Fe,ya(a),[re],ya(ye))).baseDoc},specmap:s});R.push.apply(R,ya(pe))}),R.push(s.mergeDeep(m,E)),!E.$$ref){var J;R.push(s.remove(Tt()(J=[]).call(J,m,"$$ref")))}return R}}}}},ty={key:"parameters",plugin:function(r,i,a,s){if(Array.isArray(r)&&r.length){var p=mi()([],r),m=Ni()(a).call(a,0,-1),S=Cr({},sr.getIn(s.spec,m));return r.forEach(function(w,E){try{p[E].default=s.parameterMacro(S,w)}catch(J){var R=new Error(J);return R.fullPath=a,R}}),sr.replace(a,p)}return sr.replace(a,r)}},ry={key:"properties",plugin:function(r,i,a,s){var p=Cr({},r);for(var m in r)try{p[m].default=s.modelPropertyMacro(p[m])}catch(E){var S=new Error(E);return S.fullPath=a,S}var w=sr.replace(a,p);return w}};var ny=function(){function t(r){Rc(this,t),this.root=ed(r||{})}return Mc(t,[{key:"set",value:function(i,a){var s=this.getParent(i,!0);if(!s){df(this.root,a,null);return}var p=i[i.length-1],m=s.children;if(m[p]){df(m[p],a,s);return}m[p]=ed(a,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var a=this.root,s,p,m=0;m<i.length&&(p=i[m],s=a.children,!!s[p]);m+=1)a=s[p];return a&&a.protoValue}},{key:"getParent",value:function(i,a){return!i||i.length<1?null:i.length<2?this.root:Ni()(i).call(i,0,-1).reduce(function(s,p){if(!s)return s;var m=s.children;return!m[p]&&a&&(m[p]=ed(null,s)),m[p]},this.root)}}]),t}();function ed(t,r){return df({children:{}},t,r)}function df(t,r,i){return t.value=r||{},t.protoValue=i?Cr(Cr({},i.protoValue),t.value):t.value,or()(t.children).forEach(function(a){var s=t.children[a];t.children[a]=df(s,s.value,t)}),t}var Np=100,iy=function(){function t(r){var i=this,a,s;Rc(this,t),mi()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new ny,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:mi()(Object.create(this),sr,{getInstance:function(){return i}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=Nn()(a=ir()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(a,sr.isFunction),this.patches.push(sr.add([],this.spec)),this.patches.push(sr.context([],this.context)),this.updatePatches(this.patches)}return Mc(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var a,s=arguments.length,p=new Array(s>1?s-1:0),m=1;m<s;m++)p[m-1]=arguments[m];(a=console).log.apply(a,p)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var a,s,p=arguments.length,m=new Array(p>1?p-1:0),S=1;S<p;S++)m[S-1]=arguments[S];(a=console).log.apply(a,Tt()(s=["[".concat(i,"] ")]).call(s,m))}}},{key:"wrapPlugin",value:function(i,a){var s=this.pathDiscriminator,p=null,m;return i[this.pluginProp]?(p=i,m=i[this.pluginProp]):sr.isFunction(i)?m=i:sr.isObject(i)&&(m=S(i)),mi()(m.bind(p),{pluginName:i.name||a,isGenerator:sr.isGenerator(m)});function S(w){var E=function(J,oe){return Array.isArray(J)?J.every(function(re,le){return re===oe[le]}):!0};return Li().mark(function R(J,oe){var re,le,ve,pe,Se,ye;return Li().wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:ye=function($e,Be,Ve){var We,Ye,Ge,et,bt,Nt,Ht,lr,Rr,Or,Gr,wr,Ur;return Li().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(sr.isObject($e)){Xt.next=6;break}if(w.key!==Be[Be.length-1]){Xt.next=4;break}return Xt.next=4,w.plugin($e,w.key,Be,oe);case 4:Xt.next=30;break;case 6:We=Be.length-1,Ye=Be[We],Ge=Be.indexOf("properties"),et=Ye==="properties"&&We===Ge,bt=oe.allowMetaPatches&&le[$e.$$ref],Nt=0,Ht=or()($e);case 12:if(!(Nt<Ht.length)){Xt.next=30;break}if(lr=Ht[Nt],Rr=$e[lr],Or=Tt()(Be).call(Be,lr),Gr=sr.isObject(Rr),wr=$e.$$ref,bt){Xt.next=22;break}if(!Gr){Xt.next=22;break}return oe.allowMetaPatches&&wr&&(le[wr]=!0),Xt.delegateYield(ye(Rr,Or,Ve),"t0",22);case 22:if(!(!et&&lr===w.key)){Xt.next=27;break}if(Ur=E(s,Be),!(!s||Ur)){Xt.next=27;break}return Xt.next=27,w.plugin(Rr,lr,Or,oe,Ve);case 27:Nt++,Xt.next=12;break;case 30:case"end":return Xt.stop()}},re)},re=Li().mark(ye),le={},ve=ga(Nn()(J).call(J,sr.isAdditiveMutation)),Ke.prev=4,ve.s();case 6:if((pe=ve.n()).done){Ke.next=11;break}return Se=pe.value,Ke.delegateYield(ye(Se.value,Se.path,Se),"t0",9);case 9:Ke.next=6;break;case 11:Ke.next=16;break;case 13:Ke.prev=13,Ke.t1=Ke.catch(4),ve.e(Ke.t1);case 16:return Ke.prev=16,ve.f(),Ke.finish(16);case 19:case"end":return Ke.stop()}},R,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var i=this;return Jv()(this.wrappedPlugins,function(a){var s=i.getMutationsForPlugin(a);return s.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var i;return ma().race(ir()(i=this.promisedPatches).call(i,function(a){return a.value}))}}},{key:"getPluginHistory",value:function(i){var a=this.constructor.getPluginName(i);return this.pluginHistory[a]||[]}},{key:"getPluginRunCount",value:function(i){return this.getPluginHistory(i).length}},{key:"getPluginHistoryTip",value:function(i){var a=this.getPluginHistory(i),s=a&&a[a.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(i){var a=this.getPluginHistoryTip(i).mutationIndex;return typeof a!="number"?-1:a}},{key:"updatePluginHistory",value:function(i,a){var s=this.constructor.getPluginName(i);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(a)}},{key:"updatePatches",value:function(i){var a=this;sr.normalizeArray(i).forEach(function(s){if(s instanceof Error){a.errors.push(s);return}try{if(!sr.isObject(s)){a.debug("updatePatches","Got a non-object patch",s);return}if(a.showDebug&&a.allPatches.push(s),sr.isPromise(s.value)){a.promisedPatches.push(s),a.promisedPatchThen(s);return}if(sr.isContextPatch(s)){a.setContext(s.path,s.value);return}if(sr.isMutation(s)){a.updateMutations(s);return}}catch(p){console.error(p),a.errors.push(p)}})}},{key:"updateMutations",value:function(i){vr(i.value)==="object"&&!Array.isArray(i.value)&&this.allowMetaPatches&&(i.value=Cr({},i.value));var a=sr.applyPatch(this.state,i,{allowMetaPatches:this.allowMetaPatches});a&&(this.mutations.push(i),this.state=a)}},{key:"removePromisedPatch",value:function(i){var a,s=this.promisedPatches.indexOf(i);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}Kv()(a=this.promisedPatches).call(a,s,1)}},{key:"promisedPatchThen",value:function(i){var a=this;return i.value=i.value.then(function(s){var p=Cr(Cr({},i),{},{value:s});a.removePromisedPatch(i),a.updatePatches(p)}).catch(function(s){a.removePromisedPatch(i),a.updatePatches(s)}),i.value}},{key:"getMutations",value:function(i,a){var s;return i=i||0,typeof a!="number"&&(a=this.mutations.length),Ni()(s=this.mutations).call(s,i,a)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(i){var a=this.getPluginMutationIndex(i);return this.getMutations(a+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(i){return sr.getIn(this.state,i)}},{key:"_getContext",value:function(i){return this.contextTree.get(i)}},{key:"setContext",value:function(i,a){return this.contextTree.set(i,a)}},{key:"_hasRun",value:function(i){var a=this.getPluginRunCount(this.getCurrentPlugin());return a>(i||0)}},{key:"dispatch",value:function(){var i=this,a=this,s=this.nextPlugin();if(!s){var p=this.nextPromisedPatch();if(p)return p.then(function(){return i.dispatch()}).catch(function(){return i.dispatch()});var m={spec:this.state,errors:this.errors};return this.showDebug&&(m.patches=this.allPatches),ma().resolve(m)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[s]=(a.pluginCount[s]||0)+1,a.pluginCount[s]>Np){var S;return ma().resolve({spec:a.state,errors:Tt()(S=a.errors).call(S,new Error("We've reached a hard limit of ".concat(Np," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var w,E=ir()(w=this.promisedPatches).call(w,function(oe){return oe.value});return ma().all(ir()(E).call(E,function(oe){return oe.then(fp(),fp())})).then(function(){return i.dispatch()})}return R();function R(){a.currentPlugin=s;var oe=a.getCurrentMutations(),re=a.mutations.length-1;try{if(s.isGenerator){var le=ga(s(oe,a.getLib())),ve;try{for(le.s();!(ve=le.n()).done;){var pe=ve.value;J(pe)}}catch(ye){le.e(ye)}finally{le.f()}}else{var Se=s(oe,a.getLib());J(Se)}}catch(ye){console.error(ye),J([mi()(Object.create(ye),{plugin:s})])}finally{a.updatePluginHistory(s,{mutationIndex:re})}return a.dispatch()}function J(oe){oe&&(oe=sr.fullyNormalizeArray(oe),a.updatePatches(oe,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,a){return Nn()(i).call(i,a)}}]),t}();function oy(t){return new iy(t).dispatch()}var wa={refs:$g,allOf:ey,parameters:ty,properties:ry},ay=o(13218),Dp=o.n(ay),Bp=function(r){return String.prototype.toLowerCase.call(r)},Up=function(r){return r.replace(/[^\w]/gi,"_")};function jp(t){var r=t.openapi;return r?$d()(r,"3"):!1}function Bm(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function pf(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=a.v2OperationIdCompatibilityMode;if(!t||vr(t)!=="object")return null;var p=(t.operationId||"").replace(/\s/g,"");return p.length?Up(t.operationId):sy(r,i,{v2OperationIdCompatibilityMode:s})}function sy(t,r){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.v2OperationIdCompatibilityMode;if(s){var p,m,S=Tt()(p="".concat(r.toLowerCase(),"_")).call(p,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return S=S||Tt()(m="".concat(t.substring(1),"_")).call(m,r),S.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Tt()(i="".concat(Bp(r))).call(i,Up(t))}function Vp(t,r){var i;return Tt()(i="".concat(Bp(r),"-")).call(i,t)}function ly(t,r){return!t||!t.paths?null:uy(t,function(i){var a=i.pathName,s=i.method,p=i.operation;if(!p||vr(p)!=="object")return!1;var m=p.operationId,S=pf(p,a,s),w=Vp(a,s);return[S,w,m].some(function(E){return E&&E===r})})}function uy(t,r){return Wp(t,r,!0)||null}function Wp(t,r,i){if(!t||vr(t)!=="object"||!t.paths||vr(t.paths)!=="object")return null;var a=t.paths;for(var s in a)for(var p in a[s])if(p.toUpperCase()!=="PARAMETERS"){var m=a[s][p];if(!(!m||vr(m)!=="object")){var S={spec:t,pathName:s,method:p.toUpperCase(),operation:m},w=r(S);if(i&&w)return S}}}function Hp(t){var r=t.spec,i=r.paths,a={};if(!i||r.$$normalized)return t;for(var s in i){var p=i[s];if(!!Dp()(p)){var m=p.parameters,S=function(J){var oe=p[J];if(!Dp()(oe))return"continue";var re=pf(oe,s,J);if(re){a[re]?a[re].push(oe):a[re]=[oe];var le=a[re];if(le.length>1)le.forEach(function(Ye,Ge){var et;Ye.__originalOperationId=Ye.__originalOperationId||Ye.operationId,Ye.operationId=Tt()(et="".concat(re)).call(et,Ge+1)});else if(typeof oe.operationId!="undefined"){var ve=le[0];ve.__originalOperationId=ve.__originalOperationId||oe.operationId,ve.operationId=re}}if(J!=="parameters"){var pe=[],Se={};for(var ye in r)(ye==="produces"||ye==="consumes"||ye==="security")&&(Se[ye]=r[ye],pe.push(Se));if(m&&(Se.parameters=m,pe.push(Se)),pe.length){var Fe=ga(pe),Ke;try{for(Fe.s();!(Ke=Fe.n()).done;){var Ue=Ke.value;for(var $e in Ue)if(!oe[$e])oe[$e]=Ue[$e];else if($e==="parameters"){var Be=ga(Ue[$e]),Ve;try{var We=function(){var Ge=Ve.value,et=oe[$e].some(function(bt){return bt.name&&bt.name===Ge.name||bt.$ref&&bt.$ref===Ge.$ref||bt.$$ref&&bt.$$ref===Ge.$$ref||bt===Ge});et||oe[$e].push(Ge)};for(Be.s();!(Ve=Be.n()).done;)We()}catch(Ye){Be.e(Ye)}finally{Be.f()}}}}catch(Ye){Fe.e(Ye)}finally{Fe.f()}}}};for(var w in p)var E=S(w)}}return r.$$normalized=!0,t}function zp(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.requestInterceptor,a=r.responseInterceptor,s=t.withCredentials?"include":"same-origin";return function(p){return t({url:p,loadSpec:!0,requestInterceptor:i,responseInterceptor:a,headers:{Accept:Op},credentials:s}).then(function(m){return m.body})}}function fy(){wa.refs.clearCache()}function Gp(t){var r=t.fetch,i=t.spec,a=t.url,s=t.mode,p=t.allowMetaPatches,m=p===void 0?!0:p,S=t.pathDiscriminator,w=t.modelPropertyMacro,E=t.parameterMacro,R=t.requestInterceptor,J=t.responseInterceptor,oe=t.skipNormalization,re=t.useCircularStructures,le=t.http,ve=t.baseDoc;if(ve=ve||a,le=r||le||sf,!i)return zp(le,{requestInterceptor:R,responseInterceptor:J})(ve).then(pe);return pe(i);function pe(Se){ve&&(wa.refs.docCache[ve]=Se),wa.refs.fetchJSON=zp(le,{requestInterceptor:R,responseInterceptor:J});var ye=[wa.refs];return typeof E=="function"&&ye.push(wa.parameters),typeof w=="function"&&ye.push(wa.properties),s!=="strict"&&ye.push(wa.allOf),oy({spec:Se,context:{baseDoc:ve},plugins:ye,allowMetaPatches:m,pathDiscriminator:S,parameterMacro:E,modelPropertyMacro:w,useCircularStructures:re}).then(oe?function(){var Fe=Pc(Li().mark(function Ke(Ue){return Li().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Be.abrupt("return",Ue);case 1:case"end":return Be.stop()}},Ke)}));return function(Ke){return Fe.apply(this,arguments)}}():Hp)}}var cy=o(27361),El=o.n(cy);function dy(t,r){return td.apply(this,arguments)}function td(){return td=Pc(Li().mark(function t(r,i){var a,s,p,m,S,w,E,R,J,oe,re,le,ve=arguments;return Li().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return a=ve.length>2&&ve[2]!==void 0?ve[2]:{},s=a.returnEntireTree,p=a.baseDoc,m=a.requestInterceptor,S=a.responseInterceptor,w=a.parameterMacro,E=a.modelPropertyMacro,R=a.useCircularStructures,J={pathDiscriminator:i,baseDoc:p,requestInterceptor:m,responseInterceptor:S,parameterMacro:w,modelPropertyMacro:E,useCircularStructures:R},oe=Hp({spec:r}),re=oe.spec,Se.next=6,Gp(Cr(Cr({},J),{},{spec:re,allowMetaPatches:!0,skipNormalization:!0}));case 6:return le=Se.sent,!s&&Array.isArray(i)&&i.length&&(le.spec=El()(le.spec,i)||null),Se.abrupt("return",le);case 9:case"end":return Se.stop()}},t)})),td.apply(this,arguments)}var py=function(){return null},hy=function(r){return Array.isArray(r)?r:[r]},hf={mapTagOperations:yy,makeExecute:vy};function vy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var i=r.pathName,a=r.method,s=r.operationId;return function(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(Cr(Cr({spec:t.spec},kc()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:a,parameters:p,operationId:s},m))}}}function Um(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=hf.makeExecute(t),i=hf.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),a={};for(var s in i){a[s]={operations:{}};for(var p in i[s])a[s].operations[p]={execute:i[s][p]}}return{apis:a}}function gy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=hf.makeExecute(t);return{apis:hf.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function yy(t){var r=t.spec,i=t.cb,a=i===void 0?py:i,s=t.defaultTag,p=s===void 0?"default":s,m=t.v2OperationIdCompatibilityMode,S={},w={};return Wp(r,function(E){var R=E.pathName,J=E.method,oe=E.operation,re=oe.tags?hy(oe.tags):[p];re.forEach(function(le){if(typeof le=="string"){w[le]=w[le]||{};var ve=w[le],pe=pf(oe,R,J,{v2OperationIdCompatibilityMode:m}),Se=a({spec:r,pathName:R,method:J,operation:oe,operationId:pe});if(S[pe]){var ye;S[pe]+=1,ve[Tt()(ye="".concat(pe)).call(ye,S[pe])]=Se}else if(typeof ve[pe]!="undefined"){var Fe,Ke,Ue=S[pe]||1;S[pe]=Ue+1,ve[Tt()(Fe="".concat(pe)).call(Fe,S[pe])]=Se;var $e=ve[pe];delete ve[pe],ve[Tt()(Ke="".concat(pe)).call(Ke,Ue)]=$e}else ve[pe]=Se}})}),w}var $p=o(95683);function my(t,r){if(t==null)return{};var i={},a=Vd(t),s,p;for(p=0;p<a.length;p++)s=a[p],!($p(r).call(r,s)>=0)&&(i[s]=t[s]);return i}function xy(t,r){if(t==null)return{};var i=my(t,r),a,s;if(tf){var p=tf(t);for(s=0;s<p.length;s++)a=p[s],!($p(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,a)||(i[a]=t[a]))}return i}var by=o(68630),Kp=o.n(by),wy=o(1469),Sy=o.n(wy),Ay=o(76489);const Ey={body:Cy,header:Ty,query:Iy,path:Py,formData:Oy};function Cy(t){var r=t.req,i=t.value;r.body=i}function Oy(t){var r=t.req,i=t.value,a=t.parameter;(i||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:i,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Ty(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[i.name]=a)}function Py(t){var r=t.req,i=t.value,a=t.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(i))}function Iy(t){var r=t.req,i=t.value,a=t.parameter;if(r.query=r.query||{},i===!1&&a.type==="boolean"&&(i="false"),i===0&&["number","integer"].indexOf(a.type)>-1&&(i="0"),i)r.query[a.name]={collectionFormat:a.collectionFormat,value:i};else if(a.allowEmptyValue&&i!==void 0){var s=a.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function vf(t,r){return Ic()(r).call(r,"application/json")?typeof t=="string"?t:nf()(t):t.toString()}function Fy(t){var r=t.req,i=t.value,a=t.parameter,s=a.name,p=a.style,m=a.explode,S=a.content;if(S){var w=or()(S)[0];r.url=r.url.split("{".concat(s,"}")).join(ps(vf(i,w),{escape:!0}));return}var E=Nc({key:a.name,value:i,style:p||"simple",explode:m||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(E)}function ky(t){var r=t.req,i=t.value,a=t.parameter;if(r.query=r.query||{},a.content){var s=or()(a.content)[0];r.query[a.name]=vf(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[a.name]={value:i,serializationOption:kc()(a,["style","explode","allowReserved"])};else if(a.allowEmptyValue&&i!==void 0){var p=a.name;r.query[p]=r.query[p]||{},r.query[p].allowEmptyValue=!0}}var Ry=["accept","authorization","content-type"];function My(t){var r=t.req,i=t.parameter,a=t.value;if(r.headers=r.headers||{},!(Ry.indexOf(i.name.toLowerCase())>-1)){if(i.content){var s=or()(i.content)[0];r.headers[i.name]=vf(a,s);return}typeof a!="undefined"&&(r.headers[i.name]=Nc({key:i.name,value:a,style:i.style||"simple",explode:typeof i.explode=="undefined"?!1:i.explode,escape:!1}))}}function Ly(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{};var s=vr(a);if(i.content){var p,m=or()(i.content)[0];r.headers.Cookie=Tt()(p="".concat(i.name,"=")).call(p,vf(a,m));return}if(s!=="undefined"){var S=s==="object"&&!Array.isArray(a)&&i.explode?"":"".concat(i.name,"=");r.headers.Cookie=S+Nc({key:i.name,value:a,escape:!1,style:i.style||"form",explode:typeof i.explode=="undefined"?!1:i.explode})}}var Ny=o(50706),Yp=o.n(Ny);function Dy(t,r){var i=t.operation,a=t.requestBody,s=t.securities,p=t.spec,m=t.attachContentTypeForEmptyPayload,S=t.requestContentType;r=By({request:r,securities:s,operation:i,spec:p});var w=i.requestBody||{},E=or()(w.content||{}),R=S&&E.indexOf(S)>-1;if(a||m){if(S&&R)r.headers["Content-Type"]=S;else if(!S){var J=E[0];J&&(r.headers["Content-Type"]=J,S=J)}}else S&&R&&(r.headers["Content-Type"]=S);if(!t.responseContentType&&i.responses){var oe,re=Nn()(oe=Qd()(i.responses)).call(oe,function(ve){var pe=yi(ve,2),Se=pe[0],ye=pe[1],Fe=parseInt(Se,10);return Fe>=200&&Fe<300&&Kp()(ye.content)}).reduce(function(ve,pe){var Se=yi(pe,2),ye=Se[1];return Tt()(ve).call(ve,or()(ye.content))},[]);re.length>0&&(r.headers.accept=re.join(", "))}if(a)if(S){if(E.indexOf(S)>-1)if(S==="application/x-www-form-urlencoded"||S==="multipart/form-data")if(vr(a)==="object"){var le=(w.content[S]||{}).encoding||{};r.form={},or()(a).forEach(function(ve){r.form[ve]={value:a[ve],encoding:le[ve]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function By(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,m=t.spec,S=rf()({},r),w=a.authorized,E=w===void 0?{}:w,R=p.security||m.security||[],J=E&&!!or()(E).length,oe=El()(m,["components","securitySchemes"])||{};return S.headers=S.headers||{},S.query=S.query||{},!or()(a).length||!J||!R||Array.isArray(p.security)&&!p.security.length?r:(R.forEach(function(re){or()(re).forEach(function(le){var ve=E[le],pe=oe[le];if(!!ve){var Se=ve.value||ve,ye=pe.type;if(ve){if(ye==="apiKey")pe.in==="query"&&(S.query[pe.name]=Se),pe.in==="header"&&(S.headers[pe.name]=Se),pe.in==="cookie"&&(S.cookies[pe.name]=Se);else if(ye==="http"){if(/^basic$/i.test(pe.scheme)){var Fe,Ke=Se.username||"",Ue=Se.password||"",$e=Yp()(Tt()(Fe="".concat(Ke,":")).call(Fe,Ue));S.headers.Authorization="Basic ".concat($e)}/^bearer$/i.test(pe.scheme)&&(S.headers.Authorization="Bearer ".concat(Se))}else if(ye==="oauth2"||ye==="openIdConnect"){var Be,Ve=ve.token||{},We=pe["x-tokenName"]||"access_token",Ye=Ve[We],Ge=Ve.token_type;(!Ge||Ge.toLowerCase()==="bearer")&&(Ge="Bearer"),S.headers.Authorization=Tt()(Be="".concat(Ge," ")).call(Be,Ye)}}}})}),S)}function Uy(t,r){var i=t.spec,a=t.operation,s=t.securities,p=t.requestContentType,m=t.responseContentType,S=t.attachContentTypeForEmptyPayload;if(r=jy({request:r,securities:s,operation:a,spec:i}),r.body||r.form||S){var w,E;if(p)r.headers["Content-Type"]=p;else if(Array.isArray(a.consumes)){var R=yi(a.consumes,1);r.headers["Content-Type"]=R[0]}else if(Array.isArray(i.consumes)){var J=yi(i.consumes,1);r.headers["Content-Type"]=J[0]}else a.parameters&&Nn()(w=a.parameters).call(w,function(pe){return pe.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&Nn()(E=a.parameters).call(E,function(pe){return pe.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(p){var oe,re,le=a.parameters&&Nn()(oe=a.parameters).call(oe,function(pe){return pe.in==="body"}).length>0,ve=a.parameters&&Nn()(re=a.parameters).call(re,function(pe){return pe.in==="formData"}).length>0;(le||ve)&&(r.headers["Content-Type"]=p)}return!m&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function jy(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,m=t.spec,S=rf()({},r),w=a.authorized,E=w===void 0?{}:w,R=a.specSecurity,J=R===void 0?[]:R,oe=p.security||J,re=E&&!!or()(E).length,le=m.securityDefinitions;return S.headers=S.headers||{},S.query=S.query||{},!or()(a).length||!re||!oe||Array.isArray(p.security)&&!p.security.length?r:(oe.forEach(function(ve){or()(ve).forEach(function(pe){var Se=E[pe];if(!!Se){var ye=Se.token,Fe=Se.value||Se,Ke=le[pe],Ue=Ke.type,$e=Ke["x-tokenName"]||"access_token",Be=ye&&ye[$e],Ve=ye&&ye.token_type;if(Se){if(Ue==="apiKey"){var We=Ke.in==="query"?"query":"headers";S[We]=S[We]||{},S[We][Ke.name]=Fe}else if(Ue==="basic")if(Fe.header)S.headers.authorization=Fe.header;else{var Ye,Ge=Fe.username||"",et=Fe.password||"";Fe.base64=Yp()(Tt()(Ye="".concat(Ge,":")).call(Ye,et)),S.headers.authorization="Basic ".concat(Fe.base64)}else if(Ue==="oauth2"&&Be){var bt;Ve=!Ve||Ve.toLowerCase()==="bearer"?"Bearer":Ve,S.headers.authorization=Tt()(bt="".concat(Ve," ")).call(bt,Be)}}}})}),S)}var Jp=function(r){return Array.isArray(r)?r:[]},Vy=Ep("OperationNotFoundError",function(r,i,a){this.originalError=a,mi()(this,i||{})}),Wy=function(r,i){return Nn()(i).call(i,function(a){return a.name===r})},Hy=function(r){var i={};r.forEach(function(s){i[s.in]||(i[s.in]={}),i[s.in][s.name]=s});var a=[];return or()(i).forEach(function(s){or()(i[s]).forEach(function(p){a.push(i[s][p])})}),a},zy={buildRequest:Xp};function Gy(t){var r=t.http,i=t.fetch,a=t.spec,s=t.operationId,p=t.pathName,m=t.method,S=t.parameters,w=t.securities,E=xy(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),R=r||i||sf;p&&m&&!s&&(s=Vp(p,m));var J=zy.buildRequest(Cr({spec:a,operationId:s,parameters:S,securities:w,http:R},E));return J.body&&(Kp()(J.body)||Sy()(J.body))&&(J.body=nf()(J.body)),R(J)}function Xp(t){var r,i,a=t.spec,s=t.operationId,p=t.responseContentType,m=t.scheme,S=t.requestInterceptor,w=t.responseInterceptor,E=t.contextUrl,R=t.userFetch,J=t.server,oe=t.serverVariables,re=t.http,le=t.parameters,ve=t.parameterBuilders,pe=jp(a);ve||(pe?ve=x:ve=Ey);var Se=re&&re.withCredentials?"include":"same-origin",ye={url:"",credentials:Se,headers:{},cookies:{}};S&&(ye.requestInterceptor=S),w&&(ye.responseInterceptor=w),R&&(ye.userFetch=R);var Fe=ly(a,s);if(!Fe)throw new Vy("Operation ".concat(s," not found"));var Ke=Fe.operation,Ue=Ke===void 0?{}:Ke,$e=Fe.method,Be=Fe.pathName;if(ye.url+=Qp({spec:a,scheme:m,contextUrl:E,server:J,serverVariables:oe,pathName:Be,method:$e}),!s)return delete ye.cookies,ye;ye.url+=Be,ye.method="".concat($e).toUpperCase(),le=le||{};var Ve=a.paths[Be]||{};p&&(ye.headers.accept=p);var We=Hy(Tt()(r=Tt()(i=[]).call(i,Jp(Ue.parameters))).call(r,Jp(Ve.parameters)));We.forEach(function(et){var bt=ve[et.in],Nt;if(et.in==="body"&&et.schema&&et.schema.properties&&(Nt=le),Nt=et&&et.name&&le[et.name],typeof Nt=="undefined"){var Ht;Nt=et&&et.name&&le[Tt()(Ht="".concat(et.in,".")).call(Ht,et.name)]}else if(Wy(et.name,We).length>1){var lr;console.warn(Tt()(lr="Parameter '".concat(et.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(lr,et.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Nt!==null){if(typeof et.default!="undefined"&&typeof Nt=="undefined"&&(Nt=et.default),typeof Nt=="undefined"&&et.required&&!et.allowEmptyValue)throw new Error("Required parameter ".concat(et.name," is not provided"));if(pe&&et.schema&&et.schema.type==="object"&&typeof Nt=="string")try{Nt=JSON.parse(Nt)}catch(Rr){throw new Error("Could not parse object parameter value string as JSON")}bt&&bt({req:ye,parameter:et,value:Nt,operation:Ue,spec:a})}});var Ye=Cr(Cr({},t),{},{operation:Ue});if(pe?ye=Dy(Ye,ye):ye=Uy(Ye,ye),ye.cookies&&or()(ye.cookies).length){var Ge=or()(ye.cookies).reduce(function(et,bt){var Nt=ye.cookies[bt],Ht=et?"&":"",lr=Ay.serialize(bt,Nt);return et+Ht+lr},"");ye.headers.Cookie=Ge}return ye.cookies&&delete ye.cookies,up(ye),ye}var rd=function(r){return r?r.replace(/\W/g,""):null};function Qp(t){var r=jp(t.spec);return r?$y(t):Jy(t)}function $y(t){var r=t.spec,i=t.pathName,a=t.method,s=t.server,p=t.contextUrl,m=t.serverVariables,S=m===void 0?{}:m,w=El()(r,["paths",i,(a||"").toLowerCase(),"servers"])||El()(r,["paths",i,"servers"])||El()(r,["servers"]),E="",R=null;if(s&&w&&w.length){var J=ir()(w).call(w,function(le){return le.url});J.indexOf(s)>-1&&(E=s,R=w[J.indexOf(s)])}if(!E&&w&&w.length){E=w[0].url;var oe=yi(w,1);R=oe[0]}if(E.indexOf("{")>-1){var re=Yy(E);re.forEach(function(le){if(R.variables&&R.variables[le]){var ve=R.variables[le],pe=S[le]||ve.default,Se=new RegExp("{".concat(le,"}"),"g");E=E.replace(Se,pe)}})}return Ky(E,p)}function Ky(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t&&r?Uo.parse(Uo.resolve(r,t)):Uo.parse(t),a=Uo.parse(r),s=rd(i.protocol)||rd(a.protocol)||"",p=i.host||a.host,m=i.pathname||"",S;if(s&&p){var w;S=Tt()(w="".concat(s,"://")).call(w,p+m)}else S=m;return S[S.length-1]==="/"?Ni()(S).call(S,0,-1):S}function Yy(t){for(var r=[],i=/{([^}]+)}/g,a;a=i.exec(t);)r.push(a[1]);return r}function Jy(t){var r=t.spec,i=t.scheme,a=t.contextUrl,s=a===void 0?"":a,p=Uo.parse(s),m=Array.isArray(r.schemes)?r.schemes[0]:null,S=i||m||rd(p.protocol)||"http",w=r.host||p.host||"",E=r.basePath||"",R;if(S&&w){var J;R=Tt()(J="".concat(S,"://")).call(J,w+E)}else R=E;return R[R.length-1]==="/"?Ni()(R).call(R,0,-1):R}Br.http=sf,Br.makeHttp=Hv.bind(null,Br.http),Br.resolve=Gp,Br.resolveSubtree=dy,Br.execute=Gy,Br.serializeRes=np,Br.serializeHeaders=ip,Br.clearCache=fy,Br.makeApisTagOperation=gy,Br.buildRequest=Xp,Br.helpers={opId:pf},Br.getBaseUrl=Qp;function Br(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string"?i.url=t:i=t,!(this instanceof Br))return new Br(i);rf()(this,i);var a=this.resolve().then(function(){return r.disableInterfaces||rf()(r,Br.makeApisTagOperation(r)),r});return a.client=this,a}Br.prototype={http:sf,execute:function(r){return this.applyDefaults(),Br.execute(Cr({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Br.resolve(Cr({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},i)).then(function(a){return r.originalSpec=r.spec,r.spec=a.spec,r.errors=a.errors,r})}},Br.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&$d()(i,"http")){var a=Uo.parse(i);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var jm=Br.helpers;const Xy=Br;var Qy=o(71057),Zy=o(72940),Zp=Object.defineProperty,qy=Object.defineProperties,_y=Object.getOwnPropertyDescriptor,em=Object.getOwnPropertyDescriptors,qp=Object.getOwnPropertySymbols,tm=Object.prototype.hasOwnProperty,rm=Object.prototype.propertyIsEnumerable,nd=(t,r,i)=>r in t?Zp(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Dn=(t,r)=>{for(var i in r||(r={}))tm.call(r,i)&&nd(t,i,r[i]);if(qp)for(var i of qp(r))rm.call(r,i)&&nd(t,i,r[i]);return t},Vo=(t,r)=>qy(t,em(r)),nm=(t,r,i,a)=>{for(var s=a>1?void 0:a?_y(r,i):r,p=t.length-1,m;p>=0;p--)(m=t[p])&&(s=(a?m(r,i,s):m(s))||s);return a&&s&&Zp(r,i,s),s},gs=(t,r,i)=>(nd(t,typeof r!="symbol"?r+"":r,i),i),_p=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});function eh(t){return t.startsWith("//")?"https:"+t:t}const im={flex:1,display:"flex",flexDirection:"column"};let id=class extends d.Component{constructor(t){super(t);gs(this,"formApi",null),gs(this,"setFormApi",r=>{this.formApi=r,setTimeout(()=>{this.setState({form:this.formApi.getState()})},0)}),gs(this,"handleChange",r=>{this.setState({form:r}),(0,Zr.Hc)(r)}),gs(this,"handleTabChange",r=>{this.setState({activeTab:r})}),gs(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),gs(this,"handleExecute",()=>_p(this,null,function*(){var r,i,a,s,p,m,S;const{store:w,operation:E,onResponse:R}=this.props;this.formApi.submitForm();const{values:J,invalid:oe}=this.formApi.getState();if(oe){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(i=(r=w==null?void 0:w.options.events)==null?void 0:r.tryItSent)==null||i.call(r,{eventType:jd.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:E.operationId,operationPath:E.path,operationHttpVerb:E.httpVerb,operationSummary:E.description});return}const re=this.props.operation.requestBody,le=re&&re.content&&re.content.active&&re.content.active.name||"";let ve=J.body;if(/json/.test(le))try{ve=JSON.parse(ve)}catch(Ge){console.error(Ge)}this.setState({loading:!0});const pe=this.state.resolvedRawSpec,Se=(0,zt.U2)(pe,["paths",E.path,(E.httpVerb||"").toLowerCase(),"servers"])||(0,zt.U2)(pe,["paths",E.path,"servers"])||(0,zt.U2)(pe,["servers"]);if(!Se)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const ye=Se.find(Ge=>this.state.server.url.endsWith(Ge.url.endsWith("/")?Ge.url.substring(0,Ge.url.length-1):Ge.url)),Fe=Date.now(),Ke=!!window.document.documentMode;let Ue,$e=J.auth;if(J.auth){const Ge=Object.keys(J.auth)[0],et=(0,zt.dw)(Ge);Ue=Vo(Dn({},pe),{components:Vo(Dn({},pe.components),{securitySchemes:Vo(Dn({},pe.components.securitySchemes),{[et]:Vo(Dn({},pe.components.securitySchemes[et]),{type:pe.components.securitySchemes[et].type==="openIdConnect"?"oauth2":pe.components.securitySchemes[et].type})})})}),$e=Vo(Dn({},$e),{[et]:$e[Ge]})}else Ue=Dn({},pe);const Be=w.options.corsProxyUrl;Be&&pe.servers&&pe.servers.length&&(Ue.servers=pe.servers.map(Ge=>Vo(Dn({},Ge),{url:Be+eh(Ge.url)})));const Ve=((s=(a=re==null?void 0:re.content)==null?void 0:a.active)==null?void 0:s.name)||null;if(Ve&&ve&&os(Ve)){const Ge=Object.values(ve);ve=Ge.length>1?Ge:Ge[0]}const We=(Ge,et)=>bt=>(this.props.store.options.sendXUserAgentInTryIt&&(bt.headers["X-User-Agent"]="Redocly Try it API console"),Ge?Ge(bt,et):bt),Ye={userFetch:Ke&&o(54098).fetch,server:Be?Be+eh(ye.url):ye.url,serverVariables:this.state.server.variables,spec:Ue,pathName:E.path,method:E.httpVerb,parameters:Dn(Dn(Dn(Dn({},J.path),J.query),J.header),J.cookie),securities:{authorized:$e},requestBody:ve,requestContentType:Ve,responseContentType:((p=J.header)==null?void 0:p.Accept)||null,requestInterceptor:We(w.options.requestInterceptor,E)};try{const Ge=yield Xy.execute(Ye);Ge&&Ge.data instanceof Blob&&(Ge.data=yield Ge.data.text()),R==null||R({request:Ye,response:Ge}),this.setState({response:Ge,error:void 0})}catch(Ge){Ge&&Ge.response&&Ge.response.data instanceof Blob&&(Ge.response.data=yield Ge.response.data.text(),R==null||R({request:Ye,response:Ge.response})),this.setState({response:void 0,error:Ge})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-Fe}),(S=(m=w==null?void 0:w.options.events)==null?void 0:m.tryItSent)==null||S.call(m,{eventType:jd.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:E.operationId,operationPath:E.path,operationHttpVerb:E.httpVerb,operationSummary:E.description})}})),this.state={form:{values:{path:(0,Zr.ZS)(t.operation.parameters,"path"),cookie:(0,Zr.ZS)(t.operation.parameters,"cookie"),header:(0,Zr.ZS)(t.operation.parameters,"header"),query:(0,Zr.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return _p(this,null,function*(){const{store:t,operation:r}=this.props,i=yield t.dereferenceSpecForTryIt(r);this.setState({resolvedRawSpec:i}),this.formApi.setValues({})})}componentDidUpdate(t){t.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:t,className:r,rootElement:i}=this.props,{shaking:a,activeTab:s,form:p,response:m,loading:S,error:w}=this.state,E=!!(m||w);return d.createElement(am,{shaking:a,className:r,rootElement:i},d.createElement(Qn.k1,null,d.createElement(n,{active:s,hasResponse:E,onChange:this.handleTabChange}),this.props.onClose&&d.createElement(Vi.PZ,{onClick:this.props.onClose}," \u2715 ")),d.createElement(Vi.RE,{hidden:s!==0},this.renderRequest()),d.createElement(Vi.RE,{hidden:s!==1},this.renderResponse()),d.createElement(ks,{hasResponse:E,params:p.values,operation:t,loading:S,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:i,properties:a,securityDefaults:s}=this.props,{form:p,resolvedRawSpec:m,server:S}=this.state,w=p.errors||{},E=w.path||w.cookie||w.header||w.query,R=m&&jt.JsonPointer.get(m,r.pointer);let J=p.values&&p.values.auth&&Object.keys(p.values.auth)[0];(!J||!p.values.auth[J])&&(J=void 0),J&&(p.values.auth[J].token!==void 0||p.values.auth[J].client_id!==void 0||p.values.auth[J].client_secret!==void 0)&&(!p.values.auth[J].token||!p.values.auth[J].token.access_token)&&(J=void 0),J&&p.values.auth[J].username!=null&&(!p.values.auth[J].username||!p.values.auth[J].password)&&(J=void 0);const oe=r.parameters||[],re=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!m&&"Loading..."||d.createElement(d.Fragment,null,d.createElement(Ll,{onChange:this.handleChange,getApi:this.setFormApi,style:Vo(Dn({},im),{margin:0})},d.createElement(Qn.UQ,{initialActiveIdx:r.security.length&&J?1:0},r.security.length&&d.createElement(od,{header:(0,ml.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!J&&!!w.auth,success:!!J},re?d.createElement(sm,{field:"auth",validate:cs},le=>d.createElement(Qy.Q,{Hook:re,props:{server:S,operation:r,onChange:le,OAuth2:cr}})):d.createElement(Wh,{formApi:this.formApi,form:p,operation:r,activeServer:S.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&d.createElement(od,{header:(0,ml.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!w.body},d.createElement(yc,{validate:om,console:this,body:r.requestBody,id:r.id,resolvedBody:R.requestBody,properties:a}))||null,oe.length&&d.createElement(od,{header:(0,ml.l)("tryItParameters"),"data-cy":"parameters-trigger",error:E,renderChildrenHidden:!0},d.createElement(Ma,{operation:r,values:p.values,errors:p.errors||{}}))||null)),d.createElement(Ra,{operation:r,onChange:this.handleServerChange}))}renderResponse(){const{response:t,error:r,time:i}=this.state;return d.createElement(Uf,{response:t,error:r,time:i})}};id=nm([Ia.Pi],id);function om(){}function am(t){const{shaking:r,className:i,children:a,rootElement:s}=t,[p]=(0,zt.Bs)(s);return d.createElement(Vi.q2,{shaking:r,className:i,"data-cy":"console",fullWidth:p==null?void 0:p.width},a)}function sm(t){const{fieldApi:r,render:i,userProps:a}=Kn(Dn({},t)),{setValue:s}=r,{children:p}=a;return i(d.createElement(d.Fragment,null,p(s)))}function od(t){const r=({toggle:i,expanded:a})=>d.createElement(Qn.h4,{onClick:i,isExpanded:a,"data-cy":t["data-cy"]},d.createElement(Qn.xz,null,d.createElement(Qn.Dx,null,t.header),d.createElement(jt.ShelfIcon,{direction:a?"down":"right"})),t.error&&d.createElement(jt.CrossIcon,{size:"14px",color:"#ff908b"})||null,t.success&&d.createElement(jt.LockIcon,{size:"14px",color:"#56ff26"})||null);return d.createElement(lm,Vo(Dn({},t),{header:r}))}const lm=(0,Ir.ZP)(Qn.s_)`
458
- ${Qn.h4} {
452
+ */var Hc=new WeakMap,tg=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),rg=function(){function t(r,i){this.callback=r,this.observer=i}return t}();function ng(t){return Hc.get(t)}function ig(t,r){return t.observers.get(r)}function og(t,r){t.observers.delete(r.callback)}function ag(t,r){r.unobserve()}function sg(t,r){var i=[],a,s=ng(t);if(!s)s=new tg(t),Hc.set(t,s);else{var p=ig(s,r);a=p&&p.observer}if(a)return a;if(a={},s.value=zn(t),r){a.callback=r,a.next=null;var m=function(){zc(a)},A=function(){clearTimeout(a.next),a.next=setTimeout(m)};typeof window!="undefined"&&(window.addEventListener("mouseup",A),window.addEventListener("keyup",A),window.addEventListener("mousedown",A),window.addEventListener("keydown",A),window.addEventListener("change",A))}return a.patches=i,a.object=t,a.unobserve=function(){zc(a),clearTimeout(a.next),og(s,a),typeof window!="undefined"&&(window.removeEventListener("mouseup",A),window.removeEventListener("keyup",A),window.removeEventListener("mousedown",A),window.removeEventListener("keydown",A),window.removeEventListener("change",A))},s.observers.set(r,new rg(r,a)),a}function zc(t,r){r===void 0&&(r=!1);var i=Hc.get(t.object);Gc(i.value,t.object,t.patches,"",r),t.patches.length&&ba(i.value,t.patches);var a=t.patches;return a.length>0&&(t.patches=[],t.callback&&t.callback(a)),a}function Gc(t,r,i,a,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var p=jc(r),m=jc(t),A=!1,w=!1,E=m.length-1;E>=0;E--){var M=m[E],Y=t[M];if(lf(r,M)&&!(r[M]===void 0&&Y!==void 0&&Array.isArray(r)===!1)){var ae=r[M];typeof Y=="object"&&Y!=null&&typeof ae=="object"&&ae!=null?Gc(Y,ae,i,a+"/"+ao(M),s):Y!==ae&&(A=!0,s&&i.push({op:"test",path:a+"/"+ao(M),value:zn(Y)}),i.push({op:"replace",path:a+"/"+ao(M),value:zn(ae)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:a+"/"+ao(M),value:zn(Y)}),i.push({op:"remove",path:a+"/"+ao(M)}),w=!0):(s&&i.push({op:"test",path:a,value:t}),i.push({op:"replace",path:a,value:r}),A=!0)}if(!(!w&&p.length==m.length))for(var E=0;E<p.length;E++){var M=p[E];!lf(t,M)&&r[M]!==void 0&&i.push({op:"add",path:a+"/"+ao(M),value:zn(r[M])})}}}function lg(t,r,i){i===void 0&&(i=!1);var a=[];return Gc(t,r,a,"",i),a}const Nm=Object.assign({},c,v,{JsonPatchError:hp,deepClone:zn,escapePathComponent:ao,unescapePathComponent:cp});var ug=o(31312),fg=o.n(ug),cg=o(50361),dg=o.n(cg);const sr={add:hg,replace:$c,remove:vg,merge:gg,mergeDeep:yg,context:mg,getIn:Sg,applyPatch:pg,parentPathMatch:wg,flatten:El,fullyNormalizeArray:Ag,normalizeArray:mp,isPromise:Eg,forEachNew:xg,forEachNewPrimitive:bg,isJsonPatch:wp,isContextPatch:Tg,isPatch:cf,isMutation:Sp,isAdditiveMutation:ff,isGenerator:Og,isFunction:bp,isObject:jo,isError:Cg};function pg(t,r,i){if(i=i||{},r=Cr(Cr({},r),{},{path:r.path&&gp(r.path)}),r.op==="merge"){var a=Jc(t,r.path);mi()(a,r.value),ba(t,[$c(r.path,a)])}else if(r.op==="mergeDeep"){var s=Jc(t,r.path);for(var p in r.value){var m=r.value[p],A=Array.isArray(m);if(A){var w=s[p]||[];s[p]=Tt()(w).call(w,m)}else if(jo(m)&&!A){var E=Cr({},s[p]);for(var M in m)if(Object.prototype.hasOwnProperty.call(E,M)){E=fg()(dg()(E),m);break}else mi()(E,zd({},M,m[M]));s[p]=E}else s[p]=m}}else if(r.op==="add"&&r.path===""&&jo(r.value)){var Y=or()(r.value).reduce(function(he,Se){return he.push({op:"add",path:"/".concat(gp(Se)),value:r.value[Se]}),he},[]);ba(t,Y)}else if(r.op==="replace"&&r.path===""){var ae=r,ne=ae.value;i.allowMetaPatches&&r.meta&&ff(r)&&(Array.isArray(r.value)||jo(r.value))&&(ne=Cr(Cr({},ne),r.meta)),t=ne}else if(ba(t,[r]),i.allowMetaPatches&&r.meta&&ff(r)&&(Array.isArray(r.value)||jo(r.value))){var ue=Jc(t,r.path),ge=Cr(Cr({},ue),r.meta);ba(t,[$c(r.path,ge)])}return t}function gp(t){return Array.isArray(t)?t.length<1?"":"/".concat(ir()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function hg(t,r){return{op:"add",path:t,value:r}}function $c(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function vg(t){return{op:"remove",path:t}}function gg(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function yg(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function mg(t,r){return{type:"context",path:t,value:r}}function xg(t,r){try{return yp(t,Yc,r)}catch(i){return i}}function bg(t,r){try{return yp(t,Kc,r)}catch(i){return i}}function yp(t,r,i){var a,s=ir()(a=Ln()(t).call(t,ff)).call(a,function(A){return r(A.value,i,A.path)})||[],p=El(s),m=xp(p);return m}function Kc(t,r,i){if(i=i||[],Array.isArray(t))return ir()(t).call(t,function(s,p){return Kc(s,r,Tt()(i).call(i,p))});if(jo(t)){var a;return ir()(a=or()(t)).call(a,function(s){return Kc(t[s],r,Tt()(i).call(i,s))})}return r(t,i[i.length-1],i)}function Yc(t,r,i){i=i||[];var a=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(a=Tt()(a).call(a,s))}if(Array.isArray(t)){var p=ir()(t).call(t,function(w,E){return Yc(w,r,Tt()(i).call(i,E))});p&&(a=Tt()(a).call(a,p))}else if(jo(t)){var m,A=ir()(m=or()(t)).call(m,function(w){return Yc(t[w],r,Tt()(i).call(i,w))});A&&(a=Tt()(a).call(a,A))}return a=El(a),a}function wg(t,r){if(!Array.isArray(r))return!1;for(var i=0,a=r.length;i<a;i+=1)if(r[i]!==t[i])return!1;return!0}function Sg(t,r){return r.reduce(function(i,a){return typeof a!="undefined"&&i?i[a]:i},t)}function Ag(t){return xp(El(mp(t)))}function mp(t){return Array.isArray(t)?t:[t]}function El(t){var r;return Tt()(r=[]).apply(r,ya(ir()(t).call(t,function(i){return Array.isArray(i)?El(i):i})))}function xp(t){return Ln()(t).call(t,function(r){return typeof r!="undefined"})}function jo(t){return t&&vr(t)==="object"}function Eg(t){return jo(t)&&bp(t.then)}function bp(t){return t&&typeof t=="function"}function Cg(t){return t instanceof Error}function wp(t){if(cf(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function Og(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function Sp(t){return wp(t)||cf(t)&&t.type==="mutation"}function ff(t){return Sp(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function Tg(t){return cf(t)&&t.type==="context"}function cf(t){return t&&vr(t)==="object"}function Jc(t,r){try{return Sl(t,r)}catch(i){return console.error(i),{}}}var Pg=o(52424),Ig=o.n(Pg),Fg=o(54098),kg=o(9779),Ap=o.n(kg);function Ep(t,r){function i(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,s=new Array(a),p=0;p<a;p++)s[p]=arguments[p];this.message=s[0],r&&r.apply(this,s)}return i.prototype=new Error,i.prototype.name=t,i.prototype.constructor=i,i}var Mg=o(13692),Rg=o.n(Mg),Lg=o(47037),Dg=o.n(Lg),Ng=["properties"],Bg=["properties"],Ug=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],jg=["schema/example","items/example"];function Cp(t){var r=t[t.length-1],i=t[t.length-2],a=t.join("/");return Ng.indexOf(r)>-1&&Bg.indexOf(i)===-1||Ug.indexOf(a)>-1||jg.some(function(s){return a.indexOf(s)>-1})}function Vg(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.specmap,s=i.getBaseUrlForNodePath,p=s===void 0?function(E){var M;return a.getContext(Tt()(M=[]).call(M,ya(r),ya(E))).baseDoc}:s,m=i.targetKeys,A=m===void 0?["$ref","$$ref"]:m,w=[];return Rg()(t).forEach(function(){if(Ic()(A).call(A,this.key)&&Dg()(this.node)){var M=this.path,Y=Tt()(r).call(r,this.path),ae=Xc(this.node,p(M));w.push(a.replace(Y,ae))}}),w}function Xc(t,r){var i,a=t.split("#"),s=yi(a,2),p=s[0],m=s[1],A=Uo.resolve(p||"",r||"");return m?Tt()(i="".concat(A,"#")).call(i,m):A}var Op="application/json, application/yaml",Wg=new RegExp("^([a-z]+://|//)","i"),gs=Ep("JSONRefError",function(r,i,a){this.originalError=a,mi()(this,i||{})}),so={},Tp=new(Ig()),Hg=[function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"}],zg=function(r){return Hg.some(function(i){return i(r)})},Gg={key:"$ref",plugin:function(r,i,a,s){var p=s.getInstance(),m=Di()(a).call(a,0,-1);if(!(Cp(m)||zg(m))){var A=s.getContext(a),w=A.baseDoc;if(typeof r!="string")return new gs("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:a});var E=Fp(r),M=E[0],Y=E[1]||"",ae;try{ae=w||M?Ip(M,w):null}catch(me){return Qc(me,{pointer:Y,$ref:r,basePath:ae,fullPath:a})}var ne,ue;if(Qg(Y,ae,m,s)&&!p.useCircularStructures){var ge=Xc(r,ae);return r===ge?null:sr.replace(a,ge)}if(ae==null?(ue=_c(Y),ne=s.get(ue),typeof ne=="undefined"&&(ne=new gs("Could not resolve reference: ".concat(r),{pointer:Y,$ref:r,baseDoc:w,fullPath:a}))):(ne=kp(ae,Y),ne.__value!=null?ne=ne.__value:ne=ne.catch(function(me){throw Qc(me,{pointer:Y,$ref:r,baseDoc:w,fullPath:a})})),ne instanceof Error)return[sr.remove(a),ne];var he=Xc(r,ae),Se=sr.replace(m,ne,{$$ref:he});if(ae&&ae!==w)return[Se,sr.context(m,{baseDoc:ae})];try{if(!Zg(s.state,Se)||p.useCircularStructures)return Se}catch(me){return null}}}},Pp=mi()(Gg,{docCache:so,absoluteify:Ip,clearCache:Kg,JSONRefError:gs,wrapError:Qc,getDoc:Mp,split:Fp,extractFromDoc:kp,fetchJSON:Yg,extract:Zc,jsonPointerToArray:_c,unescapeJsonPointerToken:Rp});const $g=Pp;function Ip(t,r){if(!Wg.test(t)){if(!r){var i;throw new gs(Tt()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return Uo.resolve(r,t)}return t}function Qc(t,r){var i;if(t&&t.response&&t.response.body){var a;i=Tt()(a="".concat(t.response.body.code," ")).call(a,t.response.body.message)}else i=t.message;return new gs("Could not resolve reference: ".concat(i),r,t)}function Fp(t){return(t+"").split("#")}function kp(t,r){var i=so[t];if(i&&!sr.isPromise(i))try{var a=Zc(r,i);return mi()(ma().resolve(a),{__value:a})}catch(s){return ma().reject(s)}return Mp(t).then(function(s){return Zc(r,s)})}function Kg(t){typeof t!="undefined"?delete so[t]:or()(so).forEach(function(r){delete so[r]})}function Mp(t){var r=so[t];return r?sr.isPromise(r)?r:ma().resolve(r):(so[t]=Pp.fetchJSON(t).then(function(i){return so[t]=i,i}),so[t])}function Yg(t){return(0,Fg.fetch)(t,{headers:{Accept:Op},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Zd().safeLoad(r)})}function Zc(t,r){var i=_c(t);if(i.length<1)return r;var a=sr.getIn(r,i);if(typeof a=="undefined")throw new gs("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return a}function _c(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(vr(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:ir()(r=t.split("/")).call(r,Rp)}function Rp(t){return typeof t!="string"?t:Ap().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function Lp(t){return Ap().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function Jg(t){return t.length===0?"":"/".concat(ir()(t).call(t,Lp).join("/"))}var Xg=function(r){return!r||r==="/"||r==="#"};function qc(t,r){if(Xg(r))return!0;var i=t.charAt(r.length),a=Di()(r).call(r,-1);return t.indexOf(r)===0&&(!i||i==="/"||i==="#")&&a!=="#"}function Qg(t,r,i,a){var s,p,m=Tp.get(a);m||(m={},Tp.set(a,m));var A=Jg(i),w=Tt()(s="".concat(r||"<specmap-base>","#")).call(s,t),E=A.replace(/allOf\/\d+\/?/g,""),M=a.contextTree.get([]).baseDoc;if(r==M&&qc(E,t))return!0;var Y="",ae=i.some(function(ne){var ue;return Y=Tt()(ue="".concat(Y,"/")).call(ue,Lp(ne)),m[Y]&&m[Y].some(function(ge){return qc(ge,w)||qc(w,ge)})});if(ae)return!0;m[E]=Tt()(p=m[E]||[]).call(p,w)}function Zg(t,r){var i=[t];return r.path.reduce(function(s,p){return i.push(s[p]),s[p]},t),a(r.value);function a(s){return sr.isObject(s)&&(i.indexOf(s)>=0||or()(s).some(function(p){return a(s[p])}))}}var _g=o(41609),qg=o.n(_g);const ey={key:"allOf",plugin:function(r,i,a,s,p){if(!(p.meta&&p.meta.$$ref)){var m=Di()(a).call(a,0,-1);if(!Cp(m)){if(!Array.isArray(r)){var A=new TypeError("allOf must be an array");return A.fullPath=a,A}var w=!1,E=p.value;if(m.forEach(function(ae){!E||(E=E[ae])}),E=Cr({},E),!qg()(E)){delete E.allOf;var M=[];if(M.push(s.replace(m,{})),r.forEach(function(ae,ne){if(!s.isObject(ae)){if(w)return null;w=!0;var ue=new TypeError("Elements in allOf must be objects");return ue.fullPath=a,M.push(ue)}M.push(s.mergeDeep(m,ae));var ge=Di()(a).call(a,0,-1),he=Vg(ae,ge,{getBaseUrlForNodePath:function(me){var Fe;return s.getContext(Tt()(Fe=[]).call(Fe,ya(a),[ne],ya(me))).baseDoc},specmap:s});M.push.apply(M,ya(he))}),M.push(s.mergeDeep(m,E)),!E.$$ref){var Y;M.push(s.remove(Tt()(Y=[]).call(Y,m,"$$ref")))}return M}}}}},ty={key:"parameters",plugin:function(r,i,a,s){if(Array.isArray(r)&&r.length){var p=mi()([],r),m=Di()(a).call(a,0,-1),A=Cr({},sr.getIn(s.spec,m));return r.forEach(function(w,E){try{p[E].default=s.parameterMacro(A,w)}catch(Y){var M=new Error(Y);return M.fullPath=a,M}}),sr.replace(a,p)}return sr.replace(a,r)}},ry={key:"properties",plugin:function(r,i,a,s){var p=Cr({},r);for(var m in r)try{p[m].default=s.modelPropertyMacro(p[m])}catch(E){var A=new Error(E);return A.fullPath=a,A}var w=sr.replace(a,p);return w}};var ny=function(){function t(r){Mc(this,t),this.root=ed(r||{})}return Rc(t,[{key:"set",value:function(i,a){var s=this.getParent(i,!0);if(!s){df(this.root,a,null);return}var p=i[i.length-1],m=s.children;if(m[p]){df(m[p],a,s);return}m[p]=ed(a,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var a=this.root,s,p,m=0;m<i.length&&(p=i[m],s=a.children,!!s[p]);m+=1)a=s[p];return a&&a.protoValue}},{key:"getParent",value:function(i,a){return!i||i.length<1?null:i.length<2?this.root:Di()(i).call(i,0,-1).reduce(function(s,p){if(!s)return s;var m=s.children;return!m[p]&&a&&(m[p]=ed(null,s)),m[p]},this.root)}}]),t}();function ed(t,r){return df({children:{}},t,r)}function df(t,r,i){return t.value=r||{},t.protoValue=i?Cr(Cr({},i.protoValue),t.value):t.value,or()(t.children).forEach(function(a){var s=t.children[a];t.children[a]=df(s,s.value,t)}),t}var Dp=100,iy=function(){function t(r){var i=this,a,s;Mc(this,t),mi()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new ny,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:mi()(Object.create(this),sr,{getInstance:function(){return i}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=Ln()(a=ir()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(a,sr.isFunction),this.patches.push(sr.add([],this.spec)),this.patches.push(sr.context([],this.context)),this.updatePatches(this.patches)}return Rc(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var a,s=arguments.length,p=new Array(s>1?s-1:0),m=1;m<s;m++)p[m-1]=arguments[m];(a=console).log.apply(a,p)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var a,s,p=arguments.length,m=new Array(p>1?p-1:0),A=1;A<p;A++)m[A-1]=arguments[A];(a=console).log.apply(a,Tt()(s=["[".concat(i,"] ")]).call(s,m))}}},{key:"wrapPlugin",value:function(i,a){var s=this.pathDiscriminator,p=null,m;return i[this.pluginProp]?(p=i,m=i[this.pluginProp]):sr.isFunction(i)?m=i:sr.isObject(i)&&(m=A(i)),mi()(m.bind(p),{pluginName:i.name||a,isGenerator:sr.isGenerator(m)});function A(w){var E=function(Y,ae){return Array.isArray(Y)?Y.every(function(ne,ue){return ne===ae[ue]}):!0};return Li().mark(function M(Y,ae){var ne,ue,ge,he,Se,me;return Li().wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:me=function($e,Be,je){var We,Je,Ge,rt,bt,Dt,Ht,lr,Mr,Or,Gr,wr,Ur;return Li().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(sr.isObject($e)){Xt.next=6;break}if(w.key!==Be[Be.length-1]){Xt.next=4;break}return Xt.next=4,w.plugin($e,w.key,Be,ae);case 4:Xt.next=30;break;case 6:We=Be.length-1,Je=Be[We],Ge=Be.indexOf("properties"),rt=Je==="properties"&&We===Ge,bt=ae.allowMetaPatches&&ue[$e.$$ref],Dt=0,Ht=or()($e);case 12:if(!(Dt<Ht.length)){Xt.next=30;break}if(lr=Ht[Dt],Mr=$e[lr],Or=Tt()(Be).call(Be,lr),Gr=sr.isObject(Mr),wr=$e.$$ref,bt){Xt.next=22;break}if(!Gr){Xt.next=22;break}return ae.allowMetaPatches&&wr&&(ue[wr]=!0),Xt.delegateYield(me(Mr,Or,je),"t0",22);case 22:if(!(!rt&&lr===w.key)){Xt.next=27;break}if(Ur=E(s,Be),!(!s||Ur)){Xt.next=27;break}return Xt.next=27,w.plugin(Mr,lr,Or,ae,je);case 27:Dt++,Xt.next=12;break;case 30:case"end":return Xt.stop()}},ne)},ne=Li().mark(me),ue={},ge=ga(Ln()(Y).call(Y,sr.isAdditiveMutation)),Ke.prev=4,ge.s();case 6:if((he=ge.n()).done){Ke.next=11;break}return Se=he.value,Ke.delegateYield(me(Se.value,Se.path,Se),"t0",9);case 9:Ke.next=6;break;case 11:Ke.next=16;break;case 13:Ke.prev=13,Ke.t1=Ke.catch(4),ge.e(Ke.t1);case 16:return Ke.prev=16,ge.f(),Ke.finish(16);case 19:case"end":return Ke.stop()}},M,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var i=this;return Jv()(this.wrappedPlugins,function(a){var s=i.getMutationsForPlugin(a);return s.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var i;return ma().race(ir()(i=this.promisedPatches).call(i,function(a){return a.value}))}}},{key:"getPluginHistory",value:function(i){var a=this.constructor.getPluginName(i);return this.pluginHistory[a]||[]}},{key:"getPluginRunCount",value:function(i){return this.getPluginHistory(i).length}},{key:"getPluginHistoryTip",value:function(i){var a=this.getPluginHistory(i),s=a&&a[a.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(i){var a=this.getPluginHistoryTip(i).mutationIndex;return typeof a!="number"?-1:a}},{key:"updatePluginHistory",value:function(i,a){var s=this.constructor.getPluginName(i);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(a)}},{key:"updatePatches",value:function(i){var a=this;sr.normalizeArray(i).forEach(function(s){if(s instanceof Error){a.errors.push(s);return}try{if(!sr.isObject(s)){a.debug("updatePatches","Got a non-object patch",s);return}if(a.showDebug&&a.allPatches.push(s),sr.isPromise(s.value)){a.promisedPatches.push(s),a.promisedPatchThen(s);return}if(sr.isContextPatch(s)){a.setContext(s.path,s.value);return}if(sr.isMutation(s)){a.updateMutations(s);return}}catch(p){console.error(p),a.errors.push(p)}})}},{key:"updateMutations",value:function(i){vr(i.value)==="object"&&!Array.isArray(i.value)&&this.allowMetaPatches&&(i.value=Cr({},i.value));var a=sr.applyPatch(this.state,i,{allowMetaPatches:this.allowMetaPatches});a&&(this.mutations.push(i),this.state=a)}},{key:"removePromisedPatch",value:function(i){var a,s=this.promisedPatches.indexOf(i);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}Kv()(a=this.promisedPatches).call(a,s,1)}},{key:"promisedPatchThen",value:function(i){var a=this;return i.value=i.value.then(function(s){var p=Cr(Cr({},i),{},{value:s});a.removePromisedPatch(i),a.updatePatches(p)}).catch(function(s){a.removePromisedPatch(i),a.updatePatches(s)}),i.value}},{key:"getMutations",value:function(i,a){var s;return i=i||0,typeof a!="number"&&(a=this.mutations.length),Di()(s=this.mutations).call(s,i,a)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(i){var a=this.getPluginMutationIndex(i);return this.getMutations(a+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(i){return sr.getIn(this.state,i)}},{key:"_getContext",value:function(i){return this.contextTree.get(i)}},{key:"setContext",value:function(i,a){return this.contextTree.set(i,a)}},{key:"_hasRun",value:function(i){var a=this.getPluginRunCount(this.getCurrentPlugin());return a>(i||0)}},{key:"dispatch",value:function(){var i=this,a=this,s=this.nextPlugin();if(!s){var p=this.nextPromisedPatch();if(p)return p.then(function(){return i.dispatch()}).catch(function(){return i.dispatch()});var m={spec:this.state,errors:this.errors};return this.showDebug&&(m.patches=this.allPatches),ma().resolve(m)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[s]=(a.pluginCount[s]||0)+1,a.pluginCount[s]>Dp){var A;return ma().resolve({spec:a.state,errors:Tt()(A=a.errors).call(A,new Error("We've reached a hard limit of ".concat(Dp," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var w,E=ir()(w=this.promisedPatches).call(w,function(ae){return ae.value});return ma().all(ir()(E).call(E,function(ae){return ae.then(fp(),fp())})).then(function(){return i.dispatch()})}return M();function M(){a.currentPlugin=s;var ae=a.getCurrentMutations(),ne=a.mutations.length-1;try{if(s.isGenerator){var ue=ga(s(ae,a.getLib())),ge;try{for(ue.s();!(ge=ue.n()).done;){var he=ge.value;Y(he)}}catch(me){ue.e(me)}finally{ue.f()}}else{var Se=s(ae,a.getLib());Y(Se)}}catch(me){console.error(me),Y([mi()(Object.create(me),{plugin:s})])}finally{a.updatePluginHistory(s,{mutationIndex:ne})}return a.dispatch()}function Y(ae){ae&&(ae=sr.fullyNormalizeArray(ae),a.updatePatches(ae,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,a){return Ln()(i).call(i,a)}}]),t}();function oy(t){return new iy(t).dispatch()}var wa={refs:$g,allOf:ey,parameters:ty,properties:ry},ay=o(13218),Np=o.n(ay),Bp=function(r){return String.prototype.toLowerCase.call(r)},Up=function(r){return r.replace(/[^\w]/gi,"_")};function jp(t){var r=t.openapi;return r?$d()(r,"3"):!1}function Bm(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function pf(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=a.v2OperationIdCompatibilityMode;if(!t||vr(t)!=="object")return null;var p=(t.operationId||"").replace(/\s/g,"");return p.length?Up(t.operationId):sy(r,i,{v2OperationIdCompatibilityMode:s})}function sy(t,r){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.v2OperationIdCompatibilityMode;if(s){var p,m,A=Tt()(p="".concat(r.toLowerCase(),"_")).call(p,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return A=A||Tt()(m="".concat(t.substring(1),"_")).call(m,r),A.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Tt()(i="".concat(Bp(r))).call(i,Up(t))}function Vp(t,r){var i;return Tt()(i="".concat(Bp(r),"-")).call(i,t)}function ly(t,r){return!t||!t.paths?null:uy(t,function(i){var a=i.pathName,s=i.method,p=i.operation;if(!p||vr(p)!=="object")return!1;var m=p.operationId,A=pf(p,a,s),w=Vp(a,s);return[A,w,m].some(function(E){return E&&E===r})})}function uy(t,r){return Wp(t,r,!0)||null}function Wp(t,r,i){if(!t||vr(t)!=="object"||!t.paths||vr(t.paths)!=="object")return null;var a=t.paths;for(var s in a)for(var p in a[s])if(p.toUpperCase()!=="PARAMETERS"){var m=a[s][p];if(!(!m||vr(m)!=="object")){var A={spec:t,pathName:s,method:p.toUpperCase(),operation:m},w=r(A);if(i&&w)return A}}}function Hp(t){var r=t.spec,i=r.paths,a={};if(!i||r.$$normalized)return t;for(var s in i){var p=i[s];if(!!Np()(p)){var m=p.parameters,A=function(Y){var ae=p[Y];if(!Np()(ae))return"continue";var ne=pf(ae,s,Y);if(ne){a[ne]?a[ne].push(ae):a[ne]=[ae];var ue=a[ne];if(ue.length>1)ue.forEach(function(Je,Ge){var rt;Je.__originalOperationId=Je.__originalOperationId||Je.operationId,Je.operationId=Tt()(rt="".concat(ne)).call(rt,Ge+1)});else if(typeof ae.operationId!="undefined"){var ge=ue[0];ge.__originalOperationId=ge.__originalOperationId||ae.operationId,ge.operationId=ne}}if(Y!=="parameters"){var he=[],Se={};for(var me in r)(me==="produces"||me==="consumes"||me==="security")&&(Se[me]=r[me],he.push(Se));if(m&&(Se.parameters=m,he.push(Se)),he.length){var Fe=ga(he),Ke;try{for(Fe.s();!(Ke=Fe.n()).done;){var Ue=Ke.value;for(var $e in Ue)if(!ae[$e])ae[$e]=Ue[$e];else if($e==="parameters"){var Be=ga(Ue[$e]),je;try{var We=function(){var Ge=je.value,rt=ae[$e].some(function(bt){return bt.name&&bt.name===Ge.name||bt.$ref&&bt.$ref===Ge.$ref||bt.$$ref&&bt.$$ref===Ge.$$ref||bt===Ge});rt||ae[$e].push(Ge)};for(Be.s();!(je=Be.n()).done;)We()}catch(Je){Be.e(Je)}finally{Be.f()}}}}catch(Je){Fe.e(Je)}finally{Fe.f()}}}};for(var w in p)var E=A(w)}}return r.$$normalized=!0,t}function zp(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.requestInterceptor,a=r.responseInterceptor,s=t.withCredentials?"include":"same-origin";return function(p){return t({url:p,loadSpec:!0,requestInterceptor:i,responseInterceptor:a,headers:{Accept:Op},credentials:s}).then(function(m){return m.body})}}function fy(){wa.refs.clearCache()}function Gp(t){var r=t.fetch,i=t.spec,a=t.url,s=t.mode,p=t.allowMetaPatches,m=p===void 0?!0:p,A=t.pathDiscriminator,w=t.modelPropertyMacro,E=t.parameterMacro,M=t.requestInterceptor,Y=t.responseInterceptor,ae=t.skipNormalization,ne=t.useCircularStructures,ue=t.http,ge=t.baseDoc;if(ge=ge||a,ue=r||ue||sf,!i)return zp(ue,{requestInterceptor:M,responseInterceptor:Y})(ge).then(he);return he(i);function he(Se){ge&&(wa.refs.docCache[ge]=Se),wa.refs.fetchJSON=zp(ue,{requestInterceptor:M,responseInterceptor:Y});var me=[wa.refs];return typeof E=="function"&&me.push(wa.parameters),typeof w=="function"&&me.push(wa.properties),s!=="strict"&&me.push(wa.allOf),oy({spec:Se,context:{baseDoc:ge},plugins:me,allowMetaPatches:m,pathDiscriminator:A,parameterMacro:E,modelPropertyMacro:w,useCircularStructures:ne}).then(ae?function(){var Fe=Pc(Li().mark(function Ke(Ue){return Li().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Be.abrupt("return",Ue);case 1:case"end":return Be.stop()}},Ke)}));return function(Ke){return Fe.apply(this,arguments)}}():Hp)}}var cy=o(27361),Cl=o.n(cy);function dy(t,r){return td.apply(this,arguments)}function td(){return td=Pc(Li().mark(function t(r,i){var a,s,p,m,A,w,E,M,Y,ae,ne,ue,ge=arguments;return Li().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return a=ge.length>2&&ge[2]!==void 0?ge[2]:{},s=a.returnEntireTree,p=a.baseDoc,m=a.requestInterceptor,A=a.responseInterceptor,w=a.parameterMacro,E=a.modelPropertyMacro,M=a.useCircularStructures,Y={pathDiscriminator:i,baseDoc:p,requestInterceptor:m,responseInterceptor:A,parameterMacro:w,modelPropertyMacro:E,useCircularStructures:M},ae=Hp({spec:r}),ne=ae.spec,Se.next=6,Gp(Cr(Cr({},Y),{},{spec:ne,allowMetaPatches:!0,skipNormalization:!0}));case 6:return ue=Se.sent,!s&&Array.isArray(i)&&i.length&&(ue.spec=Cl()(ue.spec,i)||null),Se.abrupt("return",ue);case 9:case"end":return Se.stop()}},t)})),td.apply(this,arguments)}var py=function(){return null},hy=function(r){return Array.isArray(r)?r:[r]},hf={mapTagOperations:yy,makeExecute:vy};function vy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var i=r.pathName,a=r.method,s=r.operationId;return function(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(Cr(Cr({spec:t.spec},kc()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:a,parameters:p,operationId:s},m))}}}function Um(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=hf.makeExecute(t),i=hf.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),a={};for(var s in i){a[s]={operations:{}};for(var p in i[s])a[s].operations[p]={execute:i[s][p]}}return{apis:a}}function gy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=hf.makeExecute(t);return{apis:hf.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function yy(t){var r=t.spec,i=t.cb,a=i===void 0?py:i,s=t.defaultTag,p=s===void 0?"default":s,m=t.v2OperationIdCompatibilityMode,A={},w={};return Wp(r,function(E){var M=E.pathName,Y=E.method,ae=E.operation,ne=ae.tags?hy(ae.tags):[p];ne.forEach(function(ue){if(typeof ue=="string"){w[ue]=w[ue]||{};var ge=w[ue],he=pf(ae,M,Y,{v2OperationIdCompatibilityMode:m}),Se=a({spec:r,pathName:M,method:Y,operation:ae,operationId:he});if(A[he]){var me;A[he]+=1,ge[Tt()(me="".concat(he)).call(me,A[he])]=Se}else if(typeof ge[he]!="undefined"){var Fe,Ke,Ue=A[he]||1;A[he]=Ue+1,ge[Tt()(Fe="".concat(he)).call(Fe,A[he])]=Se;var $e=ge[he];delete ge[he],ge[Tt()(Ke="".concat(he)).call(Ke,Ue)]=$e}else ge[he]=Se}})}),w}var $p=o(95683);function my(t,r){if(t==null)return{};var i={},a=Vd(t),s,p;for(p=0;p<a.length;p++)s=a[p],!($p(r).call(r,s)>=0)&&(i[s]=t[s]);return i}function xy(t,r){if(t==null)return{};var i=my(t,r),a,s;if(tf){var p=tf(t);for(s=0;s<p.length;s++)a=p[s],!($p(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,a)||(i[a]=t[a]))}return i}var by=o(68630),Kp=o.n(by),wy=o(1469),Sy=o.n(wy),Ay=o(76489);const Ey={body:Cy,header:Ty,query:Iy,path:Py,formData:Oy};function Cy(t){var r=t.req,i=t.value;r.body=i}function Oy(t){var r=t.req,i=t.value,a=t.parameter;(i||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:i,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Ty(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[i.name]=a)}function Py(t){var r=t.req,i=t.value,a=t.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(i))}function Iy(t){var r=t.req,i=t.value,a=t.parameter;if(r.query=r.query||{},i===!1&&a.type==="boolean"&&(i="false"),i===0&&["number","integer"].indexOf(a.type)>-1&&(i="0"),i)r.query[a.name]={collectionFormat:a.collectionFormat,value:i};else if(a.allowEmptyValue&&i!==void 0){var s=a.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function vf(t,r){return Ic()(r).call(r,"application/json")?typeof t=="string"?t:nf()(t):t.toString()}function Fy(t){var r=t.req,i=t.value,a=t.parameter,s=a.name,p=a.style,m=a.explode,A=a.content;if(A){var w=or()(A)[0];r.url=r.url.split("{".concat(s,"}")).join(hs(vf(i,w),{escape:!0}));return}var E=Dc({key:a.name,value:i,style:p||"simple",explode:m||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(E)}function ky(t){var r=t.req,i=t.value,a=t.parameter;if(r.query=r.query||{},a.content){var s=or()(a.content)[0];r.query[a.name]=vf(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[a.name]={value:i,serializationOption:kc()(a,["style","explode","allowReserved"])};else if(a.allowEmptyValue&&i!==void 0){var p=a.name;r.query[p]=r.query[p]||{},r.query[p].allowEmptyValue=!0}}var My=["accept","authorization","content-type"];function Ry(t){var r=t.req,i=t.parameter,a=t.value;if(r.headers=r.headers||{},!(My.indexOf(i.name.toLowerCase())>-1)){if(i.content){var s=or()(i.content)[0];r.headers[i.name]=vf(a,s);return}typeof a!="undefined"&&(r.headers[i.name]=Dc({key:i.name,value:a,style:i.style||"simple",explode:typeof i.explode=="undefined"?!1:i.explode,escape:!1}))}}function Ly(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{};var s=vr(a);if(i.content){var p,m=or()(i.content)[0];r.headers.Cookie=Tt()(p="".concat(i.name,"=")).call(p,vf(a,m));return}if(s!=="undefined"){var A=s==="object"&&!Array.isArray(a)&&i.explode?"":"".concat(i.name,"=");r.headers.Cookie=A+Dc({key:i.name,value:a,escape:!1,style:i.style||"form",explode:typeof i.explode=="undefined"?!1:i.explode})}}var Dy=o(50706),Yp=o.n(Dy);function Ny(t,r){var i=t.operation,a=t.requestBody,s=t.securities,p=t.spec,m=t.attachContentTypeForEmptyPayload,A=t.requestContentType;r=By({request:r,securities:s,operation:i,spec:p});var w=i.requestBody||{},E=or()(w.content||{}),M=A&&E.indexOf(A)>-1;if(a||m){if(A&&M)r.headers["Content-Type"]=A;else if(!A){var Y=E[0];Y&&(r.headers["Content-Type"]=Y,A=Y)}}else A&&M&&(r.headers["Content-Type"]=A);if(!t.responseContentType&&i.responses){var ae,ne=Ln()(ae=Qd()(i.responses)).call(ae,function(ge){var he=yi(ge,2),Se=he[0],me=he[1],Fe=parseInt(Se,10);return Fe>=200&&Fe<300&&Kp()(me.content)}).reduce(function(ge,he){var Se=yi(he,2),me=Se[1];return Tt()(ge).call(ge,or()(me.content))},[]);ne.length>0&&(r.headers.accept=ne.join(", "))}if(a)if(A){if(E.indexOf(A)>-1)if(A==="application/x-www-form-urlencoded"||A==="multipart/form-data")if(vr(a)==="object"){var ue=(w.content[A]||{}).encoding||{};r.form={},or()(a).forEach(function(ge){r.form[ge]={value:a[ge],encoding:ue[ge]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function By(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,m=t.spec,A=rf()({},r),w=a.authorized,E=w===void 0?{}:w,M=p.security||m.security||[],Y=E&&!!or()(E).length,ae=Cl()(m,["components","securitySchemes"])||{};return A.headers=A.headers||{},A.query=A.query||{},!or()(a).length||!Y||!M||Array.isArray(p.security)&&!p.security.length?r:(M.forEach(function(ne){or()(ne).forEach(function(ue){var ge=E[ue],he=ae[ue];if(!!ge){var Se=ge.value||ge,me=he.type;if(ge){if(me==="apiKey")he.in==="query"&&(A.query[he.name]=Se),he.in==="header"&&(A.headers[he.name]=Se),he.in==="cookie"&&(A.cookies[he.name]=Se);else if(me==="http"){if(/^basic$/i.test(he.scheme)){var Fe,Ke=Se.username||"",Ue=Se.password||"",$e=Yp()(Tt()(Fe="".concat(Ke,":")).call(Fe,Ue));A.headers.Authorization="Basic ".concat($e)}/^bearer$/i.test(he.scheme)&&(A.headers.Authorization="Bearer ".concat(Se))}else if(me==="oauth2"||me==="openIdConnect"){var Be,je=ge.token||{},We=he["x-tokenName"]||"access_token",Je=je[We],Ge=je.token_type;(!Ge||Ge.toLowerCase()==="bearer")&&(Ge="Bearer"),A.headers.Authorization=Tt()(Be="".concat(Ge," ")).call(Be,Je)}}}})}),A)}function Uy(t,r){var i=t.spec,a=t.operation,s=t.securities,p=t.requestContentType,m=t.responseContentType,A=t.attachContentTypeForEmptyPayload;if(r=jy({request:r,securities:s,operation:a,spec:i}),r.body||r.form||A){var w,E;if(p)r.headers["Content-Type"]=p;else if(Array.isArray(a.consumes)){var M=yi(a.consumes,1);r.headers["Content-Type"]=M[0]}else if(Array.isArray(i.consumes)){var Y=yi(i.consumes,1);r.headers["Content-Type"]=Y[0]}else a.parameters&&Ln()(w=a.parameters).call(w,function(he){return he.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&Ln()(E=a.parameters).call(E,function(he){return he.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(p){var ae,ne,ue=a.parameters&&Ln()(ae=a.parameters).call(ae,function(he){return he.in==="body"}).length>0,ge=a.parameters&&Ln()(ne=a.parameters).call(ne,function(he){return he.in==="formData"}).length>0;(ue||ge)&&(r.headers["Content-Type"]=p)}return!m&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function jy(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,m=t.spec,A=rf()({},r),w=a.authorized,E=w===void 0?{}:w,M=a.specSecurity,Y=M===void 0?[]:M,ae=p.security||Y,ne=E&&!!or()(E).length,ue=m.securityDefinitions;return A.headers=A.headers||{},A.query=A.query||{},!or()(a).length||!ne||!ae||Array.isArray(p.security)&&!p.security.length?r:(ae.forEach(function(ge){or()(ge).forEach(function(he){var Se=E[he];if(!!Se){var me=Se.token,Fe=Se.value||Se,Ke=ue[he],Ue=Ke.type,$e=Ke["x-tokenName"]||"access_token",Be=me&&me[$e],je=me&&me.token_type;if(Se){if(Ue==="apiKey"){var We=Ke.in==="query"?"query":"headers";A[We]=A[We]||{},A[We][Ke.name]=Fe}else if(Ue==="basic")if(Fe.header)A.headers.authorization=Fe.header;else{var Je,Ge=Fe.username||"",rt=Fe.password||"";Fe.base64=Yp()(Tt()(Je="".concat(Ge,":")).call(Je,rt)),A.headers.authorization="Basic ".concat(Fe.base64)}else if(Ue==="oauth2"&&Be){var bt;je=!je||je.toLowerCase()==="bearer"?"Bearer":je,A.headers.authorization=Tt()(bt="".concat(je," ")).call(bt,Be)}}}})}),A)}var Jp=function(r){return Array.isArray(r)?r:[]},Vy=Ep("OperationNotFoundError",function(r,i,a){this.originalError=a,mi()(this,i||{})}),Wy=function(r,i){return Ln()(i).call(i,function(a){return a.name===r})},Hy=function(r){var i={};r.forEach(function(s){i[s.in]||(i[s.in]={}),i[s.in][s.name]=s});var a=[];return or()(i).forEach(function(s){or()(i[s]).forEach(function(p){a.push(i[s][p])})}),a},zy={buildRequest:Xp};function Gy(t){var r=t.http,i=t.fetch,a=t.spec,s=t.operationId,p=t.pathName,m=t.method,A=t.parameters,w=t.securities,E=xy(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),M=r||i||sf;p&&m&&!s&&(s=Vp(p,m));var Y=zy.buildRequest(Cr({spec:a,operationId:s,parameters:A,securities:w,http:M},E));return Y.body&&(Kp()(Y.body)||Sy()(Y.body))&&(Y.body=nf()(Y.body)),M(Y)}function Xp(t){var r,i,a=t.spec,s=t.operationId,p=t.responseContentType,m=t.scheme,A=t.requestInterceptor,w=t.responseInterceptor,E=t.contextUrl,M=t.userFetch,Y=t.server,ae=t.serverVariables,ne=t.http,ue=t.parameters,ge=t.parameterBuilders,he=jp(a);ge||(he?ge=x:ge=Ey);var Se=ne&&ne.withCredentials?"include":"same-origin",me={url:"",credentials:Se,headers:{},cookies:{}};A&&(me.requestInterceptor=A),w&&(me.responseInterceptor=w),M&&(me.userFetch=M);var Fe=ly(a,s);if(!Fe)throw new Vy("Operation ".concat(s," not found"));var Ke=Fe.operation,Ue=Ke===void 0?{}:Ke,$e=Fe.method,Be=Fe.pathName;if(me.url+=Qp({spec:a,scheme:m,contextUrl:E,server:Y,serverVariables:ae,pathName:Be,method:$e}),!s)return delete me.cookies,me;me.url+=Be,me.method="".concat($e).toUpperCase(),ue=ue||{};var je=a.paths[Be]||{};p&&(me.headers.accept=p);var We=Hy(Tt()(r=Tt()(i=[]).call(i,Jp(Ue.parameters))).call(r,Jp(je.parameters)));We.forEach(function(rt){var bt=ge[rt.in],Dt;if(rt.in==="body"&&rt.schema&&rt.schema.properties&&(Dt=ue),Dt=rt&&rt.name&&ue[rt.name],typeof Dt=="undefined"){var Ht;Dt=rt&&rt.name&&ue[Tt()(Ht="".concat(rt.in,".")).call(Ht,rt.name)]}else if(Wy(rt.name,We).length>1){var lr;console.warn(Tt()(lr="Parameter '".concat(rt.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(lr,rt.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Dt!==null){if(typeof rt.default!="undefined"&&typeof Dt=="undefined"&&(Dt=rt.default),typeof Dt=="undefined"&&rt.required&&!rt.allowEmptyValue)throw new Error("Required parameter ".concat(rt.name," is not provided"));if(he&&rt.schema&&rt.schema.type==="object"&&typeof Dt=="string")try{Dt=JSON.parse(Dt)}catch(Mr){throw new Error("Could not parse object parameter value string as JSON")}bt&&bt({req:me,parameter:rt,value:Dt,operation:Ue,spec:a})}});var Je=Cr(Cr({},t),{},{operation:Ue});if(he?me=Ny(Je,me):me=Uy(Je,me),me.cookies&&or()(me.cookies).length){var Ge=or()(me.cookies).reduce(function(rt,bt){var Dt=me.cookies[bt],Ht=rt?"&":"",lr=Ay.serialize(bt,Dt);return rt+Ht+lr},"");me.headers.Cookie=Ge}return me.cookies&&delete me.cookies,up(me),me}var rd=function(r){return r?r.replace(/\W/g,""):null};function Qp(t){var r=jp(t.spec);return r?$y(t):Jy(t)}function $y(t){var r=t.spec,i=t.pathName,a=t.method,s=t.server,p=t.contextUrl,m=t.serverVariables,A=m===void 0?{}:m,w=Cl()(r,["paths",i,(a||"").toLowerCase(),"servers"])||Cl()(r,["paths",i,"servers"])||Cl()(r,["servers"]),E="",M=null;if(s&&w&&w.length){var Y=ir()(w).call(w,function(ue){return ue.url});Y.indexOf(s)>-1&&(E=s,M=w[Y.indexOf(s)])}if(!E&&w&&w.length){E=w[0].url;var ae=yi(w,1);M=ae[0]}if(E.indexOf("{")>-1){var ne=Yy(E);ne.forEach(function(ue){if(M.variables&&M.variables[ue]){var ge=M.variables[ue],he=A[ue]||ge.default,Se=new RegExp("{".concat(ue,"}"),"g");E=E.replace(Se,he)}})}return Ky(E,p)}function Ky(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t&&r?Uo.parse(Uo.resolve(r,t)):Uo.parse(t),a=Uo.parse(r),s=rd(i.protocol)||rd(a.protocol)||"",p=i.host||a.host,m=i.pathname||"",A;if(s&&p){var w;A=Tt()(w="".concat(s,"://")).call(w,p+m)}else A=m;return A[A.length-1]==="/"?Di()(A).call(A,0,-1):A}function Yy(t){for(var r=[],i=/{([^}]+)}/g,a;a=i.exec(t);)r.push(a[1]);return r}function Jy(t){var r=t.spec,i=t.scheme,a=t.contextUrl,s=a===void 0?"":a,p=Uo.parse(s),m=Array.isArray(r.schemes)?r.schemes[0]:null,A=i||m||rd(p.protocol)||"http",w=r.host||p.host||"",E=r.basePath||"",M;if(A&&w){var Y;M=Tt()(Y="".concat(A,"://")).call(Y,w+E)}else M=E;return M[M.length-1]==="/"?Di()(M).call(M,0,-1):M}Br.http=sf,Br.makeHttp=Hv.bind(null,Br.http),Br.resolve=Gp,Br.resolveSubtree=dy,Br.execute=Gy,Br.serializeRes=np,Br.serializeHeaders=ip,Br.clearCache=fy,Br.makeApisTagOperation=gy,Br.buildRequest=Xp,Br.helpers={opId:pf},Br.getBaseUrl=Qp;function Br(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string"?i.url=t:i=t,!(this instanceof Br))return new Br(i);rf()(this,i);var a=this.resolve().then(function(){return r.disableInterfaces||rf()(r,Br.makeApisTagOperation(r)),r});return a.client=this,a}Br.prototype={http:sf,execute:function(r){return this.applyDefaults(),Br.execute(Cr({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Br.resolve(Cr({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},i)).then(function(a){return r.originalSpec=r.spec,r.spec=a.spec,r.errors=a.errors,r})}},Br.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&$d()(i,"http")){var a=Uo.parse(i);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var jm=Br.helpers;const Xy=Br;var Qy=o(71057),Zy=o(72940),Zp=Object.defineProperty,_y=Object.defineProperties,qy=Object.getOwnPropertyDescriptor,em=Object.getOwnPropertyDescriptors,_p=Object.getOwnPropertySymbols,tm=Object.prototype.hasOwnProperty,rm=Object.prototype.propertyIsEnumerable,nd=(t,r,i)=>r in t?Zp(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Dn=(t,r)=>{for(var i in r||(r={}))tm.call(r,i)&&nd(t,i,r[i]);if(_p)for(var i of _p(r))rm.call(r,i)&&nd(t,i,r[i]);return t},Vo=(t,r)=>_y(t,em(r)),nm=(t,r,i,a)=>{for(var s=a>1?void 0:a?qy(r,i):r,p=t.length-1,m;p>=0;p--)(m=t[p])&&(s=(a?m(r,i,s):m(s))||s);return a&&s&&Zp(r,i,s),s},ys=(t,r,i)=>(nd(t,typeof r!="symbol"?r+"":r,i),i),qp=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});function eh(t){return t.startsWith("//")?"https:"+t:t}const im={flex:1,display:"flex",flexDirection:"column"};let id=class extends d.Component{constructor(t){super(t);ys(this,"formApi",null),ys(this,"setFormApi",r=>{this.formApi=r,setTimeout(()=>{this.setState({form:this.formApi.getState()})},0)}),ys(this,"handleChange",r=>{this.setState({form:r}),(0,Zr.Hc)(r)}),ys(this,"handleTabChange",r=>{this.setState({activeTab:r})}),ys(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),ys(this,"handleExecute",()=>qp(this,null,function*(){var r,i,a,s,p,m,A;const{store:w,operation:E,onResponse:M}=this.props;this.formApi.submitForm();const{values:Y,invalid:ae}=this.formApi.getState();if(ae){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(i=(r=w==null?void 0:w.options.events)==null?void 0:r.tryItSent)==null||i.call(r,{eventType:jd.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:E.operationId,operationPath:E.path,operationHttpVerb:E.httpVerb,operationSummary:E.description});return}const ne=this.props.operation.requestBody,ue=ne&&ne.content&&ne.content.active&&ne.content.active.name||"";let ge=Y.body;if(/json/.test(ue))try{ge=JSON.parse(ge)}catch(Ge){console.error(Ge)}this.setState({loading:!0});const he=this.state.resolvedRawSpec,Se=(0,zt.U2)(he,["paths",E.path,(E.httpVerb||"").toLowerCase(),"servers"])||(0,zt.U2)(he,["paths",E.path,"servers"])||(0,zt.U2)(he,["servers"]);if(!Se)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const me=Se.find(Ge=>this.state.server.url.endsWith(Ge.url.endsWith("/")?Ge.url.substring(0,Ge.url.length-1):Ge.url)),Fe=Date.now(),Ke=!!window.document.documentMode;let Ue,$e=Y.auth;if(Y.auth){const Ge=Object.keys(Y.auth)[0],rt=(0,zt.dw)(Ge);Ue=Vo(Dn({},he),{components:Vo(Dn({},he.components),{securitySchemes:Vo(Dn({},he.components.securitySchemes),{[rt]:Vo(Dn({},he.components.securitySchemes[rt]),{type:he.components.securitySchemes[rt].type==="openIdConnect"?"oauth2":he.components.securitySchemes[rt].type})})})}),$e=Vo(Dn({},$e),{[rt]:$e[Ge]})}else Ue=Dn({},he);const Be=w.options.corsProxyUrl;Be&&he.servers&&he.servers.length&&(Ue.servers=he.servers.map(Ge=>Vo(Dn({},Ge),{url:Be+eh(Ge.url)})));const je=((s=(a=ne==null?void 0:ne.content)==null?void 0:a.active)==null?void 0:s.name)||null;if(je&&ge&&as(je)){const Ge=Object.values(ge);ge=Ge.length>1?Ge:Ge[0]}const We=(Ge,rt)=>bt=>(this.props.store.options.sendXUserAgentInTryIt&&(bt.headers["X-User-Agent"]="Redocly Try it API console"),Ge?Ge(bt,rt):bt),Je={userFetch:Ke&&o(54098).fetch,server:Be?Be+eh(me.url):me.url,serverVariables:this.state.server.variables,spec:Ue,pathName:E.path,method:E.httpVerb,parameters:Dn(Dn(Dn(Dn({},Y.path),Y.query),Y.header),Y.cookie),securities:{authorized:$e},requestBody:ge,requestContentType:je,responseContentType:((p=Y.header)==null?void 0:p.Accept)||null,requestInterceptor:We(w.options.requestInterceptor,E)};try{const Ge=yield Xy.execute(Je);Ge&&Ge.data instanceof Blob&&(Ge.data=yield Ge.data.text()),M==null||M({request:Je,response:Ge}),this.setState({response:Ge,error:void 0})}catch(Ge){Ge&&Ge.response&&Ge.response.data instanceof Blob&&(Ge.response.data=yield Ge.response.data.text(),M==null||M({request:Je,response:Ge.response})),this.setState({response:void 0,error:Ge})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-Fe}),(A=(m=w==null?void 0:w.options.events)==null?void 0:m.tryItSent)==null||A.call(m,{eventType:jd.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:E.operationId,operationPath:E.path,operationHttpVerb:E.httpVerb,operationSummary:E.description})}})),this.state={form:{values:{path:(0,Zr.ZS)(t.operation.parameters,"path"),cookie:(0,Zr.ZS)(t.operation.parameters,"cookie"),header:(0,Zr.ZS)(t.operation.parameters,"header"),query:(0,Zr.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return qp(this,null,function*(){const{store:t,operation:r}=this.props,i=yield t.dereferenceSpecForTryIt(r);this.setState({resolvedRawSpec:i}),this.formApi.setValues({})})}componentDidUpdate(t){t.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:t,className:r,rootElement:i}=this.props,{shaking:a,activeTab:s,form:p,response:m,loading:A,error:w}=this.state,E=!!(m||w);return d.createElement(am,{shaking:a,className:r,rootElement:i},d.createElement(Xn.k1,null,d.createElement(n,{active:s,hasResponse:E,onChange:this.handleTabChange}),this.props.onClose&&d.createElement(Vi.PZ,{onClick:this.props.onClose}," \u2715 ")),d.createElement(Vi.RE,{hidden:s!==0},this.renderRequest()),d.createElement(Vi.RE,{hidden:s!==1},this.renderResponse()),d.createElement(Ms,{hasResponse:E,params:p.values,operation:t,loading:A,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:i,properties:a,securityDefaults:s}=this.props,{form:p,resolvedRawSpec:m,server:A}=this.state,w=p.errors||{},E=w.path||w.cookie||w.header||w.query,M=m&&jt.JsonPointer.get(m,r.pointer);let Y=p.values&&p.values.auth&&Object.keys(p.values.auth)[0];(!Y||!p.values.auth[Y])&&(Y=void 0),Y&&(p.values.auth[Y].token!==void 0||p.values.auth[Y].client_id!==void 0||p.values.auth[Y].client_secret!==void 0)&&(!p.values.auth[Y].token||!p.values.auth[Y].token.access_token)&&(Y=void 0),Y&&p.values.auth[Y].username!=null&&(!p.values.auth[Y].username||!p.values.auth[Y].password)&&(Y=void 0);const ae=r.parameters||[],ne=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!m&&"Loading..."||d.createElement(d.Fragment,null,d.createElement(Dl,{onChange:this.handleChange,getApi:this.setFormApi,style:Vo(Dn({},im),{margin:0})},d.createElement(Xn.UQ,{initialActiveIdx:r.security.length&&Y?1:0},r.security.length&&d.createElement(od,{header:(0,xl.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!Y&&!!w.auth,success:!!Y},ne?d.createElement(sm,{field:"auth",validate:ds},ue=>d.createElement(Qy.Q,{Hook:ne,props:{server:A,operation:r,onChange:ue,OAuth2:cr}})):d.createElement(Wh,{formApi:this.formApi,form:p,operation:r,activeServer:A.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&d.createElement(od,{header:(0,xl.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!w.body},d.createElement(yc,{validate:om,console:this,body:r.requestBody,id:r.id,resolvedBody:M.requestBody,properties:a}))||null,ae.length&&d.createElement(od,{header:(0,xl.l)("tryItParameters"),"data-cy":"parameters-trigger",error:E,renderChildrenHidden:!0},d.createElement(Ra,{operation:r,values:p.values,errors:p.errors||{}}))||null)),d.createElement(Ma,{operation:r,onChange:this.handleServerChange}))}renderResponse(){const{response:t,error:r,time:i}=this.state;return d.createElement(Uf,{response:t,error:r,time:i})}};id=nm([Ia.Pi],id);function om(){}function am(t){const{shaking:r,className:i,children:a,rootElement:s}=t,[p]=(0,zt.Bs)(s);return d.createElement(Vi.q2,{shaking:r,className:i,"data-cy":"console",fullWidth:p==null?void 0:p.width},a)}function sm(t){const{fieldApi:r,render:i,userProps:a}=$n(Dn({},t)),{setValue:s}=r,{children:p}=a;return i(d.createElement(d.Fragment,null,p(s)))}function od(t){const r=({toggle:i,expanded:a})=>d.createElement(Xn.h4,{onClick:i,isExpanded:a,"data-cy":t["data-cy"]},d.createElement(Xn.xz,null,d.createElement(Xn.Dx,null,t.header),d.createElement(jt.ShelfIcon,{direction:a?"down":"right"})),t.error&&d.createElement(jt.CrossIcon,{size:"14px",color:"#ff908b"})||null,t.success&&d.createElement(jt.LockIcon,{size:"14px",color:"#56ff26"})||null);return d.createElement(lm,Vo(Dn({},t),{header:r}))}const lm=(0,Ir.ZP)(Xn.s_)`
453
+ ${Xn.h4} {
459
454
  color: white;
460
455
  border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
461
456
  padding: 10px;
@@ -471,41 +466,41 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
471
466
  border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
472
467
  border-top: 0;
473
468
  }
474
- `},68929:()=>{},17648:h=>{"use strict";var I="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,c=Object.prototype.toString,v="[object Function]";h.exports=function(d){var b=this;if(typeof b!="function"||c.call(b)!==v)throw new TypeError(I+b);for(var A=o.call(arguments,1),g,L=function(){if(this instanceof g){var z=b.apply(this,A.concat(o.call(arguments)));return Object(z)===z?z:this}else return b.apply(d,A.concat(o.call(arguments)))},D=Math.max(0,b.length-A.length),B=[],U=0;U<D;U++)B.push("$"+U);if(g=Function("binder","return function ("+B.join(",")+"){ return binder.apply(this,arguments); }")(L),b.prototype){var _=function(){};_.prototype=b.prototype,g.prototype=new _,_.prototype=null}return g}},58612:(h,I,o)=>{"use strict";var c=o(17648);h.exports=Function.prototype.bind||c},40210:(h,I,o)=>{"use strict";var c,v=SyntaxError,x=Function,d=TypeError,b=function(me){try{return x('"use strict"; return ('+me+").constructor;")()}catch(ge){}},A=Object.getOwnPropertyDescriptor;if(A)try{A({},"")}catch(me){A=null}var g=function(){throw new d},L=A?function(){try{return arguments.callee,g}catch(me){try{return A(arguments,"callee").get}catch(ge){return g}}}():g,D=o(41405)(),B=Object.getPrototypeOf||function(me){return me.__proto__},U={},_=typeof Uint8Array=="undefined"?c:B(Uint8Array),z={"%AggregateError%":typeof AggregateError=="undefined"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?c:ArrayBuffer,"%ArrayIteratorPrototype%":D?B([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":U,"%AsyncGenerator%":U,"%AsyncGeneratorFunction%":U,"%AsyncIteratorPrototype%":U,"%Atomics%":typeof Atomics=="undefined"?c:Atomics,"%BigInt%":typeof BigInt=="undefined"?c:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?c:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?c:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?c:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?c:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":U,"%Int8Array%":typeof Int8Array=="undefined"?c:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?c:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":D?B(B([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map=="undefined"?c:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!D?c:B(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?c:Promise,"%Proxy%":typeof Proxy=="undefined"?c:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?c:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?c:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!D?c:B(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":D?B(""[Symbol.iterator]()):c,"%Symbol%":D?Symbol:c,"%SyntaxError%":v,"%ThrowTypeError%":L,"%TypedArray%":_,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array=="undefined"?c:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?c:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?c:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?c:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?c:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?c:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?c:WeakSet},k=function me(ge){var he;if(ge==="%AsyncFunction%")he=b("async function () {}");else if(ge==="%GeneratorFunction%")he=b("function* () {}");else if(ge==="%AsyncGeneratorFunction%")he=b("async function* () {}");else if(ge==="%AsyncGenerator%"){var ue=me("%AsyncGeneratorFunction%");ue&&(he=ue.prototype)}else if(ge==="%AsyncIteratorPrototype%"){var ie=me("%AsyncGenerator%");ie&&(he=B(ie.prototype))}return z[ge]=he,he},Q={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=o(58612),O=o(17642),V=M.call(Function.call,Array.prototype.concat),X=M.call(Function.apply,Array.prototype.splice),W=M.call(Function.call,String.prototype.replace),K=M.call(Function.call,String.prototype.slice),Z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ce=/\\(\\)?/g,te=function(ge){var he=K(ge,0,1),ue=K(ge,-1);if(he==="%"&&ue!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(ue==="%"&&he!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var ie=[];return W(ge,Z,function(Me,je,Ne,Re){ie[ie.length]=Ne?W(Re,ce,"$1"):je||Me}),ie},ae=function(ge,he){var ue=ge,ie;if(O(Q,ue)&&(ie=Q[ue],ue="%"+ie[0]+"%"),O(z,ue)){var Me=z[ue];if(Me===U&&(Me=k(ue)),typeof Me=="undefined"&&!he)throw new d("intrinsic "+ge+" exists, but is not available. Please file an issue!");return{alias:ie,name:ue,value:Me}}throw new v("intrinsic "+ge+" does not exist!")};h.exports=function(ge,he){if(typeof ge!="string"||ge.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof he!="boolean")throw new d('"allowMissing" argument must be a boolean');var ue=te(ge),ie=ue.length>0?ue[0]:"",Me=ae("%"+ie+"%",he),je=Me.name,Ne=Me.value,Re=!1,rt=Me.alias;rt&&(ie=rt[0],X(ue,V([0,1],rt)));for(var Qe=1,Je=!0;Qe<ue.length;Qe+=1){var ut=ue[Qe],pt=K(ut,0,1),gt=K(ut,-1);if((pt==='"'||pt==="'"||pt==="`"||gt==='"'||gt==="'"||gt==="`")&&pt!==gt)throw new v("property names with quotes must have matching quotes");if((ut==="constructor"||!Je)&&(Re=!0),ie+="."+ut,je="%"+ie+"%",O(z,je))Ne=z[je];else if(Ne!=null){if(!(ut in Ne)){if(!he)throw new d("base intrinsic for "+ge+" exists, but the property is not available.");return}if(A&&Qe+1>=ue.length){var _e=A(Ne,ut);Je=!!_e,Je&&"get"in _e&&!("originalValue"in _e.get)?Ne=_e.get:Ne=Ne[ut]}else Je=O(Ne,ut),Ne=Ne[ut];Je&&!Re&&(z[je]=Ne)}}return Ne}},41405:(h,I,o)=>{"use strict";var c=typeof Symbol!="undefined"&&Symbol,v=o(55419);h.exports=function(){return typeof c!="function"||typeof Symbol!="function"||typeof c("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:v()}},55419:h=>{"use strict";h.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},c=Symbol("test"),v=Object(c);if(typeof c=="string"||Object.prototype.toString.call(c)!=="[object Symbol]"||Object.prototype.toString.call(v)!=="[object Symbol]")return!1;var x=42;o[c]=x;for(c in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var d=Object.getOwnPropertySymbols(o);if(d.length!==1||d[0]!==c||!Object.prototype.propertyIsEnumerable.call(o,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var b=Object.getOwnPropertyDescriptor(o,c);if(b.value!==x||b.enumerable!==!0)return!1}return!0}},17642:(h,I,o)=>{"use strict";var c=o(58612);h.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},80645:(h,I)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */I.read=function(o,c,v,x,d){var b,A,g=d*8-x-1,L=(1<<g)-1,D=L>>1,B=-7,U=v?d-1:0,_=v?-1:1,z=o[c+U];for(U+=_,b=z&(1<<-B)-1,z>>=-B,B+=g;B>0;b=b*256+o[c+U],U+=_,B-=8);for(A=b&(1<<-B)-1,b>>=-B,B+=x;B>0;A=A*256+o[c+U],U+=_,B-=8);if(b===0)b=1-D;else{if(b===L)return A?NaN:(z?-1:1)*(1/0);A=A+Math.pow(2,x),b=b-D}return(z?-1:1)*A*Math.pow(2,b-x)},I.write=function(o,c,v,x,d,b){var A,g,L,D=b*8-d-1,B=(1<<D)-1,U=B>>1,_=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,z=x?0:b-1,k=x?1:-1,Q=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(g=isNaN(c)?1:0,A=B):(A=Math.floor(Math.log(c)/Math.LN2),c*(L=Math.pow(2,-A))<1&&(A--,L*=2),A+U>=1?c+=_/L:c+=_*Math.pow(2,1-U),c*L>=2&&(A++,L/=2),A+U>=B?(g=0,A=B):A+U>=1?(g=(c*L-1)*Math.pow(2,d),A=A+U):(g=c*Math.pow(2,U-1)*Math.pow(2,d),A=0));d>=8;o[v+z]=g&255,z+=k,g/=256,d-=8);for(A=A<<d|g,D+=d;D>0;o[v+z]=A&255,z+=k,A/=256,D-=8);o[v+z-k]|=Q*128}},5826:h=>{var I={}.toString;h.exports=Array.isArray||function(o){return I.call(o)=="[object Array]"}},57514:h=>{h.exports=window.FormData},93320:(h,I,o)=>{"use strict";var c=o(51294);h.exports=c},51294:(h,I,o)=>{"use strict";var c=o(40028),v=o(96157);function x(d){return function(){throw new Error("Function "+d+" is deprecated and cannot be used.")}}h.exports.Type=o(53899),h.exports.Schema=o(82409),h.exports.FAILSAFE_SCHEMA=o(75322),h.exports.JSON_SCHEMA=o(65796),h.exports.CORE_SCHEMA=o(17318),h.exports.DEFAULT_SAFE_SCHEMA=o(5972),h.exports.DEFAULT_FULL_SCHEMA=o(19321),h.exports.load=c.load,h.exports.loadAll=c.loadAll,h.exports.safeLoad=c.safeLoad,h.exports.safeLoadAll=c.safeLoadAll,h.exports.dump=v.dump,h.exports.safeDump=v.safeDump,h.exports.YAMLException=o(14884),h.exports.MINIMAL_SCHEMA=o(75322),h.exports.SAFE_SCHEMA=o(5972),h.exports.DEFAULT_SCHEMA=o(19321),h.exports.scan=x("scan"),h.exports.parse=x("parse"),h.exports.compose=x("compose"),h.exports.addConstructor=x("addConstructor")},25596:h=>{"use strict";function I(b){return typeof b=="undefined"||b===null}function o(b){return typeof b=="object"&&b!==null}function c(b){return Array.isArray(b)?b:I(b)?[]:[b]}function v(b,A){var g,L,D,B;if(A)for(B=Object.keys(A),g=0,L=B.length;g<L;g+=1)D=B[g],b[D]=A[D];return b}function x(b,A){var g="",L;for(L=0;L<A;L+=1)g+=b;return g}function d(b){return b===0&&Number.NEGATIVE_INFINITY===1/b}h.exports.isNothing=I,h.exports.isObject=o,h.exports.toArray=c,h.exports.repeat=x,h.exports.isNegativeZero=d,h.exports.extend=v},96157:(h,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(19321),d=o(5972),b=Object.prototype.toString,A=Object.prototype.hasOwnProperty,g=9,L=10,D=13,B=32,U=33,_=34,z=35,k=37,Q=38,M=39,O=42,V=44,X=45,W=58,K=61,Z=62,ce=63,te=64,ae=91,me=93,ge=96,he=123,ue=124,ie=125,Me={};Me[0]="\\0",Me[7]="\\a",Me[8]="\\b",Me[9]="\\t",Me[10]="\\n",Me[11]="\\v",Me[12]="\\f",Me[13]="\\r",Me[27]="\\e",Me[34]='\\"',Me[92]="\\\\",Me[133]="\\N",Me[160]="\\_",Me[8232]="\\L",Me[8233]="\\P";var je=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Ne(N,ee){var fe,Oe,Pe,Te,ze,He,it;if(ee===null)return{};for(fe={},Oe=Object.keys(ee),Pe=0,Te=Oe.length;Pe<Te;Pe+=1)ze=Oe[Pe],He=String(ee[ze]),ze.slice(0,2)==="!!"&&(ze="tag:yaml.org,2002:"+ze.slice(2)),it=N.compiledTypeMap.fallback[ze],it&&A.call(it.styleAliases,He)&&(He=it.styleAliases[He]),fe[ze]=He;return fe}function Re(N){var ee,fe,Oe;if(ee=N.toString(16).toUpperCase(),N<=255)fe="x",Oe=2;else if(N<=65535)fe="u",Oe=4;else if(N<=4294967295)fe="U",Oe=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+fe+c.repeat("0",Oe-ee.length)+ee}function rt(N){this.schema=N.schema||x,this.indent=Math.max(1,N.indent||2),this.noArrayIndent=N.noArrayIndent||!1,this.skipInvalid=N.skipInvalid||!1,this.flowLevel=c.isNothing(N.flowLevel)?-1:N.flowLevel,this.styleMap=Ne(this.schema,N.styles||null),this.sortKeys=N.sortKeys||!1,this.lineWidth=N.lineWidth||80,this.noRefs=N.noRefs||!1,this.noCompatMode=N.noCompatMode||!1,this.condenseFlow=N.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Qe(N,ee){for(var fe=c.repeat(" ",ee),Oe=0,Pe=-1,Te="",ze,He=N.length;Oe<He;)Pe=N.indexOf(`
475
- `,Oe),Pe===-1?(ze=N.slice(Oe),Oe=He):(ze=N.slice(Oe,Pe+1),Oe=Pe+1),ze.length&&ze!==`
476
- `&&(Te+=fe),Te+=ze;return Te}function Je(N,ee){return`
477
- `+c.repeat(" ",N.indent*ee)}function ut(N,ee){var fe,Oe,Pe;for(fe=0,Oe=N.implicitTypes.length;fe<Oe;fe+=1)if(Pe=N.implicitTypes[fe],Pe.resolve(ee))return!0;return!1}function pt(N){return N===B||N===g}function gt(N){return 32<=N&&N<=126||161<=N&&N<=55295&&N!==8232&&N!==8233||57344<=N&&N<=65533&&N!==65279||65536<=N&&N<=1114111}function _e(N){return gt(N)&&!pt(N)&&N!==65279&&N!==D&&N!==L}function lt(N,ee){return gt(N)&&N!==65279&&N!==V&&N!==ae&&N!==me&&N!==he&&N!==ie&&N!==W&&(N!==z||ee&&_e(ee))}function ht(N){return gt(N)&&N!==65279&&!pt(N)&&N!==X&&N!==ce&&N!==W&&N!==V&&N!==ae&&N!==me&&N!==he&&N!==ie&&N!==z&&N!==Q&&N!==O&&N!==U&&N!==ue&&N!==K&&N!==Z&&N!==M&&N!==_&&N!==k&&N!==te&&N!==ge}function yt(N){var ee=/^\n* /;return ee.test(N)}var dt=1,It=2,Ft=3,St=4,Wt=5;function Ut(N,ee,fe,Oe,Pe){var Te,ze,He,it=!1,vt=!1,Ct=Oe!==-1,Yt=-1,kt=ht(N.charCodeAt(0))&&!pt(N.charCodeAt(N.length-1));if(ee)for(Te=0;Te<N.length;Te++){if(ze=N.charCodeAt(Te),!gt(ze))return Wt;He=Te>0?N.charCodeAt(Te-1):null,kt=kt&&lt(ze,He)}else{for(Te=0;Te<N.length;Te++){if(ze=N.charCodeAt(Te),ze===L)it=!0,Ct&&(vt=vt||Te-Yt-1>Oe&&N[Yt+1]!==" ",Yt=Te);else if(!gt(ze))return Wt;He=Te>0?N.charCodeAt(Te-1):null,kt=kt&&lt(ze,He)}vt=vt||Ct&&Te-Yt-1>Oe&&N[Yt+1]!==" "}return!it&&!vt?kt&&!Pe(N)?dt:It:fe>9&&yt(N)?Wt:vt?St:Ft}function Gt(N,ee,fe,Oe){N.dump=function(){if(ee.length===0)return"''";if(!N.noCompatMode&&je.indexOf(ee)!==-1)return"'"+ee+"'";var Pe=N.indent*Math.max(1,fe),Te=N.lineWidth===-1?-1:Math.max(Math.min(N.lineWidth,40),N.lineWidth-Pe),ze=Oe||N.flowLevel>-1&&fe>=N.flowLevel;function He(it){return ut(N,it)}switch(Ut(ee,ze,N.indent,Te,He)){case dt:return ee;case It:return"'"+ee.replace(/'/g,"''")+"'";case Ft:return"|"+wt(ee,N.indent)+Mt(Qe(ee,Pe));case St:return">"+wt(ee,N.indent)+Mt(Qe(de(ee,Te),Pe));case Wt:return'"'+Y(ee,Te)+'"';default:throw new v("impossible error: invalid scalar style")}}()}function wt(N,ee){var fe=yt(N)?String(ee):"",Oe=N[N.length-1]===`
478
- `,Pe=Oe&&(N[N.length-2]===`
479
- `||N===`
480
- `),Te=Pe?"+":Oe?"":"-";return fe+Te+`
481
- `}function Mt(N){return N[N.length-1]===`
482
- `?N.slice(0,-1):N}function de(N,ee){for(var fe=/(\n+)([^\n]*)/g,Oe=function(){var vt=N.indexOf(`
483
- `);return vt=vt!==-1?vt:N.length,fe.lastIndex=vt,$(N.slice(0,vt),ee)}(),Pe=N[0]===`
484
- `||N[0]===" ",Te,ze;ze=fe.exec(N);){var He=ze[1],it=ze[2];Te=it[0]===" ",Oe+=He+(!Pe&&!Te&&it!==""?`
485
- `:"")+$(it,ee),Pe=Te}return Oe}function $(N,ee){if(N===""||N[0]===" ")return N;for(var fe=/ [^ ]/g,Oe,Pe=0,Te,ze=0,He=0,it="";Oe=fe.exec(N);)He=Oe.index,He-Pe>ee&&(Te=ze>Pe?ze:He,it+=`
486
- `+N.slice(Pe,Te),Pe=Te+1),ze=He;return it+=`
487
- `,N.length-Pe>ee&&ze>Pe?it+=N.slice(Pe,ze)+`
488
- `+N.slice(ze+1):it+=N.slice(Pe),it.slice(1)}function Y(N){for(var ee="",fe,Oe,Pe,Te=0;Te<N.length;Te++){if(fe=N.charCodeAt(Te),fe>=55296&&fe<=56319&&(Oe=N.charCodeAt(Te+1),Oe>=56320&&Oe<=57343)){ee+=Re((fe-55296)*1024+Oe-56320+65536),Te++;continue}Pe=Me[fe],ee+=!Pe&&gt(fe)?N[Te]:Pe||Re(fe)}return ee}function we(N,ee,fe){var Oe="",Pe=N.tag,Te,ze;for(Te=0,ze=fe.length;Te<ze;Te+=1)Ie(N,ee,fe[Te],!1,!1)&&(Te!==0&&(Oe+=","+(N.condenseFlow?"":" ")),Oe+=N.dump);N.tag=Pe,N.dump="["+Oe+"]"}function ke(N,ee,fe,Oe){var Pe="",Te=N.tag,ze,He;for(ze=0,He=fe.length;ze<He;ze+=1)Ie(N,ee+1,fe[ze],!0,!0)&&((!Oe||ze!==0)&&(Pe+=Je(N,ee)),N.dump&&L===N.dump.charCodeAt(0)?Pe+="-":Pe+="- ",Pe+=N.dump);N.tag=Te,N.dump=Pe||"[]"}function be(N,ee,fe){var Oe="",Pe=N.tag,Te=Object.keys(fe),ze,He,it,vt,Ct;for(ze=0,He=Te.length;ze<He;ze+=1)Ct="",ze!==0&&(Ct+=", "),N.condenseFlow&&(Ct+='"'),it=Te[ze],vt=fe[it],!!Ie(N,ee,it,!1,!1)&&(N.dump.length>1024&&(Ct+="? "),Ct+=N.dump+(N.condenseFlow?'"':"")+":"+(N.condenseFlow?"":" "),!!Ie(N,ee,vt,!1,!1)&&(Ct+=N.dump,Oe+=Ct));N.tag=Pe,N.dump="{"+Oe+"}"}function Ae(N,ee,fe,Oe){var Pe="",Te=N.tag,ze=Object.keys(fe),He,it,vt,Ct,Yt,kt;if(N.sortKeys===!0)ze.sort();else if(typeof N.sortKeys=="function")ze.sort(N.sortKeys);else if(N.sortKeys)throw new v("sortKeys must be a boolean or a function");for(He=0,it=ze.length;He<it;He+=1)kt="",(!Oe||He!==0)&&(kt+=Je(N,ee)),vt=ze[He],Ct=fe[vt],!!Ie(N,ee+1,vt,!0,!0,!0)&&(Yt=N.tag!==null&&N.tag!=="?"||N.dump&&N.dump.length>1024,Yt&&(N.dump&&L===N.dump.charCodeAt(0)?kt+="?":kt+="? "),kt+=N.dump,Yt&&(kt+=Je(N,ee)),!!Ie(N,ee+1,Ct,!0,Yt)&&(N.dump&&L===N.dump.charCodeAt(0)?kt+=":":kt+=": ",kt+=N.dump,Pe+=kt));N.tag=Te,N.dump=Pe||"{}"}function T(N,ee,fe){var Oe,Pe,Te,ze,He,it;for(Pe=fe?N.explicitTypes:N.implicitTypes,Te=0,ze=Pe.length;Te<ze;Te+=1)if(He=Pe[Te],(He.instanceOf||He.predicate)&&(!He.instanceOf||typeof ee=="object"&&ee instanceof He.instanceOf)&&(!He.predicate||He.predicate(ee))){if(N.tag=fe?He.tag:"?",He.represent){if(it=N.styleMap[He.tag]||He.defaultStyle,b.call(He.represent)==="[object Function]")Oe=He.represent(ee,it);else if(A.call(He.represent,it))Oe=He.represent[it](ee,it);else throw new v("!<"+He.tag+'> tag resolver accepts not "'+it+'" style');N.dump=Oe}return!0}return!1}function Ie(N,ee,fe,Oe,Pe,Te){N.tag=null,N.dump=fe,T(N,fe,!1)||T(N,fe,!0);var ze=b.call(N.dump);Oe&&(Oe=N.flowLevel<0||N.flowLevel>ee);var He=ze==="[object Object]"||ze==="[object Array]",it,vt;if(He&&(it=N.duplicates.indexOf(fe),vt=it!==-1),(N.tag!==null&&N.tag!=="?"||vt||N.indent!==2&&ee>0)&&(Pe=!1),vt&&N.usedDuplicates[it])N.dump="*ref_"+it;else{if(He&&vt&&!N.usedDuplicates[it]&&(N.usedDuplicates[it]=!0),ze==="[object Object]")Oe&&Object.keys(N.dump).length!==0?(Ae(N,ee,N.dump,Pe),vt&&(N.dump="&ref_"+it+N.dump)):(be(N,ee,N.dump),vt&&(N.dump="&ref_"+it+" "+N.dump));else if(ze==="[object Array]"){var Ct=N.noArrayIndent&&ee>0?ee-1:ee;Oe&&N.dump.length!==0?(ke(N,Ct,N.dump,Pe),vt&&(N.dump="&ref_"+it+N.dump)):(we(N,Ct,N.dump),vt&&(N.dump="&ref_"+it+" "+N.dump))}else if(ze==="[object String]")N.tag!=="?"&&Gt(N,N.dump,ee,Te);else{if(N.skipInvalid)return!1;throw new v("unacceptable kind of an object to dump "+ze)}N.tag!==null&&N.tag!=="?"&&(N.dump="!<"+N.tag+"> "+N.dump)}return!0}function H(N,ee){var fe=[],Oe=[],Pe,Te;for(C(N,fe,Oe),Pe=0,Te=Oe.length;Pe<Te;Pe+=1)ee.duplicates.push(fe[Oe[Pe]]);ee.usedDuplicates=new Array(Te)}function C(N,ee,fe){var Oe,Pe,Te;if(N!==null&&typeof N=="object")if(Pe=ee.indexOf(N),Pe!==-1)fe.indexOf(Pe)===-1&&fe.push(Pe);else if(ee.push(N),Array.isArray(N))for(Pe=0,Te=N.length;Pe<Te;Pe+=1)C(N[Pe],ee,fe);else for(Oe=Object.keys(N),Pe=0,Te=Oe.length;Pe<Te;Pe+=1)C(N[Oe[Pe]],ee,fe)}function P(N,ee){ee=ee||{};var fe=new rt(ee);return fe.noRefs||H(N,fe),Ie(fe,0,N,!0,!0)?fe.dump+`
489
- `:""}function ne(N,ee){return P(N,c.extend({schema:d},ee))}h.exports.dump=P,h.exports.safeDump=ne},14884:h=>{"use strict";function I(o,c){Error.call(this),this.name="YAMLException",this.reason=o,this.mark=c,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}I.prototype=Object.create(Error.prototype),I.prototype.constructor=I,I.prototype.toString=function(c){var v=this.name+": ";return v+=this.reason||"(unknown reason)",!c&&this.mark&&(v+=" "+this.mark.toString()),v},h.exports=I},40028:(h,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(77334),d=o(5972),b=o(19321),A=Object.prototype.hasOwnProperty,g=1,L=2,D=3,B=4,U=1,_=2,z=3,k=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Q=/[\x85\u2028\u2029]/,M=/[,\[\]\{\}]/,O=/^(?:!|!!|![a-z\-]+!)$/i,V=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function X(T){return Object.prototype.toString.call(T)}function W(T){return T===10||T===13}function K(T){return T===9||T===32}function Z(T){return T===9||T===32||T===10||T===13}function ce(T){return T===44||T===91||T===93||T===123||T===125}function te(T){var Ie;return 48<=T&&T<=57?T-48:(Ie=T|32,97<=Ie&&Ie<=102?Ie-97+10:-1)}function ae(T){return T===120?2:T===117?4:T===85?8:0}function me(T){return 48<=T&&T<=57?T-48:-1}function ge(T){return T===48?"\0":T===97?"\x07":T===98?"\b":T===116||T===9?" ":T===110?`
490
- `:T===118?"\v":T===102?"\f":T===114?"\r":T===101?"":T===32?" ":T===34?'"':T===47?"/":T===92?"\\":T===78?"\x85":T===95?"\xA0":T===76?"\u2028":T===80?"\u2029":""}function he(T){return T<=65535?String.fromCharCode(T):String.fromCharCode((T-65536>>10)+55296,(T-65536&1023)+56320)}for(var ue=new Array(256),ie=new Array(256),Me=0;Me<256;Me++)ue[Me]=ge(Me)?1:0,ie[Me]=ge(Me);function je(T,Ie){this.input=T,this.filename=Ie.filename||null,this.schema=Ie.schema||b,this.onWarning=Ie.onWarning||null,this.legacy=Ie.legacy||!1,this.json=Ie.json||!1,this.listener=Ie.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=T.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Ne(T,Ie){return new v(Ie,new x(T.filename,T.input,T.position,T.line,T.position-T.lineStart))}function Re(T,Ie){throw Ne(T,Ie)}function rt(T,Ie){T.onWarning&&T.onWarning.call(null,Ne(T,Ie))}var Qe={YAML:function(Ie,H,C){var P,ne,N;Ie.version!==null&&Re(Ie,"duplication of %YAML directive"),C.length!==1&&Re(Ie,"YAML directive accepts exactly one argument"),P=/^([0-9]+)\.([0-9]+)$/.exec(C[0]),P===null&&Re(Ie,"ill-formed argument of the YAML directive"),ne=parseInt(P[1],10),N=parseInt(P[2],10),ne!==1&&Re(Ie,"unacceptable YAML version of the document"),Ie.version=C[0],Ie.checkLineBreaks=N<2,N!==1&&N!==2&&rt(Ie,"unsupported YAML version of the document")},TAG:function(Ie,H,C){var P,ne;C.length!==2&&Re(Ie,"TAG directive accepts exactly two arguments"),P=C[0],ne=C[1],O.test(P)||Re(Ie,"ill-formed tag handle (first argument) of the TAG directive"),A.call(Ie.tagMap,P)&&Re(Ie,'there is a previously declared suffix for "'+P+'" tag handle'),V.test(ne)||Re(Ie,"ill-formed tag prefix (second argument) of the TAG directive"),Ie.tagMap[P]=ne}};function Je(T,Ie,H,C){var P,ne,N,ee;if(Ie<H){if(ee=T.input.slice(Ie,H),C)for(P=0,ne=ee.length;P<ne;P+=1)N=ee.charCodeAt(P),N===9||32<=N&&N<=1114111||Re(T,"expected valid JSON character");else k.test(ee)&&Re(T,"the stream contains non-printable characters");T.result+=ee}}function ut(T,Ie,H,C){var P,ne,N,ee;for(c.isObject(H)||Re(T,"cannot merge mappings; the provided source object is unacceptable"),P=Object.keys(H),N=0,ee=P.length;N<ee;N+=1)ne=P[N],A.call(Ie,ne)||(Ie[ne]=H[ne],C[ne]=!0)}function pt(T,Ie,H,C,P,ne,N,ee){var fe,Oe;if(Array.isArray(P))for(P=Array.prototype.slice.call(P),fe=0,Oe=P.length;fe<Oe;fe+=1)Array.isArray(P[fe])&&Re(T,"nested arrays are not supported inside keys"),typeof P=="object"&&X(P[fe])==="[object Object]"&&(P[fe]="[object Object]");if(typeof P=="object"&&X(P)==="[object Object]"&&(P="[object Object]"),P=String(P),Ie===null&&(Ie={}),C==="tag:yaml.org,2002:merge")if(Array.isArray(ne))for(fe=0,Oe=ne.length;fe<Oe;fe+=1)ut(T,Ie,ne[fe],H);else ut(T,Ie,ne,H);else!T.json&&!A.call(H,P)&&A.call(Ie,P)&&(T.line=N||T.line,T.position=ee||T.position,Re(T,"duplicated mapping key")),Ie[P]=ne,delete H[P];return Ie}function gt(T){var Ie;Ie=T.input.charCodeAt(T.position),Ie===10?T.position++:Ie===13?(T.position++,T.input.charCodeAt(T.position)===10&&T.position++):Re(T,"a line break is expected"),T.line+=1,T.lineStart=T.position}function _e(T,Ie,H){for(var C=0,P=T.input.charCodeAt(T.position);P!==0;){for(;K(P);)P=T.input.charCodeAt(++T.position);if(Ie&&P===35)do P=T.input.charCodeAt(++T.position);while(P!==10&&P!==13&&P!==0);if(W(P))for(gt(T),P=T.input.charCodeAt(T.position),C++,T.lineIndent=0;P===32;)T.lineIndent++,P=T.input.charCodeAt(++T.position);else break}return H!==-1&&C!==0&&T.lineIndent<H&&rt(T,"deficient indentation"),C}function lt(T){var Ie=T.position,H;return H=T.input.charCodeAt(Ie),!!((H===45||H===46)&&H===T.input.charCodeAt(Ie+1)&&H===T.input.charCodeAt(Ie+2)&&(Ie+=3,H=T.input.charCodeAt(Ie),H===0||Z(H)))}function ht(T,Ie){Ie===1?T.result+=" ":Ie>1&&(T.result+=c.repeat(`
491
- `,Ie-1))}function yt(T,Ie,H){var C,P,ne,N,ee,fe,Oe,Pe,Te=T.kind,ze=T.result,He;if(He=T.input.charCodeAt(T.position),Z(He)||ce(He)||He===35||He===38||He===42||He===33||He===124||He===62||He===39||He===34||He===37||He===64||He===96||(He===63||He===45)&&(P=T.input.charCodeAt(T.position+1),Z(P)||H&&ce(P)))return!1;for(T.kind="scalar",T.result="",ne=N=T.position,ee=!1;He!==0;){if(He===58){if(P=T.input.charCodeAt(T.position+1),Z(P)||H&&ce(P))break}else if(He===35){if(C=T.input.charCodeAt(T.position-1),Z(C))break}else{if(T.position===T.lineStart&&lt(T)||H&&ce(He))break;if(W(He))if(fe=T.line,Oe=T.lineStart,Pe=T.lineIndent,_e(T,!1,-1),T.lineIndent>=Ie){ee=!0,He=T.input.charCodeAt(T.position);continue}else{T.position=N,T.line=fe,T.lineStart=Oe,T.lineIndent=Pe;break}}ee&&(Je(T,ne,N,!1),ht(T,T.line-fe),ne=N=T.position,ee=!1),K(He)||(N=T.position+1),He=T.input.charCodeAt(++T.position)}return Je(T,ne,N,!1),T.result?!0:(T.kind=Te,T.result=ze,!1)}function dt(T,Ie){var H,C,P;if(H=T.input.charCodeAt(T.position),H!==39)return!1;for(T.kind="scalar",T.result="",T.position++,C=P=T.position;(H=T.input.charCodeAt(T.position))!==0;)if(H===39)if(Je(T,C,T.position,!0),H=T.input.charCodeAt(++T.position),H===39)C=T.position,T.position++,P=T.position;else return!0;else W(H)?(Je(T,C,P,!0),ht(T,_e(T,!1,Ie)),C=P=T.position):T.position===T.lineStart&&lt(T)?Re(T,"unexpected end of the document within a single quoted scalar"):(T.position++,P=T.position);Re(T,"unexpected end of the stream within a single quoted scalar")}function It(T,Ie){var H,C,P,ne,N,ee;if(ee=T.input.charCodeAt(T.position),ee!==34)return!1;for(T.kind="scalar",T.result="",T.position++,H=C=T.position;(ee=T.input.charCodeAt(T.position))!==0;){if(ee===34)return Je(T,H,T.position,!0),T.position++,!0;if(ee===92){if(Je(T,H,T.position,!0),ee=T.input.charCodeAt(++T.position),W(ee))_e(T,!1,Ie);else if(ee<256&&ue[ee])T.result+=ie[ee],T.position++;else if((N=ae(ee))>0){for(P=N,ne=0;P>0;P--)ee=T.input.charCodeAt(++T.position),(N=te(ee))>=0?ne=(ne<<4)+N:Re(T,"expected hexadecimal character");T.result+=he(ne),T.position++}else Re(T,"unknown escape sequence");H=C=T.position}else W(ee)?(Je(T,H,C,!0),ht(T,_e(T,!1,Ie)),H=C=T.position):T.position===T.lineStart&&lt(T)?Re(T,"unexpected end of the document within a double quoted scalar"):(T.position++,C=T.position)}Re(T,"unexpected end of the stream within a double quoted scalar")}function Ft(T,Ie){var H=!0,C,P=T.tag,ne,N=T.anchor,ee,fe,Oe,Pe,Te,ze={},He,it,vt,Ct;if(Ct=T.input.charCodeAt(T.position),Ct===91)fe=93,Te=!1,ne=[];else if(Ct===123)fe=125,Te=!0,ne={};else return!1;for(T.anchor!==null&&(T.anchorMap[T.anchor]=ne),Ct=T.input.charCodeAt(++T.position);Ct!==0;){if(_e(T,!0,Ie),Ct=T.input.charCodeAt(T.position),Ct===fe)return T.position++,T.tag=P,T.anchor=N,T.kind=Te?"mapping":"sequence",T.result=ne,!0;H||Re(T,"missed comma between flow collection entries"),it=He=vt=null,Oe=Pe=!1,Ct===63&&(ee=T.input.charCodeAt(T.position+1),Z(ee)&&(Oe=Pe=!0,T.position++,_e(T,!0,Ie))),C=T.line,de(T,Ie,g,!1,!0),it=T.tag,He=T.result,_e(T,!0,Ie),Ct=T.input.charCodeAt(T.position),(Pe||T.line===C)&&Ct===58&&(Oe=!0,Ct=T.input.charCodeAt(++T.position),_e(T,!0,Ie),de(T,Ie,g,!1,!0),vt=T.result),Te?pt(T,ne,ze,it,He,vt):Oe?ne.push(pt(T,null,ze,it,He,vt)):ne.push(He),_e(T,!0,Ie),Ct=T.input.charCodeAt(T.position),Ct===44?(H=!0,Ct=T.input.charCodeAt(++T.position)):H=!1}Re(T,"unexpected end of the stream within a flow collection")}function St(T,Ie){var H,C,P=U,ne=!1,N=!1,ee=Ie,fe=0,Oe=!1,Pe,Te;if(Te=T.input.charCodeAt(T.position),Te===124)C=!1;else if(Te===62)C=!0;else return!1;for(T.kind="scalar",T.result="";Te!==0;)if(Te=T.input.charCodeAt(++T.position),Te===43||Te===45)U===P?P=Te===43?z:_:Re(T,"repeat of a chomping mode identifier");else if((Pe=me(Te))>=0)Pe===0?Re(T,"bad explicit indentation width of a block scalar; it cannot be less than one"):N?Re(T,"repeat of an indentation width identifier"):(ee=Ie+Pe-1,N=!0);else break;if(K(Te)){do Te=T.input.charCodeAt(++T.position);while(K(Te));if(Te===35)do Te=T.input.charCodeAt(++T.position);while(!W(Te)&&Te!==0)}for(;Te!==0;){for(gt(T),T.lineIndent=0,Te=T.input.charCodeAt(T.position);(!N||T.lineIndent<ee)&&Te===32;)T.lineIndent++,Te=T.input.charCodeAt(++T.position);if(!N&&T.lineIndent>ee&&(ee=T.lineIndent),W(Te)){fe++;continue}if(T.lineIndent<ee){P===z?T.result+=c.repeat(`
492
- `,ne?1+fe:fe):P===U&&ne&&(T.result+=`
493
- `);break}for(C?K(Te)?(Oe=!0,T.result+=c.repeat(`
494
- `,ne?1+fe:fe)):Oe?(Oe=!1,T.result+=c.repeat(`
495
- `,fe+1)):fe===0?ne&&(T.result+=" "):T.result+=c.repeat(`
496
- `,fe):T.result+=c.repeat(`
497
- `,ne?1+fe:fe),ne=!0,N=!0,fe=0,H=T.position;!W(Te)&&Te!==0;)Te=T.input.charCodeAt(++T.position);Je(T,H,T.position,!1)}return!0}function Wt(T,Ie){var H,C=T.tag,P=T.anchor,ne=[],N,ee=!1,fe;for(T.anchor!==null&&(T.anchorMap[T.anchor]=ne),fe=T.input.charCodeAt(T.position);fe!==0&&!(fe!==45||(N=T.input.charCodeAt(T.position+1),!Z(N)));){if(ee=!0,T.position++,_e(T,!0,-1)&&T.lineIndent<=Ie){ne.push(null),fe=T.input.charCodeAt(T.position);continue}if(H=T.line,de(T,Ie,D,!1,!0),ne.push(T.result),_e(T,!0,-1),fe=T.input.charCodeAt(T.position),(T.line===H||T.lineIndent>Ie)&&fe!==0)Re(T,"bad indentation of a sequence entry");else if(T.lineIndent<Ie)break}return ee?(T.tag=C,T.anchor=P,T.kind="sequence",T.result=ne,!0):!1}function Ut(T,Ie,H){var C,P,ne,N,ee=T.tag,fe=T.anchor,Oe={},Pe={},Te=null,ze=null,He=null,it=!1,vt=!1,Ct;for(T.anchor!==null&&(T.anchorMap[T.anchor]=Oe),Ct=T.input.charCodeAt(T.position);Ct!==0;){if(C=T.input.charCodeAt(T.position+1),ne=T.line,N=T.position,(Ct===63||Ct===58)&&Z(C))Ct===63?(it&&(pt(T,Oe,Pe,Te,ze,null),Te=ze=He=null),vt=!0,it=!0,P=!0):it?(it=!1,P=!0):Re(T,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),T.position+=1,Ct=C;else if(de(T,H,L,!1,!0))if(T.line===ne){for(Ct=T.input.charCodeAt(T.position);K(Ct);)Ct=T.input.charCodeAt(++T.position);if(Ct===58)Ct=T.input.charCodeAt(++T.position),Z(Ct)||Re(T,"a whitespace character is expected after the key-value separator within a block mapping"),it&&(pt(T,Oe,Pe,Te,ze,null),Te=ze=He=null),vt=!0,it=!1,P=!1,Te=T.tag,ze=T.result;else if(vt)Re(T,"can not read an implicit mapping pair; a colon is missed");else return T.tag=ee,T.anchor=fe,!0}else if(vt)Re(T,"can not read a block mapping entry; a multiline key may not be an implicit key");else return T.tag=ee,T.anchor=fe,!0;else break;if((T.line===ne||T.lineIndent>Ie)&&(de(T,Ie,B,!0,P)&&(it?ze=T.result:He=T.result),it||(pt(T,Oe,Pe,Te,ze,He,ne,N),Te=ze=He=null),_e(T,!0,-1),Ct=T.input.charCodeAt(T.position)),T.lineIndent>Ie&&Ct!==0)Re(T,"bad indentation of a mapping entry");else if(T.lineIndent<Ie)break}return it&&pt(T,Oe,Pe,Te,ze,null),vt&&(T.tag=ee,T.anchor=fe,T.kind="mapping",T.result=Oe),vt}function Gt(T){var Ie,H=!1,C=!1,P,ne,N;if(N=T.input.charCodeAt(T.position),N!==33)return!1;if(T.tag!==null&&Re(T,"duplication of a tag property"),N=T.input.charCodeAt(++T.position),N===60?(H=!0,N=T.input.charCodeAt(++T.position)):N===33?(C=!0,P="!!",N=T.input.charCodeAt(++T.position)):P="!",Ie=T.position,H){do N=T.input.charCodeAt(++T.position);while(N!==0&&N!==62);T.position<T.length?(ne=T.input.slice(Ie,T.position),N=T.input.charCodeAt(++T.position)):Re(T,"unexpected end of the stream within a verbatim tag")}else{for(;N!==0&&!Z(N);)N===33&&(C?Re(T,"tag suffix cannot contain exclamation marks"):(P=T.input.slice(Ie-1,T.position+1),O.test(P)||Re(T,"named tag handle cannot contain such characters"),C=!0,Ie=T.position+1)),N=T.input.charCodeAt(++T.position);ne=T.input.slice(Ie,T.position),M.test(ne)&&Re(T,"tag suffix cannot contain flow indicator characters")}return ne&&!V.test(ne)&&Re(T,"tag name cannot contain such characters: "+ne),H?T.tag=ne:A.call(T.tagMap,P)?T.tag=T.tagMap[P]+ne:P==="!"?T.tag="!"+ne:P==="!!"?T.tag="tag:yaml.org,2002:"+ne:Re(T,'undeclared tag handle "'+P+'"'),!0}function wt(T){var Ie,H;if(H=T.input.charCodeAt(T.position),H!==38)return!1;for(T.anchor!==null&&Re(T,"duplication of an anchor property"),H=T.input.charCodeAt(++T.position),Ie=T.position;H!==0&&!Z(H)&&!ce(H);)H=T.input.charCodeAt(++T.position);return T.position===Ie&&Re(T,"name of an anchor node must contain at least one character"),T.anchor=T.input.slice(Ie,T.position),!0}function Mt(T){var Ie,H,C;if(C=T.input.charCodeAt(T.position),C!==42)return!1;for(C=T.input.charCodeAt(++T.position),Ie=T.position;C!==0&&!Z(C)&&!ce(C);)C=T.input.charCodeAt(++T.position);return T.position===Ie&&Re(T,"name of an alias node must contain at least one character"),H=T.input.slice(Ie,T.position),A.call(T.anchorMap,H)||Re(T,'unidentified alias "'+H+'"'),T.result=T.anchorMap[H],_e(T,!0,-1),!0}function de(T,Ie,H,C,P){var ne,N,ee,fe=1,Oe=!1,Pe=!1,Te,ze,He,it,vt;if(T.listener!==null&&T.listener("open",T),T.tag=null,T.anchor=null,T.kind=null,T.result=null,ne=N=ee=B===H||D===H,C&&_e(T,!0,-1)&&(Oe=!0,T.lineIndent>Ie?fe=1:T.lineIndent===Ie?fe=0:T.lineIndent<Ie&&(fe=-1)),fe===1)for(;Gt(T)||wt(T);)_e(T,!0,-1)?(Oe=!0,ee=ne,T.lineIndent>Ie?fe=1:T.lineIndent===Ie?fe=0:T.lineIndent<Ie&&(fe=-1)):ee=!1;if(ee&&(ee=Oe||P),(fe===1||B===H)&&(g===H||L===H?it=Ie:it=Ie+1,vt=T.position-T.lineStart,fe===1?ee&&(Wt(T,vt)||Ut(T,vt,it))||Ft(T,it)?Pe=!0:(N&&St(T,it)||dt(T,it)||It(T,it)?Pe=!0:Mt(T)?(Pe=!0,(T.tag!==null||T.anchor!==null)&&Re(T,"alias node should not have any properties")):yt(T,it,g===H)&&(Pe=!0,T.tag===null&&(T.tag="?")),T.anchor!==null&&(T.anchorMap[T.anchor]=T.result)):fe===0&&(Pe=ee&&Wt(T,vt))),T.tag!==null&&T.tag!=="!")if(T.tag==="?"){for(T.result!==null&&T.kind!=="scalar"&&Re(T,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+T.kind+'"'),Te=0,ze=T.implicitTypes.length;Te<ze;Te+=1)if(He=T.implicitTypes[Te],He.resolve(T.result)){T.result=He.construct(T.result),T.tag=He.tag,T.anchor!==null&&(T.anchorMap[T.anchor]=T.result);break}}else A.call(T.typeMap[T.kind||"fallback"],T.tag)?(He=T.typeMap[T.kind||"fallback"][T.tag],T.result!==null&&He.kind!==T.kind&&Re(T,"unacceptable node kind for !<"+T.tag+'> tag; it should be "'+He.kind+'", not "'+T.kind+'"'),He.resolve(T.result)?(T.result=He.construct(T.result),T.anchor!==null&&(T.anchorMap[T.anchor]=T.result)):Re(T,"cannot resolve a node with !<"+T.tag+"> explicit tag")):Re(T,"unknown tag !<"+T.tag+">");return T.listener!==null&&T.listener("close",T),T.tag!==null||T.anchor!==null||Pe}function $(T){var Ie=T.position,H,C,P,ne=!1,N;for(T.version=null,T.checkLineBreaks=T.legacy,T.tagMap={},T.anchorMap={};(N=T.input.charCodeAt(T.position))!==0&&(_e(T,!0,-1),N=T.input.charCodeAt(T.position),!(T.lineIndent>0||N!==37));){for(ne=!0,N=T.input.charCodeAt(++T.position),H=T.position;N!==0&&!Z(N);)N=T.input.charCodeAt(++T.position);for(C=T.input.slice(H,T.position),P=[],C.length<1&&Re(T,"directive name must not be less than one character in length");N!==0;){for(;K(N);)N=T.input.charCodeAt(++T.position);if(N===35){do N=T.input.charCodeAt(++T.position);while(N!==0&&!W(N));break}if(W(N))break;for(H=T.position;N!==0&&!Z(N);)N=T.input.charCodeAt(++T.position);P.push(T.input.slice(H,T.position))}N!==0&&gt(T),A.call(Qe,C)?Qe[C](T,C,P):rt(T,'unknown document directive "'+C+'"')}if(_e(T,!0,-1),T.lineIndent===0&&T.input.charCodeAt(T.position)===45&&T.input.charCodeAt(T.position+1)===45&&T.input.charCodeAt(T.position+2)===45?(T.position+=3,_e(T,!0,-1)):ne&&Re(T,"directives end mark is expected"),de(T,T.lineIndent-1,B,!1,!0),_e(T,!0,-1),T.checkLineBreaks&&Q.test(T.input.slice(Ie,T.position))&&rt(T,"non-ASCII line breaks are interpreted as content"),T.documents.push(T.result),T.position===T.lineStart&&lt(T)){T.input.charCodeAt(T.position)===46&&(T.position+=3,_e(T,!0,-1));return}if(T.position<T.length-1)Re(T,"end of the stream or a document separator is expected");else return}function Y(T,Ie){T=String(T),Ie=Ie||{},T.length!==0&&(T.charCodeAt(T.length-1)!==10&&T.charCodeAt(T.length-1)!==13&&(T+=`
498
- `),T.charCodeAt(0)===65279&&(T=T.slice(1)));var H=new je(T,Ie),C=T.indexOf("\0");for(C!==-1&&(H.position=C,Re(H,"null byte is not allowed in input")),H.input+="\0";H.input.charCodeAt(H.position)===32;)H.lineIndent+=1,H.position+=1;for(;H.position<H.length-1;)$(H);return H.documents}function we(T,Ie,H){Ie!==null&&typeof Ie=="object"&&typeof H=="undefined"&&(H=Ie,Ie=null);var C=Y(T,H);if(typeof Ie!="function")return C;for(var P=0,ne=C.length;P<ne;P+=1)Ie(C[P])}function ke(T,Ie){var H=Y(T,Ie);if(H.length!==0){if(H.length===1)return H[0];throw new v("expected a single document in the stream, but found more")}}function be(T,Ie,H){return typeof Ie=="object"&&Ie!==null&&typeof H=="undefined"&&(H=Ie,Ie=null),we(T,Ie,c.extend({schema:d},H))}function Ae(T,Ie){return ke(T,c.extend({schema:d},Ie))}h.exports.loadAll=we,h.exports.load=ke,h.exports.safeLoadAll=be,h.exports.safeLoad=Ae},77334:(h,I,o)=>{"use strict";var c=o(25596);function v(x,d,b,A,g){this.name=x,this.buffer=d,this.position=b,this.line=A,this.column=g}v.prototype.getSnippet=function(d,b){var A,g,L,D,B;if(!this.buffer)return null;for(d=d||4,b=b||75,A="",g=this.position;g>0&&`\0\r
499
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(g-1))===-1;)if(g-=1,this.position-g>b/2-1){A=" ... ",g+=5;break}for(L="",D=this.position;D<this.buffer.length&&`\0\r
500
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(D))===-1;)if(D+=1,D-this.position>b/2-1){L=" ... ",D-=5;break}return B=this.buffer.slice(g,D),c.repeat(" ",d)+A+B+L+`
501
- `+c.repeat(" ",d+this.position-g+A.length)+"^"},v.prototype.toString=function(d){var b,A="";return this.name&&(A+='in "'+this.name+'" '),A+="at line "+(this.line+1)+", column "+(this.column+1),d||(b=this.getSnippet(),b&&(A+=`:
502
- `+b)),A},h.exports=v},82409:(h,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(53899);function d(g,L,D){var B=[];return g.include.forEach(function(U){D=d(U,L,D)}),g[L].forEach(function(U){D.forEach(function(_,z){_.tag===U.tag&&_.kind===U.kind&&B.push(z)}),D.push(U)}),D.filter(function(U,_){return B.indexOf(_)===-1})}function b(){var g={scalar:{},sequence:{},mapping:{},fallback:{}},L,D;function B(U){g[U.kind][U.tag]=g.fallback[U.tag]=U}for(L=0,D=arguments.length;L<D;L+=1)arguments[L].forEach(B);return g}function A(g){this.include=g.include||[],this.implicit=g.implicit||[],this.explicit=g.explicit||[],this.implicit.forEach(function(L){if(L.loadKind&&L.loadKind!=="scalar")throw new v("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=d(this,"implicit",[]),this.compiledExplicit=d(this,"explicit",[]),this.compiledTypeMap=b(this.compiledImplicit,this.compiledExplicit)}A.DEFAULT=null,A.create=function(){var L,D;switch(arguments.length){case 1:L=A.DEFAULT,D=arguments[0];break;case 2:L=arguments[0],D=arguments[1];break;default:throw new v("Wrong number of arguments for Schema.create function")}if(L=c.toArray(L),D=c.toArray(D),!L.every(function(B){return B instanceof A}))throw new v("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!D.every(function(B){return B instanceof x}))throw new v("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new A({include:L,explicit:D})},h.exports=A},17318:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({include:[o(65796)]})},19321:(h,I,o)=>{"use strict";var c=o(82409);h.exports=c.DEFAULT=new c({include:[o(5972)],explicit:[o(70575),o(97287),o(89811)]})},5972:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({include:[o(17318)],implicit:[o(56145),o(243)],explicit:[o(18964),o(3878),o(68244),o(67300)]})},75322:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({explicit:[o(79483),o(43745),o(86553)]})},65796:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({include:[o(75322)],implicit:[o(3022),o(2648),o(95979),o(53456)]})},53899:(h,I,o)=>{"use strict";var c=o(14884),v=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],x=["scalar","sequence","mapping"];function d(A){var g={};return A!==null&&Object.keys(A).forEach(function(L){A[L].forEach(function(D){g[String(D)]=L})}),g}function b(A,g){if(g=g||{},Object.keys(g).forEach(function(L){if(v.indexOf(L)===-1)throw new c('Unknown option "'+L+'" is met in definition of "'+A+'" YAML type.')}),this.tag=A,this.kind=g.kind||null,this.resolve=g.resolve||function(){return!0},this.construct=g.construct||function(L){return L},this.instanceOf=g.instanceOf||null,this.predicate=g.predicate||null,this.represent=g.represent||null,this.defaultStyle=g.defaultStyle||null,this.styleAliases=d(g.styleAliases||null),x.indexOf(this.kind)===-1)throw new c('Unknown kind "'+this.kind+'" is specified for "'+A+'" YAML type.')}h.exports=b},18964:(h,I,o)=>{"use strict";var c;try{var v=void 0;c=o(48764).Buffer}catch(D){}var x=o(53899),d=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
503
- \r`;function b(D){if(D===null)return!1;var B,U,_=0,z=D.length,k=d;for(U=0;U<z;U++)if(B=k.indexOf(D.charAt(U)),!(B>64)){if(B<0)return!1;_+=6}return _%8==0}function A(D){var B,U,_=D.replace(/[\r\n=]/g,""),z=_.length,k=d,Q=0,M=[];for(B=0;B<z;B++)B%4==0&&B&&(M.push(Q>>16&255),M.push(Q>>8&255),M.push(Q&255)),Q=Q<<6|k.indexOf(_.charAt(B));return U=z%4*6,U===0?(M.push(Q>>16&255),M.push(Q>>8&255),M.push(Q&255)):U===18?(M.push(Q>>10&255),M.push(Q>>2&255)):U===12&&M.push(Q>>4&255),c?c.from?c.from(M):new c(M):M}function g(D){var B="",U=0,_,z,k=D.length,Q=d;for(_=0;_<k;_++)_%3==0&&_&&(B+=Q[U>>18&63],B+=Q[U>>12&63],B+=Q[U>>6&63],B+=Q[U&63]),U=(U<<8)+D[_];return z=k%3,z===0?(B+=Q[U>>18&63],B+=Q[U>>12&63],B+=Q[U>>6&63],B+=Q[U&63]):z===2?(B+=Q[U>>10&63],B+=Q[U>>4&63],B+=Q[U<<2&63],B+=Q[64]):z===1&&(B+=Q[U>>2&63],B+=Q[U<<4&63],B+=Q[64],B+=Q[64]),B}function L(D){return c&&c.isBuffer(D)}h.exports=new x("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b,construct:A,predicate:L,represent:g})},2648:(h,I,o)=>{"use strict";var c=o(53899);function v(b){if(b===null)return!1;var A=b.length;return A===4&&(b==="true"||b==="True"||b==="TRUE")||A===5&&(b==="false"||b==="False"||b==="FALSE")}function x(b){return b==="true"||b==="True"||b==="TRUE"}function d(b){return Object.prototype.toString.call(b)==="[object Boolean]"}h.exports=new c("tag:yaml.org,2002:bool",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{lowercase:function(b){return b?"true":"false"},uppercase:function(b){return b?"TRUE":"FALSE"},camelcase:function(b){return b?"True":"False"}},defaultStyle:"lowercase"})},53456:(h,I,o)=>{"use strict";var c=o(25596),v=o(53899),x=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function d(D){return!(D===null||!x.test(D)||D[D.length-1]==="_")}function b(D){var B,U,_,z;return B=D.replace(/_/g,"").toLowerCase(),U=B[0]==="-"?-1:1,z=[],"+-".indexOf(B[0])>=0&&(B=B.slice(1)),B===".inf"?U===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:B===".nan"?NaN:B.indexOf(":")>=0?(B.split(":").forEach(function(k){z.unshift(parseFloat(k,10))}),B=0,_=1,z.forEach(function(k){B+=k*_,_*=60}),U*B):U*parseFloat(B,10)}var A=/^[-+]?[0-9]+e/;function g(D,B){var U;if(isNaN(D))switch(B){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===D)switch(B){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===D)switch(B){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c.isNegativeZero(D))return"-0.0";return U=D.toString(10),A.test(U)?U.replace("e",".e"):U}function L(D){return Object.prototype.toString.call(D)==="[object Number]"&&(D%1!=0||c.isNegativeZero(D))}h.exports=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:d,construct:b,predicate:L,represent:g,defaultStyle:"lowercase"})},95979:(h,I,o)=>{"use strict";var c=o(25596),v=o(53899);function x(D){return 48<=D&&D<=57||65<=D&&D<=70||97<=D&&D<=102}function d(D){return 48<=D&&D<=55}function b(D){return 48<=D&&D<=57}function A(D){if(D===null)return!1;var B=D.length,U=0,_=!1,z;if(!B)return!1;if(z=D[U],(z==="-"||z==="+")&&(z=D[++U]),z==="0"){if(U+1===B)return!0;if(z=D[++U],z==="b"){for(U++;U<B;U++)if(z=D[U],z!=="_"){if(z!=="0"&&z!=="1")return!1;_=!0}return _&&z!=="_"}if(z==="x"){for(U++;U<B;U++)if(z=D[U],z!=="_"){if(!x(D.charCodeAt(U)))return!1;_=!0}return _&&z!=="_"}for(;U<B;U++)if(z=D[U],z!=="_"){if(!d(D.charCodeAt(U)))return!1;_=!0}return _&&z!=="_"}if(z==="_")return!1;for(;U<B;U++)if(z=D[U],z!=="_"){if(z===":")break;if(!b(D.charCodeAt(U)))return!1;_=!0}return!_||z==="_"?!1:z!==":"?!0:/^(:[0-5]?[0-9])+$/.test(D.slice(U))}function g(D){var B=D,U=1,_,z,k=[];return B.indexOf("_")!==-1&&(B=B.replace(/_/g,"")),_=B[0],(_==="-"||_==="+")&&(_==="-"&&(U=-1),B=B.slice(1),_=B[0]),B==="0"?0:_==="0"?B[1]==="b"?U*parseInt(B.slice(2),2):B[1]==="x"?U*parseInt(B,16):U*parseInt(B,8):B.indexOf(":")!==-1?(B.split(":").forEach(function(Q){k.unshift(parseInt(Q,10))}),B=0,z=1,k.forEach(function(Q){B+=Q*z,z*=60}),U*B):U*parseInt(B,10)}function L(D){return Object.prototype.toString.call(D)==="[object Number]"&&D%1==0&&!c.isNegativeZero(D)}h.exports=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:A,construct:g,predicate:L,represent:{binary:function(D){return D>=0?"0b"+D.toString(2):"-0b"+D.toString(2).slice(1)},octal:function(D){return D>=0?"0"+D.toString(8):"-0"+D.toString(8).slice(1)},decimal:function(D){return D.toString(10)},hexadecimal:function(D){return D>=0?"0x"+D.toString(16).toUpperCase():"-0x"+D.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89811:(h,I,o)=>{"use strict";var c;try{var v=void 0;c=o(88150)}catch(L){typeof window!="undefined"&&(c=window.esprima)}var x=o(53899);function d(L){if(L===null)return!1;try{var D="("+L+")",B=c.parse(D,{range:!0});return!(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")}catch(U){return!1}}function b(L){var D="("+L+")",B=c.parse(D,{range:!0}),U=[],_;if(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return B.body[0].expression.params.forEach(function(z){U.push(z.name)}),_=B.body[0].expression.body.range,B.body[0].expression.body.type==="BlockStatement"?new Function(U,D.slice(_[0]+1,_[1]-1)):new Function(U,"return "+D.slice(_[0],_[1]))}function A(L){return L.toString()}function g(L){return Object.prototype.toString.call(L)==="[object Function]"}h.exports=new x("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:d,construct:b,predicate:g,represent:A})},97287:(h,I,o)=>{"use strict";var c=o(53899);function v(A){if(A===null||A.length===0)return!1;var g=A,L=/\/([gim]*)$/.exec(A),D="";return!(g[0]==="/"&&(L&&(D=L[1]),D.length>3||g[g.length-D.length-1]!=="/"))}function x(A){var g=A,L=/\/([gim]*)$/.exec(A),D="";return g[0]==="/"&&(L&&(D=L[1]),g=g.slice(1,g.length-D.length-1)),new RegExp(g,D)}function d(A){var g="/"+A.source+"/";return A.global&&(g+="g"),A.multiline&&(g+="m"),A.ignoreCase&&(g+="i"),g}function b(A){return Object.prototype.toString.call(A)==="[object RegExp]"}h.exports=new c("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},70575:(h,I,o)=>{"use strict";var c=o(53899);function v(){return!0}function x(){}function d(){return""}function b(A){return typeof A=="undefined"}h.exports=new c("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},86553:(h,I,o)=>{"use strict";var c=o(53899);h.exports=new c("tag:yaml.org,2002:map",{kind:"mapping",construct:function(v){return v!==null?v:{}}})},243:(h,I,o)=>{"use strict";var c=o(53899);function v(x){return x==="<<"||x===null}h.exports=new c("tag:yaml.org,2002:merge",{kind:"scalar",resolve:v})},3022:(h,I,o)=>{"use strict";var c=o(53899);function v(b){if(b===null)return!0;var A=b.length;return A===1&&b==="~"||A===4&&(b==="null"||b==="Null"||b==="NULL")}function x(){return null}function d(b){return b===null}h.exports=new c("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},3878:(h,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.hasOwnProperty,x=Object.prototype.toString;function d(A){if(A===null)return!0;var g=[],L,D,B,U,_,z=A;for(L=0,D=z.length;L<D;L+=1){if(B=z[L],_=!1,x.call(B)!=="[object Object]")return!1;for(U in B)if(v.call(B,U))if(!_)_=!0;else return!1;if(!_)return!1;if(g.indexOf(U)===-1)g.push(U);else return!1}return!0}function b(A){return A!==null?A:[]}h.exports=new c("tag:yaml.org,2002:omap",{kind:"sequence",resolve:d,construct:b})},68244:(h,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.toString;function x(b){if(b===null)return!0;var A,g,L,D,B,U=b;for(B=new Array(U.length),A=0,g=U.length;A<g;A+=1){if(L=U[A],v.call(L)!=="[object Object]"||(D=Object.keys(L),D.length!==1))return!1;B[A]=[D[0],L[D[0]]]}return!0}function d(b){if(b===null)return[];var A,g,L,D,B,U=b;for(B=new Array(U.length),A=0,g=U.length;A<g;A+=1)L=U[A],D=Object.keys(L),B[A]=[D[0],L[D[0]]];return B}h.exports=new c("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:x,construct:d})},43745:(h,I,o)=>{"use strict";var c=o(53899);h.exports=new c("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(v){return v!==null?v:[]}})},67300:(h,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.hasOwnProperty;function x(b){if(b===null)return!0;var A,g=b;for(A in g)if(v.call(g,A)&&g[A]!==null)return!1;return!0}function d(b){return b!==null?b:{}}h.exports=new c("tag:yaml.org,2002:set",{kind:"mapping",resolve:x,construct:d})},79483:(h,I,o)=>{"use strict";var c=o(53899);h.exports=new c("tag:yaml.org,2002:str",{kind:"scalar",construct:function(v){return v!==null?v:""}})},56145:(h,I,o)=>{"use strict";var c=o(53899),v=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),x=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function d(g){return g===null?!1:v.exec(g)!==null||x.exec(g)!==null}function b(g){var L,D,B,U,_,z,k,Q=0,M=null,O,V,X;if(L=v.exec(g),L===null&&(L=x.exec(g)),L===null)throw new Error("Date resolve error");if(D=+L[1],B=+L[2]-1,U=+L[3],!L[4])return new Date(Date.UTC(D,B,U));if(_=+L[4],z=+L[5],k=+L[6],L[7]){for(Q=L[7].slice(0,3);Q.length<3;)Q+="0";Q=+Q}return L[9]&&(O=+L[10],V=+(L[11]||0),M=(O*60+V)*6e4,L[9]==="-"&&(M=-M)),X=new Date(Date.UTC(D,B,U,_,z,k,Q)),M&&X.setTime(X.getTime()-M),X}function A(g){return g.toISOString()}h.exports=new c("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:d,construct:b,instanceOf:Date,represent:A})},18552:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"DataView");h.exports=x},1989:(h,I,o)=>{var c=o(51789),v=o(80401),x=o(57667),d=o(21327),b=o(81866);function A(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}A.prototype.clear=c,A.prototype.delete=v,A.prototype.get=x,A.prototype.has=d,A.prototype.set=b,h.exports=A},38407:(h,I,o)=>{var c=o(27040),v=o(14125),x=o(82117),d=o(67518),b=o(13399);function A(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}A.prototype.clear=c,A.prototype.delete=v,A.prototype.get=x,A.prototype.has=d,A.prototype.set=b,h.exports=A},57071:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Map");h.exports=x},83369:(h,I,o)=>{var c=o(24785),v=o(11285),x=o(96e3),d=o(49916),b=o(95265);function A(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}A.prototype.clear=c,A.prototype.delete=v,A.prototype.get=x,A.prototype.has=d,A.prototype.set=b,h.exports=A},53818:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Promise");h.exports=x},58525:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Set");h.exports=x},88668:(h,I,o)=>{var c=o(83369),v=o(90619),x=o(72385);function d(b){var A=-1,g=b==null?0:b.length;for(this.__data__=new c;++A<g;)this.add(b[A])}d.prototype.add=d.prototype.push=v,d.prototype.has=x,h.exports=d},46384:(h,I,o)=>{var c=o(38407),v=o(37465),x=o(63779),d=o(67599),b=o(44758),A=o(34309);function g(L){var D=this.__data__=new c(L);this.size=D.size}g.prototype.clear=v,g.prototype.delete=x,g.prototype.get=d,g.prototype.has=b,g.prototype.set=A,h.exports=g},62705:(h,I,o)=>{var c=o(55639),v=c.Symbol;h.exports=v},11149:(h,I,o)=>{var c=o(55639),v=c.Uint8Array;h.exports=v},70577:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"WeakMap");h.exports=x},96874:h=>{function I(o,c,v){switch(v.length){case 0:return o.call(c);case 1:return o.call(c,v[0]);case 2:return o.call(c,v[0],v[1]);case 3:return o.call(c,v[0],v[1],v[2])}return o.apply(c,v)}h.exports=I},77412:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length;++v<x&&c(o[v],v,o)!==!1;);return o}h.exports=I},34963:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length,d=0,b=[];++v<x;){var A=o[v];c(A,v,o)&&(b[d++]=A)}return b}h.exports=I},14636:(h,I,o)=>{var c=o(22545),v=o(35694),x=o(1469),d=o(44144),b=o(65776),A=o(36719),g=Object.prototype,L=g.hasOwnProperty;function D(B,U){var _=x(B),z=!_&&v(B),k=!_&&!z&&d(B),Q=!_&&!z&&!k&&A(B),M=_||z||k||Q,O=M?c(B.length,String):[],V=O.length;for(var X in B)(U||L.call(B,X))&&!(M&&(X=="length"||k&&(X=="offset"||X=="parent")||Q&&(X=="buffer"||X=="byteLength"||X=="byteOffset")||b(X,V)))&&O.push(X);return O}h.exports=D},29932:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length,d=Array(x);++v<x;)d[v]=c(o[v],v,o);return d}h.exports=I},62488:h=>{function I(o,c){for(var v=-1,x=c.length,d=o.length;++v<x;)o[d+v]=c[v];return o}h.exports=I},82908:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length;++v<x;)if(c(o[v],v,o))return!0;return!1}h.exports=I},34865:(h,I,o)=>{var c=o(89465),v=o(77813),x=Object.prototype,d=x.hasOwnProperty;function b(A,g,L){var D=A[g];(!(d.call(A,g)&&v(D,L))||L===void 0&&!(g in A))&&c(A,g,L)}h.exports=b},18470:(h,I,o)=>{var c=o(77813);function v(x,d){for(var b=x.length;b--;)if(c(x[b][0],d))return b;return-1}h.exports=v},44037:(h,I,o)=>{var c=o(98363),v=o(3674);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},63886:(h,I,o)=>{var c=o(98363),v=o(81704);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},89465:(h,I,o)=>{var c=o(38777);function v(x,d,b){d=="__proto__"&&c?c(x,d,{configurable:!0,enumerable:!0,value:b,writable:!0}):x[d]=b}h.exports=v},29750:h=>{function I(o,c,v){return o===o&&(v!==void 0&&(o=o<=v?o:v),c!==void 0&&(o=o>=c?o:c)),o}h.exports=I},85990:(h,I,o)=>{var c=o(46384),v=o(77412),x=o(34865),d=o(44037),b=o(63886),A=o(64626),g=o(278),L=o(18805),D=o(1911),B=o(58234),U=o(46904),_=o(98882),z=o(43824),k=o(29148),Q=o(38517),M=o(1469),O=o(44144),V=o(56688),X=o(13218),W=o(72928),K=o(3674),Z=o(81704),ce=1,te=2,ae=4,me="[object Arguments]",ge="[object Array]",he="[object Boolean]",ue="[object Date]",ie="[object Error]",Me="[object Function]",je="[object GeneratorFunction]",Ne="[object Map]",Re="[object Number]",rt="[object Object]",Qe="[object RegExp]",Je="[object Set]",ut="[object String]",pt="[object Symbol]",gt="[object WeakMap]",_e="[object ArrayBuffer]",lt="[object DataView]",ht="[object Float32Array]",yt="[object Float64Array]",dt="[object Int8Array]",It="[object Int16Array]",Ft="[object Int32Array]",St="[object Uint8Array]",Wt="[object Uint8ClampedArray]",Ut="[object Uint16Array]",Gt="[object Uint32Array]",wt={};wt[me]=wt[ge]=wt[_e]=wt[lt]=wt[he]=wt[ue]=wt[ht]=wt[yt]=wt[dt]=wt[It]=wt[Ft]=wt[Ne]=wt[Re]=wt[rt]=wt[Qe]=wt[Je]=wt[ut]=wt[pt]=wt[St]=wt[Wt]=wt[Ut]=wt[Gt]=!0,wt[ie]=wt[Me]=wt[gt]=!1;function Mt(de,$,Y,we,ke,be){var Ae,T=$&ce,Ie=$&te,H=$&ae;if(Y&&(Ae=ke?Y(de,we,ke,be):Y(de)),Ae!==void 0)return Ae;if(!X(de))return de;var C=M(de);if(C){if(Ae=z(de),!T)return g(de,Ae)}else{var P=_(de),ne=P==Me||P==je;if(O(de))return A(de,T);if(P==rt||P==me||ne&&!ke){if(Ae=Ie||ne?{}:Q(de),!T)return Ie?D(de,b(Ae,de)):L(de,d(Ae,de))}else{if(!wt[P])return ke?de:{};Ae=k(de,P,T)}}be||(be=new c);var N=be.get(de);if(N)return N;be.set(de,Ae),W(de)?de.forEach(function(Oe){Ae.add(Mt(Oe,$,Y,Oe,de,be))}):V(de)&&de.forEach(function(Oe,Pe){Ae.set(Pe,Mt(Oe,$,Y,Pe,de,be))});var ee=H?Ie?U:B:Ie?Z:K,fe=C?void 0:ee(de);return v(fe||de,function(Oe,Pe){fe&&(Pe=Oe,Oe=de[Pe]),x(Ae,Pe,Mt(Oe,$,Y,Pe,de,be))}),Ae}h.exports=Mt},3118:(h,I,o)=>{var c=o(13218),v=Object.create,x=function(){function d(){}return function(b){if(!c(b))return{};if(v)return v(b);d.prototype=b;var A=new d;return d.prototype=void 0,A}}();h.exports=x},41848:h=>{function I(o,c,v,x){for(var d=o.length,b=v+(x?1:-1);x?b--:++b<d;)if(c(o[b],b,o))return b;return-1}h.exports=I},35764:(h,I,o)=>{var c=o(62488),v=o(37285);function x(d,b,A,g,L){var D=-1,B=d.length;for(A||(A=v),L||(L=[]);++D<B;){var U=d[D];b>0&&A(U)?b>1?x(U,b-1,A,g,L):c(L,U):g||(L[L.length]=U)}return L}h.exports=x},97786:(h,I,o)=>{var c=o(71811),v=o(40327);function x(d,b){b=c(b,d);for(var A=0,g=b.length;d!=null&&A<g;)d=d[v(b[A++])];return A&&A==g?d:void 0}h.exports=x},68866:(h,I,o)=>{var c=o(62488),v=o(1469);function x(d,b,A){var g=b(d);return v(d)?g:c(g,A(d))}h.exports=x},44239:(h,I,o)=>{var c=o(62705),v=o(89607),x=o(2333),d="[object Null]",b="[object Undefined]",A=c?c.toStringTag:void 0;function g(L){return L==null?L===void 0?b:d:A&&A in Object(L)?v(L):x(L)}h.exports=g},13:h=>{function I(o,c){return o!=null&&c in Object(o)}h.exports=I},9454:(h,I,o)=>{var c=o(44239),v=o(37005),x="[object Arguments]";function d(b){return v(b)&&c(b)==x}h.exports=d},90939:(h,I,o)=>{var c=o(2492),v=o(37005);function x(d,b,A,g,L){return d===b?!0:d==null||b==null||!v(d)&&!v(b)?d!==d&&b!==b:c(d,b,A,g,x,L)}h.exports=x},2492:(h,I,o)=>{var c=o(46384),v=o(67114),x=o(18351),d=o(16096),b=o(98882),A=o(1469),g=o(44144),L=o(36719),D=1,B="[object Arguments]",U="[object Array]",_="[object Object]",z=Object.prototype,k=z.hasOwnProperty;function Q(M,O,V,X,W,K){var Z=A(M),ce=A(O),te=Z?U:b(M),ae=ce?U:b(O);te=te==B?_:te,ae=ae==B?_:ae;var me=te==_,ge=ae==_,he=te==ae;if(he&&g(M)){if(!g(O))return!1;Z=!0,me=!1}if(he&&!me)return K||(K=new c),Z||L(M)?v(M,O,V,X,W,K):x(M,O,te,V,X,W,K);if(!(V&D)){var ue=me&&k.call(M,"__wrapped__"),ie=ge&&k.call(O,"__wrapped__");if(ue||ie){var Me=ue?M.value():M,je=ie?O.value():O;return K||(K=new c),W(Me,je,V,X,K)}}return he?(K||(K=new c),d(M,O,V,X,W,K)):!1}h.exports=Q},25588:(h,I,o)=>{var c=o(98882),v=o(37005),x="[object Map]";function d(b){return v(b)&&c(b)==x}h.exports=d},2958:(h,I,o)=>{var c=o(46384),v=o(90939),x=1,d=2;function b(A,g,L,D){var B=L.length,U=B,_=!D;if(A==null)return!U;for(A=Object(A);B--;){var z=L[B];if(_&&z[2]?z[1]!==A[z[0]]:!(z[0]in A))return!1}for(;++B<U;){z=L[B];var k=z[0],Q=A[k],M=z[1];if(_&&z[2]){if(Q===void 0&&!(k in A))return!1}else{var O=new c;if(D)var V=D(Q,M,k,A,g,O);if(!(V===void 0?v(M,Q,x|d,D,O):V))return!1}}return!0}h.exports=b},28458:(h,I,o)=>{var c=o(23560),v=o(15346),x=o(13218),d=o(80346),b=/[\\^$.*+?()[\]{}|]/g,A=/^\[object .+?Constructor\]$/,g=Function.prototype,L=Object.prototype,D=g.toString,B=L.hasOwnProperty,U=RegExp("^"+D.call(B).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _(z){if(!x(z)||v(z))return!1;var k=c(z)?U:A;return k.test(d(z))}h.exports=_},29221:(h,I,o)=>{var c=o(98882),v=o(37005),x="[object Set]";function d(b){return v(b)&&c(b)==x}h.exports=d},38749:(h,I,o)=>{var c=o(44239),v=o(41780),x=o(37005),d="[object Arguments]",b="[object Array]",A="[object Boolean]",g="[object Date]",L="[object Error]",D="[object Function]",B="[object Map]",U="[object Number]",_="[object Object]",z="[object RegExp]",k="[object Set]",Q="[object String]",M="[object WeakMap]",O="[object ArrayBuffer]",V="[object DataView]",X="[object Float32Array]",W="[object Float64Array]",K="[object Int8Array]",Z="[object Int16Array]",ce="[object Int32Array]",te="[object Uint8Array]",ae="[object Uint8ClampedArray]",me="[object Uint16Array]",ge="[object Uint32Array]",he={};he[X]=he[W]=he[K]=he[Z]=he[ce]=he[te]=he[ae]=he[me]=he[ge]=!0,he[d]=he[b]=he[O]=he[A]=he[V]=he[g]=he[L]=he[D]=he[B]=he[U]=he[_]=he[z]=he[k]=he[Q]=he[M]=!1;function ue(ie){return x(ie)&&v(ie.length)&&!!he[c(ie)]}h.exports=ue},67206:(h,I,o)=>{var c=o(91573),v=o(16432),x=o(6557),d=o(1469),b=o(39601);function A(g){return typeof g=="function"?g:g==null?x:typeof g=="object"?d(g)?v(g[0],g[1]):c(g):b(g)}h.exports=A},280:(h,I,o)=>{var c=o(25726),v=o(86916),x=Object.prototype,d=x.hasOwnProperty;function b(A){if(!c(A))return v(A);var g=[];for(var L in Object(A))d.call(A,L)&&L!="constructor"&&g.push(L);return g}h.exports=b},10313:(h,I,o)=>{var c=o(13218),v=o(25726),x=o(33498),d=Object.prototype,b=d.hasOwnProperty;function A(g){if(!c(g))return x(g);var L=v(g),D=[];for(var B in g)B=="constructor"&&(L||!b.call(g,B))||D.push(B);return D}h.exports=A},91573:(h,I,o)=>{var c=o(2958),v=o(1499),x=o(42634);function d(b){var A=v(b);return A.length==1&&A[0][2]?x(A[0][0],A[0][1]):function(g){return g===b||c(g,b,A)}}h.exports=d},16432:(h,I,o)=>{var c=o(90939),v=o(27361),x=o(79095),d=o(15403),b=o(89162),A=o(42634),g=o(40327),L=1,D=2;function B(U,_){return d(U)&&b(_)?A(g(U),_):function(z){var k=v(z,U);return k===void 0&&k===_?x(z,U):c(_,k,L|D)}}h.exports=B},25970:(h,I,o)=>{var c=o(63012),v=o(79095);function x(d,b){return c(d,b,function(A,g){return v(d,g)})}h.exports=x},63012:(h,I,o)=>{var c=o(97786),v=o(10611),x=o(71811);function d(b,A,g){for(var L=-1,D=A.length,B={};++L<D;){var U=A[L],_=c(b,U);g(_,U)&&v(B,x(U,b),_)}return B}h.exports=d},40371:h=>{function I(o){return function(c){return c==null?void 0:c[o]}}h.exports=I},79152:(h,I,o)=>{var c=o(97786);function v(x){return function(d){return c(d,x)}}h.exports=v},5976:(h,I,o)=>{var c=o(6557),v=o(45357),x=o(30061);function d(b,A){return x(v(b,A,c),b+"")}h.exports=d},10611:(h,I,o)=>{var c=o(34865),v=o(71811),x=o(65776),d=o(13218),b=o(40327);function A(g,L,D,B){if(!d(g))return g;L=v(L,g);for(var U=-1,_=L.length,z=_-1,k=g;k!=null&&++U<_;){var Q=b(L[U]),M=D;if(Q==="__proto__"||Q==="constructor"||Q==="prototype")return g;if(U!=z){var O=k[Q];M=B?B(O,Q,k):void 0,M===void 0&&(M=d(O)?O:x(L[U+1])?[]:{})}c(k,Q,M),k=k[Q]}return g}h.exports=A},56560:(h,I,o)=>{var c=o(75703),v=o(38777),x=o(6557),d=v?function(b,A){return v(b,"toString",{configurable:!0,enumerable:!1,value:c(A),writable:!0})}:x;h.exports=d},22545:h=>{function I(o,c){for(var v=-1,x=Array(o);++v<o;)x[v]=c(v);return x}h.exports=I},80531:(h,I,o)=>{var c=o(62705),v=o(29932),x=o(1469),d=o(33448),b=1/0,A=c?c.prototype:void 0,g=A?A.toString:void 0;function L(D){if(typeof D=="string")return D;if(x(D))return v(D,L)+"";if(d(D))return g?g.call(D):"";var B=D+"";return B=="0"&&1/D==-b?"-0":B}h.exports=L},27561:(h,I,o)=>{var c=o(67990),v=/^\s+/;function x(d){return d&&d.slice(0,c(d)+1).replace(v,"")}h.exports=x},7518:h=>{function I(o){return function(c){return o(c)}}h.exports=I},74757:h=>{function I(o,c){return o.has(c)}h.exports=I},71811:(h,I,o)=>{var c=o(1469),v=o(15403),x=o(55514),d=o(79833);function b(A,g){return c(A)?A:v(A,g)?[A]:x(d(A))}h.exports=b},74318:(h,I,o)=>{var c=o(11149);function v(x){var d=new x.constructor(x.byteLength);return new c(d).set(new c(x)),d}h.exports=v},64626:(h,I,o)=>{h=o.nmd(h);var c=o(55639),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d?c.Buffer:void 0,A=b?b.allocUnsafe:void 0;function g(L,D){if(D)return L.slice();var B=L.length,U=A?A(B):new L.constructor(B);return L.copy(U),U}h.exports=g},57157:(h,I,o)=>{var c=o(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.byteLength)}h.exports=v},93147:h=>{var I=/\w*$/;function o(c){var v=new c.constructor(c.source,I.exec(c));return v.lastIndex=c.lastIndex,v}h.exports=o},40419:(h,I,o)=>{var c=o(62705),v=c?c.prototype:void 0,x=v?v.valueOf:void 0;function d(b){return x?Object(x.call(b)):{}}h.exports=d},77133:(h,I,o)=>{var c=o(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.length)}h.exports=v},278:h=>{function I(o,c){var v=-1,x=o.length;for(c||(c=Array(x));++v<x;)c[v]=o[v];return c}h.exports=I},98363:(h,I,o)=>{var c=o(34865),v=o(89465);function x(d,b,A,g){var L=!A;A||(A={});for(var D=-1,B=b.length;++D<B;){var U=b[D],_=g?g(A[U],d[U],U,A,d):void 0;_===void 0&&(_=d[U]),L?v(A,U,_):c(A,U,_)}return A}h.exports=x},18805:(h,I,o)=>{var c=o(98363),v=o(99551);function x(d,b){return c(d,v(d),b)}h.exports=x},1911:(h,I,o)=>{var c=o(98363),v=o(51442);function x(d,b){return c(d,v(d),b)}h.exports=x},14429:(h,I,o)=>{var c=o(55639),v=c["__core-js_shared__"];h.exports=v},21463:(h,I,o)=>{var c=o(5976),v=o(16612);function x(d){return c(function(b,A){var g=-1,L=A.length,D=L>1?A[L-1]:void 0,B=L>2?A[2]:void 0;for(D=d.length>3&&typeof D=="function"?(L--,D):void 0,B&&v(A[0],A[1],B)&&(D=L<3?void 0:D,L=1),b=Object(b);++g<L;){var U=A[g];U&&d(b,U,g,D)}return b})}h.exports=x},67740:(h,I,o)=>{var c=o(67206),v=o(98612),x=o(3674);function d(b){return function(A,g,L){var D=Object(A);if(!v(A)){var B=c(g,3);A=x(A),g=function(_){return B(D[_],_,D)}}var U=b(A,g,L);return U>-1?D[B?A[U]:U]:void 0}}h.exports=d},38777:(h,I,o)=>{var c=o(10852),v=function(){try{var x=c(Object,"defineProperty");return x({},"",{}),x}catch(d){}}();h.exports=v},67114:(h,I,o)=>{var c=o(88668),v=o(82908),x=o(74757),d=1,b=2;function A(g,L,D,B,U,_){var z=D&d,k=g.length,Q=L.length;if(k!=Q&&!(z&&Q>k))return!1;var M=_.get(g),O=_.get(L);if(M&&O)return M==L&&O==g;var V=-1,X=!0,W=D&b?new c:void 0;for(_.set(g,L),_.set(L,g);++V<k;){var K=g[V],Z=L[V];if(B)var ce=z?B(Z,K,V,L,g,_):B(K,Z,V,g,L,_);if(ce!==void 0){if(ce)continue;X=!1;break}if(W){if(!v(L,function(te,ae){if(!x(W,ae)&&(K===te||U(K,te,D,B,_)))return W.push(ae)})){X=!1;break}}else if(!(K===Z||U(K,Z,D,B,_))){X=!1;break}}return _.delete(g),_.delete(L),X}h.exports=A},18351:(h,I,o)=>{var c=o(62705),v=o(11149),x=o(77813),d=o(67114),b=o(68776),A=o(21814),g=1,L=2,D="[object Boolean]",B="[object Date]",U="[object Error]",_="[object Map]",z="[object Number]",k="[object RegExp]",Q="[object Set]",M="[object String]",O="[object Symbol]",V="[object ArrayBuffer]",X="[object DataView]",W=c?c.prototype:void 0,K=W?W.valueOf:void 0;function Z(ce,te,ae,me,ge,he,ue){switch(ae){case X:if(ce.byteLength!=te.byteLength||ce.byteOffset!=te.byteOffset)return!1;ce=ce.buffer,te=te.buffer;case V:return!(ce.byteLength!=te.byteLength||!he(new v(ce),new v(te)));case D:case B:case z:return x(+ce,+te);case U:return ce.name==te.name&&ce.message==te.message;case k:case M:return ce==te+"";case _:var ie=b;case Q:var Me=me&g;if(ie||(ie=A),ce.size!=te.size&&!Me)return!1;var je=ue.get(ce);if(je)return je==te;me|=L,ue.set(ce,te);var Ne=d(ie(ce),ie(te),me,ge,he,ue);return ue.delete(ce),Ne;case O:if(K)return K.call(ce)==K.call(te)}return!1}h.exports=Z},16096:(h,I,o)=>{var c=o(58234),v=1,x=Object.prototype,d=x.hasOwnProperty;function b(A,g,L,D,B,U){var _=L&v,z=c(A),k=z.length,Q=c(g),M=Q.length;if(k!=M&&!_)return!1;for(var O=k;O--;){var V=z[O];if(!(_?V in g:d.call(g,V)))return!1}var X=U.get(A),W=U.get(g);if(X&&W)return X==g&&W==A;var K=!0;U.set(A,g),U.set(g,A);for(var Z=_;++O<k;){V=z[O];var ce=A[V],te=g[V];if(D)var ae=_?D(te,ce,V,g,A,U):D(ce,te,V,A,g,U);if(!(ae===void 0?ce===te||B(ce,te,L,D,U):ae)){K=!1;break}Z||(Z=V=="constructor")}if(K&&!Z){var me=A.constructor,ge=g.constructor;me!=ge&&"constructor"in A&&"constructor"in g&&!(typeof me=="function"&&me instanceof me&&typeof ge=="function"&&ge instanceof ge)&&(K=!1)}return U.delete(A),U.delete(g),K}h.exports=b},99021:(h,I,o)=>{var c=o(85564),v=o(45357),x=o(30061);function d(b){return x(v(b,void 0,c),b+"")}h.exports=d},31957:(h,I,o)=>{var c=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g;h.exports=c},58234:(h,I,o)=>{var c=o(68866),v=o(99551),x=o(3674);function d(b){return c(b,x,v)}h.exports=d},46904:(h,I,o)=>{var c=o(68866),v=o(51442),x=o(81704);function d(b){return c(b,x,v)}h.exports=d},45050:(h,I,o)=>{var c=o(37019);function v(x,d){var b=x.__data__;return c(d)?b[typeof d=="string"?"string":"hash"]:b.map}h.exports=v},1499:(h,I,o)=>{var c=o(89162),v=o(3674);function x(d){for(var b=v(d),A=b.length;A--;){var g=b[A],L=d[g];b[A]=[g,L,c(L)]}return b}h.exports=x},10852:(h,I,o)=>{var c=o(28458),v=o(47801);function x(d,b){var A=v(d,b);return c(A)?A:void 0}h.exports=x},85924:(h,I,o)=>{var c=o(5569),v=c(Object.getPrototypeOf,Object);h.exports=v},89607:(h,I,o)=>{var c=o(62705),v=Object.prototype,x=v.hasOwnProperty,d=v.toString,b=c?c.toStringTag:void 0;function A(g){var L=x.call(g,b),D=g[b];try{g[b]=void 0;var B=!0}catch(_){}var U=d.call(g);return B&&(L?g[b]=D:delete g[b]),U}h.exports=A},99551:(h,I,o)=>{var c=o(34963),v=o(70479),x=Object.prototype,d=x.propertyIsEnumerable,b=Object.getOwnPropertySymbols,A=b?function(g){return g==null?[]:(g=Object(g),c(b(g),function(L){return d.call(g,L)}))}:v;h.exports=A},51442:(h,I,o)=>{var c=o(62488),v=o(85924),x=o(99551),d=o(70479),b=Object.getOwnPropertySymbols,A=b?function(g){for(var L=[];g;)c(L,x(g)),g=v(g);return L}:d;h.exports=A},98882:(h,I,o)=>{var c=o(18552),v=o(57071),x=o(53818),d=o(58525),b=o(70577),A=o(44239),g=o(80346),L="[object Map]",D="[object Object]",B="[object Promise]",U="[object Set]",_="[object WeakMap]",z="[object DataView]",k=g(c),Q=g(v),M=g(x),O=g(d),V=g(b),X=A;(c&&X(new c(new ArrayBuffer(1)))!=z||v&&X(new v)!=L||x&&X(x.resolve())!=B||d&&X(new d)!=U||b&&X(new b)!=_)&&(X=function(W){var K=A(W),Z=K==D?W.constructor:void 0,ce=Z?g(Z):"";if(ce)switch(ce){case k:return z;case Q:return L;case M:return B;case O:return U;case V:return _}return K}),h.exports=X},47801:h=>{function I(o,c){return o==null?void 0:o[c]}h.exports=I},222:(h,I,o)=>{var c=o(71811),v=o(35694),x=o(1469),d=o(65776),b=o(41780),A=o(40327);function g(L,D,B){D=c(D,L);for(var U=-1,_=D.length,z=!1;++U<_;){var k=A(D[U]);if(!(z=L!=null&&B(L,k)))break;L=L[k]}return z||++U!=_?z:(_=L==null?0:L.length,!!_&&b(_)&&d(k,_)&&(x(L)||v(L)))}h.exports=g},51789:(h,I,o)=>{var c=o(94536);function v(){this.__data__=c?c(null):{},this.size=0}h.exports=v},80401:h=>{function I(o){var c=this.has(o)&&delete this.__data__[o];return this.size-=c?1:0,c}h.exports=I},57667:(h,I,o)=>{var c=o(94536),v="__lodash_hash_undefined__",x=Object.prototype,d=x.hasOwnProperty;function b(A){var g=this.__data__;if(c){var L=g[A];return L===v?void 0:L}return d.call(g,A)?g[A]:void 0}h.exports=b},21327:(h,I,o)=>{var c=o(94536),v=Object.prototype,x=v.hasOwnProperty;function d(b){var A=this.__data__;return c?A[b]!==void 0:x.call(A,b)}h.exports=d},81866:(h,I,o)=>{var c=o(94536),v="__lodash_hash_undefined__";function x(d,b){var A=this.__data__;return this.size+=this.has(d)?0:1,A[d]=c&&b===void 0?v:b,this}h.exports=x},43824:h=>{var I=Object.prototype,o=I.hasOwnProperty;function c(v){var x=v.length,d=new v.constructor(x);return x&&typeof v[0]=="string"&&o.call(v,"index")&&(d.index=v.index,d.input=v.input),d}h.exports=c},29148:(h,I,o)=>{var c=o(74318),v=o(57157),x=o(93147),d=o(40419),b=o(77133),A="[object Boolean]",g="[object Date]",L="[object Map]",D="[object Number]",B="[object RegExp]",U="[object Set]",_="[object String]",z="[object Symbol]",k="[object ArrayBuffer]",Q="[object DataView]",M="[object Float32Array]",O="[object Float64Array]",V="[object Int8Array]",X="[object Int16Array]",W="[object Int32Array]",K="[object Uint8Array]",Z="[object Uint8ClampedArray]",ce="[object Uint16Array]",te="[object Uint32Array]";function ae(me,ge,he){var ue=me.constructor;switch(ge){case k:return c(me);case A:case g:return new ue(+me);case Q:return v(me,he);case M:case O:case V:case X:case W:case K:case Z:case ce:case te:return b(me,he);case L:return new ue;case D:case _:return new ue(me);case B:return x(me);case U:return new ue;case z:return d(me)}}h.exports=ae},38517:(h,I,o)=>{var c=o(3118),v=o(85924),x=o(25726);function d(b){return typeof b.constructor=="function"&&!x(b)?c(v(b)):{}}h.exports=d},37285:(h,I,o)=>{var c=o(62705),v=o(35694),x=o(1469),d=c?c.isConcatSpreadable:void 0;function b(A){return x(A)||v(A)||!!(d&&A&&A[d])}h.exports=b},65776:h=>{var I=9007199254740991,o=/^(?:0|[1-9]\d*)$/;function c(v,x){var d=typeof v;return x=x==null?I:x,!!x&&(d=="number"||d!="symbol"&&o.test(v))&&v>-1&&v%1==0&&v<x}h.exports=c},16612:(h,I,o)=>{var c=o(77813),v=o(98612),x=o(65776),d=o(13218);function b(A,g,L){if(!d(L))return!1;var D=typeof g;return(D=="number"?v(L)&&x(g,L.length):D=="string"&&g in L)?c(L[g],A):!1}h.exports=b},15403:(h,I,o)=>{var c=o(1469),v=o(33448),x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/;function b(A,g){if(c(A))return!1;var L=typeof A;return L=="number"||L=="symbol"||L=="boolean"||A==null||v(A)?!0:d.test(A)||!x.test(A)||g!=null&&A in Object(g)}h.exports=b},37019:h=>{function I(o){var c=typeof o;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?o!=="__proto__":o===null}h.exports=I},15346:(h,I,o)=>{var c=o(14429),v=function(){var d=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}();function x(d){return!!v&&v in d}h.exports=x},25726:h=>{var I=Object.prototype;function o(c){var v=c&&c.constructor,x=typeof v=="function"&&v.prototype||I;return c===x}h.exports=o},89162:(h,I,o)=>{var c=o(13218);function v(x){return x===x&&!c(x)}h.exports=v},27040:h=>{function I(){this.__data__=[],this.size=0}h.exports=I},14125:(h,I,o)=>{var c=o(18470),v=Array.prototype,x=v.splice;function d(b){var A=this.__data__,g=c(A,b);if(g<0)return!1;var L=A.length-1;return g==L?A.pop():x.call(A,g,1),--this.size,!0}h.exports=d},82117:(h,I,o)=>{var c=o(18470);function v(x){var d=this.__data__,b=c(d,x);return b<0?void 0:d[b][1]}h.exports=v},67518:(h,I,o)=>{var c=o(18470);function v(x){return c(this.__data__,x)>-1}h.exports=v},13399:(h,I,o)=>{var c=o(18470);function v(x,d){var b=this.__data__,A=c(b,x);return A<0?(++this.size,b.push([x,d])):b[A][1]=d,this}h.exports=v},24785:(h,I,o)=>{var c=o(1989),v=o(38407),x=o(57071);function d(){this.size=0,this.__data__={hash:new c,map:new(x||v),string:new c}}h.exports=d},11285:(h,I,o)=>{var c=o(45050);function v(x){var d=c(this,x).delete(x);return this.size-=d?1:0,d}h.exports=v},96e3:(h,I,o)=>{var c=o(45050);function v(x){return c(this,x).get(x)}h.exports=v},49916:(h,I,o)=>{var c=o(45050);function v(x){return c(this,x).has(x)}h.exports=v},95265:(h,I,o)=>{var c=o(45050);function v(x,d){var b=c(this,x),A=b.size;return b.set(x,d),this.size+=b.size==A?0:1,this}h.exports=v},68776:h=>{function I(o){var c=-1,v=Array(o.size);return o.forEach(function(x,d){v[++c]=[d,x]}),v}h.exports=I},42634:h=>{function I(o,c){return function(v){return v==null?!1:v[o]===c&&(c!==void 0||o in Object(v))}}h.exports=I},24523:(h,I,o)=>{var c=o(88306),v=500;function x(d){var b=c(d,function(g){return A.size===v&&A.clear(),g}),A=b.cache;return b}h.exports=x},94536:(h,I,o)=>{var c=o(10852),v=c(Object,"create");h.exports=v},86916:(h,I,o)=>{var c=o(5569),v=c(Object.keys,Object);h.exports=v},33498:h=>{function I(o){var c=[];if(o!=null)for(var v in Object(o))c.push(v);return c}h.exports=I},31167:(h,I,o)=>{h=o.nmd(h);var c=o(31957),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d&&c.process,A=function(){try{var g=x&&x.require&&x.require("util").types;return g||b&&b.binding&&b.binding("util")}catch(L){}}();h.exports=A},2333:h=>{var I=Object.prototype,o=I.toString;function c(v){return o.call(v)}h.exports=c},5569:h=>{function I(o,c){return function(v){return o(c(v))}}h.exports=I},45357:(h,I,o)=>{var c=o(96874),v=Math.max;function x(d,b,A){return b=v(b===void 0?d.length-1:b,0),function(){for(var g=arguments,L=-1,D=v(g.length-b,0),B=Array(D);++L<D;)B[L]=g[b+L];L=-1;for(var U=Array(b+1);++L<b;)U[L]=g[L];return U[b]=A(B),c(d,this,U)}}h.exports=x},55639:(h,I,o)=>{var c=o(31957),v=typeof self=="object"&&self&&self.Object===Object&&self,x=c||v||Function("return this")();h.exports=x},90619:h=>{var I="__lodash_hash_undefined__";function o(c){return this.__data__.set(c,I),this}h.exports=o},72385:h=>{function I(o){return this.__data__.has(o)}h.exports=I},21814:h=>{function I(o){var c=-1,v=Array(o.size);return o.forEach(function(x){v[++c]=x}),v}h.exports=I},30061:(h,I,o)=>{var c=o(56560),v=o(21275),x=v(c);h.exports=x},21275:h=>{var I=800,o=16,c=Date.now;function v(x){var d=0,b=0;return function(){var A=c(),g=o-(A-b);if(b=A,g>0){if(++d>=I)return arguments[0]}else d=0;return x.apply(void 0,arguments)}}h.exports=v},37465:(h,I,o)=>{var c=o(38407);function v(){this.__data__=new c,this.size=0}h.exports=v},63779:h=>{function I(o){var c=this.__data__,v=c.delete(o);return this.size=c.size,v}h.exports=I},67599:h=>{function I(o){return this.__data__.get(o)}h.exports=I},44758:h=>{function I(o){return this.__data__.has(o)}h.exports=I},34309:(h,I,o)=>{var c=o(38407),v=o(57071),x=o(83369),d=200;function b(A,g){var L=this.__data__;if(L instanceof c){var D=L.__data__;if(!v||D.length<d-1)return D.push([A,g]),this.size=++L.size,this;L=this.__data__=new x(D)}return L.set(A,g),this.size=L.size,this}h.exports=b},55514:(h,I,o)=>{var c=o(24523),v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,d=c(function(b){var A=[];return b.charCodeAt(0)===46&&A.push(""),b.replace(v,function(g,L,D,B){A.push(D?B.replace(x,"$1"):L||g)}),A});h.exports=d},40327:(h,I,o)=>{var c=o(33448),v=1/0;function x(d){if(typeof d=="string"||c(d))return d;var b=d+"";return b=="0"&&1/d==-v?"-0":b}h.exports=x},80346:h=>{var I=Function.prototype,o=I.toString;function c(v){if(v!=null){try{return o.call(v)}catch(x){}try{return v+""}catch(x){}}return""}h.exports=c},67990:h=>{var I=/\s/;function o(c){for(var v=c.length;v--&&I.test(c.charAt(v)););return v}h.exports=o},28583:(h,I,o)=>{var c=o(34865),v=o(98363),x=o(21463),d=o(98612),b=o(25726),A=o(3674),g=Object.prototype,L=g.hasOwnProperty,D=x(function(B,U){if(b(U)||d(U)){v(U,A(U),B);return}for(var _ in U)L.call(U,_)&&c(B,_,U[_])});h.exports=D},50361:(h,I,o)=>{var c=o(85990),v=1,x=4;function d(b){return c(b,v|x)}h.exports=d},75703:h=>{function I(o){return function(){return o}}h.exports=I},77813:h=>{function I(o,c){return o===c||o!==o&&c!==c}h.exports=I},13311:(h,I,o)=>{var c=o(67740),v=o(30998),x=c(v);h.exports=x},30998:(h,I,o)=>{var c=o(41848),v=o(67206),x=o(40554),d=Math.max;function b(A,g,L){var D=A==null?0:A.length;if(!D)return-1;var B=L==null?0:x(L);return B<0&&(B=d(D+B,0)),c(A,v(g,3),B)}h.exports=b},85564:(h,I,o)=>{var c=o(35764);function v(x){var d=x==null?0:x.length;return d?c(x,1):[]}h.exports=v},27361:(h,I,o)=>{var c=o(97786);function v(x,d,b){var A=x==null?void 0:c(x,d);return A===void 0?b:A}h.exports=v},79095:(h,I,o)=>{var c=o(13),v=o(222);function x(d,b){return d!=null&&v(d,b,c)}h.exports=x},6557:h=>{function I(o){return o}h.exports=I},35694:(h,I,o)=>{var c=o(9454),v=o(37005),x=Object.prototype,d=x.hasOwnProperty,b=x.propertyIsEnumerable,A=c(function(){return arguments}())?c:function(g){return v(g)&&d.call(g,"callee")&&!b.call(g,"callee")};h.exports=A},1469:h=>{var I=Array.isArray;h.exports=I},98612:(h,I,o)=>{var c=o(23560),v=o(41780);function x(d){return d!=null&&v(d.length)&&!c(d)}h.exports=x},44144:(h,I,o)=>{h=o.nmd(h);var c=o(55639),v=o(95062),x=I&&!I.nodeType&&I,d=x&&!0&&h&&!h.nodeType&&h,b=d&&d.exports===x,A=b?c.Buffer:void 0,g=A?A.isBuffer:void 0,L=g||v;h.exports=L},41609:(h,I,o)=>{var c=o(280),v=o(98882),x=o(35694),d=o(1469),b=o(98612),A=o(44144),g=o(25726),L=o(36719),D="[object Map]",B="[object Set]",U=Object.prototype,_=U.hasOwnProperty;function z(k){if(k==null)return!0;if(b(k)&&(d(k)||typeof k=="string"||typeof k.splice=="function"||A(k)||L(k)||x(k)))return!k.length;var Q=v(k);if(Q==D||Q==B)return!k.size;if(g(k))return!c(k).length;for(var M in k)if(_.call(k,M))return!1;return!0}h.exports=z},23560:(h,I,o)=>{var c=o(44239),v=o(13218),x="[object AsyncFunction]",d="[object Function]",b="[object GeneratorFunction]",A="[object Proxy]";function g(L){if(!v(L))return!1;var D=c(L);return D==d||D==b||D==x||D==A}h.exports=g},41780:h=>{var I=9007199254740991;function o(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=I}h.exports=o},56688:(h,I,o)=>{var c=o(25588),v=o(7518),x=o(31167),d=x&&x.isMap,b=d?v(d):c;h.exports=b},13218:h=>{function I(o){var c=typeof o;return o!=null&&(c=="object"||c=="function")}h.exports=I},37005:h=>{function I(o){return o!=null&&typeof o=="object"}h.exports=I},68630:(h,I,o)=>{var c=o(44239),v=o(85924),x=o(37005),d="[object Object]",b=Function.prototype,A=Object.prototype,g=b.toString,L=A.hasOwnProperty,D=g.call(Object);function B(U){if(!x(U)||c(U)!=d)return!1;var _=v(U);if(_===null)return!0;var z=L.call(_,"constructor")&&_.constructor;return typeof z=="function"&&z instanceof z&&g.call(z)==D}h.exports=B},72928:(h,I,o)=>{var c=o(29221),v=o(7518),x=o(31167),d=x&&x.isSet,b=d?v(d):c;h.exports=b},47037:(h,I,o)=>{var c=o(44239),v=o(1469),x=o(37005),d="[object String]";function b(A){return typeof A=="string"||!v(A)&&x(A)&&c(A)==d}h.exports=b},33448:(h,I,o)=>{var c=o(44239),v=o(37005),x="[object Symbol]";function d(b){return typeof b=="symbol"||v(b)&&c(b)==x}h.exports=d},36719:(h,I,o)=>{var c=o(38749),v=o(7518),x=o(31167),d=x&&x.isTypedArray,b=d?v(d):c;h.exports=b},3674:(h,I,o)=>{var c=o(14636),v=o(280),x=o(98612);function d(b){return x(b)?c(b):v(b)}h.exports=d},81704:(h,I,o)=>{var c=o(14636),v=o(10313),x=o(98612);function d(b){return x(b)?c(b,!0):v(b)}h.exports=d},88306:(h,I,o)=>{var c=o(83369),v="Expected a function";function x(d,b){if(typeof d!="function"||b!=null&&typeof b!="function")throw new TypeError(v);var A=function(){var g=arguments,L=b?b.apply(this,g):g[0],D=A.cache;if(D.has(L))return D.get(L);var B=d.apply(this,g);return A.cache=D.set(L,B)||D,B};return A.cache=new(x.Cache||c),A}x.Cache=c,h.exports=x},50308:h=>{function I(){}h.exports=I},78718:(h,I,o)=>{var c=o(25970),v=o(99021),x=v(function(d,b){return d==null?{}:c(d,b)});h.exports=x},39601:(h,I,o)=>{var c=o(40371),v=o(79152),x=o(15403),d=o(40327);function b(A){return x(A)?c(d(A)):v(A)}h.exports=b},10240:(h,I,o)=>{var c=o(29750),v=o(80531),x=o(40554),d=o(79833);function b(A,g,L){return A=d(A),L=L==null?0:c(x(L),0,A.length),g=v(g),A.slice(L,L+g.length)==g}h.exports=b},70479:h=>{function I(){return[]}h.exports=I},95062:h=>{function I(){return!1}h.exports=I},18601:(h,I,o)=>{var c=o(14841),v=1/0,x=17976931348623157e292;function d(b){if(!b)return b===0?b:0;if(b=c(b),b===v||b===-v){var A=b<0?-1:1;return A*x}return b===b?b:0}h.exports=d},40554:(h,I,o)=>{var c=o(18601);function v(x){var d=c(x),b=d%1;return d===d?b?d-b:d:0}h.exports=v},14841:(h,I,o)=>{var c=o(27561),v=o(13218),x=o(33448),d=0/0,b=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,g=/^0o[0-7]+$/i,L=parseInt;function D(B){if(typeof B=="number")return B;if(x(B))return d;if(v(B)){var U=typeof B.valueOf=="function"?B.valueOf():B;B=v(U)?U+"":U}if(typeof B!="string")return B===0?B:+B;B=c(B);var _=A.test(B);return _||g.test(B)?L(B.slice(2),_?2:8):b.test(B)?d:+B}h.exports=D},79833:(h,I,o)=>{var c=o(80531);function v(x){return x==null?"":c(x)}h.exports=v},70631:(h,I,o)=>{var c=typeof Map=="function"&&Map.prototype,v=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,x=c&&v&&typeof v.get=="function"?v.get:null,d=c&&Map.prototype.forEach,b=typeof Set=="function"&&Set.prototype,A=Object.getOwnPropertyDescriptor&&b?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,g=b&&A&&typeof A.get=="function"?A.get:null,L=b&&Set.prototype.forEach,D=typeof WeakMap=="function"&&WeakMap.prototype,B=D?WeakMap.prototype.has:null,U=typeof WeakSet=="function"&&WeakSet.prototype,_=U?WeakSet.prototype.has:null,z=typeof WeakRef=="function"&&WeakRef.prototype,k=z?WeakRef.prototype.deref:null,Q=Boolean.prototype.valueOf,M=Object.prototype.toString,O=Function.prototype.toString,V=String.prototype.match,X=typeof BigInt=="function"?BigInt.prototype.valueOf:null,W=Object.getOwnPropertySymbols,K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Z=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ce=Object.prototype.propertyIsEnumerable,te=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(be){return be.__proto__}:null),ae=o(24654).custom,me=ae&&Je(ae)?ae:null,ge=typeof Symbol=="function"&&typeof Symbol.toStringTag!="undefined"?Symbol.toStringTag:null;h.exports=function be(Ae,T,Ie,H){var C=T||{};if(gt(C,"quoteStyle")&&C.quoteStyle!=="single"&&C.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(gt(C,"maxStringLength")&&(typeof C.maxStringLength=="number"?C.maxStringLength<0&&C.maxStringLength!==1/0:C.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var P=gt(C,"customInspect")?C.customInspect:!0;if(typeof P!="boolean")throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(gt(C,"indent")&&C.indent!==null&&C.indent!==" "&&!(parseInt(C.indent,10)===C.indent&&C.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(typeof Ae=="undefined")return"undefined";if(Ae===null)return"null";if(typeof Ae=="boolean")return Ae?"true":"false";if(typeof Ae=="string")return Ut(Ae,C);if(typeof Ae=="number")return Ae===0?1/0/Ae>0?"0":"-0":String(Ae);if(typeof Ae=="bigint")return String(Ae)+"n";var ne=typeof C.depth=="undefined"?5:C.depth;if(typeof Ie=="undefined"&&(Ie=0),Ie>=ne&&ne>0&&typeof Ae=="object")return ie(Ae)?"[Array]":"[Object]";var N=Y(C,Ie);if(typeof H=="undefined")H=[];else if(ht(H,Ae)>=0)return"[Circular]";function ee(jn,$n,Tn){if($n&&(H=H.slice(),H.push($n)),Tn){var Kn={depth:C.depth};return gt(C,"quoteStyle")&&(Kn.quoteStyle=C.quoteStyle),be(jn,Kn,Ie+1,H)}return be(jn,C,Ie+1,H)}if(typeof Ae=="function"){var fe=lt(Ae),Oe=ke(Ae,ee);return"[Function"+(fe?": "+fe:" (anonymous)")+"]"+(Oe.length>0?" { "+Oe.join(", ")+" }":"")}if(Je(Ae)){var Pe=Z?String(Ae).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):K.call(Ae);return typeof Ae=="object"&&!Z?wt(Pe):Pe}if(Wt(Ae)){for(var Te="<"+String(Ae.nodeName).toLowerCase(),ze=Ae.attributes||[],He=0;He<ze.length;He++)Te+=" "+ze[He].name+"="+he(ue(ze[He].value),"double",C);return Te+=">",Ae.childNodes&&Ae.childNodes.length&&(Te+="..."),Te+="</"+String(Ae.nodeName).toLowerCase()+">",Te}if(ie(Ae)){if(Ae.length===0)return"[]";var it=ke(Ae,ee);return N&&!$(it)?"["+we(it,N)+"]":"[ "+it.join(", ")+" ]"}if(Ne(Ae)){var vt=ke(Ae,ee);return vt.length===0?"["+String(Ae)+"]":"{ ["+String(Ae)+"] "+vt.join(", ")+" }"}if(typeof Ae=="object"&&P){if(me&&typeof Ae[me]=="function")return Ae[me]();if(typeof Ae.inspect=="function")return Ae.inspect()}if(yt(Ae)){var Ct=[];return d.call(Ae,function(jn,$n){Ct.push(ee($n,Ae,!0)+" => "+ee(jn,Ae))}),de("Map",x.call(Ae),Ct,N)}if(Ft(Ae)){var Yt=[];return L.call(Ae,function(jn){Yt.push(ee(jn,Ae))}),de("Set",g.call(Ae),Yt,N)}if(dt(Ae))return Mt("WeakMap");if(St(Ae))return Mt("WeakSet");if(It(Ae))return Mt("WeakRef");if(rt(Ae))return wt(ee(Number(Ae)));if(ut(Ae))return wt(ee(X.call(Ae)));if(Qe(Ae))return wt(Q.call(Ae));if(Re(Ae))return wt(ee(String(Ae)));if(!Me(Ae)&&!je(Ae)){var kt=ke(Ae,ee),yn=te?te(Ae)===Object.prototype:Ae instanceof Object||Ae.constructor===Object,Xr=Ae instanceof Object?"":"null prototype",On=!yn&&ge&&Object(Ae)===Ae&&ge in Ae?_e(Ae).slice(8,-1):Xr?"Object":"",Ui=yn||typeof Ae.constructor!="function"?"":Ae.constructor.name?Ae.constructor.name+" ":"",jr=Ui+(On||Xr?"["+[].concat(On||[],Xr||[]).join(": ")+"] ":"");return kt.length===0?jr+"{}":N?jr+"{"+we(kt,N)+"}":jr+"{ "+kt.join(", ")+" }"}return String(Ae)};function he(be,Ae,T){var Ie=(T.quoteStyle||Ae)==="double"?'"':"'";return Ie+be+Ie}function ue(be){return String(be).replace(/"/g,"&quot;")}function ie(be){return _e(be)==="[object Array]"&&(!ge||!(typeof be=="object"&&ge in be))}function Me(be){return _e(be)==="[object Date]"&&(!ge||!(typeof be=="object"&&ge in be))}function je(be){return _e(be)==="[object RegExp]"&&(!ge||!(typeof be=="object"&&ge in be))}function Ne(be){return _e(be)==="[object Error]"&&(!ge||!(typeof be=="object"&&ge in be))}function Re(be){return _e(be)==="[object String]"&&(!ge||!(typeof be=="object"&&ge in be))}function rt(be){return _e(be)==="[object Number]"&&(!ge||!(typeof be=="object"&&ge in be))}function Qe(be){return _e(be)==="[object Boolean]"&&(!ge||!(typeof be=="object"&&ge in be))}function Je(be){if(Z)return be&&typeof be=="object"&&be instanceof Symbol;if(typeof be=="symbol")return!0;if(!be||typeof be!="object"||!K)return!1;try{return K.call(be),!0}catch(Ae){}return!1}function ut(be){if(!be||typeof be!="object"||!X)return!1;try{return X.call(be),!0}catch(Ae){}return!1}var pt=Object.prototype.hasOwnProperty||function(be){return be in this};function gt(be,Ae){return pt.call(be,Ae)}function _e(be){return M.call(be)}function lt(be){if(be.name)return be.name;var Ae=V.call(O.call(be),/^function\s*([\w$]+)/);return Ae?Ae[1]:null}function ht(be,Ae){if(be.indexOf)return be.indexOf(Ae);for(var T=0,Ie=be.length;T<Ie;T++)if(be[T]===Ae)return T;return-1}function yt(be){if(!x||!be||typeof be!="object")return!1;try{x.call(be);try{g.call(be)}catch(Ae){return!0}return be instanceof Map}catch(Ae){}return!1}function dt(be){if(!B||!be||typeof be!="object")return!1;try{B.call(be,B);try{_.call(be,_)}catch(Ae){return!0}return be instanceof WeakMap}catch(Ae){}return!1}function It(be){if(!k||!be||typeof be!="object")return!1;try{return k.call(be),!0}catch(Ae){}return!1}function Ft(be){if(!g||!be||typeof be!="object")return!1;try{g.call(be);try{x.call(be)}catch(Ae){return!0}return be instanceof Set}catch(Ae){}return!1}function St(be){if(!_||!be||typeof be!="object")return!1;try{_.call(be,_);try{B.call(be,B)}catch(Ae){return!0}return be instanceof WeakSet}catch(Ae){}return!1}function Wt(be){return!be||typeof be!="object"?!1:typeof HTMLElement!="undefined"&&be instanceof HTMLElement?!0:typeof be.nodeName=="string"&&typeof be.getAttribute=="function"}function Ut(be,Ae){if(be.length>Ae.maxStringLength){var T=be.length-Ae.maxStringLength,Ie="... "+T+" more character"+(T>1?"s":"");return Ut(be.slice(0,Ae.maxStringLength),Ae)+Ie}var H=be.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,Gt);return he(H,"single",Ae)}function Gt(be){var Ae=be.charCodeAt(0),T={8:"b",9:"t",10:"n",12:"f",13:"r"}[Ae];return T?"\\"+T:"\\x"+(Ae<16?"0":"")+Ae.toString(16).toUpperCase()}function wt(be){return"Object("+be+")"}function Mt(be){return be+" { ? }"}function de(be,Ae,T,Ie){var H=Ie?we(T,Ie):T.join(", ");return be+" ("+Ae+") {"+H+"}"}function $(be){for(var Ae=0;Ae<be.length;Ae++)if(ht(be[Ae],`
504
- `)>=0)return!1;return!0}function Y(be,Ae){var T;if(be.indent===" ")T=" ";else if(typeof be.indent=="number"&&be.indent>0)T=Array(be.indent+1).join(" ");else return null;return{base:T,prev:Array(Ae+1).join(T)}}function we(be,Ae){if(be.length===0)return"";var T=`
469
+ `},68929:()=>{},17648:h=>{"use strict";var I="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,c=Object.prototype.toString,v="[object Function]";h.exports=function(d){var b=this;if(typeof b!="function"||c.call(b)!==v)throw new TypeError(I+b);for(var S=o.call(arguments,1),g,L=function(){if(this instanceof g){var H=b.apply(this,S.concat(o.call(arguments)));return Object(H)===H?H:this}else return b.apply(d,S.concat(o.call(arguments)))},N=Math.max(0,b.length-S.length),B=[],j=0;j<N;j++)B.push("$"+j);if(g=Function("binder","return function ("+B.join(",")+"){ return binder.apply(this,arguments); }")(L),b.prototype){var _=function(){};_.prototype=b.prototype,g.prototype=new _,_.prototype=null}return g}},58612:(h,I,o)=>{"use strict";var c=o(17648);h.exports=Function.prototype.bind||c},40210:(h,I,o)=>{"use strict";var c,v=SyntaxError,x=Function,d=TypeError,b=function(ye){try{return x('"use strict"; return ('+ye+").constructor;")()}catch(ve){}},S=Object.getOwnPropertyDescriptor;if(S)try{S({},"")}catch(ye){S=null}var g=function(){throw new d},L=S?function(){try{return arguments.callee,g}catch(ye){try{return S(arguments,"callee").get}catch(ve){return g}}}():g,N=o(41405)(),B=Object.getPrototypeOf||function(ye){return ye.__proto__},j={},_=typeof Uint8Array=="undefined"?c:B(Uint8Array),H={"%AggregateError%":typeof AggregateError=="undefined"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?c:ArrayBuffer,"%ArrayIteratorPrototype%":N?B([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":typeof Atomics=="undefined"?c:Atomics,"%BigInt%":typeof BigInt=="undefined"?c:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?c:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?c:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?c:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?c:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":j,"%Int8Array%":typeof Int8Array=="undefined"?c:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?c:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N?B(B([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map=="undefined"?c:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!N?c:B(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?c:Promise,"%Proxy%":typeof Proxy=="undefined"?c:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?c:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?c:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!N?c:B(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N?B(""[Symbol.iterator]()):c,"%Symbol%":N?Symbol:c,"%SyntaxError%":v,"%ThrowTypeError%":L,"%TypedArray%":_,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array=="undefined"?c:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?c:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?c:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?c:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?c:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?c:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?c:WeakSet},k=function ye(ve){var de;if(ve==="%AsyncFunction%")de=b("async function () {}");else if(ve==="%GeneratorFunction%")de=b("function* () {}");else if(ve==="%AsyncGeneratorFunction%")de=b("async function* () {}");else if(ve==="%AsyncGenerator%"){var le=ye("%AsyncGeneratorFunction%");le&&(de=le.prototype)}else if(ve==="%AsyncIteratorPrototype%"){var oe=ye("%AsyncGenerator%");oe&&(de=B(oe.prototype))}return H[ve]=de,de},X={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=o(58612),C=o(17642),V=R.call(Function.call,Array.prototype.concat),J=R.call(Function.apply,Array.prototype.splice),q=R.call(Function.call,String.prototype.replace),Q=R.call(Function.call,String.prototype.slice),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fe=/\\(\\)?/g,te=function(ve){var de=Q(ve,0,1),le=Q(ve,-1);if(de==="%"&&le!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(le==="%"&&de!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var oe=[];return q(ve,K,function(De,Ve,Le,ke){oe[oe.length]=Le?q(ke,fe,"$1"):Ve||De}),oe},re=function(ve,de){var le=ve,oe;if(C(X,le)&&(oe=X[le],le="%"+oe[0]+"%"),C(H,le)){var De=H[le];if(De===j&&(De=k(le)),typeof De=="undefined"&&!de)throw new d("intrinsic "+ve+" exists, but is not available. Please file an issue!");return{alias:oe,name:le,value:De}}throw new v("intrinsic "+ve+" does not exist!")};h.exports=function(ve,de){if(typeof ve!="string"||ve.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof de!="boolean")throw new d('"allowMissing" argument must be a boolean');var le=te(ve),oe=le.length>0?le[0]:"",De=re("%"+oe+"%",de),Ve=De.name,Le=De.value,ke=!1,tt=De.alias;tt&&(oe=tt[0],J(le,V([0,1],tt)));for(var Qe=1,Xe=!0;Qe<le.length;Qe+=1){var ut=le[Qe],pt=Q(ut,0,1),yt=Q(ut,-1);if((pt==='"'||pt==="'"||pt==="`"||yt==='"'||yt==="'"||yt==="`")&&pt!==yt)throw new v("property names with quotes must have matching quotes");if((ut==="constructor"||!Xe)&&(ke=!0),oe+="."+ut,Ve="%"+oe+"%",C(H,Ve))Le=H[Ve];else if(Le!=null){if(!(ut in Le)){if(!de)throw new d("base intrinsic for "+ve+" exists, but the property is not available.");return}if(S&&Qe+1>=le.length){var qe=S(Le,ut);Xe=!!qe,Xe&&"get"in qe&&!("originalValue"in qe.get)?Le=qe.get:Le=Le[ut]}else Xe=C(Le,ut),Le=Le[ut];Xe&&!ke&&(H[Ve]=Le)}}return Le}},41405:(h,I,o)=>{"use strict";var c=typeof Symbol!="undefined"&&Symbol,v=o(55419);h.exports=function(){return typeof c!="function"||typeof Symbol!="function"||typeof c("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:v()}},55419:h=>{"use strict";h.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},c=Symbol("test"),v=Object(c);if(typeof c=="string"||Object.prototype.toString.call(c)!=="[object Symbol]"||Object.prototype.toString.call(v)!=="[object Symbol]")return!1;var x=42;o[c]=x;for(c in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var d=Object.getOwnPropertySymbols(o);if(d.length!==1||d[0]!==c||!Object.prototype.propertyIsEnumerable.call(o,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var b=Object.getOwnPropertyDescriptor(o,c);if(b.value!==x||b.enumerable!==!0)return!1}return!0}},17642:(h,I,o)=>{"use strict";var c=o(58612);h.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},80645:(h,I)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */I.read=function(o,c,v,x,d){var b,S,g=d*8-x-1,L=(1<<g)-1,N=L>>1,B=-7,j=v?d-1:0,_=v?-1:1,H=o[c+j];for(j+=_,b=H&(1<<-B)-1,H>>=-B,B+=g;B>0;b=b*256+o[c+j],j+=_,B-=8);for(S=b&(1<<-B)-1,b>>=-B,B+=x;B>0;S=S*256+o[c+j],j+=_,B-=8);if(b===0)b=1-N;else{if(b===L)return S?NaN:(H?-1:1)*(1/0);S=S+Math.pow(2,x),b=b-N}return(H?-1:1)*S*Math.pow(2,b-x)},I.write=function(o,c,v,x,d,b){var S,g,L,N=b*8-d-1,B=(1<<N)-1,j=B>>1,_=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,H=x?0:b-1,k=x?1:-1,X=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(g=isNaN(c)?1:0,S=B):(S=Math.floor(Math.log(c)/Math.LN2),c*(L=Math.pow(2,-S))<1&&(S--,L*=2),S+j>=1?c+=_/L:c+=_*Math.pow(2,1-j),c*L>=2&&(S++,L/=2),S+j>=B?(g=0,S=B):S+j>=1?(g=(c*L-1)*Math.pow(2,d),S=S+j):(g=c*Math.pow(2,j-1)*Math.pow(2,d),S=0));d>=8;o[v+H]=g&255,H+=k,g/=256,d-=8);for(S=S<<d|g,N+=d;N>0;o[v+H]=S&255,H+=k,S/=256,N-=8);o[v+H-k]|=X*128}},5826:h=>{var I={}.toString;h.exports=Array.isArray||function(o){return I.call(o)=="[object Array]"}},57514:h=>{h.exports=window.FormData},93320:(h,I,o)=>{"use strict";var c=o(51294);h.exports=c},51294:(h,I,o)=>{"use strict";var c=o(40028),v=o(96157);function x(d){return function(){throw new Error("Function "+d+" is deprecated and cannot be used.")}}h.exports.Type=o(53899),h.exports.Schema=o(82409),h.exports.FAILSAFE_SCHEMA=o(75322),h.exports.JSON_SCHEMA=o(65796),h.exports.CORE_SCHEMA=o(17318),h.exports.DEFAULT_SAFE_SCHEMA=o(5972),h.exports.DEFAULT_FULL_SCHEMA=o(19321),h.exports.load=c.load,h.exports.loadAll=c.loadAll,h.exports.safeLoad=c.safeLoad,h.exports.safeLoadAll=c.safeLoadAll,h.exports.dump=v.dump,h.exports.safeDump=v.safeDump,h.exports.YAMLException=o(14884),h.exports.MINIMAL_SCHEMA=o(75322),h.exports.SAFE_SCHEMA=o(5972),h.exports.DEFAULT_SCHEMA=o(19321),h.exports.scan=x("scan"),h.exports.parse=x("parse"),h.exports.compose=x("compose"),h.exports.addConstructor=x("addConstructor")},25596:h=>{"use strict";function I(b){return typeof b=="undefined"||b===null}function o(b){return typeof b=="object"&&b!==null}function c(b){return Array.isArray(b)?b:I(b)?[]:[b]}function v(b,S){var g,L,N,B;if(S)for(B=Object.keys(S),g=0,L=B.length;g<L;g+=1)N=B[g],b[N]=S[N];return b}function x(b,S){var g="",L;for(L=0;L<S;L+=1)g+=b;return g}function d(b){return b===0&&Number.NEGATIVE_INFINITY===1/b}h.exports.isNothing=I,h.exports.isObject=o,h.exports.toArray=c,h.exports.repeat=x,h.exports.isNegativeZero=d,h.exports.extend=v},96157:(h,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(19321),d=o(5972),b=Object.prototype.toString,S=Object.prototype.hasOwnProperty,g=9,L=10,N=13,B=32,j=33,_=34,H=35,k=37,X=38,R=39,C=42,V=44,J=45,q=58,Q=61,K=62,fe=63,te=64,re=91,ye=93,ve=96,de=123,le=124,oe=125,De={};De[0]="\\0",De[7]="\\a",De[8]="\\b",De[9]="\\t",De[10]="\\n",De[11]="\\v",De[12]="\\f",De[13]="\\r",De[27]="\\e",De[34]='\\"',De[92]="\\\\",De[133]="\\N",De[160]="\\_",De[8232]="\\L",De[8233]="\\P";var Ve=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Le(D,ee){var ce,Oe,Pe,Te,ze,He,it;if(ee===null)return{};for(ce={},Oe=Object.keys(ee),Pe=0,Te=Oe.length;Pe<Te;Pe+=1)ze=Oe[Pe],He=String(ee[ze]),ze.slice(0,2)==="!!"&&(ze="tag:yaml.org,2002:"+ze.slice(2)),it=D.compiledTypeMap.fallback[ze],it&&S.call(it.styleAliases,He)&&(He=it.styleAliases[He]),ce[ze]=He;return ce}function ke(D){var ee,ce,Oe;if(ee=D.toString(16).toUpperCase(),D<=255)ce="x",Oe=2;else if(D<=65535)ce="u",Oe=4;else if(D<=4294967295)ce="U",Oe=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+ce+c.repeat("0",Oe-ee.length)+ee}function tt(D){this.schema=D.schema||x,this.indent=Math.max(1,D.indent||2),this.noArrayIndent=D.noArrayIndent||!1,this.skipInvalid=D.skipInvalid||!1,this.flowLevel=c.isNothing(D.flowLevel)?-1:D.flowLevel,this.styleMap=Le(this.schema,D.styles||null),this.sortKeys=D.sortKeys||!1,this.lineWidth=D.lineWidth||80,this.noRefs=D.noRefs||!1,this.noCompatMode=D.noCompatMode||!1,this.condenseFlow=D.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Qe(D,ee){for(var ce=c.repeat(" ",ee),Oe=0,Pe=-1,Te="",ze,He=D.length;Oe<He;)Pe=D.indexOf(`
470
+ `,Oe),Pe===-1?(ze=D.slice(Oe),Oe=He):(ze=D.slice(Oe,Pe+1),Oe=Pe+1),ze.length&&ze!==`
471
+ `&&(Te+=ce),Te+=ze;return Te}function Xe(D,ee){return`
472
+ `+c.repeat(" ",D.indent*ee)}function ut(D,ee){var ce,Oe,Pe;for(ce=0,Oe=D.implicitTypes.length;ce<Oe;ce+=1)if(Pe=D.implicitTypes[ce],Pe.resolve(ee))return!0;return!1}function pt(D){return D===B||D===g}function yt(D){return 32<=D&&D<=126||161<=D&&D<=55295&&D!==8232&&D!==8233||57344<=D&&D<=65533&&D!==65279||65536<=D&&D<=1114111}function qe(D){return yt(D)&&!pt(D)&&D!==65279&&D!==N&&D!==L}function lt(D,ee){return yt(D)&&D!==65279&&D!==V&&D!==re&&D!==ye&&D!==de&&D!==oe&&D!==q&&(D!==H||ee&&qe(ee))}function vt(D){return yt(D)&&D!==65279&&!pt(D)&&D!==J&&D!==fe&&D!==q&&D!==V&&D!==re&&D!==ye&&D!==de&&D!==oe&&D!==H&&D!==X&&D!==C&&D!==j&&D!==le&&D!==Q&&D!==K&&D!==R&&D!==_&&D!==k&&D!==te&&D!==ve}function mt(D){var ee=/^\n* /;return ee.test(D)}var dt=1,kt=2,It=3,St=4,Wt=5;function Bt(D,ee,ce,Oe,Pe){var Te,ze,He,it=!1,gt=!1,Ct=Oe!==-1,Yt=-1,Ft=vt(D.charCodeAt(0))&&!pt(D.charCodeAt(D.length-1));if(ee)for(Te=0;Te<D.length;Te++){if(ze=D.charCodeAt(Te),!yt(ze))return Wt;He=Te>0?D.charCodeAt(Te-1):null,Ft=Ft&&lt(ze,He)}else{for(Te=0;Te<D.length;Te++){if(ze=D.charCodeAt(Te),ze===L)it=!0,Ct&&(gt=gt||Te-Yt-1>Oe&&D[Yt+1]!==" ",Yt=Te);else if(!yt(ze))return Wt;He=Te>0?D.charCodeAt(Te-1):null,Ft=Ft&&lt(ze,He)}gt=gt||Ct&&Te-Yt-1>Oe&&D[Yt+1]!==" "}return!it&&!gt?Ft&&!Pe(D)?dt:kt:ce>9&&mt(D)?Wt:gt?St:It}function Gt(D,ee,ce,Oe){D.dump=function(){if(ee.length===0)return"''";if(!D.noCompatMode&&Ve.indexOf(ee)!==-1)return"'"+ee+"'";var Pe=D.indent*Math.max(1,ce),Te=D.lineWidth===-1?-1:Math.max(Math.min(D.lineWidth,40),D.lineWidth-Pe),ze=Oe||D.flowLevel>-1&&ce>=D.flowLevel;function He(it){return ut(D,it)}switch(Bt(ee,ze,D.indent,Te,He)){case dt:return ee;case kt:return"'"+ee.replace(/'/g,"''")+"'";case It:return"|"+wt(ee,D.indent)+Rt(Qe(ee,Pe));case St:return">"+wt(ee,D.indent)+Rt(Qe(pe(ee,Te),Pe));case Wt:return'"'+$(ee,Te)+'"';default:throw new v("impossible error: invalid scalar style")}}()}function wt(D,ee){var ce=mt(D)?String(ee):"",Oe=D[D.length-1]===`
473
+ `,Pe=Oe&&(D[D.length-2]===`
474
+ `||D===`
475
+ `),Te=Pe?"+":Oe?"":"-";return ce+Te+`
476
+ `}function Rt(D){return D[D.length-1]===`
477
+ `?D.slice(0,-1):D}function pe(D,ee){for(var ce=/(\n+)([^\n]*)/g,Oe=function(){var gt=D.indexOf(`
478
+ `);return gt=gt!==-1?gt:D.length,ce.lastIndex=gt,G(D.slice(0,gt),ee)}(),Pe=D[0]===`
479
+ `||D[0]===" ",Te,ze;ze=ce.exec(D);){var He=ze[1],it=ze[2];Te=it[0]===" ",Oe+=He+(!Pe&&!Te&&it!==""?`
480
+ `:"")+G(it,ee),Pe=Te}return Oe}function G(D,ee){if(D===""||D[0]===" ")return D;for(var ce=/ [^ ]/g,Oe,Pe=0,Te,ze=0,He=0,it="";Oe=ce.exec(D);)He=Oe.index,He-Pe>ee&&(Te=ze>Pe?ze:He,it+=`
481
+ `+D.slice(Pe,Te),Pe=Te+1),ze=He;return it+=`
482
+ `,D.length-Pe>ee&&ze>Pe?it+=D.slice(Pe,ze)+`
483
+ `+D.slice(ze+1):it+=D.slice(Pe),it.slice(1)}function $(D){for(var ee="",ce,Oe,Pe,Te=0;Te<D.length;Te++){if(ce=D.charCodeAt(Te),ce>=55296&&ce<=56319&&(Oe=D.charCodeAt(Te+1),Oe>=56320&&Oe<=57343)){ee+=ke((ce-55296)*1024+Oe-56320+65536),Te++;continue}Pe=De[ce],ee+=!Pe&&yt(ce)?D[Te]:Pe||ke(ce)}return ee}function we(D,ee,ce){var Oe="",Pe=D.tag,Te,ze;for(Te=0,ze=ce.length;Te<ze;Te+=1)Ie(D,ee,ce[Te],!1,!1)&&(Te!==0&&(Oe+=","+(D.condenseFlow?"":" ")),Oe+=D.dump);D.tag=Pe,D.dump="["+Oe+"]"}function Me(D,ee,ce,Oe){var Pe="",Te=D.tag,ze,He;for(ze=0,He=ce.length;ze<He;ze+=1)Ie(D,ee+1,ce[ze],!0,!0)&&((!Oe||ze!==0)&&(Pe+=Xe(D,ee)),D.dump&&L===D.dump.charCodeAt(0)?Pe+="-":Pe+="- ",Pe+=D.dump);D.tag=Te,D.dump=Pe||"[]"}function be(D,ee,ce){var Oe="",Pe=D.tag,Te=Object.keys(ce),ze,He,it,gt,Ct;for(ze=0,He=Te.length;ze<He;ze+=1)Ct="",ze!==0&&(Ct+=", "),D.condenseFlow&&(Ct+='"'),it=Te[ze],gt=ce[it],!!Ie(D,ee,it,!1,!1)&&(D.dump.length>1024&&(Ct+="? "),Ct+=D.dump+(D.condenseFlow?'"':"")+":"+(D.condenseFlow?"":" "),!!Ie(D,ee,gt,!1,!1)&&(Ct+=D.dump,Oe+=Ct));D.tag=Pe,D.dump="{"+Oe+"}"}function Ae(D,ee,ce,Oe){var Pe="",Te=D.tag,ze=Object.keys(ce),He,it,gt,Ct,Yt,Ft;if(D.sortKeys===!0)ze.sort();else if(typeof D.sortKeys=="function")ze.sort(D.sortKeys);else if(D.sortKeys)throw new v("sortKeys must be a boolean or a function");for(He=0,it=ze.length;He<it;He+=1)Ft="",(!Oe||He!==0)&&(Ft+=Xe(D,ee)),gt=ze[He],Ct=ce[gt],!!Ie(D,ee+1,gt,!0,!0,!0)&&(Yt=D.tag!==null&&D.tag!=="?"||D.dump&&D.dump.length>1024,Yt&&(D.dump&&L===D.dump.charCodeAt(0)?Ft+="?":Ft+="? "),Ft+=D.dump,Yt&&(Ft+=Xe(D,ee)),!!Ie(D,ee+1,Ct,!0,Yt)&&(D.dump&&L===D.dump.charCodeAt(0)?Ft+=":":Ft+=": ",Ft+=D.dump,Pe+=Ft));D.tag=Te,D.dump=Pe||"{}"}function T(D,ee,ce){var Oe,Pe,Te,ze,He,it;for(Pe=ce?D.explicitTypes:D.implicitTypes,Te=0,ze=Pe.length;Te<ze;Te+=1)if(He=Pe[Te],(He.instanceOf||He.predicate)&&(!He.instanceOf||typeof ee=="object"&&ee instanceof He.instanceOf)&&(!He.predicate||He.predicate(ee))){if(D.tag=ce?He.tag:"?",He.represent){if(it=D.styleMap[He.tag]||He.defaultStyle,b.call(He.represent)==="[object Function]")Oe=He.represent(ee,it);else if(S.call(He.represent,it))Oe=He.represent[it](ee,it);else throw new v("!<"+He.tag+'> tag resolver accepts not "'+it+'" style');D.dump=Oe}return!0}return!1}function Ie(D,ee,ce,Oe,Pe,Te){D.tag=null,D.dump=ce,T(D,ce,!1)||T(D,ce,!0);var ze=b.call(D.dump);Oe&&(Oe=D.flowLevel<0||D.flowLevel>ee);var He=ze==="[object Object]"||ze==="[object Array]",it,gt;if(He&&(it=D.duplicates.indexOf(ce),gt=it!==-1),(D.tag!==null&&D.tag!=="?"||gt||D.indent!==2&&ee>0)&&(Pe=!1),gt&&D.usedDuplicates[it])D.dump="*ref_"+it;else{if(He&&gt&&!D.usedDuplicates[it]&&(D.usedDuplicates[it]=!0),ze==="[object Object]")Oe&&Object.keys(D.dump).length!==0?(Ae(D,ee,D.dump,Pe),gt&&(D.dump="&ref_"+it+D.dump)):(be(D,ee,D.dump),gt&&(D.dump="&ref_"+it+" "+D.dump));else if(ze==="[object Array]"){var Ct=D.noArrayIndent&&ee>0?ee-1:ee;Oe&&D.dump.length!==0?(Me(D,Ct,D.dump,Pe),gt&&(D.dump="&ref_"+it+D.dump)):(we(D,Ct,D.dump),gt&&(D.dump="&ref_"+it+" "+D.dump))}else if(ze==="[object String]")D.tag!=="?"&&Gt(D,D.dump,ee,Te);else{if(D.skipInvalid)return!1;throw new v("unacceptable kind of an object to dump "+ze)}D.tag!==null&&D.tag!=="?"&&(D.dump="!<"+D.tag+"> "+D.dump)}return!0}function W(D,ee){var ce=[],Oe=[],Pe,Te;for(O(D,ce,Oe),Pe=0,Te=Oe.length;Pe<Te;Pe+=1)ee.duplicates.push(ce[Oe[Pe]]);ee.usedDuplicates=new Array(Te)}function O(D,ee,ce){var Oe,Pe,Te;if(D!==null&&typeof D=="object")if(Pe=ee.indexOf(D),Pe!==-1)ce.indexOf(Pe)===-1&&ce.push(Pe);else if(ee.push(D),Array.isArray(D))for(Pe=0,Te=D.length;Pe<Te;Pe+=1)O(D[Pe],ee,ce);else for(Oe=Object.keys(D),Pe=0,Te=Oe.length;Pe<Te;Pe+=1)O(D[Oe[Pe]],ee,ce)}function P(D,ee){ee=ee||{};var ce=new tt(ee);return ce.noRefs||W(D,ce),Ie(ce,0,D,!0,!0)?ce.dump+`
484
+ `:""}function ie(D,ee){return P(D,c.extend({schema:d},ee))}h.exports.dump=P,h.exports.safeDump=ie},14884:h=>{"use strict";function I(o,c){Error.call(this),this.name="YAMLException",this.reason=o,this.mark=c,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}I.prototype=Object.create(Error.prototype),I.prototype.constructor=I,I.prototype.toString=function(c){var v=this.name+": ";return v+=this.reason||"(unknown reason)",!c&&this.mark&&(v+=" "+this.mark.toString()),v},h.exports=I},40028:(h,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(77334),d=o(5972),b=o(19321),S=Object.prototype.hasOwnProperty,g=1,L=2,N=3,B=4,j=1,_=2,H=3,k=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,X=/[\x85\u2028\u2029]/,R=/[,\[\]\{\}]/,C=/^(?:!|!!|![a-z\-]+!)$/i,V=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function J(T){return Object.prototype.toString.call(T)}function q(T){return T===10||T===13}function Q(T){return T===9||T===32}function K(T){return T===9||T===32||T===10||T===13}function fe(T){return T===44||T===91||T===93||T===123||T===125}function te(T){var Ie;return 48<=T&&T<=57?T-48:(Ie=T|32,97<=Ie&&Ie<=102?Ie-97+10:-1)}function re(T){return T===120?2:T===117?4:T===85?8:0}function ye(T){return 48<=T&&T<=57?T-48:-1}function ve(T){return T===48?"\0":T===97?"\x07":T===98?"\b":T===116||T===9?" ":T===110?`
485
+ `:T===118?"\v":T===102?"\f":T===114?"\r":T===101?"":T===32?" ":T===34?'"':T===47?"/":T===92?"\\":T===78?"\x85":T===95?"\xA0":T===76?"\u2028":T===80?"\u2029":""}function de(T){return T<=65535?String.fromCharCode(T):String.fromCharCode((T-65536>>10)+55296,(T-65536&1023)+56320)}for(var le=new Array(256),oe=new Array(256),De=0;De<256;De++)le[De]=ve(De)?1:0,oe[De]=ve(De);function Ve(T,Ie){this.input=T,this.filename=Ie.filename||null,this.schema=Ie.schema||b,this.onWarning=Ie.onWarning||null,this.legacy=Ie.legacy||!1,this.json=Ie.json||!1,this.listener=Ie.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=T.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Le(T,Ie){return new v(Ie,new x(T.filename,T.input,T.position,T.line,T.position-T.lineStart))}function ke(T,Ie){throw Le(T,Ie)}function tt(T,Ie){T.onWarning&&T.onWarning.call(null,Le(T,Ie))}var Qe={YAML:function(Ie,W,O){var P,ie,D;Ie.version!==null&&ke(Ie,"duplication of %YAML directive"),O.length!==1&&ke(Ie,"YAML directive accepts exactly one argument"),P=/^([0-9]+)\.([0-9]+)$/.exec(O[0]),P===null&&ke(Ie,"ill-formed argument of the YAML directive"),ie=parseInt(P[1],10),D=parseInt(P[2],10),ie!==1&&ke(Ie,"unacceptable YAML version of the document"),Ie.version=O[0],Ie.checkLineBreaks=D<2,D!==1&&D!==2&&tt(Ie,"unsupported YAML version of the document")},TAG:function(Ie,W,O){var P,ie;O.length!==2&&ke(Ie,"TAG directive accepts exactly two arguments"),P=O[0],ie=O[1],C.test(P)||ke(Ie,"ill-formed tag handle (first argument) of the TAG directive"),S.call(Ie.tagMap,P)&&ke(Ie,'there is a previously declared suffix for "'+P+'" tag handle'),V.test(ie)||ke(Ie,"ill-formed tag prefix (second argument) of the TAG directive"),Ie.tagMap[P]=ie}};function Xe(T,Ie,W,O){var P,ie,D,ee;if(Ie<W){if(ee=T.input.slice(Ie,W),O)for(P=0,ie=ee.length;P<ie;P+=1)D=ee.charCodeAt(P),D===9||32<=D&&D<=1114111||ke(T,"expected valid JSON character");else k.test(ee)&&ke(T,"the stream contains non-printable characters");T.result+=ee}}function ut(T,Ie,W,O){var P,ie,D,ee;for(c.isObject(W)||ke(T,"cannot merge mappings; the provided source object is unacceptable"),P=Object.keys(W),D=0,ee=P.length;D<ee;D+=1)ie=P[D],S.call(Ie,ie)||(Ie[ie]=W[ie],O[ie]=!0)}function pt(T,Ie,W,O,P,ie,D,ee){var ce,Oe;if(Array.isArray(P))for(P=Array.prototype.slice.call(P),ce=0,Oe=P.length;ce<Oe;ce+=1)Array.isArray(P[ce])&&ke(T,"nested arrays are not supported inside keys"),typeof P=="object"&&J(P[ce])==="[object Object]"&&(P[ce]="[object Object]");if(typeof P=="object"&&J(P)==="[object Object]"&&(P="[object Object]"),P=String(P),Ie===null&&(Ie={}),O==="tag:yaml.org,2002:merge")if(Array.isArray(ie))for(ce=0,Oe=ie.length;ce<Oe;ce+=1)ut(T,Ie,ie[ce],W);else ut(T,Ie,ie,W);else!T.json&&!S.call(W,P)&&S.call(Ie,P)&&(T.line=D||T.line,T.position=ee||T.position,ke(T,"duplicated mapping key")),Ie[P]=ie,delete W[P];return Ie}function yt(T){var Ie;Ie=T.input.charCodeAt(T.position),Ie===10?T.position++:Ie===13?(T.position++,T.input.charCodeAt(T.position)===10&&T.position++):ke(T,"a line break is expected"),T.line+=1,T.lineStart=T.position}function qe(T,Ie,W){for(var O=0,P=T.input.charCodeAt(T.position);P!==0;){for(;Q(P);)P=T.input.charCodeAt(++T.position);if(Ie&&P===35)do P=T.input.charCodeAt(++T.position);while(P!==10&&P!==13&&P!==0);if(q(P))for(yt(T),P=T.input.charCodeAt(T.position),O++,T.lineIndent=0;P===32;)T.lineIndent++,P=T.input.charCodeAt(++T.position);else break}return W!==-1&&O!==0&&T.lineIndent<W&&tt(T,"deficient indentation"),O}function lt(T){var Ie=T.position,W;return W=T.input.charCodeAt(Ie),!!((W===45||W===46)&&W===T.input.charCodeAt(Ie+1)&&W===T.input.charCodeAt(Ie+2)&&(Ie+=3,W=T.input.charCodeAt(Ie),W===0||K(W)))}function vt(T,Ie){Ie===1?T.result+=" ":Ie>1&&(T.result+=c.repeat(`
486
+ `,Ie-1))}function mt(T,Ie,W){var O,P,ie,D,ee,ce,Oe,Pe,Te=T.kind,ze=T.result,He;if(He=T.input.charCodeAt(T.position),K(He)||fe(He)||He===35||He===38||He===42||He===33||He===124||He===62||He===39||He===34||He===37||He===64||He===96||(He===63||He===45)&&(P=T.input.charCodeAt(T.position+1),K(P)||W&&fe(P)))return!1;for(T.kind="scalar",T.result="",ie=D=T.position,ee=!1;He!==0;){if(He===58){if(P=T.input.charCodeAt(T.position+1),K(P)||W&&fe(P))break}else if(He===35){if(O=T.input.charCodeAt(T.position-1),K(O))break}else{if(T.position===T.lineStart&&lt(T)||W&&fe(He))break;if(q(He))if(ce=T.line,Oe=T.lineStart,Pe=T.lineIndent,qe(T,!1,-1),T.lineIndent>=Ie){ee=!0,He=T.input.charCodeAt(T.position);continue}else{T.position=D,T.line=ce,T.lineStart=Oe,T.lineIndent=Pe;break}}ee&&(Xe(T,ie,D,!1),vt(T,T.line-ce),ie=D=T.position,ee=!1),Q(He)||(D=T.position+1),He=T.input.charCodeAt(++T.position)}return Xe(T,ie,D,!1),T.result?!0:(T.kind=Te,T.result=ze,!1)}function dt(T,Ie){var W,O,P;if(W=T.input.charCodeAt(T.position),W!==39)return!1;for(T.kind="scalar",T.result="",T.position++,O=P=T.position;(W=T.input.charCodeAt(T.position))!==0;)if(W===39)if(Xe(T,O,T.position,!0),W=T.input.charCodeAt(++T.position),W===39)O=T.position,T.position++,P=T.position;else return!0;else q(W)?(Xe(T,O,P,!0),vt(T,qe(T,!1,Ie)),O=P=T.position):T.position===T.lineStart&&lt(T)?ke(T,"unexpected end of the document within a single quoted scalar"):(T.position++,P=T.position);ke(T,"unexpected end of the stream within a single quoted scalar")}function kt(T,Ie){var W,O,P,ie,D,ee;if(ee=T.input.charCodeAt(T.position),ee!==34)return!1;for(T.kind="scalar",T.result="",T.position++,W=O=T.position;(ee=T.input.charCodeAt(T.position))!==0;){if(ee===34)return Xe(T,W,T.position,!0),T.position++,!0;if(ee===92){if(Xe(T,W,T.position,!0),ee=T.input.charCodeAt(++T.position),q(ee))qe(T,!1,Ie);else if(ee<256&&le[ee])T.result+=oe[ee],T.position++;else if((D=re(ee))>0){for(P=D,ie=0;P>0;P--)ee=T.input.charCodeAt(++T.position),(D=te(ee))>=0?ie=(ie<<4)+D:ke(T,"expected hexadecimal character");T.result+=de(ie),T.position++}else ke(T,"unknown escape sequence");W=O=T.position}else q(ee)?(Xe(T,W,O,!0),vt(T,qe(T,!1,Ie)),W=O=T.position):T.position===T.lineStart&&lt(T)?ke(T,"unexpected end of the document within a double quoted scalar"):(T.position++,O=T.position)}ke(T,"unexpected end of the stream within a double quoted scalar")}function It(T,Ie){var W=!0,O,P=T.tag,ie,D=T.anchor,ee,ce,Oe,Pe,Te,ze={},He,it,gt,Ct;if(Ct=T.input.charCodeAt(T.position),Ct===91)ce=93,Te=!1,ie=[];else if(Ct===123)ce=125,Te=!0,ie={};else return!1;for(T.anchor!==null&&(T.anchorMap[T.anchor]=ie),Ct=T.input.charCodeAt(++T.position);Ct!==0;){if(qe(T,!0,Ie),Ct=T.input.charCodeAt(T.position),Ct===ce)return T.position++,T.tag=P,T.anchor=D,T.kind=Te?"mapping":"sequence",T.result=ie,!0;W||ke(T,"missed comma between flow collection entries"),it=He=gt=null,Oe=Pe=!1,Ct===63&&(ee=T.input.charCodeAt(T.position+1),K(ee)&&(Oe=Pe=!0,T.position++,qe(T,!0,Ie))),O=T.line,pe(T,Ie,g,!1,!0),it=T.tag,He=T.result,qe(T,!0,Ie),Ct=T.input.charCodeAt(T.position),(Pe||T.line===O)&&Ct===58&&(Oe=!0,Ct=T.input.charCodeAt(++T.position),qe(T,!0,Ie),pe(T,Ie,g,!1,!0),gt=T.result),Te?pt(T,ie,ze,it,He,gt):Oe?ie.push(pt(T,null,ze,it,He,gt)):ie.push(He),qe(T,!0,Ie),Ct=T.input.charCodeAt(T.position),Ct===44?(W=!0,Ct=T.input.charCodeAt(++T.position)):W=!1}ke(T,"unexpected end of the stream within a flow collection")}function St(T,Ie){var W,O,P=j,ie=!1,D=!1,ee=Ie,ce=0,Oe=!1,Pe,Te;if(Te=T.input.charCodeAt(T.position),Te===124)O=!1;else if(Te===62)O=!0;else return!1;for(T.kind="scalar",T.result="";Te!==0;)if(Te=T.input.charCodeAt(++T.position),Te===43||Te===45)j===P?P=Te===43?H:_:ke(T,"repeat of a chomping mode identifier");else if((Pe=ye(Te))>=0)Pe===0?ke(T,"bad explicit indentation width of a block scalar; it cannot be less than one"):D?ke(T,"repeat of an indentation width identifier"):(ee=Ie+Pe-1,D=!0);else break;if(Q(Te)){do Te=T.input.charCodeAt(++T.position);while(Q(Te));if(Te===35)do Te=T.input.charCodeAt(++T.position);while(!q(Te)&&Te!==0)}for(;Te!==0;){for(yt(T),T.lineIndent=0,Te=T.input.charCodeAt(T.position);(!D||T.lineIndent<ee)&&Te===32;)T.lineIndent++,Te=T.input.charCodeAt(++T.position);if(!D&&T.lineIndent>ee&&(ee=T.lineIndent),q(Te)){ce++;continue}if(T.lineIndent<ee){P===H?T.result+=c.repeat(`
487
+ `,ie?1+ce:ce):P===j&&ie&&(T.result+=`
488
+ `);break}for(O?Q(Te)?(Oe=!0,T.result+=c.repeat(`
489
+ `,ie?1+ce:ce)):Oe?(Oe=!1,T.result+=c.repeat(`
490
+ `,ce+1)):ce===0?ie&&(T.result+=" "):T.result+=c.repeat(`
491
+ `,ce):T.result+=c.repeat(`
492
+ `,ie?1+ce:ce),ie=!0,D=!0,ce=0,W=T.position;!q(Te)&&Te!==0;)Te=T.input.charCodeAt(++T.position);Xe(T,W,T.position,!1)}return!0}function Wt(T,Ie){var W,O=T.tag,P=T.anchor,ie=[],D,ee=!1,ce;for(T.anchor!==null&&(T.anchorMap[T.anchor]=ie),ce=T.input.charCodeAt(T.position);ce!==0&&!(ce!==45||(D=T.input.charCodeAt(T.position+1),!K(D)));){if(ee=!0,T.position++,qe(T,!0,-1)&&T.lineIndent<=Ie){ie.push(null),ce=T.input.charCodeAt(T.position);continue}if(W=T.line,pe(T,Ie,N,!1,!0),ie.push(T.result),qe(T,!0,-1),ce=T.input.charCodeAt(T.position),(T.line===W||T.lineIndent>Ie)&&ce!==0)ke(T,"bad indentation of a sequence entry");else if(T.lineIndent<Ie)break}return ee?(T.tag=O,T.anchor=P,T.kind="sequence",T.result=ie,!0):!1}function Bt(T,Ie,W){var O,P,ie,D,ee=T.tag,ce=T.anchor,Oe={},Pe={},Te=null,ze=null,He=null,it=!1,gt=!1,Ct;for(T.anchor!==null&&(T.anchorMap[T.anchor]=Oe),Ct=T.input.charCodeAt(T.position);Ct!==0;){if(O=T.input.charCodeAt(T.position+1),ie=T.line,D=T.position,(Ct===63||Ct===58)&&K(O))Ct===63?(it&&(pt(T,Oe,Pe,Te,ze,null),Te=ze=He=null),gt=!0,it=!0,P=!0):it?(it=!1,P=!0):ke(T,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),T.position+=1,Ct=O;else if(pe(T,W,L,!1,!0))if(T.line===ie){for(Ct=T.input.charCodeAt(T.position);Q(Ct);)Ct=T.input.charCodeAt(++T.position);if(Ct===58)Ct=T.input.charCodeAt(++T.position),K(Ct)||ke(T,"a whitespace character is expected after the key-value separator within a block mapping"),it&&(pt(T,Oe,Pe,Te,ze,null),Te=ze=He=null),gt=!0,it=!1,P=!1,Te=T.tag,ze=T.result;else if(gt)ke(T,"can not read an implicit mapping pair; a colon is missed");else return T.tag=ee,T.anchor=ce,!0}else if(gt)ke(T,"can not read a block mapping entry; a multiline key may not be an implicit key");else return T.tag=ee,T.anchor=ce,!0;else break;if((T.line===ie||T.lineIndent>Ie)&&(pe(T,Ie,B,!0,P)&&(it?ze=T.result:He=T.result),it||(pt(T,Oe,Pe,Te,ze,He,ie,D),Te=ze=He=null),qe(T,!0,-1),Ct=T.input.charCodeAt(T.position)),T.lineIndent>Ie&&Ct!==0)ke(T,"bad indentation of a mapping entry");else if(T.lineIndent<Ie)break}return it&&pt(T,Oe,Pe,Te,ze,null),gt&&(T.tag=ee,T.anchor=ce,T.kind="mapping",T.result=Oe),gt}function Gt(T){var Ie,W=!1,O=!1,P,ie,D;if(D=T.input.charCodeAt(T.position),D!==33)return!1;if(T.tag!==null&&ke(T,"duplication of a tag property"),D=T.input.charCodeAt(++T.position),D===60?(W=!0,D=T.input.charCodeAt(++T.position)):D===33?(O=!0,P="!!",D=T.input.charCodeAt(++T.position)):P="!",Ie=T.position,W){do D=T.input.charCodeAt(++T.position);while(D!==0&&D!==62);T.position<T.length?(ie=T.input.slice(Ie,T.position),D=T.input.charCodeAt(++T.position)):ke(T,"unexpected end of the stream within a verbatim tag")}else{for(;D!==0&&!K(D);)D===33&&(O?ke(T,"tag suffix cannot contain exclamation marks"):(P=T.input.slice(Ie-1,T.position+1),C.test(P)||ke(T,"named tag handle cannot contain such characters"),O=!0,Ie=T.position+1)),D=T.input.charCodeAt(++T.position);ie=T.input.slice(Ie,T.position),R.test(ie)&&ke(T,"tag suffix cannot contain flow indicator characters")}return ie&&!V.test(ie)&&ke(T,"tag name cannot contain such characters: "+ie),W?T.tag=ie:S.call(T.tagMap,P)?T.tag=T.tagMap[P]+ie:P==="!"?T.tag="!"+ie:P==="!!"?T.tag="tag:yaml.org,2002:"+ie:ke(T,'undeclared tag handle "'+P+'"'),!0}function wt(T){var Ie,W;if(W=T.input.charCodeAt(T.position),W!==38)return!1;for(T.anchor!==null&&ke(T,"duplication of an anchor property"),W=T.input.charCodeAt(++T.position),Ie=T.position;W!==0&&!K(W)&&!fe(W);)W=T.input.charCodeAt(++T.position);return T.position===Ie&&ke(T,"name of an anchor node must contain at least one character"),T.anchor=T.input.slice(Ie,T.position),!0}function Rt(T){var Ie,W,O;if(O=T.input.charCodeAt(T.position),O!==42)return!1;for(O=T.input.charCodeAt(++T.position),Ie=T.position;O!==0&&!K(O)&&!fe(O);)O=T.input.charCodeAt(++T.position);return T.position===Ie&&ke(T,"name of an alias node must contain at least one character"),W=T.input.slice(Ie,T.position),S.call(T.anchorMap,W)||ke(T,'unidentified alias "'+W+'"'),T.result=T.anchorMap[W],qe(T,!0,-1),!0}function pe(T,Ie,W,O,P){var ie,D,ee,ce=1,Oe=!1,Pe=!1,Te,ze,He,it,gt;if(T.listener!==null&&T.listener("open",T),T.tag=null,T.anchor=null,T.kind=null,T.result=null,ie=D=ee=B===W||N===W,O&&qe(T,!0,-1)&&(Oe=!0,T.lineIndent>Ie?ce=1:T.lineIndent===Ie?ce=0:T.lineIndent<Ie&&(ce=-1)),ce===1)for(;Gt(T)||wt(T);)qe(T,!0,-1)?(Oe=!0,ee=ie,T.lineIndent>Ie?ce=1:T.lineIndent===Ie?ce=0:T.lineIndent<Ie&&(ce=-1)):ee=!1;if(ee&&(ee=Oe||P),(ce===1||B===W)&&(g===W||L===W?it=Ie:it=Ie+1,gt=T.position-T.lineStart,ce===1?ee&&(Wt(T,gt)||Bt(T,gt,it))||It(T,it)?Pe=!0:(D&&St(T,it)||dt(T,it)||kt(T,it)?Pe=!0:Rt(T)?(Pe=!0,(T.tag!==null||T.anchor!==null)&&ke(T,"alias node should not have any properties")):mt(T,it,g===W)&&(Pe=!0,T.tag===null&&(T.tag="?")),T.anchor!==null&&(T.anchorMap[T.anchor]=T.result)):ce===0&&(Pe=ee&&Wt(T,gt))),T.tag!==null&&T.tag!=="!")if(T.tag==="?"){for(T.result!==null&&T.kind!=="scalar"&&ke(T,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+T.kind+'"'),Te=0,ze=T.implicitTypes.length;Te<ze;Te+=1)if(He=T.implicitTypes[Te],He.resolve(T.result)){T.result=He.construct(T.result),T.tag=He.tag,T.anchor!==null&&(T.anchorMap[T.anchor]=T.result);break}}else S.call(T.typeMap[T.kind||"fallback"],T.tag)?(He=T.typeMap[T.kind||"fallback"][T.tag],T.result!==null&&He.kind!==T.kind&&ke(T,"unacceptable node kind for !<"+T.tag+'> tag; it should be "'+He.kind+'", not "'+T.kind+'"'),He.resolve(T.result)?(T.result=He.construct(T.result),T.anchor!==null&&(T.anchorMap[T.anchor]=T.result)):ke(T,"cannot resolve a node with !<"+T.tag+"> explicit tag")):ke(T,"unknown tag !<"+T.tag+">");return T.listener!==null&&T.listener("close",T),T.tag!==null||T.anchor!==null||Pe}function G(T){var Ie=T.position,W,O,P,ie=!1,D;for(T.version=null,T.checkLineBreaks=T.legacy,T.tagMap={},T.anchorMap={};(D=T.input.charCodeAt(T.position))!==0&&(qe(T,!0,-1),D=T.input.charCodeAt(T.position),!(T.lineIndent>0||D!==37));){for(ie=!0,D=T.input.charCodeAt(++T.position),W=T.position;D!==0&&!K(D);)D=T.input.charCodeAt(++T.position);for(O=T.input.slice(W,T.position),P=[],O.length<1&&ke(T,"directive name must not be less than one character in length");D!==0;){for(;Q(D);)D=T.input.charCodeAt(++T.position);if(D===35){do D=T.input.charCodeAt(++T.position);while(D!==0&&!q(D));break}if(q(D))break;for(W=T.position;D!==0&&!K(D);)D=T.input.charCodeAt(++T.position);P.push(T.input.slice(W,T.position))}D!==0&&yt(T),S.call(Qe,O)?Qe[O](T,O,P):tt(T,'unknown document directive "'+O+'"')}if(qe(T,!0,-1),T.lineIndent===0&&T.input.charCodeAt(T.position)===45&&T.input.charCodeAt(T.position+1)===45&&T.input.charCodeAt(T.position+2)===45?(T.position+=3,qe(T,!0,-1)):ie&&ke(T,"directives end mark is expected"),pe(T,T.lineIndent-1,B,!1,!0),qe(T,!0,-1),T.checkLineBreaks&&X.test(T.input.slice(Ie,T.position))&&tt(T,"non-ASCII line breaks are interpreted as content"),T.documents.push(T.result),T.position===T.lineStart&&lt(T)){T.input.charCodeAt(T.position)===46&&(T.position+=3,qe(T,!0,-1));return}if(T.position<T.length-1)ke(T,"end of the stream or a document separator is expected");else return}function $(T,Ie){T=String(T),Ie=Ie||{},T.length!==0&&(T.charCodeAt(T.length-1)!==10&&T.charCodeAt(T.length-1)!==13&&(T+=`
493
+ `),T.charCodeAt(0)===65279&&(T=T.slice(1)));var W=new Ve(T,Ie),O=T.indexOf("\0");for(O!==-1&&(W.position=O,ke(W,"null byte is not allowed in input")),W.input+="\0";W.input.charCodeAt(W.position)===32;)W.lineIndent+=1,W.position+=1;for(;W.position<W.length-1;)G(W);return W.documents}function we(T,Ie,W){Ie!==null&&typeof Ie=="object"&&typeof W=="undefined"&&(W=Ie,Ie=null);var O=$(T,W);if(typeof Ie!="function")return O;for(var P=0,ie=O.length;P<ie;P+=1)Ie(O[P])}function Me(T,Ie){var W=$(T,Ie);if(W.length!==0){if(W.length===1)return W[0];throw new v("expected a single document in the stream, but found more")}}function be(T,Ie,W){return typeof Ie=="object"&&Ie!==null&&typeof W=="undefined"&&(W=Ie,Ie=null),we(T,Ie,c.extend({schema:d},W))}function Ae(T,Ie){return Me(T,c.extend({schema:d},Ie))}h.exports.loadAll=we,h.exports.load=Me,h.exports.safeLoadAll=be,h.exports.safeLoad=Ae},77334:(h,I,o)=>{"use strict";var c=o(25596);function v(x,d,b,S,g){this.name=x,this.buffer=d,this.position=b,this.line=S,this.column=g}v.prototype.getSnippet=function(d,b){var S,g,L,N,B;if(!this.buffer)return null;for(d=d||4,b=b||75,S="",g=this.position;g>0&&`\0\r
494
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(g-1))===-1;)if(g-=1,this.position-g>b/2-1){S=" ... ",g+=5;break}for(L="",N=this.position;N<this.buffer.length&&`\0\r
495
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(N))===-1;)if(N+=1,N-this.position>b/2-1){L=" ... ",N-=5;break}return B=this.buffer.slice(g,N),c.repeat(" ",d)+S+B+L+`
496
+ `+c.repeat(" ",d+this.position-g+S.length)+"^"},v.prototype.toString=function(d){var b,S="";return this.name&&(S+='in "'+this.name+'" '),S+="at line "+(this.line+1)+", column "+(this.column+1),d||(b=this.getSnippet(),b&&(S+=`:
497
+ `+b)),S},h.exports=v},82409:(h,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(53899);function d(g,L,N){var B=[];return g.include.forEach(function(j){N=d(j,L,N)}),g[L].forEach(function(j){N.forEach(function(_,H){_.tag===j.tag&&_.kind===j.kind&&B.push(H)}),N.push(j)}),N.filter(function(j,_){return B.indexOf(_)===-1})}function b(){var g={scalar:{},sequence:{},mapping:{},fallback:{}},L,N;function B(j){g[j.kind][j.tag]=g.fallback[j.tag]=j}for(L=0,N=arguments.length;L<N;L+=1)arguments[L].forEach(B);return g}function S(g){this.include=g.include||[],this.implicit=g.implicit||[],this.explicit=g.explicit||[],this.implicit.forEach(function(L){if(L.loadKind&&L.loadKind!=="scalar")throw new v("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=d(this,"implicit",[]),this.compiledExplicit=d(this,"explicit",[]),this.compiledTypeMap=b(this.compiledImplicit,this.compiledExplicit)}S.DEFAULT=null,S.create=function(){var L,N;switch(arguments.length){case 1:L=S.DEFAULT,N=arguments[0];break;case 2:L=arguments[0],N=arguments[1];break;default:throw new v("Wrong number of arguments for Schema.create function")}if(L=c.toArray(L),N=c.toArray(N),!L.every(function(B){return B instanceof S}))throw new v("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!N.every(function(B){return B instanceof x}))throw new v("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new S({include:L,explicit:N})},h.exports=S},17318:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({include:[o(65796)]})},19321:(h,I,o)=>{"use strict";var c=o(82409);h.exports=c.DEFAULT=new c({include:[o(5972)],explicit:[o(70575),o(97287),o(89811)]})},5972:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({include:[o(17318)],implicit:[o(56145),o(243)],explicit:[o(18964),o(3878),o(68244),o(67300)]})},75322:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({explicit:[o(79483),o(43745),o(86553)]})},65796:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({include:[o(75322)],implicit:[o(3022),o(2648),o(95979),o(53456)]})},53899:(h,I,o)=>{"use strict";var c=o(14884),v=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],x=["scalar","sequence","mapping"];function d(S){var g={};return S!==null&&Object.keys(S).forEach(function(L){S[L].forEach(function(N){g[String(N)]=L})}),g}function b(S,g){if(g=g||{},Object.keys(g).forEach(function(L){if(v.indexOf(L)===-1)throw new c('Unknown option "'+L+'" is met in definition of "'+S+'" YAML type.')}),this.tag=S,this.kind=g.kind||null,this.resolve=g.resolve||function(){return!0},this.construct=g.construct||function(L){return L},this.instanceOf=g.instanceOf||null,this.predicate=g.predicate||null,this.represent=g.represent||null,this.defaultStyle=g.defaultStyle||null,this.styleAliases=d(g.styleAliases||null),x.indexOf(this.kind)===-1)throw new c('Unknown kind "'+this.kind+'" is specified for "'+S+'" YAML type.')}h.exports=b},18964:(h,I,o)=>{"use strict";var c;try{var v=void 0;c=o(48764).Buffer}catch(N){}var x=o(53899),d=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
498
+ \r`;function b(N){if(N===null)return!1;var B,j,_=0,H=N.length,k=d;for(j=0;j<H;j++)if(B=k.indexOf(N.charAt(j)),!(B>64)){if(B<0)return!1;_+=6}return _%8==0}function S(N){var B,j,_=N.replace(/[\r\n=]/g,""),H=_.length,k=d,X=0,R=[];for(B=0;B<H;B++)B%4==0&&B&&(R.push(X>>16&255),R.push(X>>8&255),R.push(X&255)),X=X<<6|k.indexOf(_.charAt(B));return j=H%4*6,j===0?(R.push(X>>16&255),R.push(X>>8&255),R.push(X&255)):j===18?(R.push(X>>10&255),R.push(X>>2&255)):j===12&&R.push(X>>4&255),c?c.from?c.from(R):new c(R):R}function g(N){var B="",j=0,_,H,k=N.length,X=d;for(_=0;_<k;_++)_%3==0&&_&&(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]),j=(j<<8)+N[_];return H=k%3,H===0?(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]):H===2?(B+=X[j>>10&63],B+=X[j>>4&63],B+=X[j<<2&63],B+=X[64]):H===1&&(B+=X[j>>2&63],B+=X[j<<4&63],B+=X[64],B+=X[64]),B}function L(N){return c&&c.isBuffer(N)}h.exports=new x("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b,construct:S,predicate:L,represent:g})},2648:(h,I,o)=>{"use strict";var c=o(53899);function v(b){if(b===null)return!1;var S=b.length;return S===4&&(b==="true"||b==="True"||b==="TRUE")||S===5&&(b==="false"||b==="False"||b==="FALSE")}function x(b){return b==="true"||b==="True"||b==="TRUE"}function d(b){return Object.prototype.toString.call(b)==="[object Boolean]"}h.exports=new c("tag:yaml.org,2002:bool",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{lowercase:function(b){return b?"true":"false"},uppercase:function(b){return b?"TRUE":"FALSE"},camelcase:function(b){return b?"True":"False"}},defaultStyle:"lowercase"})},53456:(h,I,o)=>{"use strict";var c=o(25596),v=o(53899),x=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function d(N){return!(N===null||!x.test(N)||N[N.length-1]==="_")}function b(N){var B,j,_,H;return B=N.replace(/_/g,"").toLowerCase(),j=B[0]==="-"?-1:1,H=[],"+-".indexOf(B[0])>=0&&(B=B.slice(1)),B===".inf"?j===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:B===".nan"?NaN:B.indexOf(":")>=0?(B.split(":").forEach(function(k){H.unshift(parseFloat(k,10))}),B=0,_=1,H.forEach(function(k){B+=k*_,_*=60}),j*B):j*parseFloat(B,10)}var S=/^[-+]?[0-9]+e/;function g(N,B){var j;if(isNaN(N))switch(B){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===N)switch(B){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===N)switch(B){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c.isNegativeZero(N))return"-0.0";return j=N.toString(10),S.test(j)?j.replace("e",".e"):j}function L(N){return Object.prototype.toString.call(N)==="[object Number]"&&(N%1!=0||c.isNegativeZero(N))}h.exports=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:d,construct:b,predicate:L,represent:g,defaultStyle:"lowercase"})},95979:(h,I,o)=>{"use strict";var c=o(25596),v=o(53899);function x(N){return 48<=N&&N<=57||65<=N&&N<=70||97<=N&&N<=102}function d(N){return 48<=N&&N<=55}function b(N){return 48<=N&&N<=57}function S(N){if(N===null)return!1;var B=N.length,j=0,_=!1,H;if(!B)return!1;if(H=N[j],(H==="-"||H==="+")&&(H=N[++j]),H==="0"){if(j+1===B)return!0;if(H=N[++j],H==="b"){for(j++;j<B;j++)if(H=N[j],H!=="_"){if(H!=="0"&&H!=="1")return!1;_=!0}return _&&H!=="_"}if(H==="x"){for(j++;j<B;j++)if(H=N[j],H!=="_"){if(!x(N.charCodeAt(j)))return!1;_=!0}return _&&H!=="_"}for(;j<B;j++)if(H=N[j],H!=="_"){if(!d(N.charCodeAt(j)))return!1;_=!0}return _&&H!=="_"}if(H==="_")return!1;for(;j<B;j++)if(H=N[j],H!=="_"){if(H===":")break;if(!b(N.charCodeAt(j)))return!1;_=!0}return!_||H==="_"?!1:H!==":"?!0:/^(:[0-5]?[0-9])+$/.test(N.slice(j))}function g(N){var B=N,j=1,_,H,k=[];return B.indexOf("_")!==-1&&(B=B.replace(/_/g,"")),_=B[0],(_==="-"||_==="+")&&(_==="-"&&(j=-1),B=B.slice(1),_=B[0]),B==="0"?0:_==="0"?B[1]==="b"?j*parseInt(B.slice(2),2):B[1]==="x"?j*parseInt(B,16):j*parseInt(B,8):B.indexOf(":")!==-1?(B.split(":").forEach(function(X){k.unshift(parseInt(X,10))}),B=0,H=1,k.forEach(function(X){B+=X*H,H*=60}),j*B):j*parseInt(B,10)}function L(N){return Object.prototype.toString.call(N)==="[object Number]"&&N%1==0&&!c.isNegativeZero(N)}h.exports=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:S,construct:g,predicate:L,represent:{binary:function(N){return N>=0?"0b"+N.toString(2):"-0b"+N.toString(2).slice(1)},octal:function(N){return N>=0?"0"+N.toString(8):"-0"+N.toString(8).slice(1)},decimal:function(N){return N.toString(10)},hexadecimal:function(N){return N>=0?"0x"+N.toString(16).toUpperCase():"-0x"+N.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89811:(h,I,o)=>{"use strict";var c;try{var v=void 0;c=o(88150)}catch(L){typeof window!="undefined"&&(c=window.esprima)}var x=o(53899);function d(L){if(L===null)return!1;try{var N="("+L+")",B=c.parse(N,{range:!0});return!(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")}catch(j){return!1}}function b(L){var N="("+L+")",B=c.parse(N,{range:!0}),j=[],_;if(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return B.body[0].expression.params.forEach(function(H){j.push(H.name)}),_=B.body[0].expression.body.range,B.body[0].expression.body.type==="BlockStatement"?new Function(j,N.slice(_[0]+1,_[1]-1)):new Function(j,"return "+N.slice(_[0],_[1]))}function S(L){return L.toString()}function g(L){return Object.prototype.toString.call(L)==="[object Function]"}h.exports=new x("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:d,construct:b,predicate:g,represent:S})},97287:(h,I,o)=>{"use strict";var c=o(53899);function v(S){if(S===null||S.length===0)return!1;var g=S,L=/\/([gim]*)$/.exec(S),N="";return!(g[0]==="/"&&(L&&(N=L[1]),N.length>3||g[g.length-N.length-1]!=="/"))}function x(S){var g=S,L=/\/([gim]*)$/.exec(S),N="";return g[0]==="/"&&(L&&(N=L[1]),g=g.slice(1,g.length-N.length-1)),new RegExp(g,N)}function d(S){var g="/"+S.source+"/";return S.global&&(g+="g"),S.multiline&&(g+="m"),S.ignoreCase&&(g+="i"),g}function b(S){return Object.prototype.toString.call(S)==="[object RegExp]"}h.exports=new c("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},70575:(h,I,o)=>{"use strict";var c=o(53899);function v(){return!0}function x(){}function d(){return""}function b(S){return typeof S=="undefined"}h.exports=new c("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},86553:(h,I,o)=>{"use strict";var c=o(53899);h.exports=new c("tag:yaml.org,2002:map",{kind:"mapping",construct:function(v){return v!==null?v:{}}})},243:(h,I,o)=>{"use strict";var c=o(53899);function v(x){return x==="<<"||x===null}h.exports=new c("tag:yaml.org,2002:merge",{kind:"scalar",resolve:v})},3022:(h,I,o)=>{"use strict";var c=o(53899);function v(b){if(b===null)return!0;var S=b.length;return S===1&&b==="~"||S===4&&(b==="null"||b==="Null"||b==="NULL")}function x(){return null}function d(b){return b===null}h.exports=new c("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},3878:(h,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.hasOwnProperty,x=Object.prototype.toString;function d(S){if(S===null)return!0;var g=[],L,N,B,j,_,H=S;for(L=0,N=H.length;L<N;L+=1){if(B=H[L],_=!1,x.call(B)!=="[object Object]")return!1;for(j in B)if(v.call(B,j))if(!_)_=!0;else return!1;if(!_)return!1;if(g.indexOf(j)===-1)g.push(j);else return!1}return!0}function b(S){return S!==null?S:[]}h.exports=new c("tag:yaml.org,2002:omap",{kind:"sequence",resolve:d,construct:b})},68244:(h,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.toString;function x(b){if(b===null)return!0;var S,g,L,N,B,j=b;for(B=new Array(j.length),S=0,g=j.length;S<g;S+=1){if(L=j[S],v.call(L)!=="[object Object]"||(N=Object.keys(L),N.length!==1))return!1;B[S]=[N[0],L[N[0]]]}return!0}function d(b){if(b===null)return[];var S,g,L,N,B,j=b;for(B=new Array(j.length),S=0,g=j.length;S<g;S+=1)L=j[S],N=Object.keys(L),B[S]=[N[0],L[N[0]]];return B}h.exports=new c("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:x,construct:d})},43745:(h,I,o)=>{"use strict";var c=o(53899);h.exports=new c("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(v){return v!==null?v:[]}})},67300:(h,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.hasOwnProperty;function x(b){if(b===null)return!0;var S,g=b;for(S in g)if(v.call(g,S)&&g[S]!==null)return!1;return!0}function d(b){return b!==null?b:{}}h.exports=new c("tag:yaml.org,2002:set",{kind:"mapping",resolve:x,construct:d})},79483:(h,I,o)=>{"use strict";var c=o(53899);h.exports=new c("tag:yaml.org,2002:str",{kind:"scalar",construct:function(v){return v!==null?v:""}})},56145:(h,I,o)=>{"use strict";var c=o(53899),v=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),x=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function d(g){return g===null?!1:v.exec(g)!==null||x.exec(g)!==null}function b(g){var L,N,B,j,_,H,k,X=0,R=null,C,V,J;if(L=v.exec(g),L===null&&(L=x.exec(g)),L===null)throw new Error("Date resolve error");if(N=+L[1],B=+L[2]-1,j=+L[3],!L[4])return new Date(Date.UTC(N,B,j));if(_=+L[4],H=+L[5],k=+L[6],L[7]){for(X=L[7].slice(0,3);X.length<3;)X+="0";X=+X}return L[9]&&(C=+L[10],V=+(L[11]||0),R=(C*60+V)*6e4,L[9]==="-"&&(R=-R)),J=new Date(Date.UTC(N,B,j,_,H,k,X)),R&&J.setTime(J.getTime()-R),J}function S(g){return g.toISOString()}h.exports=new c("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:d,construct:b,instanceOf:Date,represent:S})},18552:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"DataView");h.exports=x},1989:(h,I,o)=>{var c=o(51789),v=o(80401),x=o(57667),d=o(21327),b=o(81866);function S(g){var L=-1,N=g==null?0:g.length;for(this.clear();++L<N;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},38407:(h,I,o)=>{var c=o(27040),v=o(14125),x=o(82117),d=o(67518),b=o(13399);function S(g){var L=-1,N=g==null?0:g.length;for(this.clear();++L<N;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},57071:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Map");h.exports=x},83369:(h,I,o)=>{var c=o(24785),v=o(11285),x=o(96e3),d=o(49916),b=o(95265);function S(g){var L=-1,N=g==null?0:g.length;for(this.clear();++L<N;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},53818:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Promise");h.exports=x},58525:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Set");h.exports=x},88668:(h,I,o)=>{var c=o(83369),v=o(90619),x=o(72385);function d(b){var S=-1,g=b==null?0:b.length;for(this.__data__=new c;++S<g;)this.add(b[S])}d.prototype.add=d.prototype.push=v,d.prototype.has=x,h.exports=d},46384:(h,I,o)=>{var c=o(38407),v=o(37465),x=o(63779),d=o(67599),b=o(44758),S=o(34309);function g(L){var N=this.__data__=new c(L);this.size=N.size}g.prototype.clear=v,g.prototype.delete=x,g.prototype.get=d,g.prototype.has=b,g.prototype.set=S,h.exports=g},62705:(h,I,o)=>{var c=o(55639),v=c.Symbol;h.exports=v},11149:(h,I,o)=>{var c=o(55639),v=c.Uint8Array;h.exports=v},70577:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"WeakMap");h.exports=x},96874:h=>{function I(o,c,v){switch(v.length){case 0:return o.call(c);case 1:return o.call(c,v[0]);case 2:return o.call(c,v[0],v[1]);case 3:return o.call(c,v[0],v[1],v[2])}return o.apply(c,v)}h.exports=I},77412:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length;++v<x&&c(o[v],v,o)!==!1;);return o}h.exports=I},34963:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length,d=0,b=[];++v<x;){var S=o[v];c(S,v,o)&&(b[d++]=S)}return b}h.exports=I},14636:(h,I,o)=>{var c=o(22545),v=o(35694),x=o(1469),d=o(44144),b=o(65776),S=o(36719),g=Object.prototype,L=g.hasOwnProperty;function N(B,j){var _=x(B),H=!_&&v(B),k=!_&&!H&&d(B),X=!_&&!H&&!k&&S(B),R=_||H||k||X,C=R?c(B.length,String):[],V=C.length;for(var J in B)(j||L.call(B,J))&&!(R&&(J=="length"||k&&(J=="offset"||J=="parent")||X&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||b(J,V)))&&C.push(J);return C}h.exports=N},29932:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length,d=Array(x);++v<x;)d[v]=c(o[v],v,o);return d}h.exports=I},62488:h=>{function I(o,c){for(var v=-1,x=c.length,d=o.length;++v<x;)o[d+v]=c[v];return o}h.exports=I},82908:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length;++v<x;)if(c(o[v],v,o))return!0;return!1}h.exports=I},34865:(h,I,o)=>{var c=o(89465),v=o(77813),x=Object.prototype,d=x.hasOwnProperty;function b(S,g,L){var N=S[g];(!(d.call(S,g)&&v(N,L))||L===void 0&&!(g in S))&&c(S,g,L)}h.exports=b},18470:(h,I,o)=>{var c=o(77813);function v(x,d){for(var b=x.length;b--;)if(c(x[b][0],d))return b;return-1}h.exports=v},44037:(h,I,o)=>{var c=o(98363),v=o(3674);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},63886:(h,I,o)=>{var c=o(98363),v=o(81704);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},89465:(h,I,o)=>{var c=o(38777);function v(x,d,b){d=="__proto__"&&c?c(x,d,{configurable:!0,enumerable:!0,value:b,writable:!0}):x[d]=b}h.exports=v},29750:h=>{function I(o,c,v){return o===o&&(v!==void 0&&(o=o<=v?o:v),c!==void 0&&(o=o>=c?o:c)),o}h.exports=I},85990:(h,I,o)=>{var c=o(46384),v=o(77412),x=o(34865),d=o(44037),b=o(63886),S=o(64626),g=o(278),L=o(18805),N=o(1911),B=o(58234),j=o(46904),_=o(98882),H=o(43824),k=o(29148),X=o(38517),R=o(1469),C=o(44144),V=o(56688),J=o(13218),q=o(72928),Q=o(3674),K=o(81704),fe=1,te=2,re=4,ye="[object Arguments]",ve="[object Array]",de="[object Boolean]",le="[object Date]",oe="[object Error]",De="[object Function]",Ve="[object GeneratorFunction]",Le="[object Map]",ke="[object Number]",tt="[object Object]",Qe="[object RegExp]",Xe="[object Set]",ut="[object String]",pt="[object Symbol]",yt="[object WeakMap]",qe="[object ArrayBuffer]",lt="[object DataView]",vt="[object Float32Array]",mt="[object Float64Array]",dt="[object Int8Array]",kt="[object Int16Array]",It="[object Int32Array]",St="[object Uint8Array]",Wt="[object Uint8ClampedArray]",Bt="[object Uint16Array]",Gt="[object Uint32Array]",wt={};wt[ye]=wt[ve]=wt[qe]=wt[lt]=wt[de]=wt[le]=wt[vt]=wt[mt]=wt[dt]=wt[kt]=wt[It]=wt[Le]=wt[ke]=wt[tt]=wt[Qe]=wt[Xe]=wt[ut]=wt[pt]=wt[St]=wt[Wt]=wt[Bt]=wt[Gt]=!0,wt[oe]=wt[De]=wt[yt]=!1;function Rt(pe,G,$,we,Me,be){var Ae,T=G&fe,Ie=G&te,W=G&re;if($&&(Ae=Me?$(pe,we,Me,be):$(pe)),Ae!==void 0)return Ae;if(!J(pe))return pe;var O=R(pe);if(O){if(Ae=H(pe),!T)return g(pe,Ae)}else{var P=_(pe),ie=P==De||P==Ve;if(C(pe))return S(pe,T);if(P==tt||P==ye||ie&&!Me){if(Ae=Ie||ie?{}:X(pe),!T)return Ie?N(pe,b(Ae,pe)):L(pe,d(Ae,pe))}else{if(!wt[P])return Me?pe:{};Ae=k(pe,P,T)}}be||(be=new c);var D=be.get(pe);if(D)return D;be.set(pe,Ae),q(pe)?pe.forEach(function(Oe){Ae.add(Rt(Oe,G,$,Oe,pe,be))}):V(pe)&&pe.forEach(function(Oe,Pe){Ae.set(Pe,Rt(Oe,G,$,Pe,pe,be))});var ee=W?Ie?j:B:Ie?K:Q,ce=O?void 0:ee(pe);return v(ce||pe,function(Oe,Pe){ce&&(Pe=Oe,Oe=pe[Pe]),x(Ae,Pe,Rt(Oe,G,$,Pe,pe,be))}),Ae}h.exports=Rt},3118:(h,I,o)=>{var c=o(13218),v=Object.create,x=function(){function d(){}return function(b){if(!c(b))return{};if(v)return v(b);d.prototype=b;var S=new d;return d.prototype=void 0,S}}();h.exports=x},41848:h=>{function I(o,c,v,x){for(var d=o.length,b=v+(x?1:-1);x?b--:++b<d;)if(c(o[b],b,o))return b;return-1}h.exports=I},35764:(h,I,o)=>{var c=o(62488),v=o(37285);function x(d,b,S,g,L){var N=-1,B=d.length;for(S||(S=v),L||(L=[]);++N<B;){var j=d[N];b>0&&S(j)?b>1?x(j,b-1,S,g,L):c(L,j):g||(L[L.length]=j)}return L}h.exports=x},97786:(h,I,o)=>{var c=o(71811),v=o(40327);function x(d,b){b=c(b,d);for(var S=0,g=b.length;d!=null&&S<g;)d=d[v(b[S++])];return S&&S==g?d:void 0}h.exports=x},68866:(h,I,o)=>{var c=o(62488),v=o(1469);function x(d,b,S){var g=b(d);return v(d)?g:c(g,S(d))}h.exports=x},44239:(h,I,o)=>{var c=o(62705),v=o(89607),x=o(2333),d="[object Null]",b="[object Undefined]",S=c?c.toStringTag:void 0;function g(L){return L==null?L===void 0?b:d:S&&S in Object(L)?v(L):x(L)}h.exports=g},13:h=>{function I(o,c){return o!=null&&c in Object(o)}h.exports=I},9454:(h,I,o)=>{var c=o(44239),v=o(37005),x="[object Arguments]";function d(b){return v(b)&&c(b)==x}h.exports=d},90939:(h,I,o)=>{var c=o(2492),v=o(37005);function x(d,b,S,g,L){return d===b?!0:d==null||b==null||!v(d)&&!v(b)?d!==d&&b!==b:c(d,b,S,g,x,L)}h.exports=x},2492:(h,I,o)=>{var c=o(46384),v=o(67114),x=o(18351),d=o(16096),b=o(98882),S=o(1469),g=o(44144),L=o(36719),N=1,B="[object Arguments]",j="[object Array]",_="[object Object]",H=Object.prototype,k=H.hasOwnProperty;function X(R,C,V,J,q,Q){var K=S(R),fe=S(C),te=K?j:b(R),re=fe?j:b(C);te=te==B?_:te,re=re==B?_:re;var ye=te==_,ve=re==_,de=te==re;if(de&&g(R)){if(!g(C))return!1;K=!0,ye=!1}if(de&&!ye)return Q||(Q=new c),K||L(R)?v(R,C,V,J,q,Q):x(R,C,te,V,J,q,Q);if(!(V&N)){var le=ye&&k.call(R,"__wrapped__"),oe=ve&&k.call(C,"__wrapped__");if(le||oe){var De=le?R.value():R,Ve=oe?C.value():C;return Q||(Q=new c),q(De,Ve,V,J,Q)}}return de?(Q||(Q=new c),d(R,C,V,J,q,Q)):!1}h.exports=X},25588:(h,I,o)=>{var c=o(98882),v=o(37005),x="[object Map]";function d(b){return v(b)&&c(b)==x}h.exports=d},2958:(h,I,o)=>{var c=o(46384),v=o(90939),x=1,d=2;function b(S,g,L,N){var B=L.length,j=B,_=!N;if(S==null)return!j;for(S=Object(S);B--;){var H=L[B];if(_&&H[2]?H[1]!==S[H[0]]:!(H[0]in S))return!1}for(;++B<j;){H=L[B];var k=H[0],X=S[k],R=H[1];if(_&&H[2]){if(X===void 0&&!(k in S))return!1}else{var C=new c;if(N)var V=N(X,R,k,S,g,C);if(!(V===void 0?v(R,X,x|d,N,C):V))return!1}}return!0}h.exports=b},28458:(h,I,o)=>{var c=o(23560),v=o(15346),x=o(13218),d=o(80346),b=/[\\^$.*+?()[\]{}|]/g,S=/^\[object .+?Constructor\]$/,g=Function.prototype,L=Object.prototype,N=g.toString,B=L.hasOwnProperty,j=RegExp("^"+N.call(B).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _(H){if(!x(H)||v(H))return!1;var k=c(H)?j:S;return k.test(d(H))}h.exports=_},29221:(h,I,o)=>{var c=o(98882),v=o(37005),x="[object Set]";function d(b){return v(b)&&c(b)==x}h.exports=d},38749:(h,I,o)=>{var c=o(44239),v=o(41780),x=o(37005),d="[object Arguments]",b="[object Array]",S="[object Boolean]",g="[object Date]",L="[object Error]",N="[object Function]",B="[object Map]",j="[object Number]",_="[object Object]",H="[object RegExp]",k="[object Set]",X="[object String]",R="[object WeakMap]",C="[object ArrayBuffer]",V="[object DataView]",J="[object Float32Array]",q="[object Float64Array]",Q="[object Int8Array]",K="[object Int16Array]",fe="[object Int32Array]",te="[object Uint8Array]",re="[object Uint8ClampedArray]",ye="[object Uint16Array]",ve="[object Uint32Array]",de={};de[J]=de[q]=de[Q]=de[K]=de[fe]=de[te]=de[re]=de[ye]=de[ve]=!0,de[d]=de[b]=de[C]=de[S]=de[V]=de[g]=de[L]=de[N]=de[B]=de[j]=de[_]=de[H]=de[k]=de[X]=de[R]=!1;function le(oe){return x(oe)&&v(oe.length)&&!!de[c(oe)]}h.exports=le},67206:(h,I,o)=>{var c=o(91573),v=o(16432),x=o(6557),d=o(1469),b=o(39601);function S(g){return typeof g=="function"?g:g==null?x:typeof g=="object"?d(g)?v(g[0],g[1]):c(g):b(g)}h.exports=S},280:(h,I,o)=>{var c=o(25726),v=o(86916),x=Object.prototype,d=x.hasOwnProperty;function b(S){if(!c(S))return v(S);var g=[];for(var L in Object(S))d.call(S,L)&&L!="constructor"&&g.push(L);return g}h.exports=b},10313:(h,I,o)=>{var c=o(13218),v=o(25726),x=o(33498),d=Object.prototype,b=d.hasOwnProperty;function S(g){if(!c(g))return x(g);var L=v(g),N=[];for(var B in g)B=="constructor"&&(L||!b.call(g,B))||N.push(B);return N}h.exports=S},91573:(h,I,o)=>{var c=o(2958),v=o(1499),x=o(42634);function d(b){var S=v(b);return S.length==1&&S[0][2]?x(S[0][0],S[0][1]):function(g){return g===b||c(g,b,S)}}h.exports=d},16432:(h,I,o)=>{var c=o(90939),v=o(27361),x=o(79095),d=o(15403),b=o(89162),S=o(42634),g=o(40327),L=1,N=2;function B(j,_){return d(j)&&b(_)?S(g(j),_):function(H){var k=v(H,j);return k===void 0&&k===_?x(H,j):c(_,k,L|N)}}h.exports=B},25970:(h,I,o)=>{var c=o(63012),v=o(79095);function x(d,b){return c(d,b,function(S,g){return v(d,g)})}h.exports=x},63012:(h,I,o)=>{var c=o(97786),v=o(10611),x=o(71811);function d(b,S,g){for(var L=-1,N=S.length,B={};++L<N;){var j=S[L],_=c(b,j);g(_,j)&&v(B,x(j,b),_)}return B}h.exports=d},40371:h=>{function I(o){return function(c){return c==null?void 0:c[o]}}h.exports=I},79152:(h,I,o)=>{var c=o(97786);function v(x){return function(d){return c(d,x)}}h.exports=v},5976:(h,I,o)=>{var c=o(6557),v=o(45357),x=o(30061);function d(b,S){return x(v(b,S,c),b+"")}h.exports=d},10611:(h,I,o)=>{var c=o(34865),v=o(71811),x=o(65776),d=o(13218),b=o(40327);function S(g,L,N,B){if(!d(g))return g;L=v(L,g);for(var j=-1,_=L.length,H=_-1,k=g;k!=null&&++j<_;){var X=b(L[j]),R=N;if(X==="__proto__"||X==="constructor"||X==="prototype")return g;if(j!=H){var C=k[X];R=B?B(C,X,k):void 0,R===void 0&&(R=d(C)?C:x(L[j+1])?[]:{})}c(k,X,R),k=k[X]}return g}h.exports=S},56560:(h,I,o)=>{var c=o(75703),v=o(38777),x=o(6557),d=v?function(b,S){return v(b,"toString",{configurable:!0,enumerable:!1,value:c(S),writable:!0})}:x;h.exports=d},22545:h=>{function I(o,c){for(var v=-1,x=Array(o);++v<o;)x[v]=c(v);return x}h.exports=I},80531:(h,I,o)=>{var c=o(62705),v=o(29932),x=o(1469),d=o(33448),b=1/0,S=c?c.prototype:void 0,g=S?S.toString:void 0;function L(N){if(typeof N=="string")return N;if(x(N))return v(N,L)+"";if(d(N))return g?g.call(N):"";var B=N+"";return B=="0"&&1/N==-b?"-0":B}h.exports=L},27561:(h,I,o)=>{var c=o(67990),v=/^\s+/;function x(d){return d&&d.slice(0,c(d)+1).replace(v,"")}h.exports=x},7518:h=>{function I(o){return function(c){return o(c)}}h.exports=I},74757:h=>{function I(o,c){return o.has(c)}h.exports=I},71811:(h,I,o)=>{var c=o(1469),v=o(15403),x=o(55514),d=o(79833);function b(S,g){return c(S)?S:v(S,g)?[S]:x(d(S))}h.exports=b},74318:(h,I,o)=>{var c=o(11149);function v(x){var d=new x.constructor(x.byteLength);return new c(d).set(new c(x)),d}h.exports=v},64626:(h,I,o)=>{h=o.nmd(h);var c=o(55639),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d?c.Buffer:void 0,S=b?b.allocUnsafe:void 0;function g(L,N){if(N)return L.slice();var B=L.length,j=S?S(B):new L.constructor(B);return L.copy(j),j}h.exports=g},57157:(h,I,o)=>{var c=o(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.byteLength)}h.exports=v},93147:h=>{var I=/\w*$/;function o(c){var v=new c.constructor(c.source,I.exec(c));return v.lastIndex=c.lastIndex,v}h.exports=o},40419:(h,I,o)=>{var c=o(62705),v=c?c.prototype:void 0,x=v?v.valueOf:void 0;function d(b){return x?Object(x.call(b)):{}}h.exports=d},77133:(h,I,o)=>{var c=o(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.length)}h.exports=v},278:h=>{function I(o,c){var v=-1,x=o.length;for(c||(c=Array(x));++v<x;)c[v]=o[v];return c}h.exports=I},98363:(h,I,o)=>{var c=o(34865),v=o(89465);function x(d,b,S,g){var L=!S;S||(S={});for(var N=-1,B=b.length;++N<B;){var j=b[N],_=g?g(S[j],d[j],j,S,d):void 0;_===void 0&&(_=d[j]),L?v(S,j,_):c(S,j,_)}return S}h.exports=x},18805:(h,I,o)=>{var c=o(98363),v=o(99551);function x(d,b){return c(d,v(d),b)}h.exports=x},1911:(h,I,o)=>{var c=o(98363),v=o(51442);function x(d,b){return c(d,v(d),b)}h.exports=x},14429:(h,I,o)=>{var c=o(55639),v=c["__core-js_shared__"];h.exports=v},21463:(h,I,o)=>{var c=o(5976),v=o(16612);function x(d){return c(function(b,S){var g=-1,L=S.length,N=L>1?S[L-1]:void 0,B=L>2?S[2]:void 0;for(N=d.length>3&&typeof N=="function"?(L--,N):void 0,B&&v(S[0],S[1],B)&&(N=L<3?void 0:N,L=1),b=Object(b);++g<L;){var j=S[g];j&&d(b,j,g,N)}return b})}h.exports=x},67740:(h,I,o)=>{var c=o(67206),v=o(98612),x=o(3674);function d(b){return function(S,g,L){var N=Object(S);if(!v(S)){var B=c(g,3);S=x(S),g=function(_){return B(N[_],_,N)}}var j=b(S,g,L);return j>-1?N[B?S[j]:j]:void 0}}h.exports=d},38777:(h,I,o)=>{var c=o(10852),v=function(){try{var x=c(Object,"defineProperty");return x({},"",{}),x}catch(d){}}();h.exports=v},67114:(h,I,o)=>{var c=o(88668),v=o(82908),x=o(74757),d=1,b=2;function S(g,L,N,B,j,_){var H=N&d,k=g.length,X=L.length;if(k!=X&&!(H&&X>k))return!1;var R=_.get(g),C=_.get(L);if(R&&C)return R==L&&C==g;var V=-1,J=!0,q=N&b?new c:void 0;for(_.set(g,L),_.set(L,g);++V<k;){var Q=g[V],K=L[V];if(B)var fe=H?B(K,Q,V,L,g,_):B(Q,K,V,g,L,_);if(fe!==void 0){if(fe)continue;J=!1;break}if(q){if(!v(L,function(te,re){if(!x(q,re)&&(Q===te||j(Q,te,N,B,_)))return q.push(re)})){J=!1;break}}else if(!(Q===K||j(Q,K,N,B,_))){J=!1;break}}return _.delete(g),_.delete(L),J}h.exports=S},18351:(h,I,o)=>{var c=o(62705),v=o(11149),x=o(77813),d=o(67114),b=o(68776),S=o(21814),g=1,L=2,N="[object Boolean]",B="[object Date]",j="[object Error]",_="[object Map]",H="[object Number]",k="[object RegExp]",X="[object Set]",R="[object String]",C="[object Symbol]",V="[object ArrayBuffer]",J="[object DataView]",q=c?c.prototype:void 0,Q=q?q.valueOf:void 0;function K(fe,te,re,ye,ve,de,le){switch(re){case J:if(fe.byteLength!=te.byteLength||fe.byteOffset!=te.byteOffset)return!1;fe=fe.buffer,te=te.buffer;case V:return!(fe.byteLength!=te.byteLength||!de(new v(fe),new v(te)));case N:case B:case H:return x(+fe,+te);case j:return fe.name==te.name&&fe.message==te.message;case k:case R:return fe==te+"";case _:var oe=b;case X:var De=ye&g;if(oe||(oe=S),fe.size!=te.size&&!De)return!1;var Ve=le.get(fe);if(Ve)return Ve==te;ye|=L,le.set(fe,te);var Le=d(oe(fe),oe(te),ye,ve,de,le);return le.delete(fe),Le;case C:if(Q)return Q.call(fe)==Q.call(te)}return!1}h.exports=K},16096:(h,I,o)=>{var c=o(58234),v=1,x=Object.prototype,d=x.hasOwnProperty;function b(S,g,L,N,B,j){var _=L&v,H=c(S),k=H.length,X=c(g),R=X.length;if(k!=R&&!_)return!1;for(var C=k;C--;){var V=H[C];if(!(_?V in g:d.call(g,V)))return!1}var J=j.get(S),q=j.get(g);if(J&&q)return J==g&&q==S;var Q=!0;j.set(S,g),j.set(g,S);for(var K=_;++C<k;){V=H[C];var fe=S[V],te=g[V];if(N)var re=_?N(te,fe,V,g,S,j):N(fe,te,V,S,g,j);if(!(re===void 0?fe===te||B(fe,te,L,N,j):re)){Q=!1;break}K||(K=V=="constructor")}if(Q&&!K){var ye=S.constructor,ve=g.constructor;ye!=ve&&"constructor"in S&&"constructor"in g&&!(typeof ye=="function"&&ye instanceof ye&&typeof ve=="function"&&ve instanceof ve)&&(Q=!1)}return j.delete(S),j.delete(g),Q}h.exports=b},99021:(h,I,o)=>{var c=o(85564),v=o(45357),x=o(30061);function d(b){return x(v(b,void 0,c),b+"")}h.exports=d},31957:(h,I,o)=>{var c=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g;h.exports=c},58234:(h,I,o)=>{var c=o(68866),v=o(99551),x=o(3674);function d(b){return c(b,x,v)}h.exports=d},46904:(h,I,o)=>{var c=o(68866),v=o(51442),x=o(81704);function d(b){return c(b,x,v)}h.exports=d},45050:(h,I,o)=>{var c=o(37019);function v(x,d){var b=x.__data__;return c(d)?b[typeof d=="string"?"string":"hash"]:b.map}h.exports=v},1499:(h,I,o)=>{var c=o(89162),v=o(3674);function x(d){for(var b=v(d),S=b.length;S--;){var g=b[S],L=d[g];b[S]=[g,L,c(L)]}return b}h.exports=x},10852:(h,I,o)=>{var c=o(28458),v=o(47801);function x(d,b){var S=v(d,b);return c(S)?S:void 0}h.exports=x},85924:(h,I,o)=>{var c=o(5569),v=c(Object.getPrototypeOf,Object);h.exports=v},89607:(h,I,o)=>{var c=o(62705),v=Object.prototype,x=v.hasOwnProperty,d=v.toString,b=c?c.toStringTag:void 0;function S(g){var L=x.call(g,b),N=g[b];try{g[b]=void 0;var B=!0}catch(_){}var j=d.call(g);return B&&(L?g[b]=N:delete g[b]),j}h.exports=S},99551:(h,I,o)=>{var c=o(34963),v=o(70479),x=Object.prototype,d=x.propertyIsEnumerable,b=Object.getOwnPropertySymbols,S=b?function(g){return g==null?[]:(g=Object(g),c(b(g),function(L){return d.call(g,L)}))}:v;h.exports=S},51442:(h,I,o)=>{var c=o(62488),v=o(85924),x=o(99551),d=o(70479),b=Object.getOwnPropertySymbols,S=b?function(g){for(var L=[];g;)c(L,x(g)),g=v(g);return L}:d;h.exports=S},98882:(h,I,o)=>{var c=o(18552),v=o(57071),x=o(53818),d=o(58525),b=o(70577),S=o(44239),g=o(80346),L="[object Map]",N="[object Object]",B="[object Promise]",j="[object Set]",_="[object WeakMap]",H="[object DataView]",k=g(c),X=g(v),R=g(x),C=g(d),V=g(b),J=S;(c&&J(new c(new ArrayBuffer(1)))!=H||v&&J(new v)!=L||x&&J(x.resolve())!=B||d&&J(new d)!=j||b&&J(new b)!=_)&&(J=function(q){var Q=S(q),K=Q==N?q.constructor:void 0,fe=K?g(K):"";if(fe)switch(fe){case k:return H;case X:return L;case R:return B;case C:return j;case V:return _}return Q}),h.exports=J},47801:h=>{function I(o,c){return o==null?void 0:o[c]}h.exports=I},222:(h,I,o)=>{var c=o(71811),v=o(35694),x=o(1469),d=o(65776),b=o(41780),S=o(40327);function g(L,N,B){N=c(N,L);for(var j=-1,_=N.length,H=!1;++j<_;){var k=S(N[j]);if(!(H=L!=null&&B(L,k)))break;L=L[k]}return H||++j!=_?H:(_=L==null?0:L.length,!!_&&b(_)&&d(k,_)&&(x(L)||v(L)))}h.exports=g},51789:(h,I,o)=>{var c=o(94536);function v(){this.__data__=c?c(null):{},this.size=0}h.exports=v},80401:h=>{function I(o){var c=this.has(o)&&delete this.__data__[o];return this.size-=c?1:0,c}h.exports=I},57667:(h,I,o)=>{var c=o(94536),v="__lodash_hash_undefined__",x=Object.prototype,d=x.hasOwnProperty;function b(S){var g=this.__data__;if(c){var L=g[S];return L===v?void 0:L}return d.call(g,S)?g[S]:void 0}h.exports=b},21327:(h,I,o)=>{var c=o(94536),v=Object.prototype,x=v.hasOwnProperty;function d(b){var S=this.__data__;return c?S[b]!==void 0:x.call(S,b)}h.exports=d},81866:(h,I,o)=>{var c=o(94536),v="__lodash_hash_undefined__";function x(d,b){var S=this.__data__;return this.size+=this.has(d)?0:1,S[d]=c&&b===void 0?v:b,this}h.exports=x},43824:h=>{var I=Object.prototype,o=I.hasOwnProperty;function c(v){var x=v.length,d=new v.constructor(x);return x&&typeof v[0]=="string"&&o.call(v,"index")&&(d.index=v.index,d.input=v.input),d}h.exports=c},29148:(h,I,o)=>{var c=o(74318),v=o(57157),x=o(93147),d=o(40419),b=o(77133),S="[object Boolean]",g="[object Date]",L="[object Map]",N="[object Number]",B="[object RegExp]",j="[object Set]",_="[object String]",H="[object Symbol]",k="[object ArrayBuffer]",X="[object DataView]",R="[object Float32Array]",C="[object Float64Array]",V="[object Int8Array]",J="[object Int16Array]",q="[object Int32Array]",Q="[object Uint8Array]",K="[object Uint8ClampedArray]",fe="[object Uint16Array]",te="[object Uint32Array]";function re(ye,ve,de){var le=ye.constructor;switch(ve){case k:return c(ye);case S:case g:return new le(+ye);case X:return v(ye,de);case R:case C:case V:case J:case q:case Q:case K:case fe:case te:return b(ye,de);case L:return new le;case N:case _:return new le(ye);case B:return x(ye);case j:return new le;case H:return d(ye)}}h.exports=re},38517:(h,I,o)=>{var c=o(3118),v=o(85924),x=o(25726);function d(b){return typeof b.constructor=="function"&&!x(b)?c(v(b)):{}}h.exports=d},37285:(h,I,o)=>{var c=o(62705),v=o(35694),x=o(1469),d=c?c.isConcatSpreadable:void 0;function b(S){return x(S)||v(S)||!!(d&&S&&S[d])}h.exports=b},65776:h=>{var I=9007199254740991,o=/^(?:0|[1-9]\d*)$/;function c(v,x){var d=typeof v;return x=x==null?I:x,!!x&&(d=="number"||d!="symbol"&&o.test(v))&&v>-1&&v%1==0&&v<x}h.exports=c},16612:(h,I,o)=>{var c=o(77813),v=o(98612),x=o(65776),d=o(13218);function b(S,g,L){if(!d(L))return!1;var N=typeof g;return(N=="number"?v(L)&&x(g,L.length):N=="string"&&g in L)?c(L[g],S):!1}h.exports=b},15403:(h,I,o)=>{var c=o(1469),v=o(33448),x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/;function b(S,g){if(c(S))return!1;var L=typeof S;return L=="number"||L=="symbol"||L=="boolean"||S==null||v(S)?!0:d.test(S)||!x.test(S)||g!=null&&S in Object(g)}h.exports=b},37019:h=>{function I(o){var c=typeof o;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?o!=="__proto__":o===null}h.exports=I},15346:(h,I,o)=>{var c=o(14429),v=function(){var d=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}();function x(d){return!!v&&v in d}h.exports=x},25726:h=>{var I=Object.prototype;function o(c){var v=c&&c.constructor,x=typeof v=="function"&&v.prototype||I;return c===x}h.exports=o},89162:(h,I,o)=>{var c=o(13218);function v(x){return x===x&&!c(x)}h.exports=v},27040:h=>{function I(){this.__data__=[],this.size=0}h.exports=I},14125:(h,I,o)=>{var c=o(18470),v=Array.prototype,x=v.splice;function d(b){var S=this.__data__,g=c(S,b);if(g<0)return!1;var L=S.length-1;return g==L?S.pop():x.call(S,g,1),--this.size,!0}h.exports=d},82117:(h,I,o)=>{var c=o(18470);function v(x){var d=this.__data__,b=c(d,x);return b<0?void 0:d[b][1]}h.exports=v},67518:(h,I,o)=>{var c=o(18470);function v(x){return c(this.__data__,x)>-1}h.exports=v},13399:(h,I,o)=>{var c=o(18470);function v(x,d){var b=this.__data__,S=c(b,x);return S<0?(++this.size,b.push([x,d])):b[S][1]=d,this}h.exports=v},24785:(h,I,o)=>{var c=o(1989),v=o(38407),x=o(57071);function d(){this.size=0,this.__data__={hash:new c,map:new(x||v),string:new c}}h.exports=d},11285:(h,I,o)=>{var c=o(45050);function v(x){var d=c(this,x).delete(x);return this.size-=d?1:0,d}h.exports=v},96e3:(h,I,o)=>{var c=o(45050);function v(x){return c(this,x).get(x)}h.exports=v},49916:(h,I,o)=>{var c=o(45050);function v(x){return c(this,x).has(x)}h.exports=v},95265:(h,I,o)=>{var c=o(45050);function v(x,d){var b=c(this,x),S=b.size;return b.set(x,d),this.size+=b.size==S?0:1,this}h.exports=v},68776:h=>{function I(o){var c=-1,v=Array(o.size);return o.forEach(function(x,d){v[++c]=[d,x]}),v}h.exports=I},42634:h=>{function I(o,c){return function(v){return v==null?!1:v[o]===c&&(c!==void 0||o in Object(v))}}h.exports=I},24523:(h,I,o)=>{var c=o(88306),v=500;function x(d){var b=c(d,function(g){return S.size===v&&S.clear(),g}),S=b.cache;return b}h.exports=x},94536:(h,I,o)=>{var c=o(10852),v=c(Object,"create");h.exports=v},86916:(h,I,o)=>{var c=o(5569),v=c(Object.keys,Object);h.exports=v},33498:h=>{function I(o){var c=[];if(o!=null)for(var v in Object(o))c.push(v);return c}h.exports=I},31167:(h,I,o)=>{h=o.nmd(h);var c=o(31957),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d&&c.process,S=function(){try{var g=x&&x.require&&x.require("util").types;return g||b&&b.binding&&b.binding("util")}catch(L){}}();h.exports=S},2333:h=>{var I=Object.prototype,o=I.toString;function c(v){return o.call(v)}h.exports=c},5569:h=>{function I(o,c){return function(v){return o(c(v))}}h.exports=I},45357:(h,I,o)=>{var c=o(96874),v=Math.max;function x(d,b,S){return b=v(b===void 0?d.length-1:b,0),function(){for(var g=arguments,L=-1,N=v(g.length-b,0),B=Array(N);++L<N;)B[L]=g[b+L];L=-1;for(var j=Array(b+1);++L<b;)j[L]=g[L];return j[b]=S(B),c(d,this,j)}}h.exports=x},55639:(h,I,o)=>{var c=o(31957),v=typeof self=="object"&&self&&self.Object===Object&&self,x=c||v||Function("return this")();h.exports=x},90619:h=>{var I="__lodash_hash_undefined__";function o(c){return this.__data__.set(c,I),this}h.exports=o},72385:h=>{function I(o){return this.__data__.has(o)}h.exports=I},21814:h=>{function I(o){var c=-1,v=Array(o.size);return o.forEach(function(x){v[++c]=x}),v}h.exports=I},30061:(h,I,o)=>{var c=o(56560),v=o(21275),x=v(c);h.exports=x},21275:h=>{var I=800,o=16,c=Date.now;function v(x){var d=0,b=0;return function(){var S=c(),g=o-(S-b);if(b=S,g>0){if(++d>=I)return arguments[0]}else d=0;return x.apply(void 0,arguments)}}h.exports=v},37465:(h,I,o)=>{var c=o(38407);function v(){this.__data__=new c,this.size=0}h.exports=v},63779:h=>{function I(o){var c=this.__data__,v=c.delete(o);return this.size=c.size,v}h.exports=I},67599:h=>{function I(o){return this.__data__.get(o)}h.exports=I},44758:h=>{function I(o){return this.__data__.has(o)}h.exports=I},34309:(h,I,o)=>{var c=o(38407),v=o(57071),x=o(83369),d=200;function b(S,g){var L=this.__data__;if(L instanceof c){var N=L.__data__;if(!v||N.length<d-1)return N.push([S,g]),this.size=++L.size,this;L=this.__data__=new x(N)}return L.set(S,g),this.size=L.size,this}h.exports=b},55514:(h,I,o)=>{var c=o(24523),v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,d=c(function(b){var S=[];return b.charCodeAt(0)===46&&S.push(""),b.replace(v,function(g,L,N,B){S.push(N?B.replace(x,"$1"):L||g)}),S});h.exports=d},40327:(h,I,o)=>{var c=o(33448),v=1/0;function x(d){if(typeof d=="string"||c(d))return d;var b=d+"";return b=="0"&&1/d==-v?"-0":b}h.exports=x},80346:h=>{var I=Function.prototype,o=I.toString;function c(v){if(v!=null){try{return o.call(v)}catch(x){}try{return v+""}catch(x){}}return""}h.exports=c},67990:h=>{var I=/\s/;function o(c){for(var v=c.length;v--&&I.test(c.charAt(v)););return v}h.exports=o},28583:(h,I,o)=>{var c=o(34865),v=o(98363),x=o(21463),d=o(98612),b=o(25726),S=o(3674),g=Object.prototype,L=g.hasOwnProperty,N=x(function(B,j){if(b(j)||d(j)){v(j,S(j),B);return}for(var _ in j)L.call(j,_)&&c(B,_,j[_])});h.exports=N},50361:(h,I,o)=>{var c=o(85990),v=1,x=4;function d(b){return c(b,v|x)}h.exports=d},75703:h=>{function I(o){return function(){return o}}h.exports=I},77813:h=>{function I(o,c){return o===c||o!==o&&c!==c}h.exports=I},13311:(h,I,o)=>{var c=o(67740),v=o(30998),x=c(v);h.exports=x},30998:(h,I,o)=>{var c=o(41848),v=o(67206),x=o(40554),d=Math.max;function b(S,g,L){var N=S==null?0:S.length;if(!N)return-1;var B=L==null?0:x(L);return B<0&&(B=d(N+B,0)),c(S,v(g,3),B)}h.exports=b},85564:(h,I,o)=>{var c=o(35764);function v(x){var d=x==null?0:x.length;return d?c(x,1):[]}h.exports=v},27361:(h,I,o)=>{var c=o(97786);function v(x,d,b){var S=x==null?void 0:c(x,d);return S===void 0?b:S}h.exports=v},79095:(h,I,o)=>{var c=o(13),v=o(222);function x(d,b){return d!=null&&v(d,b,c)}h.exports=x},6557:h=>{function I(o){return o}h.exports=I},35694:(h,I,o)=>{var c=o(9454),v=o(37005),x=Object.prototype,d=x.hasOwnProperty,b=x.propertyIsEnumerable,S=c(function(){return arguments}())?c:function(g){return v(g)&&d.call(g,"callee")&&!b.call(g,"callee")};h.exports=S},1469:h=>{var I=Array.isArray;h.exports=I},98612:(h,I,o)=>{var c=o(23560),v=o(41780);function x(d){return d!=null&&v(d.length)&&!c(d)}h.exports=x},44144:(h,I,o)=>{h=o.nmd(h);var c=o(55639),v=o(95062),x=I&&!I.nodeType&&I,d=x&&!0&&h&&!h.nodeType&&h,b=d&&d.exports===x,S=b?c.Buffer:void 0,g=S?S.isBuffer:void 0,L=g||v;h.exports=L},41609:(h,I,o)=>{var c=o(280),v=o(98882),x=o(35694),d=o(1469),b=o(98612),S=o(44144),g=o(25726),L=o(36719),N="[object Map]",B="[object Set]",j=Object.prototype,_=j.hasOwnProperty;function H(k){if(k==null)return!0;if(b(k)&&(d(k)||typeof k=="string"||typeof k.splice=="function"||S(k)||L(k)||x(k)))return!k.length;var X=v(k);if(X==N||X==B)return!k.size;if(g(k))return!c(k).length;for(var R in k)if(_.call(k,R))return!1;return!0}h.exports=H},23560:(h,I,o)=>{var c=o(44239),v=o(13218),x="[object AsyncFunction]",d="[object Function]",b="[object GeneratorFunction]",S="[object Proxy]";function g(L){if(!v(L))return!1;var N=c(L);return N==d||N==b||N==x||N==S}h.exports=g},41780:h=>{var I=9007199254740991;function o(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=I}h.exports=o},56688:(h,I,o)=>{var c=o(25588),v=o(7518),x=o(31167),d=x&&x.isMap,b=d?v(d):c;h.exports=b},13218:h=>{function I(o){var c=typeof o;return o!=null&&(c=="object"||c=="function")}h.exports=I},37005:h=>{function I(o){return o!=null&&typeof o=="object"}h.exports=I},68630:(h,I,o)=>{var c=o(44239),v=o(85924),x=o(37005),d="[object Object]",b=Function.prototype,S=Object.prototype,g=b.toString,L=S.hasOwnProperty,N=g.call(Object);function B(j){if(!x(j)||c(j)!=d)return!1;var _=v(j);if(_===null)return!0;var H=L.call(_,"constructor")&&_.constructor;return typeof H=="function"&&H instanceof H&&g.call(H)==N}h.exports=B},72928:(h,I,o)=>{var c=o(29221),v=o(7518),x=o(31167),d=x&&x.isSet,b=d?v(d):c;h.exports=b},47037:(h,I,o)=>{var c=o(44239),v=o(1469),x=o(37005),d="[object String]";function b(S){return typeof S=="string"||!v(S)&&x(S)&&c(S)==d}h.exports=b},33448:(h,I,o)=>{var c=o(44239),v=o(37005),x="[object Symbol]";function d(b){return typeof b=="symbol"||v(b)&&c(b)==x}h.exports=d},36719:(h,I,o)=>{var c=o(38749),v=o(7518),x=o(31167),d=x&&x.isTypedArray,b=d?v(d):c;h.exports=b},3674:(h,I,o)=>{var c=o(14636),v=o(280),x=o(98612);function d(b){return x(b)?c(b):v(b)}h.exports=d},81704:(h,I,o)=>{var c=o(14636),v=o(10313),x=o(98612);function d(b){return x(b)?c(b,!0):v(b)}h.exports=d},88306:(h,I,o)=>{var c=o(83369),v="Expected a function";function x(d,b){if(typeof d!="function"||b!=null&&typeof b!="function")throw new TypeError(v);var S=function(){var g=arguments,L=b?b.apply(this,g):g[0],N=S.cache;if(N.has(L))return N.get(L);var B=d.apply(this,g);return S.cache=N.set(L,B)||N,B};return S.cache=new(x.Cache||c),S}x.Cache=c,h.exports=x},50308:h=>{function I(){}h.exports=I},78718:(h,I,o)=>{var c=o(25970),v=o(99021),x=v(function(d,b){return d==null?{}:c(d,b)});h.exports=x},39601:(h,I,o)=>{var c=o(40371),v=o(79152),x=o(15403),d=o(40327);function b(S){return x(S)?c(d(S)):v(S)}h.exports=b},10240:(h,I,o)=>{var c=o(29750),v=o(80531),x=o(40554),d=o(79833);function b(S,g,L){return S=d(S),L=L==null?0:c(x(L),0,S.length),g=v(g),S.slice(L,L+g.length)==g}h.exports=b},70479:h=>{function I(){return[]}h.exports=I},95062:h=>{function I(){return!1}h.exports=I},18601:(h,I,o)=>{var c=o(14841),v=1/0,x=17976931348623157e292;function d(b){if(!b)return b===0?b:0;if(b=c(b),b===v||b===-v){var S=b<0?-1:1;return S*x}return b===b?b:0}h.exports=d},40554:(h,I,o)=>{var c=o(18601);function v(x){var d=c(x),b=d%1;return d===d?b?d-b:d:0}h.exports=v},14841:(h,I,o)=>{var c=o(27561),v=o(13218),x=o(33448),d=0/0,b=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,g=/^0o[0-7]+$/i,L=parseInt;function N(B){if(typeof B=="number")return B;if(x(B))return d;if(v(B)){var j=typeof B.valueOf=="function"?B.valueOf():B;B=v(j)?j+"":j}if(typeof B!="string")return B===0?B:+B;B=c(B);var _=S.test(B);return _||g.test(B)?L(B.slice(2),_?2:8):b.test(B)?d:+B}h.exports=N},79833:(h,I,o)=>{var c=o(80531);function v(x){return x==null?"":c(x)}h.exports=v},70631:(h,I,o)=>{var c=typeof Map=="function"&&Map.prototype,v=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,x=c&&v&&typeof v.get=="function"?v.get:null,d=c&&Map.prototype.forEach,b=typeof Set=="function"&&Set.prototype,S=Object.getOwnPropertyDescriptor&&b?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,g=b&&S&&typeof S.get=="function"?S.get:null,L=b&&Set.prototype.forEach,N=typeof WeakMap=="function"&&WeakMap.prototype,B=N?WeakMap.prototype.has:null,j=typeof WeakSet=="function"&&WeakSet.prototype,_=j?WeakSet.prototype.has:null,H=typeof WeakRef=="function"&&WeakRef.prototype,k=H?WeakRef.prototype.deref:null,X=Boolean.prototype.valueOf,R=Object.prototype.toString,C=Function.prototype.toString,V=String.prototype.match,J=typeof BigInt=="function"?BigInt.prototype.valueOf:null,q=Object.getOwnPropertySymbols,Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,K=typeof Symbol=="function"&&typeof Symbol.iterator=="object",fe=Object.prototype.propertyIsEnumerable,te=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(be){return be.__proto__}:null),re=o(24654).custom,ye=re&&Xe(re)?re:null,ve=typeof Symbol=="function"&&typeof Symbol.toStringTag!="undefined"?Symbol.toStringTag:null;h.exports=function be(Ae,T,Ie,W){var O=T||{};if(yt(O,"quoteStyle")&&O.quoteStyle!=="single"&&O.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(yt(O,"maxStringLength")&&(typeof O.maxStringLength=="number"?O.maxStringLength<0&&O.maxStringLength!==1/0:O.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var P=yt(O,"customInspect")?O.customInspect:!0;if(typeof P!="boolean")throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(yt(O,"indent")&&O.indent!==null&&O.indent!==" "&&!(parseInt(O.indent,10)===O.indent&&O.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(typeof Ae=="undefined")return"undefined";if(Ae===null)return"null";if(typeof Ae=="boolean")return Ae?"true":"false";if(typeof Ae=="string")return Bt(Ae,O);if(typeof Ae=="number")return Ae===0?1/0/Ae>0?"0":"-0":String(Ae);if(typeof Ae=="bigint")return String(Ae)+"n";var ie=typeof O.depth=="undefined"?5:O.depth;if(typeof Ie=="undefined"&&(Ie=0),Ie>=ie&&ie>0&&typeof Ae=="object")return oe(Ae)?"[Array]":"[Object]";var D=$(O,Ie);if(typeof W=="undefined")W=[];else if(vt(W,Ae)>=0)return"[Circular]";function ee(Un,Gn,On){if(Gn&&(W=W.slice(),W.push(Gn)),On){var $n={depth:O.depth};return yt(O,"quoteStyle")&&($n.quoteStyle=O.quoteStyle),be(Un,$n,Ie+1,W)}return be(Un,O,Ie+1,W)}if(typeof Ae=="function"){var ce=lt(Ae),Oe=Me(Ae,ee);return"[Function"+(ce?": "+ce:" (anonymous)")+"]"+(Oe.length>0?" { "+Oe.join(", ")+" }":"")}if(Xe(Ae)){var Pe=K?String(Ae).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):Q.call(Ae);return typeof Ae=="object"&&!K?wt(Pe):Pe}if(Wt(Ae)){for(var Te="<"+String(Ae.nodeName).toLowerCase(),ze=Ae.attributes||[],He=0;He<ze.length;He++)Te+=" "+ze[He].name+"="+de(le(ze[He].value),"double",O);return Te+=">",Ae.childNodes&&Ae.childNodes.length&&(Te+="..."),Te+="</"+String(Ae.nodeName).toLowerCase()+">",Te}if(oe(Ae)){if(Ae.length===0)return"[]";var it=Me(Ae,ee);return D&&!G(it)?"["+we(it,D)+"]":"[ "+it.join(", ")+" ]"}if(Le(Ae)){var gt=Me(Ae,ee);return gt.length===0?"["+String(Ae)+"]":"{ ["+String(Ae)+"] "+gt.join(", ")+" }"}if(typeof Ae=="object"&&P){if(ye&&typeof Ae[ye]=="function")return Ae[ye]();if(typeof Ae.inspect=="function")return Ae.inspect()}if(mt(Ae)){var Ct=[];return d.call(Ae,function(Un,Gn){Ct.push(ee(Gn,Ae,!0)+" => "+ee(Un,Ae))}),pe("Map",x.call(Ae),Ct,D)}if(It(Ae)){var Yt=[];return L.call(Ae,function(Un){Yt.push(ee(Un,Ae))}),pe("Set",g.call(Ae),Yt,D)}if(dt(Ae))return Rt("WeakMap");if(St(Ae))return Rt("WeakSet");if(kt(Ae))return Rt("WeakRef");if(tt(Ae))return wt(ee(Number(Ae)));if(ut(Ae))return wt(ee(J.call(Ae)));if(Qe(Ae))return wt(X.call(Ae));if(ke(Ae))return wt(ee(String(Ae)));if(!De(Ae)&&!Ve(Ae)){var Ft=Me(Ae,ee),gn=te?te(Ae)===Object.prototype:Ae instanceof Object||Ae.constructor===Object,Xr=Ae instanceof Object?"":"null prototype",Cn=!gn&&ve&&Object(Ae)===Ae&&ve in Ae?qe(Ae).slice(8,-1):Xr?"Object":"",Ui=gn||typeof Ae.constructor!="function"?"":Ae.constructor.name?Ae.constructor.name+" ":"",jr=Ui+(Cn||Xr?"["+[].concat(Cn||[],Xr||[]).join(": ")+"] ":"");return Ft.length===0?jr+"{}":D?jr+"{"+we(Ft,D)+"}":jr+"{ "+Ft.join(", ")+" }"}return String(Ae)};function de(be,Ae,T){var Ie=(T.quoteStyle||Ae)==="double"?'"':"'";return Ie+be+Ie}function le(be){return String(be).replace(/"/g,"&quot;")}function oe(be){return qe(be)==="[object Array]"&&(!ve||!(typeof be=="object"&&ve in be))}function De(be){return qe(be)==="[object Date]"&&(!ve||!(typeof be=="object"&&ve in be))}function Ve(be){return qe(be)==="[object RegExp]"&&(!ve||!(typeof be=="object"&&ve in be))}function Le(be){return qe(be)==="[object Error]"&&(!ve||!(typeof be=="object"&&ve in be))}function ke(be){return qe(be)==="[object String]"&&(!ve||!(typeof be=="object"&&ve in be))}function tt(be){return qe(be)==="[object Number]"&&(!ve||!(typeof be=="object"&&ve in be))}function Qe(be){return qe(be)==="[object Boolean]"&&(!ve||!(typeof be=="object"&&ve in be))}function Xe(be){if(K)return be&&typeof be=="object"&&be instanceof Symbol;if(typeof be=="symbol")return!0;if(!be||typeof be!="object"||!Q)return!1;try{return Q.call(be),!0}catch(Ae){}return!1}function ut(be){if(!be||typeof be!="object"||!J)return!1;try{return J.call(be),!0}catch(Ae){}return!1}var pt=Object.prototype.hasOwnProperty||function(be){return be in this};function yt(be,Ae){return pt.call(be,Ae)}function qe(be){return R.call(be)}function lt(be){if(be.name)return be.name;var Ae=V.call(C.call(be),/^function\s*([\w$]+)/);return Ae?Ae[1]:null}function vt(be,Ae){if(be.indexOf)return be.indexOf(Ae);for(var T=0,Ie=be.length;T<Ie;T++)if(be[T]===Ae)return T;return-1}function mt(be){if(!x||!be||typeof be!="object")return!1;try{x.call(be);try{g.call(be)}catch(Ae){return!0}return be instanceof Map}catch(Ae){}return!1}function dt(be){if(!B||!be||typeof be!="object")return!1;try{B.call(be,B);try{_.call(be,_)}catch(Ae){return!0}return be instanceof WeakMap}catch(Ae){}return!1}function kt(be){if(!k||!be||typeof be!="object")return!1;try{return k.call(be),!0}catch(Ae){}return!1}function It(be){if(!g||!be||typeof be!="object")return!1;try{g.call(be);try{x.call(be)}catch(Ae){return!0}return be instanceof Set}catch(Ae){}return!1}function St(be){if(!_||!be||typeof be!="object")return!1;try{_.call(be,_);try{B.call(be,B)}catch(Ae){return!0}return be instanceof WeakSet}catch(Ae){}return!1}function Wt(be){return!be||typeof be!="object"?!1:typeof HTMLElement!="undefined"&&be instanceof HTMLElement?!0:typeof be.nodeName=="string"&&typeof be.getAttribute=="function"}function Bt(be,Ae){if(be.length>Ae.maxStringLength){var T=be.length-Ae.maxStringLength,Ie="... "+T+" more character"+(T>1?"s":"");return Bt(be.slice(0,Ae.maxStringLength),Ae)+Ie}var W=be.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,Gt);return de(W,"single",Ae)}function Gt(be){var Ae=be.charCodeAt(0),T={8:"b",9:"t",10:"n",12:"f",13:"r"}[Ae];return T?"\\"+T:"\\x"+(Ae<16?"0":"")+Ae.toString(16).toUpperCase()}function wt(be){return"Object("+be+")"}function Rt(be){return be+" { ? }"}function pe(be,Ae,T,Ie){var W=Ie?we(T,Ie):T.join(", ");return be+" ("+Ae+") {"+W+"}"}function G(be){for(var Ae=0;Ae<be.length;Ae++)if(vt(be[Ae],`
499
+ `)>=0)return!1;return!0}function $(be,Ae){var T;if(be.indent===" ")T=" ";else if(typeof be.indent=="number"&&be.indent>0)T=Array(be.indent+1).join(" ");else return null;return{base:T,prev:Array(Ae+1).join(T)}}function we(be,Ae){if(be.length===0)return"";var T=`
505
500
  `+Ae.prev+Ae.base;return T+be.join(","+T)+`
506
- `+Ae.prev}function ke(be,Ae){var T=ie(be),Ie=[];if(T){Ie.length=be.length;for(var H=0;H<be.length;H++)Ie[H]=gt(be,H)?Ae(be[H],be):""}var C=typeof W=="function"?W(be):[],P;if(Z){P={};for(var ne=0;ne<C.length;ne++)P["$"+C[ne]]=C[ne]}for(var N in be)!gt(be,N)||T&&String(Number(N))===N&&N<be.length||Z&&P["$"+N]instanceof Symbol||(/[^\w$]/.test(N)?Ie.push(Ae(N,be)+": "+Ae(be[N],be)):Ie.push(N+": "+Ae(be[N],be)));if(typeof W=="function")for(var ee=0;ee<C.length;ee++)ce.call(be,C[ee])&&Ie.push("["+Ae(C[ee])+"]: "+Ae(be[C[ee]],be));return Ie}},9779:(h,I,o)=>{"use strict";var c=I,v=o(48764).Buffer;c.unescapeBuffer=function(L,D){for(var B=new v(L.length),U=0,_,z,k,Q=0,M=0;Q<=L.length;Q++){var O=Q<L.length?L.charCodeAt(Q):NaN;switch(U){case 0:switch(O){case 37:_=0,z=0,U=1;break;case 43:D&&(O=32);default:B[M++]=O;break}break;case 1:if(k=O,O>=48&&O<=57)_=O-48;else if(O>=65&&O<=70)_=O-65+10;else if(O>=97&&O<=102)_=O-97+10;else{B[M++]=37,B[M++]=O,U=0;break}U=2;break;case 2:if(U=0,O>=48&&O<=57)z=O-48;else if(O>=65&&O<=70)z=O-65+10;else if(O>=97&&O<=102)z=O-97+10;else{B[M++]=37,B[M++]=k,B[M++]=O;break}B[M++]=16*_+z;break}}return B.slice(0,M-1)};function x(L,D){try{return decodeURIComponent(L)}catch(B){return c.unescapeBuffer(L,D).toString()}}c.unescape=x;for(var d=new Array(256),b=0;b<256;++b)d[b]="%"+((b<16?"0":"")+b.toString(16)).toUpperCase();c.escape=function(L){typeof L!="string"&&(L+="");for(var D="",B=0,U=0;U<L.length;++U){var _=L.charCodeAt(U);if(!(_===33||_===45||_===46||_===95||_===126||_>=39&&_<=42||_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122)){if(U-B>0&&(D+=L.slice(B,U)),_<128){B=U+1,D+=d[_];continue}if(_<2048){B=U+1,D+=d[192|_>>6]+d[128|_&63];continue}if(_<55296||_>=57344){B=U+1,D+=d[224|_>>12]+d[128|_>>6&63]+d[128|_&63];continue}++U;var z;if(U<L.length)z=L.charCodeAt(U)&1023;else throw new URIError("URI malformed");B=U+1,_=65536+((_&1023)<<10|z),D+=d[240|_>>18]+d[128|_>>12&63]+d[128|_>>6&63]+d[128|_&63]}}return B===0?L:B<L.length?D+L.slice(B):D};var A=function(L){return typeof L=="string"?L:typeof L=="number"&&isFinite(L)?""+L:typeof L=="boolean"?L?"true":"false":""};c.stringify=c.encode=function(L,D,B,U){D=D||"&",B=B||"=";var _=c.escape;if(U&&typeof U.encodeURIComponent=="function"&&(_=U.encodeURIComponent),L!==null&&typeof L=="object"){for(var z=Object.keys(L),k=z.length,Q=k-1,M="",O=0;O<k;++O){var V=z[O],X=L[V],W=_(A(V))+B;if(Array.isArray(X)){for(var K=X.length,Z=K-1,ce=0;ce<K;++ce)M+=W+_(A(X[ce])),ce<Z&&(M+=D);K&&O<Q&&(M+=D)}else M+=W+_(A(X)),O<Q&&(M+=D)}return M}return""},c.parse=c.decode=function(L,D,B,U){D=D||"&",B=B||"=";var _={};if(typeof L!="string"||L.length===0)return _;typeof D!="string"&&(D+="");var z=B.length,k=D.length,Q=1e3;U&&typeof U.maxKeys=="number"&&(Q=U.maxKeys);var M=1/0;Q>0&&(M=Q);var O=c.unescape;U&&typeof U.decodeURIComponent=="function"&&(O=U.decodeURIComponent);for(var V=O!==x,X=[],W=0,K=0,Z=0,ce="",te="",ae=V,me=V,ge=0,he=0;he<L.length;++he){var ue=L.charCodeAt(he);if(ue===D.charCodeAt(K)){if(++K===k){var ie=he-K+1;if(Z<z?W<ie&&(ce+=L.slice(W,ie)):W<ie&&(te+=L.slice(W,ie)),ae&&(ce=g(ce,O)),me&&(te=g(te,O)),X.indexOf(ce)===-1)_[ce]=te,X[X.length]=ce;else{var Me=_[ce];Me instanceof Array?Me[Me.length]=te:_[ce]=[Me,te]}if(--M==0)break;ae=me=V,ge=0,ce=te="",W=he+1,K=Z=0}continue}else K=0,me||(ue===37?ge=1:ge>0&&(ue>=48&&ue<=57||ue>=65&&ue<=70||ue>=97&&ue<=102)?++ge==3&&(me=!0):ge=0);if(Z<z)if(ue===B.charCodeAt(Z)){if(++Z===z){var ie=he-Z+1;W<ie&&(ce+=L.slice(W,ie)),ge=0,W=he+1}continue}else Z=0,ae||(ue===37?ge=1:ge>0&&(ue>=48&&ue<=57||ue>=65&&ue<=70||ue>=97&&ue<=102)?++ge==3&&(ae=!0):ge=0);ue===43&&(Z<z?(he-W>0&&(ce+=L.slice(W,he)),ce+="%20",ae=!0):(he-W>0&&(te+=L.slice(W,he)),te+="%20",me=!0),W=he+1)}if(M>0&&(W<L.length||Z>0))if(W<L.length&&(Z<z?ce+=L.slice(W):K<k&&(te+=L.slice(W))),ae&&(ce=g(ce,O)),me&&(te=g(te,O)),X.indexOf(ce)===-1)_[ce]=te,X[X.length]=ce;else{var Me=_[ce];Me instanceof Array?Me[Me.length]=te:_[ce]=[Me,te]}return _};function g(L,D){try{return D(L)}catch(B){return c.unescape(L,!0)}}},29656:(h,I,o)=>{"use strict";var c;function v(){return v=Object.assign||function(_){for(var z=1;z<arguments.length;z++){var k=arguments[z];for(var Q in k)Object.prototype.hasOwnProperty.call(k,Q)&&(_[Q]=k[Q])}return _},v.apply(this,arguments)}function x(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(k){return typeof k}:x=function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},x(_)}var d=function(){var _=function(k,Q){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,O){M.__proto__=O}||function(M,O){for(var V in O)O.hasOwnProperty(V)&&(M[V]=O[V])},_(k,Q)};return function(z,k){_(z,k);function Q(){this.constructor=z}z.prototype=k===null?Object.create(k):(Q.prototype=k.prototype,new Q)}}();c={value:!0},c=I.fk=void 0;var b=o(67294),A=typeof navigator=="undefined"||o.g.PREVENT_CODEMIRROR_RENDER===!0,g;A||(g=o(4631));var L=function(){function _(){}return _.equals=function(z,k){var Q=this,M=Object.keys,O=x(z),V=x(k);return z&&k&&O==="object"&&O===V?M(z).length===M(k).length&&M(z).every(function(X){return Q.equals(z[X],k[X])}):z===k},_}(),D=function(){function _(z,k){this.editor=z,this.props=k}return _.prototype.delegateCursor=function(z,k,Q){var M=this.editor.getDoc();Q&&this.editor.focus(),k?M.setCursor(z):M.setCursor(z,null,{scroll:!1})},_.prototype.delegateScroll=function(z){this.editor.scrollTo(z.x,z.y)},_.prototype.delegateSelection=function(z,k){var Q=this.editor.getDoc();Q.setSelections(z),k&&this.editor.focus()},_.prototype.apply=function(z){z&&z.selection&&z.selection.ranges&&this.delegateSelection(z.selection.ranges,z.selection.focus||!1),z&&z.cursor&&this.delegateCursor(z.cursor,z.autoScroll||!1,this.editor.getOption("autofocus")||!1),z&&z.scroll&&this.delegateScroll(z.scroll)},_.prototype.applyNext=function(z,k,Q){z&&z.selection&&z.selection.ranges&&k&&k.selection&&k.selection.ranges&&!L.equals(z.selection.ranges,k.selection.ranges)&&this.delegateSelection(k.selection.ranges,k.selection.focus||!1),z&&z.cursor&&k&&k.cursor&&!L.equals(z.cursor,k.cursor)&&this.delegateCursor(Q.cursor||k.cursor,k.autoScroll||!1,k.autoCursor||!1),z&&z.scroll&&k&&k.scroll&&!L.equals(z.scroll,k.scroll)&&this.delegateScroll(k.scroll)},_.prototype.applyUserDefined=function(z,k){k&&k.cursor&&this.delegateCursor(k.cursor,z.autoScroll||!1,this.editor.getOption("autofocus")||!1)},_.prototype.wire=function(z){var k=this;Object.keys(z||{}).filter(function(Q){return/^on/.test(Q)}).forEach(function(Q){switch(Q){case"onBlur":k.editor.on("blur",function(M,O){k.props.onBlur(k.editor,O)});break;case"onContextMenu":{k.editor.on("contextmenu",function(M,O){k.props.onContextMenu(k.editor,O)});break}case"onCopy":{k.editor.on("copy",function(M,O){k.props.onCopy(k.editor,O)});break}case"onCursor":k.editor.on("cursorActivity",function(M){k.props.onCursor(k.editor,k.editor.getDoc().getCursor())});break;case"onCursorActivity":k.editor.on("cursorActivity",function(M){k.props.onCursorActivity(k.editor)});break;case"onCut":{k.editor.on("cut",function(M,O){k.props.onCut(k.editor,O)});break}case"onDblClick":{k.editor.on("dblclick",function(M,O){k.props.onDblClick(k.editor,O)});break}case"onDragEnter":k.editor.on("dragenter",function(M,O){k.props.onDragEnter(k.editor,O)});break;case"onDragLeave":{k.editor.on("dragleave",function(M,O){k.props.onDragLeave(k.editor,O)});break}case"onDragOver":k.editor.on("dragover",function(M,O){k.props.onDragOver(k.editor,O)});break;case"onDragStart":{k.editor.on("dragstart",function(M,O){k.props.onDragStart(k.editor,O)});break}case"onDrop":k.editor.on("drop",function(M,O){k.props.onDrop(k.editor,O)});break;case"onFocus":k.editor.on("focus",function(M,O){k.props.onFocus(k.editor,O)});break;case"onGutterClick":k.editor.on("gutterClick",function(M,O,V,X){k.props.onGutterClick(k.editor,O,V,X)});break;case"onInputRead":k.editor.on("inputRead",function(M,O){k.props.onInputRead(k.editor,O)});break;case"onKeyDown":k.editor.on("keydown",function(M,O){k.props.onKeyDown(k.editor,O)});break;case"onKeyHandled":k.editor.on("keyHandled",function(M,O,V){k.props.onKeyHandled(k.editor,O,V)});break;case"onKeyPress":k.editor.on("keypress",function(M,O){k.props.onKeyPress(k.editor,O)});break;case"onKeyUp":k.editor.on("keyup",function(M,O){k.props.onKeyUp(k.editor,O)});break;case"onMouseDown":{k.editor.on("mousedown",function(M,O){k.props.onMouseDown(k.editor,O)});break}case"onPaste":{k.editor.on("paste",function(M,O){k.props.onPaste(k.editor,O)});break}case"onRenderLine":{k.editor.on("renderLine",function(M,O,V){k.props.onRenderLine(k.editor,O,V)});break}case"onScroll":k.editor.on("scroll",function(M){k.props.onScroll(k.editor,k.editor.getScrollInfo())});break;case"onSelection":k.editor.on("beforeSelectionChange",function(M,O){k.props.onSelection(k.editor,O)});break;case"onTouchStart":{k.editor.on("touchstart",function(M,O){k.props.onTouchStart(k.editor,O)});break}case"onUpdate":k.editor.on("update",function(M){k.props.onUpdate(k.editor)});break;case"onViewportChange":k.editor.on("viewportChange",function(M,O,V){k.props.onViewportChange(k.editor,O,V)});break}})},_}(),B=function(_){d(z,_);function z(k){var Q=_.call(this,k)||this;return A||(Q.applied=!1,Q.appliedNext=!1,Q.appliedUserDefined=!1,Q.deferred=null,Q.emulating=!1,Q.hydrated=!1,Q.initCb=function(){Q.props.editorDidConfigure&&Q.props.editorDidConfigure(Q.editor)},Q.mounted=!1),Q}return z.prototype.hydrate=function(k){var Q=this,M=k&&k.options?k.options:{},O=v({},g.defaults,this.editor.options,M),V=Object.keys(O).some(function(X){return Q.editor.getOption(X)!==O[X]});V&&Object.keys(O).forEach(function(X){M.hasOwnProperty(X)&&Q.editor.getOption(X)!==O[X]&&(Q.editor.setOption(X,O[X]),Q.mirror.setOption(X,O[X]))}),this.hydrated||(this.deferred?this.resolveChange(k.value):this.initChange(k.value||"")),this.hydrated=!0},z.prototype.initChange=function(k){this.emulating=!0;var Q=this.editor.getDoc(),M=Q.lastLine(),O=Q.getLine(Q.lastLine()).length;Q.replaceRange(k||"",{line:0,ch:0},{line:M,ch:O}),this.mirror.setValue(k),Q.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},z.prototype.resolveChange=function(k){this.emulating=!0;var Q=this.editor.getDoc();if(this.deferred.origin==="undo"?Q.undo():this.deferred.origin==="redo"?Q.redo():Q.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),k&&k!==Q.getValue()){var M=Q.getCursor();Q.setValue(k),Q.setCursor(M)}this.emulating=!1,this.deferred=null},z.prototype.mirrorChange=function(k){var Q=this.editor.getDoc();return k.origin==="undo"?(Q.setHistory(this.mirror.getHistory()),this.mirror.undo()):k.origin==="redo"?(Q.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(k.text,k.from,k.to,k.origin),this.mirror.getValue()},z.prototype.componentDidMount=function(){var k=this;A||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new D(this.editor,this.props),this.mirror=g(function(){},this.props.options),this.editor.on("electricInput",function(){k.mirror.setHistory(k.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){k.mirror.setCursor(k.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(Q,M){if(!k.emulating){M.cancel(),k.deferred=M;var O=k.mirrorChange(k.deferred);k.props.onBeforeChange&&k.props.onBeforeChange(k.editor,k.deferred,O)}}),this.editor.on("change",function(Q,M){!k.mounted||k.props.onChange&&k.props.onChange(k.editor,M,k.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},z.prototype.componentDidUpdate=function(k){if(!A){var Q={cursor:null};this.props.value!==k.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(Q.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(k,this.props,Q),this.appliedNext=!0),this.shared.applyUserDefined(k,Q),this.appliedUserDefined=!0}},z.prototype.componentWillUnmount=function(){A||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},z.prototype.shouldComponentUpdate=function(k,Q){return!A},z.prototype.render=function(){var k=this;if(A)return null;var Q=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:Q,ref:function(O){return k.ref=O}})},z}(b.Component);I.fk=B;var U=function(_){d(z,_);function z(k){var Q=_.call(this,k)||this;return A||(Q.applied=!1,Q.appliedUserDefined=!1,Q.continueChange=!1,Q.detached=!1,Q.hydrated=!1,Q.initCb=function(){Q.props.editorDidConfigure&&Q.props.editorDidConfigure(Q.editor)},Q.mounted=!1,Q.onBeforeChangeCb=function(){Q.continueChange=!0}),Q}return z.prototype.hydrate=function(k){var Q=this,M=k&&k.options?k.options:{},O=v({},g.defaults,this.editor.options,M),V=Object.keys(O).some(function(Z){return Q.editor.getOption(Z)!==O[Z]});if(V&&Object.keys(O).forEach(function(Z){M.hasOwnProperty(Z)&&Q.editor.getOption(Z)!==O[Z]&&Q.editor.setOption(Z,O[Z])}),!this.hydrated){var X=this.editor.getDoc(),W=X.lastLine(),K=X.getLine(X.lastLine()).length;X.replaceRange(k.value||"",{line:0,ch:0},{line:W,ch:K})}this.hydrated=!0},z.prototype.componentDidMount=function(){var k=this;A||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new D(this.editor,this.props),this.editor.on("beforeChange",function(Q,M){k.props.onBeforeChange&&k.props.onBeforeChange(k.editor,M,k.editor.getValue(),k.onBeforeChangeCb)}),this.editor.on("change",function(Q,M){!k.mounted||!k.props.onChange||(k.props.onBeforeChange?k.continueChange&&k.props.onChange(k.editor,M,k.editor.getValue()):k.props.onChange(k.editor,M,k.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},z.prototype.componentDidUpdate=function(k){if(this.detached&&this.props.detach===!1&&(this.detached=!1,k.editorDidAttach&&k.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,k.editorDidDetach&&k.editorDidDetach(this.editor)),!(A||this.detached)){var Q={cursor:null};this.props.value!==k.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!k.autoCursor&&k.autoCursor!==void 0&&(Q.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(k),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(k,Q),this.appliedUserDefined=!0)}},z.prototype.componentWillUnmount=function(){A||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},z.prototype.shouldComponentUpdate=function(k,Q){var M=!0;return A&&(M=!1),this.detached&&k.detach&&(M=!1),M},z.prototype.render=function(){var k=this;if(A)return null;var Q=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:Q,ref:function(O){return k.ref=O}})},z}(b.Component);c=U},35666:h=>{var I=function(o){"use strict";var c=Object.prototype,v=c.hasOwnProperty,x,d=typeof Symbol=="function"?Symbol:{},b=d.iterator||"@@iterator",A=d.asyncIterator||"@@asyncIterator",g=d.toStringTag||"@@toStringTag";function L(je,Ne,Re){return Object.defineProperty(je,Ne,{value:Re,enumerable:!0,configurable:!0,writable:!0}),je[Ne]}try{L({},"")}catch(je){L=function(Ne,Re,rt){return Ne[Re]=rt}}function D(je,Ne,Re,rt){var Qe=Ne&&Ne.prototype instanceof M?Ne:M,Je=Object.create(Qe.prototype),ut=new ue(rt||[]);return Je._invoke=ae(je,Re,ut),Je}o.wrap=D;function B(je,Ne,Re){try{return{type:"normal",arg:je.call(Ne,Re)}}catch(rt){return{type:"throw",arg:rt}}}var U="suspendedStart",_="suspendedYield",z="executing",k="completed",Q={};function M(){}function O(){}function V(){}var X={};X[b]=function(){return this};var W=Object.getPrototypeOf,K=W&&W(W(ie([])));K&&K!==c&&v.call(K,b)&&(X=K);var Z=V.prototype=M.prototype=Object.create(X);O.prototype=Z.constructor=V,V.constructor=O,O.displayName=L(V,g,"GeneratorFunction");function ce(je){["next","throw","return"].forEach(function(Ne){L(je,Ne,function(Re){return this._invoke(Ne,Re)})})}o.isGeneratorFunction=function(je){var Ne=typeof je=="function"&&je.constructor;return Ne?Ne===O||(Ne.displayName||Ne.name)==="GeneratorFunction":!1},o.mark=function(je){return Object.setPrototypeOf?Object.setPrototypeOf(je,V):(je.__proto__=V,L(je,g,"GeneratorFunction")),je.prototype=Object.create(Z),je},o.awrap=function(je){return{__await:je}};function te(je,Ne){function Re(Je,ut,pt,gt){var _e=B(je[Je],je,ut);if(_e.type==="throw")gt(_e.arg);else{var lt=_e.arg,ht=lt.value;return ht&&typeof ht=="object"&&v.call(ht,"__await")?Ne.resolve(ht.__await).then(function(yt){Re("next",yt,pt,gt)},function(yt){Re("throw",yt,pt,gt)}):Ne.resolve(ht).then(function(yt){lt.value=yt,pt(lt)},function(yt){return Re("throw",yt,pt,gt)})}}var rt;function Qe(Je,ut){function pt(){return new Ne(function(gt,_e){Re(Je,ut,gt,_e)})}return rt=rt?rt.then(pt,pt):pt()}this._invoke=Qe}ce(te.prototype),te.prototype[A]=function(){return this},o.AsyncIterator=te,o.async=function(je,Ne,Re,rt,Qe){Qe===void 0&&(Qe=Promise);var Je=new te(D(je,Ne,Re,rt),Qe);return o.isGeneratorFunction(Ne)?Je:Je.next().then(function(ut){return ut.done?ut.value:Je.next()})};function ae(je,Ne,Re){var rt=U;return function(Je,ut){if(rt===z)throw new Error("Generator is already running");if(rt===k){if(Je==="throw")throw ut;return Me()}for(Re.method=Je,Re.arg=ut;;){var pt=Re.delegate;if(pt){var gt=me(pt,Re);if(gt){if(gt===Q)continue;return gt}}if(Re.method==="next")Re.sent=Re._sent=Re.arg;else if(Re.method==="throw"){if(rt===U)throw rt=k,Re.arg;Re.dispatchException(Re.arg)}else Re.method==="return"&&Re.abrupt("return",Re.arg);rt=z;var _e=B(je,Ne,Re);if(_e.type==="normal"){if(rt=Re.done?k:_,_e.arg===Q)continue;return{value:_e.arg,done:Re.done}}else _e.type==="throw"&&(rt=k,Re.method="throw",Re.arg=_e.arg)}}}function me(je,Ne){var Re=je.iterator[Ne.method];if(Re===x){if(Ne.delegate=null,Ne.method==="throw"){if(je.iterator.return&&(Ne.method="return",Ne.arg=x,me(je,Ne),Ne.method==="throw"))return Q;Ne.method="throw",Ne.arg=new TypeError("The iterator does not provide a 'throw' method")}return Q}var rt=B(Re,je.iterator,Ne.arg);if(rt.type==="throw")return Ne.method="throw",Ne.arg=rt.arg,Ne.delegate=null,Q;var Qe=rt.arg;if(!Qe)return Ne.method="throw",Ne.arg=new TypeError("iterator result is not an object"),Ne.delegate=null,Q;if(Qe.done)Ne[je.resultName]=Qe.value,Ne.next=je.nextLoc,Ne.method!=="return"&&(Ne.method="next",Ne.arg=x);else return Qe;return Ne.delegate=null,Q}ce(Z),L(Z,g,"Generator"),Z[b]=function(){return this},Z.toString=function(){return"[object Generator]"};function ge(je){var Ne={tryLoc:je[0]};1 in je&&(Ne.catchLoc=je[1]),2 in je&&(Ne.finallyLoc=je[2],Ne.afterLoc=je[3]),this.tryEntries.push(Ne)}function he(je){var Ne=je.completion||{};Ne.type="normal",delete Ne.arg,je.completion=Ne}function ue(je){this.tryEntries=[{tryLoc:"root"}],je.forEach(ge,this),this.reset(!0)}o.keys=function(je){var Ne=[];for(var Re in je)Ne.push(Re);return Ne.reverse(),function rt(){for(;Ne.length;){var Qe=Ne.pop();if(Qe in je)return rt.value=Qe,rt.done=!1,rt}return rt.done=!0,rt}};function ie(je){if(je){var Ne=je[b];if(Ne)return Ne.call(je);if(typeof je.next=="function")return je;if(!isNaN(je.length)){var Re=-1,rt=function Qe(){for(;++Re<je.length;)if(v.call(je,Re))return Qe.value=je[Re],Qe.done=!1,Qe;return Qe.value=x,Qe.done=!0,Qe};return rt.next=rt}}return{next:Me}}o.values=ie;function Me(){return{value:x,done:!0}}return ue.prototype={constructor:ue,reset:function(je){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(he),!je)for(var Ne in this)Ne.charAt(0)==="t"&&v.call(this,Ne)&&!isNaN(+Ne.slice(1))&&(this[Ne]=x)},stop:function(){this.done=!0;var je=this.tryEntries[0],Ne=je.completion;if(Ne.type==="throw")throw Ne.arg;return this.rval},dispatchException:function(je){if(this.done)throw je;var Ne=this;function Re(gt,_e){return Je.type="throw",Je.arg=je,Ne.next=gt,_e&&(Ne.method="next",Ne.arg=x),!!_e}for(var rt=this.tryEntries.length-1;rt>=0;--rt){var Qe=this.tryEntries[rt],Je=Qe.completion;if(Qe.tryLoc==="root")return Re("end");if(Qe.tryLoc<=this.prev){var ut=v.call(Qe,"catchLoc"),pt=v.call(Qe,"finallyLoc");if(ut&&pt){if(this.prev<Qe.catchLoc)return Re(Qe.catchLoc,!0);if(this.prev<Qe.finallyLoc)return Re(Qe.finallyLoc)}else if(ut){if(this.prev<Qe.catchLoc)return Re(Qe.catchLoc,!0)}else if(pt){if(this.prev<Qe.finallyLoc)return Re(Qe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(je,Ne){for(var Re=this.tryEntries.length-1;Re>=0;--Re){var rt=this.tryEntries[Re];if(rt.tryLoc<=this.prev&&v.call(rt,"finallyLoc")&&this.prev<rt.finallyLoc){var Qe=rt;break}}Qe&&(je==="break"||je==="continue")&&Qe.tryLoc<=Ne&&Ne<=Qe.finallyLoc&&(Qe=null);var Je=Qe?Qe.completion:{};return Je.type=je,Je.arg=Ne,Qe?(this.method="next",this.next=Qe.finallyLoc,Q):this.complete(Je)},complete:function(je,Ne){if(je.type==="throw")throw je.arg;return je.type==="break"||je.type==="continue"?this.next=je.arg:je.type==="return"?(this.rval=this.arg=je.arg,this.method="return",this.next="end"):je.type==="normal"&&Ne&&(this.next=Ne),Q},finish:function(je){for(var Ne=this.tryEntries.length-1;Ne>=0;--Ne){var Re=this.tryEntries[Ne];if(Re.finallyLoc===je)return this.complete(Re.completion,Re.afterLoc),he(Re),Q}},catch:function(je){for(var Ne=this.tryEntries.length-1;Ne>=0;--Ne){var Re=this.tryEntries[Ne];if(Re.tryLoc===je){var rt=Re.completion;if(rt.type==="throw"){var Qe=rt.arg;he(Re)}return Qe}}throw new Error("illegal catch attempt")},delegateYield:function(je,Ne,Re){return this.delegate={iterator:ie(je),resultName:Ne,nextLoc:Re},this.method==="next"&&(this.arg=x),Q}},o}(h.exports);try{regeneratorRuntime=I}catch(o){Function("r","regeneratorRuntime = r")(I)}},37478:(h,I,o)=>{"use strict";var c=o(40210),v=o(21924),x=o(70631),d=c("%TypeError%"),b=c("%WeakMap%",!0),A=c("%Map%",!0),g=v("WeakMap.prototype.get",!0),L=v("WeakMap.prototype.set",!0),D=v("WeakMap.prototype.has",!0),B=v("Map.prototype.get",!0),U=v("Map.prototype.set",!0),_=v("Map.prototype.has",!0),z=function(O,V){for(var X=O,W;(W=X.next)!==null;X=W)if(W.key===V)return X.next=W.next,W.next=O.next,O.next=W,W},k=function(O,V){var X=z(O,V);return X&&X.value},Q=function(O,V,X){var W=z(O,V);W?W.value=X:O.next={key:V,next:O.next,value:X}},M=function(O,V){return!!z(O,V)};h.exports=function(){var V,X,W,K={assert:function(Z){if(!K.has(Z))throw new d("Side channel does not contain "+x(Z))},get:function(Z){if(b&&Z&&(typeof Z=="object"||typeof Z=="function")){if(V)return g(V,Z)}else if(A){if(X)return B(X,Z)}else if(W)return k(W,Z)},has:function(Z){if(b&&Z&&(typeof Z=="object"||typeof Z=="function")){if(V)return D(V,Z)}else if(A){if(X)return _(X,Z)}else if(W)return M(W,Z);return!1},set:function(Z,ce){b&&Z&&(typeof Z=="object"||typeof Z=="function")?(V||(V=new b),L(V,Z,ce)):A?(X||(X=new A),U(X,Z,ce)):(W||(W={key:{},next:null}),Q(W,Z,ce))}};return K}},13837:(h,I,o)=>{var c=o(93379),v=o(17438);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},75019:(h,I,o)=>{var c=o(93379),v=o(58635);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},86081:(h,I,o)=>{var c=o(93379),v=o(45272);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},44254:(h,I,o)=>{var c=o(93379),v=o(40961);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},88996:(h,I,o)=>{"use strict";/*!
501
+ `+Ae.prev}function Me(be,Ae){var T=oe(be),Ie=[];if(T){Ie.length=be.length;for(var W=0;W<be.length;W++)Ie[W]=yt(be,W)?Ae(be[W],be):""}var O=typeof q=="function"?q(be):[],P;if(K){P={};for(var ie=0;ie<O.length;ie++)P["$"+O[ie]]=O[ie]}for(var D in be)!yt(be,D)||T&&String(Number(D))===D&&D<be.length||K&&P["$"+D]instanceof Symbol||(/[^\w$]/.test(D)?Ie.push(Ae(D,be)+": "+Ae(be[D],be)):Ie.push(D+": "+Ae(be[D],be)));if(typeof q=="function")for(var ee=0;ee<O.length;ee++)fe.call(be,O[ee])&&Ie.push("["+Ae(O[ee])+"]: "+Ae(be[O[ee]],be));return Ie}},9779:(h,I,o)=>{"use strict";var c=I,v=o(48764).Buffer;c.unescapeBuffer=function(L,N){for(var B=new v(L.length),j=0,_,H,k,X=0,R=0;X<=L.length;X++){var C=X<L.length?L.charCodeAt(X):NaN;switch(j){case 0:switch(C){case 37:_=0,H=0,j=1;break;case 43:N&&(C=32);default:B[R++]=C;break}break;case 1:if(k=C,C>=48&&C<=57)_=C-48;else if(C>=65&&C<=70)_=C-65+10;else if(C>=97&&C<=102)_=C-97+10;else{B[R++]=37,B[R++]=C,j=0;break}j=2;break;case 2:if(j=0,C>=48&&C<=57)H=C-48;else if(C>=65&&C<=70)H=C-65+10;else if(C>=97&&C<=102)H=C-97+10;else{B[R++]=37,B[R++]=k,B[R++]=C;break}B[R++]=16*_+H;break}}return B.slice(0,R-1)};function x(L,N){try{return decodeURIComponent(L)}catch(B){return c.unescapeBuffer(L,N).toString()}}c.unescape=x;for(var d=new Array(256),b=0;b<256;++b)d[b]="%"+((b<16?"0":"")+b.toString(16)).toUpperCase();c.escape=function(L){typeof L!="string"&&(L+="");for(var N="",B=0,j=0;j<L.length;++j){var _=L.charCodeAt(j);if(!(_===33||_===45||_===46||_===95||_===126||_>=39&&_<=42||_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122)){if(j-B>0&&(N+=L.slice(B,j)),_<128){B=j+1,N+=d[_];continue}if(_<2048){B=j+1,N+=d[192|_>>6]+d[128|_&63];continue}if(_<55296||_>=57344){B=j+1,N+=d[224|_>>12]+d[128|_>>6&63]+d[128|_&63];continue}++j;var H;if(j<L.length)H=L.charCodeAt(j)&1023;else throw new URIError("URI malformed");B=j+1,_=65536+((_&1023)<<10|H),N+=d[240|_>>18]+d[128|_>>12&63]+d[128|_>>6&63]+d[128|_&63]}}return B===0?L:B<L.length?N+L.slice(B):N};var S=function(L){return typeof L=="string"?L:typeof L=="number"&&isFinite(L)?""+L:typeof L=="boolean"?L?"true":"false":""};c.stringify=c.encode=function(L,N,B,j){N=N||"&",B=B||"=";var _=c.escape;if(j&&typeof j.encodeURIComponent=="function"&&(_=j.encodeURIComponent),L!==null&&typeof L=="object"){for(var H=Object.keys(L),k=H.length,X=k-1,R="",C=0;C<k;++C){var V=H[C],J=L[V],q=_(S(V))+B;if(Array.isArray(J)){for(var Q=J.length,K=Q-1,fe=0;fe<Q;++fe)R+=q+_(S(J[fe])),fe<K&&(R+=N);Q&&C<X&&(R+=N)}else R+=q+_(S(J)),C<X&&(R+=N)}return R}return""},c.parse=c.decode=function(L,N,B,j){N=N||"&",B=B||"=";var _={};if(typeof L!="string"||L.length===0)return _;typeof N!="string"&&(N+="");var H=B.length,k=N.length,X=1e3;j&&typeof j.maxKeys=="number"&&(X=j.maxKeys);var R=1/0;X>0&&(R=X);var C=c.unescape;j&&typeof j.decodeURIComponent=="function"&&(C=j.decodeURIComponent);for(var V=C!==x,J=[],q=0,Q=0,K=0,fe="",te="",re=V,ye=V,ve=0,de=0;de<L.length;++de){var le=L.charCodeAt(de);if(le===N.charCodeAt(Q)){if(++Q===k){var oe=de-Q+1;if(K<H?q<oe&&(fe+=L.slice(q,oe)):q<oe&&(te+=L.slice(q,oe)),re&&(fe=g(fe,C)),ye&&(te=g(te,C)),J.indexOf(fe)===-1)_[fe]=te,J[J.length]=fe;else{var De=_[fe];De instanceof Array?De[De.length]=te:_[fe]=[De,te]}if(--R==0)break;re=ye=V,ve=0,fe=te="",q=de+1,Q=K=0}continue}else Q=0,ye||(le===37?ve=1:ve>0&&(le>=48&&le<=57||le>=65&&le<=70||le>=97&&le<=102)?++ve==3&&(ye=!0):ve=0);if(K<H)if(le===B.charCodeAt(K)){if(++K===H){var oe=de-K+1;q<oe&&(fe+=L.slice(q,oe)),ve=0,q=de+1}continue}else K=0,re||(le===37?ve=1:ve>0&&(le>=48&&le<=57||le>=65&&le<=70||le>=97&&le<=102)?++ve==3&&(re=!0):ve=0);le===43&&(K<H?(de-q>0&&(fe+=L.slice(q,de)),fe+="%20",re=!0):(de-q>0&&(te+=L.slice(q,de)),te+="%20",ye=!0),q=de+1)}if(R>0&&(q<L.length||K>0))if(q<L.length&&(K<H?fe+=L.slice(q):Q<k&&(te+=L.slice(q))),re&&(fe=g(fe,C)),ye&&(te=g(te,C)),J.indexOf(fe)===-1)_[fe]=te,J[J.length]=fe;else{var De=_[fe];De instanceof Array?De[De.length]=te:_[fe]=[De,te]}return _};function g(L,N){try{return N(L)}catch(B){return c.unescape(L,!0)}}},29656:(h,I,o)=>{"use strict";var c;function v(){return v=Object.assign||function(_){for(var H=1;H<arguments.length;H++){var k=arguments[H];for(var X in k)Object.prototype.hasOwnProperty.call(k,X)&&(_[X]=k[X])}return _},v.apply(this,arguments)}function x(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(k){return typeof k}:x=function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},x(_)}var d=function(){var _=function(k,X){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,C){R.__proto__=C}||function(R,C){for(var V in C)C.hasOwnProperty(V)&&(R[V]=C[V])},_(k,X)};return function(H,k){_(H,k);function X(){this.constructor=H}H.prototype=k===null?Object.create(k):(X.prototype=k.prototype,new X)}}();c={value:!0},c=I.fk=void 0;var b=o(67294),S=typeof navigator=="undefined"||o.g.PREVENT_CODEMIRROR_RENDER===!0,g;S||(g=o(4631));var L=function(){function _(){}return _.equals=function(H,k){var X=this,R=Object.keys,C=x(H),V=x(k);return H&&k&&C==="object"&&C===V?R(H).length===R(k).length&&R(H).every(function(J){return X.equals(H[J],k[J])}):H===k},_}(),N=function(){function _(H,k){this.editor=H,this.props=k}return _.prototype.delegateCursor=function(H,k,X){var R=this.editor.getDoc();X&&this.editor.focus(),k?R.setCursor(H):R.setCursor(H,null,{scroll:!1})},_.prototype.delegateScroll=function(H){this.editor.scrollTo(H.x,H.y)},_.prototype.delegateSelection=function(H,k){var X=this.editor.getDoc();X.setSelections(H),k&&this.editor.focus()},_.prototype.apply=function(H){H&&H.selection&&H.selection.ranges&&this.delegateSelection(H.selection.ranges,H.selection.focus||!1),H&&H.cursor&&this.delegateCursor(H.cursor,H.autoScroll||!1,this.editor.getOption("autofocus")||!1),H&&H.scroll&&this.delegateScroll(H.scroll)},_.prototype.applyNext=function(H,k,X){H&&H.selection&&H.selection.ranges&&k&&k.selection&&k.selection.ranges&&!L.equals(H.selection.ranges,k.selection.ranges)&&this.delegateSelection(k.selection.ranges,k.selection.focus||!1),H&&H.cursor&&k&&k.cursor&&!L.equals(H.cursor,k.cursor)&&this.delegateCursor(X.cursor||k.cursor,k.autoScroll||!1,k.autoCursor||!1),H&&H.scroll&&k&&k.scroll&&!L.equals(H.scroll,k.scroll)&&this.delegateScroll(k.scroll)},_.prototype.applyUserDefined=function(H,k){k&&k.cursor&&this.delegateCursor(k.cursor,H.autoScroll||!1,this.editor.getOption("autofocus")||!1)},_.prototype.wire=function(H){var k=this;Object.keys(H||{}).filter(function(X){return/^on/.test(X)}).forEach(function(X){switch(X){case"onBlur":k.editor.on("blur",function(R,C){k.props.onBlur(k.editor,C)});break;case"onContextMenu":{k.editor.on("contextmenu",function(R,C){k.props.onContextMenu(k.editor,C)});break}case"onCopy":{k.editor.on("copy",function(R,C){k.props.onCopy(k.editor,C)});break}case"onCursor":k.editor.on("cursorActivity",function(R){k.props.onCursor(k.editor,k.editor.getDoc().getCursor())});break;case"onCursorActivity":k.editor.on("cursorActivity",function(R){k.props.onCursorActivity(k.editor)});break;case"onCut":{k.editor.on("cut",function(R,C){k.props.onCut(k.editor,C)});break}case"onDblClick":{k.editor.on("dblclick",function(R,C){k.props.onDblClick(k.editor,C)});break}case"onDragEnter":k.editor.on("dragenter",function(R,C){k.props.onDragEnter(k.editor,C)});break;case"onDragLeave":{k.editor.on("dragleave",function(R,C){k.props.onDragLeave(k.editor,C)});break}case"onDragOver":k.editor.on("dragover",function(R,C){k.props.onDragOver(k.editor,C)});break;case"onDragStart":{k.editor.on("dragstart",function(R,C){k.props.onDragStart(k.editor,C)});break}case"onDrop":k.editor.on("drop",function(R,C){k.props.onDrop(k.editor,C)});break;case"onFocus":k.editor.on("focus",function(R,C){k.props.onFocus(k.editor,C)});break;case"onGutterClick":k.editor.on("gutterClick",function(R,C,V,J){k.props.onGutterClick(k.editor,C,V,J)});break;case"onInputRead":k.editor.on("inputRead",function(R,C){k.props.onInputRead(k.editor,C)});break;case"onKeyDown":k.editor.on("keydown",function(R,C){k.props.onKeyDown(k.editor,C)});break;case"onKeyHandled":k.editor.on("keyHandled",function(R,C,V){k.props.onKeyHandled(k.editor,C,V)});break;case"onKeyPress":k.editor.on("keypress",function(R,C){k.props.onKeyPress(k.editor,C)});break;case"onKeyUp":k.editor.on("keyup",function(R,C){k.props.onKeyUp(k.editor,C)});break;case"onMouseDown":{k.editor.on("mousedown",function(R,C){k.props.onMouseDown(k.editor,C)});break}case"onPaste":{k.editor.on("paste",function(R,C){k.props.onPaste(k.editor,C)});break}case"onRenderLine":{k.editor.on("renderLine",function(R,C,V){k.props.onRenderLine(k.editor,C,V)});break}case"onScroll":k.editor.on("scroll",function(R){k.props.onScroll(k.editor,k.editor.getScrollInfo())});break;case"onSelection":k.editor.on("beforeSelectionChange",function(R,C){k.props.onSelection(k.editor,C)});break;case"onTouchStart":{k.editor.on("touchstart",function(R,C){k.props.onTouchStart(k.editor,C)});break}case"onUpdate":k.editor.on("update",function(R){k.props.onUpdate(k.editor)});break;case"onViewportChange":k.editor.on("viewportChange",function(R,C,V){k.props.onViewportChange(k.editor,C,V)});break}})},_}(),B=function(_){d(H,_);function H(k){var X=_.call(this,k)||this;return S||(X.applied=!1,X.appliedNext=!1,X.appliedUserDefined=!1,X.deferred=null,X.emulating=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1),X}return H.prototype.hydrate=function(k){var X=this,R=k&&k.options?k.options:{},C=v({},g.defaults,this.editor.options,R),V=Object.keys(C).some(function(J){return X.editor.getOption(J)!==C[J]});V&&Object.keys(C).forEach(function(J){R.hasOwnProperty(J)&&X.editor.getOption(J)!==C[J]&&(X.editor.setOption(J,C[J]),X.mirror.setOption(J,C[J]))}),this.hydrated||(this.deferred?this.resolveChange(k.value):this.initChange(k.value||"")),this.hydrated=!0},H.prototype.initChange=function(k){this.emulating=!0;var X=this.editor.getDoc(),R=X.lastLine(),C=X.getLine(X.lastLine()).length;X.replaceRange(k||"",{line:0,ch:0},{line:R,ch:C}),this.mirror.setValue(k),X.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},H.prototype.resolveChange=function(k){this.emulating=!0;var X=this.editor.getDoc();if(this.deferred.origin==="undo"?X.undo():this.deferred.origin==="redo"?X.redo():X.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),k&&k!==X.getValue()){var R=X.getCursor();X.setValue(k),X.setCursor(R)}this.emulating=!1,this.deferred=null},H.prototype.mirrorChange=function(k){var X=this.editor.getDoc();return k.origin==="undo"?(X.setHistory(this.mirror.getHistory()),this.mirror.undo()):k.origin==="redo"?(X.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(k.text,k.from,k.to,k.origin),this.mirror.getValue()},H.prototype.componentDidMount=function(){var k=this;S||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new N(this.editor,this.props),this.mirror=g(function(){},this.props.options),this.editor.on("electricInput",function(){k.mirror.setHistory(k.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){k.mirror.setCursor(k.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(X,R){if(!k.emulating){R.cancel(),k.deferred=R;var C=k.mirrorChange(k.deferred);k.props.onBeforeChange&&k.props.onBeforeChange(k.editor,k.deferred,C)}}),this.editor.on("change",function(X,R){!k.mounted||k.props.onChange&&k.props.onChange(k.editor,R,k.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},H.prototype.componentDidUpdate=function(k){if(!S){var X={cursor:null};this.props.value!==k.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(k,this.props,X),this.appliedNext=!0),this.shared.applyUserDefined(k,X),this.appliedUserDefined=!0}},H.prototype.componentWillUnmount=function(){S||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},H.prototype.shouldComponentUpdate=function(k,X){return!S},H.prototype.render=function(){var k=this;if(S)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return k.ref=C}})},H}(b.Component);I.fk=B;var j=function(_){d(H,_);function H(k){var X=_.call(this,k)||this;return S||(X.applied=!1,X.appliedUserDefined=!1,X.continueChange=!1,X.detached=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1,X.onBeforeChangeCb=function(){X.continueChange=!0}),X}return H.prototype.hydrate=function(k){var X=this,R=k&&k.options?k.options:{},C=v({},g.defaults,this.editor.options,R),V=Object.keys(C).some(function(K){return X.editor.getOption(K)!==C[K]});if(V&&Object.keys(C).forEach(function(K){R.hasOwnProperty(K)&&X.editor.getOption(K)!==C[K]&&X.editor.setOption(K,C[K])}),!this.hydrated){var J=this.editor.getDoc(),q=J.lastLine(),Q=J.getLine(J.lastLine()).length;J.replaceRange(k.value||"",{line:0,ch:0},{line:q,ch:Q})}this.hydrated=!0},H.prototype.componentDidMount=function(){var k=this;S||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new N(this.editor,this.props),this.editor.on("beforeChange",function(X,R){k.props.onBeforeChange&&k.props.onBeforeChange(k.editor,R,k.editor.getValue(),k.onBeforeChangeCb)}),this.editor.on("change",function(X,R){!k.mounted||!k.props.onChange||(k.props.onBeforeChange?k.continueChange&&k.props.onChange(k.editor,R,k.editor.getValue()):k.props.onChange(k.editor,R,k.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},H.prototype.componentDidUpdate=function(k){if(this.detached&&this.props.detach===!1&&(this.detached=!1,k.editorDidAttach&&k.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,k.editorDidDetach&&k.editorDidDetach(this.editor)),!(S||this.detached)){var X={cursor:null};this.props.value!==k.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!k.autoCursor&&k.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(k),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(k,X),this.appliedUserDefined=!0)}},H.prototype.componentWillUnmount=function(){S||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},H.prototype.shouldComponentUpdate=function(k,X){var R=!0;return S&&(R=!1),this.detached&&k.detach&&(R=!1),R},H.prototype.render=function(){var k=this;if(S)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return k.ref=C}})},H}(b.Component);c=j},35666:h=>{var I=function(o){"use strict";var c=Object.prototype,v=c.hasOwnProperty,x,d=typeof Symbol=="function"?Symbol:{},b=d.iterator||"@@iterator",S=d.asyncIterator||"@@asyncIterator",g=d.toStringTag||"@@toStringTag";function L(Ve,Le,ke){return Object.defineProperty(Ve,Le,{value:ke,enumerable:!0,configurable:!0,writable:!0}),Ve[Le]}try{L({},"")}catch(Ve){L=function(Le,ke,tt){return Le[ke]=tt}}function N(Ve,Le,ke,tt){var Qe=Le&&Le.prototype instanceof R?Le:R,Xe=Object.create(Qe.prototype),ut=new le(tt||[]);return Xe._invoke=re(Ve,ke,ut),Xe}o.wrap=N;function B(Ve,Le,ke){try{return{type:"normal",arg:Ve.call(Le,ke)}}catch(tt){return{type:"throw",arg:tt}}}var j="suspendedStart",_="suspendedYield",H="executing",k="completed",X={};function R(){}function C(){}function V(){}var J={};J[b]=function(){return this};var q=Object.getPrototypeOf,Q=q&&q(q(oe([])));Q&&Q!==c&&v.call(Q,b)&&(J=Q);var K=V.prototype=R.prototype=Object.create(J);C.prototype=K.constructor=V,V.constructor=C,C.displayName=L(V,g,"GeneratorFunction");function fe(Ve){["next","throw","return"].forEach(function(Le){L(Ve,Le,function(ke){return this._invoke(Le,ke)})})}o.isGeneratorFunction=function(Ve){var Le=typeof Ve=="function"&&Ve.constructor;return Le?Le===C||(Le.displayName||Le.name)==="GeneratorFunction":!1},o.mark=function(Ve){return Object.setPrototypeOf?Object.setPrototypeOf(Ve,V):(Ve.__proto__=V,L(Ve,g,"GeneratorFunction")),Ve.prototype=Object.create(K),Ve},o.awrap=function(Ve){return{__await:Ve}};function te(Ve,Le){function ke(Xe,ut,pt,yt){var qe=B(Ve[Xe],Ve,ut);if(qe.type==="throw")yt(qe.arg);else{var lt=qe.arg,vt=lt.value;return vt&&typeof vt=="object"&&v.call(vt,"__await")?Le.resolve(vt.__await).then(function(mt){ke("next",mt,pt,yt)},function(mt){ke("throw",mt,pt,yt)}):Le.resolve(vt).then(function(mt){lt.value=mt,pt(lt)},function(mt){return ke("throw",mt,pt,yt)})}}var tt;function Qe(Xe,ut){function pt(){return new Le(function(yt,qe){ke(Xe,ut,yt,qe)})}return tt=tt?tt.then(pt,pt):pt()}this._invoke=Qe}fe(te.prototype),te.prototype[S]=function(){return this},o.AsyncIterator=te,o.async=function(Ve,Le,ke,tt,Qe){Qe===void 0&&(Qe=Promise);var Xe=new te(N(Ve,Le,ke,tt),Qe);return o.isGeneratorFunction(Le)?Xe:Xe.next().then(function(ut){return ut.done?ut.value:Xe.next()})};function re(Ve,Le,ke){var tt=j;return function(Xe,ut){if(tt===H)throw new Error("Generator is already running");if(tt===k){if(Xe==="throw")throw ut;return De()}for(ke.method=Xe,ke.arg=ut;;){var pt=ke.delegate;if(pt){var yt=ye(pt,ke);if(yt){if(yt===X)continue;return yt}}if(ke.method==="next")ke.sent=ke._sent=ke.arg;else if(ke.method==="throw"){if(tt===j)throw tt=k,ke.arg;ke.dispatchException(ke.arg)}else ke.method==="return"&&ke.abrupt("return",ke.arg);tt=H;var qe=B(Ve,Le,ke);if(qe.type==="normal"){if(tt=ke.done?k:_,qe.arg===X)continue;return{value:qe.arg,done:ke.done}}else qe.type==="throw"&&(tt=k,ke.method="throw",ke.arg=qe.arg)}}}function ye(Ve,Le){var ke=Ve.iterator[Le.method];if(ke===x){if(Le.delegate=null,Le.method==="throw"){if(Ve.iterator.return&&(Le.method="return",Le.arg=x,ye(Ve,Le),Le.method==="throw"))return X;Le.method="throw",Le.arg=new TypeError("The iterator does not provide a 'throw' method")}return X}var tt=B(ke,Ve.iterator,Le.arg);if(tt.type==="throw")return Le.method="throw",Le.arg=tt.arg,Le.delegate=null,X;var Qe=tt.arg;if(!Qe)return Le.method="throw",Le.arg=new TypeError("iterator result is not an object"),Le.delegate=null,X;if(Qe.done)Le[Ve.resultName]=Qe.value,Le.next=Ve.nextLoc,Le.method!=="return"&&(Le.method="next",Le.arg=x);else return Qe;return Le.delegate=null,X}fe(K),L(K,g,"Generator"),K[b]=function(){return this},K.toString=function(){return"[object Generator]"};function ve(Ve){var Le={tryLoc:Ve[0]};1 in Ve&&(Le.catchLoc=Ve[1]),2 in Ve&&(Le.finallyLoc=Ve[2],Le.afterLoc=Ve[3]),this.tryEntries.push(Le)}function de(Ve){var Le=Ve.completion||{};Le.type="normal",delete Le.arg,Ve.completion=Le}function le(Ve){this.tryEntries=[{tryLoc:"root"}],Ve.forEach(ve,this),this.reset(!0)}o.keys=function(Ve){var Le=[];for(var ke in Ve)Le.push(ke);return Le.reverse(),function tt(){for(;Le.length;){var Qe=Le.pop();if(Qe in Ve)return tt.value=Qe,tt.done=!1,tt}return tt.done=!0,tt}};function oe(Ve){if(Ve){var Le=Ve[b];if(Le)return Le.call(Ve);if(typeof Ve.next=="function")return Ve;if(!isNaN(Ve.length)){var ke=-1,tt=function Qe(){for(;++ke<Ve.length;)if(v.call(Ve,ke))return Qe.value=Ve[ke],Qe.done=!1,Qe;return Qe.value=x,Qe.done=!0,Qe};return tt.next=tt}}return{next:De}}o.values=oe;function De(){return{value:x,done:!0}}return le.prototype={constructor:le,reset:function(Ve){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(de),!Ve)for(var Le in this)Le.charAt(0)==="t"&&v.call(this,Le)&&!isNaN(+Le.slice(1))&&(this[Le]=x)},stop:function(){this.done=!0;var Ve=this.tryEntries[0],Le=Ve.completion;if(Le.type==="throw")throw Le.arg;return this.rval},dispatchException:function(Ve){if(this.done)throw Ve;var Le=this;function ke(yt,qe){return Xe.type="throw",Xe.arg=Ve,Le.next=yt,qe&&(Le.method="next",Le.arg=x),!!qe}for(var tt=this.tryEntries.length-1;tt>=0;--tt){var Qe=this.tryEntries[tt],Xe=Qe.completion;if(Qe.tryLoc==="root")return ke("end");if(Qe.tryLoc<=this.prev){var ut=v.call(Qe,"catchLoc"),pt=v.call(Qe,"finallyLoc");if(ut&&pt){if(this.prev<Qe.catchLoc)return ke(Qe.catchLoc,!0);if(this.prev<Qe.finallyLoc)return ke(Qe.finallyLoc)}else if(ut){if(this.prev<Qe.catchLoc)return ke(Qe.catchLoc,!0)}else if(pt){if(this.prev<Qe.finallyLoc)return ke(Qe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Ve,Le){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var tt=this.tryEntries[ke];if(tt.tryLoc<=this.prev&&v.call(tt,"finallyLoc")&&this.prev<tt.finallyLoc){var Qe=tt;break}}Qe&&(Ve==="break"||Ve==="continue")&&Qe.tryLoc<=Le&&Le<=Qe.finallyLoc&&(Qe=null);var Xe=Qe?Qe.completion:{};return Xe.type=Ve,Xe.arg=Le,Qe?(this.method="next",this.next=Qe.finallyLoc,X):this.complete(Xe)},complete:function(Ve,Le){if(Ve.type==="throw")throw Ve.arg;return Ve.type==="break"||Ve.type==="continue"?this.next=Ve.arg:Ve.type==="return"?(this.rval=this.arg=Ve.arg,this.method="return",this.next="end"):Ve.type==="normal"&&Le&&(this.next=Le),X},finish:function(Ve){for(var Le=this.tryEntries.length-1;Le>=0;--Le){var ke=this.tryEntries[Le];if(ke.finallyLoc===Ve)return this.complete(ke.completion,ke.afterLoc),de(ke),X}},catch:function(Ve){for(var Le=this.tryEntries.length-1;Le>=0;--Le){var ke=this.tryEntries[Le];if(ke.tryLoc===Ve){var tt=ke.completion;if(tt.type==="throw"){var Qe=tt.arg;de(ke)}return Qe}}throw new Error("illegal catch attempt")},delegateYield:function(Ve,Le,ke){return this.delegate={iterator:oe(Ve),resultName:Le,nextLoc:ke},this.method==="next"&&(this.arg=x),X}},o}(h.exports);try{regeneratorRuntime=I}catch(o){Function("r","regeneratorRuntime = r")(I)}},37478:(h,I,o)=>{"use strict";var c=o(40210),v=o(21924),x=o(70631),d=c("%TypeError%"),b=c("%WeakMap%",!0),S=c("%Map%",!0),g=v("WeakMap.prototype.get",!0),L=v("WeakMap.prototype.set",!0),N=v("WeakMap.prototype.has",!0),B=v("Map.prototype.get",!0),j=v("Map.prototype.set",!0),_=v("Map.prototype.has",!0),H=function(C,V){for(var J=C,q;(q=J.next)!==null;J=q)if(q.key===V)return J.next=q.next,q.next=C.next,C.next=q,q},k=function(C,V){var J=H(C,V);return J&&J.value},X=function(C,V,J){var q=H(C,V);q?q.value=J:C.next={key:V,next:C.next,value:J}},R=function(C,V){return!!H(C,V)};h.exports=function(){var V,J,q,Q={assert:function(K){if(!Q.has(K))throw new d("Side channel does not contain "+x(K))},get:function(K){if(b&&K&&(typeof K=="object"||typeof K=="function")){if(V)return g(V,K)}else if(S){if(J)return B(J,K)}else if(q)return k(q,K)},has:function(K){if(b&&K&&(typeof K=="object"||typeof K=="function")){if(V)return N(V,K)}else if(S){if(J)return _(J,K)}else if(q)return R(q,K);return!1},set:function(K,fe){b&&K&&(typeof K=="object"||typeof K=="function")?(V||(V=new b),L(V,K,fe)):S?(J||(J=new S),j(J,K,fe)):(q||(q={key:{},next:null}),X(q,K,fe))}};return Q}},13837:(h,I,o)=>{var c=o(93379),v=o(17438);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},75019:(h,I,o)=>{var c=o(93379),v=o(58635);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},86081:(h,I,o)=>{var c=o(93379),v=o(45272);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},44254:(h,I,o)=>{var c=o(93379),v=o(40961);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},88996:(h,I,o)=>{"use strict";/*!
507
502
  * The buffer module from node.js, for the browser.
508
503
  *
509
504
  * @author Feross Aboukhadijeh <https://feross.org>
510
505
  * @license MIT
511
- */const c=o(79742),v=o(80645),x=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;I.Buffer=g,I.SlowBuffer=V,I.INSPECT_MAX_BYTES=50;const d=2147483647;I.kMaxLength=d,g.TYPED_ARRAY_SUPPORT=b(),!g.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function b(){try{const H=new Uint8Array(1),C={foo:function(){return 42}};return Object.setPrototypeOf(C,Uint8Array.prototype),Object.setPrototypeOf(H,C),H.foo()===42}catch(H){return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.byteOffset}});function A(H){if(H>d)throw new RangeError('The value "'+H+'" is invalid for option "size"');const C=new Uint8Array(H);return Object.setPrototypeOf(C,g.prototype),C}function g(H,C,P){if(typeof H=="number"){if(typeof C=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return U(H)}return L(H,C,P)}g.poolSize=8192;function L(H,C,P){if(typeof H=="string")return _(H,C);if(ArrayBuffer.isView(H))return k(H);if(H==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof H);if(ke(H,ArrayBuffer)||H&&ke(H.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ke(H,SharedArrayBuffer)||H&&ke(H.buffer,SharedArrayBuffer)))return Q(H,C,P);if(typeof H=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ne=H.valueOf&&H.valueOf();if(ne!=null&&ne!==H)return g.from(ne,C,P);const N=M(H);if(N)return N;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof H[Symbol.toPrimitive]=="function")return g.from(H[Symbol.toPrimitive]("string"),C,P);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof H)}g.from=function(H,C,P){return L(H,C,P)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function D(H){if(typeof H!="number")throw new TypeError('"size" argument must be of type number');if(H<0)throw new RangeError('The value "'+H+'" is invalid for option "size"')}function B(H,C,P){return D(H),H<=0?A(H):C!==void 0?typeof P=="string"?A(H).fill(C,P):A(H).fill(C):A(H)}g.alloc=function(H,C,P){return B(H,C,P)};function U(H){return D(H),A(H<0?0:O(H)|0)}g.allocUnsafe=function(H){return U(H)},g.allocUnsafeSlow=function(H){return U(H)};function _(H,C){if((typeof C!="string"||C==="")&&(C="utf8"),!g.isEncoding(C))throw new TypeError("Unknown encoding: "+C);const P=X(H,C)|0;let ne=A(P);const N=ne.write(H,C);return N!==P&&(ne=ne.slice(0,N)),ne}function z(H){const C=H.length<0?0:O(H.length)|0,P=A(C);for(let ne=0;ne<C;ne+=1)P[ne]=H[ne]&255;return P}function k(H){if(ke(H,Uint8Array)){const C=new Uint8Array(H);return Q(C.buffer,C.byteOffset,C.byteLength)}return z(H)}function Q(H,C,P){if(C<0||H.byteLength<C)throw new RangeError('"offset" is outside of buffer bounds');if(H.byteLength<C+(P||0))throw new RangeError('"length" is outside of buffer bounds');let ne;return C===void 0&&P===void 0?ne=new Uint8Array(H):P===void 0?ne=new Uint8Array(H,C):ne=new Uint8Array(H,C,P),Object.setPrototypeOf(ne,g.prototype),ne}function M(H){if(g.isBuffer(H)){const C=O(H.length)|0,P=A(C);return P.length===0||H.copy(P,0,0,C),P}if(H.length!==void 0)return typeof H.length!="number"||be(H.length)?A(0):z(H);if(H.type==="Buffer"&&Array.isArray(H.data))return z(H.data)}function O(H){if(H>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return H|0}function V(H){return+H!=H&&(H=0),g.alloc(+H)}g.isBuffer=function(C){return C!=null&&C._isBuffer===!0&&C!==g.prototype},g.compare=function(C,P){if(ke(C,Uint8Array)&&(C=g.from(C,C.offset,C.byteLength)),ke(P,Uint8Array)&&(P=g.from(P,P.offset,P.byteLength)),!g.isBuffer(C)||!g.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(C===P)return 0;let ne=C.length,N=P.length;for(let ee=0,fe=Math.min(ne,N);ee<fe;++ee)if(C[ee]!==P[ee]){ne=C[ee],N=P[ee];break}return ne<N?-1:N<ne?1:0},g.isEncoding=function(C){switch(String(C).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(C,P){if(!Array.isArray(C))throw new TypeError('"list" argument must be an Array of Buffers');if(C.length===0)return g.alloc(0);let ne;if(P===void 0)for(P=0,ne=0;ne<C.length;++ne)P+=C[ne].length;const N=g.allocUnsafe(P);let ee=0;for(ne=0;ne<C.length;++ne){let fe=C[ne];if(ke(fe,Uint8Array))ee+fe.length>N.length?(g.isBuffer(fe)||(fe=g.from(fe)),fe.copy(N,ee)):Uint8Array.prototype.set.call(N,fe,ee);else if(g.isBuffer(fe))fe.copy(N,ee);else throw new TypeError('"list" argument must be an Array of Buffers');ee+=fe.length}return N};function X(H,C){if(g.isBuffer(H))return H.length;if(ArrayBuffer.isView(H)||ke(H,ArrayBuffer))return H.byteLength;if(typeof H!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof H);const P=H.length,ne=arguments.length>2&&arguments[2]===!0;if(!ne&&P===0)return 0;let N=!1;for(;;)switch(C){case"ascii":case"latin1":case"binary":return P;case"utf8":case"utf-8":return Mt(H).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P*2;case"hex":return P>>>1;case"base64":return Y(H).length;default:if(N)return ne?-1:Mt(H).length;C=(""+C).toLowerCase(),N=!0}}g.byteLength=X;function W(H,C,P){let ne=!1;if((C===void 0||C<0)&&(C=0),C>this.length||((P===void 0||P>this.length)&&(P=this.length),P<=0)||(P>>>=0,C>>>=0,P<=C))return"";for(H||(H="utf8");;)switch(H){case"hex":return rt(this,C,P);case"utf8":case"utf-8":return ie(this,C,P);case"ascii":return Ne(this,C,P);case"latin1":case"binary":return Re(this,C,P);case"base64":return ue(this,C,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,C,P);default:if(ne)throw new TypeError("Unknown encoding: "+H);H=(H+"").toLowerCase(),ne=!0}}g.prototype._isBuffer=!0;function K(H,C,P){const ne=H[C];H[C]=H[P],H[P]=ne}g.prototype.swap16=function(){const C=this.length;if(C%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let P=0;P<C;P+=2)K(this,P,P+1);return this},g.prototype.swap32=function(){const C=this.length;if(C%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let P=0;P<C;P+=4)K(this,P,P+3),K(this,P+1,P+2);return this},g.prototype.swap64=function(){const C=this.length;if(C%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let P=0;P<C;P+=8)K(this,P,P+7),K(this,P+1,P+6),K(this,P+2,P+5),K(this,P+3,P+4);return this},g.prototype.toString=function(){const C=this.length;return C===0?"":arguments.length===0?ie(this,0,C):W.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(C){if(!g.isBuffer(C))throw new TypeError("Argument must be a Buffer");return this===C?!0:g.compare(this,C)===0},g.prototype.inspect=function(){let C="";const P=I.INSPECT_MAX_BYTES;return C=this.toString("hex",0,P).replace(/(.{2})/g,"$1 ").trim(),this.length>P&&(C+=" ... "),"<Buffer "+C+">"},x&&(g.prototype[x]=g.prototype.inspect),g.prototype.compare=function(C,P,ne,N,ee){if(ke(C,Uint8Array)&&(C=g.from(C,C.offset,C.byteLength)),!g.isBuffer(C))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof C);if(P===void 0&&(P=0),ne===void 0&&(ne=C?C.length:0),N===void 0&&(N=0),ee===void 0&&(ee=this.length),P<0||ne>C.length||N<0||ee>this.length)throw new RangeError("out of range index");if(N>=ee&&P>=ne)return 0;if(N>=ee)return-1;if(P>=ne)return 1;if(P>>>=0,ne>>>=0,N>>>=0,ee>>>=0,this===C)return 0;let fe=ee-N,Oe=ne-P;const Pe=Math.min(fe,Oe),Te=this.slice(N,ee),ze=C.slice(P,ne);for(let He=0;He<Pe;++He)if(Te[He]!==ze[He]){fe=Te[He],Oe=ze[He];break}return fe<Oe?-1:Oe<fe?1:0};function Z(H,C,P,ne,N){if(H.length===0)return-1;if(typeof P=="string"?(ne=P,P=0):P>2147483647?P=2147483647:P<-2147483648&&(P=-2147483648),P=+P,be(P)&&(P=N?0:H.length-1),P<0&&(P=H.length+P),P>=H.length){if(N)return-1;P=H.length-1}else if(P<0)if(N)P=0;else return-1;if(typeof C=="string"&&(C=g.from(C,ne)),g.isBuffer(C))return C.length===0?-1:ce(H,C,P,ne,N);if(typeof C=="number")return C=C&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(H,C,P):Uint8Array.prototype.lastIndexOf.call(H,C,P):ce(H,[C],P,ne,N);throw new TypeError("val must be string, number or Buffer")}function ce(H,C,P,ne,N){let ee=1,fe=H.length,Oe=C.length;if(ne!==void 0&&(ne=String(ne).toLowerCase(),ne==="ucs2"||ne==="ucs-2"||ne==="utf16le"||ne==="utf-16le")){if(H.length<2||C.length<2)return-1;ee=2,fe/=2,Oe/=2,P/=2}function Pe(ze,He){return ee===1?ze[He]:ze.readUInt16BE(He*ee)}let Te;if(N){let ze=-1;for(Te=P;Te<fe;Te++)if(Pe(H,Te)===Pe(C,ze===-1?0:Te-ze)){if(ze===-1&&(ze=Te),Te-ze+1===Oe)return ze*ee}else ze!==-1&&(Te-=Te-ze),ze=-1}else for(P+Oe>fe&&(P=fe-Oe),Te=P;Te>=0;Te--){let ze=!0;for(let He=0;He<Oe;He++)if(Pe(H,Te+He)!==Pe(C,He)){ze=!1;break}if(ze)return Te}return-1}g.prototype.includes=function(C,P,ne){return this.indexOf(C,P,ne)!==-1},g.prototype.indexOf=function(C,P,ne){return Z(this,C,P,ne,!0)},g.prototype.lastIndexOf=function(C,P,ne){return Z(this,C,P,ne,!1)};function te(H,C,P,ne){P=Number(P)||0;const N=H.length-P;ne?(ne=Number(ne),ne>N&&(ne=N)):ne=N;const ee=C.length;ne>ee/2&&(ne=ee/2);let fe;for(fe=0;fe<ne;++fe){const Oe=parseInt(C.substr(fe*2,2),16);if(be(Oe))return fe;H[P+fe]=Oe}return fe}function ae(H,C,P,ne){return we(Mt(C,H.length-P),H,P,ne)}function me(H,C,P,ne){return we(de(C),H,P,ne)}function ge(H,C,P,ne){return we(Y(C),H,P,ne)}function he(H,C,P,ne){return we($(C,H.length-P),H,P,ne)}g.prototype.write=function(C,P,ne,N){if(P===void 0)N="utf8",ne=this.length,P=0;else if(ne===void 0&&typeof P=="string")N=P,ne=this.length,P=0;else if(isFinite(P))P=P>>>0,isFinite(ne)?(ne=ne>>>0,N===void 0&&(N="utf8")):(N=ne,ne=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ee=this.length-P;if((ne===void 0||ne>ee)&&(ne=ee),C.length>0&&(ne<0||P<0)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let fe=!1;for(;;)switch(N){case"hex":return te(this,C,P,ne);case"utf8":case"utf-8":return ae(this,C,P,ne);case"ascii":case"latin1":case"binary":return me(this,C,P,ne);case"base64":return ge(this,C,P,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,C,P,ne);default:if(fe)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),fe=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(H,C,P){return C===0&&P===H.length?c.fromByteArray(H):c.fromByteArray(H.slice(C,P))}function ie(H,C,P){P=Math.min(H.length,P);const ne=[];let N=C;for(;N<P;){const ee=H[N];let fe=null,Oe=ee>239?4:ee>223?3:ee>191?2:1;if(N+Oe<=P){let Pe,Te,ze,He;switch(Oe){case 1:ee<128&&(fe=ee);break;case 2:Pe=H[N+1],(Pe&192)==128&&(He=(ee&31)<<6|Pe&63,He>127&&(fe=He));break;case 3:Pe=H[N+1],Te=H[N+2],(Pe&192)==128&&(Te&192)==128&&(He=(ee&15)<<12|(Pe&63)<<6|Te&63,He>2047&&(He<55296||He>57343)&&(fe=He));break;case 4:Pe=H[N+1],Te=H[N+2],ze=H[N+3],(Pe&192)==128&&(Te&192)==128&&(ze&192)==128&&(He=(ee&15)<<18|(Pe&63)<<12|(Te&63)<<6|ze&63,He>65535&&He<1114112&&(fe=He))}}fe===null?(fe=65533,Oe=1):fe>65535&&(fe-=65536,ne.push(fe>>>10&1023|55296),fe=56320|fe&1023),ne.push(fe),N+=Oe}return je(ne)}const Me=4096;function je(H){const C=H.length;if(C<=Me)return String.fromCharCode.apply(String,H);let P="",ne=0;for(;ne<C;)P+=String.fromCharCode.apply(String,H.slice(ne,ne+=Me));return P}function Ne(H,C,P){let ne="";P=Math.min(H.length,P);for(let N=C;N<P;++N)ne+=String.fromCharCode(H[N]&127);return ne}function Re(H,C,P){let ne="";P=Math.min(H.length,P);for(let N=C;N<P;++N)ne+=String.fromCharCode(H[N]);return ne}function rt(H,C,P){const ne=H.length;(!C||C<0)&&(C=0),(!P||P<0||P>ne)&&(P=ne);let N="";for(let ee=C;ee<P;++ee)N+=Ae[H[ee]];return N}function Qe(H,C,P){const ne=H.slice(C,P);let N="";for(let ee=0;ee<ne.length-1;ee+=2)N+=String.fromCharCode(ne[ee]+ne[ee+1]*256);return N}g.prototype.slice=function(C,P){const ne=this.length;C=~~C,P=P===void 0?ne:~~P,C<0?(C+=ne,C<0&&(C=0)):C>ne&&(C=ne),P<0?(P+=ne,P<0&&(P=0)):P>ne&&(P=ne),P<C&&(P=C);const N=this.subarray(C,P);return Object.setPrototypeOf(N,g.prototype),N};function Je(H,C,P){if(H%1!=0||H<0)throw new RangeError("offset is not uint");if(H+C>P)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(C,P,ne){C=C>>>0,P=P>>>0,ne||Je(C,P,this.length);let N=this[C],ee=1,fe=0;for(;++fe<P&&(ee*=256);)N+=this[C+fe]*ee;return N},g.prototype.readUintBE=g.prototype.readUIntBE=function(C,P,ne){C=C>>>0,P=P>>>0,ne||Je(C,P,this.length);let N=this[C+--P],ee=1;for(;P>0&&(ee*=256);)N+=this[C+--P]*ee;return N},g.prototype.readUint8=g.prototype.readUInt8=function(C,P){return C=C>>>0,P||Je(C,1,this.length),this[C]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(C,P){return C=C>>>0,P||Je(C,2,this.length),this[C]|this[C+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(C,P){return C=C>>>0,P||Je(C,2,this.length),this[C]<<8|this[C+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(C,P){return C=C>>>0,P||Je(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+this[C+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(C,P){return C=C>>>0,P||Je(C,4,this.length),this[C]*16777216+(this[C+1]<<16|this[C+2]<<8|this[C+3])},g.prototype.readBigUInt64LE=T(function(C){C=C>>>0,Wt(C,"offset");const P=this[C],ne=this[C+7];(P===void 0||ne===void 0)&&Ut(C,this.length-8);const N=P+this[++C]*mr(2,8)+this[++C]*mr(2,16)+this[++C]*mr(2,24),ee=this[++C]+this[++C]*mr(2,8)+this[++C]*mr(2,16)+ne*mr(2,24);return BigInt(N)+(BigInt(ee)<<BigInt(32))}),g.prototype.readBigUInt64BE=T(function(C){C=C>>>0,Wt(C,"offset");const P=this[C],ne=this[C+7];(P===void 0||ne===void 0)&&Ut(C,this.length-8);const N=P*mr(2,24)+this[++C]*mr(2,16)+this[++C]*mr(2,8)+this[++C],ee=this[++C]*mr(2,24)+this[++C]*mr(2,16)+this[++C]*mr(2,8)+ne;return(BigInt(N)<<BigInt(32))+BigInt(ee)}),g.prototype.readIntLE=function(C,P,ne){C=C>>>0,P=P>>>0,ne||Je(C,P,this.length);let N=this[C],ee=1,fe=0;for(;++fe<P&&(ee*=256);)N+=this[C+fe]*ee;return ee*=128,N>=ee&&(N-=Math.pow(2,8*P)),N},g.prototype.readIntBE=function(C,P,ne){C=C>>>0,P=P>>>0,ne||Je(C,P,this.length);let N=P,ee=1,fe=this[C+--N];for(;N>0&&(ee*=256);)fe+=this[C+--N]*ee;return ee*=128,fe>=ee&&(fe-=Math.pow(2,8*P)),fe},g.prototype.readInt8=function(C,P){return C=C>>>0,P||Je(C,1,this.length),this[C]&128?(255-this[C]+1)*-1:this[C]},g.prototype.readInt16LE=function(C,P){C=C>>>0,P||Je(C,2,this.length);const ne=this[C]|this[C+1]<<8;return ne&32768?ne|4294901760:ne},g.prototype.readInt16BE=function(C,P){C=C>>>0,P||Je(C,2,this.length);const ne=this[C+1]|this[C]<<8;return ne&32768?ne|4294901760:ne},g.prototype.readInt32LE=function(C,P){return C=C>>>0,P||Je(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},g.prototype.readInt32BE=function(C,P){return C=C>>>0,P||Je(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},g.prototype.readBigInt64LE=T(function(C){C=C>>>0,Wt(C,"offset");const P=this[C],ne=this[C+7];(P===void 0||ne===void 0)&&Ut(C,this.length-8);const N=this[C+4]+this[C+5]*mr(2,8)+this[C+6]*mr(2,16)+(ne<<24);return(BigInt(N)<<BigInt(32))+BigInt(P+this[++C]*mr(2,8)+this[++C]*mr(2,16)+this[++C]*mr(2,24))}),g.prototype.readBigInt64BE=T(function(C){C=C>>>0,Wt(C,"offset");const P=this[C],ne=this[C+7];(P===void 0||ne===void 0)&&Ut(C,this.length-8);const N=(P<<24)+this[++C]*mr(2,16)+this[++C]*mr(2,8)+this[++C];return(BigInt(N)<<BigInt(32))+BigInt(this[++C]*mr(2,24)+this[++C]*mr(2,16)+this[++C]*mr(2,8)+ne)}),g.prototype.readFloatLE=function(C,P){return C=C>>>0,P||Je(C,4,this.length),v.read(this,C,!0,23,4)},g.prototype.readFloatBE=function(C,P){return C=C>>>0,P||Je(C,4,this.length),v.read(this,C,!1,23,4)},g.prototype.readDoubleLE=function(C,P){return C=C>>>0,P||Je(C,8,this.length),v.read(this,C,!0,52,8)},g.prototype.readDoubleBE=function(C,P){return C=C>>>0,P||Je(C,8,this.length),v.read(this,C,!1,52,8)};function ut(H,C,P,ne,N,ee){if(!g.isBuffer(H))throw new TypeError('"buffer" argument must be a Buffer instance');if(C>N||C<ee)throw new RangeError('"value" argument is out of bounds');if(P+ne>H.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(C,P,ne,N){if(C=+C,P=P>>>0,ne=ne>>>0,!N){const Oe=Math.pow(2,8*ne)-1;ut(this,C,P,ne,Oe,0)}let ee=1,fe=0;for(this[P]=C&255;++fe<ne&&(ee*=256);)this[P+fe]=C/ee&255;return P+ne},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(C,P,ne,N){if(C=+C,P=P>>>0,ne=ne>>>0,!N){const Oe=Math.pow(2,8*ne)-1;ut(this,C,P,ne,Oe,0)}let ee=ne-1,fe=1;for(this[P+ee]=C&255;--ee>=0&&(fe*=256);)this[P+ee]=C/fe&255;return P+ne},g.prototype.writeUint8=g.prototype.writeUInt8=function(C,P,ne){return C=+C,P=P>>>0,ne||ut(this,C,P,1,255,0),this[P]=C&255,P+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(C,P,ne){return C=+C,P=P>>>0,ne||ut(this,C,P,2,65535,0),this[P]=C&255,this[P+1]=C>>>8,P+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(C,P,ne){return C=+C,P=P>>>0,ne||ut(this,C,P,2,65535,0),this[P]=C>>>8,this[P+1]=C&255,P+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(C,P,ne){return C=+C,P=P>>>0,ne||ut(this,C,P,4,4294967295,0),this[P+3]=C>>>24,this[P+2]=C>>>16,this[P+1]=C>>>8,this[P]=C&255,P+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(C,P,ne){return C=+C,P=P>>>0,ne||ut(this,C,P,4,4294967295,0),this[P]=C>>>24,this[P+1]=C>>>16,this[P+2]=C>>>8,this[P+3]=C&255,P+4};function pt(H,C,P,ne,N){St(C,ne,N,H,P,7);let ee=Number(C&BigInt(4294967295));H[P++]=ee,ee=ee>>8,H[P++]=ee,ee=ee>>8,H[P++]=ee,ee=ee>>8,H[P++]=ee;let fe=Number(C>>BigInt(32)&BigInt(4294967295));return H[P++]=fe,fe=fe>>8,H[P++]=fe,fe=fe>>8,H[P++]=fe,fe=fe>>8,H[P++]=fe,P}function gt(H,C,P,ne,N){St(C,ne,N,H,P,7);let ee=Number(C&BigInt(4294967295));H[P+7]=ee,ee=ee>>8,H[P+6]=ee,ee=ee>>8,H[P+5]=ee,ee=ee>>8,H[P+4]=ee;let fe=Number(C>>BigInt(32)&BigInt(4294967295));return H[P+3]=fe,fe=fe>>8,H[P+2]=fe,fe=fe>>8,H[P+1]=fe,fe=fe>>8,H[P]=fe,P+8}g.prototype.writeBigUInt64LE=T(function(C,P=0){return pt(this,C,P,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=T(function(C,P=0){return gt(this,C,P,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(C,P,ne,N){if(C=+C,P=P>>>0,!N){const Pe=Math.pow(2,8*ne-1);ut(this,C,P,ne,Pe-1,-Pe)}let ee=0,fe=1,Oe=0;for(this[P]=C&255;++ee<ne&&(fe*=256);)C<0&&Oe===0&&this[P+ee-1]!==0&&(Oe=1),this[P+ee]=(C/fe>>0)-Oe&255;return P+ne},g.prototype.writeIntBE=function(C,P,ne,N){if(C=+C,P=P>>>0,!N){const Pe=Math.pow(2,8*ne-1);ut(this,C,P,ne,Pe-1,-Pe)}let ee=ne-1,fe=1,Oe=0;for(this[P+ee]=C&255;--ee>=0&&(fe*=256);)C<0&&Oe===0&&this[P+ee+1]!==0&&(Oe=1),this[P+ee]=(C/fe>>0)-Oe&255;return P+ne},g.prototype.writeInt8=function(C,P,ne){return C=+C,P=P>>>0,ne||ut(this,C,P,1,127,-128),C<0&&(C=255+C+1),this[P]=C&255,P+1},g.prototype.writeInt16LE=function(C,P,ne){return C=+C,P=P>>>0,ne||ut(this,C,P,2,32767,-32768),this[P]=C&255,this[P+1]=C>>>8,P+2},g.prototype.writeInt16BE=function(C,P,ne){return C=+C,P=P>>>0,ne||ut(this,C,P,2,32767,-32768),this[P]=C>>>8,this[P+1]=C&255,P+2},g.prototype.writeInt32LE=function(C,P,ne){return C=+C,P=P>>>0,ne||ut(this,C,P,4,2147483647,-2147483648),this[P]=C&255,this[P+1]=C>>>8,this[P+2]=C>>>16,this[P+3]=C>>>24,P+4},g.prototype.writeInt32BE=function(C,P,ne){return C=+C,P=P>>>0,ne||ut(this,C,P,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),this[P]=C>>>24,this[P+1]=C>>>16,this[P+2]=C>>>8,this[P+3]=C&255,P+4},g.prototype.writeBigInt64LE=T(function(C,P=0){return pt(this,C,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=T(function(C,P=0){return gt(this,C,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function _e(H,C,P,ne,N,ee){if(P+ne>H.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("Index out of range")}function lt(H,C,P,ne,N){return C=+C,P=P>>>0,N||_e(H,C,P,4,34028234663852886e22,-34028234663852886e22),v.write(H,C,P,ne,23,4),P+4}g.prototype.writeFloatLE=function(C,P,ne){return lt(this,C,P,!0,ne)},g.prototype.writeFloatBE=function(C,P,ne){return lt(this,C,P,!1,ne)};function ht(H,C,P,ne,N){return C=+C,P=P>>>0,N||_e(H,C,P,8,17976931348623157e292,-17976931348623157e292),v.write(H,C,P,ne,52,8),P+8}g.prototype.writeDoubleLE=function(C,P,ne){return ht(this,C,P,!0,ne)},g.prototype.writeDoubleBE=function(C,P,ne){return ht(this,C,P,!1,ne)},g.prototype.copy=function(C,P,ne,N){if(!g.isBuffer(C))throw new TypeError("argument should be a Buffer");if(ne||(ne=0),!N&&N!==0&&(N=this.length),P>=C.length&&(P=C.length),P||(P=0),N>0&&N<ne&&(N=ne),N===ne||C.length===0||this.length===0)return 0;if(P<0)throw new RangeError("targetStart out of bounds");if(ne<0||ne>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),C.length-P<N-ne&&(N=C.length-P+ne);const ee=N-ne;return this===C&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(P,ne,N):Uint8Array.prototype.set.call(C,this.subarray(ne,N),P),ee},g.prototype.fill=function(C,P,ne,N){if(typeof C=="string"){if(typeof P=="string"?(N=P,P=0,ne=this.length):typeof ne=="string"&&(N=ne,ne=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!g.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(C.length===1){const fe=C.charCodeAt(0);(N==="utf8"&&fe<128||N==="latin1")&&(C=fe)}}else typeof C=="number"?C=C&255:typeof C=="boolean"&&(C=Number(C));if(P<0||this.length<P||this.length<ne)throw new RangeError("Out of range index");if(ne<=P)return this;P=P>>>0,ne=ne===void 0?this.length:ne>>>0,C||(C=0);let ee;if(typeof C=="number")for(ee=P;ee<ne;++ee)this[ee]=C;else{const fe=g.isBuffer(C)?C:g.from(C,N),Oe=fe.length;if(Oe===0)throw new TypeError('The value "'+C+'" is invalid for argument "value"');for(ee=0;ee<ne-P;++ee)this[ee+P]=fe[ee%Oe]}return this};const yt={};function dt(H,C,P){yt[H]=class extends P{constructor(){super();Object.defineProperty(this,"message",{value:C.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${H}]`,this.stack,delete this.name}get code(){return H}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${H}]: ${this.message}`}}}dt("ERR_BUFFER_OUT_OF_BOUNDS",function(H){return H?`${H} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),dt("ERR_INVALID_ARG_TYPE",function(H,C){return`The "${H}" argument must be of type number. Received type ${typeof C}`},TypeError),dt("ERR_OUT_OF_RANGE",function(H,C,P){let ne=`The value of "${H}" is out of range.`,N=P;return Number.isInteger(P)&&Math.abs(P)>mr(2,32)?N=It(String(P)):typeof P=="bigint"&&(N=String(P),(P>mr(BigInt(2),BigInt(32))||P<-mr(BigInt(2),BigInt(32)))&&(N=It(N)),N+="n"),ne+=` It must be ${C}. Received ${N}`,ne},RangeError);function It(H){let C="",P=H.length;const ne=H[0]==="-"?1:0;for(;P>=ne+4;P-=3)C=`_${H.slice(P-3,P)}${C}`;return`${H.slice(0,P)}${C}`}function Ft(H,C,P){Wt(C,"offset"),(H[C]===void 0||H[C+P]===void 0)&&Ut(C,H.length-(P+1))}function St(H,C,P,ne,N,ee){if(H>P||H<C){const fe=typeof C=="bigint"?"n":"";let Oe;throw ee>3?C===0||C===BigInt(0)?Oe=`>= 0${fe} and < 2${fe} ** ${(ee+1)*8}${fe}`:Oe=`>= -(2${fe} ** ${(ee+1)*8-1}${fe}) and < 2 ** ${(ee+1)*8-1}${fe}`:Oe=`>= ${C}${fe} and <= ${P}${fe}`,new yt.ERR_OUT_OF_RANGE("value",Oe,H)}Ft(ne,N,ee)}function Wt(H,C){if(typeof H!="number")throw new yt.ERR_INVALID_ARG_TYPE(C,"number",H)}function Ut(H,C,P){throw Math.floor(H)!==H?(Wt(H,P),new yt.ERR_OUT_OF_RANGE(P||"offset","an integer",H)):C<0?new yt.ERR_BUFFER_OUT_OF_BOUNDS:new yt.ERR_OUT_OF_RANGE(P||"offset",`>= ${P?1:0} and <= ${C}`,H)}const Gt=/[^+/0-9A-Za-z-_]/g;function wt(H){if(H=H.split("=")[0],H=H.trim().replace(Gt,""),H.length<2)return"";for(;H.length%4!=0;)H=H+"=";return H}function Mt(H,C){C=C||1/0;let P;const ne=H.length;let N=null;const ee=[];for(let fe=0;fe<ne;++fe){if(P=H.charCodeAt(fe),P>55295&&P<57344){if(!N){if(P>56319){(C-=3)>-1&&ee.push(239,191,189);continue}else if(fe+1===ne){(C-=3)>-1&&ee.push(239,191,189);continue}N=P;continue}if(P<56320){(C-=3)>-1&&ee.push(239,191,189),N=P;continue}P=(N-55296<<10|P-56320)+65536}else N&&(C-=3)>-1&&ee.push(239,191,189);if(N=null,P<128){if((C-=1)<0)break;ee.push(P)}else if(P<2048){if((C-=2)<0)break;ee.push(P>>6|192,P&63|128)}else if(P<65536){if((C-=3)<0)break;ee.push(P>>12|224,P>>6&63|128,P&63|128)}else if(P<1114112){if((C-=4)<0)break;ee.push(P>>18|240,P>>12&63|128,P>>6&63|128,P&63|128)}else throw new Error("Invalid code point")}return ee}function de(H){const C=[];for(let P=0;P<H.length;++P)C.push(H.charCodeAt(P)&255);return C}function $(H,C){let P,ne,N;const ee=[];for(let fe=0;fe<H.length&&!((C-=2)<0);++fe)P=H.charCodeAt(fe),ne=P>>8,N=P%256,ee.push(N),ee.push(ne);return ee}function Y(H){return c.toByteArray(wt(H))}function we(H,C,P,ne){let N;for(N=0;N<ne&&!(N+P>=C.length||N>=H.length);++N)C[N+P]=H[N];return N}function ke(H,C){return H instanceof C||H!=null&&H.constructor!=null&&H.constructor.name!=null&&H.constructor.name===C.name}function be(H){return H!==H}const Ae=function(){const H="0123456789abcdef",C=new Array(256);for(let P=0;P<16;++P){const ne=P*16;for(let N=0;N<16;++N)C[ne+N]=H[P]+H[N]}return C}();function T(H){return typeof BigInt=="undefined"?Ie:H}function Ie(){throw new Error("BigInt not supported")}},24269:h=>{"use strict";var I=String.prototype.replace,o=/%20/g,c={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:c.RFC3986,formatters:{RFC1738:function(v){return I.call(v,o,"+")},RFC3986:function(v){return String(v)}},RFC1738:c.RFC1738,RFC3986:c.RFC3986}},92495:(h,I,o)=>{"use strict";var c=o(57347),v=o(73777),x=o(24269);h.exports={formats:x,parse:v,stringify:c}},73777:(h,I,o)=>{"use strict";var c=o(58760),v=Object.prototype.hasOwnProperty,x=Array.isArray,d={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:c.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},b=function(z){return z.replace(/&#(\d+);/g,function(k,Q){return String.fromCharCode(parseInt(Q,10))})},A=function(z,k){return z&&typeof z=="string"&&k.comma&&z.indexOf(",")>-1?z.split(","):z},g="utf8=%26%2310003%3B",L="utf8=%E2%9C%93",D=function(k,Q){var M={},O=Q.ignoreQueryPrefix?k.replace(/^\?/,""):k,V=Q.parameterLimit===1/0?void 0:Q.parameterLimit,X=O.split(Q.delimiter,V),W=-1,K,Z=Q.charset;if(Q.charsetSentinel)for(K=0;K<X.length;++K)X[K].indexOf("utf8=")===0&&(X[K]===L?Z="utf-8":X[K]===g&&(Z="iso-8859-1"),W=K,K=X.length);for(K=0;K<X.length;++K)if(K!==W){var ce=X[K],te=ce.indexOf("]="),ae=te===-1?ce.indexOf("="):te+1,me,ge;ae===-1?(me=Q.decoder(ce,d.decoder,Z,"key"),ge=Q.strictNullHandling?null:""):(me=Q.decoder(ce.slice(0,ae),d.decoder,Z,"key"),ge=c.maybeMap(A(ce.slice(ae+1),Q),function(he){return Q.decoder(he,d.decoder,Z,"value")})),ge&&Q.interpretNumericEntities&&Z==="iso-8859-1"&&(ge=b(ge)),ce.indexOf("[]=")>-1&&(ge=x(ge)?[ge]:ge),v.call(M,me)?M[me]=c.combine(M[me],ge):M[me]=ge}return M},B=function(z,k,Q,M){for(var O=M?k:A(k,Q),V=z.length-1;V>=0;--V){var X,W=z[V];if(W==="[]"&&Q.parseArrays)X=[].concat(O);else{X=Q.plainObjects?Object.create(null):{};var K=W.charAt(0)==="["&&W.charAt(W.length-1)==="]"?W.slice(1,-1):W,Z=parseInt(K,10);!Q.parseArrays&&K===""?X={0:O}:!isNaN(Z)&&W!==K&&String(Z)===K&&Z>=0&&Q.parseArrays&&Z<=Q.arrayLimit?(X=[],X[Z]=O):X[K]=O}O=X}return O},U=function(k,Q,M,O){if(!!k){var V=M.allowDots?k.replace(/\.([^.[]+)/g,"[$1]"):k,X=/(\[[^[\]]*])/,W=/(\[[^[\]]*])/g,K=M.depth>0&&X.exec(V),Z=K?V.slice(0,K.index):V,ce=[];if(Z){if(!M.plainObjects&&v.call(Object.prototype,Z)&&!M.allowPrototypes)return;ce.push(Z)}for(var te=0;M.depth>0&&(K=W.exec(V))!==null&&te<M.depth;){if(te+=1,!M.plainObjects&&v.call(Object.prototype,K[1].slice(1,-1))&&!M.allowPrototypes)return;ce.push(K[1])}return K&&ce.push("["+V.slice(K.index)+"]"),B(ce,Q,M,O)}},_=function(k){if(!k)return d;if(k.decoder!==null&&k.decoder!==void 0&&typeof k.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof k.charset!="undefined"&&k.charset!=="utf-8"&&k.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var Q=typeof k.charset=="undefined"?d.charset:k.charset;return{allowDots:typeof k.allowDots=="undefined"?d.allowDots:!!k.allowDots,allowPrototypes:typeof k.allowPrototypes=="boolean"?k.allowPrototypes:d.allowPrototypes,allowSparse:typeof k.allowSparse=="boolean"?k.allowSparse:d.allowSparse,arrayLimit:typeof k.arrayLimit=="number"?k.arrayLimit:d.arrayLimit,charset:Q,charsetSentinel:typeof k.charsetSentinel=="boolean"?k.charsetSentinel:d.charsetSentinel,comma:typeof k.comma=="boolean"?k.comma:d.comma,decoder:typeof k.decoder=="function"?k.decoder:d.decoder,delimiter:typeof k.delimiter=="string"||c.isRegExp(k.delimiter)?k.delimiter:d.delimiter,depth:typeof k.depth=="number"||k.depth===!1?+k.depth:d.depth,ignoreQueryPrefix:k.ignoreQueryPrefix===!0,interpretNumericEntities:typeof k.interpretNumericEntities=="boolean"?k.interpretNumericEntities:d.interpretNumericEntities,parameterLimit:typeof k.parameterLimit=="number"?k.parameterLimit:d.parameterLimit,parseArrays:k.parseArrays!==!1,plainObjects:typeof k.plainObjects=="boolean"?k.plainObjects:d.plainObjects,strictNullHandling:typeof k.strictNullHandling=="boolean"?k.strictNullHandling:d.strictNullHandling}};h.exports=function(z,k){var Q=_(k);if(z===""||z===null||typeof z=="undefined")return Q.plainObjects?Object.create(null):{};for(var M=typeof z=="string"?D(z,Q):z,O=Q.plainObjects?Object.create(null):{},V=Object.keys(M),X=0;X<V.length;++X){var W=V[X],K=U(W,M[W],Q,typeof z=="string");O=c.merge(O,K,Q)}return Q.allowSparse===!0?O:c.compact(O)}},57347:(h,I,o)=>{"use strict";var c=o(37478),v=o(58760),x=o(24269),d=Object.prototype.hasOwnProperty,b={brackets:function(M){return M+"[]"},comma:"comma",indices:function(M,O){return M+"["+O+"]"},repeat:function(M){return M}},A=Array.isArray,g=Array.prototype.push,L=function(Q,M){g.apply(Q,A(M)?M:[M])},D=Date.prototype.toISOString,B=x.default,U={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:v.encode,encodeValuesOnly:!1,format:B,formatter:x.formatters[B],indices:!1,serializeDate:function(M){return D.call(M)},skipNulls:!1,strictNullHandling:!1},_=function(M){return typeof M=="string"||typeof M=="number"||typeof M=="boolean"||typeof M=="symbol"||typeof M=="bigint"},z=function Q(M,O,V,X,W,K,Z,ce,te,ae,me,ge,he,ue,ie){var Me=M;if(ie.has(M))throw new RangeError("Cyclic object value");if(typeof Z=="function"?Me=Z(O,Me):Me instanceof Date?Me=ae(Me):V==="comma"&&A(Me)&&(Me=v.maybeMap(Me,function(_e){return _e instanceof Date?ae(_e):_e})),Me===null){if(X)return K&&!he?K(O,U.encoder,ue,"key",me):O;Me=""}if(_(Me)||v.isBuffer(Me)){if(K){var je=he?O:K(O,U.encoder,ue,"key",me);return[ge(je)+"="+ge(K(Me,U.encoder,ue,"value",me))]}return[ge(O)+"="+ge(String(Me))]}var Ne=[];if(typeof Me=="undefined")return Ne;var Re;if(V==="comma"&&A(Me))Re=[{value:Me.length>0?Me.join(",")||null:void 0}];else if(A(Z))Re=Z;else{var rt=Object.keys(Me);Re=ce?rt.sort(ce):rt}for(var Qe=0;Qe<Re.length;++Qe){var Je=Re[Qe],ut=typeof Je=="object"&&Je.value!==void 0?Je.value:Me[Je];if(!(W&&ut===null)){var pt=A(Me)?typeof V=="function"?V(O,Je):O:O+(te?"."+Je:"["+Je+"]");ie.set(M,!0);var gt=c();L(Ne,Q(ut,pt,V,X,W,K,Z,ce,te,ae,me,ge,he,ue,gt))}}return Ne},k=function(M){if(!M)return U;if(M.encoder!==null&&M.encoder!==void 0&&typeof M.encoder!="function")throw new TypeError("Encoder has to be a function.");var O=M.charset||U.charset;if(typeof M.charset!="undefined"&&M.charset!=="utf-8"&&M.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var V=x.default;if(typeof M.format!="undefined"){if(!d.call(x.formatters,M.format))throw new TypeError("Unknown format option provided.");V=M.format}var X=x.formatters[V],W=U.filter;return(typeof M.filter=="function"||A(M.filter))&&(W=M.filter),{addQueryPrefix:typeof M.addQueryPrefix=="boolean"?M.addQueryPrefix:U.addQueryPrefix,allowDots:typeof M.allowDots=="undefined"?U.allowDots:!!M.allowDots,charset:O,charsetSentinel:typeof M.charsetSentinel=="boolean"?M.charsetSentinel:U.charsetSentinel,delimiter:typeof M.delimiter=="undefined"?U.delimiter:M.delimiter,encode:typeof M.encode=="boolean"?M.encode:U.encode,encoder:typeof M.encoder=="function"?M.encoder:U.encoder,encodeValuesOnly:typeof M.encodeValuesOnly=="boolean"?M.encodeValuesOnly:U.encodeValuesOnly,filter:W,format:V,formatter:X,serializeDate:typeof M.serializeDate=="function"?M.serializeDate:U.serializeDate,skipNulls:typeof M.skipNulls=="boolean"?M.skipNulls:U.skipNulls,sort:typeof M.sort=="function"?M.sort:null,strictNullHandling:typeof M.strictNullHandling=="boolean"?M.strictNullHandling:U.strictNullHandling}};h.exports=function(Q,M){var O=Q,V=k(M),X,W;typeof V.filter=="function"?(W=V.filter,O=W("",O)):A(V.filter)&&(W=V.filter,X=W);var K=[];if(typeof O!="object"||O===null)return"";var Z;M&&M.arrayFormat in b?Z=M.arrayFormat:M&&"indices"in M?Z=M.indices?"indices":"repeat":Z="indices";var ce=b[Z];X||(X=Object.keys(O)),V.sort&&X.sort(V.sort);for(var te=c(),ae=0;ae<X.length;++ae){var me=X[ae];V.skipNulls&&O[me]===null||L(K,z(O[me],me,ce,V.strictNullHandling,V.skipNulls,V.encode?V.encoder:null,V.filter,V.sort,V.allowDots,V.serializeDate,V.format,V.formatter,V.encodeValuesOnly,V.charset,te))}var ge=K.join(V.delimiter),he=V.addQueryPrefix===!0?"?":"";return V.charsetSentinel&&(V.charset==="iso-8859-1"?he+="utf8=%26%2310003%3B&":he+="utf8=%E2%9C%93&"),ge.length>0?he+ge:""}},58760:(h,I,o)=>{"use strict";var c=o(24269),v=Object.prototype.hasOwnProperty,x=Array.isArray,d=function(){for(var M=[],O=0;O<256;++O)M.push("%"+((O<16?"0":"")+O.toString(16)).toUpperCase());return M}(),b=function(O){for(;O.length>1;){var V=O.pop(),X=V.obj[V.prop];if(x(X)){for(var W=[],K=0;K<X.length;++K)typeof X[K]!="undefined"&&W.push(X[K]);V.obj[V.prop]=W}}},A=function(O,V){for(var X=V&&V.plainObjects?Object.create(null):{},W=0;W<O.length;++W)typeof O[W]!="undefined"&&(X[W]=O[W]);return X},g=function M(O,V,X){if(!V)return O;if(typeof V!="object"){if(x(O))O.push(V);else if(O&&typeof O=="object")(X&&(X.plainObjects||X.allowPrototypes)||!v.call(Object.prototype,V))&&(O[V]=!0);else return[O,V];return O}if(!O||typeof O!="object")return[O].concat(V);var W=O;return x(O)&&!x(V)&&(W=A(O,X)),x(O)&&x(V)?(V.forEach(function(K,Z){if(v.call(O,Z)){var ce=O[Z];ce&&typeof ce=="object"&&K&&typeof K=="object"?O[Z]=M(ce,K,X):O.push(K)}else O[Z]=K}),O):Object.keys(V).reduce(function(K,Z){var ce=V[Z];return v.call(K,Z)?K[Z]=M(K[Z],ce,X):K[Z]=ce,K},W)},L=function(O,V){return Object.keys(V).reduce(function(X,W){return X[W]=V[W],X},O)},D=function(M,O,V){var X=M.replace(/\+/g," ");if(V==="iso-8859-1")return X.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(X)}catch(W){return X}},B=function(O,V,X,W,K){if(O.length===0)return O;var Z=O;if(typeof O=="symbol"?Z=Symbol.prototype.toString.call(O):typeof O!="string"&&(Z=String(O)),X==="iso-8859-1")return escape(Z).replace(/%u[0-9a-f]{4}/gi,function(me){return"%26%23"+parseInt(me.slice(2),16)+"%3B"});for(var ce="",te=0;te<Z.length;++te){var ae=Z.charCodeAt(te);if(ae===45||ae===46||ae===95||ae===126||ae>=48&&ae<=57||ae>=65&&ae<=90||ae>=97&&ae<=122||K===c.RFC1738&&(ae===40||ae===41)){ce+=Z.charAt(te);continue}if(ae<128){ce=ce+d[ae];continue}if(ae<2048){ce=ce+(d[192|ae>>6]+d[128|ae&63]);continue}if(ae<55296||ae>=57344){ce=ce+(d[224|ae>>12]+d[128|ae>>6&63]+d[128|ae&63]);continue}te+=1,ae=65536+((ae&1023)<<10|Z.charCodeAt(te)&1023),ce+=d[240|ae>>18]+d[128|ae>>12&63]+d[128|ae>>6&63]+d[128|ae&63]}return ce},U=function(O){for(var V=[{obj:{o:O},prop:"o"}],X=[],W=0;W<V.length;++W)for(var K=V[W],Z=K.obj[K.prop],ce=Object.keys(Z),te=0;te<ce.length;++te){var ae=ce[te],me=Z[ae];typeof me=="object"&&me!==null&&X.indexOf(me)===-1&&(V.push({obj:Z,prop:ae}),X.push(me))}return b(V),O},_=function(O){return Object.prototype.toString.call(O)==="[object RegExp]"},z=function(O){return!O||typeof O!="object"?!1:!!(O.constructor&&O.constructor.isBuffer&&O.constructor.isBuffer(O))},k=function(O,V){return[].concat(O,V)},Q=function(O,V){if(x(O)){for(var X=[],W=0;W<O.length;W+=1)X.push(V(O[W]));return X}return V(O)};h.exports={arrayToObject:A,assign:L,combine:k,compact:U,decode:D,encode:B,isBuffer:z,isRegExp:_,maybeMap:Q,merge:g}},13692:h=>{var I=h.exports=function(k){return new o(k)};function o(k){this.value=k}o.prototype.get=function(k){for(var Q=this.value,M=0;M<k.length;M++){var O=k[M];if(!Q||!z.call(Q,O)){Q=void 0;break}Q=Q[O]}return Q},o.prototype.has=function(k){for(var Q=this.value,M=0;M<k.length;M++){var O=k[M];if(!Q||!z.call(Q,O))return!1;Q=Q[O]}return!0},o.prototype.set=function(k,Q){for(var M=this.value,O=0;O<k.length-1;O++){var V=k[O];z.call(M,V)||(M[V]={}),M=M[V]}return M[k[O]]=Q,Q},o.prototype.map=function(k){return c(this.value,k,!0)},o.prototype.forEach=function(k){return this.value=c(this.value,k,!1),this.value},o.prototype.reduce=function(k,Q){var M=arguments.length===1,O=M?this.value:Q;return this.forEach(function(V){(!this.isRoot||!M)&&(O=k.call(this,O,V))}),O},o.prototype.paths=function(){var k=[];return this.forEach(function(Q){k.push(this.path)}),k},o.prototype.nodes=function(){var k=[];return this.forEach(function(Q){k.push(this.node)}),k},o.prototype.clone=function(){var k=[],Q=[];return function M(O){for(var V=0;V<k.length;V++)if(k[V]===O)return Q[V];if(typeof O=="object"&&O!==null){var X=v(O);return k.push(O),Q.push(X),_(x(O),function(W){X[W]=M(O[W])}),k.pop(),Q.pop(),X}else return O}(this.value)};function c(k,Q,M){var O=[],V=[],X=!0;return function W(K){var Z=M?v(K):K,ce={},te=!0,ae={node:Z,node_:K,path:[].concat(O),parent:V[V.length-1],parents:V,key:O.slice(-1)[0],isRoot:O.length===0,level:O.length,circular:null,update:function(he,ue){ae.isRoot||(ae.parent.node[ae.key]=he),ae.node=he,ue&&(te=!1)},delete:function(he){delete ae.parent.node[ae.key],he&&(te=!1)},remove:function(he){U(ae.parent.node)?ae.parent.node.splice(ae.key,1):delete ae.parent.node[ae.key],he&&(te=!1)},keys:null,before:function(he){ce.before=he},after:function(he){ce.after=he},pre:function(he){ce.pre=he},post:function(he){ce.post=he},stop:function(){X=!1},block:function(){te=!1}};if(!X)return ae;function me(){if(typeof ae.node=="object"&&ae.node!==null){(!ae.keys||ae.node_!==ae.node)&&(ae.keys=x(ae.node)),ae.isLeaf=ae.keys.length==0;for(var he=0;he<V.length;he++)if(V[he].node_===K){ae.circular=V[he];break}}else ae.isLeaf=!0,ae.keys=null;ae.notLeaf=!ae.isLeaf,ae.notRoot=!ae.isRoot}me();var ge=Q.call(ae,ae.node);return ge!==void 0&&ae.update&&ae.update(ge),ce.before&&ce.before.call(ae,ae.node),te&&(typeof ae.node=="object"&&ae.node!==null&&!ae.circular&&(V.push(ae),me(),_(ae.keys,function(he,ue){O.push(he),ce.pre&&ce.pre.call(ae,ae.node[he],he);var ie=W(ae.node[he]);M&&z.call(ae.node,he)&&(ae.node[he]=ie.node),ie.isLast=ue==ae.keys.length-1,ie.isFirst=ue==0,ce.post&&ce.post.call(ae,ie),O.pop()}),V.pop()),ce.after&&ce.after.call(ae,ae.node)),ae}(k).node}function v(k){if(typeof k=="object"&&k!==null){var Q;if(U(k))Q=[];else if(b(k))Q=new Date(k.getTime?k.getTime():k);else if(A(k))Q=new RegExp(k);else if(g(k))Q={message:k.message};else if(L(k))Q=new Boolean(k);else if(D(k))Q=new Number(k);else if(B(k))Q=new String(k);else if(Object.create&&Object.getPrototypeOf)Q=Object.create(Object.getPrototypeOf(k));else if(k.constructor===Object)Q={};else{var M=k.constructor&&k.constructor.prototype||k.__proto__||{},O=function(){};O.prototype=M,Q=new O}return _(x(k),function(V){Q[V]=k[V]}),Q}else return k}var x=Object.keys||function(Q){var M=[];for(var O in Q)M.push(O);return M};function d(k){return Object.prototype.toString.call(k)}function b(k){return d(k)==="[object Date]"}function A(k){return d(k)==="[object RegExp]"}function g(k){return d(k)==="[object Error]"}function L(k){return d(k)==="[object Boolean]"}function D(k){return d(k)==="[object Number]"}function B(k){return d(k)==="[object String]"}var U=Array.isArray||function(Q){return Object.prototype.toString.call(Q)==="[object Array]"},_=function(k,Q){if(k.forEach)return k.forEach(Q);for(var M=0;M<k.length;M++)Q(k[M],M,k)};_(x(o.prototype),function(k){I[k]=function(Q){var M=[].slice.call(arguments,1),O=new o(Q);return O[k].apply(O,M)}});var z=Object.hasOwnProperty||function(k,Q){return Q in k}},24654:()=>{}}]);
506
+ */const c=o(79742),v=o(80645),x=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;I.Buffer=g,I.SlowBuffer=V,I.INSPECT_MAX_BYTES=50;const d=2147483647;I.kMaxLength=d,g.TYPED_ARRAY_SUPPORT=b(),!g.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function b(){try{const W=new Uint8Array(1),O={foo:function(){return 42}};return Object.setPrototypeOf(O,Uint8Array.prototype),Object.setPrototypeOf(W,O),W.foo()===42}catch(W){return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.byteOffset}});function S(W){if(W>d)throw new RangeError('The value "'+W+'" is invalid for option "size"');const O=new Uint8Array(W);return Object.setPrototypeOf(O,g.prototype),O}function g(W,O,P){if(typeof W=="number"){if(typeof O=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(W)}return L(W,O,P)}g.poolSize=8192;function L(W,O,P){if(typeof W=="string")return _(W,O);if(ArrayBuffer.isView(W))return k(W);if(W==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W);if(Me(W,ArrayBuffer)||W&&Me(W.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Me(W,SharedArrayBuffer)||W&&Me(W.buffer,SharedArrayBuffer)))return X(W,O,P);if(typeof W=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ie=W.valueOf&&W.valueOf();if(ie!=null&&ie!==W)return g.from(ie,O,P);const D=R(W);if(D)return D;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof W[Symbol.toPrimitive]=="function")return g.from(W[Symbol.toPrimitive]("string"),O,P);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W)}g.from=function(W,O,P){return L(W,O,P)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function N(W){if(typeof W!="number")throw new TypeError('"size" argument must be of type number');if(W<0)throw new RangeError('The value "'+W+'" is invalid for option "size"')}function B(W,O,P){return N(W),W<=0?S(W):O!==void 0?typeof P=="string"?S(W).fill(O,P):S(W).fill(O):S(W)}g.alloc=function(W,O,P){return B(W,O,P)};function j(W){return N(W),S(W<0?0:C(W)|0)}g.allocUnsafe=function(W){return j(W)},g.allocUnsafeSlow=function(W){return j(W)};function _(W,O){if((typeof O!="string"||O==="")&&(O="utf8"),!g.isEncoding(O))throw new TypeError("Unknown encoding: "+O);const P=J(W,O)|0;let ie=S(P);const D=ie.write(W,O);return D!==P&&(ie=ie.slice(0,D)),ie}function H(W){const O=W.length<0?0:C(W.length)|0,P=S(O);for(let ie=0;ie<O;ie+=1)P[ie]=W[ie]&255;return P}function k(W){if(Me(W,Uint8Array)){const O=new Uint8Array(W);return X(O.buffer,O.byteOffset,O.byteLength)}return H(W)}function X(W,O,P){if(O<0||W.byteLength<O)throw new RangeError('"offset" is outside of buffer bounds');if(W.byteLength<O+(P||0))throw new RangeError('"length" is outside of buffer bounds');let ie;return O===void 0&&P===void 0?ie=new Uint8Array(W):P===void 0?ie=new Uint8Array(W,O):ie=new Uint8Array(W,O,P),Object.setPrototypeOf(ie,g.prototype),ie}function R(W){if(g.isBuffer(W)){const O=C(W.length)|0,P=S(O);return P.length===0||W.copy(P,0,0,O),P}if(W.length!==void 0)return typeof W.length!="number"||be(W.length)?S(0):H(W);if(W.type==="Buffer"&&Array.isArray(W.data))return H(W.data)}function C(W){if(W>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return W|0}function V(W){return+W!=W&&(W=0),g.alloc(+W)}g.isBuffer=function(O){return O!=null&&O._isBuffer===!0&&O!==g.prototype},g.compare=function(O,P){if(Me(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),Me(P,Uint8Array)&&(P=g.from(P,P.offset,P.byteLength)),!g.isBuffer(O)||!g.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(O===P)return 0;let ie=O.length,D=P.length;for(let ee=0,ce=Math.min(ie,D);ee<ce;++ee)if(O[ee]!==P[ee]){ie=O[ee],D=P[ee];break}return ie<D?-1:D<ie?1:0},g.isEncoding=function(O){switch(String(O).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(O,P){if(!Array.isArray(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return g.alloc(0);let ie;if(P===void 0)for(P=0,ie=0;ie<O.length;++ie)P+=O[ie].length;const D=g.allocUnsafe(P);let ee=0;for(ie=0;ie<O.length;++ie){let ce=O[ie];if(Me(ce,Uint8Array))ee+ce.length>D.length?(g.isBuffer(ce)||(ce=g.from(ce)),ce.copy(D,ee)):Uint8Array.prototype.set.call(D,ce,ee);else if(g.isBuffer(ce))ce.copy(D,ee);else throw new TypeError('"list" argument must be an Array of Buffers');ee+=ce.length}return D};function J(W,O){if(g.isBuffer(W))return W.length;if(ArrayBuffer.isView(W)||Me(W,ArrayBuffer))return W.byteLength;if(typeof W!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof W);const P=W.length,ie=arguments.length>2&&arguments[2]===!0;if(!ie&&P===0)return 0;let D=!1;for(;;)switch(O){case"ascii":case"latin1":case"binary":return P;case"utf8":case"utf-8":return Rt(W).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P*2;case"hex":return P>>>1;case"base64":return $(W).length;default:if(D)return ie?-1:Rt(W).length;O=(""+O).toLowerCase(),D=!0}}g.byteLength=J;function q(W,O,P){let ie=!1;if((O===void 0||O<0)&&(O=0),O>this.length||((P===void 0||P>this.length)&&(P=this.length),P<=0)||(P>>>=0,O>>>=0,P<=O))return"";for(W||(W="utf8");;)switch(W){case"hex":return tt(this,O,P);case"utf8":case"utf-8":return oe(this,O,P);case"ascii":return Le(this,O,P);case"latin1":case"binary":return ke(this,O,P);case"base64":return le(this,O,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,O,P);default:if(ie)throw new TypeError("Unknown encoding: "+W);W=(W+"").toLowerCase(),ie=!0}}g.prototype._isBuffer=!0;function Q(W,O,P){const ie=W[O];W[O]=W[P],W[P]=ie}g.prototype.swap16=function(){const O=this.length;if(O%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let P=0;P<O;P+=2)Q(this,P,P+1);return this},g.prototype.swap32=function(){const O=this.length;if(O%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let P=0;P<O;P+=4)Q(this,P,P+3),Q(this,P+1,P+2);return this},g.prototype.swap64=function(){const O=this.length;if(O%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let P=0;P<O;P+=8)Q(this,P,P+7),Q(this,P+1,P+6),Q(this,P+2,P+5),Q(this,P+3,P+4);return this},g.prototype.toString=function(){const O=this.length;return O===0?"":arguments.length===0?oe(this,0,O):q.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(O){if(!g.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O?!0:g.compare(this,O)===0},g.prototype.inspect=function(){let O="";const P=I.INSPECT_MAX_BYTES;return O=this.toString("hex",0,P).replace(/(.{2})/g,"$1 ").trim(),this.length>P&&(O+=" ... "),"<Buffer "+O+">"},x&&(g.prototype[x]=g.prototype.inspect),g.prototype.compare=function(O,P,ie,D,ee){if(Me(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),!g.isBuffer(O))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof O);if(P===void 0&&(P=0),ie===void 0&&(ie=O?O.length:0),D===void 0&&(D=0),ee===void 0&&(ee=this.length),P<0||ie>O.length||D<0||ee>this.length)throw new RangeError("out of range index");if(D>=ee&&P>=ie)return 0;if(D>=ee)return-1;if(P>=ie)return 1;if(P>>>=0,ie>>>=0,D>>>=0,ee>>>=0,this===O)return 0;let ce=ee-D,Oe=ie-P;const Pe=Math.min(ce,Oe),Te=this.slice(D,ee),ze=O.slice(P,ie);for(let He=0;He<Pe;++He)if(Te[He]!==ze[He]){ce=Te[He],Oe=ze[He];break}return ce<Oe?-1:Oe<ce?1:0};function K(W,O,P,ie,D){if(W.length===0)return-1;if(typeof P=="string"?(ie=P,P=0):P>2147483647?P=2147483647:P<-2147483648&&(P=-2147483648),P=+P,be(P)&&(P=D?0:W.length-1),P<0&&(P=W.length+P),P>=W.length){if(D)return-1;P=W.length-1}else if(P<0)if(D)P=0;else return-1;if(typeof O=="string"&&(O=g.from(O,ie)),g.isBuffer(O))return O.length===0?-1:fe(W,O,P,ie,D);if(typeof O=="number")return O=O&255,typeof Uint8Array.prototype.indexOf=="function"?D?Uint8Array.prototype.indexOf.call(W,O,P):Uint8Array.prototype.lastIndexOf.call(W,O,P):fe(W,[O],P,ie,D);throw new TypeError("val must be string, number or Buffer")}function fe(W,O,P,ie,D){let ee=1,ce=W.length,Oe=O.length;if(ie!==void 0&&(ie=String(ie).toLowerCase(),ie==="ucs2"||ie==="ucs-2"||ie==="utf16le"||ie==="utf-16le")){if(W.length<2||O.length<2)return-1;ee=2,ce/=2,Oe/=2,P/=2}function Pe(ze,He){return ee===1?ze[He]:ze.readUInt16BE(He*ee)}let Te;if(D){let ze=-1;for(Te=P;Te<ce;Te++)if(Pe(W,Te)===Pe(O,ze===-1?0:Te-ze)){if(ze===-1&&(ze=Te),Te-ze+1===Oe)return ze*ee}else ze!==-1&&(Te-=Te-ze),ze=-1}else for(P+Oe>ce&&(P=ce-Oe),Te=P;Te>=0;Te--){let ze=!0;for(let He=0;He<Oe;He++)if(Pe(W,Te+He)!==Pe(O,He)){ze=!1;break}if(ze)return Te}return-1}g.prototype.includes=function(O,P,ie){return this.indexOf(O,P,ie)!==-1},g.prototype.indexOf=function(O,P,ie){return K(this,O,P,ie,!0)},g.prototype.lastIndexOf=function(O,P,ie){return K(this,O,P,ie,!1)};function te(W,O,P,ie){P=Number(P)||0;const D=W.length-P;ie?(ie=Number(ie),ie>D&&(ie=D)):ie=D;const ee=O.length;ie>ee/2&&(ie=ee/2);let ce;for(ce=0;ce<ie;++ce){const Oe=parseInt(O.substr(ce*2,2),16);if(be(Oe))return ce;W[P+ce]=Oe}return ce}function re(W,O,P,ie){return we(Rt(O,W.length-P),W,P,ie)}function ye(W,O,P,ie){return we(pe(O),W,P,ie)}function ve(W,O,P,ie){return we($(O),W,P,ie)}function de(W,O,P,ie){return we(G(O,W.length-P),W,P,ie)}g.prototype.write=function(O,P,ie,D){if(P===void 0)D="utf8",ie=this.length,P=0;else if(ie===void 0&&typeof P=="string")D=P,ie=this.length,P=0;else if(isFinite(P))P=P>>>0,isFinite(ie)?(ie=ie>>>0,D===void 0&&(D="utf8")):(D=ie,ie=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ee=this.length-P;if((ie===void 0||ie>ee)&&(ie=ee),O.length>0&&(ie<0||P<0)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");let ce=!1;for(;;)switch(D){case"hex":return te(this,O,P,ie);case"utf8":case"utf-8":return re(this,O,P,ie);case"ascii":case"latin1":case"binary":return ye(this,O,P,ie);case"base64":return ve(this,O,P,ie);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,O,P,ie);default:if(ce)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),ce=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function le(W,O,P){return O===0&&P===W.length?c.fromByteArray(W):c.fromByteArray(W.slice(O,P))}function oe(W,O,P){P=Math.min(W.length,P);const ie=[];let D=O;for(;D<P;){const ee=W[D];let ce=null,Oe=ee>239?4:ee>223?3:ee>191?2:1;if(D+Oe<=P){let Pe,Te,ze,He;switch(Oe){case 1:ee<128&&(ce=ee);break;case 2:Pe=W[D+1],(Pe&192)==128&&(He=(ee&31)<<6|Pe&63,He>127&&(ce=He));break;case 3:Pe=W[D+1],Te=W[D+2],(Pe&192)==128&&(Te&192)==128&&(He=(ee&15)<<12|(Pe&63)<<6|Te&63,He>2047&&(He<55296||He>57343)&&(ce=He));break;case 4:Pe=W[D+1],Te=W[D+2],ze=W[D+3],(Pe&192)==128&&(Te&192)==128&&(ze&192)==128&&(He=(ee&15)<<18|(Pe&63)<<12|(Te&63)<<6|ze&63,He>65535&&He<1114112&&(ce=He))}}ce===null?(ce=65533,Oe=1):ce>65535&&(ce-=65536,ie.push(ce>>>10&1023|55296),ce=56320|ce&1023),ie.push(ce),D+=Oe}return Ve(ie)}const De=4096;function Ve(W){const O=W.length;if(O<=De)return String.fromCharCode.apply(String,W);let P="",ie=0;for(;ie<O;)P+=String.fromCharCode.apply(String,W.slice(ie,ie+=De));return P}function Le(W,O,P){let ie="";P=Math.min(W.length,P);for(let D=O;D<P;++D)ie+=String.fromCharCode(W[D]&127);return ie}function ke(W,O,P){let ie="";P=Math.min(W.length,P);for(let D=O;D<P;++D)ie+=String.fromCharCode(W[D]);return ie}function tt(W,O,P){const ie=W.length;(!O||O<0)&&(O=0),(!P||P<0||P>ie)&&(P=ie);let D="";for(let ee=O;ee<P;++ee)D+=Ae[W[ee]];return D}function Qe(W,O,P){const ie=W.slice(O,P);let D="";for(let ee=0;ee<ie.length-1;ee+=2)D+=String.fromCharCode(ie[ee]+ie[ee+1]*256);return D}g.prototype.slice=function(O,P){const ie=this.length;O=~~O,P=P===void 0?ie:~~P,O<0?(O+=ie,O<0&&(O=0)):O>ie&&(O=ie),P<0?(P+=ie,P<0&&(P=0)):P>ie&&(P=ie),P<O&&(P=O);const D=this.subarray(O,P);return Object.setPrototypeOf(D,g.prototype),D};function Xe(W,O,P){if(W%1!=0||W<0)throw new RangeError("offset is not uint");if(W+O>P)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(O,P,ie){O=O>>>0,P=P>>>0,ie||Xe(O,P,this.length);let D=this[O],ee=1,ce=0;for(;++ce<P&&(ee*=256);)D+=this[O+ce]*ee;return D},g.prototype.readUintBE=g.prototype.readUIntBE=function(O,P,ie){O=O>>>0,P=P>>>0,ie||Xe(O,P,this.length);let D=this[O+--P],ee=1;for(;P>0&&(ee*=256);)D+=this[O+--P]*ee;return D},g.prototype.readUint8=g.prototype.readUInt8=function(O,P){return O=O>>>0,P||Xe(O,1,this.length),this[O]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(O,P){return O=O>>>0,P||Xe(O,2,this.length),this[O]|this[O+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(O,P){return O=O>>>0,P||Xe(O,2,this.length),this[O]<<8|this[O+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(O,P){return O=O>>>0,P||Xe(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+this[O+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(O,P){return O=O>>>0,P||Xe(O,4,this.length),this[O]*16777216+(this[O+1]<<16|this[O+2]<<8|this[O+3])},g.prototype.readBigUInt64LE=T(function(O){O=O>>>0,Wt(O,"offset");const P=this[O],ie=this[O+7];(P===void 0||ie===void 0)&&Bt(O,this.length-8);const D=P+this[++O]*mr(2,8)+this[++O]*mr(2,16)+this[++O]*mr(2,24),ee=this[++O]+this[++O]*mr(2,8)+this[++O]*mr(2,16)+ie*mr(2,24);return BigInt(D)+(BigInt(ee)<<BigInt(32))}),g.prototype.readBigUInt64BE=T(function(O){O=O>>>0,Wt(O,"offset");const P=this[O],ie=this[O+7];(P===void 0||ie===void 0)&&Bt(O,this.length-8);const D=P*mr(2,24)+this[++O]*mr(2,16)+this[++O]*mr(2,8)+this[++O],ee=this[++O]*mr(2,24)+this[++O]*mr(2,16)+this[++O]*mr(2,8)+ie;return(BigInt(D)<<BigInt(32))+BigInt(ee)}),g.prototype.readIntLE=function(O,P,ie){O=O>>>0,P=P>>>0,ie||Xe(O,P,this.length);let D=this[O],ee=1,ce=0;for(;++ce<P&&(ee*=256);)D+=this[O+ce]*ee;return ee*=128,D>=ee&&(D-=Math.pow(2,8*P)),D},g.prototype.readIntBE=function(O,P,ie){O=O>>>0,P=P>>>0,ie||Xe(O,P,this.length);let D=P,ee=1,ce=this[O+--D];for(;D>0&&(ee*=256);)ce+=this[O+--D]*ee;return ee*=128,ce>=ee&&(ce-=Math.pow(2,8*P)),ce},g.prototype.readInt8=function(O,P){return O=O>>>0,P||Xe(O,1,this.length),this[O]&128?(255-this[O]+1)*-1:this[O]},g.prototype.readInt16LE=function(O,P){O=O>>>0,P||Xe(O,2,this.length);const ie=this[O]|this[O+1]<<8;return ie&32768?ie|4294901760:ie},g.prototype.readInt16BE=function(O,P){O=O>>>0,P||Xe(O,2,this.length);const ie=this[O+1]|this[O]<<8;return ie&32768?ie|4294901760:ie},g.prototype.readInt32LE=function(O,P){return O=O>>>0,P||Xe(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},g.prototype.readInt32BE=function(O,P){return O=O>>>0,P||Xe(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},g.prototype.readBigInt64LE=T(function(O){O=O>>>0,Wt(O,"offset");const P=this[O],ie=this[O+7];(P===void 0||ie===void 0)&&Bt(O,this.length-8);const D=this[O+4]+this[O+5]*mr(2,8)+this[O+6]*mr(2,16)+(ie<<24);return(BigInt(D)<<BigInt(32))+BigInt(P+this[++O]*mr(2,8)+this[++O]*mr(2,16)+this[++O]*mr(2,24))}),g.prototype.readBigInt64BE=T(function(O){O=O>>>0,Wt(O,"offset");const P=this[O],ie=this[O+7];(P===void 0||ie===void 0)&&Bt(O,this.length-8);const D=(P<<24)+this[++O]*mr(2,16)+this[++O]*mr(2,8)+this[++O];return(BigInt(D)<<BigInt(32))+BigInt(this[++O]*mr(2,24)+this[++O]*mr(2,16)+this[++O]*mr(2,8)+ie)}),g.prototype.readFloatLE=function(O,P){return O=O>>>0,P||Xe(O,4,this.length),v.read(this,O,!0,23,4)},g.prototype.readFloatBE=function(O,P){return O=O>>>0,P||Xe(O,4,this.length),v.read(this,O,!1,23,4)},g.prototype.readDoubleLE=function(O,P){return O=O>>>0,P||Xe(O,8,this.length),v.read(this,O,!0,52,8)},g.prototype.readDoubleBE=function(O,P){return O=O>>>0,P||Xe(O,8,this.length),v.read(this,O,!1,52,8)};function ut(W,O,P,ie,D,ee){if(!g.isBuffer(W))throw new TypeError('"buffer" argument must be a Buffer instance');if(O>D||O<ee)throw new RangeError('"value" argument is out of bounds');if(P+ie>W.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(O,P,ie,D){if(O=+O,P=P>>>0,ie=ie>>>0,!D){const Oe=Math.pow(2,8*ie)-1;ut(this,O,P,ie,Oe,0)}let ee=1,ce=0;for(this[P]=O&255;++ce<ie&&(ee*=256);)this[P+ce]=O/ee&255;return P+ie},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(O,P,ie,D){if(O=+O,P=P>>>0,ie=ie>>>0,!D){const Oe=Math.pow(2,8*ie)-1;ut(this,O,P,ie,Oe,0)}let ee=ie-1,ce=1;for(this[P+ee]=O&255;--ee>=0&&(ce*=256);)this[P+ee]=O/ce&255;return P+ie},g.prototype.writeUint8=g.prototype.writeUInt8=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,1,255,0),this[P]=O&255,P+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,2,65535,0),this[P]=O&255,this[P+1]=O>>>8,P+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,2,65535,0),this[P]=O>>>8,this[P+1]=O&255,P+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,4,4294967295,0),this[P+3]=O>>>24,this[P+2]=O>>>16,this[P+1]=O>>>8,this[P]=O&255,P+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,4,4294967295,0),this[P]=O>>>24,this[P+1]=O>>>16,this[P+2]=O>>>8,this[P+3]=O&255,P+4};function pt(W,O,P,ie,D){St(O,ie,D,W,P,7);let ee=Number(O&BigInt(4294967295));W[P++]=ee,ee=ee>>8,W[P++]=ee,ee=ee>>8,W[P++]=ee,ee=ee>>8,W[P++]=ee;let ce=Number(O>>BigInt(32)&BigInt(4294967295));return W[P++]=ce,ce=ce>>8,W[P++]=ce,ce=ce>>8,W[P++]=ce,ce=ce>>8,W[P++]=ce,P}function yt(W,O,P,ie,D){St(O,ie,D,W,P,7);let ee=Number(O&BigInt(4294967295));W[P+7]=ee,ee=ee>>8,W[P+6]=ee,ee=ee>>8,W[P+5]=ee,ee=ee>>8,W[P+4]=ee;let ce=Number(O>>BigInt(32)&BigInt(4294967295));return W[P+3]=ce,ce=ce>>8,W[P+2]=ce,ce=ce>>8,W[P+1]=ce,ce=ce>>8,W[P]=ce,P+8}g.prototype.writeBigUInt64LE=T(function(O,P=0){return pt(this,O,P,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=T(function(O,P=0){return yt(this,O,P,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(O,P,ie,D){if(O=+O,P=P>>>0,!D){const Pe=Math.pow(2,8*ie-1);ut(this,O,P,ie,Pe-1,-Pe)}let ee=0,ce=1,Oe=0;for(this[P]=O&255;++ee<ie&&(ce*=256);)O<0&&Oe===0&&this[P+ee-1]!==0&&(Oe=1),this[P+ee]=(O/ce>>0)-Oe&255;return P+ie},g.prototype.writeIntBE=function(O,P,ie,D){if(O=+O,P=P>>>0,!D){const Pe=Math.pow(2,8*ie-1);ut(this,O,P,ie,Pe-1,-Pe)}let ee=ie-1,ce=1,Oe=0;for(this[P+ee]=O&255;--ee>=0&&(ce*=256);)O<0&&Oe===0&&this[P+ee+1]!==0&&(Oe=1),this[P+ee]=(O/ce>>0)-Oe&255;return P+ie},g.prototype.writeInt8=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,1,127,-128),O<0&&(O=255+O+1),this[P]=O&255,P+1},g.prototype.writeInt16LE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,2,32767,-32768),this[P]=O&255,this[P+1]=O>>>8,P+2},g.prototype.writeInt16BE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,2,32767,-32768),this[P]=O>>>8,this[P+1]=O&255,P+2},g.prototype.writeInt32LE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,4,2147483647,-2147483648),this[P]=O&255,this[P+1]=O>>>8,this[P+2]=O>>>16,this[P+3]=O>>>24,P+4},g.prototype.writeInt32BE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),this[P]=O>>>24,this[P+1]=O>>>16,this[P+2]=O>>>8,this[P+3]=O&255,P+4},g.prototype.writeBigInt64LE=T(function(O,P=0){return pt(this,O,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=T(function(O,P=0){return yt(this,O,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function qe(W,O,P,ie,D,ee){if(P+ie>W.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("Index out of range")}function lt(W,O,P,ie,D){return O=+O,P=P>>>0,D||qe(W,O,P,4,34028234663852886e22,-34028234663852886e22),v.write(W,O,P,ie,23,4),P+4}g.prototype.writeFloatLE=function(O,P,ie){return lt(this,O,P,!0,ie)},g.prototype.writeFloatBE=function(O,P,ie){return lt(this,O,P,!1,ie)};function vt(W,O,P,ie,D){return O=+O,P=P>>>0,D||qe(W,O,P,8,17976931348623157e292,-17976931348623157e292),v.write(W,O,P,ie,52,8),P+8}g.prototype.writeDoubleLE=function(O,P,ie){return vt(this,O,P,!0,ie)},g.prototype.writeDoubleBE=function(O,P,ie){return vt(this,O,P,!1,ie)},g.prototype.copy=function(O,P,ie,D){if(!g.isBuffer(O))throw new TypeError("argument should be a Buffer");if(ie||(ie=0),!D&&D!==0&&(D=this.length),P>=O.length&&(P=O.length),P||(P=0),D>0&&D<ie&&(D=ie),D===ie||O.length===0||this.length===0)return 0;if(P<0)throw new RangeError("targetStart out of bounds");if(ie<0||ie>=this.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),O.length-P<D-ie&&(D=O.length-P+ie);const ee=D-ie;return this===O&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(P,ie,D):Uint8Array.prototype.set.call(O,this.subarray(ie,D),P),ee},g.prototype.fill=function(O,P,ie,D){if(typeof O=="string"){if(typeof P=="string"?(D=P,P=0,ie=this.length):typeof ie=="string"&&(D=ie,ie=this.length),D!==void 0&&typeof D!="string")throw new TypeError("encoding must be a string");if(typeof D=="string"&&!g.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(O.length===1){const ce=O.charCodeAt(0);(D==="utf8"&&ce<128||D==="latin1")&&(O=ce)}}else typeof O=="number"?O=O&255:typeof O=="boolean"&&(O=Number(O));if(P<0||this.length<P||this.length<ie)throw new RangeError("Out of range index");if(ie<=P)return this;P=P>>>0,ie=ie===void 0?this.length:ie>>>0,O||(O=0);let ee;if(typeof O=="number")for(ee=P;ee<ie;++ee)this[ee]=O;else{const ce=g.isBuffer(O)?O:g.from(O,D),Oe=ce.length;if(Oe===0)throw new TypeError('The value "'+O+'" is invalid for argument "value"');for(ee=0;ee<ie-P;++ee)this[ee+P]=ce[ee%Oe]}return this};const mt={};function dt(W,O,P){mt[W]=class extends P{constructor(){super();Object.defineProperty(this,"message",{value:O.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${W}]`,this.stack,delete this.name}get code(){return W}set code(D){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:D,writable:!0})}toString(){return`${this.name} [${W}]: ${this.message}`}}}dt("ERR_BUFFER_OUT_OF_BOUNDS",function(W){return W?`${W} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),dt("ERR_INVALID_ARG_TYPE",function(W,O){return`The "${W}" argument must be of type number. Received type ${typeof O}`},TypeError),dt("ERR_OUT_OF_RANGE",function(W,O,P){let ie=`The value of "${W}" is out of range.`,D=P;return Number.isInteger(P)&&Math.abs(P)>mr(2,32)?D=kt(String(P)):typeof P=="bigint"&&(D=String(P),(P>mr(BigInt(2),BigInt(32))||P<-mr(BigInt(2),BigInt(32)))&&(D=kt(D)),D+="n"),ie+=` It must be ${O}. Received ${D}`,ie},RangeError);function kt(W){let O="",P=W.length;const ie=W[0]==="-"?1:0;for(;P>=ie+4;P-=3)O=`_${W.slice(P-3,P)}${O}`;return`${W.slice(0,P)}${O}`}function It(W,O,P){Wt(O,"offset"),(W[O]===void 0||W[O+P]===void 0)&&Bt(O,W.length-(P+1))}function St(W,O,P,ie,D,ee){if(W>P||W<O){const ce=typeof O=="bigint"?"n":"";let Oe;throw ee>3?O===0||O===BigInt(0)?Oe=`>= 0${ce} and < 2${ce} ** ${(ee+1)*8}${ce}`:Oe=`>= -(2${ce} ** ${(ee+1)*8-1}${ce}) and < 2 ** ${(ee+1)*8-1}${ce}`:Oe=`>= ${O}${ce} and <= ${P}${ce}`,new mt.ERR_OUT_OF_RANGE("value",Oe,W)}It(ie,D,ee)}function Wt(W,O){if(typeof W!="number")throw new mt.ERR_INVALID_ARG_TYPE(O,"number",W)}function Bt(W,O,P){throw Math.floor(W)!==W?(Wt(W,P),new mt.ERR_OUT_OF_RANGE(P||"offset","an integer",W)):O<0?new mt.ERR_BUFFER_OUT_OF_BOUNDS:new mt.ERR_OUT_OF_RANGE(P||"offset",`>= ${P?1:0} and <= ${O}`,W)}const Gt=/[^+/0-9A-Za-z-_]/g;function wt(W){if(W=W.split("=")[0],W=W.trim().replace(Gt,""),W.length<2)return"";for(;W.length%4!=0;)W=W+"=";return W}function Rt(W,O){O=O||1/0;let P;const ie=W.length;let D=null;const ee=[];for(let ce=0;ce<ie;++ce){if(P=W.charCodeAt(ce),P>55295&&P<57344){if(!D){if(P>56319){(O-=3)>-1&&ee.push(239,191,189);continue}else if(ce+1===ie){(O-=3)>-1&&ee.push(239,191,189);continue}D=P;continue}if(P<56320){(O-=3)>-1&&ee.push(239,191,189),D=P;continue}P=(D-55296<<10|P-56320)+65536}else D&&(O-=3)>-1&&ee.push(239,191,189);if(D=null,P<128){if((O-=1)<0)break;ee.push(P)}else if(P<2048){if((O-=2)<0)break;ee.push(P>>6|192,P&63|128)}else if(P<65536){if((O-=3)<0)break;ee.push(P>>12|224,P>>6&63|128,P&63|128)}else if(P<1114112){if((O-=4)<0)break;ee.push(P>>18|240,P>>12&63|128,P>>6&63|128,P&63|128)}else throw new Error("Invalid code point")}return ee}function pe(W){const O=[];for(let P=0;P<W.length;++P)O.push(W.charCodeAt(P)&255);return O}function G(W,O){let P,ie,D;const ee=[];for(let ce=0;ce<W.length&&!((O-=2)<0);++ce)P=W.charCodeAt(ce),ie=P>>8,D=P%256,ee.push(D),ee.push(ie);return ee}function $(W){return c.toByteArray(wt(W))}function we(W,O,P,ie){let D;for(D=0;D<ie&&!(D+P>=O.length||D>=W.length);++D)O[D+P]=W[D];return D}function Me(W,O){return W instanceof O||W!=null&&W.constructor!=null&&W.constructor.name!=null&&W.constructor.name===O.name}function be(W){return W!==W}const Ae=function(){const W="0123456789abcdef",O=new Array(256);for(let P=0;P<16;++P){const ie=P*16;for(let D=0;D<16;++D)O[ie+D]=W[P]+W[D]}return O}();function T(W){return typeof BigInt=="undefined"?Ie:W}function Ie(){throw new Error("BigInt not supported")}},24269:h=>{"use strict";var I=String.prototype.replace,o=/%20/g,c={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:c.RFC3986,formatters:{RFC1738:function(v){return I.call(v,o,"+")},RFC3986:function(v){return String(v)}},RFC1738:c.RFC1738,RFC3986:c.RFC3986}},92495:(h,I,o)=>{"use strict";var c=o(57347),v=o(73777),x=o(24269);h.exports={formats:x,parse:v,stringify:c}},73777:(h,I,o)=>{"use strict";var c=o(58760),v=Object.prototype.hasOwnProperty,x=Array.isArray,d={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:c.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},b=function(H){return H.replace(/&#(\d+);/g,function(k,X){return String.fromCharCode(parseInt(X,10))})},S=function(H,k){return H&&typeof H=="string"&&k.comma&&H.indexOf(",")>-1?H.split(","):H},g="utf8=%26%2310003%3B",L="utf8=%E2%9C%93",N=function(k,X){var R={},C=X.ignoreQueryPrefix?k.replace(/^\?/,""):k,V=X.parameterLimit===1/0?void 0:X.parameterLimit,J=C.split(X.delimiter,V),q=-1,Q,K=X.charset;if(X.charsetSentinel)for(Q=0;Q<J.length;++Q)J[Q].indexOf("utf8=")===0&&(J[Q]===L?K="utf-8":J[Q]===g&&(K="iso-8859-1"),q=Q,Q=J.length);for(Q=0;Q<J.length;++Q)if(Q!==q){var fe=J[Q],te=fe.indexOf("]="),re=te===-1?fe.indexOf("="):te+1,ye,ve;re===-1?(ye=X.decoder(fe,d.decoder,K,"key"),ve=X.strictNullHandling?null:""):(ye=X.decoder(fe.slice(0,re),d.decoder,K,"key"),ve=c.maybeMap(S(fe.slice(re+1),X),function(de){return X.decoder(de,d.decoder,K,"value")})),ve&&X.interpretNumericEntities&&K==="iso-8859-1"&&(ve=b(ve)),fe.indexOf("[]=")>-1&&(ve=x(ve)?[ve]:ve),v.call(R,ye)?R[ye]=c.combine(R[ye],ve):R[ye]=ve}return R},B=function(H,k,X,R){for(var C=R?k:S(k,X),V=H.length-1;V>=0;--V){var J,q=H[V];if(q==="[]"&&X.parseArrays)J=[].concat(C);else{J=X.plainObjects?Object.create(null):{};var Q=q.charAt(0)==="["&&q.charAt(q.length-1)==="]"?q.slice(1,-1):q,K=parseInt(Q,10);!X.parseArrays&&Q===""?J={0:C}:!isNaN(K)&&q!==Q&&String(K)===Q&&K>=0&&X.parseArrays&&K<=X.arrayLimit?(J=[],J[K]=C):J[Q]=C}C=J}return C},j=function(k,X,R,C){if(!!k){var V=R.allowDots?k.replace(/\.([^.[]+)/g,"[$1]"):k,J=/(\[[^[\]]*])/,q=/(\[[^[\]]*])/g,Q=R.depth>0&&J.exec(V),K=Q?V.slice(0,Q.index):V,fe=[];if(K){if(!R.plainObjects&&v.call(Object.prototype,K)&&!R.allowPrototypes)return;fe.push(K)}for(var te=0;R.depth>0&&(Q=q.exec(V))!==null&&te<R.depth;){if(te+=1,!R.plainObjects&&v.call(Object.prototype,Q[1].slice(1,-1))&&!R.allowPrototypes)return;fe.push(Q[1])}return Q&&fe.push("["+V.slice(Q.index)+"]"),B(fe,X,R,C)}},_=function(k){if(!k)return d;if(k.decoder!==null&&k.decoder!==void 0&&typeof k.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof k.charset!="undefined"&&k.charset!=="utf-8"&&k.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var X=typeof k.charset=="undefined"?d.charset:k.charset;return{allowDots:typeof k.allowDots=="undefined"?d.allowDots:!!k.allowDots,allowPrototypes:typeof k.allowPrototypes=="boolean"?k.allowPrototypes:d.allowPrototypes,allowSparse:typeof k.allowSparse=="boolean"?k.allowSparse:d.allowSparse,arrayLimit:typeof k.arrayLimit=="number"?k.arrayLimit:d.arrayLimit,charset:X,charsetSentinel:typeof k.charsetSentinel=="boolean"?k.charsetSentinel:d.charsetSentinel,comma:typeof k.comma=="boolean"?k.comma:d.comma,decoder:typeof k.decoder=="function"?k.decoder:d.decoder,delimiter:typeof k.delimiter=="string"||c.isRegExp(k.delimiter)?k.delimiter:d.delimiter,depth:typeof k.depth=="number"||k.depth===!1?+k.depth:d.depth,ignoreQueryPrefix:k.ignoreQueryPrefix===!0,interpretNumericEntities:typeof k.interpretNumericEntities=="boolean"?k.interpretNumericEntities:d.interpretNumericEntities,parameterLimit:typeof k.parameterLimit=="number"?k.parameterLimit:d.parameterLimit,parseArrays:k.parseArrays!==!1,plainObjects:typeof k.plainObjects=="boolean"?k.plainObjects:d.plainObjects,strictNullHandling:typeof k.strictNullHandling=="boolean"?k.strictNullHandling:d.strictNullHandling}};h.exports=function(H,k){var X=_(k);if(H===""||H===null||typeof H=="undefined")return X.plainObjects?Object.create(null):{};for(var R=typeof H=="string"?N(H,X):H,C=X.plainObjects?Object.create(null):{},V=Object.keys(R),J=0;J<V.length;++J){var q=V[J],Q=j(q,R[q],X,typeof H=="string");C=c.merge(C,Q,X)}return X.allowSparse===!0?C:c.compact(C)}},57347:(h,I,o)=>{"use strict";var c=o(37478),v=o(58760),x=o(24269),d=Object.prototype.hasOwnProperty,b={brackets:function(R){return R+"[]"},comma:"comma",indices:function(R,C){return R+"["+C+"]"},repeat:function(R){return R}},S=Array.isArray,g=Array.prototype.push,L=function(X,R){g.apply(X,S(R)?R:[R])},N=Date.prototype.toISOString,B=x.default,j={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:v.encode,encodeValuesOnly:!1,format:B,formatter:x.formatters[B],indices:!1,serializeDate:function(R){return N.call(R)},skipNulls:!1,strictNullHandling:!1},_=function(R){return typeof R=="string"||typeof R=="number"||typeof R=="boolean"||typeof R=="symbol"||typeof R=="bigint"},H=function X(R,C,V,J,q,Q,K,fe,te,re,ye,ve,de,le,oe){var De=R;if(oe.has(R))throw new RangeError("Cyclic object value");if(typeof K=="function"?De=K(C,De):De instanceof Date?De=re(De):V==="comma"&&S(De)&&(De=v.maybeMap(De,function(qe){return qe instanceof Date?re(qe):qe})),De===null){if(J)return Q&&!de?Q(C,j.encoder,le,"key",ye):C;De=""}if(_(De)||v.isBuffer(De)){if(Q){var Ve=de?C:Q(C,j.encoder,le,"key",ye);return[ve(Ve)+"="+ve(Q(De,j.encoder,le,"value",ye))]}return[ve(C)+"="+ve(String(De))]}var Le=[];if(typeof De=="undefined")return Le;var ke;if(V==="comma"&&S(De))ke=[{value:De.length>0?De.join(",")||null:void 0}];else if(S(K))ke=K;else{var tt=Object.keys(De);ke=fe?tt.sort(fe):tt}for(var Qe=0;Qe<ke.length;++Qe){var Xe=ke[Qe],ut=typeof Xe=="object"&&Xe.value!==void 0?Xe.value:De[Xe];if(!(q&&ut===null)){var pt=S(De)?typeof V=="function"?V(C,Xe):C:C+(te?"."+Xe:"["+Xe+"]");oe.set(R,!0);var yt=c();L(Le,X(ut,pt,V,J,q,Q,K,fe,te,re,ye,ve,de,le,yt))}}return Le},k=function(R){if(!R)return j;if(R.encoder!==null&&R.encoder!==void 0&&typeof R.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=R.charset||j.charset;if(typeof R.charset!="undefined"&&R.charset!=="utf-8"&&R.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var V=x.default;if(typeof R.format!="undefined"){if(!d.call(x.formatters,R.format))throw new TypeError("Unknown format option provided.");V=R.format}var J=x.formatters[V],q=j.filter;return(typeof R.filter=="function"||S(R.filter))&&(q=R.filter),{addQueryPrefix:typeof R.addQueryPrefix=="boolean"?R.addQueryPrefix:j.addQueryPrefix,allowDots:typeof R.allowDots=="undefined"?j.allowDots:!!R.allowDots,charset:C,charsetSentinel:typeof R.charsetSentinel=="boolean"?R.charsetSentinel:j.charsetSentinel,delimiter:typeof R.delimiter=="undefined"?j.delimiter:R.delimiter,encode:typeof R.encode=="boolean"?R.encode:j.encode,encoder:typeof R.encoder=="function"?R.encoder:j.encoder,encodeValuesOnly:typeof R.encodeValuesOnly=="boolean"?R.encodeValuesOnly:j.encodeValuesOnly,filter:q,format:V,formatter:J,serializeDate:typeof R.serializeDate=="function"?R.serializeDate:j.serializeDate,skipNulls:typeof R.skipNulls=="boolean"?R.skipNulls:j.skipNulls,sort:typeof R.sort=="function"?R.sort:null,strictNullHandling:typeof R.strictNullHandling=="boolean"?R.strictNullHandling:j.strictNullHandling}};h.exports=function(X,R){var C=X,V=k(R),J,q;typeof V.filter=="function"?(q=V.filter,C=q("",C)):S(V.filter)&&(q=V.filter,J=q);var Q=[];if(typeof C!="object"||C===null)return"";var K;R&&R.arrayFormat in b?K=R.arrayFormat:R&&"indices"in R?K=R.indices?"indices":"repeat":K="indices";var fe=b[K];J||(J=Object.keys(C)),V.sort&&J.sort(V.sort);for(var te=c(),re=0;re<J.length;++re){var ye=J[re];V.skipNulls&&C[ye]===null||L(Q,H(C[ye],ye,fe,V.strictNullHandling,V.skipNulls,V.encode?V.encoder:null,V.filter,V.sort,V.allowDots,V.serializeDate,V.format,V.formatter,V.encodeValuesOnly,V.charset,te))}var ve=Q.join(V.delimiter),de=V.addQueryPrefix===!0?"?":"";return V.charsetSentinel&&(V.charset==="iso-8859-1"?de+="utf8=%26%2310003%3B&":de+="utf8=%E2%9C%93&"),ve.length>0?de+ve:""}},58760:(h,I,o)=>{"use strict";var c=o(24269),v=Object.prototype.hasOwnProperty,x=Array.isArray,d=function(){for(var R=[],C=0;C<256;++C)R.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return R}(),b=function(C){for(;C.length>1;){var V=C.pop(),J=V.obj[V.prop];if(x(J)){for(var q=[],Q=0;Q<J.length;++Q)typeof J[Q]!="undefined"&&q.push(J[Q]);V.obj[V.prop]=q}}},S=function(C,V){for(var J=V&&V.plainObjects?Object.create(null):{},q=0;q<C.length;++q)typeof C[q]!="undefined"&&(J[q]=C[q]);return J},g=function R(C,V,J){if(!V)return C;if(typeof V!="object"){if(x(C))C.push(V);else if(C&&typeof C=="object")(J&&(J.plainObjects||J.allowPrototypes)||!v.call(Object.prototype,V))&&(C[V]=!0);else return[C,V];return C}if(!C||typeof C!="object")return[C].concat(V);var q=C;return x(C)&&!x(V)&&(q=S(C,J)),x(C)&&x(V)?(V.forEach(function(Q,K){if(v.call(C,K)){var fe=C[K];fe&&typeof fe=="object"&&Q&&typeof Q=="object"?C[K]=R(fe,Q,J):C.push(Q)}else C[K]=Q}),C):Object.keys(V).reduce(function(Q,K){var fe=V[K];return v.call(Q,K)?Q[K]=R(Q[K],fe,J):Q[K]=fe,Q},q)},L=function(C,V){return Object.keys(V).reduce(function(J,q){return J[q]=V[q],J},C)},N=function(R,C,V){var J=R.replace(/\+/g," ");if(V==="iso-8859-1")return J.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(J)}catch(q){return J}},B=function(C,V,J,q,Q){if(C.length===0)return C;var K=C;if(typeof C=="symbol"?K=Symbol.prototype.toString.call(C):typeof C!="string"&&(K=String(C)),J==="iso-8859-1")return escape(K).replace(/%u[0-9a-f]{4}/gi,function(ye){return"%26%23"+parseInt(ye.slice(2),16)+"%3B"});for(var fe="",te=0;te<K.length;++te){var re=K.charCodeAt(te);if(re===45||re===46||re===95||re===126||re>=48&&re<=57||re>=65&&re<=90||re>=97&&re<=122||Q===c.RFC1738&&(re===40||re===41)){fe+=K.charAt(te);continue}if(re<128){fe=fe+d[re];continue}if(re<2048){fe=fe+(d[192|re>>6]+d[128|re&63]);continue}if(re<55296||re>=57344){fe=fe+(d[224|re>>12]+d[128|re>>6&63]+d[128|re&63]);continue}te+=1,re=65536+((re&1023)<<10|K.charCodeAt(te)&1023),fe+=d[240|re>>18]+d[128|re>>12&63]+d[128|re>>6&63]+d[128|re&63]}return fe},j=function(C){for(var V=[{obj:{o:C},prop:"o"}],J=[],q=0;q<V.length;++q)for(var Q=V[q],K=Q.obj[Q.prop],fe=Object.keys(K),te=0;te<fe.length;++te){var re=fe[te],ye=K[re];typeof ye=="object"&&ye!==null&&J.indexOf(ye)===-1&&(V.push({obj:K,prop:re}),J.push(ye))}return b(V),C},_=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},H=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},k=function(C,V){return[].concat(C,V)},X=function(C,V){if(x(C)){for(var J=[],q=0;q<C.length;q+=1)J.push(V(C[q]));return J}return V(C)};h.exports={arrayToObject:S,assign:L,combine:k,compact:j,decode:N,encode:B,isBuffer:H,isRegExp:_,maybeMap:X,merge:g}},13692:h=>{var I=h.exports=function(k){return new o(k)};function o(k){this.value=k}o.prototype.get=function(k){for(var X=this.value,R=0;R<k.length;R++){var C=k[R];if(!X||!H.call(X,C)){X=void 0;break}X=X[C]}return X},o.prototype.has=function(k){for(var X=this.value,R=0;R<k.length;R++){var C=k[R];if(!X||!H.call(X,C))return!1;X=X[C]}return!0},o.prototype.set=function(k,X){for(var R=this.value,C=0;C<k.length-1;C++){var V=k[C];H.call(R,V)||(R[V]={}),R=R[V]}return R[k[C]]=X,X},o.prototype.map=function(k){return c(this.value,k,!0)},o.prototype.forEach=function(k){return this.value=c(this.value,k,!1),this.value},o.prototype.reduce=function(k,X){var R=arguments.length===1,C=R?this.value:X;return this.forEach(function(V){(!this.isRoot||!R)&&(C=k.call(this,C,V))}),C},o.prototype.paths=function(){var k=[];return this.forEach(function(X){k.push(this.path)}),k},o.prototype.nodes=function(){var k=[];return this.forEach(function(X){k.push(this.node)}),k},o.prototype.clone=function(){var k=[],X=[];return function R(C){for(var V=0;V<k.length;V++)if(k[V]===C)return X[V];if(typeof C=="object"&&C!==null){var J=v(C);return k.push(C),X.push(J),_(x(C),function(q){J[q]=R(C[q])}),k.pop(),X.pop(),J}else return C}(this.value)};function c(k,X,R){var C=[],V=[],J=!0;return function q(Q){var K=R?v(Q):Q,fe={},te=!0,re={node:K,node_:Q,path:[].concat(C),parent:V[V.length-1],parents:V,key:C.slice(-1)[0],isRoot:C.length===0,level:C.length,circular:null,update:function(de,le){re.isRoot||(re.parent.node[re.key]=de),re.node=de,le&&(te=!1)},delete:function(de){delete re.parent.node[re.key],de&&(te=!1)},remove:function(de){j(re.parent.node)?re.parent.node.splice(re.key,1):delete re.parent.node[re.key],de&&(te=!1)},keys:null,before:function(de){fe.before=de},after:function(de){fe.after=de},pre:function(de){fe.pre=de},post:function(de){fe.post=de},stop:function(){J=!1},block:function(){te=!1}};if(!J)return re;function ye(){if(typeof re.node=="object"&&re.node!==null){(!re.keys||re.node_!==re.node)&&(re.keys=x(re.node)),re.isLeaf=re.keys.length==0;for(var de=0;de<V.length;de++)if(V[de].node_===Q){re.circular=V[de];break}}else re.isLeaf=!0,re.keys=null;re.notLeaf=!re.isLeaf,re.notRoot=!re.isRoot}ye();var ve=X.call(re,re.node);return ve!==void 0&&re.update&&re.update(ve),fe.before&&fe.before.call(re,re.node),te&&(typeof re.node=="object"&&re.node!==null&&!re.circular&&(V.push(re),ye(),_(re.keys,function(de,le){C.push(de),fe.pre&&fe.pre.call(re,re.node[de],de);var oe=q(re.node[de]);R&&H.call(re.node,de)&&(re.node[de]=oe.node),oe.isLast=le==re.keys.length-1,oe.isFirst=le==0,fe.post&&fe.post.call(re,oe),C.pop()}),V.pop()),fe.after&&fe.after.call(re,re.node)),re}(k).node}function v(k){if(typeof k=="object"&&k!==null){var X;if(j(k))X=[];else if(b(k))X=new Date(k.getTime?k.getTime():k);else if(S(k))X=new RegExp(k);else if(g(k))X={message:k.message};else if(L(k))X=new Boolean(k);else if(N(k))X=new Number(k);else if(B(k))X=new String(k);else if(Object.create&&Object.getPrototypeOf)X=Object.create(Object.getPrototypeOf(k));else if(k.constructor===Object)X={};else{var R=k.constructor&&k.constructor.prototype||k.__proto__||{},C=function(){};C.prototype=R,X=new C}return _(x(k),function(V){X[V]=k[V]}),X}else return k}var x=Object.keys||function(X){var R=[];for(var C in X)R.push(C);return R};function d(k){return Object.prototype.toString.call(k)}function b(k){return d(k)==="[object Date]"}function S(k){return d(k)==="[object RegExp]"}function g(k){return d(k)==="[object Error]"}function L(k){return d(k)==="[object Boolean]"}function N(k){return d(k)==="[object Number]"}function B(k){return d(k)==="[object String]"}var j=Array.isArray||function(X){return Object.prototype.toString.call(X)==="[object Array]"},_=function(k,X){if(k.forEach)return k.forEach(X);for(var R=0;R<k.length;R++)X(k[R],R,k)};_(x(o.prototype),function(k){I[k]=function(X){var R=[].slice.call(arguments,1),C=new o(X);return C[k].apply(C,R)}});var H=Object.hasOwnProperty||function(k,X){return X in k}},56089:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},24654:()=>{}}]);